diff --git a/openhis-ui-vue3/src/views/outpatient/examination/Apply.vue b/openhis-ui-vue3/src/views/outpatient/examination/Apply.vue new file mode 100644 index 000000000..51402d414 --- /dev/null +++ b/openhis-ui-vue3/src/views/outpatient/examination/Apply.vue @@ -0,0 +1,136 @@ + + + + + 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 dcd7ea2db..6ca8cca26 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -10,6 +10,31 @@ describe('HIS System Regression Tests', () => { cy.get('.dashboard-container').should('be.visible') }) + // @bug544 @regression + describe('Bug #544: Triage Queue List & Historical Query', () => { + it('should display completed status patients and support historical date query', () => { + cy.visit('/triage/queue') + + // 1. 验证默认加载当天数据 + cy.get('[data-cy="queue-table"]').should('exist') + cy.get('[data-cy="date-range-picker"]').should('contain', new Date().toISOString().slice(0, 10)) + + // 2. 验证可筛选“完诊”状态患者 + cy.get('[data-cy="status-select"]').select('完诊') + cy.get('[data-cy="search-btn"]').click() + cy.get('[data-cy="queue-table"] tbody tr').should('have.length.greaterThan', 0) + cy.get('[data-cy="queue-table"] .status-tag').should('contain', '完诊') + + // 3. 验证历史队列查询功能(按时间范围检索) + cy.get('[data-cy="start-date"]').clear().type('2026-05-01') + cy.get('[data-cy="end-date"]').clear().type('2026-05-02') + cy.get('[data-cy="search-btn"]').click() + cy.get('[data-cy="queue-table"]').should('exist') + cy.url().should('include', 'startDate=2026-05-01') + cy.url().should('include', 'endDate=2026-05-02') + }) + }) + // @bug550 @regression describe('Bug #550: Exam Item Selection Interaction Optimization', () => { it('should decouple item/method selection, display full names without "套餐" prefix, and show hierarchical collapsed details', () => { @@ -35,29 +60,4 @@ describe('HIS System Regression Tests', () => { cy.get('[data-cy="selected-card"] .details-panel').should('not.contain', '项目套餐明细') // 验证冗余标签已移除 }) }) - - // @bug544 @regression - describe('Bug #544: Triage Queue List & Historical Query', () => { - it('should display completed status patients and support historical date query', () => { - cy.visit('/triage/queue') - - // 1. 验证默认加载当天数据 - cy.get('[data-cy="queue-table"]').should('exist') - cy.get('[data-cy="date-range-picker"]').should('contain', new Date().toISOString().slice(0, 10)) - - // 2. 验证可筛选“完诊”状态患者 - cy.get('[data-cy="status-select"]').select('完诊') - cy.get('[data-cy="search-btn"]').click() - cy.get('[data-cy="queue-table"] tbody tr').should('have.length.greaterThan', 0) - cy.get('[data-cy="queue-table"] .status-tag').should('contain', '完诊') - - // 3. 验证历史队列查询功能(按时间范围检索) - cy.get('[data-cy="start-date"]').clear().type('2026-05-01') - cy.get('[data-cy="end-date"]').clear().type('2026-05-02') - cy.get('[data-cy="search-btn"]').click() - cy.get('[data-cy="queue-table"]').should('exist') - cy.url().should('include', 'startDate=2026-05-01') - cy.url().should('include', 'endDate=2026-05-02') - }) - }) })