Procházet zdrojové kódy

修改板材计算

chencc před 1 rokem
rodič
revize
3316d87726

+ 7 - 5
src/views/productionPlan/components/factoryAdd/index.vue

@@ -971,8 +971,7 @@ export default {
               row.moCount;
               row.moCount;
 
 
 
 
-
-            row.blockCount = blockCount;
+            row['blockCount'] = num;
             // this.$set(row, 'blockCount', blockCount);
             // this.$set(row, 'blockCount', blockCount);
 
 
 
 
@@ -1027,7 +1026,8 @@ export default {
             );
             );
 
 
             // 48 480  4807 480
             // 48 480  4807 480
-            this.$set(this.form, 'moCount', num)
+            row.moCount= num
+
           } else if (row.productName.includes('砌块')) {
           } else if (row.productName.includes('砌块')) {
 
 
             row.moCount = Math.ceil(
             row.moCount = Math.ceil(
@@ -1038,6 +1038,7 @@ export default {
             );
             );
 
 
           }
           }
+
         } else if (name === 'blockCount') {
         } else if (name === 'blockCount') {
           //块数
           //块数
           // row.blockCount = row.moCount;
           // row.blockCount = row.moCount;
@@ -1052,8 +1053,8 @@ export default {
                 Math.floor(120 / modeHight) *
                 Math.floor(120 / modeHight) *
                 Math.floor(60 / modeWide))
                 Math.floor(60 / modeWide))
             );
             );
-            this.$set(this.form, 'moCount', moCount);
-
+    
+            row.moCount = moCount;
           } else if (row.productName.includes('砌块')) {
           } else if (row.productName.includes('砌块')) {
             let moCount = Math.ceil(
             let moCount = Math.ceil(
               row.blockCount /
               row.blockCount /
@@ -1062,6 +1063,7 @@ export default {
               )
               )
             );
             );
             this.$set(this.form, 'moCount', moCount);
             this.$set(this.form, 'moCount', moCount);
+            row.moCount = moCount;
           }
           }
 
 
           let a =
           let a =