weaver-work-cli 0.1.75 → 0.1.78
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 +3 -1
- package/dist/chunks/{archive-OZJ6PYUR.js → archive-ENBSUMHV.js} +1 -1
- package/dist/chunks/{archive-oa-BHL5RK2F.js → archive-oa-7BFPQ6M5.js} +1 -1
- package/dist/chunks/{asset-HKRFRQR2.js → asset-V5SUD3PW.js} +1 -1
- package/dist/chunks/{asset-idle-GGIR4KE7.js → asset-idle-3CEL7WFX.js} +1 -1
- package/dist/chunks/{attachment-content-4OV65NK5.js → attachment-content-TFOC3Y3X.js} +3 -3
- package/dist/chunks/{blog-HYDP4DV3.js → blog-FLI4SS3P.js} +1 -1
- package/dist/chunks/{caizhilian-JS4RQZ6Z.js → caizhilian-7WCTKCCP.js} +3 -3
- package/dist/chunks/{calendar-SWRY4DIT.js → calendar-G726HUUH.js} +1 -1
- package/dist/chunks/{chunk-5ZJGPEIB.js → chunk-2KW7AI6P.js} +1 -1
- package/dist/chunks/{chunk-JOY3HZXL.js → chunk-2UV4IZIT.js} +21 -15
- package/dist/chunks/{chunk-FEZK536Z.js → chunk-4PBN7NJY.js} +353 -43
- package/dist/chunks/{chunk-VOMDD2C5.js → chunk-5E2FDXBU.js} +1 -1
- package/dist/chunks/{chunk-ZUB4M4N3.js → chunk-5VQ7JHV4.js} +134 -49
- package/dist/chunks/{chunk-I6NOHKEK.js → chunk-7SQN5IZR.js} +1 -1
- package/dist/chunks/{chunk-4FCBEWNB.js → chunk-BP7BONZO.js} +675 -86
- package/dist/chunks/{chunk-U6Y32KEV.js → chunk-BWFCTE43.js} +1 -1
- package/dist/chunks/{chunk-PG5YSNYY.js → chunk-DACQKJ6O.js} +3 -3
- package/dist/chunks/{chunk-KWJEICD4.js → chunk-E2EY3DMS.js} +2 -2
- package/dist/chunks/{chunk-KEA4XQPO.js → chunk-FAC4IFGQ.js} +4 -4
- package/dist/chunks/{chunk-MXCRKXOP.js → chunk-FPWCCRKT.js} +1 -1
- package/dist/chunks/{minute-doc-OQUMDTKG.js → chunk-IBTGXLOT.js} +101 -18
- package/dist/chunks/{chunk-OJ4JPD25.js → chunk-LQLIXBJF.js} +6 -8
- package/dist/chunks/{chunk-BNKUHN4N.js → chunk-OVTCWLNQ.js} +2 -2
- package/dist/chunks/{chunk-5D2V7ZAN.js → chunk-PMRNIGKZ.js} +1 -1
- package/dist/chunks/{chunk-OQCK5SAU.js → chunk-RVEKGVZU.js} +1 -1
- package/dist/chunks/{chunk-2AUFKU2D.js → chunk-SWFTWNWL.js} +11 -11
- package/dist/chunks/{chunk-TA2RBUTH.js → chunk-TBCKK6LH.js} +1 -1
- package/dist/chunks/{chunk-SU6IJD6D.js → chunk-TD5IOEGN.js} +1 -1
- package/dist/chunks/{chunk-J7FAAHWH.js → chunk-UDBQJLQF.js} +1 -1
- package/dist/chunks/{chunk-BSR5TM7U.js → chunk-USYFVIUR.js} +22 -7
- package/dist/chunks/{chunk-ERZY6GYL.js → chunk-UZ2E3VNI.js} +1 -1
- package/dist/chunks/{chunk-NWYHCZTY.js → chunk-VNEU7OUN.js} +1 -1
- package/dist/chunks/{chunk-5QUTQHXF.js → chunk-WNFDR5PC.js} +198 -80
- package/dist/chunks/{chunk-LJI4N6FV.js → chunk-XNN5PZTI.js} +1 -1
- package/dist/chunks/{chunk-QJWVYOOV.js → chunk-Z44YFIN6.js} +2 -2
- package/dist/chunks/{chunk-ZWIMLT6P.js → chunk-ZOTXXGUM.js} +7 -7
- package/dist/chunks/{cli-FULPXIKJ.js → cli-WA7FOQKC.js} +35 -35
- package/dist/chunks/{commands-BNWFNTD3.js → commands-J52MJ6NF.js} +3 -3
- package/dist/chunks/{conflict-5BKCDV2F.js → conflict-D4GVAURN.js} +2 -2
- package/dist/chunks/{contract-WI23OXVC.js → contract-GW7US3UF.js} +4400 -3548
- package/dist/chunks/{cowork-DZBBVNMQ.js → cowork-GZDODGKF.js} +1 -1
- package/dist/chunks/{create-flow-7ZRBRKX7.js → create-flow-ERDGW3FZ.js} +10 -6
- package/dist/chunks/{data-PAZVE6QE.js → data-HTQZRPPI.js} +1 -1
- package/dist/chunks/{ebuilder-form-5SQXIGXN.js → ebuilder-form-GHNIZ7ET.js} +2 -2
- package/dist/chunks/{ehr-CX5F4ZAU.js → ehr-P6T7OAAV.js} +2 -2
- package/dist/chunks/{entry-mode-I2BYNONZ.js → entry-mode-SQU5WTX6.js} +3 -3
- package/dist/chunks/{env-ZAQZ7EHN.js → env-DASBNSEM.js} +2 -2
- package/dist/chunks/{esb-DQTXDIBF.js → esb-ATRKVHCD.js} +3 -3
- package/dist/chunks/{factory-XRI6KZ7H.js → factory-A3NAKZAA.js} +1 -1
- package/dist/chunks/{fna-FK6HQVJL.js → fna-IKYI3SST.js} +1 -1
- package/dist/chunks/{group-chat-MLWNYM2P.js → group-chat-7SEAVAJR.js} +3 -3
- package/dist/chunks/{host-MEC4VQZA.js → host-6UOXYOOY.js} +2 -2
- package/dist/chunks/{host-KUMU3DDK.js → host-EJSJSLVK.js} +2 -2
- package/dist/chunks/{host-3EPREGXS.js → host-EYNLB6S4.js} +2 -2
- package/dist/chunks/{host-T6NNQGVZ.js → host-OT4KNR3G.js} +2 -2
- package/dist/chunks/{host-VI7Q45PM.js → host-UY4LQPN4.js} +2 -2
- package/dist/chunks/{host-J74JGYAW.js → host-XXGDQM7D.js} +2 -2
- package/dist/chunks/{hrm-KKVAW4P5.js → hrm-5JQ7QZ6A.js} +2 -2
- package/dist/chunks/{im-47CIWQNL.js → im-2YJW3EI5.js} +2 -2
- package/dist/chunks/{invoice-CDYRBNIG.js → invoice-37HR6L3W.js} +937 -552
- package/dist/chunks/{jiuchuanhui-M7QTRHZK.js → jiuchuanhui-KBWUZ7WT.js} +1 -1
- package/dist/chunks/{lazy-dispatch-FKQJZFI5.js → lazy-dispatch-ZDKLS5MR.js} +6 -6
- package/dist/chunks/{mail-NRBS5N6Y.js → mail-YBKUM6HM.js} +1 -1
- package/dist/chunks/{meeting-WC5LD3IO.js → meeting-7AEQGBAT.js} +19 -13
- package/dist/chunks/minute-doc-REI6RUE4.js +20 -0
- package/dist/chunks/{okr-EHKSKMPL.js → okr-HW7IULIR.js} +1 -1
- package/dist/chunks/{operations-V5VM5MS2.js → operations-4P2UYVLH.js} +3 -3
- package/dist/chunks/{performance-ZJADXJPN.js → performance-PM2G6L3E.js} +1 -1
- package/dist/chunks/{plan-OTDNBDJ7.js → plan-3YYGZ7ZM.js} +1 -1
- package/dist/chunks/{project-4XVBQ3HX.js → project-6PRGBLO2.js} +39 -15
- package/dist/chunks/{reception-3FAHOOH7.js → reception-7G3J2MA6.js} +1 -1
- package/dist/chunks/{recruit-stage-3WTVWW2K.js → recruit-stage-TLZJUFHD.js} +544 -464
- package/dist/chunks/{registry-TJGCVRCW.js → registry-3VTB3KLV.js} +3 -3
- package/dist/chunks/{registry-F4YFZLOD.js → registry-KQ4TNUWO.js} +1 -1
- package/dist/chunks/{registry-NBTBXR4L.js → registry-UVTI323K.js} +12 -11
- package/dist/chunks/{room-recommend-KL62XB2Y.js → room-recommend-ELEJUYBN.js} +4 -4
- package/dist/chunks/{schedule-XOISYUPB.js → schedule-XBKY7VEA.js} +4 -4
- package/dist/chunks/{smart-extract-UYGNV3BM.js → smart-extract-T5Z4AULN.js} +1 -1
- package/dist/chunks/{update-AV5VOXGY.js → update-77ZUIYSG.js} +2 -2
- package/dist/chunks/{workflow-V54LJPXL.js → workflow-SYCBS5XD.js} +3 -3
- package/dist/index.js +3 -3
- package/dist/internal/update/service.js +9 -8
- package/dist/shortcuts/contract/data/collection-ledger-html.js +109 -33
- package/dist/shortcuts/contract/data/collection-node-catalog.js +26 -2
- package/dist/shortcuts/contract/data/report-renderers.js +75 -31
- package/dist/shortcuts/contract/data/report-spec.js +17 -3
- package/dist/shortcuts/contract/manifest.js +20 -3
- package/dist/shortcuts/contract/operations/bizreview-report.js +23 -2
- package/dist/shortcuts/contract/operations/collection-node.js +116 -1
- package/dist/shortcuts/contract/operations/compare-report.js +27 -5
- package/dist/shortcuts/contract/operations/credit-page.js +11 -2
- package/dist/shortcuts/contract/operations/docx-slots.js +27 -2
- package/dist/shortcuts/contract/operations/draft-submit.js +9 -6
- package/dist/shortcuts/contract/operations/elements-build.js +162 -30
- package/dist/shortcuts/contract/operations/elements-spec.js +50 -0
- package/dist/shortcuts/contract/operations/generated-submit.js +35 -0
- package/dist/shortcuts/contract/operations/ledger-card.js +32 -2
- package/dist/shortcuts/contract/operations/ledger-stat.js +17 -5
- package/dist/shortcuts/contract/operations/ledger.js +88 -16
- package/dist/shortcuts/contract/operations/metrics.js +16 -3
- package/dist/shortcuts/contract/operations/ops-draft.js +359 -27
- package/dist/shortcuts/contract/operations/page.js +23 -0
- package/dist/shortcuts/contract/operations/quote-recognize.js +91 -13
- package/dist/shortcuts/contract/operations/quote-submit.js +16 -0
- package/dist/shortcuts/contract/operations/review-report.js +11 -3
- package/dist/shortcuts/contract/operations/save-recognize.js +62 -1
- package/dist/shortcuts/contract/operations/triage.js +18 -3
- package/dist/shortcuts/contract/operations/viewlink.js +17 -1
- package/dist/shortcuts/ehr/operations/recruit.js +255 -90
- package/dist/shortcuts/invoice/business-response.js +13 -0
- package/dist/shortcuts/invoice/calendar.js +24 -0
- package/dist/shortcuts/invoice/host.js +26 -15
- package/dist/shortcuts/invoice/index.js +2 -2
- package/dist/shortcuts/invoice/invoice-record.js +7 -2
- package/dist/shortcuts/invoice/manifest.js +179 -155
- package/dist/shortcuts/invoice/operations/get.js +9 -3
- package/dist/shortcuts/invoice/operations/issuing-red-requests.js +138 -0
- package/dist/shortcuts/invoice/operations/registry.js +4 -5
- package/dist/shortcuts/invoice/operations/reim-auto.js +40 -2
- package/dist/shortcuts/invoice/operations/reim-customer-projects.js +79 -0
- package/dist/shortcuts/invoice/operations/reim-customer.js +79 -30
- package/dist/shortcuts/invoice/operations/reim-relation.js +0 -146
- package/dist/shortcuts/invoice/operations/reim.js +2 -126
- package/dist/shortcuts/invoice/operations/shared.js +15 -17
- package/dist/shortcuts/invoice/preapproval-enrichment.js +180 -0
- package/dist/shortcuts/invoice/projection.js +14 -0
- package/dist/shortcuts/invoice/read-enrichment.js +123 -0
- package/dist/shortcuts/meeting/confirm-gate.js +42 -0
- package/dist/shortcuts/meeting/continuation.js +6 -2
- package/dist/shortcuts/meeting/minute-doc.js +119 -12
- package/dist/shortcuts/meeting/operations/attachment.js +19 -0
- package/dist/shortcuts/meeting/operations/compose-outcome.js +24 -2
- package/dist/shortcuts/meeting/operations/eb/conflict.js +2 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +162 -19
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +22 -3
- package/dist/shortcuts/meeting/operations/group-share.js +268 -0
- package/dist/shortcuts/meeting/operations/minute-content.js +58 -1
- package/dist/shortcuts/meeting/operations/minute-export.js +295 -0
- package/dist/shortcuts/meeting/operations/registry.js +4 -0
- package/dist/shortcuts/project/operations/read.js +40 -15
- package/dist/shortcuts/recruit-stage/context.js +16 -81
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +89 -53
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +15 -5
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +46 -108
- package/dist/shortcuts/recruit-stage/operations/list.js +203 -74
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +21 -85
- package/dist/shortcuts/recruit-stage/operations/search.js +113 -53
- package/dist/shortcuts/recruit-stage/shared.js +153 -4
- package/dist/shortcuts/workflow/endpoints.js +2 -0
- package/dist/shortcuts/workflow/operations/form.js +11 -0
- package/dist/shortcuts/workflow/operations/read.js +24 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +2 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +2 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +28 -4
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.node.js +198 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.prepareQuery.js +4 -2
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.subordinate.js +70 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/workflowClarification.js +15 -5
- package/docs/agent-invoice.md +28 -2
- package/docs/invoice.md +60 -9
- package/docs/project.md +1 -1
- package/package.json +1 -1
- package/skill-template/domains/yepiaotong.md +36 -7
- package/skills/weaver-e10-jinchengda/SKILL.md +64 -28
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-bizreview-report-template.html +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-bizreview.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-collection-node.md +26 -2
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +4 -4
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +9 -8
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +47 -52
- package/skills/weaver-e10-jinchengda/references/contract-disabled-capabilities.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +5 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-element-save-record.md +7 -1
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +21 -12
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +44 -1
- package/skills/weaver-e10-jinchengda/references/contract-firstscreen-guide.md +5 -4
- package/skills/weaver-e10-jinchengda/references/contract-ledger-catalog.md +8 -0
- package/skills/weaver-e10-jinchengda/references/contract-ledger-query-playbook.md +33 -3
- package/skills/weaver-e10-jinchengda/references/contract-ledger-report.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-material-gap.md +17 -3
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +12 -12
- package/skills/weaver-e10-jinchengda/references/contract-open-web-pages.md +18 -10
- package/skills/weaver-e10-jinchengda/references/contract-ops-draft.md +77 -37
- package/skills/weaver-e10-jinchengda/references/contract-performance-query.md +7 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +55 -12
- package/skills/weaver-e10-jinchengda/references/contract-review-todo.md +102 -0
- package/skills/weaver-e10-jinchengda/references/contract-sign-launch.md +1 -17
- package/skills/weaver-e10-jinchengda/references/contract-smart-draft.md +11 -8
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +2 -1
- package/skills/weaver-e10-jinchengda/references/orchestration.md +6 -6
- package/skills/weaver-e10-meeting/SKILL.md +203 -80
- package/skills/weaver-e10-meeting/references/create-quickstart.md +98 -0
- package/skills/weaver-e10-meeting/references/delivery-checklist.md +34 -0
- package/skills/weaver-e10-meeting/references/error-codes.md +44 -0
- package/skills/weaver-e10-meeting/references/minutes-pipeline.md +56 -3
- package/skills/weaver-e10-meeting/references/room-recommend.md +2 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +158 -146
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +64 -51
- package/skills/weaver-e10-recruit-stage/lib/interview-summary.mjs +56 -18
- package/skills/weaver-e10-recruit-stage/lib/recruit-attach-probe.mjs +127 -0
- package/skills/weaver-e10-recruit-stage/lib/recruit-shortlist.mjs +217 -30
- package/skills/weaver-e10-recruit-stage/lib/recruit-write-helper.mjs +39 -7
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +2 -2
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +10 -10
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +18 -18
- package/skills/weaver-e10-recruit-stage/references/recruit-capability-check.md +29 -31
- package/skills/weaver-e10-recruit-stage/references/recruit-edit-interview-feedback.md +2 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-failure-fallback.md +4 -2
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +19 -20
- package/skills/weaver-e10-recruit-stage/references/recruit-list-candidate.md +4 -4
- package/skills/weaver-e10-recruit-stage/references/recruit-list-interview.md +3 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-maint.md +10 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-match-candidates.md +4 -3
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +21 -25
- package/skills/weaver-e10-recruit-stage/references/recruit-platform-compat.md +1 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-report-templates.md +19 -7
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +31 -58
- package/skills/weaver-e10-recruit-stage/references/recruit-search-candidate.md +3 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-tag-recommend.md +2 -2
- package/skills/weaver-e10-recruit-stage/templates/candidate-evidence.html +2 -2
- package/skills/weaver-e10-recruit-stage/templates/interview-summary.html +1 -1
- package/skills/weaver-e10-recruit-stage/templates/match-report.html +25 -15
- package/skills/weaver-e10-shijingran/SKILL.md +2 -2
- package/skills/weaver-e10-shijingran/references/operations.md +5 -2
- package/skills/weaver-e10-shijingran/references/source-manifest.json +41 -40
- package/skills/weaver-e10-workflow/SKILL.md +13 -9
- package/skills/weaver-e10-workflow/references/todo-dialogue.md +33 -8
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +19 -14
- package/skills/weaver-e10-workflow/references/workflow-create.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +4 -2
- package/skills/weaver-e10-workflow/references/workflow-view.md +3 -3
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +132 -42
- package/skills/weaver-e10-yepiaotong/SKILL.md +133 -61
- package/skills/weaver-e10-yepiaotong/references/invoice-add.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-disabled-capabilities.md +3 -3
- package/skills/weaver-e10-yepiaotong/references/invoice-download.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +13 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-file-upload.md +3 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-import.md +6 -4
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +42 -45
- package/skills/weaver-e10-yepiaotong/references/invoice-ocr-preview.md +1 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +18 -2
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +14 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-red-workflow.md +96 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim-relation.md +56 -369
- package/skills/weaver-e10-yepiaotong/references/invoice-upload-and-validate.md +16 -6
- package/skills/weaver-e10-yepiaotong/references/name-fuzzy-search.md +38 -0
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +163 -646
- package/skills/weaver-e10-yepiaotong/references/reim-customer-search.md +90 -44
- package/skills/weaver-e10-yepiaotong/references/reim-eligibility-rules.md +85 -0
- package/skills/weaver-e10-yepiaotong/references/reim-fill-validation.md +61 -0
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +91 -280
- package/skills/weaver-e10-yepiaotong/references/reim-preapproval-rules.md +98 -0
- package/skills/weaver-e10-yepiaotong/references/reim-travel-invoice-matching.md +48 -0
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +234 -695
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +395 -204
- package/skills/weaver-e10-yepiaotong/references/travel-application-fill.md +84 -0
- package/skills/weaver-e10-yepiaotong/references/workflow-direct-fill.md +165 -0
- package/templates/meeting/minute.docx +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +0 -93
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +0 -774
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +0 -111
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +0 -360
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +0 -167
|
@@ -173,14 +173,21 @@ function dimensionLabel(data) {
|
|
|
173
173
|
const CHART_W = 960;
|
|
174
174
|
const CHART_H = 260;
|
|
175
175
|
const PAD = { top: 14, right: 18, bottom: 30, left: 68 };
|
|
176
|
-
|
|
176
|
+
/**
|
|
177
|
+
* 坐标系:`top` 由**调用方**按实际数据算(率值也要允许 >100%,见 renderLine)。
|
|
178
|
+
*
|
|
179
|
+
* 2026-12-01 修复:原签名是 `chartFrame(maxValue, rateMode)` 且内部写死
|
|
180
|
+
* `top = rateMode ? 100 : maxValue || 1` —— 折线图调用时传 `maxValue=0`(因为率值分支不需要它),
|
|
181
|
+
* 于是非率值折线的纵轴上限变成 **1**,所有描点飞出绘图区、刻度退化成「0,0,1,1,1」。
|
|
182
|
+
*/
|
|
183
|
+
function chartFrame(top, rateMode) {
|
|
177
184
|
const innerW = CHART_W - PAD.left - PAD.right;
|
|
178
185
|
const innerH = CHART_H - PAD.top - PAD.bottom;
|
|
179
|
-
const
|
|
180
|
-
const y = (value) => PAD.top + innerH - (value /
|
|
186
|
+
const safeTop = Number.isFinite(top) && top > 0 ? top : 1;
|
|
187
|
+
const y = (value) => PAD.top + innerH - (value / safeTop) * innerH;
|
|
181
188
|
const ticks = [0, 0.25, 0.5, 0.75, 1].map((ratio) => {
|
|
182
|
-
const value =
|
|
183
|
-
return { y: y(value), label: rateMode ? `${
|
|
189
|
+
const value = safeTop * ratio;
|
|
190
|
+
return { y: y(value), label: rateMode ? `${axisTick(value)}%` : axisTick(value) };
|
|
184
191
|
});
|
|
185
192
|
return { y, ticks, innerW, innerH };
|
|
186
193
|
}
|
|
@@ -190,11 +197,14 @@ function gridSvg(ticks) {
|
|
|
190
197
|
stroke="${LINE}" stroke-width="1" ${tick.label === '0' || tick.label === '0%' ? '' : 'stroke-dasharray="3 4"'} />
|
|
191
198
|
<text x="${PAD.left - 10}" y="${(tick.y + 3.5).toFixed(1)}" text-anchor="end" font-size="10.5" fill="${MUTED}">${esc(tick.label)}</text>`).join('');
|
|
192
199
|
}
|
|
193
|
-
function axisLabels(rows, innerW
|
|
200
|
+
function axisLabels(rows, innerW) {
|
|
194
201
|
const band = innerW / Math.max(rows.length, 1);
|
|
202
|
+
// 2026-12-01 修复:原先只在 >14 桶时显示全标签,13 个月(跨年)会把「2025-01 / 2026-01」都截成「01」;
|
|
203
|
+
// 客户/销售经理维度更会把企业名截成最后两个字。现在:≤8 桶水平显示全标签,>8 桶一律全标签 + 旋转。
|
|
204
|
+
const rotate = rows.length > 8;
|
|
195
205
|
return rows.map((row, index) => {
|
|
196
206
|
const cx = PAD.left + band * index + band / 2;
|
|
197
|
-
const label =
|
|
207
|
+
const label = bucketLabel(row);
|
|
198
208
|
return `<text x="${cx.toFixed(1)}" y="${CHART_H - 8}" text-anchor="${rotate ? 'end' : 'middle'}"
|
|
199
209
|
font-size="10.5" fill="${MUTED}"${rotate ? ` transform="rotate(-28 ${cx.toFixed(1)} ${CHART_H - 8})"` : ''}>${esc(label)}</text>`;
|
|
200
210
|
}).join('');
|
|
@@ -232,10 +242,27 @@ export function renderKpi(data, block) {
|
|
|
232
242
|
}).join('');
|
|
233
243
|
return `<section class="card">
|
|
234
244
|
<h2>${esc(block.title ?? '总览')}</h2>
|
|
235
|
-
<p class="hint">${esc(data.window.from)} ~ ${esc(data.window.to)}
|
|
245
|
+
<p class="hint">${esc(data.window.from)} ~ ${esc(data.window.to)}${grainHint(keys.map((key) => metricOf(data, key).aggregation))}${compareMode === 'yoy' ? ';同比为「去年同期」对比' : ''}</p>
|
|
236
246
|
<div class="kpis">${cards}</div>
|
|
237
247
|
</section>`;
|
|
238
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* KPI 卡的**口径说明**:不同聚合方式不能说成同一个"合计"。
|
|
251
|
+
*
|
|
252
|
+
* 2026-12-01 修复:原先一律写「合计」,而 `countDistinct`(新签客户数)是**整窗去重**、
|
|
253
|
+
* `ratio`(回款率)是 **Σ分子÷Σ分母**——把它们读成"可以相加的合计"正是本类口径事故的入口。
|
|
254
|
+
*/
|
|
255
|
+
function grainHint(aggregations) {
|
|
256
|
+
const unique = [...new Set(aggregations)];
|
|
257
|
+
const parts = unique.map((aggregation) => {
|
|
258
|
+
if (aggregation === 'countDistinct')
|
|
259
|
+
return '去重口径(整窗去重,不是各期相加)';
|
|
260
|
+
if (aggregation === 'ratio')
|
|
261
|
+
return '率值口径(Σ分子÷Σ分母,分母为 0 记「—」)';
|
|
262
|
+
return '金额口径(窗口内合计)';
|
|
263
|
+
});
|
|
264
|
+
return parts.length ? ` · ${parts.join(';')}` : '';
|
|
265
|
+
}
|
|
239
266
|
// ---------------------------------------------------------------- 积木:双柱
|
|
240
267
|
export function renderGroupedBar(data, block) {
|
|
241
268
|
const key = block.metric ?? data.metrics.find((metric) => metric.aggregation === 'sum')?.key;
|
|
@@ -245,31 +272,37 @@ export function renderGroupedBar(data, block) {
|
|
|
245
272
|
const unit = unitOf(metric.aggregation);
|
|
246
273
|
const compareMode = (block.compare ?? data.window.compare) === 'yoy';
|
|
247
274
|
const values = data.series.map((row) => {
|
|
248
|
-
const
|
|
249
|
-
const
|
|
250
|
-
|
|
275
|
+
const raw = row.values[key];
|
|
276
|
+
const previousRaw = compareMode ? row.previousYear?.values?.[key] : null;
|
|
277
|
+
// 2026-12-01 修复:null(不可用)**不得补 0** —— 补 0 会画出一根"0 柱"并在 tooltip 里断言 0.00,
|
|
278
|
+
// 与同页明细表的「—」、口径说明的「不代表 0」自相矛盾。这里保留 null,不画柱、tooltip 显示「—」。
|
|
279
|
+
return {
|
|
280
|
+
current: raw === null || raw === undefined ? null : Number(raw),
|
|
281
|
+
previous: previousRaw === null || previousRaw === undefined ? null : Number(previousRaw),
|
|
282
|
+
};
|
|
251
283
|
});
|
|
252
|
-
const maxValue = Math.max(...values.flatMap((item) => [item.current, item.previous ?? 0]),
|
|
253
|
-
const
|
|
284
|
+
const maxValue = Math.max(...values.flatMap((item) => [item.current ?? 0, item.previous ?? 0]), 0);
|
|
285
|
+
const rateMode = metric.aggregation === 'ratio';
|
|
286
|
+
const { y, ticks, innerW, innerH } = chartFrame(maxValue, rateMode);
|
|
254
287
|
const band = innerW / Math.max(values.length, 1);
|
|
255
288
|
const barW = Math.min(26, band * 0.26);
|
|
289
|
+
const rectOf = (value, x, color) => {
|
|
290
|
+
if (value === null)
|
|
291
|
+
return '';
|
|
292
|
+
const height = Math.max(value > 0 ? 2 : 0, innerH - (y(value) - PAD.top));
|
|
293
|
+
return `<rect x="${x.toFixed(1)}" y="${(PAD.top + innerH - height).toFixed(1)}" width="${barW.toFixed(1)}" height="${height.toFixed(1)}" rx="3" fill="${color}" />`;
|
|
294
|
+
};
|
|
295
|
+
const textOf = (value) => (value === null ? '—' : unit.value(value));
|
|
256
296
|
const bars = values.map((item, index) => {
|
|
257
297
|
const cx = PAD.left + band * index + band / 2;
|
|
258
298
|
const currentX = compareMode ? cx - barW - 1 : cx - barW / 2;
|
|
259
|
-
|
|
260
|
-
const currentRect = `<rect x="${currentX.toFixed(1)}" y="${(PAD.top + innerH - currentH).toFixed(1)}" width="${barW.toFixed(1)}" height="${currentH.toFixed(1)}" rx="3" fill="${ACCENT}" />`;
|
|
261
|
-
let previousRect = '';
|
|
262
|
-
if (item.previous !== null) {
|
|
263
|
-
const previousH = Math.max(item.previous > 0 ? 2 : 0, innerH - (y(item.previous) - PAD.top));
|
|
264
|
-
previousRect = `<rect x="${(cx + 1).toFixed(1)}" y="${(PAD.top + innerH - previousH).toFixed(1)}" width="${barW.toFixed(1)}" height="${previousH.toFixed(1)}" rx="3" fill="${ACCENT_SOFT}" />`;
|
|
265
|
-
}
|
|
266
|
-
return `<g><title>${esc(bucketLabel(data.series[index]))}|本期 ${esc(unit.value(item.current))}${item.previous === null ? '' : `|去年 ${esc(unit.value(item.previous))}`}</title>${previousRect}${currentRect}</g>`;
|
|
299
|
+
return `<g><title>${esc(bucketLabel(data.series[index]))}|本期 ${esc(textOf(item.current))}${compareMode ? `|去年 ${esc(textOf(item.previous))}` : ''}</title>${rectOf(item.previous, cx + 1, ACCENT_SOFT)}${rectOf(item.current, currentX, ACCENT)}</g>`;
|
|
267
300
|
}).join('');
|
|
268
301
|
return `<section class="card">
|
|
269
302
|
<h2>${esc(block.title ?? `${metric.label} · 按月`)}</h2>
|
|
270
|
-
<p class="hint">${esc(data.window.from)} ~ ${esc(data.window.to)}${compareMode ? ' 与去年同期对比' : ''},单位:${unit.header
|
|
303
|
+
<p class="hint">${esc(data.window.from)} ~ ${esc(data.window.to)}${compareMode ? ' 与去年同期对比' : ''},单位:${esc(unit.header)};「—」表示该期不可用(未补 0)</p>
|
|
271
304
|
<svg class="chart" viewBox="0 0 ${CHART_W} ${CHART_H}" role="img" aria-label="${esc(metric.label)}按月柱状图">
|
|
272
|
-
${gridSvg(ticks)}${bars}${axisLabels(data.series, innerW
|
|
305
|
+
${gridSvg(ticks)}${bars}${axisLabels(data.series, innerW)}
|
|
273
306
|
</svg>
|
|
274
307
|
<div class="legend">
|
|
275
308
|
<span><i class="swatch" style="background:${ACCENT}"></i>本期</span>
|
|
@@ -285,7 +318,11 @@ export function renderLine(data, block) {
|
|
|
285
318
|
const metric = metricOf(data, key);
|
|
286
319
|
const rateMode = metric.aggregation === 'ratio';
|
|
287
320
|
const compareMode = (block.compare ?? data.window.compare) === 'yoy';
|
|
288
|
-
|
|
321
|
+
// 2026-12-01 修复:纵轴上限必须按**实际数据**算(原先非率值分支传 0 → 上限 1 → 描点飞出画布);
|
|
322
|
+
// 率值分支也允许 >100%(分子有值而分母缺省时可能超过 100)。
|
|
323
|
+
const observed = Math.max(...data.series.flatMap((row) => [row.values[key], row.previousYear?.values?.[key]])
|
|
324
|
+
.map((value) => (value === null || value === undefined ? 0 : Number(value))), 0);
|
|
325
|
+
const { y, ticks, innerW } = chartFrame(rateMode ? Math.max(100, observed) : observed, rateMode);
|
|
289
326
|
const band = innerW / Math.max(data.series.length, 1);
|
|
290
327
|
const pointsOf = (source) => data.series.map((row, index) => {
|
|
291
328
|
const container = source === 'current' ? row.values : (row.previousYear?.values ?? null);
|
|
@@ -327,7 +364,7 @@ export function renderLine(data, block) {
|
|
|
327
364
|
${pathOf(current, ACCENT, false)}
|
|
328
365
|
${compareMode ? dotsOf(previous, '#94a3b8') : ''}
|
|
329
366
|
${dotsOf(current, ACCENT)}
|
|
330
|
-
${axisLabels(data.series, innerW
|
|
367
|
+
${axisLabels(data.series, innerW)}
|
|
331
368
|
</svg>
|
|
332
369
|
<div class="legend">
|
|
333
370
|
<span><i class="swatch" style="background:${ACCENT}"></i>本期</span>
|
|
@@ -344,11 +381,15 @@ export function renderHbar(data, block) {
|
|
|
344
381
|
const unit = unitOf(metric.aggregation);
|
|
345
382
|
const limit = block.limit ?? 10;
|
|
346
383
|
const sortDesc = (block.sort ?? 'desc') === 'desc';
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
384
|
+
// 2026-12-01 修复:原先把「超 limit 未展示」与「该口径不可用」合并成一句"其余 N 项未展示",
|
|
385
|
+
// 读者会把"取数失败/分母 0"误当成"只是没显示"。两种原因分开说。
|
|
386
|
+
const usable = data.series.filter((row) => (row.values[key] ?? null) !== null);
|
|
387
|
+
const rows = usable
|
|
388
|
+
.map((row) => ({ label: bucketLabel(row), value: row.values[key] }))
|
|
350
389
|
.sort((a, b) => (sortDesc ? Number(b.value) - Number(a.value) : Number(a.value) - Number(b.value)))
|
|
351
390
|
.slice(0, limit);
|
|
391
|
+
const droppedByLimit = usable.length - rows.length;
|
|
392
|
+
const droppedNull = data.series.length - usable.length;
|
|
352
393
|
const max = Math.max(...rows.map((row) => Math.abs(Number(row.value))), 1);
|
|
353
394
|
const bars = rows.map((row) => {
|
|
354
395
|
const width = Math.max(1, Math.round((Math.abs(Number(row.value)) / max) * 100));
|
|
@@ -358,11 +399,14 @@ export function renderHbar(data, block) {
|
|
|
358
399
|
<div class="rank-val">${esc(unit.value(Number(row.value)))}${esc(unit.suffix)}</div>
|
|
359
400
|
</div>`;
|
|
360
401
|
}).join('');
|
|
361
|
-
const
|
|
402
|
+
const notes = [
|
|
403
|
+
droppedByLimit > 0 ? `另有 ${droppedByLimit} 项未展示` : '',
|
|
404
|
+
droppedNull > 0 ? `${droppedNull} 项该口径不可用(计数/取值失败,未计入排行)` : '',
|
|
405
|
+
].filter(Boolean).join(';');
|
|
362
406
|
return `<section class="card">
|
|
363
407
|
<h2>${esc(block.title ?? `${metric.label} · ${dimensionLabel(data)}排行`)}</h2>
|
|
364
|
-
<p class="hint">按${esc(dimensionLabel(data))}聚合,${sortDesc ? '从高到低' : '从低到高'}取前 ${limit}${
|
|
365
|
-
<div class="rank">${bars || '<div class="hint"
|
|
408
|
+
<p class="hint">按${esc(dimensionLabel(data))}聚合,${sortDesc ? '从高到低' : '从低到高'}取前 ${limit}${notes ? `(共 ${data.series.length} 项:${notes})` : ''}</p>
|
|
409
|
+
<div class="rank">${bars || '<div class="hint">无可用数据</div>'}</div>
|
|
366
410
|
</section>`;
|
|
367
411
|
}
|
|
368
412
|
// ---------------------------------------------------------------- 积木:明细表
|
|
@@ -72,11 +72,25 @@ export function validateSpec(spec, data) {
|
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
74
|
// 图类:单指标 + 不允许跨量纲
|
|
75
|
+
// 2026-12-01 修复:图类渲染器只读 `block.metric`,此前传 `metrics:['某口径']` 会**校验通过但静默画默认口径**
|
|
76
|
+
// (违背本文件「不认识就报错,不猜、不静默降级」)。现在把单元素 metrics **提升为 metric**(尊重调用方选择),
|
|
77
|
+
// 与 metric 冲突则报错;多元素仍按「图类只接受一个口径」拒绝。
|
|
78
|
+
if (block.metrics !== undefined) {
|
|
79
|
+
if (!Array.isArray(block.metrics) || block.metrics.length === 0) {
|
|
80
|
+
throw new ReportSpecError('spec_metric_required', `${where}.metrics 必须是非空数组`);
|
|
81
|
+
}
|
|
82
|
+
if (block.metrics.length > 1) {
|
|
83
|
+
throw new ReportSpecError('spec_single_metric', `${where}:图类积木只接受一个口径(多口径请改用 table 或 kpi)`);
|
|
84
|
+
}
|
|
85
|
+
const only = checkMetric(block.metrics[0], 'metrics[]');
|
|
86
|
+
if (block.metric !== undefined && block.metric !== only) {
|
|
87
|
+
throw new ReportSpecError('spec_metric_conflict', `${where}:metric 与 metrics 给了不同口径(${block.metric} / ${only})`);
|
|
88
|
+
}
|
|
89
|
+
block.metric = only;
|
|
90
|
+
delete block.metrics;
|
|
91
|
+
}
|
|
75
92
|
if (block.metric !== undefined)
|
|
76
93
|
checkMetric(block.metric, 'metric');
|
|
77
|
-
if (block.metrics !== undefined && block.metrics.length > 1) {
|
|
78
|
-
throw new ReportSpecError('spec_single_metric', `${where}:图类积木只接受一个 metric`);
|
|
79
|
-
}
|
|
80
94
|
}
|
|
81
95
|
if (block.compare !== undefined && !['yoy', 'none'].includes(block.compare)) {
|
|
82
96
|
throw new ReportSpecError('spec_compare_invalid', `${where}.compare 只支持 yoy / none`);
|
|
@@ -520,6 +520,10 @@ const quoteContracts = [
|
|
|
520
520
|
quoteTitle: { type: 'string', description: '报价单标题,供合同类型识别' },
|
|
521
521
|
quoteFileName: { type: 'string', description: '报价单文件名,供合同类型识别' },
|
|
522
522
|
verified: { type: 'boolean', description: '上游 slots.fill 校验是否 PASS;false 时全部 origin 置空,默认 true' },
|
|
523
|
+
signWay: { type: 'string', description: '合同签订方式(用印顺序):用户口述「对方先用印 / 客户方先盖章」→ 写 客户方先盖章(选项 1);「我方先盖章」→ 0;「等待确认」→ 2。⛔ 用户说了不传就会被落成默认「我方先盖章」' },
|
|
524
|
+
signForm: { type: 'string', description: '签约形式:用户口述「走契约锁电子签 / 双方电子签署」时传;不传按纸质签署(技术性默认)' },
|
|
525
|
+
signDateType: { type: 'string', description: '合同签署日期口径:用户口述「指定签署日期」时传;不传按默认合同办理当天' },
|
|
526
|
+
contractText: { type: 'string', maxLength: 200000, description: '内部通道(编排层用):生成后合同的正文纯文本,由 quotescreen.submit 本地抽取后传入。只作要素抽取的补充证据源与 origin 出处,⛔ 不用于流程类型判定' },
|
|
523
527
|
out: { type: 'string', maxLength: 4096, description: '可选:recognize.json 输出路径' },
|
|
524
528
|
}, ['fileId', 'customerName', 'totalAmount']),
|
|
525
529
|
},
|
|
@@ -543,6 +547,9 @@ const quoteContracts = [
|
|
|
543
547
|
quoteTitle: { type: 'string', description: '报价单标题,供合同类型识别' },
|
|
544
548
|
quoteFileName: { type: 'string', description: '报价单文件名,供合同类型识别' },
|
|
545
549
|
verified: { type: 'boolean', description: '上游 slots.fill 校验是否 PASS;false 时全部 origin 置空,默认 true' },
|
|
550
|
+
signWay: { type: 'string', description: '合同签订方式(用印顺序):用户口述「对方先用印 / 客户方先盖章」→ 写 客户方先盖章(选项 1);「我方先盖章」→ 0;「等待确认」→ 2。⛔ 用户说了不传就会被落成默认「我方先盖章」(把对手方要求写反)' },
|
|
551
|
+
signForm: { type: 'string', description: '签约形式:用户口述「走契约锁电子签 / 双方电子签署」时传;不传按纸质签署(技术性默认)' },
|
|
552
|
+
signDateType: { type: 'string', description: '合同签署日期口径:用户口述「指定签署日期」时传;不传按默认合同办理当天' },
|
|
546
553
|
tab: { type: 'string', enum: ['Extract', 'Summary', 'RiskReview', 'Credit', 'termComponent'], description: '合同智能页页签,默认 Extract' },
|
|
547
554
|
contractTermIds: { type: 'string', description: '待引用条款 ID,多个逗号拼接;无条款引用不传' },
|
|
548
555
|
reuseFileId: { type: 'string', description: '已存在的 workflow fileId(仅复用场景);一般不传,由本操作上传产生' },
|
|
@@ -576,6 +583,8 @@ const quoteContracts = [
|
|
|
576
583
|
sum: { type: 'array', items: { type: 'string' }, description: '求和字段(金额,如 htzje / yxje)' },
|
|
577
584
|
where: { type: 'array', items: { type: 'string' }, description: '过滤条件,形如 xsjl=吴洋洋(子串匹配)' },
|
|
578
585
|
dedupe: { type: 'boolean', description: '按 id / form_data_id / rowKey / ebrecord_rowkey 去重(分批窗口重叠时使用)' },
|
|
586
|
+
entityKey: { type: 'array', items: { type: 'string' }, description: '实体键字段(如 ["hth"]):配合 entitySumFields 使用,让**合同级**字段按实体去重后求和,避免同一合同多行被重复计入' },
|
|
587
|
+
entitySumFields: { type: 'array', items: { type: 'string' }, description: '`sum` 里属于**合同级**的字段(如 ["htzje","sumsk"]):按 entityKey 去重后每实体取一次值再求和;其余字段仍按行累加(期次级)' },
|
|
579
588
|
detail: { type: 'boolean', description: '输出命中明细(签订日期/合同号/客户/销售经理/合同总金额)' },
|
|
580
589
|
limit: { type: 'integer', minimum: 1, maximum: 1000, description: '明细最多返回条数,默认 20' },
|
|
581
590
|
}),
|
|
@@ -695,6 +704,8 @@ const quoteContracts = [
|
|
|
695
704
|
// 客户运维合同起草(E10):客户 → 销售合同(多条让用户选)→ 合同总金额 × 百分比 = 运维合同金额
|
|
696
705
|
// → 范文库找系统「年度维护服务合同模板」→ 下载 + 扫描位点 → 生成填充方案(金额走 $quote 值引用)
|
|
697
706
|
// → 调用方继续 slots.fill / quotescreen.submit / open_web。本 operation 只读本地 + 只读接口。
|
|
707
|
+
// 范文附件 fileId 解析链:显式 templateFileId → 范文库行 → contract.recommend.doc 回退;
|
|
708
|
+
// 三条都取不到时返回 NEED_TEMPLATE_FILE_ID(结构化结果,不再抛死胡同错误)。
|
|
698
709
|
name: 'contract.ops.draft',
|
|
699
710
|
risk: 'read',
|
|
700
711
|
auth: AUTH,
|
|
@@ -703,9 +714,13 @@ const quoteContracts = [
|
|
|
703
714
|
customer: { type: 'string', minLength: 1, description: '客户全称(必填):查该客户的销售合同作为计费基数' },
|
|
704
715
|
salesContractNo: { type: 'string', description: '用户已选定的销售合同号;给了就跳过"多条让用户选"' },
|
|
705
716
|
percent: { type: 'number', exclusiveMinimum: 0, maximum: 100, description: '计费百分比,默认 10(销售合同总额的 10%)' },
|
|
717
|
+
baseAmount: { type: 'number', exclusiveMinimum: 0, description: '用户直接指定的计费基数(元):给了就用它当基数、跳过台账「合同总金额」(台账合同 0 元/作废 时用);金额仍由 CLI 按 percent 本地算' },
|
|
706
718
|
outDir: { type: 'string', minLength: 1, maxLength: 4096, description: '产物目录(必填):范文 docx / ops.json / plan.json / 生成的合同 docx 都落这里' },
|
|
707
719
|
today: { type: 'string', pattern: '^\\d{4}-\\d{2}-\\d{2}$', description: '仅测试/复核用:以该日期作为签订与生效日期' },
|
|
708
|
-
flow: { type: 'string', description: '
|
|
720
|
+
flow: { type: 'string', description: '合同流程类型(四类之一),默认「常规二次销售」——年度维护属 object-detect §D4「常规」类、fingerprints §F3 指纹;用户指定优先;未经用户确认不得直接调 submit' },
|
|
721
|
+
templateFileId: { type: 'string', pattern: '^\\d{6,}$', description: '范文附件 id(纯数字):给了就直接下载它、跳过范文库附件解析;取自 contract.recommend.doc 的 file_id(失败回退链的最后一环)' },
|
|
722
|
+
templateFileName: { type: 'string', description: '范文文件名(配合 templateFileId 用):只影响产物命名与我方主体识别,缺省取范文库命中名' },
|
|
723
|
+
signWay: { type: 'string', description: '合同签订方式(用印顺序):用户口述「对方先用印 / 客户方先盖章」时传(收口落选项 1);不传按默认「我方先盖章」' },
|
|
709
724
|
}, ['customer', 'outDir']),
|
|
710
725
|
},
|
|
711
726
|
{
|
|
@@ -847,6 +862,8 @@ const quoteContracts = [
|
|
|
847
862
|
projectMaxPages: { type: 'integer', minimum: 1, maximum: 100, description: '① 项目列表最多翻页数,默认 20' },
|
|
848
863
|
out: { type: 'string', maxLength: 4096, description: '台账 HTML 输出绝对路径;不给则只返回结构化数据' },
|
|
849
864
|
title: { type: 'string', description: '台账标题,默认「合同台账 · 收款节点」' },
|
|
865
|
+
linkCards: { type: 'boolean', description: '默认 true:把项目名做成项目卡片链接(/sp/ebdfpage/card/2/1020275562853482532/{项目ID})、合同号做成合同卡片链接(按合同号解析数据 ID)。false 则纯文本、不额外查台账' },
|
|
866
|
+
contractLinkLimit: { type: 'integer', minimum: 1, maximum: 1000, description: '合同链接解析上限,默认 200。台账**一次查询可带多个合同号**(逗号分隔 OR 匹配),成本为 ⌈合同数/40⌉ 次查询,不是每个合同号一次;超上限时只回 warning、不生成链接' },
|
|
850
867
|
now: { type: 'string', description: '仅测试/复核用:以该时间作为“今天”计算逾期天数' },
|
|
851
868
|
}),
|
|
852
869
|
},
|
|
@@ -1045,7 +1062,7 @@ const OPERATION_SUMMARIES = {
|
|
|
1045
1062
|
'contract.compare.page': '生成两版本比对的页面地址(供打开比对页)',
|
|
1046
1063
|
'contract.compare.diff': '取两份文件的 AI 比对差异结果(按 baseFileId/compareFileId)',
|
|
1047
1064
|
'contract.compare.report': '生成合同比对报告并写到本地文件;入参 files/baseFileId/compareFileId/out',
|
|
1048
|
-
'contract.credit.page': '
|
|
1065
|
+
'contract.credit.page': '按企业名称生成资信查询页面地址:助手页用 data.url(tab=Credit、openIn=browser);单独调用资信组件用 data.details[].url(外部资信详情页 cloud.qianliling.com,openIn=external,一个主体一个 browsertool)',
|
|
1049
1066
|
'contract.clause.permission': '查询当前用户对条款组件的操作权限(能否新增/修改/删除)',
|
|
1050
1067
|
'contract.clause.types': '取全部条款类型(queryAllCluseType),用于条款归属分类',
|
|
1051
1068
|
'contract.clause.check': '校验条款名称在同一归属下是否重复(按 clauseName/belongId)',
|
|
@@ -2088,7 +2105,7 @@ export const contractOperations = [
|
|
|
2088
2105
|
ref: { type: 'string', maxLength: 4096, description: '已落盘的比对结果 JSON 路径(含 compare.diff 的 result);给了就不再调接口' },
|
|
2089
2106
|
baseFileName: { type: 'string', maxLength: 300, description: '基准文件名;缺省取接口或上传返回值' },
|
|
2090
2107
|
compareFileName: { type: 'string', maxLength: 300, description: '比对文件名;缺省取接口或上传返回值' },
|
|
2091
|
-
out: { type: 'string', minLength: 1, maxLength: 4096, description: '报告 HTML
|
|
2108
|
+
out: { type: 'string', minLength: 1, maxLength: 4096, description: '报告 HTML 输出绝对路径(必填;落盘后按宿主环境登记交付:云端/沙箱 save_artifact / present,本地客户端 present_files;⛔ 云端/沙箱不得只给 file:/// 链接)' },
|
|
2092
2109
|
template: { type: 'string', maxLength: 4096, description: '自定义模板路径;缺省用内嵌模板(与 contract-compare-report-template.html 互为镜像)' },
|
|
2093
2110
|
dumpData: { type: 'string', maxLength: 4096, description: '可选:归一化后的报告数据 JSON 输出路径(排查用)' },
|
|
2094
2111
|
}, ['out']),
|
|
@@ -379,12 +379,33 @@ function notesBlock(d) {
|
|
|
379
379
|
];
|
|
380
380
|
return lines.join('<br>');
|
|
381
381
|
}
|
|
382
|
+
/**
|
|
383
|
+
* 检查统计。
|
|
384
|
+
*
|
|
385
|
+
* 2026-12-01 修复「检查要素总数」重复计数:`items`(待处理)与 `passed`(已完备)是**两个集合**,
|
|
386
|
+
* 原先直接 `items.length + passed.length` —— 同一要素若既出现在待处理、又出现在已完备(或同一要素多行),
|
|
387
|
+
* 总数就会 > 实际去重要素个数。现在按**要素名去重**求总数(要素名缺失时退化为行数),
|
|
388
|
+
* 并额外回传 `entries`(条目数)与 `deduped`(因去重少算的条数)便于对账。
|
|
389
|
+
*/
|
|
382
390
|
export function bizReviewStats(d) {
|
|
383
391
|
const byAction = { add: 0, modify: 0, delete: 0, confirm: 0 };
|
|
384
392
|
for (const item of d.items)
|
|
385
393
|
byAction[item.action] += 1;
|
|
394
|
+
const entries = d.items.length + d.passed.length;
|
|
395
|
+
const elements = new Set();
|
|
396
|
+
let nameless = 0;
|
|
397
|
+
for (const item of [...d.items, ...d.passed]) {
|
|
398
|
+
const name = truthyText(item.element).trim();
|
|
399
|
+
if (name)
|
|
400
|
+
elements.add(name);
|
|
401
|
+
else
|
|
402
|
+
nameless += 1;
|
|
403
|
+
}
|
|
404
|
+
const total = elements.size + nameless;
|
|
386
405
|
return {
|
|
387
|
-
total
|
|
406
|
+
total,
|
|
407
|
+
entries,
|
|
408
|
+
deduped: Math.max(0, entries - total),
|
|
388
409
|
pending: d.items.length,
|
|
389
410
|
passed: d.passed.length,
|
|
390
411
|
byAction,
|
|
@@ -488,7 +509,7 @@ export const contractBizReviewReportOperation = {
|
|
|
488
509
|
...(js ? { scriptLength: js.length } : {}),
|
|
489
510
|
...(dumpDataOut ? { dumpData: dumpDataOut } : {}),
|
|
490
511
|
out: htmlOut,
|
|
491
|
-
note: '
|
|
512
|
+
note: '报告已落盘;交付按宿主环境分流:云端/沙箱用 save_artifact(小e)/ present(DSH)登记产物,本地客户端用 present_files 登记(客户端可用 open_web 打开 file:/// 预览);登记成功才算交付,⛔ 云端/沙箱不得只给 file:/// 链接',
|
|
492
513
|
},
|
|
493
514
|
};
|
|
494
515
|
},
|
|
@@ -3,6 +3,9 @@ import { dirname } from 'node:path';
|
|
|
3
3
|
import { contractValidationError } from '../errors.js';
|
|
4
4
|
import { PAYMENT_STAGE_LEDGER, PROJECT_BOARD, buildPaymentStageFilter, buildProjectBoardFilter, normalizePaymentStageRow, normalizeProjectRow, summarize, } from '../data/collection-node-catalog.js';
|
|
5
5
|
import { renderCollectionLedger } from '../data/collection-ledger-html.js';
|
|
6
|
+
import { dataCardPageUrl, projectCardPageUrl } from './page.js';
|
|
7
|
+
import { contractPerformanceOperations } from './performance.js';
|
|
8
|
+
import { CONTRACT_LEDGER } from './viewlink.js';
|
|
6
9
|
const EBLIST_PATH = '/api/ebuilder/form/eblist/getData';
|
|
7
10
|
const DEFAULT_CHUNK = 40;
|
|
8
11
|
const MAX_ROWS_RETURNED = 500;
|
|
@@ -123,6 +126,88 @@ export async function fetchPaymentStages(context, projectIds, options) {
|
|
|
123
126
|
}
|
|
124
127
|
return { rows: [...merged.values()], warnings, queries };
|
|
125
128
|
}
|
|
129
|
+
/**
|
|
130
|
+
* 按合同号批量解析「合同数据 ID」(用于把报表里的合同号做成可点击的合同卡片链接)。
|
|
131
|
+
*
|
|
132
|
+
* 复用的是**既有规则**:直销合同台账(`CONTRACT_LEDGER`,与 `contract.viewlink` 同一份常量)。
|
|
133
|
+
*
|
|
134
|
+
* 🔴 2026-12-01 修正(用户实测):台账的合同号条件**支持一次传多个**——`searchValue` 写成
|
|
135
|
+
* `"号1,号2,号3"`(逗号分隔,`like` / `startWith` 均可)即可一次取回全部命中,
|
|
136
|
+
* **不需要一个合同号查一次**。因此实现改为「按 chunkSize 合并成一次查询」,
|
|
137
|
+
* 成本从 N 次请求降到 ⌈N/40⌉ 次。
|
|
138
|
+
*
|
|
139
|
+
* 约束(⛔ 不猜、不造链接):
|
|
140
|
+
* - 去重后的合同号超过 `limit` 时不解析(只回 warning);
|
|
141
|
+
* - 结果按返回行的 `hth` **精确等值**过滤(防 `like` 子串误命中)后取数据 ID;
|
|
142
|
+
* - 台账返回条数少于 `total` 时回 warning(可能有合同号没解析到,不静默)。
|
|
143
|
+
*/
|
|
144
|
+
export async function resolveContractDataIds(context, contractNos, options = {}) {
|
|
145
|
+
const limit = options.limit ?? 200;
|
|
146
|
+
const chunkSize = Math.max(1, options.chunkSize ?? 40);
|
|
147
|
+
const ids = new Map();
|
|
148
|
+
const warnings = [];
|
|
149
|
+
const wanted = [...new Set(contractNos.map((item) => String(item ?? '').trim()).filter(Boolean))];
|
|
150
|
+
if (wanted.length === 0)
|
|
151
|
+
return { ids, warnings, queries: 0 };
|
|
152
|
+
if (wanted.length > limit) {
|
|
153
|
+
warnings.push(`合同号 ${wanted.length} 个,超过单次解析上限 ${limit} —— 报表未生成合同卡片链接(可用 contract.viewlink 按合同号单独打开,或调大 contractLinkLimit)。`);
|
|
154
|
+
return { ids, warnings, queries: 0 };
|
|
155
|
+
}
|
|
156
|
+
const operation = contractPerformanceOperations.find((item) => item.name === CONTRACT_LEDGER.listQueryOperation);
|
|
157
|
+
if (!operation) {
|
|
158
|
+
warnings.push(`缺少 ${CONTRACT_LEDGER.listQueryOperation},无法解析合同数据 ID,合同号未带链接。`);
|
|
159
|
+
return { ids, warnings, queries: 0 };
|
|
160
|
+
}
|
|
161
|
+
const wantedSet = new Set(wanted);
|
|
162
|
+
let queries = 0;
|
|
163
|
+
let shortPages = 0;
|
|
164
|
+
for (let index = 0; index < wanted.length; index += chunkSize) {
|
|
165
|
+
const chunk = wanted.slice(index, index + chunkSize);
|
|
166
|
+
try {
|
|
167
|
+
const result = await operation.execute({
|
|
168
|
+
apiPrefix: CONTRACT_LEDGER.apiPrefix,
|
|
169
|
+
listId: CONTRACT_LEDGER.listId,
|
|
170
|
+
appId: CONTRACT_LEDGER.appId,
|
|
171
|
+
objId: CONTRACT_LEDGER.objId,
|
|
172
|
+
searchFieldId: CONTRACT_LEDGER.contractNoField.id,
|
|
173
|
+
// 一次传多个合同号:平台按逗号拆分做 OR 匹配(2026-12-01 实测)
|
|
174
|
+
searchOperator: 'like',
|
|
175
|
+
searchValue: chunk.join(','),
|
|
176
|
+
// 子串匹配可能多命中,页容量给足再按 hth 精确过滤
|
|
177
|
+
pageSize: Math.max(50, chunk.length * 2),
|
|
178
|
+
maxPages: 1,
|
|
179
|
+
}, context);
|
|
180
|
+
queries += 1;
|
|
181
|
+
const rows = Array.isArray(result.data?.rows) ? result.data.rows.filter(isRecord) : [];
|
|
182
|
+
const total = Number(result.data?.pagination?.total ?? rows.length);
|
|
183
|
+
if (Number.isFinite(total) && total > rows.length)
|
|
184
|
+
shortPages += 1;
|
|
185
|
+
for (const row of rows) {
|
|
186
|
+
const no = String(row.hth ?? row.contractNo ?? '').trim();
|
|
187
|
+
if (!no || !wantedSet.has(no) || ids.has(no))
|
|
188
|
+
continue;
|
|
189
|
+
for (const key of CONTRACT_LEDGER.dataIdKeys) {
|
|
190
|
+
const id = String(row[key] ?? '').trim();
|
|
191
|
+
if (id) {
|
|
192
|
+
ids.set(no, id);
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
catch {
|
|
199
|
+
shortPages += 1;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
const missing = wanted.length - ids.size;
|
|
203
|
+
if (missing > 0) {
|
|
204
|
+
warnings.push(`有 ${missing} 个合同号未在直销合同台账解析到唯一数据 ID(可能未归档 / 编号不一致 / 多命中),这些合同号在报表里不带链接。`);
|
|
205
|
+
}
|
|
206
|
+
if (shortPages > 0) {
|
|
207
|
+
warnings.push('合同号批量查询存在未取全的页(台账返回条数少于 total),链接可能不全;可调小 contractLinkLimit 后重跑。');
|
|
208
|
+
}
|
|
209
|
+
return { ids, warnings, queries };
|
|
210
|
+
}
|
|
126
211
|
export const contractCollectionNodeOperations = [
|
|
127
212
|
{
|
|
128
213
|
name: 'contract.project.list',
|
|
@@ -197,14 +282,39 @@ export const contractCollectionNodeOperations = [
|
|
|
197
282
|
warnings.push(`命中 ${rows.length} 条,响应只回传前 ${MAX_ROWS_RETURNED} 条;完整清单见 out 落盘的台账 HTML。`);
|
|
198
283
|
}
|
|
199
284
|
let out = null;
|
|
285
|
+
/** 合同卡片链接的解析成本(⌈合同号数 / 40⌉ 次台账查询) */
|
|
286
|
+
let linkQueries = 0;
|
|
200
287
|
if (typeof input.out === 'string' && input.out) {
|
|
201
288
|
out = input.out;
|
|
289
|
+
// 卡片跳转:项目卡片直接用行里的项目 ID;合同卡片要按合同号解析数据 ID(**既有规则**,见 CONTRACT_LEDGER)
|
|
290
|
+
const baseUrl = (await context.host.getSession()).baseUrl;
|
|
291
|
+
const linkCards = input.linkCards !== false;
|
|
292
|
+
const contractNos = rows
|
|
293
|
+
.flatMap((row) => String(row.contractNo ?? '').split(','))
|
|
294
|
+
.map((item) => item.trim())
|
|
295
|
+
.filter(Boolean);
|
|
296
|
+
const resolved = linkCards
|
|
297
|
+
? await resolveContractDataIds(context, contractNos, {
|
|
298
|
+
limit: positiveInt(input.contractLinkLimit, 200, 1000),
|
|
299
|
+
})
|
|
300
|
+
: { ids: new Map(), warnings: [], queries: 0 };
|
|
301
|
+
warnings.push(...resolved.warnings);
|
|
302
|
+
linkQueries = resolved.queries;
|
|
202
303
|
const html = renderCollectionLedger(rows, totals, {
|
|
203
304
|
title: typeof input.title === 'string' ? input.title : undefined,
|
|
204
305
|
managerName: managerName || undefined,
|
|
205
306
|
projectCount,
|
|
206
307
|
generatedAt,
|
|
207
308
|
warnings,
|
|
309
|
+
linkOf: linkCards
|
|
310
|
+
? {
|
|
311
|
+
project: (projectId) => (projectId ? projectCardPageUrl(baseUrl, projectId) : ''),
|
|
312
|
+
contract: (contractNo) => {
|
|
313
|
+
const id = resolved.ids.get(contractNo);
|
|
314
|
+
return id ? dataCardPageUrl(baseUrl, CONTRACT_LEDGER.objId, id) : '';
|
|
315
|
+
},
|
|
316
|
+
}
|
|
317
|
+
: undefined,
|
|
208
318
|
});
|
|
209
319
|
mkdirSync(dirname(out), { recursive: true });
|
|
210
320
|
writeFileSync(out, html, 'utf8');
|
|
@@ -218,10 +328,15 @@ export const contractCollectionNodeOperations = [
|
|
|
218
328
|
totals,
|
|
219
329
|
rows: returned,
|
|
220
330
|
queries: stages.queries,
|
|
331
|
+
/** 合同卡片链接的解析成本:⌈合同号数 / 40⌉ 次台账查询(一次可带多个合同号) */
|
|
332
|
+
linkQueries,
|
|
221
333
|
chunks: Math.ceil(projectIds.length / chunkSize),
|
|
222
334
|
...(out ? { out } : {}),
|
|
223
335
|
warnings,
|
|
224
|
-
note: '台账只返回「条件已达成且未收清」的付款阶段(已收清的付款阶段不会出现);金额单位:元;逾期天数 = 今天 − 计划收款日(本地计算)。'
|
|
336
|
+
note: '台账只返回「条件已达成且未收清」的付款阶段(已收清的付款阶段不会出现);金额单位:元;逾期天数 = 今天 − 计划收款日(本地计算)。'
|
|
337
|
+
+ 'HTML 呈现:同一「项目 + 合同号」的多笔收款节点合并为一组(主行给合同金额与合计,明细行给每个收款节点);'
|
|
338
|
+
+ '项目名与合同号可点击跳卡片(项目 `/sp/ebdfpage/card/2/1020275562853482532/{项目ID}`、合同 `/sp/ebdfpage/card/0/846297265322573825/{数据ID}`),'
|
|
339
|
+
+ '传 linkCards:false 可关闭链接解析。',
|
|
225
340
|
},
|
|
226
341
|
};
|
|
227
342
|
},
|
|
@@ -6,8 +6,9 @@ import { resolveOperation } from './op-resolver.js';
|
|
|
6
6
|
* 合同比对报告渲染(2026-11-19 新增,取代已删除的 `contract.comparescreen.run`)。
|
|
7
7
|
*
|
|
8
8
|
* 背景:`comparescreen.run` 把「上传 + 全量比对 + 报告 HTML + 行为卡片」揉成一条命令,
|
|
9
|
-
* 卡片部分随「行为卡片全面废止」下线,报告交付也改为 HTML 落盘 +
|
|
10
|
-
* `
|
|
9
|
+
* 卡片部分随「行为卡片全面废止」下线,报告交付也改为 HTML 落盘 + 按宿主环境登记交付
|
|
10
|
+
* (云端/沙箱 `save_artifact`/`present`,本地客户端 `present_files`;客户端可另用 `open_web` 打开
|
|
11
|
+
* `file:///` 预览)。本 operation 只保留报告这一件事,不再出任何卡片:
|
|
11
12
|
* files(2) / baseFileId+compareFileId / ref(落盘的 diff 结果)
|
|
12
13
|
* → contract.compare.diff(需要时)
|
|
13
14
|
* → 按 `contract-compare-report.md` 的口径渲染 HTML → 落盘 → 返回路径
|
|
@@ -54,11 +55,19 @@ function stampNow() {
|
|
|
54
55
|
const pad = (value) => String(value).padStart(2, '0');
|
|
55
56
|
return `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())} ${pad(now.getHours())}:${pad(now.getMinutes())}`;
|
|
56
57
|
}
|
|
57
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* 按接口 type 逐条计数,合计**恒等于** `changes.length`。
|
|
60
|
+
*
|
|
61
|
+
* 2026-12-01 修复:原先未知 type(既不是 insert / delete / change / replace)不计入任何一项,
|
|
62
|
+
* 于是「新增 + 删除 + 修改 ≠ 共 N 处变化」,而报告模板自己就写着三项枚举。
|
|
63
|
+
* 现在未知 type 归入「修改」(报告枚举句与三张指标卡因此始终自洽);
|
|
64
|
+
* 未知类型占比同时回传 `unknownTypes`,便于排查接口是否新增了类型。
|
|
65
|
+
*/
|
|
58
66
|
function statOf(changes, percentage, serviceTime) {
|
|
59
67
|
let insert = 0;
|
|
60
68
|
let deleted = 0;
|
|
61
69
|
let changed = 0;
|
|
70
|
+
const unknownTypes = new Set();
|
|
62
71
|
for (const item of changes) {
|
|
63
72
|
const type = str(item.type).toLowerCase();
|
|
64
73
|
if (type === 'insert')
|
|
@@ -67,8 +76,21 @@ function statOf(changes, percentage, serviceTime) {
|
|
|
67
76
|
deleted += 1;
|
|
68
77
|
else if (type === 'change' || type === 'replace')
|
|
69
78
|
changed += 1;
|
|
79
|
+
else {
|
|
80
|
+
changed += 1;
|
|
81
|
+
if (type)
|
|
82
|
+
unknownTypes.add(type);
|
|
83
|
+
}
|
|
70
84
|
}
|
|
71
|
-
return {
|
|
85
|
+
return {
|
|
86
|
+
total: changes.length,
|
|
87
|
+
insert,
|
|
88
|
+
delete: deleted,
|
|
89
|
+
change: changed,
|
|
90
|
+
percentage,
|
|
91
|
+
serviceTime,
|
|
92
|
+
...(unknownTypes.size ? { unknownTypes: [...unknownTypes] } : {}),
|
|
93
|
+
};
|
|
72
94
|
}
|
|
73
95
|
function typeLabel(type) {
|
|
74
96
|
const value = type.toLowerCase();
|
|
@@ -429,7 +451,7 @@ export const contractCompareReportOperation = {
|
|
|
429
451
|
changes: slimChanges(changes),
|
|
430
452
|
htmlLength: Buffer.byteLength(html, 'utf8'),
|
|
431
453
|
...(dumped ? { dumpData: dumped } : {}),
|
|
432
|
-
note: '
|
|
454
|
+
note: '报告已落盘;交付按宿主环境分流:云端/沙箱用 save_artifact(小e)/ present(DSH)登记产物,本地客户端用 present_files 登记(客户端可用 open_web 打开 file:/// 预览);登记成功才算交付,⛔ 云端/沙箱不得只给 file:/// 链接',
|
|
433
455
|
},
|
|
434
456
|
};
|
|
435
457
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { contractValidationError } from '../errors.js';
|
|
2
|
-
import { creditPageUrl } from './page.js';
|
|
2
|
+
import { creditDetailUrl, creditPageUrl } from './page.js';
|
|
3
3
|
import { requireNonEmptyString } from './shared.js';
|
|
4
4
|
const MAX_SUBJECTS = 20;
|
|
5
5
|
export const contractCreditPageOperations = [
|
|
@@ -24,9 +24,18 @@ export const contractCreditPageOperations = [
|
|
|
24
24
|
status: 'COMPLETE',
|
|
25
25
|
data: {
|
|
26
26
|
names,
|
|
27
|
+
/** 助手页用的独立资信页(`tab=Credit` 场景与兜底,带 baseUrl) */
|
|
27
28
|
url: creditPageUrl(session.baseUrl, names),
|
|
29
|
+
/**
|
|
30
|
+
* 外部资信详情页:**一个主体一个地址**,`openIn: "external"`(外部/默认浏览器)。
|
|
31
|
+
* 单独调用资信组件(直接问企业名 / 多企业批量 / 从合同取主体单独查)时用它,几个主体就出几个 `<browsertool>`。
|
|
32
|
+
*/
|
|
33
|
+
details: names.map((name) => ({ name, url: creditDetailUrl(name) })),
|
|
34
|
+
openIn: 'external',
|
|
28
35
|
page: { title: '资信查询', activate: true, width: 1300 },
|
|
29
|
-
note: '
|
|
36
|
+
note: '本能力只打开资信页面,不调用资信数据接口;从合同抽取的主体必须先让用户确认全称。'
|
|
37
|
+
+ '单独调用资信组件用 data.details[].url(外部浏览器 openIn=external,一个主体一个 browsertool);'
|
|
38
|
+
+ '助手页里的资信(本轮有合同文件)仍用 data.url + tab=Credit + openIn=browser。',
|
|
30
39
|
},
|
|
31
40
|
};
|
|
32
41
|
},
|