data.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import { httpApi } from '../../request/httpApi'
  2. export default {
  3. //获取任务类型或任务状态
  4. async queryTaskTypeStatus(form) {
  5. return httpApi({
  6. url: '/api/blade-business/task/query-task-type-status',
  7. method: 'get',
  8. params: form,
  9. })
  10. },
  11. //获取当前合同段的上报批次
  12. async queryBatchList(form) {
  13. return httpApi({
  14. url: '/api/blade-business/task/query-batch-list',
  15. method: 'get',
  16. params: form,
  17. })
  18. },
  19. //获取任务查看分页查询
  20. async queryTaskPageList(form) {
  21. return httpApi({
  22. url: '/api/blade-business/task/page',
  23. method: 'post',
  24. data: form,
  25. })
  26. },
  27. //获取当前用户待办流程
  28. async queryUserToDoTaskList(form) {
  29. return httpApi({
  30. url: '/api/blade-business/task/user-to-do-task-list',
  31. method: 'get',
  32. params: form,
  33. })
  34. },
  35. //审批页详情
  36. async queryApprovalParameter(form) {
  37. return httpApi({
  38. url: '/api/blade-business/task/query-approval-parameter',
  39. method: 'get',
  40. params: form,
  41. })
  42. },
  43. //完成任务
  44. async saveCompleteApprovalTask(form) {
  45. return httpApi({
  46. url: '/api/blade-business/task/complete-approval-task',
  47. method: 'post',
  48. data: form,
  49. })
  50. },
  51. //已办任务
  52. async queryUserDoneTaskList(form) {
  53. return httpApi({
  54. url: '/api/blade-business/task/query-user-done-task-list',
  55. method: 'get',
  56. params: form,
  57. })
  58. },
  59. //批量审批
  60. async batchCompleteApprovalTask(form) {
  61. return httpApi({
  62. url: '/api/blade-business/task/batch-complete-approval-task',
  63. method: 'post',
  64. data: form,
  65. })
  66. },
  67. //获取发起
  68. async queryUserStartFlow(form) {
  69. return httpApi({
  70. url: '/api/blade-business/task/query-user-start-flow',
  71. method: 'get',
  72. params: form,
  73. })
  74. },
  75. //批量页详情
  76. async queryTaskInfo(form) {
  77. return httpApi({
  78. url: '/api/blade-business/task/batch-approval-parameter',
  79. method: 'get',
  80. params: form,
  81. })
  82. },
  83. //校验电签短信验证码
  84. async checkSmsCode(form) {
  85. return httpApi({
  86. url: '/api/blade-business/task/check-sms-code',
  87. method: 'post',
  88. data: form,
  89. })
  90. },
  91. //查询pdf数量
  92. async queryPDFnum(form) {
  93. return httpApi({
  94. url: '/api/blade-business/task/query-approval-parameter-pdf-num',
  95. method: 'get',
  96. params: form
  97. })
  98. },
  99. }