From 8d522af997eebea11d2f8f318875a8fd9445e282 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Tue, 14 Feb 2023 18:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/stock/already.vue | 9 --------- pages/stock/record.vue | 10 +--------- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/pages/stock/already.vue b/pages/stock/already.vue index 380dc64..f270093 100644 --- a/pages/stock/already.vue +++ b/pages/stock/already.vue @@ -107,8 +107,6 @@ export default { return{ searchVal:{ baseId: this.$store.state.plantBaseInfoId, - userId:"", - enterpriseId:"", flagGroupBy:'n', search: "", pageNo:1, @@ -119,13 +117,6 @@ export default { } }, onLoad(options){ - if (this.$store.getters['userInfo'].roleCode=="baseAdmin") { - this.searchVal.userId = this.$store.getters['userInfo'].id - this.searchVal.enterpriseId = '' - } else { - this.searchVal.enterpriseId = this.$store.getters.userInfo.companyId - this.searchVal.userId = '' - } this.search() }, methods:{ diff --git a/pages/stock/record.vue b/pages/stock/record.vue index 8edb94e..d130e5b 100644 --- a/pages/stock/record.vue +++ b/pages/stock/record.vue @@ -166,8 +166,7 @@ export default { data(){ return{ searchVal:{ - userId: '', - enterpriseId: '', + baseId: this.$store.state.plantBaseInfoId, pageNo:1, pageSize:6, type:"1"//1 农资,2 农产品 @@ -177,13 +176,6 @@ export default { } }, onLoad(options){ - if (this.$store.getters['userInfo'].roleCode=="baseAdmin") { - this.searchVal.userId = this.$store.getters['userInfo'].id - this.searchVal.enterpriseId = '' - } else { - this.searchVal.enterpriseId = this.$store.getters['userInfo'].companyId - this.searchVal.userId = '' - } this.search() }, methods:{