weaver-e10-builder 1.0.8-beta → 1.0.10-beta
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/dist/commands/actionflow.d.ts +7 -0
- package/dist/commands/actionflow.d.ts.map +1 -0
- package/dist/commands/actionflow.js +105 -0
- package/dist/commands/actionflow.js.map +1 -0
- package/dist/commands/auth.js +1 -1
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/form-list.d.ts.map +1 -1
- package/dist/commands/form-list.js +18 -9
- package/dist/commands/form-list.js.map +1 -1
- package/dist/commands/form-native.d.ts +0 -14
- package/dist/commands/form-native.d.ts.map +1 -1
- package/dist/commands/form-native.js +420 -72
- package/dist/commands/form-native.js.map +1 -1
- package/dist/commands/form.d.ts.map +1 -1
- package/dist/commands/form.js +175 -2
- package/dist/commands/form.js.map +1 -1
- package/dist/commands/wf-form.d.ts.map +1 -1
- package/dist/commands/wf-form.js +78 -8
- package/dist/commands/wf-form.js.map +1 -1
- package/dist/commands/workflow-action.d.ts +11 -0
- package/dist/commands/workflow-action.d.ts.map +1 -1
- package/dist/commands/workflow-action.js +13 -1592
- package/dist/commands/workflow-action.js.map +1 -1
- package/dist/commands/workflow-create-workflow.d.ts.map +1 -1
- package/dist/commands/workflow-create-workflow.js +36 -5
- package/dist/commands/workflow-create-workflow.js.map +1 -1
- package/dist/core/client.d.ts +2 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +2 -0
- package/dist/core/client.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/services/actionflow/build_workflow_draft.d.ts +20 -0
- package/dist/services/actionflow/build_workflow_draft.d.ts.map +1 -0
- package/dist/services/actionflow/build_workflow_draft.js +222 -0
- package/dist/services/actionflow/build_workflow_draft.js.map +1 -0
- package/dist/services/actionflow/calendar_mapper.d.ts +3 -0
- package/dist/services/actionflow/calendar_mapper.d.ts.map +1 -0
- package/dist/services/actionflow/calendar_mapper.js +152 -0
- package/dist/services/actionflow/calendar_mapper.js.map +1 -0
- package/dist/services/actionflow/component_registry.d.ts +13 -0
- package/dist/services/actionflow/component_registry.d.ts.map +1 -0
- package/dist/services/actionflow/component_registry.js +213 -0
- package/dist/services/actionflow/component_registry.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_add.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_add.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_add.js +127 -0
- package/dist/services/actionflow/components/action_eb_add.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_add_compiler.d.ts +4 -0
- package/dist/services/actionflow/components/action_eb_add_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_add_compiler.js +13 -0
- package/dist/services/actionflow/components/action_eb_add_compiler.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_delete.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_delete.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_delete.js +69 -0
- package/dist/services/actionflow/components/action_eb_delete.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_delete_compiler.d.ts +4 -0
- package/dist/services/actionflow/components/action_eb_delete_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_delete_compiler.js +7 -0
- package/dist/services/actionflow/components/action_eb_delete_compiler.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_recover.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_recover.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_recover.js +28 -0
- package/dist/services/actionflow/components/action_eb_recover.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_recover_compiler.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_recover_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_recover_compiler.js +16 -0
- package/dist/services/actionflow/components/action_eb_recover_compiler.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_save_version.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_save_version.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_save_version.js +30 -0
- package/dist/services/actionflow/components/action_eb_save_version.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_save_version_compiler.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_save_version_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_save_version_compiler.js +15 -0
- package/dist/services/actionflow/components/action_eb_save_version_compiler.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_update.d.ts +3 -0
- package/dist/services/actionflow/components/action_eb_update.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_update.js +154 -0
- package/dist/services/actionflow/components/action_eb_update.js.map +1 -0
- package/dist/services/actionflow/components/action_eb_update_compiler.d.ts +16 -0
- package/dist/services/actionflow/components/action_eb_update_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/components/action_eb_update_compiler.js +94 -0
- package/dist/services/actionflow/components/action_eb_update_compiler.js.map +1 -0
- package/dist/services/actionflow/components/approve_create.d.ts +3 -0
- package/dist/services/actionflow/components/approve_create.d.ts.map +1 -0
- package/dist/services/actionflow/components/approve_create.js +44 -0
- package/dist/services/actionflow/components/approve_create.js.map +1 -0
- package/dist/services/actionflow/components/approve_trigger.d.ts +5 -0
- package/dist/services/actionflow/components/approve_trigger.d.ts.map +1 -0
- package/dist/services/actionflow/components/approve_trigger.js +184 -0
- package/dist/services/actionflow/components/approve_trigger.js.map +1 -0
- package/dist/services/actionflow/components/approve_trigger_compiler.d.ts +4 -0
- package/dist/services/actionflow/components/approve_trigger_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/components/approve_trigger_compiler.js +20 -0
- package/dist/services/actionflow/components/approve_trigger_compiler.js.map +1 -0
- package/dist/services/actionflow/components/condition.d.ts +3 -0
- package/dist/services/actionflow/components/condition.d.ts.map +1 -0
- package/dist/services/actionflow/components/condition.js +23 -0
- package/dist/services/actionflow/components/condition.js.map +1 -0
- package/dist/services/actionflow/components/date_trigger.d.ts +5 -0
- package/dist/services/actionflow/components/date_trigger.d.ts.map +1 -0
- package/dist/services/actionflow/components/date_trigger.js +129 -0
- package/dist/services/actionflow/components/date_trigger.js.map +1 -0
- package/dist/services/actionflow/components/document_actions.d.ts +28 -0
- package/dist/services/actionflow/components/document_actions.d.ts.map +1 -0
- package/dist/services/actionflow/components/document_actions.js +266 -0
- package/dist/services/actionflow/components/document_actions.js.map +1 -0
- package/dist/services/actionflow/components/eb_get_data_by_id.d.ts +5 -0
- package/dist/services/actionflow/components/eb_get_data_by_id.d.ts.map +1 -0
- package/dist/services/actionflow/components/eb_get_data_by_id.js +44 -0
- package/dist/services/actionflow/components/eb_get_data_by_id.js.map +1 -0
- package/dist/services/actionflow/components/enquiry_form.d.ts +5 -0
- package/dist/services/actionflow/components/enquiry_form.d.ts.map +1 -0
- package/dist/services/actionflow/components/enquiry_form.js +100 -0
- package/dist/services/actionflow/components/enquiry_form.js.map +1 -0
- package/dist/services/actionflow/components/event_form_data.d.ts +3 -0
- package/dist/services/actionflow/components/event_form_data.d.ts.map +1 -0
- package/dist/services/actionflow/components/event_form_data.js +29 -0
- package/dist/services/actionflow/components/event_form_data.js.map +1 -0
- package/dist/services/actionflow/components/hrm_actions.d.ts +7 -0
- package/dist/services/actionflow/components/hrm_actions.d.ts.map +1 -0
- package/dist/services/actionflow/components/hrm_actions.js +138 -0
- package/dist/services/actionflow/components/hrm_actions.js.map +1 -0
- package/dist/services/actionflow/components/index.d.ts +32 -0
- package/dist/services/actionflow/components/index.d.ts.map +1 -0
- package/dist/services/actionflow/components/index.js +132 -0
- package/dist/services/actionflow/components/index.js.map +1 -0
- package/dist/services/actionflow/components/logic_flow_set.d.ts +10 -0
- package/dist/services/actionflow/components/logic_flow_set.d.ts.map +1 -0
- package/dist/services/actionflow/components/logic_flow_set.js +79 -0
- package/dist/services/actionflow/components/logic_flow_set.js.map +1 -0
- package/dist/services/actionflow/components/meeting_create.d.ts +5 -0
- package/dist/services/actionflow/components/meeting_create.d.ts.map +1 -0
- package/dist/services/actionflow/components/meeting_create.js +37 -0
- package/dist/services/actionflow/components/meeting_create.js.map +1 -0
- package/dist/services/actionflow/components/multiple_execution.d.ts +5 -0
- package/dist/services/actionflow/components/multiple_execution.d.ts.map +1 -0
- package/dist/services/actionflow/components/multiple_execution.js +136 -0
- package/dist/services/actionflow/components/multiple_execution.js.map +1 -0
- package/dist/services/actionflow/components/output.d.ts +9 -0
- package/dist/services/actionflow/components/output.d.ts.map +1 -0
- package/dist/services/actionflow/components/output.js +81 -0
- package/dist/services/actionflow/components/output.js.map +1 -0
- package/dist/services/actionflow/components/schedule_create.d.ts +5 -0
- package/dist/services/actionflow/components/schedule_create.d.ts.map +1 -0
- package/dist/services/actionflow/components/schedule_create.js +42 -0
- package/dist/services/actionflow/components/schedule_create.js.map +1 -0
- package/dist/services/actionflow/components/send_message.d.ts +7 -0
- package/dist/services/actionflow/components/send_message.d.ts.map +1 -0
- package/dist/services/actionflow/components/send_message.js +200 -0
- package/dist/services/actionflow/components/send_message.js.map +1 -0
- package/dist/services/actionflow/components/simple_scheduler.d.ts +5 -0
- package/dist/services/actionflow/components/simple_scheduler.d.ts.map +1 -0
- package/dist/services/actionflow/components/simple_scheduler.js +22 -0
- package/dist/services/actionflow/components/simple_scheduler.js.map +1 -0
- package/dist/services/actionflow/components/time_batch_trigger.d.ts +5 -0
- package/dist/services/actionflow/components/time_batch_trigger.d.ts.map +1 -0
- package/dist/services/actionflow/components/time_batch_trigger.js +92 -0
- package/dist/services/actionflow/components/time_batch_trigger.js.map +1 -0
- package/dist/services/actionflow/components/workflow_actions.d.ts +26 -0
- package/dist/services/actionflow/components/workflow_actions.d.ts.map +1 -0
- package/dist/services/actionflow/components/workflow_actions.js +403 -0
- package/dist/services/actionflow/components/workflow_actions.js.map +1 -0
- package/dist/services/actionflow/context_data_builder.d.ts +9 -0
- package/dist/services/actionflow/context_data_builder.d.ts.map +1 -0
- package/dist/services/actionflow/context_data_builder.js +31 -0
- package/dist/services/actionflow/context_data_builder.js.map +1 -0
- package/dist/services/actionflow/context_preflight.d.ts +6 -0
- package/dist/services/actionflow/context_preflight.d.ts.map +1 -0
- package/dist/services/actionflow/context_preflight.js +122 -0
- package/dist/services/actionflow/context_preflight.js.map +1 -0
- package/dist/services/actionflow/context_provider.d.ts +18 -0
- package/dist/services/actionflow/context_provider.d.ts.map +1 -0
- package/dist/services/actionflow/context_provider.js +102 -0
- package/dist/services/actionflow/context_provider.js.map +1 -0
- package/dist/services/actionflow/context_source.d.ts +7 -0
- package/dist/services/actionflow/context_source.d.ts.map +1 -0
- package/dist/services/actionflow/context_source.js +10 -0
- package/dist/services/actionflow/context_source.js.map +1 -0
- package/dist/services/actionflow/design_client.d.ts +48 -0
- package/dist/services/actionflow/design_client.d.ts.map +1 -0
- package/dist/services/actionflow/design_client.js +170 -0
- package/dist/services/actionflow/design_client.js.map +1 -0
- package/dist/services/actionflow/document_source.d.ts +5 -0
- package/dist/services/actionflow/document_source.d.ts.map +1 -0
- package/dist/services/actionflow/document_source.js +5 -0
- package/dist/services/actionflow/document_source.js.map +1 -0
- package/dist/services/actionflow/enrich_approve_trigger.d.ts +12 -0
- package/dist/services/actionflow/enrich_approve_trigger.d.ts.map +1 -0
- package/dist/services/actionflow/enrich_approve_trigger.js +107 -0
- package/dist/services/actionflow/enrich_approve_trigger.js.map +1 -0
- package/dist/services/actionflow/filter_rules.d.ts +14 -0
- package/dist/services/actionflow/filter_rules.d.ts.map +1 -0
- package/dist/services/actionflow/filter_rules.js +259 -0
- package/dist/services/actionflow/filter_rules.js.map +1 -0
- package/dist/services/actionflow/form_source.d.ts +17 -0
- package/dist/services/actionflow/form_source.d.ts.map +1 -0
- package/dist/services/actionflow/form_source.js +42 -0
- package/dist/services/actionflow/form_source.js.map +1 -0
- package/dist/services/actionflow/formula_service.d.ts +51 -0
- package/dist/services/actionflow/formula_service.d.ts.map +1 -0
- package/dist/services/actionflow/formula_service.js +999 -0
- package/dist/services/actionflow/formula_service.js.map +1 -0
- package/dist/services/actionflow/generation_service.d.ts +28 -0
- package/dist/services/actionflow/generation_service.d.ts.map +1 -0
- package/dist/services/actionflow/generation_service.js +283 -0
- package/dist/services/actionflow/generation_service.js.map +1 -0
- package/dist/services/actionflow/hrm_source.d.ts +4 -0
- package/dist/services/actionflow/hrm_source.d.ts.map +1 -0
- package/dist/services/actionflow/hrm_source.js +8 -0
- package/dist/services/actionflow/hrm_source.js.map +1 -0
- package/dist/services/actionflow/id_generator.d.ts +13 -0
- package/dist/services/actionflow/id_generator.d.ts.map +1 -0
- package/dist/services/actionflow/id_generator.js +33 -0
- package/dist/services/actionflow/id_generator.js.map +1 -0
- package/dist/services/actionflow/person_source.d.ts +7 -0
- package/dist/services/actionflow/person_source.d.ts.map +1 -0
- package/dist/services/actionflow/person_source.js +34 -0
- package/dist/services/actionflow/person_source.js.map +1 -0
- package/dist/services/actionflow/preflight_service.d.ts +42 -0
- package/dist/services/actionflow/preflight_service.d.ts.map +1 -0
- package/dist/services/actionflow/preflight_service.js +1247 -0
- package/dist/services/actionflow/preflight_service.js.map +1 -0
- package/dist/services/actionflow/query_field_defaults.d.ts +3 -0
- package/dist/services/actionflow/query_field_defaults.d.ts.map +1 -0
- package/dist/services/actionflow/query_field_defaults.js +46 -0
- package/dist/services/actionflow/query_field_defaults.js.map +1 -0
- package/dist/services/actionflow/readback_verifier.d.ts +11 -0
- package/dist/services/actionflow/readback_verifier.d.ts.map +1 -0
- package/dist/services/actionflow/readback_verifier.js +252 -0
- package/dist/services/actionflow/readback_verifier.js.map +1 -0
- package/dist/services/actionflow/request.d.ts +13 -0
- package/dist/services/actionflow/request.d.ts.map +1 -0
- package/dist/services/actionflow/request.js +15 -0
- package/dist/services/actionflow/request.js.map +1 -0
- package/dist/services/actionflow/runtime_metadata.d.ts +27 -0
- package/dist/services/actionflow/runtime_metadata.d.ts.map +1 -0
- package/dist/services/actionflow/runtime_metadata.js +142 -0
- package/dist/services/actionflow/runtime_metadata.js.map +1 -0
- package/dist/services/actionflow/save_workflow_draft.d.ts +34 -0
- package/dist/services/actionflow/save_workflow_draft.d.ts.map +1 -0
- package/dist/services/actionflow/save_workflow_draft.js +449 -0
- package/dist/services/actionflow/save_workflow_draft.js.map +1 -0
- package/dist/services/actionflow/system_params.d.ts +5 -0
- package/dist/services/actionflow/system_params.d.ts.map +1 -0
- package/dist/services/actionflow/system_params.js +55 -0
- package/dist/services/actionflow/system_params.js.map +1 -0
- package/dist/services/actionflow/trigger_common.d.ts +6 -0
- package/dist/services/actionflow/trigger_common.d.ts.map +1 -0
- package/dist/services/actionflow/trigger_common.js +41 -0
- package/dist/services/actionflow/trigger_common.js.map +1 -0
- package/dist/services/actionflow/workflow_compiler.d.ts +27 -0
- package/dist/services/actionflow/workflow_compiler.d.ts.map +1 -0
- package/dist/services/actionflow/workflow_compiler.js +1804 -0
- package/dist/services/actionflow/workflow_compiler.js.map +1 -0
- package/dist/services/actionflow/workflow_source.d.ts +14 -0
- package/dist/services/actionflow/workflow_source.d.ts.map +1 -0
- package/dist/services/actionflow/workflow_source.js +86 -0
- package/dist/services/actionflow/workflow_source.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** 条件分支 (Condition)。 */
|
|
2
|
+
export const CONDITION_COMPONENT = {
|
|
3
|
+
type: 'Condition',
|
|
4
|
+
nodeRole: 'action',
|
|
5
|
+
description: '根据上游字段值判断进入哪个分支。支持 if/else if/else。',
|
|
6
|
+
display: { typeName: '条件分支', componentName: '条件分支', componentDesc: '如果...否则...', icon: 'Icon-Screening-conditions' },
|
|
7
|
+
params: {
|
|
8
|
+
branches: {
|
|
9
|
+
required: true,
|
|
10
|
+
description: '分支列表。condition.type 为 if/else if/else;每个分支包含 condition 和 actions。',
|
|
11
|
+
valueType: 'array',
|
|
12
|
+
valueShape: 'array',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
propertySources: [
|
|
16
|
+
{ properties: ['branches.conditions'], module: 'core.workflow_source', lookups: ['conditionFieldBrowser'], purpose: '读取条件设计器可见字段、类型和操作符依据', fallback: 'none' },
|
|
17
|
+
],
|
|
18
|
+
dataMapping: { branches: 'branches' },
|
|
19
|
+
defaultData: { executeMethod: '1' },
|
|
20
|
+
runtimeContext: { inputs: ['FormData'], outputs: [] },
|
|
21
|
+
dataFields: {},
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=condition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condition.js","sourceRoot":"","sources":["../../../../src/services/actionflow/components/condition.ts"],"names":[],"mappings":"AAAA,wBAAwB;AACxB,MAAM,CAAC,MAAM,mBAAmB,GAAwB;IACtD,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,qCAAqC;IAClD,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,2BAA2B,EAAE;IACpH,MAAM,EAAE;QACN,QAAQ,EAAE;YACR,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,mEAAmE;YAChF,SAAS,EAAE,OAAO;YAClB,UAAU,EAAE,OAAO;SACpB;KACF;IACD,eAAe,EAAE;QACf,EAAE,UAAU,EAAE,CAAC,qBAAqB,CAAC,EAAE,MAAM,EAAE,sBAAsB,EAAE,OAAO,EAAE,CAAC,uBAAuB,CAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,EAAE;KAC/J;IACD,WAAW,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;IACrC,WAAW,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE;IACnC,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IACrD,UAAU,EAAE,EAAE;CACf,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** 按日期字段触发 (DateTrigger)。 */
|
|
2
|
+
import type { CompilerContext } from './index.js';
|
|
3
|
+
export declare const DATE_TRIGGER_COMPONENT: Record<string, any>;
|
|
4
|
+
export declare function dateTriggerCompiler(draftParams: Record<string, any>, ctx: CompilerContext): Record<string, any>;
|
|
5
|
+
//# sourceMappingURL=date_trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date_trigger.d.ts","sourceRoot":"","sources":["../../../../src/services/actionflow/components/date_trigger.ts"],"names":[],"mappings":"AAAA,6BAA6B;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAGlD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAwDtD,CAAC;AAUF,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAwD/G"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { buildTriggerDataSource, buildTriggerOperators, buildTriggerQueryFields } from '../trigger_common.js';
|
|
2
|
+
export const DATE_TRIGGER_COMPONENT = {
|
|
3
|
+
type: 'DateTrigger',
|
|
4
|
+
nodeRole: 'event',
|
|
5
|
+
description: '根据数据源中指定数据的日期字段定时触发动作流。',
|
|
6
|
+
display: { typeName: '按日期字段触发', componentName: '按日期字段触发', componentDesc: '根据数据源中指定数据的日期字段触发', icon: 'Icon-triggering-by-date-field-mcolor' },
|
|
7
|
+
params: {
|
|
8
|
+
dataSource: { required: true, description: '要监听的数据源(表单)。标准格式为 groupId/id。', valueType: 'platform_reference', referenceType: 'ebuilder_form', valueShape: 'object' },
|
|
9
|
+
dateField: { required: true, description: '触发依据的日期字段。', valueType: 'platform_reference', referenceType: 'ebuilder_field', valueShape: 'object' },
|
|
10
|
+
triggerDateTime: { required: false, default: '00:00', description: '触发时间点(HH:mm)。', valueType: 'string' },
|
|
11
|
+
repeatType: { required: false, default: 1, description: '重复类型:1=每日 / 2=每周 / 3=每月。', valueType: 'enum', options: [{ value: '1', label: '每日' }, { value: '2', label: '每周' }, { value: '3', label: '每月' }] },
|
|
12
|
+
triggerDateType: { required: false, default: '3', description: '提醒类型:0=准时 / 1=提前 / 2=延迟 / 3=当天。', valueType: 'string' },
|
|
13
|
+
beforeOrAfterNum: { required: false, default: 1, description: '提前/延迟的天数。', valueType: 'integer' },
|
|
14
|
+
beforeOrAfterGrade: { required: false, default: '0', description: '提醒粒度:0=天 / 4=小时 / 5=分钟。', valueType: 'string' },
|
|
15
|
+
numConstOrField: { required: false, description: '数量来源:numConst 固定整数,numField 表单整数字段。', valueType: 'enum', options: [{ value: 'numConst', label: '固定值' }, { value: 'numField', label: '字段值' }] },
|
|
16
|
+
numField: { required: false, description: 'numConstOrField=numField 时的整数字段。', valueType: 'platform_reference', referenceType: 'ebuilder_field', valueShape: 'object' },
|
|
17
|
+
timeConstOrField: { required: false, description: '触发时间来源。', valueType: 'enum', options: [{ value: 'timeConst', label: '固定时间' }, { value: 'timeField', label: '字段时间' }, { value: 'currentDateFix', label: '当前日期固定时间' }, { value: 'currentDateField', label: '当前日期字段时间' }] },
|
|
18
|
+
timeField: { required: false, description: '时间字段引用。', valueType: 'platform_reference', referenceType: 'ebuilder_field', valueShape: 'object' },
|
|
19
|
+
remindFinishWay: { required: false, description: '结束方式:endDate/runDate。', valueType: 'enum' },
|
|
20
|
+
remindEndDataVal: { required: false, description: '结束日期。', valueType: 'string' },
|
|
21
|
+
remindRunDayVal: { required: false, description: '持续次数。', valueType: 'integer' },
|
|
22
|
+
remindRunDayUnit: { required: false, description: '持续次数单位。', valueType: 'string' },
|
|
23
|
+
executeMethod: { required: false, description: '执行方式,默认 1。', valueType: 'string' },
|
|
24
|
+
queryFields: { required: false, description: '触发后输出字段;未提供或传空数组时默认全选(含数据ID等系统字段)。仅在需求明确限制输出时传字段列表。', valueType: 'array', valueShape: 'array' },
|
|
25
|
+
operator: { required: true, description: '操作人。', valueType: 'platform_reference', referenceType: 'user_assignment', valueShape: 'object' },
|
|
26
|
+
filter: { required: false, description: '日期触发前的数据筛选条件。', valueType: 'object', valueShape: 'object' },
|
|
27
|
+
},
|
|
28
|
+
propertySources: [
|
|
29
|
+
{ properties: ['dataSource', 'dateField'], module: 'core.form_source', lookups: ['dsGroup', 'dsList', 'getEbField'], purpose: '解析日期触发表单和日期字段', fallback: 'real_candidate_only' },
|
|
30
|
+
{ properties: ['operator'], module: 'core.person_source', lookups: ['resourceData'], purpose: '补全必填操作人', fallback: 'real_candidate_only' },
|
|
31
|
+
],
|
|
32
|
+
dataMapping: {
|
|
33
|
+
dataSource: '_dateDataSource', dateField: 'dateField', triggerDateTime: 'triggerDateTime', repeatType: 'repeatType',
|
|
34
|
+
triggerDateType: 'triggerDateType', beforeOrAfterNum: 'beforeOrAfterNum', beforeOrAfterGrade: 'beforeOrAfterGrade',
|
|
35
|
+
numConstOrField: 'numConstOrField', numField: 'numField', timeConstOrField: 'timeConstOrField', timeField: 'timeField',
|
|
36
|
+
remindFinishWay: 'remindFinishWay', remindEndDataVal: 'remindEndDataVal', remindRunDayVal: 'remindRunDayVal',
|
|
37
|
+
remindRunDayUnit: 'remindRunDayUnit', executeMethod: 'executeMethod', queryFields: 'queryFields', operator: 'operator', filter: 'dataFilter',
|
|
38
|
+
},
|
|
39
|
+
defaultData: {
|
|
40
|
+
triggerDateTime: '00:00', repeatType: 1, triggerDateType: '3', beforeOrAfterGrade: '0', beforeOrAfterNum: 1,
|
|
41
|
+
numConstOrField: 'numConst', timeConstOrField: 'timeConst', endTimesType: 'fix', remindFinishWay: '',
|
|
42
|
+
remindEndData: '', remindEndDataVal: '', remindRunDay: '', remindRunDayVal: '', remindRunDayUnit: '',
|
|
43
|
+
operator: [], timeField: '', executeMethod: '1',
|
|
44
|
+
},
|
|
45
|
+
triggerType: 'TimerTrigger',
|
|
46
|
+
triggerTypeName: '按日期字段触发',
|
|
47
|
+
runtimeContext: { inputs: [], outputs: ['dataResponse.<字段ID>', 'dataResponse.id', 'queryFields'] },
|
|
48
|
+
dataFields: {
|
|
49
|
+
dataSource: { type: 'object', required: true, subfields: ['groupId', 'id', 'text', 'type', 'isPhysical'] },
|
|
50
|
+
dateField: { type: 'object', required: true, subfields: ['objId', 'id', 'name', 'text', 'type', 'compType', 'formatType'] },
|
|
51
|
+
queryFields: { type: 'array', required: true },
|
|
52
|
+
dataFilter: { type: 'object', required: false },
|
|
53
|
+
triggerDateTime: { type: 'string', required: true },
|
|
54
|
+
repeatType: { type: 'int', required: true },
|
|
55
|
+
triggerDateType: { type: 'int', required: true, default: 3 },
|
|
56
|
+
operator: { type: 'array', required: true },
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
const DATE_TRIGGER_DEFAULTS = {
|
|
60
|
+
triggerDateTime: '00:00', beforeOrAfterNum: 1, remindEndDataVal: '', timeField: '', remindRunDayVal: '',
|
|
61
|
+
repeatType: 1, operator: [], remindEndData: '', remindRunDayUnit: '', numConstOrField: 'numConst',
|
|
62
|
+
dataFilter: { isNewFilter: true, isParent: true, datas: [], parentNode: '', relationship: '1', key: '' },
|
|
63
|
+
triggerDateType: '3', remindFinishWay: '', timeConstOrField: 'timeConst', beforeOrAfterGrade: '0',
|
|
64
|
+
remindRunDay: '', endTimesType: 'fix', executeMethod: '1',
|
|
65
|
+
};
|
|
66
|
+
export function dateTriggerCompiler(draftParams, ctx) {
|
|
67
|
+
const meta = ctx.meta || {};
|
|
68
|
+
const appId = ctx.appId;
|
|
69
|
+
const result = JSON.parse(JSON.stringify(DATE_TRIGGER_DEFAULTS));
|
|
70
|
+
const ds = draftParams.dataSource || {};
|
|
71
|
+
const [dsId] = buildTriggerDataSource(ds, { includeSourceId: false });
|
|
72
|
+
const [, , dataSource] = buildTriggerDataSource(ds, { includeSourceId: false });
|
|
73
|
+
if (ds && typeof ds === 'object')
|
|
74
|
+
result.dataSource = dataSource;
|
|
75
|
+
const df = draftParams.dateField || {};
|
|
76
|
+
if (df && typeof df === 'object') {
|
|
77
|
+
const dfId = String(df.id ?? df.name ?? '');
|
|
78
|
+
let dfFormat = String(df.formatType ?? df.type ?? 'Date');
|
|
79
|
+
if (dfFormat === 'Date' || dfFormat === '日期')
|
|
80
|
+
dfFormat = '4';
|
|
81
|
+
else if (dfFormat === 'DateTime' || dfFormat === '日期时间')
|
|
82
|
+
dfFormat = '5';
|
|
83
|
+
else if (dfFormat === 'Time' || dfFormat === '时间')
|
|
84
|
+
dfFormat = '6';
|
|
85
|
+
result.dateField = {
|
|
86
|
+
optionType: String(df.optionType ?? ''), compType: String(df.compType ?? 'DateComponent'),
|
|
87
|
+
showName: dfId, objId: String(df.objId ?? dsId), name: dfId, id: dfId,
|
|
88
|
+
text: String(df.text || df.label || ''), formatType: dfFormat, type: String(df.type ?? 'Date'),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
result.dateField = { optionType: '', compType: 'DateComponent', showName: '', objId: '', name: '', id: '', text: '', formatType: '4', type: 'Date' };
|
|
93
|
+
}
|
|
94
|
+
if (draftParams.triggerDateTime)
|
|
95
|
+
result.triggerDateTime = String(draftParams.triggerDateTime);
|
|
96
|
+
if (draftParams.repeatType !== undefined && draftParams.repeatType !== null)
|
|
97
|
+
result.repeatType = parseInt(String(draftParams.repeatType), 10);
|
|
98
|
+
if (draftParams.triggerDateType !== undefined && draftParams.triggerDateType !== null)
|
|
99
|
+
result.triggerDateType = String(draftParams.triggerDateType);
|
|
100
|
+
if (draftParams.beforeOrAfterNum !== undefined && draftParams.beforeOrAfterNum !== null)
|
|
101
|
+
result.beforeOrAfterNum = parseInt(String(draftParams.beforeOrAfterNum), 10);
|
|
102
|
+
if (draftParams.beforeOrAfterGrade !== undefined && draftParams.beforeOrAfterGrade !== null)
|
|
103
|
+
result.beforeOrAfterGrade = String(draftParams.beforeOrAfterGrade);
|
|
104
|
+
for (const key of ['numConstOrField', 'numField', 'timeConstOrField', 'timeField', 'remindFinishWay', 'remindEndDataVal', 'remindRunDayVal', 'remindRunDayUnit', 'executeMethod']) {
|
|
105
|
+
const value = draftParams[key];
|
|
106
|
+
if (value !== undefined && value !== null && value !== '' && !(Array.isArray(value) && value.length === 0)) {
|
|
107
|
+
result[key] = JSON.parse(JSON.stringify(value));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const dateFilter = draftParams.filter || draftParams.filterCondition;
|
|
111
|
+
if (dateFilter) {
|
|
112
|
+
if (!ctx.buildFilterInput)
|
|
113
|
+
throw new Error('DateTrigger 的筛选条件需要 filter_builder');
|
|
114
|
+
result.dataFilter = ctx.buildFilterInput(result, dateFilter, meta, appId, 'DateTrigger');
|
|
115
|
+
}
|
|
116
|
+
if (!result.lastTriggerTime)
|
|
117
|
+
result.lastTriggerTime = String(Date.now());
|
|
118
|
+
result.queryFields = buildTriggerQueryFields(draftParams.queryFields, dsId);
|
|
119
|
+
const operators = buildTriggerOperators(draftParams.operator);
|
|
120
|
+
if (operators.length)
|
|
121
|
+
result.operator = operators;
|
|
122
|
+
result.applicationName = draftParams.dataSource && typeof draftParams.dataSource === 'object' ? String(draftParams.dataSource.text || '') : '';
|
|
123
|
+
if (appId) {
|
|
124
|
+
result.currentApplication = appId;
|
|
125
|
+
result.applicationId = appId;
|
|
126
|
+
}
|
|
127
|
+
return result;
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=date_trigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date_trigger.js","sourceRoot":"","sources":["../../../../src/services/actionflow/components/date_trigger.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAE9G,MAAM,CAAC,MAAM,sBAAsB,GAAwB;IACzD,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,OAAO;IACjB,WAAW,EAAE,yBAAyB;IACtC,OAAO,EAAE,EAAE,QAAQ,EAAE,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G,EAAE,CAAC,CAAC;IACzE,MAAM,CAAC,WAAW,GAAG,uBAAuB,CAAC,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;IAE5E,MAAM,SAAS,GAAG,qBAAqB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9D,IAAI,SAAS,CAAC,MAAM;QAAE,MAAM,CAAC,QAAQ,GAAG,SAAS,CAAC;IAClD,MAAM,CAAC,eAAe,GAAG,WAAW,CAAC,UAAU,IAAI,OAAO,WAAW,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/I,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAClC,MAAM,CAAC,aAAa,GAAG,KAAK,CAAC;IAC/B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** 文档原生动作。
|
|
2
|
+
* 字段名对齐 weapp-esb-develop 的 document 组件及 weaver-esb-component-develop DTO。
|
|
3
|
+
* 文档、附件、人员及上下文均保存为 FormulaBean,避免把固定 ID 写成裸字符串。 */
|
|
4
|
+
import type { CompilerContext } from './index.js';
|
|
5
|
+
export declare const MODIFY_DOCUMENT_STATUS_COMPONENT: Record<string, any>;
|
|
6
|
+
export declare const UPDATE_PRINT_NUM_COMPONENT: Record<string, any>;
|
|
7
|
+
export declare const ATTACHMENT_MOVE_COMPONENT: Record<string, any>;
|
|
8
|
+
export declare const DOCUMENT_RENEWAL_COMPONENT: Record<string, any>;
|
|
9
|
+
export declare const GET_DOCUMENT_INFO_COMPONENT: Record<string, any>;
|
|
10
|
+
export declare const GET_ATTACHMENT_INFO_COMPONENT: Record<string, any>;
|
|
11
|
+
export declare const DOCUMENT_PERMISSION_CHANGE_COMPONENT: Record<string, any>;
|
|
12
|
+
export declare const DOCUMENT_EDIT_COMPONENT: Record<string, any>;
|
|
13
|
+
/** 替换附件是平台独立组件类型,不是 DocumentEdit 的附件操作模式。 */
|
|
14
|
+
export declare const REPLACE_ATTACHMENT_COMPONENT: Record<string, any>;
|
|
15
|
+
export declare const DOCUMENT_SAVE_COMPONENT: Record<string, any>;
|
|
16
|
+
export declare const DOCUMENT_DELETE_COMPONENT: Record<string, any>;
|
|
17
|
+
export declare const DOCUMENT_REVERT_COMPONENT: Record<string, any>;
|
|
18
|
+
export declare const DOCUMENT_COPY_COMPONENT: Record<string, any>;
|
|
19
|
+
export declare const DOCUMENT_MOVE_COMPONENT: Record<string, any>;
|
|
20
|
+
export declare const FILE_FOLDER_SAVE_COMPONENT: Record<string, any>;
|
|
21
|
+
export declare const DOCUMENT_SUBSCRIPTION_COMPONENT: Record<string, any>;
|
|
22
|
+
export declare const DOCUMENT_SUBSCRIPTION_APPROVE_COMPONENT: Record<string, any>;
|
|
23
|
+
export declare const DOCUMENT_SUBSCRIPTION_SEND_BACK_COMPONENT: Record<string, any>;
|
|
24
|
+
export declare const DOCUMENT_SUBSCRIPTION_WITHDRAW_COMPONENT: Record<string, any>;
|
|
25
|
+
export declare const ATTACHMENT_COPY_COMPONENT: Record<string, any>;
|
|
26
|
+
export declare function documentActionCompiler(type: string, draft: Record<string, any>, ctx: CompilerContext): Record<string, any>;
|
|
27
|
+
export declare const documentActionComponents: Record<string, any>[];
|
|
28
|
+
//# sourceMappingURL=document_actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document_actions.d.ts","sourceRoot":"","sources":["../../../../src/services/actionflow/components/document_actions.ts"],"names":[],"mappings":"AAAA;;mDAEmD;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAwClD,eAAO,MAAM,gCAAgC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAShE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAA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AE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAwe,CAAC;AACnjB,eAAO,MAAM,wCAAwC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAwe,CAAC;AAEljB,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAIzD,CAAC;AAoBF,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAqC1H;AAED,eAAO,MAAM,wBAAwB,uBAMpC,CAAC"}
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { buildPersonFormula, formulaFixedForAssignSwitch, formulaSystemVar } from '../formula_service.js';
|
|
2
|
+
import { buildFormulaReference } from './action_eb_update_compiler.js';
|
|
3
|
+
import { genSfId } from '../id_generator.js';
|
|
4
|
+
const personSource = [{
|
|
5
|
+
properties: ['operator', 'operatorId', 'applicant', 'employeeId', 'subscriber'], module: 'core.person_source',
|
|
6
|
+
lookups: ['resourceData'], purpose: '解析人员 Browser 对象', fallback: 'real_candidate_only',
|
|
7
|
+
}];
|
|
8
|
+
function formula(value, ctx, person = false) {
|
|
9
|
+
if (value == null || value === '')
|
|
10
|
+
throw new Error('文档组件必填 FormulaBean 值不能为空');
|
|
11
|
+
const type = value && typeof value === 'object' ? String(value.type ?? '') : '';
|
|
12
|
+
if (value && typeof value === 'object' && ['1', '3', '4', '5', '6', '8', '9', '10'].includes(type) && !value.kind)
|
|
13
|
+
return { ...value };
|
|
14
|
+
if (value && typeof value === 'object' && (value.kind === 'system_variable' || value.assignmentKind === 'system_variable')) {
|
|
15
|
+
return formulaSystemVar(String(value.key || '{userid}'));
|
|
16
|
+
}
|
|
17
|
+
if (person && value && typeof value === 'object')
|
|
18
|
+
return buildPersonFormula(value, ctx.meta, ctx.appId, false, true);
|
|
19
|
+
if (Array.isArray(value) && value.length && value.every((item) => item && typeof item === 'object' && (item.id || item.value))) {
|
|
20
|
+
const ids = value.map((item) => String(item.id ?? item.value));
|
|
21
|
+
const bean = formulaFixedForAssignSwitch(ids.join(','));
|
|
22
|
+
bean.name = value.map((item) => String(item.name ?? item.text ?? item.label ?? item.id ?? item.value)).join(',');
|
|
23
|
+
bean.applicationId = ctx.appId;
|
|
24
|
+
bean.config = { originValue: value, switchType: 'fixvalue', formulaVersion: 'V1' };
|
|
25
|
+
return bean;
|
|
26
|
+
}
|
|
27
|
+
if (value && typeof value === 'object' && (value.id || value.value) && (value.name || value.text || value.label)) {
|
|
28
|
+
const rawId = String(value.id ?? value.value);
|
|
29
|
+
const bean = formulaFixedForAssignSwitch(rawId);
|
|
30
|
+
bean.name = String(value.name ?? value.text ?? value.label ?? rawId);
|
|
31
|
+
bean.applicationId = ctx.appId;
|
|
32
|
+
bean.config = { originValue: [value], switchType: 'fixvalue', formulaVersion: 'V1' };
|
|
33
|
+
return bean;
|
|
34
|
+
}
|
|
35
|
+
return buildFormulaReference(value, { meta: ctx.meta, appId: ctx.appId, eventId: ctx.eventNodeId, componentType: 'document' });
|
|
36
|
+
}
|
|
37
|
+
const formulaParam = (description, required = false) => ({ required, description, valueType: 'formula_or_reference', valueShape: 'any' });
|
|
38
|
+
const personParam = (description, required = false) => ({ required, description, valueType: 'platform_reference', referenceType: 'user_assignment', valueShape: 'object' });
|
|
39
|
+
export const MODIFY_DOCUMENT_STATUS_COMPONENT = {
|
|
40
|
+
type: 'ModifyDocumentStatus', nodeRole: 'action', description: '更新文档状态。',
|
|
41
|
+
display: { typeName: '更新状态', componentName: '更新状态', componentDesc: '更新文档状态', icon: 'Icon-Document-mcolor' },
|
|
42
|
+
params: {
|
|
43
|
+
documents: { ...formulaParam('待更新的文档;固定文档必须传当前租户 Browser 原对象数组,或使用上游上下文公式。', true), valueShape: 'any' },
|
|
44
|
+
docStatus: { required: true, description: '目标文档状态;只能使用当前租户选择器返回的状态值。', valueType: 'string' },
|
|
45
|
+
},
|
|
46
|
+
dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
47
|
+
dataFields: { docFormulaBean: { type: 'formula<document>', required: true }, docStatus: { type: 'string', required: true } },
|
|
48
|
+
};
|
|
49
|
+
export const UPDATE_PRINT_NUM_COMPONENT = {
|
|
50
|
+
type: 'UpdatePrintNum', nodeRole: 'action', description: '更新文档的打印次数。',
|
|
51
|
+
display: { typeName: '更新打印次数', componentName: '更新打印次数', componentDesc: '更新文档的打印次数', icon: 'Icon-Document-mcolor' },
|
|
52
|
+
params: {
|
|
53
|
+
documentId: formulaParam('相关文档。固定值必须传真实文档 Browser 对象,或使用上下文公式。', true),
|
|
54
|
+
printNum: formulaParam('新的打印次数,必须大于 0。', true),
|
|
55
|
+
applicant: personParam('申请人。', true), operatorId: personParam('操作人。', true),
|
|
56
|
+
},
|
|
57
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
58
|
+
dataFields: { documentId: { type: 'formula<document>', required: true }, printNum: { type: 'formula<number>', required: true }, applicant: { type: 'formula<resource>', required: true }, operatorId: { type: 'formula<resource>', required: true } },
|
|
59
|
+
};
|
|
60
|
+
export const ATTACHMENT_MOVE_COMPONENT = {
|
|
61
|
+
type: 'AttachmentMove', nodeRole: 'action', description: '将附件移动到指定目录。',
|
|
62
|
+
display: { typeName: '附件归档', componentName: '附件归档', componentDesc: '将附件移动到指定目录', icon: 'Icon-Document-mcolor' },
|
|
63
|
+
params: {
|
|
64
|
+
attachment: formulaParam('要归档的附件 ID 或附件上下文。', true),
|
|
65
|
+
fileFolder: formulaParam('目标文档目录;固定值必须使用真实目录 Browser 对象。', true),
|
|
66
|
+
operator: personParam('操作人。', true),
|
|
67
|
+
fileFolderChild: { required: false, description: '目标子目录的前端 FileFolderChildObjDTO;必须为真实前端对象。', valueType: 'object', valueShape: 'object' },
|
|
68
|
+
folderInherit: formulaParam('是否继承文件夹权限。'), docInherit: formulaParam('是否继承文档权限。'), checkRight: formulaParam('是否校验操作权限。'),
|
|
69
|
+
},
|
|
70
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
71
|
+
dataFields: { attachment: { type: 'formula<attachment>', required: true }, fileFolder: { type: 'formula<folder>', required: true }, operator: { type: 'formula<resource>', required: true } },
|
|
72
|
+
};
|
|
73
|
+
export const DOCUMENT_RENEWAL_COMPONENT = {
|
|
74
|
+
type: 'DocumentRenewal', nodeRole: 'action', description: '发起文档续借。',
|
|
75
|
+
display: { typeName: '续借文档', componentName: '续借文档', componentDesc: '通过续借文档动作,可快速发起续借流程', icon: 'Icon-Document-mcolor' },
|
|
76
|
+
params: {
|
|
77
|
+
documentId: formulaParam('待续借的订阅文档。固定值必须是 subscribe Browser 原对象。', true),
|
|
78
|
+
operatorId: personParam('续借人。', true), expiryDate: formulaParam('续借截止日期。'), renewalDesc: formulaParam('续借说明。'),
|
|
79
|
+
},
|
|
80
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
81
|
+
dataFields: { documentId: { type: 'formula<document>', required: true }, operatorId: { type: 'formula<resource>', required: true } },
|
|
82
|
+
};
|
|
83
|
+
export const GET_DOCUMENT_INFO_COMPONENT = {
|
|
84
|
+
type: 'GetDocumentInfo', nodeRole: 'action', description: '获取文档信息。',
|
|
85
|
+
display: { typeName: '获取文档信息', componentName: '获取文档信息', componentDesc: '获取文档信息', icon: 'Icon-Document-mcolor' },
|
|
86
|
+
params: { docId: formulaParam('文档 ID 或文档上下文。', true), operatorId: personParam('操作人。', true) },
|
|
87
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['documentInfo'] },
|
|
88
|
+
dataFields: { docId: { type: 'formula<string>', required: true }, operatorId: { type: 'formula<resource>', required: true } },
|
|
89
|
+
};
|
|
90
|
+
export const GET_ATTACHMENT_INFO_COMPONENT = {
|
|
91
|
+
type: 'GetAttachmentInfo', nodeRole: 'action', description: '获取附件信息。',
|
|
92
|
+
display: { typeName: '获取附件信息', componentName: '获取附件信息', componentDesc: '获取附件信息', icon: 'Icon-Document-mcolor' },
|
|
93
|
+
params: { attachmentId: formulaParam('附件 ID 或附件上下文。', true), operatorId: personParam('操作人。', true) },
|
|
94
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['attachmentInfo'] },
|
|
95
|
+
dataFields: { attachmentId: { type: 'formula<string>', required: true }, operatorId: { type: 'formula<resource>', required: true } },
|
|
96
|
+
};
|
|
97
|
+
export const DOCUMENT_PERMISSION_CHANGE_COMPONENT = {
|
|
98
|
+
type: 'DocumentPermissionChange', nodeRole: 'action', description: '对文档进行赋权或收权。',
|
|
99
|
+
display: { typeName: '文档权限变更', componentName: '文档权限变更', componentDesc: '可对文档权限进行赋权、收权操作', icon: 'Icon-Document-mcolor' },
|
|
100
|
+
params: {
|
|
101
|
+
docId: formulaParam('相关文档;固定值必须是文档 Browser 原对象数组。', true), requestModule: { required: false, default: 'workflow', description: '关联流程模块。', valueType: 'string' }, requestId: formulaParam('关联流程实例。'),
|
|
102
|
+
optType: { required: false, default: 'grant', description: '权限变更方式。', valueType: 'enum', options: [{ value: 'grant', label: '赋权' }, { value: 'revoke', label: '收权' }] },
|
|
103
|
+
wfNode: { required: false, description: '流程权限节点;必须传当前租户节点 Browser 原对象。', valueType: 'object', valueShape: 'object' },
|
|
104
|
+
assignType: { required: false, default: 'fixed', description: '赋权对象来源。', valueType: 'enum', options: [{ value: 'fixed', label: '固定值' }, { value: 'formula', label: '动态赋值' }] },
|
|
105
|
+
permissionList: { required: false, requiredWhen: { param: 'assignType', equals: 'fixed' }, description: '前端 SharePermissionBean 原对象;不可根据人员/部门 ID 拼造。', valueType: 'object', valueShape: 'object' },
|
|
106
|
+
permissionFormula: { required: false, requiredWhen: { param: 'assignType', equals: 'formula' }, description: '赋权对象字段的上下文 FormulaBean。', valueType: 'formula_or_reference', valueShape: 'any' },
|
|
107
|
+
},
|
|
108
|
+
dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
109
|
+
dataFields: { docId: { type: 'formula<document>', required: true }, optType: { type: 'string', required: true }, assignType: { type: 'string', required: true } },
|
|
110
|
+
};
|
|
111
|
+
export const DOCUMENT_EDIT_COMPONENT = {
|
|
112
|
+
type: 'DocumentEdit', nodeRole: 'action', description: '更新文档信息。',
|
|
113
|
+
display: { typeName: '更新文档', componentName: '更新文档', componentDesc: '更新文档信息', icon: 'Icon-Document-mcolor' },
|
|
114
|
+
params: {
|
|
115
|
+
documentId: formulaParam('待更新文档。固定值必须传真实文档 Browser 对象。', true), operatorId: personParam('操作人。', true), checkRight: formulaParam('是否校验权限。'), docDir: formulaParam('目标目录。'),
|
|
116
|
+
setting: { required: false, description: '文档目录字段设置的原始 EsbFormDataDto。', valueType: 'object', valueShape: 'object' }, settingCommon: { required: false, description: '文档公共字段设置的原始 EsbFormDataDto。', valueType: 'object', valueShape: 'object' }, settingType: { required: false, description: '文档类型字段设置的原始 EsbFormDataDto。', valueType: 'object', valueShape: 'object' },
|
|
117
|
+
docContentType: { required: false, description: '正文更新方式;仅允许前端支持的 richText/fileId/fileUrl/fileStream。', valueType: 'enum', options: [{ value: 'richText' }, { value: 'fileId' }, { value: 'fileUrl' }, { value: 'fileStream' }] },
|
|
118
|
+
docContent: { required: false, description: 'richText 的原始 ContestSettingDTO。', valueType: 'object', valueShape: 'object' }, docContentFileId: formulaParam('fileId 正文文件。'), docContentFileUrl: formulaParam('fileUrl 正文 URL。'), docContentFileStream: formulaParam('fileStream 正文文件流。'), docContentFileName: formulaParam('正文文件名。'),
|
|
119
|
+
attachmentSwitch: formulaParam('是否更新附件。'), attachmentOperate: formulaParam('附件操作方式。'), attachmentUploadType: { required: false, description: '附件上传类型;只接受前端返回的值。', valueType: 'string' }, attachmentUploadId: formulaParam('待新增附件。'), attachmentDeleteId: formulaParam('待删除附件。'),
|
|
120
|
+
attachmentUploadStream: { required: false, description: '附件流上传的 SetFileMainDTO 原对象。', valueType: 'object', valueShape: 'object' }, attachmentUploadUrl: { required: false, description: '附件 URL 上传的 SetFileMainDTO 原对象。', valueType: 'object', valueShape: 'object' },
|
|
121
|
+
},
|
|
122
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
123
|
+
dataFields: { documentId: { type: 'formula<document>', required: true }, operatorId: { type: 'formula<resource>', required: true } },
|
|
124
|
+
};
|
|
125
|
+
/** 替换附件是平台独立组件类型,不是 DocumentEdit 的附件操作模式。 */
|
|
126
|
+
export const REPLACE_ATTACHMENT_COMPONENT = {
|
|
127
|
+
type: 'ReplaceAttachment', nodeRole: 'action', description: '用新附件替换当前附件,执行后在旧附件基础上升版。',
|
|
128
|
+
display: { typeName: '替换附件', componentName: '替换附件', componentDesc: '设置原附件和新附件后,以新附件替换旧附件并升版。', icon: 'Icon-Knowledge-document07' },
|
|
129
|
+
params: {
|
|
130
|
+
resourceFileId: formulaParam('更新附件(新):附件字段、附件 ID 或上游附件上下文;多附件默认取第一个。', true),
|
|
131
|
+
targetFileId: formulaParam('当前附件(旧):附件字段、附件 ID 或上游附件上下文;多附件默认取第一个。', true),
|
|
132
|
+
employeeId: personParam('操作人。固定值必须使用当前租户人员 Browser 原对象;也可使用系统变量或上游人员上下文。', true),
|
|
133
|
+
},
|
|
134
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData'] },
|
|
135
|
+
dataFields: { resourceFileId: { type: 'formula<attachment>', required: true }, targetFileId: { type: 'formula<attachment>', required: true }, employeeId: { type: 'formula<resource>', required: true } },
|
|
136
|
+
};
|
|
137
|
+
export const DOCUMENT_SAVE_COMPONENT = {
|
|
138
|
+
type: 'DocumentSave', nodeRole: 'action', description: '新建一篇文档。',
|
|
139
|
+
display: { typeName: '新建文档', componentName: '新建文档', componentDesc: '新建一篇文档', icon: 'Icon-Document-mcolor' },
|
|
140
|
+
params: {
|
|
141
|
+
docTitle: formulaParam('文档标题。', true), fileFolder: formulaParam('目标文件夹;固定值必须是当前租户真实目录 Browser 对象。', true), operatorId: personParam('操作人。', true),
|
|
142
|
+
setting: { required: true, description: '文档属性设置 EsbFormDataDto 原对象。', valueType: 'object', valueShape: 'object' }, fileFolderChild: { required: false, description: '子目录 FileFolderChildObjDTO 原对象。', valueType: 'object', valueShape: 'object' }, folderInherit: formulaParam('是否继承目录设置。'), checkRight: formulaParam('是否校验权限。'), secretLevel: formulaParam('密级。'), secretLevelValidity: formulaParam('密级有效期。'),
|
|
143
|
+
docContentType: { required: false, description: '正文方式。', valueType: 'enum', options: [{ value: 'richText' }, { value: 'fileId' }, { value: 'fileUrl' }, { value: 'fileStream' }] }, docContent: { required: false, description: '富文本 ContestSettingDTO 原对象。', valueType: 'object', valueShape: 'object' }, docContentFileId: formulaParam('正文文件 ID。'), docContentFileUrl: formulaParam('正文文件 URL。'), docContentFileStream: formulaParam('正文文件流。'), docContentFileName: formulaParam('正文文件名。'),
|
|
144
|
+
attachmentUploadType: { required: false, description: '附件上传类型(前端原值)。', valueType: 'string' }, attachmentUploadId: formulaParam('上传附件。'), attachmentUploadStream: { required: false, description: '附件流 SetFileMainDTO 原对象。', valueType: 'object', valueShape: 'object' }, attachmentUploadUrl: { required: false, description: '附件 URL SetFileMainDTO 原对象。', valueType: 'object', valueShape: 'object' }, settingCommon: { required: false, description: '通用字段 EsbFormDataDto 原对象。', valueType: 'object', valueShape: 'object' }, settingType: { required: false, description: '文件夹类型字段 EsbFormDataDto 原对象。', valueType: 'object', valueShape: 'object' },
|
|
145
|
+
}, propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['documentInfo'] },
|
|
146
|
+
dataFields: { docTitle: { type: 'formula<string>', required: true }, fileFolder: { type: 'formula<folder>', required: true }, operatorId: { type: 'formula<resource>', required: true }, setting: { type: 'object', required: true } },
|
|
147
|
+
};
|
|
148
|
+
const documentListParams = (includeDeleteType = false) => ({
|
|
149
|
+
documents: formulaParam('要操作的文档;固定值必须传真实文档 Browser 对象数组。', true), operator: personParam('操作人。', true), checkRight: formulaParam('是否校验权限。'),
|
|
150
|
+
...(includeDeleteType ? { deleteType: formulaParam('删除方式:1 回收站、2 彻底删除。', true) } : {}),
|
|
151
|
+
});
|
|
152
|
+
export const DOCUMENT_DELETE_COMPONENT = { type: 'DocumentDelete', nodeRole: 'action', description: '将文档删除。', display: { typeName: '删除文档', componentName: '删除文档', componentDesc: '将文档删除', icon: 'Icon-Document-mcolor' }, params: documentListParams(true), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: [] }, dataFields: { documents: { type: 'formula<document>', required: true }, deleteType: { type: 'formula<string>', required: true }, operator: { type: 'formula<resource>', required: true } } };
|
|
153
|
+
export const DOCUMENT_REVERT_COMPONENT = { type: 'DocumentRevert', nodeRole: 'action', description: '将被删除的文档还原。', display: { typeName: '还原删除文档', componentName: '还原删除文档', componentDesc: '将被删除的文档还原', icon: 'Icon-Document-mcolor' }, params: documentListParams(), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: [] }, dataFields: { documents: { type: 'formula<document>', required: true }, operator: { type: 'formula<resource>', required: true } } };
|
|
154
|
+
const documentTargetFolderParams = () => ({
|
|
155
|
+
documents: formulaParam('要操作的文档;固定值必须传真实文档 Browser 对象数组。', true), fileFolder: formulaParam('目标目录;固定值必须传真实目录 Browser 对象。', true), operator: personParam('操作人。', true), fileFolderChild: { required: false, description: '子目录 FileFolderChildObjDTO 原对象。', valueType: 'object', valueShape: 'object' }, folderInherit: formulaParam('是否继承目录权限。'), docInherit: formulaParam('是否继承文档权限。'), checkRight: formulaParam('是否校验权限。'),
|
|
156
|
+
});
|
|
157
|
+
export const DOCUMENT_COPY_COMPONENT = { type: 'DocumentCopy', nodeRole: 'action', description: '将指定文档另存为新文档。', display: { typeName: '文档另存为', componentName: '文档另存为', componentDesc: '将指定文档保存为另一篇新文档', icon: 'Icon-Document-mcolor' }, params: documentTargetFolderParams(), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['documentInfo'] }, dataFields: { documents: { type: 'formula<document>', required: true }, fileFolder: { type: 'formula<folder>', required: true }, operator: { type: 'formula<resource>', required: true } } };
|
|
158
|
+
export const DOCUMENT_MOVE_COMPONENT = { type: 'DocumentMove', nodeRole: 'action', description: '将文档移动到其他目录。', display: { typeName: '移动文档', componentName: '移动文档', componentDesc: '将文档移动到其他目录', icon: 'Icon-Document-mcolor' }, params: documentTargetFolderParams(), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: [] }, dataFields: { documents: { type: 'formula<document>', required: true }, fileFolder: { type: 'formula<folder>', required: true }, operator: { type: 'formula<resource>', required: true } } };
|
|
159
|
+
export const FILE_FOLDER_SAVE_COMPONENT = {
|
|
160
|
+
type: 'FileFolderSave', nodeRole: 'action', description: '新建文件夹。', display: { typeName: '创建文件夹', componentName: '创建文件夹', componentDesc: '新建文件夹', icon: 'Icon-Document-mcolor' },
|
|
161
|
+
params: { fileFolder: formulaParam('上级文件夹;固定值必须传真实目录 Browser 对象。', true), fileFolderChild: { required: true, description: '新文件夹定义的 FileFolderChildObjDTO 原对象。', valueType: 'object', valueShape: 'object' }, operator: personParam('操作人。', true), folderInherit: formulaParam('是否继承上级目录设置。'), checkRight: formulaParam('是否校验权限。') },
|
|
162
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['fileFolder'] }, dataFields: { fileFolder: { type: 'formula<folder>', required: true }, fileFolderChild: { type: 'object', required: true }, operator: { type: 'formula<resource>', required: true } },
|
|
163
|
+
};
|
|
164
|
+
const subscriptionParams = (subscriberRequired = false) => ({ documents: formulaParam('借阅文档;固定值必须传真实订阅/文档 Browser 对象数组。', true), subscriber: personParam('借阅人。', subscriberRequired), operator: personParam('操作人。', !subscriberRequired) });
|
|
165
|
+
export const DOCUMENT_SUBSCRIPTION_COMPONENT = { type: 'DocumentSubscription', nodeRole: 'action', description: '借阅文档。', display: { typeName: '借阅文档', componentName: '借阅文档', componentDesc: '借阅文档', icon: 'Icon-Document-mcolor' }, params: { ...subscriptionParams(), expirydate: formulaParam('借阅截止日期。'), subscribedesc: formulaParam('借阅说明。') }, propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['subscription'] }, dataFields: { documents: { type: 'formula<document>', required: true }, operator: { type: 'formula<resource>', required: true } } };
|
|
166
|
+
export const DOCUMENT_SUBSCRIPTION_APPROVE_COMPONENT = { type: 'DocumentSubscriptionApprove', nodeRole: 'action', description: '文档借阅批准。', display: { typeName: '文档借阅批准', componentName: '文档借阅批准', componentDesc: '文档借阅批准', icon: 'Icon-Document-mcolor' }, params: subscriptionParams(true), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: [] }, dataFields: { documents: { type: 'formula<document>', required: true }, subscriber: { type: 'formula<resource>', required: true } } };
|
|
167
|
+
export const DOCUMENT_SUBSCRIPTION_SEND_BACK_COMPONENT = { type: 'DocumentSubscriptionSendBack', nodeRole: 'action', description: '文档借阅退回。', display: { typeName: '文档借阅退回', componentName: '文档借阅退回', componentDesc: '文档借阅退回', icon: 'Icon-Document-mcolor' }, params: subscriptionParams(true), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: [] }, dataFields: { documents: { type: 'formula<document>', required: true }, subscriber: { type: 'formula<resource>', required: true } } };
|
|
168
|
+
export const DOCUMENT_SUBSCRIPTION_WITHDRAW_COMPONENT = { type: 'DocumentSubscriptionWithdraw', nodeRole: 'action', description: '文档借阅收回。', display: { typeName: '文档借阅收回', componentName: '文档借阅收回', componentDesc: '文档借阅收回', icon: 'Icon-Document-mcolor' }, params: subscriptionParams(true), propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: [] }, dataFields: { documents: { type: 'formula<document>', required: true }, subscriber: { type: 'formula<resource>', required: true } } };
|
|
169
|
+
export const ATTACHMENT_COPY_COMPONENT = {
|
|
170
|
+
type: 'AttachmentCopy', nodeRole: 'action', description: '复制文档附件。', display: { typeName: '复制附件', componentName: '复制附件', componentDesc: '复制文档附件', icon: 'Icon-Document-mcolor' },
|
|
171
|
+
params: { attachment: formulaParam('要复制的附件。', true), fileFolder: formulaParam('目标目录;固定值必须传真实目录 Browser 对象。', true), operator: personParam('操作人。', true), createNewDocument: { required: false, default: false, description: '是否创建新文档承载附件。', valueType: 'boolean' }, fileFolderChild: { required: false, description: '子目录 FileFolderChildObjDTO 原对象。', valueType: 'object', valueShape: 'object' }, folderInherit: formulaParam('是否继承目录设置。'), targetModule: formulaParam('目标模块。') },
|
|
172
|
+
propertySources: personSource, dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['documentInfo'] }, dataFields: { attachment: { type: 'formula<attachment>', required: true }, fileFolder: { type: 'formula<folder>', required: true }, operator: { type: 'formula<resource>', required: true } },
|
|
173
|
+
};
|
|
174
|
+
const FORMULA_FIELDS = {
|
|
175
|
+
ModifyDocumentStatus: ['documents'], UpdatePrintNum: ['documentId', 'printNum', 'applicant', 'operatorId'],
|
|
176
|
+
AttachmentMove: ['attachment', 'fileFolder', 'operator', 'folderInherit', 'docInherit', 'checkRight'],
|
|
177
|
+
DocumentRenewal: ['documentId', 'operatorId', 'expiryDate', 'renewalDesc'], GetDocumentInfo: ['docId', 'operatorId'], GetAttachmentInfo: ['attachmentId', 'operatorId'],
|
|
178
|
+
DocumentPermissionChange: ['requestId', 'docId', 'permissionFormula'],
|
|
179
|
+
ReplaceAttachment: ['resourceFileId', 'targetFileId', 'employeeId'],
|
|
180
|
+
DocumentEdit: ['docDir', 'documentId', 'operatorId', 'attachmentSwitch', 'attachmentOperate', 'attachmentUploadId', 'attachmentDeleteId', 'checkRight', 'docContentFileId', 'docContentFileUrl', 'docContentFileStream', 'docContentFileName'],
|
|
181
|
+
DocumentSave: ['docTitle', 'fileFolder', 'operatorId', 'folderInherit', 'checkRight', 'secretLevel', 'secretLevelValidity', 'docContentFileId', 'docContentFileUrl', 'docContentFileStream', 'docContentFileName', 'attachmentUploadId'],
|
|
182
|
+
DocumentDelete: ['documents', 'operator', 'deleteType', 'checkRight'], DocumentRevert: ['documents', 'operator', 'checkRight'], DocumentCopy: ['documents', 'fileFolder', 'operator', 'folderInherit', 'docInherit', 'checkRight'], DocumentMove: ['documents', 'fileFolder', 'operator', 'folderInherit', 'docInherit', 'checkRight'], FileFolderSave: ['fileFolder', 'operator', 'folderInherit', 'checkRight'], DocumentSubscription: ['documents', 'operator', 'expirydate', 'subscribedesc'], DocumentSubscriptionApprove: ['documents', 'subscriber'], DocumentSubscriptionSendBack: ['documents', 'subscriber'], DocumentSubscriptionWithdraw: ['documents', 'subscriber'], AttachmentCopy: ['attachment', 'fileFolder', 'operator', 'folderInherit', 'targetModule'],
|
|
183
|
+
};
|
|
184
|
+
const RAW_FIELDS = {
|
|
185
|
+
AttachmentMove: ['fileFolderChild'],
|
|
186
|
+
DocumentPermissionChange: ['requestModule', 'optType', 'wfNode', 'assignType', 'permissionList'],
|
|
187
|
+
DocumentEdit: ['setting', 'settingCommon', 'settingType', 'docContentType', 'docContent', 'attachmentUploadType', 'attachmentUploadStream', 'attachmentUploadUrl'],
|
|
188
|
+
DocumentSave: ['setting', 'settingCommon', 'settingType', 'fileFolderChild', 'docContentType', 'docContent', 'attachmentUploadType', 'attachmentUploadStream', 'attachmentUploadUrl'], DocumentCopy: ['fileFolderChild'], DocumentMove: ['fileFolderChild'], FileFolderSave: ['fileFolderChild'], AttachmentCopy: ['createNewDocument', 'fileFolderChild'],
|
|
189
|
+
};
|
|
190
|
+
export function documentActionCompiler(type, draft, ctx) {
|
|
191
|
+
const result = ctx.compileGeneric(draft, type, ctx);
|
|
192
|
+
const require = (key) => { if (draft[key] === undefined || draft[key] === null || draft[key] === '')
|
|
193
|
+
throw new Error(`${type}.${key} 为必填项,不能省略或伪造`); };
|
|
194
|
+
for (const key of FORMULA_FIELDS[type] || []) {
|
|
195
|
+
if (draft[key] !== undefined && draft[key] !== null && draft[key] !== '')
|
|
196
|
+
result[key] = formula(draft[key], ctx, ['operator', 'operatorId', 'applicant'].includes(key));
|
|
197
|
+
}
|
|
198
|
+
for (const key of RAW_FIELDS[type] || []) {
|
|
199
|
+
if (draft[key] !== undefined && draft[key] !== null && draft[key] !== '')
|
|
200
|
+
result[key] = draft[key];
|
|
201
|
+
}
|
|
202
|
+
if (type === 'ModifyDocumentStatus') {
|
|
203
|
+
require('documents');
|
|
204
|
+
require('docStatus');
|
|
205
|
+
result.docFormulaBean = formula(draft.documents, ctx);
|
|
206
|
+
result.docStatus = String(draft.docStatus);
|
|
207
|
+
delete result.documents;
|
|
208
|
+
}
|
|
209
|
+
if (type === 'UpdatePrintNum' && Number(draft.printNum?.value ?? draft.printNum) <= 0)
|
|
210
|
+
throw new Error('UpdatePrintNum.printNum 必须大于 0');
|
|
211
|
+
if (type === 'DocumentPermissionChange') {
|
|
212
|
+
require('docId');
|
|
213
|
+
result.requestModule ??= String(draft.requestModule ?? 'workflow');
|
|
214
|
+
result.optType ??= String(draft.optType ?? 'grant');
|
|
215
|
+
result.assignType ??= String(draft.assignType ?? 'fixed');
|
|
216
|
+
if (result.assignType === 'fixed' && (!draft.permissionList || typeof draft.permissionList !== 'object'))
|
|
217
|
+
throw new Error('DocumentPermissionChange.assignType=fixed 必须提供真实 permissionList(SharePermissionBean)');
|
|
218
|
+
if (result.assignType === 'formula' && !result.permissionFormula)
|
|
219
|
+
throw new Error('DocumentPermissionChange.assignType=formula 必须提供 permissionFormula');
|
|
220
|
+
}
|
|
221
|
+
if (type === 'DocumentEdit') {
|
|
222
|
+
require('documentId');
|
|
223
|
+
require('operatorId');
|
|
224
|
+
const mutation = ['setting', 'settingCommon', 'settingType', 'docContentType', 'attachmentSwitch', 'attachmentOperate', 'attachmentUploadId', 'attachmentDeleteId', 'attachmentUploadStream', 'attachmentUploadUrl'].some((key) => draft[key] !== undefined && draft[key] !== null && draft[key] !== '');
|
|
225
|
+
if (!mutation)
|
|
226
|
+
throw new Error('DocumentEdit 至少提供一项文档字段、正文或附件变更;不能生成空更新。');
|
|
227
|
+
if (draft.docContentType === 'richText' && (!draft.docContent || typeof draft.docContent !== 'object'))
|
|
228
|
+
throw new Error('DocumentEdit.docContentType=richText 必须提供真实 docContent DTO');
|
|
229
|
+
if (draft.docContentType === 'fileId' && !result.docContentFileId)
|
|
230
|
+
throw new Error('DocumentEdit.docContentType=fileId 必须提供 docContentFileId');
|
|
231
|
+
if (draft.docContentType === 'fileUrl' && !result.docContentFileUrl)
|
|
232
|
+
throw new Error('DocumentEdit.docContentType=fileUrl 必须提供 docContentFileUrl');
|
|
233
|
+
if (draft.docContentType === 'fileStream' && !result.docContentFileStream)
|
|
234
|
+
throw new Error('DocumentEdit.docContentType=fileStream 必须提供 docContentFileStream');
|
|
235
|
+
}
|
|
236
|
+
if (type === 'ReplaceAttachment') {
|
|
237
|
+
require('resourceFileId');
|
|
238
|
+
require('targetFileId');
|
|
239
|
+
require('employeeId');
|
|
240
|
+
}
|
|
241
|
+
if (type === 'DocumentSave') {
|
|
242
|
+
require('docTitle');
|
|
243
|
+
require('fileFolder');
|
|
244
|
+
require('operatorId');
|
|
245
|
+
require('setting');
|
|
246
|
+
if (draft.docContentType === 'richText' && (!draft.docContent || typeof draft.docContent !== 'object'))
|
|
247
|
+
throw new Error('DocumentSave.docContentType=richText 必须提供真实 docContent DTO');
|
|
248
|
+
if (draft.docContentType === 'fileId' && !result.docContentFileId)
|
|
249
|
+
throw new Error('DocumentSave.docContentType=fileId 必须提供 docContentFileId');
|
|
250
|
+
if (draft.docContentType === 'fileUrl' && !result.docContentFileUrl)
|
|
251
|
+
throw new Error('DocumentSave.docContentType=fileUrl 必须提供 docContentFileUrl');
|
|
252
|
+
if (draft.docContentType === 'fileStream' && !result.docContentFileStream)
|
|
253
|
+
throw new Error('DocumentSave.docContentType=fileStream 必须提供 docContentFileStream');
|
|
254
|
+
}
|
|
255
|
+
result.id ??= String(draft.id ?? genSfId());
|
|
256
|
+
result.type = type;
|
|
257
|
+
return result;
|
|
258
|
+
}
|
|
259
|
+
export const documentActionComponents = [
|
|
260
|
+
MODIFY_DOCUMENT_STATUS_COMPONENT, UPDATE_PRINT_NUM_COMPONENT, ATTACHMENT_MOVE_COMPONENT, DOCUMENT_RENEWAL_COMPONENT,
|
|
261
|
+
GET_DOCUMENT_INFO_COMPONENT, GET_ATTACHMENT_INFO_COMPONENT, DOCUMENT_PERMISSION_CHANGE_COMPONENT, DOCUMENT_EDIT_COMPONENT,
|
|
262
|
+
REPLACE_ATTACHMENT_COMPONENT,
|
|
263
|
+
DOCUMENT_SAVE_COMPONENT, DOCUMENT_DELETE_COMPONENT, FILE_FOLDER_SAVE_COMPONENT, DOCUMENT_REVERT_COMPONENT, DOCUMENT_COPY_COMPONENT, DOCUMENT_MOVE_COMPONENT,
|
|
264
|
+
DOCUMENT_SUBSCRIPTION_APPROVE_COMPONENT, DOCUMENT_SUBSCRIPTION_SEND_BACK_COMPONENT, DOCUMENT_SUBSCRIPTION_WITHDRAW_COMPONENT, DOCUMENT_SUBSCRIPTION_COMPONENT, ATTACHMENT_COPY_COMPONENT,
|
|
265
|
+
];
|
|
266
|
+
//# sourceMappingURL=document_actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document_actions.js","sourceRoot":"","sources":["../../../../src/services/actionflow/components/document_actions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC1G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,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,gCAAgC,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,0BAA0B;IACnH,2BAA2B,EAAE,6BAA6B,EAAE,oCAAoC,EAAE,uBAAuB;IACzH,4BAA4B;IAC5B,uBAAuB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,uBAAuB;IAC3J,uCAAuC,EAAE,yCAAyC,EAAE,wCAAwC,EAAE,+BAA+B,EAAE,yBAAyB;CACzL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** 获取表单数据详情 (EbGetDataById)。 */
|
|
2
|
+
import type { CompilerContext } from './index.js';
|
|
3
|
+
export declare const EB_GET_DATA_BY_ID_COMPONENT: Record<string, any>;
|
|
4
|
+
export declare function ebGetDataByIdCompiler(draftParams: Record<string, any>, ctx: CompilerContext): Record<string, any>;
|
|
5
|
+
//# sourceMappingURL=eb_get_data_by_id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eb_get_data_by_id.d.ts","sourceRoot":"","sources":["../../../../src/services/actionflow/components/eb_get_data_by_id.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAKlD,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAqB3D,CAAC;AAEF,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAejH"}
|