|
@ -94,7 +94,7 @@ const managementList = ref([]) |
|
|
const jobStatus = ref('') |
|
|
const jobStatus = ref('') |
|
|
const isAllReceived = ref(false) |
|
|
const isAllReceived = ref(false) |
|
|
const operation = ref('') |
|
|
const operation = ref('') |
|
|
const scanedPackingNumber = ref('') |
|
|
const scanMessage = ref('') |
|
|
const status = ref('') |
|
|
const status = ref('') |
|
|
const switchCode = ref('') |
|
|
const switchCode = ref('') |
|
|
const isCheckLocation = ref('purchaseReceiptLocationCodeValidate') // 校验收货库位 |
|
|
const isCheckLocation = ref('purchaseReceiptLocationCodeValidate') // 校验收货库位 |
|
@ -106,6 +106,7 @@ const comReceiptDetailCardRef = ref() |
|
|
const count = ref(0) |
|
|
const count = ref(0) |
|
|
onLoad((option) => { |
|
|
onLoad((option) => { |
|
|
id.value = option.id |
|
|
id.value = option.id |
|
|
|
|
|
scanMessage.value = option.scanMessage |
|
|
scanedPackingNumber.value = option.scaned || '' |
|
|
scanedPackingNumber.value = option.scaned || '' |
|
|
status.value = option.status || '' |
|
|
status.value = option.status || '' |
|
|
operation.value = option.operation |
|
|
operation.value = option.operation |
|
@ -189,21 +190,9 @@ const getDetail = () => { |
|
|
toLocationCode.value = jobToLocationCode.value |
|
|
toLocationCode.value = jobToLocationCode.value |
|
|
} |
|
|
} |
|
|
isAllReceived.value = false |
|
|
isAllReceived.value = false |
|
|
nextTick(() => { |
|
|
if (scanMessage.value) { |
|
|
detailSource.value.forEach((r) => { |
|
|
scanPopup.value.simulateScan(scanMessage.value) |
|
|
r.subList.forEach((s) => { |
|
|
|
|
|
if (scanedPackingNumber.value && scanedPackingNumber.value == s.packingNumber) { |
|
|
|
|
|
s.scaned = true |
|
|
|
|
|
s.cancleScanedHiht = true |
|
|
|
|
|
s.copyContent = `HPQ;V1.0;I${s.itemCode};P${s.packingNumber};B${s.batch};Q${s.qty}` |
|
|
|
|
|
scanPopup.value.simulateScan(s) |
|
|
|
|
|
scanedPackingNumber.value = '' |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
count.value++ |
|
|
|
|
|
isAllReceived.value = false |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
showMessage('列表数据为0') |
|
|
showMessage('列表数据为0') |
|
|
} |
|
|
} |
|
@ -226,7 +215,7 @@ const getScanResult = (result) => { |
|
|
var itemDetail = detail.subList.filter((r) => r.containerNumber == containerNumber) |
|
|
var itemDetail = detail.subList.filter((r) => r.containerNumber == containerNumber) |
|
|
if (itemDetail.length == 0) { |
|
|
if (itemDetail.length == 0) { |
|
|
showErrorMessage(`物料【${itemCode}】、托码【${containerNumber}】不在列表中`) |
|
|
showErrorMessage(`物料【${itemCode}】、托码【${containerNumber}】不在列表中`) |
|
|
} else if (!itemDetail[0].cancleScanedHiht && itemDetail[0].scaned) { |
|
|
} else if (itemDetail[0].scaned) { |
|
|
showErrorMessage(`物料【${itemCode}】、托码【${containerNumber}】已经扫描`) |
|
|
showErrorMessage(`物料【${itemCode}】、托码【${containerNumber}】已经扫描`) |
|
|
} else { |
|
|
} else { |
|
|
itemDetail.forEach((item) => { |
|
|
itemDetail.forEach((item) => { |
|
@ -268,7 +257,7 @@ const getScanResult = (result) => { |
|
|
|
|
|
|
|
|
if (isExit == undefined) { |
|
|
if (isExit == undefined) { |
|
|
showMessage(`箱码【${packingNumber}】、批次【${batch}】不在列表中`) |
|
|
showMessage(`箱码【${packingNumber}】、批次【${batch}】不在列表中`) |
|
|
} else if (!isExit.cancleScanedHiht && isExit.scaned) { |
|
|
} else if (isExit.scaned) { |
|
|
showMessage(`箱码【${packingNumber}】已经扫描`) |
|
|
showMessage(`箱码【${packingNumber}】已经扫描`) |
|
|
} else { |
|
|
} else { |
|
|
isExit.scaned = true |
|
|
isExit.scaned = true |
|
@ -284,7 +273,7 @@ const getScanResult = (result) => { |
|
|
scanedLength++ |
|
|
scanedLength++ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (!itemDetail.cancleScanedHiht && itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
if (itemDetail.scaned && scanedLength == itemDetail.packList.length) { |
|
|
showMessage(`箱码【${packingNumber}】已经扫描`) |
|
|
showMessage(`箱码【${packingNumber}】已经扫描`) |
|
|
} else { |
|
|
} else { |
|
|
itemDetail.scaned = true |
|
|
itemDetail.scaned = true |
|
|