location.js
949 Bytes
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
55
56
import request from '@/utils/request'
//查询库位列表
export function queryList(location) {
return request({
url: '/config/location/list',
method: 'get',
params: location
})
}
//增加库位
export function add(location) {
return request({
url: '/config/location/add',
method: 'post',
data: location
})
}
//修改库位
export function edit(location) {
return request({
url: '/config/location',
method: 'put',
data: location
})
}
//删除库位
export function remove(ids) {
return request({
url: '/config/location',
method: 'delete',
params: {ids:ids}
})
}
//批量新增库位
export function addBatchSave(locationInfo) {
return request({
url:'/location/addBatchSave',
method:'post',
data:locationInfo
})
}
//库位利用率
export function getLocationProp() {
return request({
url:'/config/location/home/getLocationProp',
method:'get',
})
}