|
|
@@ -7826,6 +7826,7 @@ export default {
|
|
|
this.getCompanyProgramme(e, code, name, index)
|
|
|
this.kindListFun();
|
|
|
let ins = this.totalCompanyList[index].namesimple;
|
|
|
+ console.log(ins)
|
|
|
this.totalCompanyList[index].underwritingDescription =
|
|
|
this.totalCompanyList[index].agreement[0].underwritingDescription;
|
|
|
if (this.$route.path != "/task/external/externalOrders")
|
|
|
@@ -9676,6 +9677,104 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ yangguang(num, id){
|
|
|
+ let accidentalDrivingVo = {};
|
|
|
+ let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
+ accidentalDrivingVo = this.totalCompanyList[num].programme.drivingList[0] || {}
|
|
|
+ let params = {
|
|
|
+ accidentalDrivingVo,
|
|
|
+ orderNo: this.orderno,
|
|
|
+ companyId: id,
|
|
|
+ cqryCdeJq: this.cqryCdeJq,
|
|
|
+ cqryCdeSy: this.cqryCdeSy,
|
|
|
+ renewalCodeJq: this.renewalCodeJq,
|
|
|
+ renewalCodeSy: this.renewalCodeSy,
|
|
|
+ agreementId: this.totalCompanyList[num].agreementId,
|
|
|
+ isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
+ kinds: this.totalCompanyList[num].kindList,
|
|
|
+ risks: this.riskList
|
|
|
+ };
|
|
|
+ this.$api.letter.yangGuangquote(params).then((res) => {
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ if (
|
|
|
+ res.data == null &&
|
|
|
+ res.msg.indexOf("车险平台返回") > -1 &&
|
|
|
+ res.msg.indexOf(";终保日期") > -1
|
|
|
+ ) {
|
|
|
+ let time =
|
|
|
+ res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
+ this.jqstartDate = time;
|
|
|
+ this.jqendDate = this.oneYearPast1(time);
|
|
|
+
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == "0507") {
|
|
|
+ this.riskList[i].startDate = time;
|
|
|
+ this.riskList[i].endDate = this.oneYearPast1(time);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ 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.totalCompanyList[num].kindList,
|
|
|
+ riskList: this.riskList,
|
|
|
+ vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
+ };
|
|
|
+
|
|
|
+ return this.$api.letter[this.apiInterfaceName](param).then((res) => {
|
|
|
+ this.yangguang(num, id);
|
|
|
+ });
|
|
|
+ } else if (res.code == "200") {
|
|
|
+ if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg = "";
|
|
|
+ let dat = res.data.warnMessageList;
|
|
|
+ dat.map((ele) => {
|
|
|
+ this.totalCompanyList[num].lastYearMsg += ele + "<br>";
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.totalCompanyList[num].quoteCode = 200;
|
|
|
+ this.totalCompanyList[num].result = res.data;
|
|
|
+ this.jqstartDate = res.data.startDateJq
|
|
|
+ this.jqendDate = res.data.endDateJq
|
|
|
+ this.systartDate = res.data.startDateSy
|
|
|
+ this.syendDate = res.data.endDateSy
|
|
|
+ this.QuotationHistory();
|
|
|
+ } 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 if (res.code == "500") {
|
|
|
+ // this.iscCrownerShow=res.msg.indexOf("车主地区自动解析失败")!=-1?true:false
|
|
|
+ // this.isInsuredShow=res.msg.indexOf("被保人地区自动解析失败")!=-1?true:false
|
|
|
+ // this.isApplicantShow=res.msg.indexOf("投保人地区自动解析失败")!=-1?true:false
|
|
|
+ // this.ownerInfo.provinceData= this.iscCrownerShow?[]: this.ownerInfo.provinceData
|
|
|
+ // this.insuredPersonInfo.provinceData= this.isInsuredShow?[]: this.insuredPersonInfo.provinceData
|
|
|
+ // this.policyHolderInfo.provinceData= this.isApplicantShow?[]: this.policyHolderInfo.provinceData
|
|
|
+ this.totalCompanyList[num].quoteCode = "3";
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ } else {
|
|
|
+ this.totalCompanyList[num].quoteCode = "3";
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//永诚报价
|
|
|
yongcheng(num, id) {
|
|
|
this.iscCrownerShow = false;
|
|
|
@@ -10879,7 +10978,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
-
|
|
|
+
|
|
|
case "华泰财险":
|
|
|
let HtApiImage = "";
|
|
|
HtApiImage =
|
|
|
@@ -11134,6 +11233,63 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
break;
|
|
|
+ case "阳光财险":
|
|
|
+ await this.$api.letter
|
|
|
+ .yangGuangImage({
|
|
|
+ companyId: this.companyId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ var _this = this;
|
|
|
+ _this.$api.letter
|
|
|
+ .yangGuangSubmit({
|
|
|
+ companyId: this.companyId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.code == "200") {
|
|
|
+ loading.close();
|
|
|
+ _this.cqryCdeJq = "";
|
|
|
+ _this.cqryCdeSy = "";
|
|
|
+ _this.renewalCodeJq = "";
|
|
|
+ _this.renewalCodeSy = "";
|
|
|
+ this.$message({
|
|
|
+ message: "核保成功",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ this.QuotationHistory();
|
|
|
+ _this.$api.letter
|
|
|
+ .getByCompanyId({ companyId: this.companyId })
|
|
|
+ .then((res) => {
|
|
|
+ _this.orderstatus = res.data.orderstatus; //订单状态
|
|
|
+ _this.underwritingdialogVisible = true;
|
|
|
+ let indexid = this.totalCompanyList.findIndex(
|
|
|
+ (item) =>
|
|
|
+ item.namesimple ==
|
|
|
+ this.queryOrders.inscompany
|
|
|
+ );
|
|
|
+ this.totalCompanyList[indexid].orderstatus =
|
|
|
+ res.data.orderstatus;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ loading.close();
|
|
|
+ this.$message({
|
|
|
+ showClose: true,
|
|
|
+ message: res.msg,
|
|
|
+ type: "error",
|
|
|
+ duration: 0,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ loading.close();
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: "error",
|
|
|
+ duration: 7000,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ break;
|
|
|
case "恒邦财险":
|
|
|
case "华农财险":
|
|
|
case "太平财险":
|