feat: 新增产线看板功能并优化多端系统体验

1. 新增SSE看板广播机制,业务操作后主动推送刷新事件
2. 新增产线工序横道图与工位状态展示面板
3. 移除dashboard无用的three.js依赖
4. 重构WMS客户端布局与WMS前端资源哈希
5. 新增工位终端时钟图标与大屏自适应布局
6. 新增系统截图脚本与说明书生成工具
7. 修复多处代码细节与空值处理逻辑
This commit is contained in:
SunYF
2026-09-04 17:31:18 +08:00
parent b6799c9de4
commit 92f0439d89
64 changed files with 2263 additions and 633 deletions
+23
View File
@@ -152,6 +152,28 @@ export function getDemoData(): DashboardData {
buildTraceItem(3, 55),
];
// 当前订单 12 道工序横道图:工期 -10 ~ +16 天,每序约 2.17 天
const stepDurationHours = ((planEnd.getTime() - planStart.getTime()) / 12) / 36e5;
const progressSteps: DashboardData['progress']['steps'] = PROCESS_NAMES.map((name, i) => {
const seqStart = new Date(planStart.getTime() + i * stepDurationHours * 36e5);
const seqEnd = new Date(seqStart.getTime() + stepDurationHours * 36e5);
const done = i < 6;
const running = i === 6;
const actualStart = done || running ? seqStart.toISOString() : undefined;
const actualEnd = done ? seqEnd.toISOString() : running ? now.toISOString() : undefined;
return {
code: i + 1,
name,
planStart: seqStart.toISOString(),
planEnd: seqEnd.toISOString(),
actualStart,
actualEnd,
progress: done ? 100 : running ? 65 : 0,
owner: OPERATORS[i % OPERATORS.length],
status: done ? 'done' : running ? 'running' : ('pending' as const),
};
});
return {
production: {
outputToday: 168,
@@ -195,6 +217,7 @@ export function getDemoData(): DashboardData {
status: '生产中',
traceStepCount: 2016,
traceable: true,
steps: progressSteps,
},
traces,
trends: { production: trends },