yudao-dev/src/api/base/groupTeamScheduling.js

28 lines
614 B
JavaScript
Raw Normal View History

2023-07-27 15:16:13 +08:00
import request from '@/utils/request'
2023-09-18 08:41:14 +08:00
// 获取某月预排班-已有排班
export function getPreset(query) {
2023-07-27 15:16:13 +08:00
return request({
2023-09-18 08:41:14 +08:00
url: '/base/group-team-scheduling/getPreset',
method: 'get',
params: query
2023-07-27 15:16:13 +08:00
})
}
2023-09-18 08:41:14 +08:00
// 批量创建-更新排班信息
export function createOrUpdateList(data) {
2023-07-27 15:16:13 +08:00
return request({
2023-09-18 08:41:14 +08:00
url: '/base/group-team-scheduling/createOrUpdateList',
method: 'post',
2023-07-27 15:16:13 +08:00
data: data
})
}
2023-09-18 08:41:14 +08:00
// 自动排班,填充上月已有的排班
2023-09-20 16:57:20 +08:00
export function autoSet(query) {
2023-07-27 15:16:13 +08:00
return request({
2023-09-18 08:41:14 +08:00
url: '/base/group-team-scheduling/autoSet',
2023-09-20 16:57:20 +08:00
method: 'get',
params: query
2023-07-27 15:16:13 +08:00
})
2023-09-18 08:41:14 +08:00
}