flowtemplate.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. import request from '@/utils/request'
  2. export function fetchAllFlowModelFolder(params) {
  3. return request({
  4. url: '/sys/flowmodelfolder/',
  5. method: 'get',
  6. params
  7. })
  8. }
  9. export function fetchAllFlowModel(params) {
  10. return request({
  11. url: '/sys/flowmodel/',
  12. method: 'get',
  13. params
  14. })
  15. }
  16. export function fetchFlowModelById(id) {
  17. return request({
  18. url: '/sys/flowmodel/' + id + '/',
  19. method: 'get'
  20. })
  21. }
  22. export function createFlowModel(data) {
  23. return request({
  24. url: '/sys/flowmodel/',
  25. method: 'post',
  26. data
  27. })
  28. }
  29. export function deleteFlowModel(id) {
  30. return request({
  31. url: '/sys/flowmodel/' + id + '/',
  32. method: 'delete'
  33. })
  34. }
  35. export function updateFlowModel(data, id) {
  36. return request({
  37. url: '/sys/flowmodel/' + id + '/',
  38. method: 'put',
  39. data
  40. })
  41. }
  42. export function createFlowModelFolder(data) {
  43. return request({
  44. url: '/sys/flowmodelfolder/',
  45. method: 'post',
  46. data
  47. })
  48. }
  49. export function deleteFlowModelFolder(id) {
  50. return request({
  51. url: '/sys/flowmodelfolder/' + id + '/',
  52. method: 'delete'
  53. })
  54. }
  55. export function updateFlowModelFolder(data, id) {
  56. return request({
  57. url: '/sys/flowmodelfolder/' + id + '/',
  58. method: 'put',
  59. data
  60. })
  61. }
  62. export function fetchAllFlowModelFolderAndDocument(params) {
  63. return request({
  64. url: '/sys/get_model_folder_tree/',
  65. method: 'get',
  66. params
  67. })
  68. }
  69. export function fetchFlowModelProduct(params) {
  70. return request({
  71. url: '/sys/bind_product_category/',
  72. method: 'get',
  73. params
  74. })
  75. }
  76. export function fetchFlowModelDocumentType(params) {
  77. return request({
  78. url: '/sys/bind_documenttype/',
  79. method: 'get',
  80. params
  81. })
  82. }
  83. export function fetchFlowModelBillType(params) {
  84. return request({
  85. url: '/sys/billtype_list/',
  86. method: 'get',
  87. params
  88. })
  89. }
  90. export function createFlowModelBindingCategory(data) {
  91. return request({
  92. url: '/sys/flowmodel_type/',
  93. method: 'post',
  94. data
  95. })
  96. }
  97. export function updateBindingCategory(data, id) {
  98. return request({
  99. url: '/sys/flowmodel_type/' + id + '/',
  100. method: 'put',
  101. data
  102. })
  103. }
  104. export function fetchProductCategoryById(params) {
  105. return request({
  106. url: '/sys/get_product_category/',
  107. method: 'get',
  108. params
  109. })
  110. }
  111. export function fetchTypeModelFolderPath(params) {
  112. return request({
  113. url: '/sys/get_type_model_folder_path/',
  114. method: 'get',
  115. params
  116. })
  117. }
  118. export function fetchFlowModelHistory(params) {
  119. return request({
  120. url: '/flow/model/',
  121. method: 'get',
  122. params
  123. })
  124. }