Răsfoiți Sursa

解决编辑订单时默认报价驾意险丢失的问题

祁鹏飞 2 luni în urmă
părinte
comite
3aa78d902c
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      src/views/insurancePolicy/index.vue

+ 3 - 1
src/views/insurancePolicy/index.vue

@@ -3523,7 +3523,9 @@ const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
 
   quoteData.value[companyIndex].loading = true
   let company = quoteData.value[companyIndex]
+  console.log("🚀 ~ quoteInsurance ~ company:", company)
   let product = company.projectList?.find((v, i) => val.productIndex === i)
+  console.log("🚀 ~ quoteInsurance ~ product:", product)
   // 构建提交数据
   let data = {
     systemType: '2',
@@ -3640,7 +3642,7 @@ const quoteInsurance = async (companyId: any, companyIndex: any, val: any) => {
       identifyNumber: insurancePolicyForm.value.identifyNumber,
     },
     kindInfoVo: company?.insurancePlanInfo?.kinds || [],
-    accidentalDrivings: product?.drivings || [],
+    accidentalDrivings: product?.drivings || company.insurancePlanInfo.drivings || [],
     specialInfoVo: company?.specialSelectedList || []
   }
   /** 后端编辑接口bug,前端处理 交强险产品,清空商业险种信息  勿动****** */