|
|
@@ -181,8 +181,7 @@
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
|
<el-form-item label="发证日期:" prop="issueDate">
|
|
|
<el-date-picker v-dateFormat v-model="carInfo.issueDate" :picker-options="issueDateOptions" type="date"
|
|
|
- placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"
|
|
|
- ></el-date-picker>
|
|
|
+ placeholder="选择发证日期" value-format="yyyy-MM-dd" placement="bottom-start"></el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell" v-if="transferDateShow">
|
|
|
@@ -479,10 +478,12 @@
|
|
|
<span style="text-align:center;">{{ insureitem.kindName }}<el-input
|
|
|
v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'"
|
|
|
v-model="sumseatCount" style="width:40px;margin:0 5px;" size="small" placeholder
|
|
|
- disabled></el-input>座</span>
|
|
|
+ disabled></el-input><span
|
|
|
+ v-show="insureitem.kindCode == 'D4' || insureitem.kindCode == 'MJ4' || insureitem.kindCode == 'SY_FJ_YBW2'">座</span>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
<el-select filterable v-model="insureitem.amount" placeholder="请选择" @change="insureitemChange" size="small"
|
|
|
- style="width: 300px;" >
|
|
|
+ style="width: 300px;">
|
|
|
<el-option :label="item.label" :value="item.value" v-for="(item, index) in insureitem.amtList"
|
|
|
:key="index"></el-option>
|
|
|
</el-select>
|
|
|
@@ -579,12 +580,14 @@
|
|
|
@click="bjdpreview(reslistitem.result.companyId)">报价单</el-button>
|
|
|
<el-button v-show="reslistitem.orderstatus == '2'" type="text" style="color:rgb(240, 12, 10)"
|
|
|
@click="Payment(reslistitem.result.companyId)">付款码</el-button>
|
|
|
- <i v-show="(reslistitem.quoteCode == '200') && (reslistitem.name == '中煤财险')" class="el-icon-info"
|
|
|
- @click="open2(reslistitem.msg)" style="color:#646464"></i>
|
|
|
+ <el-tooltip class="item" effect="dark" content="上年信息" placement="top">
|
|
|
+ <i class="el-icon-chat-dot-round" v-show="(reslistitem.quoteCode == '200' && reslistitem.lastYearMsg)"
|
|
|
+ @click="open2(reslistitem.namesimple, reslistitem.lastYearMsg)"
|
|
|
+ style="color:rgb(238, 112, 0);font-size:20px;margin-left:10px;"></i>
|
|
|
+ </el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div v-if="reslistitem.checked" class="dis a-c Driving-risk" style="margin-top: 10px;">
|
|
|
+ <div v-if="reslistitem.checked" class="dis a-c Driving-risk" style="margin-top:10px;">
|
|
|
<h4>报价协议选择:</h4>
|
|
|
<el-select size="small" v-model="reslistitem.agreementId" placeholder="请选择协议" style="width: 200px;"
|
|
|
:clearable="true" @change="val => agreementChange(val, reslistitem.agreement, reslistindex, reslistitem)">
|
|
|
@@ -1073,7 +1076,7 @@
|
|
|
<span>{{ kindinfoitem.kindName }}</span>
|
|
|
</div>
|
|
|
<div v-if="['D4', 'SY_FJ_YBW2'].includes(kindinfoitem.kindCode)">
|
|
|
- <span>{{ kindinfoitem.unitAmount }}</span>
|
|
|
+ <span>{{ kindinfoitem.unitAmount }}</span>/<span>{{ queryOrders.carinfo.seatCount - 1 }}座</span>
|
|
|
</div>
|
|
|
<div v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(kindinfoitem.kindCode)">
|
|
|
<span>{{ kindinfoitem.deductibleRate }}</span>
|
|
|
@@ -2689,15 +2692,6 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
-
|
|
|
- open2() {
|
|
|
- this.$notify({
|
|
|
- title: '警告',
|
|
|
- message: '这是一条警告的提示消息',
|
|
|
- type: 'warning',
|
|
|
- duration: 0
|
|
|
- });
|
|
|
- },
|
|
|
iconfftter(icon) {
|
|
|
return CommonUtil.getDataName({
|
|
|
dataList: this.global.insCompanyList,
|
|
|
@@ -2815,6 +2809,7 @@ export default {
|
|
|
ele["quoteCode"] = 0;
|
|
|
ele["checked"] = false;
|
|
|
ele["msg"] = "";
|
|
|
+ ele["lastYearMsg"] = "";
|
|
|
ele["agreementId"] = "";
|
|
|
ele["apiType"] = "";
|
|
|
ele["orderstatus"] = 0;
|
|
|
@@ -3131,8 +3126,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//动态函数
|
|
|
- ToolClickFun(MethodName, Parameter, companyId) {
|
|
|
- this[`${MethodName}`](Parameter, companyId);
|
|
|
+ ToolClickFun(MethodName, Parameter, companyId, companyName) {
|
|
|
+ this[`${MethodName}`](Parameter, companyId, companyName);
|
|
|
},
|
|
|
//更新图片
|
|
|
UpdatePicture(type, list) {
|
|
|
@@ -3152,11 +3147,14 @@ export default {
|
|
|
this.HistoryList = res.data.insAreaCompanyList;
|
|
|
});
|
|
|
},
|
|
|
- open2(arr) {
|
|
|
+ open2(Name, Msg) {
|
|
|
this.$notify.info({
|
|
|
- title: "中煤报价",
|
|
|
- message: arr,
|
|
|
- duration: 0
|
|
|
+ title: Name,
|
|
|
+ dangerouslyUseHTMLString: true,
|
|
|
+ type: 'warning',
|
|
|
+ message: Msg,
|
|
|
+ customClass: "customNotifyClass",
|
|
|
+ duration: 7000,
|
|
|
});
|
|
|
},
|
|
|
//订单生成前数据处理事件
|
|
|
@@ -3212,8 +3210,7 @@ export default {
|
|
|
if (ele.checked) {
|
|
|
//动态调用报价接口
|
|
|
ele.quoteCode = 1;
|
|
|
-
|
|
|
- this.ToolClickFun(ele.cnName, index, ele.id);
|
|
|
+ this.ToolClickFun(ele.cnName, index, ele.id, ele.namesimple);
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
@@ -3331,20 +3328,16 @@ export default {
|
|
|
this.totalCompanyList[num].msg = res.msg;
|
|
|
return;
|
|
|
} else if (res.data == null && res.msg.indexOf("交强险平台返回") > -1 && res.msg.indexOf(";终保日期") > -1) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg = "<b>交强险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期 "), res.msg.indexOf("地区 山西。") + 6);
|
|
|
let time =
|
|
|
res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
this.jqstartDate = time;
|
|
|
this.jqendDate = this.oneYearPast1(time);
|
|
|
- this.systartDate = time;
|
|
|
- this.syendDate = 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);
|
|
|
- } else if (this.riskList[i].riskCode == "0510") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this.oneYearPast1(time);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -3459,29 +3452,22 @@ export default {
|
|
|
};
|
|
|
this.$api.letter.yongchengquote(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 (
|
|
|
+ if (
|
|
|
res.data == null &&
|
|
|
res.msg.indexOf("车险平台返回") > -1 &&
|
|
|
res.msg.indexOf(";终保日期") > -1
|
|
|
) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg = "<b>交强险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期 "), res.msg.indexOf("地区 山西。") + 6);
|
|
|
let time =
|
|
|
res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
this.jqstartDate = time;
|
|
|
this.jqendDate = this.oneYearPast1(time);
|
|
|
- // this.systartDate = time;
|
|
|
- // this.syendDate = 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);
|
|
|
- } else if (this.riskList[i].riskCode == "0510") {
|
|
|
- // this.riskList[i].startDate = time;
|
|
|
- // this.riskList[i].endDate = this.oneYearPast1(time);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -3500,8 +3486,38 @@ export default {
|
|
|
this.yongcheng(num, id);
|
|
|
});
|
|
|
} else if (res.code == "200") {
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
+ if (res.data.warnMessageList.length > 0) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg += "<br><b>商业险</b><br>" + res.data.warnMessageList[0];
|
|
|
+ let time = res.data.warnMessageList[0].substr(res.data.warnMessageList[0].indexOf("终保日期:") + 5, 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);
|
|
|
+ this.systartDate = time;
|
|
|
+ this.syendDate = this.oneYearPast1(time);
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == "0510") {
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.yongcheng(num, id);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ 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;
|
|
|
@@ -3614,7 +3630,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 爬虫对接
|
|
|
- quoteInsurance(num, id, apiType) {
|
|
|
+ quoteInsurance(num, id, namesimple, apiType) {
|
|
|
let api = apiType === 2 ? "pythonquote" : "anshengquote";
|
|
|
let params = {
|
|
|
orderNo: this.orderno,
|
|
|
@@ -3623,63 +3639,225 @@ export default {
|
|
|
};
|
|
|
this.$api.letter[api](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);
|
|
|
- this.systartDate = time;
|
|
|
- this.syendDate = 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);
|
|
|
- } else if (this.riskList[i].riskCode == "0510") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this.oneYearPast1(time);
|
|
|
+ switch (namesimple) {
|
|
|
+ case '安盛天平':
|
|
|
+ if (res.data == null && res.msg.indexOf("交强险重复投保") > -1 && res.msg.indexOf(";终保日期") > -1) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg = "<b>交强险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期 "), res.msg.indexOf("地区 山西。") + 6);
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
+ });
|
|
|
+ } else if (res.data == null && res.msg.indexOf("上年保险止期(") > -1 && res.msg.indexOf("重复投保情况") > -1) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg += "<br><b>商业险</b><br>" + res.msg;
|
|
|
+ let time = res.msg.substr(res.msg.indexOf("上年保险止期(") + 7, 17) + ":00";
|
|
|
+ time = time.substring(0, 4) + "-" + time.substring(5, 7) + "-" + time.substring(8, 10) + " " + time.substring(12, 14) + ":" + time.substring(15, 17) + ":00"
|
|
|
+ this.systartDate = time;
|
|
|
+ this.syendDate = this.oneYearPast1(time);
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == "0510") {
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
+ });
|
|
|
+ } 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;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
- 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.quoteInsurance(num, id, apiType);
|
|
|
- });
|
|
|
- } else if (!!res.data) {
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.QuotationHistory();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- return;
|
|
|
+ break;
|
|
|
+ case '中国人寿':
|
|
|
+ if (res.data == null && res.msg.indexOf("交强险") > -1 && res.msg.indexOf(";终保日期") > -1) {
|
|
|
+ this.totalCompanyList[num].lastYearMsg = "<b>交强险</b><br>" + res.msg.slice(res.msg.indexOf("起保日期 "), res.msg.indexOf("地区 山西。") + 6);
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
+ });
|
|
|
+ } 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);
|
|
|
+ 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);
|
|
|
+ this.systartDate = time;
|
|
|
+ this.syendDate = this.oneYearPast1(time);
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == "0510") {
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
+ });
|
|
|
+ } 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;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case '恒邦财险':
|
|
|
+ if(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);
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
+ });
|
|
|
+ }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("签单日期"));
|
|
|
+ let time = res.msg.substr(res.msg.indexOf("终保日期:") + 5, 10) + " 00:00:00";
|
|
|
+ this.systartDate = time;
|
|
|
+ this.syendDate = this.oneYearPast1(time);
|
|
|
+ if (this.riskList.length > 0) {
|
|
|
+ for (let i = 0; i < this.riskList.length; i++) {
|
|
|
+ if (this.riskList[i].riskCode == "0510") {
|
|
|
+ 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.kindList,
|
|
|
+ riskList: this.riskList
|
|
|
+ };
|
|
|
+ return this.$api.letter.generateOrder(param).then(res => {
|
|
|
+ this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
+ });
|
|
|
+ }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;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
}
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
//安盛天平
|
|
|
- ansheng(num, id) {
|
|
|
- this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
|
|
|
+ ansheng(num, id, namesimple) {
|
|
|
+ this.quoteInsurance(num, id, namesimple, this.totalCompanyList[num].apiType);
|
|
|
},
|
|
|
//众安
|
|
|
zhongan(num, id) {
|
|
|
- this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
|
|
|
+ this.quoteInsurance(num, id, namesimple, this.totalCompanyList[num].apiType);
|
|
|
},
|
|
|
//人寿
|
|
|
- renshou(num, id) {
|
|
|
- this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
|
|
|
+ renshou(num, id, namesimple) {
|
|
|
+ this.quoteInsurance(num, id, namesimple, this.totalCompanyList[num].apiType);
|
|
|
},
|
|
|
//恒邦
|
|
|
- hengbang(num, id) {
|
|
|
- this.quoteInsurance(num, id, this.totalCompanyList[num].apiType);
|
|
|
+ hengbang(num, id, namesimple) {
|
|
|
+ this.quoteInsurance(num, id, namesimple, this.totalCompanyList[num].apiType);
|
|
|
},
|
|
|
// 爬虫对接
|
|
|
qoutedetail(companyId) {
|
|
|
@@ -3823,7 +4001,7 @@ export default {
|
|
|
loading.close();
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.queryOrders.inscompany+"提核--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 0
|
|
|
});
|
|
|
@@ -3831,7 +4009,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message:this.queryOrders.inscompany+"影像:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "影像:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 7000
|
|
|
});
|
|
|
@@ -3869,7 +4047,7 @@ export default {
|
|
|
loading.close();
|
|
|
_this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.queryOrders.inscompany+"提核--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 0
|
|
|
});
|
|
|
@@ -3880,7 +4058,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message:this.queryOrders.inscompany+"影像--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "影像--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 7000
|
|
|
});
|
|
|
@@ -3916,7 +4094,7 @@ export default {
|
|
|
loading.close();
|
|
|
_this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.queryOrders.inscompany+"提核--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 0
|
|
|
});
|
|
|
@@ -3927,7 +4105,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.$message({
|
|
|
- message:this.queryOrders.inscompany+"影像--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "影像--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 7000
|
|
|
});
|
|
|
@@ -3968,7 +4146,7 @@ export default {
|
|
|
loading.close();
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message: this.queryOrders.inscompany+"提核--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 0
|
|
|
});
|
|
|
@@ -3977,7 +4155,7 @@ export default {
|
|
|
} else {
|
|
|
loading.close();
|
|
|
this.$message({
|
|
|
- message: this.queryOrders.inscompany+"影像--:"+res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "影像--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 7000
|
|
|
});
|
|
|
@@ -4015,7 +4193,7 @@ export default {
|
|
|
loading.close();
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
- message:this.queryOrders.inscompany+"提核--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "提核--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 0
|
|
|
});
|
|
|
@@ -4024,7 +4202,7 @@ export default {
|
|
|
} else {
|
|
|
loading.close();
|
|
|
this.$message({
|
|
|
- message:this.queryOrders.inscompany+"影像--:"+ res.msg,
|
|
|
+ message: this.queryOrders.inscompany + "影像--:" + res.msg,
|
|
|
type: "error",
|
|
|
duration: 7000
|
|
|
});
|
|
|
@@ -4793,6 +4971,12 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
+<style>
|
|
|
+.customNotifyClass {
|
|
|
+ word-break: break-all;
|
|
|
+ width: 600px;
|
|
|
+}
|
|
|
+</style>
|
|
|
<style lang="scss" scoped>
|
|
|
/deep/.accident-style .el-table {
|
|
|
.el-table__body-wrapper {
|
|
|
@@ -5520,10 +5704,12 @@ export default {
|
|
|
.el-input--small .el-icon-date {
|
|
|
color: #ee6f00ce;
|
|
|
}
|
|
|
- .el-select{
|
|
|
+
|
|
|
+ .el-select {
|
|
|
width: 100%;
|
|
|
}
|
|
|
- .el-date-editor.el-input{
|
|
|
+
|
|
|
+ .el-date-editor.el-input {
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|