展杰
2023-11-20 f0afdc84ddfb0798cdcb1ba5ff5b1ee92ed833d4
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
import request from '@/utils/request.js'
 
export function getInspectionList() {
    return request({
        'url': '/check/getCheckList?userNo=' + uni.getStorageSync('userInfo').code,
        'method': 'post',
        'header': {
            'Content-Type': 'application/json',
            'dataType': 'json',
            'Accept': 'application/json'
        }
    })
}
 
export function getFirstInspectionList() {
    return request({
        'url': '/check/getFirstCheckList?userNo=' + uni.getStorageSync('userInfo').code,
        'method': 'post',
        'header': {
            'Content-Type': 'application/json',
            'dataType': 'json',
            'Accept': 'application/json'
        }
    })
}
 
export function getInspectionInfo(checkNo) {
    return request({
        'url': '/check/getCheckInfo?checkNo=' + checkNo,
        'method': 'post',
        'header': {
            'Content-Type': 'application/json',
            'dataType': 'json',
            'Accept': 'application/json'
        }
    })
}
 
export function saveInspectionInfo(checkNo,info,remeke) {
    return request({
        'url': '/check/saveCheckInfo?checkNo=' + checkNo +'&userNo=' + uni.getStorageSync('userInfo').code + '&remeke=' + encodeURIComponent(remeke.replace(/\%/g, '%25').replace(/\ /g,'%20').replace(/\#/g,'%23').replace(/\?/g,'%3F').replace(/\+/g,'%2B').replace(/\//g,'%2F').replace(/\&/g,'%26')),
        'method': 'post',
        'data':info,
        'header': {
            'Content-Type': 'application/json',
            'dataType': 'json',
            'Accept': 'application/json'
        }
    })
}