wezard 2.9.0 → 3.0.1
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/CLAUDE.md +34 -15
- package/README.md +36 -49
- package/cli/wezard.sh +3 -0
- package/config.example.jsonc +2 -8
- package/dist/cli/init.js +35 -0
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/skills.js +113 -0
- package/dist/cli/skills.js.map +1 -0
- package/dist/cli/sync.js.map +1 -1
- package/dist/daemon/apprentice.js +75 -0
- package/dist/daemon/apprentice.js.map +1 -0
- package/dist/daemon/approval.js +26 -7
- package/dist/daemon/approval.js.map +1 -1
- package/dist/daemon/channel-context.js +7 -0
- package/dist/daemon/channel-context.js.map +1 -1
- package/dist/daemon/channel-posts.js +53 -0
- package/dist/daemon/channel-posts.js.map +1 -0
- package/dist/daemon/channel.js +124 -12
- package/dist/daemon/channel.js.map +1 -1
- package/dist/daemon/chat-name.js +24 -161
- package/dist/daemon/chat-name.js.map +1 -1
- package/dist/daemon/classes.js +418 -0
- package/dist/daemon/classes.js.map +1 -0
- package/dist/daemon/config-api.js +1 -1
- package/dist/daemon/detail.js +14 -8
- package/dist/daemon/detail.js.map +1 -1
- package/dist/daemon/handoff.js +51 -50
- package/dist/daemon/handoff.js.map +1 -1
- package/dist/daemon/http.js +25 -18
- package/dist/daemon/http.js.map +1 -1
- package/dist/daemon/idle-reap.js +30 -0
- package/dist/daemon/idle-reap.js.map +1 -0
- package/dist/daemon/inbound.js +360 -142
- package/dist/daemon/inbound.js.map +1 -1
- package/dist/daemon/index.js +2172 -2676
- package/dist/daemon/index.js.map +1 -1
- package/dist/daemon/last-response.js +44 -9
- package/dist/daemon/last-response.js.map +1 -1
- package/dist/daemon/memory-steward.js +1 -1
- package/dist/daemon/memory-steward.js.map +1 -1
- package/dist/daemon/message-format.js +10 -2
- package/dist/daemon/message-format.js.map +1 -1
- package/dist/daemon/mirror-bridge.js +511 -467
- package/dist/daemon/mirror-bridge.js.map +1 -1
- package/dist/daemon/mirror-store.js +24 -0
- package/dist/daemon/mirror-store.js.map +1 -1
- package/dist/daemon/notices.js +2 -2
- package/dist/daemon/notices.js.map +1 -1
- package/dist/daemon/onboarding.js +384 -0
- package/dist/daemon/onboarding.js.map +1 -0
- package/dist/daemon/outbound.js +21 -11
- package/dist/daemon/outbound.js.map +1 -1
- package/dist/daemon/peers.js +38 -230
- package/dist/daemon/peers.js.map +1 -1
- package/dist/daemon/plans.js.map +1 -1
- package/dist/daemon/room-auto-adhoc.js +18 -0
- package/dist/daemon/room-auto-adhoc.js.map +1 -0
- package/dist/daemon/room-facts.js +35 -0
- package/dist/daemon/room-facts.js.map +1 -0
- package/dist/daemon/room-hub.js +430 -0
- package/dist/daemon/room-hub.js.map +1 -0
- package/dist/daemon/room-overdue.js +98 -0
- package/dist/daemon/room-overdue.js.map +1 -0
- package/dist/daemon/room-prune.js +74 -0
- package/dist/daemon/room-prune.js.map +1 -0
- package/dist/daemon/room-spawn.js +20 -0
- package/dist/daemon/room-spawn.js.map +1 -0
- package/dist/daemon/room-watchdog.js +153 -0
- package/dist/daemon/room-watchdog.js.map +1 -0
- package/dist/daemon/rooms.js +107 -0
- package/dist/daemon/rooms.js.map +1 -0
- package/dist/daemon/route.js +7 -18
- package/dist/daemon/route.js.map +1 -1
- package/dist/daemon/spawn-tmux.js +48 -36
- package/dist/daemon/spawn-tmux.js.map +1 -1
- package/dist/daemon/steward-guard.js +2 -2
- package/dist/daemon/steward.js +132 -0
- package/dist/daemon/steward.js.map +1 -0
- package/dist/daemon/tasks.js +4 -14
- package/dist/daemon/tasks.js.map +1 -1
- package/dist/daemon/turn-opening.js +25 -0
- package/dist/daemon/turn-opening.js.map +1 -0
- package/dist/daemon/wake-tail.js +55 -0
- package/dist/daemon/wake-tail.js.map +1 -0
- package/dist/daemon/weixin-cmd.js +10 -14
- package/dist/daemon/weixin-cmd.js.map +1 -1
- package/dist/daemon/wezard-session.js +6 -2
- package/dist/daemon/wezard-session.js.map +1 -1
- package/dist/daemon/wizard-names.js +0 -22
- package/dist/daemon/wizard-names.js.map +1 -1
- package/dist/daemon/wizard.js +589 -145
- package/dist/daemon/wizard.js.map +1 -1
- package/dist/mcp/output.js +6 -5
- package/dist/mcp/output.js.map +1 -1
- package/dist/mcp/tools.js +247 -242
- package/dist/mcp/tools.js.map +1 -1
- package/dist/shared/allow-rules.js +1 -7
- package/dist/shared/allow-rules.js.map +1 -1
- package/dist/shared/charter-rearm.js +179 -0
- package/dist/shared/charter-rearm.js.map +1 -0
- package/dist/shared/chat-http.js +374 -459
- package/dist/shared/chat-http.js.map +1 -1
- package/dist/shared/chat-record.js +55 -0
- package/dist/shared/chat-record.js.map +1 -0
- package/dist/shared/chat-render.js +7 -4
- package/dist/shared/chat-render.js.map +1 -1
- package/dist/shared/chat-view.js +2 -41
- package/dist/shared/chat-view.js.map +1 -1
- package/dist/shared/cli-backends.js +13 -5
- package/dist/shared/cli-backends.js.map +1 -1
- package/dist/shared/config.js +48 -24
- package/dist/shared/config.js.map +1 -1
- package/dist/shared/detail-render.js +98 -21
- package/dist/shared/detail-render.js.map +1 -1
- package/dist/shared/detail-store.js.map +1 -1
- package/dist/shared/group-members.js +35 -0
- package/dist/shared/group-members.js.map +1 -0
- package/dist/shared/inject-view.js +105 -0
- package/dist/shared/inject-view.js.map +1 -0
- package/dist/shared/legacy-routes.js +199 -0
- package/dist/shared/legacy-routes.js.map +1 -0
- package/dist/shared/mem-guard.js +32 -0
- package/dist/shared/mem-guard.js.map +1 -0
- package/dist/shared/message-footer.js +4 -3
- package/dist/shared/message-footer.js.map +1 -1
- package/dist/shared/pricing.js +5 -0
- package/dist/shared/pricing.js.map +1 -1
- package/dist/shared/reminder.js +30 -38
- package/dist/shared/reminder.js.map +1 -1
- package/dist/shared/role-render.js +209 -210
- package/dist/shared/role-render.js.map +1 -1
- package/dist/shared/role-view.js +61 -299
- package/dist/shared/role-view.js.map +1 -1
- package/dist/shared/room-label.js +13 -0
- package/dist/shared/room-label.js.map +1 -0
- package/dist/shared/room-migrate.js +404 -0
- package/dist/shared/room-migrate.js.map +1 -0
- package/dist/shared/room-overdue.js +81 -0
- package/dist/shared/room-overdue.js.map +1 -0
- package/dist/shared/room-search.js +102 -0
- package/dist/shared/room-search.js.map +1 -0
- package/dist/shared/room-view.js +261 -0
- package/dist/shared/room-view.js.map +1 -0
- package/dist/shared/room.js +610 -0
- package/dist/shared/room.js.map +1 -0
- package/dist/shared/session-hooks.js +20 -8
- package/dist/shared/session-hooks.js.map +1 -1
- package/dist/shared/session-label.js +80 -60
- package/dist/shared/session-label.js.map +1 -1
- package/dist/shared/session-mcp.js +21 -3
- package/dist/shared/session-mcp.js.map +1 -1
- package/dist/shared/session-skills.js +8 -0
- package/dist/shared/session-skills.js.map +1 -1
- package/dist/shared/skill-sync.js +229 -0
- package/dist/shared/skill-sync.js.map +1 -0
- package/dist/shared/smarts.js +39 -0
- package/dist/shared/smarts.js.map +1 -0
- package/dist/shared/stream-page.js +22 -0
- package/dist/shared/stream-page.js.map +1 -0
- package/dist/shared/task-file.js +0 -5
- package/dist/shared/task-file.js.map +1 -1
- package/dist/shared/task-template.js +1 -1
- package/dist/shared/task-template.js.map +1 -1
- package/dist/shared/tool-hints.js +20 -11
- package/dist/shared/tool-hints.js.map +1 -1
- package/dist/shared/workspace-trust.js +8 -0
- package/dist/shared/workspace-trust.js.map +1 -1
- package/dist/shared/world.js +101 -166
- package/dist/shared/world.js.map +1 -1
- package/dist/svr/facts-store.js +26 -0
- package/dist/svr/facts-store.js.map +1 -0
- package/dist/svr/index.js +62 -6
- package/dist/svr/index.js.map +1 -1
- package/hooks/stop.sh +26 -0
- package/package.json +7 -2
- package/scripts/install.sh +11 -0
- package/skills/LICENSE.wecom-unified.txt +21 -0
- package/skills/wecom-unified/SKILL.md +151 -0
- package/skills/wecom-unified/assets/templates/broadside/DESIGN.preset.md +172 -0
- package/skills/wecom-unified/assets/templates/broadside/shell/content.jsx +31 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/01_cover.slide +48 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/02_section.slide +58 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/03_cards.slide +53 -0
- package/skills/wecom-unified/assets/templates/broadside/slides/04_image.slide +64 -0
- package/skills/wecom-unified/assets/templates/cartesian/DESIGN.preset.md +139 -0
- package/skills/wecom-unified/assets/templates/cartesian/shell/content.jsx +28 -0
- package/skills/wecom-unified/assets/templates/cartesian/slides/01_cover.slide +44 -0
- package/skills/wecom-unified/assets/templates/cartesian/slides/02_compare.slide +79 -0
- package/skills/wecom-unified/assets/templates/cartesian/slides/03_table.slide +79 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/DESIGN.preset.md +118 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/shell/content.jsx +24 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/slides/01_cover.slide +61 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/slides/02_structure.slide +85 -0
- package/skills/wecom-unified/assets/templates/cobalt-grid/slides/03_data.slide +60 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/DESIGN.preset.md +135 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/shell/content.jsx +19 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/01_cover.slide +29 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/02_cards.slide +60 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/03_data.slide +49 -0
- package/skills/wecom-unified/assets/templates/editorial-forest/slides/04_image.slide +46 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/DESIGN.preset.md +119 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/shell/content.jsx +18 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/01_cover.slide +36 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/02_section.slide +39 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/03_data.slide +79 -0
- package/skills/wecom-unified/assets/templates/emerald-editorial/slides/04_steps.slide +53 -0
- package/skills/wecom-unified/assets/templates/grove/DESIGN.preset.md +159 -0
- package/skills/wecom-unified/assets/templates/grove/shell/content.jsx +18 -0
- package/skills/wecom-unified/assets/templates/grove/shell/content_light.jsx +18 -0
- package/skills/wecom-unified/assets/templates/grove/slides/01_cover.slide +26 -0
- package/skills/wecom-unified/assets/templates/grove/slides/02_compare.slide +92 -0
- package/skills/wecom-unified/assets/templates/grove/slides/03_table.slide +68 -0
- package/skills/wecom-unified/assets/templates/index.json +280 -0
- package/skills/wecom-unified/assets/templates/long-table/DESIGN.preset.md +135 -0
- package/skills/wecom-unified/assets/templates/long-table/shell/content.jsx +36 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/01_cover.slide +71 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/02_cards.slide +72 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/03_timeline.slide +81 -0
- package/skills/wecom-unified/assets/templates/long-table/slides/04_image.slide +60 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/DESIGN.preset.md +121 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/shell/content.jsx +13 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/01_cover.slide +54 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/02_products.slide +134 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/03_section.slide +30 -0
- package/skills/wecom-unified/assets/templates/sakura-chroma/slides/04_schedule.slide +65 -0
- package/skills/wecom-unified/assets/templates/signal/DESIGN.preset.md +121 -0
- package/skills/wecom-unified/assets/templates/signal/shell/content.jsx +18 -0
- package/skills/wecom-unified/assets/templates/signal/shell/content_dark.jsx +23 -0
- package/skills/wecom-unified/assets/templates/signal/slides/01_cover.slide +48 -0
- package/skills/wecom-unified/assets/templates/signal/slides/02_cards.slide +67 -0
- package/skills/wecom-unified/assets/templates/signal/slides/03_data.slide +68 -0
- package/skills/wecom-unified/references/wecomcli-calendar-agenda.md +227 -0
- package/skills/wecom-unified/references/wecomcli-calendar-cancel.md +108 -0
- package/skills/wecom-unified/references/wecomcli-calendar-create.md +238 -0
- package/skills/wecom-unified/references/wecomcli-calendar-freebusy.md +207 -0
- package/skills/wecom-unified/references/wecomcli-calendar-meeting-room.md +170 -0
- package/skills/wecom-unified/references/wecomcli-calendar-search.md +209 -0
- package/skills/wecom-unified/references/wecomcli-calendar-update.md +272 -0
- package/skills/wecom-unified/references/wecomcli-calendar.md +296 -0
- package/skills/wecom-unified/references/wecomcli-contact.md +48 -0
- package/skills/wecom-unified/references/wecomcli-disk.md +380 -0
- package/skills/wecom-unified/references/wecomcli-doc-contents-append.md +20 -0
- package/skills/wecom-unified/references/wecomcli-doc-contents-overwrite.md +27 -0
- package/skills/wecom-unified/references/wecomcli-doc-create.md +162 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage-doc-members-update.md +24 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage-doc-names-update.md +20 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage-doc-rules-update.md +22 -0
- package/skills/wecom-unified/references/wecomcli-doc-manage.md +127 -0
- package/skills/wecom-unified/references/wecomcli-doc.md +135 -0
- package/skills/wecom-unified/references/wecomcli-email-forward-mail.md +131 -0
- package/skills/wecom-unified/references/wecomcli-email-get-mail.md +187 -0
- package/skills/wecom-unified/references/wecomcli-email-reply-mail.md +138 -0
- package/skills/wecom-unified/references/wecomcli-email-search-mail.md +114 -0
- package/skills/wecom-unified/references/wecomcli-email-security.md +52 -0
- package/skills/wecom-unified/references/wecomcli-email-send-mail.md +186 -0
- package/skills/wecom-unified/references/wecomcli-email-send-schedule.md +83 -0
- package/skills/wecom-unified/references/wecomcli-email.md +206 -0
- package/skills/wecom-unified/references/wecomcli-media.md +89 -0
- package/skills/wecom-unified/references/wecomcli-meeting-cancel.md +113 -0
- package/skills/wecom-unified/references/wecomcli-meeting-create.md +167 -0
- package/skills/wecom-unified/references/wecomcli-meeting-list.md +228 -0
- package/skills/wecom-unified/references/wecomcli-meeting-original-get.md +101 -0
- package/skills/wecom-unified/references/wecomcli-meeting-search.md +176 -0
- package/skills/wecom-unified/references/wecomcli-meeting-update.md +217 -0
- package/skills/wecom-unified/references/wecomcli-meeting.md +366 -0
- package/skills/wecom-unified/references/wecomcli-message.md +190 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-animation.md +62 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-box.md +102 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-chart.md +261 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-codeblock.md +70 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-diagram.md +54 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-faicon.md +71 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-hyperlink.md +55 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-image.md +107 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-math.md +65 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-qrcode.md +22 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-slide.md +74 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-svg.md +95 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-table.md +72 -0
- package/skills/wecom-unified/references/wecomcli-pptx-component-text.md +96 -0
- package/skills/wecom-unified/references/wecomcli-pptx-content-contract.md +73 -0
- package/skills/wecom-unified/references/wecomcli-pptx-create-from-material.md +67 -0
- package/skills/wecom-unified/references/wecomcli-pptx-create-from-scratch.md +178 -0
- package/skills/wecom-unified/references/wecomcli-pptx-create-from-template.md +123 -0
- package/skills/wecom-unified/references/wecomcli-pptx-design-principle.md +65 -0
- package/skills/wecom-unified/references/wecomcli-pptx-government-contract.md +40 -0
- package/skills/wecom-unified/references/wecomcli-pptx-human-alignment.md +140 -0
- package/skills/wecom-unified/references/wecomcli-pptx-pptx-api.md +161 -0
- package/skills/wecom-unified/references/wecomcli-pptx-pptx-edit.md +37 -0
- package/skills/wecom-unified/references/wecomcli-pptx-story-principle.md +184 -0
- package/skills/wecom-unified/references/wecomcli-pptx-templates-README.md +165 -0
- package/skills/wecom-unified/references/wecomcli-pptx-templates-anti-ai-slop.md +52 -0
- package/skills/wecom-unified/references/wecomcli-pptx.md +158 -0
- package/skills/wecom-unified/references/wecomcli-sheet-conditional-formatting.md +203 -0
- package/skills/wecom-unified/references/wecomcli-sheet-filter.md +179 -0
- package/skills/wecom-unified/references/wecomcli-sheet-float-image.md +235 -0
- package/skills/wecom-unified/references/wecomcli-sheet-formulas.md +71 -0
- package/skills/wecom-unified/references/wecomcli-sheet-history.md +118 -0
- package/skills/wecom-unified/references/wecomcli-sheet-protection.md +170 -0
- package/skills/wecom-unified/references/wecomcli-sheet-range-operations.md +306 -0
- package/skills/wecom-unified/references/wecomcli-sheet-read-data.md +151 -0
- package/skills/wecom-unified/references/wecomcli-sheet-search-replace.md +121 -0
- package/skills/wecom-unified/references/wecomcli-sheet-structure-operations.md +394 -0
- package/skills/wecom-unified/references/wecomcli-sheet-style.md +246 -0
- package/skills/wecom-unified/references/wecomcli-sheet-table-style.md +199 -0
- package/skills/wecom-unified/references/wecomcli-sheet-validation.md +217 -0
- package/skills/wecom-unified/references/wecomcli-sheet-visual-standards.md +166 -0
- package/skills/wecom-unified/references/wecomcli-sheet-workbook.md +264 -0
- package/skills/wecom-unified/references/wecomcli-sheet-write-cells.md +320 -0
- package/skills/wecom-unified/references/wecomcli-sheet-xlsx-process.md +324 -0
- package/skills/wecom-unified/references/wecomcli-sheet.md +96 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-data-driven-pages.md +50 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-edit.md +526 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-arraylist.md +369 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-datetime.md +283 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-logic.md +247 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-math.md +362 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-operators.md +246 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-pageblock.md +76 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-reference.md +192 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-templates.md +410 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-text.md +377 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-formula-user.md +22 -0
- package/skills/wecom-unified/references/wecomcli-smartpage-mdx-syntax.md +739 -0
- package/skills/wecom-unified/references/wecomcli-smartpage.md +179 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-chart-types.md +95 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-common.md +160 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-edit.md +609 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-field-types.md +438 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-formula.md +845 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-read.md +411 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-record-values.md +218 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-ai_efficiency.md +709 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-connect_to_app.md +380 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-financial_accounting.md +369 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-hr_and_administration.md +475 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-ledger_records.md +156 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-manufacturing.md +395 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-marketing.md +186 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-office_essentials.md +299 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-personal_efficiency.md +70 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-procurement_logistics.md +325 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-project_management.md +564 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_customer.md +222 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_ops.md +105 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_project.md +109 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-rd_process_research.md +92 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-sales_and_operations.md +446 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-store_management.md +431 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-team_tasks.md +274 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-wechat_customer.md +384 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-template-work_report.md +100 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-templates.md +53 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-view-types.md +373 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-webhook-examples.md +176 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet-webhook.md +186 -0
- package/skills/wecom-unified/references/wecomcli-smartsheet.md +147 -0
- package/skills/wecom-unified/references/wecomcli-todo-create.md +137 -0
- package/skills/wecom-unified/references/wecomcli-todo-delete.md +63 -0
- package/skills/wecom-unified/references/wecomcli-todo-finish.md +72 -0
- package/skills/wecom-unified/references/wecomcli-todo-get.md +69 -0
- package/skills/wecom-unified/references/wecomcli-todo-list.md +136 -0
- package/skills/wecom-unified/references/wecomcli-todo-update.md +112 -0
- package/skills/wecom-unified/references/wecomcli-todo.md +68 -0
- package/skills/wecom-unified/scripts/build_docx.py +1274 -0
- package/skills/wecom-unified/scripts/build_page.py +2449 -0
- package/skills/wecom-unified/scripts/collect.py +868 -0
- package/skills/wecom-unified/scripts/doc_image_extractor.py +498 -0
- package/skills/wecom-unified/scripts/pptx2image.py +268 -0
- package/skills/wecom-unified/scripts/recalc.py +403 -0
- package/systemd/wezard.service.template +6 -0
- package/web/chat.css +70 -273
- package/web/chat.js +2228 -2190
- package/dist/daemon/chat-log.js +0 -130
- package/dist/daemon/chat-log.js.map +0 -1
- package/dist/daemon/dispatch.js +0 -6
- package/dist/daemon/dispatch.js.map +0 -1
- package/dist/daemon/idle-nudge.js +0 -90
- package/dist/daemon/idle-nudge.js.map +0 -1
- package/dist/daemon/message-events.js +0 -1155
- package/dist/daemon/message-events.js.map +0 -1
- package/dist/daemon/pending-items.js +0 -160
- package/dist/daemon/pending-items.js.map +0 -1
- package/dist/daemon/router.js +0 -742
- package/dist/daemon/router.js.map +0 -1
- package/dist/daemon/tips.js +0 -25
- package/dist/daemon/tips.js.map +0 -1
- package/dist/daemon/wedoc.js +0 -210
- package/dist/daemon/wedoc.js.map +0 -1
- package/dist/shared/role-search.js +0 -100
- package/dist/shared/role-search.js.map +0 -1
- package/dist/shared/startup-notice.js +0 -21
- package/dist/shared/startup-notice.js.map +0 -1
- package/dist/shared/turn-state.js +0 -27
- package/dist/shared/turn-state.js.map +0 -1
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
# 实用公式模板(本章节提供开箱即用的公式模板,推荐载入)
|
|
2
|
+
|
|
3
|
+
> 实用公式模板涵盖9大推荐功能(排名、环比增长、重复值标记、进度跟踪、日期提取、工龄计算、逾期判断)、2个销售分析模板(累计营业额)、2个文本处理模板(人员并集/补集)、14+个其他实用功能(地址提取、邮箱提取、数字大写、跳转链接、人员列匹配等)。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
#### 模板变量替换规则
|
|
8
|
+
|
|
9
|
+
- **特殊变量**:`[当前表]` 表示当前数据表,也需要替换成 `[表名]` 格式
|
|
10
|
+
|
|
11
|
+
### 推荐模板
|
|
12
|
+
|
|
13
|
+
#### 1. 计算排名(连续排名)
|
|
14
|
+
|
|
15
|
+
**功能描述**:从大到小计算数值字段的排名。
|
|
16
|
+
|
|
17
|
+
**使用场景**:为销售额、分数等数值字段计算排名。
|
|
18
|
+
|
|
19
|
+
**公式表达式**:
|
|
20
|
+
|
|
21
|
+
// 数据表场景示例
|
|
22
|
+
IF([销售表.销售额].ISBLANK(), "", [销售表].FILTER([Each].[销售额] >= [销售表.销售额]).[销售额].UNIQUE().COUNTA())
|
|
23
|
+
|
|
24
|
+
// 或页面控件场景示例
|
|
25
|
+
IF([销售页.销售额].ISBLANK(), "", [销售表].FILTER([Each].[销售额] >= [销售页.销售额]).[销售额].UNIQUE().COUNTA())
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
#### 2. 环比增长率
|
|
31
|
+
|
|
32
|
+
**功能描述**:计算环比增长率 = 当前周期的数值 / 上一周期的数值 - 1
|
|
33
|
+
|
|
34
|
+
**使用场景**:分析月度、季度销售增长情况。
|
|
35
|
+
|
|
36
|
+
**公式表达式**:
|
|
37
|
+
|
|
38
|
+
// 数据表场景示例
|
|
39
|
+
IF(OR([销售表.月份].ISBLANK(), [销售表.月份] = [销售表.月份].MIN()), "", [销售表].FILTER([Each].[月份] = [销售表.月份]).[销售额] / [销售表].FILTER([Each].[月份] = ([销售表.月份] - 1)).[销售额] - 1)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
#### 3. 标记重复值
|
|
45
|
+
|
|
46
|
+
**功能描述**:整列重复的内容标记"❗️重复"。
|
|
47
|
+
|
|
48
|
+
**使用场景**:检测产品名称、订单号等字段的重复值。
|
|
49
|
+
|
|
50
|
+
**公式表达式**:
|
|
51
|
+
|
|
52
|
+
// 数据表场景示例
|
|
53
|
+
IF([产品表].FILTER([Each].[产品名称] = [其他表.产品名称]).[产品名称].COUNTA() > 1, "❗️重复", "")
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
#### 4. 进度跟踪
|
|
59
|
+
|
|
60
|
+
**功能描述**:根据项目的计划完成时间和实际完成时间标记项目状态。
|
|
61
|
+
|
|
62
|
+
**使用场景**:项目管理、任务跟踪。
|
|
63
|
+
|
|
64
|
+
**公式表达式**:
|
|
65
|
+
|
|
66
|
+
// 数据表场景示例
|
|
67
|
+
IFS(
|
|
68
|
+
AND([项目表.计划完成日期] = "", [项目表.实际完成日期] = ""), "",
|
|
69
|
+
AND([项目表.计划完成日期] = "", [项目表.实际完成日期] < TODAY()), "❗️未完成",
|
|
70
|
+
AND([项目表.计划完成日期] != "", [项目表.实际完成日期] != "", [项目表.实际完成日期] <= [项目表.计划完成日期]), "✅完成",
|
|
71
|
+
AND([项目表.计划完成日期] != "", [项目表.实际完成日期] != "", [项目表.实际完成日期] > [项目表.计划完成日期]), "🚨延期",
|
|
72
|
+
AND([项目表.实际完成日期] = "", [项目表.计划完成日期] != ""), "❗️未完成"
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
#### 5. 提取年月
|
|
79
|
+
|
|
80
|
+
**功能描述**:从日期中提取年月信息。
|
|
81
|
+
|
|
82
|
+
**使用场景**:将 `2026年3月18日` 转换为 `2026年3月`。
|
|
83
|
+
|
|
84
|
+
**公式表达式**:
|
|
85
|
+
|
|
86
|
+
// 数据表场景示例
|
|
87
|
+
IF([订单表.订单日期].ISBLANK(), "", TEXT([订单表.订单日期], "yyyy年mm月"))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
#### 6. 提取星期几
|
|
93
|
+
|
|
94
|
+
**功能描述**:从日期中提取星期信息。
|
|
95
|
+
|
|
96
|
+
**使用场景**:将 `2026年3月18日` 转换为 `星期三`。
|
|
97
|
+
|
|
98
|
+
**公式表达式**:
|
|
99
|
+
|
|
100
|
+
// 数据表场景示例
|
|
101
|
+
IF([订单表.订单日期].ISBLANK(), "", TEXT([订单表.订单日期], "dddd"))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
#### 7. 月度第几周
|
|
107
|
+
|
|
108
|
+
**功能描述**:计算日期在当月是第几周。
|
|
109
|
+
|
|
110
|
+
**使用场景**:将 `2026年3月18日` 转换为 `3月第4周`。
|
|
111
|
+
|
|
112
|
+
**公式表达式**:
|
|
113
|
+
|
|
114
|
+
// 数据表场景示例
|
|
115
|
+
IF([订单表.订单日期] = "", "", CONCAT(MONTH([订单表.订单日期]).TEXT("00"), "月", "第", (WEEKNUM([订单表.订单日期], 2) - WEEKNUM(DATE(YEAR([订单表.订单日期]), MONTH([订单表.订单日期]), 1), 2) + 1).TEXT("00"), "周"))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
#### 8. 计算工龄
|
|
121
|
+
|
|
122
|
+
**功能描述**:根据入职日期计算工龄天数。
|
|
123
|
+
|
|
124
|
+
**使用场景**:将 `2026年1月7日` 转换为 `n天`。
|
|
125
|
+
|
|
126
|
+
**公式表达式**:
|
|
127
|
+
|
|
128
|
+
// 数据表场景示例
|
|
129
|
+
IF(OR([员工表.入职日期].ISBLANK(), [员工表.入职日期] > TODAY()), "", (TODAY() - [员工表.入职日期]) & "天")
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
#### 9. 是否逾期
|
|
135
|
+
|
|
136
|
+
**功能描述**:根据预计完成时间判断任务是否逾期。
|
|
137
|
+
|
|
138
|
+
**使用场景**:任务管理,将 `2026年5月6日` 标记为 `逾期`。
|
|
139
|
+
|
|
140
|
+
**公式表达式**:
|
|
141
|
+
|
|
142
|
+
// 数据表场景示例
|
|
143
|
+
IF([任务表.完成日期].ISBLANK(), "", IF([任务表.完成日期] < TODAY(), "未逾期", "逾期"))
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
### 销售分析模板
|
|
149
|
+
|
|
150
|
+
#### 1. 逐日累计营业额
|
|
151
|
+
|
|
152
|
+
**功能描述**:计算从第一天到当前日期的累计营业额。
|
|
153
|
+
|
|
154
|
+
**使用场景**:销售数据分析,追踪累计业绩。
|
|
155
|
+
|
|
156
|
+
**公式表达式**:
|
|
157
|
+
|
|
158
|
+
// 数据表场景示例
|
|
159
|
+
[销售表].FILTER([Each].[销售日期] <= [销售表.销售日期]).[营业额].LISTCOMBINE().SUM()
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
#### 2. 当月累计营业额
|
|
165
|
+
|
|
166
|
+
**功能描述**:计算当月截止到当前日期的累计营业额。
|
|
167
|
+
|
|
168
|
+
**使用场景**:月度销售数据分析。
|
|
169
|
+
|
|
170
|
+
**公式表达式**:
|
|
171
|
+
|
|
172
|
+
// 数据表场景示例
|
|
173
|
+
[销售表].FILTER([Each].[销售日期].MONTH() = [销售表.销售日期].MONTH()).FILTER([Each].[销售日期] <= [销售表.销售日期]).[营业额].LISTCOMBINE().SUM()
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
### 文本处理模板
|
|
179
|
+
|
|
180
|
+
#### 1. 人员取并集
|
|
181
|
+
|
|
182
|
+
**功能描述**:取两个人员列的并集(去重)。
|
|
183
|
+
|
|
184
|
+
**使用场景**:合并项目成员和负责人列表,如 "张三,李四" 和 "张三,王五" 得到 "张三,李四,王五"。
|
|
185
|
+
|
|
186
|
+
**公式表达式**:
|
|
187
|
+
|
|
188
|
+
// 数据表场景示例
|
|
189
|
+
LIST([项目表.项目成员], [项目表.项目负责人]).LISTCOMBINE().UNIQUE()
|
|
190
|
+
|
|
191
|
+
// 或页面控件场景示例
|
|
192
|
+
LIST([项目页.项目成员], [项目页.项目负责人]).LISTCOMBINE().UNIQUE()
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
#### 2. 人员取补集
|
|
198
|
+
|
|
199
|
+
**功能描述**:取第一个字段相对第二个字段的补集。
|
|
200
|
+
|
|
201
|
+
**使用场景**:找出只在第一个列表中的人员,如 "张三,李四" 和 "张三,王五" 得到 "李四"。
|
|
202
|
+
|
|
203
|
+
**公式表达式**:
|
|
204
|
+
|
|
205
|
+
// 数据表场景示例
|
|
206
|
+
[项目表.项目成员].FILTER([Each].CONTAINS([项目表.项目负责人]).NOT())
|
|
207
|
+
|
|
208
|
+
// 或页面控件场景示例
|
|
209
|
+
[项目页.项目成员].FILTER([Each].CONTAINS([项目页.项目负责人]).NOT())
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### 其他实用模板
|
|
215
|
+
|
|
216
|
+
#### 1. 随机数生成
|
|
217
|
+
|
|
218
|
+
**功能描述**:生成指定范围内的随机数(保留2位小数)。
|
|
219
|
+
|
|
220
|
+
**使用场景**:生成测试数据、随机抽样。
|
|
221
|
+
|
|
222
|
+
**公式表达式**:
|
|
223
|
+
|
|
224
|
+
// 数据表场景示例(假设有一个"范围"字段存储最大值)
|
|
225
|
+
(RAND() * [配置表.范围]).ROUND(2)
|
|
226
|
+
|
|
227
|
+
// 或直接使用固定值
|
|
228
|
+
(RAND() * 100).ROUND(2)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
#### 2. 地址提取 - 省份
|
|
234
|
+
|
|
235
|
+
**功能描述**:从地理位置字段中提取省份信息。
|
|
236
|
+
|
|
237
|
+
**使用场景**:将 "广州塔,广东省广州市海珠区阅江西路222号" 提取为 "广东省"。
|
|
238
|
+
|
|
239
|
+
**公式表达式**:
|
|
240
|
+
|
|
241
|
+
// 数据表场景示例
|
|
242
|
+
IF([客户表.客户地址].ISBLANK(), "", [客户表.客户地址].[省])
|
|
243
|
+
|
|
244
|
+
// 或页面控件场景示例
|
|
245
|
+
IF([客户页.客户地址].ISBLANK(), "", [客户页.客户地址].[省])
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
#### 3. 地址提取 - 市
|
|
251
|
+
|
|
252
|
+
**功能描述**:从地理位置字段中提取城市信息。
|
|
253
|
+
|
|
254
|
+
**公式表达式**:
|
|
255
|
+
|
|
256
|
+
// 数据表场景示例
|
|
257
|
+
IF([客户表.客户地址].ISBLANK(), "", [客户表.客户地址].[市])
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
#### 4. 地址提取 - 区
|
|
263
|
+
|
|
264
|
+
**功能描述**:从地理位置字段中提取区域信息。
|
|
265
|
+
|
|
266
|
+
**公式表达式**:
|
|
267
|
+
|
|
268
|
+
// 数据表场景示例
|
|
269
|
+
IF([客户表.客户地址].ISBLANK(), "", [客户表.客户地址].[区])
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
#### 5. 地址提取 - 街道
|
|
275
|
+
|
|
276
|
+
**功能描述**:从地理位置字段中提取街道信息。
|
|
277
|
+
|
|
278
|
+
**公式表达式**:
|
|
279
|
+
|
|
280
|
+
// 数据表场景示例
|
|
281
|
+
IF([客户表.客户地址].ISBLANK(), "", [客户表.客户地址].[街道])
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
#### 6. 地址提取 - 经纬度
|
|
287
|
+
|
|
288
|
+
**功能描述**:从地理位置字段中提取经纬度坐标。
|
|
289
|
+
|
|
290
|
+
**公式表达式**:
|
|
291
|
+
|
|
292
|
+
// 数据表场景示例
|
|
293
|
+
IF([客户表.客户地址].ISBLANK(), "", [客户表.客户地址].[经纬度])
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
#### 7. 提取邮箱账号
|
|
299
|
+
|
|
300
|
+
**功能描述**:从邮箱地址中提取@符号前的账号部分。
|
|
301
|
+
|
|
302
|
+
**使用场景**:将 `zhangsan@qq.com` 提取为 `zhangsan`。
|
|
303
|
+
|
|
304
|
+
**公式表达式**:
|
|
305
|
+
|
|
306
|
+
// 数据表场景示例
|
|
307
|
+
IF([用户表.邮箱].ISBLANK(), "", MID([用户表.邮箱], 1, FIND("@", [用户表.邮箱]) - 1))
|
|
308
|
+
|
|
309
|
+
// 或页面控件场景示例
|
|
310
|
+
IF([用户页.邮箱].ISBLANK(), "", MID([用户页.邮箱], 1, FIND("@", [用户页.邮箱]) - 1))
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
#### 8. 提取邮箱域名
|
|
316
|
+
|
|
317
|
+
**功能描述**:从邮箱地址中提取@符号后的域名部分。
|
|
318
|
+
|
|
319
|
+
**使用场景**:将 `zhangsan@qq.com` 提取为 `qq.com`。
|
|
320
|
+
|
|
321
|
+
**公式表达式**:
|
|
322
|
+
// 数据表场景示例
|
|
323
|
+
IF([用户表.邮箱].ISBLANK(), "", MID([用户表.邮箱], FIND("@", [用户表.邮箱], 1) + 1, LEN([用户表.邮箱]) - FIND("@", [用户表.邮箱], 1)))
|
|
324
|
+
|
|
325
|
+
// 或页面控件场景示例
|
|
326
|
+
IF([用户页.邮箱].ISBLANK(), "", MID([用户页.邮箱], FIND("@", [用户页.邮箱], 1) + 1, LEN([用户页.邮箱]) - FIND("@", [用户页.邮箱], 1)))
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
|
|
330
|
+
#### 9. 数字转中文大写
|
|
331
|
+
|
|
332
|
+
**功能描述**:将数字转换为中文大写形式。
|
|
333
|
+
|
|
334
|
+
**使用场景**:财务报表、票据打印,将 `1000` 转换为 `壹仟`。
|
|
335
|
+
|
|
336
|
+
**公式表达式**:
|
|
337
|
+
|
|
338
|
+
// 数据表场景示例
|
|
339
|
+
IF([财务表.金额].ISBLANK(), "", TEXT([财务表.金额], "[DBNum2][$-804]General"))
|
|
340
|
+
|
|
341
|
+
// 或页面控件场景示例
|
|
342
|
+
IF([财务页.金额].ISBLANK(), "", TEXT([财务页.金额], "[DBNum2][$-804]General"))
|
|
343
|
+
|
|
344
|
+
#### 10. 统计月份的数量
|
|
345
|
+
|
|
346
|
+
[项目主表].FILTER(AND(YEAR([Each].[开始日期]) = LEFT([页面1.统计月份],4), MONTH([Each].[开始日期]) = RIGHT([页面1.统计月份],2))).[项目编号].COUNTA()
|
|
347
|
+
|
|
348
|
+
> 说明:示例中的 `[页面1.统计月份]` 是页面控件引用(用户在页面上输入的"YYYYMM"字符串);若改为公式字段所在表的字段,写作 `[Each].[统计月份]`,禁止使用裸字段 `[统计月份]`。
|
|
349
|
+
|
|
350
|
+
#### 11. 按钮跳转外部链接
|
|
351
|
+
|
|
352
|
+
// 跳转至百度链接
|
|
353
|
+
OPENLINK("https://baidu.com")
|
|
354
|
+
|
|
355
|
+
// 若你知道当前文档的 doc.weixin.qq.com 链接,需要跳转到其他页面,修改 p=<page_id> 参数为目标 page_id 即可
|
|
356
|
+
// 假设当前页面为:https://doc.weixin.qq.com/smartpage/<docid>?p=<current_page_id>,或者末尾没有 p=<page_id>
|
|
357
|
+
// 你需要跳转到另一个页面,page_id 为 <new_page_id>,则写为以下 URL 即可
|
|
358
|
+
OPENLINK("https://doc.weixin.qq.com/smartpage/<docid>?p=<new_page_id>")
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
#### 12. 计算下个周六,以日期显示
|
|
362
|
+
// 计算下个周六
|
|
363
|
+
DATE(YEAR(TODAY()), MONTH(TODAY()), DAY(TODAY()) + (6 - WEEKDAY(TODAY(), 2)))
|
|
364
|
+
|
|
365
|
+
// 计算下个周天
|
|
366
|
+
DATE(YEAR(TODAY()), MONTH(TODAY()), DAY(TODAY()) + (7 - WEEKDAY(TODAY(), 2)))
|
|
367
|
+
|
|
368
|
+
#### 13. 显示用户信息
|
|
369
|
+
// 当前用户的姓名
|
|
370
|
+
USER()
|
|
371
|
+
|
|
372
|
+
// 当前用户的头像
|
|
373
|
+
USER().[头像]
|
|
374
|
+
|
|
375
|
+
// 当前用户的企业名称
|
|
376
|
+
USER().[企业名称]
|
|
377
|
+
|
|
378
|
+
#### 14. 修改数据表中的记录
|
|
379
|
+
|
|
380
|
+
MODIFYRECORDS(目标记录集, 字段1, 值1, [字段2, 值2...])
|
|
381
|
+
- 目标记录集:支持指定单条记录(如 [表].FIRST()),也**完全支持**通过 FILTER 函数动态查询出的多条记录集合(如 [表].FILTER(条件))。
|
|
382
|
+
配合条件语句等可以实现很复杂实用的数据表记录修改/新增功能。
|
|
383
|
+
|
|
384
|
+
#### 15. 通过输入框匹配人员,写入记录到数据表
|
|
385
|
+
|
|
386
|
+
**功能描述**:将人员列中的人员添加到数据表中。
|
|
387
|
+
|
|
388
|
+
// 数据表场景示例
|
|
389
|
+
ADDRECORD([投票表], [投票表.提名人员], [人员表.人员].FILTER([Each].CONTAINTEXT([页面1.输入框])).FIRST(), [投票表.投票人], USER())
|
|
390
|
+
|
|
391
|
+
## 使用模板前必读
|
|
392
|
+
|
|
393
|
+
所有模板中的公式遵循以下规范:
|
|
394
|
+
|
|
395
|
+
1. **[Each] 规范**:
|
|
396
|
+
- 在 FILTER 中看到字段引用,前面都有 `[Each].`
|
|
397
|
+
- 例如:`[表名].FILTER([Each].[字段] = 值)`
|
|
398
|
+
|
|
399
|
+
2. **逻辑运算规范**:
|
|
400
|
+
- 与运算使用 `AND(条件1, 条件2)`,而不是 `&&`
|
|
401
|
+
- 或运算使用 `OR(条件1, 条件2)`,而不是 `||`
|
|
402
|
+
- 非运算使用 `NOT(条件)`,而不是 `!`
|
|
403
|
+
|
|
404
|
+
3. **引用格式规范**:
|
|
405
|
+
- 数据表字段:`[表名.字段名]`
|
|
406
|
+
- 页面控件:`[页面名.控件名]`
|
|
407
|
+
- 在公式字段中引用当前记录:`[字段名]`
|
|
408
|
+
- 在 FILTER 中引用:`[Each].[字段名]`
|
|
409
|
+
|
|
410
|
+
模板变量替换时请严格保持这些格式。
|