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