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') }) })