|
@ -10,11 +10,7 @@ new Vue({
|
|
|
searchStr: 1,
|
|
|
end: '',
|
|
|
tabledata: [], //表格数据
|
|
|
levelList: [
|
|
|
{ level: '4', areaLevel: '2' },
|
|
|
{ level: '3', areaLevel: '3' },
|
|
|
{ level: '2', areaLevel: '4' }
|
|
|
], //两种搜索,地区等级对比
|
|
|
levelList: [{ level: '4', areaLevel: '2' }, { level: '3', areaLevel: '3' }, { level: '2', areaLevel: '4' }], //两种搜索,地区等级对比
|
|
|
areaLevel: '', // 2、市,3、区,4、社区,5、团队
|
|
|
initareaLevel: '',
|
|
|
initlevel: '',
|
|
@ -36,7 +32,7 @@ new Vue({
|
|
|
label: 'label'
|
|
|
},
|
|
|
pickerOptions: {
|
|
|
disabledDate: function (time) {
|
|
|
disabledDate: function(time) {
|
|
|
return time.getTime() > Date.now()
|
|
|
}
|
|
|
},
|
|
@ -92,11 +88,7 @@ new Vue({
|
|
|
{ label: '第二阶段社区医院随访进度', id: '61' },
|
|
|
{ label: '第二阶段三级医院随访进度及出组情况', id: '62' }
|
|
|
],
|
|
|
mzfJcTabsData: [
|
|
|
{ label: '慢阻肺患者档案', id: '63' },
|
|
|
{ label: '服务人数配置及进度查询', id: '66' },
|
|
|
{ label: '管理情况自助查询', id: '64' }
|
|
|
],
|
|
|
mzfJcTabsData: [{ label: '慢阻肺患者档案', id: '63' }, { label: '服务人数配置及进度查询', id: '66' }, { label: '管理情况自助查询', id: '64' }],
|
|
|
// 慢阻肺管理情况自处查询字段列表
|
|
|
copdManageSearchFilterList: [
|
|
|
{
|
|
@ -194,7 +186,8 @@ new Vue({
|
|
|
{ label: '康复随访详情', id: '86' },
|
|
|
{ label: '康复下转明细', id: '87' },
|
|
|
{ label: '签约情况统计', id: '82' },
|
|
|
{ label: '消息推送明细', id: '89' }
|
|
|
{ label: '消息推送明细', id: '89' },
|
|
|
{ label: '异地医院管理情况统计', id: '99' }
|
|
|
],
|
|
|
jkjlbTabsTree: [
|
|
|
{
|
|
@ -259,12 +252,7 @@ new Vue({
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
jkjlbTabsData: [
|
|
|
{ label: '活动举办明细', id: '95' },
|
|
|
{ label: '居民活动报名明细', id: '96' },
|
|
|
{ label: '居民积分明细', id: '97' },
|
|
|
{ label: '居民红包奖励明细', id: '90' }
|
|
|
],
|
|
|
jkjlbTabsData: [{ label: '活动举办明细', id: '95' }, { label: '居民活动报名明细', id: '96' }, { label: '居民积分明细', id: '97' }, { label: '居民红包奖励明细', id: '90' }],
|
|
|
jkjlbList: [],
|
|
|
copdFilterCheckValue: [],
|
|
|
handleNodeShow: 1,
|
|
@ -473,11 +461,7 @@ new Vue({
|
|
|
{ value: '2', label: '已完成' },
|
|
|
{ value: '3', label: '未回复' }
|
|
|
],
|
|
|
inviteStatus1: [
|
|
|
{ value: '', label: '全部' },
|
|
|
{ value: '1', label: '门诊患者' },
|
|
|
{ value: '2', label: '出院患者' }
|
|
|
],
|
|
|
inviteStatus1: [{ value: '', label: '全部' }, { value: '1', label: '门诊患者' }, { value: '2', label: '出院患者' }],
|
|
|
recoveryList: [],
|
|
|
dialogVisible: false,
|
|
|
signatoryList: [],
|
|
@ -521,10 +505,7 @@ new Vue({
|
|
|
id: 'xzrs,jsxzrs',
|
|
|
label: '下转接收统计',
|
|
|
code: '3',
|
|
|
children: [
|
|
|
{ id: 'xzrs', label: '下转人数', code: '3' },
|
|
|
{ id: 'jsxzrs', label: '接收下转人数', code: '3' }
|
|
|
]
|
|
|
children: [{ id: 'xzrs', label: '下转人数', code: '3' }, { id: 'jsxzrs', label: '接收下转人数', code: '3' }]
|
|
|
},
|
|
|
{
|
|
|
id: 'v1sxrs,v2rzrs,v3rs,v4rs,v5rs,v6rs,zgrs,tlzls',
|
|
@ -563,7 +544,7 @@ new Vue({
|
|
|
datatotal: 0, //总数
|
|
|
loadingTwo: false,
|
|
|
setDisabled: {
|
|
|
disabledDate: function (time) {
|
|
|
disabledDate: function(time) {
|
|
|
return time.getTime() < new Date('2023', '05', '26') || time.getTime() > Date.now()
|
|
|
}
|
|
|
},
|
|
@ -641,7 +622,7 @@ new Vue({
|
|
|
vuedals: Vuedals.Component
|
|
|
},
|
|
|
watch: {
|
|
|
rangeCode: function (val) {
|
|
|
rangeCode: function(val) {
|
|
|
var vm = this
|
|
|
if (vm.initlevel != 2) {
|
|
|
vm.communityCode = ''
|
|
@ -649,16 +630,16 @@ new Vue({
|
|
|
vm.teamCode = ''
|
|
|
vm.getTreeList()
|
|
|
},
|
|
|
areaCode: function (val) {
|
|
|
areaCode: function(val) {
|
|
|
var vm = this
|
|
|
vm.selChange(3)
|
|
|
},
|
|
|
communityCode: function (val) {
|
|
|
communityCode: function(val) {
|
|
|
var vm = this
|
|
|
vm.selChange(5)
|
|
|
},
|
|
|
'startTime': {
|
|
|
handler: function (o) {
|
|
|
startTime: {
|
|
|
handler: function(o) {
|
|
|
if (!o) {
|
|
|
this.list.splice(0, 1)
|
|
|
}
|
|
@ -666,8 +647,8 @@ new Vue({
|
|
|
deep: true,
|
|
|
immediate: true
|
|
|
},
|
|
|
'endTime': {
|
|
|
handler: function (o) {
|
|
|
endTime: {
|
|
|
handler: function(o) {
|
|
|
if (!o) {
|
|
|
this.list.splice(0, 1)
|
|
|
}
|
|
@ -676,7 +657,7 @@ new Vue({
|
|
|
immediate: true
|
|
|
}
|
|
|
},
|
|
|
mounted: function () {
|
|
|
mounted: function() {
|
|
|
var vm = this
|
|
|
//初始化数据
|
|
|
var searchStr = location.search
|
|
@ -690,18 +671,18 @@ new Vue({
|
|
|
vm.getfwDictName()
|
|
|
vm.getDiseaseTypeList()
|
|
|
vm.height = document.body.offsetHeight - 85
|
|
|
window.onresize = function () {
|
|
|
window.onresize = function() {
|
|
|
vm.height = document.body.offsetHeight - 85
|
|
|
}
|
|
|
this.s = this.startTime.format('yyyy-MM-dd')
|
|
|
this.e = this.endTime.format('yyyy-MM-dd')
|
|
|
this.list.unshift({ type: '0', id: 'time', label: this.s + '~' + this.e })
|
|
|
for (var i = 46; i <= 98; i++) {
|
|
|
for (var i = 46; i <= 99; i++) {
|
|
|
this.componentId.push(i + '')
|
|
|
}
|
|
|
EventBus.$on('toPage', function (data) {
|
|
|
EventBus.$on('toPage', function(data) {
|
|
|
vm.handleNodeId = data.id
|
|
|
vm.$nextTick(function () {
|
|
|
vm.$nextTick(function() {
|
|
|
if (vm.handleNodeId == 77) {
|
|
|
vm.$refs.gxbEvaluation.getData(data)
|
|
|
} else if (vm.handleNodeId == 78) {
|
|
@ -713,7 +694,7 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
EventBus.$on('preview-person-info', function (data) {
|
|
|
EventBus.$on('preview-person-info', function(data) {
|
|
|
vm.$refs.personInfo.openDialog(data)
|
|
|
})
|
|
|
},
|
|
@ -724,18 +705,18 @@ new Vue({
|
|
|
methods: {
|
|
|
getfwDictName() {
|
|
|
var vm = this
|
|
|
statisticAPI.getDictByDictName({ name: 'health_bank_service_type' }).then(function (res) {
|
|
|
statisticAPI.getDictByDictName({ name: 'health_bank_service_type' }).then(function(res) {
|
|
|
vm.health_bank_service_type = res.list
|
|
|
})
|
|
|
},
|
|
|
//获取综合查询指标
|
|
|
getQuotaStr() {
|
|
|
var vm = this
|
|
|
statisticAPI.getDictByDictName({ name: 'jkcopd_quotaStr' }).then(function (res) {
|
|
|
statisticAPI.getDictByDictName({ name: 'jkcopd_quotaStr' }).then(function(res) {
|
|
|
vm.copdManageSearchFilterList = res.list
|
|
|
})
|
|
|
},
|
|
|
startTimeChange: function (o) {
|
|
|
startTimeChange: function(o) {
|
|
|
if (!this.list[0] || this.list[0].type != 0) {
|
|
|
this.list.unshift({
|
|
|
type: '0',
|
|
@ -746,7 +727,7 @@ new Vue({
|
|
|
this.list[0].label = o.format('yyyy-MM-dd') + '~' + this.endTime.format('yyyy-MM-dd')
|
|
|
}
|
|
|
},
|
|
|
endTimeChange: function (o) {
|
|
|
endTimeChange: function(o) {
|
|
|
if (!this.list[0] || this.list[0].type != 0) {
|
|
|
this.list.unshift({
|
|
|
type: '0',
|
|
@ -758,27 +739,27 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 确定
|
|
|
confirm: function () {
|
|
|
confirm: function() {
|
|
|
this.hospitalWorkStatistics()
|
|
|
},
|
|
|
// 选择
|
|
|
change: function (val) {
|
|
|
change: function(val) {
|
|
|
this.list = this.list.concat(val)
|
|
|
},
|
|
|
// 已选
|
|
|
deleteClick: function (item) {
|
|
|
deleteClick: function(item) {
|
|
|
if (item.id == 'time') {
|
|
|
this.startTime = ''
|
|
|
this.endTime = ''
|
|
|
this.list.splice(0, 1)
|
|
|
}
|
|
|
var index = this.list.findIndex(function (v) {
|
|
|
var index = this.list.findIndex(function(v) {
|
|
|
return item.id == v.id
|
|
|
})
|
|
|
this.list.splice(index, 1)
|
|
|
},
|
|
|
// 取消
|
|
|
cancel: function () {
|
|
|
cancel: function() {
|
|
|
this.startTime = new Date('2023', '05', '26')
|
|
|
this.endTime = new Date()
|
|
|
if (!this.list[0] || this.list[0].type != 0) {
|
|
@ -792,7 +773,7 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 导出
|
|
|
exportHandle: function () {
|
|
|
exportHandle: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI
|
|
@ -803,11 +784,11 @@ new Vue({
|
|
|
},
|
|
|
'慢阻肺综合查询表.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.loadingTwo = false
|
|
|
})
|
|
|
},
|
|
|
renderTableHeader: function (h, item) {
|
|
|
renderTableHeader: function(h, item) {
|
|
|
var $index = item.$index
|
|
|
return h('div', [
|
|
|
h('span', this.diseaseHeader[$index - 1] + ' ', {
|
|
@ -837,7 +818,7 @@ new Vue({
|
|
|
)
|
|
|
])
|
|
|
},
|
|
|
renderHeadeRexpert: function (h, item) {
|
|
|
renderHeadeRexpert: function(h, item) {
|
|
|
var index = item.$index
|
|
|
return [
|
|
|
index == '3'
|
|
@ -857,7 +838,7 @@ new Vue({
|
|
|
'el-tooltip',
|
|
|
{
|
|
|
props: {
|
|
|
content: (function () {
|
|
|
content: (function() {
|
|
|
return index == '3'
|
|
|
? '发起邀请总次数'
|
|
|
: index == ''
|
|
@ -886,12 +867,12 @@ new Vue({
|
|
|
]
|
|
|
},
|
|
|
// 获取康复下转明细 --- 下转状态
|
|
|
deorsumvergenceStatusFunction: function (name) {
|
|
|
deorsumvergenceStatusFunction: function(name) {
|
|
|
var vm = this
|
|
|
signAPI.getDictByDictName({ name: name }).then(function (res) {
|
|
|
signAPI.getDictByDictName({ name: name }).then(function(res) {
|
|
|
if (res.status === 200) {
|
|
|
if (name == 'rehabilitation_status') {
|
|
|
res.list.forEach(function (v) {
|
|
|
res.list.forEach(function(v) {
|
|
|
vm.deorsumvergence.push({
|
|
|
value: v.code,
|
|
|
label: v.value
|
|
@ -899,7 +880,7 @@ new Vue({
|
|
|
})
|
|
|
}
|
|
|
if (name == 'rehabilitation_hospital') {
|
|
|
res.list.forEach(function (v) {
|
|
|
res.list.forEach(function(v) {
|
|
|
vm.rehabilitationHospital.push({
|
|
|
value: v.code,
|
|
|
label: v.value
|
|
@ -907,7 +888,7 @@ new Vue({
|
|
|
})
|
|
|
}
|
|
|
if (name == 'archive_status') {
|
|
|
res.list.forEach(function (v) {
|
|
|
res.list.forEach(function(v) {
|
|
|
vm.archiveList.push({
|
|
|
value: v.code,
|
|
|
label: v.value
|
|
@ -918,16 +899,16 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 获取社区医院
|
|
|
hospitalsByType: function () {
|
|
|
hospitalsByType: function() {
|
|
|
var vm = this
|
|
|
statisticAPI
|
|
|
.hospitalsByType({
|
|
|
type: 1,
|
|
|
code: '350200'
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
res.list.forEach(function (v) {
|
|
|
res.list.forEach(function(v) {
|
|
|
vm.communityHospitals.push({
|
|
|
value: v.code,
|
|
|
label: v.name
|
|
@ -935,17 +916,17 @@ new Vue({
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
console.log(err, 'Errr')
|
|
|
})
|
|
|
},
|
|
|
// 康复下转操作
|
|
|
operation: function (num, item) {
|
|
|
operation: function(num, item) {
|
|
|
var vm = this
|
|
|
if (num != 2) {
|
|
|
statisticAPI
|
|
|
.synchronizePationSingle({ id: item.id })
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
toastr.info('操作成功')
|
|
|
this.tableKey = Math.random()
|
|
@ -953,31 +934,31 @@ new Vue({
|
|
|
toastr.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
console.log(err, 'Errr')
|
|
|
})
|
|
|
} else {
|
|
|
vm.signatoryList = []
|
|
|
statisticAPI
|
|
|
.kangfuGetSignInfo({ idcard: item.idcard })
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
if (res.data != null) {
|
|
|
vm.signatoryList.push(res.data)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
console.log(err, 'Errr')
|
|
|
})
|
|
|
this.dialogVisible = true
|
|
|
}
|
|
|
},
|
|
|
getImgurl: function (url) {
|
|
|
getImgurl: function(url) {
|
|
|
var imgUrl = url && url.split(',')[0]
|
|
|
return httpRequest.getImgUrl(imgUrl)
|
|
|
},
|
|
|
reset: function () {
|
|
|
reset: function() {
|
|
|
if (this.tabsId == 1) {
|
|
|
this.getTreeList()
|
|
|
} else {
|
|
@ -1026,7 +1007,7 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 清除
|
|
|
eliminateClick: function () {
|
|
|
eliminateClick: function() {
|
|
|
this.radio = this.handleNodeId == 44 || this.expertFamilyIdType == 'zhuanke1' || this.handleNodeId == 45 ? '2' : '1'
|
|
|
this.radio1 = ''
|
|
|
this.radio2 = ''
|
|
@ -1111,7 +1092,7 @@ new Vue({
|
|
|
// initTime(this)
|
|
|
// initScope(this)
|
|
|
},
|
|
|
tabsClick: function (item) {
|
|
|
tabsClick: function(item) {
|
|
|
var vm = this
|
|
|
this.collectCode = ''
|
|
|
this.copdFilterCheckValue = []
|
|
@ -1122,7 +1103,7 @@ new Vue({
|
|
|
if (item.id == 5) {
|
|
|
vm.handleNodeShow = 5
|
|
|
}
|
|
|
vm.tabsList.forEach(function (res) {
|
|
|
vm.tabsList.forEach(function(res) {
|
|
|
if (res.id == item.id) {
|
|
|
res.show = true
|
|
|
} else {
|
|
@ -1132,42 +1113,42 @@ new Vue({
|
|
|
vm.eliminateClick()
|
|
|
},
|
|
|
// 获取汇总数据的专科医院
|
|
|
specHosData: function () {
|
|
|
specHosData: function() {
|
|
|
var vm = this
|
|
|
statisticAPI.getSpecialHospital().then(function (res) {
|
|
|
statisticAPI.getSpecialHospital().then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
res.data.forEach(function (item) {
|
|
|
res.data.forEach(function(item) {
|
|
|
vm.specHosList.push({ code: item.code, name: item.name })
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getDiseaseTypeList: function () {
|
|
|
getDiseaseTypeList: function() {
|
|
|
var vm = this
|
|
|
statisticAPI.getDiseaseTypeList({}).then(function (res) {
|
|
|
statisticAPI.getDiseaseTypeList({}).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.specialCities = res.list
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
// 签约人群
|
|
|
handleCheckedCitiesChange: function (value) {
|
|
|
handleCheckedCitiesChange: function(value) {
|
|
|
var vm = this
|
|
|
vm.handleData = value
|
|
|
},
|
|
|
// 下转病种
|
|
|
diseaseChange: function (value) {
|
|
|
diseaseChange: function(value) {
|
|
|
var vm = this
|
|
|
vm.diseaseData = value
|
|
|
},
|
|
|
// 服务类型
|
|
|
serviceTypeChange: function (value) {
|
|
|
serviceTypeChange: function(value) {
|
|
|
var vm = this
|
|
|
vm.serviceTypeData = value
|
|
|
},
|
|
|
|
|
|
// 综合析树形图
|
|
|
treedataClick: function (name, data) {
|
|
|
treedataClick: function(name, data) {
|
|
|
var vm = this
|
|
|
vm.handleNodeShow = 1
|
|
|
vm.handleNodeId = 0
|
|
@ -1177,7 +1158,7 @@ new Vue({
|
|
|
// initScope(vm)
|
|
|
},
|
|
|
// 汇总树形图
|
|
|
collectClick: function (data, isCheck) {
|
|
|
collectClick: function(data, isCheck) {
|
|
|
var vm = this
|
|
|
|
|
|
vm.derive = data.label
|
|
@ -1186,13 +1167,13 @@ new Vue({
|
|
|
vm.radio = '1' //签约年度 --创建时间
|
|
|
vm.isCheck = isCheck
|
|
|
},
|
|
|
collCheck: function (data, name) {
|
|
|
collCheck: function(data, name) {
|
|
|
// console.log(arguments)
|
|
|
var vm = this
|
|
|
vm.diseaseReport = []
|
|
|
vm.datatotal = 0
|
|
|
vm.collect.forEach(function (item) {
|
|
|
item.children.forEach(function (o) {
|
|
|
vm.collect.forEach(function(item) {
|
|
|
item.children.forEach(function(o) {
|
|
|
if (o.code != data.code) {
|
|
|
vm.$refs.collectTree.setChecked(o, false, true)
|
|
|
}
|
|
@ -1200,7 +1181,7 @@ new Vue({
|
|
|
if (data.id == item.id) {
|
|
|
vm.$refs.collectTree.setChecked(item, vm.isCheck, true)
|
|
|
} else {
|
|
|
item.children.forEach(function (o) {
|
|
|
item.children.forEach(function(o) {
|
|
|
if (data.id == o.id) {
|
|
|
vm.$refs.collectTree.setChecked(o, vm.isCheck, true)
|
|
|
}
|
|
@ -1211,24 +1192,12 @@ new Vue({
|
|
|
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.rangeList = [{ name: '按区', code: 'town' }, { name: '按社区', code: 'hospital' }, { name: '按团队', code: 'team' }, { name: '按专科医院', code: 'specHos' }]
|
|
|
vm.specHosData()
|
|
|
} else if (data.code == 4) {
|
|
|
vm.rangeList = [
|
|
|
{ name: '按区', code: 'town' },
|
|
|
{ name: '按社区', code: 'hospital' }
|
|
|
]
|
|
|
vm.rangeList = [{ name: '按区', code: 'town' }, { name: '按社区', code: 'hospital' }]
|
|
|
} else {
|
|
|
vm.rangeList = [
|
|
|
{ name: '按区', code: 'town' },
|
|
|
{ name: '按社区', code: 'hospital' },
|
|
|
{ name: '按团队', code: 'team' }
|
|
|
]
|
|
|
vm.rangeList = [{ name: '按区', code: 'town' }, { name: '按社区', code: 'hospital' }, { name: '按团队', code: 'team' }]
|
|
|
}
|
|
|
},
|
|
|
// jkjlbClick(data, isCheck) {},
|
|
@ -1240,27 +1209,27 @@ new Vue({
|
|
|
this.handleNodeId = data.code
|
|
|
vm.handleNodeShow = 2 // 明细查询tabs为2
|
|
|
|
|
|
vm.jkjlbTabsTree.forEach(function (item) {
|
|
|
item.children.forEach(function (o) {
|
|
|
vm.jkjlbTabsTree.forEach(function(item) {
|
|
|
item.children.forEach(function(o) {
|
|
|
if (o.code != data.code) {
|
|
|
vm.$refs.collectTree.setChecked(o, false, true)
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
this.$nextTick(function () {
|
|
|
vm.jkjlbList = vm.$refs.collectTree.getCheckedNodes().filter(function (item) {
|
|
|
this.$nextTick(function() {
|
|
|
vm.jkjlbList = vm.$refs.collectTree.getCheckedNodes().filter(function(item) {
|
|
|
return item.root != true
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
// 点击明细查询树形图
|
|
|
handleNodeClick: function (item, type) {
|
|
|
handleNodeClick: function(item, type) {
|
|
|
var vm = this
|
|
|
|
|
|
vm.jkjlbList = []
|
|
|
vm.jkjlbTabsTree.forEach(function (item) {
|
|
|
item.children.forEach(function (o) {
|
|
|
if(vm.$refs.collectTree) vm.$refs.collectTree.setChecked(o, false, true)
|
|
|
vm.jkjlbTabsTree.forEach(function(item) {
|
|
|
item.children.forEach(function(o) {
|
|
|
if (vm.$refs.collectTree) vm.$refs.collectTree.setChecked(o, false, true)
|
|
|
})
|
|
|
})
|
|
|
vm.copdFilterCheckValue = []
|
|
@ -1363,7 +1332,7 @@ new Vue({
|
|
|
// EventBus.$emit('jtbc-table-page', { type, id: item.id })
|
|
|
// console.log('家庭病床')
|
|
|
// }
|
|
|
vm.$nextTick(function () {
|
|
|
vm.$nextTick(function() {
|
|
|
if (vm.handleNodeId == 77) {
|
|
|
vm.$refs.gxbEvaluation.getData()
|
|
|
} else if (vm.handleNodeId == 78) {
|
|
@ -1375,14 +1344,14 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
expertFamily: function (id) {
|
|
|
expertFamily: function(id) {
|
|
|
var vm = this
|
|
|
if (id == '1') {
|
|
|
vm.expertReplyList()
|
|
|
}
|
|
|
},
|
|
|
// 邀请专科回复统计传参
|
|
|
expertReply: function () {
|
|
|
expertReply: function() {
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
return {
|
|
@ -1398,10 +1367,10 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 邀请专科回复统计列表
|
|
|
expertReplyList: function () {
|
|
|
expertReplyList: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.consultHelpCountPage(vm.expertReply()).then(function (res) {
|
|
|
statisticAPI.consultHelpCountPage(vm.expertReply()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.expertReplyData = res.detailModelList
|
|
|
vm.datatotal = res.totalCount
|
|
@ -1410,24 +1379,24 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
|
|
|
analysFunction: function (id) {
|
|
|
analysFunction: function(id) {
|
|
|
var vm = this
|
|
|
// idcard = idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2") 身份证 医保卡 脱敏显示
|
|
|
vm.detailFunction(id)
|
|
|
},
|
|
|
// 下转预约获取医生,科室
|
|
|
getReservationHosAndDept: function (data) {
|
|
|
getReservationHosAndDept: function(data) {
|
|
|
var vm = this
|
|
|
statisticAPI
|
|
|
.getReservationHosAndDept({
|
|
|
hospital: data ? data : '',
|
|
|
type: data ? '2' : ''
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
if (data) {
|
|
|
vm.administrativeOffice = []
|
|
|
res.data.forEach(function (item) {
|
|
|
res.data.forEach(function(item) {
|
|
|
vm.administrativeOffice.push({
|
|
|
value: item.code,
|
|
|
label: item.name
|
|
@ -1435,7 +1404,7 @@ new Vue({
|
|
|
})
|
|
|
} else {
|
|
|
vm.hospitalData = []
|
|
|
res.data.forEach(function (item) {
|
|
|
res.data.forEach(function(item) {
|
|
|
vm.hospitalData.push({
|
|
|
value: item.code,
|
|
|
label: item.name
|
|
@ -1445,13 +1414,13 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
hospitalChange: function (data) {
|
|
|
hospitalChange: function(data) {
|
|
|
var vm = this
|
|
|
vm.getReservationHosAndDept(data)
|
|
|
},
|
|
|
|
|
|
// 咨询分析
|
|
|
getConsultList: function () {
|
|
|
getConsultList: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/getConsultList'
|
|
@ -1468,7 +1437,7 @@ new Vue({
|
|
|
pageSize: vm.currentSize,
|
|
|
page: vm.currentPage
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
// console.log(res,"咨询分析")
|
|
|
if (res.status == 200) {
|
|
|
vm.analyseData = res.data.list
|
|
@ -1482,13 +1451,13 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 签约分析
|
|
|
getSignList: function () {
|
|
|
getSignList: function() {
|
|
|
var vm = this
|
|
|
vm.lastAjax = 'statisticsExport/getSignList'
|
|
|
vm.loadingTwo = true
|
|
|
var handleDataList = []
|
|
|
vm.serverType = ''
|
|
|
vm.handleData.forEach(function (res) {
|
|
|
vm.handleData.forEach(function(res) {
|
|
|
handleDataList.push(res.num)
|
|
|
})
|
|
|
vm.serverType = handleDataList.join(',')
|
|
@ -1511,10 +1480,10 @@ new Vue({
|
|
|
pageSize: vm.currentSize,
|
|
|
page: vm.currentPage
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
// console.log(res,"签约分析")
|
|
|
if (res.status == 200) {
|
|
|
res.data.list.forEach(function (item) {
|
|
|
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')
|
|
|
})
|
|
@ -1529,14 +1498,14 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 专病分析
|
|
|
getSickList: function () {
|
|
|
getSickList: function() {
|
|
|
var vm = this
|
|
|
// vm.diseaseData
|
|
|
vm.lastAjax = 'statisticsExport/getSickList'
|
|
|
vm.loadingTwo = true
|
|
|
var handleDataList = []
|
|
|
vm.diseaseDataType = ''
|
|
|
vm.diseaseData.forEach(function (res) {
|
|
|
vm.diseaseData.forEach(function(res) {
|
|
|
handleDataList.push(res.code)
|
|
|
})
|
|
|
vm.diseaseDataType = handleDataList.join(',')
|
|
@ -1558,10 +1527,10 @@ new Vue({
|
|
|
page: vm.currentPage,
|
|
|
patientType: vm.form2.patientType
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
// console.log(res,"专病分析")
|
|
|
if (res.status == 200) {
|
|
|
res.data.list.forEach(function (item) {
|
|
|
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')
|
|
|
})
|
|
@ -1576,7 +1545,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 生日祝福分析明细
|
|
|
getBirthdayPatientList: function () {
|
|
|
getBirthdayPatientList: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/getBirthdayPatientList'
|
|
@ -1595,10 +1564,10 @@ new Vue({
|
|
|
pageSize: vm.currentSize,
|
|
|
page: vm.currentPage
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
// console.log(res,"Sddddd")
|
|
|
res.data.detailModelList.forEach(function (item) {
|
|
|
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')
|
|
|
})
|
|
@ -1613,7 +1582,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 长处方分析明细
|
|
|
getPrescriptionList: function () {
|
|
|
getPrescriptionList: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/getPrescriptionList'
|
|
@ -1634,9 +1603,9 @@ new Vue({
|
|
|
pageSize: vm.currentSize,
|
|
|
page: vm.currentPage
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
res.data.detailModelList.forEach(function (item) {
|
|
|
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')
|
|
@ -1652,13 +1621,13 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 上门服务分析明细
|
|
|
getDoorServiceList: function () {
|
|
|
getDoorServiceList: function() {
|
|
|
var vm = this
|
|
|
vm.lastAjax = ''
|
|
|
vm.loadingTwo = true
|
|
|
var handleDataList = []
|
|
|
vm.serviceTypeDataType = 'statisticsExport/getDoorServiceList'
|
|
|
vm.serviceTypeData.forEach(function (res) {
|
|
|
vm.serviceTypeData.forEach(function(res) {
|
|
|
handleDataList.push(res.num)
|
|
|
})
|
|
|
vm.serviceTypeDataType = handleDataList.join(',')
|
|
@ -1678,10 +1647,10 @@ new Vue({
|
|
|
pageSize: vm.currentSize,
|
|
|
page: vm.currentPage
|
|
|
})
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
// console.log(res,"上门服务分析明细")
|
|
|
res.data.detailModelList.forEach(function (item) {
|
|
|
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')
|
|
|
})
|
|
@ -1696,7 +1665,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
//体征数据分析传参
|
|
|
getHealthParameter: function () {
|
|
|
getHealthParameter: function() {
|
|
|
var vm = this
|
|
|
return {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -1715,11 +1684,11 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
//体征数据分析
|
|
|
physicalSignData: function () {
|
|
|
physicalSignData: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/getHealthList'
|
|
|
statisticAPI.getHealthList(vm.getHealthParameter()).then(function (res) {
|
|
|
statisticAPI.getHealthList(vm.getHealthParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
// console.log(res,"体征数据")
|
|
|
vm.getHealthData = res.data.detailModelList
|
|
@ -1733,7 +1702,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
//上转预约传参
|
|
|
reservationParameter: function () {
|
|
|
reservationParameter: function() {
|
|
|
var vm = this
|
|
|
return {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -1753,11 +1722,11 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 上转预约
|
|
|
upTransferAppointment: function () {
|
|
|
upTransferAppointment: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/getDoctorReservationList'
|
|
|
statisticAPI.getDoctorReservationList(vm.reservationParameter()).then(function (res) {
|
|
|
statisticAPI.getDoctorReservationList(vm.reservationParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
// console.log(res,"上转预约")
|
|
|
vm.reservationData = res.data.detailModelList
|
|
@ -1772,7 +1741,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
//微信绑定传参
|
|
|
wexinBindingParameter: function () {
|
|
|
wexinBindingParameter: function() {
|
|
|
var vm = this
|
|
|
return {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -1788,14 +1757,14 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
// 微信绑定
|
|
|
wechatBinding: function () {
|
|
|
wechatBinding: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/getWexinBindingList'
|
|
|
statisticAPI.getWexinBindingList(vm.wexinBindingParameter()).then(function (res) {
|
|
|
statisticAPI.getWexinBindingList(vm.wexinBindingParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
// console.log(res,"微信绑定")
|
|
|
res.data.detailModelList.forEach(function (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')
|
|
|
})
|
|
@ -1810,7 +1779,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 居民积分明细传参
|
|
|
residentIntegralParameter: function () {
|
|
|
residentIntegralParameter: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -1828,14 +1797,14 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
// 居民积分明细
|
|
|
residentIntegral: function () {
|
|
|
residentIntegral: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/patinetIntegralAnalysis'
|
|
|
statisticAPI.patinetIntegralAnalysis(vm.residentIntegralParameter()).then(function (res) {
|
|
|
statisticAPI.patinetIntegralAnalysis(vm.residentIntegralParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
res.data.list.forEach(function (item) {
|
|
|
res.data.list.forEach(function(item) {
|
|
|
item.ssc = item.ssc.replace(/^(.{4})(?:\d+)(.{1})$/, '$1****$2')
|
|
|
// item.idcard = item.idcard.replace(/^(.{6})(?:\d+)(.{4})$/,"$1****$2")
|
|
|
})
|
|
@ -1847,7 +1816,7 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
patientFeeAnalysisParams: function () {
|
|
|
patientFeeAnalysisParams: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -1868,7 +1837,7 @@ new Vue({
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'doctor/healthBank/patientFeeAnalysis'
|
|
|
statisticAPI.patientFeeAnalysis(vm.patientFeeAnalysisParams()).then(function (res) {
|
|
|
statisticAPI.patientFeeAnalysis(vm.patientFeeAnalysisParams()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.redPacketData = res.data.list
|
|
@ -1880,7 +1849,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 入户访视明细传参
|
|
|
interviewParameter: function () {
|
|
|
interviewParameter: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
// signYear:'2020', //签约年度
|
|
@ -1899,11 +1868,11 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
// 入户访视
|
|
|
interview: function () {
|
|
|
interview: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'statisticsExport/findPatientFollowListByCondition'
|
|
|
statisticAPI.findPatientFollowListByCondition(vm.interviewParameter()).then(function (res) {
|
|
|
statisticAPI.findPatientFollowListByCondition(vm.interviewParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.ruhuData = res.data.list
|
|
@ -1915,7 +1884,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
//邀请专科回复明细传参
|
|
|
invitationDetailsParameter: function () {
|
|
|
invitationDetailsParameter: function() {
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
var parameter = {
|
|
@ -1937,13 +1906,13 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
//邀请专科回复明细列表
|
|
|
invitationDetails: function () {
|
|
|
invitationDetails: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.consultHelpDetailPage(vm.invitationDetailsParameter()).then(function (res) {
|
|
|
statisticAPI.consultHelpDetailPage(vm.invitationDetailsParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
res.detailModelList.forEach(function (v) {
|
|
|
res.detailModelList.forEach(function(v) {
|
|
|
v.sex = v.sex == 1 ? '男' : '女'
|
|
|
})
|
|
|
vm.invitationList = res.detailModelList
|
|
@ -1956,7 +1925,7 @@ new Vue({
|
|
|
},
|
|
|
|
|
|
// 康复下转明细传参
|
|
|
recoveryParameter: function () {
|
|
|
recoveryParameter: function() {
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
|
var parameter = {
|
|
@ -1981,14 +1950,14 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
// 康复下转
|
|
|
recovery: function () {
|
|
|
recovery: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
vm.lastAjax = 'doctor/specialist/rehabilitation/rehabilitationPatientInfo'
|
|
|
statisticAPI.rehabilitationPatientInfo(vm.recoveryParameter()).then(function (res) {
|
|
|
statisticAPI.rehabilitationPatientInfo(vm.recoveryParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
res.detailModelList.forEach(function (v) {
|
|
|
res.detailModelList.forEach(function(v) {
|
|
|
v.sex = v.sex == 1 ? '男' : '女'
|
|
|
})
|
|
|
vm.recoveryList = res.detailModelList
|
|
@ -2001,7 +1970,7 @@ new Vue({
|
|
|
},
|
|
|
|
|
|
//专病汇总传参
|
|
|
getSpecialParameter: function () {
|
|
|
getSpecialParameter: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -2018,13 +1987,13 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
// 专病汇总
|
|
|
getSpecialDiseaseReport: function () {
|
|
|
getSpecialDiseaseReport: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getSpecialDiseaseReport(vm.getSpecialParameter()).then(function (res) {
|
|
|
statisticAPI.getSpecialDiseaseReport(vm.getSpecialParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.indicator = []
|
|
|
res.data.column.forEach(function (v) {
|
|
|
res.data.column.forEach(function(v) {
|
|
|
if (v == 'kfxzrs') {
|
|
|
vm.indicator.push('康复计划人数')
|
|
|
}
|
|
@ -2052,7 +2021,7 @@ new Vue({
|
|
|
},
|
|
|
|
|
|
//体征分析传参
|
|
|
getDeviceParameter: function () {
|
|
|
getDeviceParameter: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -2071,10 +2040,10 @@ new Vue({
|
|
|
},
|
|
|
|
|
|
// 体征分析数据
|
|
|
getDeviceHealthReport: function () {
|
|
|
getDeviceHealthReport: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getDeviceHealthReport(vm.getDeviceParameter()).then(function (res) {
|
|
|
statisticAPI.getDeviceHealthReport(vm.getDeviceParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
// console.log(res,"sss")
|
|
@ -2089,7 +2058,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
//上门汇总传参
|
|
|
getDoorParameter: function () {
|
|
|
getDoorParameter: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -2107,10 +2076,10 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
// 上门汇总
|
|
|
getDoorServerOrderReport: function () {
|
|
|
getDoorServerOrderReport: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.getDoorServerOrderReport(vm.getDoorParameter()).then(function (res) {
|
|
|
statisticAPI.getDoorServerOrderReport(vm.getDoorParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
// console.log(res,"sss")
|
|
@ -2125,7 +2094,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
|
|
|
getredPackageParameter: function () {
|
|
|
getredPackageParameter: function() {
|
|
|
var vm = this
|
|
|
var parameter = {
|
|
|
signYear: vm.radio == '1' ? vm.chooseYear : '', //签约年度
|
|
@ -2142,10 +2111,10 @@ new Vue({
|
|
|
return parameter
|
|
|
},
|
|
|
|
|
|
redPackageRewardStatistics: function () {
|
|
|
redPackageRewardStatistics: function() {
|
|
|
var vm = this
|
|
|
vm.loadingTwo = true
|
|
|
statisticAPI.redPackageRewardStatistics(vm.getredPackageParameter()).then(function (res) {
|
|
|
statisticAPI.redPackageRewardStatistics(vm.getredPackageParameter()).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.loadingTwo = false
|
|
|
vm.getDoorReport = res.data.list
|
|
@ -2159,18 +2128,18 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
|
|
|
getTreeList: function () {
|
|
|
getTreeList: function() {
|
|
|
var vm = this
|
|
|
statisticAPI.exportTreeList({ rang: vm.rangeCode }).then(function (res) {
|
|
|
statisticAPI.exportTreeList({ rang: vm.rangeCode }).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
;(vm.treedata = []), (jindex = 0)
|
|
|
_.each(res.data, function (item, index) {
|
|
|
_.each(res.data, function(item, index) {
|
|
|
vm.treedata.push({
|
|
|
id: 'p_' + jindex,
|
|
|
label: index,
|
|
|
children: []
|
|
|
})
|
|
|
_.each(item, function (citem, cindex) {
|
|
|
_.each(item, function(citem, cindex) {
|
|
|
vm.treedata[jindex].children.push({
|
|
|
id: cindex,
|
|
|
label: citem
|
|
@ -2181,7 +2150,7 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
beforeReq: function (flag) {
|
|
|
beforeReq: function(flag) {
|
|
|
var vm = this,
|
|
|
startDate = '',
|
|
|
endDate = '',
|
|
@ -2230,7 +2199,7 @@ new Vue({
|
|
|
if (!flag) {
|
|
|
vm.tableHeader = []
|
|
|
}
|
|
|
_.each(checkTree, function (item, index) {
|
|
|
_.each(checkTree, function(item, index) {
|
|
|
if (!flag) {
|
|
|
vm.tableHeader.push({ prop: item.label, label: item.label })
|
|
|
}
|
|
@ -2254,7 +2223,7 @@ new Vue({
|
|
|
return { start: startDate, end: endDate, checked: checked.join(',') }
|
|
|
},
|
|
|
// 查询
|
|
|
searchHandle: function (status) {
|
|
|
searchHandle: function(status) {
|
|
|
// console.log(this.beforeReq())
|
|
|
var vm = this
|
|
|
vm.searchJsonTime = vm.beforeReq()
|
|
@ -2295,18 +2264,18 @@ new Vue({
|
|
|
vm.detailFunction(vm.handleNodeId, status)
|
|
|
}
|
|
|
},
|
|
|
getStatisticDataList: function () {
|
|
|
getStatisticDataList: function() {
|
|
|
var vm = this
|
|
|
vm.isloading = true
|
|
|
var params = JSON.parse(JSON.stringify(vm.searchJson))
|
|
|
params.page = vm.currentPage
|
|
|
statisticAPI.getStatisticDataList(params).then(function (res) {
|
|
|
statisticAPI.getStatisticDataList(params).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.tabledata = res.data.data
|
|
|
vm.datatotal = res.data.total
|
|
|
if (vm.tabledata.length) {
|
|
|
vm.tableHeader = []
|
|
|
_.each(vm.tabledata[0], function (item, index) {
|
|
|
_.each(vm.tabledata[0], function(item, index) {
|
|
|
if (
|
|
|
index != 'town' &&
|
|
|
index != 'townName' &&
|
|
@ -2327,7 +2296,7 @@ new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 导出
|
|
|
exportHandle: function () {
|
|
|
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");
|
|
@ -2357,7 +2326,7 @@ new Vue({
|
|
|
},
|
|
|
'综合查询.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
// toastr.info("导出成功")
|
|
|
|
|
@ -2367,7 +2336,7 @@ new Vue({
|
|
|
// console.log(res)
|
|
|
// FileSaver()
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.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
|
|
@ -2390,10 +2359,10 @@ new Vue({
|
|
|
},
|
|
|
vm.derive + '.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2428,10 +2397,10 @@ new Vue({
|
|
|
},
|
|
|
vm.derive + '.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2461,10 +2430,10 @@ new Vue({
|
|
|
},
|
|
|
vm.derive + '.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2493,10 +2462,10 @@ new Vue({
|
|
|
},
|
|
|
vm.derive + '.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2526,10 +2495,10 @@ new Vue({
|
|
|
},
|
|
|
vm.derive + '.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2560,10 +2529,10 @@ new Vue({
|
|
|
},
|
|
|
vm.derive + '.xls'
|
|
|
)
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2576,10 +2545,10 @@ new Vue({
|
|
|
if (vm.getHealthData.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportHealthList(vm.getHealthParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2592,10 +2561,10 @@ new Vue({
|
|
|
if (vm.reservationData.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportDoctorReservationList(vm.reservationParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2608,10 +2577,10 @@ new Vue({
|
|
|
if (vm.wexinBindingData.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportWexinBindingList(vm.wexinBindingParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2624,10 +2593,10 @@ new Vue({
|
|
|
if (vm.jifenData.length != 0) {
|
|
|
statisticAPI
|
|
|
.exPatinetIntegralAnalysis(_.assign({}, vm.residentIntegralParameter(), { pageSize: 99999 }), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2640,10 +2609,10 @@ new Vue({
|
|
|
if (vm.ruhuData.length != 0) {
|
|
|
statisticAPI
|
|
|
.exfindPatientFollowListByCondition(vm.interviewParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2656,10 +2625,10 @@ new Vue({
|
|
|
if (vm.recoveryList.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportRehabilitationPatientInfo(vm.recoveryParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2678,10 +2647,10 @@ new Vue({
|
|
|
|
|
|
statisticAPI
|
|
|
.exportConsultHelpDetailPage(p, vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2694,10 +2663,10 @@ new Vue({
|
|
|
if (vm.diseaseReport.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportSpecialDiseaseReport(vm.getSpecialParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2710,10 +2679,10 @@ new Vue({
|
|
|
if (vm.getDeviceReport.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportDeviceHealthReport(vm.getDeviceParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2726,10 +2695,10 @@ new Vue({
|
|
|
if (vm.getDoorReport.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportDoorServerOrderReport(vm.getDoorParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2742,10 +2711,10 @@ new Vue({
|
|
|
if (vm.getDoorReport.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportRedPackageRewardStatistics(vm.getredPackageParameter(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2758,10 +2727,10 @@ new Vue({
|
|
|
if (vm.expertReplyData.length != 0) {
|
|
|
statisticAPI
|
|
|
.exportConsultHelpCountPage(vm.expertReply(), vm.derive + '.xls')
|
|
|
.then(function (res) {
|
|
|
.then(function(res) {
|
|
|
vm.fullscreenLoading = false
|
|
|
})
|
|
|
.catch(function (err) {
|
|
|
.catch(function(err) {
|
|
|
toastr.info(err)
|
|
|
vm.fullscreenLoading = false
|
|
|
console.error(err)
|
|
@ -2771,24 +2740,24 @@ new Vue({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
backClick: function () {
|
|
|
backClick: function() {
|
|
|
history.go(-1)
|
|
|
},
|
|
|
bindEvent: function () {
|
|
|
bindEvent: function() {
|
|
|
var vm = this
|
|
|
//监听后退按钮的操作
|
|
|
EventBus.$on('back-click', function (arg) {
|
|
|
EventBus.$on('back-click', function(arg) {
|
|
|
EventBus.$emit('update-statistics-time', {}) //更新统计时间
|
|
|
vm.backClick()
|
|
|
})
|
|
|
//监听页面刷新
|
|
|
EventBus.$on('refresh-click', function (arg) {
|
|
|
EventBus.$on('refresh-click', function(arg) {
|
|
|
EventBus.$emit('update-statistics-time', {}) //更新统计时间
|
|
|
initData(vm)
|
|
|
})
|
|
|
$('#main').removeClass('c-hide')
|
|
|
},
|
|
|
detailFunction: function (id, status) {
|
|
|
detailFunction: function(id, status) {
|
|
|
var vm = this
|
|
|
window.ajaxInsArr[vm.lastAjax] && window.ajaxInsArr[vm.lastAjax].abort()
|
|
|
if (id == 33) {
|
|
@ -2841,12 +2810,12 @@ new Vue({
|
|
|
vm.expertReplyList()
|
|
|
}
|
|
|
},
|
|
|
getSpecialistHospital: function () {
|
|
|
getSpecialistHospital: function() {
|
|
|
var vm = this
|
|
|
vm.specializedHospital = [{ value: '', label: '全部' }]
|
|
|
homeAPI.getSpecialistHospital().then(function (res) {
|
|
|
homeAPI.getSpecialistHospital().then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
res.data.forEach(function (v) {
|
|
|
res.data.forEach(function(v) {
|
|
|
vm.specializedHospital.push({
|
|
|
value: v.code,
|
|
|
label: v.name
|
|
@ -2855,14 +2824,14 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
pullDown: function () {
|
|
|
pullDown: function() {
|
|
|
this.deorsumvergenceStatusFunction('archive_status') //档案状态
|
|
|
this.deorsumvergenceStatusFunction('rehabilitation_status') //下转状态
|
|
|
this.deorsumvergenceStatusFunction('rehabilitation_hospital') //下转医院
|
|
|
this.hospitalsByType()
|
|
|
},
|
|
|
// 下一页 上一页
|
|
|
handleCurrentChange: function (val) {
|
|
|
handleCurrentChange: function(val) {
|
|
|
var vm = this
|
|
|
vm.currentPage = val
|
|
|
if (vm.handleNodeId == 0) {
|
|
@ -2872,7 +2841,7 @@ new Vue({
|
|
|
}
|
|
|
},
|
|
|
//获取省市区 type:区3
|
|
|
getDistrict: function (type, code, name) {
|
|
|
getDistrict: function(type, code, name) {
|
|
|
var vm = this,
|
|
|
list = [],
|
|
|
param = ''
|
|
@ -2887,7 +2856,7 @@ new Vue({
|
|
|
type: type,
|
|
|
code: code
|
|
|
}
|
|
|
homeAPI.getDistrict(params).then(function (res) {
|
|
|
homeAPI.getDistrict(params).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm[param + 'List'] = list.concat(res.list)
|
|
|
vm[param + 'Code'] = vm[param + 'List'][0].code
|
|
@ -2896,7 +2865,7 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
selChange: function (type) {
|
|
|
selChange: function(type) {
|
|
|
var vm = this,
|
|
|
name = ''
|
|
|
if (type == 3) {
|
|
@ -2908,7 +2877,7 @@ new Vue({
|
|
|
vm.teamListByArea()
|
|
|
}
|
|
|
},
|
|
|
initSelOption: function (param) {
|
|
|
initSelOption: function(param) {
|
|
|
var vm = this
|
|
|
vm[param + 'List'] = [{ code: '', name: '全部' }]
|
|
|
if (param == 'team') {
|
|
@ -2916,11 +2885,11 @@ new Vue({
|
|
|
}
|
|
|
vm[param + 'Code'] = vm[param + 'List'][0].code || vm[param + 'List'][0].id
|
|
|
},
|
|
|
getCommunityHospital: function () {
|
|
|
getCommunityHospital: function() {
|
|
|
var vm = this,
|
|
|
list = [{ code: '', name: '全部' }],
|
|
|
param = 'community'
|
|
|
homeAPI.getCommunityHospital({ area: vm.areaCode == '350200' ? '' : vm.areaCode }).then(function (res) {
|
|
|
homeAPI.getCommunityHospital({ area: vm.areaCode == '350200' ? '' : vm.areaCode }).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm[param + 'List'] = list.concat(res.data)
|
|
|
vm[param + 'Code'] = vm[param + 'List'][0].code
|
|
@ -2929,11 +2898,11 @@ new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
teamListByArea: function () {
|
|
|
teamListByArea: function() {
|
|
|
var vm = this,
|
|
|
list = [{ id: '', name: '全部' }],
|
|
|
param = 'team'
|
|
|
homeAPI.teamListByArea({ area: vm.areaCode == '350200' ? '' : vm.areaCode, hospital: vm.communityCode }).then(function (res) {
|
|
|
homeAPI.teamListByArea({ area: vm.areaCode == '350200' ? '' : vm.areaCode, hospital: vm.communityCode }).then(function(res) {
|
|
|
if (res.status == 200) {
|
|
|
vm[param + 'List'] = list.concat(res.data)
|
|
|
vm[param + 'Code'] = vm[param + 'List'][0].id
|
|
@ -2980,11 +2949,7 @@ function initScope(vm) {
|
|
|
vm.initarea = vm.area = vm.userRole.code
|
|
|
vm.areaTitle = vm.userRole.name
|
|
|
|
|
|
vm.rangeList = [
|
|
|
{ name: '按区', code: 'town' },
|
|
|
{ name: '按社区', code: 'hospital' },
|
|
|
{ name: '按团队', code: 'team' }
|
|
|
]
|
|
|
vm.rangeList = [{ name: '按区', code: 'town' }, { name: '按社区', code: 'hospital' }, { name: '按团队', code: 'team' }]
|
|
|
|
|
|
if (vm.initlevel == 4) {
|
|
|
//市获取区
|