dev
rosehan 2 years ago
parent bad4fe7336
commit 8aec9ca60c
  1. 13
      sunPackIndex/scenic/subscribe/yuyue/yue_form_js.vue

@ -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 => {

Loading…
Cancel
Save