From 42d11045620f74b1afd1811ed3e582a41556aa14 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Mon, 13 Feb 2023 15:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/stock/already.vue | 9 +++ pages/stock/record.vue | 172 +++++++++++++++++++++++++--------------- 2 files changed, 119 insertions(+), 62 deletions(-) diff --git a/pages/stock/already.vue b/pages/stock/already.vue index 24378a2..c57690d 100644 --- a/pages/stock/already.vue +++ b/pages/stock/already.vue @@ -98,6 +98,8 @@ export default { return{ searchVal:{ baseId: "1611250480973049857"||this.$store.state.plantBaseInfoId, + userId:"", + enterpriseId:"", search: "", pageNo:1, pageSize:6, @@ -107,6 +109,13 @@ 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 5b2baa9..536b11f 100644 --- a/pages/stock/record.vue +++ b/pages/stock/record.vue @@ -1,63 +1,88 @@