From d5dcc90a8eee77ca7a8b514e6455dd378cb82431 Mon Sep 17 00:00:00 2001 From: wangwei <1610949092@qq.com> Date: Wed, 11 Jan 2023 09:27:08 +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/thrsys/thrOrderNew.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/thrsys/thrOrderNew.vue b/src/views/thrsys/thrOrderNew.vue index 60387e7..f26415a 100644 --- a/src/views/thrsys/thrOrderNew.vue +++ b/src/views/thrsys/thrOrderNew.vue @@ -480,6 +480,7 @@ export default { }, subStorageChange(item) { // this.formData.fromSubInvCode = null; + this.formData.fromSubInvCode=item; this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId this.formData.corpId=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).code this.formData.corpName=this.subInvList.find(item => item.code == this.formData.invWarehouseCode).warehouseName @@ -499,10 +500,12 @@ export default { this.subInvList = response.data || []; if (this.subInvList != null && this.subInvList.length == 1) { this.formData.invWarehouseCode = this.subInvList[0].code; + this.findSubStorageMethod(); } }) .catch(() => { }); + }, getActionName(action) { @@ -516,11 +519,11 @@ export default { //往来分库 findSubStorageMethod() { - let cQuery = { + let query = { code: this.formData.invWarehouseCode, filter: 2, }; - filterSubByInv(cQuery) + filterSubByInv(query) .then((response) => { this.fromSubStorageOptions = response.data || []; }) @@ -528,7 +531,6 @@ export default { }); }, - submitFunction(status) { let tMessage = status === '501' ? '保存' : '提交'; this.loading = true; @@ -615,7 +617,7 @@ export default { rData.forEach((obj, index) => { this.codeArray.unshift(obj); }); - console.log(this.codeArray); + this.$refs.multipleTable.setCurrentRow(this.codeArray[0]); this.currentRow = this.codeArray[0]; this.selectedIndex = 0; @@ -632,7 +634,7 @@ export default { }, getFromSubStorageCode(){ - // this.formData.locStorageCode= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).parentId + //this.formData.locStorageCode= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).parentId }, iCountEnterFunction() { if (this.$isNotBlank(this.currentRow)) { @@ -890,7 +892,6 @@ export default { }; }, created() { - if (this.$isNotBlank(this.idQuery.id)) { this.query.limit = 100; this.query.orderIdFk = this.idQuery.id; @@ -915,7 +916,6 @@ export default { this.orderEditor = false; // this.generateBillNo(); } - this.getBusType(); this.findSubInvs(); if (!isBlank(this.formData.invWarehouseCode)) {