综合办公系统
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. import request from '@/utils/request'
  2. // 我的发起的流程
  3. export function myProcessList(query) {
  4. return request({
  5. url: '/flowable/task/myProcess',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function flowFormData(query) {
  11. return request({
  12. url: '/flowable/task/flowFormData',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. // 完成任务
  18. export function complete(data) {
  19. return request({
  20. url: '/flowable/task/complete',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 取消申请
  26. export function stopProcess(data) {
  27. return request({
  28. url: '/flowable/task/stopProcess',
  29. method: 'post',
  30. data: data
  31. })
  32. }
  33. // 驳回任务
  34. export function rejectTask(data) {
  35. return request({
  36. url: '/flowable/task/reject',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 可退回任务列表
  42. export function returnList(data) {
  43. return request({
  44. url: '/flowable/task/returnList',
  45. method: 'post',
  46. data: data
  47. })
  48. }
  49. // 部署流程实例
  50. export function deployStart(deployId) {
  51. return request({
  52. url: '/flowable/process/startFlow/' + deployId,
  53. method: 'get',
  54. })
  55. }
  56. // 查询流程定义详细
  57. export function getDeployment(id) {
  58. return request({
  59. url: '/system/deployment/' + id,
  60. method: 'get'
  61. })
  62. }
  63. // 新增流程定义
  64. export function addDeployment(data) {
  65. return request({
  66. url: '/system/deployment',
  67. method: 'post',
  68. data: data
  69. })
  70. }
  71. // 修改流程定义
  72. export function updateDeployment(data) {
  73. return request({
  74. url: '/system/deployment',
  75. method: 'put',
  76. data: data
  77. })
  78. }
  79. // 删除流程定义
  80. export function delDeployment(id) {
  81. return request({
  82. url: '/system/deployment/' + id,
  83. method: 'delete'
  84. })
  85. }
  86. // 导出流程定义
  87. export function exportDeployment(query) {
  88. return request({
  89. url: '/system/deployment/export',
  90. method: 'get',
  91. params: query
  92. })
  93. }