Explorar el Código

解决生产入库反查数据问题

huang_an hace 2 años
padre
commit
e926d44e8a

+ 6 - 5
src/views/bpm/handleTask/components/productionWarehousing/productionWarehousing.vue

@@ -1305,13 +1305,13 @@
         });
 
         // 添加包装批号丶包装编码丶包装数量
+        const onlyCodeList = await outin.getAssetNum({
+          assetCode: list.detailList[0].categoryCode,
+          batchNum: batchNo,
+          num: list.detailList.length
+        });
         Promise.all(
           sameItemWraplist.map(async (goodsItem) => {
-            const onlyCodeList = await outin.getAssetNum({
-              assetCode: goodsItem[0].categoryCode,
-              batchNum: batchNo,
-              num: goodsItem.length
-            });
             goodsItem = goodsItem.map((wrapItem) => {
               return {
                 ...wrapItem,
@@ -1328,6 +1328,7 @@
                 clientCode: wrapItem.extInfo.clientCode,
                 num: wrapItem.quantity,
                 isPack: false,
+                packingCount: 1,
                 minPackingCount: wrapItem.quantity,
                 onlyCode: onlyCodeList.shift().onlyCode,
                 result: '0',

+ 2 - 0
src/views/bpm/stockManagement/components/WareHouseDailog.vue

@@ -252,6 +252,8 @@
               this.row.warehouseId
             );
             this.areaList = rep || [];
+            this.shelves = '';
+            this.area = '';
           }
         } else {
           if (row.houseList.length != 0) {