|
|
@@ -1391,11 +1391,11 @@
|
|
|
<el-select clearable v-model="pingantemplateSelection" placeholder="未选择" @clear="clearAccidentFormPA"
|
|
|
@change="pinganInsuranceChange">
|
|
|
<el-option v-for="(item, index) in pinganInsuranceData" :key="index" :label="item.projectName"
|
|
|
- :value="item.projectCode"></el-option>
|
|
|
+ :value="item.projectName"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="选择份数" style="margin-right: 50px">
|
|
|
- <el-input-number v-model="accidentFormPA.quantity" @change="numberCopieschangePA" :min="1"
|
|
|
+ <el-input-number v-model="accidentFormPA.quantity" @change="numberCopieschangePA" :min="1" :max="accidentFormPA.sellListSize"
|
|
|
controls-position="right"></el-input-number>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="保费:">
|
|
|
@@ -1410,7 +1410,7 @@
|
|
|
}">
|
|
|
<el-table-column align="center" width="55" label="选择">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-radio class="radio" v-model="pinganInsurancetype" :label="scope.row.projectCode"
|
|
|
+ <el-radio class="radio" v-model="pinganInsurancetype" :label="scope.row.code"
|
|
|
@click.native.stop.prevent="PADrivingRadio(scope.row)"> </el-radio>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -4821,7 +4821,7 @@ export default {
|
|
|
if (!index) {
|
|
|
return;
|
|
|
}
|
|
|
- this.taikangtemplateSelection = index;
|
|
|
+ this.pingantemplateSelection = index;
|
|
|
// this.accidentFormPA = Object.assign(
|
|
|
// this.accidentFormPA,
|
|
|
// this.pinganInsuranceData.find((val) => val.projectCode == index)
|
|
|
@@ -4832,9 +4832,14 @@ export default {
|
|
|
// item.sumAmount =
|
|
|
// Number(item.amount) * Number(this.accidentFormPA.seatNum);
|
|
|
// });
|
|
|
- this.taikangInsuranceDataTable = this.pinganInsuranceData.find(
|
|
|
- (val) => val.projectCode == index
|
|
|
+ this.accidentFormPA.projectName=index
|
|
|
+ this.accidentFormPA.projectCode=this.pinganInsuranceData.find(
|
|
|
+ (val) => val.projectName == index
|
|
|
+ ).projectCode
|
|
|
+ this.pinganInsuranceDataTable = this.pinganInsuranceData.find(
|
|
|
+ (val) => val.projectName == index
|
|
|
).son;
|
|
|
+ console.log( this.accidentFormPA,2222222222);
|
|
|
},
|
|
|
taikangInsuranceChange(index) {
|
|
|
if (index) {
|
|
|
@@ -5130,6 +5135,7 @@ export default {
|
|
|
},
|
|
|
numberCopieschangePA(index) {
|
|
|
this.accidentFormPA.premium = Number(this.accidentPremiumPA) * index;
|
|
|
+
|
|
|
},
|
|
|
numberCopieschangeZM(index) {
|
|
|
this.accidentFormZM.sumPremium = Number(this.accidentPremiumZM) * index;
|
|
|
@@ -5410,19 +5416,19 @@ export default {
|
|
|
risk: this.riskList,
|
|
|
kind: this.kindList,
|
|
|
ruleThirdPartyInsurance: this.insureList[1].amount,
|
|
|
- cimodelclass: ins == "平安财险"
|
|
|
+ cimodelclass: item.namesimple == "平安财险"
|
|
|
? this.carInfo.cimodelclass
|
|
|
: "",
|
|
|
- isUseCombine:ins == "平安财险"
|
|
|
+ isUseCombine:item.namesimple == "平安财险"
|
|
|
? 'Y'
|
|
|
: "",
|
|
|
- tonNumber:ins == "平安财险"
|
|
|
+ tonNumber:item.namesimple == "平安财险"
|
|
|
? this.carInfo.limitLoad
|
|
|
: "",
|
|
|
- ownAttribute:ins == "平安财险"
|
|
|
+ ownAttribute:item.namesimple == "平安财险"
|
|
|
? '03'
|
|
|
: "",
|
|
|
- useAttribute: ins == "平安财险"
|
|
|
+ useAttribute: item.namesimple == "平安财险"
|
|
|
? this.carInfo.carnature
|
|
|
: "",
|
|
|
})
|
|
|
@@ -5645,10 +5651,14 @@ export default {
|
|
|
//平安驾意险选择
|
|
|
PADrivingRadio(row) {
|
|
|
this.accidentPremiumPA = row.premium;
|
|
|
+ this.accidentFormPA.quantity = '1';
|
|
|
+ this.accidentFormPA.sellListSize =Number(row.sellListSize) ;
|
|
|
+ this.accidentFormPA.premium = row.premium
|
|
|
this.pinganInsurancetype = row.code;
|
|
|
this.pinganaccidentalDrivingVo = Object.assign({
|
|
|
...this.pinganaccidentalDrivingVo,
|
|
|
- ...row,
|
|
|
+ ...row,
|
|
|
+ ...this.accidentFormPA,
|
|
|
});
|
|
|
},
|
|
|
ZADrivingRadio(row) {
|
|
|
@@ -7034,8 +7044,15 @@ export default {
|
|
|
// 平安报价
|
|
|
pingan(num, id) {
|
|
|
let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
+ let accidentalDrivingVo={}
|
|
|
+ if(this.pinganaccidentalDrivingVo &&this.pinganaccidentalDrivingVo.projectCode){
|
|
|
+ accidentalDrivingVo = Object.assign({
|
|
|
+ ...this.pinganaccidentalDrivingVo,
|
|
|
+ ...this.accidentFormPA,
|
|
|
+ });
|
|
|
+ }
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: this.pinganaccidentalDrivingVo,
|
|
|
+ accidentalDrivingVo,
|
|
|
orderNo: this.orderno,
|
|
|
companyId: id,
|
|
|
agreementId: this.totalCompanyList[num].agreementId,
|