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.

138 lines
4.0 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. import { createAPI } from "@/utils/httpRequest.js";
  2. // =====================================================
  3. // 工程实验申请单 API接口定义
  4. // =====================================================
  5. /**
  6. * 查询申请单列表
  7. */
  8. export const searchExpApplyList = data => createAPI(`/erf/expApply/searchExpApplyList`, 'post', data)
  9. /**
  10. * 根据申请单号查询详情
  11. */
  12. export const getExpApplyDetail = data => createAPI(`/erf/expApply/getExpApplyDetail`, 'post', data)
  13. /**
  14. * 保存申请单新增或修改
  15. */
  16. export const saveExpApply = data => createAPI(`/erf/expApply/saveExpApply`, 'post', data)
  17. /**
  18. * 下达申请单
  19. */
  20. export const submitExpApply = data => createAPI(`/erf/expApply/submitExpApply`, 'post', data)
  21. /**
  22. * 获取下达时的审批人信息
  23. */
  24. export const getSubmitApprovers = data => createAPI(`/erf/expApply/getSubmitApprovers`, 'post', data)
  25. /**
  26. * 审批申请单
  27. */
  28. export const approveExpApply = data => createAPI(`/erf/expApply/approveExpApply`, 'post', data)
  29. /**
  30. * 获取当前流程节点编码
  31. */
  32. export const getCurrentNodeCode = data => createAPI(`/erf/expApply/getCurrentNodeCode`, 'post', data)
  33. /**
  34. * 撤回申请单
  35. */
  36. export const withdrawExpApply = data => createAPI(`/erf/expApply/withdrawExpApply`, 'post', data)
  37. /**
  38. * 删除申请单
  39. */
  40. export const deleteExpApply = data => createAPI(`/erf/expApply/deleteExpApply`, 'post', data)
  41. /**
  42. * 查询用户的待办申请单
  43. */
  44. export const getPendingApplyList = data => createAPI(`/erf/expApply/getPendingApplyList`, 'post', data)
  45. // =====================================================
  46. // High Risk三方确认 API接口定义
  47. // =====================================================
  48. /**
  49. * 查询三方确认列表按申请单号
  50. */
  51. export const getTriConfirmList = data => createAPI(`/erf/triConfirm/getTriConfirmList`, 'post', data)
  52. /**
  53. * 查询登录人待确认的工序列表
  54. */
  55. export const getPendingTriConfirmList = data => createAPI(`/erf/triConfirm/getPendingTriConfirmList`, 'post', data)
  56. /**
  57. * 三方确认操作
  58. */
  59. export const confirmTriApproval = data => createAPI(`/erf/triConfirm/confirmTriApproval`, 'post', data)
  60. // =====================================================
  61. // 审批历史 API接口定义
  62. // =====================================================
  63. /**
  64. * 查询审批历史
  65. */
  66. export const getApprovalHistory = data => createAPI(`/erf/expApply/getApprovalHistory`, 'post', data)
  67. /**
  68. * 获取流程状态详情包含流程进度和审批历史
  69. */
  70. export const getFlowStatus = data => createAPI(`/erf/expApply/getFlowStatus`, 'post', data)
  71. /**
  72. * 计划员排产
  73. */
  74. export const plannerSchedule = data => createAPI(`/erf/expApply/plannerSchedule`, 'post', data)
  75. /**
  76. * 获取字段权限
  77. */
  78. export const getFieldAuth = data => createAPI(`/erf/expApply/getFieldAuth`, 'post', data)
  79. // =====================================================
  80. // 三方确认 API接口定义
  81. // =====================================================
  82. /**
  83. * 保存三方确认工序
  84. */
  85. export const saveTriConfirmProcess = data => createAPI(`/erf/triConfirm/saveTriConfirmProcess`, 'post', data)
  86. /**
  87. * 删除三方确认工序
  88. */
  89. export const deleteTriConfirmProcess = data => createAPI(`/erf/triConfirm/deleteTriConfirmProcess`, 'post', data)
  90. /**
  91. * 批量更新工序顺序用于拖拽排序
  92. */
  93. export const updateProcessSequence = data => createAPI(`/erf/triConfirm/updateProcessSequence`, 'post', data)
  94. /**
  95. * 查询工序模版列表
  96. */
  97. export const getProcessTemplateList = data => createAPI(`/erf/triConfirm/getProcessTemplateList`, 'post', data)
  98. /**
  99. * 保存工序模版
  100. */
  101. export const saveProcessTemplate = data => createAPI(`/erf/triConfirm/saveProcessTemplate`, 'post', data)
  102. /**
  103. * 删除工序模版
  104. */
  105. export const deleteProcessTemplate = data => createAPI(`/erf/triConfirm/deleteProcessTemplate`, 'post', data)
  106. /**
  107. * 根据角色查询负责人列表
  108. */
  109. export const getUserListByRole = data => createAPI(`/erf/triConfirm/getUserListByRole`, 'post', data)