From df5d1a674d63ce4d705b26f62c8446c714fbdb55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B2=E6=A0=91=E9=80=9A?= <1976590620@qq.com> Date: Wed, 27 Apr 2022 10:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epidemic/epidemicreportuserinfo.vue | 727 ++++++++++++------ 1 file changed, 485 insertions(+), 242 deletions(-) diff --git a/src/views/modules/epidemic/epidemicreportuserinfo.vue b/src/views/modules/epidemic/epidemicreportuserinfo.vue index 20eae8e..96c5f2d 100644 --- a/src/views/modules/epidemic/epidemicreportuserinfo.vue +++ b/src/views/modules/epidemic/epidemicreportuserinfo.vue @@ -5,7 +5,8 @@ - + - - + - - - + + + - - - +
- 未接种:从未接种过疫苗
- 接种中:接种过疫苗,但没有完成全程接种
- 接种完成:已经完成全程接种
- 接种过:有过接种疫苗记录,包括接种中和接种完成记录
- 第一针:没有完成全程接种,只接种过第一针
- 第二针:没有完成全程接种,接种过第一针和第二针
+ 未接种:从未接种过疫苗
+ 接种中:接种过疫苗,但没有完成全程接种
+ 接种完成:已经完成全程接种
+ 接种过:有过接种疫苗记录,包括接种中和接种完成记录
+ 第一针:没有完成全程接种,只接种过第一针
+ 第二针:没有完成全程接种,接种过第一针和第二针
- - - + + + @@ -103,41 +123,103 @@ maxlength="500" style="width:200px"> - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - - + + - - + + + prop="startBirthdayTime" + label-width="120px"> - - - + + + - - - + + + - - - + + + - - + + - - - + + + - - + + - - + + - - + + - - - + + + - - + + - - + + - - + + - - - + + + - - + + - - + + - - + + - - + + + prop="startCheckTime" + label-width="120px"> - - + + - - - + + + - - - + + + @@ -277,18 +488,23 @@ @click="addOrUpdateHandle()">{{ $t('add') }} - {{ $t('export') }} - 重置核酸检测状态 + 重置核酸检测状态 - - {{ $t('deleteBatch') }} - + + {{ $t('deleteBatch') }} + - + - 导入 + 导入 @@ -306,30 +523,39 @@ :limit="1" :on-success='uploadSuccess' :on-error='errorExceed'> - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{scope.row.vaccinationState === 2 ? '接种完成' : scope.row.vaccinationState === 0 ? '未接种' : '第'+scope.row.vaccinationNum+'针'}} --> - 未接种 - 第 {{scope.row.vaccinationNum}} 针 - 接种完成 + 未接种 + 第 {{scope.row.vaccinationNum}} 针 + 接种完成 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -521,19 +755,28 @@ 取 消 - +
验证码将下发到 {{this.checkMobile}} ,请注意查收。 - - {{this.buttonName}} + + {{this.buttonName}}
- + 取 消 - 确 定 + 确 定
@@ -569,9 +812,9 @@ export default { streetId: '', communityId: '', gridId: '', - haveDept:'', - startBirthdayTime:'', - endBirthdayTime:'', + haveDept: '', + startBirthdayTime: '', + endBirthdayTime: '', startCheckTime: '', endCheckTime: '' }, @@ -608,15 +851,15 @@ export default { } }, haveDeptList: [ - {dictValue: '1', dictName: '有'}, - {dictValue: '2', dictName: '无'}, + { dictValue: '1', dictName: '有' }, + { dictValue: '2', dictName: '无' }, ], faultDataVisible: false, - errordataList:[], + errordataList: [], uploadUrl: '', checkStateList: [ - {dictValue: '0', dictName: '已检测'}, - {dictValue: '1', dictName: '未检测'}, + { dictValue: '0', dictName: '已检测' }, + { dictValue: '1', dictName: '未检测' }, ], deptIdList: [], deptIdListUpload: [], @@ -644,10 +887,10 @@ export default { options: [], standardOfCultureArr: [], maritalStatusArr: [], - healthArr:[], + healthArr: [], politicsStatusArr: [], workStatusArr: [], - familyCategoryArr:[], + familyCategoryArr: [], peopleCategoriesArr: [], inoculateStateArr: [ { dictValue: '0', dictName: '未接种' }, @@ -658,7 +901,7 @@ export default { { dictValue: '2', dictName: '第二针' } ], genderArr: [], - helpStatusArr:[], + helpStatusArr: [], companyStateArr: [], exportTemplate: false, uploeadLoeading: false, @@ -709,17 +952,17 @@ export default { } }, 'deptIdListUpload': function (val) { - if (val.length > 0){ - this.gridIdImport = val[val.length - 1] - this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/custom/epidemicuserinfo/importExcel?token= + if (val.length > 0) { + this.gridIdImport = val[val.length - 1] + this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/custom/epidemicuserinfo/importExcel?token= ${Cookies.get('token')}&gridId=` + val[val.length - 1] - }else{ - this.gridIdImport = '' - } + } else { + this.gridIdImport = '' + } } }, methods: { - resetState(){ + resetState () { this.$confirm('此操作将重置所有人员的核酸检测状态为未检测, 是否继续?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -729,7 +972,7 @@ export default { lock: true, fullscreen: true, text: '操作中请稍后', - background:'rgba(0, 0, 0, 0.8)' + background: 'rgba(0, 0, 0, 0.8)' }); this.$http['post']('/custom/epidemicuserinfo/resetUserCheckState').then(({ data: res }) => { @@ -756,22 +999,22 @@ export default { this.faultDataVisible = false this.getDataList() }, - // 导出错误数据 - exportError(){ - var params = qs.stringify({ - // 'token': window.localStorage.getItem('token'), - 'token': Cookies.get('token'), - ...this.dataForm - }) - window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportErrorInfoURL}?${params}` - this.$message({ - type: 'success', - message: '下载成功' - }); - }, + // 导出错误数据 + exportError () { + var params = qs.stringify({ + // 'token': window.localStorage.getItem('token'), + 'token': Cookies.get('token'), + ...this.dataForm + }) + window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportErrorInfoURL}?${params}` + this.$message({ + type: 'success', + message: '下载成功' + }); + }, beforeImportUser () { //所属组织全都不选,直接上传 - if (this.gridIdImport === ''){ + if (this.gridIdImport === '') { document.getElementById('importBut').click() return false } @@ -790,7 +1033,7 @@ export default { type: 'warning' }).then(() => { document.getElementById('importBut').click() - }).catch(() => {}) + }).catch(() => { }) }, beforeGetDataListSearch () { if (this.companyArr.length > 0) { @@ -849,14 +1092,14 @@ export default { }, getOptions () { this.$http - .get(`/sys/user/deptOptions/getByLoginUser`) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.options = res.data.options - }) - .catch(() => { }) + .get(`/sys/user/deptOptions/getByLoginUser`) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.options = res.data.options + }) + .catch(() => { }) this.$http.get(`/sys/dict/listSimple/politics_status`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) @@ -875,18 +1118,18 @@ export default { } this.specialCrowdList = res.data }).catch(() => { }) - this.$http.get(`/sys/dict/listSimple/education_level`).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.standardOfCultureArr = res.data - }).catch(() => { }) - this.$http.get(`/sys/dict/listSimple/marital_status`).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.maritalStatusArr = res.data - }).catch(() => { }) + this.$http.get(`/sys/dict/listSimple/education_level`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.standardOfCultureArr = res.data + }).catch(() => { }) + this.$http.get(`/sys/dict/listSimple/marital_status`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.maritalStatusArr = res.data + }).catch(() => { }) this.$http.get(`/sys/dict/listSimple/body_status`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) @@ -1037,7 +1280,7 @@ export default { return this.$message.error(res.msg + '手机号格式错误!') } // 手机号****处理 - this.checkMobile = res.msg.replace(res.msg.substring(3,7), '****') + this.checkMobile = res.msg.replace(res.msg.substring(3, 7), '****') this.dialogVisibleSMS = true } if (res.code === 0) {