|
@@ -3957,7 +3957,7 @@ export default {
|
|
|
this.quoteInsurance(num, id, namesimple, apiType);
|
|
this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
});
|
|
});
|
|
|
} else if (res.data == null && res.msg.indexOf("商业险-平台返回") > -1 && res.msg.indexOf("保险期间:") > -1) {
|
|
} else if (res.data == null && res.msg.indexOf("商业险-平台返回") > -1 && res.msg.indexOf("保险期间:") > -1) {
|
|
|
- this.totalCompanyList[num].lastYearMsg += "<br><b>商业险</b><br>" + res.msg.slice(res.msg.indexOf("保险期间:"), -1);
|
|
|
|
|
|
|
+ this.totalCompanyList[num].lastYearMsg += "<br><b>商业险</b><br>" + res.msg;
|
|
|
let time = res.msg.substr(res.msg.indexOf("保险期间:") + 18, 12) + "00";
|
|
let time = res.msg.substr(res.msg.indexOf("保险期间:") + 18, 12) + "00";
|
|
|
time = time.substring(0, 4) + "-" + time.substring(4, 6) + "-" + time.substring(6, 8) + " " + time.substring(8, 10) + ":" + time.substring(10, 12) + ":" + time.substring(12, 14);
|
|
time = time.substring(0, 4) + "-" + time.substring(4, 6) + "-" + time.substring(6, 8) + " " + time.substring(8, 10) + ":" + time.substring(10, 12) + ":" + time.substring(12, 14);
|
|
|
this.systartDate = time;
|
|
this.systartDate = time;
|
|
@@ -3995,7 +3995,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case '恒邦财险':
|
|
case '恒邦财险':
|
|
|
- if (res.data == null && res.msg.indexOf("交强险平台返回") > -1 && res.msg.indexOf(";终保日期") > -1) {
|
|
|
|
|
|
|
+ if ((res.data == null && res.msg.indexOf("交强险平台返回") > -1 && res.msg.indexOf(";终保日期") > -1) || (res.data == null && res.msg.indexOf("重复投保") > -1 && res.msg.indexOf(";终保日期") > -1)){
|
|
|
this.totalCompanyList[num].lastYearMsg = "<b>交强险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期 "), -1);
|
|
this.totalCompanyList[num].lastYearMsg = "<b>交强险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期 "), -1);
|
|
|
let time = res.msg.substr(res.msg.indexOf(";终保日期") + 6, 16) + ":00";
|
|
let time = res.msg.substr(res.msg.indexOf(";终保日期") + 6, 16) + ":00";
|
|
|
this.jqstartDate = time;
|
|
this.jqstartDate = time;
|
|
@@ -4023,7 +4023,7 @@ export default {
|
|
|
this.quoteInsurance(num, id, namesimple, apiType);
|
|
this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
});
|
|
});
|
|
|
} else if (res.data == null && res.msg.indexOf("平台校验,重复投保") > -1 && res.msg.indexOf("终保日期:") > -1) {
|
|
} else if (res.data == null && res.msg.indexOf("平台校验,重复投保") > -1 && res.msg.indexOf("终保日期:") > -1) {
|
|
|
- this.totalCompanyList[num].lastYearMsg += "<br><b>商业险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期"), res.msg.indexOf("签单日期"));
|
|
|
|
|
|
|
+ this.totalCompanyList[num].lastYearMsg += "<br><b>商业险</b><br>" + res.msg;
|
|
|
let time = res.msg.substr(res.msg.indexOf("终保日期:") + 5, 10) + " 00:00:00";
|
|
let time = res.msg.substr(res.msg.indexOf("终保日期:") + 5, 10) + " 00:00:00";
|
|
|
this.systartDate = time;
|
|
this.systartDate = time;
|
|
|
this.syendDate = this.oneYearPast1(time);
|
|
this.syendDate = this.oneYearPast1(time);
|