audit-statistics-find-list.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <template>
  2. <div style="padding: 20px;padding-top: 0px;" class="reporttablecardxm">
  3. <div
  4. style="position: absolute; padding-top: 10px;line-height: 32px;"
  5. class="header_sd-header_common"
  6. >
  7. <div :class="$style.titlepoint"></div>
  8. <span :class="['toptitle', $style.toptitle]">问题整改列表</span>
  9. </div>
  10. <sd-data-table
  11. ref="dataTable"
  12. :projectlist="true"
  13. :columns="columns"
  14. :data-url="dataUrl"
  15. row-key="FIND_TITLE"
  16. :actions="actions"
  17. :process-req="processReq"
  18. :defultpagination-pagesize="50"
  19. />
  20. </div>
  21. </template>
  22. <script>
  23. import download from '@/common/services/download'
  24. import { Message } from 'ant-design-vue'
  25. import TableActionTypes from '@/common/services/table-action-types'
  26. import StatisticsService from './statistics-service'
  27. import components from './_import-components/audit-statistics-find-list-import'
  28. const columns = [
  29. {
  30. title: '序号',
  31. customRender: (text, record, index) => `${index + 1}`,
  32. width: '80px',
  33. },
  34. {
  35. title: '审计机构',
  36. dataIndex: 'UNIT_NAME',
  37. width: '200px',
  38. },
  39. {
  40. title: '项目名称',
  41. dataIndex: 'PROJECT_TITLE',
  42. width: '200px',
  43. },
  44. {
  45. title: '审计类型',
  46. dataIndex: 'AUDIT_TYPE',
  47. width: '200px',
  48. },
  49. {
  50. title: '问题名称(定性描述)',
  51. dataIndex: 'FIND_TITLE',
  52. width: '200px',
  53. },
  54. {
  55. title: '审计问题描述',
  56. dataIndex: 'FIND_DESC',
  57. width: '180px',
  58. },
  59. {
  60. title: '整改责任主体',
  61. dataIndex: 'RESP_UNIT_NAME',
  62. width: '180px',
  63. },
  64. {
  65. title: '问题分类',
  66. dataIndex: 'PROBLEM_CATEGORY_FUNCTION',
  67. width: '150px',
  68. },
  69. {
  70. title: '问题类型',
  71. dataIndex: 'RECT_TYPE',
  72. width: '150px',
  73. },
  74. {
  75. title: '措施执行情况',
  76. dataIndex: 'DRAFT_RECT_MEASURE',
  77. width: '150px',
  78. },
  79. {
  80. title: '计划完成日期',
  81. dataIndex: 'DRAFT_FINISH_DATE',
  82. width: '150px',
  83. },
  84. {
  85. title: '整改状态',
  86. dataIndex: 'RECT_STATE',
  87. width: '150px',
  88. },
  89. {
  90. title: '是否完成当年整改阶段目标',
  91. dataIndex: 'WHETHER_FINISH_TARGET',
  92. width: '180px',
  93. },
  94. {
  95. title: '整改完成日期',
  96. dataIndex: 'FINISH_DATE',
  97. width: '150px',
  98. },
  99. {
  100. title: '销号状态',
  101. dataIndex: 'CANCELL_STATUS',
  102. width: '150px',
  103. },
  104. ]
  105. export default {
  106. name: 'AuditStatisticsFindList',
  107. metaInfo: {
  108. title: '整改发现统计透视图',
  109. },
  110. components,
  111. data() {
  112. return {
  113. columns,
  114. data: [],
  115. actions: [
  116. {
  117. label: '导出',
  118. id: 'export',
  119. permission: null,
  120. type: TableActionTypes.primary,
  121. callback: () => {
  122. const params = JSON.parse(this.$route.query.params)
  123. // 整改发现列表导出
  124. StatisticsService.exportAuditfindData(params)
  125. .then((data) => {
  126. const url = URL.createObjectURL(data)
  127. download(url, '问题整改列表导出.xls')
  128. })
  129. .catch(() => {
  130. Message.error('导出失败')
  131. })
  132. },
  133. },
  134. ],
  135. }
  136. },
  137. computed: {
  138. dataUrl() {
  139. const params = JSON.parse(this.$route.query.params)
  140. return (
  141. 'api/xcoa-mobile/v1/iam-statistics/getFindRectifyList?rectUnitFlag=' + params.rectUnitFlag
  142. )
  143. },
  144. },
  145. methods: {
  146. processReq(req) {
  147. const parasm = JSON.parse(this.$route.query.params)
  148. req.data = {
  149. ...req.data,
  150. ...parasm,
  151. }
  152. if (req.data.pageIndex === undefined) {
  153. req.data.pageIndex = req.data.startPosition
  154. }
  155. if (req.data.pageSize === undefined) {
  156. req.data.pageSize = 10
  157. }
  158. return req
  159. },
  160. },
  161. }
  162. </script>
  163. <style module lang="scss">
  164. @use '@/common/design' as *;
  165. .titlepoint {
  166. background: #1890ff;
  167. height: 27px;
  168. width: 8px;
  169. position: fixed;
  170. top: 12px;
  171. left: 20px;
  172. border-radius: 8px;
  173. }
  174. .toptitle {
  175. color: #404040;
  176. font-weight: bold;
  177. font-size: 22px;
  178. position: fixed;
  179. left: 40px;
  180. top: 9px;
  181. }
  182. :global(.reporttablecardxm) {
  183. :global(.ant-table-body) {
  184. height: calc(100vh - 140px);
  185. overflow: auto;
  186. }
  187. }
  188. </style>