|
@ -22,53 +22,53 @@ export const getDeviceMaintenanceMainPage = async (params) => { |
|
|
if (params.isSearch) { |
|
|
if (params.isSearch) { |
|
|
delete params.isSearch |
|
|
delete params.isSearch |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/eam/device-maintenance-main/senior', data }) |
|
|
return await request.post({ url: '/eam/device-maintenance-job-main/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/eam/device-maintenance-main/page`, params }) |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/page`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询维修工单主详情
|
|
|
// 查询维修工单主详情
|
|
|
export const getDeviceMaintenanceMain = async (id: number) => { |
|
|
export const getDeviceMaintenanceMain = async (id: number) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-main/get?id=` + id }) |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/get?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 新增维修工单主
|
|
|
// 新增维修工单主
|
|
|
export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { |
|
|
export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { |
|
|
return await request.post({ url: `/eam/device-maintenance-main/createPC`, data }) |
|
|
return await request.post({ url: `/eam/device-maintenance-job-main/createPC`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改维修工单主
|
|
|
// 修改维修工单主
|
|
|
export const updateDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { |
|
|
export const updateDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { |
|
|
return await request.put({ url: `/eam/device-maintenance-main/update`, data }) |
|
|
return await request.put({ url: `/eam/device-maintenance-job-main/update`, data }) |
|
|
} |
|
|
} |
|
|
// 删除维修工单主
|
|
|
// 删除维修工单主
|
|
|
export const deleteDeviceMaintenanceMain = async (id: number) => { |
|
|
export const deleteDeviceMaintenanceMain = async (id: number) => { |
|
|
return await request.delete({ url: `/eam/device-maintenance-main/delete?id=` + id }) |
|
|
return await request.delete({ url: `/eam/device-maintenance-job-main/delete?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导出维修工单主 Excel
|
|
|
// 导出维修工单主 Excel
|
|
|
export const exportDeviceMaintenanceMain = async (params) => { |
|
|
export const exportDeviceMaintenanceMain = async (params) => { |
|
|
return await request.download({ url: `/eam/device-maintenance-main/export-excel`, params }) |
|
|
return await request.download({ url: `/eam/device-maintenance-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/eam/device-maintenance-main/get-import-template' }) |
|
|
return request.download({ url: '/eam/device-maintenance-job-main/get-import-template' }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改维修工单主
|
|
|
// 修改维修工单主
|
|
|
export const orderStepChange = async (data: DeviceMaintenanceMainVO) => { |
|
|
export const orderStepChange = async (data: DeviceMaintenanceMainVO) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改维修工单主
|
|
|
// 修改维修工单主
|
|
|
export const orderTurnTo = async (data: DeviceMaintenanceMainVO) => { |
|
|
export const orderTurnTo = async (data: DeviceMaintenanceMainVO) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询维修工单主列表不分页
|
|
|
// 查询维修工单主列表不分页
|
|
|
export const getDeviceMainTempList = async (type: String) => { |
|
|
export const getDeviceMainTempList = async (type: String) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-main/getList?type=` + type }) |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/getList?type=` + type }) |
|
|
} |
|
|
} |
|
|