From ca33c87ba44908dfdb34a2fdbcef628098c12594 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Thu, 14 Apr 2022 17:51:38 +0800 Subject: [PATCH] =?UTF-8?q?cosmoim-852=20fix=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/handover/feeding/create.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/pages/raw/handover/feeding/create.vue b/src/pages/raw/handover/feeding/create.vue index 1252e86..408d4e2 100644 --- a/src/pages/raw/handover/feeding/create.vue +++ b/src/pages/raw/handover/feeding/create.vue @@ -131,7 +131,9 @@ export default class RawReceiptDetail extends BasePage { materialCode: any = ''; async propoWindow() { this.show = !this.show; - // await this.query(); + if (this.obj != undefined) { + this.PopupList = this.obj[0]; + } if (this.PopupList.length == 0) { this.PageShow = false; } else { @@ -141,6 +143,7 @@ export default class RawReceiptDetail extends BasePage { async query() { this.PageShow = false; this.PopupList = []; + this.obj = undefined; let params = { prdOrder: this.prdOrder, materialCode: this.materialCode, @@ -166,17 +169,14 @@ export default class RawReceiptDetail extends BasePage { } selectItem(e: any) { console.log(e); - this.PopupList.forEach((item: any) => { - if (item.checked) { - this.some = item; - } - }); } onOk() { let flag = false; - this.PopupList.forEach((item: any) => { + let dataIndex = 0; + this.PopupList.forEach((item: any, index: any) => { if (item.checked) { flag = true; + dataIndex = index; } }); if (flag == false) { @@ -186,6 +186,7 @@ export default class RawReceiptDetail extends BasePage { }); return; } + this.some = this.PopupList[dataIndex]; this.show = !this.show; this.prdOrder = ''; this.materialCode = '';