From d6309c5d8f67109cf3da6718e11322f78bf00dc6 Mon Sep 17 00:00:00 2001 From: zhoulei Date: Tue, 14 Dec 2021 17:35:28 +0800 Subject: [PATCH] =?UTF-8?q?feat=20dn=E6=94=B6=E8=B4=A7=20=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=9B=9E=E4=BC=A0=E4=BF=AE=E6=94=B9=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/ingoods/dnReceipt/dnReceiving.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue index f8b58d2..246d9e6 100644 --- a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue +++ b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue @@ -23,7 +23,7 @@ {{ $t('message.Purchase') }} - + @@ -132,6 +132,7 @@ export default class dnReceiptDom extends BasePage { wlCode: any = ''; //所选择的采购单号 poNo: any = ''; + poNoCode: any = ''; //上传 upload: any = []; //页面初始化 @@ -193,6 +194,12 @@ export default class dnReceiptDom extends BasePage { poListChoice(e: any) { console.log('选择采购单后触发的回调事件::', 'poListChoice:::', e); // 赋值采购单号 + this.poList.some((item, index) => { + if (item.poNo === e.pickerName.value) { + this.poNoCode = index; + return true; + } + }); this.poNo = e.pickerName.value; this.materialList = this.removeDuplicates(this.material); this.materialList.forEach((item: any) => { @@ -205,6 +212,12 @@ export default class dnReceiptDom extends BasePage { //选择物料后触发的回调事件 本次数量:receiptAmount 需求数量:requestAmount materialChoice(e: any) { this.every = e.pickerName; + this.materialList.some((item, index) => { + if (item.poNo === e.pickerName.value) { + this.wlCode = index; + return true; + } + }); } //选择库位后触发的回调事件 LocationChoice(e: any) {