mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 04:16:44 +08:00
投保流程投保人被保人受益人证件有效止期添加校验
This commit is contained in:
@@ -958,6 +958,11 @@ export default {
|
||||
}
|
||||
//证件止期
|
||||
let val = this.userInfo.certiexpiredate
|
||||
if (Date.parse(val) < Date.parse(new Date())) {
|
||||
this.userInfo.certiexpiredate = ''
|
||||
this.$refs.certiexpiredate.date = ''
|
||||
return this.$toast('您的证件已过期')
|
||||
}
|
||||
//年龄在16周岁以下
|
||||
if (age < 16) {
|
||||
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
||||
|
||||
@@ -1110,7 +1110,12 @@ export default {
|
||||
|
||||
//身份证证件类型的判断
|
||||
//证件止期
|
||||
let val = this.userInfo.certiexpiredate
|
||||
let val = this.userInfo.certiexpiredate
|
||||
if (Date.parse(val) < Date.parse(new Date())) {
|
||||
this.userInfo.certiexpiredate = ''
|
||||
this.$refs.certiexpiredate.date = ''
|
||||
return this.$toast('您的证件已过期')
|
||||
}
|
||||
//年龄在16周岁以下
|
||||
if (age < 16) {
|
||||
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
||||
|
||||
@@ -1469,6 +1469,11 @@ export default {
|
||||
|
||||
//证件止期
|
||||
let val = this.userInfo.certiexpiredate
|
||||
if (Date.parse(val) < Date.parse(new Date())) {
|
||||
this.userInfo.certiexpiredate = ''
|
||||
this.$refs.certiexpiredate.date = ''
|
||||
return this.$toast('您的证件已过期')
|
||||
}
|
||||
//年龄在16周岁以下
|
||||
if (age < 16) {
|
||||
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
||||
|
||||
Reference in New Issue
Block a user