|
@@ -48,6 +48,7 @@ interface Column {
|
|
|
label: string
|
|
label: string
|
|
|
'min-width'?: string
|
|
'min-width'?: string
|
|
|
isTag?: boolean
|
|
isTag?: boolean
|
|
|
|
|
+ fixed?: 'left' | 'right'
|
|
|
formatter?: (row: List) => any
|
|
formatter?: (row: List) => any
|
|
|
children?: Column[]
|
|
children?: Column[]
|
|
|
dictType?: string
|
|
dictType?: string
|
|
@@ -58,26 +59,25 @@ const columns = ref<Column[]>([
|
|
|
label: '日期',
|
|
label: '日期',
|
|
|
prop: 'createTime',
|
|
prop: 'createTime',
|
|
|
'min-width': '120px',
|
|
'min-width': '120px',
|
|
|
|
|
+ fixed: 'left',
|
|
|
formatter: (row: List) => dayjs(row.createTime).format('YYYY-MM-DD')
|
|
formatter: (row: List) => dayjs(row.createTime).format('YYYY-MM-DD')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '施工队伍',
|
|
label: '施工队伍',
|
|
|
prop: 'deptName',
|
|
prop: 'deptName',
|
|
|
- 'min-width': '120px'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '项目',
|
|
|
|
|
- prop: 'contractName',
|
|
|
|
|
|
|
+ fixed: 'left',
|
|
|
'min-width': '120px'
|
|
'min-width': '120px'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '任务',
|
|
label: '任务',
|
|
|
prop: 'taskName',
|
|
prop: 'taskName',
|
|
|
|
|
+ fixed: 'left',
|
|
|
'min-width': '120px'
|
|
'min-width': '120px'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '施工状态',
|
|
label: '施工状态',
|
|
|
prop: 'constructionStatus',
|
|
prop: 'constructionStatus',
|
|
|
|
|
+ fixed: 'left',
|
|
|
'min-width': '120px',
|
|
'min-width': '120px',
|
|
|
isTag: true,
|
|
isTag: true,
|
|
|
dictType: DICT_TYPE.PMS_PROJECT_TASK_SCHEDULE
|
|
dictType: DICT_TYPE.PMS_PROJECT_TASK_SCHEDULE
|
|
@@ -101,73 +101,73 @@ const columns = ref<Column[]>([
|
|
|
return ''
|
|
return ''
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '搬迁安装天数',
|
|
|
|
|
- // prop: 'relocationDays',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // formatter: (row: List) => (row.relocationDays < 0 ? '0' : String(row.relocationDays))
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '设计注气量(万方)',
|
|
|
|
|
- // prop: 'designInjection',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // formatter: (row: List) => row.designInjection || '0'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '运行时效',
|
|
|
|
|
- // prop: 'transitTime',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // formatter: (row: List) => (row.transitTime * 100).toFixed(2) + '%'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '当日',
|
|
|
|
|
- // children: [
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '注气量(万方)',
|
|
|
|
|
- // prop: 'dailyGasInjection',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // formatter: (row: List) => (row.dailyGasInjection / 10000).toFixed(2)
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '注水量(方)',
|
|
|
|
|
- // prop: 'dailyWaterInjection',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '注气时间(H)',
|
|
|
|
|
- // prop: 'dailyInjectGasTime',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '注水时间(H)',
|
|
|
|
|
- // prop: 'dailyInjectWaterTime',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '用电量(kWh)',
|
|
|
|
|
- // prop: 'dailyPowerUsage',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '油耗(L)',
|
|
|
|
|
- // prop: 'dailyOilUsage',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // }
|
|
|
|
|
- // ]
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '非生产时间(H)',
|
|
|
|
|
- // prop: 'nonProductionTime',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '非生产时间原因',
|
|
|
|
|
- // prop: 'nptReason',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // isTag: true,
|
|
|
|
|
- // dictType: DICT_TYPE.PMS_PROJECT_NPT_REASON
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '搬迁安装天数',
|
|
|
|
|
+ prop: 'relocationDays',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ formatter: (row: List) => (row.relocationDays < 0 ? '0' : String(row.relocationDays))
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '设计注气量(万方)',
|
|
|
|
|
+ prop: 'designInjection',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ formatter: (row: List) => row.designInjection || '0'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '运行时效',
|
|
|
|
|
+ prop: 'transitTime',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ formatter: (row: List) => (row.transitTime * 100).toFixed(2) + '%'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '当日',
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '注气量(万方)',
|
|
|
|
|
+ prop: 'dailyGasInjection',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ formatter: (row: List) => (row.dailyGasInjection / 10000).toFixed(2)
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '注水量(方)',
|
|
|
|
|
+ prop: 'dailyWaterInjection',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '注气时间(H)',
|
|
|
|
|
+ prop: 'dailyInjectGasTime',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '注水时间(H)',
|
|
|
|
|
+ prop: 'dailyInjectWaterTime',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '用电量(kWh)',
|
|
|
|
|
+ prop: 'dailyPowerUsage',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '油耗(L)',
|
|
|
|
|
+ prop: 'dailyOilUsage',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '非生产时间(H)',
|
|
|
|
|
+ prop: 'nonProductionTime',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '非生产时间原因',
|
|
|
|
|
+ prop: 'nptReason',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ isTag: true,
|
|
|
|
|
+ dictType: DICT_TYPE.PMS_PROJECT_NPT_REASON
|
|
|
|
|
+ },
|
|
|
// {
|
|
// {
|
|
|
// label: '施工开始日期',
|
|
// label: '施工开始日期',
|
|
|
// prop: 'constructionStartDate',
|
|
// prop: 'constructionStartDate',
|
|
@@ -180,38 +180,43 @@ const columns = ref<Column[]>([
|
|
|
// 'min-width': '120px',
|
|
// 'min-width': '120px',
|
|
|
// formatter: (row: List) => dayjs(row.constructionEndDate).format('YYYY-MM-DD HH:mm:ss')
|
|
// formatter: (row: List) => dayjs(row.constructionEndDate).format('YYYY-MM-DD HH:mm:ss')
|
|
|
// },
|
|
// },
|
|
|
- // {
|
|
|
|
|
- // label: '生产动态',
|
|
|
|
|
- // prop: 'productionStatus',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '累计',
|
|
|
|
|
- // children: [
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '注气量(万方)',
|
|
|
|
|
- // prop: 'totalGasInjection',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // formatter: (row: List) => (row.totalGasInjection / 10000).toFixed(2)
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '注水量(方)',
|
|
|
|
|
- // prop: 'totalWaterInjection',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '完工井次',
|
|
|
|
|
- // prop: 'cumulativeCompletion',
|
|
|
|
|
- // 'min-width': '120px'
|
|
|
|
|
- // }
|
|
|
|
|
- // ]
|
|
|
|
|
- // },
|
|
|
|
|
- // {
|
|
|
|
|
- // label: '产能(万方)',
|
|
|
|
|
- // prop: 'capacity',
|
|
|
|
|
- // 'min-width': '120px',
|
|
|
|
|
- // formatter: (row: List) => (row.capacity / 10000).toFixed(2)
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '生产动态',
|
|
|
|
|
+ prop: 'productionStatus',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '项目',
|
|
|
|
|
+ prop: 'contractName',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '累计',
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '注气量(万方)',
|
|
|
|
|
+ prop: 'totalGasInjection',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ formatter: (row: List) => (row.totalGasInjection / 10000).toFixed(2)
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '注水量(方)',
|
|
|
|
|
+ prop: 'totalWaterInjection',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '完工井次',
|
|
|
|
|
+ prop: 'cumulativeCompletion',
|
|
|
|
|
+ 'min-width': '120px'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '产能(万方)',
|
|
|
|
|
+ prop: 'capacity',
|
|
|
|
|
+ 'min-width': '120px',
|
|
|
|
|
+ formatter: (row: List) => (row.capacity / 10000).toFixed(2)
|
|
|
|
|
+ }
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
const getTextWidth = (text: string, fontSize = 12) => {
|
|
const getTextWidth = (text: string, fontSize = 12) => {
|