Browse Source

dd

shibei_master
13176889840 3 years ago
parent
commit
805b5025e5
  1. 7
      src/views/components/resiForm.vue

7
src/views/components/resiForm.vue

@ -492,8 +492,11 @@ export default {
if (n.columnName !== 'ID_CARD') return
if (!isCard(this.form.ID_CARD)) return
const { user } = this.$store.state
const i = user.areaCodePath && user.areaCodePath.length - 1
const huji = user.areaCodePath[i].length > 6 ? user.areaCodePath[i].substr(0, 6) : user.areaCodePath[i]
let huji = '', i = 0
if (user.areaCodePath && user.areaCodePath.length > 0) {
i = user.areaCodePath.length - 1
huji = user.areaCodePath[i].length > 6 ? user.areaCodePath[i].substr(0, 6) : user.areaCodePath[i]
}
const _id = this.form.ID_CARD.substr(0, 6)
const { sex, birth, age } = computedCard(this.form.ID_CARD)
this.form.BIRTHDAY = birth

Loading…
Cancel
Save