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