Browse Source

fix(automatedWarehouse): 解决分拣功能中的数据初始化和日志清理问题

- 在resetPage方法中添加sortingList数组的清空操作
- 移除分拣明细获取相关的调试日志输出
- 调整消息提示的执行顺序确保正确的状态重置
- 统一数据推送成功后的列表清空逻辑
master
常熟吴彦祖 2 days ago
parent
commit
371ca22137
  1. 11
      src/views/modules/automatedWarehouse/palletSorting.vue
  2. 3
      src/views/modules/automatedWarehouse/palletSortingNoAgv.vue

11
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: '确定' });
}

3
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();

Loading…
Cancel
Save