Explorar el Código

转包装数量向上取整

yusheng hace 1 año
padre
commit
4b1ff1f7a1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/views/warehouseManagement/stockManagement/add.vue

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

@@ -2075,12 +2075,14 @@ export default {
             }
           } else {
             let pNum = row.packingQuantity;
+            // console.log(row.packingQuantity,'row.packingQuantity')
+            // return
             //拆包
             const { data } = await storageApi.getAssetNum([
               {
                 assetCode: row.categoryCode + row.index,
                 batchNum: row.batchNo,
-                num: pNum,
+                num: Math.ceil(pNum),
               }
             ]);