|
|
|
@ -546,6 +546,7 @@ export default { |
|
|
|
|
|
|
|
// 重置页面到初始状态 - rqrq |
|
|
|
resetPage() { |
|
|
|
this.sortingList = [] |
|
|
|
// 清空栈板信息 |
|
|
|
this.palletCode = ''; |
|
|
|
this.palletScanned = false; |
|
|
|
@ -1145,7 +1146,7 @@ export default { |
|
|
|
// 扫进操作新增:校验标签是否在分拣明细中 - rqrq |
|
|
|
if (this.sortingList.length === 0) { |
|
|
|
// 如果sortingList为空,先获取分拣明细 - rqrq |
|
|
|
console.log('sortingList为空,开始获取分拣明细 - rqrq'); |
|
|
|
// console.log('sortingList为空,开始获取分拣明细 - rqrq'); |
|
|
|
|
|
|
|
getSortingList({ |
|
|
|
site: this.site, |
|
|
|
@ -1153,7 +1154,7 @@ export default { |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.sortingList = data.rfidList || []; |
|
|
|
console.log('分拣明细获取成功 - rqrq,共' + this.sortingList.length + '条'); |
|
|
|
// console.log('分拣明细获取成功 - rqrq,共' + this.sortingList.length + '条'); |
|
|
|
this.$nextTick(() => { |
|
|
|
// 获取成功后,继续校验标签 - rqrq |
|
|
|
this.validateAndScanIn(); |
|
|
|
@ -1550,10 +1551,10 @@ export default { |
|
|
|
palletId: this.palletCode |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.sortingList = []; |
|
|
|
this.$message.success('数据已推送到WCS系统'); |
|
|
|
// 清空sortingList,表示本次分拣结束 - rqrq |
|
|
|
this.sortingList = []; |
|
|
|
console.log('提交分拣成功,已清空sortingList - rqrq'); |
|
|
|
// console.log('提交分拣成功,已清空sortingList - rqrq'); |
|
|
|
// 清空页面数据,初始化页面 |
|
|
|
// this.resetPage(); |
|
|
|
} else { |
|
|
|
@ -1667,9 +1668,9 @@ export default { |
|
|
|
palletId: this.palletCode |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.$message.success('结束分拣成功,已创建送货任务'); |
|
|
|
// 清空页面数据,初始化页面 - rqrq |
|
|
|
this.resetPage(); |
|
|
|
this.$message.success('结束分拣成功,已创建送货任务'); |
|
|
|
} else { |
|
|
|
this.$alert(data.msg || '结束分拣失败', '错误', { confirmButtonText: '确定' }); |
|
|
|
} |
|
|
|
|