warehouseAreaPosition.js 1.11 KB
Newer Older
wanglianghe's avatar
wanglianghe committed
1 2
import request from '@/utils/request'

wanglianghe's avatar
wanglianghe committed
3
// 创建储位
wanglianghe's avatar
wanglianghe committed
4 5 6 7 8 9 10 11
export function createWarehouseAreaPosition(data) {
  return request({
    url: '/ecw/warehouse-area-position/create',
    method: 'post',
    data: data
  })
}

wanglianghe's avatar
wanglianghe committed
12
// 更新储位
wanglianghe's avatar
wanglianghe committed
13 14 15 16 17 18 19 20
export function updateWarehouseAreaPosition(data) {
  return request({
    url: '/ecw/warehouse-area-position/update',
    method: 'put',
    data: data
  })
}

wanglianghe's avatar
wanglianghe committed
21
// 删除储位
wanglianghe's avatar
wanglianghe committed
22 23 24 25 26 27 28
export function deleteWarehouseAreaPosition(id) {
  return request({
    url: '/ecw/warehouse-area-position/delete?id=' + id,
    method: 'delete'
  })
}

wanglianghe's avatar
wanglianghe committed
29
// 获得储位
wanglianghe's avatar
wanglianghe committed
30 31 32 33 34 35 36
export function getWarehouseAreaPosition(id) {
  return request({
    url: '/ecw/warehouse-area-position/get?id=' + id,
    method: 'get'
  })
}

wanglianghe's avatar
wanglianghe committed
37
// 获得储位分页
wanglianghe's avatar
wanglianghe committed
38 39 40 41 42 43 44 45
export function getWarehouseAreaPositionPage(query) {
  return request({
    url: '/ecw/warehouse-area-position/page',
    method: 'get',
    params: query
  })
}

wanglianghe's avatar
wanglianghe committed
46
// 导出储位 Excel
wanglianghe's avatar
wanglianghe committed
47 48 49 50 51 52 53 54
export function exportWarehouseAreaPositionExcel(query) {
  return request({
    url: '/ecw/warehouse-area-position/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}