|
|
@ -368,6 +368,10 @@ const onScan = (result) => { |
|
|
|
} |
|
|
|
if (toLocation.value && result.package.packUnit) { |
|
|
|
const item = toLocation.value.Items.find((r) => r.itemCode == result.package.itemCode) |
|
|
|
if(!item){ |
|
|
|
showErrorMessage('扫描物料代码不属于该任务'); |
|
|
|
return |
|
|
|
} |
|
|
|
if (result.package.packUnit !== item.packUnit) { |
|
|
|
comMessageRef.value.showQuestionMessage(`扫描物料包装【${result.package.packUnit}】与任务推荐包装规格【${item.packUnit}】不一致.是否要继续发料?`, (res) => { |
|
|
|
if (res) { |
|
|
|