bomdetail.js
769 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 queryDetailList(bom) {
return request({
url: '/config/bom',
method: 'get',
params: bom
})
}
//增加商品明细项
export function addDetail(newBom) {
return request({
url: '/config/bom',
method: 'post',
data: newBom
})
}
//修改商品明细项
export function editDetail(newBom) {
return request({
url: '/config/bom',
method: 'put',
data: newBom
})
}
//删除商品明细项
export function removeDetail(ids) {
return request({
url: '/config/bom',
method: 'delete',
params: {ids}
})
}
//根据id取商品明细
export function getById(id) {
return request({
url: '/config/bom/'+id,
method: 'get'
})
}