|
@ -47,15 +47,18 @@ new Vue({
|
|
|
communityCode:"",
|
|
|
teamList:[{code:"",name:"全部"}],
|
|
|
teamCode:"",
|
|
|
data: [{
|
|
|
detailInquire: [{
|
|
|
label: '明细查询',
|
|
|
children: [
|
|
|
{label: '咨询分析', },
|
|
|
{label: '签约分析', },
|
|
|
{label: '专病分析', },
|
|
|
{label: '生日祝福分析', },
|
|
|
{label: '上门服务分析', },
|
|
|
{label: '长处方分析', },
|
|
|
{label: '咨询分析', id:'33'},
|
|
|
{label: '签约分析', id:'34'},
|
|
|
{label: '专病分析', id:'35'},
|
|
|
{label: '生日祝福分析', id:'36'},
|
|
|
{label: '上门服务分析', id:'37'},
|
|
|
{label: '长处方分析', id:'38'},
|
|
|
{label: '体征数据分析', id:'39'},
|
|
|
{label: '上转预约明细', id:'40'},
|
|
|
{label: '微信绑定明细', id:'41'},
|
|
|
]
|
|
|
}],
|
|
|
handleNodeShow:1,
|
|
@ -68,6 +71,7 @@ new Vue({
|
|
|
radio6:'',
|
|
|
radio7:'',
|
|
|
radio8:'',
|
|
|
radio9:'',
|
|
|
cities:[{value:'高血压',num:'4'},
|
|
|
{value:'糖尿病',num:'5'},
|
|
|
{value:'65岁以上人群',num:'3'},
|
|
@ -93,9 +97,6 @@ new Vue({
|
|
|
],
|
|
|
serveSpecialCities:[],
|
|
|
options: [{
|
|
|
value: '请选择',
|
|
|
label: ''
|
|
|
}, {
|
|
|
value: '1',
|
|
|
label: '是'
|
|
|
}, {
|
|
@ -138,6 +139,80 @@ new Vue({
|
|
|
serviceTypeDataType:'',
|
|
|
fullscreenLoading:false,
|
|
|
derive:'',
|
|
|
tabsList:[
|
|
|
{id:'1',text:'综合查询',show:true},
|
|
|
{id:'2',text:'明细查询',show:false},
|
|
|
{id:'3',text:'汇总数据',show:false},
|
|
|
],
|
|
|
tabsId:'1',
|
|
|
facility:'', //体征数据分析 - 设备类型
|
|
|
illness:'', //体征数据分析 - 疾病类型
|
|
|
form6:{
|
|
|
resident:'',
|
|
|
doctor:'',
|
|
|
},
|
|
|
form7:{
|
|
|
resident:'',
|
|
|
doctorOne:'',
|
|
|
hospital:'',
|
|
|
doctorTwo:'',
|
|
|
administrativeOffice:'',
|
|
|
},
|
|
|
getHealthData:[],
|
|
|
form8:{
|
|
|
renew:'',
|
|
|
},
|
|
|
reservationData:[],
|
|
|
wexinBindingData:[],
|
|
|
hospitalData:[],
|
|
|
administrativeOffice:[],
|
|
|
collect:[
|
|
|
{
|
|
|
id: "kfxzrs,kfxzrc,szrs,szrc",
|
|
|
label: "专病汇总",
|
|
|
code:'1',
|
|
|
children:[
|
|
|
{id: "kfxzrs",label:'康复下转人数',code:'1',},
|
|
|
{id: "kfxzrc",label:'康复下转人次',code:'1',},
|
|
|
{id: "szrs",label:'上转人数',code:'1',},
|
|
|
{id: "szrc",label:'上转人数',code:'1',},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: "scsbs,scrc,yctzrc,gyrc",
|
|
|
label: "体征数据汇总",
|
|
|
code:'2',
|
|
|
children:[
|
|
|
{id: "scsbs",label:'上传设备数',code:'2'},
|
|
|
{id: "scrc",label:'上传人次',code:'2'},
|
|
|
{id: "yctzrc",label:'异常体征人次',code:'2'},
|
|
|
{id: "gyrc",label:'干预人次',code:'2'},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: "fwgd",
|
|
|
label: "上门服务汇总",
|
|
|
code:'3',
|
|
|
children:[
|
|
|
{id: "fwgd",label:'服务工单',code:'3'}
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
specHosName:'',
|
|
|
specHosList:[],
|
|
|
collectCode:'',
|
|
|
diseaseReport:[],
|
|
|
diseaseColumn:[],
|
|
|
diseaseHeader:[],
|
|
|
facilitySign:'',
|
|
|
getDeviceReport:[],
|
|
|
getDeviceColumn:[],
|
|
|
getDeviceHeader:[],
|
|
|
getDoorReport:[],
|
|
|
getDoorColumn:[],
|
|
|
getDoorHeader:[],
|
|
|
|
|
|
isCheck: false,
|
|
|
},
|
|
|
components: {
|
|
|
vuedals: Vuedals.Component
|
|
@ -168,10 +243,129 @@ new Vue({
|
|
|
vm.height = document.body.offsetHeight - 85
|
|
|
window.onresize = function () {
|
|
|
vm.height = document.body.offsetHeight - 85
|
|
|
console.log(vm.height)
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
reset:function() {
|
|
|
if(this.tabsId == 1) {
|
|
|
this.getTreeList()
|
|
|
}else{
|
|
|
this.collect = [
|
|
|
{
|
|
|
id: "kfxzrs,kfxzrc,szrs,szrc",
|
|
|
label: "专病汇总",
|
|
|
code:'1',
|
|
|
children:[
|
|
|
{id: "kfxzrs",label:'康复下转人数',code:'1'},
|
|
|
{id: "kfxzrc",label:'康复下转人次',code:'1'},
|
|
|
{id: "szrs",label:'下转人数',code:'1'},
|
|
|
{id: "szrc",label:'下转人数',code:'1'},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: "scsbs,scrc,yctzrc,gyrc",
|
|
|
label: "体征数据汇总",
|
|
|
code:'2',
|
|
|
children:[
|
|
|
{id: "scsbs",label:'上传设备数',code:'2'},
|
|
|
{id: "scrc",label:'上传人次',code:'2'},
|
|
|
{id: "yctzrc",label:'异常体征人次',code:'2'},
|
|
|
{id: "gyrc",label:'干预人次',code:'2'},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: "fwgd",
|
|
|
label: "上门服务汇总",
|
|
|
code:'3',
|
|
|
children:[
|
|
|
{id: "fwgd",label:'服务工单',code:'3'}
|
|
|
],
|
|
|
},
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
// 清除
|
|
|
eliminateClick:function() {
|
|
|
this.radio = '1'
|
|
|
this.radio1 = ''
|
|
|
this.radio2 = ''
|
|
|
this.radio3 = ''
|
|
|
this.radio4 = ''
|
|
|
this.radio5 = ''
|
|
|
this.radio6 = ''
|
|
|
this.radio7 = ''
|
|
|
this.radio8 = ''
|
|
|
this.radio9 = ''
|
|
|
this.form = {
|
|
|
endorseTheTicket:'',
|
|
|
renew:'',
|
|
|
backToSign:'',
|
|
|
WeChat:'',
|
|
|
}
|
|
|
this.form2 = {
|
|
|
juniorCollege:'',
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
}
|
|
|
this.form3 = {
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
}
|
|
|
this.form4 = {
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
}
|
|
|
this.form5 = {
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
}
|
|
|
this.facility = '' //体征数据分析 - 设备类型
|
|
|
this.illness = '' //体征数据分析 - 疾病类型
|
|
|
this.form6 = {
|
|
|
resident:'',
|
|
|
doctor:'',
|
|
|
}
|
|
|
this.form7 = {
|
|
|
resident:'',
|
|
|
doctorOne:'',
|
|
|
hospital:'',
|
|
|
doctorTwo:'',
|
|
|
administrativeOffice:'',
|
|
|
}
|
|
|
this.form8 = {
|
|
|
renew : ''
|
|
|
}
|
|
|
this.facilitySign = ''
|
|
|
initData(this)
|
|
|
// initTime(this)
|
|
|
// initScope(this)
|
|
|
|
|
|
},
|
|
|
tabsClick:function(item) {
|
|
|
var vm = this
|
|
|
vm.tabsId = item.id
|
|
|
vm.tabsList.forEach(function(res){
|
|
|
if(res.id == item.id) {
|
|
|
res.show = true
|
|
|
}else{
|
|
|
res.show = false
|
|
|
}
|
|
|
})
|
|
|
vm.eliminateClick()
|
|
|
},
|
|
|
// 获取汇总数据的专科医院
|
|
|
specHosData:function() {
|
|
|
var vm = this
|
|
|
statisticAPI.getSpecialHospital().then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
res.data.forEach(function(item){
|
|
|
vm.specHosList.push(
|
|
|
{code:item.code,name:item.name}
|
|
|
)
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getDiseaseTypeList:function() {
|
|
|
var vm = this
|
|
|
statisticAPI.getDiseaseTypeList({}).then(function(res){
|
|
@ -197,7 +391,7 @@ new Vue({
|
|
|
},
|
|
|
|
|
|
|
|
|
// 统计分析树形图
|
|
|
// 综合析树形图
|
|
|
treedataClick:function(name,data) {
|
|
|
var vm = this
|
|
|
vm.handleNodeShow = 1
|
|
@ -207,16 +401,54 @@ new Vue({
|
|
|
// initTime(vm)
|
|
|
// initScope(vm)
|
|
|
},
|
|
|
// 点击明细分析树形图
|
|
|
// 汇总树形图
|
|
|
collectClick:function(data,isCheck) {
|
|
|
var vm = this
|
|
|
vm.derive = data.label
|
|
|
vm.handleNodeShow = 3
|
|
|
vm.currentPage = 1
|
|
|
vm.radio = '1' //签约年度 --创建时间
|
|
|
vm.isCheck = isCheck
|
|
|
},
|
|
|
collCheck:function(data,name) {
|
|
|
// console.log(arguments)
|
|
|
var vm = this
|
|
|
vm.collect.forEach(function(item){
|
|
|
item.children.forEach(function(o) {
|
|
|
if(o.code != data.code) {
|
|
|
vm.$refs.collectTree.setChecked(o, false, true)
|
|
|
}
|
|
|
})
|
|
|
if(data.id == item.id) {
|
|
|
vm.$refs.collectTree.setChecked(item, vm.isCheck, true)
|
|
|
} else {
|
|
|
item.children.forEach(function(o) {
|
|
|
if(data.id == o.id) {
|
|
|
vm.$refs.collectTree.setChecked(o, vm.isCheck, true)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
|
|
|
vm.handleNodeId = 'huizongshuju'
|
|
|
vm.collectCode = data.code
|
|
|
if(data.code == 1) {
|
|
|
vm.rangeList=[{name:"按区",code:"town"},{name:"按社区",code:"hospital"},{name:"按团队",code:"team"},{name:"按专科医院",code:"specHos"}]
|
|
|
vm.specHosData()
|
|
|
}else{
|
|
|
vm.rangeList=[{name:"按区",code:"town"},{name:"按社区",code:"hospital"},{name:"按团队",code:"team"}]
|
|
|
}
|
|
|
},
|
|
|
// 点击明细查询树形图
|
|
|
handleNodeClick:function(name,data) {
|
|
|
var vm = this
|
|
|
vm.derive = name.label
|
|
|
if(data.id>=3) { //明细查询以下
|
|
|
if(data.id>=33) { //明细查询以下
|
|
|
vm.handleNodeShow = 2 // 明细查询tabs为2
|
|
|
vm.tableHeader = [] // 选择统计的数组
|
|
|
vm.analyseData = [] // 明细查询数组
|
|
|
}
|
|
|
vm.handleNodeId = data.id //切换后的id
|
|
|
vm.handleNodeId = data.data.id //切换后的id
|
|
|
vm.radio = '1' //签约年度 --创建时间
|
|
|
vm.radio1 = '' //咨询分析咨询状态
|
|
|
vm.radio2 = ''
|
|
@ -258,6 +490,73 @@ new Vue({
|
|
|
|
|
|
vm.analysFunction(vm.handleNodeId) //明细查询列表查询
|
|
|
},
|
|
|
analysFunction:function(id) {
|
|
|
var vm = this
|
|
|
// idcard = idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2") 身份证 医保卡 脱敏显示
|
|
|
|
|
|
if(id == 33) {
|
|
|
// 咨询分析
|
|
|
vm.getConsultList()
|
|
|
}else if(id == 34) {
|
|
|
// 签约分析
|
|
|
vm.getSignList()
|
|
|
}else if(id == 35) {
|
|
|
// 专病分析
|
|
|
vm.getSickList()
|
|
|
}else if(id == 36) {
|
|
|
// 生日祝福分析
|
|
|
vm.getBirthdayPatientList()
|
|
|
}else if(id == 37) {
|
|
|
// 上门服务分析
|
|
|
vm.getDoorServiceList()
|
|
|
}else if(id == 38) {
|
|
|
// 长处方分析
|
|
|
vm.getPrescriptionList()
|
|
|
}else if(id == 39) {
|
|
|
// 体征数据
|
|
|
vm.physicalSignData()
|
|
|
}else if(id == 40) {
|
|
|
// 上转预约
|
|
|
vm.upTransferAppointment()
|
|
|
}else if(id == 41) {
|
|
|
// 微信绑定
|
|
|
vm.wechatBinding()
|
|
|
}
|
|
|
},
|
|
|
// 下转预约获取医生,科室
|
|
|
getReservationHosAndDept:function(data) {
|
|
|
var vm = this
|
|
|
statisticAPI.getReservationHosAndDept({
|
|
|
hospital:data?data:'',
|
|
|
type:data?'2':'',
|
|
|
}).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
if(data) {
|
|
|
vm.administrativeOffice = []
|
|
|
res.data.forEach(function(item){
|
|
|
vm.administrativeOffice.push({
|
|
|
value: item.code,
|
|
|
label: item.name
|
|
|
})
|
|
|
})
|
|
|
}else{
|
|
|
vm.hospitalData = []
|
|
|
res.data.forEach(function(item){
|
|
|
vm.hospitalData.push({
|
|
|
value: item.code,
|
|
|
label: item.name
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
hospitalChange:function(data) {
|
|
|
var vm = this
|
|
|
vm.getReservationHosAndDept(data)
|
|
|
},
|
|
|
|
|
|
|
|
|
// 咨询分析
|
|
|
getConsultList:function() {
|
|
|
var vm = this
|
|
@ -483,34 +782,226 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
analysFunction:function(id) {
|
|
|
//体征数据分析传参
|
|
|
getHealthParameter:function() {
|
|
|
var vm = this
|
|
|
// idcard = idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2") 身份证 医保卡 脱敏显示
|
|
|
|
|
|
if(id == 3) {
|
|
|
// 咨询分析
|
|
|
vm.getConsultList()
|
|
|
}else if(id == 4) {
|
|
|
// 签约分析
|
|
|
vm.getSignList()
|
|
|
}else if(id == 5) {
|
|
|
// 专病分析
|
|
|
vm.getSickList()
|
|
|
}else if(id == 6) {
|
|
|
// 生日祝福分析
|
|
|
vm.getBirthdayPatientList()
|
|
|
}else if(id == 7) {
|
|
|
// 上门服务分析
|
|
|
vm.getDoorServiceList()
|
|
|
}else if(id == 8) {
|
|
|
// 长处方分析
|
|
|
vm.getPrescriptionList()
|
|
|
return {
|
|
|
signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
range :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
name:vm.form6.resident, // 居民姓名
|
|
|
category :vm.facility, //设备类型
|
|
|
doctorName:vm.form6.doctor, //医生姓名
|
|
|
serverType:vm.illness, //签约疾病类型
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
|
|
|
|
|
|
}
|
|
|
},
|
|
|
//体征数据分析
|
|
|
physicalSignData:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getHealthList(vm.getHealthParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
// console.log(res,"体征数据")
|
|
|
vm.getHealthData = res.data.detailModelList
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
if(res.status == -1) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//上转预约传参
|
|
|
reservationParameter:function() {
|
|
|
var vm = this
|
|
|
return {
|
|
|
signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
range :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
name:vm.form7.resident, // 居民姓名
|
|
|
doctorName:vm.form7.doctorOne, //签约医生姓名
|
|
|
reservationHospital:vm.form7.hospital, //签约医院
|
|
|
reservationDept:vm.form7.administrativeOffice, //预约科室
|
|
|
reservationDoctorName:vm.form7.doctorTwo, //预约医生
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
|
|
|
|
|
|
}
|
|
|
},
|
|
|
// 上转预约
|
|
|
upTransferAppointment:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getDoctorReservationList(vm.reservationParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
// console.log(res,"上转预约")
|
|
|
vm.reservationData = res.data.detailModelList
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
vm.getReservationHosAndDept()
|
|
|
}
|
|
|
if(res.status == -1) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//微信绑定传参
|
|
|
wexinBindingParameter:function() {
|
|
|
var vm = this
|
|
|
return {
|
|
|
signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
range :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
binging:vm.form8.renew, //是否绑定微信
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
|
|
|
}
|
|
|
},
|
|
|
// 微信绑定
|
|
|
wechatBinding:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getWexinBindingList(vm.wexinBindingParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
// console.log(res,"微信绑定")
|
|
|
res.data.detailModelList.forEach(function(res){
|
|
|
res.sex = res.sex==1?'男':'女'
|
|
|
res.apply_date = new Date(res.apply_date).format('yyyy-MM-dd HH:mm:ss')
|
|
|
})
|
|
|
vm.wexinBindingData = res.data.detailModelList
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
if(res.status == -1) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//专病汇总传参
|
|
|
getSpecialParameter:function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear:vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team:vm.teamCode, //团队
|
|
|
area:vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.specHosName?vm.specHosName:vm.communityCode, //专病医院
|
|
|
range:vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
startDate:vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate:vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
menu:vm.beforeReq().checked,
|
|
|
// pageSize:vm.currentSize,
|
|
|
// page:vm.currentPage,
|
|
|
}
|
|
|
return parameter
|
|
|
},
|
|
|
// 专病汇总
|
|
|
getSpecialDiseaseReport:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getSpecialDiseaseReport(vm.getSpecialParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.diseaseReport = res.data.list
|
|
|
vm.diseaseColumn = res.data.column
|
|
|
vm.diseaseHeader = res.data.header
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
|
|
|
//体征分析传参
|
|
|
getDeviceParameter:function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear:vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team:vm.teamCode, //团队
|
|
|
area:vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //医院
|
|
|
range:vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
startDate:vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate:vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
category:vm.facilitySign,
|
|
|
menu:vm.beforeReq().checked,
|
|
|
// pageSize:vm.currentSize,
|
|
|
// page:vm.currentPage,
|
|
|
}
|
|
|
return parameter
|
|
|
},
|
|
|
|
|
|
// 体征分析数据
|
|
|
getDeviceHealthReport:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getDeviceHealthReport(vm.getDeviceParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
// console.log(res,"sss")
|
|
|
vm.getDeviceReport = res.data.list
|
|
|
vm.getDeviceColumn = res.data.column
|
|
|
vm.getDeviceHeader = res.data.header
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//上门汇总传参
|
|
|
getDoorParameter:function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear:vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team:vm.teamCode, //团队
|
|
|
area:vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //医院
|
|
|
status:vm.radio9,
|
|
|
range:vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
startDate:vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate:vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
menu:vm.beforeReq().checked,
|
|
|
// pageSize:vm.currentSize,
|
|
|
// page:vm.currentPage,
|
|
|
}
|
|
|
return parameter
|
|
|
},
|
|
|
// 上门汇总
|
|
|
getDoorServerOrderReport:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getDoorServerOrderReport(vm.getDoorParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
// console.log(res,"sss")
|
|
|
vm.getDoorReport = res.data.list
|
|
|
vm.getDoorColumn = res.data.column
|
|
|
vm.getDoorHeader = res.data.header
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
|
|
|
getTreeList:function(){
|
|
|
var vm=this
|
|
|
statisticAPI.exportTreeList({rang:vm.rangeCode}).then(function(res){
|
|
|
if(res.status == 200){
|
|
|
// console.log(res,"Sddd")
|
|
|
vm.treedata = [],jindex=0
|
|
|
_.each(res.data,function(item,index){
|
|
|
vm.treedata.push({
|
|
@ -528,6 +1019,7 @@ new Vue({
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
|
|
|
},
|
|
|
beforeReq:function(flag){
|
|
|
var vm=this,startDate="",endDate="",checked=[]
|
|
@ -564,8 +1056,13 @@ new Vue({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
if(vm.handleNodeId == 0) {
|
|
|
var checkTree = vm.$refs.tree.getCheckedNodes(true);
|
|
|
if(vm.handleNodeId == 0 || vm.handleNodeId == 'huizongshuju') {
|
|
|
var checkTree
|
|
|
if(vm.handleNodeId == 0) {
|
|
|
checkTree = vm.$refs.tree.getCheckedNodes(true);
|
|
|
}else{
|
|
|
checkTree = vm.$refs.collectTree.getCheckedNodes(true);
|
|
|
}
|
|
|
if(checkTree.length){
|
|
|
if(!flag){
|
|
|
vm.tableHeader = []
|
|
@ -590,10 +1087,12 @@ new Vue({
|
|
|
});
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
return {start:startDate,end:endDate,checked:checked.join(",")}
|
|
|
},
|
|
|
// 查询
|
|
|
searchHandle:function(){
|
|
|
// console.log(this.beforeReq())
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
vm.currentPage = 1
|
|
@ -614,24 +1113,42 @@ new Vue({
|
|
|
}
|
|
|
vm.getStatisticDataList()
|
|
|
}
|
|
|
}else if(vm.handleNodeId == 3) {
|
|
|
}else if(vm.handleNodeId == 33) {
|
|
|
// 咨询分析
|
|
|
vm.getConsultList()
|
|
|
}else if(vm.handleNodeId == 4) {
|
|
|
}else if(vm.handleNodeId == 34) {
|
|
|
// 签约分析
|
|
|
vm.getSignList()
|
|
|
}else if(vm.handleNodeId == 5) {
|
|
|
}else if(vm.handleNodeId == 35) {
|
|
|
// 专病分析
|
|
|
vm.getSickList()
|
|
|
}else if(vm.handleNodeId == 6) {
|
|
|
}else if(vm.handleNodeId == 36) {
|
|
|
// 生日祝福分析
|
|
|
vm.getBirthdayPatientList()
|
|
|
}else if(vm.handleNodeId == 7) {
|
|
|
}else if(vm.handleNodeId == 37) {
|
|
|
// 上门服务分析
|
|
|
vm.getDoorServiceList()
|
|
|
}else if(vm.handleNodeId == 8) {
|
|
|
}else if(vm.handleNodeId == 38) {
|
|
|
// 长处方分析
|
|
|
vm.getPrescriptionList()
|
|
|
}else if(vm.handleNodeId == 39) {
|
|
|
// 体征数据
|
|
|
vm.physicalSignData()
|
|
|
}else if(vm.handleNodeId == 40) {
|
|
|
// 上转预约
|
|
|
vm.upTransferAppointment()
|
|
|
}else if(vm.handleNodeId == 41) {
|
|
|
// 微信绑定
|
|
|
vm.wechatBinding()
|
|
|
}else if(vm.collectCode == 1) {
|
|
|
// 专病汇总
|
|
|
vm.getSpecialDiseaseReport()
|
|
|
}else if(vm.collectCode == 2) {
|
|
|
// 体征数据汇总
|
|
|
vm.getDeviceHealthReport()
|
|
|
}else if(vm.collectCode == 3) {
|
|
|
// 上门服务汇总
|
|
|
vm.getDoorServerOrderReport()
|
|
|
}
|
|
|
},
|
|
|
getStatisticDataList:function(){
|
|
@ -697,7 +1214,7 @@ new Vue({
|
|
|
// let str = httpRequest.server + 'statisticsExport/export?startDate='+searchJson.start+'&endDate='+searchJson.end+'"aStr='+searchJson.checked+'&range='+vm.rangeCode+'&area='+areaCode+'&hospital='+vm.communityCode+'&team='+vm.teamCode+'&timeLevel='+vm.timeLevel
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
}else if(vm.handleNodeId == 3) {
|
|
|
}else if(vm.handleNodeId == 33) {
|
|
|
// 咨询分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportConsultList({
|
|
@ -724,9 +1241,9 @@ new Vue({
|
|
|
// var str = httpRequest.server + 'statisticsExport/exportConsultList?year='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
|
|
|
// '&status='+vm.radio1+'&area='+areaCode+'&hospital='+vm.communityCode+'&rang='+vm.rangeCode+'&team='+vm.teamCode
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 4) {
|
|
|
}else if(vm.handleNodeId == 34) {
|
|
|
// 签约分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportSignList({
|
|
@ -745,23 +1262,15 @@ new Vue({
|
|
|
team: vm.teamCode,
|
|
|
},vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
// var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
|
// FileSaver.saveAs(blob, "hello world.txt");
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
// var str = httpRequest.server + 'statisticsExport/exportSignList?year='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
|
|
|
// '&serverType='+vm.serverType+'&status='+vm.radio2+'&isUpdate='+vm.form.endorseTheTicket+'&isAdd='+vm.form.renew+'&isOut='+vm.form.backToSign+'&isBindWX='+vm.form.WeChat+
|
|
|
// '&area='+areaCode+'&hospital='+vm.communityCode+'&rang='+vm.rangeCode+'&team='+vm.teamCode
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 5) {
|
|
|
}else if(vm.handleNodeId == 35) {
|
|
|
// 专病分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportSickList({
|
|
@ -779,22 +1288,15 @@ new Vue({
|
|
|
team: vm.teamCode,
|
|
|
},vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
// var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
|
// FileSaver.saveAs(blob, "hello world.txt");
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
// var str = httpRequest.server + 'statisticsExport/exportSickList?year='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
|
|
|
// '&diseaseType='+vm.diseaseDataType+'&status='+vm.radio3+'&doctorName='+vm.form2.juniorCollege+'&familyDoctorName='+vm.form2.family+'&patientName='+vm.form2.resident+
|
|
|
// '&area='+areaCode+'&hospital='+vm.communityCode+'&rang='+vm.rangeCode+'&team='+vm.teamCode
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 6) {
|
|
|
}else if(vm.handleNodeId == 36) {
|
|
|
// 生日祝福分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportGetBirthdayPatientListExport({
|
|
@ -812,23 +1314,15 @@ new Vue({
|
|
|
page:vm.currentPage,
|
|
|
},vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
// var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
|
// FileSaver.saveAs(blob, "hello world.txt");
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
// var str = httpRequest.server + 'statisticsExport/getBirthdayPatientListExport?signYear='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
|
|
|
// '&patientName='+vm.form5.resident+'&doctorName='+vm.form5.family+'&status='+vm.radio4+
|
|
|
// '&area='+areaCode+'&hospital='+vm.communityCode+'&range='+vm.rangeCode+'&team='+vm.teamCode+'&pageSize=500000'+'&page='+vm.currentPage
|
|
|
// console.log(str,"str生日祝福")
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 7) {
|
|
|
}else if(vm.handleNodeId == 37) {
|
|
|
// 上门服务分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportDoorServiceList({
|
|
@ -847,23 +1341,15 @@ new Vue({
|
|
|
page:vm.currentPage,
|
|
|
},vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
// var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
|
// FileSaver.saveAs(blob, "hello world.txt");
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
// var str = httpRequest.server + 'statisticsExport/exportDoorServiceList?signYear='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
|
|
|
// '&patientName='+vm.form5.resident+'&doctorName='+vm.form5.family+'&status='+vm.radio5+'&type='+vm.serviceTypeDataType+
|
|
|
// '&area='+areaCode+'&hospital='+vm.communityCode+'&range='+vm.rangeCode+'&team='+vm.teamCode+'&pageSize'+vm.currentSize+'&page='+vm.currentPage
|
|
|
// // console.log(str,"str上门服务分析")
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 8) {
|
|
|
}else if(vm.handleNodeId == 38) {
|
|
|
// 长处方分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportPrescriptionList({
|
|
@ -883,22 +1369,96 @@ new Vue({
|
|
|
page:vm.currentPage,
|
|
|
},vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
// var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
|
// FileSaver.saveAs(blob, "hello world.txt");
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
// var str = httpRequest.server + 'statisticsExport/exportPrescriptionList?signYear='+chooseYear+'&startDate='+startDate+'&endDate='+endDate+
|
|
|
// '&patientName='+vm.form5.resident+'&doctorName='+vm.form5.family+'&status='+vm.radio6+'&diagnosisName='+vm.radio7+'&dispensaryType='+vm.radio8+
|
|
|
// '&area='+areaCode+'&hospital='+vm.communityCode+'&range='+vm.rangeCode+'&team='+vm.teamCode+'&pageSize=500000'+'&page='+vm.currentPage
|
|
|
// console.log(str,"str长处方分析")
|
|
|
// window.location.href = str
|
|
|
}
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 39) {
|
|
|
// 体征数据
|
|
|
if(vm.getHealthData.length!=0) {
|
|
|
statisticAPI.exportHealthList(vm.getHealthParameter(),vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 40) {
|
|
|
// 上转预约
|
|
|
if(vm.reservationData.length!=0) {
|
|
|
statisticAPI.exportDoctorReservationList(vm.reservationParameter(),vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.handleNodeId == 41) {
|
|
|
// 微信绑定数据
|
|
|
if(vm.wexinBindingData.length!=0) {
|
|
|
statisticAPI.exportWexinBindingList(vm.wexinBindingParameter(),vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
|
|
|
}else if(vm.collectCode == 1) {
|
|
|
// 专病汇总
|
|
|
if(vm.diseaseReport.length!=0) {
|
|
|
statisticAPI.exportSpecialDiseaseReport(vm.getSpecialParameter(),vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
}else if(vm.collectCode == 2) {
|
|
|
// 体征分析
|
|
|
if(vm.getDeviceReport.length!=0) {
|
|
|
statisticAPI.exportDeviceHealthReport(vm.getDeviceParameter(),vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
}else if(vm.collectCode == 3) {
|
|
|
// 上门汇总
|
|
|
if(vm.getDoorReport.length!=0) {
|
|
|
statisticAPI.exportDoorServerOrderReport(vm.getDoorParameter(),vm.derive+".xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
}
|
|
|
},
|
|
|
backClick:function(){
|
|
@ -924,24 +1484,33 @@ new Vue({
|
|
|
vm.currentPage = val
|
|
|
if(vm.handleNodeId == 0) {
|
|
|
vm.getStatisticDataList()
|
|
|
}else if(vm.handleNodeId == 3) {
|
|
|
}else if(vm.handleNodeId == 33) {
|
|
|
// 咨询分析
|
|
|
vm.getConsultList()
|
|
|
}else if(vm.handleNodeId == 4) {
|
|
|
}else if(vm.handleNodeId == 34) {
|
|
|
// 签约分析
|
|
|
vm.getSignList()
|
|
|
}else if(vm.handleNodeId == 5) {
|
|
|
}else if(vm.handleNodeId == 35) {
|
|
|
// 专病分析
|
|
|
vm.getSickList()
|
|
|
}else if(vm.handleNodeId == 6) {
|
|
|
}else if(vm.handleNodeId == 36) {
|
|
|
// 生日祝福分析
|
|
|
vm.getBirthdayPatientList()
|
|
|
}else if(vm.handleNodeId == 7) {
|
|
|
}else if(vm.handleNodeId == 37) {
|
|
|
// 上门服务分析
|
|
|
vm.getDoorServiceList()
|
|
|
}else if(vm.handleNodeId == 8) {
|
|
|
}else if(vm.handleNodeId == 38) {
|
|
|
// 长处方分析
|
|
|
vm.getPrescriptionList()
|
|
|
}else if(vm.handleNodeId == 39) {
|
|
|
// 体征数据
|
|
|
vm.physicalSignData()
|
|
|
}else if(vm.handleNodeId == 40) {
|
|
|
// 上转预约
|
|
|
vm.upTransferAppointment()
|
|
|
}else if(vm.handleNodeId == 41) {
|
|
|
// 微信绑定
|
|
|
vm.wechatBinding()
|
|
|
}
|
|
|
},
|
|
|
//获取省市区 type:区3
|