|
|
@@ -1873,40 +1873,49 @@
|
|
|
v-if="reslistitem.namesimple == '中煤财险' && reslistitem.checked && reslistitem.agreementId"
|
|
|
>
|
|
|
<div class="flex f-c Driving-risk accident-style zmDriving">
|
|
|
- <h3>意外险信息</h3>
|
|
|
- <div class="dis a-c" style="margin-bottom:15px">
|
|
|
<span style="margin-right:15px;color:#606266;">意外险类型:</span>
|
|
|
- <el-select
|
|
|
+ <el-form :inline="true" :model="accidentFormZM" class="demo-form-inline" size="small">
|
|
|
+ <el-form-item label="意外险类型:" style="margin-right:30px;">
|
|
|
+ <el-select
|
|
|
style="width: 250px;"
|
|
|
size="small"
|
|
|
clearable
|
|
|
v-model="zhongmeiInsurancetype"
|
|
|
placeholder="选择类型"
|
|
|
- @clear="clearAccidentFormZM"
|
|
|
+ @clear="numberCopieschangeZM"
|
|
|
@change="zhongmeiInsuranceChange"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="(item, index) in zhongmeiInsuranceData"
|
|
|
:key="index"
|
|
|
- :label="item.productName"
|
|
|
- :value="item.productCode"
|
|
|
+ :label="item.rideRiskName"
|
|
|
+ :value="item.rideRiskCode"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
- </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="份数:" style="margin-right:30px;">
|
|
|
+ <el-input-number
|
|
|
+ v-model="accidentFormZM.quantity"
|
|
|
+ @change="numberCopieschangeZM"
|
|
|
+ :min="1"
|
|
|
+ :max="accidentFormZM.maxQuantity"
|
|
|
+ ></el-input-number>
|
|
|
+ <span style="margin-left: 5px;">份</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="保费:">
|
|
|
+ <span>{{accidentFormZM.unitPremium}} 元</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
<el-table
|
|
|
size="small"
|
|
|
:data="zhongmeiInsuranceDataDetail"
|
|
|
border
|
|
|
ref="ZmMultipleTable"
|
|
|
- @selection-change="ZMHandleSelectionChange"
|
|
|
- highlight-current-row
|
|
|
:header-cell-style="{ background: '#F2F7FC', fontWeight: '700', color: '#ee7000' }"
|
|
|
>
|
|
|
- <el-table-column align="center" type="selection"></el-table-column>
|
|
|
- <el-table-column prop="schemeName" label="方案名称" align="center"></el-table-column>
|
|
|
- <el-table-column prop="unitAmount" label="保额 (元)/每份" align="center"></el-table-column>
|
|
|
- <el-table-column prop="unitPremium" label="保费 (元)/每份" align="center"></el-table-column>
|
|
|
- <el-table-column label="份数" align="center">
|
|
|
+ <el-table-column prop="insurName" label="保险责任名称" align="center"></el-table-column>
|
|
|
+ <el-table-column prop="amountName" label="保险责任对应保额" align="center"></el-table-column>
|
|
|
+ <!-- <el-table-column label="份数" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div @click.stop>
|
|
|
<el-input-number
|
|
|
@@ -1918,15 +1927,7 @@
|
|
|
></el-input-number>
|
|
|
</div>
|
|
|
</template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="Totalprice" label="总保费 (元)" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span
|
|
|
- v-if="scope.row.quantity"
|
|
|
- >{{ scope.row.unitPremium * scope.row.quantity }}</span>
|
|
|
- <span v-else>{{ scope.row.sumPremium }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ </el-table-column> -->
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -3570,8 +3571,13 @@ export default {
|
|
|
quantity: "1",
|
|
|
premium:0
|
|
|
}, //国任意外险内容
|
|
|
+ accidentFormZM: {
|
|
|
+ quantity: "1",
|
|
|
+ unitPremium:0
|
|
|
+ }, //中煤意外险内容
|
|
|
accidentPremium: "",
|
|
|
accidentPremiumGr:'',
|
|
|
+ accidentPremiumZM:'',
|
|
|
contributingState:false, //是否为国任特约
|
|
|
pickerOptions: {
|
|
|
disabledDate(time) {
|
|
|
@@ -5038,11 +5044,11 @@ else{
|
|
|
},
|
|
|
//中煤意外险选中对应意外险方案
|
|
|
ZMHandleSelectionChange(val){
|
|
|
- if(val.length > 0&& val[0].quantity==undefined){
|
|
|
- this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
|
|
|
- this.$refs.ZmMultipleTable[0].clearSelection(); //清除
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // if(val.length > 0&& val[0].quantity==undefined){
|
|
|
+ // this.$message({ message: "请先填写投保份数再勾选!", type: "error", });
|
|
|
+ // this.$refs.ZmMultipleTable[0].clearSelection(); //清除
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
|
|
|
if(val.length > 1) {
|
|
|
this.$refs.ZmMultipleTable[0].clearSelection(); //清除
|
|
|
@@ -5056,11 +5062,19 @@ else{
|
|
|
//每次选中产品,清空之前选中的数据
|
|
|
this.zhongmeiaccidentalDrivingVo={};
|
|
|
this.zhongmeiInsuranceDataDetail=[];
|
|
|
- let data=this.zhongmeiInsuranceData.find(val=>val.productCode==index)
|
|
|
+ let data=this.zhongmeiInsuranceData.find(val=>val.rideRiskCode==index)
|
|
|
//把返回的方案明细放入展示数据对象中
|
|
|
- if(data&&data.schemeList){
|
|
|
- this.zhongmeiInsuranceDataDetail=data.schemeList;
|
|
|
+ this.accidentFormZM = Object.assign(
|
|
|
+ this.accidentFormZM,
|
|
|
+ data
|
|
|
+ );
|
|
|
+ this.accidentFormZM.quantity='1'
|
|
|
+ this.accidentFormZM.maxQuantity=Number(data.maxQuantity)
|
|
|
+ if(data&&data.accAmountView){
|
|
|
+ this.accidentPremiumZM=data.unitPremium
|
|
|
+ this.zhongmeiInsuranceDataDetail=data.accAmountView;
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
// 截图粘贴
|
|
|
copybjd(){
|
|
|
@@ -5410,6 +5424,9 @@ else{
|
|
|
numberCopieschangeGr(index) {
|
|
|
this.guoRenaccidentForm.premium = Number(this.accidentPremiumGr) * index;
|
|
|
},
|
|
|
+ numberCopieschangeZM(index) {
|
|
|
+ this.accidentFormZM.unitPremium = Number(this.accidentPremiumZM) * index;
|
|
|
+ },
|
|
|
continuousChange(id) {
|
|
|
this.continuousCompanyList.map(ele => {
|
|
|
if (ele.id == id) {
|
|
|
@@ -5739,7 +5756,6 @@ else{
|
|
|
return ele;
|
|
|
})
|
|
|
this[name+"InsuranceData"] = data;
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
@@ -5756,19 +5772,19 @@ else{
|
|
|
return ele;
|
|
|
})
|
|
|
this[name+"InsuranceData"] = data;
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
case '中煤财险':
|
|
|
- this.$api.letter.zmGetDriving({ agreementId: this.totalCompanyList[index].agreement[0].id,seatNum:this.carInfo.seatCount}).then(res => {
|
|
|
+ this.guoRenaccidentForm.agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
+ this.$api.letter.zmGetDrivingPro({ agreementId: this.totalCompanyList[index].agreement[0].id,seatNum:this.carInfo.seatCount}).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
let data = res.data;
|
|
|
this[name+"InsuranceData"] = data;
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
- case '大家财险':
|
|
|
+ case '大家财险':gufgaaobbmzjbgsiebnmmmmmmduyvbgzol
|
|
|
this.$api.letter.dajiagetDriving({ agreementId: this.totalCompanyList[index].agreement[0].id }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.dajiaInsuranceData = res.data;
|
|
|
@@ -6317,14 +6333,20 @@ else{
|
|
|
//中煤报价
|
|
|
zhongmei(num, id) {
|
|
|
let accidentalDrivingVo={};
|
|
|
- if(this.zhongmeiaccidentalDrivingVo){
|
|
|
- accidentalDrivingVo.rideRiskCode=this.zhongmeiaccidentalDrivingVo.schemeNo;
|
|
|
- accidentalDrivingVo.rideRiskName=this.zhongmeiaccidentalDrivingVo.schemeName;
|
|
|
- accidentalDrivingVo.quantity=this.zhongmeiaccidentalDrivingVo.quantity;
|
|
|
+ // if(this.zhongmeiaccidentalDrivingVo){
|
|
|
+ // accidentalDrivingVo.rideRiskCode=this.zhongmeiaccidentalDrivingVo.schemeNo;
|
|
|
+ // accidentalDrivingVo.rideRiskName=this.zhongmeiaccidentalDrivingVo.schemeName;
|
|
|
+ // accidentalDrivingVo.quantity=this.zhongmeiaccidentalDrivingVo.quantity;
|
|
|
+ // }
|
|
|
+ if (this.accidentFormZM.rideRiskCode) {
|
|
|
+ accidentalDrivingVo = {
|
|
|
+ rideRiskCode: this.accidentFormZM.rideRiskCode,
|
|
|
+ rideRiskName: this.accidentFormZM.rideRiskName,
|
|
|
+ quantity: this.accidentFormZM.quantity ? this.accidentFormZM.quantity : "1",
|
|
|
+ };
|
|
|
}
|
|
|
-
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: accidentalDrivingVo,
|
|
|
+ accidentalDrivingVo,
|
|
|
orderNo: this.orderno,
|
|
|
companyId: id,
|
|
|
agreementId: this.totalCompanyList[num].agreementId,
|