1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| import { defineStore } from 'pinia'
| import { ref } from 'vue'
| import { Session } from '@/utils/storage'
|
| export const patientInfoStore =defineStore('patientInfo',()=>{
| 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)
| }
| function setViewNumber(num:any){
| viewNumber.value=num
| }
| return {patientInfo,setpatientInfo,viewNumber,setViewNumber}
| })
|
|