From 7ebec4fcb0ae9d5cdff8932aa0bd248fcefb621f Mon Sep 17 00:00:00 2001 From: pangxingyue <120277894@qq.com> Date: Wed, 31 Mar 2021 15:00:26 +0800 Subject: [PATCH] =?UTF-8?q?feature/GFRS-2215=E3=80=90=E5=BE=85=E5=AE=8C?= =?UTF-8?q?=E6=88=90=E3=80=91=E9=87=8D=E6=96=B0=E6=8A=95=E4=BF=9D--?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8=E4=BF=9D=E5=8D=95=E5=8F=B7?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BF=AE=E6=94=B9=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=8A=95=E4=BF=9D=E5=A3=B0=E6=98=8E=E6=96=87=E6=A1=88=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=99=84=E5=8A=A0=E9=99=A9=E5=88=A4=E6=96=AD?= =?UTF-8?q?=EF=BC=8C=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BF=9D=E5=8D=95=E9=A1=B5=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E6=9F=A5=E8=AF=A2=E4=B8=8E=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E5=88=A4=E6=96=AD=EF=BC=8C=E4=BF=AE=E6=94=B9=E9=99=84?= =?UTF-8?q?=E5=8A=A0=E9=99=A9B=E6=AC=BE=E5=88=A4=E6=96=AD=E6=96=B9?= =?UTF-8?q?=E5=BC=8F--=E6=8F=90=E4=BA=A4=E4=BA=BA=E5=BA=9E=E5=85=B4?= =?UTF-8?q?=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ebiz/insureAgain/Order.vue | 4 +- .../ebiz/insureAgain/InsureInformation.vue | 191 +++++++++--------- .../ebiz/insureAgain/ProductInformation.vue | 6 +- src/views/ebiz/insureAgain/index.vue | 83 +++++++- 4 files changed, 174 insertions(+), 110 deletions(-) diff --git a/src/components/ebiz/insureAgain/Order.vue b/src/components/ebiz/insureAgain/Order.vue index ba447b72a..7502ab428 100644 --- a/src/components/ebiz/insureAgain/Order.vue +++ b/src/components/ebiz/insureAgain/Order.vue @@ -1,7 +1,7 @@ - + {{userInfo.taxResidentId | idToText('taxIdentity')}} {{homeName}} {{userInfo.homeAddress}} @@ -33,10 +35,11 @@ {{userInfo.idType | idToText('idType')}} {{insuredPersonInfo.idNo}} {{insuredPersonInfo.birthday}} - + {{insuredPersonInfo.nativeplace | idToText('nativeplace')}} + right-icon="arrow" placeholder="请选择" @click="toSelect('10','','insuredDTOs')" @focus="noBomBox" /> {{insuredPersonInfo.occupationCode}} @@ -66,8 +69,8 @@ :value.sync="item.sex"> - + {{accountPersonInfo.accountName}} {{accountPersonInfo.bankName}} - {{accountPersonInfo.cardBookCode}} + {{accountPersonInfo.cardBookCode}} - + 下一步 @@ -176,15 +173,15 @@ export default { bnfIndex: '', //受益人索引 homeShow: false, //联系地址搜索栏显示 areaLists: areaLists, //地址信息 - occupationShowPicker: false, //职业类别 - occupationName: '', - occupationCode: '', + occupationShowPicker: false, //职业类别 + occupationName: '', + occupationCode: '' } }, created() { this.getReAppntPolicy() }, - mounted() { + mounted() { setTimeout(() => { window.EWebBridge.webCallAppInJs('webview_left_button', { intercept: '1' @@ -192,7 +189,7 @@ export default { }, 100) window.appCallBack = this.appCallBack }, - methods: { + methods: { appCallBack(data) { if (data.trigger == 'left_button_click') { this.$jump({ @@ -206,56 +203,62 @@ export default { }) } }, - getReAppntPolicy() { - getReAppntPolicy({ policyNo: CacheUtils.getLocItem('policyNo') }).then(res => { + async getReAppntPolicy() { + var res = JSON.parse(CacheUtils.getLocItem('orderDetailData')) + if (!res) { + console.log('==================orderDetailData不存在=========================') + res = await getReAppntPolicy({ policyNo: CacheUtils.getLocItem('policyNo') }) if (res.result == 0) { - //投保人信息返显 CacheUtils.setLocItem('orderDetailData', JSON.stringify(res)) - this.userInfo = res.orderDTO.appntDTO - this.setCustomerMarriage(res.orderDTO.appntDTO.marriage) - //是否长期 - this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType == 'false' ? false : true - //有无社保 - this.userInfo.medical = res.orderDTO.appntDTO.medical - - this.$utils.intLocalStorage(res) - this.homeName = getAreaName([{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }]) - - // 被投保人信息 - this.insuredPersonInfo = res.orderDTO.insuredDTOs[0] - - this.insuredPersonInfo.relationToAppnt = this.insuredPersonInfo.relationToMainInsured - if (this.insuredPersonInfo.homeProvince.length) { - this.insuredHomeName = getAreaName([ - { code: this.insuredPersonInfo.homeProvince }, - { code: this.insuredPersonInfo.homeCity }, - { code: this.insuredPersonInfo.homeArea } - ]) - } - - //受益人信息 - //bnfFlag 1-法定受益人 0-指定受益人 - this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs'] - 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 }]) - }) } else { - this.bnftype = '0' - this.insuredPersonInfo['bnfDTOs'] = [] - } - // 账户信息 - this.accountPersonInfo = res.orderDTO.orderAccountDTO - this.accountPersonInfo.bankCode = this.accountPersonInfo.bankName - dataDic['edorBankType'].some(item => { - if (item.id == this.accountPersonInfo.bankName) { - this.accountPersonInfo.bankName = item.text - } - }) - this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123' - } - }) + this.$toast(res.resultMessage) + return false; + } + } + //投保人信息返显 + this.userInfo = res.orderDTO.appntDTO + this.setCustomerMarriage(res.orderDTO.appntDTO.marriage) + //是否长期 + this.userInfo.effectiveDateType = res.orderDTO.appntDTO.effectiveDateType == 'false' ? false : true + //有无社保 + this.userInfo.medical = res.orderDTO.appntDTO.medical + + this.$utils.intLocalStorage(res) + this.homeName = getAreaName([{ code: this.userInfo.homeProvince }, { code: this.userInfo.homeCity }, { code: this.userInfo.homeArea }]) + + // 被投保人信息 + this.insuredPersonInfo = res.orderDTO.insuredDTOs[0] + + this.insuredPersonInfo.relationToAppnt = this.insuredPersonInfo.relationToMainInsured + if (this.insuredPersonInfo.homeProvince.length) { + this.insuredHomeName = getAreaName([ + { code: this.insuredPersonInfo.homeProvince }, + { code: this.insuredPersonInfo.homeCity }, + { code: this.insuredPersonInfo.homeArea } + ]) + } + + //受益人信息 + //bnfFlag 1-法定受益人 0-指定受益人 + this.bnfPersonInfo = res.orderDTO.insuredDTOs[0]['bnfDTOs'] + 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 }]) + }) + } else { + this.bnftype = '0' + this.insuredPersonInfo['bnfDTOs'] = [] + } + // 账户信息 + this.accountPersonInfo = res.orderDTO.orderAccountDTO + this.accountPersonInfo.bankCode = this.accountPersonInfo.bankName + dataDic['edorBankType'].some(item => { + if (item.id == this.accountPersonInfo.bankName) { + this.accountPersonInfo.bankName = item.text + } + }) + this.insuredPersonInfo.homeAddress = '汉字汉字汉字汉字123123' }, setCustomerMarriage(marriageCode) { @@ -307,16 +310,16 @@ export default { } }) break - case '10': + case '10': this.columns = DataDictionary.marriage break } }, noBomBox() { - document.activeElement.blur(); + document.activeElement.blur() }, //确认选择字段 - onConfirm(value) { + onConfirm(value) { this.popupShow = false if (this.pickerType == '1') { if (this.userType === 'appntDTO') { @@ -454,7 +457,7 @@ export default { } }, /** - * @description: + * @description: * @param {*} index * @return {*} */ @@ -465,7 +468,7 @@ export default { specialRead(payload) { this.isSpecialRead = payload }, - async nextStep(page) { + async nextStep(page) { let valid = await this.$validator.validate() if (true === valid) { for (let status of DataDictionary.marriage) { @@ -476,9 +479,9 @@ export default { this.save() } else { return this.$toast(this.$validator.errors.all()[0]) - } + } }, - async save() { + async save() { let params = { orderType: 'RE_APPNT_ORDER', orderDTO: { @@ -488,7 +491,7 @@ export default { isElecCont: this.isElecCont, supportBank: '0', bnfFlag: this.bnftype - }, + }, appntDTO: this.userInfo, insuredDTOs: [this.insuredPersonInfo], orderAccountDTO: this.accountPersonInfo @@ -496,27 +499,27 @@ export default { } let str = '' let resultData = await commitReOrder(params) - if (resultData.result == 0) { - CacheUtils.setLocItem('orderNo', resultData.content.orderNo) + if (resultData.result == 0) { + CacheUtils.setLocItem('orderNo', resultData.content.orderNo) this.$jump({ - flag: 'h5', - extra: { - url: location.origin + `/#/insureAgain/ProductInformation` - }, - routerInfo: { - path: `/insureAgain/ProductInformation` - } + flag: 'h5', + extra: { + url: location.origin + `/#/insureAgain/ProductInformation` + }, + routerInfo: { + path: `/insureAgain/ProductInformation` + } }) } else { this.$toast(resultData.resultMessage) } }, /** - * @description: + * @description: * @param {*} data * @return {*} */ - chooseOccupation(data) { + chooseOccupation(data) { let { code, name, healthGrade, lifeGrade } = data this.$jump({ flag: 'navigation', @@ -524,22 +527,22 @@ export default { title: '职业类别', hiddenRight: '1' } - }) + }) this.occupationShowPicker = false - this.bnfPersonInfo[this.bnfIndex]['occupationName'] = name; - this.bnfPersonInfo[this.bnfIndex]['occupationCode'] = code; + this.bnfPersonInfo[this.bnfIndex]['occupationName'] = name + this.bnfPersonInfo[this.bnfIndex]['occupationCode'] = code }, /** - * @description: + * @description: * @param {*} * @return {*} */ openOccupation(index) { this.occupationShowPicker = !this.occupationShowPicker this.bnfIndex = index - this.occupationName = this.bnfPersonInfo[this.bnfIndex]['occupationName']; - this.occupationCode = this.bnfPersonInfo[this.bnfIndex]['occupationCode']; + this.occupationName = this.bnfPersonInfo[this.bnfIndex]['occupationName'] + this.occupationCode = this.bnfPersonInfo[this.bnfIndex]['occupationCode'] } } } diff --git a/src/views/ebiz/insureAgain/ProductInformation.vue b/src/views/ebiz/insureAgain/ProductInformation.vue index a99c7dd4d..243cd1530 100644 --- a/src/views/ebiz/insureAgain/ProductInformation.vue +++ b/src/views/ebiz/insureAgain/ProductInformation.vue @@ -160,10 +160,10 @@ export default { } CacheUtils.setLocItem('productCode', element.riskCode) this.mainList.push(element) - } else { - if (element.riskName.indexOf('(B款)') !== -1) { + } else { + if (element.riskCode === 'GFRS_A0008') { this.checkboxResult.push(element.riskCode) - } + } this.additionalList.push(element) } }) diff --git a/src/views/ebiz/insureAgain/index.vue b/src/views/ebiz/insureAgain/index.vue index 93c841a4e..3026ed3a9 100644 --- a/src/views/ebiz/insureAgain/index.vue +++ b/src/views/ebiz/insureAgain/index.vue @@ -13,7 +13,7 @@

保单保障日截止日期 - {{ order.cvaliDate }} + {{ order.expiryDate }}

@@ -43,17 +43,57 @@ -

重新投保声明提示

-

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

-

- 您好!您于保单生效日期投保的保单号为保单号码的国富人寿国富民惠医疗保险(2020版)保单即将到期(到期日期详见保单,以下简称旧保单),为保护您的权益,即日起至<期满日后第{{orderInfo.expiryDate}}天>期间,您可以选择重新投保国富人寿国富民惠医疗保险(2020版),本次申请投保的国富人寿国富民惠医疗保险(2020版)保单以下简称新保单,请您仔细阅读以下内容: +

重新投保声明提示

+

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

+
+

+ 您好!您于{{orderInfo.cvaliDate}}投保的保单号为{{orderInfo.policyNo}}的国富人寿国富民惠医疗保险(2020版)保单即将到期(到期日期详见保单,以下简称旧保单),为保护您的权益,即日起至{{orderInfo.expiryDate}}后第60天期间,您可以选择重新投保国富人寿国富民惠医疗保险(2020版),本次申请投保的国富人寿国富民惠医疗保险(2020版)保单以下简称新保单,请您仔细阅读以下内容: +

+

1.国富人寿国富民惠医疗保险(2020版)合同保险期间为一年,到期后需要重新投保。 +

+

2.本次重新投保,我们将按照国富人寿国富民惠医疗保险(2020版)费率表中的“在上一保险期间届满后60日内申请重新投保时对应的费率”计算保费。 +

+

3.若本次重新投保成功,新保单免除等待期。 +

+

4.本次重新投保仅限于无其他补充告知的情况,若您有其他补充告知,您的条件不符合本重新投保流程。请您联系保单服务专员,通过新增投保单进行投保申请。 +

+

5.若您于旧保单满期前申请重新投保,且于满期前成功支付保险费,则新保单在旧保单保险期满日对应日的次日零时生效,旧保单在保险期满日24时终止。若您于旧保单满期后60天(包含)内重新投保申请,且成功支付保险费,则新保单于支付次日零时生效,旧保单在保险期满日24时终止。 +

+

6.若您未在旧保单满期后60天(包含)内申请重新投保,则您的重新投保资格将被取消。后续您可再次申请投保,但新单不再与旧保单关联,需重新计算等待期。具体详情,可咨询保单服务专员。 -

+

+
+
+

+ 您好!您于{{orderInfo.cvaliDate}}投保的保单号为{{orderInfo.policyNo}}的国富人寿国富民惠医疗保险(2020版)保单即将到期(到期日期详见保单,以下简称旧保单),为保护您的权益,即日起至{{orderInfo.expiryDate}}后第60天期间,您可以选择重新投保国富人寿国富民惠医疗保险(2020版),本次申请投保的国富人寿国富民惠医疗保险(2020版)保单以下简称新保单,请您仔细阅读以下内容: +

+

+ 1.国富人寿国富民惠医疗保险(2020版)合同保险期间为一年,到期后需要重新投保。 +

+

+ 2.本次重新投保,我们将按照国富人寿国富民惠医疗保险(2020版)费率表中的“在上一保险期间届满后60日内申请重新投保时对应的费率”计算保费。 +

+

+ 3.若本次重新投保成功,新保单免除等待期。 +

+

+ 4.本次重新投保仅限于无其他补充告知的情况,若您有其他补充告知,您的条件不符合本重新投保流程。请您联系保单服务专员,通过新增投保单进行投保申请。 +

+

+ 5.若您于旧保单满期前申请重新投保,且于满期前成功支付保险费,则新保单在旧保单保险期满日对应日的次日零时生效,旧保单在保险期满日24时终止。若您于旧保单满期后60天(包含)内重新投保申请,且成功支付保险费,则新保单于支付次日零时生效,旧保单在保险期满日24时终止。 +

+

+ 6.若您未在旧保单满期后60天(包含)内申请重新投保,则您的重新投保资格将被取消。后续您可再次申请投保,但新单不再与旧保单关联,需重新计算等待期。具体详情,可咨询保单服务专员。 +

+

+ 7.国富人寿附加住院医疗保险已停售,您可选择投保同类产品国富人寿附加住院医疗保险(B款),我们将按照国富人寿附加住院医疗保险(B款)费率表中的“在上一保险期间届满后60日内申请重新投保时对应的费率”计算保费。 +

+