feat(透视表): 工序分布包含在库/完成 + 增加时间筛选
- wip-matrix 去掉状态过滤,全量分布,工序包含「在库」(生产完成) - 后端加 since/until 按任务接手/创建时间过滤 - 前端 MatrixBoard 加 RangePicker 日期筛选 + 全部清除
This commit is contained in:
@ -184,8 +184,13 @@ export async function fetchOperationDetail(
|
||||
return data;
|
||||
}
|
||||
|
||||
export async function fetchWipMatrix(dimension: "assignee" | "task_name"): Promise<WipMatrixRow[]> {
|
||||
const { data } = await api.get<WipMatrixRow[]>("/dashboard/wip-matrix", { params: { dimension } });
|
||||
export async function fetchWipMatrix(
|
||||
dimension: "assignee" | "task_name", since?: string, until?: string,
|
||||
): Promise<WipMatrixRow[]> {
|
||||
const params: Record<string, string> = { dimension };
|
||||
if (since) params.since = since;
|
||||
if (until) params.until = until;
|
||||
const { data } = await api.get<WipMatrixRow[]>("/dashboard/wip-matrix", { params });
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user