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

---
 src/stores/patient.ts |   35 +++++++++++++++++++++++++++++++++--
 1 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/src/stores/patient.ts b/src/stores/patient.ts
index e9750fa..012eaf1 100644
--- a/src/stores/patient.ts
+++ b/src/stores/patient.ts
@@ -3,10 +3,41 @@
 import { Session } from '@/utils/storage'
 
 export const patientInfoStore =defineStore('patientInfo',()=>{
-    const patientInfo=ref({id:0,code:'',patientCode:'',schemeName:'',scheduleDate:'',patientPreHemoWeight:0,pureWeight:0,confirmUserInfo:{userName:''},patientInfo:{patientName:'',patientGender:0,age:'',patientHemoCode:''},deviceInfo:{deviceNo:''}})// 初始值
+    const patientInfo=ref({
+            id:0,
+            code:'',
+            name:'',
+            patientNamePyFull:'',
+            patientAvatarIcon:'',
+            patientGender:0,
+            deviceCode:'',
+            hemoCode:'',
+            pureWeight:'',
+            datetime:'',
+            clothesWeight:0,
+            isScheduled:0,
+            isAfterMed:0,
+            preWeight:0,
+            deviceNo:'',
+            preBP:'',
+            // s上次体重
+            lastTimeAfterWeight:'',
+            // 上次血压
+            lastTimeAfterBP:'',
+            txq:'',
+            medMethod:'',
+            glq:'',
+            nextRecordDate:'',
+            actuallyClliang:'',
+
+       })// 初始值
+    const viewNumber=ref(150)
     function setpatientInfo(patient:any){
         patientInfo.value=patient
         Session.set('patientInfo', patient)
     }
-    return {patientInfo,setpatientInfo}
+    function setViewNumber(num:any){
+        viewNumber.value=num
+    }
+    return {patientInfo,setpatientInfo,viewNumber,setViewNumber}
 })
\ No newline at end of file

--
Gitblit v1.8.0