<el-input v-model.trim="formObj.idcard" @blur="brithdayDate(formObj.idcard)" placeholder="请输入身份证号码"></el-input>
// 根据身份证号码获取出生日期
brithdayDate(IdNO){
this.formObj.birthday = "";
if (IdNO.length==18) {
this.formObj.birthday = IdNO.substr(6,8);
return this.formObj.birthday = this.formObj.birthday.replace(/(.{4})(.{2})/,"$1-$2-");
}else if(IdNO.length==15){
this.formObj.birthday = "19"+IdNO.substr(6,6);
return this.formObj.birthday = this.formObj.birthday.replace(/(.{4})(.{2})/,"$1-$2-");
}else{
return "";
}
},