|
@ -0,0 +1,234 @@
|
|
|
var template = ''
|
|
|
$.ajax('../../../component/statistics/GxbEvaluation/index.html', {
|
|
|
data: {},
|
|
|
dataType: 'html',
|
|
|
cache: false,
|
|
|
timeout: 60000,
|
|
|
async: false,
|
|
|
error: function (res) {},
|
|
|
success: function (res) {
|
|
|
template = res
|
|
|
}
|
|
|
})
|
|
|
|
|
|
Vue.component('gxb-evaluation', {
|
|
|
template: template,
|
|
|
props: [],
|
|
|
data: function () {
|
|
|
return {
|
|
|
years: [],
|
|
|
yearType: '1',
|
|
|
chooseYear: null,
|
|
|
chooseTime: null,
|
|
|
rangeOptions: [
|
|
|
{ label: '区', value: 'town' },
|
|
|
{ label: '医院', value: 'hospital' },
|
|
|
{ label: '团队', value: 'team' }
|
|
|
],
|
|
|
areaOptions: [
|
|
|
{ label: '思明区', value: '350203' },
|
|
|
{ label: '海沧区', value: '350205' },
|
|
|
{ label: '湖里区', value: '350206' },
|
|
|
{ label: '集美区', value: '350211' },
|
|
|
{ label: '同安区', value: '350212' },
|
|
|
{ label: '翔安区', value: '350213' }
|
|
|
],
|
|
|
hospitalOptions: [],
|
|
|
teamOptions: [],
|
|
|
form: {
|
|
|
range: 'town'
|
|
|
},
|
|
|
loading: false,
|
|
|
exportLoading: false,
|
|
|
tableData: [],
|
|
|
tableHeader: [
|
|
|
{ label: '名称', prop: 'name', width: '110' },
|
|
|
{ label: '评估人数', prop: 'totalNum', width: '90' },
|
|
|
{ label: '日常评估人数', prop: 'dailyNum ', width: '110' },
|
|
|
{ label: '住院补筛人数', prop: 'inScreenNum', width: '110' },
|
|
|
{ label: '低危人数', prop: 'lRiskNum', width: '110' },
|
|
|
{ label: '中危人数', prop: 'mRiskNum', width: '110' },
|
|
|
{ label: '高危人数', prop: 'hRiskNum', width: '110' },
|
|
|
{ label: '极高危人数', prop: 'uhRiskNum', width: '110' },
|
|
|
{ label: '超高危人数', prop: 'ehRiskNum', width: '110' },
|
|
|
{ label: '已晒次数', prop: 'totalTimes', width: '110' },
|
|
|
{ label: '低危次数', prop: 'lRiskTimes', width: '110' },
|
|
|
{ label: '中危次数', prop: 'mRiskTimes', width: '110' },
|
|
|
{ label: '高危次数', prop: 'hRiskTimes', width: '110' },
|
|
|
{ label: '极高危次数', prop: 'uhRiskTimes', width: '110' },
|
|
|
{ label: '超高危次数', prop: 'ehRiskTimes', width: '110' },
|
|
|
{ label: '上转人次', prop: 'turnUpNum', width: '110' },
|
|
|
{ label: '社区随访人次', prop: 'hosFollowNum', width: '110' }
|
|
|
],
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
total: 0,
|
|
|
level: 0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
|
// var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
|
var selectedRole = {
|
|
|
doctorAuthOperate: '1',
|
|
|
high: '0',
|
|
|
code: '350205',
|
|
|
level: '3',
|
|
|
name: '海沧区',
|
|
|
isManage: '1',
|
|
|
areas: '350205',
|
|
|
type: '1',
|
|
|
roleType: '2'
|
|
|
}
|
|
|
if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
this.level = 1 // 市卫健委
|
|
|
this.areaOptions = [
|
|
|
{ label: '思明区', value: '350203' },
|
|
|
{ label: '海沧区', value: '350205' },
|
|
|
{ label: '湖里区', value: '350206' },
|
|
|
{ label: '集美区', value: '350211' },
|
|
|
{ label: '同安区', value: '350212' },
|
|
|
{ label: '翔安区', value: '350213' }
|
|
|
]
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
this.level = 2 // 区管理
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
|
this.form = {
|
|
|
range: 'town',
|
|
|
area: selectedRole.code
|
|
|
}
|
|
|
this.getHospital(selectedRole.code)
|
|
|
} else {
|
|
|
this.level = 3 // 社区管理
|
|
|
this.rangeOptions = [
|
|
|
{ label: '医院', value: 'hospital' },
|
|
|
{ label: '团队', value: 'team' }
|
|
|
]
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
|
this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
|
|
|
this.form = {
|
|
|
range: 'hospital',
|
|
|
area: selectedRole.code.substring(0, 6),
|
|
|
hospital: selectedRole.code
|
|
|
}
|
|
|
this.getTeam(selectedRole.code)
|
|
|
}
|
|
|
this.initTime()
|
|
|
this.getList()
|
|
|
},
|
|
|
initTime() {
|
|
|
var vm = this
|
|
|
var now = new Date()
|
|
|
|
|
|
vm.nowyear = vm.chooseYear = now.getFullYear()
|
|
|
vm.years = []
|
|
|
for (i = vm.nowyear; i >= 2013; i--) {
|
|
|
vm.years.push(i)
|
|
|
}
|
|
|
},
|
|
|
resetArea() {
|
|
|
if (this.level == 1) {
|
|
|
delete this.form.area
|
|
|
delete this.form.hospital
|
|
|
delete this.form.team
|
|
|
} else if (this.level == 2) {
|
|
|
delete this.form.hospital
|
|
|
delete this.form.team
|
|
|
} else {
|
|
|
delete this.form.team
|
|
|
}
|
|
|
},
|
|
|
getList() {
|
|
|
var vm = this
|
|
|
this.loading = true
|
|
|
var params = {
|
|
|
...this.form,
|
|
|
page: this.page,
|
|
|
pageSize: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
params.endDate = this.chooseTime[1] + ' 23:59'
|
|
|
}
|
|
|
}
|
|
|
|
|
|
httpRequest.get('statistics/collaborate/gxbScreenInfoStatistics', { data: params }).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.tableData = res.detailModelList
|
|
|
vm.total = res.totalCount
|
|
|
}
|
|
|
vm.loading = false
|
|
|
})
|
|
|
},
|
|
|
queryDate() {
|
|
|
this.page = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
exportTable() {
|
|
|
var vm = this
|
|
|
var params = {
|
|
|
...this.form,
|
|
|
page: this.page,
|
|
|
pageSize: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
params.endDate = this.chooseTime[1] + ' 23:59'
|
|
|
}
|
|
|
}
|
|
|
this.exportLoading = true
|
|
|
var fileName = `冠心病筛查情况统计表${new Date().getTime()}.xls`
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbScreenInfoStatistics', fileName, params).then(function () {
|
|
|
vm.exportLoading = false
|
|
|
})
|
|
|
},
|
|
|
eliminateClick() {
|
|
|
this.resetArea()
|
|
|
this.yearType = '1'
|
|
|
this.chooseYear = new Date().getFullYear()
|
|
|
this.chooseTime = null
|
|
|
},
|
|
|
getHospital(code) {
|
|
|
var vm = this
|
|
|
delete this.form.hospital
|
|
|
delete this.form.team
|
|
|
var params = {
|
|
|
type: 5,
|
|
|
code: code
|
|
|
}
|
|
|
httpRequest.post('common/district', { data: params }).then(function (res) {
|
|
|
vm.hospitalOptions = res.list
|
|
|
})
|
|
|
},
|
|
|
getTeam(code) {
|
|
|
var vm = this
|
|
|
delete this.form.team
|
|
|
var params = {
|
|
|
hospital: code
|
|
|
}
|
|
|
|
|
|
httpRequest.get('statisticsExport/teamList', { data: params }).then(function (res) {
|
|
|
vm.teamOptions = res.data
|
|
|
})
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.page = val
|
|
|
this.getList()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.size = val
|
|
|
this.getList()
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.init()
|
|
|
}
|
|
|
})
|