From 2d18ce4c37445d4e6d3b6e3bb29d6ecc0b9cf310 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 17 Mar 2023 14:51:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=85=A5=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue index 6935527f73..7462711d39 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/ruzhangguanliFlow/ruzhangguanli/ruzhangEdit.vue @@ -747,6 +747,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 { @@ -827,6 +833,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 {