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
// 产品结构页面接口
import request from "@/utils/request";
 
// 分页查询
export function queryList(id) {
  return request({
    url: "/productStructure/listBybomId/" + id,
    method: "get",
  });
}
 
// 根据BOM ID查询父项产品
export function listByBomIdIsParent(bomId) {
  return request({
    url: "/productStructure/listBybomIdIsParent/" + bomId,
    method: "get",
  });
}
 
export function add(data) {
  return request({
    url: "/productStructure",
    method: "post",
    data: data,
  });
}