Skip to content

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。

966 B
Raw Blame
import http from '@/utils/http/request'
import { PageConfigProps } from '@/types/System/Form'
import { SupplierVO, SupplierExcelVO } from '@/types/Base/Supplier'

// Get all
export const getSupplierAll = () => http({
    url: '/supplier/all',
    method: 'get'
  })

// Find Data by Pagination
export const getSupplierList = (data: PageConfigProps) => http({
    url: '/supplier/list',
    method: 'post',
    data
  })

// Add a new form
export const addSupplier = (data: SupplierVO) => http({
    url: '/supplier',
    method: 'post',
    data
  })

// Update form
export const updateSupplier = (data: SupplierVO) => http({
    url: '/supplier',
    method: 'put',
    data
  })

// Delete form
export const deleteSupplier = (id: number) => http({
    url: '/supplier',
    method: 'delete',
    params: {
      id
    }
  })

// Excel Import
export const excelImport = (data: Array<SupplierExcelVO>) => http({
  url: '/supplier/excel',
  method: 'post',
  data
})