|
|
@ -280,19 +280,19 @@ |
|
|
|
import mixinViewModule from '@/mixins/view-module' |
|
|
|
import AddOrUpdate from './epidemicreportuserinfo-add-or-update' |
|
|
|
import InfoDetail from './epidemicreportuserinfoDetail' |
|
|
|
import qs from "qs"; |
|
|
|
import Cookies from "js-cookie"; |
|
|
|
import qs from 'qs' |
|
|
|
import Cookies from 'js-cookie' |
|
|
|
export default { |
|
|
|
mixins: [mixinViewModule], |
|
|
|
data () { |
|
|
|
return { |
|
|
|
mixinViewModuleOptions: { |
|
|
|
getDataListURL: '/sys/epidemicuserinfo/page', |
|
|
|
getDataListURL: 'sys/epidemicuserinfo/page', |
|
|
|
getDataListIsPage: true, |
|
|
|
deleteURL: '/sys/epidemicuserinfo', |
|
|
|
deleteURL: 'sys/epidemicuserinfo', |
|
|
|
deleteIsBatch: true, |
|
|
|
exportURL: '/sys/epidemicuserinfo/export', |
|
|
|
exportErrorInfoURL: '/sys/epidemicusererror/export' |
|
|
|
exportURL: 'sys/epidemicuserinfo/export', |
|
|
|
exportErrorInfoURL: 'sys/epidemicusererror/export' |
|
|
|
}, |
|
|
|
dataForm: { |
|
|
|
id: '', |
|
|
@ -335,20 +335,20 @@ export default { |
|
|
|
{ dictValue: 2, dictName: '在外地' } |
|
|
|
], |
|
|
|
inoculateStateArr: [ |
|
|
|
{dictValue: '0', dictName: '未接种'}, |
|
|
|
{dictValue: '10', dictName: '接种中'}, |
|
|
|
{dictValue: '11', dictName: '接种完成'}, |
|
|
|
{dictValue: '1', dictName: '第一针'}, |
|
|
|
{dictValue: '2', dictName: '第二针'} |
|
|
|
{ dictValue: '0', dictName: '未接种' }, |
|
|
|
{ dictValue: '10', dictName: '接种中' }, |
|
|
|
{ dictValue: '11', dictName: '接种完成' }, |
|
|
|
{ dictValue: '1', dictName: '第一针' }, |
|
|
|
{ dictValue: '2', dictName: '第二针' } |
|
|
|
], |
|
|
|
ageStateArr: [ |
|
|
|
{dictValue: '0', dictName: '0-18岁'}, |
|
|
|
{dictValue: '1', dictName: '19-19岁'}, |
|
|
|
{dictValue: '2', dictName: '20-29岁'}, |
|
|
|
{dictValue: '3', dictName: '30-39岁'}, |
|
|
|
{dictValue: '4', dictName: '40-49岁'}, |
|
|
|
{dictValue: '5', dictName: '50-59岁'}, |
|
|
|
{dictValue: '6', dictName: '60岁以上'} |
|
|
|
{ dictValue: '0', dictName: '0-18岁' }, |
|
|
|
{ dictValue: '1', dictName: '19-19岁' }, |
|
|
|
{ dictValue: '2', dictName: '20-29岁' }, |
|
|
|
{ dictValue: '3', dictName: '30-39岁' }, |
|
|
|
{ dictValue: '4', dictName: '40-49岁' }, |
|
|
|
{ dictValue: '5', dictName: '50-59岁' }, |
|
|
|
{ dictValue: '6', dictName: '60岁以上' } |
|
|
|
], |
|
|
|
companyStateArr: [], |
|
|
|
exportTemplate: false, |
|
|
@ -402,13 +402,13 @@ export default { |
|
|
|
}, |
|
|
|
// 获取乡镇下拉信息(传参:4代表查“街道”) |
|
|
|
getDailyTypeArrInfo () { |
|
|
|
this.$http.get(`/sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => { |
|
|
|
this.$http.get(`sys/epidemicreportuserinfo/selectStreet/4`).then(({ data: res }) => { |
|
|
|
this.outStreetArr = res |
|
|
|
}).catch(() => { }) |
|
|
|
}, |
|
|
|
getcompantyOptions () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/vaccinecompany/getCompantyList`) |
|
|
|
.get(`sys/vaccinecompany/getCompantyList`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -428,7 +428,7 @@ export default { |
|
|
|
}, |
|
|
|
getOptions () { |
|
|
|
this.$http |
|
|
|
.get(`/sys/select/getSysArea`) |
|
|
|
.get(`sys/select/getSysArea`) |
|
|
|
.then(({ data: res }) => { |
|
|
|
if (res.code !== 0) { |
|
|
|
return this.$message.error(res.msg) |
|
|
@ -475,13 +475,13 @@ export default { |
|
|
|
this.$message({ |
|
|
|
type: 'success', |
|
|
|
message: '下载成功' |
|
|
|
}); |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消下载' |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg) |
|
|
|
} |
|
|
@ -507,14 +507,14 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
showRegistFormat (row, column) { |
|
|
|
if (row.isInoculate == 0) { |
|
|
|
if (row.isInoculate === 0) { |
|
|
|
return '否' |
|
|
|
} else { |
|
|
|
return '是' |
|
|
|
} |
|
|
|
}, |
|
|
|
returnriskGradeFormat (row, column) { |
|
|
|
//1:低风险,2:中风险,3:高风险 |
|
|
|
// 1:低风险,2:中风险,3:高风险 |
|
|
|
if (row.riskGrade === 1 || row.riskGrade === '1') { |
|
|
|
return '低风险' |
|
|
|
} else if (row.returnState === 2 || row.returnState === '2') { |
|
|
@ -525,9 +525,9 @@ export default { |
|
|
|
return '' |
|
|
|
} |
|
|
|
}, |
|
|
|
//打开导出弹框 |
|
|
|
// 打开导出弹框 |
|
|
|
exports () { |
|
|
|
this.dialogVisibleExcel = true; |
|
|
|
this.dialogVisibleExcel = true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|