From aa18a1d871787d4a6dea989d51cb561a81cbae45 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Tue, 31 May 2022 10:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E4=BF=A1=E6=81=AF=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=BF=97=E6=84=BF=E8=80=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/resiForm.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue index 57f0397d..7246d608 100644 --- a/src/views/components/resiForm.vue +++ b/src/views/components/resiForm.vue @@ -509,6 +509,7 @@ export default { this.form.GENDER = sex == 1 ? '1' : '2' this.form.IS_OLD_PEOPLE = age >= 60 ? '1' : '0' this.form.IS_BDHJ = huji == _id ? '1' : '' + this.validateIdcard(this.form.ID_CARD) console.log('age-----', age, _id) }, handleOpenSearch () { @@ -670,6 +671,22 @@ export default { if (this.supportAdd) newForm = this.handlerMuscForm() return newForm }, + validateIdcard (idCard) { + this.$http + .post('/epmetuser/icresiuser/getUserRoleByIdCard', { idCard }) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } else { + console.log('获取查询详情成功', res.data) + if (res.data.isVolunteer == '1') this.form.IS_VOLUNTEER = '1' + else this.form.IS_VOLUNTEER = '0' + } + }) + .catch(() => { + return this.$message.error('网络错误') + }) + }, getGridList () { const { user } = this.$store.state console.log('agencyId', user)