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.
86 lines
2.3 KiB
86 lines
2.3 KiB
import request from '@/config/axios'
|
|
|
|
export interface TransferlogVO {
|
|
number: string
|
|
transactionType: string
|
|
worker: string
|
|
businessType: string
|
|
recordNumber: string
|
|
activeTime: Date
|
|
itemCode: string
|
|
uom: string
|
|
qty: number
|
|
altBatch: string
|
|
arriveDate: Date
|
|
produceDate: Date
|
|
expireDate: Date
|
|
fomTransactionNumber: string
|
|
fromPackingNumber: string
|
|
fromBatch: string
|
|
fromInventoryStatus: string
|
|
fromContainerNumber: string
|
|
fromLocationCode: string
|
|
fromWarehouseCode: string
|
|
fromAreaCode: string
|
|
fromLocationGroupCode: string
|
|
fromErpLocationCode: string
|
|
fromOwnerCode: string
|
|
toTransactionNumber: string
|
|
toPackingNumber: string
|
|
toBatch: string
|
|
toInventoryStatus: string
|
|
toContainerNumber: string
|
|
toLocationCode: string
|
|
toWarehouseCode: string
|
|
toAreaCode: string
|
|
toLocationGroupCode: string
|
|
toErpLocationCode: string
|
|
toOwnerCode: string
|
|
}
|
|
|
|
// 查询库存转移日志列表
|
|
export const getTransferlogPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/transferlog/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/transferlog/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询库存转移日志详情
|
|
export const getTransferlog = async (id: number) => {
|
|
return await request.get({ url: `/wms/transferlog/get?id=` + id })
|
|
}
|
|
|
|
// 新增库存转移日志
|
|
export const createTransferlog = async (data: TransferlogVO) => {
|
|
return await request.post({ url: `/wms/transferlog/create`, data })
|
|
}
|
|
|
|
// 修改库存转移日志
|
|
export const updateTransferlog = async (data: TransferlogVO) => {
|
|
return await request.put({ url: `/wms/transferlog/update`, data })
|
|
}
|
|
|
|
// 删除库存转移日志
|
|
export const deleteTransferlog = async (id: number) => {
|
|
return await request.delete({ url: `/wms/transferlog/delete?id=` + id })
|
|
}
|
|
|
|
// 导出库存转移日志 Excel
|
|
export const exportTransferlog = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/transferlog/export-excel-senior', data })
|
|
} else {
|
|
return await request.download({ url: `/wms/transferlog/export-excel`, params })
|
|
}
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/transferlog/get-import-template' })
|
|
}
|