From 3c1087a2d14a7ca8aaa9557403e31e0ba4278fb9 Mon Sep 17 00:00:00 2001 From: guanyu Date: Sun, 17 May 2026 20:06:19 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#476:=20=E7=B4=A7=E6=80=A5=E7=A8=8B?= =?UTF-8?q?=E5=BA=A6=E7=A7=BB=E5=85=A5el-form=E4=BD=9C=E4=B8=BA=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E8=A1=A8=E5=8D=95=E9=A1=B9=EF=BC=8C=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=8E=92=E5=88=97=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:紧急程度渲染在el-form外的独立urgency-bar中,不是正式表单项, 不随表单校验和数据流走;第一行字段布局只有发往科室和期望检查时间, 紧急程度未放在发往科室之后。 修复:将紧急程度从独立div移入el-form第一行,位于发往科室和期望检查时间之间; 同步移除urgency-bar废弃CSS;修正date picker函数名disabledFutureDate为disabledPastDate。 Co-Authored-By: Claude Opus 4.7 --- .../applicationForm/medicalExaminations.vue | 53 +++++++------------ 1 file changed, 18 insertions(+), 35 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue index 585f10838..42b3d1f77 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/order/applicationForm/medicalExaminations.vue @@ -7,20 +7,6 @@
- -
- 紧急程度: - - 普通 - 急诊 - - - - - 绿色通道 - - -
@@ -52,7 +38,21 @@ /> - + + + + 普通 + 急诊 + + + + + 绿色通道 + + + + + @@ -347,8 +347,8 @@ const rules = reactive({ ], }); -// 禁用过去的时间 -const disabledFutureDate = (time) => { +// 禁用过去的日期(允许选择今天及以后) +const disabledPastDate = (time) => { return time.getTime() < Date.now() - 8.64e7; }; @@ -624,23 +624,6 @@ $bg-color: #f5f7fa; } } - // 紧急程度栏 - 右上角 - .urgency-bar { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 8px; - padding: 4px 0; - margin-bottom: 4px; - } - - .urgency-bar-label { - font-size: 13px; - font-weight: 500; - color: $text-regular; - white-space: nowrap; - } - // 卡片通用样式 - 紧凑 .section-card { background: #fff;