mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 15:06:45 +08:00
投保流程投保人被保人受益人证件有效止期添加校验
This commit is contained in:
@@ -958,6 +958,11 @@ 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周岁以下
|
//年龄在16周岁以下
|
||||||
if (age < 16) {
|
if (age < 16) {
|
||||||
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
||||||
|
|||||||
@@ -1111,6 +1111,11 @@ 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周岁以下
|
//年龄在16周岁以下
|
||||||
if (age < 16) {
|
if (age < 16) {
|
||||||
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
||||||
|
|||||||
@@ -1469,6 +1469,11 @@ 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周岁以下
|
//年龄在16周岁以下
|
||||||
if (age < 16) {
|
if (age < 16) {
|
||||||
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
if (new Date(val).getFullYear() - new Date(this.userInfo.certificateValidate).getFullYear() != 5) {
|
||||||
|
|||||||
Reference in New Issue
Block a user