Przeglądaj źródła

计算计量数量;

yijing 1 rok temu
rodzic
commit
79d77c92cf

+ 5 - 2
src/views/warehouseManagement/stockManagement/add.vue

@@ -856,16 +856,19 @@ export default {
           // total = Number(row.packingQuantity) * row.netWeight;
           console.log(total, '22')
         } else {
+          let num = 0;
           for (; startIndex < endIndex; endIndex--) {
-            total = this.$math.format(
+            // total = 
+            num = this.$math.format(
               row.packingSpecificationOption[endIndex].packageCell * total,
               14
             );
           }
+          console.log(num, 'numnumnum')
+          total = Number(num);
           console.log(total, '333')
         }
 
-
         // 判断单位和计量单位是否为不拆物料层规格
         let packingBoolen = !!this.getDict('不拆物料层规格', row.packingUnit)
           .dictValue;