|
|
@@ -368,6 +368,14 @@
|
|
|
:min-width="columnWidths.otherNptReason.width"
|
|
|
resizable
|
|
|
/>
|
|
|
+ <el-table-column
|
|
|
+ label="非生产时效"
|
|
|
+ align="center"
|
|
|
+ prop="nonProductionRate"
|
|
|
+ :formatter="nonProductionRateFormatter"
|
|
|
+ :min-width="columnWidths.nonProductionRate.width"
|
|
|
+ resizable
|
|
|
+ />
|
|
|
<!-- <el-table-column
|
|
|
:label="t('project.nptReason')"
|
|
|
align="center"
|
|
|
@@ -482,6 +490,7 @@
|
|
|
:min-width="columnWidths.capacity.width"
|
|
|
resizable
|
|
|
/>
|
|
|
+
|
|
|
<!-- <el-table-column label="操作" align="center" fixed="right">
|
|
|
<template #default="scope">
|
|
|
<el-button
|
|
|
@@ -816,9 +825,21 @@ const columnWidths = ref<
|
|
|
prop: 'capacity',
|
|
|
width: '120px',
|
|
|
fn: (row: IotRhDailyReportVO) => gasInjectionFormatter(null, null, row.capacity, null)
|
|
|
+ },
|
|
|
+ nonProductionRate: {
|
|
|
+ label: '非生产时效',
|
|
|
+ prop: 'nonProductionRate',
|
|
|
+ width: '120px',
|
|
|
+ fn: (row: IotRhDailyReportVO) => nonProductionRateFormatter(row)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const nonProductionRateFormatter = (row: any) => {
|
|
|
+ const nonProductionRate = row?.nonProductionRate ?? 0
|
|
|
+
|
|
|
+ return (nonProductionRate * 100).toFixed(2) + '%'
|
|
|
+}
|
|
|
+
|
|
|
const gasElectricityRatioFormatter = (row: any) => {
|
|
|
const gasElectricityRatio = row?.gasElectricityRatio ?? 0
|
|
|
|