tables.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. import type { TableColumnProps } from '@/types/basic-table';
  2. import { AREA_CHECK_PLAN_STATUS_OPTIONS, AREA_CHECK_PLAN_STATUS_LABEL } from './status';
  3. export { AREA_CHECK_PLAN_STATUS_OPTIONS, AREA_CHECK_PLAN_STATUS_LABEL };
  4. export const TABLE_OPTIONS = {
  5. emptyText: '暂无数据',
  6. loading: true,
  7. maxHeight: 'calc(70vh - 150px)',
  8. };
  9. // 表格样式与检查单模版管理列表一致(TABLE_OPTIONS、编号/操作列宽)
  10. export const AREA_CHECK_PLAN_TABLE_COLUMNS: TableColumnProps[] = [
  11. {
  12. label: '编号',
  13. type: 'index',
  14. align: 'center',
  15. width: '80px',
  16. },
  17. {
  18. label: '完成(检查)时间',
  19. prop: 'checkTime',
  20. align: 'center',
  21. minWidth: '180px',
  22. showOverflowTooltip: true,
  23. },
  24. {
  25. label: '状态',
  26. prop: 'status',
  27. slot: 'status',
  28. align: 'center',
  29. minWidth: '120px',
  30. showOverflowTooltip: true,
  31. },
  32. {
  33. label: '区域检查计划名称',
  34. prop: 'areaCheckPlanName',
  35. align: 'center',
  36. minWidth: '200px',
  37. showOverflowTooltip: true,
  38. },
  39. {
  40. label: '检查人员',
  41. prop: 'checkPersonName',
  42. align: 'center',
  43. minWidth: '120px',
  44. showOverflowTooltip: true,
  45. },
  46. {
  47. label: '检查场所',
  48. prop: 'checkPlace',
  49. align: 'center',
  50. minWidth: '120px',
  51. showOverflowTooltip: true,
  52. },
  53. {
  54. label: '检查频次',
  55. prop: 'frequency',
  56. slot: 'frequency',
  57. align: 'center',
  58. minWidth: '120px',
  59. showOverflowTooltip: true,
  60. },
  61. {
  62. label: '检查重点内容',
  63. prop: 'checkKeyContent',
  64. align: 'center',
  65. width: '200px',
  66. showOverflowTooltip: true,
  67. },
  68. {
  69. label: '整体检查情况描述',
  70. prop: 'overallCheckDesc',
  71. align: 'center',
  72. minWidth: '200px',
  73. showOverflowTooltip: true,
  74. },
  75. {
  76. label: '被检查人签字',
  77. prop: 'sign',
  78. slot:'sign',
  79. align: 'center',
  80. minWidth: '140px',
  81. showOverflowTooltip: true,
  82. },
  83. {
  84. label: '检查项总数',
  85. prop: 'checkItemTotal',
  86. slot: 'checkItemTotal',
  87. align: 'center',
  88. minWidth: '160px',
  89. showOverflowTooltip: true,
  90. },
  91. {
  92. label: '合格项数',
  93. prop: 'qualifiedItemNum',
  94. slot: 'qualifiedItemNum',
  95. align: 'center',
  96. minWidth: '160px',
  97. showOverflowTooltip: true,
  98. },
  99. {
  100. label: '不合格项数',
  101. prop: 'unqualifiedItemNum',
  102. slot: 'unqualifiedItemNum',
  103. align: 'center',
  104. minWidth: '160px',
  105. showOverflowTooltip: true,
  106. },
  107. {
  108. label: '操作',
  109. prop: 'action',
  110. slot: 'action',
  111. fixed: 'right',
  112. width: '150px',
  113. align: 'left',
  114. },
  115. ];