|
|
|
@ -326,7 +326,6 @@ export default {
|
|
|
|
|
findSubInvByInv(invCode) {
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: invCode,
|
|
|
|
|
filter:3
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
@ -336,6 +335,22 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
findSubInvByInv1(){
|
|
|
|
|
let query1 = {
|
|
|
|
|
code:this.formData.invWarehouseCode,
|
|
|
|
|
filter:2
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query1)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.fromSubStorageOptions = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
findStorageMethod(query) {
|
|
|
|
|
if (this.formData.locStorageCode == null)
|
|
|
|
@ -351,9 +366,9 @@ export default {
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
findSubStorageMethod() {
|
|
|
|
|
findSubStorageMethod(val) {
|
|
|
|
|
this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId
|
|
|
|
|
this.getBusType();
|
|
|
|
|
this.formData.invWarehouseCode=val;
|
|
|
|
|
let cQuery = {
|
|
|
|
|
code: this.formData.invWarehouseCode,
|
|
|
|
|
filter: 2,
|
|
|
|
@ -364,6 +379,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
this.getBusType();
|
|
|
|
|
},
|
|
|
|
|
findMethod(query) {
|
|
|
|
|
this.fromOptions = [];
|
|
|
|
@ -425,6 +441,7 @@ export default {
|
|
|
|
|
this.formData.fromCorp = null;
|
|
|
|
|
this.formData.fromSubInvCode = null;
|
|
|
|
|
this.findMethod();
|
|
|
|
|
this.findSubInvByInv1();
|
|
|
|
|
},
|
|
|
|
|
getActionItem(action) {
|
|
|
|
|
for (let i = 0; i < this.busTypes.length; i++) {
|
|
|
|
|