From 225e42828f55318889e26d8f0f2c7e68bbff41bb Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Fri, 8 Jul 2022 14:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ReceivingRecords/index.vue | 43 ++++++++++++++++------------ src/views/Statistics/index.vue | 4 +-- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue index 6db7a02..24c4bb5 100644 --- a/src/views/ReceivingRecords/index.vue +++ b/src/views/ReceivingRecords/index.vue @@ -3,11 +3,7 @@
-
- 项目选择: -
+
项目选择:
-
- 筛选时间: -
+
筛选时间:
- - 导出 + 导出
@@ -412,7 +403,7 @@ @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" - :page-sizes="[10, 20,30,40, 50,100]" + :page-sizes="[10, 20, 30, 40, 50, 100]" :page-size="size" layout="total, sizes, prev, pager, next, jumper" :total="total" @@ -612,7 +603,7 @@ export default { this.searchForm.endDate = this.time[1]; console.log("时间"); } - + if (this.$route.query.validInvalid) { this.searchForm.validInvalid = this.$route.query.validInvalid; } @@ -623,17 +614,24 @@ export default { this.searchForm.dateType = this.$route.query.dateType; } if (this.$route.query.staDate) { - // this.searchForm.dateType = this.$route.query.dateType; this.searchForm.staDate = this.$route.query.staDate; } if (this.$route.query.endDate) { - // this.searchForm.dateType = this.$route.query.dateType; this.searchForm.endDate = this.$route.query.endDate; } if (this.$route.query.houseId) { this.searchForm.projectId = this.$route.query.houseId; } + if ( + this.$route.query.endDate && + this.$route.query.staDate && + this.time.length == 0 + ) { + this.searchForm.dateType = null; + this.time = [this.$route.query.staDate, this.$route.query.endDate]; + } + // 获取项目列表 this.zkhousePage(); }, @@ -658,7 +656,7 @@ export default { this.searchForm.endDate = this.time[1]; console.log("时间"); } - + if (this.$route.query.validInvalid) { this.searchForm.validInvalid = this.$route.query.validInvalid; } @@ -669,17 +667,24 @@ export default { this.searchForm.dateType = this.$route.query.dateType; } if (this.$route.query.staDate) { - // this.searchForm.dateType = this.$route.query.dateType; this.searchForm.staDate = this.$route.query.staDate; } if (this.$route.query.endDate) { - // this.searchForm.dateType = this.$route.query.dateType; this.searchForm.endDate = this.$route.query.endDate; } if (this.$route.query.houseId) { this.searchForm.projectId = this.$route.query.houseId; } + if ( + this.$route.query.endDate && + this.$route.query.staDate && + this.time.length == 0 + ) { + this.searchForm.dateType = null; + this.time = [this.$route.query.staDate, this.$route.query.endDate]; + } + this.rec_index_show = this.permissions["rec_index_show"]; this.rec_index_text = this.permissions["rec_index_text"]; this.rec_index_voice = this.permissions["rec_index_voice"]; diff --git a/src/views/Statistics/index.vue b/src/views/Statistics/index.vue index 95a5136..1706688 100644 --- a/src/views/Statistics/index.vue +++ b/src/views/Statistics/index.vue @@ -258,7 +258,7 @@ export default { if (i == 1) { if (this.TimetoAhoose == 6) { Router.push( - `/ReceivingRecords/index?validInvalid=0&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}` + `/ReceivingRecords/index?validInvalid=0&staDate=${this.customtime[0]}&endDate=${this.customtime[1]} 23:59:59&houseId=${this.houseId}` ); } else { if (this.TimetoAhoose == 0) { @@ -278,7 +278,7 @@ export default { } else if (i == 2) { if (this.TimetoAhoose == 6) { Router.push( - `/ReceivingRecords/index?validInvalid=0&markAdvisor=1&staDate=${this.fromobj.starttime}&endDate=${this.fromobj.endoftime} 23:59:59&houseId=${this.houseId}` + `/ReceivingRecords/index?validInvalid=0&markAdvisor=1&staDate=${this.customtime[0]}&endDate=${this.customtime[1]} 23:59:59&houseId=${this.houseId}` ); } else { if (this.TimetoAhoose == 0) {