jiangping
2023-08-17 8d7cb8876ac222eca1c82d5bab250f5551531edb
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
import httpRequest from '@/utils/request'
 
// 分页查询
export function getList(data: any): Promise<any> {
    return httpRequest({
        url: '/ext/workorderExt/page',
        method: 'post',
        data
    })
}
 
// 工单统计列表数量
export function pageCount(data: any): Promise<any> {
    return httpRequest({
        url: '/ext/workorderExt/pageCount',
        method: 'post',
        data
    })
}
 
// 根据ID查询
export function queryById(id: any): Promise<any> {
    return httpRequest({
        url: `ext/workorderExt/${id}`,
        method: 'get'
    })
}
 
// 分类组合接口2
export function checkAllList(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/categoryUnionExt/checkAllList',
        method: 'post',
        data
    })
}
 
// 根据用户查询 - 设备列表
export function getListByUser (): Promise<any> {
    return httpRequest({
        url: 'ext/userDeviceExt/getListByUser',
        method: 'post'
    })
}
 
// 查询当前用户所有主组织下的工序
export function warehouseList(data: any): Promise<any> {
  return httpRequest({
      url: '/ext/warehouseExt/page',
      method: 'post',
      data
  })
}
 
// 完工入库详情
export function finishedDetail (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderExt/finishedDetail',
        method: 'get',
        params
    })
}
 
// 根据条件查询工装
export function getListByCondition(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/appliancesExt/getListByCondition',
        method: 'post',
        data
    })
}
 
// 新建投料
export function createMaterial(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/createMaterial',
        method: 'post',
        data
    })
}
 
// 新建投料 - 标准版
export function createMaterialStandard(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/createMaterialStandard',
        method: 'post',
        data
    })
}
 
// 获取扫描条码内容
export function getBarcodeContent(params: any): Promise<any> {
    return httpRequest({
        url: 'ext/barcodeParamExt/getBarcodeContent',
        method: 'get',
        params
    })
}
 
// 查询全部工单生产过程记录
export function getOrocessRecord(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/all',
        method: 'post',
        data
    })
}
 
// 工装器具根据ID查询
export function toolingQueryById(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/appliancesExt/getListByCondition',
        method: 'post',
        data
    })
}
 
// 新建产出
export function createProduce(data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/createProduce',
        method: 'post',
        data
    })
}
 
// 删除产出/投料单条记录
export function deleteCT (id: any): Promise<any> {
    return httpRequest({
        url: `/ext/workorderRecordExt/delete/${id}`,
        method: 'get'
    })
}
 
// 根据ID修改产出-投料数量
export function updateById (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/updateById',
        method: 'post',
        data
    })
}
 
// 根据篮筐分组统计报废和不良数量
export function listGroupByAppliance (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderCheckExt/listGroupByAppliance',
        method: 'post',
        data
    })
}
 
// 确认报工
export function comfirmDone (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/comfirmDone',
        method: 'post',
        data
    })
}
 
// 确认报工 - 标准版
export function comfirmDoneStandard (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/comfirmDoneStandard',
        method: 'post',
        data
    })
}
 
// 根据条件查询所有的检点属性
export function getJdList (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/checkAttrExt/getListByCondition',
        method: 'post',
        data
    })
}
 
// 新建点检
export function createDJ (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderCheckAttrExt/create',
        method: 'post',
        data
    })
}
 
// 点检分页查询
export function pageDJ (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderCheckAttrExt/page',
        method: 'post',
        data
    })
}
 
// 完工入库提交
export function finished (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderExt/finished',
        method: 'get',
        params
    })
}
 
// 完工入库详情记录
export function saveFinishRecord (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderExt/saveFinishRecord',
        method: 'post',
        data
    })
}
 
// 完工入库详情记录 --- 待办进入
export function getFinishRecord (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderExt/getFinishRecord',
        method: 'get',
        params
    })
}
 
// 根据ID查询设备详情
export function getSbInfo (id: any): Promise<any> {
    return httpRequest({
        url: `ext/deviceExt/${id}`,
        method: 'get'
    })
}
 
// 据入库货位筛选入库单 - H5
export function finishedInBill (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/wOutboundExt/finishedInBill',
        method: 'get',
        params
    })
}
 
// 用户绑定设备
export function bindingDevice (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/userDeviceExt/create',
        method: 'post',
        data
    })
}
 
// 工装分页查询
export function toolingList (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/appliancesExt/page',
        method: 'post',
        data
    })
}
 
// 更换篮筐
export function chageApplicance (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/appliancesExt/chageApplicance',
        method: 'post',
        data
    })
}
 
// 申请单,返工返修申请不良原因
export function checkFGFXList (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/categoryUnionExt/checkFGFXList',
        method: 'get',
        params
    })
}
 
// 查询公司级全部
export function allData (data: any): Promise<any> {
    return httpRequest({
        url: 'business/salesorder/allData',
        method: 'post',
        data
    })
}
 
// 根据ID查询工序
export function getGXItem (id: any): Promise<any> {
    return httpRequest({
        url: `ext/proceduresExt/${id}`,
        method: 'get'
    })
}
 
// 新建返工返修申请单
export function createSingle (data: any): Promise<any> {
    return httpRequest({
        url: 'business/backorder/create',
        method: 'post',
        data
    })
}
 
// 查询当前用户所有主组织下的工序
export function productesGroup (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/proceduresExt/productesGroup',
        method: 'post',
        data
    })
}
 
// 申请单分页查询
export function sqdCage (data: any): Promise<any> {
    return httpRequest({
        url: 'business/backorder/page',
        method: 'post',
        data
    })
}
 
// 申请单根据id查询详细
export function getsqdInfo (id: any): Promise<any> {
    return httpRequest({
        url: `business/backorder/${id}`,
        method: 'get'
    })
}
 
// 申请单---根据工厂id查询工序
export function productesGroups (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/proceduresExt/productesGroup',
        method: 'post',
        data
    })
}
 
// 完工入库详情 - NEW
export function finishedDetailNew (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderExt/finishedDetailNew',
        method: 'get',
        params
    })
}
 
// 根据工单查询工艺卡
export function getListByWorkOrderId (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/routeCardExt/getListByWorkOrderId',
        method: 'post',
        data
    })
}
 
// 终检工装扫描
export function getEndCheckAP (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/getEndCheckAP',
        method: 'get',
        params
    })
}
 
// 根据ID查询设备
export function deletedj (id: any): Promise<any> {
    return httpRequest({
        url: `ext/workorderCheckAttrExt/delete/${id}`,
        method: 'get'
    })
}
 
// 库存量查询 - H5
export function pageForH5 (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/wStockExt/pageForH5',
        method: 'post',
        data
    })
}
 
// 货位分页查询
export function pageHW (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/warehouseLocationExt/page',
        method: 'post',
        data
    })
}
 
// 根据仓库查询仓库下货位信息
export function getListByWarehouseId (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/warehouseLocationExt/getListByWarehouseId',
        method: 'get',
        params
    })
}
 
// 手工转库 - H5
export function scanTransfer (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/wTransferExt/scanTransfer',
        method: 'post',
        data
    })
}
 
// 查询全部 - 标准
export function allForStandard (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/allForStandard',
        method: 'post',
        data
    })
}
 
// 生成投料记录 - standard
export function dealWorkorderRecordStandard (data: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/dealWorkorderRecordStandard',
        method: 'post',
        data
    })
}
 
// 查询产出记录列表
export function getWorkorderRecordListStandard (params: any): Promise<any> {
    return httpRequest({
        url: 'ext/workorderRecordExt/getWorkorderRecordListStandard',
        method: 'get',
        params
    })
}
 
/***
 * 根据ID查询工装信息
 * @param id
 */
export function getGzInfo (id: any): Promise<any> {
    return httpRequest({
        url: `ext/appliancesExt/${id}`,
        method: 'get'
    })
}
 
/**
 * 确认备料详情
 * @param params id: 转库id
 * @returns
 */
 export function wTransferConfirm(params: any): Promise<any> {
  return httpRequest({
      url:  '/ext/wTransferExt/wTransferConfirm',
      method: 'get',
      params
  })
}
 
/**
* 接受备料
* @param params id: id
* @returns
*/
export function acceptWTransfer(params: any): Promise<any> {
  return httpRequest({
      url:  '/ext/wTransferExt/acceptWTransfer',
      method: 'get',
      params
  })
}