From db05e4bafdb3f889aafb74bebdcc611a7f178e17 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: Mon, 23 Mar 2026 17:19:42 +0800 Subject: [PATCH] =?UTF-8?q?perf(App):=20=E4=BC=98=E5=8C=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=85=B3=E9=97=AD=E6=A3=80=E6=B5=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将页面关闭检测延迟时间从50ms调整为100ms - 提高区分页面刷新和真实关闭的准确性 - 改进自动退出登录触发机制 --- src/views/modules/warehouse/labelQuery.vue | 42 ++++++++++++++++++- .../modules/warehouse/labelQueryLocation.vue | 27 +++++++++++- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git a/src/views/modules/warehouse/labelQuery.vue b/src/views/modules/warehouse/labelQuery.vue index 8f11c25..da74bbd 100644 --- a/src/views/modules/warehouse/labelQuery.vue +++ b/src/views/modules/warehouse/labelQuery.vue @@ -9,6 +9,14 @@ + + + + + + + + @@ -102,9 +110,14 @@ 未入库 {{ scope.row.inStockFlag }} - + {{ formatDate(scope.row[item.columnProp]) }} + + Y + N + {{ scope.row.countFlag }} + {{ scope.row.reserveFlag === 'Y' ? '是' : '否' }} @@ -411,6 +424,26 @@ export default { showOverflowTooltip: true, fixed: "" }, + { + columnProp: "countFlag", + headerAlign: "center", + align: "center", + columnLabel: "本期盘点", + columnWidth: 90, + columnSortable: false, + showOverflowTooltip: true, + fixed: "" + }, + { + columnProp: "lastCountDate", + headerAlign: "center", + align: "center", + columnLabel: "最后盘点日期", + columnWidth: 150, + columnSortable: false, + showOverflowTooltip: true, + fixed: "" + }, { columnProp: "printCount", headerAlign: "center", @@ -514,11 +547,13 @@ export default { ], queryHeaderData: { inStockFlag: '', + countFlag: '', partNo: '', batchNo: '', locationId: '', unitId: '', partDesc: '', + sourceType: '', startDate: '', endDate: '', }, @@ -625,11 +660,13 @@ export default { resetQuery() { this.queryHeaderData = { inStockFlag: '', + countFlag: '', partNo: '', batchNo: '', locationId: '', unitId: '', partDesc: '', + sourceType: '', startDate: '', endDate: '', } @@ -755,7 +792,8 @@ export default { inStockFlag: item.inStockFlag === 'Y' ? '在库' : item.inStockFlag === 'N' ? '已出库' : item.inStockFlag === 'X' ? '未入库' : item.inStockFlag, reserveFlag: item.reserveFlag === 'Y' ? '是' : '否', lastPrintDate: this.formatDate(item.lastPrintDate), - createdDate: this.formatDate(item.createdDate) + createdDate: this.formatDate(item.createdDate), + lastCountDate: this.formatDate(item.lastCountDate) } }) } diff --git a/src/views/modules/warehouse/labelQueryLocation.vue b/src/views/modules/warehouse/labelQueryLocation.vue index 68cf877..76a249b 100644 --- a/src/views/modules/warehouse/labelQueryLocation.vue +++ b/src/views/modules/warehouse/labelQueryLocation.vue @@ -9,6 +9,14 @@ + + + + + + + + @@ -74,6 +82,14 @@ {{ scope.row.reserveFlag === 'Y' ? '是' : '否' }} + + {{ formatDate(scope.row.lastCountDate) }} + + + Y + N + {{ scope.row.countFlag }} + {{ scope.row[item.columnProp] }} @@ -142,9 +158,12 @@ export default { {columnProp: "engChgLevel", headerAlign: "center", align: "center", columnLabel: "版本号", columnWidth: 80, columnSortable: false, showOverflowTooltip: true, fixed: ""}, {columnProp: "expiredDate", headerAlign: "center", align: "center", columnLabel: "失效日期", columnWidth: 120, columnSortable: false, showOverflowTooltip: true, fixed: ""}, {columnProp: "receiveDate", headerAlign: "center", align: "center", columnLabel: "接收日期", columnWidth: 120, columnSortable: false, showOverflowTooltip: true, fixed: ""}, + {columnProp: "countFlag", headerAlign: "center", align: "center", columnLabel: "本期盘点", columnWidth: 90, columnSortable: false, showOverflowTooltip: true, fixed: ""}, + {columnProp: "lastCountDate", headerAlign: "center", align: "center", columnLabel: "最后盘点日期", columnWidth: 150, columnSortable: false, showOverflowTooltip: true, fixed: ""}, ], queryHeaderData: { inStockFlag: 'Y', + countFlag: '', partNo: '', batchNo: '', locationId: '', @@ -251,11 +270,14 @@ export default { resetQuery() { this.queryHeaderData = { inStockFlag: 'Y', + countFlag: '', partNo: '', batchNo: '', locationId: '', unitId: '', - partDesc: '' + partDesc: '', + stationArea: '', + palletId: '' } this.pageIndex = 1 this.getDataList() @@ -311,7 +333,8 @@ export default { return (data.page.list || []).map(item => { return { ...item, - reserveFlag: item.reserveFlag === 'Y' ? '是' : '否' + reserveFlag: item.reserveFlag === 'Y' ? '是' : '否', + lastCountDate: this.formatDate(item.lastCountDate) } }) }