|
|
|
@ -174,6 +174,9 @@ |
|
|
|
|
} |
|
|
|
|
//判断最多预约人数 |
|
|
|
|
this.dynamicLists.push(newData); |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.$refs.form[this.dynamicLists.length-1].setRules(this.rules); |
|
|
|
|
}); |
|
|
|
|
if (this.dynamicLists.length > 4) { |
|
|
|
|
this.isAdd = false |
|
|
|
|
} |
|
|
|
@ -195,15 +198,7 @@ |
|
|
|
|
that.dynamicLists.map((item, index) => { |
|
|
|
|
that.$refs.form[index].validate().then(res => { |
|
|
|
|
|
|
|
|
|
let idreg = |
|
|
|
|
/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/; |
|
|
|
|
if (!idreg.test(item.idCardNumber)) { |
|
|
|
|
state[index] = '0' |
|
|
|
|
that.dynamicLists[index].idCardState=true |
|
|
|
|
} else { |
|
|
|
|
state[index] = '1' |
|
|
|
|
that.dynamicLists[index].idCardState=false |
|
|
|
|
} |
|
|
|
|
state[index] = '1' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|