commitment.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**
  2. * 经营承诺
  3. */
  4. import zlbApi from "@/api/zlbApi";
  5. import {commonUpload, myFetch} from "@/utils/fetch";
  6. /**
  7. * 模板列表
  8. * /promise/template/getTemplateList
  9. */
  10. export function getTemplateList (data) {
  11. const url = zlbApi.getTemplateList;
  12. return myFetch(url, 'get', data, 'json');
  13. }
  14. /**
  15. * 获取企业承诺详情
  16. * /promise/manage/getDetail
  17. */
  18. export function getDetail (data) {
  19. const url = zlbApi.getPromiseDetail;
  20. return myFetch(url, 'get', data, 'json');
  21. }
  22. /**
  23. * 获取模板详情
  24. * /promise/template/templateDetails
  25. */
  26. export function templateDetails (data) {
  27. const url = zlbApi.templateDetails;
  28. return myFetch(url, 'get', data, 'json');
  29. }
  30. /**
  31. * 创建承诺
  32. * /promise/manage/createPromise
  33. */
  34. export function createPromise (data) {
  35. const url = zlbApi.createPromise;
  36. return myFetch(url, 'post', data, 'json');
  37. }
  38. /**
  39. * 获取承诺列表
  40. * /promise/manage/getList
  41. */
  42. export function getPromiseList (data) {
  43. const url = zlbApi.getPromiseList;
  44. return myFetch(url, 'get', data, 'json');
  45. }
  46. /**
  47. * 获取企业详情
  48. * /promise/enterprise/getDetail
  49. */
  50. export function getEnterpriseDetail (data) {
  51. const url = zlbApi.getEnterpriseDetail;
  52. return myFetch(url, 'get', data, 'json');
  53. }
  54. /**
  55. * 获取企业列表
  56. * /promise/enterprise/getList
  57. */
  58. export function getEnterpriseList (data) {
  59. const url = zlbApi.getEnterpriseList;
  60. return myFetch(url, 'get', data, 'json');
  61. }
  62. /**
  63. * 获取搜索记录
  64. * /promise/common/getSearchRecordList
  65. */
  66. export function getSearchRecordList (data) {
  67. const url = zlbApi.getSearchRecordList;
  68. return myFetch(url, 'get', data, 'json');
  69. }
  70. /**
  71. * 删除搜索记录
  72. * /promise/common/deleteSearchRecord
  73. */
  74. export function deleteSearchRecord (data) {
  75. const url = zlbApi.deleteSearchRecord;
  76. return myFetch(url, 'post', data, 'json');
  77. }
  78. /**
  79. * 综合搜索
  80. * /promise/common/searchCommitment
  81. */
  82. export function searchCommitment (data) {
  83. const url = zlbApi.searchCommitment;
  84. return myFetch(url, 'get', data, 'json');
  85. }
  86. /**
  87. * 承诺核查列表
  88. * /promise/verify/getPromiseVerifyList
  89. */
  90. export function getPromiseVerifyList (data) {
  91. const url = zlbApi.getPromiseVerifyList;
  92. return myFetch(url, 'get', data, 'json');
  93. }
  94. /**
  95. * 核查详情
  96. * /promise/verify/getVerifyDetails
  97. */
  98. export function getVerifyDetails (data) {
  99. const url = zlbApi.getVerifyDetails;
  100. return myFetch(url, 'get', data, 'json');
  101. }
  102. /**
  103. * 上传图片
  104. * /promise/Indicator/uploadFile
  105. */
  106. export function uploadFile (data) {
  107. const url = zlbApi.uploadFile;
  108. return myFetch(url,'get',data,'formData');
  109. }
  110. /**
  111. * 下载文件
  112. * /promise/Indicator/downFileBase64
  113. */
  114. export function downFileBase64 (data) {
  115. const url = zlbApi.downFileBase64;
  116. return myFetch(url, 'get', data, 'json');
  117. }
  118. /**
  119. * 编辑核查/批量编辑
  120. * /promise/verify/editVerifyTask
  121. */
  122. export function editVerifyTask (data) {
  123. const url = zlbApi.editVerifyTask;
  124. return myFetch(url, 'post', data, 'json');
  125. }