|
@ -22,71 +22,71 @@ export const getMoldMaintenanceMainPage = 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-job-main/senior', data }) |
|
|
return await request.post({ url: '/eam/mold-maintenance-job-main/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/page`, params }) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/page`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 查询维修工单主详情
|
|
|
// 查询维修工单主详情
|
|
|
export const getMoldMaintenanceMain = async (id: number) => { |
|
|
export const getMoldMaintenanceMain = async (id: number) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/get?id=` + id }) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/get?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 新增维修工单主
|
|
|
// 新增维修工单主
|
|
|
export const createMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { |
|
|
export const createMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { |
|
|
return await request.post({ url: `/eam/device-maintenance-job-main/createPC`, data }) |
|
|
return await request.post({ url: `/eam/mold-maintenance-job-main/createPC`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改维修工单主
|
|
|
// 修改维修工单主
|
|
|
export const updateMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { |
|
|
export const updateMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => { |
|
|
return await request.put({ url: `/eam/device-maintenance-job-main/update`, data }) |
|
|
return await request.put({ url: `/eam/mold-maintenance-job-main/update`, data }) |
|
|
} |
|
|
} |
|
|
// 删除维修工单主
|
|
|
// 删除维修工单主
|
|
|
export const deleteMoldMaintenanceMain = async (id: number) => { |
|
|
export const deleteMoldMaintenanceMain = async (id: number) => { |
|
|
return await request.delete({ url: `/eam/device-maintenance-job-main/delete?id=` + id }) |
|
|
return await request.delete({ url: `/eam/mold-maintenance-job-main/delete?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导出维修工单主 Excel
|
|
|
// 导出维修工单主 Excel
|
|
|
export const exportMoldMaintenanceMain = async (params) => { |
|
|
export const exportMoldMaintenanceMain = async (params) => { |
|
|
return await request.download({ url: `/eam/device-maintenance-job-main/export-excel`, params }) |
|
|
return await request.download({ url: `/eam/mold-maintenance-job-main/export-excel`, params }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/eam/device-maintenance-job-main/get-import-template' }) |
|
|
return request.download({ url: '/eam/mold-maintenance-job-main/get-import-template' }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改维修工单主
|
|
|
// 修改维修工单主
|
|
|
export const orderStepChange = async (data: MoldMaintenanceMainVO) => { |
|
|
export const orderStepChange = async (data: MoldMaintenanceMainVO) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 修改维修工单主
|
|
|
// 修改维修工单主
|
|
|
export const orderTurnTo = async (data: MoldMaintenanceMainVO) => { |
|
|
export const orderTurnTo = async (data: MoldMaintenanceMainVO) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询维修工单主列表不分页
|
|
|
// 查询维修工单主列表不分页
|
|
|
export const getMoldMainTempList = async (type: String) => { |
|
|
export const getMoldMainTempList = async (type: String) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/getList?type=` + type }) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/getList?type=` + type }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 完成维修工单
|
|
|
// 完成维修工单
|
|
|
export const finishOrder = async (params) => { |
|
|
export const finishOrder = async (params) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick`, params}) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickFinish`, params}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 申请人确认工单
|
|
|
// 申请人确认工单
|
|
|
export const confirmOrder = async (params) => { |
|
|
export const confirmOrder = async (params) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick`, params}) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickConfirm`, params}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 校验维修工单
|
|
|
// 校验维修工单
|
|
|
export const verifyOrder = async (params) => { |
|
|
export const verifyOrder = async (params) => { |
|
|
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick`, params}) |
|
|
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickVerify`, params}) |
|
|
} |
|
|
} |
|
|