【中介渠道鑫享金生养老年金保险】被保人年龄小于30天未校验

This commit is contained in:
li.yuetong
2022-06-09 09:49:34 +08:00
parent 0f247228df
commit 59bb9debb1
3 changed files with 32 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { productCheck } from '@/api/ebiz/common/common'
import { getCompany } from '@/api/ebiz/sale/sale'
import { getAgentInfo } from '@/api/ebiz/my/my.js'
import utilsAge from '@/assets/js/utils/age'
import CacheUtils from '@/assets/js/utils/cacheUtils'
import DataDictionary from '@/assets/js/utils/data-dictionary'
export default {
@@ -41,13 +42,17 @@ export default {
return false
},
//投、被保险人年龄对险种的限制
ageLimit(resultData, vm, isApplicant) {
ageLimit(resultData, vm, isApplicant,riskProductCode) {
let age, tips
if (isApplicant) {
age = this.getSaleInsuredInfo().age
tips = '投保人年龄不适合此款险种,请选择其他险种!'
} else {
age = this.getSaleInsuredPersonInfo().age
if(riskProductCode == 'GFRS_M0061'){
age = utilsAge.getAge29(this.getSaleInsuredPersonInfo().birthday, new Date())
}else{
age = this.getSaleInsuredPersonInfo().age
}
tips = '被保险人年龄不适合此款险种,请选择其他险种!'
}
let minAge = resultData.productTrialInfoDTO.ageRange && resultData.productTrialInfoDTO.ageRange.minAge