From ed9ab5e9018182b360746efd1524866621110ee6 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Mon, 19 Dec 2022 18:39:05 +0800 Subject: [PATCH] =?UTF-8?q?0412=20=E6=96=B0=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/production/scheduleForSOTask.vue | 4 +++- src/views/modules/production/scheduleForShopOrder.vue | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/modules/production/scheduleForSOTask.vue b/src/views/modules/production/scheduleForSOTask.vue index 14d8a89..a66ccd8 100644 --- a/src/views/modules/production/scheduleForSOTask.vue +++ b/src/views/modules/production/scheduleForSOTask.vue @@ -631,9 +631,10 @@ }else { data.weight=Math.round( data.scheduleQty*this.schedulingModalData.weightFactor) } + } this.schedulingModalTableData.push(data) - this.sumQty += this.schedulingModalData.scheduleQty + this.changeSum (); }, changeSum () { let sum = 0 @@ -718,6 +719,7 @@ flag=true; } } + if(flag){ this.$confirm(`派工日期不是排产日期,是否继续`, '提示', { confirmButtonText: '确定', diff --git a/src/views/modules/production/scheduleForShopOrder.vue b/src/views/modules/production/scheduleForShopOrder.vue index a1e05c6..dc12cb8 100644 --- a/src/views/modules/production/scheduleForShopOrder.vue +++ b/src/views/modules/production/scheduleForShopOrder.vue @@ -700,9 +700,10 @@ }else { data.weight=Math.round( data.scheduleQty*this.schedulingModalData.weightFactor) } + } this.schedulingModalTableData.push(data) - this.sumQty += this.schedulingModalData.scheduleQty + this.changeSum (); }, changeSum () { let sum = 0