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

fengcang
anthonyywj2 3 years ago
parent 677fba049a
commit 235cca9dea

@ -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) => {

@ -1189,6 +1189,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(() => {
}); });

@ -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(() => {

@ -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