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