locationCapacity.js 836 Bytes
import request from '@/utils/request'

//查询物料列表
export function queryList(locationCapacity) {
  return request({
    url: '/config/locationCapacity',
    method: 'get',
    params: locationCapacity
  })
}

//增加物料
export function add(locationCapacity) {
  return request({
    url: '/config/locationCapacity',
    method: 'post',
    data: locationCapacity
  })
}

//修改物料
export function edit(locationCapacity) {
  return request({
    url: '/config/locationCapacity',
    method: 'put',
    data: locationCapacity
  })
}

//删除物料
export function remove(ids) {
  return request({
    url: '/config/locationCapacity',
    method: 'delete',
    params: {ids:ids}
  })
}

//根据id取库位容量
export function getById(id) {
  return request({
    url:'/locationCapacity/'+id,
    method:'get'
  })

}