reportManager.data.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. import { BasicColumn } from '/@/components/Table';
  2. import { FormSchema } from '/@/components/Table';
  3. import { render } from '/@/utils/common/renderUtils';
  4. export const columns: BasicColumn[] = [
  5. {
  6. title: '主键',
  7. dataIndex: 'id',
  8. ifShow: false,
  9. },
  10. {
  11. title: '创建人',
  12. dataIndex: 'createBy',
  13. width: 100,
  14. },
  15. {
  16. title: '创建日期',
  17. dataIndex: 'createTime',
  18. width: 160,
  19. // sorter:true,
  20. },
  21. {
  22. title: '文件名称',
  23. dataIndex: 'fileName',
  24. width: 160,
  25. },
  26. // {
  27. // title: '文件路径',
  28. // dataIndex: 'filePath',
  29. // width: 160,
  30. // },
  31. // {
  32. // title: '所属部门',
  33. // dataIndex: 'orgCode',
  34. // width: 160,
  35. // },
  36. {
  37. title: '报表类型',
  38. dataIndex: 'reportType',
  39. width: 160,
  40. customRender: ({ text }) => {
  41. return render.renderDict(text, 'reportType');
  42. },
  43. },
  44. {
  45. title: '报表版本',
  46. dataIndex: 'reportVersion',
  47. width: 100,
  48. },
  49. // {
  50. // title: '所属矿编号',
  51. // dataIndex: 'sysOrgCode',
  52. // width: 100,
  53. // },
  54. ];
  55. // export const searchFormSchema: FormSchema[] = [
  56. // {
  57. // label: '报表类型',
  58. // field: 'reportType',
  59. // component: 'JDictSelectTag',
  60. // componentProps: {
  61. // dictCode: 'reportType',
  62. // placeholder: '请选择报表类型',
  63. // },
  64. // colProps: { span: 6 },
  65. // },
  66. // ];
  67. //报表历史记录
  68. export const columnsHis: BasicColumn[] = [
  69. {
  70. title: '主键',
  71. dataIndex: 'id',
  72. ifShow: false,
  73. },
  74. {
  75. title: '创建人',
  76. dataIndex: 'createBy',
  77. width: 100,
  78. },
  79. {
  80. title: '创建日期',
  81. dataIndex: 'createTime',
  82. width: 160,
  83. },
  84. {
  85. title: '文件名称',
  86. dataIndex: 'fileName',
  87. width: 160,
  88. },
  89. // {
  90. // title: '文件路径',
  91. // dataIndex: 'filePath',
  92. // width: 160,
  93. // },
  94. {
  95. title: '报表类型',
  96. dataIndex: 'reportType',
  97. width: 100,
  98. },
  99. {
  100. title: '报表版本',
  101. dataIndex: 'reportVersion',
  102. width: 100,
  103. },
  104. ];
  105. //数据映射报表
  106. export const columnsMap: BasicColumn[] = [
  107. {
  108. title: '序号',
  109. width: 60,
  110. align: 'center',
  111. customRender: ({ index }: { index: number }) => `${index + 1}`,
  112. },
  113. {
  114. title: '所属矿名称',
  115. dataIndex: 'sysOrgName',
  116. align: 'center',
  117. width: 120,
  118. },
  119. {
  120. title: '数据名称',
  121. dataIndex: 'name',
  122. align: 'center',
  123. },
  124. {
  125. title: '矿报表单元格',
  126. dataIndex: 'mineCells',
  127. align: 'center',
  128. },
  129. {
  130. title: '集团报表单元格所在列',
  131. dataIndex: 'groupCol',
  132. align: 'center',
  133. width: 120,
  134. },
  135. {
  136. title: '集团报表单元格所在行',
  137. dataIndex: 'groupRow',
  138. align: 'center',
  139. width: 120,
  140. },
  141. {
  142. title: '集团报表单元格所在sheet页',
  143. dataIndex: 'groupSheet',
  144. align: 'center',
  145. width: 120,
  146. },
  147. {
  148. title: '是否计算',
  149. dataIndex: 'isCompute',
  150. align: 'center',
  151. width: 120,
  152. },
  153. {
  154. title: ' 计算公式',
  155. dataIndex: 'formula',
  156. align: 'center',
  157. width: 120,
  158. },
  159. {
  160. title: '操作',
  161. dataIndex: 'action',
  162. width: 200,
  163. align: 'center',
  164. slots: { customRender: 'action' },
  165. },
  166. ];