|
@@ -47,6 +47,13 @@ const totalWorkKeys: [string, string, string, string, number][] = [
|
|
|
0
|
|
0
|
|
|
],
|
|
],
|
|
|
['notReported', '个', '未填报', 'i-material-symbols:cancel-outline-rounded text-rose', 0],
|
|
['notReported', '个', '未填报', 'i-material-symbols:cancel-outline-rounded text-rose', 0],
|
|
|
|
|
+ [
|
|
|
|
|
+ 'averageFuelConsumption',
|
|
|
|
|
+ '升',
|
|
|
|
|
+ '平均油耗',
|
|
|
|
|
+ 'i-material-symbols:directions-car-outline-rounded text-sky',
|
|
|
|
|
+ 2
|
|
|
|
|
+ ],
|
|
|
[
|
|
[
|
|
|
'totalFuelConsumption',
|
|
'totalFuelConsumption',
|
|
|
'升',
|
|
'升',
|
|
@@ -70,7 +77,8 @@ const totalWork = ref({
|
|
|
notReported: 0,
|
|
notReported: 0,
|
|
|
totalFuelConsumption: 0,
|
|
totalFuelConsumption: 0,
|
|
|
totalPowerConsumption: 0,
|
|
totalPowerConsumption: 0,
|
|
|
- totalFootage: 0
|
|
|
|
|
|
|
+ totalFootage: 0,
|
|
|
|
|
+ averageFuelConsumption: 0
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const totalLoading = ref(false)
|
|
const totalLoading = ref(false)
|
|
@@ -101,7 +109,8 @@ const getTotal = useDebounceFn(async () => {
|
|
|
...res2,
|
|
...res2,
|
|
|
totalPowerConsumption: (res2.totalPowerConsumption || 0) / 1000,
|
|
totalPowerConsumption: (res2.totalPowerConsumption || 0) / 1000,
|
|
|
totalGasInjection: (res2.totalGasInjection || 0) / 10000,
|
|
totalGasInjection: (res2.totalGasInjection || 0) / 10000,
|
|
|
- totalFuelConsumption: res2.totalFuelConsumption || 0
|
|
|
|
|
|
|
+ totalFuelConsumption: res2.totalFuelConsumption || 0,
|
|
|
|
|
+ averageFuelConsumption: res2.averageFuelConsumption || 0
|
|
|
}
|
|
}
|
|
|
} finally {
|
|
} finally {
|
|
|
totalLoading.value = false
|
|
totalLoading.value = false
|
|
@@ -118,6 +127,7 @@ interface List {
|
|
|
cumulativeFuelConsumption: number | null
|
|
cumulativeFuelConsumption: number | null
|
|
|
transitTime: number | null
|
|
transitTime: number | null
|
|
|
nonProductiveTime: number | null
|
|
nonProductiveTime: number | null
|
|
|
|
|
+ averageFuelConsumption: number | null
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const list = ref<List[]>([])
|
|
const list = ref<List[]>([])
|
|
@@ -142,6 +152,10 @@ const columns = (type: string) => {
|
|
|
label: '累计油耗(升)',
|
|
label: '累计油耗(升)',
|
|
|
prop: 'cumulativeFuelConsumption'
|
|
prop: 'cumulativeFuelConsumption'
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '平均油耗(升)',
|
|
|
|
|
+ prop: 'averageFuelConsumption'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: '平均时效(%)',
|
|
label: '平均时效(%)',
|
|
|
prop: 'transitTime'
|
|
prop: 'transitTime'
|
|
@@ -178,7 +192,8 @@ const getList = useDebounceFn(async () => {
|
|
|
name: type === '2' ? projectDeptName : teamName,
|
|
name: type === '2' ? projectDeptName : teamName,
|
|
|
...other,
|
|
...other,
|
|
|
cumulativePowerConsumption: ((other.cumulativePowerConsumption || 0) / 1000).toFixed(2),
|
|
cumulativePowerConsumption: ((other.cumulativePowerConsumption || 0) / 1000).toFixed(2),
|
|
|
- cumulativeFuelConsumption: (other.cumulativeFuelConsumption || 0).toFixed(2)
|
|
|
|
|
|
|
+ cumulativeFuelConsumption: (other.cumulativeFuelConsumption || 0).toFixed(2),
|
|
|
|
|
+ averageFuelConsumption: (other.averageFuelConsumption || 0).toFixed(2)
|
|
|
})
|
|
})
|
|
|
)
|
|
)
|
|
|
} finally {
|
|
} finally {
|
|
@@ -527,7 +542,7 @@ const tolist = (id: number, non: boolean = false) => {
|
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <div class="grid grid-cols-6 gap-8">
|
|
|
|
|
|
|
+ <div class="grid grid-cols-7 gap-8">
|
|
|
<div
|
|
<div
|
|
|
v-for="info in totalWorkKeys"
|
|
v-for="info in totalWorkKeys"
|
|
|
:key="info[0]"
|
|
:key="info[0]"
|