import request from '@/utils/request'
|
|
// 查询服务组列表
|
export function listServiceGroup(query) {
|
return request({
|
url: '/system/serviceGroup/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询服务组详细
|
export function getServiceGroup(groupId) {
|
return request({
|
url: '/system/serviceGroup/' + groupId,
|
method: 'get'
|
})
|
}
|
|
// 新增服务组
|
export function addServiceGroup(data) {
|
return request({
|
url: '/system/serviceGroup',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改服务组
|
export function updateServiceGroup(data) {
|
return request({
|
url: '/system/serviceGroup',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除服务组
|
export function delServiceGroup(groupId) {
|
return request({
|
url: '/system/serviceGroup/' + groupId,
|
method: 'delete'
|
})
|
}
|
|
// 查询服务组关联的任务列表
|
export function getGroupTasks(groupId) {
|
return request({
|
url: '/system/serviceGroup/' + groupId + '/tasks',
|
method: 'get'
|
})
|
}
|
|
// 查询服务组关联的患者列表
|
export function getGroupPatients(groupId) {
|
return request({
|
url: '/system/serviceGroup/' + groupId + '/patients',
|
method: 'get'
|
})
|
}
|
|
// 关联任务到服务组
|
export function addTaskToGroup(data) {
|
return request({
|
url: '/system/serviceGroup/tasks',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 从服务组移除任务
|
export function removeTaskFromGroup(groupId, taskId) {
|
return request({
|
url: '/system/serviceGroup/' + groupId + '/tasks/' + taskId,
|
method: 'delete'
|
})
|
}
|
|
// 关联患者到服务组
|
export function addPatientToGroup(data) {
|
return request({
|
url: '/system/serviceGroup/patients',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 从服务组移除患者
|
export function removePatientFromGroup(groupId, patientId) {
|
return request({
|
url: '/system/serviceGroup/' + groupId + '/patients/' + patientId,
|
method: 'delete'
|
})
|
}
|