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.
56 lines
1.5 KiB
56 lines
1.5 KiB
1 year ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface ExpectoutVO {
|
||
|
jobNumber: string
|
||
|
businessType: string
|
||
|
packingNumber: string
|
||
|
itemCode: string
|
||
|
batch: string
|
||
|
inventoryStatus: string
|
||
|
uom: string
|
||
|
qty: number
|
||
|
locationCode: string
|
||
|
warehouseCode: string
|
||
|
ownerCode: string
|
||
|
}
|
||
|
|
||
|
// 查询预计出库存列表
|
||
|
export const getExpectoutPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/expectout/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/expectout/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询预计出库存详情
|
||
|
export const getExpectout = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/expectout/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增预计出库存
|
||
|
export const createExpectout = async (data: ExpectoutVO) => {
|
||
|
return await request.post({ url: `/wms/expectout/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改预计出库存
|
||
|
export const updateExpectout = async (data: ExpectoutVO) => {
|
||
|
return await request.put({ url: `/wms/expectout/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除预计出库存
|
||
|
export const deleteExpectout = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/expectout/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出预计出库存 Excel
|
||
|
export const exportExpectout = async (params) => {
|
||
|
return await request.download({ url: `/wms/expectout/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/expectout/get-import-template' })
|
||
|
}
|