From 9f265f16b340df38f3d3db7bdb775e58f791d6fe Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 14 Jun 2026 19:17:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(dacli):=20=E8=BF=81=E7=A7=BB=20BS-15=20f?= =?UTF-8?q?=5Fflow=5Ftask=5Fid=20=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/form/_blindspots.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/commands/form/_blindspots.ts b/src/commands/form/_blindspots.ts index 871c0c4..06caa3c 100644 --- a/src/commands/form/_blindspots.ts +++ b/src/commands/form/_blindspots.ts @@ -105,4 +105,18 @@ export function checkBs32(formDataRaw: unknown): BlindspotIssue[] { } }) return issues +} + +export function checkBs15(tablesRaw: unknown, enableFlow: number | undefined): BlindspotIssue[] { + if (enableFlow !== 1) return [] + const issues: BlindspotIssue[] = [] + const tables = safeParse(tablesRaw) as Array<{ table?: string; fields?: Array<{ field: string }> }> | null + if (!tables) return issues + for (const t of tables) { + const hasFlowTaskId = t.fields?.some(f => f.field === 'f_flow_task_id') + if (!hasFlowTaskId) { + issues.push({ id: 'BS-15', level: 'ERROR', path: `tables.${t.table || '?'}.fields`, message: 'enableFlow=1 必须含 f_flow_task_id 列' }) + } + } + return issues } \ No newline at end of file