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) {