Blame view

src/api/config/InventoryInfo/bomheader.js 799 Bytes
yuanshuhui authored
1
2
3
4
5
import request from '@/utils/request'

//查询商品主表项列表
export function queryHeaderList(bom) {
  return request({
6
    url: '/config/bomHeader/list',
7
    method: 'post',
yuanshuhui authored
8
9
10
11
12
13
14
    params: bom
  })
}

//增加商品主表项
export function addHeader(newBom) {
  return request({
15
    url: '/config/bomHeader',
yuanshuhui authored
16
17
18
19
20
21
22
23
    method: 'post',
    data: newBom
  })
}

//修改商品主表项
export function editHeader(newBom) {
  return request({
24
    url: '/config/bomHeader',
yuanshuhui authored
25
26
27
28
29
30
31
32
    method: 'put',
    data: newBom
  })
}

//删除商品主表项
export function removeHeader(ids) {
  return request({
33
    url: '/config/bomHeader',
34
35
    method: 'post',
    data: ids
yuanshuhui authored
36
37
  })
}
lector authored
38
lector authored
39
40
41
42
43
44
45
//根据id取商品主表
export function getById(id) {
  return request({
    url: '/config/bomHeader/'+id,
    method: 'get'
  })
}