mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 11:36:45 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】与投保人关系为父母时,被保险人年龄如小于投保人,点击【下一步】,toast阻断提示当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄;
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<van-field :value="item.amt/10000 +'万'" :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="orderInfoDTO.orderAmount+'元'" label='保费' name='保费' readonly />
|
||||||
<van-field :value='productDate' type="textarea" rows="1" label='保险期间' name='保险期间' readonly />
|
<van-field :value='productDate' type="textarea" rows="1" label='保险期间' name='保险期间' readonly />
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<van-cell-group class='mt10'>
|
<van-cell-group class='mt10'>
|
||||||
|
|||||||
@@ -1335,42 +1335,40 @@ export default {
|
|||||||
// return this.$toast('投保人必须是具有民事行为能力且有固定职业和收入的自然人,请确定')
|
// return this.$toast('投保人必须是具有民事行为能力且有固定职业和收入的自然人,请确定')
|
||||||
// }
|
// }
|
||||||
|
|
||||||
let insuredInfoAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
|
||||||
if (this.itemProductDTOS.productCode === 'GFRS_M0049') {
|
if (this.itemProductDTOS.productCode === 'GFRS_M0049') {
|
||||||
//幼儿园:2岁≤被保险人≤7岁
|
//幼儿园:2岁≤被保险人≤7岁
|
||||||
if (insuredInfoAge < 2 || insuredInfoAge > 7) {
|
if (insuredAge < 2 || insuredAge > 7) {
|
||||||
return this.$toast('被保险人年龄应为2岁-7岁,请重新选择。')
|
return this.$toast('被保险人年龄应为2岁-7岁,请重新选择。')
|
||||||
}
|
}
|
||||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0048') {
|
} else if (this.itemProductDTOS.productCode === 'GFRS_M0048') {
|
||||||
//义务教育:5岁≤被保险人≤18岁
|
//义务教育:5岁≤被保险人≤18岁
|
||||||
if (insuredInfoAge < 5 || insuredInfoAge > 18) {
|
if (insuredAge < 5 || insuredAge > 18) {
|
||||||
return this.$toast('被保险人年龄应为5岁-18岁,请重新选择。')
|
return this.$toast('被保险人年龄应为5岁-18岁,请重新选择。')
|
||||||
}
|
}
|
||||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0050') {
|
} else if (this.itemProductDTOS.productCode === 'GFRS_M0050') {
|
||||||
//高中及高等教育:15岁≤被保险人≤40岁
|
//高中及高等教育:15岁≤被保险人≤40岁
|
||||||
if (insuredInfoAge < 15 || insuredInfoAge > 40) {
|
if (insuredAge < 15 || insuredAge > 40) {
|
||||||
return this.$toast('被保险人年龄应为15岁-40岁,请重新选择。')
|
return this.$toast('被保险人年龄应为15岁-40岁,请重新选择。')
|
||||||
}
|
}
|
||||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0052') {
|
} else if (this.itemProductDTOS.productCode === 'GFRS_M0052') {
|
||||||
//GFRS-2641--少儿安康:17岁≤被保险人
|
//GFRS-2641--少儿安康:17岁≤被保险人
|
||||||
if (insuredInfoAge > 17) {
|
if (insuredAge > 17) {
|
||||||
return this.$toast('被保险人年龄应为0岁-17岁,请重新选择。')
|
return this.$toast('被保险人年龄应为0岁-17岁,请重新选择。')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||||
// 投被保人年龄与投被保人年龄之间校验逻辑
|
// 投被保人年龄与投被保人年龄之间校验逻辑
|
||||||
// if (this.insuredInfo.relationToAppnt == '4') {
|
if (this.insuredInfo.relationToAppnt == '4') {
|
||||||
// //投被保人关系是子女
|
// 与投保人关系为子女时,被保险人年龄如大于投保人,点击【下一步】,toast阻断提示“当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄”;
|
||||||
// // 被保险人的出生日期大于投保人的出生日期(即被保险人年龄小于投保人年龄)点击【下一步】提示“当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄。
|
if (age < insuredAge) {
|
||||||
// if (age > insuredAge) {
|
return this.$toast('当前被保险人是投保人的子女,被保险人年龄需小于投保人年龄')
|
||||||
// return this.$toast('当前投保人是被保险人的子女,投保人年龄需小于被保险人年龄')
|
}
|
||||||
// }
|
} else if (this.insuredInfo.relationToAppnt == '3') {
|
||||||
// } else if (this.insuredInfo.relationToAppnt == '3') {
|
//与投保人关系为父母时,被保险人年龄如小于投保人,点击【下一步】,toast阻断提示“当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄”
|
||||||
// //投被保人关系是父母
|
if (age > insuredAge) {
|
||||||
// // 被保险人的出生日期小于投保人的出生日期(即被保险人年龄大于投保人年龄)点击【下一步】提示“当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄。
|
return this.$toast('当前被保险人是投保人的父母,被保险人年龄需大于投保人年龄')
|
||||||
// if (age < insuredAge) {
|
}
|
||||||
// return this.$toast('当前投保人是被保险人的父母,投保人年龄需大于被保险人年龄')
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
if (this.insuredInfo.relationToAppnt != '1') {
|
if (this.insuredInfo.relationToAppnt != '1') {
|
||||||
//投被保人关系不是本人
|
//投被保人关系不是本人
|
||||||
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
|
//投保人和被保险人的证件信息(证件号码、证件类型)相同时,关系只能是本人,当“是投保人的”枚举为非本人(配偶、父母、子女、其他),但证件号码和本人相同,点击【下一步】提示“投保人和被保人关系不是本人,证件号码不可一致,请修改。”
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="choose-insuredPerson pb60 bg-white">
|
<div class="choose-insuredPerson pb60 bg-white">
|
||||||
<!-- <BreadcrumbNavigator :current="1" :moveOn.sync="moveOn" /> -->
|
|
||||||
<p class='fs15 fwb pl10 pv12'>被保人信息</p>
|
<p class='fs15 fwb pl10 pv12'>被保人信息</p>
|
||||||
<div slot="content" class="pl20 pr20 flex justify-content-s">
|
<div slot="content" class="pl20 pr20 flex justify-content-s">
|
||||||
<div v-for="item in persons" class="text-center" :key="item.code" @click="handleChoose(item)">
|
<div v-for="item in persons" class="text-center" :key="item.code" @click="handleChoose(item)">
|
||||||
@@ -92,16 +91,12 @@ export default {
|
|||||||
allPrice:0
|
allPrice:0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
moveOn() {
|
|
||||||
return this.$CacheUtils.getLocItem('canMoveOn') === '1'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
components: {
|
components: {
|
||||||
[Icon.name]: Icon,
|
[Icon.name]: Icon,
|
||||||
[Toast.name]: Toast
|
[Toast.name]: Toast
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
window.appCallBack = this.appCallBack
|
||||||
if (this.$route.query.cardOrderNo) {
|
if (this.$route.query.cardOrderNo) {
|
||||||
this.cardOrderNo = this.$route.query.cardOrderNo
|
this.cardOrderNo = this.$route.query.cardOrderNo
|
||||||
}
|
}
|
||||||
@@ -186,6 +181,22 @@ export default {
|
|||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// },
|
// },
|
||||||
|
appCallBack(data) {
|
||||||
|
if (data.trigger == 'left_button_click') {
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
title: '填写投保人信息',
|
||||||
|
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||||
|
url: location.origin + `/#/cardList/GroupAppntInfo?cardOrderNo=`+this.cardOrderNo
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: `/cardList/GroupAppntInfo`,
|
||||||
|
type: '1'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
//立即投保
|
//立即投保
|
||||||
nextStep() {
|
nextStep() {
|
||||||
let chooseList = this.chooseList
|
let chooseList = this.chooseList
|
||||||
|
|||||||
Reference in New Issue
Block a user