Просмотр исходного кода

🦄 refactor(日报汇总): 调整部份/10000

Zimo 2 дней назад
Родитель
Сommit
ba9e33ab82

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

@@ -54,17 +54,17 @@ const totalWorkKeys: [string, string, string, string, number][] = [
   ],
   [
     'totalPowerConsumption',
-    'KWH',
+    'MWH',
     '累计用电量',
     'i-material-symbols:electric-bolt-outline-rounded text-sky',
-    2
+    4
   ],
   [
     'totalWaterInjection',
-    '方',
+    '方',
     '累计注水量',
     'i-material-symbols:water-drop-outline-rounded text-sky',
-    2
+    4
   ],
   ['totalGasInjection', '万方', '累计注气量', 'i-material-symbols:cloud-outline text-sky', 4]
 ]
@@ -104,9 +104,9 @@ const getTotal = useDebounceFn(async () => {
     totalWork.value = {
       ...totalWork.value,
       totalFuelConsumption: 0,
-      totalPowerConsumption: 0,
-      totalWaterInjection: 0,
       ...res2,
+      totalPowerConsumption: (res2.totalPowerConsumption || 0) / 10000,
+      totalWaterInjection: (res2.totalWaterInjection || 0) / 10000,
       totalGasInjection: (res2.totalGasInjection || 0) / 10000
     }
   } finally {

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

@@ -56,10 +56,10 @@ const totalWorkKeys: [string, string, string, string, number][] = [
   ],
   [
     'totalPowerConsumption',
-    'KWH',
+    'MWH',
     '累计用电量',
     'i-material-symbols:electric-bolt-outline-rounded text-sky',
-    2
+    4
   ],
   ['totalFootage', 'M', '累计进尺', 'i-solar:ruler-bold text-sky', 2]
 ]
@@ -98,9 +98,9 @@ const getTotal = useDebounceFn(async () => {
     totalWork.value = {
       ...totalWork.value,
       totalFuelConsumption: 0,
-      totalPowerConsumption: 0,
       totalFootage: 0,
       ...res2,
+      totalPowerConsumption: (res2.totalPowerConsumption || 0) / 10000,
       totalGasInjection: (res2.totalGasInjection || 0) / 10000
     }
   } finally {

+ 4 - 4
src/views/pms/iotrydailyreport/xsummary.vue

@@ -56,10 +56,10 @@ const totalWorkKeys: [string, string, string, string, number][] = [
   ],
   [
     'totalPowerConsumption',
-    'KWH',
+    'MWH',
     '累计用电量',
     'i-material-symbols:electric-bolt-outline-rounded text-sky',
-    2
+    4
   ],
   ['constructionWells', '个', '累计施工井数', 'i-mdi:progress-wrench text-sky', 0],
   ['completedWells', '个', '累计完工井数', 'i-mdi:wrench-check-outline text-emerald', 0]
@@ -100,10 +100,10 @@ const getTotal = useDebounceFn(async () => {
     totalWork.value = {
       ...totalWork.value,
       totalFuelConsumption: 0,
-      totalPowerConsumption: 0,
       constructionWells: 0,
       completedWells: 0,
-      ...res2
+      ...res2,
+      totalPowerConsumption: (res2.totalPowerConsumption || 0) / 10000
     }
   } finally {
     totalLoading.value = false