|
|
@ -491,9 +491,16 @@ export default { |
|
|
|
console.log('n---', n) |
|
|
|
if (n.columnName !== 'ID_CARD') return |
|
|
|
if (!isCard(this.form.ID_CARD)) return |
|
|
|
const { sex, birth } = computedCard(this.form.ID_CARD) |
|
|
|
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] |
|
|
|
const _id = this.form.ID_CARD.substr(0, 6) |
|
|
|
const { sex, birth, age } = computedCard(this.form.ID_CARD) |
|
|
|
this.form.BIRTHDAY = birth |
|
|
|
this.form.GENDER = sex == 1 ? '1' : '2' |
|
|
|
this.form.IS_OLD_PEOPLE = age >= 60 ? '1' : '0' |
|
|
|
this.form.IS_BDHJ = huji == _id ? '1' : '' |
|
|
|
console.log('age-----', age, _id) |
|
|
|
}, |
|
|
|
handleOpenSearch () { |
|
|
|
this.openSearch = !this.openSearch |
|
|
@ -760,7 +767,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
.resi-cell-value .resi-cell-input { |
|
|
|
max-width: 190px; |
|
|
|
width: 190px; |
|
|
|
} |
|
|
|
.resi-cell-value { |
|
|
|
:deep .el-col { |
|
|
|