|
@@ -1132,7 +1132,7 @@ const submitMove = () => {
|
|
|
showToast('请输入有效的移库数量')
|
|
showToast('请输入有效的移库数量')
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
- if (Number(productInfo.actualMoveQty) >= Number(productInfo.moveQty)) {
|
|
|
|
|
|
|
+ if (Number(productInfo.actualMoveQty) > Number(productInfo.moveQty)) {
|
|
|
scanError()
|
|
scanError()
|
|
|
showToast('移库数量不能大于可移库数量')
|
|
showToast('移库数量不能大于可移库数量')
|
|
|
return
|
|
return
|
|
@@ -1143,13 +1143,14 @@ 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, ownerCode, owner, sku } = currentInventoryData.value || {}
|
|
|
|
|
|
|
+ const { traceId, lotNumber, ownerCode, owner, sku } = currentInventoryData.value || {}
|
|
|
|
|
+ console.log(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,
|
|
|
|
|
|
|
+ lotNum: lotNumber,
|
|
|
warehouse,
|
|
warehouse,
|
|
|
quantity: Number(productInfo.actualMoveQty),
|
|
quantity: Number(productInfo.actualMoveQty),
|
|
|
toLocation: productInfo.targetLocationNew
|
|
toLocation: productInfo.targetLocationNew
|