From c77c36196fb317cb530d684cd40780fd410d21aa Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期四, 04 九月 2025 15:12:10 +0800
Subject: [PATCH] Merge branch 'ID1956-已签到页面改版' into test

---
 src/views/mobile/bedsideAuxiliaryScreen/pages/SignedIn.vue |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/src/views/mobile/bedsideAuxiliaryScreen/pages/SignedIn.vue b/src/views/mobile/bedsideAuxiliaryScreen/pages/SignedIn.vue
index a30da51..9e9d42f 100644
--- a/src/views/mobile/bedsideAuxiliaryScreen/pages/SignedIn.vue
+++ b/src/views/mobile/bedsideAuxiliaryScreen/pages/SignedIn.vue
@@ -100,6 +100,8 @@
                     item.是否为追加 ? item.追加剂量 : item.维持剂量
                   }}{{ item.单位 }}</span
                 >
+              </div>
+              <div class="list-item-num">
                 <span>总量:{{ item.总量 }}{{ item.单位 }}</span>
               </div>
             </div>
@@ -127,7 +129,7 @@
                 <template v-if="pageData.最近最大脱水量透析时长"
                   >/
                   <span class="level-dete">{{
-                    pageData.最近最大脱水量透析时长
+                    formatDuration(pageData.最近最大脱水量透析时长)
                   }}</span>
                 </template>
               </div>
@@ -577,7 +579,11 @@
   const cylinderRadius = 6;
   const cylinderHeight = 计算脱水量刻度 * (datas?.[0]?.超滤总量 || 0);
   const 体重增长_透前减干体重 = weightGain2.value;
-  const 透前减干体重减超滤总量差值 = 体重增长_透前减干体重 - (datas?.[0]?.超滤总量 || 0);
+  const 透前减干体重减超滤总量差值 =
+  Math.round(
+    (体重增长_透前减干体重 - (datas?.[0]?.超滤总量 || 0)) * 10
+  ) / 10;
+
 
   drawCylinder(
     ctx,
@@ -672,6 +678,19 @@
     ctx.fillText(透前减干体重减超滤总量差值 + "", textX, canvasHeight - 10); // 文本位于圆柱上方一点
   }
 };
+
+function formatDuration(input: string): string {
+  const match = input.match(/(\d+)小时(\d+)分钟/);
+  if (!match) return input; // 如果不符合格式,直接返回原字符串
+
+  const hours = parseInt(match[1], 10);
+  const minutes = parseInt(match[2], 10);
+
+  if (minutes > 0) {
+    return `${hours}h${minutes}min`;
+  }
+  return `${hours}h`;
+}
 onMounted(() => {
   genderBloodPressureRectangularChart(pageData.value.四点血压图数据);
 });
@@ -808,7 +827,7 @@
               text-align: left;
               font-style: normal;
               .list-item-name {
-                margin-bottom: 2px;
+                // margin-bottom: 2px;
               }
             }
           }

--
Gitblit v1.8.0