|
@@ -58,7 +58,7 @@
|
|
|
<div class="cell label label-small">属性仓</div>
|
|
<div class="cell label label-small">属性仓</div>
|
|
|
<div class="cell value value-large">{{ productInfo.warehouseType }}</div>
|
|
<div class="cell value value-large">{{ productInfo.warehouseType }}</div>
|
|
|
<div class="cell label label-small">批号</div>
|
|
<div class="cell label label-small">批号</div>
|
|
|
- <div class="cell value value-small"></div>
|
|
|
|
|
|
|
+ <div class="cell value value-small">{{ productInfo.lotNumber }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="table-row">
|
|
<div class="table-row">
|
|
|
<div class="cell label">生产日期</div>
|
|
<div class="cell label">生产日期</div>
|
|
@@ -408,11 +408,11 @@ const onBarcodeEnter = async () => {
|
|
|
productInfo.barcode = inventoryData.barcode || inventoryData.barcode2
|
|
productInfo.barcode = inventoryData.barcode || inventoryData.barcode2
|
|
|
productInfo.qualityStatus = inventoryData.lotAtt08
|
|
productInfo.qualityStatus = inventoryData.lotAtt08
|
|
|
productInfo.warehouseType = inventoryData.lotAtt05
|
|
productInfo.warehouseType = inventoryData.lotAtt05
|
|
|
- productInfo.batchNo = inventoryData.lotNumber
|
|
|
|
|
|
|
+ productInfo.lotNumber = inventoryData.lotAtt04 || ''
|
|
|
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)
|
|
@@ -472,7 +472,7 @@ const resetProductInfo = () => {
|
|
|
productInfo.barcode = ''
|
|
productInfo.barcode = ''
|
|
|
productInfo.qualityStatus = ''
|
|
productInfo.qualityStatus = ''
|
|
|
productInfo.warehouseType = ''
|
|
productInfo.warehouseType = ''
|
|
|
- productInfo.batchNo = ''
|
|
|
|
|
|
|
+ productInfo.lotNumber = ''
|
|
|
productInfo.productionDate = ''
|
|
productInfo.productionDate = ''
|
|
|
productInfo.expiryDate = ''
|
|
productInfo.expiryDate = ''
|
|
|
productInfo.moveQty = ''
|
|
productInfo.moveQty = ''
|
|
@@ -617,7 +617,7 @@ const productInfo = reactive({
|
|
|
barcode: '',
|
|
barcode: '',
|
|
|
qualityStatus: '',
|
|
qualityStatus: '',
|
|
|
warehouseType: '',
|
|
warehouseType: '',
|
|
|
- batchNo: '',
|
|
|
|
|
|
|
+ lotNumber: '', // 批号,取lotAtt04
|
|
|
productionDate: '',
|
|
productionDate: '',
|
|
|
expiryDate: '',
|
|
expiryDate: '',
|
|
|
moveQty: '', // 可移库数量(库存可用数量)
|
|
moveQty: '', // 可移库数量(库存可用数量)
|
|
@@ -1035,11 +1035,11 @@ const queryInventoryBySku = async (sku: string, location: string) => {
|
|
|
productInfo.barcode = inventoryData.barcode || inventoryData.barcode2
|
|
productInfo.barcode = inventoryData.barcode || inventoryData.barcode2
|
|
|
productInfo.qualityStatus = inventoryData.lotAtt08
|
|
productInfo.qualityStatus = inventoryData.lotAtt08
|
|
|
productInfo.warehouseType = inventoryData.lotAtt05
|
|
productInfo.warehouseType = inventoryData.lotAtt05
|
|
|
- productInfo.batchNo = inventoryData.lotNumber
|
|
|
|
|
|
|
+ productInfo.lotNumber = inventoryData.lotAtt04 || ''
|
|
|
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)
|
|
@@ -1143,13 +1143,13 @@ const submitMove = () => {
|
|
|
message: `${productInfo.barcode}从"${sourceLocation.value}"移动至"${productInfo.targetLocationNew}"共:${productInfo.actualMoveQty}件`
|
|
message: `${productInfo.barcode}从"${sourceLocation.value}"移动至"${productInfo.targetLocationNew}"共:${productInfo.actualMoveQty}件`
|
|
|
})
|
|
})
|
|
|
.then(() => {
|
|
.then(() => {
|
|
|
- const { traceId, lotNum, lotNumber, ownerCode, owner, sku } = currentInventoryData.value || {}
|
|
|
|
|
|
|
+ const { traceId, lotNum, ownerCode, owner, sku } = currentInventoryData.value || {}
|
|
|
const data = {
|
|
const data = {
|
|
|
fmLocation: sourceLocation.value,
|
|
fmLocation: sourceLocation.value,
|
|
|
fmContainer: traceId || boxCode.value,
|
|
fmContainer: traceId || boxCode.value,
|
|
|
owner: ownerCode || owner || '',
|
|
owner: ownerCode || owner || '',
|
|
|
sku: sku || productInfo.barcode,
|
|
sku: sku || productInfo.barcode,
|
|
|
- lotNum: lotNum || lotNumber || productInfo.batchNo || '',
|
|
|
|
|
|
|
+ lotNum: lotNum,
|
|
|
warehouse,
|
|
warehouse,
|
|
|
quantity: Number(productInfo.actualMoveQty),
|
|
quantity: Number(productInfo.actualMoveQty),
|
|
|
toLocation: productInfo.targetLocationNew
|
|
toLocation: productInfo.targetLocationNew
|