weaver-work-cli 0.1.42 → 0.1.45
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 +21 -0
- package/dist/chunks/{archive-J4I6MCKF.js → archive-ZQ4A4TV6.js} +399 -47
- package/dist/chunks/{archive-oa-BRZKKTO4.js → archive-oa-BBDP7AKJ.js} +12 -5
- package/dist/chunks/{asset-L7D4FAOZ.js → asset-ZOJVBWZH.js} +11 -4
- package/dist/chunks/{asset-idle-DADLLV75.js → asset-idle-XGB5IPGT.js} +7 -3
- package/dist/chunks/{attachment-content-K4C7VLWQ.js → attachment-content-CE3GMWTS.js} +5 -4
- package/dist/chunks/{blog-BVGQ7NZL.js → blog-QSHLZSFW.js} +11 -4
- package/dist/chunks/caizhilian-KCQYFH72.js +204 -0
- package/dist/chunks/{calendar-Q7NQY5Z2.js → calendar-DLGMRJQA.js} +12 -5
- package/dist/chunks/{chunk-W7BEHOSR.js → chunk-3WBIQLMB.js} +2 -2
- package/dist/chunks/{chunk-4PD5NWAX.js → chunk-3YV7PKRL.js} +2 -2
- package/dist/chunks/{chunk-JPRO6ER2.js → chunk-3ZMAQQ3W.js} +185 -60
- package/dist/chunks/{chunk-R4CHUSKC.js → chunk-4EXOIQDI.js} +40 -10
- package/dist/chunks/{chunk-OOUTBLZ4.js → chunk-56EZERK4.js} +1 -1
- package/dist/chunks/chunk-6N4JPNFL.js +76 -0
- package/dist/chunks/{chunk-SA6VBIHY.js → chunk-6NXT4ICB.js} +342 -17
- package/dist/chunks/{chunk-ZUX3P6BQ.js → chunk-727FH2NI.js} +1 -1
- package/dist/chunks/chunk-762M5XJS.js +215 -0
- package/dist/chunks/{chunk-GEWYMQME.js → chunk-77YP6I52.js} +1 -1
- package/dist/chunks/chunk-7BDPM5ST.js +11 -0
- package/dist/chunks/{chunk-G4UR6NXN.js → chunk-CZNZKOHR.js} +3 -3
- package/dist/chunks/{chunk-GHXCDPTM.js → chunk-DGMYACGJ.js} +1 -1
- package/dist/chunks/{chunk-4RAE6JXP.js → chunk-DLY5GUXX.js} +6 -3
- package/dist/chunks/{chunk-BYBSCN4X.js → chunk-G7PQWD4L.js} +6 -3
- package/dist/chunks/{chunk-EKWAQSLU.js → chunk-GR76ZDDX.js} +432 -2248
- package/dist/chunks/{chunk-APVFJUQH.js → chunk-HFXK54M4.js} +3 -3
- package/dist/chunks/{chunk-EZALDOQH.js → chunk-HP7JIYMT.js} +5 -2
- package/dist/chunks/{chunk-ZEDWSH32.js → chunk-IC62NFM5.js} +1 -1
- package/dist/chunks/{chunk-3KTFS4IA.js → chunk-JB34OE7R.js} +808 -85
- package/dist/chunks/{chunk-72CKAUAG.js → chunk-JWWTI63L.js} +59 -7
- package/dist/chunks/{chunk-P26ZWSKU.js → chunk-KIHNAS25.js} +5 -2
- package/dist/chunks/{chunk-NKZRQXST.js → chunk-LGKWL4OH.js} +200 -47
- package/dist/chunks/chunk-LRCPNDZA.js +2529 -0
- package/dist/chunks/{chunk-QKNKR4RH.js → chunk-LXFVWZLM.js} +4 -4
- package/dist/chunks/{chunk-NOODWMCL.js → chunk-O6CMPO65.js} +25 -2
- package/dist/chunks/{chunk-BIPYLLVS.js → chunk-OAE3AZBQ.js} +15 -15
- package/dist/chunks/chunk-P5GQRWDC.js +60 -0
- package/dist/chunks/{caizhilian-SAADNFD6.js → chunk-PGO4ILMQ.js} +44 -517
- package/dist/chunks/{chunk-2LV74IWP.js → chunk-Q4OYAQYH.js} +1 -1
- package/dist/chunks/{chunk-LDZQPUIA.js → chunk-T4MWQAQB.js} +8 -6
- package/dist/chunks/{chunk-BBKDXQEC.js → chunk-TGAGQV4I.js} +3 -3
- package/dist/chunks/{chunk-GPMFD4RD.js → chunk-TXUG266F.js} +1 -1
- package/dist/chunks/{chunk-FOAA27U5.js → chunk-U6R6FZHD.js} +184 -18
- package/dist/chunks/{chunk-LUSPKZKY.js → chunk-UG5G54VL.js} +1 -0
- package/dist/chunks/{chunk-NIAJ5ZCG.js → chunk-UL5XUQ25.js} +5 -2
- package/dist/chunks/{chunk-IZ7S7QUS.js → chunk-VIMCY4DI.js} +6 -6
- package/dist/chunks/chunk-VRPH24IC.js +76 -0
- package/dist/chunks/{chunk-FMPJJYYI.js → chunk-WRXSAVKO.js} +1 -1
- package/dist/chunks/{chunk-YRSZQUD2.js → chunk-YIKSL36S.js} +3 -3
- package/dist/chunks/{chunk-3SO6QL6U.js → chunk-YWX377BY.js} +5 -2
- package/dist/chunks/{chunk-BYATLLEF.js → chunk-Z3GDFVJR.js} +1 -1
- package/dist/chunks/{chunk-LADPYOWC.js → chunk-Z6UUBY37.js} +3 -3
- package/dist/chunks/{conflict-F2OMZRTO.js → conflict-IYJETSGT.js} +4 -3
- package/dist/chunks/{continuation-2CKSBLA6.js → continuation-3S37AUSH.js} +4 -3
- package/dist/chunks/{continuation-RN6PZN2M.js → continuation-3XLYYTKV.js} +4 -3
- package/dist/chunks/continuation-GW6PRWK3.js +12 -0
- package/dist/chunks/{continuation-HZIZRZBX.js → continuation-HFW2YT5S.js} +4 -3
- package/dist/chunks/{continuation-NLECEJPX.js → continuation-KI7DRRZN.js} +4 -3
- package/dist/chunks/{contract-5BETHRSG.js → contract-3QLAGYQL.js} +5803 -4593
- package/dist/chunks/{cowork-3MN6EQQO.js → cowork-3ACICHDQ.js} +11 -4
- package/dist/chunks/{create-flow-5FQNNMVO.js → create-flow-7JLC7UID.js} +8 -7
- package/dist/chunks/{ebuilder-form-SBHOYBUD.js → ebuilder-form-GWDTKEI2.js} +14 -9
- package/dist/chunks/{ehr-KMOJULKG.js → ehr-MYRDCHZ4.js} +357 -43
- package/dist/chunks/{employee-SAK2QYXX.js → employee-NOHNXC46.js} +3 -3
- package/dist/chunks/{env-LB7NBL2O.js → env-3MBHAWBL.js} +4 -3
- package/dist/chunks/{esb-W2PJCFCX.js → esb-4BQHNP5C.js} +12 -7
- package/dist/chunks/{factory-6ZFQXQ46.js → factory-TZEVU4DU.js} +3 -2
- package/dist/chunks/{fna-ZQPCUV4R.js → fna-ZVB2IILI.js} +14 -8
- package/dist/chunks/{group-chat-2HHAJN46.js → group-chat-KL3HFKRM.js} +5 -4
- package/dist/chunks/{host-YTODKMSL.js → host-3TNBMDTR.js} +5 -5
- package/dist/chunks/host-7NTIBSPK.js +25 -0
- package/dist/chunks/{host-4CBHGOHT.js → host-7OWWPLM4.js} +5 -5
- package/dist/chunks/{host-ATKVNZAT.js → host-G3VU7SDW.js} +5 -5
- package/dist/chunks/{host-BQH22NTQ.js → host-M4XP5URR.js} +5 -5
- package/dist/chunks/{host-X2CSLFM6.js → host-TUOIOEMC.js} +5 -5
- package/dist/chunks/{hrm-FFM4UJFS.js → hrm-UNKCCCGP.js} +11 -7
- package/dist/chunks/{im-VEHKDQPB.js → im-NJB7ZYMH.js} +8 -7
- package/dist/chunks/{invoice-LVIKSIIF.js → invoice-OQP3TMKQ.js} +636 -1768
- package/dist/chunks/{jiuchuanhui-X6DINO5P.js → jiuchuanhui-ASFZBMPU.js} +14 -6
- package/dist/chunks/{lazy-dispatch-KSWTN5L6.js → lazy-dispatch-UH6HGK2I.js} +7 -6
- package/dist/chunks/{mail-VDKRGUD3.js → mail-M3HJF5ER.js} +16 -14
- package/dist/chunks/{meeting-CLC6HP3Z.js → meeting-C67EHQ4Z.js} +21 -14
- package/dist/chunks/{okr-CHG4OO3U.js → okr-EVX7FB5G.js} +12 -5
- package/dist/chunks/{operations-5QL3AECO.js → operations-62N6EP3C.js} +4 -3
- package/dist/chunks/operations-J7PUIVWZ.js +15 -0
- package/dist/chunks/{plan-XWR75667.js → plan-2QJQEPBO.js} +12 -5
- package/dist/chunks/{project-5BXOOKMG.js → project-XELELW2T.js} +11 -4
- package/dist/chunks/reception-5WITA44R.js +1899 -0
- package/dist/chunks/{recruit-stage-DGMFNNDE.js → recruit-stage-AHY5QAMF.js} +745 -149
- package/dist/chunks/{registry-RHMW6ANW.js → registry-AQVGHUM6.js} +7 -6
- package/dist/chunks/{registry-OZSMDVPP.js → registry-PVUZQDDQ.js} +3 -3
- package/dist/chunks/{registry-7FFOXIAW.js → registry-QJCZ2GVG.js} +7 -6
- package/dist/chunks/{registry-Z43434VG.js → registry-VWXWPVAG.js} +4 -4
- package/dist/chunks/registry-XPWPGHYE.js +24 -0
- package/dist/chunks/{room-recommend-62H7ZQQ6.js → room-recommend-CNWE5WQK.js} +8 -5
- package/dist/chunks/{schedule-FNXKH3DQ.js → schedule-YYNYBQIE.js} +6 -5
- package/dist/chunks/{workflow-ADHKCAJK.js → workflow-BSYT5TGL.js} +15 -8
- package/dist/cmd/action.js +6 -0
- package/dist/cmd/identity/index.js +45 -0
- package/dist/cmd/index.js +2 -0
- package/dist/core/continuation-ttl.js +18 -0
- package/dist/core/error-codes.js +85 -0
- package/dist/core/logger.js +11 -0
- package/dist/index.js +37 -31
- package/dist/internal/e10/auth/commands.js +195 -8
- package/dist/internal/e10/auth/error-log.js +312 -0
- package/dist/internal/e10/auth/session.js +17 -3
- package/dist/internal/e10/auth/xiaoe.js +176 -13
- package/dist/internal/e10/auth-recovery.js +39 -12
- package/dist/internal/e10/context.js +29 -3
- package/dist/internal/skills/install.js +9 -1
- package/dist/shortcuts/archive/continuation.js +2 -1
- package/dist/shortcuts/archive/index.js +3 -0
- package/dist/shortcuts/archive/operations/borrow-list.js +105 -14
- package/dist/shortcuts/archive/operations/confirm.js +2 -1
- package/dist/shortcuts/archive/operations/flow-url.js +182 -22
- package/dist/shortcuts/archive/operations/getPageUrl.js +75 -0
- package/dist/shortcuts/archive/operations/prelib.js +33 -4
- package/dist/shortcuts/archive/operations/shared.js +52 -0
- package/dist/shortcuts/archive-oa/continuation.js +2 -1
- package/dist/shortcuts/archive-oa/index.js +2 -0
- package/dist/shortcuts/archive-oa/operations/confirm.js +2 -1
- package/dist/shortcuts/asset/continuation.js +2 -1
- package/dist/shortcuts/asset/index.js +2 -0
- package/dist/shortcuts/asset-idle/index.js +2 -0
- package/dist/shortcuts/blog/continuation.js +2 -1
- package/dist/shortcuts/blog/index.js +2 -0
- package/dist/shortcuts/caizhilian/continuation.js +2 -1
- package/dist/shortcuts/caizhilian/index.js +2 -0
- package/dist/shortcuts/caizhilian/operations/confirm.js +3 -2
- package/dist/shortcuts/calendar/continuation.js +2 -1
- package/dist/shortcuts/calendar/index.js +2 -0
- package/dist/shortcuts/calendar/operations/write.js +1 -1
- package/dist/shortcuts/contract/continuation.js +2 -1
- package/dist/shortcuts/contract/host.js +111 -4
- package/dist/shortcuts/contract/index.js +21 -0
- package/dist/shortcuts/contract/manifest.js +125 -0
- package/dist/shortcuts/contract/ooxml/clause-insert.js +249 -0
- package/dist/shortcuts/contract/operations/clause-insert.js +56 -0
- package/dist/shortcuts/contract/operations/customer.js +192 -0
- package/dist/shortcuts/contract/operations/file-download.js +75 -0
- package/dist/shortcuts/contract/operations/flow.js +44 -2
- package/dist/shortcuts/contract/operations/form-info.js +162 -62
- package/dist/shortcuts/contract/operations/registry.js +8 -0
- package/dist/shortcuts/contract/operations/review.js +116 -1
- package/dist/shortcuts/contract/operations/summary.js +177 -0
- package/dist/shortcuts/contract/operations/upload.js +64 -4
- package/dist/shortcuts/contract/operations/write.js +2 -1
- package/dist/shortcuts/contract/upload-cache.js +104 -0
- package/dist/shortcuts/cowork/continuation.js +2 -1
- package/dist/shortcuts/cowork/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/continuation.js +2 -1
- package/dist/shortcuts/ebuilder-form/index.js +2 -0
- package/dist/shortcuts/ebuilder-form/operations/write.js +3 -2
- package/dist/shortcuts/ehr/continuation.js +2 -1
- package/dist/shortcuts/ehr/index.js +2 -0
- package/dist/shortcuts/ehr/operations/attend-write.js +1 -1
- package/dist/shortcuts/ehr/operations/recruit-candidate-import.js +186 -5
- package/dist/shortcuts/ehr/operations/recruit-position.js +239 -6
- package/dist/shortcuts/ehr/operations/recruit-write.js +18 -19
- package/dist/shortcuts/ehr/operations/recruit.js +17 -5
- package/dist/shortcuts/esb/continuation.js +2 -1
- package/dist/shortcuts/esb/index.js +2 -0
- package/dist/shortcuts/esb/operations/trigger.js +2 -1
- package/dist/shortcuts/fna/continuation.js +2 -1
- package/dist/shortcuts/fna/index.js +2 -0
- package/dist/shortcuts/fna/operations/invoice-writeoff.js +1 -1
- package/dist/shortcuts/fna/operations/loan.js +1 -1
- package/dist/shortcuts/hrm/index.js +2 -0
- package/dist/shortcuts/hrm/operations/employee.js +29 -1
- package/dist/shortcuts/im/continuation.js +2 -1
- package/dist/shortcuts/index.js +5 -0
- package/dist/shortcuts/invoice/continuation.js +2 -1
- package/dist/shortcuts/invoice/index.js +14 -15
- package/dist/shortcuts/invoice/invoice-record.js +93 -0
- package/dist/shortcuts/invoice/manifest.js +190 -393
- package/dist/shortcuts/invoice/operations/add.js +2 -1
- package/dist/shortcuts/invoice/operations/delete.js +2 -1
- package/dist/shortcuts/invoice/operations/import.js +2 -1
- package/dist/shortcuts/invoice/operations/issuing-contract-detail.js +86 -0
- package/dist/shortcuts/invoice/operations/issuing-contracts.js +210 -0
- package/dist/shortcuts/invoice/operations/registry.js +17 -17
- package/dist/shortcuts/invoice/operations/reim-auto.js +4 -569
- package/dist/shortcuts/invoice/operations/reim.js +52 -341
- package/dist/shortcuts/invoice/operations/shared.js +21 -4
- package/dist/shortcuts/invoice/operations/update.js +2 -1
- package/dist/shortcuts/invoice/projection.js +10 -62
- package/dist/shortcuts/jiuchuanhui/continuation.js +2 -1
- package/dist/shortcuts/jiuchuanhui/index.js +2 -0
- package/dist/shortcuts/jiuchuanhui/operations/datajson.js +2 -1
- package/dist/shortcuts/jiuchuanhui/operations/esb.js +2 -1
- package/dist/shortcuts/mail/continuation.js +2 -1
- package/dist/shortcuts/mail/index.js +2 -0
- package/dist/shortcuts/mail/operations/mail-blacklist.js +1 -1
- package/dist/shortcuts/mail/operations/mail-contacts.js +1 -1
- package/dist/shortcuts/mail/operations/mail-send.js +1 -1
- package/dist/shortcuts/mail/operations/mail-sign.js +1 -1
- package/dist/shortcuts/mail/operations/mail-template.js +1 -1
- package/dist/shortcuts/meeting/continuation.js +2 -1
- package/dist/shortcuts/meeting/index.js +2 -0
- package/dist/shortcuts/meeting/operations/change.js +1 -1
- package/dist/shortcuts/meeting/operations/create.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/create-flow.js +198 -65
- package/dist/shortcuts/meeting/operations/eb/decision.js +1 -1
- package/dist/shortcuts/meeting/operations/eb/draft-memory.js +56 -0
- package/dist/shortcuts/meeting/operations/eb/factory.js +59 -4
- package/dist/shortcuts/meeting/operations/eb/person-cache.js +2 -2
- package/dist/shortcuts/meeting/operations/eb/room-recommend.js +47 -5
- package/dist/shortcuts/meeting/operations/invitation-publish.js +132 -0
- package/dist/shortcuts/meeting/operations/lifecycle.js +1 -1
- package/dist/shortcuts/meeting/operations/receipts.js +1 -1
- package/dist/shortcuts/meeting/operations/registry.js +2 -0
- package/dist/shortcuts/meeting/operations/signs.js +1 -1
- package/dist/shortcuts/okr/continuation.js +2 -1
- package/dist/shortcuts/okr/index.js +2 -0
- package/dist/shortcuts/okr/operations/write.js +1 -1
- package/dist/shortcuts/plan/continuation.js +2 -1
- package/dist/shortcuts/plan/index.js +2 -0
- package/dist/shortcuts/plan/operations/write.js +1 -1
- package/dist/shortcuts/project/continuation.js +2 -1
- package/dist/shortcuts/project/index.js +2 -0
- package/dist/shortcuts/reception/constants.js +53 -0
- package/dist/shortcuts/reception/errors.js +54 -0
- package/dist/shortcuts/reception/host.js +125 -0
- package/dist/shortcuts/reception/index.js +198 -0
- package/dist/shortcuts/reception/manifest.js +177 -0
- package/dist/shortcuts/reception/operations/ask.js +71 -0
- package/dist/shortcuts/reception/operations/browsertool.js +58 -0
- package/dist/shortcuts/reception/operations/compose.js +129 -0
- package/dist/shortcuts/reception/operations/customparams.js +74 -0
- package/dist/shortcuts/reception/operations/doc.js +238 -0
- package/dist/shortcuts/reception/operations/docrender.js +36 -0
- package/dist/shortcuts/reception/operations/panels.js +179 -0
- package/dist/shortcuts/reception/operations/registry.js +26 -0
- package/dist/shortcuts/reception/operations/render-assets.js +184 -0
- package/dist/shortcuts/reception/operations/render.js +123 -0
- package/dist/shortcuts/reception/operations/runs.js +38 -0
- package/dist/shortcuts/reception/operations/schedule.js +127 -0
- package/dist/shortcuts/reception/operations/shared.js +196 -0
- package/dist/shortcuts/reception/operations/snapshot.js +68 -0
- package/dist/shortcuts/reception/operations/types.js +1 -0
- package/dist/shortcuts/reception/operations.js +33 -0
- package/dist/shortcuts/reception/upload.js +218 -0
- package/dist/shortcuts/recruit-stage/context.js +145 -33
- package/dist/shortcuts/recruit-stage/continuation.js +2 -1
- package/dist/shortcuts/recruit-stage/operations/interview-arrange.js +86 -16
- package/dist/shortcuts/recruit-stage/operations/interview-feedback.js +6 -4
- package/dist/shortcuts/recruit-stage/operations/jd-create.js +289 -48
- package/dist/shortcuts/recruit-stage/operations/resume-import.js +207 -25
- package/dist/shortcuts/recruit-stage/shared.js +161 -18
- package/dist/shortcuts/workflow/continuation.js +2 -1
- package/dist/shortcuts/workflow/index.js +4 -0
- package/dist/shortcuts/workflow/operations/form.js +32 -8
- package/dist/shortcuts/workflow/operations/read.js +8 -3
- package/dist/shortcuts/workflow/operations/todoSmartConvert/aigroupRules.js +92 -5
- package/dist/shortcuts/workflow/operations/todoSmartConvert/priorityExpr.js +509 -0
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoListRows.js +22 -1
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.collect.js +32 -6
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.core.js +57 -11
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.group.js +165 -52
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.js +57 -14
- package/dist/shortcuts/workflow/operations/todoSmartConvert/todoSmartConvert.smartGroup.js +44 -18
- package/dist/shortcuts/workflow/operations/write.js +1 -1
- package/docs/_catalog.md +3 -0
- package/docs/agent-invoice.md +1 -1
- package/docs/archive-oa.md +1 -1
- package/docs/caizhilian.md +1 -1
- package/docs/calendar.md +1 -1
- package/docs/contract.md +2 -1
- package/docs/e10-auth.md +19 -1
- package/docs/ehr.md +2 -2
- package/docs/esb.md +1 -1
- package/docs/im.md +1 -1
- package/docs/invoice.md +8 -12
- package/docs/okr.md +1 -1
- package/docs/reception.md +119 -0
- package/docs/todo-smart-convert/data-contract.md +7 -0
- package/package.json +1 -1
- package/scripts/clean.mjs +43 -2
- package/skill-template/business-info.json +18 -2
- package/skill-template/domains/caizhilian.md +1 -1
- package/skill-template/domains/jinchengda.md +2 -0
- package/skill-template/domains/reception-flow.md +18 -0
- package/skill-template/domains/yepiaotong.md +4 -7
- package/skills/weaver-e10-archive-oa/references/source-manifest.json +14 -14
- package/skills/weaver-e10-blog/references/blog-publish.md +1 -1
- package/skills/weaver-e10-blog/references/source-manifest.json +7 -7
- package/skills/weaver-e10-caizhilian/references/source-manifest.json +21 -21
- package/skills/weaver-e10-caizhilian/references/write-protocol.md +2 -2
- package/skills/weaver-e10-calendar/references/calendar-write.md +1 -1
- package/skills/weaver-e10-cowork/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/SKILL.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/custom-api.md +1 -1
- package/skills/weaver-e10-ebuilder-form/references/openapi-write.md +1 -1
- package/skills/weaver-e10-esb/SKILL.md +2 -2
- package/skills/weaver-e10-esb/references/source-manifest.json +22 -22
- package/skills/weaver-e10-esb/references/trigger.md +2 -2
- package/skills/weaver-e10-jinchengda/SKILL.md +198 -205
- package/skills/weaver-e10-jinchengda/references/contract-action-card.md +759 -0
- package/skills/weaver-e10-jinchengda/references/contract-action-engine.md +250 -0
- package/skills/weaver-e10-jinchengda/references/contract-ai-review.md +146 -7
- package/skills/weaver-e10-jinchengda/references/contract-clause-insert.md +178 -0
- package/skills/weaver-e10-jinchengda/references/contract-clause-library-crud.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-clause-reference-save.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-command-index.md +75 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report-template.html +137 -0
- package/skills/weaver-e10-jinchengda/references/contract-compare-report.md +163 -0
- package/skills/weaver-e10-jinchengda/references/contract-credit-page.md +52 -3
- package/skills/weaver-e10-jinchengda/references/contract-doc-compare.md +92 -5
- package/skills/weaver-e10-jinchengda/references/contract-doc-triage.md +602 -0
- package/skills/weaver-e10-jinchengda/references/contract-element-extract.md +209 -0
- package/skills/weaver-e10-jinchengda/references/contract-execution-rules.md +126 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-new-customer.md +312 -0
- package/skills/weaver-e10-jinchengda/references/contract-field-extract-other-flows.md +555 -0
- package/skills/weaver-e10-jinchengda/references/contract-flow-launch.md +47 -12
- package/skills/weaver-e10-jinchengda/references/contract-object-detect.md +469 -0
- package/skills/weaver-e10-jinchengda/references/contract-quote-to-contract.md +154 -1
- package/skills/weaver-e10-jinchengda/references/contract-request-write.md +1 -1
- package/skills/weaver-e10-jinchengda/references/contract-type-fingerprints.md +224 -0
- package/skills/weaver-e10-jinchengda/references/orchestration.md +355 -0
- package/skills/weaver-e10-jinchengda/references/source-manifest.json +29 -29
- package/skills/weaver-e10-jucailin/SKILL.md +1 -1
- package/skills/weaver-e10-jucailin/references/attend-write.md +2 -2
- package/skills/weaver-e10-jucailin/references/recruit-create.md +15 -4
- package/skills/weaver-e10-jucailin/references/recruit-write.md +3 -3
- package/skills/weaver-e10-meeting/SKILL.md +64 -14
- package/skills/weaver-e10-meeting/references/meeting-change.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-create.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-lifecycle.md +1 -1
- package/skills/weaver-e10-meeting/references/meeting-verification.md +1 -1
- package/skills/weaver-e10-okr/references/okr-align.md +1 -1
- package/skills/weaver-e10-okr/references/okr-keyresult.md +1 -1
- package/skills/weaver-e10-okr/references/okr-write.md +1 -1
- package/skills/weaver-e10-okr/references/source-manifest.json +8 -8
- package/skills/weaver-e10-plan/references/plan-report-write.md +1 -1
- package/skills/weaver-e10-plan/references/source-manifest.json +20 -20
- package/skills/weaver-e10-qiyecheng/references/loan-management.md +1 -1
- package/skills/weaver-e10-qiyecheng/references/source-manifest.json +18 -18
- package/skills/weaver-e10-reception-flow/SKILL.md +173 -0
- package/skills/weaver-e10-reception-flow/assets//350/241/214/347/250/213/345/215/225/346/250/241/346/235/277-/346/263/233/345/276/256.docx +0 -0
- package/skills/weaver-e10-reception-flow/data/fields-snapshot.json +213 -0
- package/skills/weaver-e10-reception-flow/references/browsertool.md +68 -0
- package/skills/weaver-e10-reception-flow/references/env-pitfalls.md +51 -0
- package/skills/weaver-e10-reception-flow/references/fields-snapshot.md +227 -0
- package/skills/weaver-e10-reception-flow/references/guide.md +179 -0
- package/skills/weaver-e10-reception-flow/scripts/locate.sh +14 -0
- package/skills/weaver-e10-reception-flow/scripts/render.py +724 -0
- package/skills/weaver-e10-recruit-stage/SKILL.md +19 -10
- package/skills/weaver-e10-recruit-stage/agents/openai.yaml +10 -2
- package/skills/weaver-e10-recruit-stage/lib/recruit-xiaoe-file.mjs +1 -1
- package/skills/weaver-e10-recruit-stage/lib/xiaoe-session.mjs +66 -0
- package/skills/weaver-e10-recruit-stage/references/position-templates.md +204 -0
- package/skills/weaver-e10-recruit-stage/references/recruit-arrange-interview.md +13 -1
- package/skills/weaver-e10-recruit-stage/references/recruit-jd-create.md +29 -6
- package/skills/weaver-e10-recruit-stage/references/recruit-output-links.md +27 -14
- package/skills/weaver-e10-recruit-stage/references/recruit-resume-import.md +21 -2
- package/skills/weaver-e10-shared/references/e10-auth-and-session.md +9 -1
- package/skills/weaver-e10-shijingran/SKILL.md +5 -5
- package/skills/weaver-e10-shijingran/references/source-manifest.json +37 -36
- package/skills/weaver-e10-skill-maker/references/module-cli-generation.md +2 -0
- package/skills/weaver-e10-wenshuding/SKILL.md +17 -7
- package/skills/weaver-e10-wenshuding/references/archive-borrow-list.md +28 -0
- package/skills/weaver-e10-wenshuding/references/archive-flow.md +24 -8
- package/skills/weaver-e10-wenshuding/references/archive-prelib-list.md +3 -0
- package/skills/weaver-e10-wenshuding/references/archive-prelib-open.md +4 -0
- package/skills/weaver-e10-wenshuding/references/archive-search.md +3 -1
- package/skills/weaver-e10-wenshuding/references/source-manifest.json +3 -3
- package/skills/weaver-e10-workflow/SKILL.md +19 -17
- package/skills/weaver-e10-workflow/aigroup/default.json +10 -6
- package/skills/weaver-e10-workflow/references/source-manifest.json +32 -32
- package/skills/weaver-e10-workflow/references/todo-smart-convert.md +36 -3
- package/skills/weaver-e10-workflow/references/workflow-memory.md +1 -1
- package/skills/weaver-e10-workflow/references/workflow-query.md +9 -6
- package/skills/weaver-e10-workflow/tools/todo-summary.cjs +152 -1
- package/skills/weaver-e10-yepiaotong/SKILL.md +19 -26
- package/skills/weaver-e10-yepiaotong/references/invoice-detail.md +13 -10
- package/skills/weaver-e10-yepiaotong/references/invoice-enterprise-list.md +2 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-workflow.md +194 -155
- package/skills/weaver-e10-yepiaotong/references/invoice-output-view.md +28 -32
- package/skills/weaver-e10-yepiaotong/references/invoice-personal-list.md +5 -1
- package/skills/weaver-e10-yepiaotong/references/invoice-reim.md +8 -10
- package/skills/weaver-e10-yepiaotong/references/reim-api-reference.md +211 -616
- package/skills/weaver-e10-yepiaotong/references/reim-examples.md +149 -117
- package/skills/weaver-e10-yepiaotong/references/reim-expense-subject-rules.md +17 -20
- package/skills/weaver-e10-yepiaotong/references/reim-form-fill-rules.md +20 -39
- package/skills/weaver-e10-yepiaotong/references/reim-matching-rules.md +55 -22
- package/skills/weaver-e10-yepiaotong/references/reim-phone-subsidy-rules.md +7 -17
- package/skills/weaver-e10-yepiaotong/references/reim-workflow.md +88 -92
- package/skills/weaver-e10-yepiaotong/references/source-manifest.json +144 -354
- package/skills/weaver-e10-yimiaoban/SKILL.md +18 -6
- package/skills/weaver-e10-yimiaoban/references/msg-write.md +31 -1
- package/skills/weaver-e10-yimiaoban/references/safety-boundaries.md +1 -1
- package/skills/weaver-e10-yimiaoban/references/session-sysmsg.md +72 -0
- package/skills/weaver-e10-yimiaoban/references/source-manifest.json +11 -11
- package/dist/chunks/chunk-TTPJJJC4.js +0 -465
- package/dist/chunks/registry-BKBZPBAJ.js +0 -23
- package/dist/shortcuts/invoice/markdown.js +0 -172
- package/dist/shortcuts/invoice/operations/issuing-qys.js +0 -424
- package/skills/weaver-e10-meeting.zip +0 -0
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-examples.md +0 -131
- package/skills/weaver-e10-yepiaotong/references/invoice-issuing-form-fill-rules.md +0 -179
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
import { randomUUID } from 'node:crypto';
|
|
2
|
-
import { InvoiceCliError, invoiceValidationError } from '../errors.js';
|
|
3
|
-
import { asNonEmptyString, assertBusinessSuccess } from './shared.js';
|
|
4
|
-
const LEDGER_PATH = '/api/ebuilder/form/list/getListDatas';
|
|
5
|
-
const LEDGER_LIST_ID = '1201416963938369627';
|
|
6
|
-
const LEDGER_PASS_ID = '1201416959744065575';
|
|
7
|
-
const LEDGER_APP_ID = '846297243998732291';
|
|
8
|
-
const LEDGER_MENU_ID = '5416292802968839298';
|
|
9
|
-
/** urlPageTitle:合同商品信息 */
|
|
10
|
-
const LEDGER_PAGE_TITLE = '5ZCI5ZCM5ZWG5ZOB5L+h5oGv';
|
|
11
|
-
const LEDGER_PAGE_SIZE = 50;
|
|
12
|
-
const LEDGER_MAX_PAGES = 40;
|
|
13
|
-
/** 待开票合同数据:数据 key → 可读字段。含契约锁、泛微及其他合同。 */
|
|
14
|
-
export const QYS_LEDGER_FIELDS = [
|
|
15
|
-
{ id: '1314988311673275798', key: 'contractNo', label: '合同号', kind: 'text' },
|
|
16
|
-
{ id: '1314988311673275801', key: 'contractFlow', label: '合同审批流程', kind: 'relation' },
|
|
17
|
-
{ id: '1314988311673275775', key: 'contractCategory', label: '合同种类', kind: 'text' },
|
|
18
|
-
{ id: '1314988311673275790', key: 'productType', label: '产品类型', kind: 'option' },
|
|
19
|
-
{ id: '1314988311673275776', key: 'productTypeDetail', label: '产品类型明细', kind: 'text' },
|
|
20
|
-
{ id: '1314988311673275783', key: 'accountingCompany', label: '核算公司', kind: 'option' },
|
|
21
|
-
{ id: '1314988311673275784', key: 'invoiceGroupFlag', label: '开票分组标识', kind: 'number' },
|
|
22
|
-
{ id: '1314988311673275793', key: 'sourceFlag', label: '来源标识', kind: 'text' },
|
|
23
|
-
{ id: '1314988311673275808', key: 'flowDetailId', label: '流程明细的id', kind: 'text' },
|
|
24
|
-
{ id: '1314988311673275781', key: 'invoiceType', label: '发票类型', kind: 'option' },
|
|
25
|
-
{ id: '1314988311673275806', key: 'purchaserName', label: '购买方名称', kind: 'text' },
|
|
26
|
-
{ id: '1314988311673275807', key: 'purchaserTaxNo', label: '购买方税号', kind: 'text' },
|
|
27
|
-
{ id: '1314988311673275809', key: 'purchaserAddress', label: '购买方地址', kind: 'text' },
|
|
28
|
-
{ id: '1314988311673275810', key: 'purchaserTel', label: '购买方电话', kind: 'text' },
|
|
29
|
-
{ id: '1314988311673275811', key: 'purchaserBankName', label: '购买方开户行', kind: 'text' },
|
|
30
|
-
{ id: '1314988311673275802', key: 'purchaserBankAccount', label: '购买方开户行账号', kind: 'text' },
|
|
31
|
-
{ id: '1314988311673275800', key: 'invoiceItemName', label: '开票名称', kind: 'text' },
|
|
32
|
-
{ id: '1314988311673275799', key: 'goodsName', label: '商品名称', kind: 'text' },
|
|
33
|
-
{ id: '1314988311673275803', key: 'revenueCode', label: '商品税收分类编码', kind: 'text' },
|
|
34
|
-
{ id: '1314988311673275804', key: 'taxRate', label: '商品税率', kind: 'relation' },
|
|
35
|
-
{ id: '1314988311673275780', key: 'specification', label: '规格型号', kind: 'text' },
|
|
36
|
-
{ id: '1314988311673275785', key: 'unit', label: '单位', kind: 'text' },
|
|
37
|
-
{ id: '1314988311673275805', key: 'quantity', label: '商品数量', kind: 'number' },
|
|
38
|
-
{ id: '1314988311673275794', key: 'unitPrice', label: '商品单价', kind: 'money' },
|
|
39
|
-
{ id: '1314988311673275795', key: 'amount', label: '开票金额', kind: 'money' },
|
|
40
|
-
{ id: '1314988311673275789', key: 'uninvoicedAmount', label: '未开票金额', kind: 'money' },
|
|
41
|
-
{ id: '1314988311673275787', key: 'invoicedAmount', label: '已开票金额', kind: 'money' },
|
|
42
|
-
{ id: '1314988311673275788', key: 'invoicingAmount', label: '开票中金额', kind: 'money' },
|
|
43
|
-
{ id: '1314988311673275777', key: 'amountDiffers', label: '开票金额存在差异', kind: 'option' },
|
|
44
|
-
{ id: '1314988311673275796', key: 'thirdPartyPurchase', label: '是否三方采购商品', kind: 'option' },
|
|
45
|
-
{ id: '1314988311673275812', key: 'invoiceNo', label: '发票号码', kind: 'text' },
|
|
46
|
-
{ id: '1314988311673275797', key: 'invoiceFlow', label: '开票流程ID', kind: 'relation' },
|
|
47
|
-
{ id: '1314988311673275791', key: 'invoiceDate', label: '开票时间', kind: 'date' },
|
|
48
|
-
{ id: '1314988311673275792', key: 'discarded', label: '是否废弃', kind: 'option' },
|
|
49
|
-
{ id: '1314988311673275778', key: 'discardedDate', label: '废弃时间', kind: 'date' },
|
|
50
|
-
{ id: '1314988311673275779', key: 'contactName', label: '客户联系人', kind: 'text' },
|
|
51
|
-
{ id: '1314988311673275782', key: 'contactPhone', label: '客户联系人电话', kind: 'text' },
|
|
52
|
-
{ id: '1314988311673275786', key: 'contactEmail', label: '客户联系人邮箱', kind: 'text' },
|
|
53
|
-
];
|
|
54
|
-
function textValue(value) {
|
|
55
|
-
if (value === undefined || value === null)
|
|
56
|
-
return null;
|
|
57
|
-
const text = String(value);
|
|
58
|
-
return text.trim() === '' ? null : text;
|
|
59
|
-
}
|
|
60
|
-
function optionValue(value) {
|
|
61
|
-
const first = Array.isArray(value) ? value[0] : value;
|
|
62
|
-
if (!first || typeof first !== 'object')
|
|
63
|
-
return null;
|
|
64
|
-
const item = first;
|
|
65
|
-
const id = textValue(item.id);
|
|
66
|
-
const name = textValue(item.name);
|
|
67
|
-
if (id === null && name === null)
|
|
68
|
-
return null;
|
|
69
|
-
return { id: id ?? '', name: name ?? '' };
|
|
70
|
-
}
|
|
71
|
-
export function convertQysLedgerRow(raw) {
|
|
72
|
-
const formDataId = textValue(raw.form_data_id) ?? textValue(raw.id);
|
|
73
|
-
if (!formDataId)
|
|
74
|
-
throw invoiceValidationError('ledger_row_invalid', '台账行缺少 form_data_id');
|
|
75
|
-
const row = {
|
|
76
|
-
formDataId,
|
|
77
|
-
title: textValue(raw.name),
|
|
78
|
-
dataStatus: optionValue(raw.data_status)?.name ?? null,
|
|
79
|
-
};
|
|
80
|
-
for (const field of QYS_LEDGER_FIELDS) {
|
|
81
|
-
const value = raw[field.id];
|
|
82
|
-
row[field.key] = field.kind === 'option' || field.kind === 'relation' ? optionValue(value) : textValue(value);
|
|
83
|
-
}
|
|
84
|
-
return row;
|
|
85
|
-
}
|
|
86
|
-
function toCents(value, name) {
|
|
87
|
-
if (value === null || !/^\d+(?:\.\d{1,2})?$/u.test(value)) {
|
|
88
|
-
throw invoiceValidationError('ledger_amount_invalid', `${name} 必须是最多两位小数的非负金额,当前值:${value ?? '空'}`);
|
|
89
|
-
}
|
|
90
|
-
const [whole, fraction = ''] = value.split('.');
|
|
91
|
-
return Number(whole) * 100 + Number(fraction.padEnd(2, '0'));
|
|
92
|
-
}
|
|
93
|
-
function formatCents(cents) {
|
|
94
|
-
return `${Math.floor(cents / 100)}.${String(cents % 100).padStart(2, '0')}`;
|
|
95
|
-
}
|
|
96
|
-
function isPositiveCents(value) {
|
|
97
|
-
return value !== null && /^\d+(?:\.\d+)?$/u.test(value) && Number(value) > 0;
|
|
98
|
-
}
|
|
99
|
-
/** 已开票、开票中或已废弃的行不能再开票,返回原因;可开票时返回空数组。 */
|
|
100
|
-
export function qysRowBlockers(row) {
|
|
101
|
-
const blockers = [];
|
|
102
|
-
if (row.invoiceNo)
|
|
103
|
-
blockers.push(`已有发票号码 ${row.invoiceNo}`);
|
|
104
|
-
if (row.invoiceFlow)
|
|
105
|
-
blockers.push(`已关联开票流程 ${row.invoiceFlow.name || row.invoiceFlow.id}`);
|
|
106
|
-
if (isPositiveCents(row.invoicingAmount))
|
|
107
|
-
blockers.push(`开票中金额 ${row.invoicingAmount}`);
|
|
108
|
-
if (row.discarded?.name === '是' || row.discardedDate)
|
|
109
|
-
blockers.push('已废弃');
|
|
110
|
-
return blockers;
|
|
111
|
-
}
|
|
112
|
-
function parseSpan(value) {
|
|
113
|
-
if (typeof value === 'string' && value.trim().startsWith('[')) {
|
|
114
|
-
try {
|
|
115
|
-
return optionValue(JSON.parse(value));
|
|
116
|
-
}
|
|
117
|
-
catch {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return optionValue(value);
|
|
122
|
-
}
|
|
123
|
-
function cellText(data, display, key) {
|
|
124
|
-
const raw = data[key] !== undefined && data[key] !== null && data[key] !== '' ? data[key] : display[key];
|
|
125
|
-
return textValue(raw);
|
|
126
|
-
}
|
|
127
|
-
function moneyText(data, display, key) {
|
|
128
|
-
const text = cellText(data, display, key);
|
|
129
|
-
return text === null ? null : text.replace(/,/g, '');
|
|
130
|
-
}
|
|
131
|
-
/** 获取待开票合同数据:getListDatas 的 data / displayData 行,转成与旧列表相同的可读字段。 */
|
|
132
|
-
export function convertPendingLedgerRow(data, display = {}) {
|
|
133
|
-
const formDataId = textValue(data.form_data_id) ?? textValue(data.id);
|
|
134
|
-
if (!formDataId)
|
|
135
|
-
throw invoiceValidationError('ledger_row_invalid', '台账行缺少 form_data_id');
|
|
136
|
-
const statusText = textValue(display.data_status);
|
|
137
|
-
return {
|
|
138
|
-
formDataId,
|
|
139
|
-
title: textValue(data.name) ?? textValue(display.name),
|
|
140
|
-
dataStatus: statusText && !/^\d+$/u.test(statusText) ? statusText : null,
|
|
141
|
-
contractNo: cellText(data, display, 'hth'),
|
|
142
|
-
contractFlow: parseSpan(display.htsplcSpan),
|
|
143
|
-
contractCategory: cellText(data, display, 'htzl'),
|
|
144
|
-
productType: parseSpan(display.cplxSpan),
|
|
145
|
-
productTypeDetail: cellText(data, display, 'cplxmx'),
|
|
146
|
-
accountingCompany: parseSpan(display.hsgs_idSpan),
|
|
147
|
-
invoiceGroupFlag: cellText(data, display, 'kpfzbs'),
|
|
148
|
-
sourceFlag: cellText(data, display, 'lybs'),
|
|
149
|
-
flowDetailId: cellText(data, display, 'lcmxid'),
|
|
150
|
-
invoiceType: parseSpan(display.fplxSpan),
|
|
151
|
-
purchaserName: cellText(data, display, 'gmfmc'),
|
|
152
|
-
purchaserTaxNo: cellText(data, display, 'gmfsh'),
|
|
153
|
-
purchaserAddress: cellText(data, display, 'gmfdz'),
|
|
154
|
-
purchaserTel: cellText(data, display, 'gmfdh'),
|
|
155
|
-
purchaserBankName: cellText(data, display, 'gmfkhx'),
|
|
156
|
-
purchaserBankAccount: cellText(data, display, 'gmfkhxzh'),
|
|
157
|
-
invoiceItemName: cellText(data, display, 'kpmc'),
|
|
158
|
-
goodsName: cellText(data, display, 'spmc'),
|
|
159
|
-
revenueCode: cellText(data, display, 'spshflbm'),
|
|
160
|
-
taxRate: parseSpan(display.spslSpan),
|
|
161
|
-
specification: cellText(data, display, 'ggxh'),
|
|
162
|
-
unit: cellText(data, display, 'dw'),
|
|
163
|
-
quantity: cellText(data, display, 'spslkwk'),
|
|
164
|
-
unitPrice: moneyText(data, display, 'spdjkwk'),
|
|
165
|
-
amount: moneyText(data, display, 'kpje'),
|
|
166
|
-
uninvoicedAmount: moneyText(data, display, 'wkpje'),
|
|
167
|
-
invoicedAmount: moneyText(data, display, 'ykpje'),
|
|
168
|
-
invoicingAmount: moneyText(data, display, 'kpzje'),
|
|
169
|
-
amountDiffers: parseSpan(display.kpjeczcySpan),
|
|
170
|
-
thirdPartyPurchase: parseSpan(display.sfsfcgSpan),
|
|
171
|
-
invoiceNo: cellText(data, display, 'fphm'),
|
|
172
|
-
invoiceFlow: parseSpan(display.kplcidSpan),
|
|
173
|
-
invoiceDate: cellText(data, display, 'kpsj'),
|
|
174
|
-
discarded: parseSpan(display.sfzfSpan),
|
|
175
|
-
discardedDate: cellText(data, display, 'zfsj'),
|
|
176
|
-
contactName: cellText(data, display, 'khlxr'),
|
|
177
|
-
contactPhone: cellText(data, display, 'khlxdh'),
|
|
178
|
-
contactEmail: cellText(data, display, 'khlxyx'),
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
async function fetchLedgerPage(host, pageNo, tableuid, operation) {
|
|
182
|
-
const result = await host.invoiceRequest({
|
|
183
|
-
path: LEDGER_PATH,
|
|
184
|
-
query: { passid: LEDGER_PASS_ID, cid: LEDGER_PASS_ID },
|
|
185
|
-
headers: { ebbusinessid: LEDGER_LIST_ID },
|
|
186
|
-
operation,
|
|
187
|
-
body: {
|
|
188
|
-
current: pageNo,
|
|
189
|
-
pageSize: LEDGER_PAGE_SIZE,
|
|
190
|
-
requiredMatch: 1,
|
|
191
|
-
tableuid,
|
|
192
|
-
mapResult: '1',
|
|
193
|
-
recheckQuery: '1',
|
|
194
|
-
cusMenuId: LEDGER_MENU_ID,
|
|
195
|
-
urlPageTitle: LEDGER_PAGE_TITLE,
|
|
196
|
-
[`appId_${LEDGER_LIST_ID}`]: LEDGER_APP_ID,
|
|
197
|
-
searchParamData: {
|
|
198
|
-
searchType: '3',
|
|
199
|
-
quickSearchFields: {},
|
|
200
|
-
commonSearchFields: {},
|
|
201
|
-
type: 'and',
|
|
202
|
-
groupFields: {},
|
|
203
|
-
},
|
|
204
|
-
listId: LEDGER_LIST_ID,
|
|
205
|
-
isFollow: 0,
|
|
206
|
-
isShareToMe: 0,
|
|
207
|
-
filterCondition: {},
|
|
208
|
-
browser: 'Chrome',
|
|
209
|
-
},
|
|
210
|
-
});
|
|
211
|
-
assertBusinessSuccess(result, 'qys_ledger_query_failed', '获取待开票合同数据失败');
|
|
212
|
-
const payload = result?.data;
|
|
213
|
-
const dataRows = payload?.data;
|
|
214
|
-
const displayRows = payload?.displayData;
|
|
215
|
-
if (!Array.isArray(dataRows) || !Array.isArray(displayRows)) {
|
|
216
|
-
throw new InvoiceCliError('api', 'qys_ledger_query_failed', '获取待开票合同数据的返回缺少 data.data 或 data.displayData', { exitCode: 1 });
|
|
217
|
-
}
|
|
218
|
-
return dataRows.map((data, index) => ({
|
|
219
|
-
data,
|
|
220
|
-
display: displayRows[index] && typeof displayRows[index] === 'object' ? displayRows[index] : {},
|
|
221
|
-
}));
|
|
222
|
-
}
|
|
223
|
-
/** total / hasMore 不可靠,按本页未取满或出现重复行结束。 */
|
|
224
|
-
async function scanLedger(host, operation, visit) {
|
|
225
|
-
const tableuid = randomUUID().replace(/-/g, '');
|
|
226
|
-
const seen = new Set();
|
|
227
|
-
let scanned = 0;
|
|
228
|
-
for (let pageNo = 1; pageNo <= LEDGER_MAX_PAGES; pageNo += 1) {
|
|
229
|
-
const page = await fetchLedgerPage(host, pageNo, tableuid, operation);
|
|
230
|
-
let fresh = 0;
|
|
231
|
-
for (const pair of page) {
|
|
232
|
-
const row = convertPendingLedgerRow(pair.data, pair.display);
|
|
233
|
-
if (seen.has(row.formDataId))
|
|
234
|
-
continue;
|
|
235
|
-
seen.add(row.formDataId);
|
|
236
|
-
fresh += 1;
|
|
237
|
-
scanned += 1;
|
|
238
|
-
if (visit(row))
|
|
239
|
-
return { scanned, complete: true };
|
|
240
|
-
}
|
|
241
|
-
if (page.length < LEDGER_PAGE_SIZE || fresh === 0)
|
|
242
|
-
return { scanned, complete: true };
|
|
243
|
-
}
|
|
244
|
-
return { scanned, complete: false };
|
|
245
|
-
}
|
|
246
|
-
function matchesKeyword(row, keyword) {
|
|
247
|
-
const haystack = [row.contractNo, row.purchaserName, row.contractFlow?.name, row.goodsName, row.invoiceItemName, row.formDataId];
|
|
248
|
-
return haystack.some((value) => typeof value === 'string' && value.includes(keyword));
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* 台账常把开户行名称和账号一起写进「购买方开户行账号」(如 `招商银行福田支行 8135 8668 8310 001`)。
|
|
252
|
-
* 拆成名称与账号两段:账号取末尾(或开头)连续的数字段,原样保留其中的空格和连字符。
|
|
253
|
-
*/
|
|
254
|
-
export function splitBankNameAndAccount(bankName, bankAccount) {
|
|
255
|
-
const name = (bankName ?? '').trim();
|
|
256
|
-
const account = (bankAccount ?? '').trim();
|
|
257
|
-
const trailing = /^(.*?[^\d\s-])\s*(\d[\d\s-]*\d)$/u.exec(account);
|
|
258
|
-
const leading = trailing ? null : /^(\d[\d\s-]*\d)\s*([^\d\s-].*)$/u.exec(account);
|
|
259
|
-
const rawText = trailing ? trailing[1] : leading ? leading[2] : '';
|
|
260
|
-
const textPart = rawText
|
|
261
|
-
.replace(/[\s,,;;::]*(?:银行账号|银行帐号|账号|帐号|账户|帐户)?[\s,,;;::]*$/u, '')
|
|
262
|
-
.replace(/^[\s,,;;::]*(?:开户行|开户银行)?[\s,,;;::]*/u, '')
|
|
263
|
-
.trim();
|
|
264
|
-
const digitPart = trailing ? trailing[2] : leading ? leading[1] : '';
|
|
265
|
-
if (!textPart || !digitPart)
|
|
266
|
-
return { bankName: name, bankAccount: account, split: false };
|
|
267
|
-
return { bankName: name || textPart, bankAccount: digitPart, split: true };
|
|
268
|
-
}
|
|
269
|
-
export function isSpecialInvoiceTypeName(name) {
|
|
270
|
-
return name.includes('专票') || name.includes('专用发票');
|
|
271
|
-
}
|
|
272
|
-
/** 一张开票流程对应一个“合同号 + 购方”分组;金额只累计可开票行。 */
|
|
273
|
-
export class QysLedgerGrouper {
|
|
274
|
-
groups = new Map();
|
|
275
|
-
add(row, blocked) {
|
|
276
|
-
const contractNo = row.contractNo ?? '';
|
|
277
|
-
const purchaserName = row.purchaserName ?? '';
|
|
278
|
-
const key = `${contractNo}|${purchaserName}`;
|
|
279
|
-
let group = this.groups.get(key);
|
|
280
|
-
if (!group) {
|
|
281
|
-
group = {
|
|
282
|
-
contractNo,
|
|
283
|
-
contractFlowId: row.contractFlow?.id ?? '',
|
|
284
|
-
contractFlowName: row.contractFlow?.name ?? '',
|
|
285
|
-
purchaserName,
|
|
286
|
-
purchaserTaxNos: new Set(),
|
|
287
|
-
invoiceTypes: new Set(),
|
|
288
|
-
goodsNames: new Set(),
|
|
289
|
-
taxRates: new Set(),
|
|
290
|
-
specifications: new Set(),
|
|
291
|
-
sellerNames: new Set(),
|
|
292
|
-
bankName: null,
|
|
293
|
-
bankAccount: null,
|
|
294
|
-
formDataIds: [],
|
|
295
|
-
amountCents: 0,
|
|
296
|
-
invalidAmountRows: [],
|
|
297
|
-
blockedRows: 0,
|
|
298
|
-
};
|
|
299
|
-
this.groups.set(key, group);
|
|
300
|
-
}
|
|
301
|
-
if (row.accountingCompany?.name)
|
|
302
|
-
group.sellerNames.add(row.accountingCompany.name);
|
|
303
|
-
if (blocked) {
|
|
304
|
-
group.blockedRows += 1;
|
|
305
|
-
return;
|
|
306
|
-
}
|
|
307
|
-
group.formDataIds.push(row.formDataId);
|
|
308
|
-
if (!group.contractFlowId && row.contractFlow) {
|
|
309
|
-
group.contractFlowId = row.contractFlow.id;
|
|
310
|
-
group.contractFlowName = row.contractFlow.name;
|
|
311
|
-
}
|
|
312
|
-
if (row.purchaserTaxNo)
|
|
313
|
-
group.purchaserTaxNos.add(row.purchaserTaxNo);
|
|
314
|
-
if (row.invoiceType?.name)
|
|
315
|
-
group.invoiceTypes.add(row.invoiceType.name);
|
|
316
|
-
const goodsName = row.invoiceItemName ?? row.goodsName;
|
|
317
|
-
if (goodsName)
|
|
318
|
-
group.goodsNames.add(goodsName);
|
|
319
|
-
if (row.taxRate?.name)
|
|
320
|
-
group.taxRates.add(row.taxRate.name);
|
|
321
|
-
if (row.specification)
|
|
322
|
-
group.specifications.add(row.specification);
|
|
323
|
-
if (group.bankName === null && group.bankAccount === null && (row.purchaserBankName || row.purchaserBankAccount)) {
|
|
324
|
-
group.bankName = row.purchaserBankName ?? null;
|
|
325
|
-
group.bankAccount = row.purchaserBankAccount ?? null;
|
|
326
|
-
}
|
|
327
|
-
if (row.amount !== null && /^\d+(?:\.\d{1,2})?$/u.test(row.amount)) {
|
|
328
|
-
group.amountCents += toCents(row.amount, '开票金额');
|
|
329
|
-
}
|
|
330
|
-
else {
|
|
331
|
-
group.invalidAmountRows.push(row.formDataId);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
result(includeEmpty) {
|
|
335
|
-
const output = [];
|
|
336
|
-
for (const group of this.groups.values()) {
|
|
337
|
-
if (!includeEmpty && group.formDataIds.length === 0)
|
|
338
|
-
continue;
|
|
339
|
-
const warnings = [];
|
|
340
|
-
const specialTypes = [...group.invoiceTypes].filter(isSpecialInvoiceTypeName);
|
|
341
|
-
const specialInvoiceWithoutTaxNo = group.purchaserTaxNos.size === 0 && specialTypes.length > 0;
|
|
342
|
-
if (specialInvoiceWithoutTaxNo) {
|
|
343
|
-
warnings.push(`购方无税号,不能开专票(台账发票类型:${specialTypes.join('、')}),请先在台账改为普票再发起`);
|
|
344
|
-
}
|
|
345
|
-
const bank = splitBankNameAndAccount(group.bankName, group.bankAccount);
|
|
346
|
-
if (bank.split) {
|
|
347
|
-
warnings.push(`台账「购买方开户行账号」混有开户行名称,已拆分为开户行名称「${bank.bankName}」、账号「${bank.bankAccount}」`);
|
|
348
|
-
}
|
|
349
|
-
if (!group.contractNo)
|
|
350
|
-
warnings.push('台账行缺少合同号,无法按合同号发起开票流程');
|
|
351
|
-
if (group.sellerNames.size > 1)
|
|
352
|
-
warnings.push(`同组销售方(核算公司)不一致:${[...group.sellerNames].join('、')}`);
|
|
353
|
-
if (group.invoiceTypes.size > 1)
|
|
354
|
-
warnings.push(`同组发票类型不一致:${[...group.invoiceTypes].join('、')}`);
|
|
355
|
-
if (group.purchaserTaxNos.size > 1)
|
|
356
|
-
warnings.push(`同组购方税号不一致:${[...group.purchaserTaxNos].join('、')}`);
|
|
357
|
-
if (group.invalidAmountRows.length)
|
|
358
|
-
warnings.push(`开票金额无法识别,未计入合计:${group.invalidAmountRows.join('、')}`);
|
|
359
|
-
if (group.blockedRows > 0) {
|
|
360
|
-
warnings.push(`同合同另有 ${group.blockedRows} 行已开票、开票中或已废弃,流程联动可能一并带出,请在 E10 核对明细`);
|
|
361
|
-
}
|
|
362
|
-
output.push({
|
|
363
|
-
contractNo: group.contractNo,
|
|
364
|
-
contractFlowId: group.contractFlowId,
|
|
365
|
-
contractFlowName: group.contractFlowName,
|
|
366
|
-
purchaserName: group.purchaserName,
|
|
367
|
-
purchaserTaxNo: [...group.purchaserTaxNos].join('、'),
|
|
368
|
-
purchaserBankName: bank.bankName,
|
|
369
|
-
purchaserBankAccount: bank.bankAccount,
|
|
370
|
-
invoiceTypes: [...group.invoiceTypes],
|
|
371
|
-
specialInvoiceWithoutTaxNo,
|
|
372
|
-
goodsNames: [...group.goodsNames],
|
|
373
|
-
taxRates: [...group.taxRates],
|
|
374
|
-
specifications: [...group.specifications],
|
|
375
|
-
sellerNames: [...group.sellerNames],
|
|
376
|
-
rowCount: group.formDataIds.length,
|
|
377
|
-
formDataIds: group.formDataIds,
|
|
378
|
-
totalAmount: formatCents(group.amountCents),
|
|
379
|
-
blockedRows: group.blockedRows,
|
|
380
|
-
warnings,
|
|
381
|
-
});
|
|
382
|
-
}
|
|
383
|
-
return output;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
export class InvoiceIssuingQysListOperation {
|
|
387
|
-
name = 'invoice.issuing.qys.list';
|
|
388
|
-
async execute(input, { host }) {
|
|
389
|
-
const keyword = input.keyword === undefined || input.keyword === '' ? undefined : asNonEmptyString(input.keyword, 'keyword');
|
|
390
|
-
const contractNo = input.contractNo === undefined || input.contractNo === '' ? undefined : asNonEmptyString(input.contractNo, 'contractNo');
|
|
391
|
-
const includeIssued = input.includeIssued === true;
|
|
392
|
-
const limit = input.limit === undefined ? 20 : Number(input.limit);
|
|
393
|
-
if (!Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
394
|
-
throw invoiceValidationError('input_invalid', 'limit 必须是 1-100 的整数');
|
|
395
|
-
const items = [];
|
|
396
|
-
const grouper = new QysLedgerGrouper();
|
|
397
|
-
let matched = 0;
|
|
398
|
-
const scan = await scanLedger(host, this.name, (row) => {
|
|
399
|
-
if (contractNo && row.contractNo !== contractNo)
|
|
400
|
-
return false;
|
|
401
|
-
if (keyword && !matchesKeyword(row, keyword))
|
|
402
|
-
return false;
|
|
403
|
-
const blockers = qysRowBlockers(row);
|
|
404
|
-
grouper.add(row, blockers.length > 0);
|
|
405
|
-
if (!includeIssued && blockers.length)
|
|
406
|
-
return false;
|
|
407
|
-
matched += 1;
|
|
408
|
-
if (items.length < limit)
|
|
409
|
-
items.push({ ...row, issuable: blockers.length === 0, blockers });
|
|
410
|
-
return false;
|
|
411
|
-
});
|
|
412
|
-
return {
|
|
413
|
-
status: 'COMPLETE',
|
|
414
|
-
data: {
|
|
415
|
-
items,
|
|
416
|
-
groups: grouper.result(includeIssued),
|
|
417
|
-
matched,
|
|
418
|
-
truncated: matched > items.length,
|
|
419
|
-
scanned: scan.scanned,
|
|
420
|
-
scanComplete: scan.complete,
|
|
421
|
-
},
|
|
422
|
-
};
|
|
423
|
-
}
|
|
424
|
-
}
|
|
Binary file
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
# 开票端到端示例
|
|
2
|
-
|
|
3
|
-
## 什么时候读取
|
|
4
|
-
|
|
5
|
-
需要参考开票完整对话流程时读取本文件。全部示例都是**唯一链路**(获取待开票合同数据 → 开票流程草稿,规则见 [invoice-issuing-workflow.md](invoice-issuing-workflow.md))。数据含契约锁、泛微及其他合同。CLI 已移除直接开票接口(0.1.27 起),用户说"直接开票 / 不走流程 / 存待开台账"时同样走主链路建流程草稿,并向用户说明开票必须经流程审批。
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# 主链路:获取待开票合同数据后发起开票流程
|
|
10
|
-
|
|
11
|
-
## 示例 1:按合同号开票
|
|
12
|
-
|
|
13
|
-
**用户**:帮我把南昌我爱我家那份合同开票
|
|
14
|
-
|
|
15
|
-
**AI**:
|
|
16
|
-
|
|
17
|
-
1. `invoice.issuing.qys.list`,`keyword="南昌我爱我家"` → `groups` 命中 1 组(合同号 20266105541,销售方「上海亘岩网络科技有限公司」,1 行,技术服务费,6.0%,开票金额合计 20000.00)。销售方是这个名称,所以选契约锁开票流程。核算公司是泛微网络、泛微软件、上海田亩、成都泛微、泛微国际、北京泛微、浙江泛微之一时,`createForm` 改为 `合同收款发票开具及快递申请(100003460000000214)`,字段 id 以当次 `createForm` 的中文名为准。那条流程没有「开票内容」,确认卡片和 `data` 都不要写这个字段。核算公司为空或不在这份名单里时先问用户,选定前不建草稿。用户要退票、冲红或红冲时改为 `合同开票冲红流程(887410479139758085)`,不套用开票填单规则。
|
|
18
|
-
2. 展示确认卡片:
|
|
19
|
-
|
|
20
|
-
> 将为以下合同发起「开票申请」流程(只存草稿,不会直接开票):
|
|
21
|
-
>
|
|
22
|
-
> 合同号:20266105541(南昌我爱我家科技有限公司开放平台续购20000元10000份)
|
|
23
|
-
> 购方:南昌我爱我家科技有限公司 税号:91360125083909438T
|
|
24
|
-
> 销售方:上海亘岩网络科技有限公司
|
|
25
|
-
> 开票流程:契约锁合同收款发票开具及快递申请
|
|
26
|
-
> 发票类型:全电专票
|
|
27
|
-
>
|
|
28
|
-
> | 序号 | 商品 | 税率 | 开票金额(含税) |
|
|
29
|
-
> | --- | --- | --- | --- |
|
|
30
|
-
> | 1 | 技术服务费 | 6.0% | 20000 |
|
|
31
|
-
>
|
|
32
|
-
> 开票金额合计(含税):20000.00(共 1 行)
|
|
33
|
-
>
|
|
34
|
-
> 本次开票金额:20000(默认按总金额开)
|
|
35
|
-
>
|
|
36
|
-
> 开票事由:合同20266105541(南昌我爱我家科技有限公司开放平台续购20000元10000份)技术服务费全额开票,金额20000元
|
|
37
|
-
>
|
|
38
|
-
> 开票内容:技术服务费(按货物名称「技术服务费」匹配)
|
|
39
|
-
>
|
|
40
|
-
> 预计收款时间:(必填)请选择:本月底 2026-10-31 / 下月底 2026-11-30 / 30 天后 2026-11-22,或直接给一个日期
|
|
41
|
-
>
|
|
42
|
-
> 请回复预计收款时间并确认发起。
|
|
43
|
-
|
|
44
|
-
**用户**:确认,下月底收款
|
|
45
|
-
|
|
46
|
-
**AI**:
|
|
47
|
-
|
|
48
|
-
3. `workflow.createForm`,`workflow=["契约锁合同收款发票开具及快递申请(100003460000001852)"]`
|
|
49
|
-
4. 按 [invoice-issuing-form-fill-rules.md](invoice-issuing-form-fill-rules.md) 组装 `data`,用户没有特殊说明,全部取默认值:
|
|
50
|
-
- `data.main`:「合同号」`20266105541`;「相关合同审批流程」`南昌我爱我家科技有限公司开放平台续购20000元10000份(1326792548468580636)`;「产品类型」`契约锁`;「开票内容」`技术服务费`(货物名称与选项名完全相同);「开票日期」取当天;「开票备注」`20266105541`;「预计收款时间」按"下月底"换算为 `2026-11-30`;「开票事由」自动生成为 `合同20266105541(南昌我爱我家科技有限公司开放平台续购20000元10000份)技术服务费全额开票,金额20000元`。
|
|
51
|
-
- 明细第 1 行取该组唯一台账行,只传「金额(含税)」`20000`(按总金额开)。货物名称、购买方名称、明细合同号、明细行id、单价、规格类型、单位、税率、总开票金额、已开票金额、未开票金额都由合同号联动带出,不传;数量、开户行名称、开户行银行帐号创建时不传;金额(不含税)、税额不传。
|
|
52
|
-
- `requestName="开票申请-南昌我爱我家科技有限公司-20266105541"`。
|
|
53
|
-
|
|
54
|
-
如果用户说"这次先开 1 万",明细「金额(含税)」改填 `10000`,开票事由改为 `合同20266105541(南昌我爱我家科技有限公司开放平台续购20000元10000份)技术服务费开票,本次10000元,合同开票总额20000.00元`,其余不变。
|
|
55
|
-
5. `workflow.createRequest`,`action="draft"` → `CREATED` → 原样粘贴 `finalMarkdown`,再补一句「预计收款时间按『下月底』填为 2026-11-30」
|
|
56
|
-
|
|
57
|
-
如果用户只回"确认"没给日期:**不建草稿**,只问「预计收款时间填哪天?可以直接回 本月底 / 下月底 / 30 天后,或给一个具体日期。」拿到日期后再执行第 3 步。
|
|
58
|
-
6. `linkageResult` 含「是否存在合同明细数据=存在」「总开票金额=20000.00」「货物名称=技术服务费」,且「本次开票总金额=20000.00」与本次填写的金额一致 → 不额外说明
|
|
59
|
-
7. 补正开户行:`workflow.editLoad` 读草稿。假设台账没有开户行信息、「开户行及帐号」为 `兴业银行股份有限公司深圳西乡支行,账号:338160100100000455`,按「,账号:」拆开。`workflow.editPrepare` 只传主表这两个字段,然后问用户:
|
|
60
|
-
|
|
61
|
-
> 草稿已建好。开户行名称和账号需要分开补进草稿:
|
|
62
|
-
> - 开户行名称:兴业银行股份有限公司深圳西乡支行
|
|
63
|
-
> - 开户行银行帐号:338160100100000455
|
|
64
|
-
>
|
|
65
|
-
> 要把开户行名称和账号分开补进草稿吗?
|
|
66
|
-
|
|
67
|
-
用户确认后 `workflow.editApply`。
|
|
68
|
-
8. 回复末尾只提醒数量(开票内容已按货物名称「技术服务费」写入,不再提醒)。同一次 `editLoad` 里,明细第 1 行数量是联动带出的 `1201835186337538063`,台账数量是 `1`。
|
|
69
|
-
|
|
70
|
-
> 提交前请在 E10 里改:
|
|
71
|
-
> - 明细第 1 行数量:联动带出的是 1201835186337538063,请在 E10 改成 1
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## 示例 2:命中多份合同,让用户选
|
|
76
|
-
|
|
77
|
-
**用户**:开一下技术服务费那几单
|
|
78
|
-
|
|
79
|
-
**AI**:`invoice.issuing.qys.list`,`keyword="技术服务费"` → `groups` 4 组。列出每组的合同号、合同审批流程、购方、行数、开票金额合计,请用户选择**一份**合同;**不替用户选**。
|
|
80
|
-
|
|
81
|
-
**用户**:中冶南方那个
|
|
82
|
-
|
|
83
|
-
**AI**:按示例 1 的第 2 步起继续,只处理这一组。用户要求多份一起开时,逐组确认、逐组 `createForm` + `createRequest`,`continuation` 不跨组复用。
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## 示例 3:同一合同部分行已开票
|
|
88
|
-
|
|
89
|
-
**用户**:开一下合同 20266105526 的票
|
|
90
|
-
|
|
91
|
-
**AI**:
|
|
92
|
-
|
|
93
|
-
1. `invoice.issuing.qys.list`,`contractNo="20266105526"` → 1 组,`rowCount=1`,`totalAmount="46292.10"`,`blockedRows=1`,`warnings` 含"同合同另有 1 行已开票、开票中或已废弃…"
|
|
94
|
-
2. 确认卡片只列 1 行可开票明细,末尾追加:
|
|
95
|
-
|
|
96
|
-
> ⚠️ 同合同另有 1 行已开票、开票中或已废弃。流程按合同号联动,可能一并带出这些行,请在 E10 草稿里核对明细。
|
|
97
|
-
|
|
98
|
-
3. 用户确认 → `createForm` → `createRequest(draft)` → 粘贴 `finalMarkdown`
|
|
99
|
-
4. `linkageResult` 里「本次开票总金额」与本次填写的 46292.10 不一致(联动带出的行数与可开票行数不同,金额可能填到了已开票的行上)→ 在 `finalMarkdown` 后只追加一行:
|
|
100
|
-
|
|
101
|
-
> ⚠️ 流程汇总的本次开票总金额为 92584.20,与本次填写的开票金额 46292.10 不一致,请在 E10 核对后再提交。
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## 示例 4:线索为空 / 没有可开票的行
|
|
106
|
-
|
|
107
|
-
**用户**:帮我开票
|
|
108
|
-
|
|
109
|
-
**AI**:要给哪个合同开票?请提供合同号或客户名称。
|
|
110
|
-
|
|
111
|
-
**用户**:中冶南方
|
|
112
|
-
|
|
113
|
-
**AI**:`invoice.issuing.qys.list`,`keyword="中冶南方"` → `groups` 为空 → `includeIssued=true` 再查一次 → 1 组,`rowCount=0`,`blockedRows=1`,`items[0].blockers=["已有发票号码 26312000000012345678"]`
|
|
114
|
-
|
|
115
|
-
> 中冶南方工程技术有限公司的合同 20266105521 当前没有可开票的行:已有发票号码 26312000000012345678。
|
|
116
|
-
|
|
117
|
-
结束,不发起流程。
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## 示例 4.1:购方没有税号,台账却是专票
|
|
122
|
-
|
|
123
|
-
**用户**:开一下合同 20266105600 的票
|
|
124
|
-
|
|
125
|
-
**AI**:`invoice.issuing.qys.list`,`contractNo="20266105600"` → 1 组,`purchaserTaxNo=""`,`invoiceTypes=["全电专票"]`,`specialInvoiceWithoutTaxNo=true`
|
|
126
|
-
|
|
127
|
-
> 张三(个人)没有税号,不能开专票,只能开普票。请先把台账里这份合同的发票类型改成普票(如全电普票),再让我发起。
|
|
128
|
-
|
|
129
|
-
结束,不展示确认卡片、不发起流程;也不在流程里手工改发票类型。
|
|
130
|
-
|
|
131
|
-
|