mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 20:42:52 +08:00
Merge branch 'feature/【保全】' into dev
This commit is contained in:
@@ -162,19 +162,19 @@ export default {
|
||||
return this.$toast(`受益人${i.name}的身份证件已过期`)
|
||||
}
|
||||
if (age < 46 && i.idExpDate == '9999-01-01') {
|
||||
return this.$toast(`受益人${i.name}证件有效期不正常,年龄小于46周岁,证件有效期不能为长期`)
|
||||
return this.$toast(`受益人${i.name}证件有效期错误,年龄小于46周岁,证件有效期不能为长期`)
|
||||
}
|
||||
if (age < 16) {
|
||||
if (Date.parse(i.idExpDate) - Date.parse(new Date()) > Date.parse('1975-01-01')) {
|
||||
return this.$toast(`受益人${i.name}证件有效期不正常,未满16周岁的公民身份证有效期应小于等于5年`)
|
||||
return this.$toast(`受益人${i.name}证件有效期错误,未满16周岁的公民身份证有效期应小于等于5年`)
|
||||
}
|
||||
} else if (age >= 16 && age <= 25) {
|
||||
if (Date.parse(i.idExpDate) - Date.parse(new Date()) > Date.parse('1980-01-01')) {
|
||||
return this.$toast(`受益人${i.name}证件有效期不正常,16周岁至25周岁公民身份证有效期应小于等于10年`)
|
||||
return this.$toast(`受益人${i.name}证件有效期错误,16周岁至25周岁公民身份证有效期应小于等于10年`)
|
||||
}
|
||||
} else if (age >= 26 && age <= 45) {
|
||||
if (Date.parse(i.idExpDate) - Date.parse(new Date()) > Date.parse('1980-01-01')) {
|
||||
return this.$toast(`受益人${i.name}证件有效期不正常,26周岁至45周岁公民身份证有效期应小于等于20年`)
|
||||
return this.$toast(`受益人${i.name}证件有效期错误,26周岁至45周岁公民身份证有效期应小于等于20年`)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -308,7 +308,7 @@ export default {
|
||||
})
|
||||
isDetailFlag = totalPrem >= 200000 ? '0' : '1'
|
||||
this.policy.isDetailFlag = isDetailFlag
|
||||
this.policy.isDetailFlag = '0' //TEST测试专用
|
||||
// this.policy.isDetailFlag = '0' //TEST测试专用
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
|
||||
@@ -466,26 +466,30 @@ export default {
|
||||
return this.$toast('您填写的证件号码有误')
|
||||
}
|
||||
|
||||
//年龄在46岁以下的,证件有效期不能为长期
|
||||
if (age < 46 && this.userInfo.effectiveDateType == true) {
|
||||
return this.$toast('证件有效期错误,年龄小于46周岁,证件有效期不能为长期')
|
||||
}
|
||||
//年龄在0-15周岁之间
|
||||
if (age <= 15) {
|
||||
if (Date.parse(this.userInfo.idExpDate) - Date.parse(new Date()) > Date.parse('1975-01-01')) {
|
||||
this.userInfo.idExpDate = ''
|
||||
this.$refs.effectiveDate.date = ''
|
||||
return this.$toast('证件有效期不正常,未满16周岁的公民身份证有效期应小于等于5年')
|
||||
return this.$toast('证件有效期错误,未满16周岁的公民身份证有效期应小于等于5年')
|
||||
}
|
||||
//年龄在 16-25 周岁之间
|
||||
} else if (age >= 16 && age <= 25) {
|
||||
if (Date.parse(this.userInfo.idExpDate) - Date.parse(new Date()) > Date.parse('1980-01-01')) {
|
||||
this.userInfo.idExpDate = ''
|
||||
this.$refs.effectiveDate.date = ''
|
||||
return this.$toast('证件有效期不正常,16周岁至25周岁公民身份证有效期应小于等于10年')
|
||||
return this.$toast('证件有效期错误,16周岁至25周岁公民身份证有效期应小于等于10年')
|
||||
}
|
||||
//年龄在 26-45 周岁之间
|
||||
} else if (age >= 26 && age <= 45) {
|
||||
if (Date.parse(this.userInfo.idExpDate) - Date.parse(new Date()) > Date.parse('1990-01-01')) {
|
||||
this.userInfo.idExpDate = ''
|
||||
this.$refs.effectiveDate.date = ''
|
||||
return this.$toast('证件有效期不正常,26周岁至45周岁公民身份证有效期应小于等于20年')
|
||||
return this.$toast('证件有效期错误,26周岁至45周岁公民身份证有效期应小于等于20年')
|
||||
}
|
||||
}
|
||||
//证件类型是户口本
|
||||
|
||||
Reference in New Issue
Block a user