query.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. import { HcApi } from '../../request/index'
  2. export default {
  3. //获取当前合同段的划分树
  4. async queryWbsTreeData(form, msg = true) {
  5. return HcApi({
  6. url: '/api/blade-business/informationWriteQuery/queryContractWbsTreeByContractIdAndType',
  7. method: 'get',
  8. params: form,
  9. }, msg)
  10. },
  11. //根据合同段ID获取所有填报人
  12. async getFileUser(form, msg = true) {
  13. return HcApi({
  14. url: '/api/blade-business/informationWriteQuery/getFileUserByContractId',
  15. method: 'get',
  16. params: form,
  17. }, msg)
  18. },
  19. //获取当前合同段下所有的上报批次
  20. async getReportNumber(form, msg = true) {
  21. return HcApi({
  22. url: '/api/blade-business/informationWriteQuery/getReportNumberByContractId',
  23. method: 'get',
  24. params: form,
  25. }, msg)
  26. },
  27. //获取流程状态分类和文件类型分类
  28. async getDictBizClassify(form, msg = true) {
  29. return HcApi({
  30. url: '/api/blade-business/informationWriteQuery/getDictBizClassifyByCode',
  31. method: 'get',
  32. params: form,
  33. }, msg)
  34. },
  35. //分页数据
  36. async getPageData(form, msg = true) {
  37. return HcApi({
  38. url: '/api/blade-business/informationWriteQuery/page',
  39. method: 'post',
  40. data: form,
  41. }, msg)
  42. },
  43. //批量废除
  44. async batchAbolish(form, msg = true) {
  45. return HcApi({
  46. url: '/api/blade-business/informationWriteQuery/batchAbolish',
  47. method: 'post',
  48. params: form,
  49. }, msg)
  50. },
  51. //批量下载
  52. async batchDownloadFileToZip(form, msg = true) {
  53. return HcApi({
  54. url: '/api/blade-business/informationWriteQuery/batchDownloadFileToZip',
  55. method: 'post',
  56. params: form,
  57. responseType: 'blob',
  58. }, msg)
  59. },
  60. //批量打印
  61. async batchPrint(form, msg = true) {
  62. return HcApi({
  63. url: '/api/blade-business/informationWriteQuery/batchPrint',
  64. method: 'post',
  65. params: form,
  66. }, msg)
  67. },
  68. //本地验签
  69. async localVerify(form, msg = true) {
  70. return HcApi({
  71. url: '/api/blade-business/informationWriteQuery/localVerify',
  72. method: 'post',
  73. params: form,
  74. }, msg)
  75. },
  76. //在线验签
  77. async onlineVerify(form, msg = true) {
  78. return HcApi({
  79. url: '/api/blade-business/informationWriteQuery/onlineVerify',
  80. method: 'post',
  81. params: form,
  82. }, msg)
  83. },
  84. //输入框查询合同段树
  85. async searchContractTree(form, msg = true) {
  86. return HcApi({
  87. url: '/api/blade-business/informationWriteQuery/searchContractTree',
  88. method: 'get',
  89. params: form,
  90. }, msg)
  91. },
  92. //获取流程状态
  93. async getFirstTaskStatus(form, msg = true) {
  94. return HcApi({
  95. url: '/api/blade-business/task/query-task-type-status?typeOrStatus=first_task_status',
  96. method: 'get',
  97. params: form,
  98. }, msg)
  99. },
  100. }