Quellcode durchsuchen

外部协议 添加费用-报错问题修复

祁鹏飞 vor 3 Wochen
Ursprung
Commit
2cc2a00ec5

+ 4 - 1
src/views/externalAgreement/agreement/components/contactPersonFeeDialog.vue

@@ -296,7 +296,10 @@ const costExternalList = () => {
 //选择对接人
 const contactPersonChange = (value: string) => {
   let info = contactPersonList.value.find((val: any) => val.contactMobile == value);
-  ruleFeeinfo.ptlAgreementCostExternalAddList = info.costExternalListVo;
+  ruleFeeinfo.ptlAgreementCostExternalAddList = ruleFeeinfo.ptlAgreementCostExternalAddList.map(v=>{
+    const obj= info.costExternalListVo.find(k=>k.productId===v.productId)
+    return obj || v
+  });
   activeName.value = ruleFeeinfo.ptlAgreementCostExternalAddList[0].productName;
   ruleFeeinfo.contactMobile = info.contactMobile
   ruleFeeinfo.contactPerson = info.contactPerson