|
@ -20,26 +20,27 @@ Vue.component('patient-situation', {
|
|
|
yearType: '1',
|
|
|
chooseYear: null,
|
|
|
chooseTime: null,
|
|
|
turnStatus: null,
|
|
|
turnStatusOptions: [],
|
|
|
name: '',
|
|
|
turnOverOptions: [],
|
|
|
form: {},
|
|
|
loading: false,
|
|
|
exportLoading: false,
|
|
|
tableData: [],
|
|
|
tableHeader: [
|
|
|
{ label: '住院号', prop: 'a' },
|
|
|
{ label: '病人姓名', prop: 'b' },
|
|
|
{ label: '性别', prop: 'c' },
|
|
|
{ label: '手机号', prop: 'd' },
|
|
|
{ label: '身份证号', prop: 'e' },
|
|
|
{ label: '费别', prop: 'a' },
|
|
|
{ label: '建床科室', prop: 'a' },
|
|
|
{ label: '护理等级', prop: 'a' },
|
|
|
{ label: '病情', prop: 'a' },
|
|
|
{ label: '建床诊断', prop: 'a' },
|
|
|
{ label: '建床日期', prop: 'a' },
|
|
|
{ label: '建床天数', prop: 'a' },
|
|
|
{ label: '撤床日期', prop: 'a' },
|
|
|
{ label: '撤床诊断', prop: 'a' },
|
|
|
{ label: '转归情况', prop: 'a' }
|
|
|
{ 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: {
|
|
@ -49,21 +50,24 @@ Vue.component('patient-situation', {
|
|
|
},
|
|
|
dialogTable: [],
|
|
|
dialogHeader: [
|
|
|
{ label: '结算时间', prop: 'a', width: '120' },
|
|
|
{ label: '结算状态', prop: 'a', width: '80' },
|
|
|
{ label: '金额', prop: 'a', width: '80' },
|
|
|
{ label: '自付', prop: 'a', width: '80' },
|
|
|
{ label: '优惠金额', prop: 'a', width: '80' },
|
|
|
{ label: '减免金额', prop: 'a', width: '80' },
|
|
|
{ label: '单位支付', prop: 'a', width: '80' },
|
|
|
{ label: '医保支付', prop: 'a', width: '80' },
|
|
|
{ label: '结算总预交金', prop: 'a', width: '120' },
|
|
|
{ label: '结算时收退款', prop: 'a', width: '120' },
|
|
|
{ label: '结算后余额', prop: 'a', width: '120' },
|
|
|
{ label: '结算号', prop: 'a', width: '80' },
|
|
|
{ label: '就诊科室', prop: 'a', width: '80' },
|
|
|
{ label: '收费科室', prop: 'a', width: '80' }
|
|
|
]
|
|
|
{ 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' }
|
|
|
],
|
|
|
page: 1,
|
|
|
size: 10,
|
|
|
total: 0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@ -77,11 +81,61 @@ Vue.component('patient-situation', {
|
|
|
vm.years.push(i)
|
|
|
}
|
|
|
},
|
|
|
queryDate() {},
|
|
|
exportTable() {},
|
|
|
getList() {
|
|
|
var vm = this
|
|
|
this.loading = true
|
|
|
var params = {
|
|
|
...this.form,
|
|
|
page: this.page,
|
|
|
pageSize: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
params.endDate = this.chooseTime[1]+ ' 23:59'
|
|
|
}
|
|
|
}
|
|
|
|
|
|
httpRequest.get('statistics/bed/getFamilyBedRecord', { data: params }).then(function (res) {
|
|
|
if (res.status == 200) {
|
|
|
vm.tableData = res.detailModelList
|
|
|
vm.total = res.totalCount
|
|
|
}
|
|
|
vm.loading = false
|
|
|
})
|
|
|
},
|
|
|
queryDate() {
|
|
|
this.page = 1
|
|
|
this.getList()
|
|
|
},
|
|
|
exportTable() {
|
|
|
var vm = this
|
|
|
this.loading = true
|
|
|
var params = {
|
|
|
...this.form,
|
|
|
page: this.page,
|
|
|
pageSize: this.size
|
|
|
}
|
|
|
if (this.yearType == '1') {
|
|
|
params.startDate = this.chooseYear + '-01-01 00:00'
|
|
|
params.endDate = this.chooseYear + '-12-31 23:59'
|
|
|
} else {
|
|
|
if (this.chooseTime) {
|
|
|
params.startDate = this.chooseTime[0] + ' 00:00'
|
|
|
params.endDate = this.chooseTime[1]+ ' 23:59'
|
|
|
}
|
|
|
}
|
|
|
this.exportLoading = true
|
|
|
var fileName = `患者情况${new Date().getTime()}.xls`
|
|
|
httpRequest.downLoadFileForAjax('statistics/bed/exportGatientFamilyBedRecordStatistics', fileName, params).then(function () {
|
|
|
vm.exportLoading = false
|
|
|
})
|
|
|
},
|
|
|
eliminateClick() {
|
|
|
this.turnStatus = null
|
|
|
this.name = ''
|
|
|
this.form = {}
|
|
|
this.yearType = '1'
|
|
|
this.chooseYear = new Date().getFullYear()
|
|
|
this.chooseTime = null
|
|
@ -90,18 +144,46 @@ Vue.component('patient-situation', {
|
|
|
this.dialogShow = false
|
|
|
},
|
|
|
previewRecord(row) {
|
|
|
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
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getDictData() {
|
|
|
var vm = this
|
|
|
statisticAPI.getDictByDictName({ name: 'jkcopd_disease_conversion' }).then(function (res) {
|
|
|
vm.turnStatusOptions = [{ label: '全部', value: '' }]
|
|
|
vm.turnStatusOptions = vm.turnStatusOptions.concat(res.list)
|
|
|
vm.turnOverOptions = [{ value: '全部' }]
|
|
|
vm.turnOverOptions = vm.turnOverOptions.concat(res.list)
|
|
|
})
|
|
|
},
|
|
|
handleCurrentChange(val) {
|
|
|
this.page = val
|
|
|
this.getList()
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
this.size = val
|
|
|
this.getList()
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
this.initTime()
|
|
|
this.getDictData()
|
|
|
this.getList()
|
|
|
}
|
|
|
})
|