diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/store/localPatient.js b/openhis-ui-vue3/src/views/inpatientDoctor/home/store/localPatient.js new file mode 100644 index 00000000..129815a7 --- /dev/null +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/store/localPatient.js @@ -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; +} \ No newline at end of file