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

111 lines
2.1 KiB
JavaScript
Executable File

import request from '@/utils/request'
// 查询公告列表
export function listNotice(query) {
return request({
url: '/system/notice/list',
method: 'get',
params: query
})
}
// 获取公开的公告列表(给普通用户使用)
export function getPublicNoticeList(query) {
return request({
url: '/system/notice/public/list',
method: 'get',
params: query
})
}
// 获取当前用户的通知列表
export function getUserNotices() {
return request({
url: '/system/notice/public/notice',
method: 'get'
})
}
// 查询公告详细
export function getNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'get'
})
}
// 新增公告
export function addNotice(data) {
return request({
url: '/system/notice',
method: 'post',
data: data
})
}
// 修改公告
export function updateNotice(data) {
return request({
url: '/system/notice',
method: 'put',
data: data
})
}
// 删除公告
export function delNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'delete'
})
}
// 发布公告
export function publishNotice(noticeId) {
return request({
url: '/system/notice/publish/' + noticeId,
method: 'put'
})
}
// 取消发布公告
export function unpublishNotice(noticeId) {
return request({
url: '/system/notice/unpublish/' + noticeId,
method: 'put'
})
}
// 获取未读公告/通知数量
export function getUnreadCount() {
return request({
url: '/system/notice/public/unread/count',
method: 'get'
})
}
// 标记公告/通知为已读
export function markAsRead(noticeId) {
return request({
url: '/system/notice/public/read/' + noticeId,
method: 'post'
})
}
// 批量标记公告/通知为已读
export function markAllAsRead(noticeIds) {
return request({
url: '/system/notice/public/read/all',
method: 'post',
data: noticeIds
})
}
// 获取用户已读公告/通知ID列表
export function getReadNoticeIds() {
return request({
url: '/system/notice/public/read/ids',
method: 'get'
})
}