mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 18:46:43 +08:00
【建议书优化需求】修改投被保人信息界面年龄的非空校验提示语
This commit is contained in:
committed by
liu.xiaofeng@ebiz-digits.com
parent
6b3edcb2b9
commit
59f6ebb2bc
@@ -315,17 +315,16 @@ export default {
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字或者英文')
|
||||
}
|
||||
this.appntDTO.age = String(this.appntDTO.age)
|
||||
//投保人年龄校验
|
||||
let minAge = getAge.getAge(utils.formatDate(new Date(this.maxDate),'yyyy-MM-dd'), new Date())
|
||||
let maxAge = getAge.getAge('1900-01-01', new Date())
|
||||
if(this.appntDTO.age < minAge || this.appntDTO.age > maxAge){
|
||||
return Toast.fail('您的年龄不符合投保人的年龄范围')
|
||||
}
|
||||
this.$validator.validate().then(valid => {
|
||||
if (true === valid) {
|
||||
this.$CacheUtils.setLocItem('canMoveOn', 1)
|
||||
const orderNo = this.$CacheUtils.getLocItem('proposalNo');
|
||||
//进行投保人年龄校验(大于18周岁)
|
||||
//进行投保人年龄校验(大于18周岁)//投保人年龄校验
|
||||
let minAge = getAge.getAge(utils.formatDate(new Date(this.maxDate),'yyyy-MM-dd'), new Date())
|
||||
let maxAge = getAge.getAge('1900-01-01', new Date())
|
||||
if(this.appntDTO.age < minAge || this.appntDTO.age > maxAge){
|
||||
return Toast.fail('您的年龄不符合投保人的年龄范围')
|
||||
}
|
||||
let params = {
|
||||
orderDTO: {
|
||||
appntDTO: this.appntDTO,
|
||||
|
||||
@@ -341,12 +341,6 @@ export default {
|
||||
if (!resultSex) {
|
||||
return Toast.fail('被保险人性别有误')
|
||||
}
|
||||
//被保人年龄校验
|
||||
let minAge = getAge.getAge(utils.formatDate(new Date(this.maxDate),'yyyy-MM-dd'), new Date())
|
||||
let maxAge = getAge.getAge('1900-01-01', new Date())
|
||||
if(this.insured.insuredAge < minAge || this.insured.insuredAge > maxAge){
|
||||
return Toast.fail('您的年龄不符合被保人的年龄范围')
|
||||
}
|
||||
if (!resultRelation) {
|
||||
return Toast.fail('0-7岁未成年人须由其父母投保')
|
||||
}
|
||||
@@ -367,6 +361,12 @@ export default {
|
||||
fromSelect = true
|
||||
}
|
||||
if (fromSelect) {
|
||||
//被保人年龄校验
|
||||
let minAge = getAge.getAge(utils.formatDate(new Date(this.maxDate),'yyyy-MM-dd'), new Date())
|
||||
let maxAge = getAge.getAge('1900-01-01', new Date())
|
||||
if(this.insured.insuredAge < minAge || this.insured.insuredAge > maxAge){
|
||||
return Toast.fail('您的年龄不符合被保人的年龄范围')
|
||||
}
|
||||
//表示从产品列表返回
|
||||
//先进行比对 当前信息是否有更改 如果更改
|
||||
let locaInsured = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||
|
||||
Reference in New Issue
Block a user