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 { CategoryVO } from '@/types/Base/CommodityCategorySetting'
// Get all
export const getCategoryAll = () => http({
url: '/category/all',
method: 'get'
})
// Add a new form
export const addCategory = (data: CategoryVO) => http({
url: '/category',
method: 'post',
data
})
// Update form
export const updateCategory = (data: CategoryVO) => http({
url: '/category',
method: 'put',
data
})
// Delete form
export const deleteCategory = (id: number) => http({
url: '/category',
method: 'delete',
params: {
id
}
})