|
|
@@ -53,6 +53,7 @@ interface Column {
|
|
|
label: string
|
|
|
'min-width'?: string
|
|
|
isTag?: boolean
|
|
|
+ fixed?: 'left' | 'right'
|
|
|
formatter?: (row: List) => any
|
|
|
children?: Column[]
|
|
|
dictType?: string
|
|
|
@@ -63,29 +64,29 @@ const columns = ref<Column[]>([
|
|
|
label: '日期',
|
|
|
prop: 'createTime',
|
|
|
'min-width': '120px',
|
|
|
- formatter: (row: List) => dayjs(row.createTime).format('YYYY-MM-DD')
|
|
|
+ formatter: (row: List) => dayjs(row.createTime).format('YYYY-MM-DD'),
|
|
|
+ fixed: 'left'
|
|
|
},
|
|
|
{
|
|
|
label: '施工队伍',
|
|
|
prop: 'deptName',
|
|
|
- 'min-width': '120px'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '项目',
|
|
|
- prop: 'contractName',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '120px',
|
|
|
+ fixed: 'left'
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
label: '任务',
|
|
|
prop: 'taskName',
|
|
|
- 'min-width': '120px'
|
|
|
+ 'min-width': '120px',
|
|
|
+ fixed: 'left'
|
|
|
},
|
|
|
{
|
|
|
label: '施工状态',
|
|
|
prop: 'repairStatus',
|
|
|
'min-width': '120px',
|
|
|
isTag: true,
|
|
|
- dictType: DICT_TYPE.PMS_PROJECT_TASK_RY_REPAIR_SCHEDULE
|
|
|
+ dictType: DICT_TYPE.PMS_PROJECT_TASK_RY_REPAIR_SCHEDULE,
|
|
|
+ fixed: 'left'
|
|
|
},
|
|
|
{
|
|
|
label: '审批状态',
|
|
|
@@ -106,59 +107,59 @@ const columns = ref<Column[]>([
|
|
|
return ''
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- // {
|
|
|
- // label: '总施工井数',
|
|
|
- // prop: 'totalConstructionWells',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '完工井数',
|
|
|
- // prop: 'completedWells',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '施工工艺',
|
|
|
- // prop: 'technique',
|
|
|
- // 'min-width': '120px',
|
|
|
- // isTag: true,
|
|
|
- // dictType: DICT_TYPE.PMS_PROJECT_RY_TECHNOLOGY
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '井别',
|
|
|
- // prop: 'wellCategory',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '井深(m)',
|
|
|
- // prop: 'designWellDepth',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '套生段产管尺寸(mm)',
|
|
|
- // prop: 'casingPipeSize',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '井控级别',
|
|
|
- // prop: 'wellControlLevel',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '当日',
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // label: '用电量(kWh)',
|
|
|
- // prop: 'dailyPowerUsage',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '油耗(吨)',
|
|
|
- // prop: 'dailyFuel',
|
|
|
- // 'min-width': '120px'
|
|
|
- // }
|
|
|
- // ]
|
|
|
- // },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '总施工井数',
|
|
|
+ prop: 'totalConstructionWells',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '完工井数',
|
|
|
+ prop: 'completedWells',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '施工工艺',
|
|
|
+ prop: 'technique',
|
|
|
+ 'min-width': '120px',
|
|
|
+ isTag: true,
|
|
|
+ dictType: DICT_TYPE.PMS_PROJECT_RY_TECHNOLOGY
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '井别',
|
|
|
+ prop: 'wellCategory',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '井深(m)',
|
|
|
+ prop: 'designWellDepth',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '套生段产管尺寸(mm)',
|
|
|
+ prop: 'casingPipeSize',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '井控级别',
|
|
|
+ prop: 'wellControlLevel',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '当日',
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ label: '用电量(kWh)',
|
|
|
+ prop: 'dailyPowerUsage',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '油耗(吨)',
|
|
|
+ prop: 'dailyFuel',
|
|
|
+ 'min-width': '120px'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
// {
|
|
|
// label: '施工开始日期',
|
|
|
// prop: 'constructionStartDate',
|
|
|
@@ -171,65 +172,70 @@ const columns = ref<Column[]>([
|
|
|
// 'min-width': '120px',
|
|
|
// formatter: (row: List) => dayjs(row.constructionEndDate).format('YYYY-MM-DD HH:mm:ss')
|
|
|
// },
|
|
|
- // {
|
|
|
- // label: '目前工序',
|
|
|
- // prop: 'currentOperation',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '下步工序',
|
|
|
- // prop: 'nextPlan',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '运行时效',
|
|
|
- // prop: 'transitTime',
|
|
|
- // 'min-width': '120px',
|
|
|
- // formatter: (row: List) => (row.transitTime * 100).toFixed(2) + '%'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '额定生产时间(H)',
|
|
|
- // prop: 'ratedProductionTime',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '生产时间(H)',
|
|
|
- // prop: 'productionTime',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '非生产时间(H)',
|
|
|
- // prop: 'nonProductionTime',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '非生产时间原因',
|
|
|
- // prop: 'ryNptReason',
|
|
|
- // 'min-width': '120px',
|
|
|
- // isTag: true,
|
|
|
- // dictType: DICT_TYPE.PMS_PROJECT_RY_NPT_REASON
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '生产动态',
|
|
|
- // prop: 'productionStatus',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '全员数量',
|
|
|
- // prop: 'totalStaffNum',
|
|
|
- // 'min-width': '120px'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '在岗人数',
|
|
|
- // prop: 'onDutyStaffNum',
|
|
|
- // 'min-width': '120px',
|
|
|
- // formatter: (row: List) => (Number(row.totalStaffNum) || 0) - (Number(row.offDutyStaffNum) || 0)
|
|
|
- // },
|
|
|
- // {
|
|
|
- // label: '休假人员数量',
|
|
|
- // prop: 'leaveStaffNum',
|
|
|
- // 'min-width': '120px'
|
|
|
- // }
|
|
|
+ {
|
|
|
+ label: '目前工序',
|
|
|
+ prop: 'currentOperation',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '下步工序',
|
|
|
+ prop: 'nextPlan',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '运行时效',
|
|
|
+ prop: 'transitTime',
|
|
|
+ 'min-width': '120px',
|
|
|
+ formatter: (row: List) => (row.transitTime * 100).toFixed(2) + '%'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '额定生产时间(H)',
|
|
|
+ prop: 'ratedProductionTime',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '生产时间(H)',
|
|
|
+ prop: 'productionTime',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '非生产时间(H)',
|
|
|
+ prop: 'nonProductionTime',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '非生产时间原因',
|
|
|
+ prop: 'ryNptReason',
|
|
|
+ 'min-width': '120px',
|
|
|
+ isTag: true,
|
|
|
+ dictType: DICT_TYPE.PMS_PROJECT_RY_NPT_REASON
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '生产动态',
|
|
|
+ prop: 'productionStatus',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '项目',
|
|
|
+ prop: 'contractName',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '全员数量',
|
|
|
+ prop: 'totalStaffNum',
|
|
|
+ 'min-width': '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '在岗人数',
|
|
|
+ prop: 'onDutyStaffNum',
|
|
|
+ 'min-width': '120px',
|
|
|
+ formatter: (row: List) => (Number(row.totalStaffNum) || 0) - (Number(row.offDutyStaffNum) || 0)
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '休假人员数量',
|
|
|
+ prop: 'leaveStaffNum',
|
|
|
+ 'min-width': '120px'
|
|
|
+ }
|
|
|
])
|
|
|
|
|
|
const getTextWidth = (text: string, fontSize = 12) => {
|