From 36140e4b56a38e9ce022cd5d71cad9354b111e42 Mon Sep 17 00:00:00 2001 From: zhoulei Date: Fri, 17 Dec 2021 14:07:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=BF=94=E5=9B=9E=E7=89=A9=E6=96=99?= =?UTF-8?q?=E4=B8=ADpoNo=E4=B8=BA=E9=80=89=E4=B8=AD=E7=9A=84=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/raw/ingoods/dnReceipt/dnReceiving.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue index 9fe274f..c5c792a 100644 --- a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue +++ b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue @@ -205,11 +205,14 @@ export default class dnReceiptDom extends BasePage { //选择采购单后触发的回调事件 poListChoice(e: any) { this.poNo = e.pickerName.value; + // 过滤重复物料 this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); - this.materialList.forEach((item: any) => { + // 返回物料中poNo为选中的项; + this.materialList = this.materialList.filter((item: any) => { if (item.poNo == e.pickerName.value) { item.label = item.materialCode; item.value = item.materialCode; + return true; } }); }