From 83a6bbd4cc651c02c689e28d2c8083b962a121b9 Mon Sep 17 00:00:00 2001 From: zhaoyun Date: Tue, 26 May 2026 21:15:29 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#568:=20AI=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OutpatientDailySettlement.vue | 121 ++++++++++++++++++ tests/e2e/specs/bug-regression.spec.ts | 15 ++- 2 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 openhis-ui-vue3/src/views/billing/outpatientsettlement/OutpatientDailySettlement.vue diff --git a/openhis-ui-vue3/src/views/billing/outpatientsettlement/OutpatientDailySettlement.vue b/openhis-ui-vue3/src/views/billing/outpatientsettlement/OutpatientDailySettlement.vue new file mode 100644 index 000000000..2836edc93 --- /dev/null +++ b/openhis-ui-vue3/src/views/billing/outpatientsettlement/OutpatientDailySettlement.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/tests/e2e/specs/bug-regression.spec.ts b/tests/e2e/specs/bug-regression.spec.ts index aee8decf2..c3c4361fa 100644 --- a/tests/e2e/specs/bug-regression.spec.ts +++ b/tests/e2e/specs/bug-regression.spec.ts @@ -1,6 +1,7 @@ import { describe, it, expect } from 'vitest'; import { mount } from '@vue/test-utils'; import LabRequest from '@/views/inpatientdoctorstation/lab/LabRequest.vue'; +import OutpatientDailySettlement from '@/views/billing/outpatientsettlement/OutpatientDailySettlement.vue'; // @bug466 @regression describe('Bug #466: 检验申请单核心质控字段及联动逻辑', () => { @@ -27,7 +28,6 @@ describe('Bug #466: 检验申请单核心质控字段及联动逻辑', () => { const wrapper = mount(LabRequest, { global: { stubs: ['el-dialog', 'el-tree', 'el-checkbox-group', 'el-radio-group', 'el-input', 'el-date-picker'] } }); - // 模拟左侧勾选项目 wrapper.vm.selectedItemIds = [101]; wrapper.vm.itemList = [{ id: 101, name: '血常规', specimenType: '血液' }]; await wrapper.vm.$nextTick(); @@ -51,3 +51,16 @@ describe('Bug #466: 检验申请单核心质控字段及联动逻辑', () => { expect(mockAlert).toHaveBeenCalledWith('执行时间不可早于当前时间', '提示', { type: 'warning' }); }); }); + +// @bug568 @regression +describe('Bug #568: 收费工作站-门诊日结排版修复', () => { + it('门诊日结页面应包含清晰的布局结构:顶部筛选区、汇总卡片区、明细表格区', () => { + const wrapper = mount(OutpatientDailySettlement, { + global: { stubs: ['el-card', 'el-form', 'el-form-item', 'el-date-picker', 'el-select', 'el-option', 'el-button', 'el-row', 'el-col', 'el-table', 'el-table-column'] } + }); + expect(wrapper.find('.settlement-filter-area').exists()).toBe(true); + expect(wrapper.find('.settlement-summary-cards').exists()).toBe(true); + expect(wrapper.find('.settlement-detail-table').exists()).toBe(true); + expect(wrapper.findAll('.summary-card').length).toBeGreaterThanOrEqual(3); + }); +});