feat(bill): support full invoice validation details, datalink cards, and department paths (v0.7.3)

This commit is contained in:
gitea committed 2026-09-07 15:47:44 +08:00
1 parent 5e06429d6c
commit a8e32cff32
12 files changed
+313 -56

No files matched your search

+2 -2
View File
@@ -164,7 +164,7 @@ export async function runAiProCli(rawArgs: string[]): Promise<{ stdout: string;
const flowIdObj = (raw.flowId && typeof raw.flowId === "object" ? raw.flowId : raw) as Record<string, any>;
const form = (flowIdObj.form && typeof flowIdObj.form === "object" ? flowIdObj.form : {}) as Record<string, any>;
const title = form.title || flowIdObj.title || "<无标题>";
const translatorContext = await getTranslatorContext(context.client, context.corpId).catch(() => undefined);
const translatorContext = await getTranslatorContext(context.client, context.corpId, raw).catch(() => undefined);
const snapshot = translateBillFlowToMarkdown(raw, translatorContext);
// 创建全新独立运行实例 (永久长 ID + 6 位短 ID, 6 小时有效期)
@@ -299,7 +299,7 @@ export async function runAiProCli(rawArgs: string[]): Promise<{ stdout: string;
if (!raw) {
throw new Error(`在当前企业下未找到单号或 ID 为 [${targetSn}] 的单据`);
}
const translatorContext = await getTranslatorContext(context.client, context.corpId).catch(() => undefined);
const translatorContext = await getTranslatorContext(context.client, context.corpId, raw).catch(() => undefined);
const markdown = translateBillFlowToMarkdown(raw, translatorContext);
repo.logAiProAction({