【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】录入投被保人信息界面,长期按钮有问题

This commit is contained in:
li.yuetong
2022-07-26 17:36:05 +08:00
parent 07be415468
commit a55f3da28d
4 changed files with 18 additions and 18 deletions

View File

@@ -706,6 +706,7 @@ export default {
this.userInfo.effectiveDateType = true //是否长期
} else {
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
this.userInfo.effectiveDateType = false //是否长期
}
this.userInfo.email = data.email //电子邮箱
@@ -938,6 +939,9 @@ export default {
}
this.userInfo.birthday = idToData(val).birthday
this.userInfo.sex = idToData(val).sex
if (idToData(val).age > 45) {
this.effectiveDateTypeAble = false
}
}
}
},

View File

@@ -1028,6 +1028,7 @@ export default {
this.insuredInfo.certiexpiredate = year +'-'+ this.insuredInfo.birthday.substr(5,5)
}
}
//户口本
if (data.customerIdType == 2) {
this.insuredInfo.effectiveDateType = true
this.insuredInfo.certiexpiredate = '9999-01-01'
@@ -1041,7 +1042,7 @@ export default {
this.effectiveDateTypeAbleInsured = true
} else {
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
this.insuredInfo.effectiveDateType = false;
this.insuredInfo.effectiveDateType = false
this.effectiveDateTypeAbleInsured = false
}
}
@@ -1507,18 +1508,6 @@ export default {
// },
getRelatedData(val, ind) {
//ind 1 投保人 2 被保人
if (ind == '1') {
if (this.userInfo.idType != '1') {
return
}
//如果证件校验不通过,恢复默认值
if (idToData(val).text) {
;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
return this.$toast(idToData(val).text)
}
this.userInfo.birthday = idToData(val).birthday
this.userInfo.sex = idToData(val).sex
}
if (ind == '2') {
if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') {
return
@@ -1554,8 +1543,6 @@ export default {
}
}
this.insuredInfo.sex = idToData(val).sex
//GFRS-2641-- 被保险人年龄小于18周岁不含前端需隐藏手机号码、电子邮箱
//GFRS-2641--被保险人大于等于18周岁前端需展示手机号码、电子邮箱且非必填
if (this.insuredInfo.birthday) {
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
//GFRS-2641--被保险人年龄小于20周岁不含婚姻状况默认为未婚
@@ -1563,6 +1550,9 @@ export default {
this.insuredInfo.marriage = '2'
}
}
if (idToData(val).age > 45) {
this.effectiveDateTypeAbleInsured = false
}
}
}
},

View File

@@ -16,8 +16,8 @@
<ul>
<li class="flex pv15 ph10 bg-white align-items-c" style="flex-wrap: wrap;border-bottom:1px solid #dadada" v-for="(choose, index) in chooseList" :key="index">
<span class="ml10 mr20 fs15">{{ choose.relationName }}</span>
<div v-if="choose.hasRisk" class="fs15 c-gray-dark">
<div>姓名: {{ choose.name }}</div>
<div v-if="choose.hasRisk" class="fs15 w150 c-gray-dark">
<div style="word-wrap: break-word;">姓名: {{ choose.name }}</div>
<div v-if="choose.riskDTOLst[0].prem != '0.00'">保费: {{ choose.riskDTOLst[0].prem | moneyFormat }}</div>
</div>
<div class="mr10 fs15 c-gray-dark" @click="insure(choose)" v-else>点击为他/她投保</div>

View File

@@ -1490,9 +1490,9 @@ export default {
this.userInfo.effectiveDateType = true //是否长期
} else {
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
this.userInfo.effectiveDateType = false //是否长期
}
this.userInfo.email = data.email //邮箱
this.userInfo.mobile = data.customerPhone //移动电话
this.userInfo.homeProvince = data.homeProvince //家庭省
this.userInfo.homeCity = data.homeCity //家庭市
@@ -2262,6 +2262,9 @@ export default {
}
this.userInfo.birthday = idToData(val).birthday
this.userInfo.sex = idToData(val).sex
if (idToData(val).age > 45) {
this.effectiveDateTypeAble = false
}
}
if (ind == '2') {
if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') {
@@ -2314,6 +2317,9 @@ export default {
this.insuredInfo.marriage = '2'
}
}
if (idToData(val).age > 45) {
this.effectiveDateTypeAbleInsured = false
}
}
}
},