Blame view

src/api/config/InventoryInfo/location.js 949 Bytes
yuanshuhui authored
1
2
import request from '@/utils/request'
lector authored
3
//查询库位列表
yuanshuhui authored
4
5
6
7
8
9
10
11
export function queryList(location) {
  return request({
    url: '/config/location/list',
    method: 'get',
    params: location
  })
}
lector authored
12
//增加库位
yuanshuhui authored
13
14
export function add(location) {
  return request({
lector authored
15
    url: '/config/location/add',
yuanshuhui authored
16
17
18
19
20
    method: 'post',
    data: location
  })
}
lector authored
21
//修改库位
yuanshuhui authored
22
23
24
25
26
27
28
29
export function edit(location) {
  return request({
    url: '/config/location',
    method: 'put',
    data: location
  })
}
lector authored
30
//删除库位
yuanshuhui authored
31
32
33
34
export function remove(ids) {
  return request({
    url: '/config/location',
    method: 'delete',
35
    params: {ids:ids}
yuanshuhui authored
36
37
  })
}
38
lector authored
39
//批量新增库位
40
41
42
43
44
45
46
47
export function addBatchSave(locationInfo) {
  return request({
    url:'/location/addBatchSave',
    method:'post',
    data:locationInfo
  })

}
48
49
50
51
52
53
54
55

//库位利用率
export function getLocationProp() {
  return request({
    url:'/config/location/home/getLocationProp',
    method:'get',
  })
56
}