diff --git a/src/views/home/index.vue b/src/views/home/index.vue index c621c66..d1e413e 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -433,32 +433,14 @@ export default { .then((response) => { if (response.code == 20000) { this.userInfo = response.data; + this.title = this.userInfo.employeeName + "(" + this.userInfo.locInvName + " " + 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.$store.commit(types.RECEIVE_LOCINVNAME, this.locInvName); this.$store.commit(types.RECEIVE_LOCSUBINVNAME, this.locSubInvName); - this.title = this.$store.state.admin.employeeName + "(" + this.locInvName + " " + this.locSubInvName + ")"; this.getStorage(); } }