|
|
@ -433,32 +433,14 @@ export default {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.userInfo = response.data;
|
|
|
|
this.userInfo = response.data;
|
|
|
|
|
|
|
|
this.title = this.userInfo.employeeName + "(" + this.userInfo.locInvName + " " + this.userInfo.locSubInvName + ")";
|
|
|
|
if (this.$isBlank(this.userInfo.locInvCode)) {
|
|
|
|
if (this.$isBlank(this.userInfo.locInvCode)) {
|
|
|
|
this.selInvVisible = true;
|
|
|
|
this.selInvVisible = true;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$store.commit(types.RECEIVE_LOCINVCODE, this.userInfo.locInvCode);
|
|
|
|
this.$store.commit(types.RECEIVE_LOCINVCODE, this.userInfo.locInvCode);
|
|
|
|
this.$store.commit(types.RECEIVE_LOCSUBINVCODE, this.userInfo.locSubInvCode);
|
|
|
|
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_LOCINVNAME, this.locInvName);
|
|
|
|
this.$store.commit(types.RECEIVE_LOCSUBINVNAME, this.locSubInvName);
|
|
|
|
this.$store.commit(types.RECEIVE_LOCSUBINVNAME, this.locSubInvName);
|
|
|
|
this.title = this.$store.state.admin.employeeName + "(" + this.locInvName + " " + this.locSubInvName + ")";
|
|
|
|
|
|
|
|
this.getStorage();
|
|
|
|
this.getStorage();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|