From 424a7783c0064e5e1e94cea2691fa9d822f78460 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 27 五月 2025 08:48:18 +0800
Subject: [PATCH] gx
---
src/views/home/index.vue | 28 ++++++++++++++++------------
1 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index bd80506..b3849c8 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -15,8 +15,6 @@
<el-col v-if="dialogVisible" :span="12" style="text-align: right;padding-top: 10px;">
<el-input v-model="inputCode" ref="inputRef" id="inputCode" @change="inputChabge" style="width: 400px; height: 40px;ime-mode:active;margin-right: 20px;"
placeholder="请输入患者卡号或扫描条码" />
-
-
</el-col>
<el-col v-else :span="12">
<div class="dateclas" style="float: right;margin-top: 20px;">
@@ -60,7 +58,8 @@
</div>
<div style="display: grid;place-items: center;font-size: 120px;font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;font-weight: 800;color: #65AAF6;">
<template v-if="configData.deviceType==='体重秤'">
- {{ weightInfo.result }}
+ <!-- {{ weightInfo.result }} -->
+ {{weightInfoResult}}
</template>
<template v-else>
{{ Number(gao_ya) }}
@@ -91,20 +90,21 @@
</template>
</div>
- <div class="textwenben" style="height: 70%; font-size: 80px; color: #9F61DC;font-weight: 1000;">
+ <div class="textwenben" style="height: 70%; font-size: 80px; color: #9F61DC;font-weight: 1000;text-align: center;">
<template v-if="configData.deviceType==='体重秤'">
<template v-if="patientInfo.isAfterMed===0&&!configData.gantiziShow">
- {{ patientInfo.deviceNo }}
+ <div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div>
+
</template>
- <template v-else>{{patientInfo.pureWeight}}</template>
+ <template v-else>{{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</template>
</template>
<template v-else>
<template v-if="patientInfo.isAfterMed===0">
- {{ patientInfo.deviceNo }}
+ <div style="font-size: 50px"> {{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div>
</template>
<template v-else>
- {{ patientInfo.deviceNo }}
+ <div style="font-size: 50px">{{ patientInfo.设备分区名称 }}<br/>{{ patientInfo.deviceNo }}</div>
</template>
</template>
@@ -322,6 +322,8 @@
const datetext=computed(()=>{
return formatDate(new Date(),'YYYY-mm-dd WWW')
})
+/**体重发送时候显示在界面的体重 */
+const weightInfoResult=ref()
let timer:any=new Date()
const date=ref('')
const timeShidaun=ref('')
@@ -671,6 +673,7 @@
watch(
() => patientInfo.value.datetime,
() => {
+ weightInfoResult.value=''
patientCodeLs = ''
patientCodeLsXy = ''
aimTSL.value = ''
@@ -681,7 +684,7 @@
// 人脸识别成功后 1查看是否开启测温
// console.log(`患者信息识别成功:${patientInfo.value.name}`)
ipcRenderer.invoke('logger', `患者信息识别成功:${patientInfo.value.name}`)
- let str = `${patientInfo.value.name}识别成功。床号:${patientInfo.value.deviceNo}`
+ let str = `${patientInfo.value.name}识别成功,分区:${patientInfo.value.设备分区名称},床号:${patientInfo.value.deviceNo},`
dialogVisible.value = false
speech.value?.speak({ text: str }).then(() => {
})
@@ -776,6 +779,7 @@
ipcRenderer.invoke('logger', `开始发送结果到服务器:患者:${patientInfo.value.name},体重结果:${weightInfo.value.result}`)
console.log(`开始发送结果到服务器:患者:${patientInfo.value.name},体重结果:${weightInfo.value.result}`)
sundModeTz()
+ weightInfoResult.value=weightInfo.value.result
}
else {
// 临时患者code=当前患者code
@@ -876,7 +880,7 @@
ipcRenderer.invoke('logger', '结果上传成功')
// 测量结果发送成功后就一定要体重秤归零才行 关闭体重秤归零状态为false
// 只增对M503
- if(configData.value.tzc_type==='M503'||configData.value.tzc_type==='seca101Banger'){
+ if(configData.value.tzc_type==='M503'||configData.value.tzc_type==='seca101Banger'||configData.value.tzc_type==='XK3190-A12'){
console.log('发送清理体重归零')
sockteStore().setis测量准备(false)
}
@@ -1171,8 +1175,8 @@
const X= jgTime(lsDateTime,new Date())
//人脸上传到阿里云
// 只有是结果归零状态才能进行识别
- console.log(`检查人脸是否要上传到阿里云识别:${sockteStore().is测量准备}`)
- if(dialogVisible.value&&X>configData.value.face_push&&isworkTime(new Date())&&sockteStore().is测量准备){
+ console.log(`检查人脸是否要上传到阿里云识别:归零状态${sockteStore().is测量准备},`)
+ if(dialogVisible.value&&X>configData.value.face_push&&sockteStore().is测量准备){
lsDateTime=new Date()
// console.log(X,'上传图片间隔')
base64toFile(image)
--
Gitblit v1.8.0