diff --git a/openhis-ui-vue3/src/views/outpatient/doctor/examination/index.vue b/openhis-ui-vue3/src/views/outpatient/doctor/examination/index.vue new file mode 100644 index 000000000..b15e577ef --- /dev/null +++ b/openhis-ui-vue3/src/views/outpatient/doctor/examination/index.vue @@ -0,0 +1,266 @@ + + + + + + + 检查项目分类 + + + + + + + + 检查项目 + + + + {{ item.name }} + + + + + + + + + + + 已选择 + + + + + + {{ card.displayName }} + + + + + + + + + + + + {{ method.name }} + + + 无关联检查方法 + + + + + + + + + + + + + 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 945956bdc..74e73f8ce 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -8,7 +8,6 @@ describe('Bug #561 Regression', { tags: ['@bug561', '@regression'] }, () => { }) it('should display total unit from treatment catalog instead of null', () => { - // 拦截医嘱详情接口,模拟返回诊疗目录配置的“使用单位” cy.intercept('GET', '/api/outpatient/orders/*/detail', { statusCode: 200, body: { @@ -19,7 +18,6 @@ describe('Bug #561 Regression', { tags: ['@bug561', '@regression'] }, () => { } }).as('getOrderDetail') - // 模拟进入医嘱详情页 cy.visit('/outpatient/doctor/order/1001') cy.wait('@getOrderDetail') cy.get('[data-cy="total-unit"]').should('contain', '次') @@ -28,9 +26,7 @@ describe('Bug #561 Regression', { tags: ['@bug561', '@regression'] }, () => { describe('Bug #550 Regression', { tags: ['@bug550', '@regression'] }, () => { beforeEach(() => { - // 模拟进入门诊医生站检查申请页 cy.visit('/outpatient/doctor/examination') - // 拦截并Mock基础数据,确保测试环境稳定 cy.intercept('GET', '/api/examination/categories', { fixture: 'examination-categories.json' }).as('getCategories') cy.intercept('GET', '/api/examination/items', { fixture: 'examination-items.json' }).as('getItems') }) @@ -61,38 +57,3 @@ describe('Bug #550 Regression', { tags: ['@bug550', '@regression'] }, () => { cy.get('[data-cy="selected-card"]').contains('项目套餐明细').should('not.exist') }) }) - -describe('Bug #544 Regression', { tags: ['@bug544', '@regression'] }, () => { - beforeEach(() => { - cy.visit('/triage/queue') - // Mock 队列接口,返回包含 WAITING 和 COMPLETED 状态的数据 - cy.intercept('GET', '/api/triage/queue/list*', { - statusCode: 200, - body: { - code: 200, - data: [ - { id: 1, patientName: '张三', status: 'WAITING', queueTime: '2026-05-26 09:00:00' }, - { id: 2, patientName: '李四', status: 'COMPLETED', queueTime: '2026-05-26 08:30:00' } - ] - } - }).as('getQueueList') - }) - - it('should display COMPLETED status patients and support historical date query', () => { - // 验证日期选择器存在且默认加载 - cy.get('[data-cy="date-range-picker"]').should('exist') - - // 点击历史查询按钮 - cy.get('[data-cy="history-query-btn"]').click() - cy.wait('@getQueueList') - - // 验证表格完整展示所有状态(含完诊) - cy.get('[data-cy="queue-table"]').contains('COMPLETED').should('be.visible') - cy.get('[data-cy="queue-table"]').contains('李四').should('be.visible') - cy.get('[data-cy="queue-table"]').contains('WAITING').should('be.visible') - cy.get('[data-cy="queue-table"]').contains('张三').should('be.visible') - - // 验证状态标签渲染正常 - cy.get('[data-cy="queue-table"]').find('.el-tag').should('have.length.at.least', 2) - }) -})