bomheader.js
799 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
import request from '@/utils/request'
//查询商品主表项列表
export function queryHeaderList(bom) {
return request({
url: '/config/bomHeader/list',
method: 'post',
params: bom
})
}
//增加商品主表项
export function addHeader(newBom) {
return request({
url: '/config/bomHeader',
method: 'post',
data: newBom
})
}
//修改商品主表项
export function editHeader(newBom) {
return request({
url: '/config/bomHeader',
method: 'put',
data: newBom
})
}
//删除商品主表项
export function removeHeader(ids) {
return request({
url: '/config/bomHeader',
method: 'post',
data: ids
})
}
//根据id取商品主表
export function getById(id) {
return request({
url: '/config/bomHeader/'+id,
method: 'get'
})
}