|
|
@@ -764,6 +764,51 @@
|
|
|
</div>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
+ <template v-if="reslistitem.namesimple == '恒邦财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
+ <div class="flex f-c Driving-risk accident-style">
|
|
|
+ <h3>意外险信息</h3>
|
|
|
+ <el-table size="small" :data="hengbangInsuranceData" border v-loading="accidentLoading"
|
|
|
+ @row-click="HBDrivingChange" ref="RsTable" highlight-current-row
|
|
|
+ :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }">
|
|
|
+ <el-table-column align="center" width="40" label="选择">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-radio class="radio" v-model="templateSelection" :label="scope.row.programcode" @click.native.stop.prevent="HBDrivingRadio(scope.row)"> </el-radio>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="programname" label="方案名称" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="suminsured" label="保额" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="sumgrosspremium" label="保费 (元)/每份" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="份数" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.quantity}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template v-if="reslistitem.namesimple == '中国人寿' && reslistitem.checked && reslistitem.agreementId">
|
|
|
+ <div class="flex f-c Driving-risk accident-style">
|
|
|
+ <h3>意外险信息</h3>
|
|
|
+ <el-table size="small" :data="renshouInsuranceData" border v-loading="accidentLoading"
|
|
|
+ @row-click="RSDrivingChange" ref="RsTable" highlight-current-row
|
|
|
+ :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }">
|
|
|
+ <el-table-column align="center" width="55" label="选择">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-radio class="radio" v-model="templateSelection" :label="scope.row.id" @click.native.stop.prevent="RSDrivingRadio(scope.row)"> </el-radio>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="productName" label="方案名称" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="totalPremium" label="保费 (元)/每份" align="center">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="份数" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{scope.row.quantity}}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
<template v-if="reslistitem.namesimple == '紫金财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
<div class="flex f-c Driving-risk accident-style">
|
|
|
<h3>意外险信息</h3>
|
|
|
@@ -1783,6 +1828,7 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
+ templateSelection:"",
|
|
|
areaOption:yongchengData.data,
|
|
|
iscCrownerShow:false,
|
|
|
isApplicantShow:false,
|
|
|
@@ -1797,11 +1843,14 @@ export default {
|
|
|
// selectedOptions1: [],
|
|
|
// selectedOptions2: [],
|
|
|
// selectedOptions3: [],
|
|
|
- // ------------紫金意外险
|
|
|
- ziJinInsuranceData: [],
|
|
|
- accidentalDrivingVo: [],
|
|
|
- zijinengageListData: [],
|
|
|
- zijinengageList: [],
|
|
|
+ hengbangInsuranceData:[],//恒邦驾意险
|
|
|
+ hengbangaccidentalDrivingVo:[],//恒邦驾意险
|
|
|
+ renshouaccidentalDrivingVo:{},//人寿意外险
|
|
|
+ renshouInsuranceData: [],//-人寿意外险list
|
|
|
+ ziJinInsuranceData: [],//-紫金意外险list
|
|
|
+ accidentalDrivingVo: [],//-紫金意外险传参
|
|
|
+ zijinengageListData: [],//紫金特约
|
|
|
+ zijinengageList: [],//紫金特约
|
|
|
// ------------紫金意外险
|
|
|
licenseplate: true,
|
|
|
accidentForm: {
|
|
|
@@ -3286,6 +3335,7 @@ export default {
|
|
|
},
|
|
|
//选择协议 val:协议id row:协议列表 index:下标 item:保险公司数据集合
|
|
|
agreementChange(val, row, index, item) {
|
|
|
+ console.log(val,row,index,item)
|
|
|
let obj = {};
|
|
|
obj = row.find(item => {
|
|
|
return item;
|
|
|
@@ -3312,6 +3362,23 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case '中国人寿':
|
|
|
+ case '恒邦财险':
|
|
|
+ case '安盛天平':
|
|
|
+ case '众安财险':
|
|
|
+ this.$api.letter.pythongetDriving({ agreementId: val}).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ let data = res.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ })
|
|
|
+ this[item.cnName+'InsuranceData'] = data;
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
+
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
@@ -3324,6 +3391,32 @@ export default {
|
|
|
return val;
|
|
|
})
|
|
|
},
|
|
|
+ HBDrivingChange(row){
|
|
|
+ if(this.templateSelection==row.programcode){
|
|
|
+ this.templateSelection=null;
|
|
|
+ this.hengbangaccidentalDrivingVo={};
|
|
|
+ }else{
|
|
|
+ this.templateSelection=row.programcode;
|
|
|
+ this.hengbangaccidentalDrivingVo=row;
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ RSDrivingChange(row){
|
|
|
+ if(this.templateSelection==row.id){
|
|
|
+ this.templateSelection=null;
|
|
|
+ this.renshouaccidentalDrivingVo={};
|
|
|
+ }else{
|
|
|
+ this.templateSelection=row.id;
|
|
|
+ this.renshouaccidentalDrivingVo=row;
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+ RSDrivingRadio(row){
|
|
|
+ this.RSDrivingChange(row)
|
|
|
+ },
|
|
|
+ HBDrivingRadio(row){
|
|
|
+ this.HBDrivingChange(row)
|
|
|
+ },
|
|
|
zijinengageChange(select, row) {
|
|
|
this.zijinengageList = [];
|
|
|
select.map(val => {
|
|
|
@@ -3338,7 +3431,8 @@ export default {
|
|
|
},
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
- let ins = this.totalCompanyList[index].namesimple;
|
|
|
+ if(e){
|
|
|
+ let ins = this.totalCompanyList[index].namesimple;
|
|
|
this.totalCompanyList[index].agreementId = "";
|
|
|
this.totalCompanyList[index].checked = e;
|
|
|
this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
@@ -3366,9 +3460,29 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case '中国人寿':
|
|
|
+ case '恒邦财险':
|
|
|
+ case '安盛天平':
|
|
|
+ case '众安财险':
|
|
|
+ this.$api.letter.pythongetDriving({ agreementId: this.totalCompanyList[index].agreement[0].id}).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ let data = res.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ })
|
|
|
+ this[name+"InsuranceData"] = data;
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
clearAccidentForm() {
|
|
|
this.accidentForm = {
|
|
|
@@ -4149,8 +4263,11 @@ export default {
|
|
|
|
|
|
// 爬虫对接
|
|
|
quoteInsurance(num, id, namesimple, apiType) {
|
|
|
+ console.log(this.totalCompanyList[num])
|
|
|
let api = apiType == 2 ? "pythonquote" : "anshengquote";
|
|
|
+ let ccidenttype=this.totalCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
+ accidentalDrivingVo:this[ccidenttype+'accidentalDrivingVo'],
|
|
|
orderNo: this.orderno,
|
|
|
companyId: id,
|
|
|
agreementId: this.totalCompanyList[num].agreementId,
|
|
|
@@ -4374,9 +4491,9 @@ export default {
|
|
|
title: '通融单',
|
|
|
duration: 0,
|
|
|
dangerouslyUseHTMLString: true,
|
|
|
- message: `<div> ${
|
|
|
- res.data.warnMessageList.map(item=>{
|
|
|
- return `<p>${
|
|
|
+ message: `<div> ${
|
|
|
+ res.data.warnMessageList.map(item=>{
|
|
|
+ return `<p>${
|
|
|
item}</p>`
|
|
|
}).join('')}
|
|
|
</div>`
|