瀏覽代碼

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend-wms into dev

liujt 7 月之前
父節點
當前提交
ebe1138fe8
共有 1 個文件被更改,包括 1 次插入13 次删除
  1. 1 13
      src/views/warehouseManagement/stockManagement/add.vue

+ 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(