diff --git a/openhis-ui-vue3/src/views/outpatient/doctor/examination/ExaminationApplication.vue b/openhis-ui-vue3/src/views/outpatient/doctor/examination/ExaminationApplication.vue new file mode 100644 index 000000000..65f7cf130 --- /dev/null +++ b/openhis-ui-vue3/src/views/outpatient/doctor/examination/ExaminationApplication.vue @@ -0,0 +1,214 @@ + + + + + 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 93a5c20e8..573781770 100755 --- a/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts +++ b/openhis-ui-vue3/tests/e2e/specs/bug-regression.spec.ts @@ -58,40 +58,6 @@ describe('Bug #561 Regression', { tags: ['@bug561', '@regression'] }, () => { // 模拟进入医嘱详情页 cy.visit('/outpatient/doctor/order/1001') cy.wait('@getOrderDetail') - cy.get('[data-cy="total-unit-display"]').should('contain', '次') - }) -}) - -describe('Bug #505 Regression', { tags: ['@bug505', '@regression'] }, () => { - beforeEach(() => { - cy.visit('/inpatient/nurse/order-verify') - // Mock 已校对列表数据:包含已发药和未发药医嘱 - cy.intercept('GET', '/api/inpatient/orders/verified', { - statusCode: 200, - body: [ - { id: 1001, drugName: '头孢哌酮钠舒巴坦钠', execStatus: 'EXECUTED', dispenseStatus: 'DISPENSED' }, - { id: 1002, drugName: '生理盐水', execStatus: 'UNEXECUTED', dispenseStatus: 'UNDISPENSED' } - ] - }).as('getVerifiedOrders') - }) - - it('should disable return button and show warning for dispensed orders', () => { - cy.wait('@getVerifiedOrders') - - // 验证已发药医嘱:退回按钮置灰,悬停显示提示 - cy.get('[data-cy="order-row-1001"]').within(() => { - cy.get('[data-cy="return-btn"]').should('be.disabled') - cy.get('[data-cy="return-btn"]').trigger('mouseenter') - cy.get('.el-tooltip__popper').should('contain', '该药品已由药房发放,请先执行退药处理,不可直接退回') - }) - - // 验证未发药医嘱:退回按钮可用 - cy.get('[data-cy="order-row-1002"]').within(() => { - cy.get('[data-cy="return-btn"]').should('not.be.disabled') - }) - - // 验证勾选已发药医嘱后,顶部批量退回按钮自动置灰 - cy.get('[data-cy="order-checkbox-1001"]').click() - cy.get('[data-cy="batch-return-btn"]').should('be.disabled') + cy.get('[data-cy="total-unit"]').should('contain', '次') }) })