Browse Source

库位合并

zh 3 months ago
parent
commit
24fdde4f58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/robot/merge/index.vue

+ 2 - 2
src/views/robot/merge/index.vue

@@ -412,7 +412,7 @@ const onBarcodeEnter = async () => {
       productInfo.productionDate = inventoryData.lotAtt01
       productInfo.expiryDate = inventoryData.lotAtt02
       // 可移库数量
-      const availableQty = inventoryData.quantityAvailable || 0
+      const availableQty = inventoryData.quantityAvailable + inventoryData.quantityVirtual
       productInfo.moveQty = availableQty
       // 计算推荐移库数量:取可移库数量和任务推荐数量的最小值
       const taskRecommendQty = getTaskRecommendQty(sourceLocation.value)
@@ -1039,7 +1039,7 @@ const queryInventoryBySku = async (sku: string, location: string) => {
       productInfo.productionDate = inventoryData.lotAtt01
       productInfo.expiryDate = inventoryData.lotAtt02
       // 可移库数量
-      const availableQty = inventoryData.quantityAvailable || 0
+      const availableQty = inventoryData.quantityAvailable + inventoryData.quantityVirtual
       productInfo.moveQty = availableQty
       // 计算推荐移库数量:取可移库数量和任务推荐数量的最小值
       const taskRecommendQty = getTaskRecommendQty(location)