weaver-work-cli 0.1.50 → 0.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/chunks/{attachment-content-EJYIOJPH.js → attachment-content-W3TSJC3Y.js} +3 -3
- package/dist/chunks/{chunk-BFKLQLBK.js → chunk-2J3XY4ED.js} +7 -7
- package/dist/chunks/{chunk-K67FODVC.js → chunk-6GCXWKG6.js} +1 -1
- package/dist/chunks/{chunk-WNJUGI2F.js → chunk-76PRVYH4.js} +1 -1
- package/dist/chunks/{chunk-RYFRGTUV.js → chunk-DEHJ7PMA.js} +4 -4
- package/dist/chunks/{chunk-3NCFFHB2.js → chunk-IF33CG4V.js} +1 -1
- package/dist/chunks/{chunk-YB3AJYPY.js → chunk-PE334WL3.js} +4 -4
- package/dist/chunks/{chunk-MCZG6HPM.js → chunk-QQXMHM3J.js} +2 -2
- package/dist/chunks/{chunk-7ECB22G3.js → chunk-U7ROML5E.js} +23 -23
- package/dist/chunks/{chunk-7AYQJSFY.js → chunk-WTLQGS6D.js} +2 -2
- package/dist/chunks/{chunk-6T53BSWZ.js → chunk-XPQN4E5O.js} +50 -19
- package/dist/chunks/{chunk-HARQF5IP.js → chunk-Z4G7LLDD.js} +25 -25
- package/dist/chunks/{conflict-C4UDHCWV.js → conflict-57WDJWL7.js} +2 -2
- package/dist/chunks/{contract-VUC6JOPG.js → contract-LJRAXVZU.js} +8587 -1421
- package/dist/chunks/{create-flow-6OG2LYBD.js → create-flow-3FMMZBCA.js} +6 -6
- package/dist/chunks/{data-QO7QWOIV.js → data-WK5CQXNF.js} +17 -32
- package/dist/chunks/{env-WP57TF2S.js → env-JYZE3BZB.js} +2 -2
- package/dist/chunks/{factory-VUXI7N5C.js → factory-66SCIKW3.js} +1 -1
- package/dist/chunks/{group-chat-UQRGXILK.js → group-chat-MNRYMLNG.js} +3 -3
- package/dist/chunks/{invoice-E7GOITEU.js → invoice-V7ZTITUO.js} +725 -205
- package/dist/chunks/{meeting-4BBLVAWM.js → meeting-IIY4UAJL.js} +10 -10
- package/dist/chunks/{recruit-stage-FKWS5UQF.js → recruit-stage-XCMVEQA2.js} +718 -131
- package/dist/chunks/{registry-V4CHRQDI.js → registry-CJOVECZD.js} +1 -1
- package/dist/chunks/{registry-5CRCN2TV.js → registry-METZ2LWE.js} +10 -10
- package/dist/chunks/{room-recommend-AYR3UG7R.js → room-recommend-YFY7HTOF.js} +4 -4
- package/dist/chunks/{schedule-JZEFIXUS.js → schedule-6I63TERA.js} +4 -4
- package/dist/chunks/smart-extract-FOUYNIG3.js +2882 -0
- package/dist/chunks/{workflow-3ZAF2J5E.js → workflow-YHXFIU63.js} +1 -1
- package/dist/index.js +11 -6
- package/dist/shortcuts/contract/manifest.js +251 -0
- package/dist/shortcuts/contract/ooxml/docx-table.js +233 -0
- package/dist/shortcuts/contract/operations/card-action.js +1165 -0
- package/dist/shortcuts/contract/operations/card-ebdf-list.js +571 -0
- package/dist/shortcuts/contract/operations/card-plan.js +327 -0
- package/dist/shortcuts/contract/operations/card-risk-report.js +565 -0
- package/dist/shortcuts/contract/operations/card.js +6 -5
- package/dist/shortcuts/contract/operations/docx-fillfromquote.js +532 -0
- package/dist/shortcuts/contract/operations/docx-verify.js +258 -0
- package/dist/shortcuts/contract/operations/elements-build.js +761 -0
- package/dist/shortcuts/contract/operations/elements-spec.js +216 -0
- package/dist/shortcuts/contract/operations/first-screen.js +588 -0
- package/dist/shortcuts/contract/operations/flow.js +81 -25
- package/dist/shortcuts/contract/operations/ledger.js +438 -0
- package/dist/shortcuts/contract/operations/modeltext.js +132 -0
- package/dist/shortcuts/contract/operations/op-resolver.js +22 -0
- package/dist/shortcuts/contract/operations/performance.js +104 -3
- package/dist/shortcuts/contract/operations/quote.js +131 -25
- package/dist/shortcuts/contract/operations/quotescreen.js +529 -0
- package/dist/shortcuts/contract/operations/registry.js +30 -0
- package/dist/shortcuts/contract/operations/review.js +73 -58
- package/dist/shortcuts/contract/operations/summary-validate.js +293 -0
- package/dist/shortcuts/contract/operations/summary.js +4 -2
- package/dist/shortcuts/contract/operations/triage.js +1100 -0
- package/dist/shortcuts/contract/operations/upload.js +48 -7
- package/dist/shortcuts/contract/prewarm-cache.js +90 -0
- package/dist/shortcuts/contract/prewarm.js +88 -0
- package/dist/shortcuts/contract/upload-cache.js +49 -4
- package/dist/shortcuts/data/index.js +1 -6
- package/dist/shortcuts/data/manifest.js +2 -2
- package/dist/shortcuts/data/operations/index.js +1 -1
- package/dist/shortcuts/data/operations/query.js +23 -46
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/index.js +0 -12
- package/dist/shortcuts/invoice/manifest.js +200 -49
- package/dist/shortcuts/invoice/operations/registry.js +4 -2
- package/dist/shortcuts/invoice/operations/reim-relation.js +438 -0
- package/dist/shortcuts/invoice/operations/shared.js +3 -19
- package/dist/shortcuts/invoice/operations/upload-and-validate.js +109 -73
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +4 -2
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +6 -2
- package/dist/shortcuts/recruit-stage/operations/list.js +217 -1
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +144 -158
- package/dist/shortcuts/recruit-stage/operations/search.js +348 -0
- package/dist/shortcuts/recruit-stage/shared.js +5 -0
- package/dist/shortcuts/recruit-stage/tag-lookup.js +136 -0
- package/dist/shortcuts/smart-extract/constants.js +79 -0
- package/dist/shortcuts/smart-extract/continuation.js +71 -0
- package/dist/shortcuts/smart-extract/errors.js +68 -0
- package/dist/shortcuts/smart-extract/host.js +191 -0
- package/dist/shortcuts/smart-extract/index.js +105 -0
- package/dist/shortcuts/smart-extract/ledger.js +70 -0
- package/dist/shortcuts/smart-extract/manifest.js +35 -0
- package/dist/shortcuts/smart-extract/operations/attachment.js +212 -0
- package/dist/shortcuts/smart-extract/operations/batch.js +67 -0
- package/dist/shortcuts/smart-extract/operations/config.js +118 -0
- package/dist/shortcuts/smart-extract/operations/fill.js +492 -0
- package/dist/shortcuts/smart-extract/operations/preview.js +174 -0
- package/dist/shortcuts/smart-extract/operations/registry.js +34 -0
- package/dist/shortcuts/smart-extract/operations/save.js +355 -0
- package/dist/shortcuts/smart-extract/operations/shared.js +191 -0
- package/dist/shortcuts/smart-extract/operations/structure.js +401 -0
- package/dist/shortcuts/smart-extract/operations/target.js +167 -0
- package/dist/shortcuts/smart-extract/operations/types.js +22 -0
- package/dist/shortcuts/smart-extract/operations/validate.js +454 -0
- package/dist/shortcuts/workflow/operations/form.js +68 -33
- package/dist/shortcuts/workflow/operations/read.js +19 -1
- package/docs/SKILL.md +1 -1
- package/docs/_catalog.md +3 -0
- package/docs/agent-invoice.md +5 -7
- package/docs/data.md +5 -1
- package/docs/fna.md +14 -1
- package/docs/invoice.md +7 -5
- package/docs/smart-extract.md +156 -0
- package/package.json +1 -1
- package/skill-template/business-info.json +16 -1
- package/skill-template/domains/qiyecheng.md +2 -0
- package/skill-template/domains/smart-extract.md +16 -0
- package/skill-template/domains/yepiaotong.md +2 -2
- package/skills/weaver-e10-data/references/scene-and-misc.md +4 -3
- package/skills/weaver-e10-jinchengda/SKILL.md +223 -35
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +47 -481
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +11 -11
- package/skills/weaver-e10-jinchengda/references/contract-agent-entry.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-ai-assistant.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +32 -16
- package/skills/weaver-e10-jinchengda/references/contract-card-render-internals.md +478 -0
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +39 -61
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +18 -13
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +2 -2
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -6
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +6 -4
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +3 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +263 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +525 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-rules.md +36 -0
- package/skills/weaver-e10-jinchengda/references/contract-modeltext-library.md +128 -0
- package/skills/weaver-e10-jinchengda/references/contract-multi-file.md +87 -0
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +80 -54
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +110 -14
- package/skills/weaver-e10-jinchengda/references/contract-template-selector.md +19 -21
- package/skills/weaver-e10-jinchengda/references/orchestration.md +12 -12
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +1 -6
- package/skills/weaver-e10-jinchengda/scripts/fill_plan.py +2 -1
- package/skills/weaver-e10-qiyecheng/SKILL.md +37 -0
- package/skills/weaver-e10-qiyecheng/references/ai-check-audit.md +14 -0
- package/skills/weaver-e10-qiyecheng/references/budget.md +14 -0
- package/skills/weaver-e10-qiyecheng/references/catalog.md +25 -0
- package/skills/weaver-e10-qiyecheng/references/expense-center.md +8 -0
- package/skills/weaver-e10-qiyecheng/references/expense-chart.md +9 -0
- package/skills/weaver-e10-qiyecheng/references/invoice-writeoff.md +13 -0
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +14 -0
- package/skills/weaver-e10-qiyecheng/references/self-hosted-mode.md +239 -0
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +34 -27
- package/skills/weaver-e10-recruit-stage/SKILL.md +62 -4
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +42 -8
- package/skills/weaver-e10-recruit-stage/references/env-ziyong.md +79 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +11 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +3 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-interview-not-attended.md +153 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +7 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-my-positions.md +66 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +156 -42
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import-batch.md +122 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +36 -8
- package/skills/weaver-e10-recruit-stage/references/recruit-search-by-tag.md +157 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-utterance-glossary.md +35 -0
- package/skills/weaver-e10-smart-extract/SKILL.md +180 -0
- package/skills/weaver-e10-smart-extract/references/api-contract.md +71 -0
- package/skills/weaver-e10-smart-extract/references/result-format.md +102 -0
- package/skills/weaver-e10-smart-extract/references/troubleshooting.md +106 -0
- package/skills/weaver-e10-workflow/references/workflow-create.md +6 -5
- package/skills/weaver-e10-workflow/references/workflow-edit.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-view.md +1 -1
- package/skills/weaver-e10-yepiaotong/SKILL.md +46 -33
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +19 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +8 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +407 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +12 -8
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +97 -39
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +91 -2
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +12 -12
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +8 -4
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +136 -91
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +109 -23
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +110 -43
- package/dist/shortcuts/invoice/operations/validate-preview.js +0 -40
- package/skills/weaver-e10-jinchengda/scripts/plan_actions.py +0 -279
- package/skills/weaver-e10-jinchengda/scripts/render_action_card.py +0 -450
- package/skills/weaver-e10-jinchengda/scripts/render_ebdf_list_card.py +0 -265
- package/skills/weaver-e10-jinchengda/scripts/render_risk_report.py +0 -358
- package/skills/weaver-e10-jinchengda/scripts/validate_action_card.py +0 -588
- package/skills/weaver-e10-jinchengda/scripts/verify_docx_placeholders.py +0 -118
- package/skills/weaver-e10-yepiaotong/references/invoice-validation-preview.md +0 -40
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
"""合同 docx 占位符残留校验(XML 全量 + python-docx 双向交叉验证)。
|
|
3
|
-
|
|
4
|
-
2026-11-10 新增。背景(真实事故):
|
|
5
|
-
只遍历 python-docx 的 paragraphs / tables 时,文本框 <w:txbxContent> 里的内容
|
|
6
|
-
完全遍历不到。实测《新客户购买合同模板》的合同标题 2 处就位于文本框内,
|
|
7
|
-
于是自检报告「残留 0」,实际文件里仍是 xxx公司协同办公系统(e-cology)…
|
|
8
|
-
—— 差一步就把带占位符的合同交付给客户。
|
|
9
|
-
|
|
10
|
-
用法:
|
|
11
|
-
python verify_docx_placeholders.py --docx <绝对路径>
|
|
12
|
-
python verify_docx_placeholders.py --docx <绝对路径> --expect "xxx公司" --expect "***"
|
|
13
|
-
python verify_docx_placeholders.py --docx <绝对路径> --title "客户全称协同办公系统(e-cology)软件产品及实施服务购买合同"
|
|
14
|
-
|
|
15
|
-
退出码:
|
|
16
|
-
0 = 全部通过(无残留,且交叉验证一致)
|
|
17
|
-
1 = 有残留 / 交叉验证不一致 / 文件不可读
|
|
18
|
-
"""
|
|
19
|
-
import argparse
|
|
20
|
-
import io
|
|
21
|
-
import json
|
|
22
|
-
import re
|
|
23
|
-
import sys
|
|
24
|
-
import zipfile
|
|
25
|
-
|
|
26
|
-
import docx
|
|
27
|
-
|
|
28
|
-
DEFAULT_PATTERNS = ['xxx公司', 'XXX公司', '***', '年 月 日', '年 月 日', '【】', '____', '{{', '}}']
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
def xml_full_text(path):
|
|
32
|
-
"""读取 word/ 下所有 xml(正文、页眉页脚、批注、脚注),去标签后拼成全文。
|
|
33
|
-
|
|
34
|
-
文本框 <w:txbxContent> 就在 document.xml 内,只要不去掉该节点就能覆盖到。
|
|
35
|
-
"""
|
|
36
|
-
buf = []
|
|
37
|
-
with zipfile.ZipFile(path) as z:
|
|
38
|
-
for name in z.namelist():
|
|
39
|
-
if not name.startswith('word/') or not name.endswith('.xml'):
|
|
40
|
-
continue
|
|
41
|
-
raw = z.read(name).decode('utf-8', 'ignore')
|
|
42
|
-
buf.append(re.sub(r'<[^>]+>', '', raw))
|
|
43
|
-
return '\n'.join(buf)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def docx_visible_text(path):
|
|
47
|
-
"""python-docx 能看到的文本(用于与 XML 全量结果交叉比对)。"""
|
|
48
|
-
d = docx.Document(path)
|
|
49
|
-
buf = [p.text for p in d.paragraphs]
|
|
50
|
-
for t in d.tables:
|
|
51
|
-
for row in t.rows:
|
|
52
|
-
for c in row.cells:
|
|
53
|
-
buf.append(c.text)
|
|
54
|
-
return '\n'.join(buf)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
def main():
|
|
58
|
-
ap = argparse.ArgumentParser(description='合同 docx 占位符残留校验')
|
|
59
|
-
ap.add_argument('--docx', required=True)
|
|
60
|
-
ap.add_argument('--expect', action='append', default=None,
|
|
61
|
-
help='需要检查残留的占位文本,可多次传;缺省用内置集合')
|
|
62
|
-
ap.add_argument('--title', default=None, help='应出现的合同名称,用于校验标题替换完整')
|
|
63
|
-
ap.add_argument('--title-count', type=int, default=None,
|
|
64
|
-
help='合同名称的期望出现次数(模板通常为 2:封面 + 正文首行)')
|
|
65
|
-
args = ap.parse_args()
|
|
66
|
-
|
|
67
|
-
patterns = args.expect or DEFAULT_PATTERNS
|
|
68
|
-
|
|
69
|
-
try:
|
|
70
|
-
full = xml_full_text(args.docx)
|
|
71
|
-
visible = docx_visible_text(args.docx)
|
|
72
|
-
except Exception as exc: # noqa: BLE001
|
|
73
|
-
print(json.dumps({'ok': False, 'error': 'unreadable_docx', 'detail': str(exc)},
|
|
74
|
-
ensure_ascii=False))
|
|
75
|
-
return 1
|
|
76
|
-
|
|
77
|
-
residue = {}
|
|
78
|
-
for p in patterns:
|
|
79
|
-
n = full.count(p)
|
|
80
|
-
if n:
|
|
81
|
-
residue[p] = n
|
|
82
|
-
|
|
83
|
-
# 交叉验证:XML 全量计数必须 >= python-docx 可见计数;
|
|
84
|
-
# 若可见计数反而更大,说明遍历方式本身有问题,结果不可信。
|
|
85
|
-
cross = {}
|
|
86
|
-
inconsistent = []
|
|
87
|
-
for p in patterns:
|
|
88
|
-
x, v = full.count(p), visible.count(p)
|
|
89
|
-
cross[p] = {'xml': x, 'docx': v}
|
|
90
|
-
if v > x:
|
|
91
|
-
inconsistent.append(p)
|
|
92
|
-
|
|
93
|
-
title_hits = full.count(args.title) if args.title else None
|
|
94
|
-
title_ok = True
|
|
95
|
-
if args.title:
|
|
96
|
-
expect_n = args.title_count if args.title_count is not None else 2
|
|
97
|
-
title_ok = (title_hits == expect_n)
|
|
98
|
-
|
|
99
|
-
ok = (not residue) and (not inconsistent) and title_ok
|
|
100
|
-
|
|
101
|
-
out = {
|
|
102
|
-
'ok': ok,
|
|
103
|
-
'docx': args.docx,
|
|
104
|
-
'residue': residue,
|
|
105
|
-
'cross_check': cross,
|
|
106
|
-
'inconsistent': inconsistent,
|
|
107
|
-
'title': args.title,
|
|
108
|
-
'title_hits': title_hits,
|
|
109
|
-
'title_ok': title_ok,
|
|
110
|
-
'note': ('通过:无占位符残留' if ok else
|
|
111
|
-
'不通过:见 residue / inconsistent / title_ok'),
|
|
112
|
-
}
|
|
113
|
-
print(json.dumps(out, ensure_ascii=False, indent=2))
|
|
114
|
-
return 0 if ok else 1
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
if __name__ == '__main__':
|
|
118
|
-
sys.exit(main())
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# 查验预览(仅限已在票夹中的发票)
|
|
2
|
-
|
|
3
|
-
## 什么时候读取
|
|
4
|
-
|
|
5
|
-
用户要查验**已在票夹中的发票**(已有 `fid`),但没有明确要求把查验结果回写票夹时读取本文件。
|
|
6
|
-
|
|
7
|
-
## ⚠️ 路由判断
|
|
8
|
-
|
|
9
|
-
- 如果用户提供的是**文件路径或 URL**(还没上传到票夹),**不要**使用本命令 → 应改用 `invoice.upload-and-validate`(一站式上传+OCR+查验)
|
|
10
|
-
- 本命令**仅适用于票夹中已存在的发票**,必须已有 `fid`
|
|
11
|
-
|
|
12
|
-
## Operation
|
|
13
|
-
|
|
14
|
-
| Operation | 固定规则 |
|
|
15
|
-
| --- | --- |
|
|
16
|
-
| `invoice.validate.preview` | 先取详情,固定 `flag=100`、`is_save=1`、`needLog=true`,不回写查验结果 |
|
|
17
|
-
|
|
18
|
-
## 输入
|
|
19
|
-
|
|
20
|
-
必须提供 `fid` 和 `scope`。`scope` 只能是 `personal` 或 `enterprise`。
|
|
21
|
-
|
|
22
|
-
## 示例
|
|
23
|
-
|
|
24
|
-
Windows PowerShell:
|
|
25
|
-
|
|
26
|
-
```powershell
|
|
27
|
-
weaver-work-cli --json invoice run invoice.validate.preview --input-json '{"fid":"12345","scope":"personal"}'
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
macOS/Linux(bash/zsh):
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
weaver-work-cli --json invoice run invoice.validate.preview --input-json '{"fid":"12345","scope":"personal"}'
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
## 注意
|
|
37
|
-
|
|
38
|
-
`invoice.validate.preview` 只做预览。`saved=false` 表示没有回写票夹;不要把预览结果描述为已更新发票。
|
|
39
|
-
|
|
40
|
-
同一张发票每天最多查验 5 次,超过后返回 `api/business_error`、`error.code="6022"`、「单张发票每天最多查验5次」,不要重试。话费 / 油费补贴报销中,这种发票视为查验通过,继续报销,见 [reim-phone-subsidy-rules.md](reim-phone-subsidy-rules.md)「查验次数用完」。
|