docs: 整理doc目录结构

This commit is contained in:
sophie committed 2026-08-07 14:38:41 +08:00
1 parent 87ea4ed8a9
commit 05ae598108
42 files changed
+3822 -49

No files matched your search

@@ -7,8 +7,8 @@
| **迁移与部署验收清单** | 研发、运维、测试 | [ops-checklist.md](ops-checklist.md) |
| **Dify Chatflow 编排草稿** | 研发、Dify | [dify-chatflow-draft.md](dify-chatflow-draft.md) |
| **查询 Tool OpenAPI** | Dify | 在线 `GET /api/accounting-voucher-check/tools/openapi.json`;静态 [../../openapi/accounting_voucher_check_tools_openapi.json](../../openapi/accounting_voucher_check_tools_openapi.json) |
| **交互原型** | 产品、业务、测试 | [../../prototype/accounting-voucher-check-prototype.html](../../prototype/accounting-voucher-check-prototype.html) |
| **原型速览** | 产品、测试 | [../../prototype/accounting-voucher-check-prototype.md](../../prototype/accounting-voucher-check-prototype.md) |
| **交互原型** | 产品、业务、测试 | [accounting-voucher-check-prototype.html](accounting-voucher-check-prototype.html) |
| **原型速览** | 产品、测试 | [accounting-voucher-check-prototype.md](accounting-voucher-check-prototype.md) |
**定位**:以企业 AI 工作台**对话为主入口**,**日批为主、会话可手动触发**。
**要解决的问题**:审计/复核时按发票号**快速确认共享盘配套资料在不在**(核价单、采购单等)。
@@ -0,0 +1,799 @@
<!doctype html>
<!--
docs/features/accounting-voucher-check/accounting-voucher-check-prototype.html
用途:立账凭证检核 Agent 低保真原型——对话为主入口、日批为主;只查共享盘材料是否存在,不做字段吻合。
依赖:浏览器原生 HTML/CSS/JavaScript,无需构建;用于产品/业务评审。
逻辑:顶栏切换「会话 / 检核记录 / 共享盘材料 / 缺资料通知」;
会话内模拟发起检核 → 进度卡 → 单票结果卡;记录页可筛选批次与发票明细;
共享盘按发票号展示材料齐全度(必检清单占位 TBD);缺资料触发企微 textcard。
-->
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>立账凭证检核 Agent · 原型</title>
<style>
:root {
--bg: #f7f9fc; --panel: #ffffff; --line: #d8e0ec; --line-strong: #a7b3c5;
--text: #172033; --muted: #667792; --brand: #2f80d1; --brand-soft: #eaf4ff;
--success: #067647; --success-soft: #ecfdf3; --warning: #b54708; --warning-soft: #fffaeb;
--danger: #b42318; --danger-soft: #fef3f2; --info: #175cd3; --info-soft: #eff8ff;
--shadow: 0 14px 36px rgba(23, 32, 51, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.proto-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px;
padding: 10px 18px; background: #0f172a; color: #e2e8f0; flex-wrap: wrap; position: sticky; top: 0; z-index: 20; }
.proto-bar strong { color: #fff; font-size: 13px; }
.proto-meta { color: #94a3b8; font-size: 12px; margin-left: 8px; }
.view-tabs { display: flex; gap: 6px; background: #1e293b; padding: 4px; border-radius: 10px; flex-wrap: wrap; }
.view-tabs button { border: 0; border-radius: 8px; padding: 8px 14px; background: transparent; color: #cbd5e1; font-weight: 600; font-size: 13px; }
.view-tabs button.active { background: var(--brand); color: #fff; }
.view { display: none; min-height: calc(100vh - 52px); }
.view.active { display: grid; }
.chat-shell { grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.sidebar { display: flex; flex-direction: column; gap: 16px; padding: 18px 16px; border-right: 1px solid var(--line); background: var(--panel); }
.agent-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.new-chat { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbff; font-weight: 600; }
.side-label { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.hist-item { padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 6px; cursor: pointer; }
.hist-item:hover { background: #f5f8fc; }
.hist-item.active { background: var(--brand-soft); border-color: #c8dff8; }
.hist-item .t { font-weight: 600; font-size: 13px; }
.hist-item .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.hint-box { padding: 12px 14px; border-radius: 12px; background: var(--info-soft); border: 1px solid #b2ddff; color: var(--info); font-size: 12px; line-height: 1.5; }
.chat-main { display: grid; grid-template-rows: 1fr auto; min-height: calc(100vh - 52px); background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%); }
.chat-scroll { overflow: auto; padding: 20px 22px 8px; }
.chat-welcome { display: none; place-items: center; padding: 48px 24px 24px; text-align: center; }
.chat-welcome.show { display: grid; }
.chat-welcome h1 { margin: 0; font-size: 26px; font-weight: 650; }
.chat-welcome h1 em { font-style: normal; color: var(--brand); }
.chat-welcome p { margin: 10px 0 0; color: var(--muted); font-size: 13px; max-width: 520px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; max-width: 640px; }
.quick-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 650; color: var(--text); }
.quick-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.msg-list { max-width: 920px; margin: 0 auto; display: grid; gap: 14px; }
.msg { display: grid; gap: 8px; max-width: 860px; }
.msg.user { justify-items: end; margin-left: auto; }
.msg.assistant { justify-items: start; }
.bubble { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(23, 32, 51, 0.04); white-space: pre-line; line-height: 1.55; font-size: 13px; }
.msg.user .bubble { background: var(--brand); color: #fff; border-color: transparent; }
.msg-meta { font-size: 11px; color: var(--muted); }
.progress-card, .result-card { width: min(640px, 100%); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.progress-card .hd, .result-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.progress-card .hd strong, .result-card .hd h3 { margin: 0; font-size: 13px; }
.result-card .hd { align-items: flex-start; }
.result-card .hd p { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.status { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.status.running { background: var(--info-soft); color: var(--info); }
.status.done { background: var(--success-soft); color: var(--success); }
.status.partial { background: var(--warning-soft); color: var(--warning); }
.progress-card .bd, .result-card .bd { padding: 14px; display: grid; gap: 12px; }
.bar-wrap { height: 8px; border-radius: 999px; background: #e8eef6; overflow: hidden; }
.bar { height: 100%; width: 0; background: linear-gradient(90deg, #2f80d1, #56a3e8); transition: width 0.35s ease; }
.counters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.counter.skip .n { color: #475569; }
.counter { border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; background: #fafcff; }
.counter .n { font-size: 16px; font-weight: 750; }
.counter .l { font-size: 11px; color: var(--muted); margin-top: 2px; }
.counter.ok .n { color: var(--success); }
.counter.fail .n { color: var(--danger); }
.counter.miss .n { color: var(--warning); }
.progress-sub { font-size: 12px; color: var(--muted); }
.progress-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 650; font-size: 12px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.fail { background: var(--danger-soft); color: var(--danger); }
.pill.miss { background: var(--warning-soft); color: var(--warning); }
.pill.human { background: #f4f3ff; color: #5925dc; }
.pill.cron { background: #eef2f7; color: #475569; }
.pill.chat { background: var(--brand-soft); color: var(--brand); }
.field-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.field-table th, .field-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.field-table th { color: var(--muted); font-weight: 650; background: #fafcff; }
.mat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mat-chip { font-size: 11px; font-weight: 650; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: #f8fafc; }
.mat-chip.ok { border-color: #abefc6; background: var(--success-soft); color: var(--success); }
.mat-chip.miss { border-color: #f7c948; background: var(--warning-soft); color: var(--warning); }
.composer { padding: 10px 22px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.composer-dock { max-width: 920px; margin: 0 auto; }
.composer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.composer-meta .hint { font-size: 12px; color: var(--muted); }
.composer-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 18px; padding: 8px 10px; background: #fff; box-shadow: var(--shadow); }
.composer-box textarea { border: 0; outline: none; resize: none; min-height: 44px; max-height: 120px; padding: 8px 6px; width: 100%; background: transparent; }
.send-btn { height: 40px; min-width: 72px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.page-shell { grid-template-columns: 1fr; padding: 20px 22px 32px; max-width: 1180px; margin: 0 auto; width: 100%; gap: 16px; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat .n { font-size: 22px; font-weight: 750; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; background: #eef2f7; padding: 4px; border-radius: 10px; }
.filters button { border: 0; border-radius: 8px; padding: 7px 12px; background: transparent; color: var(--muted); font-weight: 650; font-size: 12px; }
.filters button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(23, 32, 51, 0.08); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(23, 32, 51, 0.04); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { background: #fafcff; color: var(--muted); font-weight: 650; font-size: 12px; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: #f8fbff; }
table.data tbody tr.active { background: var(--brand-soft); }
.muted { color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.card-block { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.card-block h3 { margin: 0 0 10px; font-size: 14px; }
.path-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 12px 14px; line-height: 1.6; overflow: auto; white-space: pre-wrap; }
.folder-list { display: grid; gap: 8px; }
.folder-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafcff; cursor: pointer; }
.folder-item:hover, .folder-item.active { border-color: #c8dff8; background: var(--brand-soft); }
.folder-item .name { font-weight: 700; font-size: 13px; }
.folder-item .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.file-rows { display: grid; gap: 8px; }
.file-row-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.file-row-item .fn { font-weight: 650; font-size: 13px; }
.file-row-item .fs { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tbd-note { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--warning-soft); border: 1px solid #f7c948; color: var(--warning); font-size: 12px; line-height: 1.5; }
.wecom-stage { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 24px; gap: 18px; justify-items: center; }
.phone { width: 360px; border-radius: 28px; background: #111827; padding: 16px 14px 22px; box-shadow: var(--shadow); }
.phone-bar { color: #94a3b8; font-size: 12px; text-align: center; margin-bottom: 14px; }
.wecom-card { background: #fff; border-radius: 12px; overflow: hidden; color: var(--text); }
.wecom-card .hd { padding: 14px 16px 8px; font-weight: 750; font-size: 15px; }
.wecom-card .bd { padding: 0 16px 14px; color: #334155; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.wecom-card .ft { border-top: 1px solid #e2e8f0; padding: 12px 16px; color: var(--brand); font-weight: 700; font-size: 13px; cursor: pointer; }
.wecom-side { width: min(420px, 100%); display: grid; gap: 10px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; min-width: 240px; max-width: 360px; padding: 12px 14px; border-radius: 12px; background: #0f172a; color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: 0.2s ease; font-size: 13px; font-weight: 600; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
.chat-shell { grid-template-columns: 1fr; }
.sidebar { display: none; }
.stats, .counters { grid-template-columns: 1fr 1fr; }
.detail-grid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<div class="proto-bar">
<div>
<strong>立账凭证检核 Agent · 原型</strong>
<span class="proto-meta">对话为主入口 · 日批为主 · 只查文件在不在 · 不回写 ERP</span>
</div>
<div class="view-tabs" id="topTabs">
<button type="button" data-view="chat" class="active">会话</button>
<button type="button" data-view="records">检核记录</button>
<button type="button" data-view="share">共享盘材料</button>
<button type="button" data-view="wecom">缺资料通知</button>
</div>
</div>
<section class="view chat-shell active" id="view-chat">
<aside class="sidebar">
<div class="agent-name">
<div class="avatar">凭</div>
<div>
<div>立账凭证检核</div>
<div class="muted">每日 09:00 自动检核</div>
</div>
</div>
<button type="button" class="new-chat" id="btnNewChat">新建会话</button>
<div>
<p class="side-label">最近会话</p>
<div class="hist-item active"><div class="t">今日日批检核</div><div class="s">定时 · 09:00 · 含 2 票缺资料</div></div>
<div class="hist-item"><div class="t">加急:INV-20260802018</div><div class="s">会话手动 · 昨日</div></div>
<div class="hist-item"><div class="t">查询缺资料发票</div><div class="s">会话 · 上周</div></div>
</div>
<div class="hint-box">审计找资料:只查文件在不在。已齐全且材料未变更 → 跳过;缺资料/新票/目录有变更 → 再扫。ERP 只取发票清单。</div>
</aside>
<div class="chat-main">
<div class="chat-scroll" id="chatScroll">
<div class="chat-welcome show" id="chatWelcome">
<div>
<h1>立账凭证<em>检核助手</em></h1>
<p>每日按当月发票号扫描共享盘:只看必检材料在不在,不核对金额/供应商。已齐全且材料未变更则跳过。也可会话手动触发。</p>
<div class="quick-row" id="quickRow">
<button type="button" class="quick-chip" data-q="执行今日立账凭证检核">执行今日立账凭证检核(增量)</button>
<button type="button" class="quick-chip" data-q="重新检核当月全部">重新检核当月全部</button>
<button type="button" class="quick-chip" data-q="检核发票 INV-20260803001">检核发票 INV-20260803001</button>
<button type="button" class="quick-chip" data-q="查询最新检核结果">查询最新检核结果</button>
<button type="button" class="quick-chip" data-q="查询缺资料发票">查询缺资料发票</button>
</div>
</div>
</div>
<div class="msg-list" id="msgList"></div>
</div>
<div class="composer">
<div class="composer-dock">
<div class="composer-meta">
<span class="pill cron">绑定日批任务</span>
<span class="hint">只查材料存在性 · 不做字段吻合 · 单票状态落库 · 必检清单 TBD</span>
</div>
<div class="composer-box">
<textarea id="composerInput" rows="2" placeholder="例如:执行今日立账凭证检核 / 重新检核当月全部 / 检核发票 INV-xxx"></textarea>
<button type="button" class="send-btn" id="btnSend">发送</button>
</div>
</div>
</div>
</div>
</section>
<section class="view page-shell" id="view-records">
<div class="page-head">
<div>
<h1>检核记录</h1>
<p>定时与会话触发统一落库;日批默认增量(齐全且材料未变更计入跳过);可按缺资料筛选</p>
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap;">
<button type="button" class="btn" id="btnGotoWecom">查看缺资料通知</button>
<button type="button" class="btn primary" id="btnMockExport">下载批次 Excel(示意)</button>
</div>
</div>
<div class="stats" id="recordStats"></div>
<div class="toolbar">
<div class="filters" id="recordFilters">
<button type="button" data-filter="all" class="active">全部批次</button>
<button type="button" data-filter="cron">定时</button>
<button type="button" data-filter="chat">会话</button>
<button type="button" data-filter="missing">含缺资料</button>
</div>
<span class="muted" id="recordCount">共 0 批</span>
</div>
<div class="detail-grid">
<div class="panel">
<table class="data">
<thead><tr><th>批次</th><th>触发</th><th>时间</th><th>统计</th><th>状态</th></tr></thead>
<tbody id="batchTable"></tbody>
</table>
</div>
<div class="card-block" id="batchDetail"><h3>批次明细</h3><p class="muted">选择左侧批次查看按发票号结果</p></div>
</div>
</section>
<section class="view page-shell" id="view-share">
<div class="page-head">
<div>
<h1>共享盘材料</h1>
<p>每个发票号一个子目录;Agent 只判断必检材料文件是否存在(不做字段核对)</p>
</div>
</div>
<div class="path-box">\\192.168.x.x\立账凭证\{发票号}\
├─ 核价单.*
├─ 采购单.*
└─ 发票扫描件.* ← 第三项是否必检:TBD</div>
<div class="detail-grid">
<div class="card-block">
<h3>发票文件夹</h3>
<div class="folder-list" id="folderList"></div>
</div>
<div class="card-block">
<h3 id="folderTitle">材料预览</h3>
<div class="file-rows" id="fileRows"></div>
<div class="tbd-note">必检材料清单尚未最终确认。当前原型默认:核价单、采购单为必检;发票扫描件暂标「待确认」。</div>
</div>
</div>
<div class="card-block">
<h3>ERP 用途(占位)</h3>
<p class="muted" style="margin:0 0 10px;">ERP 只提供当月立账凭证的<strong>发票号清单</strong>,用于定位共享盘子目录。不核对金额、供应商等字段是否吻合。</p>
<table class="data">
<thead><tr><th>示意字段</th><th>用途</th></tr></thead>
<tbody>
<tr><td>发票号</td><td>当月清单主键 → 共享盘文件夹名</td></tr>
<tr><td>会计月(TBD)</td><td>限定「当月」集合</td></tr>
</tbody>
</table>
</div>
</section>
<section class="view" id="view-wecom">
<div class="wecom-stage">
<div class="phone">
<div class="phone-bar">企业微信 · 应用消息</div>
<div class="wecom-card">
<div class="hd" id="wecomTitle">立账凭证缺资料提醒</div>
<div class="bd" id="wecomBody"></div>
<div class="ft" id="wecomJump">查看检核记录</div>
</div>
</div>
<div class="wecom-side">
<div class="card-block">
<h3>通知规则(示意)</h3>
<p class="muted" style="margin:0;line-height:1.6;">
• 日批或会话检核发现「缺资料」时推送<br>
• 收件人:排程负责人 / 可配置抄送(TBD)<br>
• 卡片跳转:HXOPS 检核记录对应批次<br>
• 同一发票同日重复缺资料:合并或节流(TBD)
</p>
</div>
<div style="display:flex;gap:8px;flex-wrap:wrap;">
<button type="button" class="btn primary" id="btnSimulateNotify">模拟推送下一条</button>
<button type="button" class="btn" id="btnOpenRecordsFromWecom">打开检核记录</button>
</div>
</div>
</div>
</section>
<div class="toast" id="toast"></div>
<script>
/**
* 立账凭证检核 HTML 原型交互(演示数据,不接真实 API)。
*/
(function () {
const REQUIRED_MATERIALS = [
{ key: "pricing", label: "核价单", required: true },
{ key: "po", label: "采购单", required: true },
{ key: "invoice_scan", label: "发票扫描件", required: false, tbd: true },
];
const FOLDERS = [
{
invoiceNo: "INV-20260803001",
vendor: "煜英精密",
files: [
{ key: "pricing", name: "核价单_煜英_0803.pdf", present: true },
{ key: "po", name: "采购单_PO26080301.pdf", present: true },
{ key: "invoice_scan", name: "发票扫描件.jpg", present: true },
],
},
{
invoiceNo: "INV-20260803012",
vendor: "华信材料",
files: [
{ key: "pricing", name: "", present: false },
{ key: "po", name: "采购单_PO26080312.pdf", present: true },
{ key: "invoice_scan", name: "", present: false },
],
},
{
invoiceNo: "INV-20260803018",
vendor: "南通机电",
files: [
{ key: "pricing", name: "核价单.pdf", present: true },
{ key: "po", name: "采购单.pdf", present: true },
{ key: "invoice_scan", name: "发票.pdf", present: true },
],
},
];
const BATCHES = [
{
id: "AVR-20260803-001",
trigger: "cron",
time: "2026-08-03 09:00",
status: "done",
stats: { total: 28, todo: 6, skip: 22, ok: 3, human: 0, missing: 2, human: 0 },
rows: [
{ invoiceNo: "INV-20260803001", conclusion: "ok", note: "必检材料齐全(今日增量跳过)" },
{ invoiceNo: "INV-20260803012", conclusion: "missing", note: "缺核价单;发票扫描件待确认" },
{ invoiceNo: "INV-20260803015", conclusion: "human", note: "目录内文件命名无法识别是否为核价单" },
{ invoiceNo: "INV-20260803018", conclusion: "ok", note: "必检材料齐全(今日增量可跳过)" },
{ invoiceNo: "INV-20260803021", conclusion: "missing", note: "共享盘无此发票号文件夹" },
],
},
{
id: "AVR-20260802-003",
trigger: "chat",
time: "2026-08-02 15:22",
status: "done",
stats: { total: 1, todo: 1, skip: 0, ok: 1, human: 0, missing: 0, human: 0 },
rows: [{ invoiceNo: "INV-20260802018", conclusion: "ok", note: "会话加急单票检核通过" }],
},
{
id: "AVR-20260802-001",
trigger: "cron",
time: "2026-08-02 09:00",
status: "done",
stats: { total: 9, todo: 9, skip: 0, ok: 7, fail: 0, missing: 2, human: 0 },
rows: [
{ invoiceNo: "INV-20260802003", conclusion: "missing", note: "缺采购单" },
{ invoiceNo: "INV-20260802007", conclusion: "missing", note: "共享盘无发票号文件夹" },
],
},
];
const MISSING_NOTIFY_QUEUE = [
{
title: "立账凭证缺资料提醒",
body: "批次:AVR-20260803-001\n发票号:INV-20260803012\n供应商:华信材料\n缺失材料:核价单\n共享路径:\\\\share\\立账凭证\\INV-20260803012\\\n请尽快补齐后可回复「检核发票 INV-20260803012」重跑。",
},
{
title: "立账凭证缺资料提醒",
body: "批次:AVR-20260803-001\n发票号:INV-20260803021\n缺失材料:共享盘无发票号文件夹\n共享路径:\\\\share\\立账凭证\\INV-20260803021\\\n请创建目录并放入核价单、采购单后重检。",
},
];
let selectedBatchId = BATCHES[0].id;
let selectedFolder = FOLDERS[0].invoiceNo;
let notifyIndex = 0;
let running = false;
let progressTimer = null;
function $(id) { return document.getElementById(id); }
function toast(text) {
const el = $("toast");
el.textContent = text;
el.classList.add("show");
clearTimeout(toast._t);
toast._t = setTimeout(function () { el.classList.remove("show"); }, 2200);
}
function switchView(name) {
document.querySelectorAll(".view").forEach(function (v) { v.classList.remove("active"); });
document.querySelectorAll("#topTabs button").forEach(function (b) {
b.classList.toggle("active", b.dataset.view === name);
});
const view = $("view-" + name);
if (view) view.classList.add("active");
}
function conclusionPill(c) {
const map = {
ok: ["齐全", "ok"],
missing: ["缺资料", "miss"],
human: ["人工判定", "human"],
};
const pair = map[c] || ["未知", "human"];
return '<span class="pill ' + pair[1] + '">' + pair[0] + "</span>";
}
function triggerPill(t) {
return t === "cron"
? '<span class="pill cron">定时</span>'
: '<span class="pill chat">会话</span>';
}
function hideWelcome() { $("chatWelcome").classList.remove("show"); }
function scrollChat() {
const sc = $("chatScroll");
sc.scrollTop = sc.scrollHeight;
}
function appendUser(text) {
hideWelcome();
const wrap = document.createElement("div");
wrap.className = "msg user";
wrap.innerHTML = '<div class="bubble"></div><div class="msg-meta">我 · 刚刚</div>';
wrap.querySelector(".bubble").textContent = text;
$("msgList").appendChild(wrap);
scrollChat();
}
function appendAssistant(html) {
hideWelcome();
const wrap = document.createElement("div");
wrap.className = "msg assistant";
wrap.innerHTML = html + '<div class="msg-meta">立账凭证检核 · 刚刚</div>';
$("msgList").appendChild(wrap);
scrollChat();
return wrap;
}
function buildProgressCard(runId) {
return (
'<div class="progress-card" data-run="' + runId + '">' +
'<div class="hd"><strong>检核批次 ' + runId + '</strong><span class="status running">进行中</span></div>' +
'<div class="bd"><div class="bar-wrap"><div class="bar" style="width:8%"></div></div>' +
'<div class="counters">' +
'<div class="counter"><div class="n" data-k="total">28</div><div class="l">当月总数</div></div>' +
'<div class="counter"><div class="n" data-k="todo">0</div><div class="l">本次待检</div></div>' +
'<div class="counter skip"><div class="n" data-k="skip">0</div><div class="l">跳过</div></div>' +
'<div class="counter ok"><div class="n" data-k="ok">0</div><div class="l">齐全</div></div>' +
'<div class="counter miss"><div class="n" data-k="missing">0</div><div class="l">缺资料</div></div>' +
'<div class="counter"><div class="n" data-k="human">0</div><div class="l">人工判定</div></div>' +
'</div><div class="progress-sub" data-step>阶段:拉取 ERP 当月立账凭证…</div>' +
'<div class="progress-actions">' +
'<button type="button" class="btn" data-act="records" disabled>查看记录</button>' +
'<button type="button" class="btn" data-act="excel" disabled>下载 Excel</button>' +
'<button type="button" class="btn" data-act="notify" disabled>查看缺资料通知</button>' +
'</div></div></div>'
);
}
function buildResultCard() {
return (
'<div class="result-card"><div class="hd"><div><h3>INV-20260803012 · 华信材料</h3>' +
'<p>共享盘:\\\\share\\立账凭证\\INV-20260803012\\ · 只查文件在不在</p></div>' + conclusionPill("missing") + "</div>" +
'<div class="bd"><div><div class="muted" style="margin-bottom:6px;">必检材料是否存在(不做金额/供应商核对)</div><div class="mat-list">' +
'<span class="mat-chip miss">核价单 · 缺失</span><span class="mat-chip ok">采购单 · 已找到</span>' +
'<span class="mat-chip miss">发票扫描件 · 缺失(TBD)</span></div></div>' +
'<p class="muted" style="margin:0;">审计用途:快速定位缺件;补齐后可再扫该票或等日批增量。</p>' +
'<div class="progress-actions">' +
'<button type="button" class="btn primary" data-act="notify">已发企微补件通知</button>' +
'<button type="button" class="btn" data-act="records">打开检核记录</button></div></div></div>'
);
}
function simulateRun(mode, invoiceHint) {
if (running) { toast("检核进行中,请先查看当前进度"); return; }
running = true;
$("btnSend").disabled = true;
const runId = mode === "single" ? "AVR-MANUAL-" + Date.now().toString().slice(-6) : "AVR-20260803-RUN";
let intro;
if (mode === "single") {
intro = ["已接收单票检核请求:" + (invoiceHint || "指定发票") + "。", "强制扫描该票(忽略跳过),正在检查共享盘必检材料是否存在…"].join(String.fromCharCode(10));
} else if (mode === "force") {
intro = ["已启动「重新检核当月全部」(强制模式)。", "将忽略历史齐全状态,对当月全部发票重新扫描材料是否存在…"].join(String.fromCharCode(10));
} else {
intro = ["已启动今日立账凭证检核(增量模式,与日批同一引擎)。", "拉取 ERP 当月集合后,已齐全且材料未变更的票将跳过…"].join(String.fromCharCode(10));
}
appendAssistant('<div class="bubble">' + intro + "</div>");
const cardWrap = appendAssistant(buildProgressCard(runId));
const card = cardWrap.querySelector(".progress-card");
let steps;
if (mode === "single") {
card.querySelector('[data-k="total"]').textContent = "1";
card.querySelector('[data-k="todo"]').textContent = "1";
card.querySelector('[data-k="skip"]').textContent = "0";
steps = [
{ pct: 35, todo: 1, skip: 0, ok: 0, human: 0, missing: 0, text: "阶段:定位共享盘 · " + (invoiceHint || "INV-xxx") },
{ pct: 70, todo: 1, skip: 0, ok: 0, human: 0, missing: 0, text: "阶段:检查必检材料是否存在" },
{ pct: 100, todo: 1, skip: 0, ok: 0, human: 0, missing: 1, text: "阶段:完成 · 结论:缺资料(已通知)" },
];
} else if (mode === "force") {
card.querySelector('[data-k="total"]').textContent = "28";
steps = [
{ pct: 20, todo: 28, skip: 0, ok: 4, human: 0, missing: 1, text: "阶段:强制重检 · 不跳过历史合格票" },
{ pct: 55, todo: 28, skip: 0, ok: 14, human: 0, missing: 2, text: "阶段:材料齐全度进行中…" },
{ pct: 100, todo: 28, skip: 0, ok: 24, human: 0, missing: 2, text: "阶段:完成 · 当月 28 票全部重检(跳过 0)" },
];
} else {
card.querySelector('[data-k="total"]').textContent = "28";
steps = [
{ pct: 15, todo: 6, skip: 22, ok: 0, human: 0, missing: 0, text: "阶段:状态比对 · 当月 28 票,跳过已齐全未变更 22 票" },
{ pct: 45, todo: 6, skip: 22, ok: 2, human: 0, missing: 1, text: "阶段:检核待办票 · 当前 INV-20260803012(缺核价单)" },
{ pct: 75, todo: 6, skip: 22, ok: 3, human: 0, missing: 2, text: "阶段:检核待办票 · 当前 INV-20260803015" },
{ pct: 100, todo: 6, skip: 22, ok: 3, human: 0, missing: 2, text: "阶段:完成 · 新检 6 / 跳过 22 · 缺资料已推送企微" },
];
}
let i = 0;
clearInterval(progressTimer);
progressTimer = setInterval(function () {
const s = steps[i++];
if (!s) return;
card.querySelector(".bar").style.width = s.pct + "%";
card.querySelector('[data-k="todo"]').textContent = String(s.todo);
card.querySelector('[data-k="skip"]').textContent = String(s.skip);
card.querySelector('[data-k="ok"]').textContent = String(s.ok);
card.querySelector('[data-k="human"]').textContent = String(s.human);
card.querySelector('[data-k="missing"]').textContent = String(s.missing);
card.querySelector("[data-step]").textContent = s.text;
if (s.pct >= 100) {
clearInterval(progressTimer);
const st = card.querySelector(".status");
st.textContent = s.missing > 0 ? "完成(含缺资料)" : "已完成";
st.className = "status " + (s.missing > 0 ? "partial" : "done");
card.querySelectorAll("[data-act]").forEach(function (b) { b.disabled = false; });
running = false;
$("btnSend").disabled = false;
const summary = [
"检核完成。当月 " + card.querySelector('[data-k="total"]').textContent +
" 票 · 本次待检 " + s.todo + " · 跳过 " + s.skip +
" · 齐全 " + s.ok + " · 缺资料 " + s.missing + " · 人工判定 " + s.human + "。",
(s.skip > 0 ? "已齐全且材料未变更的票未重复扫描。" : "本次为强制全量,未跳过。")
].concat(s.missing > 0 ? ["缺资料发票已发送企微通知。"] : []).join(String.fromCharCode(10));
appendAssistant('<div class="bubble">' + summary + "</div>" + ((mode === "single" || s.missing > 0) ? buildResultCard() : ""));
renderWecom(0);
}
}, 700);
}
function handleQuery(text) {
const t = text.trim();
if (!t) return;
appendUser(t);
if (/缺资料/.test(t)) {
appendAssistant(
'<div class="bubble">最近一批(AVR-20260803-001)缺资料发票:\n\n• INV-20260803012 — 缺核价单\n• INV-20260803021 — 共享盘无文件夹\n\n已对企业微信推送补件提醒。</div>' +
'<div class="progress-actions" style="margin-top:8px;">' +
'<button type="button" class="btn primary" data-act="records">打开检核记录</button>' +
'<button type="button" class="btn" data-act="notify">查看企微卡片</button></div>'
);
return;
}
if (/最新|结果|记录/.test(t) && !/执行|检核发票/.test(t)) {
const b = BATCHES[0];
appendAssistant(
'<div class="bubble">最新批次 ' + b.id + "(定时 · " + b.time + ")\n总数 " + b.stats.total +
" · 跳过 " + (b.stats.skip || 0) + " · 齐全 " + b.stats.ok + " · 缺资料 " + b.stats.missing + "\n\n可下载 Excel,或到「检核记录」查看按发票号明细。</div>" +
'<div class="progress-actions" style="margin-top:8px;">' +
'<button type="button" class="btn primary" data-act="records">打开检核记录</button>' +
'<button type="button" class="btn" data-act="excel">下载 Excel(示意)</button></div>'
);
return;
}
const m = t.match(/INV-[\w-]+/i);
if (/检核发票|单票/.test(t) || (m && /检核/.test(t))) {
simulateRun("single", m ? m[0].toUpperCase() : "INV-20260803012");
return;
}
if (/重新检核当月|强制重检|全量检核/.test(t)) {
simulateRun("force");
return;
}
if (/执行|今日|日批|开始检核|立账凭证检核/.test(t)) {
simulateRun("batch");
return;
}
appendAssistant(
'<div class="bubble">我可以帮你:\n1)执行今日立账凭证检核(增量:跳过已齐全且材料未变更)\n2)重新检核当月全部(强制重扫)\n3)检核指定发票号\n4)查询最新结果 / 缺资料发票\n\n只查文件在不在;不做金额/供应商核对。</div>'
);
}
function renderRecordStats() {
const agg = BATCHES.reduce(function (a, b) {
a.batches += 1; a.total += b.stats.total; a.missing += b.stats.missing; a.fail += b.stats.fail;
a.skip += (b.stats.skip || 0); return a;
}, { batches: 0, total: 0, missing: 0, fail: 0, skip: 0 });
$("recordStats").innerHTML =
'<div class="stat"><div class="n">' + agg.batches + '</div><div class="l">历史批次</div></div>' +
'<div class="stat"><div class="n">' + agg.total + '</div><div class="l">批次覆盖票数</div></div>' +
'<div class="stat"><div class="n" style="color:#475569">' + agg.skip + '</div><div class="l">累计跳过</div></div>' +
'<div class="stat"><div class="n" style="color:var(--warning)">' + agg.missing + '</div><div class="l">缺资料票数</div></div>';
}
function filteredBatches() {
const active = document.querySelector("#recordFilters button.active");
const f = active ? active.dataset.filter : "all";
return BATCHES.filter(function (b) {
if (f === "cron") return b.trigger === "cron";
if (f === "chat") return b.trigger === "chat";
if (f === "missing") return b.stats.missing > 0;
return true;
});
}
function renderBatchDetail() {
const b = BATCHES.find(function (x) { return x.id === selectedBatchId; });
const box = $("batchDetail");
if (!b) { box.innerHTML = "<h3>批次明细</h3><p class=\"muted\">无数据</p>"; return; }
box.innerHTML =
'<div style="display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap;">' +
"<div><h3 style=\"margin:0;\">" + b.id + "</h3><p class=\"muted\" style=\"margin:6px 0 0;\">" +
b.time + " · " + (b.trigger === "cron" ? "定时日批" : "会话手动") + "</p></div>" + triggerPill(b.trigger) + "</div>" +
'<table class="data" style="margin-top:12px;"><thead><tr><th>发票号</th><th>结论</th><th>说明</th></tr></thead><tbody>' +
b.rows.map(function (r) {
return "<tr><td><strong>" + r.invoiceNo + "</strong></td><td>" + conclusionPill(r.conclusion) +
'</td><td class="muted">' + r.note + "</td></tr>";
}).join("") +
'</tbody></table><div class="progress-actions" style="margin-top:12px;">' +
'<button type="button" class="btn primary" id="btnDetailExcel">下载本批 Excel</button>' +
(b.stats.missing > 0 ? '<button type="button" class="btn" id="btnDetailNotify">缺资料通知</button>' : "") +
"</div>";
const ex = $("btnDetailExcel");
if (ex) ex.onclick = function () { toast("原型示意:将下载 " + b.id + ".xlsx"); };
const nt = $("btnDetailNotify");
if (nt) nt.onclick = function () { renderWecom(0); switchView("wecom"); };
}
function renderBatches() {
const list = filteredBatches();
$("recordCount").textContent = "共 " + list.length + " 批";
$("batchTable").innerHTML = list.map(function (b) {
return '<tr data-id="' + b.id + '" class="' + (b.id === selectedBatchId ? "active" : "") + '">' +
"<td><strong>" + b.id + "</strong></td><td>" + triggerPill(b.trigger) + "</td><td>" + b.time +
'</td><td class="muted">合' + b.stats.ok + " / 不" + b.stats.fail + " / 缺" + b.stats.missing +
'</td><td><span class="pill ok">完成</span></td></tr>';
}).join("");
if (!list.find(function (b) { return b.id === selectedBatchId; }) && list[0]) selectedBatchId = list[0].id;
renderBatchDetail();
}
function renderFiles() {
const f = FOLDERS.find(function (x) { return x.invoiceNo === selectedFolder; }) || FOLDERS[0];
$("folderTitle").textContent = "材料预览 · " + f.invoiceNo;
$("fileRows").innerHTML = REQUIRED_MATERIALS.map(function (m) {
const file = f.files.find(function (x) { return x.key === m.key; });
const present = file && file.present;
const name = present ? file.name : "(未找到)";
const tag = m.tbd ? '<span class="pill human">待确认是否必检</span>'
: present ? '<span class="pill ok">已找到</span>' : '<span class="pill miss">缺失</span>';
return '<div class="file-row-item"><div><div class="fn">' + m.label + (m.required ? " · 必检" : "") +
'</div><div class="fs">' + name + "</div></div>" + tag + "</div>";
}).join("");
}
function renderFolders() {
$("folderList").innerHTML = FOLDERS.map(function (f) {
const missing = f.files.filter(function (x) {
return !x.present && REQUIRED_MATERIALS.find(function (m) { return m.key === x.key && m.required; });
});
const label = missing.length ? "缺 " + missing.length + " 项必检" : "必检齐全";
return '<div class="folder-item ' + (f.invoiceNo === selectedFolder ? "active" : "") +
'" data-inv="' + f.invoiceNo + '"><div><div class="name">' + f.invoiceNo +
'</div><div class="sub">' + f.vendor + "</div></div>" +
(missing.length ? '<span class="pill miss">' + label + "</span>" : '<span class="pill ok">' + label + "</span>") +
"</div>";
}).join("");
renderFiles();
}
function renderWecom(index) {
notifyIndex = index % MISSING_NOTIFY_QUEUE.length;
const item = MISSING_NOTIFY_QUEUE[notifyIndex];
$("wecomTitle").textContent = item.title;
$("wecomBody").textContent = item.body;
}
document.querySelectorAll("#topTabs button").forEach(function (btn) {
btn.addEventListener("click", function () { switchView(btn.dataset.view); });
});
$("quickRow").addEventListener("click", function (e) {
const chip = e.target.closest("[data-q]");
if (!chip) return;
$("composerInput").value = chip.dataset.q;
handleQuery(chip.dataset.q);
});
$("btnSend").addEventListener("click", function () {
const v = $("composerInput").value;
$("composerInput").value = "";
handleQuery(v);
});
$("composerInput").addEventListener("keydown", function (e) {
if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); $("btnSend").click(); }
});
$("btnNewChat").addEventListener("click", function () {
if (running) { toast("检核进行中,暂不新建"); return; }
$("msgList").innerHTML = "";
$("chatWelcome").classList.add("show");
toast("已新建会话");
});
document.body.addEventListener("click", function (e) {
const act = e.target.closest("[data-act]");
if (!act) return;
const a = act.dataset.act;
if (a === "records") switchView("records");
if (a === "notify") { renderWecom(0); switchView("wecom"); }
if (a === "excel") toast("原型示意:下载检核报告 Excel");
});
$("recordFilters").addEventListener("click", function (e) {
const btn = e.target.closest("button[data-filter]");
if (!btn) return;
$("recordFilters").querySelectorAll("button").forEach(function (b) { b.classList.remove("active"); });
btn.classList.add("active");
renderBatches();
});
$("batchTable").addEventListener("click", function (e) {
const tr = e.target.closest("tr[data-id]");
if (!tr) return;
selectedBatchId = tr.dataset.id;
renderBatches();
});
$("folderList").addEventListener("click", function (e) {
const item = e.target.closest("[data-inv]");
if (!item) return;
selectedFolder = item.dataset.inv;
renderFolders();
});
$("btnGotoWecom").addEventListener("click", function () { switchView("wecom"); });
$("btnMockExport").addEventListener("click", function () { toast("原型示意:导出当前筛选批次 Excel"); });
$("btnSimulateNotify").addEventListener("click", function () {
renderWecom(notifyIndex + 1);
toast("已切换到下一条缺资料通知");
});
$("btnOpenRecordsFromWecom").addEventListener("click", function () { switchView("records"); });
$("wecomJump").addEventListener("click", function () {
selectedBatchId = "AVR-20260803-001";
renderBatches();
switchView("records");
toast("已跳转检核记录(示意)");
});
renderRecordStats();
renderBatches();
renderFolders();
renderWecom(0);
})();
</script>
</body>
</html>
@@ -0,0 +1,30 @@
# 立账凭证检核 Agent · 原型说明
可交互单文件原型:
**[accounting-voucher-check-prototype.html](./accounting-voucher-check-prototype.html)**(浏览器直接打开)
## 视图
| Tab | 内容 |
| --- | --- |
| 会话 | 日批/文字触发;进度卡(当月总数 / 本次待检 / **跳过** / 齐全 / 缺资料);单票材料齐全度卡 |
| 检核记录 | 定时/会话批次;含跳过统计;按发票号缺项明细 |
| 共享盘材料 | `\\share\立账凭证\{发票号}\`;必检材料是否存在(清单 TBD) |
| 缺资料通知 | 企微 textcard;跳转检核记录 |
## 演示话术
- `执行今日立账凭证检核` — **增量**:跳过已齐全且材料未变更
- `重新检核当月全部` — **强制**:不跳过
- `检核发票 INV-20260803001` — 单票强制
- `查询最新检核结果` / `查询缺资料发票`
## 已确认边界
- 以企业 AI 工作台**对话为主入口**,**日批为主、会话可手动触发**
- **只看文件在不在**,不做金额/供应商等字段吻合
- ERP 仅取当月发票号清单
- **HXOPS 落库**单票齐全状态;齐全且材料未变更 → 跳过
- **不回写 ERP、不要求 ERP 终审**
- 必检材料清单待业务确认
@@ -2,7 +2,7 @@
> **维护说明**:本文件为立账凭证检核域的权威手册,分为“业务需求”和“实现规格”两部分。本文明确一期的业务边界、数据口径、目录规则、判定规则、失败处理和验收要求;Chatflow / Tool API 的接口细节待正式开发时补充。
>
> **交互原型**:[accounting-voucher-check-prototype.html](../../prototype/accounting-voucher-check-prototype.html) · [原型速览](../../prototype/accounting-voucher-check-prototype.md)
> **交互原型**:[accounting-voucher-check-prototype.html](accounting-voucher-check-prototype.html) · [原型速览](accounting-voucher-check-prototype.md)
>
> **相近域参考**:交互壳与 `async_batch` 进度卡对齐 [文件检核(MSDS/RoHS)](../file-check/technical.md);共享盘挂载思路对齐 [固资履历](../fixed-assets/history-share-mount.md)。
@@ -30,8 +30,8 @@
| 文档版本 | v0.3(业务需求与实现规格;仅材料存在性,不做字段吻合) |
| 读者 | 产品负责人、财务/立账业务、研发评审、测试验收 |
| 产品名称 | 立账凭证检核 Agent |
| 交互原型 | [accounting-voucher-check-prototype.html](../../prototype/accounting-voucher-check-prototype.html) |
| 进度底座 | [Agent 进度管理原型](../../prototype/agent_progress_prototype.md)(`view_type=async_batch`) |
| 交互原型 | [accounting-voucher-check-prototype.html](accounting-voucher-check-prototype.html) |
| 进度底座 | [Agent 进度管理原型](../../platform/agent_progress_prototype.md)(`view_type=async_batch`) |
---
@@ -205,7 +205,7 @@ flowchart TB
##### 2.1.2 与工作台进度通用底座的关系
本 Agent 进度属于 **`async_batch`** 视图,协议见 [agent_progress_prototype.md](../../prototype/agent_progress_prototype.md)。相对 RoHS/MSDS:本域是**资料齐套扫描**(非字段合规检核);进度卡强化「跳过」与「当月总数 / 本次待检」;无 ERP 回写、无字段吻合。
本 Agent 进度属于 **`async_batch`** 视图,协议见 [agent_progress_prototype.md](../../platform/agent_progress_prototype.md)。相对 RoHS/MSDS:本域是**资料齐套扫描**(非字段合规检核);进度卡强化「跳过」与「当月总数 / 本次待检」;无 ERP 回写、无字段吻合。
#### 2.2 核心功能清单
@@ -401,8 +401,8 @@ flowchart TD
|------|------|
| 本 Part1 | `docs/features/accounting-voucher-check/technical.md` |
| 域 README | `docs/features/accounting-voucher-check/README.md` |
| HTML 原型 | `docs/prototype/accounting-voucher-check-prototype.html` |
| 原型速览 | `docs/prototype/accounting-voucher-check-prototype.md` |
| HTML 原型 | `docs/features/accounting-voucher-check/accounting-voucher-check-prototype.html` |
| 原型速览 | `docs/features/accounting-voucher-check/accounting-voucher-check-prototype.md` |
#### 6.2 已确认决策