import { ColItem } from '@/api/common'
import { elTableAlignLeft, getIntervalValue } from '@/utils/constant'

// 工程管理
export const engineerCols: ColItem[] = [
    { type: 'selection', width: '50px' },
    { type: 'index', label: '序号', width: '60px' },
    { prop: 'prjNo', label: '工程编号', minWidth: '120px' },
    { prop: 'prjName', label: '工程名称', minWidth: '120px' },
    { prop: 'sgunit', label: '施工单位', minWidth: '120px' },
    { prop: 'proIntroduction', label: '工程简介', minWidth: '170px', showOverflowTooltip: true },
    { prop: 'createTime', label: '创建时间', minWidth: '170px' }
]

// 管道缺陷汇总
export const defectSumCols: ColItem[] = [
    { type: 'index', label: '序号', width: '60px' },
    { width: '120', label: '检测日期', prop: 'sampleTime' },
    { width: '110', label: '起始井号', prop: 'startPoint' },
    { width: '110', label: '终止井号', prop: 'endPoint' },
    { width: '110', label: '管径(mm)', prop: 'diameter' },
    { width: '110', label: '管段长度(m)', prop: 'pipeLength' },
    { width: '110', label: '检测长度(m)', prop: 'checkLength' },
    { width: '130', label: '缺陷名称', prop: 'defectName' },
    { width: '130', label: '缺陷等级', prop: 'defectLevel' },
    { width: '120', label: '整改建议', prop: 'checkSuggest' },
    { width: '', label: '结构性缺陷评价', prop: 'structEstimate', showOverflowTooltip: true },
    { width: '', label: '功能性缺陷评价', prop: 'funcEstimate', showOverflowTooltip: true }
]

// 管道评估汇总
export const evaluateSumCols: ColItem[] = [
    { type: 'index', label: '序号', width: '60px' },
    { width: '',  label: '检测日期', prop: 'sampleTime' },
    { width: '110',  label: '起始井号', prop: 'startPoint' },
    { width: '110',  label: '终止井号', prop: 'endPoint' },
    { width: '130',  label: '起点埋深(m)', prop: 'startDepth' },
    { width: '130',  label: '终点埋深(m)', prop: 'endDepth' },
    { width: '110',  label: '管段类型', prop: 'pipeType' },
    { width: '',  label: '管段材质', prop: 'material' },
    { width: '150',  label: '管段直径(mm)', prop: 'diameter' },
    { width: '110',  label: '管段长度(m)', prop: 'pipeLength' },
    { width: '110',  label: '检测长度(m)', prop: 'checkLength' },
    { width: '110',  label: '检测方向', prop: 'detectDir' },
    { width: '',  label: '检测人员', prop: 'detectPerson' }
]