feat(platform): add mileage closure workspace

This commit is contained in:
lingniu
2026-07-04 19:40:37 +08:00
parent ff04a5c93f
commit 3ccc280b02
3 changed files with 93 additions and 1 deletions

View File

@@ -6787,6 +6787,16 @@ test('shows mileage statistics workspace with trend source and definition', asyn
expect(screen.getAllByText('GB32960').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('当前页里程')).toBeInTheDocument();
expect(screen.getAllByText('140 km').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('统计闭合工作台')).toBeInTheDocument();
expect(screen.getByText('汇总总里程')).toBeInTheDocument();
expect(screen.getByText('明细合计')).toBeInTheDocument();
expect(screen.getByText('闭合差值')).toBeInTheDocument();
expect(screen.getByText('记录覆盖率')).toBeInTheDocument();
expect(screen.getByText('闭合通过')).toBeInTheDocument();
expect(screen.getByText('当前筛选范围汇总总里程与明细合计一致,可作为统计证据。')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '复制闭合摘要' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '闭合复核轨迹' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '闭合复核 RAW' })).toBeInTheDocument();
expect(screen.getByText('异常记录')).toBeInTheDocument();
expect(screen.getAllByText('1').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('最大单日')).toBeInTheDocument();
@@ -6797,7 +6807,7 @@ test('shows mileage statistics workspace with trend source and definition', asyn
expect(screen.getByText('最大单日占比')).toBeInTheDocument();
expect(screen.getByText('42.9%')).toBeInTheDocument();
expect(screen.getByText('分页覆盖率')).toBeInTheDocument();
expect(screen.getByText('100%')).toBeInTheDocument();
expect(screen.getAllByText('100%').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('闭合校验')).toBeInTheDocument();
expect(screen.getAllByText('0 km').length).toBeGreaterThanOrEqual(1);
expect(screen.getByText('统计口径')).toBeInTheDocument();