Browse Source

判断物料代码 2024/8/6

hella_vue3
王志国 1 month ago
parent
commit
fd6c6b4c10
  1. 4
      src/pages/issue/coms/comScanIssuePack.vue

4
src/pages/issue/coms/comScanIssuePack.vue

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

Loading…
Cancel
Save