Przeglądaj źródła

报价单驾意险完善

祁鹏飞 1 miesiąc temu
rodzic
commit
93809af05d

+ 2 - 1
src/views/insurancePolicy/modules/quotation.vue

@@ -130,7 +130,8 @@ const tableData = computed(() => {
   if (quoteResult?.costs?.biPremium) arr.push({ total: true, title: '商业险合计保费', premium: quoteResult.costs.biPremium })
   if (quoteResult?.costs?.ciPremium) arr.push({ total: true, title: '机动车交通事故责任强制保险', premium: quoteResult.costs.ciPremium })
   if (quoteResult?.costs?.vvTax) arr.push({ total: true, title: '车船税', premium: quoteResult.costs.vvTax })
-  const drivings = props.quotationObj.projectList?.[props.quotationObj.productIndex]?.drivings ?? []
+  let product = props.quotationObj.projectList?.find((v, i) => props.quotationObj.productIndex === i)
+  const drivings = product?.drivings ?? props.quotationObj.insurancePlanInfo?.drivings ?? []
   if (drivings.length > 0) {
     for (let i = 0; i < drivings.length; i++) {
       const element = drivings[i];

+ 1 - 0
src/views/insurancePolicy/order.vue

@@ -768,6 +768,7 @@ const handleQuotationView = async (row: any) => {
     ...data,
     logo: data.insCompanyVo[0]?.logo,
     nameSimple: data.insCompanyVo[0]?.nameSimple,
+    insurancePlanInfo: data.accidentalDrivings,
     quoteResult: data
   }
   const { carInfoVo, ownersInfo, policyHolderInfo, insuredPersonInfo, biRiskInfoVo, ciRiskInfoVo } = data