From 147bcb45200260fb098aa1c41bed604ed485f81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=98=8E=E6=A2=81?= <2429105222@qq.com> Date: Thu, 9 Mar 2023 10:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=85=E9=83=A8=E7=A0=81=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/business/stockOrder.vue | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/views/basic/business/stockOrder.vue b/src/views/basic/business/stockOrder.vue index 6762a2dc..b6dd24b2 100644 --- a/src/views/basic/business/stockOrder.vue +++ b/src/views/basic/business/stockOrder.vue @@ -307,7 +307,7 @@ export default { }); this.query = { billNo: "", - status: "3", + status: "", page: 1, limit: 10, startTime: "", @@ -322,14 +322,6 @@ export default { this.showSearch = !this.showSearch; }, onSubmit() { - if (this.actDateRange !== null) { - this.query.startTime = this.actDateRange[0]; - this.query.endTime = this.actDateRange[1]; - } else { - this.query.startTime = null; - this.query.endTime = null; - } - this.getList(); this.haveDistributionVisible = true; }, @@ -354,6 +346,13 @@ export default { getList() { this.loading = true; this.query.corpId = store.getters.customerId; + if (this.actDateRange !== null) { + this.query.startTime = this.actDateRange[0]; + this.query.endTime = this.actDateRange[1]; + } else { + this.query.startTime = null; + this.query.endTime = null; + } stockOrderList(this.query) .then(response => { this.loading = false; @@ -492,10 +491,6 @@ export default { this.getSubInvList(); this.getBusType(); this.getList(); - let end = new Date(); - let start = new Date(); - start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); - this.actDateRange = [start, end]; } }