当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。 在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值, 与NurseBillingAppService中的处理方式保持一致。
95 lines
2.0 KiB
JavaScript
Executable File
95 lines
2.0 KiB
JavaScript
Executable File
import request from '@/utils/request'
|
|
|
|
// 获取今日门诊统计信息
|
|
export function getTodayOutpatientStats() {
|
|
return request({
|
|
url: '/today-outpatient/stats',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 分页查询今日门诊患者列表
|
|
export function getTodayOutpatientPatients(queryParams) {
|
|
return request({
|
|
url: '/today-outpatient/patients',
|
|
method: 'get',
|
|
params: queryParams
|
|
})
|
|
}
|
|
|
|
// 获取今日待就诊患者队列
|
|
export function getWaitingPatients() {
|
|
return request({
|
|
url: '/today-outpatient/patients/waiting',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取今日就诊中患者列表
|
|
export function getInProgressPatients() {
|
|
return request({
|
|
url: '/today-outpatient/patients/in-progress',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取今日已完成就诊患者列表
|
|
export function getCompletedPatients() {
|
|
return request({
|
|
url: '/today-outpatient/patients/completed',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取患者就诊详情
|
|
export function getPatientDetail(encounterId) {
|
|
return request({
|
|
url: `/today-outpatient/patients/${encounterId}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 批量更新患者状态
|
|
export function batchUpdatePatientStatus(encounterIds, targetStatus) {
|
|
return request({
|
|
url: '/today-outpatient/patients/batch-update-status',
|
|
method: 'post',
|
|
params: {
|
|
encounterIds: encounterIds.join(','),
|
|
targetStatus
|
|
}
|
|
})
|
|
}
|
|
|
|
// 接诊患者
|
|
export function receivePatient(encounterId) {
|
|
return request({
|
|
url: `/today-outpatient/patients/${encounterId}/receive`,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 完成就诊
|
|
export function completeVisit(encounterId) {
|
|
return request({
|
|
url: `/today-outpatient/patients/${encounterId}/complete`,
|
|
method: 'post'
|
|
})
|
|
}
|
|
|
|
// 取消就诊
|
|
export function cancelVisit(encounterId, reason) {
|
|
return request({
|
|
url: `/today-outpatient/patients/${encounterId}/cancel`,
|
|
method: 'post',
|
|
params: { reason }
|
|
})
|
|
}
|
|
|
|
// 快速接诊
|
|
export function quickReceivePatient(encounterId) {
|
|
return request({
|
|
url: `/today-outpatient/quick-receive/${encounterId}`,
|
|
method: 'post'
|
|
})
|
|
} |