|
|
@ -192,11 +192,15 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty spanOneWidth"><span>厂家入库日期</span></div> |
|
|
|
<el-form-item><el-date-picker value-format="yyyy-MM-dd" v-model="formobj.priceDate" clearable type="date" class="addinputw addinputwOne" placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-col :span="8"> |
|
|
|
<div class="span-sty spanOneWidth"><span>公司入库日期</span></div> |
|
|
|
<el-form-item><el-date-picker value-format="yyyy-MM-dd" v-model="formobj.orgPriceDate" :picker-options="pickerOptions" clearable type="date" class="addinputw addinputwOne" placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span=8> |
|
|
|
<div class="span-sty spanOneWidth"><span>物流发车日期</span></div> |
|
|
|
<el-form-item><el-date-picker value-format="yyyy-MM-dd" v-model="formobj.departureDate" clearable type="date" class="addinputw addinputwOne" placeholder=""/></el-form-item> |
|
|
|
</el-col> |
|
|
@ -224,6 +228,12 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
pickerOptions: { |
|
|
|
disabledDate(time) { |
|
|
|
let oneDay = 3600 * 1000 * 24 * 5 |
|
|
|
return Date.now() < time.getTime() || time.getTime() < Date.now() - oneDay |
|
|
|
} |
|
|
|
}, |
|
|
|
viewTitle: '', |
|
|
|
index: 0, |
|
|
|
tableKey: 0, |
|
|
@ -278,7 +288,8 @@ export default { |
|
|
|
scmFiles: [], |
|
|
|
vehicleList: [], |
|
|
|
vehicleOrderSid: '', |
|
|
|
orgPath: '' |
|
|
|
orgPath: '', |
|
|
|
priceDate: '' |
|
|
|
}, |
|
|
|
rules: {}, |
|
|
|
submitdisabled: false |
|
|
@ -720,10 +731,6 @@ export default { |
|
|
|
}, |
|
|
|
saveEdit() { |
|
|
|
this.getUrl() |
|
|
|
if (this.formobj.departureDate === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '厂家发车日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.onceFreight === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '一次运费不能为空' }) |
|
|
|
return |
|
|
@ -732,6 +739,14 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因一次运费不能为零,请完善一次运费' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.departureDate === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '厂家发车日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.orgPriceDate === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '公司入库日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.freightChecked) { |
|
|
|
this.formobj.deductionFreight = 0 |
|
|
|
} else { |
|
|
@ -792,14 +807,6 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '采购订单编号不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.priceDate === '' || this.formobj.priceDate === null) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '厂家入库日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.departureDate === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '物流发车日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.onceFreight === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '一次运费不能为空' }) |
|
|
|
return |
|
|
@ -808,6 +815,18 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因一次运费不能为零,请完善一次运费' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.priceDate === '' || this.formobj.priceDate === null) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '厂家入库日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.orgPriceDate === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '公司入库日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.formobj.departureDate === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '物流发车日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
if (this.freightChecked) { |
|
|
|
this.formobj.deductionFreight = 0 |
|
|
|
} else { |
|
|
|