|
@ -20,6 +20,7 @@ Vue.component('gxb-manage', {
|
|
yearType: '1',
|
|
yearType: '1',
|
|
chooseYear: null,
|
|
chooseYear: null,
|
|
chooseTime: null,
|
|
chooseTime: null,
|
|
|
|
dialogExportLoading: false,
|
|
rangeOptions: [
|
|
rangeOptions: [
|
|
{ label: '区', value: 'town' },
|
|
{ label: '区', value: 'town' },
|
|
{ label: '社区', value: 'hospital' },
|
|
{ label: '社区', value: 'hospital' },
|
|
@ -50,32 +51,287 @@ Vue.component('gxb-manage', {
|
|
{ label: '评估已登记随访', prop: 'followUpNum', width: '110' }
|
|
{ label: '评估已登记随访', prop: 'followUpNum', width: '110' }
|
|
// { label: '随访已达标', prop: 'standardNum', width: '110' }
|
|
// { label: '随访已达标', prop: 'standardNum', width: '110' }
|
|
],
|
|
],
|
|
|
|
tableHeader: [],
|
|
|
|
loadingTwo: false,
|
|
mzTableHeader: [
|
|
mzTableHeader: [
|
|
{ label: '姓名', prop: 'totalNum', width: '90' },
|
|
|
|
{ label: '性别', prop: 'turnUpNum', width: '90' },
|
|
|
|
{ label: '年龄', prop: 'totalNum', width: '90' },
|
|
|
|
{ label: '手机号', prop: 'turnUpNum', width: '90' },
|
|
|
|
{ label: '证件号码', prop: 'totalNum', width: '90' },
|
|
|
|
{ label: '社区医院', prop: 'turnUpNum', width: '90' },
|
|
|
|
{ label: '签约医生', prop: 'totalNum', width: '90' },
|
|
|
|
{ label: '最近一次上传时间', prop: 'turnUpNum', width: '90' },
|
|
|
|
{ label: '最近一次上转科室', prop: 'totalNum', width: '90' },
|
|
|
|
{ label: '最近一次门诊下转时间', prop: 'totalNum', width: '90' },
|
|
|
|
{ label: '最近一次门诊下转诊断', prop: 'totalNum', width: '90' }
|
|
|
|
|
|
{ label: '姓名', prop: 'name', width: '90' },
|
|
|
|
{ label: '性别', prop: 'sex', width: '90' },
|
|
|
|
{ label: '年龄', prop: 'age', width: '90' },
|
|
|
|
{ label: '手机号', prop: 'mobile', width: '90' },
|
|
|
|
{ label: '证件号码', prop: 'idcard', width: '90' },
|
|
|
|
{ label: '社区医院', prop: 'signHospitalName', width: '90' },
|
|
|
|
{ label: '签约医生', prop: 'signDoctorName', width: '90' },
|
|
|
|
{ label: '最近一次上传时间', prop: 'czrq', width: '90' },
|
|
|
|
{ label: '最近一次上转科室', prop: 'deptName', width: '90' },
|
|
|
|
{ label: '最近一次门诊下转时间', prop: 'createTime', width: '90' },
|
|
|
|
{ label: '最近一次门诊下转诊断', prop: 'diagnosisName', width: '90' }
|
|
],
|
|
],
|
|
|
|
turnDownTableHeader: [
|
|
|
|
{ label: '姓名', prop: 'name', width: '90' },
|
|
|
|
{ label: '性别', prop: 'sex', width: '90' },
|
|
|
|
{ label: '年龄', prop: 'age', width: '90' },
|
|
|
|
{ label: '手机号', prop: 'mobile', width: '90' },
|
|
|
|
{ label: '最近一次下转医院', prop: 'hospitalName', width: '90' },
|
|
|
|
{ label: '最近一次下转医生', prop: 'hospitalDoctor', width: '90' },
|
|
|
|
{ label: '最近一次下转时间', prop: 'zyCreateTime', width: '90' },
|
|
|
|
{ label: '出院下转次数', prop: 'turnDownTimes', width: '90' },
|
|
|
|
{ label: '康复计划数量', prop: 'rehabilitationTimes', width: '90' }
|
|
|
|
],
|
|
|
|
totalNumTableHeader: [
|
|
|
|
{ label: '姓名', prop: 'name' },
|
|
|
|
{ label: '性别', prop: 'sex' },
|
|
|
|
{ label: '年龄', prop: 'age' },
|
|
|
|
{ label: '评估结果', prop: 'screenResult' },
|
|
|
|
{ label: '评估医生', prop: 'doctorName' },
|
|
|
|
{ label: '评估时间', prop: 'czrq' },
|
|
|
|
{ label: '手机号', prop: 'mobile' },
|
|
|
|
{ label: '证件号码', prop: 'idcard' },
|
|
|
|
{ label: '签约社区', prop: 'signHospitalName' },
|
|
|
|
{ label: '签约医生', prop: 'signDoctorName' }
|
|
|
|
],
|
|
|
|
turnUpNumTableHeader: [
|
|
|
|
{ label: '姓名', prop: 'name' },
|
|
|
|
{ label: '性别', prop: 'sex' },
|
|
|
|
{ label: '年龄', prop: 'age' },
|
|
|
|
{ label: '社区医院', prop: 'signHospitalName' },
|
|
|
|
{ label: '签约医生', prop: 'signDoctorName' },
|
|
|
|
{ label: '手机号', prop: 'mobile' },
|
|
|
|
{ label: '证件号码', prop: 'idcard' },
|
|
|
|
{ label: '预约医院', prop: 'orgName' },
|
|
|
|
{ label: '预约医生', prop: 'dName' },
|
|
|
|
{ label: '预约科室', prop: 'deptName' },
|
|
|
|
{ label: '预约时间', prop: 'orderTime' },
|
|
|
|
{ label: '数据来源', prop: 'sourceType' }
|
|
|
|
],
|
|
|
|
dialogTableHeader: [],
|
|
page: 1,
|
|
page: 1,
|
|
size: 10,
|
|
size: 10,
|
|
total: 0,
|
|
total: 0,
|
|
level: 0,
|
|
level: 0,
|
|
mzDialogVisible: true,
|
|
|
|
mzForm: {
|
|
|
|
|
|
mzDialogVisible: false,
|
|
|
|
query: {
|
|
sex: ''
|
|
sex: ''
|
|
}
|
|
|
|
|
|
},
|
|
|
|
dataInfo: [],
|
|
|
|
title: '',
|
|
|
|
dataRangeOption: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
gotoDetail(row, column) {
|
|
gotoDetail(row, column) {
|
|
console.log(row, 'lllllllllllllllllllllllll', column)
|
|
|
|
|
|
var vm = this
|
|
|
|
this.query = { sex: '' }
|
|
|
|
switch (column) {
|
|
|
|
case 'mzNum':
|
|
|
|
vm.dialogTableHeader = vm.mzTableHeader
|
|
|
|
this.title = '上转转门诊明细'
|
|
|
|
break
|
|
|
|
case 'zyNum':
|
|
|
|
vm.dialogTableHeader = vm.mzTableHeader
|
|
|
|
this.title = '门诊转住院明细'
|
|
|
|
break
|
|
|
|
case 'turnDownNum':
|
|
|
|
vm.dialogTableHeader = vm.turnDownTableHeader
|
|
|
|
this.title = '下转管理明细'
|
|
|
|
break
|
|
|
|
case 'totalNum':
|
|
|
|
this.query = { sex: '', screenResultCode: '' }
|
|
|
|
vm.dialogTableHeader = vm.totalNumTableHeader
|
|
|
|
this.title = '个案数据列表'
|
|
|
|
break
|
|
|
|
case 'turnUpNum':
|
|
|
|
vm.dialogTableHeader = vm.turnUpNumTableHeader
|
|
|
|
this.title = '上转预约明细列表'
|
|
|
|
break
|
|
|
|
}
|
|
|
|
var len = row.code.length
|
|
|
|
if (len == 6) {
|
|
|
|
this.query.range = 'town'
|
|
|
|
this.query.area = row.code
|
|
|
|
} else if (len == 10) {
|
|
|
|
this.query.range = 'hospital'
|
|
|
|
this.query.hospital = row.code
|
|
|
|
} else {
|
|
|
|
this.query.range = 'team'
|
|
|
|
this.query.team = row.code
|
|
|
|
}
|
|
|
|
this.dataRangeOption = [{ label: row.name, value: row.code }]
|
|
|
|
if (column == 'mzNum' || column == 'zyNum') {
|
|
|
|
this.mzDialogVisible = true
|
|
|
|
this.turnUpToMzDetailPage()
|
|
|
|
} else if (column == 'turnDownNum') {
|
|
|
|
this.mzDialogVisible = true
|
|
|
|
this.turnDownManageDetailPage()
|
|
|
|
} else if (column == 'totalNum') {
|
|
|
|
this.mzDialogVisible = true
|
|
|
|
this.gxbCaseDataPage()
|
|
|
|
} else if (column == 'turnUpNum') {
|
|
|
|
this.mzDialogVisible = true
|
|
|
|
this.gxbTurnUpInfoPage()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
gxbTurnUpInfoPage() {
|
|
|
|
var vm = this
|
|
|
|
this.loadingTwo = true
|
|
|
|
var params = JSON.parse(JSON.stringify(this.query))
|
|
|
|
params.page = this.page
|
|
|
|
params.pageSize = this.size
|
|
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
httpRequest.get('statistics/collaborate/gxbTurnUpInfoPage', { data: params }).then(function (res) {
|
|
|
|
if (res.status == 200) {
|
|
|
|
vm.dataInfo = res.detailModelList
|
|
|
|
vm.total = res.totalCount
|
|
|
|
}
|
|
|
|
vm.loadingTwo = false
|
|
|
|
})
|
|
|
|
},
|
|
|
|
gxbCaseDataPage() {
|
|
|
|
var vm = this
|
|
|
|
this.loadingTwo = true
|
|
|
|
var params = JSON.parse(JSON.stringify(this.query))
|
|
|
|
params.page = this.page
|
|
|
|
params.pageSize = this.size
|
|
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
httpRequest.get('statistics/collaborate/gxbCaseDataPage', { data: params }).then(function (res) {
|
|
|
|
if (res.status == 200) {
|
|
|
|
vm.dataInfo = res.detailModelList
|
|
|
|
vm.total = res.totalCount
|
|
|
|
}
|
|
|
|
vm.loadingTwo = false
|
|
|
|
})
|
|
|
|
},
|
|
|
|
turnDownManageDetailPage() {
|
|
|
|
var vm = this
|
|
|
|
this.loadingTwo = true
|
|
|
|
var url = ''
|
|
|
|
var params = JSON.parse(JSON.stringify(this.query))
|
|
|
|
params.page = this.page
|
|
|
|
params.pageSize = this.size
|
|
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
httpRequest.get('statistics/collaborate/turnDownManageDetailPage', { data: params }).then(function (res) {
|
|
|
|
if (res.status == 200) {
|
|
|
|
vm.dataInfo = res.detailModelList
|
|
|
|
vm.total = res.totalCount
|
|
|
|
}
|
|
|
|
vm.loadingTwo = false
|
|
|
|
})
|
|
|
|
},
|
|
|
|
|
|
|
|
turnUpToMzDetailPage() {
|
|
|
|
var vm = this
|
|
|
|
this.loadingTwo = true
|
|
|
|
var params = JSON.parse(JSON.stringify(this.query))
|
|
|
|
params.page = this.page
|
|
|
|
params.pageSize = this.size
|
|
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
httpRequest.get('statistics/collaborate/turnUpToMzDetailPage', { data: params }).then(function (res) {
|
|
|
|
if (res.status == 200) {
|
|
|
|
vm.dataInfo = res.detailModelList
|
|
|
|
vm.total = res.totalCount
|
|
|
|
}
|
|
|
|
vm.loadingTwo = false
|
|
|
|
})
|
|
|
|
},
|
|
|
|
closeDialog() {
|
|
|
|
this.mzDialogVisible = false
|
|
|
|
},
|
|
|
|
dialogSearchFn() {
|
|
|
|
this.page = 1
|
|
|
|
if (this.title == '上转转门诊明细' || this.title == '门诊转住院明细') {
|
|
|
|
this.turnUpToMzDetailPage()
|
|
|
|
}
|
|
|
|
},
|
|
|
|
dialogExportFn() {
|
|
|
|
this.dialogExportLoading = true
|
|
|
|
var vm = this
|
|
|
|
var params = {
|
|
|
|
...this.query
|
|
|
|
}
|
|
|
|
if (this.yearType == '1') {
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
|
} else {
|
|
|
|
if (this.chooseTime) {
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.title == '上转转门诊明细') {
|
|
|
|
var fileName = `上转转门诊明细${new Date().getTime()}.xls`
|
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportTurnUpToMzDetailPage', fileName, params).then(function () {
|
|
|
|
vm.dialogExportLoading = false
|
|
|
|
})
|
|
|
|
} else if (this.title == '门诊转住院明细') {
|
|
|
|
var fileName = `门诊转住院明细${new Date().getTime()}.xls`
|
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportMzToInHopistalDetailPage', fileName, params).then(function () {
|
|
|
|
vm.dialogExportLoading = false
|
|
|
|
})
|
|
|
|
} else if (this.title == '个案数据列表') {
|
|
|
|
var fileName = `个案数据列表${new Date().getTime()}.xls`
|
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbCaseDataPage', fileName, params).then(function () {
|
|
|
|
vm.dialogExportLoading = false
|
|
|
|
})
|
|
|
|
} else if (this.title == '上转预约明细列表') {
|
|
|
|
var fileName = `上转预约明细列表${new Date().getTime()}.xls`
|
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbTurnUpInfoPage', fileName, params).then(function () {
|
|
|
|
vm.dialogExportLoading = false
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|
dialogReset() {
|
|
|
|
var params = {
|
|
|
|
...this.query
|
|
|
|
}
|
|
|
|
if (this.title == '个案数据列表') {
|
|
|
|
this.query = {
|
|
|
|
sex: '',
|
|
|
|
screenResultCode: '',
|
|
|
|
range: params.range,
|
|
|
|
area: params.area,
|
|
|
|
hospital: params.hospital,
|
|
|
|
team: params.team
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
this.query = {
|
|
|
|
sex: '',
|
|
|
|
range: params.range,
|
|
|
|
area: params.area,
|
|
|
|
hospital: params.hospital,
|
|
|
|
team: params.team
|
|
|
|
}
|
|
|
|
}
|
|
},
|
|
},
|
|
init() {
|
|
init() {
|
|
var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
@ -222,9 +478,7 @@ Vue.component('gxb-manage', {
|
|
exportTable() {
|
|
exportTable() {
|
|
var vm = this
|
|
var vm = this
|
|
var params = {
|
|
var params = {
|
|
...this.form,
|
|
|
|
page: this.page,
|
|
|
|
pageSize: this.size
|
|
|
|
|
|
...this.form
|
|
}
|
|
}
|
|
if (this.yearType == '1') {
|
|
if (this.yearType == '1') {
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
params.startDate = this.chooseYear + '-01-01'
|