委托验收补单问题,单独分库默认第一个

fengcang
anthonyywj2 3 years ago
parent 677fba049a
commit 235cca9dea

@ -194,7 +194,7 @@ export default {
}, },
storageList: [], storageList: [],
subInvList: [], subInvList: [],
entrustSubInvList:[], entrustSubInvList: [],
entrustStorageList: [], entrustStorageList: [],
orderTypeList: [], orderTypeList: [],
fromSpecialOptions: [], fromSpecialOptions: [],
@ -270,7 +270,8 @@ export default {
findEntrustSubInvByInv() { findEntrustSubInvByInv() {
this.entrustSubInvList = []; this.entrustSubInvList = [];
let query = { let query = {
pcode: this.inputQuery.entrustInv pcode: this.inputQuery.entrustInv,
filter: 2,
}; };
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
@ -312,7 +313,7 @@ export default {
this.getEntrustStorage(); this.getEntrustStorage();
}, },
subInvChange(){ subInvChange() {
this.getOrderType(); this.getOrderType();
}, },
@ -323,7 +324,7 @@ export default {
}, },
entrustSubInvChange(){ entrustSubInvChange() {
let query = { let query = {
code: this.inputQuery.entrustSubInv, code: this.inputQuery.entrustSubInv,

File diff suppressed because it is too large Load Diff

@ -373,7 +373,7 @@ export default {
}, },
getCompanyData() { getCompanyData() {
this.employName = this.$store.state.admin.employeeName; this.employName = this.$store.state.admin.employeeName;
console.log( this.employName +"--------------"); console.log(this.employName + "--------------");
this.loading = true; this.loading = true;
let tquery = { let tquery = {
customerId: store.getters.customerId, customerId: store.getters.customerId,
@ -413,7 +413,7 @@ export default {
}, },
locCHange() { locCHange() {
if(this.$isNotBlank(this.userInfo.locSubInvCode)){ if (this.$isNotBlank(this.userInfo.locSubInvCode)) {
this.userInfo.locSubInvCode = ""; this.userInfo.locSubInvCode = "";
} }
this.findSubInvByInv(); this.findSubInvByInv();
@ -427,6 +427,9 @@ export default {
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
this.subInvList = response.data || []; this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
this.userInfo.locSubInvCode = this.subInvList[0];
}
}) })
.catch(() => { .catch(() => {
@ -548,7 +551,7 @@ export default {
} }
}); });
}, },
changeInv(){ changeInv() {
this.selInvVisible = true; this.selInvVisible = true;
}, },
}, },

@ -966,6 +966,9 @@ export default {
filterSubByInv(query) filterSubByInv(query)
.then((response) => { .then((response) => {
this.subInvList = response.data || []; this.subInvList = response.data || [];
if (this.subInvList != null && this.subInvList.length == 1) {
this.formData.invWarehouseCode = this.subInvList[0];
}
}) })
.catch(() => { .catch(() => {
}); });

Loading…
Cancel
Save