王震
2023-12-07 75e035a10a0faeff6b2ec4b9fcbf98d1536274f2
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
import request from '@/router/axios'
 
export function getRawInspectList(query) {
  return request({
    url: '/mes/rawInspect/page',
    method: 'get',
    params: query
  })
}
 
export function selectDevice() {
  return request({
    url: '/mes/rawInsProduct/selectDevice',
    method: 'get',
  })
}
 
export function addRawInspects(data) {
  return request({
    url: '/mes/rawInspect/addRawInspects',
    method: 'post',
    data: data
  })
}
 
export function getObj(data) {
  return request({
    url: '/mes/rawInspect/'+data,
    method: 'get',
  })
}
 
export function downloadReport(data) {
  return request({
    url: '/mes/rawInspect/downloadReport',
    method: 'post',
    data: data,
    responseType: 'blob',
  })
}
 
export function delObj(data) {
  return request({
    url: '/mes/rawInspect/'+data,
    method: 'delete'
  })
}
 
export function updateRawInsProduct(data) {
  return request({
    url: '/mes/rawInsProduct/updaterawInsProduct',
    method: 'post',
    params: data
  })
}
 
export function updateRawInspectsById(data) {
  return request({
    url: '/mes/rawInspect/updateRawInspectsById/'+data.id,
    method: 'post',
    params: data
  })
}
 
export function updateDeviceById(data) {
  return request({
    url: '/mes/rawInsProduct/updateDevByRpId',
    method: 'post',
    params: data
  })
}
 
export function chooseIFS(data) {
  return request({
    url: '/mes/rawInspect/chooseIFS',
    method: 'post',
    params: data
  })
}
 
// export function selectHisByCode(data) {
//   return request({
//     url: '/mes/rawInsProduct/seleHisByCode',
//     method: 'get',
//     params: data
//   })
// }
 
export function exportRawMaterial(data) {
  return request({
    url: '/mes/rawInspect/export',
    method: 'get',
    responseType: 'blob',
    params: data
  })
}