Browse Source

报价时核保成功不显示核保按钮

祁鹏飞 2 months ago
parent
commit
852d1272c4
1 changed files with 7 additions and 8 deletions
  1. 7 8
      src/views/insurancePolicy/index.vue

+ 7 - 8
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">
@@ -1099,12 +1099,12 @@
                             <div class="Factor-item flex a-c f-c ">
                               <span class="item-header flex a-c ">交强续保</span>
                               <span>{{ ['', '新保', '续保', '转保'][Number(scope.row.quoteResult?.scoreVo?.jqRenewal)] || '--'
-                              }}</span>
+                                }}</span>
                             </div>
                             <div class="Factor-item flex a-c f-c ">
                               <span class="item-header flex a-c ">商业续保</span>
                               <span>{{ ['', '新保', '续保', '转保'][Number(scope.row.quoteResult?.scoreVo?.syRenewal)] || '--'
-                              }}</span>
+                                }}</span>
                             </div>
                             <div class="Factor-item flex a-c f-c ">
                               <span class="item-header flex a-c ">总折扣率</span>
@@ -1247,8 +1247,9 @@
                     @click="handleSubmit(InsurancePolicyRefs, scope.row)">计算保费</el-button>
                   <el-button v-if="scope.row.quoteCode == 200" link type="primary"
                     @click="handleShare(scope.row.quoteResult.ordersNo)">分享</el-button>
-                  <el-button v-if="scope.row.quoteCode == 200" link type="primary" :loading="scope.row.loading"
-                    @click="handleUnderwriting(scope)">核保</el-button>
+                  <el-button
+                    v-if="scope.row.quoteCode == 200 && !(scope.row.quoteResult?.quoteStatus == 4 || scope.row.quoteResult?.order?.orderStatus == 4)"
+                    link type="primary" :loading="scope.row.loading" @click="handleUnderwriting(scope)">核保</el-button>
                   <el-button
                     v-if="scope.row.quoteResult?.quoteStatus == 4 || scope.row.quoteResult?.order?.orderStatus == 4"
                     link type="primary" @click="handlePayment(scope.row.quoteResult.ordersNo)">支付码</el-button>
@@ -2260,7 +2261,6 @@ const licenseNoDataCancel = () => {
 const licenseNoDataSubmit = () => {
   if (selectRowData.value && 'ratedPassengerCapacity' in selectRowData.value) {
     const carData = selectRowData.value as CarInfo;
-    console.log("🚀 ~ licenseNoDataSubmit ~ carData:", carData)
     insurancePolicyForm.value.seatCount = carData.ratedPassengerCapacity
     insurancePolicyForm.value.brandName = carData.modelName
     insurancePolicyForm.value.carModelNo = carData.modelCode
@@ -3048,7 +3048,6 @@ const handlePayment = (scope: any) => {
 // 优惠测算
 let calculatingShow = ref(false)
 const handleCount = (scope: any) => {
-  console.log("🚀 ~ handleCount ~ scope:", scope)
   calculatingShow.value = true
   discounts.value = scope.row.discounts
 }