|
@ -68,38 +68,28 @@ new Vue({
|
|
|
radio6:'',
|
|
|
radio7:'',
|
|
|
radio8:'',
|
|
|
cities:[{value:'高血压',num:'1'},
|
|
|
{value:'糖尿病',num:'2'},
|
|
|
cities:[{value:'高血压',num:'4'},
|
|
|
{value:'糖尿病',num:'5'},
|
|
|
{value:'65岁以上人群',num:'3'},
|
|
|
{value:'0-6岁小孩',num:'4'},
|
|
|
{value:'计划生育家庭',num:'5'},
|
|
|
{value:'严重精神障碍',num:'6'},
|
|
|
{value:'残疾人',num:'7'},
|
|
|
{value:'普通人群',num:'8'},
|
|
|
{value:'结核病',num:'9'},
|
|
|
{value:'低保人群',num:'10'},
|
|
|
{value:'孕产妇',num:'11'},
|
|
|
{value:'0-6岁小孩',num:'7'},
|
|
|
{value:'计划生育家庭',num:'9'},
|
|
|
{value:'严重精神障碍',num:'10'},
|
|
|
{value:'残疾人',num:'11'},
|
|
|
{value:'普通人群',num:'1'},
|
|
|
{value:'结核病',num:'12'},
|
|
|
{value:'低保人群',num:'8'},
|
|
|
{value:'孕产妇',num:'6'},
|
|
|
],
|
|
|
checkedCities: [],
|
|
|
specialCities:[{value:'冠心病',num:'1'},
|
|
|
{value:'慢性前列腺',num:'2'},
|
|
|
{value:'脑卒中',num:'3'},
|
|
|
{value:'慢性乳腺疾病',num:'4'},
|
|
|
{value:'慢性阻塞性肺病',num:'5'},
|
|
|
{value:'慢性肝病',num:'6'},
|
|
|
{value:'肺癌',num:'7'},
|
|
|
{value:'慢性肾病',num:'8'},
|
|
|
{value:'慢性胃肠病',num:'9'},
|
|
|
{value:'慢性妇科炎症',num:'10'},
|
|
|
],
|
|
|
specialCities:[],
|
|
|
specialCheckedCities:[],
|
|
|
serveCities:[{value:'残疾人',num:'1'},
|
|
|
{value:'失能/半失能老人',num:'2'},
|
|
|
{value:'80岁以上老人',num:'3'},
|
|
|
{value:'肺结核患者',num:'4'},
|
|
|
{value:'计生特殊家庭',num:'5'},
|
|
|
{value:'重性精神病',num:'6'},
|
|
|
{value:'其他',num:'7'},
|
|
|
{value:'失能/半失能老人',num:'5'},
|
|
|
{value:'80岁以上老人',num:'7'},
|
|
|
{value:'肺结核患者',num:'2'},
|
|
|
{value:'计生特殊家庭',num:'3'},
|
|
|
{value:'重性精神病',num:'4'},
|
|
|
{value:'其他',num:'6'},
|
|
|
],
|
|
|
serveSpecialCities:[],
|
|
|
options: [{
|
|
@ -140,6 +130,14 @@ new Vue({
|
|
|
diseaseData:[],
|
|
|
serviceTypeData:[],
|
|
|
analyseData:[], //分析数据
|
|
|
searchJsonTime:undefined,
|
|
|
loadingTwo:false,
|
|
|
radio1Show:null,
|
|
|
serverType:'',
|
|
|
diseaseDataType:'',
|
|
|
serviceTypeDataType:'',
|
|
|
fullscreenLoading:false,
|
|
|
derive:'',
|
|
|
},
|
|
|
components: {
|
|
|
vuedals: Vuedals.Component
|
|
@ -166,6 +164,7 @@ new Vue({
|
|
|
var vm=this
|
|
|
//初始化数据
|
|
|
initData(vm);
|
|
|
vm.getDiseaseTypeList()
|
|
|
vm.height = document.body.offsetHeight - 85
|
|
|
window.onresize = function () {
|
|
|
vm.height = document.body.offsetHeight - 85
|
|
@ -173,6 +172,14 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
getDiseaseTypeList:function() {
|
|
|
var vm = this
|
|
|
statisticAPI.getDiseaseTypeList({}).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
vm.specialCities = res.list
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 签约人群
|
|
|
handleCheckedCitiesChange:function(value) {
|
|
|
var vm = this
|
|
@ -188,46 +195,292 @@ new Vue({
|
|
|
var vm = this
|
|
|
vm.serviceTypeData = value
|
|
|
},
|
|
|
|
|
|
|
|
|
// 统计分析树形图
|
|
|
treedataClick:function(name,data) {
|
|
|
var vm = this
|
|
|
vm.handleNodeShow = 1
|
|
|
vm.handleNodeId = 0
|
|
|
vm.radio = '1'
|
|
|
vm.currentPage = 1
|
|
|
vm.radio = '1' //签约年度 --创建时间
|
|
|
// initTime(vm)
|
|
|
// initScope(vm)
|
|
|
},
|
|
|
// 点击明细分析树形图
|
|
|
handleNodeClick:function(name,data) {
|
|
|
var vm = this
|
|
|
if(data.id>=3) {
|
|
|
vm.handleNodeShow = 2
|
|
|
vm.tableHeader = []
|
|
|
vm.analyseData = []
|
|
|
vm.derive = name.label
|
|
|
if(data.id>=3) { //明细查询以下
|
|
|
vm.handleNodeShow = 2 // 明细查询tabs为2
|
|
|
vm.tableHeader = [] // 选择统计的数组
|
|
|
vm.analyseData = [] // 明细查询数组
|
|
|
}
|
|
|
vm.handleNodeId = data.id //切换后的id
|
|
|
vm.radio = '1' //签约年度 --创建时间
|
|
|
vm.radio1 = '' //咨询分析咨询状态
|
|
|
vm.radio2 = ''
|
|
|
vm.radio3 = ''
|
|
|
vm.radio4 = ''
|
|
|
vm.radio5 = ''
|
|
|
vm.radio6 = ''
|
|
|
vm.radio7 = ''
|
|
|
vm.radio8 = ''
|
|
|
vm.checkedCities = [] //签约人群清空
|
|
|
vm.specialCheckedCities = [] //下转病种清空
|
|
|
vm.serveSpecialCities = [] //服务类型清空
|
|
|
vm.form = {
|
|
|
endorseTheTicket:'',
|
|
|
renew:'',
|
|
|
backToSign:'',
|
|
|
WeChat:'',
|
|
|
}
|
|
|
vm.handleNodeId = data.id
|
|
|
vm.radio = '1'
|
|
|
initTime(vm)
|
|
|
initScope(vm)
|
|
|
vm.analysFunction(vm.handleNodeId)
|
|
|
vm.form2 = {
|
|
|
juniorCollege:'',
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
}
|
|
|
vm.form3 = {
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
},
|
|
|
vm.form4 = {
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
},
|
|
|
vm.form5 = {
|
|
|
family:'',
|
|
|
resident:'',
|
|
|
},
|
|
|
initTime(vm) //时间初始化
|
|
|
initScope(vm) //数据范围初始化
|
|
|
vm.currentPage = 1
|
|
|
|
|
|
vm.analysFunction(vm.handleNodeId) //明细查询列表查询
|
|
|
},
|
|
|
// 咨询分析
|
|
|
getConsultList:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getConsultList({
|
|
|
year :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
status :vm.radio1, //咨询状态,1已回复,0未回复,2未及时回复
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
rang :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}).then(function(res){
|
|
|
console.log(res,"咨询分析")
|
|
|
if(res.status == 200) {
|
|
|
vm.analyseData = res.data.list
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 签约分析
|
|
|
getSignList:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
var handleDataList = []
|
|
|
vm.serverType = ''
|
|
|
vm.handleData.forEach(function(res){
|
|
|
handleDataList.push(res.num)
|
|
|
})
|
|
|
vm.serverType = handleDataList.join(',')
|
|
|
statisticAPI.getSignList({
|
|
|
year :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
serverType:vm.serverType, //签约人群
|
|
|
status :vm.radio2, //签约状态,1已签约,0待审核,2代缴费
|
|
|
isUpdate:vm.form.endorseTheTicket, //是否改签 1是0否
|
|
|
isAdd:vm.form.renew, //是否续签 1是0否
|
|
|
isOut:vm.form.backToSign, //是否退签 1是0否
|
|
|
isBindWX:vm.form.WeChat, //是否绑定微信 1是0否
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
rang :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}).then(function(res){
|
|
|
console.log(res,"签约分析")
|
|
|
if(res.status == 200) {
|
|
|
res.data.list.forEach(function(item){
|
|
|
item.sscNum = item.sscNum.replace(/^(.{4})(?:\d+)(.{1})$/,"$1****$2")
|
|
|
item.idcardNum = item.idcardNum.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
|
|
|
})
|
|
|
vm.analyseData = res.data.list
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 专病分析
|
|
|
getSickList:function() {
|
|
|
var vm = this
|
|
|
// vm.diseaseData
|
|
|
vm.loadingTwo = true
|
|
|
var handleDataList = []
|
|
|
vm.diseaseDataType = ''
|
|
|
vm.diseaseData.forEach(function(res){
|
|
|
handleDataList.push(res.code)
|
|
|
})
|
|
|
vm.diseaseDataType = handleDataList.join(',')
|
|
|
statisticAPI.getSickList({
|
|
|
year :vm.radio=='1'?vm.chooseYear:'', //年度
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
diseaseType:vm.diseaseDataType, //病种类型
|
|
|
status :vm.radio3, //下转状态,1已接受,0未接受,2未管理
|
|
|
doctorName:vm.form2.juniorCollege, //专科医生
|
|
|
familyDoctorName:vm.form2.family, //家庭医生名字
|
|
|
patientName:vm.form2.resident, // 居民姓名
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
rang :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}).then(function(res){
|
|
|
console.log(res,"专病分析")
|
|
|
if(res.status == 200) {
|
|
|
res.data.list.forEach(function(item){
|
|
|
item.sscNum = item.sscNum.replace(/^(.{4})(?:\d+)(.{1})$/,"$1****$2")
|
|
|
item.idcardNum = item.idcardNum.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
|
|
|
})
|
|
|
vm.analyseData = res.data.list
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 生日祝福分析明细
|
|
|
getBirthdayPatientList:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getBirthdayPatientList({
|
|
|
patientName:vm.form3.resident, // 居民姓名
|
|
|
doctorName:vm.form3.family, //医生姓名
|
|
|
signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
status :vm.radio4, //状态(不传为全部,1、已发送,2、未发送)
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
range :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
console.log(res,"Sddddd")
|
|
|
res.data.detailModelList.forEach(function(item){
|
|
|
item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/,"$1****$2")
|
|
|
item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
|
|
|
})
|
|
|
vm.analyseData = res.data.detailModelList
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 长处方分析明细
|
|
|
getPrescriptionList:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getPrescriptionList({
|
|
|
patientName:vm.form5.resident, // 居民姓名
|
|
|
doctorName :vm.form5.family, //医生姓名
|
|
|
signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
status :vm.radio6, //续方状态 0待审核 20药师审核中 40待支付 100已完成 999其他
|
|
|
diagnosis :vm.radio7, //续方疾病类型1高血压2糖尿病3其他
|
|
|
dispensaryType :vm.radio8, // 取药方式1自取2快递3健管师配送
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
range :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
res.data.detailModelList.forEach(function(item){
|
|
|
console.log(item.finish_time,"长处方分析")
|
|
|
item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/,"$1****$2")
|
|
|
item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
|
|
|
})
|
|
|
vm.analyseData = res.data.detailModelList
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 上门服务分析明细
|
|
|
getDoorServiceList:function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
var handleDataList = []
|
|
|
vm.serviceTypeDataType = ''
|
|
|
vm.serviceTypeData.forEach(function(res){
|
|
|
handleDataList.push(res.num)
|
|
|
})
|
|
|
vm.serviceTypeDataType = handleDataList.join(',')
|
|
|
statisticAPI.getDoorServiceList({
|
|
|
patientName:vm.form4.resident, // 居民姓名
|
|
|
doctorName :vm.form4.family, //医生姓名
|
|
|
signYear :vm.radio=='1'?vm.chooseYear:'', //签约年度
|
|
|
startDate :vm.radio=='2'?vm.searchJsonTime.start:'', //开始时间
|
|
|
endDate :vm.radio=='2'?vm.searchJsonTime.end:'', //结束时间
|
|
|
status :vm.radio5, //工单状态 -1已取消,1待派单、2待接单、3已接单、4待服务、5待评价
|
|
|
type :vm.serviceTypeDataType, //服务类型 1残疾人,2肺结核患者,3计生特殊家庭,4重性精神病,5失能/半失能老人,6其他,7 80岁以上老人
|
|
|
team :vm.teamCode, //团队
|
|
|
area :vm.areaCode=='350200'?'':vm.areaCode, //地区
|
|
|
hospital :vm.communityCode, //社区
|
|
|
range :vm.rangeCode, //数据范围(town区传值area,hospital医院传值hospital,team团队传值team)
|
|
|
pageSize:vm.currentSize,
|
|
|
page:vm.currentPage,
|
|
|
}).then(function(res){
|
|
|
if(res.status == 200) {
|
|
|
console.log(res,"上门服务分析明细")
|
|
|
res.data.detailModelList.forEach(function(item){
|
|
|
item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/,"$1****$2")
|
|
|
item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
|
|
|
})
|
|
|
vm.analyseData = res.data.detailModelList
|
|
|
vm.datatotal = res.data.total
|
|
|
vm.loadingTwo = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
analysFunction:function(id) {
|
|
|
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()
|
|
|
}
|
|
|
},
|
|
|
getTreeList:function(){
|
|
@ -255,8 +508,16 @@ new Vue({
|
|
|
beforeReq:function(flag){
|
|
|
var vm=this,startDate="",endDate="",checked=[]
|
|
|
if(vm.radio=="1"){
|
|
|
startDate = getStartDate(vm.chooseYear-1)
|
|
|
endDate = getEndDate(vm.chooseYear)
|
|
|
if(vm.chooseYear == 2022) {
|
|
|
startDate = '2022-07-01'
|
|
|
endDate = getEndDate(vm.chooseYear)
|
|
|
}else if(vm.chooseYear > 2022) {
|
|
|
startDate = vm.chooseYear + '-01-01'
|
|
|
endDate = getEndDate(vm.chooseYear)
|
|
|
}else{
|
|
|
startDate = getStartDate(vm.chooseYear)
|
|
|
endDate = getEndDate(vm.chooseYear)
|
|
|
}
|
|
|
vm.timeLevel = 2
|
|
|
}else{
|
|
|
if(!vm.start&&!vm.end){
|
|
@ -309,16 +570,16 @@ new Vue({
|
|
|
},
|
|
|
// 查询
|
|
|
searchHandle:function(){
|
|
|
var vm = this,searchJson=undefined
|
|
|
console.log("before-pass")
|
|
|
searchJson = vm.beforeReq()
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
vm.currentPage = 1
|
|
|
if(this.radio1 == 1) {this.radio1Show = true}else{this.radio1Show = false}
|
|
|
if(vm.handleNodeId == 0) {
|
|
|
if(searchJson){
|
|
|
vm.currentPage = 1
|
|
|
if(vm.searchJsonTime){
|
|
|
vm.searchJson = {
|
|
|
startDate:searchJson.start,
|
|
|
endDate:searchJson.end,
|
|
|
quotaStr:searchJson.checked,
|
|
|
startDate:vm.searchJsonTime.start,
|
|
|
endDate:vm.searchJsonTime.end,
|
|
|
quotaStr:vm.searchJsonTime.checked,
|
|
|
range:vm.rangeCode,
|
|
|
team:vm.teamCode,
|
|
|
hospital:vm.communityCode,
|
|
@ -327,103 +588,26 @@ new Vue({
|
|
|
page:vm.currentPage,
|
|
|
timeLevel: vm.timeLevel
|
|
|
}
|
|
|
console.log(vm.searchJson,"vm.searchJson")
|
|
|
vm.getStatisticDataList()
|
|
|
}
|
|
|
}else if(vm.handleNodeId == 3) {
|
|
|
// 咨询分析
|
|
|
var par = {
|
|
|
'开始时间':searchJson.start,
|
|
|
'结束时间':searchJson.end,
|
|
|
'咨询状态':vm.radio1,
|
|
|
'数据范围':vm.rangeCode,
|
|
|
'地区':vm.areaCode=="350200"?"":vm.areaCode,
|
|
|
'社区':vm.communityCode,
|
|
|
'团队':vm.teamCode,
|
|
|
}
|
|
|
console.log(par,'查询')
|
|
|
|
|
|
vm.getConsultList()
|
|
|
}else if(vm.handleNodeId == 4) {
|
|
|
// 签约分析
|
|
|
var par = {
|
|
|
'开始时间':searchJson.start,
|
|
|
'结束时间':searchJson.end,
|
|
|
'咨询状态':vm.radio2,
|
|
|
'签约人群':vm.handleData,
|
|
|
"是否改签":vm.form.endorseTheTicket,
|
|
|
"是否续签":vm.form.renew,
|
|
|
"是否退签":vm.form.backToSign,
|
|
|
"绑定微信":vm.form.WeChat,
|
|
|
'数据范围':vm.rangeCode,
|
|
|
'地区':vm.areaCode=="350200"?"":vm.areaCode,
|
|
|
'社区':vm.communityCode,
|
|
|
'团队':vm.teamCode,
|
|
|
}
|
|
|
console.log(vm.handleData,"签约人群多选")
|
|
|
console.log(par,'查询')
|
|
|
vm.getSignList()
|
|
|
}else if(vm.handleNodeId == 5) {
|
|
|
// 专病分析
|
|
|
var par = {
|
|
|
'开始时间':searchJson.start,
|
|
|
'结束时间':searchJson.end,
|
|
|
'下转状态':vm.radio3,
|
|
|
'下转病种':vm.diseaseData,
|
|
|
"专科医生":vm.form2.juniorCollege,
|
|
|
"家庭医生":vm.form2.family,
|
|
|
"居民姓名":vm.form2.resident,
|
|
|
'数据范围':vm.rangeCode,
|
|
|
'地区':vm.areaCode=="350200"?"":vm.areaCode,
|
|
|
'社区':vm.communityCode,
|
|
|
'团队':vm.teamCode,
|
|
|
}
|
|
|
console.log(vm.diseaseData,"下转病种多选")
|
|
|
console.log(par,'查询')
|
|
|
vm.getSickList()
|
|
|
}else if(vm.handleNodeId == 6) {
|
|
|
// 生日祝福分析
|
|
|
var par = {
|
|
|
'开始时间':searchJson.start,
|
|
|
'结束时间':searchJson.end,
|
|
|
'发送状态':vm.radio4,
|
|
|
"家庭医生":vm.form3.family,
|
|
|
"居民姓名":vm.form3.resident,
|
|
|
'数据范围':vm.rangeCode,
|
|
|
'地区':vm.areaCode=="350200"?"":vm.areaCode,
|
|
|
'社区':vm.communityCode,
|
|
|
'团队':vm.teamCode,
|
|
|
}
|
|
|
console.log(par,'查询')
|
|
|
vm.getBirthdayPatientList()
|
|
|
}else if(vm.handleNodeId == 7) {
|
|
|
// 上门服务分析
|
|
|
var par = {
|
|
|
'开始时间':searchJson.start,
|
|
|
'结束时间':searchJson.end,
|
|
|
'工单状态':vm.radio5,
|
|
|
'服务类型':vm.serviceTypeData,
|
|
|
"家庭医生":vm.form4.family,
|
|
|
"居民姓名":vm.form4.resident,
|
|
|
'数据范围':vm.rangeCode,
|
|
|
'地区':vm.areaCode=="350200"?"":vm.areaCode,
|
|
|
'社区':vm.communityCode,
|
|
|
'团队':vm.teamCode,
|
|
|
}
|
|
|
console.log(vm.serviceTypeData,"服务类型多选")
|
|
|
console.log(par,'查询')
|
|
|
vm.getDoorServiceList()
|
|
|
}else if(vm.handleNodeId == 8) {
|
|
|
// 长处方分析
|
|
|
var par = {
|
|
|
'开始时间':searchJson.start,
|
|
|
'结束时间':searchJson.end,
|
|
|
'续方状态':vm.radio6,
|
|
|
'疾病类型':vm.radio7,
|
|
|
'取药方式':vm.radio8,
|
|
|
"家庭医生":vm.form5.family,
|
|
|
"居民姓名":vm.form5.resident,
|
|
|
'数据范围':vm.rangeCode,
|
|
|
'地区':vm.areaCode=="350200"?"":vm.areaCode,
|
|
|
'社区':vm.communityCode,
|
|
|
'团队':vm.teamCode,
|
|
|
}
|
|
|
console.log(par,'查询')
|
|
|
vm.getPrescriptionList()
|
|
|
}
|
|
|
},
|
|
|
getStatisticDataList:function(){
|
|
@ -450,33 +634,234 @@ new Vue({
|
|
|
},
|
|
|
// 导出
|
|
|
exportHandle:function(){
|
|
|
// var uid = JSON.parse(window.localStorage.getItem('wlyyAgentForDoc')).uid
|
|
|
// var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
|
|
|
// saveAs(blob, "hello world.txt");
|
|
|
// return
|
|
|
var vm =this
|
|
|
var vm = this,searchJson=undefined
|
|
|
vm.fullscreenLoading = true
|
|
|
searchJson = vm.beforeReq('export')
|
|
|
var areaCode = vm.areaCode=="350200"?"":vm.areaCode
|
|
|
var chooseYear = vm.radio=='1'?vm.chooseYear:'' //年份
|
|
|
var startDate = vm.radio=='2'?vm.searchJsonTime.start:''
|
|
|
var endDate = vm.radio=='2'?vm.searchJsonTime.end:''
|
|
|
if(vm.handleNodeId == 0) {
|
|
|
if(searchJson){
|
|
|
var areaCode = vm.areaCode=="350200"?"":vm.areaCode
|
|
|
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
|
|
|
console.log(str)
|
|
|
window.location.href = str
|
|
|
statisticAPI.statisticsExportExport({
|
|
|
startDate: searchJson.start,
|
|
|
endDate: searchJson.end,
|
|
|
quotaStr: searchJson.checked,
|
|
|
range: vm.rangeCode,
|
|
|
area: areaCode,
|
|
|
hospital: vm.communityCode,
|
|
|
team: vm.teamCode,
|
|
|
timeLevel: vm.timeLevel,
|
|
|
}, "综合查询.xls").then(function(res){
|
|
|
vm.fullscreenLoading = false
|
|
|
// toastr.info("导出成功")
|
|
|
|
|
|
// var blob = new Blob(["Hello, world!"]);
|
|
|
// FileSaver.saveAs(blob, "hello world.txt");
|
|
|
|
|
|
// console.log(res)
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function(err){
|
|
|
console.error(err)
|
|
|
})
|
|
|
// 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) {
|
|
|
// 咨询分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportConsultList({
|
|
|
year: chooseYear,
|
|
|
startDate: startDate,
|
|
|
endDate: endDate,
|
|
|
status: vm.radio1,
|
|
|
area: areaCode,
|
|
|
hospital: vm.communityCode,
|
|
|
rang:vm.rangeCode,
|
|
|
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){
|
|
|
console.error(err)
|
|
|
})
|
|
|
|
|
|
// 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 if(vm.handleNodeId == 4) {
|
|
|
// 签约分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportSignList({
|
|
|
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,
|
|
|
},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){
|
|
|
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 if(vm.handleNodeId == 5) {
|
|
|
// 专病分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportSickList({
|
|
|
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,
|
|
|
},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){
|
|
|
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 if(vm.handleNodeId == 6) {
|
|
|
// 生日祝福分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportGetBirthdayPatientListExport({
|
|
|
signYear: chooseYear,
|
|
|
startDate: startDate,
|
|
|
endDate: endDate,
|
|
|
patientName:vm.form3.resident,
|
|
|
doctorName:vm.form3.family,
|
|
|
status:vm.radio4,
|
|
|
area: areaCode,
|
|
|
hospital: vm.communityCode,
|
|
|
range:vm.rangeCode,
|
|
|
team: vm.teamCode,
|
|
|
pageSize:'50000',
|
|
|
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){
|
|
|
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 if(vm.handleNodeId == 7) {
|
|
|
// 上门服务分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportDoorServiceList({
|
|
|
signYear: chooseYear,
|
|
|
startDate: startDate,
|
|
|
endDate: endDate,
|
|
|
patientName:vm.form4.resident,
|
|
|
doctorName:vm.form4.family,
|
|
|
status:vm.radio5,
|
|
|
type:vm.serviceTypeDataType,
|
|
|
area: areaCode,
|
|
|
hospital: vm.communityCode,
|
|
|
range:vm.rangeCode,
|
|
|
team: vm.teamCode,
|
|
|
pageSize:vm.currentSize,
|
|
|
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){
|
|
|
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 if(vm.handleNodeId == 8) {
|
|
|
// 长处方分析
|
|
|
// 长处方分析
|
|
|
if(vm.analyseData.length!=0) {
|
|
|
statisticAPI.statisticsExportExportPrescriptionList({
|
|
|
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:vm.currentSize,
|
|
|
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){
|
|
|
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
|
|
|
}
|
|
|
|
|
|
}
|
|
|
},
|
|
@ -499,27 +884,28 @@ new Vue({
|
|
|
},
|
|
|
// 下一页 上一页
|
|
|
handleCurrentChange:function(val) {
|
|
|
this.currentPage = val
|
|
|
var vm = this
|
|
|
vm.currentPage = val
|
|
|
if(vm.handleNodeId == 0) {
|
|
|
this.getStatisticDataList()
|
|
|
vm.getStatisticDataList()
|
|
|
}else if(vm.handleNodeId == 3) {
|
|
|
// 咨询分析
|
|
|
|
|
|
vm.getConsultList()
|
|
|
}else if(vm.handleNodeId == 4) {
|
|
|
// 签约分析
|
|
|
|
|
|
vm.getSignList()
|
|
|
}else if(vm.handleNodeId == 5) {
|
|
|
// 专病分析
|
|
|
|
|
|
vm.getSickList()
|
|
|
}else if(vm.handleNodeId == 6) {
|
|
|
// 生日祝福分析
|
|
|
|
|
|
vm.getBirthdayPatientList()
|
|
|
}else if(vm.handleNodeId == 7) {
|
|
|
// 上门服务分析
|
|
|
|
|
|
vm.getDoorServiceList()
|
|
|
}else if(vm.handleNodeId == 8) {
|
|
|
// 长处方分析
|
|
|
|
|
|
vm.getPrescriptionList()
|
|
|
}
|
|
|
},
|
|
|
//获取省市区 type:区3
|