Переглянути джерело

瑞恒注气量精度调整

Zimo 1 тиждень тому
батько
коміт
5f90cdd694

+ 2 - 2
src/views/pms/iotrhdailyreport/index.vue

@@ -54,7 +54,7 @@ const totalWorkKeys: [string, string, string, string, number][] = [
     0
   ],
   ['notReported', '个', '未填报', 'i-material-symbols:cancel-outline-rounded text-rose', 0],
-  ['totalGasInjection', '万方', '累计注气量', 'i-material-symbols:cloud-outline text-sky', 2],
+  ['totalGasInjection', '万方', '累计注气量', 'i-material-symbols:cloud-outline text-sky', 4],
   [
     'totalWaterInjection',
     '万方',
@@ -103,7 +103,7 @@ const totalWorkloadDetail = ref({
   totalNaturalGasInjection: 0
 })
 
-const formatGasInjectionTooltipValue = (value?: number | null) => ((value || 0) / 10000).toFixed(2)
+const formatGasInjectionTooltipValue = (value?: number | null) => ((value || 0) / 10000).toFixed(4)
 
 const getTotal = useDebounceFn(async function () {
   totalLoading.value = true

+ 1 - 1
src/views/pms/iotrhdailyreport/rh-table.vue

@@ -104,7 +104,7 @@ function unitformatter(
 ) {
   if (cellValue === null || cellValue === undefined || cellValue == '') return ''
   const value = parseFloat(cellValue)
-  return (value / 10000).toFixed(2)
+  return (value / 10000).toFixed(4)
 }
 
 const cellStyle = ({ row, column }: { row: any; column: any }) => {

+ 3 - 3
src/views/pms/iotrhdailyreport/summary.vue

@@ -44,7 +44,7 @@ const query = ref<Query>({
 })
 
 const totalWorkKeys: [string, string, string, string, number][] = [
-  ['totalGasInjection', '万方', '累计注气量', 'i-material-symbols:cloud-outline text-sky', 2],
+  ['totalGasInjection', '万方', '累计注气量', 'i-material-symbols:cloud-outline text-sky', 4],
   [
     'totalWaterInjection',
     '万方',
@@ -102,7 +102,7 @@ const totalWorkloadDetail = ref({
   totalNaturalGasInjection: 0
 })
 
-const formatGasInjectionTooltipValue = (value?: number | null) => ((value || 0) / 10000).toFixed(2)
+const formatGasInjectionTooltipValue = (value?: number | null) => ((value || 0) / 10000).toFixed(4)
 
 const getTotal = useDebounceFn(async () => {
   totalLoading.value = true
@@ -254,7 +254,7 @@ const getList = useDebounceFn(async () => {
           id: type === '2' ? projectDeptId : teamId,
           name: type === '2' ? projectDeptName : teamName,
           ...other,
-          cumulativeGasInjection: ((other.cumulativeGasInjection || 0) / 10000).toFixed(2),
+          cumulativeGasInjection: ((other.cumulativeGasInjection || 0) / 10000).toFixed(4),
           cumulativeWaterInjection: ((other.cumulativeWaterInjection || 0) / 10000).toFixed(2),
           cumulativePowerConsumption: ((other.cumulativePowerConsumption || 0) / 1000).toFixed(2),
           cumulativeFuelConsumption: (other.cumulativeFuelConsumption || 0).toFixed(2),