From c1df1d5c633ab59ebb4d47a2bf1705c5609cfaf4 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Tue, 10 Jan 2023 16:05:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/DialogcChangeNewOrder.vue | 23 +++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/src/views/business/DialogcChangeNewOrder.vue b/src/views/business/DialogcChangeNewOrder.vue index c5d0074..fcb3898 100644 --- a/src/views/business/DialogcChangeNewOrder.vue +++ b/src/views/business/DialogcChangeNewOrder.vue @@ -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++) {