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.
52 lines
1.5 KiB
52 lines
1.5 KiB
import request from '@/config/axios'
|
|
|
|
export interface ContainerDetailVO {
|
|
containerContentType: string
|
|
contentNumber: string
|
|
itemCode: string
|
|
batch: string
|
|
inventoryStatus: string
|
|
uom: string
|
|
qty: number
|
|
}
|
|
|
|
// 查询器具子列表
|
|
export const getContainerDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/container-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/container-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询器具子详情
|
|
export const getContainerDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/container-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增器具子
|
|
export const createContainerDetail = async (data: ContainerDetailVO) => {
|
|
return await request.post({ url: `/wms/container-detail/create`, data })
|
|
}
|
|
|
|
// 修改器具子
|
|
export const updateContainerDetail = async (data: ContainerDetailVO) => {
|
|
return await request.put({ url: `/wms/container-detail/update`, data })
|
|
}
|
|
|
|
// 删除器具子
|
|
export const deleteContainerDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/container-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出器具子 Excel
|
|
export const exportContainerDetail = async (params) => {
|
|
return await request.download({ url: `/wms/container-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/container-detail/get-import-template' })
|
|
}
|