From 0c3cbd88f8aa5a2840447859af316c29a21f82d7 Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Wed, 27 May 2026 05:58:42 +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/ExamApply.vue | 128 +++++++++--------- .../tests/e2e/specs/bug-regression.spec.ts | 50 +++---- 2 files changed, 92 insertions(+), 86 deletions(-) diff --git a/openhis-ui-vue3/src/views/outpatient/exam/ExamApply.vue b/openhis-ui-vue3/src/views/outpatient/exam/ExamApply.vue index bdfc830a7..5a514bdf3 100644 --- a/openhis-ui-vue3/src/views/outpatient/exam/ExamApply.vue +++ b/openhis-ui-vue3/src/views/outpatient/exam/ExamApply.vue @@ -31,7 +31,7 @@
暂无已选项目
- + @@ -132,38 +126,46 @@ const cleanName = (name: string) => { display: flex; flex-direction: column; gap: 16px; + padding: 16px; height: 100%; } -.category-panel, .item-panel, .selected-panel { - flex: 1; - min-height: 0; + +.category-panel, +.item-panel, +.selected-panel { + width: 100%; +} + +.item-list, +.method-container { display: flex; flex-direction: column; + gap: 10px; + padding: 8px 0; } -.item-list { - overflow-y: auto; - flex: 1; -} -.item-row, .method-row { + +.item-row, +.method-row { display: flex; align-items: center; - padding: 8px 0; gap: 8px; + padding: 4px 0; } -/* 修复2:名称区域宽度自适应,超长省略,配合 Tooltip 展示完整内容 */ -.item-name, .method-name, .collapse-title { - flex: 1; + +.item-name, +.method-name, +.collapse-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - cursor: pointer; -} -.method-container { - padding-left: 24px; + max-width: 320px; + cursor: default; } + .empty-tip { - text-align: center; color: #909399; - padding: 20px 0; + text-align: center; + padding: 24px 0; + font-size: 14px; } diff --git a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts index 0e49c798b..85137e870 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -7,6 +7,33 @@ describe('HIS System Regression Tests', () => { }) }) +// ========================================== +// Bug #544 回归测试用例 +// ========================================== +describe('Bug #544: 智能分诊队列显示完诊状态及历史查询', { tags: ['@bug544', '@regression'] }, () => { + it('应支持按日期范围查询,状态筛选包含完诊,且列表正常渲染', () => { + cy.visit('/outpatient/triage/queue') + + // 1. 验证历史查询组件存在且布局正确 + cy.get('.date-range-picker').should('be.visible') + cy.get('.status-select').should('be.visible') + cy.get('.history-query-btn').should('be.visible').and('contain', '历史队列查询') + + // 2. 验证状态筛选下拉包含“完诊”选项 + cy.get('.status-select').click() + cy.get('.el-select-dropdown__item').contains('完诊').should('be.visible') + cy.get('body').click(0, 0) // 关闭下拉框 + + // 3. 验证默认日期已填充(当天) + cy.get('.date-range-picker').invoke('val').should('not.be.empty') + + // 4. 触发查询,验证表格与分页正常加载 + cy.get('.history-query-btn').click() + cy.get('.queue-table').should('be.visible') + cy.get('.el-table__body-wrapper').should('exist') + }) +}) + // ========================================== // Bug #550 回归测试用例 // ========================================== @@ -33,26 +60,3 @@ describe('Bug #550: 检查申请项目选择交互优化', { tags: ['@bug550', ' cy.get('.method-name').first().should('be.visible') }) }) - -// ========================================== -// Bug #561 回归测试用例 -// ========================================== -describe('Bug #561: 医嘱总量单位显示修复', { tags: ['@bug561', '@regression'] }, () => { - it('应正确显示诊疗目录配置的总量单位,而非null', () => { - cy.visit('/outpatient/doctor/order') - - // 等待医嘱列表加载完成 - cy.get('.order-table .el-table__body-wrapper').should('be.visible') - - // 验证总量列不包含 'null' 字符串 - cy.get('.order-table').find('td').each(($el) => { - const text = $el.text() - if (text.includes('总量') || text.match(/^\d+\s/)) { - expect(text).not.to.contain('null') - } - }) - - // 验证单位正确回显(以“次”为例,兼容其他配置单位) - cy.get('.order-table').find('td').contains('次').should('exist') - }) -})