iam-audit-dsc-find-list.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <template>
  2. <div style="padding: 20px; padding-top: 0" 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. :actions="actions"
  16. :process-req="processReq"
  17. :process-res="processRes"
  18. :defultpagination-pagesize="50"
  19. />
  20. </div>
  21. </template>
  22. <script>
  23. import { Message } from 'ant-design-vue'
  24. import TableActionTypes from '@/common/services/table-action-types'
  25. import download from '@/common/services/download'
  26. import auditService from './iam-audit-dsc-service'
  27. import components from './_import-components/iam-audit-dsc-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: 'PROJECT_CODE',
  47. width: '200px',
  48. },
  49. {
  50. title: '项目组长',
  51. dataIndex: 'GROUP_LEADER_NAME',
  52. width: '200px',
  53. },
  54. {
  55. title: '被审计单位',
  56. dataIndex: 'AUDITED_UNIT_NAME',
  57. width: '150px',
  58. },
  59. {
  60. title: '审计发现提出人',
  61. dataIndex: 'CREATOR_NAME',
  62. width: '180px',
  63. },
  64. {
  65. title: '问题名称(定性描述)',
  66. dataIndex: 'FIND_TITLE',
  67. width: '180px',
  68. },
  69. {
  70. title: '审计问题描述',
  71. dataIndex: 'FIND_DESC',
  72. width: '200px',
  73. },
  74. {
  75. title: '是否属于审计意见书问题',
  76. dataIndex: 'GIVE_OPINION',
  77. width: '180px',
  78. },
  79. {
  80. title: '问题分类',
  81. dataIndex: 'PROBLEM_CATEGORY_FUNCTION',
  82. width: '150px',
  83. },
  84. {
  85. title: '是否属于零容忍事项',
  86. dataIndex: 'ZERO_TOLERATE',
  87. width: '165px',
  88. },
  89. {
  90. title: '是否移送纪检监察线索(单移送)',
  91. dataIndex: 'TRANSFER_CLUE_SINGLE',
  92. width: '180px',
  93. },
  94. {
  95. title: '是否移送纪检监察线索(双移送)',
  96. dataIndex: 'TRANSFER_CLUE_DOUBLE',
  97. width: '180px',
  98. },
  99. {
  100. title: '审计处理意见',
  101. dataIndex: 'HANDLE_SUGGESTION',
  102. width: '200px',
  103. },
  104. {
  105. title: '非金额类问题类别',
  106. dataIndex: 'NOT_AMOUNT_TYPE',
  107. width: '165px',
  108. },
  109. // {
  110. // title: '问题性质',
  111. // dataIndex: 'PROBLEM_NATURE',
  112. // width: '150px',
  113. // },
  114. {
  115. title: '问题涉及金额(万元)',
  116. dataIndex: 'AUDIT_ASSETS',
  117. width: '160px',
  118. },
  119. // {
  120. // title: '风险评级',
  121. // dataIndex: 'RISK_LEVEL',
  122. // width: '100px',
  123. // },
  124. // {
  125. // title: '问题所属业务域',
  126. // dataIndex: 'BUSINESS_PROCESS',
  127. // width: '150px',
  128. // },
  129. // {
  130. // title: '是否问责',
  131. // dataIndex: 'WHETHER_ORDER_DUTY',
  132. // width: '100px',
  133. // },
  134. ]
  135. export default {
  136. name: 'IamAuditDscFindList',
  137. metaInfo: {
  138. title: '审计发现统计透视图',
  139. },
  140. components,
  141. data() {
  142. return {
  143. params: null,
  144. columns,
  145. data: [],
  146. actions: [
  147. {
  148. label: '导出',
  149. id: 'export',
  150. permission: null,
  151. type: TableActionTypes.primary,
  152. callback: () => {
  153. const params = JSON.parse(this.$route.query.params)
  154. if (this.$route.query.type === 'findqusetionlist') {
  155. // this.params.maxResults = '-1'
  156. // 审计发现问题统计_钻取审计发现列表导出
  157. auditService
  158. .exportFindList(params)
  159. .then((data) => {
  160. const url = URL.createObjectURL(data)
  161. download(url, '审计问题列表导出.xls')
  162. })
  163. .catch(() => {
  164. Message.error('导出失败')
  165. })
  166. } else if (this.$route.query.type === 'amountlist') {
  167. // 审计发现问题金额统计_钻取审计发现列表导出
  168. auditService
  169. .exportAmountList(params)
  170. .then((data) => {
  171. const url = URL.createObjectURL(data)
  172. download(url, '审计问题列表导出.xls')
  173. })
  174. .catch(() => {
  175. Message.error('导出失败')
  176. })
  177. }
  178. // if (this.$route.query.type === 'projectlist') {
  179. // this.params.maxResults = '-1'
  180. // // 审计发现统计_钻取审计发现列表导出
  181. // auditService
  182. // .exportFindList(this.params)
  183. // .then((data) => {
  184. // const url = URL.createObjectURL(data)
  185. // download(url, '审计发现列表导出.xls')
  186. // })
  187. // .catch(() => {
  188. // Message.error('导出失败')
  189. // })
  190. // }
  191. },
  192. },
  193. ],
  194. }
  195. },
  196. computed: {
  197. dataUrl() {
  198. if (this.$route.query.type === 'findqusetionlist') {
  199. return 'api/xcoa-mobile/v1/spicDecisionSupportCenter/getAuditFindList'
  200. } else if (this.$route.query.type === 'amountlist') {
  201. return 'api/xcoa-mobile/v1/spicDecisionSupportCenter/getFindAmountList'
  202. } else {
  203. return ''
  204. }
  205. },
  206. },
  207. methods: {
  208. processRes(res) {
  209. return res
  210. },
  211. processReq(req) {
  212. const params = JSON.parse(this.$route.query.params)
  213. req.data = {
  214. ...req.data,
  215. ...params,
  216. }
  217. if (req.data.pageIndex === undefined) {
  218. req.data.pageIndex = req.data.startPosition
  219. }
  220. if (req.data.pageSize === undefined) {
  221. req.data.pageSize = 10
  222. }
  223. return req
  224. },
  225. },
  226. }
  227. </script>
  228. <style module lang="scss">
  229. @use '@/common/design' as *;
  230. .titlepoint {
  231. position: absolute;
  232. top: 12px;
  233. left: 20px;
  234. width: 8px;
  235. height: 27px;
  236. background: #1890ff;
  237. border-radius: 8px;
  238. }
  239. .toptitle {
  240. position: absolute;
  241. top: 9px;
  242. left: 40px;
  243. width: 200px;
  244. font-size: 22px;
  245. font-weight: bold;
  246. color: #404040;
  247. }
  248. </style>