liuleilei
2023-09-11 faf1d3cc35a3a5f83558946c8056537a4d77fa1f
minipro_standard/util/api/QualityAPI.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,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.post(`/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.post(`/ext/deviceExt/${id}`)
}
// export function getsbInfo (id: any): Promise<any> {
//     return httpRequest({
//         url: `ext/deviceExt/${id}`,
//         method: 'get'
//     })
// }