| 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}`, data) | 
| } | 
| // 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}`, data) | 
| } | 
| // 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 getBYid (id) { | 
|   return request.post(`/ext/deviceExt/${id}`, data) | 
| } | 
| // export function getsbInfo (id: any): Promise<any> { | 
| //     return httpRequest({ | 
| //         url: `ext/deviceExt/${id}`, | 
| //         method: 'get' | 
| //     }) | 
| // } |