|
|
@@ -975,8 +975,6 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="保费:">
|
|
|
<span>{{accidentForm.premium}} 元</span>
|
|
|
- <!-- <el-input-number v-model="accidentForm.premium" :min="1"></el-input-number>
|
|
|
- <span style="margin-left: 5px;">元</span> -->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-table v-if="accidentForm.accidentType" size="small" :data="accidenttableData" border
|
|
|
@@ -1001,7 +999,41 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
+ <template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
+ <div class="flex f-c Driving-risk">
|
|
|
+ <h3>意外险信息</h3>
|
|
|
+ <el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
|
|
|
+ <el-form-item label="意外险类型:" style="margin-right:30px;">
|
|
|
+ <el-select clearable placeholder="选择类型" @clear="clearAccidentFormGr"
|
|
|
+ @change="grcxchange" v-model="guoRenaccidentForm.goodsCode">
|
|
|
+ <el-option v-for="(item, index) in guoRenaccidentDataList" :key="index" :label="item.goodDesc"
|
|
|
+ :value="item.goodId"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label=" " >
|
|
|
+ <el-select clearable v-model="guoRenaccidentForm.prodCode" v-loading="accidentLoading"
|
|
|
+ @change="grcxchangeChild">
|
|
|
+ <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.prodCode" :label="item.prodCName"
|
|
|
+ :value="item.prodCode"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="份数:" style="margin-right:30px;">
|
|
|
+ <el-input-number v-model="guoRenaccidentForm.quantity" @change="numberCopieschange" :min="1" :max="guoRenaccidentForm.policyNum"></el-input-number>
|
|
|
+ <span style="margin-left: 5px;">份</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="保费:">
|
|
|
+ <span>{{guoRenaccidentForm.premium}} 元</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-table v-if="guoRenaccidentForm.prodCode" size="small" :data="guoRenaccidenttableData" border
|
|
|
+ ref="expandTable" highlight-current-row
|
|
|
+ :header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }">
|
|
|
+ <el-table-column prop="liabName" label="保险责任" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="liabAmount" label="保额 (元)" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="liabPremium" label="保费 (元)" align="center"></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 zmDriving">
|
|
|
<h3>意外险信息</h3>
|
|
|
@@ -1552,10 +1584,10 @@
|
|
|
<div style="padding:0 20px">
|
|
|
<div class="ORcode">
|
|
|
<div style="padding:5px;position: relative;">
|
|
|
- <div v-show="['永安财险', '人保财险', '永诚财险', '中煤财险', '众安财险', '紫金财险', '国任财险','中国人寿'].includes(inscompany)" id="qrcode"
|
|
|
+ <div v-show="['永安财险', '人保财险', '永诚财险', '中煤财险', '众安财险', '紫金财险','中国人寿'].includes(inscompany)" id="qrcode"
|
|
|
ref="qrcode">
|
|
|
</div>
|
|
|
- <img v-show="['恒邦财险','安盛天平'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
|
|
|
+ <img v-show="['恒邦财险','安盛天平','国任财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -2128,10 +2160,19 @@ export default {
|
|
|
accidentForm: {
|
|
|
fen: "1",
|
|
|
premium:0
|
|
|
- }, //意外险内容
|
|
|
+ }, //永诚意外险内容
|
|
|
accidentDataList: [], //永诚意外险
|
|
|
+ guoRenaccidentDataList: [], //国任意外险
|
|
|
+ guoRenaccidenttableData: [],
|
|
|
+ guoRenaccidentDataListChild:[],
|
|
|
accidenttableData: [],
|
|
|
accidentLoading: false,
|
|
|
+ guoRenaccidentLoading: false,
|
|
|
+ guoRenaccidentPremium:'',
|
|
|
+ guoRenaccidentForm: {
|
|
|
+ quantity: "1",
|
|
|
+ premium:0
|
|
|
+ }, //国任意外险内容
|
|
|
accidentPremium: "",
|
|
|
pickerOptions: {
|
|
|
disabledDate(time) {
|
|
|
@@ -3720,6 +3761,42 @@ export default {
|
|
|
if(index){
|
|
|
this.ZADrivingChange(this.ZRInsuranceData[0])
|
|
|
}
|
|
|
+ },
|
|
|
+ // 国任选择意外险类型
|
|
|
+ async grcxchange(index) {
|
|
|
+ if(index){
|
|
|
+ this.accidentLoading=true
|
|
|
+ this.guoRenaccidentForm.quantity = "1";
|
|
|
+ this.guoRenaccidentForm.prodCode=""
|
|
|
+ let data = await this.$api.letter.syncNonAutoInsGuoren({
|
|
|
+ goodsCode: index,
|
|
|
+ agreementId:this.guoRenaccidentForm.agreementId
|
|
|
+ });
|
|
|
+ if (data.code == 200) {
|
|
|
+ this.accidentLoading=false
|
|
|
+ this.guoRenaccidentDataListChild = data.data;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.accidentLoading=false
|
|
|
+ this.$message.error(data.msg)
|
|
|
+ this.guoRenaccidentDataListChild=[]
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+ // 国任选择意外险子级类型
|
|
|
+ async grcxchangeChild(index) {
|
|
|
+ let list=this.guoRenaccidentDataListChild.find(val => val.prodCode == index)
|
|
|
+ this.guoRenaccidentForm={
|
|
|
+ ... this.guoRenaccidentForm,
|
|
|
+ premium:list.premium,
|
|
|
+ quantity:list.appnum,
|
|
|
+ riskCode:list.riskCode,
|
|
|
+ amount:list.amount,
|
|
|
+ policyNum:Number(list.policyNum)
|
|
|
+ }
|
|
|
+ this.guoRenaccidenttableData=list.prodCvgLiabList
|
|
|
},
|
|
|
// 选择意外险类型
|
|
|
async ywxxxchange(index) {
|
|
|
@@ -3845,6 +3922,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case '国任财险':
|
|
|
+ this.guoRenaccidentForm.agreementId = item.agreementId
|
|
|
+ this.$api.letter.syncNonAutoInsGuoren({ goodsCode: item.id, agreementId: item.agreementId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.guoRenaccidentDataList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
case '紫金财险':
|
|
|
this.$api.letter.zijinqueryVehicleProducts({ agreementId: val, seatCount: Number(this.carInfo.seatCount) }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
@@ -3970,6 +4055,14 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case '国任财险':
|
|
|
+ this.guoRenaccidentForm.agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
+ this.$api.letter.syncNonAutoInsGuoren({ goodsCode: "", agreementId: this.totalCompanyList[index].agreement[0].id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.guoRenaccidentDataList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
case '紫金财险':
|
|
|
this.$api.letter.zijinqueryVehicleProducts({ agreementId: this.totalCompanyList[index].agreement[0].id, seatCount: Number(this.carInfo.seatCount) }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
@@ -4034,6 +4127,15 @@ export default {
|
|
|
premium:0
|
|
|
};
|
|
|
},
|
|
|
+ clearAccidentFormGr() {
|
|
|
+ this.guoRenaccidenttableData=[],
|
|
|
+ this.guoRenaccidentDataListChild=[]
|
|
|
+ this.guoRenaccidentForm = {
|
|
|
+ quantity: "1",
|
|
|
+ premium:0
|
|
|
+ };
|
|
|
+
|
|
|
+ },
|
|
|
clearAccidentFormHB(){
|
|
|
this.hengbangaccidentalDrivingVo={};
|
|
|
},
|
|
|
@@ -4156,6 +4258,8 @@ export default {
|
|
|
},
|
|
|
//报价
|
|
|
quote() {
|
|
|
+ console.log( this.guoRenaccidentForm,1111111)
|
|
|
+
|
|
|
let starttime = new Date(this.carInfo.registerDate)
|
|
|
let endtime = new Date(this.carInfo.issueDate)
|
|
|
if (endtime < starttime) {
|
|
|
@@ -4797,14 +4901,9 @@ export default {
|
|
|
//国任报价
|
|
|
guoRen(num, id) {
|
|
|
let accidentalDrivingVo = {};
|
|
|
- if (this.accidentForm.id) {
|
|
|
- let data = this.accidentDataList.find(
|
|
|
- val => val.id == this.accidentForm.accidentType
|
|
|
- );
|
|
|
+ if ( this.guoRenaccidentForm.goodsCode) {
|
|
|
accidentalDrivingVo = {
|
|
|
- rideRiskCode: data.code ? data.code : "",
|
|
|
- rideRiskName: data.name ? data.name : "",
|
|
|
- quantity: this.accidentForm.fen ? this.accidentForm.fen : ""
|
|
|
+ ...this.guoRenaccidentForm,
|
|
|
};
|
|
|
}
|
|
|
let params = {
|