64 lines
1.7 KiB
TypeScript
64 lines
1.7 KiB
TypeScript
![]() |
import request from '@/config/axios'
|
||
|
|
||
|
export interface StorageVO {
|
||
|
id: number
|
||
|
stockType: number
|
||
|
stockInType: number
|
||
|
stockOutType: number
|
||
|
stockNo: string
|
||
|
headerNo: number
|
||
|
description: string
|
||
|
status: number
|
||
|
whId: number
|
||
|
keeper: number
|
||
|
keeperTime: Date
|
||
|
outbound: number
|
||
|
outboundTime: Date
|
||
|
cancel: number
|
||
|
cancelTime: Date
|
||
|
pickmode: string
|
||
|
pickmcar: string
|
||
|
projectSubName: string
|
||
|
}
|
||
|
|
||
|
// 查询入/出库分页
|
||
|
export const getStoragePage = async (params) => {
|
||
|
return await request.get({ url: `/heli/storage/page`, params })
|
||
|
}
|
||
|
|
||
|
// 查询入/出库详情
|
||
|
export const getStorage = async (id: number) => {
|
||
|
return await request.get({ url: `/heli/storage/get?id=` + id })
|
||
|
}
|
||
|
// 查询某个编码所有库存量
|
||
|
export const getStorageAll = async (id: number) => {
|
||
|
return await request.get({ url: `/heli/storage/getStorageAll?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增入/出库
|
||
|
export const createStorage = async (data: StorageVO) => {
|
||
|
return await request.post({ url: `/heli/storage/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改入/出库
|
||
|
export const updateStorage = async (data: StorageVO) => {
|
||
|
return await request.put({ url: `/heli/storage/update`, data })
|
||
|
}
|
||
|
// 修改入/出库--审核
|
||
|
export const updateStorageok = async (data: StorageVO) => {
|
||
|
return await request.put({ url: `/heli/storage/updateok`, data })
|
||
|
}
|
||
|
// 修改入/出库
|
||
|
export const updateStorageStatus = async (data: StorageVO) => {
|
||
|
return await request.put({ url: `/heli/storage/update-status`, data })
|
||
|
}
|
||
|
// 删除入/出库
|
||
|
export const deleteStorage = async (id: number) => {
|
||
|
return await request.delete({ url: `/heli/storage/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出入/出库 Excel
|
||
|
export const exportStorage = async (params) => {
|
||
|
return await request.download({ url: `/heli/storage/export-excel`, params })
|
||
|
}
|