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.
76 lines
2.3 KiB
76 lines
2.3 KiB
import request from '@/config/axios'
|
|
|
|
export interface InventorymoveRecordDetailVO {
|
|
onTheWayLocationCode: string
|
|
fromOwnerCode: string
|
|
fromPackingNumber: string
|
|
fromContainerNumber: string
|
|
fromBatch: string
|
|
fromLocationCode: string
|
|
fromLocationGroupCode: string
|
|
fromAreaCode: string
|
|
fromInventoryStatus: string
|
|
toOwnerCode: string
|
|
toPackingNumber: string
|
|
toContainerNumber: string
|
|
toBatch: string
|
|
toLocationCode: string
|
|
toLocationGroupCode: string
|
|
toAreaCode: string
|
|
toInventoryStatus: string
|
|
itemName: string
|
|
itemDesc1: string
|
|
itemDesc2: string
|
|
projectCode: string
|
|
qty: number
|
|
uom: string
|
|
code: string
|
|
interfaceType: string
|
|
number: string
|
|
itemCode: string
|
|
remark: string
|
|
createTime: Date
|
|
creator: string
|
|
jobDetailId: string
|
|
}
|
|
|
|
// 查询库存转移记录子列表
|
|
export const getInventorymoveRecordDetailPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/inventorymove-record-detail/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/inventorymove-record-detail/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询库存转移记录子详情
|
|
export const getInventorymoveRecordDetail = async (id: number) => {
|
|
return await request.get({ url: `/wms/inventorymove-record-detail/get?id=` + id })
|
|
}
|
|
|
|
// 新增库存转移记录子
|
|
export const createInventorymoveRecordDetail = async (data: InventorymoveRecordDetailVO) => {
|
|
return await request.post({ url: `/wms/inventorymove-record-detail/create`, data })
|
|
}
|
|
|
|
// 修改库存转移记录子
|
|
export const updateInventorymoveRecordDetail = async (data: InventorymoveRecordDetailVO) => {
|
|
return await request.put({ url: `/wms/inventorymove-record-detail/update`, data })
|
|
}
|
|
|
|
// 删除库存转移记录子
|
|
export const deleteInventorymoveRecordDetail = async (id: number) => {
|
|
return await request.delete({ url: `/wms/inventorymove-record-detail/delete?id=` + id })
|
|
}
|
|
|
|
// 导出库存转移记录子 Excel
|
|
export const exportInventorymoveRecordDetail = async (params) => {
|
|
return await request.download({ url: `/wms/inventorymove-record-detail/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/inventorymove-record-detail/get-import-template' })
|
|
}
|