diff --git a/src/views/modules/automatedWarehouse/palletSorting.vue b/src/views/modules/automatedWarehouse/palletSorting.vue index 351ebb5..cde86d7 100644 --- a/src/views/modules/automatedWarehouse/palletSorting.vue +++ b/src/views/modules/automatedWarehouse/palletSorting.vue @@ -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: '确定' }); } diff --git a/src/views/modules/automatedWarehouse/palletSortingNoAgv.vue b/src/views/modules/automatedWarehouse/palletSortingNoAgv.vue index 25c6dbd..d511d2d 100644 --- a/src/views/modules/automatedWarehouse/palletSortingNoAgv.vue +++ b/src/views/modules/automatedWarehouse/palletSortingNoAgv.vue @@ -546,6 +546,7 @@ export default { // 重置页面到初始状态 - rqrq resetPage() { + this.sortingList = [] // 清空栈板信息 this.palletCode = ''; this.palletScanned = false; @@ -1551,9 +1552,9 @@ export default { palletId: this.palletCode }).then(({ data }) => { if (data.code === 0) { - this.$message.success('数据已推送到WCS系统'); // 清空sortingList,表示本次分拣结束 - rqrq this.sortingList = []; + this.$message.success('数据已推送到WCS系统'); console.log('提交分拣成功,已清空sortingList - rqrq'); // 清空页面数据,初始化页面 // this.resetPage();