【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】被保险人联系地址默认投保人地址,支持修改

This commit is contained in:
li.yuetong
2022-06-16 14:55:12 +08:00
parent 0ec960e4d0
commit f8948f6e5b
3 changed files with 25 additions and 12 deletions

View File

@@ -134,7 +134,7 @@ export default [
name: 'GroupAppntInfo', name: 'GroupAppntInfo',
component: GroupAppntInfo, component: GroupAppntInfo,
meta: { meta: {
title: '填写投保信息', title: '填写投保信息',
index: 12 index: 12
} }
}, },

View File

@@ -2,13 +2,12 @@
<div class='product-detail-container pb50' style='overflow: hidden'> <div class='product-detail-container pb50' style='overflow: hidden'>
<van-cell-group class='mt10'> <van-cell-group class='mt10'>
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>投保人信息</p> <p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>投保人信息</p>
<van-field :value='appntInfo.name' label='姓名' name='姓名' readonly /> <van-field :value='appntInfo.name' label='投保人姓名' name='投保人姓名' readonly />
<van-field :value="appntInfo.idType | idToText('insuredIdType')" label='证件类型' name='证件类型' readonly /> <van-field :value="appntInfo.idType | idToText('insuredIdType')" label='证件类型' name='证件类型' readonly />
<van-field :value='appntInfo.idNo' label='证件号码' name='证件号码' readonly /> <van-field :value='appntInfo.idNo' label='证件号码' name='证件号码' readonly />
<van-field :value='appntInfo.mobile' label='手机号码' name='手机号码' readonly /> <van-field :value='appntInfo.mobile' label='手机号码' name='手机号码' readonly />
<van-field :value='appntInfo.email' label='电子邮箱' name='电子邮箱' readonly />
<van-field :value='appntInfo.homeName' label='联系地址' name='联系地址' readonly /> <van-field :value='appntInfo.homeName' label='联系地址' name='联系地址' readonly />
<van-field :value='appntInfo.homeAddress' label='详细地址' name='详细地址' readonly /> <van-field :value='appntInfo.homeAddress' label='' name='详细地址' readonly />
</van-cell-group> </van-cell-group>
<van-cell-group class='mt10'> <van-cell-group class='mt10'>
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>产品信息</p> <p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>产品信息</p>
@@ -16,7 +15,7 @@
<van-field value='保额' label='保险责任' name='保险责任' readonly /> <van-field value='保额' label='保险责任' name='保险责任' readonly />
<div v-if='riskDTO.dutyLst && riskDTO.dutyLst.length>0'> <div v-if='riskDTO.dutyLst && riskDTO.dutyLst.length>0'>
<div class='duty' v-for='(item, index) in riskDTO.dutyLst' :key='index'> <div class='duty' v-for='(item, index) in riskDTO.dutyLst' :key='index'>
<van-field :value='item.amtContain' :label='item.dutyName' :name='item.dutyName' readonly /> <van-field :value="item.amt/10000 +''" :label='item.dutyName' :name='item.dutyName' readonly />
</div> </div>
</div> </div>
<van-field :value="riskDTO.prem+''" label='保费' name='保费' readonly /> <van-field :value="riskDTO.prem+''" label='保费' name='保费' readonly />
@@ -34,15 +33,11 @@
<!-- <van-field v-if='item.isLessEighteen' :value='item.mobile' label='手机号码' name='手机号码' readonly /> --> <!-- <van-field v-if='item.isLessEighteen' :value='item.mobile' label='手机号码' name='手机号码' readonly /> -->
<!-- <van-field v-if='item.isLessEighteen' :value='item.email' label='电子邮箱' name='电子邮箱' readonly /> --> <!-- <van-field v-if='item.isLessEighteen' :value='item.email' label='电子邮箱' name='电子邮箱' readonly /> -->
<van-field :value='item.homeName' label='联系地址' name='联系地址' readonly /> <van-field :value='item.homeName' label='联系地址' name='联系地址' readonly />
<van-field :value='item.homeAddress' label='详细地址' name='详细地址' readonly /> <van-field :value='item.homeAddress' label='' name='详细地址' readonly />
<van-field :value='bnfTypeVal' label='受益人类型' name='受益人类型' readonly />
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
</van-cell-group> </van-cell-group>
<van-cell-group class='mt10'>
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>受益人信息</p>
<van-field readonly v-model='bnfTypeVal' clearable label='受益人类型' v-validate="'required'"
style='border-bottom: 1px solid #ebedf0' />
</van-cell-group>
<van-goods-action style='z-index: 99'> <van-goods-action style='z-index: 99'>
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'>总保费:<span <van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'>总保费:<span
style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{ style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{

View File

@@ -305,6 +305,7 @@ export default {
}, },
data() { data() {
return { return {
expireDate:'', //截止时间
cardOrderNo: '', cardOrderNo: '',
isLessEighteen: true, //是否小于18周岁不含 isLessEighteen: true, //是否小于18周岁不含
averageAnnualIncomeFlag: false, // 20210730 年收入不展示且默认为0 核心对年收入有非空校验 averageAnnualIncomeFlag: false, // 20210730 年收入不展示且默认为0 核心对年收入有非空校验
@@ -552,6 +553,7 @@ export default {
insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate() insuYearD = productDate.getDate() < 10 ? '0' + productDate.getDate() : productDate.getDate()
productDateTime = productDate.getFullYear() + '' + insuYearM + '' + insuYearD + '' productDateTime = productDate.getFullYear() + '' + insuYearM + '' + insuYearD + ''
this.productDate = currentData + '0时至' + productDateTime + '24时止' this.productDate = currentData + '0时至' + productDateTime + '24时止'
this.expireDate = productDate.getFullYear() + '-' + insuYearM + '-' + insuYearD //截止时间
} }
}, },
mounted() { mounted() {
@@ -574,6 +576,16 @@ export default {
cardOrderDetail(cardInfoDTO).then(res => { cardOrderDetail(cardInfoDTO).then(res => {
if (res.result == '0') { if (res.result == '0') {
Object.assign(this.userInfo,res.orderDTO.appntDTO) Object.assign(this.userInfo,res.orderDTO.appntDTO)
//被保险人联系地址默认投保人地址,支持修改。
this.insuredInfo.homeName = getAreaName([
{ code: this.userInfo.homeProvince },
{ code: this.userInfo.homeCity },
{ code: this.userInfo.homeArea }
])
this.insuredInfo.homeProvince = this.userInfo.homeProvince
this.insuredInfo.homeCity = this.userInfo.homeCity
this.insuredInfo.homeArea = this.userInfo.homeArea
this.insuredInfo.homeAddress = this.userInfo.homeAddress
if(that.$route.query.insuredId){ //编辑 if(that.$route.query.insuredId){ //编辑
res.orderDTO.insuredDTOs.forEach(item => { res.orderDTO.insuredDTOs.forEach(item => {
if(that.$route.query.insuredId == item.insuredId){ if(that.$route.query.insuredId == item.insuredId){
@@ -1382,6 +1394,10 @@ export default {
return this.$toast('投保人和被保人关系不是本人证件号码不可一致请修改') return this.$toast('投保人和被保人关系不是本人证件号码不可一致请修改')
} }
} }
//新增有无社保字段默认【有】如选择【无】点击【确定】时阻断toast提示“被保险人需有社保才可投保此险种。”
if (this.insuredInfo.medical == '1') {
return this.$toast('被保险人需有社保才可投保此险种')
}
// 是否长期选项 赋值 // 是否长期选项 赋值
if (this.insuredInfo.effectiveDateType) { if (this.insuredInfo.effectiveDateType) {
this.insuredInfo.certiexpiredate = '9999-01-01' this.insuredInfo.certiexpiredate = '9999-01-01'
@@ -1461,7 +1477,8 @@ export default {
orderInfoDTO: { orderInfoDTO: {
bnfFlag: '0', bnfFlag: '0',
supportBank: '0', supportBank: '0',
orderNo: this.cardOrderNo orderNo: this.cardOrderNo,
expireDate: this.expireDate //截止时间
}, },
appntDTO: this.userInfo, appntDTO: this.userInfo,
insuredDTOs: [this.insuredInfo] insuredDTOs: [this.insuredInfo]
@@ -1491,6 +1508,7 @@ export default {
proSchemeCode: this.proSchemeCode, proSchemeCode: this.proSchemeCode,
insuYear: insuYearDate.insuYear, insuYear: insuYearDate.insuYear,
insuYearFlag: insuYearDate.insuYearFlag insuYearFlag: insuYearDate.insuYearFlag
// expireDate: this.expireDate //截止时间
} }
if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') { if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') {
//增加万能险 预计转入保费校验 //增加万能险 预计转入保费校验