diff --git a/src/views/warehouse/IOCheckErrOrder.vue b/src/views/warehouse/IOCheckErrOrder.vue index a0e1783..18113c2 100644 --- a/src/views/warehouse/IOCheckErrOrder.vue +++ b/src/views/warehouse/IOCheckErrOrder.vue @@ -1077,7 +1077,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -1251,6 +1251,19 @@ export default { .catch(() => { }); }, + + getSubInvList() { + let query = { + pcode: this.filterQuery.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + subInvChange() { this.getBusType(); } diff --git a/src/views/warehouse/IONewOrder.vue b/src/views/warehouse/IONewOrder.vue index 423bf8d..1e4282e 100644 --- a/src/views/warehouse/IONewOrder.vue +++ b/src/views/warehouse/IONewOrder.vue @@ -440,7 +440,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -696,6 +696,19 @@ export default { }); }, + + getSubInvList() { + let query = { + pcode: this.filterQuery.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + subInvChange() { this.getBusType(); } diff --git a/src/views/warehouse/IOSearchOrder.vue b/src/views/warehouse/IOSearchOrder.vue index 742da88..4129b33 100644 --- a/src/views/warehouse/IOSearchOrder.vue +++ b/src/views/warehouse/IOSearchOrder.vue @@ -618,7 +618,7 @@ export default { this.storageList = response.data || []; if (this.storageList.length > 0) { this.filterQuery.locStorageCode = this.storageList[0].code; - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -961,6 +961,20 @@ export default { .catch(() => { }); }, + + + getSubInvList() { + let query = { + pcode: this.filterQuery.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + subInvChange() { this.getBusType(); } diff --git a/src/views/warehouse/IOWaitOrder.vue b/src/views/warehouse/IOWaitOrder.vue index d0dbd24..8d0dea6 100644 --- a/src/views/warehouse/IOWaitOrder.vue +++ b/src/views/warehouse/IOWaitOrder.vue @@ -993,7 +993,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -1014,6 +1014,19 @@ export default { }); }, + + getSubInvList() { + let query = { + pcode: this.filterQuery.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + subInvChange() { this.getBusType(); } diff --git a/src/views/warehouse/stockOrder.vue b/src/views/warehouse/stockOrder.vue index a2c29a1..492c41e 100644 --- a/src/views/warehouse/stockOrder.vue +++ b/src/views/warehouse/stockOrder.vue @@ -812,7 +812,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -833,6 +833,20 @@ export default { .catch(() => { }); }, + + getSubInvList() { + let query = { + pcode: this.query.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + + subInvChange() { this.getBusType(); }, diff --git a/src/views/warehouse/stockOrderDelSearch.vue b/src/views/warehouse/stockOrderDelSearch.vue index 7af54fd..0fe9d1a 100644 --- a/src/views/warehouse/stockOrderDelSearch.vue +++ b/src/views/warehouse/stockOrderDelSearch.vue @@ -850,7 +850,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -871,6 +871,20 @@ export default { .catch(() => { }); }, + + getSubInvList() { + let query = { + pcode: this.query.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + + subInvChange() { this.getBusType(); }, diff --git a/src/views/warehouse/stockOrderEditor.vue b/src/views/warehouse/stockOrderEditor.vue index 91946f6..e2bae02 100644 --- a/src/views/warehouse/stockOrderEditor.vue +++ b/src/views/warehouse/stockOrderEditor.vue @@ -947,7 +947,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -967,6 +967,19 @@ export default { .catch(() => { }); }, + + getSubInvList() { + let query = { + pcode: this.query.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + subInvChange() { this.getBusType(); } diff --git a/src/views/warehouse/stockOrderNew.vue b/src/views/warehouse/stockOrderNew.vue index d29c355..6f97f2f 100644 --- a/src/views/warehouse/stockOrderNew.vue +++ b/src/views/warehouse/stockOrderNew.vue @@ -936,7 +936,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -956,6 +956,19 @@ export default { .catch(() => { }); }, + getSubInvList() { + let query = { + pcode: this.query.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + + subInvChange() { this.getBusType(); } diff --git a/src/views/warehouse/stockOrderSearch.vue b/src/views/warehouse/stockOrderSearch.vue index b2e8eca..67c37b5 100644 --- a/src/views/warehouse/stockOrderSearch.vue +++ b/src/views/warehouse/stockOrderSearch.vue @@ -936,7 +936,7 @@ export default { .then((response) => { this.storageList = response.data || []; if (this.storageList.length > 0) { - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -956,6 +956,19 @@ export default { .catch(() => { }); }, + + getSubInvList() { + let query = { + pcode: this.query.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, + subInvChange() { this.getBusType(); }, diff --git a/src/views/warehouse/stockOrderWaitCheck.vue b/src/views/warehouse/stockOrderWaitCheck.vue index 5df5972..1b7f863 100644 --- a/src/views/warehouse/stockOrderWaitCheck.vue +++ b/src/views/warehouse/stockOrderWaitCheck.vue @@ -786,7 +786,7 @@ export default { this.storageList = response.data || []; if (this.storageList.length > 0) { this.query.locStorageCode = this.storageList[0].code; - this.invChange(); + this.getSubInvList(); this.getList(); } }) @@ -806,6 +806,17 @@ export default { .catch(() => { }); }, + getSubInvList() { + let query = { + pcode: this.query.locStorageCode + }; + filterSubByInv(query) + .then((response) => { + this.subInvList = response.data || []; + }) + .catch(() => { + }); + }, subInvChange() { this.getBusType(); },