wuguojie 7 месяцев назад
Родитель
Сommit
c4f082bc12

+ 3 - 0
src/views/externalAgreement/costManagement.vue

@@ -240,6 +240,9 @@ const columns = [
   },
   { prop: "effectiveTime", label: "生效时间", width: '200' },
   { prop: "failureTime", label: "失效时间", width: '200' },
+  {
+      prop: "costDescribe", label: "费用描述", width: '500',
+  },
   {
     prop: "costExternalTypeAdds", label: "交强险费用", width: '300', formatter: (row: any) => {
       let info = row.costExternalTypeAdds.find((val: any) => val.costType == '交强险');

+ 33 - 7
src/views/insurancePolicy/index.vue

@@ -1086,6 +1086,18 @@
                   <img :src="scope.row.logo"/>
                   <span>{{ scope.row.name }}</span>
                 </div>
+                  <div class="company" style="margin-top: 10px;" v-if="scope.row.underwritingMsg">
+                      <span style="display: flex; align-items: center; color: #FF4545;"><el-icon style=" font-size: 14px"><Warning /></el-icon>核保失败</span>
+                      <el-popover
+                              title="提示"
+                              :content="scope.row.underwritingMsg"
+                              placement="bottom-end"
+                      >
+                          <template #reference>
+                              <el-button link type="primary">查看详情</el-button>
+                          </template>
+                      </el-popover>
+                  </div>
               </template>
             </el-table-column>
             <el-table-column label="报价协议" prop="" align="center" width="260">
@@ -1149,7 +1161,7 @@
                 </div>
               </template>
             </el-table-column>
-              <el-table-column label="费用因子" align="center">
+            <el-table-column label="费用因子" align="center">
                   <template #default="scope">
                       <div style="width: 100%;" v-if="scope.row.quoteResult?.scoreVo?.scoreJson">
                           <template v-for="(item, index) in scope.row.quoteResult?.scoreVo?.scoreJson" :key="index">
@@ -1164,9 +1176,9 @@
                               </div>
                               <div class="costFactor" v-if="scope.row.quoteResult?.scoreVo">
                                   <el-popover
-                                          :width="200"
-                                          placement="bottom"
-                                          trigger="hover"
+                                      :width="200"
+                                      placement="bottom"
+                                      trigger="hover"
                                   >
                                       <template #reference>
                                           <span style="display: flex; align-items: center">更多信息:<el-icon color="#409eff"><InfoFilled /></el-icon></span>
@@ -1312,7 +1324,8 @@
     </el-form>
     <div class="footer">
       <span>已选保司:{{ currentRow.length }}家</span>&nbsp;&nbsp;&nbsp;
-      <el-button type="primary" :loading="loading" @click="handleSubmit(InsurancePolicyRefs)">确定</el-button>
+        <el-button type="primary" :loading="loading" @click="handleSubmit(InsurancePolicyRefs)">确定</el-button>
+        <el-button type="primary" @click="handleNext">录下一单</el-button>
     </div>
     <el-dialog
       title="选择业务员"
@@ -2736,9 +2749,11 @@ const handlePopoverConfirm = async () => {
 
 // 提交核保
 let underwritingShow = ref(false)
+let underwritingIndex = ref(-1)
 const handleUnderwriting = (scope) => {
     console.log('要去核保的数据', scope.row)
   underwritingShow.value = true
+    underwritingIndex.value = scope.$index
     // insurancePolicyForm.value.imageVoList
   let data = {
 
@@ -2769,8 +2784,12 @@ const handleUnderwriting = (scope) => {
     }
   })
 }
-const handleUnderwritingClose = () => {
-  underwritingShow.value = false
+
+const handleUnderwritingClose = (bool, msg) => {
+    underwritingShow.value = false
+    if(msg) {
+        quoteData.value[underwritingIndex.value].underwritingMsg = msg
+    }
 }
 
 // 证件识别
@@ -3247,6 +3266,13 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
   })
 }
 
+const handleNext = () => {
+    const urlLink = router.resolve({
+        path: '/insurancePolicy/index',
+    })
+    window.open(urlLink.href, '_blank')
+}
+
 const handleOpen = (scope) => {
     ElNotification({
         title: '费用匹配错误信息',

+ 37 - 1
src/views/insurancePolicy/modules/recognition.vue

@@ -1204,6 +1204,43 @@ const handleDelImage = (type) => {
 }
 
 const handleCancel = () => {
+    carForm.value = {}
+    owerForm.value = {}
+    ower1Form.value = {}
+    ower2Form.value = {}
+    xszFrontResult.value = null
+    xszFront.value = ''
+    xszFrontFile.value = null
+    xszBackResult.value = null
+    xszBack.value = ''
+    xszBackFile.value = null
+    sfzFrontResult.value = null
+    sfzFront.value = ''
+    sfzFrontFile.value = null
+    sfzBackResult.value = null
+    sfzBack.value = ''
+    sfzBackFile.value = null
+    yyzzFrontResult.value = null
+    yyzzFront.value = ''
+    yyzzFrontFile.value = null
+    tbrFrontResult.value = null
+    tbrFront.value = ''
+    tbrFrontFile.value = null
+    tbrBackResult.value = null
+    tbrBack.value = ''
+    tbrBackFile.value = null
+    tbryyzzFrontResult.value = null
+    tbryyzzFront.value = ''
+    tbryyzzFrontFile.value = null
+    bbrFrontResult.value = null
+    bbrFront.value = ''
+    bbrFrontFile.value = null
+    bbrBackResult.value = null
+    bbrBack.value = ''
+    bbrBackFile.value = null
+    bbryyzzFrontResult.value = null
+    bbryyzzFront.value = ''
+    bbryyzzFrontFile.value = null
   emit('close')
 }
 
@@ -1363,7 +1400,6 @@ const handleConfirm = () => {
 }
 
 const setAnchor = (anchor) => {
-    console.log(123123123, anchor)
     const element = document.getElementById(`${anchor}`)
     if(element) {
         element.scrollIntoView({behavior: 'smooth'})

+ 10 - 5
src/views/insurancePolicy/modules/underwriting.vue

@@ -201,14 +201,19 @@ const handleSubmit = (bool) => {
           message: res.msg,
           type: 'success'
         })
+          emit('close', false)
       } else {
-        ElMessage({
-          message: res.msg,
-          type: 'warning'
-        })
+          if(res.code == 500) {
+              emit('close', false, res.msg)
+          } else {
+              emit('close', false)
+          }
+          ElMessage({
+            message: res.msg,
+            type: 'warning'
+          })
       }
     })
-    emit('close', false)
   } else {
     emit('close', false)
   }

+ 3 - 2
src/views/insurancePolicy/orderDetail.vue

@@ -264,7 +264,7 @@
                                     </el-tooltip>
                                 </template>
                             </el-table-column>
-                            <el-table-column label="保费" prop="unitAmount" align="center">
+                            <el-table-column label="保费" prop="premium" align="center">
                                 <template #default="scope">
                                     <el-tooltip
                                         effect="dark"
@@ -274,7 +274,7 @@
                                     >
                                         <span :style="{
                                             color: !scope.row.type || !scope.row.afterPremium ? 'inherit' : '#F56C6C'
-                                        }">{{ scope.row.unitAmount }}</span>
+                                        }">{{ scope.row.premium }}</span>
                                     </el-tooltip>
                                 </template>
                             </el-table-column>
@@ -1884,6 +1884,7 @@ const onComplete = () => {
 // 换取对应保额的别名
 const getValAlias = (code: any, val: any) => {
     let data = insuranceAllData.value;
+    console.log(12312323, insuranceAllData.value)
     // 特殊处理,null转为投保的值
     if (val === null) val = '1';
     let objs = data.find((item: any) => item.kindCode === code)?.options.find((item: any) => item.value == val);

+ 4 - 1
src/views/quoteConfig/costManagement.vue

@@ -259,7 +259,10 @@ const columns = [
   },
   { prop: "productName", label: "险种", width: '120', },
   {
-    prop: "costRules", label: "费用规则", width: '500',
+      prop: "costRules", label: "费用规则", width: '500',
+  },
+  {
+      prop: "costDescribe", label: "费用描述", width: '500',
   },
   {
     prop: "isEnabled", label: "费用状态", width: '100', component: "Tag",