import request from '@/utils/request'

// 查询产成品入库列表
export function listInventory(query) {
  return request({
    url: '/system/inventory/list',
    method: 'get',
    params: query
  })
}

// 查询产成品入库详细
export function getInventory(主键) {
  return request({
    url: '/system/inventory/' + 主键,
    method: 'get'
  })
}

// 新增产成品入库
export function addInventory(data) {
  return request({
    url: '/system/inventory',
    method: 'post',
    data: data
  })
}

// 修改产成品入库
export function updateInventory(data) {
  return request({
    url: '/system/inventory',
    method: 'put',
    data: data
  })
}

// 删除产成品入库
export function delInventory(主键) {
  return request({
    url: '/system/inventory/' + 主键,
    method: 'delete'
  })
}
