|
@@ -339,7 +339,7 @@
|
|
|
<el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
|
|
<el-select v-model="policyHolderInfo.identifyType" placeholder="身份证" disabled>
|
|
|
<el-option label="身份证" value="01"></el-option>
|
|
<el-option label="身份证" value="01"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
<el-col :xs="xscell" :sm="smcell" :md="mdcell" :lg="lgcell" :xl="xlcell">
|
|
@@ -1011,9 +1011,9 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label=" " >
|
|
<el-form-item label=" " >
|
|
|
- <el-select clearable v-model="guoRenaccidentForm.prodCode" v-loading="accidentLoading"
|
|
|
|
|
|
|
+ <el-select clearable v-model="guoRenaccidentForm.prodCode" v-loading="accidentLoading"
|
|
|
@change="grcxchangeChild">
|
|
@change="grcxchangeChild">
|
|
|
- <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.prodCode" :label="item.prodCName"
|
|
|
|
|
|
|
+ <el-option v-for="(item, index) in guoRenaccidentDataListChild" :key="item.prodCode" :label="item.prodCName"
|
|
|
:value="item.prodCode"></el-option>
|
|
:value="item.prodCode"></el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -1612,7 +1612,7 @@
|
|
|
<span>交强:</span>
|
|
<span>交强:</span>
|
|
|
<span>{{ jqpremium }}</span>
|
|
<span>{{ jqpremium }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<div v-show="sypremium">
|
|
<div v-show="sypremium">
|
|
|
<span>商业:</span>
|
|
<span>商业:</span>
|
|
|
<span>{{ sypremium }}</span>
|
|
<span>{{ sypremium }}</span>
|
|
@@ -3782,7 +3782,7 @@ export default {
|
|
|
this.guoRenaccidentDataListChild=[]
|
|
this.guoRenaccidentDataListChild=[]
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
// 国任选择意外险子级类型
|
|
// 国任选择意外险子级类型
|
|
@@ -3794,7 +3794,7 @@ export default {
|
|
|
quantity:list.appnum,
|
|
quantity:list.appnum,
|
|
|
riskCode:list.riskCode,
|
|
riskCode:list.riskCode,
|
|
|
amount:list.amount,
|
|
amount:list.amount,
|
|
|
- policyNum:Number(list.policyNum)
|
|
|
|
|
|
|
+ policyNum:Number(list.policyNum)
|
|
|
}
|
|
}
|
|
|
this.guoRenaccidenttableData=list.prodCvgLiabList
|
|
this.guoRenaccidenttableData=list.prodCvgLiabList
|
|
|
},
|
|
},
|
|
@@ -4073,7 +4073,7 @@ export default {
|
|
|
this.guoRenaccidentDataList = res.data;
|
|
this.guoRenaccidentDataList = res.data;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- break;
|
|
|
|
|
|
|
+ break;
|
|
|
case '紫金财险':
|
|
case '紫金财险':
|
|
|
this.$api.letter.zijinqueryVehicleProducts({ agreementId: this.totalCompanyList[index].agreement[0].id, seatCount: Number(this.carInfo.seatCount) }).then(res => {
|
|
this.$api.letter.zijinqueryVehicleProducts({ agreementId: this.totalCompanyList[index].agreement[0].id, seatCount: Number(this.carInfo.seatCount) }).then(res => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -5037,66 +5037,7 @@ export default {
|
|
|
this.totalCompanyList[num].msg = res.msg;
|
|
this.totalCompanyList[num].msg = res.msg;
|
|
|
switch (namesimple) {
|
|
switch (namesimple) {
|
|
|
case '安盛天平':
|
|
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,
|
|
|
|
|
- vehicleAndVesselTax:this.vehicleAndVesselTaxForm
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- 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,
|
|
|
|
|
- vehicleAndVesselTax:this.vehicleAndVesselTaxForm
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- return this.$api.letter.generateOrder(param).then(res => {
|
|
|
|
|
- this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
|
|
- });
|
|
|
|
|
- } else if (!!res.data) {
|
|
|
|
|
|
|
+ if (!!res.data) {
|
|
|
if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
|
this.totalCompanyList[num].lastYearMsg = "";
|
|
this.totalCompanyList[num].lastYearMsg = "";
|
|
|
let dat = res.data.warnMessageList;
|
|
let dat = res.data.warnMessageList;
|
|
@@ -5114,66 +5055,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case '中国人寿':
|
|
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,
|
|
|
|
|
- vehicleAndVesselTax:this.vehicleAndVesselTaxForm
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- 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("保险期间:") + 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,
|
|
|
|
|
- vehicleAndVesselTax:this.vehicleAndVesselTaxForm
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- return this.$api.letter.generateOrder(param).then(res => {
|
|
|
|
|
- this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
|
|
- });
|
|
|
|
|
- } else if (!!res.data) {
|
|
|
|
|
|
|
+ if (!!res.data) {
|
|
|
if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
|
this.totalCompanyList[num].lastYearMsg = "";
|
|
this.totalCompanyList[num].lastYearMsg = "";
|
|
|
let dat = res.data.warnMessageList;
|
|
let dat = res.data.warnMessageList;
|
|
@@ -5191,65 +5073,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case '恒邦财险':
|
|
case '恒邦财险':
|
|
|
- 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);
|
|
|
|
|
- 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,
|
|
|
|
|
- vehicleAndVesselTax:this.vehicleAndVesselTaxForm
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- 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("终保日期:") + 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,
|
|
|
|
|
- vehicleAndVesselTax:this.vehicleAndVesselTaxForm
|
|
|
|
|
-
|
|
|
|
|
- };
|
|
|
|
|
- return this.$api.letter.generateOrder(param).then(res => {
|
|
|
|
|
- this.quoteInsurance(num, id, namesimple, apiType);
|
|
|
|
|
- });
|
|
|
|
|
- } else if (!!res.data) {
|
|
|
|
|
|
|
+ if (!!res.data) {
|
|
|
if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
if (res.data.warnMessageList && res.data.warnMessageList.length > 0) {
|
|
|
this.totalCompanyList[num].lastYearMsg = "";
|
|
this.totalCompanyList[num].lastYearMsg = "";
|
|
|
let dat = res.data.warnMessageList;
|
|
let dat = res.data.warnMessageList;
|