reportInfoService.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. import request from '@/config/axios'
  2. export const reportInfoApi = {
  3. /**
  4. * 获取报告档案列表数据
  5. * @param params
  6. * @returns
  7. */
  8. getReportInfoList: async (params: any) => {
  9. return await request.get({ url: `/pressure/task-order-item-report/page`, params })
  10. },
  11. /**
  12. * 查询检验通知书列表
  13. * @param params
  14. * @returns
  15. */
  16. getCheckBookList: async (params: any) => {
  17. return await request.get({ url: '/pressure/task-order/inspection-opinion/page', params })
  18. },
  19. /**
  20. * 上报市局
  21. * @param params
  22. * @returns
  23. */
  24. reportUpload: async (data: any) => {
  25. return await request.put({ url: `/pressure/task-order/inspection-opinion/Reported`, data })
  26. },
  27. /**
  28. * 导出意见通知书
  29. * @param params
  30. * @returns
  31. */
  32. exportCheckBook: async (params) => {
  33. return await request.download({
  34. url: `/pressure/appointment-confirm-order-refuse-item/export-excel`,
  35. params
  36. })
  37. },
  38. opinionReportedExcel: async (data: any) => {
  39. return await request.download2({
  40. url: `/pressure/task-order/opinionReportedExcel/export-excel`,
  41. data
  42. })
  43. },
  44. exportInspection: async (data: any) => {
  45. return await request.download2({
  46. url: `/pressure/task-order/inspection-opinion/export-excel`,
  47. data
  48. })
  49. },
  50. exportInspectionReported: async (data: any) => {
  51. return await request.download2({
  52. url: `/pressure/task-order/inspection-opinion-reported/export-excel`,
  53. data
  54. })
  55. },
  56. /**
  57. * 意见通知书详情
  58. * @param params
  59. * @returns
  60. */
  61. exportCheckBookDetail: async (params) => {
  62. return await request.get({ url: `/pressure/task-order/inspection-opinion/details`, params })
  63. },
  64. /** 隐患上报下载 */
  65. downloadReport: async (data) => {
  66. const timeout = 1000 * 60 * 5 // 5min
  67. return await request.post({ url: `/pressure/task-order/opinion/reported`, data, timeout })
  68. },
  69. /** 隐患上报上报 */
  70. hiddenDangerReportingApi: async (data) => {
  71. // const timeout = 1000 * 60 * 5 // 5min
  72. return await request.post({ url: `/pressure/task-order/opinion/hiddenDangerReporting`, data })
  73. },
  74. /** 隐患上报上报 */
  75. reportTheCompletionApi: async (data) => {
  76. // const timeout = 1000 * 60 * 5 // 5min
  77. return await request.post({ url: `/pressure/task-order/opinion/reportTheCompletion`, data })
  78. },
  79. /**获取统计数量 */
  80. getReportCount: async (params) => {
  81. return await request.get({ url: `/pressure/task-order/opinion/reported-count`, params })
  82. },
  83. /** 更新情况 */
  84. updateSituation: async (data: any) => {
  85. return await request.post({ url: `/pressure/task-order/order-item/update-situation`, data })
  86. },
  87. // 检验意见通知跟进记录
  88. getFollowRecordList: (params) => {
  89. return request.get({ url: '/pressure/opinion-notification-follow-record/page', params })
  90. },
  91. /**
  92. * 新增跟进记录
  93. * @param data
  94. * @returns
  95. */
  96. createFollowRecord: async (data: any) => {
  97. return await request.post({ url: `/pressure/opinion-notification-follow-record/create`, data })
  98. },
  99. updateFollowRecord: async (data: any) => {
  100. return await request.put({ url: `/pressure/task-order-item-report/update`, data })
  101. },
  102. // 任务单-设备项记录录入非空检查
  103. getOrderItemRecordCheckApi: (params) => {
  104. return request.get({ url: '/pressure/task-order/order-item/record-check', params })
  105. },
  106. // 任务单-设备项记录录入非空检查 (批量)
  107. getOrderItemBatchRecordCheckApi: (data) => {
  108. return request.post({ url: '/pressure/task-order/order-item/batch-record-check', data })
  109. },
  110. }