mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 16:16:45 +08:00
【国富惠桂保团体医疗保险产品上线金掌桂投保开发需求】录入投被保人信息界面,长期按钮有问题
This commit is contained in:
@@ -706,6 +706,7 @@ export default {
|
|||||||
this.userInfo.effectiveDateType = true //是否长期
|
this.userInfo.effectiveDateType = true //是否长期
|
||||||
} else {
|
} else {
|
||||||
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||||
|
this.userInfo.effectiveDateType = false //是否长期
|
||||||
}
|
}
|
||||||
this.userInfo.email = data.email //电子邮箱
|
this.userInfo.email = data.email //电子邮箱
|
||||||
|
|
||||||
@@ -938,6 +939,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.userInfo.birthday = idToData(val).birthday
|
this.userInfo.birthday = idToData(val).birthday
|
||||||
this.userInfo.sex = idToData(val).sex
|
this.userInfo.sex = idToData(val).sex
|
||||||
|
if (idToData(val).age > 45) {
|
||||||
|
this.effectiveDateTypeAble = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1028,6 +1028,7 @@ export default {
|
|||||||
this.insuredInfo.certiexpiredate = year +'-'+ this.insuredInfo.birthday.substr(5,5)
|
this.insuredInfo.certiexpiredate = year +'-'+ this.insuredInfo.birthday.substr(5,5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//户口本
|
||||||
if (data.customerIdType == 2) {
|
if (data.customerIdType == 2) {
|
||||||
this.insuredInfo.effectiveDateType = true
|
this.insuredInfo.effectiveDateType = true
|
||||||
this.insuredInfo.certiexpiredate = '9999-01-01'
|
this.insuredInfo.certiexpiredate = '9999-01-01'
|
||||||
@@ -1041,7 +1042,7 @@ export default {
|
|||||||
this.effectiveDateTypeAbleInsured = true
|
this.effectiveDateTypeAbleInsured = true
|
||||||
} else {
|
} else {
|
||||||
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
this.insuredInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||||
this.insuredInfo.effectiveDateType = false;
|
this.insuredInfo.effectiveDateType = false
|
||||||
this.effectiveDateTypeAbleInsured = false
|
this.effectiveDateTypeAbleInsured = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1507,18 +1508,6 @@ export default {
|
|||||||
// },
|
// },
|
||||||
getRelatedData(val, ind) {
|
getRelatedData(val, ind) {
|
||||||
//ind 1 投保人 2 被保人
|
//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 (ind == '2') {
|
||||||
if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') {
|
if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') {
|
||||||
return
|
return
|
||||||
@@ -1554,8 +1543,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.insuredInfo.sex = idToData(val).sex
|
this.insuredInfo.sex = idToData(val).sex
|
||||||
//GFRS-2641-- 被保险人年龄小于18周岁(不含),前端需隐藏手机号码、电子邮箱;
|
|
||||||
//GFRS-2641--被保险人大于等于18周岁(含),前端需展示手机号码、电子邮箱,且非必填
|
|
||||||
if (this.insuredInfo.birthday) {
|
if (this.insuredInfo.birthday) {
|
||||||
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
let age = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||||
//GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚;
|
//GFRS-2641--被保险人年龄小于20周岁(不含),婚姻状况默认为未婚;
|
||||||
@@ -1563,6 +1550,9 @@ export default {
|
|||||||
this.insuredInfo.marriage = '2'
|
this.insuredInfo.marriage = '2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (idToData(val).age > 45) {
|
||||||
|
this.effectiveDateTypeAbleInsured = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
<ul>
|
<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">
|
<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>
|
<span class="ml10 mr20 fs15">{{ choose.relationName }}</span>
|
||||||
<div v-if="choose.hasRisk" class="fs15 c-gray-dark">
|
<div v-if="choose.hasRisk" class="fs15 w150 c-gray-dark">
|
||||||
<div>姓名: {{ choose.name }}</div>
|
<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 v-if="choose.riskDTOLst[0].prem != '0.00'">保费(元): {{ choose.riskDTOLst[0].prem | moneyFormat }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mr10 fs15 c-gray-dark" @click="insure(choose)" v-else>点击为他/她投保</div>
|
<div class="mr10 fs15 c-gray-dark" @click="insure(choose)" v-else>点击为他/她投保</div>
|
||||||
|
|||||||
@@ -1490,9 +1490,9 @@ export default {
|
|||||||
this.userInfo.effectiveDateType = true //是否长期
|
this.userInfo.effectiveDateType = true //是否长期
|
||||||
} else {
|
} else {
|
||||||
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
this.userInfo.certiexpiredate = data.idEffectEndDate //证件截止日期
|
||||||
|
this.userInfo.effectiveDateType = false //是否长期
|
||||||
}
|
}
|
||||||
this.userInfo.email = data.email //邮箱
|
this.userInfo.email = data.email //邮箱
|
||||||
|
|
||||||
this.userInfo.mobile = data.customerPhone //移动电话
|
this.userInfo.mobile = data.customerPhone //移动电话
|
||||||
this.userInfo.homeProvince = data.homeProvince //家庭省
|
this.userInfo.homeProvince = data.homeProvince //家庭省
|
||||||
this.userInfo.homeCity = data.homeCity //家庭市
|
this.userInfo.homeCity = data.homeCity //家庭市
|
||||||
@@ -2262,6 +2262,9 @@ export default {
|
|||||||
}
|
}
|
||||||
this.userInfo.birthday = idToData(val).birthday
|
this.userInfo.birthday = idToData(val).birthday
|
||||||
this.userInfo.sex = idToData(val).sex
|
this.userInfo.sex = idToData(val).sex
|
||||||
|
if (idToData(val).age > 45) {
|
||||||
|
this.effectiveDateTypeAble = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (ind == '2') {
|
if (ind == '2') {
|
||||||
if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') {
|
if (this.insuredInfo.idType != '1' && this.insuredInfo.idType != '2') {
|
||||||
@@ -2314,6 +2317,9 @@ export default {
|
|||||||
this.insuredInfo.marriage = '2'
|
this.insuredInfo.marriage = '2'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (idToData(val).age > 45) {
|
||||||
|
this.effectiveDateTypeAbleInsured = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user