107 lines
1.9 KiB
JavaScript
107 lines
1.9 KiB
JavaScript
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
|
|
})
|
|
}
|
|
|
|
// 获取班组code
|
|
export function getCode() {
|
|
return request({
|
|
url: '/base/group-team/getCode',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得可用的排班列表
|
|
export function listEnabled() {
|
|
return request({
|
|
url: '/base/group-team/listEnabled',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得班组组员信息分页
|
|
export function groupTeamPage(query) {
|
|
return request({
|
|
url: '/base/group-team-det/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获得班组组员信息
|
|
export function groupTeamDet(query) {
|
|
return request({
|
|
url: '/base/group-team-det/get',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
|
|
// 创建班组组员信息
|
|
export function teamDetCreate(data) {
|
|
return request({
|
|
url: '/base/group-team-det/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新班组组员信息
|
|
export function teamDetUpdate(data) {
|
|
return request({
|
|
url: '/base/group-team-det/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除班组组员信息
|
|
export function teamDetDelete(query) {
|
|
return request({
|
|
url: '/base/group-team-det/delete',
|
|
method: 'delete',
|
|
params: query
|
|
})
|
|
}
|