@gct-paas/word 0.2.40 → 0.2.41-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/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/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 +6 -1
- package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +19 -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 +64 -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 +34027 -7341
- 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 +18 -5
- 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 +17 -7
- 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/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/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/func/number-util.d.ts +9 -0
- package/dist/utils/pdf/collect-seal-draw-ops.d.ts +4 -0
- package/dist/word.css +1489 -584
- package/package.json +4 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Doc } from '../../../../../../core';
|
|
3
|
+
/** 被替换物料仅按当前行生产批查询,未选择时阻断;仅允许 SN 查询历史消耗。 */
|
|
4
|
+
export declare function useMaterialSubstitutionSource(doc: Ref<Doc>, enabled: () => boolean, runtimeValuePath: () => string, fieldName: () => string | undefined): {
|
|
5
|
+
message: import('vue').ComputedRef<string>;
|
|
6
|
+
resolveQuery: () => Promise<Record<string, unknown> | null>;
|
|
7
|
+
};
|
|
@@ -105,13 +105,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
105
105
|
keyup: (event: KeyboardEvent) => any;
|
|
106
106
|
pressEnter: (event: KeyboardEvent) => any;
|
|
107
107
|
}, string, {
|
|
108
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
109
108
|
id: string;
|
|
109
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
110
110
|
name: string;
|
|
111
|
+
placeholder: string;
|
|
112
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
111
113
|
readonly: boolean;
|
|
112
114
|
disabled: boolean;
|
|
113
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
114
|
-
placeholder: string;
|
|
115
115
|
modelValue: string | number;
|
|
116
116
|
prefix: string;
|
|
117
117
|
suffix: string;
|
|
@@ -149,13 +149,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
149
149
|
$nextTick: typeof import('vue').nextTick;
|
|
150
150
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
151
151
|
} & Readonly<{
|
|
152
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
153
152
|
id: string;
|
|
153
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
154
154
|
name: string;
|
|
155
|
+
placeholder: string;
|
|
156
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
155
157
|
readonly: boolean;
|
|
156
158
|
disabled: boolean;
|
|
157
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
158
|
-
placeholder: string;
|
|
159
159
|
modelValue: string | number;
|
|
160
160
|
prefix: string;
|
|
161
161
|
suffix: string;
|
|
@@ -184,7 +184,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
184
184
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
185
185
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
186
186
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
187
|
-
}>, "select" | "blur" | "focus" | "inputRef" | ("
|
|
187
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
188
188
|
focus: () => void;
|
|
189
189
|
blur: () => void;
|
|
190
190
|
select: () => void;
|
|
@@ -100,13 +100,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
100
100
|
keyup: (event: KeyboardEvent) => any;
|
|
101
101
|
pressEnter: (event: KeyboardEvent) => any;
|
|
102
102
|
}, string, {
|
|
103
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
104
103
|
id: string;
|
|
104
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
105
105
|
name: string;
|
|
106
|
+
placeholder: string;
|
|
107
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
106
108
|
readonly: boolean;
|
|
107
109
|
disabled: boolean;
|
|
108
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
109
|
-
placeholder: string;
|
|
110
110
|
modelValue: string | number;
|
|
111
111
|
prefix: string;
|
|
112
112
|
suffix: string;
|
|
@@ -144,13 +144,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
144
144
|
$nextTick: typeof import('vue').nextTick;
|
|
145
145
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
146
146
|
} & Readonly<{
|
|
147
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
148
147
|
id: string;
|
|
148
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
149
149
|
name: string;
|
|
150
|
+
placeholder: string;
|
|
151
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
150
152
|
readonly: boolean;
|
|
151
153
|
disabled: boolean;
|
|
152
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
153
|
-
placeholder: string;
|
|
154
154
|
modelValue: string | number;
|
|
155
155
|
prefix: string;
|
|
156
156
|
suffix: string;
|
|
@@ -179,7 +179,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
179
179
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
180
180
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
181
181
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
182
|
-
}>, "select" | "blur" | "focus" | "inputRef" | ("
|
|
182
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
183
183
|
focus: () => void;
|
|
184
184
|
blur: () => void;
|
|
185
185
|
select: () => void;
|
|
@@ -122,13 +122,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
122
122
|
keyup: (event: KeyboardEvent) => any;
|
|
123
123
|
pressEnter: (event: KeyboardEvent) => any;
|
|
124
124
|
}, string, {
|
|
125
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
126
125
|
id: string;
|
|
126
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
127
127
|
name: string;
|
|
128
|
+
placeholder: string;
|
|
129
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
128
130
|
readonly: boolean;
|
|
129
131
|
disabled: boolean;
|
|
130
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
131
|
-
placeholder: string;
|
|
132
132
|
modelValue: string | number;
|
|
133
133
|
prefix: string;
|
|
134
134
|
suffix: string;
|
|
@@ -166,13 +166,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
166
166
|
$nextTick: typeof nextTick;
|
|
167
167
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
168
168
|
} & Readonly<{
|
|
169
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
170
169
|
id: string;
|
|
170
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
171
171
|
name: string;
|
|
172
|
+
placeholder: string;
|
|
173
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
172
174
|
readonly: boolean;
|
|
173
175
|
disabled: boolean;
|
|
174
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
175
|
-
placeholder: string;
|
|
176
176
|
modelValue: string | number;
|
|
177
177
|
prefix: string;
|
|
178
178
|
suffix: string;
|
|
@@ -201,7 +201,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
201
201
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
202
202
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
203
203
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
204
|
-
}>, "select" | "blur" | "focus" | "inputRef" | ("
|
|
204
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
205
205
|
focus: () => void;
|
|
206
206
|
blur: () => void;
|
|
207
207
|
select: () => void;
|
|
@@ -102,13 +102,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
102
102
|
keyup: (event: KeyboardEvent) => any;
|
|
103
103
|
pressEnter: (event: KeyboardEvent) => any;
|
|
104
104
|
}, string, {
|
|
105
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
106
105
|
id: string;
|
|
106
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
107
107
|
name: string;
|
|
108
|
+
placeholder: string;
|
|
109
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
108
110
|
readonly: boolean;
|
|
109
111
|
disabled: boolean;
|
|
110
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
111
|
-
placeholder: string;
|
|
112
112
|
modelValue: string | number;
|
|
113
113
|
prefix: string;
|
|
114
114
|
suffix: string;
|
|
@@ -146,13 +146,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
146
146
|
$nextTick: typeof import('vue').nextTick;
|
|
147
147
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
148
148
|
} & Readonly<{
|
|
149
|
-
type: import('../../../../../base/input/src/types').InputType;
|
|
150
149
|
id: string;
|
|
150
|
+
type: import('../../../../../base/input/src/types').InputType;
|
|
151
151
|
name: string;
|
|
152
|
+
placeholder: string;
|
|
153
|
+
size: import('../../../../../base/input/src/types').InputSize;
|
|
152
154
|
readonly: boolean;
|
|
153
155
|
disabled: boolean;
|
|
154
|
-
size: import('../../../../../base/input/src/types').InputSize;
|
|
155
|
-
placeholder: string;
|
|
156
156
|
modelValue: string | number;
|
|
157
157
|
prefix: string;
|
|
158
158
|
suffix: string;
|
|
@@ -181,7 +181,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
181
181
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
182
182
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
183
183
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
184
|
-
}>, "select" | "blur" | "focus" | "inputRef" | ("
|
|
184
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
185
185
|
focus: () => void;
|
|
186
186
|
blur: () => void;
|
|
187
187
|
select: () => void;
|
|
@@ -9,6 +9,26 @@ export declare function buildWidgetPathIndex(doc: Doc): Map<string, any>;
|
|
|
9
9
|
export declare function listWidgetNodes(doc: Doc): WidgetLayoutEntry[];
|
|
10
10
|
/** 校验批注连线坐标:优先按 valuePath 存取,兼容旧版 modelId */
|
|
11
11
|
export declare function getValidationCommentPoints(widgetMeta: any, runtimeValuePath: string, modelId?: string): any;
|
|
12
|
+
/** Floating seals do not mount the inline field overlay that normally records these points. */
|
|
13
|
+
export declare function getSealValidationCommentPoints(doc: Doc, widget: any): {
|
|
14
|
+
fieldLeft?: undefined;
|
|
15
|
+
fieldTop?: undefined;
|
|
16
|
+
startX?: undefined;
|
|
17
|
+
startY?: undefined;
|
|
18
|
+
lineWidth?: undefined;
|
|
19
|
+
midX?: undefined;
|
|
20
|
+
midY?: undefined;
|
|
21
|
+
panelLeft?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
fieldLeft: number;
|
|
24
|
+
fieldTop: number;
|
|
25
|
+
startX: number;
|
|
26
|
+
startY: number;
|
|
27
|
+
lineWidth: number;
|
|
28
|
+
midX: number;
|
|
29
|
+
midY: number;
|
|
30
|
+
panelLeft: number;
|
|
31
|
+
};
|
|
12
32
|
/** 收集当前文档里所有可校验字段的 runtime valuePath */
|
|
13
33
|
export declare function listWidgetValuePaths(doc: Doc): string[];
|
|
14
34
|
/** 由 modelId 解析运行时 valuePath(优先布局 run,兼容子表行) */
|
|
@@ -6,7 +6,8 @@ export type ValidationCommentMap = Record<string, Array<{
|
|
|
6
6
|
}>> | null;
|
|
7
7
|
type ValidationSource = 'interactive' | 'manual' | 'business' | 'display';
|
|
8
8
|
export type ValidationRun = {
|
|
9
|
-
|
|
9
|
+
scopePaths?: ReadonlySet<string>;
|
|
10
|
+
isCurrent(source: ValidationSource, path?: string): boolean;
|
|
10
11
|
};
|
|
11
12
|
export type ValidationUpdate = Partial<Record<ValidationSource, ValidationCommentMap>> & {
|
|
12
13
|
validatedPaths?: string[];
|
|
@@ -16,8 +17,11 @@ export type ValidationUpdate = Partial<Record<ValidationSource, ValidationCommen
|
|
|
16
17
|
};
|
|
17
18
|
/** 等待 settle 的任务也属于当前会话,重置后不能重新创建旧结果。 */
|
|
18
19
|
export declare function captureValidationSession(doc: Doc): () => boolean;
|
|
19
|
-
/**
|
|
20
|
-
export declare function
|
|
20
|
+
/** 提交前扩展也属于提交请求;较早请求的裁决不能覆盖后发请求。 */
|
|
21
|
+
export declare function captureSubmissionValidation(doc: Doc, showComments: boolean): () => boolean;
|
|
22
|
+
export declare function listManualValidationPaths(doc: Doc): string[];
|
|
23
|
+
/** 按来源和字段范围控制异步写回,分别维护提交、实时、业务和展示结果。 */
|
|
24
|
+
export declare function beginValidationRun(doc: Doc, sources: ValidationSource[], scopePaths?: ReadonlySet<string>, isRequestCurrent?: () => boolean): ValidationRun;
|
|
21
25
|
/** 只更新本轮拥有的来源和实际执行规则的字段。 */
|
|
22
26
|
export declare function applyValidationResults(doc: Doc, run: ValidationRun, update: ValidationUpdate): ValidationCommentMap;
|
|
23
27
|
/** 数据变化清理旧业务快照,不取消业务校验自身写回数据后的在途结果。 */
|
|
@@ -12,6 +12,10 @@ export declare function disposeDocValidationScheduler(doc: Doc): void;
|
|
|
12
12
|
export declare const validateAllFields: (doc: Doc, options?: {
|
|
13
13
|
showComments?: boolean;
|
|
14
14
|
}) => Promise<Record<string, any[]> | null>;
|
|
15
|
+
/** 对指定运行时字段路径执行提交级完整校验。 */
|
|
16
|
+
export declare const validateFields: (doc: Doc, paths: Iterable<string>, options?: {
|
|
17
|
+
showComments?: boolean;
|
|
18
|
+
}) => Promise<Record<string, any[]> | null>;
|
|
15
19
|
type ValidateOptions = {
|
|
16
20
|
/** 调用方已 settle 时可跳过,避免打开时重复等待 */
|
|
17
21
|
settle?: boolean;
|
|
@@ -27,9 +27,9 @@ export interface DocumentFieldContext {
|
|
|
27
27
|
}
|
|
28
28
|
export declare function prepareDocumentFieldContext(options: PrepareFieldContextOptions): Promise<DocumentFieldContext>;
|
|
29
29
|
export interface PrepareRenderDataOptions {
|
|
30
|
+
fillModeType: DocModeType;
|
|
30
31
|
requestInfo: Execute['requestInfo'];
|
|
31
32
|
initializeValues?: boolean;
|
|
32
|
-
fillModeType: DocModeType;
|
|
33
33
|
payload: IDocPayload;
|
|
34
34
|
materialNo: string;
|
|
35
35
|
query: Record<string, any>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Doc } from '../../../core';
|
|
2
|
+
import { DataSourceConfig, DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
3
|
+
interface RuntimeDataSourceOptions {
|
|
4
|
+
doc: Doc;
|
|
5
|
+
canExecute: NonNullable<DataSourceManagerOptions['canExecute']>;
|
|
6
|
+
getContext: DataSourceManagerOptions['getContext'];
|
|
7
|
+
getInstanceId: DataSourceManagerOptions['getInstanceId'];
|
|
8
|
+
adapters?: DataSourceManagerOptions['adapters'];
|
|
9
|
+
}
|
|
10
|
+
/** 为单份 Word 文档绑定数源与字段填充;初始化和释放由文档生命周期调度。 */
|
|
11
|
+
export declare function createRuntimeDataSourceBinding(options: RuntimeDataSourceOptions): {
|
|
12
|
+
manager: {
|
|
13
|
+
getSources: () => DataSourceConfig[];
|
|
14
|
+
getContext: () => Record<string, unknown>;
|
|
15
|
+
canExecute: () => boolean;
|
|
16
|
+
reload: (key: string) => Promise<unknown>;
|
|
17
|
+
reloadAll: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
18
|
+
states: {
|
|
19
|
+
readonly [x: string]: {
|
|
20
|
+
readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
|
|
21
|
+
readonly data?: Readonly<unknown> | undefined;
|
|
22
|
+
readonly clearTargets?: boolean | undefined;
|
|
23
|
+
readonly error?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
|
|
27
|
+
cancel: (key: string) => boolean;
|
|
28
|
+
getResult(key: string): unknown;
|
|
29
|
+
initialize: () => Promise<PromiseSettledResult<unknown>[]>;
|
|
30
|
+
queryOnValueChange(keys: readonly string[], changeOptions?: {
|
|
31
|
+
cleared?: boolean;
|
|
32
|
+
}): Promise<PromiseSettledResult<unknown>[]>;
|
|
33
|
+
dispose(): void;
|
|
34
|
+
};
|
|
35
|
+
initialize(): Promise<void>;
|
|
36
|
+
refresh: () => void | undefined;
|
|
37
|
+
dispose(): void;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { DocInfo, FieldPermissionInfo, IDeviceConfig } from '../../types';
|
|
|
4
4
|
import { DesignSuiteContext } from '../../../runtime/_register_/context/DesignSuiteContext';
|
|
5
5
|
import { OnlineFormInstanceResponse, OnlineFormTmplResponse } from '@gct-paas/api/apaas';
|
|
6
6
|
import { FormTmplBomController } from '../../../runtime/canvas/table/render/material-consume';
|
|
7
|
+
import { DataSourceManager, DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
7
8
|
export interface IDocProps {
|
|
8
9
|
/** 文档实例id或者文档模板id */
|
|
9
10
|
requestId: MaybeRef<string | undefined>;
|
|
@@ -27,6 +28,8 @@ export interface IDocInstancePayload {
|
|
|
27
28
|
export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
28
29
|
/** 工厂类型 */
|
|
29
30
|
factoryType: 'template' | 'instance';
|
|
31
|
+
/** 表单、实体和业务等数源的宿主查询适配器。 */
|
|
32
|
+
dataSourceAdapters?: DataSourceManagerOptions['adapters'];
|
|
30
33
|
/** 模型 key */
|
|
31
34
|
modelKey?: ModelKey;
|
|
32
35
|
/** 设备配置信息 */
|
|
@@ -48,6 +51,8 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
|
48
51
|
}
|
|
49
52
|
/** 文档加载工厂 — 只负责响应式加载与生命周期,不包含业务操作 */
|
|
50
53
|
export interface DocumentFactory {
|
|
54
|
+
/** 当前填报实例的数源查询、状态与手动刷新入口。 */
|
|
55
|
+
dataSourceManager: ShallowRef<DataSourceManager | undefined>;
|
|
51
56
|
/** 文档引擎实例 */
|
|
52
57
|
docIns: ShallowRef<Doc | null>;
|
|
53
58
|
/** 文档页面信息(响应式,驱动 canvas 渲染) */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Doc } from '../../../core';
|
|
2
|
+
import { DocumentRuntimeExtension } from '../../../core/runtime/DocumentRuntimeManager';
|
|
3
|
+
import { DataSourceManager } from '@gct-paas/form-base';
|
|
4
|
+
/** 初始化就绪时补查带值字段;后续只响应用户编辑,hydrate 不重复触发。 */
|
|
5
|
+
export declare function createValueChangeDataSourceRuntime(doc: Doc, manager: Pick<DataSourceManager, 'queryOnValueChange' | 'states'>, canExecute: () => boolean): DocumentRuntimeExtension & {
|
|
6
|
+
initialize: () => Promise<void>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PlacedFormField } from '../../types/placed-form-field';
|
|
2
|
+
/** 从已保存的 Word 模板数据提取指定类型的拖入字段。 */
|
|
3
|
+
export declare function collectPlacedFieldsFromTemplateJson(runtimeJson: string | object | null | undefined, mainModelKey: string | undefined, fieldType: string): PlacedFormField[];
|
|
4
|
+
/** 按模板 ID 查询已保存 Word 表单中拖入的指定类型字段,无需调用 useWord。 */
|
|
5
|
+
export declare function getPlacedFieldsByType(fieldType: string, templateId: string): Promise<PlacedFormField[]>;
|
|
6
|
+
/** 按模板 ID 查询已保存 Word 表单中拖入的印章字段。 */
|
|
7
|
+
export declare function getPlacedSealFields(templateId: string): Promise<PlacedFormField[]>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export { DocModeTypeConst, PaperSizeConst, BuiltinComponentTypeConst } from '../../core';
|
|
6
6
|
export type { DocModeType, CompleteComponentType, BuiltinComponentType } from '../../core';
|
|
7
|
-
export type { DocController, DocQueryAPI, WordRuntime, DocInfo, DocRuntimeMeta, DocRuntimeMetaHandleInfo, DocUnsavedChanges, DocGetUnsavedChangesOptions, DesignerValidationError, DesignerValidationResult, DesignerValidationSource, UseWordProps, UseWordOptions, WordPrintCaptureOptions, FieldModelQuery, IDeviceConfig, } from '../types';
|
|
7
|
+
export type { DocController, DocQueryAPI, WordRuntime, DocInfo, DocRuntimeMeta, DocRuntimeMetaHandleInfo, DocUnsavedChanges, DocGetUnsavedChangesOptions, DesignerValidationError, DesignerValidationResult, DesignerValidationSource, UseWordProps, UseWordOptions, WordPrintCaptureOptions, FieldModelQuery, IDeviceConfig, PlacedFormField, } from '../types';
|
|
8
8
|
export type { Execute } from '../doc-runtime/factories/useDocumentFactory';
|
|
9
9
|
export { useWord } from '../doc-runtime/useWord';
|
|
10
10
|
export { useDocSuite } from '../doc-runtime/composables/useDocSuite';
|
|
@@ -12,6 +12,8 @@ export { useDocumentFactory } from '../doc-runtime/factories/useDocumentFactory'
|
|
|
12
12
|
export { useDocRuntimeProvider } from '../doc-runtime/composables/useDocRuntimeProvider';
|
|
13
13
|
export { useDocOperations } from '../doc-runtime/composables/useDocOperations';
|
|
14
14
|
export { useDocController } from '../doc-runtime/composables/useDocController';
|
|
15
|
+
export { getPlacedFieldsByType, getPlacedSealFields, } from '../doc-runtime/queries/template-placed-fields';
|
|
15
16
|
export { useFormTmplAndModelInit } from '../doc-runtime/device-link/useFormTmplAndModelInit';
|
|
16
17
|
export { calcUsedFieldsFromRuntimeJson, type CalcUsedFieldsFromRuntimeJsonOptions, type UsedFieldInfo, } from '../../utils/func/calc-used-fields';
|
|
17
18
|
export type { TableBorderPreset } from '../../core/model/types/table-border';
|
|
19
|
+
export { withWordMessageRuleFields } from '../../suites/edhr/panel-schema/rule/message-config/with-word-message-rule-fields';
|
package/dist/sdk/index.d.ts
CHANGED
package/dist/sdk/setup.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createApp } from 'vue';
|
|
1
|
+
import { createApp, Component } from 'vue';
|
|
2
2
|
import { TriggerHandler } from '../utils/adapters/TriggerUtil';
|
|
3
3
|
import { WordSuitePlugin } from './types';
|
|
4
4
|
export interface SetupPlatformAdaptersOptions {
|
|
@@ -9,6 +9,10 @@ export interface SetupPlatformAdaptersOptions {
|
|
|
9
9
|
interceptors?: any;
|
|
10
10
|
/** 获取应用信息/默认内置参数 */
|
|
11
11
|
getAppInfo: any;
|
|
12
|
+
/** 获取业务配置,供填报及模拟填报的 SOP 选项过滤使用。 */
|
|
13
|
+
getBusinessSetting?: () => Promise<{
|
|
14
|
+
enableSopDocApprove?: number | boolean;
|
|
15
|
+
}>;
|
|
12
16
|
/** 文件解析方法 */
|
|
13
17
|
parseFile: any;
|
|
14
18
|
/** 文件上传方法 */
|
|
@@ -17,6 +21,8 @@ export interface SetupPlatformAdaptersOptions {
|
|
|
17
21
|
formulaIdentify?: any;
|
|
18
22
|
/** 公式计算(可选) */
|
|
19
23
|
formulaCalculate?: any;
|
|
24
|
+
/** 注入业务函数 */
|
|
25
|
+
formulaRegister?: any;
|
|
20
26
|
/** 触发主工程交互(可选) */
|
|
21
27
|
triggerHandler?: TriggerHandler;
|
|
22
28
|
/** 需要安装的 Suite 插件列表 */
|
|
@@ -45,10 +51,12 @@ export declare function setupPlatformAdapters(options: SetupPlatformAdaptersOpti
|
|
|
45
51
|
export interface SetupVueRuntimeOptions {
|
|
46
52
|
/** Vue 应用实例(createApp 的返回值) */
|
|
47
53
|
app: ReturnType<typeof createApp>;
|
|
54
|
+
/** 宿主业务组件;按名称注册到当前应用,Word 内可直接使用。 */
|
|
55
|
+
components?: Readonly<Record<string, Component>>;
|
|
48
56
|
}
|
|
49
57
|
/**
|
|
50
58
|
* Vue 运行时注册(在 createApp 之后调用)
|
|
51
|
-
*
|
|
59
|
+
* 注册宿主业务组件、Vue 插件(FloatingVue、VueKonva)和全局指令
|
|
52
60
|
*
|
|
53
61
|
* @example
|
|
54
62
|
* const app = createApp(App);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSourceManager, DataSourceManagerOptions } from '@gct-paas/form-base';
|
|
1
2
|
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
2
3
|
import { DocModeType, IPaperInfo } from '../../core/constants';
|
|
3
4
|
import { DocModel } from '../../core/model';
|
|
@@ -12,6 +13,7 @@ export type { DocUnsavedChanges, DocGetUnsavedChangesOptions, } from '../doc-run
|
|
|
12
13
|
export type { DesignerValidationError, DesignerValidationResult, DesignerValidationSource, } from './designer-validation';
|
|
13
14
|
export type { FieldModelQuery } from './field-model-query';
|
|
14
15
|
export type { IActionButtonItem } from './action-button';
|
|
16
|
+
export type { PlacedFormField } from './placed-form-field';
|
|
15
17
|
/** 设备配置信息 */
|
|
16
18
|
export interface IDeviceConfig {
|
|
17
19
|
/** 默认的用户id */
|
|
@@ -193,6 +195,8 @@ export interface DocRuntimeMetaHandleInfo {
|
|
|
193
195
|
}
|
|
194
196
|
/** 文档运行时元信息(接口返回字段 + 业务拼接字段) */
|
|
195
197
|
export interface DocRuntimeMeta extends OnlineFormInstanceResponse, OnlineFormTmplResponse {
|
|
198
|
+
/** detail 返回的交易实例 id,供检验数量等业务字段查询使用 */
|
|
199
|
+
txnInstId?: string;
|
|
196
200
|
/** 业务拼接的运行时处理信息 */
|
|
197
201
|
handleInfo: DocRuntimeMetaHandleInfo;
|
|
198
202
|
/**
|
|
@@ -210,6 +214,8 @@ export interface DocRuntimeMeta extends OnlineFormInstanceResponse, OnlineFormTm
|
|
|
210
214
|
* useWord 返回的运行时对象(SDK 公共面)
|
|
211
215
|
*/
|
|
212
216
|
export interface WordRuntime {
|
|
217
|
+
/** 填报实例的数源管理器,支持 query(key) 和读取 states。 */
|
|
218
|
+
dataSourceManager: ShallowRef<DataSourceManager | undefined>;
|
|
213
219
|
/**
|
|
214
220
|
* 对外暴露的文档控制器引用。
|
|
215
221
|
*
|
|
@@ -254,6 +260,8 @@ export interface WordPrintCaptureOptions {
|
|
|
254
260
|
}
|
|
255
261
|
/** useWord 配置选项 */
|
|
256
262
|
export interface UseWordOptions {
|
|
263
|
+
/** 表单、实体、业务数源等宿主查询实现。 */
|
|
264
|
+
dataSourceAdapters?: DataSourceManagerOptions['adapters'];
|
|
257
265
|
/** 工厂类型:template(模板) | instance(实例) */
|
|
258
266
|
factoryType: 'template' | 'instance';
|
|
259
267
|
/** 主模型 key */
|
package/dist/sdk/vue/index.d.ts
CHANGED
|
@@ -5,3 +5,9 @@
|
|
|
5
5
|
export { default as DocDesignLayout } from './layouts/doc-design-layout.vue';
|
|
6
6
|
export { default as DocRenderLayout } from './layouts/doc-render-layout.vue';
|
|
7
7
|
export { GctLayout } from '../../base';
|
|
8
|
+
/**
|
|
9
|
+
* 共用数据获取列表:设计配置与运行时查看、手动加载
|
|
10
|
+
* word, excel 都暴露出去了,gct-dhr-kit 可从中任用一个
|
|
11
|
+
*/
|
|
12
|
+
export { DataSources } from '@gct-paas/form-base';
|
|
13
|
+
export type { DataSourceManager } from '@gct-paas/form-base';
|
|
@@ -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;
|