|
|
@@ -2288,6 +2288,7 @@ export default {
|
|
|
guoRenaccidentDataList: [], //国任意外险
|
|
|
guoRenaccidenttableData: [],
|
|
|
guoRenaccidentDataListChild: [],
|
|
|
+ guoRenaccidentalDrivingVo: {}, //国任驾意险
|
|
|
insuranceDJ: "",
|
|
|
dajiaInsuranceData: [], //大家意外险
|
|
|
DJInsuranceData: [],
|
|
|
@@ -4181,7 +4182,8 @@ export default {
|
|
|
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;
|
|
|
// let data = await this.$api.letter.syncNonAutoInsGuoren({
|
|
|
// goodsCode: index,
|
|
|
// agreementId: this.guoRenaccidentForm.agreementId
|
|
|
@@ -4215,6 +4217,8 @@ export default {
|
|
|
// appnum:Number(list.appnum)
|
|
|
};
|
|
|
this.guoRenaccidenttableData = list.son;
|
|
|
+ this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
|
|
|
+
|
|
|
},
|
|
|
// 选择意外险类型
|
|
|
async ywxxxchange(index) {
|
|
|
@@ -4447,8 +4451,9 @@ export default {
|
|
|
companyCode: item.id,
|
|
|
agreementId: item.agreementId,
|
|
|
seatNum:item.namesimple=='永诚财险' ||item.namesimple=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
- ruleUseNature:this.carInfo.carnature
|
|
|
-
|
|
|
+ ruleUseNature:this.carInfo.carnature,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
|
@@ -4709,7 +4714,9 @@ export default {
|
|
|
.getDrivingInsuranceRule({
|
|
|
agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
seatNum:ins=='永诚财险' || ins=='中煤财险'? Number(this.carInfo.seatCount):'',
|
|
|
- ruleUseNature:this.carInfo.carnature
|
|
|
+ ruleUseNature:this.carInfo.carnature,
|
|
|
+ ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
+ ruleThirdPartyInsurance: this.insureList[1].amount
|
|
|
})
|
|
|
.then(res => {
|
|
|
if (res.code == 200) {
|
|
|
@@ -5904,11 +5911,7 @@ export default {
|
|
|
});
|
|
|
let accidentalDrivingVo = {};
|
|
|
if (this.guoRenaccidentForm.goodsCode) {
|
|
|
- let data= this.guoRenaccidentDataList.find(val => val.projectCode == this.guoRenaccidentForm.goodsCode)
|
|
|
- accidentalDrivingVo = {
|
|
|
- ...data,
|
|
|
- ...this.guoRenaccidentForm,
|
|
|
- };
|
|
|
+ accidentalDrivingVo = this.guoRenaccidentalDrivingVo
|
|
|
}
|
|
|
let params = {
|
|
|
accidentalDrivingVo,
|