loulijun2021
2022-10-12 e2b3ff7e1f71a5ff5c9ffb86a759a040b7206b51
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
import request from '@/utils/request'
 
// 存货类型接口
export function StockTypeSelect() {
  return request({
    url: 'ProductModel/StockTypeSelect',
    method: 'get'
  })
}
 
// 物料类型查询
export function MaterialTypeSearch(data) {
  return request({
    url: 'ProductModel/MaterialTypeSearch',
    method: 'get',
    params: data
  })
}
 
// 物料类型新增编辑
export function AddUpdateMaterialType(data) {
  return request({
    url: 'ProductModel/AddUpdateMaterialType',
    method: 'post',
    data
  })
}
 
// 物料类型删除
export function DeleteMaterialType(data) {
  return request({
    url: 'ProductModel/DeleteMaterialType',
    method: 'post',
    params: data
  })
}
 
// 单位列表查询
export function UomSearch(data) {
  return request({
    url: 'ProductModel/UomSearch',
    method: 'get',
    params: data
  })
}
 
// 单位新增
export function UomAdd(data) {
  return request({
    url: 'ProductModel/UomAdd',
    method: 'post',
    data
  })
}
 
// 单位删除
export function UomDelete(data) {
  return request({
    url: 'ProductModel/UomDelete',
    method: 'post',
    params: data
  })
}
 
// 存类型查找物料类型
export function StockTypeSelectMaterialType(data) {
  return request({
    url: 'ProductModel/StockTypeSelectMaterialType',
    method: 'get',
    params: data
  })
}
 
// 存货档案查询
export function InventoryFileSelect(data) {
  return request({
    url: 'ProductModel/InventoryFileSelect',
    method: 'get',
    params: data
  })
}
 
// 存货档案新增编辑
export function AddUpdateInventoryFile(data) {
  return request({
    url: 'ProductModel/AddUpdateInventoryFile',
    method: 'post',
    data
  })
}
 
// 存货档案删除
export function DeleteInventoryFile(data) {
  return request({
    url: 'ProductModel/DeleteInventoryFile',
    method: 'post',
    params: data
  })
}
 
// 存货档案关联工艺路线查询
export function InventoryFileAssociationRoute(data) {
  return request({
    url: 'ProductModel/InventoryFileAssociationRoute',
    method: 'get',
    params: data
  })
}
 
// 存货档案关联工艺路线提交
export function SaveInventoryFile(partcode, defaultroute_code, data) {
  return request({
    url: 'ProductModel/SaveInventoryFile?partcode=' + partcode + '&defaultroute_code=' + defaultroute_code,
    method: 'post',
    data
  })
}
 
// 工艺路线查询
export function RouteSearch(data) {
  return request({
    url: 'ProductModel/RouteSearch',
    method: 'get',
    params: data
  })
}
 
// 工艺路线预览
export function ViewRoute(data) {
  return request({
    url: 'ProductModel/ViewRoute',
    method: 'get',
    params: data
  })
}
 
// 工艺路线新增编辑
export function AddUpdateRoute(id, opertype, data) {
  return request({
    url: 'ProductModel/AddUpdateRoute?id=' + id + '&opertype=' + opertype,
    method: 'post',
    data
  })
}
 
// 工艺路线删除
export function DeleteRoute(data) {
  return request({
    url: 'ProductModel/DeleteRoute',
    method: 'post',
    params: data
  })
}
 
// 工序查询
export function StepSearch(data) {
  return request({
    url: 'ProductModel/StepSearch',
    method: 'get',
    params: data
  })
}
 
// 工序新增编辑
export function AddUpdateStep(data) {
  return request({
    url: 'ProductModel/AddUpdateStep',
    method: 'post',
    data
  })
}
 
// 工序删除
export function DeleteStep(data) {
  return request({
    url: 'ProductModel/DeleteStep',
    method: 'post',
    params: data
  })
}
 
// 工序定义关联工作站查询
export function StepAssociationEqp(data) {
  return request({
    url: 'ProductModel/StepAssociationEqp',
    method: 'get',
    params: data
  })
}
 
// 工序定义关联工作站提交
export function SaveStepAssociationEqp(stepcode, data) {
  return request({
    url: 'ProductModel/SaveStepAssociationEqp?stepcode=' + stepcode,
    method: 'post',
    data
  })
}
 
// 工序关联缺陷查询
export function StepAssociationDefect(data) {
  return request({
    url: 'ProductModel/StepAssociationDefect',
    method: 'get',
    params: data
  })
}
 
// 工序关联缺陷提交
export function SaveStepAssociationDefect(stepcode, data) {
  return request({
    url: 'ProductModel/SaveStepAssociationDefect?stepcode=' + stepcode,
    method: 'post',
    data
  })
}
 
// 产品信息下拉框查询
export function PartSelect() {
  return request({
    url: 'ProductModel/PartSelect',
    method: 'get'
  })
}
 
// 产品编码查找工艺路线下拉框
export function PartSelectRpute(data) {
  return request({
    url: 'ProductModel/PartSelectRpute',
    method: 'get',
    params: data
  })
}
 
// 根据工艺路线编码查找关联工序集合
export function RouteSelectStep(data) {
  return request({
    url: 'ProductModel/RouteSelectStep',
    method: 'get',
    params: data
  })
}
 
// 根据工序线编码查找关联设备集合
export function StepSelectEqp(data) {
  return request({
    url: 'ProductModel/StepSelectEqp',
    method: 'get',
    params: data
  })
}
 
// 根据工序线编码查找关联设备列表集合
export function StepSelectEqpList(data) {
  return request({
    url: 'ProductModel/StepSelectEqpList',
    method: 'get',
    params: data
  })
}
 
// 节拍工价查询
export function BeatRateSearch(data) {
  return request({
    url: 'ProductModel/BeatRateSearch',
    method: 'get',
    params: data
  })
}
 
// 节拍工价提交
export function SaveBeatRate(data) {
  return request({
    url: 'ProductModel/SaveBeatRate',
    method: 'post',
    data
  })
}
 
// 节拍工价删除
export function DeleteBeatRate(data) {
  return request({
    url: 'ProductModel/DeleteBeatRate',
    method: 'post',
    params: data
  })
}
 
// 存货档案使用单位下拉
export function UomSelect() {
  return request({
    url: 'ProductModel/UomSelect',
    method: 'get'
  })
}
 
// 工艺路线工艺设置下拉
export function StepSelect() {
  return request({
    url: 'ProductModel/StepSelect',
    method: 'get'
  })
}
 
// 物料清单主列表查询
export function BoIventorySelect(data) {
  return request({
    url: 'ProductModel/BoIventorySelect',
    method: 'get',
    params: data
  })
}
 
// 物料清单编辑显示及预览
export function BoIventorySelectView(data) {
  return request({
    url: 'ProductModel/BoIventorySelectView',
    method: 'get',
    params: data
  })
}
// 物料清单新增/编辑提交
export function AddUpdateBoIventory(data) {
  return request({
    url: 'ProductModel/AddUpdateBoIventory',
    method: 'post',
    data
  })
}
// 物料清单新增时获取最大版本号
export function MaterielDetailedVsion(data) {
  return request({
    url: 'ProductModel/MaterielDetailedVsion',
    method: 'get',
    params: data
  })
}
// 物料清单删除
export function DeleteBoIventory(data) {
  return request({
    url: 'ProductModel/DeleteBoIventory',
    method: 'post',
    params: data
  })
}