|
|
@ -730,6 +730,12 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '因一次运费不能为零,请完善一次运费' }) |
|
|
|
return |
|
|
|
} |
|
|
|
for (var i = 0; i < this.formobj.vehicleList.length; i++) { |
|
|
|
if (this.formobj.vehicleList[i].vinNo !== '' && this.formobj.vehicleList[i].engineNo === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '车架号:' + this.formobj.vehicleList[i].vinNo + '的发动机号不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.freightChecked) { |
|
|
|
this.formobj.deductionFreight = 0 |
|
|
|
} else { |
|
|
@ -804,6 +810,12 @@ export default { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '物流发车日期不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
for (var k = 0; k < this.formobj.vehicleList.length; k++) { |
|
|
|
if (this.formobj.vehicleList[k].vinNo !== '' && this.formobj.vehicleList[k].engineNo === '') { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '车架号:' + this.formobj.vehicleList[k].vinNo + '的发动机号不能为空' }) |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.freightChecked) { |
|
|
|
this.formobj.deductionFreight = 0 |
|
|
|
} else { |
|
|
|