| | |
| | | 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:'', |
| | | patientAvatarIcon:'', |
| | | deviceCode:'', |
| | | hemoCode:'', |
| | | pureWeight:'' |
| | | |
| | | })// 初始值 |
| | | const viewNumber=ref(60) |
| | | 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} |
| | | }) |