feat(platform): add customer mileage reconciliation command

This commit is contained in:
lingniu
2026-07-06 05:14:11 +08:00
parent 378706cc5c
commit ce3a6225ec
2 changed files with 168 additions and 0 deletions

View File

@@ -9863,6 +9863,13 @@ test('shows vehicle-first statistics domains for one vehicle service', async ()
render(<App />);
expect(await screen.findByText('客户统计查询')).toBeInTheDocument();
expect(screen.getByText('客户里程对账总控')).toBeInTheDocument();
expect(screen.getByText('把区间里程、每日闭合、轨迹证明、异常通知和报表导出收敛成客户可验收的对账链路。')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户里程对账总控 区间里程 210 km 复制摘要' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户里程对账总控 每日闭合 分页抽样 闭合审计' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户里程对账总控 轨迹证明 2026-07-02 轨迹复核' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户里程对账总控 报表导出 3 条 导出报表' })).toBeInTheDocument();
expect(screen.getByRole('button', { name: /复制对账总控包/ })).toBeInTheDocument();
expect(screen.getByText('客户里程结论条')).toBeInTheDocument();
expect(screen.getByText('先给客户一个可交付结论,再进入轨迹复核、明细导出和告警通知。')).toBeInTheDocument();
expect(screen.getByRole('button', { name: '客户里程结论 区间累计 210 km' })).toBeInTheDocument();
@@ -9989,6 +9996,13 @@ test('shows vehicle-first statistics domains for one vehicle service', async ()
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('在线状态3 在线 / 1 离线 / 在线率 75%'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('发布判断:复核后发布'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('业务影响:当前统计范围需要先复核轨迹、历史明细和离线车辆影响'));
fireEvent.click(screen.getByRole('button', { name: /复制对账总控包/ }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【客户里程对账总控包】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('服务链路:区间里程 -> 每日闭合 -> 轨迹证明 -> 报表导出'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('对账范围VIN-STATS-SERVICE / JT808 / 全部日期'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('区间里程210 km'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('闭合状态:分页抽样'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('报表导出http://localhost:3000/#/mileage?keyword=VIN-STATS-SERVICE&protocol=JT808'));
fireEvent.click(screen.getAllByRole('button', { name: '复制决策说明' })[0]);
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【客户里程决策说明】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('决策结论:复核后交付'));