|
|
|
@ -588,11 +588,31 @@ export default { |
|
|
|
this.$alert('请输入栈板编码', '提示', { confirmButtonText: '确定' }) |
|
|
|
return |
|
|
|
} |
|
|
|
// 只看本次扫入的托盘码,不用接口回写后的托盘号判断B面 - rqrq |
|
|
|
const scannedCode = this.palletCode.trim() |
|
|
|
if (!scannedCode.toUpperCase().endsWith('B')) { |
|
|
|
this.$alert('扫描的条码不是B面,请确认托盘方向是否正确', '提示', { |
|
|
|
confirmButtonText: '确认', |
|
|
|
showClose: false, |
|
|
|
closeOnClickModal: false, |
|
|
|
closeOnPressEscape: false |
|
|
|
}).then(() => { |
|
|
|
this.submitPalletScan(scannedCode) |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
this.submitPalletScan(scannedCode) |
|
|
|
}, |
|
|
|
// 确认提示之后才校验托盘;非B面只提醒,确认后仍按原扫码继续组盘 - rqrq |
|
|
|
submitPalletScan(scannedCode) { |
|
|
|
if (!scannedCode || this.interfaceBusy) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.palletScanLoading = true |
|
|
|
// 组盘入库场景 sortFlag=0:后端拦截手工分拣区/被分拣站栈板,并按区域 pack_able 处理后续扫标签 - rqrq |
|
|
|
checkPalletExists({ |
|
|
|
site: this.site, |
|
|
|
palletId: this.palletCode.trim(), |
|
|
|
palletId: scannedCode, |
|
|
|
sortFlag: 0 |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
|