From a7fb2f5eab3e548f040004c1019f1c994eb91ad4 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期二, 09 十二月 2025 14:44:36 +0800
Subject: [PATCH] 日常更新

---
 src/samples/sockteStomp.ts |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/src/samples/sockteStomp.ts b/src/samples/sockteStomp.ts
index 06ff34e..d867d75 100644
--- a/src/samples/sockteStomp.ts
+++ b/src/samples/sockteStomp.ts
@@ -1,6 +1,5 @@
 import Stomp from 'stompjs'
 import os from 'os'
-import { ipcRenderer } from 'electron'
 let stompClient: Stomp.Client | null=null
 
 import { confingInfoStore } from '@/stores/StoresConfing'
@@ -79,18 +78,39 @@
 }
 const writePatient=(resultInfo:any)=>{
     // 给一个时间变化
-    const da=new Date().toTimeString()  
+    const da=new Date()
     console.log(da)
+   
     const info={
         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,
+        patientGenderText:resultInfo.patientInfo.patientGenderText,
         hemoCode:resultInfo.hemoCode===null?"":resultInfo.hemoCode,
         pureWeight:resultInfo.pureWeight===null?"":resultInfo.pureWeight,
         datetime:da,
-        isScheduled:resultInfo.isScheduled
+        clothesWeight:resultInfo.clothesWeight===null?0:resultInfo.clothesWeight,
+        isScheduled:resultInfo.isScheduled,
+        isAfterMed:resultInfo.isAfterMed,
+        deviceNo:resultInfo.deviceNo,
+        设备分区名称:resultInfo.设备分区名称,
+        preWeight:resultInfo.preWeight,
+        // s上次体重
+        lastTimeAfterWeight:resultInfo.lastTimeAfterWeight,
+        // 上次血压
+        lastTimeAfterBP:resultInfo.lastTimeAfterBP,
+        txq:resultInfo.txq,
+        medMethod:resultInfo.medMethod,
+        glq:resultInfo.glq,
+        preBP:resultInfo.preBP,
+        nextRecordDate:resultInfo.nextRecordDate,
+        actuallyClliang:resultInfo.actuallyClliang,
+        下次透析方案名称:resultInfo.下次透析方案名称,
+        下次透析时段:resultInfo.下次透析时段
     }
     // 写入vuex里
     patientInfoStore().setpatientInfo(info)
@@ -157,7 +177,7 @@
 // 创建客户端链接
 const creatorClient=(configObj:any)=>{
     config=configObj
-    devices=configObj.deviceList
+    // devices=configObj.deviceList
     clientCode=configObj.clientCode
     console.log(devices,'设备列表','chong')
     const socket = new WebSocket('ws://hemobs.icoldchain.cn/broadcast')
@@ -187,4 +207,4 @@
         stompClient.send(`/app/patient/info/set`,{},JSON.stringify(mode))
     }
 }
-export {creatorClient,sendPationCode,sendPationSet,writeResult}
+export {creatorClient,sendPationCode,sendPationSet,writeResult,writePatient}

--
Gitblit v1.8.0