|
|
@@ -1207,7 +1207,7 @@
|
|
|
<el-form-item label="意外险类型" style="margin-right:30px;">
|
|
|
<el-select clearable v-model="yongchengtemplateSelection" placeholder="未选择" @clear="clearAccidentForm"
|
|
|
@change="yongchengInsuranceChange">
|
|
|
- <el-option v-for="(item, index) in accidentDataList" :key="index" :label="item.projectName"
|
|
|
+ <el-option v-for="(item, index) in yongchengaccidentDataList" :key="index" :label="item.projectName"
|
|
|
:value="item.projectCode"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
@@ -2275,7 +2275,7 @@ export default {
|
|
|
allQuantity: "1",
|
|
|
quantity:'1'
|
|
|
}, //华农意外险内容
|
|
|
- accidentDataList: [], //永诚意外险
|
|
|
+ yongchengaccidentDataList: [], //永诚意外险
|
|
|
yongchengtemplateSelection:'',
|
|
|
guoRenaccidentDataList: [], //国任意外险
|
|
|
guoRenInsuranceDataTable: [],
|
|
|
@@ -4103,7 +4103,6 @@ export default {
|
|
|
},
|
|
|
zijinInsuranceChange(index) {
|
|
|
this.zijintemplateSelection=index
|
|
|
- console.log(index,222222);
|
|
|
this.zijinInsuranceDataTable = [];
|
|
|
this.$refs.expandTable[0].clearSelection();
|
|
|
index.forEach(item => {
|
|
|
@@ -4216,8 +4215,8 @@ export default {
|
|
|
sumPremium: Number(list.sumPremium)
|
|
|
// appnum:Number(list.appnum)
|
|
|
};
|
|
|
- this.guoRenaccidenttableData = list.son;
|
|
|
- this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
|
|
|
+ this.guoRenInsuranceDataTable = list.son;
|
|
|
+ this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
|
|
|
|
|
|
},
|
|
|
// 选择意外险类型
|
|
|
@@ -4225,16 +4224,17 @@ export default {
|
|
|
if (!index) {
|
|
|
return;
|
|
|
}
|
|
|
+ console.log(this.yongchengaccidentDataList,index,88888888888);
|
|
|
+
|
|
|
this.yongchengtemplateSelection=index
|
|
|
this.accidentForm = Object.assign(
|
|
|
this.accidentForm,
|
|
|
- this.accidentDataList.find(val =>val.projectCode == index)
|
|
|
+ this.yongchengaccidentDataList.find(val =>val.projectCode == index)
|
|
|
);
|
|
|
- this.accidentDataList.find(val => val.projectCode == index).son.forEach(item => {
|
|
|
+ this.yongchengaccidentDataList.find(val => val.projectCode == index).son.forEach(item => {
|
|
|
item.sumAmount= Number(item.amount) * Number(this.accidentForm.seatNum);
|
|
|
});
|
|
|
- this.accidenttableData = this.accidentDataList.find(val => val.projectCode == index).son
|
|
|
-
|
|
|
+ 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({
|
|
|
@@ -4461,7 +4461,7 @@ export default {
|
|
|
this.nonVehicle(res.data,item.cnName)
|
|
|
switch(item.namesimple) {
|
|
|
case "永诚财险":
|
|
|
- this.accidentDataList = res.data;
|
|
|
+ this.yongchengaccidentDataList = res.data;
|
|
|
break;
|
|
|
case "国任财险":
|
|
|
this.guoRenaccidentDataList = res.data;
|
|
|
@@ -4648,7 +4648,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;
|
|
|
},
|
|
|
@@ -4731,10 +4731,9 @@ export default {
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- this.nonVehicle(res.data,name)
|
|
|
switch(ins) {
|
|
|
case "永诚财险":
|
|
|
- this.accidentDataList = res.data;
|
|
|
+ this.yongchengaccidentDataList = res.data;
|
|
|
break;
|
|
|
case "国任财险":
|
|
|
this.guoRenaccidentDataList = res.data;
|
|
|
@@ -4769,6 +4768,7 @@ export default {
|
|
|
this[name + "InsuranceData"] = res.data
|
|
|
break;
|
|
|
}
|
|
|
+ this.nonVehicle(res.data,name)
|
|
|
}
|
|
|
else{
|
|
|
this.$message.error(res.msg)
|
|
|
@@ -4910,6 +4910,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
clearAccidentForm() {
|
|
|
+ this.yongchengInsuranceDataTable=[]
|
|
|
this.accidentForm = {};
|
|
|
this.accidentForm.fen = 1;
|
|
|
this.accidentForm.premium = 0;
|
|
|
@@ -5829,7 +5830,7 @@ export default {
|
|
|
let accidentalDrivingVo = {};
|
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
if (this.accidentForm.projectCode) {
|
|
|
- let data= this.accidentDataList.find(
|
|
|
+ let data= this.yongchengaccidentDataList.find(
|
|
|
val => val.projectCode == this.yongchengtemplateSelection
|
|
|
);
|
|
|
accidentalDrivingVo = {
|