diff --git a/openhis-ui-vue3/src/views/outpatient/examination/ExaminationApply.vue b/openhis-ui-vue3/src/views/outpatient/examination/ExaminationApply.vue index ca65a4b52..633bca23c 100644 --- a/openhis-ui-vue3/src/views/outpatient/examination/ExaminationApply.vue +++ b/openhis-ui-vue3/src/views/outpatient/examination/ExaminationApply.vue @@ -1,177 +1,169 @@ - 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 a61322372..66cd43cb0 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -43,4 +43,30 @@ describe('Bug Regression Tests', () => { cy.get('.detail-count').invoke('text').should('eq', summaryCount) }) }) + + /** + * @bug550 @regression + * 验证门诊检查申请项目选择交互优化:解耦勾选、名称完整显示、明细默认收起及层级结构 + */ + it('Bug #550: 检查申请项目选择交互优化', () => { + cy.login('doctor1', '123456') + cy.visit('/outpatient/doctor/examination') + + // 1. 展开彩超分类并勾选项目 + cy.get('.category-tree').contains('彩超').click() + cy.get('.item-checkbox').contains('128线排').click() + + // 2. 验证检查方法未自动勾选(解耦) + cy.get('.method-checkbox-group .el-checkbox').should('not.be.checked') + + // 3. 验证已选卡片:无“套餐”前缀,名称完整或可悬停查看 + cy.get('.selected-card').should('not.contain', '套餐') + cy.get('.selected-card .item-name').should('have.attr', 'title', '128线排') + + // 4. 验证明细默认收起,且层级为 项目 > 检查方法 + cy.get('.details-panel').should('not.be.visible') + cy.get('.card-header').first().click() + cy.get('.details-panel').should('be.visible') + cy.get('.method-section').should('exist') + }) })