|
|
@@ -934,28 +934,28 @@
|
|
|
交强续保:
|
|
|
<span>
|
|
|
{{
|
|
|
- reslistitem.result.jqRenewal? reslistitem.result.jqRenewal:"无" }}
|
|
|
+ reslistitem.result.jqRenewal ? reslistitem.result.jqRenewal : "无" }}
|
|
|
</span>
|
|
|
</span>
|
|
|
<span v-if="reslistitem.result.syRenewal" class="marginL">
|
|
|
商业续保:
|
|
|
<span>
|
|
|
{{
|
|
|
- reslistitem.result.syRenewal? reslistitem.result.syRenewal:"无" }}
|
|
|
+ reslistitem.result.syRenewal ? reslistitem.result.syRenewal : "无" }}
|
|
|
</span>
|
|
|
</span>
|
|
|
<span v-if="reslistitem.result.jqClaims" class="marginL">
|
|
|
交强出险次数:
|
|
|
<span>
|
|
|
{{
|
|
|
- reslistitem.result.jqClaims? reslistitem.result.jqClaims:'无' }}
|
|
|
+ reslistitem.result.jqClaims ? reslistitem.result.jqClaims : '无' }}
|
|
|
</span>
|
|
|
</span>
|
|
|
<span v-if="reslistitem.result.syClaims" class="marginL">
|
|
|
商业出险次数:
|
|
|
<span>
|
|
|
{{
|
|
|
- reslistitem.result.syClaims? reslistitem.result.syClaims:'无' }}
|
|
|
+ reslistitem.result.syClaims ? reslistitem.result.syClaims : '无' }}
|
|
|
</span>
|
|
|
</span>
|
|
|
<span v-if="reslistitem.namesimple == '紫金财险' && reslistitem.result.ubiPredictedInfoScore"
|
|
|
@@ -1051,8 +1051,8 @@
|
|
|
<!-- <span style="margin-left: 5px;">份</span> -->
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table v-if="accidentFormHN.accidentType" size="small" :data="huanongInsuranceDataTable" border ref="expandTable"
|
|
|
- highlight-current-row
|
|
|
+ <el-table v-if="accidentFormHN.accidentType" size="small" :data="huanongInsuranceDataTable" border
|
|
|
+ ref="expandTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="name" label="保险责任" align="center"></el-table-column>
|
|
|
<el-table-column prop="amount" label="保额" align="center">
|
|
|
@@ -1068,14 +1068,15 @@
|
|
|
<div class="dis a-c" style="margin:15px 0">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
<el-select style="width: 250px;margin-right:60px" filterable size="small" clearable
|
|
|
- v-model="taipingtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTP" @change="taipingInsuranceChange">
|
|
|
+ v-model="taipingtemplateSelection" placeholder="未选择" @clear="clearAccidentFormTP"
|
|
|
+ @change="taipingInsuranceChange">
|
|
|
<el-option v-for="(item, index) in taipingInsuranceData" :key="index" :label="item.projectName"
|
|
|
:value="item.projectCode"></el-option>
|
|
|
</el-select>
|
|
|
每份价税合计: <b>{{ taipingaccidentalDrivingVo.sumPremium || 0 }} 元</b>
|
|
|
</div>
|
|
|
- <el-table size="small" :data="taipingInsuranceDataTable" border v-if="taipingtemplateSelection" ref="RsTable"
|
|
|
- highlight-current-row
|
|
|
+ <el-table size="small" :data="taipingInsuranceDataTable" border v-if="taipingtemplateSelection"
|
|
|
+ ref="RsTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="name" label="险种名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
|
|
|
@@ -1086,14 +1087,14 @@
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin-top:15px">
|
|
|
<span style="margin-right:15px;font-weight:bold;">意外险类型</span>
|
|
|
- <el-select style="width: 250px;" size="small" clearable v-model="anshengtemplateSelection" placeholder="未选择"
|
|
|
- @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
|
|
|
+ <el-select style="width: 250px;" size="small" clearable v-model="anshengtemplateSelection"
|
|
|
+ placeholder="未选择" @clear="clearAccidentFormAS" @change="anshengInsuranceChange">
|
|
|
<el-option v-for="(item, index) in anshengInsuranceData" :key="index"
|
|
|
:label="item.projectCode + ' ' + item.projectName" :value="item.projectCode"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <el-table style='margin-top:20px;' size="small" :data="anshengInsuranceDataTable" border v-if="anshengtemplateSelection" ref="RsTable"
|
|
|
- highlight-current-row
|
|
|
+ <el-table style='margin-top:20px;' size="small" :data="anshengInsuranceDataTable" border
|
|
|
+ v-if="anshengtemplateSelection" ref="RsTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column align="center" width="55" label="选择">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -1103,7 +1104,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="projectCode" label="方案代码" align="center"></el-table-column>
|
|
|
- <el-table-column prop="quantity" label="份数" align="center"> </el-table-column>
|
|
|
+ <el-table-column prop="quantity" label="份数" align="center"> </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -1123,8 +1124,8 @@
|
|
|
:value="item.projectCode"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <el-table size="small" style="margin-top:20px" :data="renshouInsuranceDataTable" border v-if="renshoutemplateSelection" @row-click="RSDrivingChange"
|
|
|
- ref="RsTable" highlight-current-row
|
|
|
+ <el-table size="small" style="margin-top:20px" :data="renshouInsuranceDataTable" border
|
|
|
+ v-if="renshoutemplateSelection" @row-click="RSDrivingChange" ref="RsTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="name" label="方案名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="premium" label="保费 (元)起" align="center">
|
|
|
@@ -1151,8 +1152,8 @@
|
|
|
</el-select>
|
|
|
<!-- 保费: <b>{{ zhonganaccidentalDrivingVo.sumgrosspremium || 0}} 元</b> -->
|
|
|
</div>
|
|
|
- <el-table size="small" :data="zhonganInsuranceDataTable" border v-if="zhongantemplateSelection" @row-click="ZADrivingChange"
|
|
|
- ref="RsTable" highlight-current-row
|
|
|
+ <el-table size="small" :data="zhonganInsuranceDataTable" border v-if="zhongantemplateSelection"
|
|
|
+ @row-click="ZADrivingChange" ref="RsTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="name" label="险种名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="amount" label="险种金额" align="center"></el-table-column>
|
|
|
@@ -1168,14 +1169,15 @@
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<div class="dis a-c" style="margin-bottom:15px">
|
|
|
<span style="margin-right:15px;font-weight:bold">选择意外险</span>
|
|
|
- <el-select style="width: 250px;" filterable multiple size="small" clearable v-model="zijintemplateSelection"
|
|
|
- placeholder="未选择" @clear="clearAccidentFormZJ" @change="zijinInsuranceChange">
|
|
|
+ <el-select style="width: 250px;" filterable multiple size="small" clearable
|
|
|
+ v-model="zijintemplateSelection" placeholder="未选择" @clear="clearAccidentFormZJ"
|
|
|
+ @change="zijinInsuranceChange">
|
|
|
<el-option v-for="(item, index) in ziJinInsuranceData" :key="index" :label="item.projectName"
|
|
|
:value="item.projectCode"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <el-table size="small" :data="zijinInsuranceDataTable" border v-if="zijintemplateSelection" @select="CheckboxChange"
|
|
|
- filterable ref="expandTable" highlight-current-row
|
|
|
+ <el-table size="small" :data="zijinInsuranceDataTable" border v-if="zijintemplateSelection"
|
|
|
+ @select="CheckboxChange" filterable ref="expandTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column prop="projectName" label="方案名称" align="center"></el-table-column>
|
|
|
@@ -1220,8 +1222,8 @@
|
|
|
<span>{{ accidentForm.sumPremium }} 元</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table v-if="yongchengtemplateSelection" size="small" :data="yongchengInsuranceDataTable" border ref="expandTable"
|
|
|
- highlight-current-row
|
|
|
+ <el-table v-if="yongchengtemplateSelection" size="small" :data="yongchengInsuranceDataTable" border
|
|
|
+ ref="expandTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="name" label="保险责任" align="center"></el-table-column>
|
|
|
<el-table-column prop="amount" label="每座保额 (元)/每份" align="center"></el-table-column>
|
|
|
@@ -1233,7 +1235,8 @@
|
|
|
<template v-if="reslistitem.namesimple == '国任财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
<!-- <div style="margin:10px 0 0 100px;">
|
|
|
<span style="margin-right:20px"> {{reslistitem.underwritingDescription}}</span>-->
|
|
|
- <el-button type="text" style="margin:10px 0 0 100px;" @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
|
|
|
+ <el-button type="text" style="margin:10px 0 0 100px;"
|
|
|
+ @click="contributingGuoRen(reslistitem.agreementId)">选择特约</el-button>
|
|
|
<!-- </div> -->
|
|
|
<div class="flex f-c Driving-risk">
|
|
|
<el-form :inline="true" :model="guoRenaccidentForm" class="demo-form-inline" size="small">
|
|
|
@@ -1245,8 +1248,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label=" ">
|
|
|
- <el-select clearable v-model="guoRenaccidentForm.prodCode"
|
|
|
- @change="grcxchangeChild">
|
|
|
+ <el-select clearable v-model="guoRenaccidentForm.prodCode" @change="grcxchangeChild">
|
|
|
<el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.projectCode"
|
|
|
:label="item.projectName" :value="item.projectCode"></el-option>
|
|
|
</el-select>
|
|
|
@@ -1284,14 +1286,15 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="选择份数" style="margin-right:30px;">
|
|
|
<el-input-number v-model="accidentFormZM.quantity" @change="numberCopieschangeZM" :min="1"
|
|
|
- controls-position="right" ></el-input-number>
|
|
|
+ controls-position="right"></el-input-number>
|
|
|
<!-- <span style="margin-left: 5px;">份</span> -->
|
|
|
</el-form-item>
|
|
|
<el-form-item label="保费:">
|
|
|
<span>{{ accidentFormZM.sumPremium }} 元</span>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table size="small" :data="zhongmeiInsuranceDataTable" border ref="ZmMultipleTable" v-if="zhongmeitemplateSelection"
|
|
|
+ <el-table size="small" :data="zhongmeiInsuranceDataTable" border ref="ZmMultipleTable"
|
|
|
+ v-if="zhongmeitemplateSelection"
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="name" label="保险责任名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="amount" label="保险责任对应保额" align="center"></el-table-column>
|
|
|
@@ -1321,8 +1324,8 @@
|
|
|
:value="item.id"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <el-table size="small" :data="dajiaInsuranceDataTable" border v-if="dajiatemplateSelection" @row-click="DJDrivingChange"
|
|
|
- ref="RsTable" highlight-current-row
|
|
|
+ <el-table size="small" :data="dajiaInsuranceDataTable" border v-if="dajiatemplateSelection"
|
|
|
+ @row-click="DJDrivingChange" ref="RsTable" highlight-current-row
|
|
|
:header-cell-style="{ background: '#F7F7F9 ', fontWeight: '700', color: '#333333' }">
|
|
|
<el-table-column prop="cvrgName" label="保险责任名称" align="center"></el-table-column>
|
|
|
<el-table-column prop="cvrgPrm" label="保费 (元)/每份" align="center">
|
|
|
@@ -1472,7 +1475,7 @@
|
|
|
</div>
|
|
|
<div class="ORcode">
|
|
|
<div style="padding:13px;position: relative;">
|
|
|
- <img v-if="['太平财险','华泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
|
|
|
+ <img v-if="['太平财险', '华泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width:100%" />
|
|
|
<div v-else id="qrcode" ref="qrcode"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -2273,10 +2276,10 @@ export default {
|
|
|
}, //永诚意外险内容
|
|
|
accidentFormHN: {
|
|
|
allQuantity: "1",
|
|
|
- quantity:'1'
|
|
|
+ quantity: '1'
|
|
|
}, //华农意外险内容
|
|
|
yongchengaccidentDataList: [], //永诚意外险
|
|
|
- yongchengtemplateSelection:'',
|
|
|
+ yongchengtemplateSelection: '',
|
|
|
guoRenaccidentDataList: [], //国任意外险
|
|
|
guoRenInsuranceDataTable: [],
|
|
|
guoRenaccidentDataListChild: [],
|
|
|
@@ -3848,7 +3851,7 @@ export default {
|
|
|
//中煤意外险选中对应产品带出方案明细
|
|
|
zhongmeiInsuranceChange(index) {
|
|
|
//每次选中产品,清空之前选中的数据
|
|
|
- this.zhongmeitemplateSelection=index
|
|
|
+ this.zhongmeitemplateSelection = index
|
|
|
this.zhongmeiaccidentalDrivingVo = {};
|
|
|
this.zhongmeiInsuranceDataTable = [];
|
|
|
let data = this.zhongmeiInsuranceData.find(
|
|
|
@@ -4068,17 +4071,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
anshengInsuranceChange(index) {
|
|
|
- this.anshengtemplateSelection=index
|
|
|
+ this.anshengtemplateSelection = index
|
|
|
let data = this.anshengInsuranceData.find(val => val.projectCode == index);
|
|
|
this.anshengaccidentalDrivingVo.parentName = data.projectName;
|
|
|
this.anshengaccidentalDrivingVo.parentCode = data.projectCode;
|
|
|
this.anshengInsuranceDataTable = [];
|
|
|
this.anshengInsuranceDataTable = data.children;
|
|
|
- this.anshengInsuranceDataTable .forEach(e=>e.quantity='1')
|
|
|
+ this.anshengInsuranceDataTable.forEach(e => e.quantity = '1')
|
|
|
},
|
|
|
hengbangInsuranceChange(index) {
|
|
|
this.hengbangInsuranceDataTable = this.hengbangInsuranceData.find(val => val.projectCode == index).son
|
|
|
- this.hengbangtemplateSelection=index
|
|
|
+ this.hengbangtemplateSelection = index
|
|
|
if (this.hengbangInsuranceDataTable.length) {
|
|
|
this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode == index);
|
|
|
}
|
|
|
@@ -4087,7 +4090,7 @@ export default {
|
|
|
this.huanongInsuranceDataTable = this.huanongInsuranceData.find(
|
|
|
val => val.projectCode == index
|
|
|
).son;
|
|
|
- this.accidentFormHN.accidentType=index
|
|
|
+ this.accidentFormHN.accidentType = index
|
|
|
this.huanongaccidentalDrivingVo = Object.assign(
|
|
|
this.huanongInsuranceData.find(val => val.projectCode == index),
|
|
|
this.accidentFormHN,
|
|
|
@@ -4095,14 +4098,14 @@ export default {
|
|
|
|
|
|
},
|
|
|
taipingInsuranceChange(index) {
|
|
|
- this.taipingtemplateSelection=index
|
|
|
+ this.taipingtemplateSelection = index
|
|
|
this.taipingInsuranceDataTable = this.taipingInsuranceData.find(val => val.projectCode == index).son
|
|
|
if (this.taipingInsuranceDataTable && this.taipingInsuranceDataTable.length) {
|
|
|
this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == index);
|
|
|
}
|
|
|
},
|
|
|
zijinInsuranceChange(index) {
|
|
|
- this.zijintemplateSelection=index
|
|
|
+ this.zijintemplateSelection = index
|
|
|
this.zijinInsuranceDataTable = [];
|
|
|
this.$refs.expandTable[0].clearSelection();
|
|
|
index.forEach(item => {
|
|
|
@@ -4121,7 +4124,7 @@ export default {
|
|
|
// this.renshouInsuranceDataTable = [
|
|
|
// this.renshouInsuranceData.find(val => val.projectCode == index)
|
|
|
// ];
|
|
|
- this.renshoutemplateSelection=index
|
|
|
+ this.renshoutemplateSelection = index
|
|
|
this.renshouInsuranceDataTable = this.renshouInsuranceData.find(val => val.projectCode == index).son
|
|
|
if (index) {
|
|
|
this.RSDrivingChange(this.renshouInsuranceData.find(val => val.projectCode == index));
|
|
|
@@ -4141,7 +4144,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
zhonganInsuranceChange(index) {
|
|
|
- this.zhongantemplateSelection=index
|
|
|
+ this.zhongantemplateSelection = index
|
|
|
this.zhonganInsuranceDataTable = this.zhonganInsuranceData.find(val => val.projectCode == index).son
|
|
|
if (index) {
|
|
|
this.ZADrivingChange(this.zhonganInsuranceData.find(val => val.projectCode == index));
|
|
|
@@ -4150,7 +4153,7 @@ export default {
|
|
|
// 渤海选择意外险类型
|
|
|
async bohaiInsuranceChange(index) {
|
|
|
if (index) {
|
|
|
- this.boHaiaccidentForm.packageCode=index
|
|
|
+ this.boHaiaccidentForm.packageCode = index
|
|
|
this.accidentLoadingbh = true;
|
|
|
this.boHaiaccidentForm.copies = "1";
|
|
|
this.boHaiaccidentForm.premium = Number(
|
|
|
@@ -4176,12 +4179,12 @@ export default {
|
|
|
async grcxchange(index) {
|
|
|
if (index) {
|
|
|
this.accidentLoading = true;
|
|
|
- this.guoRenaccidentForm.goodsCode=index
|
|
|
+ this.guoRenaccidentForm.goodsCode = index
|
|
|
this.guoRenaccidentForm.quantity = "1";
|
|
|
this.guoRenaccidentForm.prodCode = "";
|
|
|
- this.guoRenaccidentDataListChild =this.guoRenaccidentDataList.find(e=>e.projectCode==index).children;
|
|
|
- this.guoRenaccidentalDrivingVo.parentName = this.guoRenaccidentDataList.find(e=>e.projectCode==index).projectName;
|
|
|
- this.guoRenaccidentalDrivingVo.parentCode = this.guoRenaccidentDataList.find(e=>e.projectCode==index).projectCode;
|
|
|
+ this.guoRenaccidentDataListChild = this.guoRenaccidentDataList.find(e => e.projectCode == index).children;
|
|
|
+ this.guoRenaccidentalDrivingVo.parentName = this.guoRenaccidentDataList.find(e => e.projectCode == index).projectName;
|
|
|
+ this.guoRenaccidentalDrivingVo.parentCode = this.guoRenaccidentDataList.find(e => e.projectCode == index).projectCode;
|
|
|
// let data = await this.$api.letter.syncNonAutoInsGuoren({
|
|
|
// goodsCode: index,
|
|
|
// agreementId: this.guoRenaccidentForm.agreementId
|
|
|
@@ -4195,7 +4198,7 @@ export default {
|
|
|
// this.accidentLoading = false;
|
|
|
|
|
|
// } else {
|
|
|
- // this.accidentLoading = false;
|
|
|
+ // this.accidentLoading = false;
|
|
|
// this.$message.error(data.msg);
|
|
|
// this.guoRenaccidentDataListChild = [];
|
|
|
// }
|
|
|
@@ -4208,7 +4211,7 @@ export default {
|
|
|
);
|
|
|
this.guoRenaccidentForm = {
|
|
|
...this.guoRenaccidentForm,
|
|
|
- prodCode:index,
|
|
|
+ prodCode: index,
|
|
|
policyNum: Number(list.sumPremium),
|
|
|
riskCode: list.riskCode,
|
|
|
// amount: list.amount,
|
|
|
@@ -4216,7 +4219,7 @@ export default {
|
|
|
// appnum:Number(list.appnum)
|
|
|
};
|
|
|
this.guoRenInsuranceDataTable = list.son;
|
|
|
- this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
|
|
|
+ this.guoRenaccidentalDrivingVo = Object.assign({ ...list, ...this.guoRenaccidentalDrivingVo })
|
|
|
|
|
|
},
|
|
|
// 选择意外险类型
|
|
|
@@ -4224,18 +4227,18 @@ export default {
|
|
|
if (!index) {
|
|
|
return;
|
|
|
}
|
|
|
- console.log(this.yongchengaccidentDataList,index,88888888888);
|
|
|
+ console.log(this.yongchengaccidentDataList, index, 88888888888);
|
|
|
|
|
|
- this.yongchengtemplateSelection=index
|
|
|
+ this.yongchengtemplateSelection = index
|
|
|
this.accidentForm = Object.assign(
|
|
|
this.accidentForm,
|
|
|
- this.yongchengaccidentDataList.find(val =>val.projectCode == index)
|
|
|
+ this.yongchengaccidentDataList.find(val => val.projectCode == index)
|
|
|
);
|
|
|
this.yongchengaccidentDataList.find(val => val.projectCode == index).son.forEach(item => {
|
|
|
- item.sumAmount= Number(item.amount) * Number(this.accidentForm.seatNum);
|
|
|
- });
|
|
|
- this.yongchengInsuranceDataTable = this.yongchengaccidentDataList.find(val => val.projectCode == index).son
|
|
|
- this.accidentPremium = this.accidentForm.sumPremium;
|
|
|
+ item.sumAmount = Number(item.amount) * Number(this.accidentForm.seatNum);
|
|
|
+ });
|
|
|
+ this.yongchengInsuranceDataTable = this.yongchengaccidentDataList.find(val => val.projectCode == index).son
|
|
|
+ this.accidentPremium = this.accidentForm.sumPremium;
|
|
|
// this.accidentForm.fen = "1";
|
|
|
// let data = await this.$api.letter.ycgainAccidentSchemeList({
|
|
|
// companyCode: this.accidentForm.companyId,
|
|
|
@@ -4442,66 +4445,66 @@ export default {
|
|
|
let selectRow = row.find(item => {
|
|
|
return item.id == val;
|
|
|
});
|
|
|
- let info=row.find(ele=>ele.id==val);
|
|
|
+ let info = row.find(ele => ele.id == val);
|
|
|
this.totalCompanyList[index].apiType = info.apiType;
|
|
|
this.totalCompanyList[index].underwritingDescription = val
|
|
|
? selectRow.underwritingDescription
|
|
|
: ""; //重新赋值修改选中协议承保描述
|
|
|
|
|
|
- this.$api.letter
|
|
|
- .getDrivingInsuranceRule({
|
|
|
- companyCode: item.id,
|
|
|
- agreementId: item.agreementId,
|
|
|
- seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
- ruleUseNature:this.carInfo.carnature,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.nonVehicle(res.data,item.cnName)
|
|
|
- switch(item.namesimple) {
|
|
|
- case "永诚财险":
|
|
|
- this.yongchengaccidentDataList = res.data;
|
|
|
- break;
|
|
|
- case "国任财险":
|
|
|
- this.guoRenaccidentDataList = res.data;
|
|
|
- break;
|
|
|
- case "渤海财险":
|
|
|
- this.boHaiaccidentDataList = res.data;
|
|
|
- break;
|
|
|
- case "中煤财险":
|
|
|
- this[item.cnName + + "InsuranceData"] =res.data;
|
|
|
- break;
|
|
|
- case "紫金财险":
|
|
|
- let data = res.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this.ziJinInsuranceData = data;
|
|
|
- break;
|
|
|
- case "大家财险":
|
|
|
- this.dajiaInsuranceData = res.data;
|
|
|
- break;
|
|
|
- case "中国人寿":
|
|
|
- case "恒邦财险":
|
|
|
- case "太平财险":
|
|
|
- case "安盛天平":
|
|
|
- case "华农财险":
|
|
|
- case "众安财险":
|
|
|
- res.data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this[item.cnName + "InsuranceData"] = res.data;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- else{
|
|
|
- this.$message.error(res.msg)
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$api.letter
|
|
|
+ .getDrivingInsuranceRule({
|
|
|
+ companyCode: item.id,
|
|
|
+ agreementId: item.agreementId,
|
|
|
+ seatNum: item.namesimple == '永诚财险' || item.namesimple == '中煤财险' ? Number(this.carInfo.seatCount) : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.nonVehicle(res.data, item.cnName)
|
|
|
+ switch (item.namesimple) {
|
|
|
+ case "永诚财险":
|
|
|
+ this.yongchengaccidentDataList = res.data;
|
|
|
+ break;
|
|
|
+ case "国任财险":
|
|
|
+ this.guoRenaccidentDataList = res.data;
|
|
|
+ break;
|
|
|
+ case "渤海财险":
|
|
|
+ this.boHaiaccidentDataList = res.data;
|
|
|
+ break;
|
|
|
+ case "中煤财险":
|
|
|
+ this[item.cnName + + "InsuranceData"] = res.data;
|
|
|
+ break;
|
|
|
+ case "紫金财险":
|
|
|
+ let data = res.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ this.ziJinInsuranceData = data;
|
|
|
+ break;
|
|
|
+ case "大家财险":
|
|
|
+ this.dajiaInsuranceData = res.data;
|
|
|
+ break;
|
|
|
+ case "中国人寿":
|
|
|
+ case "恒邦财险":
|
|
|
+ case "太平财险":
|
|
|
+ case "安盛天平":
|
|
|
+ case "华农财险":
|
|
|
+ case "众安财险":
|
|
|
+ res.data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ this[item.cnName + "InsuranceData"] = res.data;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
// switch (item.namesimple) {
|
|
|
// case "永诚财险":
|
|
|
// this.accidentForm.agreementId = item.agreementId;
|
|
|
@@ -4607,23 +4610,23 @@ export default {
|
|
|
// break;
|
|
|
// }
|
|
|
},
|
|
|
- nonVehicle(data,type){
|
|
|
- if( data.some(e=>e.isDefault)){
|
|
|
- if(type=='guoRen'){
|
|
|
- this.grcxchange(data.find(ele=>ele.isDefault).projectCode)
|
|
|
- this.grcxchangeChild((data.find(ele=>ele.isDefault).children).find(ele=>ele.isDefault).projectCode)
|
|
|
- }
|
|
|
- if(type=='ansheng'){
|
|
|
- this.anshengInsuranceChange(data.find(ele=>ele.isDefault).projectCode)
|
|
|
- this.ASDrivingRadio((data.find(ele=>ele.isDefault).children).find(ele=>ele.isDefault))
|
|
|
- }
|
|
|
- if(type=='zijin'){
|
|
|
- this[type + "InsuranceChange"]([data.find(ele=>ele.isDefault).projectCode])
|
|
|
- }
|
|
|
- else{
|
|
|
- this[type + "InsuranceChange"](data.find(ele=>ele.isDefault).projectCode)
|
|
|
- }
|
|
|
+ nonVehicle(data, type) {
|
|
|
+ if (data.some(e => e.isDefault)) {
|
|
|
+ if (type == 'guoRen') {
|
|
|
+ this.grcxchange(data.find(ele => ele.isDefault).projectCode)
|
|
|
+ this.grcxchangeChild((data.find(ele => ele.isDefault).children).find(ele => ele.isDefault).projectCode)
|
|
|
+ }
|
|
|
+ if (type == 'ansheng') {
|
|
|
+ this.anshengInsuranceChange(data.find(ele => ele.isDefault).projectCode)
|
|
|
+ this.ASDrivingRadio((data.find(ele => ele.isDefault).children).find(ele => ele.isDefault))
|
|
|
+ }
|
|
|
+ if (type == 'zijin') {
|
|
|
+ this[type + "InsuranceChange"]([data.find(ele => ele.isDefault).projectCode])
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this[type + "InsuranceChange"](data.find(ele => ele.isDefault).projectCode)
|
|
|
}
|
|
|
+ }
|
|
|
},
|
|
|
CheckboxChange(select, row) {
|
|
|
this.accidentalDrivingVo = [];
|
|
|
@@ -4649,7 +4652,7 @@ export default {
|
|
|
//安盛驾意险选择
|
|
|
ASDrivingRadio(row) {
|
|
|
this.anshengInsurancetype = row.projectCode;
|
|
|
- this.anshengaccidentalDrivingVo=Object.assign({...row,...this.anshengaccidentalDrivingVo})
|
|
|
+ this.anshengaccidentalDrivingVo = Object.assign({ ...row, ...this.anshengaccidentalDrivingVo })
|
|
|
// this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
|
|
|
// this.anshengaccidentalDrivingVo.projectName = row.projectName;
|
|
|
},
|
|
|
@@ -4723,58 +4726,58 @@ export default {
|
|
|
index
|
|
|
].agreement[0].underwritingDescription;
|
|
|
this.$api.letter
|
|
|
- .getDrivingInsuranceRule({
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
- ruleUseNature:this.carInfo.carnature,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
- })
|
|
|
- .then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- switch(ins) {
|
|
|
- case "永诚财险":
|
|
|
- this.yongchengaccidentDataList = res.data;
|
|
|
+ .getDrivingInsuranceRule({
|
|
|
+ agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
+ seatNum: ins == '永诚财险' || ins == '中煤财险' ? Number(this.carInfo.seatCount) : '',
|
|
|
+ ruleUseNature: this.carInfo.carnature,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ switch (ins) {
|
|
|
+ case "永诚财险":
|
|
|
+ this.yongchengaccidentDataList = res.data;
|
|
|
break;
|
|
|
- case "国任财险":
|
|
|
- this.guoRenaccidentDataList = res.data;
|
|
|
+ case "国任财险":
|
|
|
+ this.guoRenaccidentDataList = res.data;
|
|
|
break;
|
|
|
- case "渤海财险":
|
|
|
- this.boHaiaccidentDataList = res.data;
|
|
|
+ case "渤海财险":
|
|
|
+ this.boHaiaccidentDataList = res.data;
|
|
|
break;
|
|
|
- case "中煤财险":
|
|
|
- this[name + "InsuranceData"] =res.data;
|
|
|
+ case "中煤财险":
|
|
|
+ this[name + "InsuranceData"] = res.data;
|
|
|
+ break;
|
|
|
+ case "紫金财险":
|
|
|
+ let data = res.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ this.ziJinInsuranceData = data;
|
|
|
+ break;
|
|
|
+ case "大家财险":
|
|
|
+ this.dajiaInsuranceData = res.data;
|
|
|
+ break;
|
|
|
+ case "中国人寿":
|
|
|
+ case "恒邦财险":
|
|
|
+ case "太平财险":
|
|
|
+ case "华农财险":
|
|
|
+ case "安盛天平":
|
|
|
+ case "众安财险":
|
|
|
+ res.data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ });
|
|
|
+ this[name + "InsuranceData"] = res.data
|
|
|
break;
|
|
|
- case "紫金财险":
|
|
|
- let data = res.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this.ziJinInsuranceData = data;
|
|
|
- break;
|
|
|
- case "大家财险":
|
|
|
- this.dajiaInsuranceData = res.data;
|
|
|
- break;
|
|
|
- case "中国人寿":
|
|
|
- case "恒邦财险":
|
|
|
- case "太平财险":
|
|
|
- case "华农财险":
|
|
|
- case "安盛天平":
|
|
|
- case "众安财险":
|
|
|
- res.data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this[name + "InsuranceData"] = res.data
|
|
|
- break;
|
|
|
- }
|
|
|
- this.nonVehicle(res.data,name)
|
|
|
- }
|
|
|
- else{
|
|
|
- this.$message.error(res.msg)
|
|
|
}
|
|
|
- });
|
|
|
+ this.nonVehicle(res.data, name)
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.$message.error(res.msg)
|
|
|
+ }
|
|
|
+ });
|
|
|
// switch (ins) {
|
|
|
// case "永诚财险":
|
|
|
// this.accidentForm.agreementId = this.totalCompanyList[
|
|
|
@@ -4911,7 +4914,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
clearAccidentForm() {
|
|
|
- this.yongchengInsuranceDataTable=[]
|
|
|
+ this.yongchengInsuranceDataTable = []
|
|
|
this.accidentForm = {};
|
|
|
this.accidentForm.fen = 1;
|
|
|
this.accidentForm.premium = 0;
|
|
|
@@ -5249,12 +5252,12 @@ export default {
|
|
|
if (this.tbczcarShow && this.imageList2.length > 0) {
|
|
|
//投保人同车主
|
|
|
this.imageList3 = JSON.parse(JSON.stringify(this.imageList2));
|
|
|
- if (this.imageList3.length == 1 ) {
|
|
|
- this.imageList3[0].imageType = this.imageList3[0].imageType.includes('C0')?"C03":'D03'
|
|
|
+ if (this.imageList3.length == 1) {
|
|
|
+ this.imageList3[0].imageType = this.imageList3[0].imageType.includes('C0') ? "C03" : 'D03'
|
|
|
}
|
|
|
else {
|
|
|
- this.imageList3.forEach(e=>{
|
|
|
- e.imageType= e.imageType.includes('C0')?"C03":'D03'
|
|
|
+ this.imageList3.forEach(e => {
|
|
|
+ e.imageType = e.imageType.includes('C0') ? "C03" : 'D03'
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
@@ -5262,12 +5265,12 @@ export default {
|
|
|
if (this.bbczcarShow && this.imageList2.length > 0) {
|
|
|
//被保人同车主
|
|
|
this.imageList4 = JSON.parse(JSON.stringify(this.imageList2));
|
|
|
- if (this.imageList4.length == 1 ) {
|
|
|
- this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
|
|
|
+ if (this.imageList4.length == 1) {
|
|
|
+ this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0') ? "C04" : 'D04'
|
|
|
}
|
|
|
else {
|
|
|
- this.imageList4.forEach(e=>{
|
|
|
- e.imageType= e.imageType.includes('C0')?"C04":'D04'
|
|
|
+ this.imageList4.forEach(e => {
|
|
|
+ e.imageType = e.imageType.includes('C0') ? "C04" : 'D04'
|
|
|
})
|
|
|
}
|
|
|
// if (this.imageList4.length == 1) {
|
|
|
@@ -5281,12 +5284,12 @@ export default {
|
|
|
if (this.bbtbcarShow && this.imageList3.length > 0) {
|
|
|
//被保人同投保人
|
|
|
this.imageList4 = JSON.parse(JSON.stringify(this.imageList3));
|
|
|
- if (this.imageList4.length == 1 ) {
|
|
|
- this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0')?"C04":'D04'
|
|
|
+ if (this.imageList4.length == 1) {
|
|
|
+ this.imageList4[0].imageType = this.imageList4[0].imageType.includes('C0') ? "C04" : 'D04'
|
|
|
}
|
|
|
else {
|
|
|
- this.imageList4.forEach(e=>{
|
|
|
- e.imageType= e.imageType.includes('C0')?"C04":'D04'
|
|
|
+ this.imageList4.forEach(e => {
|
|
|
+ e.imageType = e.imageType.includes('C0') ? "C04" : 'D04'
|
|
|
})
|
|
|
}
|
|
|
// if (this.imageList4.length == 1) {
|
|
|
@@ -5422,7 +5425,7 @@ export default {
|
|
|
kindList: this.kindList,
|
|
|
riskList: this.riskList,
|
|
|
vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
+ isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
|
|
|
};
|
|
|
return this.$api.letter[this.apiInterfaceName](param).then(res => {
|
|
|
@@ -5530,7 +5533,7 @@ export default {
|
|
|
// }
|
|
|
if (this.accidentFormZM.projectCode) {
|
|
|
accidentalDrivingVo = {
|
|
|
- ...this.zhongmeiInsuranceData.find(e=>e.projectCode==this.accidentFormZM.projectCode),
|
|
|
+ ...this.zhongmeiInsuranceData.find(e => e.projectCode == this.accidentFormZM.projectCode),
|
|
|
quantity: this.accidentFormZM.quantity
|
|
|
? this.accidentFormZM.quantity
|
|
|
: "1"
|
|
|
@@ -5688,7 +5691,7 @@ export default {
|
|
|
},
|
|
|
//华泰报价
|
|
|
huatai(num, id) {
|
|
|
- let type=this.totalCompanyList[num].apiType;
|
|
|
+ let type = this.totalCompanyList[num].apiType;
|
|
|
let api = type == 2 ? "pythonquote" : "huataiquote";
|
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
let params = {
|
|
|
@@ -5832,7 +5835,7 @@ export default {
|
|
|
let accidentalDrivingVo = {};
|
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
if (this.accidentForm.projectCode) {
|
|
|
- let data= this.yongchengaccidentDataList.find(
|
|
|
+ let data = this.yongchengaccidentDataList.find(
|
|
|
val => val.projectCode == this.yongchengtemplateSelection
|
|
|
);
|
|
|
accidentalDrivingVo = {
|
|
|
@@ -6287,11 +6290,11 @@ export default {
|
|
|
this.totalCompanyList[num].apiType
|
|
|
);
|
|
|
},
|
|
|
- capTypedictTag(val,option) {
|
|
|
- if(option.find(item => item.dictValue == val)){
|
|
|
- return option.find(item => item.dictValue == val).dictTag;
|
|
|
- }
|
|
|
- else{
|
|
|
+ capTypedictTag(val, option) {
|
|
|
+ if (option.find(item => item.dictValue == val)) {
|
|
|
+ return option.find(item => item.dictValue == val).dictTag;
|
|
|
+ }
|
|
|
+ else {
|
|
|
return '-'
|
|
|
}
|
|
|
|
|
|
@@ -6324,15 +6327,15 @@ export default {
|
|
|
}
|
|
|
return ele;
|
|
|
});
|
|
|
- if(data.carinfo.carnature && data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业'){
|
|
|
- data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.outOfBusinessVehicleUseoptions)
|
|
|
- }else{
|
|
|
- data.carinfo.vehicleUse=this.capTypedictTag(data.carinfo.vehicleUse,this.businessVehicleUseoptions)
|
|
|
+ if (data.carinfo.carnature && data.carinfo.carnature == '02' || data.carinfo.carnature == '非营业') {
|
|
|
+ data.carinfo.vehicleUse = this.capTypedictTag(data.carinfo.vehicleUse, this.outOfBusinessVehicleUseoptions)
|
|
|
+ } else {
|
|
|
+ data.carinfo.vehicleUse = this.capTypedictTag(data.carinfo.vehicleUse, this.businessVehicleUseoptions)
|
|
|
}
|
|
|
- data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature,this.natureOfVehicleUseoptions);
|
|
|
- data.carinfo.cartype=data.carinfo.cartype?this.capTypedictTag(data.carinfo.cartype,this.trafficManagementVehicleTypeoptions):''
|
|
|
- data.carinfo.cimodelclass=data.carinfo.cimodelclass?this.capTypedictTag(data.carinfo.cimodelclass,this.vehicleTypeoptions):''
|
|
|
- data.carinfo.energyType=data.carinfo.energyType?this.capTypedictTag(data.carinfo.energyType,this.energyTypeoptions):''
|
|
|
+ data.carinfo.carnature = this.capTypedictTag(data.carinfo.carnature, this.natureOfVehicleUseoptions);
|
|
|
+ data.carinfo.cartype = data.carinfo.cartype ? this.capTypedictTag(data.carinfo.cartype, this.trafficManagementVehicleTypeoptions) : ''
|
|
|
+ data.carinfo.cimodelclass = data.carinfo.cimodelclass ? this.capTypedictTag(data.carinfo.cimodelclass, this.vehicleTypeoptions) : ''
|
|
|
+ data.carinfo.energyType = data.carinfo.energyType ? this.capTypedictTag(data.carinfo.energyType, this.energyTypeoptions) : ''
|
|
|
this.queryOrders = data;
|
|
|
//赋值费用信息
|
|
|
// this.feeDetailInfo=data.orderFeeResult;
|
|
|
@@ -6656,14 +6659,14 @@ export default {
|
|
|
});
|
|
|
break;
|
|
|
case "华泰财险":
|
|
|
- let HtApiImage = "";
|
|
|
- HtApiImage =
|
|
|
+ let HtApiImage = "";
|
|
|
+ HtApiImage =
|
|
|
this.apiType == 2
|
|
|
? "pythonsubmitImage"
|
|
|
: "insHuataisubmitImage";
|
|
|
await this.$api.letter[HtApiImage]({
|
|
|
[this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
|
|
|
- })
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
if (res.code == "200") {
|
|
|
var _this = this;
|
|
|
@@ -6680,8 +6683,8 @@ export default {
|
|
|
});
|
|
|
_this.$api.letter[HtApiaudit]({
|
|
|
[this.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
|
|
|
- engageList
|
|
|
- })
|
|
|
+ engageList
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
if (res.code == "200") {
|
|
|
loading.close();
|
|
|
@@ -8069,7 +8072,7 @@ export default {
|
|
|
|
|
|
this.$api.letter.getThemeByUserId().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- if(res.data[0]=='GD'){
|
|
|
+ if (res.data[0] == 'GD') {
|
|
|
this.$refs.quotationDialogPro.setBackupVisible(true);
|
|
|
}
|
|
|
else {
|
|
|
@@ -8107,7 +8110,7 @@ export default {
|
|
|
let qrCodeUrl = res.data.qrCodeUrl
|
|
|
this.$api.letter.getThemeByUserId().then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- if(res.data[0]=='GD'){
|
|
|
+ if (res.data[0] == 'GD') {
|
|
|
this.codedialogVisiblePro = true;
|
|
|
this.qrcodeWidth = "154";
|
|
|
this.qrcodeHeight = "154";
|
|
|
@@ -8116,13 +8119,27 @@ export default {
|
|
|
this.codedialogVisible = true;
|
|
|
}
|
|
|
this.$nextTick(function () {
|
|
|
- if (item.inscompany == "太平财险" || item.inscompany == "华泰财险") {
|
|
|
+ if (item.inscompany == "太平财险") {
|
|
|
let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
|
|
|
let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
base64ToPath(animgBase64).then(path => {
|
|
|
this.paycodeimg = path;
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (item.inscompany == "华泰财险") {
|
|
|
+ switch (item.apiType) {
|
|
|
+ case 1:
|
|
|
+ this.paycodeimg = qrCodeUrl;
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
|
|
|
+ let animgBase64 = `data:image/png;base64,${anresult}`;
|
|
|
+ base64ToPath(animgBase64).then(path => {
|
|
|
+ this.paycodeimg = path;
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
this.creatQrCode(qrCodeUrl);
|
|
|
}
|
|
|
});
|
|
|
@@ -8219,7 +8236,7 @@ export default {
|
|
|
};
|
|
|
this.accidentFormHN = {
|
|
|
allQuantity: "1",
|
|
|
- quantity:'1'
|
|
|
+ quantity: '1'
|
|
|
};
|
|
|
|
|
|
this.hengbangaccidentalDrivingVo = {};
|