From b0335cb322796cf4f77b32c7325dcaf44652cfb3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 24 Oct 2026 15:59:33 +0000 Subject: [PATCH 1/2] fix(core): delivery scorecard report page rendered blank The console renders a report's inline locale-map label and description as a React child (objectui#13470), so the report page crashed for every viewer. Use plain Chinese strings until the platform resolves report labels; switch back to the locale map (and restore English) then. Found in the v0.4 browser acceptance run. Claude-Session: https://claude.ai/code/session_01E7UNrUkwEKDrg7BXnKF5LU Co-authored-by: Claude --- src/core/analytics/delivery.report.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/core/analytics/delivery.report.ts b/src/core/analytics/delivery.report.ts index 8ba3145..1ac7bfa 100644 --- a/src/core/analytics/delivery.report.ts +++ b/src/core/analytics/delivery.report.ts @@ -1,14 +1,12 @@ import { defineReport } from '@objectstack/spec/ui'; // 按供应商、期间出 OTD、批次合格率、PPM(05 §4.1;v0.4 出口条件)。考评单(v0.5)按同一口径取数。 -// 报表在翻译包里没有词条组,标签用内联的多语言写法(ADR-0007)。 +// 报表在翻译包里没有词条组。标签暂用中文字符串:控制台把内联的多语言写法 { 'zh-CN', en } 当文本直接渲染, +// 报表页白屏(objectui#13470);平台修好后改回内联多语言写法,补上英文(ADR-0007)。 export const DeliveryScorecardReport = defineReport({ name: 'srm_delivery_scorecard', - label: { 'zh-CN': '供应商交付与质量(按期间)', en: 'Supplier Delivery and Quality by Period' }, - description: { - 'zh-CN': '每家供应商每个期间的交付行数、准时率、批次合格率与 PPM', - en: 'Delivery lines, on-time rate, lot acceptance rate and PPM per supplier and period', - }, + label: '供应商交付与质量(按期间)', + description: '每家供应商每个期间的交付行数、准时率、批次合格率与 PPM', type: 'summary', dataset: 'srm_delivery_metrics', rows: ['period', 'supplier'], From 98ef9245597d83958d914abdb1ba2eaeb63e9c37 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 24 Oct 2026 16:13:58 +0000 Subject: [PATCH 2/2] fix(core): audit calendar events read "[object Object]" The calendar view titled events by the supplier lookup, which the console stringifies raw (objectui#13471). Title them by audit number until the platform resolves lookup titles. Found in the v0.4 browser acceptance run. Claude-Session: https://claude.ai/code/session_01E7UNrUkwEKDrg7BXnKF5LU Co-authored-by: Claude --- src/core/views/supplier-audit.view.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/views/supplier-audit.view.ts b/src/core/views/supplier-audit.view.ts index f9d4b9a..f9b1d06 100644 --- a/src/core/views/supplier-audit.view.ts +++ b/src/core/views/supplier-audit.view.ts @@ -38,7 +38,8 @@ export const SupplierAuditViews = defineView({ data, columns: ['audit_no', 'supplier', 'audit_type', 'status'], filter: [{ field: 'status', operator: 'equals', value: 'planned' }], - calendar: { startDateField: 'planned_date', titleField: 'supplier', colorField: 'audit_type' }, + // 临时:标题本应显示供应商,但日历把 lookup 值当对象渲染成「[object Object]」(objectui#13471),先用审核编号 + calendar: { startDateField: 'planned_date', titleField: 'audit_no', colorField: 'audit_type' }, }, admission: { label: '准入审核',