From b9657e5cfdb38579600e745150eb398b67515b65 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期六, 05 八月 2023 23:06:02 +0800
Subject: [PATCH] 更新定时器

---
 src/views/home/index.vue |   34 +++++++++++++++++++++++++++++-----
 1 files changed, 29 insertions(+), 5 deletions(-)

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 8a76ba4..31d4389 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -18,16 +18,22 @@
                     </div>
                 </div>
                 <div style="width: 100%; height: 20%;" >
-                    <div style="font-size: 2rem; color: #FFFFFF;margin-left: 1rem;" >
+                    <div style="font-size: 2rem; color: #FFFFFF;margin-left: 0.5rem;" >
                       {{timeShidaun}}
                     </div>
                 </div>
-                <div style="width: 100%; height: 25%;padding-top: 0.5rem;" >
-                    <div style="font-size: 2.5rem; color: #FFFFFF;margin-left: 1rem;">{{ patientInfo.name }}</div>
+                <div style="width: 100%; height: 30%;" >
+                    <div style="font-size: 2.5rem; color: #FFFFFF;margin-left: 0.5rem;">{{ patientInfo.name }}</div>
                 </div>
-                <div style="width: 100%; height: 25%; padding-top: 1rem;">
-                    <div style="font-size: 1.5rem;  color: #FFFFFF;margin-left: 1rem;">透析号:{{ patientInfo.hemoCode }}</div>
+                <div style="width: 100%; height: 20%;">
+                    <div style="font-size: 1.5rem;  color: #FFFFFF;margin-left: 0.5rem;">透析号:{{ patientInfo.hemoCode }}</div>
                 </div>
+                <div v-if="is_ce_wen" style="width: 100%; height: 20%;">
+                    <div style="font-size: 1.5rem;  color: #FFFFFF;margin-left: 0.5rem;">
+                      体温:<span v-if="dangqian_wendu>30">{{dangqian_wendu}}°C</span>
+                      <span v-else>      /</span>
+                    </div>
+                </div> 
               </el-col>
             </el-row> 
             <el-row style="height: 30%;background: rgba(243, 247, 243, 0.3);border-radius: 8px; margin-top: 5%; font-size: 2rem;">
@@ -213,6 +219,7 @@
 import { confingInfoStore } from '@/stores/StoresConfing'
 import {base64toFile} from '@/samples/faceApi'
 import{initPort} from '@/samples/portApi'
+import{initPort as oumulongHbp9030 } from '@/samples/deviceApi/oumulong-HBP-9030'
 import { ElLoading, ElMessage } from 'element-plus'
 let trackerTask: any = null;
 // 标识用的画布
@@ -328,6 +335,9 @@
 // 患者
 const patientInfo = computed(() => {
   return patientInfoStore().patientInfo
+})
+const dangqian_wendu=computed(()=>{
+  return sockte.wendu
 })
 // 计数
 const viewNumber = computed(() => {
@@ -523,6 +533,8 @@
           bloodPressure: ''
         }
         if (patientCodeLs !== mode.patientCode) {
+          // 定时数秒器
+          settime()
           const tt = mode.weight.replace('.', '点')
           speech.value?.speak({ text: `称重完成,${tt}kg` }).then(() => {
             console.log("播报完成...")
@@ -578,6 +590,8 @@
         fasongNum.value=0
         // console.log(`开始发送结果到服务器:患者:${patientInfo.value.name},血压结果:${mode.bloodPressure}`)
         ipcRenderer.invoke('logger', `开始发送结果到服务器:患者:${patientInfo.value.name},血压结果:${mode.bloodPressure}`)
+        // 定时数秒器
+        settime()
         sundModeXyj()
       }
     } else {
@@ -592,6 +606,9 @@
     patientCode: patientInfo.value.code,
     weight: weightInfo.value.result,
     bloodPressure: ''
+  }
+  if(dangqian_wendu.value>30){
+    mode.temperature=dangqian_wendu.value
   }
   fasongNum.value++
   ipcRenderer.invoke('logger', `患者结果上传,第${fasongNum.value}次`)
@@ -621,6 +638,9 @@
     patientCode: patientInfo.value.code,
     weight: '',
     bloodPressure: xyjInfo.value.result
+  }
+  if(dangqian_wendu.value>30){
+    mode.temperature=dangqian_wendu.value
   }
   fasongNum.value++
   ipcRenderer.invoke('logger', `患者结果上传,第${fasongNum.value}次`)
@@ -700,6 +720,10 @@
     if(is_ce_wen.value){
       initPort(configData.value.portPath,configData.value.baudRate)
     }
+    // 是否开启血压计联机
+    if(configData.value.Is_xyj){
+      oumulongHbp9030(configData.value.xueyanjiPortPath,configData.value.xueyanjiBaudRate)
+    }
       // 是否开启脸识别
     isUseFaceRecogService.value = configData.value.isUseFaceRecogService
     console.log('人脸识别',isUseFaceRecogService.value)

--
Gitblit v1.8.0