From 820cb30e56654e091cdd6dd7cd67afd703c5b52b Mon Sep 17 00:00:00 2001 From: yinq Date: Wed, 29 Nov 2023 15:01:28 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E5=B7=A5=E5=BA=8F/=E5=B7=A5?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/base/processStation/index.vue | 2 +- src/views/base/productStation/index.vue | 18 +++++++++++--- .../report/inventoryStatistics/index.vue | 2 +- src/views/report/repairMeasures/index.vue | 24 +++++++++++++------ 4 files changed, 34 insertions(+), 12 deletions(-) diff --git a/src/views/base/processStation/index.vue b/src/views/base/processStation/index.vue index 932da9d..2031ce9 100644 --- a/src/views/base/processStation/index.vue +++ b/src/views/base/processStation/index.vue @@ -273,7 +273,7 @@ export default { }; }, created() { - if (!this.$route.params){ + if (this.$route.params != null){ this.queryParams.productLineCode = this.$route.params && this.$route.params.productLineCode; } this.getList(); diff --git a/src/views/base/productStation/index.vue b/src/views/base/productStation/index.vue index 6d4098b..d0a9048 100644 --- a/src/views/base/productStation/index.vue +++ b/src/views/base/productStation/index.vue @@ -2,7 +2,8 @@
- + + + + + + + 搜索 重置 @@ -267,9 +278,10 @@ export default { }; }, created() { - console.log(this.$route.params) - if (this.$route.params != null){ + if (this.$route.params.productLineCode != null){ this.queryParams.parentId = this.$route.params && this.$route.params.productLineCode; + } + if (this.$route.params.processCode != null){ this.queryParams.processCode = this.$route.params && this.$route.params.processCode; } this.getList(); diff --git a/src/views/report/inventoryStatistics/index.vue b/src/views/report/inventoryStatistics/index.vue index 490f875..b61e39b 100644 --- a/src/views/report/inventoryStatistics/index.vue +++ b/src/views/report/inventoryStatistics/index.vue @@ -122,7 +122,7 @@ export default { } }, created() { - if (!this.$route.params){ + if (this.$route.params != null){ this.queryParams.storeCode = this.$route.params && this.$route.params.storeCode; } this.getList() diff --git a/src/views/report/repairMeasures/index.vue b/src/views/report/repairMeasures/index.vue index 669dc60..232fa74 100644 --- a/src/views/report/repairMeasures/index.vue +++ b/src/views/report/repairMeasures/index.vue @@ -68,7 +68,11 @@ - + + +