|
|
@@ -898,8 +898,8 @@
|
|
|
@click="handleOpenEquities(scope.row.quoteResult.ordersNo)">选择权益</el-button>
|
|
|
</div>
|
|
|
<div class="equitiesChoice">
|
|
|
- 已选<span style="color: #0083FF">{{ insOrderRightsInfoDto.length }}</span>项去权益,共计<span
|
|
|
- style="color: #FF8C21">{{ insOrderRightsInfoDto.totalPriceCount }}</span>元
|
|
|
+ 已选<span style="color: #0083FF">{{ insOrderRightsInfoDto.length || 0 }}</span>项权益,共计<span
|
|
|
+ style="color: #FF8C21">{{ insOrderRightsInfoDto.totalPriceCount || 0 }}</span>元
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="expandFlex">
|
|
|
@@ -1125,7 +1125,7 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="" align="center">
|
|
|
+ <el-table-column prop="" >
|
|
|
<template #header>
|
|
|
<div style="">
|
|
|
<span style="margin-right: 10px">报价结果</span>
|
|
|
@@ -1133,7 +1133,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #default="scope">
|
|
|
- <div class="result" v-if="currentRow.some((a: any) => a.id === scope.row.id) && !scope.row.loading">
|
|
|
+ <div class="result" v-if="currentRow.some((a: any) => a.id === scope.row.id) && !scope.row.loading">
|
|
|
<div class="resultItem">
|
|
|
<span v-if="scope.row.quoteResult?.costs?.sumPremium">总保费:{{
|
|
|
scope.row.quoteResult?.costs?.sumPremium }}</span>
|
|
|
@@ -1172,11 +1172,10 @@
|
|
|
</span>
|
|
|
<div>
|
|
|
<div class="quoteFail" v-if="scope.row.quoteResult?.failMsg">
|
|
|
- <el-icon style="color: #FF4545; font-size: 14px" @click="handleOpen">
|
|
|
+ <el-icon style="color: #FF4545; font-size: 14px" >
|
|
|
<Warning />
|
|
|
- </el-icon> 报价失败
|
|
|
+ </el-icon> {{scope.row.quoteResult?.failMsg}}
|
|
|
</div>
|
|
|
- <!-- <div class="quoteReason">{{ scope.row.quoteResult?.failMsg }}</div>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- loding动效 -->
|
|
|
@@ -2916,15 +2915,23 @@ const handleUnderwriting = (scope: any) => {
|
|
|
|
|
|
let underwritingMsgShow = ref(false)
|
|
|
|
|
|
-const handleUnderwritingClose = (bool: any, msg: any) => {
|
|
|
- console.log(bool, msg)
|
|
|
+const handleUnderwritingClose = (bool: any, dataObj: any) => {
|
|
|
+ insOrderRightsInfoDto.value.length=dataObj.equitiesData;
|
|
|
+ insOrderRightsInfoDto.value.totalPriceCount=dataObj.totalPriceCount;
|
|
|
underwritingShow.value = false
|
|
|
- if (msg) {
|
|
|
- console.log(msg)
|
|
|
- quoteData.value[underwritingIndex.value].underwritingMsg = msg
|
|
|
- }
|
|
|
- if (bool === 'success') {
|
|
|
+ if (bool.code==200) {
|
|
|
+ ElMessage({
|
|
|
+ message: bool.msg,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
underwritingMsgShow.value = true
|
|
|
+ }else{
|
|
|
+ ElMessage({
|
|
|
+ message: bool.msg,
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ quoteData.value[underwritingIndex.value].underwritingMsg = bool.msg
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -3344,6 +3351,15 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
|
|
|
let c = res.data.biPremium ? res.data.biPremium : 0 // 商业险保费
|
|
|
let d = res.data.niPremium ? res.data.niPremium : 0 // 未知险种保费
|
|
|
res.data.quoteTotal = Number(a) + Number(b) + Number(c) + Number(d) // 总保费
|
|
|
+ // 替换保险公司返回的正确日期
|
|
|
+ if(res.data.ciStartDate){
|
|
|
+ insurancePolicyForm.value.JQStartDate = res.data.ciStartDate
|
|
|
+ insurancePolicyForm.value.JQEndDate = res.data.ciEndDate
|
|
|
+ }
|
|
|
+ if(res.data.biStartDate){
|
|
|
+ insurancePolicyForm.value.SYStartDate = res.data.biStartDate
|
|
|
+ insurancePolicyForm.value.SYEndDate = res.data.biEndDate
|
|
|
+ }
|
|
|
}
|
|
|
// 设置折扣信息
|
|
|
quoteData.value[scope.$index].discounts = [
|
|
|
@@ -3384,7 +3400,9 @@ const handleSubmit = async (InsurancePolicyRefs: FormInstance | undefined, scope
|
|
|
message: res.msg,
|
|
|
type: 'warning'
|
|
|
})
|
|
|
+ quoteData.value[scope.$index].quoteResult = res.data
|
|
|
quoteData.value[scope.$index].quoteResult.failMsg = res.msg
|
|
|
+ console.log(quoteData.value[scope.$index].quoteResult)
|
|
|
loading.value = false
|
|
|
quoteData.value[scope.$index].loading = false
|
|
|
}
|