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:{