diff --git a/src/views/modules/epidemic/epidemicuserinfoaudit-add-or-update.vue b/src/views/modules/epidemic/epidemicuserinfoaudit-add-or-update.vue
index f3ec283..d9f2929 100644
--- a/src/views/modules/epidemic/epidemicuserinfoaudit-add-or-update.vue
+++ b/src/views/modules/epidemic/epidemicuserinfoaudit-add-or-update.vue
@@ -36,6 +36,9 @@
+
+
+
@@ -113,6 +116,12 @@
+
+
+
+
+
+
@@ -227,8 +236,25 @@ export default {
...this.dataForm,
...res.data
}
+ this.dataForm.birthday = this.IdCard(this.dataForm.idCard, 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'
+ }
+ }
+ },
beforeSubmit (state) {
if (state === '2') {
if(this.dataForm.auditReason.length === 0){