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.
57 lines
1.9 KiB
57 lines
1.9 KiB
2 years ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ContainerUnbindRecordDetailVO {
|
||
|
id: number
|
||
|
containerContentType: string
|
||
|
contentNumber: string
|
||
|
itemCode: string
|
||
|
batch: string
|
||
|
inventoryStatus: string
|
||
|
uom: string
|
||
|
qty: number
|
||
|
masterId: number
|
||
|
number: string
|
||
|
siteId: string
|
||
|
remark: string
|
||
|
}
|
||
|
|
||
|
// 查询器具解绑记录子列表
|
||
|
export const getContainerUnbindRecordDetailPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/container-unbind-record-detail/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/container-unbind-record-detail/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询器具解绑记录子详情
|
||
|
export const getContainerUnbindRecordDetail = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/container-unbind-record-detail/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增器具解绑记录子
|
||
|
export const createContainerUnbindRecordDetail = async (data: ContainerUnbindRecordDetailVO) => {
|
||
|
return await request.post({ url: `/wms/container-unbind-record-detail/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改器具解绑记录子
|
||
|
export const updateContainerUnbindRecordDetail = async (data: ContainerUnbindRecordDetailVO) => {
|
||
|
return await request.put({ url: `/wms/container-unbind-record-detail/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除器具解绑记录子
|
||
|
export const deleteContainerUnbindRecordDetail = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/container-unbind-record-detail/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出器具解绑记录子 Excel
|
||
|
export const exportContainerUnbindRecordDetail = async (params) => {
|
||
|
return await request.download({ url: `/wms/container-unbind-record-detail/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/container-unbind-record-detail/get-import-template' })
|
||
|
}
|