|
@ -20,57 +20,91 @@ Vue.component('follow-detail', {
|
|
yearType: '1',
|
|
yearType: '1',
|
|
chooseYear: null,
|
|
chooseYear: null,
|
|
chooseTime: null,
|
|
chooseTime: null,
|
|
turnOverOptions: [],
|
|
|
|
form: {},
|
|
|
|
|
|
rangeOptions: [
|
|
|
|
{ label: '区', value: 'town' },
|
|
|
|
{ label: '医院', value: 'hospital' },
|
|
|
|
{ label: '团队', value: 'team' }
|
|
|
|
],
|
|
|
|
areaOptions: [
|
|
|
|
{ label: '思明区', value: '350203' },
|
|
|
|
{ label: '海沧区', value: '350205' },
|
|
|
|
{ label: '湖里区', value: '350206' },
|
|
|
|
{ label: '集美区', value: '350211' },
|
|
|
|
{ label: '同安区', value: '350212' },
|
|
|
|
{ label: '翔安区', value: '350213' }
|
|
|
|
],
|
|
|
|
hospitalOptions: [],
|
|
|
|
teamOptions: [],
|
|
|
|
form: {
|
|
|
|
range: 'town'
|
|
|
|
},
|
|
loading: false,
|
|
loading: false,
|
|
exportLoading: false,
|
|
exportLoading: false,
|
|
tableData: [],
|
|
tableData: [],
|
|
tableHeader: [
|
|
tableHeader: [
|
|
{ label: '住院号', prop: 'visitNo', width: '110' },
|
|
|
|
{ label: '病人姓名', prop: 'patientName', width: '90' },
|
|
|
|
{ label: '性别', prop: 'sex', width: '80' },
|
|
|
|
{ label: '手机号', prop: 'mobile', width: '130' },
|
|
|
|
{ label: '身份证号', prop: 'idcard', width: '170' },
|
|
|
|
{ label: '费别', prop: 'rateTypeName', width: '90' },
|
|
|
|
{ label: '建床科室', prop: 'sickVisitDeptName', width: '90' },
|
|
|
|
{ label: '护理等级', prop: 'sickTendLevelName', width: '90' },
|
|
|
|
{ label: '病情', prop: 'sickStateName', width: '110' },
|
|
|
|
{ label: '建床诊断', prop: 'sickDiagnoseCodeName', width: '110' },
|
|
|
|
{ label: '建床日期', prop: 'buildingTime', width: '170' },
|
|
|
|
{ label: '建床天数', prop: 'budildDays', width: '90' },
|
|
|
|
{ label: '撤床日期', prop: 'withdrawalTime', width: '130' },
|
|
|
|
{ label: '撤床诊断', prop: 'bedWithdrawDiagnoseName', width: '130' },
|
|
|
|
{ label: '转归情况', prop: 'turnOver', width: '110' }
|
|
|
|
],
|
|
|
|
dialogShow: false,
|
|
|
|
settlementInfo: {
|
|
|
|
name: '黄小蕾',
|
|
|
|
yibao: 'dk',
|
|
|
|
pay: '1049'
|
|
|
|
},
|
|
|
|
dialogTable: [],
|
|
|
|
dialogHeader: [
|
|
|
|
{ label: '结算时间', prop: 'SETTLE_TIME', width: '160' },
|
|
|
|
{ label: '结算状态', prop: 'SETTLE_STATUS_NAME', width: '80' },
|
|
|
|
{ label: '金额', prop: 'COST', width: '80' },
|
|
|
|
{ label: '自付', prop: 'CHARGE', width: '80' },
|
|
|
|
{ label: '优惠金额', prop: 'PREFER_PAYMENT', width: '80' },
|
|
|
|
{ label: '减免金额', prop: 'DERATE_PAYMENT', width: '80' },
|
|
|
|
{ label: '单位支付', prop: 'COMPANY_PAYMENT', width: '80' },
|
|
|
|
{ label: '医保支付', prop: 'INSUR_PAYMENT', width: '80' },
|
|
|
|
{ label: '结算总预交金', prop: 'SETTLE_SUM_PREPAY', width: '120' },
|
|
|
|
{ label: '结算时收退款', prop: 'SETTLE_SICK_PREPAY', width: '120' },
|
|
|
|
{ label: '结算后余额', prop: 'SETTLE_SICK_BALANCE', width: '120' },
|
|
|
|
{ label: '结算号', prop: 'SETTLE_NO', width: '80' },
|
|
|
|
{ label: '就诊科室', prop: 'VISIT_DEPT_NAME', width: '100' },
|
|
|
|
{ label: '收费科室', prop: 'SETTLE_DEPT_NAME', width: '100' }
|
|
|
|
|
|
{ label: '患者姓名', prop: 'name', width: '100' },
|
|
|
|
{ label: '年龄', prop: 'age', width: '90' },
|
|
|
|
{ label: '性别', prop: 'sex', width: '90' },
|
|
|
|
{ label: '社区医院', prop: 'hospitalName', width: '140' },
|
|
|
|
{ label: '签约医生', prop: 'doctorName', width: '90' },
|
|
|
|
{ label: '预约医院', prop: 'orgName', width: '140' },
|
|
|
|
{ label: '医院医生', prop: 'doctor_name', width: '90' },
|
|
|
|
{ label: '预约科室', prop: 'deptName', width: '140' },
|
|
|
|
{ label: '预约时间', prop: 'startTime', width: '140' },
|
|
|
|
{ label: 'ascvd评估', prop: 'ascvd', width: '90' },
|
|
|
|
{ label: '出院时间', prop: 'createTime', width: '160' },
|
|
|
|
{ label: '随访情况', prop: 'followupInfo', width: '80' },
|
|
|
|
{ label: '血压-收缩压', prop: 'bloodPressure', width: '100' },
|
|
|
|
{ label: '血压-舒张压', prop: 'bloodPressureDown', width: '100' },
|
|
|
|
{ label: 'LDL-C', prop: 'ldlc', width: '100' },
|
|
|
|
{ label: '糖化血红蛋白', prop: 'thxhdb', width: '110' },
|
|
],
|
|
],
|
|
page: 1,
|
|
page: 1,
|
|
size: 10,
|
|
size: 10,
|
|
total: 0
|
|
|
|
|
|
total: 0,
|
|
|
|
level: 0,
|
|
|
|
visible: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
init() {
|
|
|
|
var selectedRole = JSON.parse(sessionStorage.getItem('selectedRole'))
|
|
|
|
if (selectedRole.code.indexOf('350200') > -1) {
|
|
|
|
this.level = 1 // 市卫健委
|
|
|
|
this.areaOptions = [
|
|
|
|
{ label: '思明区', value: '350203' },
|
|
|
|
{ label: '海沧区', value: '350205' },
|
|
|
|
{ label: '湖里区', value: '350206' },
|
|
|
|
{ label: '集美区', value: '350211' },
|
|
|
|
{ label: '同安区', value: '350212' },
|
|
|
|
{ label: '翔安区', value: '350213' }
|
|
|
|
]
|
|
|
|
} else if (selectedRole.code.length == 6) {
|
|
|
|
this.level = 2 // 区管理
|
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
|
|
this.form = {
|
|
|
|
range: 'town',
|
|
|
|
area: selectedRole.code
|
|
|
|
}
|
|
|
|
this.getHospital(selectedRole.code)
|
|
|
|
} else {
|
|
|
|
this.level = 3 // 社区管理
|
|
|
|
this.rangeOptions = [
|
|
|
|
{ label: '医院', value: 'hospital' },
|
|
|
|
{ label: '团队', value: 'team' }
|
|
|
|
]
|
|
|
|
this.areaOptions = [{ label: selectedRole.name.substring(0, 3), value: selectedRole.code }]
|
|
|
|
this.hospital = [{ label: selectedRole.name, value: selectedRole.code }]
|
|
|
|
this.form = {
|
|
|
|
range: 'hospital',
|
|
|
|
area: selectedRole.code.substring(0, 6),
|
|
|
|
hospital: selectedRole.code
|
|
|
|
}
|
|
|
|
this.getTeam(selectedRole.code)
|
|
|
|
}
|
|
|
|
this.initTime()
|
|
|
|
this.getList()
|
|
|
|
},
|
|
initTime() {
|
|
initTime() {
|
|
var vm = this
|
|
var vm = this
|
|
var now = new Date()
|
|
var now = new Date()
|
|
@ -81,6 +115,18 @@ Vue.component('follow-detail', {
|
|
vm.years.push(i)
|
|
vm.years.push(i)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
resetArea() {
|
|
|
|
if (this.level == 1) {
|
|
|
|
delete this.form.area
|
|
|
|
delete this.form.hospital
|
|
|
|
delete this.form.team
|
|
|
|
} else if (this.level == 2) {
|
|
|
|
delete this.form.hospital
|
|
|
|
delete this.form.team
|
|
|
|
} else {
|
|
|
|
delete this.form.team
|
|
|
|
}
|
|
|
|
},
|
|
getList() {
|
|
getList() {
|
|
var vm = this
|
|
var vm = this
|
|
this.loading = true
|
|
this.loading = true
|
|
@ -90,16 +136,16 @@ Vue.component('follow-detail', {
|
|
pageSize: this.size
|
|
pageSize: this.size
|
|
}
|
|
}
|
|
if (this.yearType == '1') {
|
|
if (this.yearType == '1') {
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
} else {
|
|
} else {
|
|
if (this.chooseTime) {
|
|
if (this.chooseTime) {
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
|
params.endDate = this.chooseTime[1]+ ' 23:59'
|
|
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
httpRequest.get('statistics/bed/getFamilyBedRecord', { data: params }).then(function (res) {
|
|
|
|
|
|
httpRequest.get('statistics/collaborate/gxbRehabilitationFollowup', { data: params }).then(function (res) {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
vm.tableData = res.detailModelList
|
|
vm.tableData = res.detailModelList
|
|
vm.total = res.totalCount
|
|
vm.total = res.totalCount
|
|
@ -113,63 +159,58 @@ Vue.component('follow-detail', {
|
|
},
|
|
},
|
|
exportTable() {
|
|
exportTable() {
|
|
var vm = this
|
|
var vm = this
|
|
this.loading = true
|
|
|
|
var params = {
|
|
var params = {
|
|
...this.form,
|
|
...this.form,
|
|
page: this.page,
|
|
page: this.page,
|
|
pageSize: this.size
|
|
pageSize: this.size
|
|
}
|
|
}
|
|
if (this.yearType == '1') {
|
|
if (this.yearType == '1') {
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
|
|
|
params.startDate = this.chooseYear + '-01-01'
|
|
|
|
params.endDate = this.chooseYear + '-12-31'
|
|
} else {
|
|
} else {
|
|
if (this.chooseTime) {
|
|
if (this.chooseTime) {
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
|
params.endDate = this.chooseTime[1]+ ' 23:59'
|
|
|
|
|
|
params.startDate = this.chooseTime[0]
|
|
|
|
params.endDate = this.chooseTime[1]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.exportLoading = true
|
|
this.exportLoading = true
|
|
var fileName = `患者情况${new Date().getTime()}.xls`
|
|
|
|
httpRequest.downLoadFileForAjax('statistics/bed/exportGatientFamilyBedRecordStatistics', fileName, params).then(function () {
|
|
|
|
|
|
var fileName = `康复随访详情${new Date().getTime()}.xls`
|
|
|
|
httpRequest.downLoadFileForAjax('statistics/collaborate/exportGxbRehabilitationFollowup', fileName, params).then(function () {
|
|
vm.exportLoading = false
|
|
vm.exportLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
eliminateClick() {
|
|
eliminateClick() {
|
|
this.form = {}
|
|
|
|
|
|
this.resetArea()
|
|
this.yearType = '1'
|
|
this.yearType = '1'
|
|
this.chooseYear = new Date().getFullYear()
|
|
this.chooseYear = new Date().getFullYear()
|
|
this.chooseTime = null
|
|
this.chooseTime = null
|
|
|
|
delete this.form.isSign
|
|
|
|
delete this.form.name
|
|
|
|
delete this.form.eventType
|
|
|
|
|
|
|
|
this.$forceUpdate()
|
|
},
|
|
},
|
|
closeDialog() {
|
|
|
|
this.dialogShow = false
|
|
|
|
},
|
|
|
|
previewRecord(row) {
|
|
|
|
|
|
getHospital(code) {
|
|
var vm = this
|
|
var vm = this
|
|
this.dialogShow = true
|
|
|
|
vm.dialogTable = []
|
|
|
|
vm.settlementInfo = {}
|
|
|
|
// doctor/familyBed/getFamilyBedSettleRecord?bedRecordCode=008d17ac9111439fab54f27c4e7f8376
|
|
|
|
httpRequest.get('doctor/familyBed/getFamilyBedSettleRecord', { data: { bedRecordCode: row.code } }).then(function (res) {
|
|
|
|
if (res.status == 200) {
|
|
|
|
vm.dialogTable = res.data
|
|
|
|
var pay = 0
|
|
|
|
|
|
|
|
for(var item of res.data){
|
|
|
|
pay += item.COST
|
|
|
|
}
|
|
|
|
vm.settlementInfo = {
|
|
|
|
name: row.patientName,
|
|
|
|
yibao: row.cardNo,
|
|
|
|
pay: pay
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
delete this.form.hospital
|
|
|
|
delete this.form.team
|
|
|
|
var params = {
|
|
|
|
type: 5,
|
|
|
|
code: code
|
|
|
|
}
|
|
|
|
httpRequest.post('common/district', { data: params }).then(function (res) {
|
|
|
|
vm.hospitalOptions = res.list
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getDictData() {
|
|
|
|
|
|
getTeam(code) {
|
|
var vm = this
|
|
var vm = this
|
|
statisticAPI.getDictByDictName({ name: 'jkcopd_disease_conversion' }).then(function (res) {
|
|
|
|
vm.turnOverOptions = [{ value: '全部' }]
|
|
|
|
vm.turnOverOptions = vm.turnOverOptions.concat(res.list)
|
|
|
|
|
|
delete this.form.team
|
|
|
|
var params = {
|
|
|
|
hospital: code
|
|
|
|
}
|
|
|
|
|
|
|
|
httpRequest.get('statisticsExport/teamList', { data: params }).then(function (res) {
|
|
|
|
vm.teamOptions = res.data
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
@ -179,11 +220,16 @@ Vue.component('follow-detail', {
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.size = val
|
|
this.size = val
|
|
this.getList()
|
|
this.getList()
|
|
|
|
},
|
|
|
|
openDialog(scope) {
|
|
|
|
this.visible = true
|
|
|
|
|
|
|
|
},
|
|
|
|
closeDialog() {
|
|
|
|
this.visible = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.initTime()
|
|
|
|
this.getDictData()
|
|
|
|
this.getList()
|
|
|
|
|
|
this.init()
|
|
}
|
|
}
|
|
})
|
|
})
|