|
|
@@ -3068,12 +3068,37 @@ export default {
|
|
|
},
|
|
|
//勾选保险公司
|
|
|
initchange(e, code, name, index) {
|
|
|
+ let ins=this.totalCompanyList[index].namesimple;
|
|
|
this.totalCompanyList[index].agreementId = "";
|
|
|
this.totalCompanyList[index].checked = e;
|
|
|
this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
if (this.carInfo.licenseNo.slice(0, 2) != '晋A') {
|
|
|
this.totalCompanyList[0].agreementId = this.totalCompanyList[0].agreement[1].id;
|
|
|
}
|
|
|
+ switch (ins) {
|
|
|
+ case '永诚财险':
|
|
|
+ this.accidentForm.agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
+ this.$api.letter.ycgainAccidentList({ companyCode: this.totalCompanyList[index].id, agreementId: this.totalCompanyList[index].agreement[0].id }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.accidentDataList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case '紫金财险':
|
|
|
+ this.$api.letter.zijinqueryVehicleProducts({ agreementId: this.totalCompanyList[index].agreement[0].id, seatCount: Number(this.carInfo.seatCount) }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ let data = res.data;
|
|
|
+ data.map(ele => {
|
|
|
+ ele.quantity = 1;
|
|
|
+ return ele;
|
|
|
+ })
|
|
|
+ this.ziJinInsuranceData = data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
},
|
|
|
clearAccidentForm() {
|
|
|
this.accidentForm = {
|
|
|
@@ -4959,6 +4984,7 @@ export default {
|
|
|
CarOCRconfirm() {
|
|
|
//传参
|
|
|
this.ownerInfo.name = this.carform.carOwner; //车主
|
|
|
+ this.carInfo.cartype='K33'
|
|
|
this.carInfo.licenseNo = this.carform.licenseNo; //车牌号
|
|
|
this.carInfo.modelcname = this.carform.modelcname; //品牌型号
|
|
|
this.carInfo.vinNo = this.carform.frameNo; //车架号
|