Fix Bug #568: AI修复

This commit is contained in:
2026-05-26 21:15:29 +08:00
parent bbdf0118b6
commit 83a6bbd4cc
2 changed files with 135 additions and 1 deletions

View File

@@ -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);
});
});