You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.0 KiB
43 lines
1.0 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface TeamVO {
|
||
|
code: string
|
||
|
name: string
|
||
|
description: string
|
||
|
members: string
|
||
|
activeTime: Date
|
||
|
expireTime: Date
|
||
|
remark: string
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询班组列表
|
||
|
export const getTeamPage = async (params) => {
|
||
|
return await request.get({ url: `/wms/team/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询班组详情
|
||
|
export const getTeam = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/team/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增班组
|
||
|
export const createTeam = async (data: TeamVO) => {
|
||
|
return await request.post({ url: `/wms/team/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改班组
|
||
|
export const updateTeam = async (data: TeamVO) => {
|
||
|
return await request.put({ url: `/wms/team/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除班组
|
||
|
export const deleteTeam = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/team/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出班组 Excel
|
||
|
export const exportTeam = async (params) => {
|
||
|
return await request.download({ url: `/wms/team/export-excel`, params })
|
||
|
}
|