|
@ -113,7 +113,7 @@ const getScanResult = (result) => { |
|
|
const item = toLocation.value.Items.find((r) => r.itemCode == itemCode) |
|
|
const item = toLocation.value.Items.find((r) => r.itemCode == itemCode) |
|
|
if (item == undefined) { |
|
|
if (item == undefined) { |
|
|
showErrorMessage(`未查找到物料【${itemCode}】的翻包明细`, (res) => { |
|
|
showErrorMessage(`未查找到物料【${itemCode}】的翻包明细`, (res) => { |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
afterGetBalance(result.label, balance, packageInfo) |
|
|
afterGetBalance(result.label, balance, packageInfo) |
|
@ -136,7 +136,7 @@ const onScan = (result) => { |
|
|
const item = toLocation.value.Items.find((r) => r.itemCode == itemCode) |
|
|
const item = toLocation.value.Items.find((r) => r.itemCode == itemCode) |
|
|
if (item == undefined) { |
|
|
if (item == undefined) { |
|
|
showErrorMessage(`未查找到物料【${itemCode}】的发料明细`, (res) => { |
|
|
showErrorMessage(`未查找到物料【${itemCode}】的发料明细`, (res) => { |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
@ -194,7 +194,7 @@ const afterGetBalance = (label, balance, packageInfo) => { |
|
|
addRecord(batch, label, balance, packageInfo) |
|
|
addRecord(batch, label, balance, packageInfo) |
|
|
} else { |
|
|
} else { |
|
|
showErrorMessage(`未查找到该箱码【${packingCode}】的明细`, (res) => { |
|
|
showErrorMessage(`未查找到该箱码【${packingCode}】的明细`, (res) => { |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -219,17 +219,17 @@ const afterGetBalance = (label, balance, packageInfo) => { |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
showErrorMessage(`未查找到批次【${lot}】的翻包明细`, (res) => { |
|
|
showErrorMessage(`未查找到批次【${lot}】的翻包明细`, (res) => { |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
showErrorMessage(`未查找到推荐库位【${fromLocationCode.value}】的翻包明细`, (res) => { |
|
|
showErrorMessage(`未查找到推荐库位【${fromLocationCode.value}】的翻包明细`, (res) => { |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
showErrorMessage(e.stack, (res) => { |
|
|
showErrorMessage(e.stack, (res) => { |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -278,19 +278,8 @@ const addRecord = (batch, label, balance, packageInfo) => { |
|
|
const record = creatRecord(label, balance, packageInfo) |
|
|
const record = creatRecord(label, balance, packageInfo) |
|
|
batch.Records.push(record) |
|
|
batch.Records.push(record) |
|
|
calcBatchHandleQty(batch) |
|
|
calcBatchHandleQty(batch) |
|
|
getfocus() |
|
|
packGetFocus() |
|
|
} |
|
|
} |
|
|
// const getfocus = () => { |
|
|
|
|
|
// if (scanPopup.value) { |
|
|
|
|
|
// scanPopup.value.getfocus() |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
// |
|
|
|
|
|
// const losefocus = () => { |
|
|
|
|
|
// if (scanPopup.value) { |
|
|
|
|
|
// scanPopup.value.losefocus() |
|
|
|
|
|
// } |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
const swipeClick = (params, item) => { |
|
|
const swipeClick = (params, item) => { |
|
|
const { text } = scanOptions.value[params[1]] |
|
|
const { text } = scanOptions.value[params[1]] |
|
|