This commit is contained in:
shijingjing
2022-05-05 15:14:28 +08:00
parent 04f788f0ad
commit a40ec9a147
2 changed files with 7 additions and 14 deletions

View File

@@ -661,6 +661,8 @@ export default {
let {name, idNumber, currentAreaId, currentAreaName} = v?.[0] || {}
this.form = {...this.form, name, idNumber, currentAreaId, currentAreaName}
this.form.sex = this.$idCardNoUtil.getIdCardInfo(idNumber)?.sex
this.form.birthday = this.$idCardNoUtil.getIdCardInfo(idNumber)?.birthday
this.form.age = this.$calcAge(this.form.idNumber)
},
deep: true,
},