zss
2023-11-17 2518e47a3ac999978fbf14612c967c3bbf421d25
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
import request from '@/router/axios'
 
export function fetchListApply(query) {
  return request({
    url: '/mes/apply/page',
    method: 'get',
    params: query
  })
}
 
export function addApply(obj) {
  return request({
    url: '/mes/apply',
    method: 'post',
    data: obj
  })
}
 
export function getApply(id) {
  return request({
    url: '/mes/apply/' + id,
    method: 'get'
  })
}
 
export function delApply(id) {
  return request({
    url: '/mes/apply/' + id,
    method: 'delete'
  })
}
 
export function putApply(obj) {
  return request({
    url: '/mes/apply',
    method: 'put',
    data: obj
  })
}
 
/**
 * 查询汇报的材料
 * @param query
 */
export function fetchOutputList(query) {
  return request({
    url: '/mes/product/getOutputList',
    method: 'get',
    params: query
  })
}
 
export function getOutputListByScan(query) {
  return request({
    url: '/mes/product/getOutputListByScan',
    method: 'get',
    params: query
  })
}
 
export function fetchOutputLists(query) {
  return request({
    url: '/mes/segmentationTaskRecord/page',
    method: 'get',
    params: query
  })
}
export function fetchListApplyPartAll(query) {
  return request({
    url: '/mes/applyPart/list',
    method: 'get',
    params: query
  })
}
 
export function fetchListApplyPart(query) {
  return request({
    url: '/mes/applyPart/page',
    method: 'get',
    params: query
  })
}
 
export function fetchListApplyPartForReport(query) {
  return request({
    url: '/mes/applyPart/page/forReport',
    method: 'get',
    params: query
  })
}
 
export function fetchListApplyPartForUnqualified(query) {
  return request({
    url: '/mes/applyPart/page/forUnqualified',
    method: 'get',
    params: query
  })
}
 
export function addApplyPart(obj) {
  return request({
    url: '/mes/applyPart',
    method: 'post',
    data: obj
  })
}
 
export function delApplyPart(id) {
  return request({
    url: '/mes/applyPart/' + id,
    method: 'delete'
  })
}
 
export function delApplyPartForReport(id) {
  return request({
    url: '/mes/applyPart/forReport/' + id,
    method: 'delete'
  })
}
 
export function batchUpdateApplyPart(obj, type) {
  return request({
    url: '/mes/applyPart/batch/' + type,
    method: 'put',
    data: obj
  })
}
 
export function getApplyPart(id) {
  return request({
    url: '/mes/applyPart/' + id,
    method: 'get'
  })
}
 
export function getStock() {
  return request({
    url: '/mes/apply/getStock',
    method: 'get'
  })
}
 
export function saveApply(obj) {
  return request({
    url: '/mes/applyPart/erp',
    method: 'post',
    data: obj
  })
}
export function synchronizationErp(obj) {
  return request({
    url: '/mes/applyPart/synchronizationErp',
    method: 'post',
    data: obj
  })
}
 
export function findTestStandardNoBySystemNo(systemNo) {
  return request({
    url: '/mes/applyPart/findTestStandardNoBySystemNo/' + systemNo,
    method: 'get'
  })
}
// 质检合格率统计报表
export function getQualityCheckRate(params) {
  return request({
    url: '/mes/applyPart/getQualityCheckRate/',
    method: 'get',
    params: params
  })
}
export function getQualityCheckRatePicture(params) {
  return request({
    url: '/mes/applyPart/getQualityCheckRatePicture/',
    method: 'post',
    data: params
  })
}