hailin
2023-07-21 17e62da2a097844b0f6f7a58926e7d0a40598d2c
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
import request from '@/utils/request'
 
// 查询所有标准数据
export function getStandardsList() {
  return request({
    url: '/standards/list',
    method: 'get'
  })
}
 
// 分页查询所有标准数据
export function getStandardsListOfPage(params) {
  return request({
    url: '/standards/list_page',
    method: 'get',
    params
  })
}
 
// 添加类型
export function addStandards() {
  return request({
    url: '/standards/add',
    method: 'get'
  })
}
 
// 根据标准查询所有型号 参数IdOrNameOfSerialNumber, standardsId
export function getSerialNumberList(params) {
  return request({
    url: '/serial-number/list',
    method: 'get',
    params
  })
}
 
// 添加型号
export function addSerialNumber() {
  return request({
    url: '/serial-number/add',
    method: 'get'
  })
}
 
// 根据型号查询所有产品规格 参数serialNumberId, specificationsName
export function getSpecificationsList(params) {
  return request({
    url: '/specifications/list',
    method: 'get',
    params
  })
}
 
// 添加产品规格
export function addSpecifications() {
  return request({
    url: '/specifications/add',
    method: 'get'
  })
}
 
// 规格详情页接口
 
// 根据规格id查询所有物料 specificationsId
export function getMaterialList(params) {
  return request({
    url: '/material/list',
    method: 'get',
    params
  })
}
 
// 根据物料id,获取对应的物料详情
export function getMaterialDetail(params) {
  return request({
    url: '/material/list_id',
    method: 'get',
    params
  })
}
 
// 添加物料
export function addMaterial(data) {
  return request({
    url: '/material/add',
    method: 'post',
    data
  })
}
 
// 编辑物料信息
export function updateMaterial(data) {
  return request({
    url: '/material/update',
    method: 'put',
    data
  })
}
 
// 删除物料信息
export function deleteMaterial(data) {
  return request({
    url: '/material/delete',
    method: 'delete',
    data
  })
}
 
// 根据物料id查询所有标准分类 specificationsId
export function getProductList(params) {
  return request({
    url: '/product/list',
    method: 'get',
    params
  })
}
 
// 添加标准分类
export function addProduct(data) {
  return request({
    url: '/product/add',
    method: 'post',
    data
  })
}
 
// 查询标准分类详情,对应的标准详情
export function getProductProductId(params) {
  return request({
    url: '/product/productId',
    method: 'get',
    params
  })
}
 
// 编辑子项目信息
export function updateProduct(data) {
  return request({
    url: '/product/update',
    method: 'put',
    data
  })
}
 
// 删除子项目信息
export function deleteProduct(data) {
  return request({
    url: '/product/delete',
    method: 'delete',
    data
  })
}