2213980799@qq.com 1 tahun lalu
induk
melakukan
8a3ce309db
1 mengubah file dengan 2 tambahan dan 6 penghapusan
  1. 2 6
      src/views/saleOrder/salesToProduction.vue

+ 2 - 6
src/views/saleOrder/salesToProduction.vue

@@ -623,11 +623,7 @@ export default {
           res.produceRoutingId || this.$route.query.produceRoutingId;
         this.form.salesOrders.map((item, index) => {
           if (this.clientEnvironmentId == '4') {
-            if (item.productName.includes('板材')) {
-              this.tableHandleKeyUp(item, '', item.lackNum, 'blockCount');
-            } else {
-              this.tableHandleKeyUp(item, '', item.lackNum, 'moCount');
-            }
+            this.tableHandleKeyUp(item, '', item.lackNum, 'sum');
           } else {
             item.planProductNum = item.lackNum;
             item.requiredFormingNum = item.lackNum;
@@ -855,7 +851,7 @@ export default {
             (Number(e) * modelLong * modeWide * modeHight) / 1000000;
         }
       }
-      row.planProductNum = Number(row.planProductNum);
+
       row.requiredFormingNum =Number(row.planProductNum *  (this.form.marginCoefficient || 1)).toFixed(5);
  
     },