| src/views/ecg/appointment/AppointmentConfirm.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/ecg/doctor/Routine.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/ecg/doctor/components/DevInstallPanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/ecg/doctor/components/DevReadyPanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/ecg/doctor/components/QueuePanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/ecg/appointment/AppointmentConfirm.vue
@@ -53,6 +53,7 @@ <Icon icon="ep:user" class="placeholder-icon" /> <div class="placeholder-text">请输入患者编号后查询预约信息</div> <div class="placeholder-hint">支持身份证号、申请单号、就诊号或住院号</div> <div class="placeholder-hint">如果找不到患者预约记录,请在预约记录里查找,修改患者的预约时间</div> </div> </div> </template> src/views/ecg/doctor/Routine.vue
@@ -328,8 +328,22 @@ return } const loaded = await routimePanelRef.value?.examineFromQueue?.(item) if (loaded) await initLoad() // 【2026-11-26】加载失败不能静默:之前接口报错(4xx/5xx)时 await 直接 reject, // 页面没有任何提示,现场就是"点检查没反应"。这里兜住并给出提示。 try { const panel = routimePanelRef.value if (!panel || typeof panel.examineFromQueue !== 'function') { ElMessage.warning('当前工作台未就绪,请刷新页面后重试') return } const loaded = await panel.examineFromQueue(item) if (loaded) { await initLoad() } } catch (e: any) { console.error('[onEventExamine] 加载患者失败', e) ElMessage.error(e?.message ? `加载患者失败:${e.message}` : '加载患者失败,请稍后重试') } } /** @@ -556,6 +570,7 @@ <template #aside> <QueuePanel :room="roomBedVO" :queue="patientList" :waiting-list="roomWaitingList" :fetch-info="fetchInfo" :examine-enabled="true" @event_RecallFinish="onEventRecallFinish" @event_PullWaiting="onEventPullWaiting" @event_Examine="onEventExamine" src/views/ecg/doctor/components/DevInstallPanel.vue
@@ -16,7 +16,7 @@ </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="6"> <el-form-item label="设备编号" prop="devId"> <el-input v-model="formData.devId" placeholder="请输入设备编号" @input="getDevInfo" /> <el-input v-model="formData.devId" :placeholder="requireDevId ? '请输入设备编号' : '可留空'" @input="getDevInfo" /> </el-form-item> </el-col> </el-row> @@ -146,6 +146,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { tranlateDevState } from "../../../../utils/statusFormatter"; import { copyText } from '@/utils/copyText' import { getConfigKey } from '@/api/infra/config' import { getCheckTypeName, needDevReady } from "../../../../utils/checkTypeFormatter"; import { useRoomStore } from '@/store/modules/room' // 需求1:患者信息 18 项统一展示块 @@ -208,6 +209,29 @@ patId: [{ required: true, message: '患者不能为空', trigger: 'blur' }], patName: [{ required: true, message: '患者名不能为空', trigger: 'blur' }] }) /** * 【系统参数】动态血压和心电设备领用安装登记设备编号 * 值“是”(默认)→ 设备编号必填; * 值“否” → 允许不填(校验规则同步放开)。 */ const requireDevId = ref(true) const loadDevIdRequired = async () => { try { const value = await getConfigKey('ecg.dev.rent.device.no.required') const text = String(value ?? '').trim() requireDevId.value = !( text === '否' || text === '0' || text.toLowerCase() === 'false' || text.toLowerCase() === 'no' ) } catch (e) { console.warn('[DevInstallPanel] 读取“设备编号必填”系统参数失败,按必填处理', e) requireDevId.value = true } formRules.devId = requireDevId.value ? [{ required: true, message: '设备编号不能为空', trigger: 'blur' }] : [] } const checkTypeStore = useCheckTypeStore() @@ -341,7 +365,8 @@ } const getDevInfo = async () => { if (formData.value?.devId == null) { // 设备编号允许留空(系统参数=否)时,空值不再去查设备,避免无意义请求/报错 if (!formData.value?.devId) { devInfo.value.brand = undefined devInfo.value.model = undefined devInfo.value.state = undefined @@ -564,6 +589,7 @@ onMounted(() => { resetForm() getList() loadDevIdRequired() }) </script> src/views/ecg/doctor/components/DevReadyPanel.vue
@@ -28,7 +28,7 @@ </el-col> <el-col :xs="24" :sm="12" :md="12" :lg="6"> <el-form-item label="设备编号" prop="devId"> <el-input v-model="formData.devId" placeholder="请输入设备编号" @input="getDevInfo"/> <el-input v-model="formData.devId" :placeholder="requireDevId ? '请输入设备编号' : '可留空'" @input="getDevInfo"/> </el-form-item> </el-col> </el-row> @@ -201,6 +201,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import {tranlateDevState} from "@/utils/statusFormatter"; import { copyText } from '@/utils/copyText' import { getConfigKey } from '@/api/infra/config' import {getCheckTypeName, needAutoFeeConfirm, needDevReady} from "../../../../utils/checkTypeFormatter"; import { useRoomStore } from '@/store/modules/room' // 需求1:患者信息 18 项统一展示块 @@ -259,6 +260,29 @@ patId: [{ required: true, message: '目前没有患者', trigger: 'blur' }], patName: [{ required: true, message: '目前没有患者', trigger: 'blur' }] }) /** * 【系统参数】动态血压和心电设备领用安装登记设备编号 * 值“是”(默认)→ 设备编号必填; * 值“否” → 允许不填(校验规则同步放开)。 */ const requireDevId = ref(true) const loadDevIdRequired = async () => { try { const value = await getConfigKey('ecg.dev.rent.device.no.required') const text = String(value ?? '').trim() requireDevId.value = !( text === '否' || text === '0' || text.toLowerCase() === 'false' || text.toLowerCase() === 'no' ) } catch (e) { console.warn('[DevReadyPanel] 读取“设备编号必填”系统参数失败,按必填处理', e) requireDevId.value = true } formRules.devId = requireDevId.value ? [{ required: true, message: '设备编号不能为空', trigger: 'blur' }] : [] } const formRef = ref() // 表单 Ref const devInfo = ref<Partial<DeviceVO>>({ @@ -634,7 +658,8 @@ */ const getDevInfo = async () => { if (formData.value?.devId == null) { // 设备编号允许留空(系统参数=否)时,空值不再去查设备,避免无意义请求/报错 if (!formData.value?.devId) { devInfo.value.brand = undefined devInfo.value.model = undefined devInfo.value.state = undefined @@ -731,6 +756,7 @@ /** 初始化 **/ onMounted(() => { getList() loadDevIdRequired() }) </script> src/views/ecg/doctor/components/QueuePanel.vue
@@ -37,6 +37,18 @@ fetchInfo: { type: String, default: '' }, /** * 【优先检查】是否显示行内的「检查」按钮(不叫号直接加载到表单)。 * * 只有「叫号检查」工作台实现了完整链路(RoutinePanel.examineFromQueue: * 查预约 → 载入表单 → 检查完成时按本人排队行收尾)。 * 「设备领用 / 装机」页没有对应处理逻辑,之前按钮显示出来但点了没反应, * 因此默认 **不显示**,由叫号检查页显式传 true。 */ examineEnabled: { type: Boolean, default: false } }) @@ -146,22 +158,18 @@ 前缀来自 check_type.seq_prefix —— 号现在是**按检查项目各自编号**,不同检查项目之间 会出现相同数字,必须靠前缀区分(例:A12 / 12)。 加急(jump_flag=1)在号前面加红色「急」字,医生一眼可见。 【2026-11-27 需求】各列之间只保留**一个空格**: · 模板里用 {{ ' ' }} 显式输出一个空格(Vue 会压缩含换行的空白,不能只靠换行); · 同时去掉 .col-seq / .col-name 的固定列宽(原来 78px/70px 造成大段空隙)。 --> <span class="col-seq"> <span v-if="Number(item.jumpFlag) === 1" class="jump-badge">急</span> {{ getCheckTypeSeqPrefix(item.bookCheckType) }}{{ item.seqNum }} </span> <span class="col-name"> {{item.patName}}{{item.passed === 0 ? "":"*"}} </span> <dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" /> {{getCheckTypeName(item.bookCheckType)}} <dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" /> <el-button v-if="item.status === 5 || item.status === 7" size="small" @click="recall(item)"> 召回 </el-button> <span class="col-seq"><span v-if="Number(item.jumpFlag) === 1" class="jump-badge">急</span>{{ getCheckTypeSeqPrefix(item.bookCheckType) }}{{ item.seqNum }}</span>{{ ' ' }}<span class="col-name">{{ item.patName }}{{ item.passed === 0 ? '' : '*' }}</span>{{ ' ' }}<dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" />{{ ' ' }}{{ getCheckTypeName(item.bookCheckType) }}{{ ' ' }}<dict-tag :type="DICT_TYPE.ECG_QUEUE_STATUS" :value="item.status" />{{ ' ' }}<el-button v-if="item.status === 5 || item.status === 7" size="small" @click="recall(item)">召回</el-button> <!-- 【需求·优先检查】不叫号,直接把这位患者加载去做检查。 只对"准备中(20) / 已召回(15)"显示:就诊中(30) 已经在做,过号(3/5) 请先召回。 --> <el-button v-if="canOperate && (item.status === 15 || item.status === 20)" v-if="examineEnabled && canOperate && (item.status === 15 || item.status === 20)" size="small" type="success" plain @@ -182,18 +190,11 @@ 候诊区(未分配工位:准备中 / 排队中){{ waitingList.length }} 人 </div> <div v-for="(item, index) in waitingList" :key="'w' + index" class="room-waiting__row"> <span class="col-seq"> <span v-if="Number(item.jumpFlag) === 1" class="jump-badge">急</span> {{ getCheckTypeSeqPrefix(item.bookCheckType) }}{{ item.seqNum }} </span> <span class="col-name"> {{ item.patName }} </span> {{ getCheckTypeName(item.bookCheckType) }} <template v-if="canOperate"> <el-button size="small" type="primary" plain @click="pullWaiting(item)"> 拉入 </el-button> <!-- 【需求·优先检查】还没分配工位也可以直接做(不叫号、不上屏、完成时按本人排队行收尾) --> <el-button size="small" type="success" plain @click="examine(item)"> 检查 </el-button> </template> <span v-else class="room-waiting__readonly">(只读)</span> <!-- 各列之间同样只保留一个空格(见上方说明) --> <span class="col-seq"><span v-if="Number(item.jumpFlag) === 1" class="jump-badge">急</span>{{ getCheckTypeSeqPrefix(item.bookCheckType) }}{{ item.seqNum }}</span>{{ ' ' }}<span class="col-name">{{ item.patName }}</span>{{ ' ' }}{{ getCheckTypeName(item.bookCheckType) }}{{ ' ' }}<template v-if="canOperate"><el-button size="small" type="primary" plain @click="pullWaiting(item)">拉入</el-button> <!-- 【需求·优先检查】还没分配工位也可以直接做(不叫号、不上屏、完成时按本人排队行收尾); 仅叫号检查页支持(examineEnabled) --> <el-button v-if="examineEnabled" size="small" type="success" plain @click="examine(item)">检查</el-button></template><span v-else class="room-waiting__readonly">(只读)</span> </div> </div> </div> @@ -296,16 +297,17 @@ color: var(--el-text-color-secondary); } /* 【2026-11-27 需求】列之间只保留一个空格:不再用固定列宽撑开, 排队号/姓名按内容自然宽度排列(空格由模板里的 {{ ' ' }} 给出)。 */ .col-seq, .col-name { display: inline-block; display: inline; } /* 号 + 前缀 + 可能的「急」标记,给足宽度避免与姓名挤在一起 */ .col-seq { width: 78px; } .col-name { width: 70px; /* 行内按钮之间也只留一个空格的距离(Element Plus 默认相邻按钮 margin-left:12px 偏大) */ .queue-row :deep(.el-button + .el-button), .room-waiting__row :deep(.el-button + .el-button) { margin-left: 0.25em; } /* 加急标记:红底白字,紧贴在排队号前面 */