yusheng 7 ay önce
ebeveyn
işleme
42e48c8f57

+ 1 - 13
src/views/warehouseManagement/stockManagement/add.vue

@@ -3292,19 +3292,7 @@
                 measureQuantity =
                   Math.trunc((row.weight / packingCodeList.length) * 100) / 100;
               } else {
-                // 处理单位不为KG类,计量单位为KG类的情况
-                let splitIndex = row.packingSpecificationOption.findIndex(
-                  (item) =>
-                    item.conversionUnit == row.packingUnit &&
-                    item.packageUnit != item.conversionUnit
-                );
-                for (; splitIndex > 0; splitIndex--) {
-                  measureQuantity = this.$math.format(
-                    measureQuantity *
-                      row.packingSpecificationOption[splitIndex].packageCell,
-                    14
-                  );
-                }
+                 measureQuantity = row.packingSpecificationOption[1].packageCell;
               }
             }
             console.log(