|
|
@@ -587,7 +587,10 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-select>
|
|
|
-
|
|
|
+ <span v-show="reslistitem.quoteCode == '200'" style="font-weight:bold;margin-left: 50px">
|
|
|
+ <b style="color:#ee7000">!</b>
|
|
|
+ 光博分:{{ reslistitem.result.ilogPreUdwMess }}
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<template></template>
|
|
|
<template v-if="reslistitem.namesimple == '永诚财险' && reslistitem.checked && reslistitem.agreementId">
|
|
|
@@ -3040,6 +3043,8 @@ export default {
|
|
|
},
|
|
|
//动态函数
|
|
|
ToolClickFun(MethodName, Parameter, companyId) {
|
|
|
+ console.log(MethodName, Parameter, companyId,11111111)
|
|
|
+
|
|
|
this[`${MethodName}`](Parameter, companyId);
|
|
|
},
|
|
|
//更新图片
|
|
|
@@ -3113,7 +3118,6 @@ export default {
|
|
|
kindList: this.kindList,
|
|
|
riskList: this.riskList,
|
|
|
};
|
|
|
- console.log(this.kindList)
|
|
|
this.$api.letter.generateOrder(param).then(res => {
|
|
|
if (res.code == "200") {
|
|
|
this.orderno = res.data.orderno;
|
|
|
@@ -3437,6 +3441,96 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ //国任报价
|
|
|
+ guoRen(num, id) {
|
|
|
+ let accidentalDrivingVo = {};
|
|
|
+ if (this.accidentForm.id) {
|
|
|
+ let data = this.accidentDataList.find(
|
|
|
+ val => val.id == this.accidentForm.accidentType
|
|
|
+ );
|
|
|
+ accidentalDrivingVo = {
|
|
|
+ rideRiskCode: data.code ? data.code : "",
|
|
|
+ rideRiskName: data.name ? data.name : "",
|
|
|
+ quantity: this.accidentForm.fen ? this.accidentForm.fen : ""
|
|
|
+ };
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ accidentalDrivingVo,
|
|
|
+ orderNo: this.orderno,
|
|
|
+ companyId: id,
|
|
|
+ cqryCdeJq: this.cqryCdeJq,
|
|
|
+ cqryCdeSy: this.cqryCdeSy,
|
|
|
+ renewalCodeJq: this.renewalCodeJq,
|
|
|
+ renewalCodeSy: this.renewalCodeSy,
|
|
|
+ agreementId: this.accidentForm.agreementId
|
|
|
+ };
|
|
|
+ this.$api.letter.guorenquote(params).then(res => {
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
+ this.totalCompanyList[num].quoteCode = "4";
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ return;
|
|
|
+ } else if (
|
|
|
+ res.data == null &&
|
|
|
+ res.msg.indexOf("车险平台返回") > -1 &&
|
|
|
+ res.msg.indexOf(";终保日期") > -1
|
|
|
+ ) {
|
|
|
+ let time =
|
|
|
+ res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
+ let Aortime = this.transformTime2(time); //终保日期的后一天
|
|
|
+ this.jqstartDate = Aortime;
|
|
|
+ this.jqendDate = this.oneYearPast(Aortime);
|
|
|
+ this.systartDate = Aortime;
|
|
|
+ this.syendDate = this.oneYearPast(Aortime);
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == "0507") {
|
|
|
+ this.riskList[i].startDate = Aortime;
|
|
|
+ this.riskList[i].endDate = this.oneYearPast(Aortime);
|
|
|
+ } else if (this.riskList[i].riskCode == "0510") {
|
|
|
+ this.riskList[i].startDate = Aortime;
|
|
|
+ this.riskList[i].endDate = this.oneYearPast(Aortime);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ let param = {
|
|
|
+ userId: this.userId,
|
|
|
+ quoteno: this.quoteno,
|
|
|
+ orderNo: this.orderno,
|
|
|
+ carInfo: this.carInfo,
|
|
|
+ insuredPersonInfo: this.insuredPersonInfo,
|
|
|
+ ownerInfo: this.ownerInfo,
|
|
|
+ policyHolderInfo: this.policyHolderInfo,
|
|
|
+ kindList: this.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.guoRen(num, id);
|
|
|
+ });
|
|
|
+ } else if (res.code == "200") {
|
|
|
+ this.totalCompanyList[num].quoteCode = 200;
|
|
|
+ this.totalCompanyList[num].result = res.data;
|
|
|
+ } else if (res.code == "101") {
|
|
|
+ this.totalCompanyList[num].quoteCode = "101";
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ this.cqryCdeJq = res.data.cqryCdeJq;
|
|
|
+ this.cqryCdeSy = res.data.cqryCdeSy;
|
|
|
+ let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
|
|
|
+ let jqBase64 = `data:image/png;base64,${jq}`;
|
|
|
+ this.renewalCodeJqImg = jqBase64;
|
|
|
+ if (res.data.renewalCodeSy) {
|
|
|
+ let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
|
|
|
+ let syBase64 = `data:image/png;base64,${sy}`;
|
|
|
+ this.renewalCodeSyImg = syBase64;
|
|
|
+ }
|
|
|
+ this.renewalCodedialogVisible = true;
|
|
|
+ } else {
|
|
|
+ this.totalCompanyList[num].quoteCode = "3";
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 爬虫对接
|
|
|
quoteInsurance(num, id, apiType) {
|
|
|
let api = apiType === 2 ? "pythonquote" : "anshengquote";
|