flowEngine.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import request from '@/utils/request'
  2. // 获取流程引擎列表
  3. export function FlowEngineList(data) {
  4. return request({
  5. url: `/api/workflow/Engine/flowTemplate`,
  6. method: 'get',
  7. data
  8. })
  9. }
  10. // 获取流程引擎信息
  11. export function FlowEngineInfo(id) {
  12. return request({
  13. url: `/api/workflow/Engine/flowTemplate/${id}`,
  14. method: 'get'
  15. })
  16. }
  17. //获取流程引擎分页
  18. export function getFlowSelector(data) {
  19. return request({
  20. url: `/api/workflow/template/Selector`,
  21. method: 'get',
  22. data,
  23. options: {
  24. load: false
  25. }
  26. })
  27. }
  28. //表单预览
  29. export function flowForm(id) {
  30. return request({
  31. url: `/api/flowForm/Form/${id}`,
  32. method: 'get'
  33. })
  34. }
  35. // 列表ListAll
  36. export function FlowEngineListAll() {
  37. return request({
  38. url: `/api/workflow/Engine/flowTemplate/ListAll`,
  39. method: 'get',
  40. options: {
  41. load: false
  42. }
  43. })
  44. }
  45. // 流程引擎下拉框
  46. export function FlowEngineSelector(type) {
  47. return request({
  48. url: `/api/workflow/Engine/flowTemplate/Selector`,
  49. method: 'get',
  50. data: {
  51. type
  52. }
  53. })
  54. }
  55. // 获取流程评论列表
  56. export function getCommentList(data) {
  57. return request({
  58. url: `/api/workflow/comment`,
  59. method: 'get',
  60. data
  61. })
  62. }
  63. // 新建流程评论
  64. export function createComment(data) {
  65. return request({
  66. url: `/api/workflow/comment`,
  67. method: 'post',
  68. data
  69. })
  70. }
  71. // 删除流程评论
  72. export function delComment(id) {
  73. return request({
  74. url: `/api/workflow/comment/${id}`,
  75. method: 'delete'
  76. })
  77. }
  78. // 委托可选全部流程
  79. export function FlowEngineAll(data) {
  80. return request({
  81. url: `/api/workflow/Engine/flowTemplate/getflowAll`,
  82. method: 'get',
  83. data
  84. })
  85. }
  86. // 获取引擎id
  87. export function getFlowIdByCode() {
  88. return request({
  89. url: `/api/extend/CrmOrder`,
  90. method: 'get'
  91. })
  92. }
  93. // 获取待办未读
  94. export function getFlowTodoCount(data) {
  95. return request({
  96. url: `/api/visualdev/Dashboard/FlowTodoCount`,
  97. method: 'post',
  98. data
  99. })
  100. }
  101. // 委托 通过list<flowId>获取流程引擎列表
  102. export function getFlowEngineListByIds(data) {
  103. return request({
  104. url: `/api/workflow/template/GetFlowList`,
  105. method: 'post',
  106. data
  107. })
  108. }
  109. // 获取流程版本Id和发起节点表单id(大流程id)
  110. export function getFlowStartFormId(id) {
  111. return request({
  112. url: `/api/workflow/template/StartFormId/${id}`,
  113. method: 'get',
  114. })
  115. }