mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 03:56:44 +08:00
【中介渠道鑫享金生养老年金保险】被保人年龄小于30天未校验
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user