From 3be0b0919439728e6b020f6163fac7f08e72d294 Mon Sep 17 00:00:00 2001 From: chenhc <2369838784@qq.com> Date: Wed, 11 Sep 2024 15:24:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/collect/CollectOrderNew.vue | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/views/collect/CollectOrderNew.vue b/src/views/collect/CollectOrderNew.vue index 60a39178..accc42e1 100644 --- a/src/views/collect/CollectOrderNew.vue +++ b/src/views/collect/CollectOrderNew.vue @@ -296,7 +296,8 @@ export default { showSearch: true, filterQuery: { - tagStatus: "1", // + tagStatus: this.tagStatus, // + tagStatusList: this.tagStatusList, // billNo: null, busType: null, workPlaceCode: null, @@ -439,6 +440,7 @@ export default { getList() { this.loading = true; + console.log(this.filterQuery) orderPage(this.filterQuery).then(res => { this.loading = false this.list = res.data.list || [] @@ -450,6 +452,19 @@ export default { }) } , + getList2(_this) { + _this.loading = true; + orderPage(_this.filterQuery).then(res => { + _this.loading = false + _this.list = res.data.list || [] + _this.total = res.data.total || 0 + }).catch(() => { + _this.loading = false + _this.list = [] + _this.total = 0 + }) + } + , handleCurrentChange(val) { this.filterQuery.page = val.page; this.getList(); @@ -570,14 +585,14 @@ export default { errorHandle(params) .then((response) => { if (response.code == 20000) { - this.getList(); + this.getList2(_this); _this.$message.success("处理成功!") } else if (response.code == 520) { _this.$message.error(response.message); - this.getList(); + this.getList2(_this); } else { _this.$message.error(response.message); - this.getList(); + this.getList2(_this); } }) .catch(() => {