From a5673d5a3fb9291054a98e56ab359431433ee5fa Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 18 五月 2023 21:07:51 +0800
Subject: [PATCH] 更新界面显示

---
 src/views/home/index.vue |   26 +++++++++++++++++++++++---
 1 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 5787982..77173cf 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -270,6 +270,8 @@
             // 计算目标脱水量
             if (Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===0) {
               state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.pureWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
+            }else if(Number(weightInfo.value.result) > 0 && Number(patientInfo.value.pureWeight) !== 0&&patientInfo.value.isAfterMed===1 && patientInfo.value.preWeight>10){
+              state.aimTSL = (Number(weightInfo.value.result) - Number(patientInfo.value.preWeight)- Number(patientInfo.value.clothesWeight)).toFixed(2)
             }
           }
       }
@@ -480,7 +482,7 @@
             <el-col :span="8" class="imgclass">
               <el-image style="width: 100%; height: 85%" :src="patientInfo.patientAvatarIcon" fit="cover" />
             </el-col>
-            <el-col :span="15" class="userinfo">
+            <el-col :span="15" class="userinfo" style="margin-top: -5%;">
               <el-row>
                 <el-col :span="12">
                   <div class="lableclass">
@@ -503,6 +505,18 @@
                 <el-col :span="12">
                   <div class="textclass">
                     {{ patientInfo.hemoCode }}
+                  </div>
+                </el-col>
+              </el-row>
+              <el-row style="margin-top: 10%;">
+                <el-col :span="12">
+                  <div class="lableclass">
+                    床号:
+                  </div>
+                </el-col>
+                <el-col :span="12">
+                  <div class="textclass">
+                    {{ patientInfo.deviceNo }}
                   </div>
                 </el-col>
               </el-row>
@@ -564,8 +578,11 @@
           </el-row>
           <el-row class="rowdiv">
             <el-col :span="12">
-              <div class="lableclass">
+              <div v-if="patientInfo.isAfterMed===0" class="lableclass">
                 目标脱水量(L):
+              </div>
+              <div v-else class="lableclass">
+                体重减少(kg):
               </div>
             </el-col>
             <el-col :span="12">
@@ -580,9 +597,12 @@
         <div class="divcol" :style="{ height: haodu }">
           <el-row class="titleHand">
             <el-col :span="12">
-              <div class="tilaft">
+              <div class="tilaft" v-if="patientInfo.isAfterMed===0">
                 透前体重(kg):
               </div>
+              <div class="tilaft" v-else>
+                透后体重(kg):
+              </div>
             </el-col>
             <el-col :span="12">
               <div class="tiregth">

--
Gitblit v1.8.0