This commit is contained in:
linfso 2025-02-19 09:44:34 +08:00
parent 529546a763
commit fed91e2842

View File

@ -476,9 +476,15 @@ export default {
if(resBatch.code==200){ if(resBatch.code==200){
if(resBatch.rows&&resBatch.rows.length>0){ if(resBatch.rows&&resBatch.rows.length>0){
// billCodeStr=resBatch.rows.map( item=> item.billCode).join(); // billCodeStr=resBatch.rows.map( item=> item.billCode).join();
this.form.billRelList=[];
let uniqMap = new Map();
resBatch.rows.forEach(itemWaybill=>{ resBatch.rows.forEach(itemWaybill=>{
let relItem={...itemWaybill}; let relItem={...itemWaybill};
this.form.billRelList.push(relItem); if(!(relItem.billCode in uniqMap)){
uniqMap[relItem.billCode]=1;
this.form.billRelList.push(relItem);
}
}); });
} }
} }