From 80bc3def65550919a6754bc6b4748a076e1b948c Mon Sep 17 00:00:00 2001
From: liyuetong
Date: Fri, 20 Aug 2021 19:25:58 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E7=85=A7=E4=BA=A7=E5=93=81=E8=A7=84?=
=?UTF-8?q?=E5=AE=9A=E7=9A=84=E5=B9=B4=E9=BE=84=EF=BC=8C=E8=AF=81=E4=BB=B6?=
=?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=9E=9A=E4=B8=BE=E8=BA=AB=E4=BB=BD=E8=AF=81?=
=?UTF-8?q?=E3=80=81=E6=88=B7=E5=8F=A3=E6=9C=AC=EF=BC=8C=E9=BB=98=E8=AE=A4?=
=?UTF-8?q?=E6=88=B7=E5=8F=A3=E6=9C=AC=EF=BC=8C=E4=B8=94=E6=88=B7=E5=8F=A3?=
=?UTF-8?q?=E6=9C=AC=E8=AF=81=E4=BB=B6=E6=88=AA=E6=AD=A2=E6=97=A5=E6=9C=9F?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=95=BF=E6=9C=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ebiz/cardList/information.vue | 122 +++++++++++++++++++-----
1 file changed, 99 insertions(+), 23 deletions(-)
diff --git a/src/views/ebiz/cardList/information.vue b/src/views/ebiz/cardList/information.vue
index 701ac9c02..ee6ba3c88 100644
--- a/src/views/ebiz/cardList/information.vue
+++ b/src/views/ebiz/cardList/information.vue
@@ -91,7 +91,7 @@
v-validate="'required|mobile'"
maxlength="11"
/>
-
+
-
+
+
+
+ 同投保人
+
被保人信息
@@ -459,7 +463,7 @@
-
+
@@ -487,7 +491,7 @@
>
-->
- 注:为未成年子女投保的人身保险,在被保险人成年之前,因被保险人身故给付的保险金总和不得超过国务院保险监督管理机构规定的限额,身故给付的保险金额总和的约定也不得超过前述限额。但航空意外死亡保险金额及重大自然灾害意外死亡保险金额不计算在上述规定限额之中。
+ 注:为未成年子女投保的人身保险,在被保险人成年之前,因被保险人身故给付的保险金总和不得超过国务院保险监督管理机构规定的限额,身故给付的保险金额总和的约定也不得超过前述限额。但航空意外死亡保险金额及重大自然灾害意外死亡保险金额不计算在上述规定限额之中。
总保费:{{ allPrice }}40){
return this.$toast('被保险人年龄应为15岁-40岁,请重新选择。')
}
+ }else if (this.itemProductDTOS.productCode === 'GFRS_M0052') {
+ //GFRS-2641--少儿安康:17岁≤被保险人
+ if(insuredInfoAge>17){
+ return this.$toast('被保险人年龄应为0岁-17岁,请重新选择。')
+ }
}
if (this.userInfo.relationToInsured == '4') {
//投被保人关系是子女
@@ -1866,15 +1911,22 @@ export default {
}
this.insuredInfo.birthday = idToData(val).birthday
this.insuredInfo.sex = idToData(val).sex
- //被保险人证件类型枚举“身份证、户口本”,默认户口本,且户口本证件截止日期默认长期(如果后期还有被保险人年龄为0-17周岁的,都同该规则)
- let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
- if(age <= 17){
-
- }
- //GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚;
- if(age < 20){
- this.insuredInfo.marriage = '2'
- }
+ //GFRS-2641-- 被保险人年龄小于18周岁(不含),前端需隐藏手机号码、电子邮箱;
+ //GFRS-2641--被保险人大于等于18周岁(含),前端需展示手机号码、电子邮箱,且非必填
+ if(this.insuredInfo.birthday){
+ let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
+ if(age <= 17){
+ this.isLessEighteen = false //是否小于18周岁(不含)
+ }else{
+ this.isLessEighteen = true //是否小于18周岁(不含)
+ }
+ //GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚;
+ if(age < 20){
+ this.insuredInfo.marriage = '2'
+ }else{
+ this.insuredInfo.marriage = ''
+ }
+ }
}
}
},
@@ -1914,6 +1966,7 @@ export default {
email: '', //电子邮箱
effectiveDateType:false //是否长期
}
+
// 2516--三款学平险-- 0048义务教育 0049 幼儿园 0050 高中
// GFRS-2641--被保险人职业:幼儿园版默认学龄前儿童,义务教育、高中/高等教育默认一般学生
// 被保险人婚姻默认未婚,允许修改
@@ -1928,6 +1981,14 @@ export default {
this.insuredInfo.occupationCode = '2099908'
this.insuredInfo.occupationName = '学龄前儿童'
}
+ // GFRS-2641--少儿安康,默认户口本,且户口本证件截止日期默认长期
+ if(this.itemProductDTOS.productCode == 'GFRS_M0052'){
+ this.insuredInfo.idType = '2'
+ this.insuredInfo.certiexpiredate = ''
+ this.insuredInfo.effectiveDateType = true
+ this.insuredInfo.occupationName = '一般学生'
+ this.insuredInfo.marriage = '2'
+ }
// 2516--除万福卡,投保人、被保险人年收入,默认为0,允许修改
if(this.itemProductDTOS.productCode !='GFRS_M0032'){
@@ -1964,6 +2025,17 @@ export default {
immediate: true,
deep: true
},
+ async 'withRootUser.value'(n) {
+ 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
+ },
}
}
@@ -1989,4 +2061,8 @@ export default {
color: #333;
padding: 15px;
}
+.address {
+ display: flex;
+ flex-direction: row-reverse;
+}