|
|
@@ -98,8 +98,8 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="s8-monitor__tabs" aria-hidden="true">
|
|
|
- <span class="s8-monitor__tab">最近24小时</span>
|
|
|
- <span class="s8-monitor__tab s8-monitor__tab--active">实时快照</span>
|
|
|
+ <!-- S8-MONITORING-DEMO-SEMANTICS-CLOSURE-1:原「最近24小时 / 实时快照」装饰文案与实际全量口径不符,改为「累计统计」。 -->
|
|
|
+ <span class="s8-monitor__tab s8-monitor__tab--active">累计统计</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -196,14 +196,15 @@ const numberFormatter = new Intl.NumberFormat('zh-CN');
|
|
|
|
|
|
// S8-MODULE-CARD-METRIC-LABEL-UNIFY-1:S1-S7 主指标统一为「累计异常数」+ valueMode=total,
|
|
|
// 取 orderGrid.modules[].total 直显,避免同组卡片语义不一致影响演示叙事。
|
|
|
+// S8-MONITORING-DEMO-SEMANTICS-CLOSURE-1:模块卡主标题改「当前待处理异常」,与三色数字(正常执行订单/关注异常/严重异常)口径一致。
|
|
|
const STAGE_META_FALLBACK: ReadonlyArray<StageMeta> = [
|
|
|
- { code: 'S1', title: '销售评审', icon: Checked, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
- { code: 'S2', title: '计划排产', icon: TrendCharts, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
- { code: 'S3', title: '物料备料', icon: ShoppingBag, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
- { code: 'S4', title: '生产制造', icon: Tools, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
- { code: 'S5', title: '质量检测', icon: DataAnalysis, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
- { code: 'S6', title: '总装入库', icon: Box, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
- { code: 'S7', title: '订单交付', icon: Van, metricLabel: '累计异常数', valueMode: 'total' },
|
|
|
+ { code: 'S1', title: '销售评审', icon: Checked, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
+ { code: 'S2', title: '计划排产', icon: TrendCharts, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
+ { code: 'S3', title: '物料备料', icon: ShoppingBag, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
+ { code: 'S4', title: '生产制造', icon: Tools, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
+ { code: 'S5', title: '质量检测', icon: DataAnalysis, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
+ { code: 'S6', title: '总装入库', icon: Box, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
+ { code: 'S7', title: '订单交付', icon: Van, metricLabel: '当前待处理异常', valueMode: 'total' },
|
|
|
];
|
|
|
|
|
|
const CATEGORY_DEFS_FALLBACK: ReadonlyArray<{ key: string; title: string; icon: Component }> = [
|
|
|
@@ -507,6 +508,8 @@ function buildStageCard(
|
|
|
// S8-DASHBOARD-MODULE-TRICOLOR-SEMANTICS-1:三色数字(绿正常 / 黄关注 / 红严重)
|
|
|
// 全部为自然数;warning + serious = 异常总数;绿色暂用 DEFAULT_NORMAL_WORK_ORDER_COUNT。
|
|
|
values: buildModuleTriColorStats({ total: anomalyCount, red, yellow }),
|
|
|
+ // S8-MONITORING-DEMO-SEMANTICS-CLOSURE-1:明确三色语义,避免「20」被误读为异常数。
|
|
|
+ valueLabels: { green: '正常执行订单', yellow: '关注异常', red: '严重异常' },
|
|
|
healthRate: closeRate,
|
|
|
healthRateText: hasSamples ? undefined : '--',
|
|
|
statusLabel: timeout > 0 ? `${timeout} 超时` : `${anomalyCount} 异常`,
|