Browse Source

保费反显完善

祁鹏飞 2 months ago
parent
commit
fe62dac35a
1 changed files with 13 additions and 10 deletions
  1. 13 10
      src/views/insurancePolicy/index.vue

+ 13 - 10
src/views/insurancePolicy/index.vue

@@ -976,7 +976,7 @@
                                     :value="item.value"></el-option>
                                 </el-select>
                                 <span v-if="props.row.kindName == '乘客责任险'">*{{ insurancePolicyForm.seatCount - 1
-                                  }}/座</span>
+                                }}/座</span>
                               </div>
                             </template>
                           </el-table-column>
@@ -1046,7 +1046,7 @@
                           <el-table-column label="产品名称" prop="productName" align="center">
                             <template #default="props">
                               <el-button link type="primary" @click="getJYXDetail(props.row)">{{ props.row.productName
-                                }}</el-button>
+                              }}</el-button>
                             </template>
                           </el-table-column>
                           <el-table-column label="数量" align="center">
@@ -2693,15 +2693,18 @@ const getSchemeResult = () => {
     quoteData.value.forEach((item: any) => {
       if (item.id === insurancePolicyForm.value.order.insuranceCompanyCode) {
         item.productIndex = 0;
-        if(myRoute.query.orderNo){
+        if (myRoute.query.orderNo) {
           list.forEach((item2: any) => {
-            item2.kinds=item2.kinds.map((v: any)=>{
-              const obj=item.insurancePlanInfo.kinds.find((kind: any) => kind.kindCode === v.kindCode)
-              return{
-                ...v,
-                premium:obj.premium
-              }
-            })
+            if (item2.schemeType === "1") {
+              item2.kinds = item2.kinds.map((v: any) => {
+
+                const obj = item.insurancePlanInfo.kinds.find((kind: any) => kind.kindCode === v.kindCode && kind.amount === v.amount)
+                return {
+                  ...v,
+                  premium: obj?.premium
+                }
+              })
+            }
           })
         }
         item.insurancePlanInfo = {