|
|
@@ -2434,8 +2434,7 @@
|
|
|
this.comparableQuantity = filteredObjects.length;
|
|
|
},
|
|
|
//永诚报价
|
|
|
- async yongcheng(num, id) {
|
|
|
- console.log(id);
|
|
|
+ async AICS(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
@@ -2504,21 +2503,35 @@
|
|
|
}
|
|
|
},
|
|
|
//中煤报价
|
|
|
- async zhongmei(num, id) {
|
|
|
+ async ZMBX(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
+ let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
|
|
|
- .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
- risks: this.riskList,
|
|
|
- agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
+ order: {
|
|
|
+ insuranceCompanyCode: id,
|
|
|
+ quoteNo: this.quoteno,
|
|
|
+ productsCode: this.productId,
|
|
|
+ },
|
|
|
+ accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
|
|
|
+ .quotableCompanyList[num].insurancePlanInfo.drivings[0]
|
|
|
+ ] : [],
|
|
|
+ kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
+ // risks: this.riskList,
|
|
|
+ ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .ciRiskInfoVo : null, //交强大类
|
|
|
+ biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .biRiskInfoVo : null, //商业大类
|
|
|
+ carInfoVo: this.carInfo,
|
|
|
+ ownersInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
|
|
|
isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
+ // agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
- let res = await this.$http.post("/quote/quote", params);
|
|
|
+ let res = await this.$http.post("/unify/order/quote", params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[
|
|
|
@@ -2559,21 +2572,35 @@
|
|
|
}
|
|
|
},
|
|
|
//渤海报价
|
|
|
- async bohai(num, id) {
|
|
|
+ async BPIC(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
+ let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
|
|
|
- .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
- risks: this.riskList,
|
|
|
- agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
+ order: {
|
|
|
+ insuranceCompanyCode: id,
|
|
|
+ quoteNo: this.quoteno,
|
|
|
+ productsCode: this.productId,
|
|
|
+ },
|
|
|
+ accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
|
|
|
+ .quotableCompanyList[num].insurancePlanInfo.drivings[0]
|
|
|
+ ] : [],
|
|
|
+ kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
+ // risks: this.riskList,
|
|
|
+ ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .ciRiskInfoVo : null, //交强大类
|
|
|
+ biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .biRiskInfoVo : null, //商业大类
|
|
|
+ carInfoVo: this.carInfo,
|
|
|
+ ownersInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
|
|
|
isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
+ // agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
- let res = await this.$http.post('/quote/quote', params);
|
|
|
+ let res = await this.$http.post('/unify/order/quote', params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[
|
|
|
@@ -2614,21 +2641,35 @@
|
|
|
}
|
|
|
},
|
|
|
//阳光报价
|
|
|
- async yangguang(num, id) {
|
|
|
+ async YGBX(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
+ let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
|
|
|
- .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
- risks: this.riskList,
|
|
|
- agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
+ order: {
|
|
|
+ insuranceCompanyCode: id,
|
|
|
+ quoteNo: this.quoteno,
|
|
|
+ productsCode: this.productId,
|
|
|
+ },
|
|
|
+ accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
|
|
|
+ .quotableCompanyList[num].insurancePlanInfo.drivings[0]
|
|
|
+ ] : [],
|
|
|
+ kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
+ // risks: this.riskList,
|
|
|
+ ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .ciRiskInfoVo : null, //交强大类
|
|
|
+ biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .biRiskInfoVo : null, //商业大类
|
|
|
+ carInfoVo: this.carInfo,
|
|
|
+ ownersInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
|
|
|
isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
+ // agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
- let res = await this.$http.post('/quote/quote', params);
|
|
|
+ let res = await this.$http.post('/unify/order/quote', params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[
|
|
|
@@ -2669,25 +2710,36 @@
|
|
|
}
|
|
|
},
|
|
|
//华泰报价
|
|
|
- async huatai(num, id) {
|
|
|
+ async HTIC(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
+ let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
- risks: this.riskList,
|
|
|
- cqryCdeJq: this.cqryCdeJq,
|
|
|
- cqryCdeSy: this.cqryCdeSy,
|
|
|
- renewalCodeJq: this.renewalCodeJq,
|
|
|
- renewalCodeSy: this.renewalCodeSy,
|
|
|
+ order: {
|
|
|
+ insuranceCompanyCode: id,
|
|
|
+ quoteNo: this.quoteno,
|
|
|
+ productsCode: this.productId,
|
|
|
+ },
|
|
|
+ accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
|
|
|
+ .quotableCompanyList[num].insurancePlanInfo.drivings[0]
|
|
|
+ ] : [],
|
|
|
+ kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
+ // risks: this.riskList,
|
|
|
+ ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .ciRiskInfoVo : null, //交强大类
|
|
|
+ biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .biRiskInfoVo : null, //商业大类
|
|
|
+ carInfoVo: this.carInfo,
|
|
|
+ ownersInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
|
|
|
isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
+ // agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
let res = await this.$http.post(
|
|
|
- "/quote/quote", params);
|
|
|
+ "/unify/order/quote", params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
if (res.data.warnMessageList != null && res
|
|
|
@@ -2730,7 +2782,7 @@
|
|
|
}
|
|
|
},
|
|
|
//紫金报价
|
|
|
- async zijin(num, id) {
|
|
|
+ async ZKIC(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
@@ -2745,7 +2797,7 @@
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
- let res = await this.$http.post('/quote/quote', params);
|
|
|
+ let res = await this.$http.post('/unify/order/quote', params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
if (res.data.warnMessageList != null && res.data
|
|
|
@@ -2786,7 +2838,7 @@
|
|
|
}
|
|
|
},
|
|
|
//国任报价
|
|
|
- async guoRen(num, id) {
|
|
|
+ async XDCX(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
@@ -2802,7 +2854,7 @@
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
- let res = await this.$http.post('/quote/quote',
|
|
|
+ let res = await this.$http.post('/unify/order/quote',
|
|
|
params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
@@ -2843,26 +2895,35 @@
|
|
|
}
|
|
|
},
|
|
|
//大家报价
|
|
|
- async dajia(num, id) {
|
|
|
+ async DJPC(num, id) {
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
let ccidenttype = this.quotableCompanyList[num].cnName;
|
|
|
let params = {
|
|
|
- accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
|
|
|
- .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
- risks: this.riskList,
|
|
|
- cqryCdeJq: this.cqryCdeJq,
|
|
|
- cqryCdeSy: this.cqryCdeSy,
|
|
|
- renewalCodeJq: this.renewalCodeJq,
|
|
|
- renewalCodeSy: this.renewalCodeSy,
|
|
|
+ order: {
|
|
|
+ insuranceCompanyCode: id,
|
|
|
+ quoteNo: this.quoteno,
|
|
|
+ productsCode: this.productId,
|
|
|
+ },
|
|
|
+ accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
|
|
|
+ .quotableCompanyList[num].insurancePlanInfo.drivings[0]
|
|
|
+ ] : [],
|
|
|
+ kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
+ // risks: this.riskList,
|
|
|
+ ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .ciRiskInfoVo : null, //交强大类
|
|
|
+ biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .biRiskInfoVo : null, //商业大类
|
|
|
+ carInfoVo: this.carInfo,
|
|
|
+ ownersInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
|
|
|
isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
+ // agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
systemType: '2'
|
|
|
};
|
|
|
try {
|
|
|
- let res = await this.$http.post("/quote/quote",
|
|
|
+ let res = await this.$http.post("/unify/order/quote",
|
|
|
params);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
if (res.code == '200') {
|
|
|
@@ -2904,33 +2965,35 @@
|
|
|
}
|
|
|
},
|
|
|
//安盛天平
|
|
|
- ansheng(num, id) {
|
|
|
+ TPBX(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
//华农
|
|
|
- huanong(num, id) {
|
|
|
+ HNIC(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
//太平
|
|
|
- taiping(num, id) {
|
|
|
+ TPIC(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
//众安
|
|
|
- zhongan(num, id) {
|
|
|
+ ZAPA(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
//人寿
|
|
|
- renshou(num, id) {
|
|
|
+ GPIC(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
//恒邦
|
|
|
- hengbang(num, id) {
|
|
|
+ HBIC(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
- taikang(num, id) {
|
|
|
+ //泰康
|
|
|
+ TKIC(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
- chengtai(num, id) {
|
|
|
+ //诚泰
|
|
|
+ CHAC(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
//爬虫统一报价接口
|
|
|
@@ -2942,14 +3005,27 @@
|
|
|
.nameSimple;
|
|
|
let isTaxSource = this.quotableCompanyList[num].isTaxSource;
|
|
|
let params = {
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
- kinds: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
- risks: this.riskList,
|
|
|
- accidentalDrivingVo: this.quotableCompanyList[num].insurancePlanInfo.drivingList[0] ? this
|
|
|
- .quotableCompanyList[num].insurancePlanInfo.drivingList[0] : {},
|
|
|
+ order: {
|
|
|
+ insuranceCompanyCode: id,
|
|
|
+ quoteNo: this.quoteno,
|
|
|
+ productsCode: this.productId,
|
|
|
+ },
|
|
|
+ accidentalDrivings: this.quotableCompanyList[num].insurancePlanInfo.drivings[0] ? [this
|
|
|
+ .quotableCompanyList[num].insurancePlanInfo.drivings[0]
|
|
|
+ ] : [],
|
|
|
+ kindInfoVo: this.quotableCompanyList[num].insurancePlanInfo.kinds,
|
|
|
+ // risks: this.riskList,
|
|
|
+ ciRiskInfoVo: ['0330', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .ciRiskInfoVo : null, //交强大类
|
|
|
+ biRiskInfoVo: ['034001', '034002', '0330034002', '0330034001'].includes(this.productId) ? this
|
|
|
+ .biRiskInfoVo : null, //商业大类
|
|
|
+ carInfoVo: this.carInfo,
|
|
|
+ ownersInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ vehicleAndVesselTaxVo: this.vehicleAndVesselTaxForm,
|
|
|
isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
+ // agreementId: this.quotableCompanyList[num].agreement[0].id,
|
|
|
systemType: '2'
|
|
|
};
|
|
|
if (id = 'GPIC1000000') {
|
|
|
@@ -2969,7 +3045,7 @@
|
|
|
params.isInspect = this.isInspectchange;
|
|
|
}
|
|
|
try {
|
|
|
- let res = await this.$http.post('/quote/quote',
|
|
|
+ let res = await this.$http.post('/unify/order/quote',
|
|
|
params);
|
|
|
switch (nameSimple) {
|
|
|
case '安盛天平':
|