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。

986 B
Raw Blame
import http from '@/utils/http/request'
import { PageConfigProps } from '@/types/System/Form'
import { WarehouseMoveVO } from '@/types/WarehouseWorking/WarehouseMove'

// Get list
export const getStockMoveList = (data: PageConfigProps) => http({
    url: '/stockmove/list',
    method: 'post',
    data
  })

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

// Get one
export const getStockMoveOne = (id: number) => http({
    url: '/stockmove',
    method: 'get',
    params: {
      id
    }
  })

// Add a new form
export const addStockMove = (data: WarehouseMoveVO) => http({
    url: '/stockmove',
    method: 'post',
    data
  })

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

// Confirm move
export const confirmMove = (id: number) => http({
    url: '/stockmove',
    method: 'put',
    params: {
      id
    }
  })