location.js
619 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
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',
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',
data: ids
})
}