gx
chenyc
2025-02-27 4afd7755b465829a21b238fc0ccb98d08a8381e6
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
import { defineStore } from 'pinia';
 
/**
 * 选择患者缓存到临时
 * @methods setPatientsInfo 设置选择患者缓存
 */
export const usePatientsInfo = defineStore('PatientsInfo', {
    state: (): patientsInfoState => ({
        patientsInfo:{
            id: '',
            code: '',
            age: 0,
            patientName: '',
            patientGenderText: '',
            patientAvatarIcon: '',
            clientCode:''
        }
    }),
    actions: {
        /**设置患者缓存 */
        async setPatientsInfo(routes:patientsInfo) {
            this.patientsInfo = routes;
        },
    },
});