The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。
import http from '@/utils/http/request'
import { PageConfigProps } from '@/types/System/Form'
import { WarehouseProcessingVO, WarehouseProcessingDetailVO } from '@/types/WarehouseWorking/WarehouseProcessing'
// Get list
export const getStockProcessList = (data: PageConfigProps) => http({
url: '/stockprocess/list',
method: 'post',
data
})
// Get all
export const getStockProcessAll = () => http({
url: '/stockprocess/all',
method: 'get'
})
// Get one
export const getStockProcessOne = (id: number) => http({
url: '/stockprocess',
method: 'get',
params: {
id
}
})
// Add a new form
export const addStockProcess = (data: WarehouseProcessingVO) => http({
url: '/stockprocess',
method: 'post',
data
})
// Update form
export const updateStockProcess = (data: WarehouseProcessingVO) => http({
url: '/stockprocess',
method: 'put',
data
})
// Delete form
export const deleteStockProcess = (id: number) => http({
url: '/stockprocess',
method: 'delete',
params: {
id
}
})
// Confirm process
export const confirmProcess = (id: number) => http({
url: '/stockprocess/process-confirm',
method: 'put',
params: {
id
}
})
// Confirm adjustment
export const confirmAdjustment = (id: number) => http({
url: '/stockprocess/adjustment-confirm',
method: 'put',
params: {
id
}
})