fix(驳回/返工): 抽屉与卡片数字口径一致,同时展示已驳回+返工任务

- 根因:卡片数字含返工任务(tasks_rework 实时快照),但抽屉只列已驳回 → 点开为空
- get_rejected_tasks 扩展返回两类(kind=rejected 按时间过滤 / kind=rework 实时不过滤)
- 前端抽屉按「已驳回」「返工任务」分组展示,数字与明细一一对应
This commit is contained in:
2026-08-28 11:33:54 +08:00
parent 1e6adeb576
commit 90f5718e68
3 changed files with 147 additions and 68 deletions

View File

@ -41,6 +41,7 @@ export interface CompletedTask {
export interface RejectedTask {
task_id: string;
kind: "rejected" | "rework";
task_name: string;
product_sn: string;
external_serial: string | null;
@ -49,7 +50,8 @@ export interface RejectedTask {
rejected_by: string;
rework_assignee: string;
reject_reason: string | null;
rejected_at: string;
status: string | null;
rejected_at: string | null;
}
export interface PersonDevice {