@gct-paas/word 0.2.41 → 0.2.43-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -1
- package/dist/assets/svgs/table/index.d.ts +1 -0
- package/dist/base/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/dist/base/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/dist/base/date-time-picker/src/DateTimePicker.vue.d.ts +1 -1
- package/dist/base/form-item/src/form-item.vue.d.ts +1 -1
- package/dist/base/icon/src/icon.vue.d.ts +1 -1
- package/dist/base/index.d.ts +1 -0
- package/dist/base/input/src/input-number.vue.d.ts +1 -0
- package/dist/base/input/src/input.vue.d.ts +3 -3
- package/dist/base/input/src/text-area.vue.d.ts +1 -1
- package/dist/base/message/src/Message.vue.d.ts +2 -0
- package/dist/base/message/src/message.d.ts +2 -0
- package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -1
- package/dist/base/modal/src/index.d.ts +2 -1
- package/dist/base/modal/src/modal.type.d.ts +3 -1
- package/dist/base/radio/src/radio-group.vue.d.ts +1 -1
- package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
- package/dist/base/select/src/basic-select.vue.d.ts +17 -5
- package/dist/base/select/src/searchable-select.vue.d.ts +1 -1
- package/dist/base/switch/src/switch.vue.d.ts +1 -1
- package/dist/base/table/src/table.vue.d.ts +1 -1
- package/dist/base/time-picker/index.d.ts +1 -0
- package/dist/base/time-picker/src/TimePicker.vue.d.ts +29 -0
- package/dist/base/utils/image-size-util.d.ts +12 -6
- package/dist/capabilities/model-field-runtime/types/field.d.ts +4 -0
- package/dist/core/command/base/FloatingFieldCommand.d.ts +9 -0
- package/dist/core/command/commands/DeleteCol.d.ts +1 -1
- package/dist/core/command/commands/DeleteRow.d.ts +1 -1
- package/dist/core/command/commands/InsertFloatingField.d.ts +9 -0
- package/dist/core/command/commands/InsertTable.d.ts +0 -1
- package/dist/core/command/commands/MoveFloatingField.d.ts +10 -0
- package/dist/core/command/commands/RemoveFloatingField.d.ts +12 -0
- package/dist/core/command/types.d.ts +16 -0
- package/dist/core/data/DataManager.d.ts +8 -2
- package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +19 -0
- package/dist/core/data/enrichers/received-qty-enricher.d.ts +4 -0
- package/dist/core/data/enrichers/udi-enricher.d.ts +23 -0
- package/dist/core/data/formula/business-functions.d.ts +10 -0
- package/dist/core/data/formula/formula-params-cache.d.ts +15 -0
- package/dist/core/data/types/runtime-config.d.ts +13 -0
- package/dist/core/event/handlers/IMEHandler.d.ts +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -1
- package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +37 -1
- package/dist/core/model/overlays/Wlayout.d.ts +4 -0
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +38 -0
- package/dist/core/view/Doc.d.ts +5 -0
- package/dist/core/widget/types.d.ts +2 -2
- package/dist/domain/active/active-types.d.ts +3 -1
- package/dist/domain/document-business/business/product-release/profile.d.ts +2 -0
- package/dist/domain/document-business/business/product-release/service.d.ts +2 -0
- package/dist/domain/document-business/index.d.ts +2 -0
- package/dist/domain/document-business/registry.d.ts +2 -0
- package/dist/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
- package/dist/domain/document-business/types.d.ts +24 -0
- package/dist/domain/document-rule/index.d.ts +3 -0
- package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +13 -0
- package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +19 -0
- package/dist/domain/document-rule/types.d.ts +50 -0
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +68 -0
- package/dist/domain/field/form-value.d.ts +6 -0
- package/dist/domain/field/query-filter.d.ts +15 -0
- package/dist/domain/field/seal/seal-binding.d.ts +19 -0
- package/dist/domain/field/seal/seal-display.d.ts +34 -0
- package/dist/domain/field/seal/seal-value.d.ts +39 -0
- package/dist/domain/table/business/device/maintenance/index.d.ts +1 -0
- package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/maintenance/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/point-inspection/index.d.ts +1 -0
- package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +13 -0
- package/dist/domain/table/business/device/signature-lock.d.ts +26 -0
- package/dist/domain/table/business/material/material-consume/profile/product-fields.d.ts +6 -0
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/index.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +41 -0
- package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +4 -0
- package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +6 -0
- package/dist/domain/table/business/material/material-substitution/runtime/scan-fill.d.ts +4 -0
- package/dist/domain/table/business/material/types.d.ts +2 -1
- package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +3 -0
- package/dist/domain/table/design/hooks/on-field-attach.d.ts +3 -0
- package/dist/domain/table/design/sub-model-matcher.d.ts +2 -0
- package/dist/domain/table/design/validate-nested-table-insert.d.ts +3 -0
- package/dist/domain/table/index.d.ts +3 -0
- package/dist/domain/table/registry.d.ts +1 -1
- package/dist/domain/table/runtime/option-fill-updates.d.ts +6 -0
- package/dist/domain/table/runtime/table-runtime.d.ts +3 -0
- package/dist/domain/table/types.d.ts +13 -3
- package/dist/index.es.js +42773 -6497
- package/dist/runtime/_register_/runtime/SuiteRuntime.d.ts +4 -0
- package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +10 -0
- package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +6 -0
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +10 -2
- package/dist/runtime/canvas/table/render/material-consume/initial-product-autofill.d.ts +6 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +18 -8
- package/dist/runtime/canvas/table/render/material-consume/product-autofill.d.ts +7 -0
- package/dist/runtime/canvas/table/render/material-consume/product-source.d.ts +4 -0
- package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +7 -2
- package/dist/runtime/canvas/table/render/material-consume/service.d.ts +5 -2
- package/dist/runtime/designer/toolkit/renderer/add-field-btn.vue.d.ts +8 -0
- package/dist/runtime/designer/toolkit/renderer/toolkit-content-fields.vue.d.ts +3 -1
- package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +3 -16
- package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +16 -16
- package/dist/runtime/factories/createDesignWidgetFactory.d.ts +2 -0
- package/dist/runtime/interface/render.d.ts +2 -1
- package/dist/runtime/interface/sterilization-date.d.ts +9 -0
- package/dist/runtime/interface/validate-designer-default.d.ts +5 -0
- package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +7 -7
- package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +5 -0
- package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +2 -0
- package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +3 -0
- package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +17 -0
- package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +7 -0
- package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +30 -0
- package/dist/runtime/renderer/dialogs/seal/types.d.ts +17 -0
- package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +27 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +27 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +30 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +29 -0
- package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +2 -2
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +54 -1
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +1 -0
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/option-dropdown.vue.d.ts +7 -7
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +17 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.d.ts +7 -0
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +7 -7
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +7 -7
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +7 -7
- package/dist/runtime/renderer/dropdowns/components/tree/tree-dropdown.vue.d.ts +7 -7
- package/dist/runtime/validation/layout.d.ts +20 -0
- package/dist/runtime/validation/state.d.ts +7 -3
- package/dist/runtime/validation/useFormValidator.d.ts +4 -0
- package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +3 -0
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +1 -1
- package/dist/sdk/doc-runtime/factories/runtime-data-sources.d.ts +39 -0
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -0
- package/dist/sdk/doc-runtime/factories/value-change-data-sources.d.ts +7 -0
- package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +7 -0
- package/dist/sdk/engine/index.d.ts +3 -1
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/setup.d.ts +10 -2
- package/dist/sdk/types/index.d.ts +8 -0
- package/dist/sdk/types/placed-form-field.d.ts +6 -0
- package/dist/sdk/vue/index.d.ts +6 -0
- package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +7 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
- package/dist/suites/edhr/manifest/field/business/product-release-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/quantity-received-qty-manifest.d.ts +3 -0
- package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +6 -5
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +7 -0
- package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +10 -3
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +19 -0
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +16 -0
- package/dist/suites/edhr/panel-schema/rule/components/field-map-row.vue.d.ts +1 -1
- package/dist/suites/edhr/panel-schema/rule/message-config/message-rule-modal.vue.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/rule/message-config/message-rule.d.ts +22 -0
- package/dist/suites/edhr/panel-schema/rule/message-config/message-time-picker.vue.d.ts +18 -0
- package/dist/suites/edhr/panel-schema/rule/message-config/with-word-message-rule-fields.d.ts +5 -0
- package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +11 -0
- package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +5 -0
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +22 -0
- package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +34 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +1 -1
- package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -0
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
- package/dist/utils/adapters/ServiceUtil.d.ts +9 -0
- package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
- package/dist/utils/func/base-formula-functions.d.ts +8 -0
- package/dist/utils/pdf/collect-seal-draw-ops.d.ts +4 -0
- package/dist/word.css +1647 -654
- package/package.json +4 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageWidget } from '../../../core/view/runs/ImageWidget';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
widget: ImageWidget;
|
|
4
|
+
modelId?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -84,10 +84,10 @@ export declare const styleSizeDefaultProps: {
|
|
|
84
84
|
/** 组件默认高度 */
|
|
85
85
|
readonly height: 68;
|
|
86
86
|
};
|
|
87
|
-
/** 签名/报工人等:与无图兜底画布同比例(≈1.76:1
|
|
87
|
+
/** 签名/报工人等:与无图兜底画布同比例(≈1.76:1) */
|
|
88
88
|
export declare const signStyleSizeDefaultProps: {
|
|
89
|
-
readonly width:
|
|
90
|
-
readonly height:
|
|
89
|
+
readonly width: 120;
|
|
90
|
+
readonly height: 68;
|
|
91
91
|
};
|
|
92
92
|
export declare const labelPriorityConfig: PriorityRule;
|
|
93
93
|
export declare const labelResolveDateConfig: ResolveRule;
|
|
@@ -52,19 +52,20 @@ export declare function getObjectBomDropdownQuery(fieldType: string | undefined,
|
|
|
52
52
|
} | {
|
|
53
53
|
'id_.in': string[];
|
|
54
54
|
} | null;
|
|
55
|
+
export interface ObjectBomQtyError {
|
|
56
|
+
field: string;
|
|
57
|
+
message: string;
|
|
58
|
+
}
|
|
55
59
|
/**
|
|
56
60
|
* 表单提交:校验所有物料消耗对象的数量 vs 需求数量
|
|
57
61
|
* - 开了数量校验且需求数量有值才校验
|
|
58
62
|
* - 人为指定:用 objectBom.entries_[0];否则用 bomEntries 中与对象物料匹配的明细
|
|
59
|
-
* -
|
|
63
|
+
* - 收集全部对象的 field/message 错误,无错误返回空数组
|
|
60
64
|
*/
|
|
61
65
|
export declare function validateObjectBomQtyOnSubmit(opts: {
|
|
62
66
|
formState: Record<string, any>;
|
|
63
67
|
objectFieldList?: IMaterialConsumeObjectInfo[];
|
|
64
68
|
modelFields: readonly FieldMeta[];
|
|
65
69
|
formInstBom?: FormInstBomResponse | null;
|
|
66
|
-
}): Promise<
|
|
67
|
-
field: string;
|
|
68
|
-
message: string;
|
|
69
|
-
} | null>;
|
|
70
|
+
}): Promise<ObjectBomQtyError[]>;
|
|
70
71
|
export {};
|
|
@@ -25,8 +25,15 @@ export interface ConsumeObjectSelectUpdatesOpts {
|
|
|
25
25
|
/** 表单实例 BOM 信息,用于 BOM 模式下写入 bom_entry_id_ */
|
|
26
26
|
formInstBom?: FormInstBomResponse | null;
|
|
27
27
|
}
|
|
28
|
+
interface ConsumeObjectFieldPaths {
|
|
29
|
+
productPath?: string;
|
|
30
|
+
materialNoPath?: string;
|
|
31
|
+
/** bom_entry_id_ 子字段路径(bizType = 'bom_entry_id') */
|
|
32
|
+
bomEntryIdPath?: string;
|
|
33
|
+
}
|
|
28
34
|
/** 提交前按当前产品值补齐所有物料消耗对象的 BOM 明细 ID。 */
|
|
29
35
|
export declare function buildConsumeObjectBomSubmitUpdates(doc: ConsumeObjectDoc, formInstBom?: FormInstBomResponse | null): Record<string, unknown>;
|
|
36
|
+
export declare function collectConsumeObjectPaths(doc: ConsumeObjectDoc, belongingObject: string): ConsumeObjectFieldPaths;
|
|
30
37
|
/**
|
|
31
38
|
* 消耗对象批次下拉:同组物料有值时按该物料版本过滤,替换 BOM versionIn。
|
|
32
39
|
*/
|
|
@@ -16,6 +16,7 @@ export declare function registryPanelSchemas(): {
|
|
|
16
16
|
'material-consume-table.basic': import('../../..').PanelSchema;
|
|
17
17
|
'material-balance-table.basic': import('../../..').PanelSchema;
|
|
18
18
|
'material-requisition-table.basic': import('../../..').PanelSchema;
|
|
19
|
+
'material-substitution-table.basic': import('../../..').PanelSchema;
|
|
19
20
|
'fixed-table.basic': import('../../..').PanelSchema;
|
|
20
21
|
'check-table.basic': import('../../..').PanelSchema;
|
|
21
22
|
'data-group.basic': {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const schema: import('../../../..').PanelSchema;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
label?: string;
|
|
3
|
+
plain?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2
6
|
click: () => any;
|
|
3
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
7
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
4
8
|
onClick?: (() => any) | undefined;
|
|
5
|
-
}>, {
|
|
9
|
+
}>, {
|
|
10
|
+
label: string;
|
|
11
|
+
plain: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
6
13
|
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DecisionRuleCondition } from '../types';
|
|
2
|
+
import { DecisionRuleFieldOption } from '../utils/decision-rule';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
condition: DecisionRuleCondition;
|
|
5
|
+
fields: DecisionRuleFieldOption[];
|
|
6
|
+
usedFieldValues: string[];
|
|
7
|
+
removable: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
add: () => any;
|
|
12
|
+
remove: () => any;
|
|
13
|
+
change: () => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onAdd?: (() => any) | undefined;
|
|
16
|
+
onRemove?: (() => any) | undefined;
|
|
17
|
+
onChange?: (() => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DecisionRuleGroup } from '../types';
|
|
2
|
+
import { DecisionRuleFieldOption } from '../utils/decision-rule';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
group: DecisionRuleGroup;
|
|
5
|
+
fields: DecisionRuleFieldOption[];
|
|
6
|
+
usedFieldValues: string[];
|
|
7
|
+
invalidKeys: Set<string>;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
+
remove: () => any;
|
|
11
|
+
change: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onRemove?: (() => any) | undefined;
|
|
14
|
+
onChange?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
|
+
export default _default;
|
|
@@ -27,8 +27,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
27
27
|
"onUpdate:formSubModel"?: ((value?: number | undefined) => any) | undefined;
|
|
28
28
|
"onUpdate:formSubFieldKey"?: ((value?: string | undefined) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
required: boolean;
|
|
31
30
|
fixed: boolean;
|
|
31
|
+
required: boolean;
|
|
32
32
|
treeData: FieldTreeNode[];
|
|
33
33
|
leftTitle: string;
|
|
34
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MessageRuleConfig, MessageRuleEditorData } from './message-rule';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
data: MessageRuleEditorData;
|
|
4
|
+
modelKey: string;
|
|
5
|
+
};
|
|
6
|
+
declare function onSave(): Promise<MessageRuleConfig | null>;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
8
|
+
onSave: typeof onSave;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
10
|
+
messageRef: unknown;
|
|
11
|
+
}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface MessageRuleConfig {
|
|
2
|
+
notifyTimes: string;
|
|
3
|
+
noticeMessageTmplConfig: string;
|
|
4
|
+
noticeRange: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MessageConfigValue {
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
messageInfo: Array<{
|
|
9
|
+
content?: string;
|
|
10
|
+
[key: string]: unknown;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
export interface MessageRuleEditorData {
|
|
14
|
+
noticeTimes: string[];
|
|
15
|
+
noticeRange: string;
|
|
16
|
+
messageConfig?: MessageConfigValue;
|
|
17
|
+
}
|
|
18
|
+
export declare function normalizeMessageRule(stored: unknown, info?: unknown): MessageRuleConfig;
|
|
19
|
+
export declare function decodeMessageRule(rule: MessageRuleConfig): MessageRuleEditorData;
|
|
20
|
+
export declare function encodeMessageRule(data: MessageRuleEditorData & {
|
|
21
|
+
messageConfig: MessageConfigValue;
|
|
22
|
+
}): MessageRuleConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
9
|
+
dropdown: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
10
|
+
P: {};
|
|
11
|
+
B: {};
|
|
12
|
+
D: {};
|
|
13
|
+
C: {};
|
|
14
|
+
M: {};
|
|
15
|
+
Defaults: {};
|
|
16
|
+
}, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
|
|
17
|
+
}, any>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Doc } from '../../../../../core';
|
|
2
|
+
import { InspectionDecisionRule } from '../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
item: InspectionDecisionRule;
|
|
5
|
+
doc: Doc;
|
|
6
|
+
};
|
|
7
|
+
declare function onSave(): Promise<InspectionDecisionRule | null>;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
9
|
+
onSave: typeof onSave;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Doc } from '../../../../../core';
|
|
2
|
+
import { InspectionDecisionRule } from '../types';
|
|
3
|
+
interface InspectionDecisionModalContext {
|
|
4
|
+
item: InspectionDecisionRule;
|
|
5
|
+
doc: Doc;
|
|
6
|
+
}
|
|
7
|
+
export declare function openInspectionDecisionModal(ctx: InspectionDecisionModalContext): Promise<InspectionDecisionRule | null>;
|
|
8
|
+
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Doc } from '../../../../core';
|
|
2
|
+
import { MessageRuleConfig } from './message-config/message-rule';
|
|
3
|
+
import { InspectionDecisionRule } from '../../../../domain/document-rule';
|
|
4
|
+
export type { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRelation, DecisionRuleRightValue, DecisionRuleValueType, InspectionDecisionRule, } from '../../../../domain/document-rule';
|
|
2
5
|
export type UnitConversionFieldKey = 'sourceUnit' | 'targetUnit';
|
|
3
6
|
/** 字段映射行 */
|
|
4
7
|
export interface RuleFieldMap {
|
|
@@ -34,7 +37,9 @@ export interface BaseRuleItem {
|
|
|
34
37
|
fieldMaps?: RuleFieldMap[];
|
|
35
38
|
}
|
|
36
39
|
export interface DocumentRulesConfig {
|
|
40
|
+
messageRuleConfig: MessageRuleConfig;
|
|
37
41
|
unitConversionRules: BaseRuleItem[];
|
|
42
|
+
inspectionDecisionRule: InspectionDecisionRule;
|
|
38
43
|
}
|
|
39
44
|
export type RulePanelRuleKind = 'barcodeParsing' | 'unitConversion';
|
|
40
45
|
export type RulePanelModalMode = 'create' | 'edit';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { DocumentRulesConfig } from './types';
|
|
2
2
|
export declare function useRulesConfig(): {
|
|
3
3
|
formState: import('vue').Ref<{
|
|
4
|
+
messageRuleConfig: {
|
|
5
|
+
notifyTimes: string;
|
|
6
|
+
noticeMessageTmplConfig: string;
|
|
7
|
+
noticeRange: string;
|
|
8
|
+
};
|
|
4
9
|
unitConversionRules: {
|
|
5
10
|
id: string;
|
|
6
11
|
ruleId?: string | undefined;
|
|
@@ -22,7 +27,18 @@ export declare function useRulesConfig(): {
|
|
|
22
27
|
required?: boolean | undefined;
|
|
23
28
|
}[] | undefined;
|
|
24
29
|
}[];
|
|
30
|
+
inspectionDecisionRule: {
|
|
31
|
+
dataRuleEnabled: boolean;
|
|
32
|
+
dataRule: string;
|
|
33
|
+
dataRuleConfig: string;
|
|
34
|
+
prompt: string;
|
|
35
|
+
};
|
|
25
36
|
}, DocumentRulesConfig | {
|
|
37
|
+
messageRuleConfig: {
|
|
38
|
+
notifyTimes: string;
|
|
39
|
+
noticeMessageTmplConfig: string;
|
|
40
|
+
noticeRange: string;
|
|
41
|
+
};
|
|
26
42
|
unitConversionRules: {
|
|
27
43
|
id: string;
|
|
28
44
|
ruleId?: string | undefined;
|
|
@@ -44,5 +60,11 @@ export declare function useRulesConfig(): {
|
|
|
44
60
|
required?: boolean | undefined;
|
|
45
61
|
}[] | undefined;
|
|
46
62
|
}[];
|
|
63
|
+
inspectionDecisionRule: {
|
|
64
|
+
dataRuleEnabled: boolean;
|
|
65
|
+
dataRule: string;
|
|
66
|
+
dataRuleConfig: string;
|
|
67
|
+
prompt: string;
|
|
68
|
+
};
|
|
47
69
|
}>;
|
|
48
70
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Doc } from '../../../../../core';
|
|
2
|
+
import { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRightValue, InspectionDecisionRule } from '../types';
|
|
3
|
+
export declare const DECISION_RULE_FIELD_TYPES: Set<string>;
|
|
4
|
+
export declare const NUMBER_DECISION_FIELD_TYPES: Set<string>;
|
|
5
|
+
export declare const DECISION_RULE_OPERATORS: Record<'number' | 'enum' | 'boolean', Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}>>;
|
|
9
|
+
export interface DecisionRuleFieldOption extends DecisionRuleField {
|
|
10
|
+
label: string;
|
|
11
|
+
value: string;
|
|
12
|
+
group: string;
|
|
13
|
+
icon?: string;
|
|
14
|
+
iconVersion?: 'v1' | 'v2';
|
|
15
|
+
}
|
|
16
|
+
/** 从编辑态字段选项中提取判定规则需要保存的字段信息。 */
|
|
17
|
+
export declare function toStoredDecisionRuleField(field: DecisionRuleField): DecisionRuleField;
|
|
18
|
+
/** 拉取并整理主表、子表、对象字段。 */
|
|
19
|
+
export declare function resolveDecisionRuleFields(doc: Doc): Promise<DecisionRuleFieldOption[]>;
|
|
20
|
+
export declare function getDecisionRuleOperators(type?: string): {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}[];
|
|
24
|
+
export declare function areDecisionFieldsCompatible(left?: DecisionRuleField, right?: DecisionRuleField): boolean;
|
|
25
|
+
export declare function createDecisionRuleCondition(pid: string, level: number): DecisionRuleCondition;
|
|
26
|
+
export declare function createDecisionRuleGroup(pid?: string, level?: number, withCondition?: boolean): DecisionRuleGroup;
|
|
27
|
+
export declare function parseDecisionRuleTree(dataRuleConfig?: string): DecisionRuleGroup;
|
|
28
|
+
/** 用最新元数据补齐历史 DataRulesContainer 配置缺少的 scope / 字段右值信息。 */
|
|
29
|
+
export declare function hydrateDecisionRuleTreeFields(root: DecisionRuleGroup, fields: DecisionRuleFieldOption[]): void;
|
|
30
|
+
export declare function getConditionQueryKey(condition: DecisionRuleCondition): string;
|
|
31
|
+
export declare function hasDecisionRuleValue(value?: DecisionRuleRightValue): boolean;
|
|
32
|
+
export declare function validateDecisionRuleTree(root: DecisionRuleGroup): Set<string>;
|
|
33
|
+
/** 生成与 DataRulesContainer 一致的条件查询数据。 */
|
|
34
|
+
export declare function serializeDecisionRule(root: DecisionRuleGroup, prompt: string, enabled?: boolean): InspectionDecisionRule;
|
|
@@ -9,6 +9,8 @@ type AutofillApplyOptions = {
|
|
|
9
9
|
/** 仅写入指定子表行(插行场景) */
|
|
10
10
|
rowIndexes?: number[];
|
|
11
11
|
};
|
|
12
|
+
/** 只解析目标路径,不执行来源取值或填充。 */
|
|
13
|
+
export declare function getAutofillTargetPaths(autofillRules: AutofillRule[], opts?: AutofillApplyOptions): string[];
|
|
12
14
|
export declare function applyAutofillRules(record: Record<string, unknown>, autofillRules: AutofillRule[], opts?: AutofillApplyOptions): Record<string, unknown>;
|
|
13
15
|
/**
|
|
14
16
|
* 子表插行 / 行初始化:从主表规则补默认值
|
package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts
CHANGED
|
@@ -16,9 +16,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
16
16
|
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
17
17
|
onChange?: ((value?: string | undefined, node?: FieldTreeNodeType | undefined) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
+
placeholder: string;
|
|
19
20
|
disabled: boolean;
|
|
20
21
|
treeData: FieldTreeNodeType[];
|
|
21
|
-
placeholder: string;
|
|
22
22
|
defaultExpanded: boolean;
|
|
23
23
|
defaultExpandedValues: string[];
|
|
24
24
|
groupOnlyExpand: boolean;
|
|
@@ -4,6 +4,7 @@ type __VLS_Props = {
|
|
|
4
4
|
expr?: string;
|
|
5
5
|
exprEcho?: string;
|
|
6
6
|
formulaFieldOptions?: IdentifierGroupInterface[];
|
|
7
|
+
functions?: any[];
|
|
7
8
|
};
|
|
8
9
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
10
|
"update:expr": (expr: string) => any;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
type GetAppInfoMethod = () => Promise<any>;
|
|
2
|
+
type GetBusinessSettingMethod = () => Promise<{
|
|
3
|
+
enableSopDocApprove?: number | boolean;
|
|
4
|
+
}>;
|
|
2
5
|
type ParseFileResult = {
|
|
3
6
|
data?: string;
|
|
4
7
|
} | string;
|
|
@@ -13,6 +16,7 @@ type FormulaIdentify = (expr: string) => string[];
|
|
|
13
16
|
type FormulaCalculate = (expr: string, values: Record<string, any>) => Promise<any>;
|
|
14
17
|
interface ServiceUtilHandlers {
|
|
15
18
|
getAppInfo?: GetAppInfoMethod;
|
|
19
|
+
getBusinessSetting?: GetBusinessSettingMethod;
|
|
16
20
|
parseFile?: ParseFileMethod;
|
|
17
21
|
uploadFile?: UploadFileMethod;
|
|
18
22
|
formulaIdentify?: FormulaIdentify;
|
|
@@ -21,6 +25,7 @@ interface ServiceUtilHandlers {
|
|
|
21
25
|
declare class ServiceUtil {
|
|
22
26
|
private static instance;
|
|
23
27
|
private _getAppInfo?;
|
|
28
|
+
private _getBusinessSetting?;
|
|
24
29
|
private _parseFileImpl?;
|
|
25
30
|
private _uploadFileImpl?;
|
|
26
31
|
private _formulaIdentifyImpl?;
|
|
@@ -39,6 +44,10 @@ declare class ServiceUtil {
|
|
|
39
44
|
* 获取应用信息
|
|
40
45
|
*/
|
|
41
46
|
getAppInfo(): Promise<any>;
|
|
47
|
+
/** 由宿主加载业务配置,未注入时保持原有查询行为。 */
|
|
48
|
+
getBusinessSetting(): Promise<{
|
|
49
|
+
enableSopDocApprove?: number | boolean;
|
|
50
|
+
}>;
|
|
42
51
|
/**
|
|
43
52
|
* 解析文件
|
|
44
53
|
* @param file - 文件对象
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TriggerName = 'OPEN_COMMON_CONFIRM_MODAL' | 'OPEN_DOC_SIGNATURE_RULE_CONFIG_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_FORM_MODEL_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_INPUT_PARAMS_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_OUTPUT_PARAMS_MODAL' | 'OPEN_FIELD_HYPERLINK_MODAL' | 'OPEN_FIELD_ONLINE_FORM_TMPL_MODAL' | 'OPEN_DISPLAY_FIELDS_TRANSFER_MODAL' | 'OPEN_QUICK_FILL_MODAL' | 'OPEN_CHECK_TABLE_DS_MODAL' | 'OPEN_E_SOP_VIEW_MODAL' | 'OPEN_FORMULA_EDITOR_MODAL';
|
|
1
|
+
export type TriggerName = 'OPEN_COMMON_CONFIRM_MODAL' | 'OPEN_DOC_SIGNATURE_RULE_CONFIG_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_FORM_MODEL_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_INPUT_PARAMS_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_OUTPUT_PARAMS_MODAL' | 'OPEN_FIELD_HYPERLINK_MODAL' | 'OPEN_FIELD_ONLINE_FORM_TMPL_MODAL' | 'OPEN_ADD_ONLINE_FORM_FIELD_MODAL' | 'OPEN_DISPLAY_FIELDS_TRANSFER_MODAL' | 'OPEN_QUICK_FILL_MODAL' | 'OPEN_CHECK_TABLE_DS_MODAL' | 'OPEN_E_SOP_VIEW_MODAL' | 'OPEN_FORMULA_EDITOR_MODAL';
|
|
2
2
|
export type TriggerHandler = (name: TriggerName, options?: any) => Promise<any>;
|
|
3
3
|
interface TriggerUtilHandlers {
|
|
4
4
|
handle?: TriggerHandler;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 按注册标记匹配可在无结果时跳过写回的函数名。 */
|
|
2
|
+
export declare function usesSkipWriteOnUndefinedFunction(expression: string): boolean;
|
|
3
|
+
/** 注册基础函数执行体,供表单填报和预览时计算公式。 */
|
|
4
|
+
export declare function registerBaseFormulaFuncs(): void;
|
|
5
|
+
/** 保留调用方已有函数,并按各自分组追加基础函数描述。 */
|
|
6
|
+
export declare function appendBaseFormulaFunctions(options: Record<string, any>): {
|
|
7
|
+
functions: any[];
|
|
8
|
+
};
|