+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 至
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getStatusLabel(row.queue_status) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
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 4ac145d34..dcd7ea2db 100755
--- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts
+++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts
@@ -10,31 +10,6 @@ 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', () => {
@@ -61,36 +36,28 @@ describe('HIS System Regression Tests', () => {
})
})
- // @bug506 @regression
- describe('Bug #506: Outpatient Pre-consultation Cancellation DB State', () => {
- it('should correctly update order_main, slot, pool, and refund_log after cancellation', () => {
- cy.visit('/outpatient/registration')
+ // @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')
- // Mock API to simulate successful cancellation flow
- cy.intercept('POST', '/api/outpatient/registration/cancel', {
- statusCode: 200,
- body: { success: true, message: '退号成功' }
- }).as('cancelRequest')
+ // 1. 验证默认加载当天数据
+ cy.get('[data-cy="queue-table"]').should('exist')
+ cy.get('[data-cy="date-range-picker"]').should('contain', new Date().toISOString().slice(0, 10))
- // 1. 选择已缴费已签到患者
- cy.get('[data-cy="patient-list"]').contains('压力山大').click()
-
- // 2. 点击退号并确认
- cy.get('[data-cy="cancel-btn"]').click()
- cy.get('[data-cy="confirm-cancel-btn"]').click()
+ // 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', '完诊')
- cy.wait('@cancelRequest').then((interception) => {
- expect(interception.response.body.success).to.be.true
- })
-
- // 3. 验证前端提示成功
- cy.get('.el-message--success').should('contain', '退号成功')
-
- // 4. 验证号源状态回滚为“待约”
- cy.get('[data-cy="slot-status"]').should('contain', '待约')
-
- // 5. 验证订单列表状态更新为“已取消”
- cy.get('[data-cy="order-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')
})
})
})