|
@ -118,7 +118,21 @@ Vue.component('gxb-cy', {
|
|
|
]
|
|
|
}
|
|
|
],
|
|
|
level: 0
|
|
|
level: 0,
|
|
|
visible: false,
|
|
|
title: '',
|
|
|
query: {},
|
|
|
dataRangeOption: [],
|
|
|
dialogTableData: [],
|
|
|
dialogHeader: [],
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
total: 0,
|
|
|
messageVisible: false,
|
|
|
messInfo: null,
|
|
|
remind: '',
|
|
|
dialogExportLoading: false,
|
|
|
dialogLoading: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@ -312,6 +326,200 @@ Vue.component('gxb-cy', {
|
|
|
resolve(children)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
openDialog(row, prop) {
|
|
|
this.query = {}
|
|
|
var len = row.code.length
|
|
|
if (len == 6) {
|
|
|
this.query.range = 'town'
|
|
|
this.query.area = row.code
|
|
|
} else if (len == 10) {
|
|
|
this.query.range = 'hospital'
|
|
|
this.query.hospital = row.code
|
|
|
} else {
|
|
|
this.query.range = 'team'
|
|
|
this.query.team = row.code
|
|
|
}
|
|
|
this.dataRangeOption = [{ label: row.name, value: row.code }]
|
|
|
if (prop == 'vd1Num' || prop == 'vd3Num') {
|
|
|
this.title = '康复随访消息推送明细'
|
|
|
this.dialogHeader = [
|
|
|
{ label: '姓名', prop: 'patientName' },
|
|
|
{ label: '性别', prop: 'sex' },
|
|
|
{ label: '年龄', prop: 'age' },
|
|
|
{ label: '证件号码', prop: 'idcard' },
|
|
|
{ label: '签约医院', prop: 'hospitalName' },
|
|
|
{ label: '签约医生', prop: 'doctorName' },
|
|
|
{ label: '提醒类型', prop: 'typeName' },
|
|
|
{ label: '消息推送时间', prop: 'createTime' },
|
|
|
{ label: '出院下转时间', prop: 'turnTime' },
|
|
|
{ label: '消息推送人', prop: 'senderName' }
|
|
|
]
|
|
|
if (prop == 'vd1Num') {
|
|
|
this.query.visitCount = 1
|
|
|
} else {
|
|
|
this.query.visitCount = 3
|
|
|
}
|
|
|
this.visible = true
|
|
|
this.selectSmsInfoList()
|
|
|
} else if (prop == 'v2Num' || prop == 'v4Num') {
|
|
|
this.title = '康复随访记录明细'
|
|
|
this.dialogHeader = [
|
|
|
{ label: '姓名', prop: 'name' },
|
|
|
{ label: '性别', prop: 'name' },
|
|
|
{ label: '年龄', prop: 'name' },
|
|
|
{ label: '手机号', prop: 'name' },
|
|
|
{ label: '下转医院', prop: 'name' },
|
|
|
{ label: '下转医生', prop: 'name' },
|
|
|
{ label: '下转时间', prop: 'name' },
|
|
|
{ label: '所属机构', prop: 'name' },
|
|
|
{ label: '随访医生', prop: 'name' },
|
|
|
{ label: '计划随访时间', prop: 'name' },
|
|
|
{ label: '实际随访时间', prop: 'name' }
|
|
|
]
|
|
|
if (prop == 'v2Num') {
|
|
|
this.query.visitCount = 2
|
|
|
} else {
|
|
|
this.query.visitCount = 4
|
|
|
}
|
|
|
this.visible = true
|
|
|
this.gxbRehabilitationFollowupRecord()
|
|
|
}
|
|
|
},
|
|
|
gxbRehabilitationFollowupRecord() {
|
|
|
var vm = this
|
|
|
var params = {
|
|
|
...this.query,
|
|
|
page: this.page,
|
|
|
size: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
}
|
|
|
}
|
|
|
this.dialogLoading = true
|
|
|
httpRequest.get('statistics/collaborate/gxbRehabilitationFollowupRecord', { data: params }).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.dialogTableData = res.detailModelList
|
|
|
vm.total = res.totalCount
|
|
|
}
|
|
|
vm.dialogLoading = false
|
|
|
})
|
|
|
},
|
|
|
dialogSearchFn() {
|
|
|
this.page = 1
|
|
|
this.dialogSearch()
|
|
|
},
|
|
|
dialogSearch() {
|
|
|
if (this.title == '康复随访记录明细') {
|
|
|
this.gxbRehabilitationFollowupRecord()
|
|
|
} else {
|
|
|
this.selectSmsInfoList()
|
|
|
}
|
|
|
},
|
|
|
selectSmsInfoList() {
|
|
|
var vm = this
|
|
|
var params = {
|
|
|
...this.query,
|
|
|
type: 2,
|
|
|
page: this.page,
|
|
|
size: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
}
|
|
|
}
|
|
|
this.dialogLoading = true
|
|
|
|
|
|
httpRequest.get('statistics/collaborate/selectSmsInfoList', { data: params }).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.dialogTableData = res.detailModelList
|
|
|
vm.total = res.totalCount
|
|
|
}
|
|
|
vm.dialogLoading = false
|
|
|
})
|
|
|
},
|
|
|
dialogExportFn() {
|
|
|
var vm = this
|
|
|
this.exportLoading = true
|
|
|
|
|
|
if (this.title == '康复随访记录明细') {
|
|
|
var params = {
|
|
|
...this.query
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
}
|
|
|
}
|
|
|
var fileName = `康复随访记录明细${new Date().getTime()}.xls`
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbRehabilitationFollowupRecord', fileName, params).then(function () {
|
|
|
vm.exportLoading = false
|
|
|
})
|
|
|
} else {
|
|
|
var params = {
|
|
|
...this.query,
|
|
|
type: 2
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
params.endDate = this.chooseTime[1]
|
|
|
}
|
|
|
}
|
|
|
var fileName = `康复随访消息推送明细${new Date().getTime()}.xls`
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportSelectSmsInfoList', fileName, params).then(function () {
|
|
|
vm.exportLoading = false
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
dialogReset() {
|
|
|
var params = {
|
|
|
...this.query
|
|
|
}
|
|
|
this.query = {
|
|
|
visitCount: params.visitCount,
|
|
|
range: params.range,
|
|
|
area: params.area,
|
|
|
hospital: params.hospital,
|
|
|
team: params.team
|
|
|
}
|
|
|
},
|
|
|
closeDialog() {
|
|
|
this.visible = false
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.page = val
|
|
|
this.dialogSearch()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.size = val
|
|
|
this.dialogSearch()
|
|
|
},
|
|
|
previewForm(row) {},
|
|
|
previewMess(row) {
|
|
|
this.messageVisible = true
|
|
|
this.messInfo = row.content
|
|
|
},
|
|
|
closeMessageDialog() {
|
|
|
this.messageVisible = false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|