From 6899706ec595493b550e2a769a6552967bef26c4 Mon Sep 17 00:00:00 2001 From: x_z Date: Thu, 30 Jun 2022 11:34:49 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=8F=B3=E4=B8=8A=E8=A7=92?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=86=E4=BB=93=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/index.vue | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 815ed6c..446d20c 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -373,7 +373,6 @@ export default { }, getCompanyData() { this.employName = this.$store.state.admin.employeeName; - console.log(this.employName + "--------------"); this.loading = true; let tquery = { customerId: store.getters.customerId, @@ -440,30 +439,14 @@ export default { .then((response) => { if (response.code == 20000) { this.userInfo = response.data; + this.locInvName = this.userInfo.locInvName; + this.locSubInvName = this.userInfo.locSubInvName; if (this.$isBlank(this.userInfo.locInvCode)) { this.selInvVisible = true; } else { this.$store.commit(types.RECEIVE_LOCINVCODE, this.userInfo.locInvCode); this.$store.commit(types.RECEIVE_LOCSUBINVCODE, this.userInfo.locSubInvCode); - this.subInvList.forEach( - item => { - if (item.code == this.userInfo.locSubInvCode) { - this.locSubInvName = item.name; - } - - } - ); - - this.storageList.forEach( - item => { - if (item.code == this.userInfo.locInvCode) { - this.locInvName = item.name; - } - - } - ); - this.getStorage(); } }