|
|
|
@ -499,7 +499,9 @@ export default {
|
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
|
if (this.subInvList != null && this.subInvList.length == 1) {
|
|
|
|
|
this.formData.invWarehouseCode = this.subInvList[0].code;
|
|
|
|
|
this.formData.locStorageCode = this.subInvList[0].parentId;
|
|
|
|
|
this.getBusType();
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
@ -514,30 +516,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//往来仓库
|
|
|
|
|
findStorageMethod() {
|
|
|
|
|
if (this.formData.locStorageCode == null)
|
|
|
|
|
return;
|
|
|
|
|
this.fromStorageOptions = [];
|
|
|
|
|
let cQuery = {
|
|
|
|
|
locInvCode: this.formData.locStorageCode,
|
|
|
|
|
};
|
|
|
|
|
filterAllByLoc(cQuery)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
let temp = response.data || [];
|
|
|
|
|
for (let i = 0; i < temp.length; i++) {
|
|
|
|
|
if (temp[i].code != this.formData.locStorageCode) {
|
|
|
|
|
this.fromStorageOptions.push(temp[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//往来分库
|
|
|
|
|
findSubStorageMethod() {
|
|
|
|
|
debugger
|
|
|
|
|
let cQuery = {
|
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
|
filter: 2,
|
|
|
|
@ -918,7 +901,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
this.formData.locStorageCode = item;
|
|
|
|
|
this.$forceUpdate();
|
|
|
|
|
this.findStorageMethod();
|
|
|
|
|
this.findSubInvs();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -960,7 +942,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
this.getBusType();
|
|
|
|
|
this.findSubInvs();
|
|
|
|
|
this.findSubStorageMethod();
|
|
|
|
|
|
|
|
|
|
// this.findSubInvByInv();
|
|
|
|
|
this.codeArray = [];
|
|
|
|
|
this.closeConfirmFunction(false);
|
|
|
|
|