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.
51 lines
1.4 KiB
51 lines
1.4 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ContainerMainVO {
|
||
|
id: string
|
||
|
number: string
|
||
|
type: string
|
||
|
capacity: number
|
||
|
status: string
|
||
|
ownerCode: string
|
||
|
}
|
||
|
|
||
|
// 查询器具主列表
|
||
|
export const getContainerMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/container-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/container-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询器具主详情
|
||
|
export const getContainerMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/container-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增器具主
|
||
|
export const createContainerMain = async (data: ContainerMainVO) => {
|
||
|
return await request.post({ url: `/wms/container-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改器具主
|
||
|
export const updateContainerMain = async (data: ContainerMainVO) => {
|
||
|
return await request.put({ url: `/wms/container-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除器具主
|
||
|
export const deleteContainerMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/container-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出器具主 Excel
|
||
|
export const exportContainerMain = async (params) => {
|
||
|
return await request.download({ url: `/wms/container-main/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/container-main/get-import-template' })
|
||
|
}
|