|
@@ -306,7 +306,7 @@
|
|
<text style="font-size: 14px;">分类</text>
|
|
<text style="font-size: 14px;">分类</text>
|
|
<view class=" dis a-c j-s " @click="anshengPopupshow=true">
|
|
<view class=" dis a-c j-s " @click="anshengPopupshow=true">
|
|
<text
|
|
<text
|
|
- style="font-size: 14px;">{{anshengaccidentalDrivingVo.planChineseName}}</text>
|
|
|
|
|
|
+ style="font-size: 14px;">{{anshengaccidentalDrivingVo.planCode}}{{anshengaccidentalDrivingVo.planChineseName}}</text>
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -317,7 +317,7 @@
|
|
active-color="rgb(255, 170, 0)"></u-checkbox>
|
|
active-color="rgb(255, 170, 0)"></u-checkbox>
|
|
<view class=" dis a-c j-s " @click="anshengPopupshow1=true">
|
|
<view class=" dis a-c j-s " @click="anshengPopupshow1=true">
|
|
<text
|
|
<text
|
|
- style="font-size: 14px;">{{anshengaccidentalDrivingVo.productName}}</text>
|
|
|
|
|
|
+ style="font-size: 14px;">{{anshengaccidentalDrivingVo.productCode}}{{anshengaccidentalDrivingVo.productName}}</text>
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
<u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -445,22 +445,22 @@
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
<!-- 安盛驾意险弹框 -->
|
|
<!-- 安盛驾意险弹框 -->
|
|
- <u-popup v-model="anshengPopupshow" mode="center" width="70%" border-radius="10">
|
|
|
|
|
|
+ <u-popup v-model="anshengPopupshow" mode="center" width="90%" border-radius="10">
|
|
<view class="popContent dis f-c a-c">
|
|
<view class="popContent dis f-c a-c">
|
|
<u-radio-group size="30" active-color="rgb(255, 170, 0)">
|
|
<u-radio-group size="30" active-color="rgb(255, 170, 0)">
|
|
<u-radio style="margin: 4px 0;flex: auto;" @change="ASprogrammeradioChange"
|
|
<u-radio style="margin: 4px 0;flex: auto;" @change="ASprogrammeradioChange"
|
|
v-for="(item, index) in anshengprogrammeData" :key="index" :name="item.planCode">
|
|
v-for="(item, index) in anshengprogrammeData" :key="index" :name="item.planCode">
|
|
- {{item.planChineseName}}
|
|
|
|
|
|
+ {{item.planCode}}{{item.planChineseName}}
|
|
</u-radio>
|
|
</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
- <u-popup v-model="anshengPopupshow1" mode="center" width="70%" border-radius="10">
|
|
|
|
|
|
+ <u-popup v-model="anshengPopupshow1" mode="center" width="90%" border-radius="10">
|
|
<view class="popContent dis f-c a-c">
|
|
<view class="popContent dis f-c a-c">
|
|
<u-radio-group size="30" active-color="rgb(255, 170, 0)">
|
|
<u-radio-group size="30" active-color="rgb(255, 170, 0)">
|
|
<u-radio style="margin: 4px 0;flex: auto;" @change="ASInsuranceradioChange"
|
|
<u-radio style="margin: 4px 0;flex: auto;" @change="ASInsuranceradioChange"
|
|
v-for="(item, index) in anshengInsuranceData" :key="index" :name="item.productCode">
|
|
v-for="(item, index) in anshengInsuranceData" :key="index" :name="item.productCode">
|
|
- {{item.productName}}
|
|
|
|
|
|
+ {{item.productCode}}{{item.productName}}
|
|
</u-radio>
|
|
</u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</view>
|
|
</view>
|
|
@@ -1457,7 +1457,16 @@
|
|
let info = this.anshengprogrammeData.find((val => val.planCode == id))
|
|
let info = this.anshengprogrammeData.find((val => val.planCode == id))
|
|
this.anshengPopupshow = false;
|
|
this.anshengPopupshow = false;
|
|
this.anshengInsuranceData = info.departmentProductList;
|
|
this.anshengInsuranceData = info.departmentProductList;
|
|
- Object.assign(this.anshengaccidentalDrivingVo, info.departmentProductList[0]);
|
|
|
|
|
|
+ let dataInfo = {
|
|
|
|
+ personFlag: info.personFlag,
|
|
|
|
+ planChineseName: info.planChineseName,
|
|
|
|
+ planCode: info.planCode,
|
|
|
|
+ planSeries: info.planSeries,
|
|
|
|
+ productCode: info.departmentProductList[0].productCode,
|
|
|
|
+ productName: info.departmentProductList[0].productName,
|
|
|
|
+ quantity: info.departmentProductList[0].quantity
|
|
|
|
+ }
|
|
|
|
+ Object.assign(this.anshengaccidentalDrivingVo, dataInfo);
|
|
},
|
|
},
|
|
//安盛二级选择
|
|
//安盛二级选择
|
|
ASInsuranceradioChange(id) {
|
|
ASInsuranceradioChange(id) {
|
|
@@ -1926,62 +1935,7 @@
|
|
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) {
|
|
|
|
- let time = res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
|
- this.jqstartDate = time;
|
|
|
|
- this.jqendDate = this.oneYearPast(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.oneYearPast(time);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let param = {
|
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
|
- return this.quoteInsurance(num, id, apiType);
|
|
|
|
- } else if (res.data == null && res.msg.indexOf("上年保险止期(") > -1 && res.msg.indexOf("重复投保情况") > -
|
|
|
|
- 1) {
|
|
|
|
- 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.oneYearPast(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.oneYearPast(time);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let param = {
|
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
|
- return this.quoteInsurance(num, id, apiType);
|
|
|
|
- } else if (!!res.data) {
|
|
|
|
|
|
+ if (!!res.data) {
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
.warnMessageList[
|
|
.warnMessageList[
|
|
0] != "") {
|
|
0] != "") {
|
|
@@ -2000,63 +1954,7 @@
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case '中国人寿':
|
|
case '中国人寿':
|
|
- 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.oneYearPast(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.oneYearPast(time);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let param = {
|
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
|
- return this.quoteInsurance(num, id, apiType);
|
|
|
|
- } else if (res.data == null && res.msg.indexOf("商业险-平台返回") > -1 && 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.oneYearPast(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.oneYearPast(time);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let param = {
|
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
|
- return this.quoteInsurance(num, id, apiType);
|
|
|
|
- } else if (!!res.data) {
|
|
|
|
|
|
+ if (!!res.data) {
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
.warnMessageList[
|
|
.warnMessageList[
|
|
0] != "") {
|
|
0] != "") {
|
|
@@ -2076,61 +1974,7 @@
|
|
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)) {
|
|
|
|
- let time = res.msg.substr(res.msg.indexOf(";终保日期") + 6, 16) + ":00";
|
|
|
|
- this.jqstartDate = time;
|
|
|
|
- this.jqendDate = this.oneYearPast(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.oneYearPast(time);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let param = {
|
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
|
- return this.quoteInsurance(num, id, apiType);
|
|
|
|
- } else if (res.data == null && res.msg.indexOf("平台校验,重复投保") > -1 && res.msg.indexOf("终保日期:") >
|
|
|
|
- -1) {
|
|
|
|
- let time = res.msg.substr(res.msg.indexOf("终保日期:") + 5, 10) + " 00:00:00";
|
|
|
|
- this.systartDate = time;
|
|
|
|
- this.syendDate = this.oneYearPast(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.oneYearPast(time);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- let param = {
|
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
|
- return this.quoteInsurance(num, id, apiType);
|
|
|
|
- } else if (!!res.data) {
|
|
|
|
|
|
+ if (!!res.data) {
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
if (res.data.warnMessageList != null && res.data.warnMessageList[0] != null && res.data
|
|
.warnMessageList[
|
|
.warnMessageList[
|
|
0] != "") {
|
|
0] != "") {
|
|
@@ -2170,7 +2014,6 @@
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
//安盛天平
|
|
//安盛天平
|
|
ansheng(num, id) {
|
|
ansheng(num, id) {
|