2024-03-19 16:38:02 +08:00
|
|
|
import createAxios from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
//查询普测计划-新建页面
|
2024-03-25 20:29:33 +08:00
|
|
|
export function queryPlan(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/queryPlan',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//导出普测计划信息
|
2024-03-25 20:29:33 +08:00
|
|
|
export function exportSurveyPlan(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/exportSurveyPlan',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data,
|
|
|
|
|
responseType: 'blob'
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-04-10 20:33:20 +08:00
|
|
|
//删除普测计划
|
|
|
|
|
export function deletePlan(data: any) {
|
|
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/deletePlan',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data,
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-19 16:38:02 +08:00
|
|
|
//新增
|
2024-03-25 20:29:33 +08:00
|
|
|
export function getGeneratrixByCondition(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/device-boot/pms/generatrixWire/getGeneratrixByCondition',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 获取变电站名称
|
2024-03-25 20:29:33 +08:00
|
|
|
export function getstatationStatList(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/device-boot/pms/statationStat/getstatationStatList',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 新增-修改普测计划
|
2024-03-25 20:29:33 +08:00
|
|
|
export function addPlan(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/addPlan',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询普测计划-审核页面
|
2024-03-25 20:29:33 +08:00
|
|
|
export function queryPlanAudit(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/queryPlanAudit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//查询普测计划-结果页面
|
2024-03-25 20:29:33 +08:00
|
|
|
export function queryPlanResult(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/queryPlanResult',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//下载普测结果报告
|
2024-03-25 20:29:33 +08:00
|
|
|
export function surveyResultDownload(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
2024-03-25 20:29:33 +08:00
|
|
|
url: '/process-boot/rGeneralSurveyPlan/surveyResultDownload',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: data
|
2024-03-19 16:38:02 +08:00
|
|
|
// responseType: 'blob',
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//下载
|
2024-03-25 20:29:33 +08:00
|
|
|
export function downLoadData(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-25 20:29:33 +08:00
|
|
|
export function MultipartFile(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/surveyResultUpload',
|
|
|
|
|
method: 'post',
|
|
|
|
|
headers: { 'Content-Type': 'multipart/form-data' }, //多文件上传这一句必须加
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-25 20:29:33 +08:00
|
|
|
export function initDetpStataionTree(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/initDetpStataionTree',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 普测计划-审核
|
2024-03-25 20:29:33 +08:00
|
|
|
export function checkPlanAudit(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/checkPlanAudit',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
2024-03-25 20:29:33 +08:00
|
|
|
// 占比查询
|
|
|
|
|
export function queryPlanConfig() {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/queryPlanConfig',
|
2024-03-25 20:29:33 +08:00
|
|
|
method: 'post'
|
2024-03-19 16:38:02 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 增加普测计划参数
|
2024-03-25 20:29:33 +08:00
|
|
|
export function addPlanConfig(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/addPlanConfig',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 电站勾选接口
|
2024-03-25 20:29:33 +08:00
|
|
|
export function querySubStatation(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/querySubStatation',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 设置普测周期
|
2024-03-25 20:29:33 +08:00
|
|
|
export function addPlanCycle(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
|
|
|
|
url: '/process-boot/rGeneralSurveyPlan/addPlanCycle',
|
|
|
|
|
method: 'post',
|
|
|
|
|
params: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 批量提交审核
|
2024-04-16 08:41:41 +08:00
|
|
|
export function submitAuditUser(data: any) {
|
2024-03-19 16:38:02 +08:00
|
|
|
return createAxios({
|
2024-04-16 08:41:41 +08:00
|
|
|
url: '/process-boot/rGeneralSurveyPlan/submitAuditUser',
|
2024-03-19 16:38:02 +08:00
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|