shelf.js 932 Bytes
Newer Older
lanbaoming's avatar
lanbaoming committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
import request from '@/utils/request'

// 创建货架
export function createShelf(data) {
  return request({
    url: '/ecw/shelf/create',
    method: 'post',
    data: data
  })
}

// 更新货架
export function updateShelf(data) {
  return request({
    url: '/ecw/shelf/update',
    method: 'put',
    data: data
  })
}

// 删除货架
export function deleteShelf(id) {
  return request({
    url: '/ecw/shelf/delete?id=' + id,
    method: 'delete'
  })
}

// 获得货架
export function getShelf(id) {
  return request({
    url: '/ecw/shelf/get?id=' + id,
    method: 'get'
  })
}

// 获得货架分页
export function getShelfPage(query) {
  return request({
    url: '/ecw/shelf/page',
    method: 'get',
    params: query
  })
}

// 导出货架 Excel
export function exportShelfExcel(query) {
  return request({
    url: '/ecw/shelf/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}