From fcf19fd4e00dd308a70dac84c85d9ddfa7f8f93a Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Thu, 14 Sep 2023 17:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E5=9D=AF=E8=AE=A2=E5=8D=95=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/workorder/index.vue | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/views/plan/workorder/index.vue b/src/views/plan/workorder/index.vue index 26e7516f..42134916 100644 --- a/src/views/plan/workorder/index.vue +++ b/src/views/plan/workorder/index.vue @@ -387,7 +387,7 @@ - + @@ -521,7 +521,7 @@ export default { productDate: null, shiftId: null, routeCode: null, - carNum: null, + carNum: 0, }, // 遮罩层 loading: true, @@ -628,7 +628,10 @@ export default { message: '车数不能超过拆分数量!', type: 'warning' }) - this.splitForm.carNum = this.splitForm.splitNum; + console.log("拆分数量") + console.log(this.splitForm.splitNum) + num = this.splitForm.splitNum + this.splitForm.carNum = num; } // 不能为负数 if (num <= 0) { @@ -636,9 +639,10 @@ export default { message: '车数数量不能小于0!', type: 'warning' }) - this.splitForm.carNum = 1; + num = 1; + this.splitForm.carNum = num; } - this.splitForm.carNum = num; + this.workForm.carNum = num; }, // 派发-工单派发按钮操作 handleUpdateDown(row) { @@ -681,6 +685,7 @@ export default { productDate: null, shiftId: null, routeCode: null, + carNum: null } this.formFields = [] @@ -731,12 +736,13 @@ export default { this.splitForm.splitNum = this.splitData[0].quantitySplit // 设置选择机型 this.splitForm.prodLineCodeArray = response.data.workOrder.prodLineCodeArray + // 设置车数 + this.splitForm.carNum = this.splitData[0].carNum // 设置班次 this.splitForm.shiftId = this.splitData[0].shiftDesc // 设置工艺 this.splitForm.routeCode = this.splitData[0].routeCode - // 设置车数 - this.splitForm.carNum = this.splitData[0].carNum + // 订单为白坯 if (this.productData[0].prodType == 'white'){ @@ -994,7 +1000,8 @@ export default { splitNum: this.workForm.splitNum, product: this.productData[0], routeCode: this.workForm.routeCode, - proOrderWorkorder: this.selectWork + proOrderWorkorder: this.selectWork, + carNum: this.workForm.carNum, } subChangeWorkOrder(data).then(response => { @@ -1014,7 +1021,8 @@ export default { splitNum: null, productDate: null, shiftId: null, - formFields: [] + formFields: [], + carNum: null } this.formFields = [{ batchCode: '',