Просмотр исходного кода

fix(s8): unify S1-S7 module card metric label to 累计异常数

YY968XX 4 месяцев назад
Родитель
Сommit
ab92f775ff

+ 8 - 6
Web/src/views/aidop/s8/monitoring/S8MonitoringOverviewPage.vue

@@ -210,14 +210,16 @@ interface DeptDisplay {
 
 const numberFormatter = new Intl.NumberFormat('zh-CN');
 
+// S8-MODULE-CARD-METRIC-LABEL-UNIFY-1:S1-S7 主指标统一为「累计异常数」+ valueMode=total,
+// 取 orderGrid.modules[].total 直显,避免同组卡片语义不一致影响演示叙事。
 const STAGE_META_FALLBACK: ReadonlyArray<StageMeta> = [
-	{ code: 'S1', title: '销售评审', icon: Checked, 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: 'avgHours' },
-	{ code: 'S5', title: '质量检测', icon: DataAnalysis, metricLabel: '异常关闭率', valueMode: 'closeRate' },
-	{ code: 'S6', title: '总装入库', icon: Box, metricLabel: '累计异常数', valueMode: 'total' },
-	{ code: 'S7', title: '订单交付', icon: Van, 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 }> = [

+ 1 - 1
Web/src/views/aidop/s8/monitoring/components/S8MonitoringCategoryCard.vue

@@ -32,7 +32,7 @@ const cardStyle = computed(() => {
 
 			<div class="category-card__main">
 				<div class="category-card__value">{{ totalText }}</div>
-				<div class="category-card__label">累计异常数</div>
+				<div class="category-card__label">累计异常数</div>
 			</div>
 
 			<div class="category-card__meta">