diff --git a/src/views/ebiz/cardList/GroupAppntInfo.vue b/src/views/ebiz/cardList/GroupAppntInfo.vue index a7e19a696..82c27ee79 100644 --- a/src/views/ebiz/cardList/GroupAppntInfo.vue +++ b/src/views/ebiz/cardList/GroupAppntInfo.vue @@ -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 + } } } }, diff --git a/src/views/ebiz/cardList/GroupInsuredInfo.vue b/src/views/ebiz/cardList/GroupInsuredInfo.vue index 49ad658bf..2e48b5015 100644 --- a/src/views/ebiz/cardList/GroupInsuredInfo.vue +++ b/src/views/ebiz/cardList/GroupInsuredInfo.vue @@ -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 + } } } }, diff --git a/src/views/ebiz/cardList/GroupInsuredList.vue b/src/views/ebiz/cardList/GroupInsuredList.vue index 199d0e64c..925547eb2 100644 --- a/src/views/ebiz/cardList/GroupInsuredList.vue +++ b/src/views/ebiz/cardList/GroupInsuredList.vue @@ -16,8 +16,8 @@