stamp.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. import request from '@/utils/request'
  2. // 用印类型信息列表
  3. export function typeList(query) {
  4. return request({
  5. url: '/bpm/oa-stamp-seal/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 创建流程
  11. export function create(data) {
  12. return request({
  13. url: '/bpm/oa-stamp/commit',
  14. method: 'post',
  15. data: data
  16. })
  17. }
  18. //驳回或撤回后再次提交通用用事项审批流程信息
  19. export function reCommit(data) {
  20. return request({
  21. url: '/bpm/oa-stamp/reCommit',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 暂存数据保存
  27. export function save(data) {
  28. return request({
  29. url: '/bpm/oa-stamp/staging',
  30. method: 'post',
  31. data: data
  32. })
  33. }
  34. // 暂存数据删除
  35. export function deleteById(id) {
  36. return request({
  37. url: 'bpm/oa-stamp/delete?id=' + id,
  38. method: 'delete'
  39. })
  40. }
  41. // 关闭审批流程信息
  42. export function closeById(id) {
  43. return request({
  44. url: '/bpm/oa-stamp/close?id=' + id,
  45. method: 'delete'
  46. })
  47. }
  48. // 获得详情
  49. export function getDetail(id) {
  50. return request({
  51. url: '/bpm/oa-stamp/get?id=' + id,
  52. method: 'get'
  53. })
  54. }
  55. // 获得列表
  56. export function getListData(query) {
  57. return request({
  58. url: '/bpm/oa-stamp/page',
  59. method: 'get',
  60. params: query
  61. })
  62. }
  63. // 导出列表
  64. export function exportList(query) {
  65. return request({
  66. url: '/bpm/oa-stamp/export-excel',
  67. method: 'get',
  68. params: query,
  69. responseType: 'blob'
  70. })
  71. }
  72. //审批同意通用事项审批流程信息
  73. export function agree(data) {
  74. return request({
  75. url: '/bpm/oa-stamp/agree',
  76. method: 'post',
  77. data: data
  78. })
  79. }
  80. //驳回通用事项审批流程信息
  81. export function disagree(data) {
  82. return request({
  83. url: '/bpm/oa-stamp/disagree',
  84. method: 'post',
  85. data: data
  86. })
  87. }
  88. //撤回通用事项审批流程信息
  89. export function revocation(data) {
  90. return request({
  91. url: '/bpm/oa-stamp/revocation',
  92. method: 'post',
  93. data: data
  94. })
  95. }