consumable_allocation.js 943 字节
import request from '@/utils/request'

// 查询易耗品调拨列表
export function listConsumable_allocation(query) {
  return request({
    url: '/admin/yhp/consumable_allocation/list',
    method: 'get',
    params: query
  })
}

// 查询易耗品调拨详细
export function getConsumable_allocation(id) {
  return request({
    url: '/admin/yhp/consumable_allocation/' + id,
    method: 'get'
  })
}

// 新增易耗品调拨
export function addConsumable_allocation(data) {
  return request({
    url: '/admin/yhp/consumable_allocation',
    method: 'post',
    data: data
  })
}

// 修改易耗品调拨
export function updateConsumable_allocation(data) {
  return request({
    url: '/admin/yhp/consumable_allocation',
    method: 'put',
    data: data
  })
}

// 删除易耗品调拨
export function delConsumable_allocation(id) {
  return request({
    url: '/admin/yhp/consumable_allocation/' + id,
    method: 'delete'
  })
}