From 86757b78b4fede4c68af4e431817d53fa3446eb8 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 01 七月 2025 19:49:43 +0800
Subject: [PATCH] 识别叫号
---
src/views/home/index.vue | 3 ++-
src/samples/sockteStomp.ts | 1 +
src/stores/patient.ts | 1 +
3 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/samples/sockteStomp.ts b/src/samples/sockteStomp.ts
index 2320f04..e1fcc92 100644
--- a/src/samples/sockteStomp.ts
+++ b/src/samples/sockteStomp.ts
@@ -84,6 +84,7 @@
id:resultInfo.patientInfo===null?0:resultInfo.patientInfo.id,
code:resultInfo.patientInfo===null?'':resultInfo.patientInfo.code,
name:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientName,
+ patientNamePyFull:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientNamePyFull,
patientAvatarIcon:resultInfo.patientInfo===null?'':resultInfo.patientInfo.patientAvatarIcon,
deviceCode:resultInfo.deviceCode===null?"":resultInfo.deviceCode,
patientGender:resultInfo.patientInfo.patientGender,
diff --git a/src/stores/patient.ts b/src/stores/patient.ts
index 07ac50a..012eaf1 100644
--- a/src/stores/patient.ts
+++ b/src/stores/patient.ts
@@ -7,6 +7,7 @@
id:0,
code:'',
name:'',
+ patientNamePyFull:'',
patientAvatarIcon:'',
patientGender:0,
deviceCode:'',
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 4360935..9b3395a 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -429,6 +429,7 @@
id: 0,
code: '',
name: '',
+ patientNamePyFull:'',
patientAvatarIcon: '',
deviceCode: '',
hemoCode: '',
@@ -673,7 +674,7 @@
// 人脸识别成功后 1查看是否开启测温
// console.log(`患者信息识别成功:${patientInfo.value.name}`)
ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`)
- let str = `${patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},`
+ let str = `${patientInfo.value.patientNamePyFull?patientInfo.value.patientNamePyFull:patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},`
dialogVisible.value = false
speech.value?.speak({ text: str }).then(() => {
})
--
Gitblit v1.8.0