综合办公系统
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.

todo.js 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. import request from '@/utils/request'
  2. // 查询待办任务列表
  3. export function todoList(query) {
  4. return request({
  5. url: '/flowable/task/todoList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 完成任务
  11. export function complete(data) {
  12. return request({
  13. url: '/flowable/task/complete',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. // 委派任务
  19. export function delegate(data) {
  20. return request({
  21. url: '/flowable/task/delegate',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 转办任务
  27. export function assignTask(data) {
  28. return request({
  29. url: '/flowable/task/assignTask',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 退回任务
  35. export function returnTask(data) {
  36. return request({
  37. url: '/flowable/task/return',
  38. method: 'post',
  39. data: data
  40. })
  41. }
  42. // 重新提交任务
  43. export function taskRecommit(data) {
  44. return request({
  45. url: '/flowable/task/reCommit',
  46. method: 'post',
  47. data: data
  48. })
  49. }
  50. // 驳回任务
  51. export function rejectTask(data) {
  52. return request({
  53. url: '/flowable/task/reject',
  54. method: 'post',
  55. data: data
  56. })
  57. }
  58. // 可退回任务列表
  59. export function returnList(data) {
  60. return request({
  61. url: '/flowable/task/returnList',
  62. method: 'post',
  63. data: data
  64. })
  65. }
  66. // 下一节点
  67. export function getNextFlowNode(data) {
  68. return request({
  69. url: '/flowable/task/nextFlowNode',
  70. method: 'post',
  71. data: data
  72. })
  73. }
  74. // 下一节点
  75. export function getNextFlowNodeByStart(data) {
  76. return request({
  77. url: '/flowable/task/nextFlowNodeByStart',
  78. method: 'post',
  79. data: data
  80. })
  81. }
  82. // 部署流程实例
  83. export function deployStart(deployId) {
  84. return request({
  85. url: '/flowable/process/startFlow/' + deployId,
  86. method: 'get',
  87. })
  88. }
  89. // 查询流程定义详细
  90. export function getDeployment(id) {
  91. return request({
  92. url: '/system/deployment/' + id,
  93. method: 'get'
  94. })
  95. }
  96. // 新增流程定义
  97. export function addDeployment(data) {
  98. return request({
  99. url: '/system/deployment',
  100. method: 'post',
  101. data: data
  102. })
  103. }
  104. // 修改流程定义
  105. export function updateDeployment(data) {
  106. return request({
  107. url: '/system/deployment',
  108. method: 'put',
  109. data: data
  110. })
  111. }
  112. // 删除流程定义
  113. export function delDeployment(id) {
  114. return request({
  115. url: '/system/deployment/' + id,
  116. method: 'delete'
  117. })
  118. }
  119. // 导出流程定义
  120. export function exportDeployment(query) {
  121. return request({
  122. url: '/system/deployment/export',
  123. method: 'get',
  124. params: query
  125. })
  126. }
  127. // 流程节点表单
  128. export function flowTaskForm(query) {
  129. return request({
  130. url: '/flowable/task/flowTaskForm',
  131. method: 'get',
  132. params: query
  133. })
  134. }
  135. // 重新提交到退回人
  136. export function findReCommitTask(data){
  137. return request({
  138. url: '/flowable/task/reCommitTask',
  139. method: 'post',
  140. data: data
  141. })
  142. }