diff --git a/src/views/emis/emisTmsCostFee/emisTmsCostFeeForm.vue b/src/views/emis/emisTmsCostFee/emisTmsCostFeeForm.vue index 17a74a48..b2c86450 100644 --- a/src/views/emis/emisTmsCostFee/emisTmsCostFeeForm.vue +++ b/src/views/emis/emisTmsCostFee/emisTmsCostFeeForm.vue @@ -476,9 +476,15 @@ export default { if(resBatch.code==200){ if(resBatch.rows&&resBatch.rows.length>0){ // billCodeStr=resBatch.rows.map( item=> item.billCode).join(); + this.form.billRelList=[]; + let uniqMap = new Map(); resBatch.rows.forEach(itemWaybill=>{ let relItem={...itemWaybill}; - this.form.billRelList.push(relItem); + if(!(relItem.billCode in uniqMap)){ + uniqMap[relItem.billCode]=1; + this.form.billRelList.push(relItem); + } + }); } }