From 2828aa818becb92096f3c1850e590dfe8e0d0773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AD=A3=E6=98=93?= Date: Mon, 28 Jul 2025 15:38:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=93=E5=AD=98=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E5=9C=A8=E6=8A=9B=E5=85=89=E5=BA=93=E5=AD=98=E5=92=8C=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=80=A7=E5=90=88=E6=A0=BC=E5=93=81=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=88=AA=E6=AD=A2=E6=97=A5=E6=9C=9F=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为抛光库存和一次性合格品管理页面添加截止日期筛选功能,方便用户按时间范围查询数据 --- .../WmOneTimeQualifiedProduct/index.vue | 18 +++++++++++++----- .../wmsManagement/WmPolishInventory/index.vue | 18 +++++++++++++----- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/views/wmsManagement/WmOneTimeQualifiedProduct/index.vue b/src/views/wmsManagement/WmOneTimeQualifiedProduct/index.vue index 37d7763..49e0f5e 100644 --- a/src/views/wmsManagement/WmOneTimeQualifiedProduct/index.vue +++ b/src/views/wmsManagement/WmOneTimeQualifiedProduct/index.vue @@ -22,6 +22,9 @@ + + + 搜索 重置 @@ -280,10 +283,11 @@ export default { showSearch: true, // 查询参数 queryParams: { - pageNum: 1, - pageSize: 10, - status: 1, - type: 1, + pageNum: 1, + pageSize: 10, + status: 1, + type: 1, + endTime: '', sort: 'updatedTime', sortType: 'desc', }, @@ -409,7 +413,11 @@ export default { // 查询数据 getList() { this.loading = true - listWmOneTimeInventory(this.queryParams).then((res) => { + const params = { ...this.queryParams } + if (params.endTime) { + params.endTime = this.$dayjs(params.endTime).format('YYYY-MM-DD HH:mm:ss') + } + listWmOneTimeInventory(params).then((res) => { if (res.code == 200) { this.dataList = res.data.result this.total = res.data.total diff --git a/src/views/wmsManagement/WmPolishInventory/index.vue b/src/views/wmsManagement/WmPolishInventory/index.vue index d43e906..43874a9 100644 --- a/src/views/wmsManagement/WmPolishInventory/index.vue +++ b/src/views/wmsManagement/WmPolishInventory/index.vue @@ -22,6 +22,9 @@ + + + 搜索 重置 @@ -265,10 +268,11 @@ export default { showSearch: true, // 查询参数 queryParams: { - pageNum: 1, - pageSize: 10, - status: 1, - type: 1, + pageNum: 1, + pageSize: 10, + status: 1, + type: 1, + endTime: '', sort: 'updatedTime', sortType: 'desc', }, @@ -394,7 +398,11 @@ export default { // 查询数据 getList() { this.loading = true - listWmPolishInventory(this.queryParams).then((res) => { + const params = { ...this.queryParams } + if (params.endTime) { + params.endTime = this.$dayjs(params.endTime).format('YYYY-MM-DD HH:mm:ss') + } + listWmPolishInventory(params).then((res) => { if (res.code == 200) { this.dataList = res.data.result this.total = res.data.total