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

fencang
x_z 3 years ago
parent fc5dac5fc1
commit 0842528611

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

Loading…
Cancel
Save