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.
66 lines
2.0 KiB
66 lines
2.0 KiB
import request from '@/config/axios'
|
|
|
|
export interface InventorymoveJobDetailVO {
|
|
itemCode: string
|
|
itemName: string
|
|
itemDesc1: string
|
|
itemDesc2: string
|
|
projectCode: string
|
|
qty: number
|
|
uom: string
|
|
number: string
|
|
remark: string
|
|
createtime: Date
|
|
creator: string
|
|
packingNumber: string
|
|
containerNumber: string
|
|
batch: string
|
|
inventoryStatus: string
|
|
poNumber: string
|
|
poLine: string
|
|
fromLocationCode: string
|
|
toLocationCode: string
|
|
fromOwnerCode: string
|
|
toOwnerCode: string
|
|
}
|
|
|
|
// 查询库存转移任务子列表
|
|
export const getInventorymoveJobDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/inventorymove-job-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/inventorymove-job-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询库存转移任务子详情
|
|
export const getInventorymoveJobDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/inventorymove-job-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增库存转移任务子
|
|
export const createInventorymoveJobDetail = async (data: InventorymoveJobDetailVO) => {
|
|
return await request.post({ url: `/wms/inventorymove-job-detail/create`, data })
|
|
}
|
|
|
|
// 修改库存转移任务子
|
|
export const updateInventorymoveJobDetail = async (data: InventorymoveJobDetailVO) => {
|
|
return await request.put({ url: `/wms/inventorymove-job-detail/update`, data })
|
|
}
|
|
|
|
// 删除库存转移任务子
|
|
export const deleteInventorymoveJobDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/inventorymove-job-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出库存转移任务子 Excel
|
|
export const exportInventorymoveJobDetail = async (params) => {
|
|
return await request.download({ url: `/wms/inventorymove-job-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/inventorymove-job-detail/get-import-template' })
|
|
}
|