rel_maint_plan.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import request from '@/utils/request'
  2. // 查询设备维修计划列表
  3. export function listRel_maint_plan(query) {
  4. return request({
  5. url: '/reliability/rel_maint_plan/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询设备维修计划详细
  11. export function getRel_maint_plan(planId) {
  12. return request({
  13. url: '/reliability/rel_maint_plan/' + planId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增设备维修计划
  18. export function addRel_maint_plan(data) {
  19. return request({
  20. url: '/reliability/rel_maint_plan',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改设备维修计划
  26. export function updateRel_maint_plan(data) {
  27. return request({
  28. url: '/reliability/rel_maint_plan',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除设备维修计划
  34. export function delRel_maint_plan(planId) {
  35. return request({
  36. url: '/reliability/rel_maint_plan/' + planId,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出设备维修计划
  41. export function exportRel_maint_plan(query) {
  42. return request({
  43. url: '/reliability/rel_maint_plan/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. // 提交维修计划申请
  49. export function submitApprove(data) {
  50. return request({
  51. url: '/reliability/rel_maint_plan/submitApprove',
  52. method: 'post',
  53. data: data
  54. })
  55. }
  56. // 维修计划审批处理
  57. export function handleRelMaintPlanApprove(data) {
  58. return request({
  59. url: '/reliability/rel_maint_plan/handle',
  60. method: 'put',
  61. data: data
  62. })
  63. }
  64. // 已通过的维修计划再次提交申请
  65. export function resubmitApprove(data) {
  66. return request({
  67. url: '/reliability/rel_maint_plan/resubmitApprove',
  68. method: 'post',
  69. data: data
  70. })
  71. }