import type { TableColumnProps } from '@/types/basic-table'; import { AREA_CHECK_PLAN_STATUS_OPTIONS, AREA_CHECK_PLAN_STATUS_LABEL } from './status'; export { AREA_CHECK_PLAN_STATUS_OPTIONS, AREA_CHECK_PLAN_STATUS_LABEL }; export const TABLE_OPTIONS = { emptyText: '暂无数据', loading: true, maxHeight: 'calc(70vh - 150px)', }; // 表格样式与检查单模版管理列表一致(TABLE_OPTIONS、编号/操作列宽) export const AREA_CHECK_PLAN_TABLE_COLUMNS: TableColumnProps[] = [ { label: '编号', type: 'index', align: 'center', width: '80px', }, { label: '完成(检查)时间', prop: 'checkTime', align: 'center', minWidth: '180px', showOverflowTooltip: true, }, { label: '状态', prop: 'status', slot: 'status', align: 'center', minWidth: '120px', showOverflowTooltip: true, }, { label: '区域检查计划名称', prop: 'areaCheckPlanName', align: 'center', minWidth: '200px', showOverflowTooltip: true, }, { label: '检查人员', prop: 'checkPersonName', align: 'center', minWidth: '120px', showOverflowTooltip: true, }, { label: '检查场所', prop: 'checkPlace', align: 'center', minWidth: '120px', showOverflowTooltip: true, }, { label: '检查频次', prop: 'frequency', slot: 'frequency', align: 'center', minWidth: '120px', showOverflowTooltip: true, }, { label: '检查重点内容', prop: 'checkKeyContent', align: 'center', width: '200px', showOverflowTooltip: true, }, { label: '整体检查情况描述', prop: 'overallCheckDesc', align: 'center', minWidth: '200px', showOverflowTooltip: true, }, { label: '被检查人签字', prop: 'sign', slot:'sign', align: 'center', minWidth: '140px', showOverflowTooltip: true, }, { label: '检查项总数', prop: 'checkItemTotal', slot: 'checkItemTotal', align: 'center', minWidth: '160px', showOverflowTooltip: true, }, { label: '合格项数', prop: 'qualifiedItemNum', slot: 'qualifiedItemNum', align: 'center', minWidth: '160px', showOverflowTooltip: true, }, { label: '不合格项数', prop: 'unqualifiedItemNum', slot: 'unqualifiedItemNum', align: 'center', minWidth: '160px', showOverflowTooltip: true, }, { label: '操作', prop: 'action', slot: 'action', fixed: 'right', width: '150px', align: 'left', }, ];