fix:返回物料中poNo为选中的项

master
zhoulei 4 years ago
parent 48a10261d7
commit 36140e4b56

@ -205,11 +205,14 @@ export default class dnReceiptDom extends BasePage {
// //
poListChoice(e: any) { poListChoice(e: any) {
this.poNo = e.pickerName.value; this.poNo = e.pickerName.value;
//
this.materialList = JSON.parse(JSON.stringify(this.removeDuplicates(this.material, 'materialCode'))); 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) { if (item.poNo == e.pickerName.value) {
item.label = item.materialCode; item.label = item.materialCode;
item.value = item.materialCode; item.value = item.materialCode;
return true;
} }
}); });
} }

Loading…
Cancel
Save