|
@@ -520,7 +520,7 @@
|
|
|
<div style="width:15%;font-weight: bold;" class="flex j-s a-c">
|
|
<div style="width:15%;font-weight: bold;" class="flex j-s a-c">
|
|
|
<div class="flex j-c a-c" style="width:50%">
|
|
<div class="flex j-c a-c" style="width:50%">
|
|
|
<el-checkbox class="checkbox"
|
|
<el-checkbox class="checkbox"
|
|
|
- @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex,reslistitem)"></el-checkbox>
|
|
|
|
|
|
|
+ @change="event => initchange(event, reslistitem.id, reslistitem.cnName, reslistindex)"></el-checkbox>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="flex f-c a-c" style="width:50%">
|
|
<div class="flex f-c a-c" style="width:50%">
|
|
|
<img :src="reslistitem.logo" alt style="width:30px; height:30px;margin-bottom:10px;" />
|
|
<img :src="reslistitem.logo" alt style="width:30px; height:30px;margin-bottom:10px;" />
|
|
@@ -577,7 +577,7 @@
|
|
|
<div v-if="reslistitem.checked" class="dis a-c Driving-risk" style="margin-top: 10px;">
|
|
<div v-if="reslistitem.checked" class="dis a-c Driving-risk" style="margin-top: 10px;">
|
|
|
<h4>报价协议选择:</h4>
|
|
<h4>报价协议选择:</h4>
|
|
|
<el-select size="small" v-model="reslistitem.agreementId" placeholder="请选择协议" :clearable="true"
|
|
<el-select size="small" v-model="reslistitem.agreementId" placeholder="请选择协议" :clearable="true"
|
|
|
- @change="val => agreementChange(val, reslistitem.agreement, reslistindex)">
|
|
|
|
|
|
|
+ @change="val => agreementChange(val, reslistitem.agreement, reslistindex,reslistitem)">
|
|
|
<div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
|
|
<div v-for="(agreementitem, agreementindex ) in reslistitem.agreement" :key="agreementindex">
|
|
|
<div
|
|
<div
|
|
|
v-if="agreementitem.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
|
|
v-if="agreementitem.licenseNo.length > 0 ? agreementitem.licenseNo.includes(carInfo.licenseNo.slice(0, 2)) : 'true'">
|
|
@@ -587,7 +587,7 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</div>
|
|
</div>
|
|
|
<template></template>
|
|
<template></template>
|
|
|
- <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked">
|
|
|
|
|
|
|
+ <template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
<div class="flex f-c Driving-risk accident-style">
|
|
<div class="flex f-c Driving-risk accident-style">
|
|
|
<h3>意外险信息</h3>
|
|
<h3>意外险信息</h3>
|
|
|
<el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small">
|
|
<el-form :inline="true" :model="accidentForm" class="demo-form-inline" size="small">
|
|
@@ -2538,15 +2538,22 @@ export default {
|
|
|
this.carcode(id);
|
|
this.carcode(id);
|
|
|
},
|
|
},
|
|
|
//选择协议
|
|
//选择协议
|
|
|
- agreementChange(val, row, index) {
|
|
|
|
|
|
|
+ agreementChange(val, row, index,item) {
|
|
|
let obj = {};
|
|
let obj = {};
|
|
|
obj = row.find(item => {
|
|
obj = row.find(item => {
|
|
|
return item;
|
|
return item;
|
|
|
})
|
|
})
|
|
|
- this.accidentForm.agreementId =obj.id
|
|
|
|
|
|
|
+ this.accidentForm.agreementId =item.agreementId
|
|
|
this.totalCompanyList[index].apiType = obj.apiType;
|
|
this.totalCompanyList[index].apiType = obj.apiType;
|
|
|
|
|
+ if (item.agreementId) {
|
|
|
|
|
+ this.$api.letter.ycgainAccidentList({ companyCode: item.id,agreementId:item.agreementId }).then(res => {
|
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
|
+ this.accidentDataList = res.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
- initchange(e, code, name, index,item) {
|
|
|
|
|
|
|
+ initchange(e, code, name, index) {
|
|
|
this.totalCompanyList[index].agreementId="";
|
|
this.totalCompanyList[index].agreementId="";
|
|
|
this.totalCompanyList[index].checked = e;
|
|
this.totalCompanyList[index].checked = e;
|
|
|
if (e) {
|
|
if (e) {
|
|
@@ -2558,13 +2565,7 @@ export default {
|
|
|
this[name + "Drivinglist"] = res.data;
|
|
this[name + "Drivinglist"] = res.data;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
- if (e && name == "yongcheng") {
|
|
|
|
|
- this.$api.letter.ycgainAccidentList({ companyCode: code }).then(res => {
|
|
|
|
|
- if (res.code == 200) {
|
|
|
|
|
- this.accidentDataList = res.data;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
clearAccidentForm() {
|
|
clearAccidentForm() {
|
|
|
this.accidentForm = {
|
|
this.accidentForm = {
|
|
@@ -3230,7 +3231,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
//永诚报价
|
|
//永诚报价
|
|
|
yongcheng(num, id) {
|
|
yongcheng(num, id) {
|
|
|
- console.log(id,this.accidentForm,1111111111)
|
|
|
|
|
let accidentalDrivingVo = {};
|
|
let accidentalDrivingVo = {};
|
|
|
if (this.accidentForm.id) {
|
|
if (this.accidentForm.id) {
|
|
|
let data = this.accidentDataList.find(
|
|
let data = this.accidentDataList.find(
|