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 getMtInspectionList() {
|
return request({
|
'url': '/check/getMtInspectionList?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'
|
}
|
})
|
}
|
|
export function getBadReason() {
|
return request({
|
'url': '/check/getBadReason?userNo=' + uni.getStorageSync('userInfo').code,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|
|
export function generateInfo(checkNo) {
|
return request({
|
'url': '/check/generateInfo?checkNo=' + checkNo,
|
'method': 'post',
|
'header': {
|
'Content-Type': 'application/json',
|
'dataType': 'json',
|
'Accept': 'application/json'
|
}
|
})
|
}
|