Files
his/openhis-ui-vue3/src/views/appoinmentmanage/deptManage/api.js
zhangfei 9c3e603b94 Fix Bug #443: 手术计费:点击签发耗材时异常报错
当手术计费弹窗中点击"签发"耗材时,因耗材的locationId(发放库房)为空导致后端异常。
在DoctorStationAdviceAppServiceImpl.handDevice方法中,当locationId为null时,使用登录用户的科室ID作为默认值,
与NurseBillingAppService中的处理方式保持一致。
2026-05-08 09:14:18 +08:00

125 lines
2.5 KiB
JavaScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '@/utils/request'
/**
* 添加医生排班
* @param {Object} data - 排班数据
* @returns {Promise}
*/
export function addDoctorSchedule(data) {
return request({
url: '/doctor-schedule/add',
method: 'post',
data: data
})
}
/**
* 添加医生排班(带具体日期)
* @param {Object} data - 排班数据
* @returns {Promise}
*/
export function addDoctorScheduleWithDate(data) {
return request({
url: '/doctor-schedule/add-with-date',
method: 'post',
data: data
})
}
/**
* 更新医生排班
* @param {Object} data - 排班数据 (必须包含ID)
* @returns {Promise}
*/
export function updateDoctorSchedule(data) {
return request({
url: '/doctor-schedule/update',
method: 'put',
data: data
})
}
/**
* 删除医生排班
* @param {String|Number} id - 排班记录ID
* @returns {Promise}
*/
export function deleteDoctorSchedule(id) {
return request({
url: '/doctor-schedule/delete/' + id,
method: 'delete'
})
}
/**
* 批量保存医生排班
* @param {Array} data - 排班数据数组
* @returns {Promise}
*/
export function batchSaveDoctorSchedule(data) {
return request({
url: '/doctor-schedule/batch-save',
method: 'post',
data: data
})
}
/**
* 获取挂号科室列表
* @param {Object} params - 查询参数
* @returns {Promise}
*/
export function getRegisterOrganizations(params) {
return request({
url: '/base-data-manage/organization/register-organizations',
method: 'get',
params
})
}
/**
* 获取医生排班列表
* @returns {Promise}
*/
export function getDoctorScheduleList() {
return request({
url: '/doctor-schedule/list',
method: 'get'
})
}
/**
* 根据科室ID获取医生排班列表
* @param {Number} deptId - 科室ID
* @returns {Promise}
*/
export function getDoctorScheduleListByDeptId(deptId) {
return request({
url: `/doctor-schedule/list-by-dept/${deptId}`,
method: 'get',
params: {
_t: new Date().getTime() // 添加时间戳防止GET请求缓存
}
})
}
/**
* 根据科室ID和日期范围获取医生排班列表
* @param {Number} deptId - 科室ID
* @param {String} startDate - 开始日期
* @param {String} endDate - 结束日期
* @returns {Promise}
*/
export function getDoctorScheduleListByDeptIdAndDateRange(deptId, startDate, endDate) {
return request({
url: `/doctor-schedule/list-by-dept-and-date`,
method: 'get',
params: {
deptId,
startDate,
endDate,
_t: new Date().getTime() // 添加时间戳防止GET请求缓存
}
})
}