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