From 371ca22137487637a7ea0479c1f3fc021b5805fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Tue, 13 Jan 2026 16:43:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(automatedWarehouse):=20=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E5=88=86=E6=8B=A3=E5=8A=9F=E8=83=BD=E4=B8=AD=E7=9A=84=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=88=9D=E5=A7=8B=E5=8C=96=E5=92=8C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=B8=85=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在resetPage方法中添加sortingList数组的清空操作 - 移除分拣明细获取相关的调试日志输出 - 调整消息提示的执行顺序确保正确的状态重置 - 统一数据推送成功后的列表清空逻辑 --- .../modules/automatedWarehouse/palletSorting.vue | 11 ++++++----- .../modules/automatedWarehouse/palletSortingNoAgv.vue | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) 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();