You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
|
5 days ago
|
import http from '@/http/api.js'
|
||
|
|
// 安全点检-根据设备编码查询点检项@param {string} code 设备编码
|
||
|
|
const getSpotCheckByCode = (code) => {
|
||
|
|
return http.request({
|
||
|
|
url: `/blade-desk/pdaLoad/getSpotCheckByEcCode/${code}`,
|
||
|
|
method: 'GET'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 安全点检-提交点检数据 @param {object} data 提交参数 { sscList: [...] }
|
||
|
|
const saveSpotCheck = (data) => {
|
||
|
|
return http.request({
|
||
|
|
url: '/blade-desk/pdaSave/saveBySpotCheck',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 安全巡检-根据编码查询巡检点 @param {String} code 巡检点编码
|
||
|
|
const getInspectionByCode = (code) => {
|
||
|
|
return http.request({
|
||
|
|
url: `/blade-desk/pdaLoad/getInspectionByEcCode/${code}`,
|
||
|
|
method: 'GET'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 安全巡检-提交巡检数据 @param {object} data 提交参数 { icList: [...] }
|
||
|
|
const saveInspection = (data) => {
|
||
|
|
return http.request({
|
||
|
|
url: '/blade-desk/pdaSave/saveByInspection',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 设备报修-根据设备编码查询设备信息@param {string} deviceCode 设备编码
|
||
|
|
const getEcByDeviceCode = (deviceCode) => {
|
||
|
|
return http.request({
|
||
|
|
url: '/blade-desk/pdaLoad/getEcByDeviceCode',
|
||
|
|
method: 'POST',
|
||
|
|
data: { deviceCode }
|
||
|
|
})
|
||
|
|
}
|
||
|
|
// 设备报修-提交设备报修 @param {object} data 报修数据
|
||
|
|
const saveEqRepair = (data) => {
|
||
|
|
return http.request({
|
||
|
|
url: '/blade-desk/pdaSave/saveEqRepair',
|
||
|
|
method: 'POST',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
export default {
|
||
|
|
getInspectionByCode,
|
||
|
|
saveInspection,
|
||
|
|
getSpotCheckByCode,
|
||
|
|
saveSpotCheck,
|
||
|
|
getEcByDeviceCode,
|
||
|
|
saveEqRepair
|
||
|
|
}
|