feat(platform): show archive gaps on vehicle detail

This commit is contained in:
lingniu
2026-07-04 10:00:35 +08:00
parent adff22ef74
commit 7925be676b
2 changed files with 26 additions and 6 deletions

View File

@@ -5458,8 +5458,8 @@ test('shows canonical vehicle archive on detail', async () => {
resolved: true,
vin: 'VIN-ARCHIVE-001',
plate: '粤A档案1',
phone: '13307795425',
oem: 'G7s',
phone: '',
oem: '',
protocols: ['GB32960', 'JT808', 'YUTONG_MQTT'],
online: true,
lastSeen: '2026-07-03T20:12:10+08:00'
@@ -5467,8 +5467,8 @@ test('shows canonical vehicle archive on detail', async () => {
realtimeSummary: {
vin: 'VIN-ARCHIVE-001',
plate: '粤A档案1',
phone: '13307795425',
oem: 'G7s',
phone: '',
oem: '',
protocols: ['GB32960', 'JT808', 'YUTONG_MQTT'],
sourceCount: 3,
onlineSourceCount: 2,
@@ -5513,7 +5513,9 @@ test('shows canonical vehicle archive on detail', async () => {
expect(screen.getByText('车辆主键')).toBeInTheDocument();
expect(screen.getAllByText('VIN-ARCHIVE-001').length).toBeGreaterThan(0);
expect(screen.getByText('档案完整度')).toBeInTheDocument();
expect(screen.getByText('4/4')).toBeInTheDocument();
expect(screen.getByText('2/4')).toBeInTheDocument();
expect(screen.getByText('缺手机号')).toBeInTheDocument();
expect(screen.getByText('缺OEM')).toBeInTheDocument();
expect(screen.getByText('归并来源数')).toBeInTheDocument();
expect(screen.getByText('3')).toBeInTheDocument();
});