2023-07-27 15:16:13 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 创建班组基础信息
|
|
|
|
export function createGroupTeam(data) {
|
|
|
|
return request({
|
|
|
|
url: '/base/group-team/create',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 更新班组基础信息
|
|
|
|
export function updateGroupTeam(data) {
|
|
|
|
return request({
|
|
|
|
url: '/base/group-team/update',
|
|
|
|
method: 'put',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除班组基础信息
|
|
|
|
export function deleteGroupTeam(id) {
|
|
|
|
return request({
|
|
|
|
url: '/base/group-team/delete?id=' + id,
|
|
|
|
method: 'delete'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得班组基础信息
|
|
|
|
export function getGroupTeam(id) {
|
|
|
|
return request({
|
|
|
|
url: '/base/group-team/get?id=' + id,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得班组基础信息分页
|
|
|
|
export function getGroupTeamPage(query) {
|
|
|
|
return request({
|
|
|
|
url: '/base/group-team/page',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2023-08-02 09:17:46 +08:00
|
|
|
// 获取班组code
|
|
|
|
export function getCode() {
|
2023-07-27 15:16:13 +08:00
|
|
|
return request({
|
2023-08-02 09:17:46 +08:00
|
|
|
url: '/base/group-team/getCode',
|
|
|
|
method: 'get'
|
2023-07-27 15:16:13 +08:00
|
|
|
})
|
|
|
|
}
|
2023-09-18 08:41:14 +08:00
|
|
|
|
|
|
|
// 获得可用的排班列表
|
|
|
|
export function listEnabled() {
|
|
|
|
return request({
|
|
|
|
url: '/base/group-team/listEnabled',
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
}
|