1.修复右上角用户分仓不显示的问题

fengcang
x_z 3 years ago
parent b86f23004e
commit 6899706ec5

@ -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();
}
}

Loading…
Cancel
Save