Browse Source

扫托盘校验

master
常熟吴彦祖 7 days ago
parent
commit
04269ba0b4
  1. 2
      src/api/haianAutoWarehouse/labelWriteOff.js
  2. 2
      src/views/modules/haianAutoWarehouse/haianLabelWriteOff.vue
  3. 22
      src/views/modules/haianAutoWarehouse/haianPalletPacking.vue

2
src/api/haianAutoWarehouse/labelWriteOff.js

@ -7,7 +7,7 @@ import { createAPI } from "@/utils/httpRequest.js";
export const queryLabelForWriteOff = data => createAPI(`/haiAnWcsIntegration/queryLabelForWriteOff`, 'post', data)
/**
* 海安标签特殊销账:确认后把 in_stock_flag 改成 N;标签仍在托盘明细时由后端拒绝 - rqrq
* 海安标签特殊销账:确认后把 in_stock_flag 改成 N,并把 qty 写成 0;标签仍在托盘明细时由后端拒绝 - rqrq
* @param {Object} data 必须包含 site、serialNo - rqrq
*/
export const writeOffLabel = data => createAPI(`/haiAnWcsIntegration/writeOffLabel`, 'post', data)

2
src/views/modules/haianAutoWarehouse/haianLabelWriteOff.vue

@ -33,7 +33,7 @@
<div v-if="labelInfo" class="info-section">
<div class="info-title">
<i class="el-icon-document">标签信息</i>
<!-- 原标签查询页打印按钮改为销账,确认后才改在库标识 - rqrq -->
<!-- 原标签查询页打印按钮改为销账,确认后才把在库标识改成N并把数量写成0 - rqrq -->
<button
class="print-btn"
@click="handleWriteOff"

22
src/views/modules/haianAutoWarehouse/haianPalletPacking.vue

@ -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) {

Loading…
Cancel
Save