From 842407a65693be9e1a9991b6d4f852910153e177 Mon Sep 17 00:00:00 2001 From: proudlx <965752348@qq.com> Date: Tue, 13 Apr 2021 17:54:20 +0800 Subject: [PATCH] =?UTF-8?q?'=E9=87=8D=E6=96=B0=E6=8A=95=E4=BF=9D=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E4=BF=AE=E6=94=B9'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ebiz/insureAgain/InsureInformation.vue | 110 +++++++++++------- .../ebiz/insureAgain/ProductInformation.vue | 5 +- .../ebiz/insureAgain/UncommitInsureDetail.vue | 4 +- src/views/ebiz/insureAgain/index.vue | 19 ++- 4 files changed, 81 insertions(+), 57 deletions(-) diff --git a/src/views/ebiz/insureAgain/InsureInformation.vue b/src/views/ebiz/insureAgain/InsureInformation.vue index 1f9fe304b..4c9cc8c7b 100644 --- a/src/views/ebiz/insureAgain/InsureInformation.vue +++ b/src/views/ebiz/insureAgain/InsureInformation.vue @@ -25,15 +25,7 @@ {{ userInfo.occupationName }} {{ userInfo.mobile }} - + @@ -354,6 +346,7 @@ import OccupationForLoop from '@/components/ebiz/occipation/OccupationForLoop' import CacheUtils from '@/assets/js/utils/cacheUtils' import SelectBankName from '@/components/ebiz/account/SelectBankName' import areaList from '@/assets/js/utils/area' +import occupationList from '@/components/ebiz/occipation/data/occupation' export default { name: 'InsureInformation', components: { @@ -370,8 +363,8 @@ export default { data() { return { islistShow: false, - inputShow:true, - isAreaListShow:false, + inputShow: true, + isAreaListShow: false, homeName: '', //投保人联系地址 insuredHomeName: '', //被投保人联系地址 bnfHomeName: [], //受益人联系地址 @@ -507,6 +500,15 @@ export default { } //投保人信息返显 this.userInfo = res.orderDTO.appntDTO + let firstTierUserInfo = Number(this.userInfo.occupationCode.substr(0, 1)) - 1 + occupationList[firstTierUserInfo].subs.forEach((item) => { + item.subs.forEach((item) => { + if (item.code == this.userInfo.occupationCode) { + this.userInfo.occupationName = item.name + return + } + }) + }) this.setCustomerMarriage(res.orderDTO.appntDTO.marriage) //是否长期 this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType == 'false' ? false : true @@ -518,6 +520,15 @@ export default { // 被投保人信息 this.insuredPersonInfo = res.orderDTO.insuredDTOs[0] + let firstTier = Number(this.insuredPersonInfo.occupationCode.substr(0, 1)) - 1 + occupationList[firstTier].subs.forEach((item) => { + item.subs.forEach((item) => { + if (item.code == this.insuredPersonInfo.occupationCode) { + this.insuredPersonInfo.occupationName = item.name + return + } + }) + }) this.setInsuredCustomerMarriage(this.insuredPersonInfo.marriage) if (this.insuredPersonInfo.homeProvince.length) { this.insuredHomeName = getAreaName([ @@ -530,7 +541,7 @@ export default { //受益人信息 //bnfFlag 0-法定受益人 1-指定受益人 this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs'] - if (this.bnfPersonInfo[0]['bnftype'] === '1') { + if (this.bnfPersonInfo[0]['bnfType'] === '1') { this.bnftype = '1' this.bnfPersonInfo.forEach((item, index) => { this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }]) @@ -540,6 +551,15 @@ export default { item.marriageStatus = status.text } } + let firstTierBnf = Number(item.occupationCode.substr(0, 1)) - 1 + occupationList[firstTierBnf].subs.forEach((key) => { + key.subs.forEach((key) => { + if (key.code == item.occupationCode) { + item.occupationName = key.name + return + } + }) + }) }) } else { this.bnftype = '0' diff --git a/src/views/ebiz/insureAgain/ProductInformation.vue b/src/views/ebiz/insureAgain/ProductInformation.vue index bab38a740..c0333afaf 100644 --- a/src/views/ebiz/insureAgain/ProductInformation.vue +++ b/src/views/ebiz/insureAgain/ProductInformation.vue @@ -180,6 +180,9 @@ export default { planCode:element.planCode, birthday: this.insuredDTOs.birthday, duty:element.dutyLst, + jobLevel:'2', + getLimit:element.dutyLst[0].getLimit, + getRate:element.dutyLst[0].getRate, isMainRisk:element.isMainRisk, isRemit:element.isRemit, remitType:'', @@ -197,7 +200,7 @@ export default { payIntv: element.payIntv, platformType: 'app', - prem: element.prem, + // prem: element.prem, productCode: element.riskCode, sex: this.insuredDTOs.sex, amt: element.amt diff --git a/src/views/ebiz/insureAgain/UncommitInsureDetail.vue b/src/views/ebiz/insureAgain/UncommitInsureDetail.vue index d8411eace..61669ef9e 100644 --- a/src/views/ebiz/insureAgain/UncommitInsureDetail.vue +++ b/src/views/ebiz/insureAgain/UncommitInsureDetail.vue @@ -62,7 +62,9 @@
{{it.riskName}} - {{it.insuYear}} + {{it.insuYearFlag == 'Y' ? `${it.insuYear}年` : + `至${it.insuYear}岁`}} + 终身 {{it.payEndYearFlag == 'Y' ? `${it.payEndYear}年` : `至${it.payEndYear}岁`}} 一次性交清 diff --git a/src/views/ebiz/insureAgain/index.vue b/src/views/ebiz/insureAgain/index.vue index ca9061b6d..fed31be9d 100644 --- a/src/views/ebiz/insureAgain/index.vue +++ b/src/views/ebiz/insureAgain/index.vue @@ -42,14 +42,12 @@

重新投保声明提示

-

尊敬的{{ orderInfo.appntName }}{{ orderInfo.appntSex === 0 ? '先生' : '女士' }}

+

尊敬的{{ orderInfo.appntName }}{{ orderInfo.sex == 0 ? '先生' : '女士' }}

您好!感谢您选择购买国富人寿保险股份有限公司(以下简称我们)保险产品,您于{{ orderInfo.cvaliDate }}投保的旧保单{{ orderInfo.policyNo - }},产品名称为{{ orderInfo.riskName }}即将到期或已到期(到期日期详见保单),为保护您的权益,即日起至{{ - orderInfo.expiryDate | expiryDateFilter - }}期间,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认: + }},产品名称为{{ orderInfo.riskName }}即将到期或已到期(到期日期详见保单),为保护您的权益,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认:

1.{{ orderInfo.riskName }}保险期间为一年,到期后需要您重新投保。

@@ -70,9 +68,7 @@

您好!感谢您选择购买国富人寿保险股份有限公司(以下简称我们)保险产品,您于{{ orderInfo.cvaliDate }}投保的旧保单{{ orderInfo.policyNo - }},产品名称为:{{ orderInfo.riskName }}即将到期或已到期(到期日期详见保单),为保护您的权益,即日起至{{ - orderInfo.expiryDate | expiryDateFilter - }}期间,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认: + }},产品名称为:{{ orderInfo.riskName }}即将到期或已到期(到期日期详见保单),为保护您的权益,您可向我们提交重新投保申请。以下是申请重新投保的注意事项和声明,请您仔细阅读和确认:

1.{{ orderInfo.riskName }}保险期间为一年,到期后需要您重新投保。

@@ -259,6 +255,9 @@ export default { // }) getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => { if (res.result == 0) { + this.orderInfo.sex = res.orderDTO.appntDTO.sex + this.goUrl(res, order) + return if (res.orderDTO.appntDTO.idType == '1') { // 白名单校验 const resData = await getWhitelist({ @@ -269,7 +268,7 @@ export default { if (resData.result === '0') { // 在白名单内 if (resData.content && resData.content.length) { - this.goUrl(res,order) + this.goUrl(res, order) return } else { window.EWebBridge.webCallAppInJs('face_auth', { @@ -278,7 +277,7 @@ export default { name: res.orderDTO.appntDTO.name //姓名 }).then((data) => { if (JSON.parse(data).state == '1') { - this.goUrl(res,order) + this.goUrl(res, order) } else { return this.$toast('人脸识别,验证失败!') } @@ -295,7 +294,7 @@ export default { } }) }, - goUrl(res,order) { + goUrl(res, order) { let url //投保人信息返显 CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))