yuyu
2023-08-08 0d452c10ee16e40a3ca3d176e5ebebcb4bd16a87
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
46
47
48
49
50
51
52
53
54
import request from '@/utils/request'
 
export function getMaterialList(params) {
  return request({
    url: '/material/list',
    method: 'get',
    params
  })
}
 
// 获取所有项目
export function getProductList(params) {
  return request({
    url: '/product/page',
    method: 'get',
    params
  })
}
 
// 获取所有父项目对应的子项目
export function getProductSonList(params) {
  return request({
    url: '/product/father',
    method: 'get',
    params
  })
}
 
// 添加物料
export function addMaterial(data) {
  return request({
    url: '/material/add',
    method: 'post',
    data
  })
}
 
// 添加标准
export function addStandards(data) {
  return request({
    url: '/standards/add',
    method: 'post',
    data
  })
}
 
// 添加规格
export function addSpecifications(data) {
  return request({
    url: '/specifications/add',
    method: 'post',
    data
  })
}