From b9076e68182d78c4dbe2b62ded1027a0ece93502 Mon Sep 17 00:00:00 2001 From: Hermes CI Fix Date: Wed, 26 Aug 2026 09:39:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20KPI=E8=AF=A6=E6=83=85=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=A5=E6=BA=90/=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E6=98=BE=E7=A4=BA=20=E2=80=94=20sourceLabel/?= =?UTF-8?q?statusLabel=E6=98=A0=E5=B0=84(Excel=E5=AF=BC=E5=85=A5/=E8=B4=A6?= =?UTF-8?q?=E7=B0=BF=E6=8F=90=E5=8F=96/=E6=89=8B=E5=8A=A8=E5=BD=95?= =?UTF-8?q?=E5=85=A5/=E5=B7=B2=E9=AA=8C=E8=AF=81/=E4=BC=B0=E7=AE=97?= =?UTF-8?q?=E7=AD=89)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/KPIDetail.vue | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/KPIDetail.vue b/frontend/src/views/KPIDetail.vue index 61df0f08..2c29a616 100644 --- a/frontend/src/views/KPIDetail.vue +++ b/frontend/src/views/KPIDetail.vue @@ -169,9 +169,11 @@ - - - + + + + + @@ -333,6 +335,24 @@ function formatValue(v: any) { // 整数不带小数,非整数保留2位 return n.toLocaleString('zh-CN', { minimumFractionDigits: 0, maximumFractionDigits: 2 }) } + +// 来源中文映射 +function sourceLabel(s: string) { + const map: Record = { + excel: 'Excel导入', ledger: '账簿提取', manual: '手动录入', + 'excel-import': 'Excel导入', forecast: '预测', sales_ranking: '销售排行', + 'bot-bridge-v2': 'Bot桥接', verify: '验证数据', erp: 'ERP', + } + return map[s] || s || '—' +} + +// 状态中文映射 +function statusLabel(s: string) { + const map: Record = { + verified: '已验证', estimated: '估算', pending: '待处理', error: '错误', + } + return map[s] || s || '—' +} const mapOptions = ref([]) const activeTab = ref('basic')