tuning.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. // 分页档案调整
  4. async pageByArchive(form, msg = true) {
  5. return HcApi({
  6. url: '/api/blade-archive/archivesauto/page',
  7. method: 'get',
  8. params: form,
  9. }, msg)
  10. },
  11. //根据档案获取文件
  12. async getarchiveFilePage(form, msg = true) {
  13. return HcApi({
  14. url: '/api/blade-archive/archiveFile/page',
  15. method: 'post',
  16. params: form,
  17. }, msg)
  18. },
  19. //锁定案卷
  20. async archivesautoLock(form, msg = true) {
  21. return HcApi({
  22. url: '/api/blade-archive/archivesauto/lock',
  23. method: 'post',
  24. params: form,
  25. }, msg)
  26. },
  27. //解锁案卷 /archivesauto/unlock
  28. async archivesautoUnLock(form, msg = true) {
  29. return HcApi({
  30. url: '/api/blade-archive/archivesauto/unlock',
  31. method: 'post',
  32. params: form,
  33. }, msg)
  34. },
  35. //预览案卷
  36. async printArchive(form, msg = true) {
  37. return HcApi({
  38. url: '/api/blade-archive/archivesauto/printArchive',
  39. method: 'get',
  40. params: form,
  41. }, msg)
  42. },
  43. //删除案卷里的文件案卷里删除文件/
  44. async removeFiles(form, msg = true) {
  45. return HcApi({
  46. url: '/api/blade-archive/archivesauto/removeFiles',
  47. method: 'post',
  48. params: form,
  49. }, msg)
  50. },
  51. //案卷迁移/archivesauto/move
  52. async moveArchive(form, msg = true) {
  53. return HcApi({
  54. url: '/api/blade-archive/archivesauto/move',
  55. method: 'post',
  56. params: form,
  57. }, msg)
  58. },
  59. //拆卷/archivesauto/split
  60. async splitArchive(form, msg = true) {
  61. return HcApi({
  62. url: '/api/blade-archive/archivesauto/split',
  63. method: 'post',
  64. params: form,
  65. }, msg)
  66. },
  67. //立即更新立卷/blade-archive/archivesauto/archiveAutoMethod
  68. async archiveAutoMethod(form, msg = true) {
  69. return HcApi({
  70. url: '/api/blade-archive/archivesauto/archiveAutoMethod',
  71. method: 'post',
  72. params: form,
  73. }, msg)
  74. },
  75. //更新立卷进度接口
  76. async archiveAutoPercentComplete(form, msg = true) {
  77. return HcApi({
  78. url: '/api/blade-archive/archivesauto/archiveAutoPercentComplete',
  79. method: 'post',
  80. params: form,
  81. }, msg)
  82. },
  83. //档案整理
  84. async refreshFileNumber(form, msg = true) {
  85. return HcApi({
  86. url: '/api/blade-archive/archivesauto/fileNumberFlush',
  87. method: 'get',
  88. params: form,
  89. }, msg)
  90. },
  91. //编辑卷内文件/
  92. async archiveFileBatchUpdate(form, msg = true) {
  93. return HcApi({
  94. url: '/api/blade-archive/archiveFile/batchUpdate',
  95. method: 'post',
  96. data: form,
  97. }, msg)
  98. },
  99. //获取文件元数据信息/
  100. async getMetadataFileByid(form, msg = true) {
  101. return HcApi({
  102. url: '/api/blade-archive/archiveFile/getMetadataFile',
  103. method: 'get',
  104. params: form,
  105. }, msg)
  106. },
  107. //获取案卷元数据信息
  108. async getArchivesAutoView(form, msg = true) {
  109. return HcApi({
  110. url: '/api/blade-archive/archivesauto/getArchivesAutoView',
  111. method: 'post',
  112. params: form,
  113. }, msg)
  114. },
  115. //编辑元数据信息/archiveFile/updateMetadata
  116. async updateMetadata(form, msg = true) {
  117. return HcApi({
  118. url: '/api/blade-archive/archiveFile/updateMetadata',
  119. method: 'post',
  120. data: form,
  121. }, msg)
  122. },
  123. //更新案卷四要素
  124. async updateArchiveFour(form, msg = true) {
  125. return HcApi({
  126. url: '/api/blade-archive/archivesauto/reBuildArchiveFrontPdfs',
  127. method: 'get',
  128. params: form,
  129. }, msg)
  130. },
  131. //查找替换
  132. async findAndReplace(form, msg = true) {
  133. return HcApi({
  134. url: '/api/blade-archive/archivesauto/findAndReplace',
  135. method: 'post',
  136. data: form,
  137. }, msg)
  138. },
  139. //并卷
  140. async reCreateArchiveAuto(form, msg = true) {
  141. return HcApi({
  142. url: '/api/blade-archive/archivesauto/reCreateArchiveAuto',
  143. method: 'post',
  144. params: form,
  145. }, msg)
  146. },
  147. }