From b03cb76e952d3351d10e327e8e5748fd25cc1dd2 Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Wed, 27 May 2026 08:07:28 +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 | 127 ++++++++---------- .../tests/e2e/specs/bug-regression.spec.ts | 11 +- 2 files changed, 62 insertions(+), 76 deletions(-) diff --git a/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue b/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue index 1b9e6df4e..c9e191ef3 100644 --- a/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue +++ b/openhis-ui-vue3/src/views/outpatient/exam/ExamRequest.vue @@ -30,6 +30,7 @@
+ {{ formatItemName(item.name) }} @@ -58,159 +59,139 @@ 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 76ecf36af..089285e0c 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -18,9 +18,10 @@ describe('HIS 门诊医生站回归测试', () => { it('Bug #550: 检查申请项目选择交互优化', { tags: ['@bug550', '@regression'] }, () => { // 1. 验证解耦:勾选项目不应自动勾选检查方法 - cy.get('.category-panel').contains('彩超').click() - cy.get('.item-panel').contains('128线排').click() - cy.get('.method-panel .el-checkbox').should('not.be.checked') + cy.get('.left-panel').contains('彩超').click() + cy.get('.middle-panel').contains('128线排').click() + // 检查方法区域默认不应被勾选,保持独立 + cy.get('.right-panel .method-section .el-checkbox').should('not.be.checked') // 2. 验证卡片显示:去除“套餐”前缀,宽度自适应,悬停提示完整名称 cy.get('.selected-card .item-title').should('not.contain', '套餐') @@ -32,5 +33,9 @@ describe('HIS 门诊医生站回归测试', () => { cy.get('.selected-card .card-body').should('be.visible') cy.get('.selected-card .section-label').should('contain', '检查方法') cy.get('.selected-card .section-label').should('not.contain', '项目套餐明细') + + // 4. 验证手动勾选方法不影响项目状态(反向解耦验证) + cy.get('.right-panel .method-section .el-checkbox').first().click() + cy.get('.middle-panel .el-checkbox').first().should('be.checked') }) })