up
chenyc
2022-07-05 c7ac559bab9890e6f0d4b81ffbaaf112a7346431
1
2
3
4
5
6
7
8
9
10
11
12
import { defineStore } from 'pinia'
import { ref } from 'vue'
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:''}})// 初始值
    function setpatientInfo(patient:any){
        patientInfo.value=patient
        Session.set('patientInfo', patient)
    }
    return {patientInfo,setpatientInfo}
})