bug
jiangping
2023-12-06 1f4e7d0f73a73e7350cf5a1df279d5f30904c5d5
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
const request = uni.$u.http
 
// 分页查询
export function page (data) {
  return request.post('/ext/workorderCheckExt/page', data)
}
// export function page(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/workorderCheckExt/page',
//         method: 'post',
//         data
//     })
// }
 
// 创建检验
export function createJY (data) {
  return request.post('/ext/workorderCheckExt/create', data)
}
// export function createJY(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/workorderCheckExt/create',
//         method: 'post',
//         data
//     })
// }
 
// 创建检验--改
export function createStandard (data) {
  return request.post('/ext/workorderCheckExt/createStandard', data)
}
// export function createStandard(data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/workorderCheckExt/createStandard',
//         method: 'post',
//         data
//     })
// }
 
// 根据ID查询
export function getBYid (id) {
  return request.get(`/ext/workorderCheckExt/${id}`)
}
// export function getBYid(id: any): Promise<any> {
//     return httpRequest({
//         url: `/ext/workorderCheckExt/${id}`,
//         method: 'get'
//     })
// }
 
// 获取出入库信息
export function findById (id) {
  return request.post(`/ext/wOutboundExt/findById?id=${id}`)
}
// export function findById(id: Number): Promise<any> {
//     return httpRequest({
//         url: `/ext/wOutboundExt/findById?id=${id}`,
//         method: 'get'
//     })
// }
 
// 生产终检数据提交
export function upload (data) {
  return request.post('/ext/endCheckExt/upload', data)
}
// export function upload (data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/endCheckExt/upload',
//         method: 'post',
//         data
//     })
// }
 
// 生产终检数据提交
export function uploadTest (data) {
  return request.post('/ext/endCheckExt/uploadEndCheckNew', data)
}
// export function uploadTest (data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/endCheckExt/uploadEndCheckNew',
//         method: 'post',
//         data
//     })
// }
 
// 巡检记录创建
export function saveBean (data) {
  return request.post('/ext/deviceCheckExt/saveBean', data)
}
// export function saveBean (data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/deviceCheckExt/saveBean',
//         method: 'post',
//         data
//     })
// }
 
// 获取权限范围内的设备数据
export function getDeviceByCondition (data) {
  return request.post('/ext/deviceExt/getDeviceByCondition', data)
}
// export function getDeviceByCondition (data: any): Promise<any> {
//     return httpRequest({
//         url: 'ext/deviceExt/getDeviceByCondition',
//         method: 'post',
//         data
//     })
// }
 
// 根据ID查询设备
export function getsbInfo (id) {
  return request.get(`/ext/deviceExt/${id}`)
}
// export function getsbInfo (id: any): Promise<any> {
//     return httpRequest({
//         url: `ext/deviceExt/${id}`,
//         method: 'get'
//     })
// }