|
@ -23,6 +23,9 @@ new Vue({
|
|
|
chooseYear: '',
|
|
|
userRole: '',
|
|
|
treedata: [],
|
|
|
treedataExpert:[
|
|
|
{label: '邀请专科回复统计', id:'1'},
|
|
|
],
|
|
|
tableHeader:[],
|
|
|
defaultProps: {
|
|
|
children: 'children',
|
|
@ -62,6 +65,7 @@ new Vue({
|
|
|
{label: '居民积分明细', id:'42'},
|
|
|
{label: '入户访视明细', id:'43'},
|
|
|
{label: '康复下转明细', id:'44'},
|
|
|
{label: '邀请专科回复明细', id:'45'},
|
|
|
]
|
|
|
}],
|
|
|
handleNodeShow:1,
|
|
@ -147,6 +151,7 @@ new Vue({
|
|
|
{id:'1',text:'综合查询',show:true},
|
|
|
{id:'2',text:'明细查询',show:false},
|
|
|
{id:'3',text:'汇总数据',show:false},
|
|
|
{id:'4',text:'专科综合查询',show:false},
|
|
|
],
|
|
|
tabsId:'1',
|
|
|
facility:'', //体征数据分析 - 设备类型
|
|
@ -179,6 +184,13 @@ new Vue({
|
|
|
doctor:'',
|
|
|
archiveStatus:'',
|
|
|
},
|
|
|
form12:{
|
|
|
patientName:'',
|
|
|
status:'',
|
|
|
doctor:'',
|
|
|
hospital:'',
|
|
|
archiveStatus:'',
|
|
|
},
|
|
|
getHealthData:[],
|
|
|
form8:{
|
|
|
renew:'',
|
|
@ -239,12 +251,23 @@ new Vue({
|
|
|
deorsumvergence:[{value:'',label:'全部'}],
|
|
|
rehabilitationHospital:[{value:'',label:'全部'}],
|
|
|
archiveList:[{value:'',label:'全部'}],
|
|
|
inviteStatus:[
|
|
|
{value:'',label:'全部'},
|
|
|
{value:'0',label:'待回复'},
|
|
|
{value:'1',label:'进行中'},
|
|
|
{value:'2',label:'已完成'},
|
|
|
{value:'3',label:'未回复'},
|
|
|
],
|
|
|
recoveryList:[],
|
|
|
dialogVisible:false,
|
|
|
signatoryList:[],
|
|
|
tableKey:'',
|
|
|
indicator:[],
|
|
|
communityHospitals:[],
|
|
|
invitationList:[],
|
|
|
expertFamilyIdType:'',
|
|
|
expertReplyData:[],
|
|
|
specializedHospital:[{value:'',label:'全部'}],
|
|
|
},
|
|
|
components: {
|
|
|
vuedals: Vuedals.Component
|
|
@ -307,6 +330,30 @@ new Vue({
|
|
|
)
|
|
|
])
|
|
|
},
|
|
|
renderHeadeRexpert(h, item) {
|
|
|
var index = item.$index
|
|
|
return [
|
|
|
index=='3'?'邀请次数':index=='4'?'进行中':index=='5'?'已回复':'未回复',
|
|
|
h(
|
|
|
'el-tooltip',
|
|
|
{
|
|
|
props: {
|
|
|
content: (function() {
|
|
|
return index=='3'?`发起邀请总次数`:index==''?`其中咨询未完成,包含待回复和进行中`:index=='5'?`其中医生已回复且咨询已结束的`:`其中咨询已结束医生未回复的`
|
|
|
})(),
|
|
|
placement: 'top'
|
|
|
}
|
|
|
},
|
|
|
[
|
|
|
h('span', {
|
|
|
class: {
|
|
|
'el-icon-question': true
|
|
|
}
|
|
|
})
|
|
|
]
|
|
|
)
|
|
|
]
|
|
|
},
|
|
|
// 获取康复下转明细 --- 下转状态
|
|
|
deorsumvergenceStatusFunction:function(name) {
|
|
|
var vm = this
|
|
@ -428,7 +475,7 @@ new Vue({
|
|
|
},
|
|
|
// 清除
|
|
|
eliminateClick:function() {
|
|
|
this.radio = this.handleNodeId==44?'2':'1'
|
|
|
this.radio = this.handleNodeId==44||this.expertFamilyIdType == 'zhuanke1' || this.handleNodeId==45?'2':'1'
|
|
|
this.radio1 = ''
|
|
|
this.radio2 = ''
|
|
|
this.radio3 = ''
|
|
@ -496,6 +543,13 @@ new Vue({
|
|
|
doctor:'',
|
|
|
archiveStatus:'',
|
|
|
}
|
|
|
this.form12 = {
|
|
|
patientName:'',
|
|
|
status:'',
|
|
|
doctor:'',
|
|
|
hospital:'',
|
|
|
archiveStatus:'',
|
|
|
},
|
|
|
initData(this)
|
|
|
// initTime(this)
|
|
|
// initScope(this)
|
|
@ -504,6 +558,9 @@ new Vue({
|
|
|
tabsClick:function(item) {
|
|
|
var vm = this
|
|
|
vm.tabsId = item.id
|
|
|
if(item.id != 4) {
|
|
|
vm.expertFamilyIdType = ''
|
|
|
}
|
|
|
vm.tabsList.forEach(function(res){
|
|
|
if(res.id == item.id) {
|
|
|
res.show = true
|
|
@ -602,7 +659,7 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 点击明细查询树形图
|
|
|
handleNodeClick:function(item) {
|
|
|
handleNodeClick:function(item,type) {
|
|
|
var vm = this
|
|
|
vm.handleNodeId = 0
|
|
|
vm.derive = item.label
|
|
@ -685,10 +742,53 @@ new Vue({
|
|
|
initTime(vm) //时间初始化
|
|
|
initScope(vm) //数据范围初始化
|
|
|
vm.currentPage = 1
|
|
|
|
|
|
vm.analysFunction(vm.handleNodeId) //明细查询列表查询
|
|
|
if(type == 'zhuanke') {
|
|
|
vm.handleNodeShow = 4
|
|
|
vm.radio = '2'
|
|
|
vm.expertFamilyIdType = 'zhuanke'+item.id
|
|
|
vm.expertFamily(item.id)
|
|
|
}else{
|
|
|
vm.analysFunction(vm.handleNodeId) //明细查询列表查询
|
|
|
}
|
|
|
|
|
|
},
|
|
|
expertFamily:function(id) {
|
|
|
var vm = this
|
|
|
if(id == '1') {
|
|
|
vm.expertReplyList()
|
|
|
}
|
|
|
},
|
|
|
// 邀请专科回复统计传参
|
|
|
expertReply:function() {
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
return {
|
|
|
// signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350205'?'':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:'', //结束时间
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}
|
|
|
},
|
|
|
// 邀请专科回复统计列表
|
|
|
expertReplyList:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.consultHelpCountPage(vm.expertReply()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
vm.expertReplyData = res.detailModelList
|
|
|
vm.datatotal = res.totalCount
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
analysFunction:function(id) {
|
|
|
var vm = this
|
|
|
// idcard = idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2") 身份证 医保卡 脱敏显示
|
|
@ -1152,6 +1252,52 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
//邀请专科回复明细传参
|
|
|
invitationDetailsParameter:function() {
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
var parameter = {
|
|
|
patientName:vm.form12.patientName,
|
|
|
name:'',
|
|
|
status:vm.form12.status,
|
|
|
startTime:vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endTime:vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
specialistName:vm.form12.doctor, //专科医生姓名
|
|
|
specialistHospital:vm.form12.hospital, //专科医院code
|
|
|
specialistDeptName:vm.form12.archiveStatus, //专科科室名称
|
|
|
team:vm.teamCode,
|
|
|
area:vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
range:vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
hospital:'', //医院
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}
|
|
|
return parameter
|
|
|
},
|
|
|
//邀请专科回复明细列表
|
|
|
invitationDetails:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.consultHelpDetailPage(vm.invitationDetailsParameter()).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
res.detailModelList.forEach(function(v){
|
|
|
v.sex = v.sex==1?'男':'女'
|
|
|
})
|
|
|
vm.invitationList = res.detailModelList
|
|
|
vm.datatotal = res.totalCount
|
|
|
}else{
|
|
|
vm.loadingTwo = false
|
|
|
vm.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 康复下转明细传参
|
|
|
recoveryParameter:function() {
|
|
|
var vm = this
|
|
@ -1331,7 +1477,7 @@ new Vue({
|
|
|
var vm=this
|
|
|
statisticAPI.exportTreeList({rang:vm.rangeCode}).then(function(res){
|
|
|
if(res.status == 200){
|
|
|
// console.log(res,"Sddd")
|
|
|
console.log(res,"Sddd")
|
|
|
vm.treedata = [],jindex=0
|
|
|
_.each(res.data,function(item,index){
|
|
|
vm.treedata.push({
|
|
@ -1762,6 +1908,19 @@ new Vue({
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
}else if(vm.handleNodeId == 45) {
|
|
|
// 邀请专科回复明细导出
|
|
|
if(vm.invitationList.length!=0) {
|
|
|
statisticAPI.exportConsultHelpDetailPage(vm.invitationDetailsParameter(),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) {
|
|
@ -1801,6 +1960,18 @@ new Vue({
|
|
|
})
|
|
|
|
|
|
}else{vm.fullscreenLoading = false}
|
|
|
}else if(vm.expertFamilyIdType == 'zhuanke1') {
|
|
|
// 邀请专科回复统计导出
|
|
|
if(vm.expertReplyData.length!=0) {
|
|
|
statisticAPI.exportConsultHelpCountPage(vm.expertReply(),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(){
|
|
@ -1863,8 +2034,31 @@ new Vue({
|
|
|
if(!status) {
|
|
|
vm.pullDown()
|
|
|
}
|
|
|
}else if(id == 45) {
|
|
|
vm.radio = '2'
|
|
|
vm.invitationDetails()
|
|
|
if(!status) {
|
|
|
vm.getSpecialistHospital() //获取专科医院
|
|
|
}
|
|
|
}else if(vm.expertFamilyIdType == 'zhuanke1') {
|
|
|
vm.expertReplyList()
|
|
|
}
|
|
|
},
|
|
|
getSpecialistHospital:function() {
|
|
|
var vm = this
|
|
|
vm.specializedHospital = [{value:'',label:'全部'}]
|
|
|
homeAPI.getSpecialistHospital().then(function(res){
|
|
|
console.log(res,"Sdddddd")
|
|
|
if(res.status == 200) {
|
|
|
res.data.forEach(function(v){
|
|
|
vm.specializedHospital.push({
|
|
|
value:v.code,
|
|
|
label:v.name,
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
pullDown:function() {
|
|
|
this.deorsumvergenceStatusFunction('archive_status') //档案状态
|
|
|
this.deorsumvergenceStatusFunction('rehabilitation_status') //下转状态
|