From 245efaa0449d03ec8db1faca6827d5e68b548316 Mon Sep 17 00:00:00 2001
From: chenyincheng <501753378@qq.com>
Date: 星期一, 20 三月 2023 22:42:50 +0800
Subject: [PATCH] 45

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

diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index a5c58fe..b04fdec 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -47,6 +47,9 @@
     const weightInfo = computed(() => {
       return sockte.weightSockte
     })
+    const faceInfo = computed(() => {
+      return sockte.faceInfoSockte
+    })
     const xyjInfo = computed(() => {
       return sockte.xyjSockte
     })
@@ -165,9 +168,9 @@
         }
         // 没有找到患者
         else if (patientInfo.value.name === '') {
-          speech.value?.speak({ text: "没有找到患者,请重新刷卡" }).then(() => {
-            console.log("播报完成...")
-          })
+          // speech.value?.speak({ text: "没有找到患者,请重新刷卡" }).then(() => {
+          //   console.log("播报完成...")
+          // })
           if (isUseFaceRecogService.value) {
             state.dialogVisible = true
           }
@@ -289,6 +292,14 @@
         }
       }
     );
+    watch(
+      ()=>faceInfo.value.result,
+      ()=>{
+        console.log('页面收到了人脸识别')
+        sendPationCodeApi(faceInfo.value.result)
+        // console.log(faceInfo.value.result)
+      }
+    )
     watch(() => viewNumber,
       () => {
         state.clockNum = viewNumber.value
@@ -431,12 +442,12 @@
           <el-row class="rowdiv">
             <el-col :span="12">
               <div class="lableclass">
-                机号:
+                衣物重(kg):
               </div>
             </el-col>
             <el-col :span="12">
               <div class="textclass">
-                {{ patientInfo.deviceCode }}
+                {{ patientInfo.clothesWeight }}
               </div>
             </el-col>
           </el-row>

--
Gitblit v1.8.0