feat(inpatientDoctor): 添加住院医生模块本地病人信息状态管理

- 新增本地病人信息状态管理文件 localPatient.js
- 实现护士等级状态管理功能
- 添加选择患者信息本地状态管理
- 提供更新护士等级和患者信息的方法
This commit is contained in:
2026-01-25 16:43:12 +08:00
parent 054b51c63d
commit ca043de624

View File

@@ -0,0 +1,19 @@
/*
* @Author: sjjh
* @Date: 2025-01-23
* @Description: 住院医生模块本地病人信息状态管理
*/
import {ref} from 'vue';
// 定义护士等级(没接口前mock)
export const nursingLevel = ref('0');
export function updateNursingLevel(level) {
nursingLevel.value = level;
}
// 选择患者信息 - 本地状态,避免与其他模块冲突
export const localPatientInfo = ref();
export function updateLocalPatientInfo(info) {
localPatientInfo.value = info;
}