From d0cdaac864de85383048b165f297a13accdac4fc Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Wed, 27 May 2026 08:11:32 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#550:=20AI=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/outpatient/exam/ExamRequest.vue | 170 +++++++++++------- 1 file changed, 101 insertions(+), 69 deletions(-) diff --git a/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue b/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue index c9e191ef3..183062bd9 100644 --- a/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue +++ b/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue @@ -58,67 +58,75 @@ - @@ -126,72 +134,96 @@ const formatItemName = (name: string) => { .exam-request-wrapper { display: flex; gap: 16px; - padding: 16px; height: 100%; - box-sizing: border-box; + padding: 16px; + background: #f5f7fa; } + .left-panel, .middle-panel, .right-panel { border: 1px solid #ebeef5; - border-radius: 4px; + border-radius: 6px; padding: 12px; background: #fff; overflow-y: auto; } -.left-panel { width: 20%; } -.middle-panel { width: 30%; } -.right-panel { width: 50%; } + +.left-panel { width: 22%; } +.middle-panel { width: 28%; } +.right-panel { flex: 1; } + +.item-checkbox { + display: block; + margin-bottom: 10px; + line-height: 1.5; +} .selected-list { display: flex; flex-direction: column; - gap: 10px; + gap: 12px; } + .selected-card { border: 1px solid #dcdfe6; border-radius: 6px; - padding: 10px; - background: #fafafa; - width: 100%; /* 修复:宽度自适应容器 */ - box-sizing: border-box; + overflow: hidden; + transition: box-shadow 0.2s; } + +.selected-card:hover { + box-shadow: 0 2px 8px rgba(0,0,0,0.08); +} + .card-header { display: flex; - justify-content: space-between; align-items: center; + justify-content: space-between; + padding: 10px 12px; + background: #fafafa; cursor: pointer; - padding: 4px 0; user-select: none; } + +/* 宽度自适应 + 文本截断 */ .item-title { flex: 1; - font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - max-width: 100%; /* 修复:支持文本溢出省略 */ + font-weight: 500; + color: #303133; + margin-right: 8px; } + .expand-icon { - margin-left: 8px; + font-size: 14px; color: #909399; + flex-shrink: 0; } + .card-body { - margin-top: 8px; - padding-top: 8px; - border-top: 1px dashed #ebeef5; + padding: 12px; + border-top: 1px solid #ebeef5; + background: #fff; } + .method-section { display: flex; flex-direction: column; - gap: 6px; + gap: 8px; } + .section-label { font-size: 12px; - color: #909399; + color: #606266; + font-weight: 600; margin-bottom: 4px; } + .empty-tip { color: #909399; text-align: center; - padding: 20px; + padding: 40px 0; + font-size: 14px; }