From ca043de624faac91703376026e4a0a5a50291d63 Mon Sep 17 00:00:00 2001 From: chenqi Date: Sun, 25 Jan 2026 16:43:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(inpatientDoctor):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BD=8F=E9=99=A2=E5=8C=BB=E7=94=9F=E6=A8=A1=E5=9D=97=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E7=97=85=E4=BA=BA=E4=BF=A1=E6=81=AF=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增本地病人信息状态管理文件 localPatient.js - 实现护士等级状态管理功能 - 添加选择患者信息本地状态管理 - 提供更新护士等级和患者信息的方法 --- .../home/store/localPatient.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 openhis-ui-vue3/src/views/inpatientDoctor/home/store/localPatient.js 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