diff --git a/src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue b/src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue
index 54d569f..7e12bc8 100644
--- a/src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue
+++ b/src/views/modules/epidemic/epidemicreportuserinfo-add-or-update.vue
@@ -20,37 +20,12 @@
clearable
@keyup.native="btKeyUpUserName">
-
-
-
-
-
-
-
-
-
-
-
-
@@ -58,8 +33,23 @@
placeholder="身份证"
clearable
maxlength="49"
+ @blur="getSexAndBirthDay"
@keyup.native="btKeyUpIdCard">
+
+
+ 女
+ 男
+
+
+
+
+
+
@@ -69,6 +59,12 @@
maxlength="11"
@keyup.native="btKeyUpMobile">
+
+
+
@@ -661,6 +657,34 @@ export default {
this.dataForm.destinationAddressCode = destinationAddressCode
this.dataForm.destinationAddressName = destinationAddressName
},
+ getSexAndBirthDay () {
+ // 先判断身份证是否合法
+ this.$http.get(`/custom/populationinformation/isIdentifyNoLegal/${this.dataForm.idCard}`).then(({ data: res }) => {
+ if (res.code !== 0) {
+ this.dataForm.idcard = ''
+ return this.$message.error(res.msg)
+ }
+ let identifyNo = this.dataForm.idCard
+ this.dataForm.gender = this.IdCard(identifyNo, 2)
+ this.dataForm.birthday = this.IdCard(identifyNo, 1)
+ }).catch(() => { })
+ },
+ IdCard (UUserCard, num) {
+ if (num === 1) {
+ // 获取出生日期
+ return UUserCard.substring(6, 10) + '-' + UUserCard.substring(10, 12) + '-' + UUserCard.substring(12, 14)
+ }
+ if (num === 2) {
+ // 获取性别
+ if (parseInt(UUserCard.substr(16, 1)) % 2 === 1) {
+ // 男
+ return '1'
+ } else {
+ // 女
+ return '0'
+ }
+ }
+ },
getOptions () {
this.$http
.get(`/custom/select/getSysArea`)
diff --git a/src/views/modules/epidemic/epidemicreportuserinfoDetail.vue b/src/views/modules/epidemic/epidemicreportuserinfoDetail.vue
index 2baf3cf..d7c6c09 100644
--- a/src/views/modules/epidemic/epidemicreportuserinfoDetail.vue
+++ b/src/views/modules/epidemic/epidemicreportuserinfoDetail.vue
@@ -21,37 +21,12 @@
clearable
@keyup.native="btKeyUpUserName">
-
-
-
-
-
-
-
-
-
-
-
-
@@ -61,6 +36,20 @@
maxlength="49"
@keyup.native="btKeyUpIdCard">
+
+
+ 女
+ 男
+
+
+
+
+
+
@@ -70,6 +59,12 @@
maxlength="11"
@keyup.native="btKeyUpMobile">
+
+
+
diff --git a/src/views/modules/house/househeadedit.vue b/src/views/modules/house/househeadedit.vue
index 385e28c..e235b5e 100644
--- a/src/views/modules/house/househeadedit.vue
+++ b/src/views/modules/house/househeadedit.vue
@@ -94,11 +94,14 @@
-
-
+ {{item.dictName}}
-
+ :label="item.dictName"
+ :value="item.dictValue">
+
+
diff --git a/src/views/modules/house/houseresidentInfo-add-or-update.vue b/src/views/modules/house/houseresidentInfo-add-or-update.vue
index b996bd3..89d8896 100644
--- a/src/views/modules/house/houseresidentInfo-add-or-update.vue
+++ b/src/views/modules/house/houseresidentInfo-add-or-update.vue
@@ -43,11 +43,14 @@
-
-
+ {{item.dictName}}
-
+ :label="item.dictName"
+ :value="item.dictValue">
+
+