|
@@ -2884,26 +2884,10 @@ export default {
|
|
|
this.imageIdList4 = this.bbtbcarShow ? this.imageIdList3 : this.imageIdList4; //被保人同投保人
|
|
this.imageIdList4 = this.bbtbcarShow ? this.imageIdList3 : this.imageIdList4; //被保人同投保人
|
|
|
//上传图片
|
|
//上传图片
|
|
|
Promise.all([
|
|
Promise.all([
|
|
|
- this.$api.letter.uploadImages({
|
|
|
|
|
- imageIdList: this.imageIdList1,
|
|
|
|
|
- imageType: "C01",
|
|
|
|
|
- quoteNo: this.quoteno
|
|
|
|
|
- }),
|
|
|
|
|
- this.$api.letter.uploadImages({
|
|
|
|
|
- imageIdList: this.imageIdList2,
|
|
|
|
|
- imageType: "C02",
|
|
|
|
|
- quoteNo: this.quoteno
|
|
|
|
|
- }),
|
|
|
|
|
- this.$api.letter.uploadImages({
|
|
|
|
|
- imageIdList: this.imageIdList3,
|
|
|
|
|
- imageType: "C03",
|
|
|
|
|
- quoteNo: this.quoteno
|
|
|
|
|
- }),
|
|
|
|
|
- this.$api.letter.uploadImages({
|
|
|
|
|
- imageIdList: this.imageIdList4,
|
|
|
|
|
- imageType: "C04",
|
|
|
|
|
- quoteNo: this.quoteno
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ this.$api.letter.uploadImages({imageIdList: this.imageIdList1,imageType: "C01",quoteNo: this.quoteno}),
|
|
|
|
|
+ this.$api.letter.uploadImages({imageIdList: this.imageIdList2,imageType: "C02",quoteNo: this.quoteno}),
|
|
|
|
|
+ this.$api.letter.uploadImages({imageIdList: this.imageIdList3,imageType: "C03",quoteNo: this.quoteno}),
|
|
|
|
|
+ this.$api.letter.uploadImages({imageIdList: this.imageIdList4,imageType: "C04",quoteNo: this.quoteno})
|
|
|
])
|
|
])
|
|
|
.then(responses => {
|
|
.then(responses => {
|
|
|
this.imageEcho(this.quoteno); // 获取图片
|
|
this.imageEcho(this.quoteno); // 获取图片
|
|
@@ -3231,6 +3215,69 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ //众安报价
|
|
|
|
|
+ zhongan(num, id) {
|
|
|
|
|
+ let api = '';
|
|
|
|
|
+ api = this.totalCompanyList[num].apiType == 2 ? "pythonquote" : "anshengquote";
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ orderNo: this.orderno,
|
|
|
|
|
+ companyId: id,
|
|
|
|
|
+ agreementId: this.totalCompanyList[num].agreementId,
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$api.letter[api](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.zhongan(num, id);
|
|
|
|
|
+ });
|
|
|
|
|
+ } else if (!!res.data) {
|
|
|
|
|
+ this.totalCompanyList[num].quoteCode = 200;
|
|
|
|
|
+ this.totalCompanyList[num].result = res.data;
|
|
|
|
|
+ this.QuotationHistory();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.totalCompanyList[num].quoteCode = "3";
|
|
|
|
|
+ this.totalCompanyList[num].msg = res.msg;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
//永诚报价
|
|
//永诚报价
|
|
|
yongcheng(num, id) {
|
|
yongcheng(num, id) {
|
|
|
let accidentalDrivingVo = {};
|
|
let accidentalDrivingVo = {};
|
|
@@ -3767,6 +3814,58 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "众安财险":
|
|
|
|
|
+ let zhonganapi = "";
|
|
|
|
|
+ zhonganapi = apiType == 2 ? "pythonsubmitImage" : "anshengsubmitImage"
|
|
|
|
|
+ await this.$api.letter[zhonganapi]({
|
|
|
|
|
+ orderNo: this.orderno
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code == "200") {
|
|
|
|
|
+ var _this = this;
|
|
|
|
|
+ let zhonganapi1 = "";
|
|
|
|
|
+ zhonganapi1 = apiType == 2 ? "pythonaudit" : "anshengaudit"
|
|
|
|
|
+ _this.$api.letter
|
|
|
|
|
+ [zhonganapi1]({
|
|
|
|
|
+ companyId: companyId,
|
|
|
|
|
+ jqappoint: "",
|
|
|
|
|
+ syappoint: ""
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(res => {
|
|
|
|
|
+ if (res.code == "200") {
|
|
|
|
|
+ loading.close();
|
|
|
|
|
+
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ message: "核保成功",
|
|
|
|
|
+ type: "success"
|
|
|
|
|
+ });
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ companyId: companyId
|
|
|
|
|
+ };
|
|
|
|
|
+ _this.$api.letter.getByCompanyId(params).then(res => {
|
|
|
|
|
+ _this.orderstatus = res.data.orderstatus; //订单状态
|
|
|
|
|
+ _this.underwritingdialogVisible = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ } 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;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|