@gct-paas/word 0.1.62-beta.4 → 0.1.62-patch.2
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 +1 -1
- package/dist/assets/svgs/table/index.d.ts +0 -2
- package/dist/base/button/src/button.type.d.ts +1 -1
- package/dist/base/form-item/src/form-item.vue.d.ts +2 -5
- package/dist/base/modal/src/ModalRoot.vue.d.ts +0 -2
- package/dist/base/modal/src/modal.type.d.ts +0 -4
- package/dist/base/select/src/basic-select.vue.d.ts +0 -5
- package/dist/base/utils/image-size-util.d.ts +10 -4
- package/dist/core/command/types.d.ts +2 -10
- package/dist/core/constants/index.d.ts +7 -10
- package/dist/core/data/DataManager.d.ts +0 -2
- package/dist/core/data/derived-fields.d.ts +0 -17
- package/dist/core/data/enrichers/build-field-enrichers.d.ts +4 -0
- package/dist/core/data/pipeline-logger.d.ts +1 -1
- package/dist/core/data/post-change-pipeline.d.ts +0 -5
- package/dist/core/event/handlers/InteractionHandler.d.ts +0 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/interaction/InteractionController.d.ts +0 -5
- package/dist/core/interaction/types.d.ts +1 -10
- package/dist/core/interaction/useInteraction.d.ts +0 -7
- package/dist/core/model/document/WsecPr.d.ts +1 -14
- package/dist/core/model/document/wtcRegionRef.d.ts +2 -2
- package/dist/core/model/logic/subtable/repeating/MaterialConsumeTableRegion.d.ts +0 -3
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -14
- package/dist/core/utils/unit-converter-util.d.ts +0 -2
- package/dist/core/view/Doc.d.ts +1 -5
- package/dist/core/view/Section.d.ts +7 -16
- package/dist/core/view/runs/ImageWidget.d.ts +4 -0
- package/dist/domain/active/active-types.d.ts +2 -12
- package/dist/domain/constants/field-state.d.ts +0 -9
- package/dist/domain/field/field-props-schema-type.d.ts +2 -2
- package/dist/domain/field/field-type.d.ts +1 -29
- package/dist/domain/table/business/material/material-balance/index.d.ts +0 -1
- package/dist/domain/table/business/material/material-balance/profile/index.d.ts +0 -1
- package/dist/domain/table/business/material/material-consume/profile/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +14 -10
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/index.d.ts +0 -1
- package/dist/domain/table/design/autofill-expander.d.ts +1 -3
- package/dist/domain/table/runtime/api/biz-service-api.d.ts +0 -2
- package/dist/domain/table/runtime/engines/init-load-engine.d.ts +0 -1
- package/dist/domain/table/runtime/engines/linkage-engine.d.ts +2 -0
- package/dist/domain/table/runtime/engines/remote-sync-engine.d.ts +1 -1
- package/dist/domain/table/runtime/runtime-handlers.d.ts +11 -15
- package/dist/domain/table/runtime/table-runtime-context.d.ts +4 -4
- package/dist/domain/table/runtime/table-runtime-utils.d.ts +0 -8
- package/dist/domain/table/runtime/table-runtime.d.ts +1 -11
- package/dist/domain/table/types.d.ts +4 -53
- package/dist/index.es.js +174883 -141506
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +1 -12
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +0 -7
- package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +3 -5
- package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +18 -18
- package/dist/runtime/factories/createValidateFactory.d.ts +0 -2
- package/dist/runtime/factories/useFormValidator.d.ts +1 -9
- package/dist/runtime/interface/computed.d.ts +2 -14
- package/dist/runtime/interface/fetchers.d.ts +6 -28
- package/dist/runtime/interface/render.d.ts +24 -0
- package/dist/runtime/renderer/dialogs/signature/logic.d.ts +0 -2
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +0 -2
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/rdo-ref.d.ts +0 -17
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +2 -3
- package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +0 -3
- package/dist/sdk/doc-runtime/factories/runtime-json-builder.d.ts +2 -2
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +12 -1
- package/dist/sdk/engine/index.d.ts +2 -2
- package/dist/sdk/types/index.d.ts +1 -16
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +5 -7
- package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +1 -3
- package/dist/suites/edhr/panel-schema/index.d.ts +0 -8
- package/dist/{domain/table/business/material/material-balance/components/material-consume-modal.vue.d.ts → suites/edhr/panel-schema/warehouse-allocate-table/WarehouseAllocateTablePanel.vue.d.ts} +4 -2
- package/dist/suites/edhr/panel-schema/warehouse-inventory-table/WarehouseInventoryTablePanel.vue.d.ts +8 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/types.d.ts +0 -11
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +0 -2
- package/dist/types/material.type.d.ts +0 -10
- package/dist/utils/TriggerUtil.d.ts +1 -1
- package/dist/utils/composables/usePagesToPdf.d.ts +2 -2
- package/dist/utils/func/core.d.ts +0 -4
- package/dist/utils/func/form.d.ts +0 -8
- package/dist/word.css +3907 -4913
- package/package.json +4 -2
- package/dist/assets/svgs/toolkit/index.d.ts +0 -10
- package/dist/core/command/commands/SetWsecSize.d.ts +0 -10
- package/dist/core/data/enrichers/path-templates.d.ts +0 -2
- package/dist/core/data/enrichers/subtable-path.d.ts +0 -15
- package/dist/core/widget/e-sop-view.d.ts +0 -4
- package/dist/domain/field/index.d.ts +0 -1
- package/dist/domain/field/of-inst-num/index.d.ts +0 -1
- package/dist/domain/field/of-inst-num/of-inst-num-enricher.d.ts +0 -23
- package/dist/domain/table/business/material/material-balance/actions/fetch-material-consume-data.d.ts +0 -7
- package/dist/domain/table/business/material/material-balance/actions/index.d.ts +0 -3
- package/dist/domain/table/business/material/material-balance/actions/open-consume-modal.d.ts +0 -7
- package/dist/domain/table/business/material/material-balance/profile/field-keys.d.ts +0 -25
- package/dist/domain/table/business/material/material-balance/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/material/material-balance/runtime/register-handlers.d.ts +0 -1
- package/dist/domain/table/business/material/material-balance/runtime/use-consume-modal-cleanup.d.ts +0 -3
- package/dist/domain/table/business/material/material-consume/runtime/register-handlers.d.ts +0 -1
- package/dist/domain/table/business/material/material-consume/runtime/row-change-handlers.d.ts +0 -2
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -2
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +0 -7
- package/dist/domain/table/business/preprocess/pretreatment-list/index.d.ts +0 -2
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +0 -45
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/index.d.ts +0 -3
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +0 -1
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +0 -25
- package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
- package/dist/domain/table/business/shared/scan-action.d.ts +0 -25
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -2
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +0 -7
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/index.d.ts +0 -2
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -28
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.d.ts +0 -3
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/register-handlers.d.ts +0 -1
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +0 -5
- package/dist/domain/table/business/warehouse/warehouse-in-out/profile/field-keys.d.ts +0 -8
- package/dist/domain/table/runtime/row-change-utils.d.ts +0 -25
- package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +0 -36
- package/dist/runtime/designer/toolkit/svg/toolkit-svg-icon.vue.d.ts +0 -9
- package/dist/runtime/interface/context-defaults.d.ts +0 -9
- package/dist/runtime/renderer/dialogs/signature/validate-signature-config.d.ts +0 -5
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +0 -22
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/merge-select-source.d.ts +0 -10
- package/dist/suites/edhr/manifest/field/business/of-inst-num-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/logic/e-sop-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/logic/e-sop-version-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/material-container-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/production-container-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/shopfloor-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/sterilization-container-manifest.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/entrust-steril-batch-list-table/entrust-steril-batch-list-table.basic.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/material-balance-table/material-balance-table.basic.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/paper/modules/page-size-config.vue.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/paper/modules/signature-config.vue.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/paper/modules/table-setting-config.vue.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/pretreatment-list-table/pretreatment-list-table.basic.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/rule/RulePanel.vue.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +0 -6
- package/dist/suites/edhr/panel-schema/rule/components/field-map-row.vue.d.ts +0 -35
- package/dist/suites/edhr/panel-schema/rule/components/rule-item-card.vue.d.ts +0 -12
- package/dist/suites/edhr/panel-schema/rule/components/rule-section.vue.d.ts +0 -11
- package/dist/suites/edhr/panel-schema/rule/constants/builtin-field-maps.d.ts +0 -10
- package/dist/suites/edhr/panel-schema/rule/modals/open-rule-modal.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/rule/modals/unit-field-map-modal.vue.d.ts +0 -11
- package/dist/suites/edhr/panel-schema/rule/rule.basic.d.ts +0 -5
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -47
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -48
- package/dist/suites/edhr/panel-schema/rule/utils/rule-field-map.d.ts +0 -29
- package/dist/suites/edhr/panel-schema/rule/utils/uom-convert-rule.d.ts +0 -26
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +0 -15
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-node.vue.d.ts +0 -19
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +0 -26
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-utils.d.ts +0 -22
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/from-field-tree-utils.d.ts +0 -5
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/to-field-tree-utils.d.ts +0 -19
- package/dist/suites/shared/panel/modules/online-form-tmpl-module/online-form-tmpl-utils.d.ts +0 -3
package/README.md
CHANGED
|
@@ -221,7 +221,7 @@ if (!errors) {
|
|
|
221
221
|
当前包主入口为 `@gct-paas/word`,可直接使用以下能力:
|
|
222
222
|
|
|
223
223
|
- 初始化 API:`setupPlatformAdapters`、`setupVueRuntime`
|
|
224
|
-
- 引擎/类型:`useWord`、`DocModeTypeConst`、`
|
|
224
|
+
- 引擎/类型:`useWord`、`DocModeTypeConst`、`PageSizeEnumConst`、`BuiltinComponentTypeConst`、`WordRuntime`、`DocController` 等
|
|
225
225
|
- Vue 组件:`DocDesignLayout`、`DocRenderLayout`、`GctLayout`
|
|
226
226
|
- 插件能力:`registerSuite`、`WordSuitePlugin`、`edhrSuitePlugin`、`registerPanelSchemas`
|
|
227
227
|
|
|
@@ -18,8 +18,6 @@ export declare const TABLE_BUSINESS_SVG: {
|
|
|
18
18
|
readonly 'material-consume': string;
|
|
19
19
|
readonly 'material-balance': string;
|
|
20
20
|
readonly 'check-table': string;
|
|
21
|
-
readonly 'pretreatment-list': string;
|
|
22
|
-
readonly 'entrust-steril-batch-list': string;
|
|
23
21
|
};
|
|
24
22
|
/**
|
|
25
23
|
* Ribbon 下拉项 value → SVG URL
|
|
@@ -2,9 +2,7 @@ type __VLS_Props = {
|
|
|
2
2
|
label?: string;
|
|
3
3
|
inline?: boolean;
|
|
4
4
|
required?: boolean;
|
|
5
|
-
size?:
|
|
6
|
-
/** 是否取消与上一项之间的间距 */
|
|
7
|
-
disableSpacing?: boolean;
|
|
5
|
+
size?: string;
|
|
8
6
|
};
|
|
9
7
|
declare function __VLS_template(): {
|
|
10
8
|
attrs: Partial<{}>;
|
|
@@ -19,9 +17,8 @@ declare function __VLS_template(): {
|
|
|
19
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
18
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
19
|
required: boolean;
|
|
22
|
-
size:
|
|
20
|
+
size: string;
|
|
23
21
|
inline: boolean;
|
|
24
|
-
disableSpacing: boolean;
|
|
25
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
24
|
export default _default;
|
|
@@ -14,8 +14,6 @@ declare const _default: import('vue').DefineComponent<IModalProps, {}, {}, {}, {
|
|
|
14
14
|
confirmText: string;
|
|
15
15
|
confirmContinueText: string;
|
|
16
16
|
cancelText: string;
|
|
17
|
-
draggable: boolean;
|
|
18
|
-
showMask: boolean;
|
|
19
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
18
|
bodyRef: unknown;
|
|
21
19
|
}, any>;
|
|
@@ -24,10 +24,6 @@ export interface IModalOptions {
|
|
|
24
24
|
confirmText?: string;
|
|
25
25
|
confirmContinueText?: string;
|
|
26
26
|
cancelText?: string;
|
|
27
|
-
/** 是否可拖拽移动 */
|
|
28
|
-
draggable?: boolean;
|
|
29
|
-
/** 是否显示遮罩,draggable 时默认 false */
|
|
30
|
-
showMask?: boolean;
|
|
31
27
|
onConfirm?: (ins: IModalInstance) => Promise<void> | void;
|
|
32
28
|
onConfirmContinue?: (ins: IModalInstance) => Promise<void> | void;
|
|
33
29
|
onCancel?: (ins: IModalInstance) => Promise<void> | void;
|
|
@@ -22,10 +22,6 @@ type __VLS_Props = {
|
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
/** 不显示右侧箭头 */
|
|
24
24
|
noArrow?: boolean;
|
|
25
|
-
/** 是否允许清除 */
|
|
26
|
-
allowClear?: boolean;
|
|
27
|
-
/** 弹窗选择模式:编辑态外观,点击不展开下拉 */
|
|
28
|
-
picker?: boolean;
|
|
29
25
|
/** 是否需要分组展示 */
|
|
30
26
|
grouped?: boolean;
|
|
31
27
|
};
|
|
@@ -73,7 +69,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
73
69
|
disabled: boolean;
|
|
74
70
|
options: DropdownOption[];
|
|
75
71
|
placeholder: string;
|
|
76
|
-
allowClear: boolean;
|
|
77
72
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
78
73
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
79
74
|
P: {};
|
|
@@ -16,7 +16,13 @@ export interface ImageSizeOptions {
|
|
|
16
16
|
* 根据图片原始尺寸 + 配置,计算最终显示尺寸
|
|
17
17
|
*/
|
|
18
18
|
export declare function computeImageDisplaySize(natural: ImageSize, opts?: ImageSizeOptions): ImageSize;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare function
|
|
19
|
+
/**
|
|
20
|
+
* 在目标框内等比缩放(contain),不压缩、不拉伸
|
|
21
|
+
*/
|
|
22
|
+
export declare function computeContainDisplaySize(natural: ImageSize, box: ImageSize): ImageSize;
|
|
23
|
+
/**
|
|
24
|
+
* 创建无图签名兜底图(用户名 + 电子签名 + 验证日期)
|
|
25
|
+
* 按字段宽高绘制,显示框设多大,字就按多大排
|
|
26
|
+
*/
|
|
27
|
+
export declare function createSignatureImageDataUrl(name: string, width?: number, height?: number, time?: number | string): string;
|
|
28
|
+
export declare function createSignatureImage(name: string, width?: number, height?: number, time?: number | string): Promise<HTMLImageElement>;
|
|
@@ -4,7 +4,6 @@ import { WidgetMeta } from '../widget/widget-meta';
|
|
|
4
4
|
import { WordHighlight } from '../model/types';
|
|
5
5
|
import { PointerHitResult } from '../cursor/hit/types';
|
|
6
6
|
import { SubTableLayoutType, SubTableRegionType } from '../model/document/wtcRegionRef';
|
|
7
|
-
import { PaperSize } from '../constants';
|
|
8
7
|
export interface CursorMeta {
|
|
9
8
|
nodeId: string;
|
|
10
9
|
offset: number;
|
|
@@ -28,7 +27,6 @@ export interface ICommand<T extends CommandType = CommandType> {
|
|
|
28
27
|
}
|
|
29
28
|
export type CommandConstructor = new (doc: Doc, payload?: any) => ICommand<any>;
|
|
30
29
|
export declare const CommandType: {
|
|
31
|
-
readonly setWsecSize: "setWsecSize";
|
|
32
30
|
readonly setOrient: "setOrient";
|
|
33
31
|
readonly setPadding: "setPadding";
|
|
34
32
|
readonly setHeaderFooterConfig: "setHeaderFooterConfig";
|
|
@@ -114,19 +112,13 @@ export type CommandPayloadMap = {
|
|
|
114
112
|
delete: CommandPayload & Record<string, never>;
|
|
115
113
|
backspace: CommandPayload & Record<string, never>;
|
|
116
114
|
enter: CommandPayload & Record<string, never>;
|
|
117
|
-
setWsecSize: CommandPayload & {
|
|
118
|
-
paperSize: PaperSize;
|
|
119
|
-
twipWidth: number;
|
|
120
|
-
twipHeight: number;
|
|
121
|
-
secRefId: string;
|
|
122
|
-
};
|
|
123
115
|
setOrient: CommandPayload & {
|
|
124
116
|
orient: VOrientationType;
|
|
125
|
-
|
|
117
|
+
serRefId: string;
|
|
126
118
|
};
|
|
127
119
|
setPadding: CommandPayload & {
|
|
128
120
|
padding: [number, number, number, number];
|
|
129
|
-
|
|
121
|
+
serRefId: string;
|
|
130
122
|
};
|
|
131
123
|
setHeaderFooterConfig: CommandPayload & {
|
|
132
124
|
headerMargin?: number;
|
|
@@ -36,7 +36,7 @@ export declare const DocModeTypeConst: {
|
|
|
36
36
|
};
|
|
37
37
|
export type DocModeType = ValueOf<typeof DocModeTypeConst>;
|
|
38
38
|
/** 纸张大小 */
|
|
39
|
-
export declare const
|
|
39
|
+
export declare const PageSizeEnumConst: {
|
|
40
40
|
/** A3 */
|
|
41
41
|
readonly A3: "A3";
|
|
42
42
|
/** A4 */
|
|
@@ -46,16 +46,13 @@ export declare const PaperSizeConst: {
|
|
|
46
46
|
/** 自定义 */
|
|
47
47
|
readonly CUSTOM: "CUSTOM";
|
|
48
48
|
};
|
|
49
|
-
export type PaperSize = ValueOf<typeof PaperSizeConst>;
|
|
50
|
-
export type StandardPaperSize = Exclude<PaperSize, 'CUSTOM'>;
|
|
51
|
-
export interface IPaperInfo {
|
|
52
|
-
paperSize: PaperSize;
|
|
53
|
-
mmWidth: number;
|
|
54
|
-
mmHeight: number;
|
|
55
|
-
}
|
|
56
49
|
/** 纸张大小 单位: mm */
|
|
57
|
-
export declare const
|
|
58
|
-
|
|
50
|
+
export declare const PageSize2FormatOpt: {
|
|
51
|
+
A3: number[];
|
|
52
|
+
A4: number[];
|
|
53
|
+
A5: number[];
|
|
54
|
+
};
|
|
55
|
+
export type PageSizeEnum = ValueOf<typeof PageSizeEnumConst>;
|
|
59
56
|
export declare const DEFAULT_PAGE_SIZE: {
|
|
60
57
|
width: number;
|
|
61
58
|
height: number;
|
|
@@ -26,20 +26,3 @@ export declare function shouldIncludeSubmitField(key: string, value: unknown): b
|
|
|
26
26
|
export declare function pickSubmitFields(record: Record<string, unknown>): Record<string, unknown>;
|
|
27
27
|
/** 剔除顶层不参与提交的 key */
|
|
28
28
|
export declare function omitSubmitExcludedTopLevel<T extends Record<string, unknown>>(data: T): Partial<T>;
|
|
29
|
-
interface BuildClearUpdatesOptions {
|
|
30
|
-
/** 字段清空值,默认 null */
|
|
31
|
-
clearValue?: unknown;
|
|
32
|
-
}
|
|
33
|
-
/** 构建相对字段键的清空更新 */
|
|
34
|
-
export declare function buildClearUpdates(rowPath: string, fields: readonly string[], options?: BuildClearUpdatesOptions): Record<string, unknown>;
|
|
35
|
-
interface BuildFieldSelectUpdatesOptions {
|
|
36
|
-
/** 是否写入 companion id(下拉选中时) */
|
|
37
|
-
persistOptionId?: boolean;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* 构建字段选中/清空更新:
|
|
41
|
-
* - 选中:写 value + 可选 companion id
|
|
42
|
-
* - 清空:仅写 value,companion 由 enricher 负责清空
|
|
43
|
-
*/
|
|
44
|
-
export declare function buildFieldSelectUpdates(valuePath: string, value: unknown, optionId?: unknown, options?: BuildFieldSelectUpdatesOptions): Record<string, unknown>;
|
|
45
|
-
export {};
|
|
@@ -16,6 +16,10 @@ export declare function resolveEnricherWidgetProps(instance: {
|
|
|
16
16
|
}): Record<string, unknown>;
|
|
17
17
|
/** 根据文档 widget 列表构建全部 enricher 注册项 */
|
|
18
18
|
export declare function buildFieldEnricherRegistrations(instances: any[], ctx: PostChangePipelineContext, doc: Doc): DataEnricherRegistration[];
|
|
19
|
+
/**
|
|
20
|
+
* 将设计/初始化路径模板展开为运行时具体路径(含 [n] / [n_y][n_x])
|
|
21
|
+
*/
|
|
22
|
+
export declare function expandInitPathTemplates(templatePath: string, rawData: Record<string, any>): string[];
|
|
19
23
|
/**
|
|
20
24
|
* 收集 init / 换数后需要跑 hydrate 的运行时路径(仅 rawData 中已有值的字段)
|
|
21
25
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EmitSource } from './emit-source';
|
|
2
|
-
export type PipelineLogNS = 'data.emit' | 'pipeline.hydrate' | 'pipeline.onChange' | 'pipeline.
|
|
2
|
+
export type PipelineLogNS = 'data.emit' | 'pipeline.hydrate' | 'pipeline.onChange' | 'pipeline.deps' | 'enricher.label' | 'enricher.hyperlink' | 'enricher.id' | 'pipeline.afterFlush' | 'table.runtime' | 'init.lifecycle' | 'submit.prepare';
|
|
3
3
|
export type PipelineLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
4
4
|
export interface PipelineLogEvent {
|
|
5
5
|
ns: PipelineLogNS;
|
|
@@ -41,11 +41,6 @@ export declare class PostChangePipeline {
|
|
|
41
41
|
rebuildRegistrations(): void;
|
|
42
42
|
/** 装载/换数后:deps + enrichers,不触发业务副作用 */
|
|
43
43
|
hydrate(paths: string[]): Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* 业务级联清空等 enrichment 写入后,补跑 value 字段的 companion enricher。
|
|
46
|
-
* enrichment 批次刻意不进 changedMap,以免触发 rowHandlers / linkage;但 companion 仍需同步清空。
|
|
47
|
-
*/
|
|
48
|
-
enrichCompanionFields(changedMap: FieldChangeMap): Promise<void>;
|
|
49
44
|
/** 字段变更:deps + enrichers;仅 user 批次触发 afterFlush */
|
|
50
45
|
onChange(changedMap: FieldChangeMap, options?: {
|
|
51
46
|
runBusinessSideEffects?: boolean;
|
|
@@ -11,7 +11,6 @@ export declare class InteractionHandler implements IEventHandler {
|
|
|
11
11
|
private handleChangeHoverModelId;
|
|
12
12
|
private handleFocusWidget;
|
|
13
13
|
private handleShowValidationComment;
|
|
14
|
-
private handleShowRangeHighlight;
|
|
15
14
|
private handleFocusValidation;
|
|
16
15
|
private handleChangeHeader2footerBool;
|
|
17
16
|
private handleSetAnnotation;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { validateTextWidgetMarker } from './layout/logic/LayoutBuilder';
|
|
|
9
9
|
export { CommandType } from './command/types';
|
|
10
10
|
export { ModelConverter } from './model';
|
|
11
11
|
export { DocumentEventBridge } from './event/DocumentEventBridge';
|
|
12
|
-
export { DocModeTypeConst,
|
|
12
|
+
export { DocModeTypeConst, PageSizeEnumConst, BuiltinComponentTypeConst } from './constants';
|
|
13
13
|
export { default as CursorOverlay } from './cursor/render/cursor-overlay.vue';
|
|
14
14
|
export { default as HiddenInput } from './cursor/render/hidden-input.vue';
|
|
15
15
|
export type { DocInitOptions } from './view/Doc';
|
|
@@ -41,11 +41,6 @@ export declare class InteractionController {
|
|
|
41
41
|
fieldValue: any;
|
|
42
42
|
message: string;
|
|
43
43
|
}[]> | null): void;
|
|
44
|
-
onShowRangeHighlight(payload: Record<string, {
|
|
45
|
-
field: string;
|
|
46
|
-
fieldValue: any;
|
|
47
|
-
message: string;
|
|
48
|
-
}[]> | null): void;
|
|
49
44
|
onFocusValidation(payload: string): void;
|
|
50
45
|
onContextMenu(payload: ContextMenuParams & {
|
|
51
46
|
contextMenuRef: any;
|
|
@@ -23,21 +23,12 @@ export type InteractionState = {
|
|
|
23
23
|
panelData: ActivePanelData | null;
|
|
24
24
|
/** 引用字段配置定位(与 panel:attach-field 配合) */
|
|
25
25
|
attachFieldTarget: AttachFieldTarget | null;
|
|
26
|
-
/**
|
|
26
|
+
/** 字段校验批注信息集合 */
|
|
27
27
|
validationCommentMap: Record<string, Array<{
|
|
28
28
|
field: string;
|
|
29
29
|
fieldValue: any;
|
|
30
30
|
message: string;
|
|
31
31
|
}>> | null;
|
|
32
|
-
/**
|
|
33
|
-
* 禁用/只读字段上下限标红(仅展示,不进校验清单、不挡提交)
|
|
34
|
-
* 与 validationCommentMap 分离,避免提交全量替换时冲掉标红
|
|
35
|
-
*/
|
|
36
|
-
rangeHighlightMap: Record<string, Array<{
|
|
37
|
-
field: string;
|
|
38
|
-
fieldValue: any;
|
|
39
|
-
message: string;
|
|
40
|
-
}>> | null;
|
|
41
32
|
/** 当前 focus 的字段校验批注信息 */
|
|
42
33
|
focusValidation: string | '';
|
|
43
34
|
/** 页眉页脚配置开关 */
|
|
@@ -46,13 +46,6 @@ export declare function useInteraction(docRef: Ref<Doc | null>): {
|
|
|
46
46
|
readonly message: string;
|
|
47
47
|
}[];
|
|
48
48
|
} | null | undefined;
|
|
49
|
-
readonly rangeHighlightMap?: {
|
|
50
|
-
readonly [x: string]: readonly {
|
|
51
|
-
readonly field: string;
|
|
52
|
-
readonly fieldValue: any;
|
|
53
|
-
readonly message: string;
|
|
54
|
-
}[];
|
|
55
|
-
} | null | undefined;
|
|
56
49
|
readonly focusValidation?: string | undefined;
|
|
57
50
|
readonly isHeaderFooterEdit?: boolean | undefined;
|
|
58
51
|
readonly annotationIds?: readonly string[] | null | undefined;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { RawElement } from '../types/raw';
|
|
2
2
|
import { ModelNode, RefManager, ModelNodeOptions, SimpleRef, SlotRef } from '../base';
|
|
3
|
-
import { PaperSize } from '../../constants';
|
|
4
3
|
export type HeaderFooterKind = 'header' | 'footer';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
5
|
+
* 页面大小配置
|
|
7
6
|
*/
|
|
8
7
|
export interface PageSize {
|
|
9
8
|
width?: number;
|
|
@@ -46,7 +45,6 @@ export declare class WsecPr extends ModelNode {
|
|
|
46
45
|
/** 节点类型 */
|
|
47
46
|
type: "element";
|
|
48
47
|
raw: RawElement;
|
|
49
|
-
paperSize?: PaperSize;
|
|
50
48
|
pageSize?: PageSize;
|
|
51
49
|
margins?: PageMargins;
|
|
52
50
|
columns?: Columns;
|
|
@@ -62,7 +60,6 @@ export declare class WsecPr extends ModelNode {
|
|
|
62
60
|
fromParagraph: boolean;
|
|
63
61
|
constructor(options: ModelNodeOptions & {
|
|
64
62
|
raw: RawElement;
|
|
65
|
-
paperSize?: PaperSize;
|
|
66
63
|
pageSize?: PageSize;
|
|
67
64
|
margins?: PageMargins;
|
|
68
65
|
columns?: Columns;
|
|
@@ -122,16 +119,6 @@ export declare class WsecPr extends ModelNode {
|
|
|
122
119
|
* 重新计算浮层引用,并写回 raw
|
|
123
120
|
*/
|
|
124
121
|
normalizeOverlayRefs(refs: string[], secIds: string[]): void;
|
|
125
|
-
getWsecSize(): {
|
|
126
|
-
paperSize: PaperSize | undefined;
|
|
127
|
-
twipWidth: number | undefined;
|
|
128
|
-
twipHeight: number | undefined;
|
|
129
|
-
};
|
|
130
|
-
setWsecSize(option: {
|
|
131
|
-
paperSize: PaperSize;
|
|
132
|
-
twipWidth: number;
|
|
133
|
-
twipHeight: number;
|
|
134
|
-
}): void;
|
|
135
122
|
/**
|
|
136
123
|
* 获取当前页面方向
|
|
137
124
|
* @returns 'portrait' | 'landscape' | null
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* 出入库明细等复用 repeating 存储,layout 层通过 widgetMeta.props.layoutType 区分。
|
|
20
20
|
*/
|
|
21
|
-
export type SubTableRegionType = 'repeating' | 'bounded' | '2d-table' | 'check-table' | 'material-consume-table';
|
|
21
|
+
export type SubTableRegionType = 'repeating' | 'bounded' | '2d-table' | 'check-table' | 'material-consume-table' | 'warehouse-allocate-table';
|
|
22
22
|
/** 表头 region 类型 */
|
|
23
23
|
export type TableHeaderRegionType = 'table-header' | 'sub-table-header';
|
|
24
24
|
/** 所有子表表格 region 类型 */
|
|
@@ -29,7 +29,7 @@ export declare const SUB_TABLE_REGION_TYPES: readonly ["repeating", "bounded", "
|
|
|
29
29
|
* 子表 layout 类型
|
|
30
30
|
* Ribbon 面板、子表主题色均使用此类型;主题配置见 @/domain/table 各 Profile.theme
|
|
31
31
|
*/
|
|
32
|
-
export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | '
|
|
32
|
+
export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'warehouse-allocate-table';
|
|
33
33
|
/** 表头 layout 类型 */
|
|
34
34
|
export type TableHeaderLayoutType = 'table-header';
|
|
35
35
|
/** 所有子表表格 layout 类型 */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Wtbl } from '../../../document';
|
|
2
2
|
import { Region, RegionOptions } from '../../base/Region';
|
|
3
3
|
import { RegionJson } from '../../../types';
|
|
4
|
-
import { SubTableLayoutType } from '../../../document/wtcRegionRef';
|
|
5
4
|
export type MaterialConsumeTableWidgetPropsMeta = {
|
|
6
5
|
table_key_: string;
|
|
7
6
|
barcode_parsing_rules_id_?: string;
|
|
@@ -33,8 +32,6 @@ export declare class MaterialConsumeTableRegion extends Region {
|
|
|
33
32
|
get linkFieldKey(): string;
|
|
34
33
|
get subValuePath(): string;
|
|
35
34
|
get linkValuePath(): string;
|
|
36
|
-
/** 设计/渲染层子表类型 */
|
|
37
|
-
get layoutType(): SubTableLayoutType;
|
|
38
35
|
toJSON(): MaterialConsumeTableRegionJson;
|
|
39
36
|
static fromJSON(json: MaterialConsumeTableRegionJson, table: Wtbl): MaterialConsumeTableRegion;
|
|
40
37
|
}
|
|
@@ -12,16 +12,6 @@ export type DynamicTableProps = RepeatingWidgetPropsBase & {
|
|
|
12
12
|
export type WarehouseInOutTableProps = RepeatingWidgetPropsBase & {
|
|
13
13
|
layoutType: 'warehouse-in-out-table';
|
|
14
14
|
};
|
|
15
|
-
export type EntrustSterilBatchListTableProps = RepeatingWidgetPropsBase & {
|
|
16
|
-
layoutType: 'entrust-steril-batch-list-table';
|
|
17
|
-
/** 条码解析规则 */
|
|
18
|
-
barcode_parsing_rules_id_?: string;
|
|
19
|
-
};
|
|
20
|
-
export type PretreatmentListTableProps = RepeatingWidgetPropsBase & {
|
|
21
|
-
layoutType: 'pretreatment-list-table';
|
|
22
|
-
/** 条码解析规则 */
|
|
23
|
-
barcode_parsing_rules_id_?: string;
|
|
24
|
-
};
|
|
25
15
|
export type WarehouseInventoryTableProps = RepeatingWidgetPropsBase & {
|
|
26
16
|
layoutType: 'warehouse-inventory-table';
|
|
27
17
|
/** 库存自动加载 */
|
|
@@ -29,14 +19,11 @@ export type WarehouseInventoryTableProps = RepeatingWidgetPropsBase & {
|
|
|
29
19
|
/** 条码解析规则 */
|
|
30
20
|
barcode_parsing_rules_id_?: string;
|
|
31
21
|
};
|
|
32
|
-
export type MaterialBalanceTableProps = RepeatingWidgetPropsBase & {
|
|
33
|
-
layoutType: 'material-balance-table';
|
|
34
|
-
};
|
|
35
22
|
export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
|
|
36
23
|
layoutType: 'warehouse-allocate-table';
|
|
37
24
|
barcode_parsing_rules_id_?: string;
|
|
38
25
|
};
|
|
39
|
-
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | WarehouseAllocateTableProps
|
|
26
|
+
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | WarehouseAllocateTableProps;
|
|
40
27
|
export type RepeatingWidgetMeta = {
|
|
41
28
|
props: RepeatingWidgetPropsMeta;
|
|
42
29
|
};
|
|
@@ -30,14 +30,12 @@ export declare class UnitConverter {
|
|
|
30
30
|
* @returns cm
|
|
31
31
|
*/
|
|
32
32
|
static twipToCm(twip: number): number;
|
|
33
|
-
static twipToMm(twip: number): number;
|
|
34
33
|
/**
|
|
35
34
|
* 将 cm 转换为twips
|
|
36
35
|
* @param cm cm 值
|
|
37
36
|
* @returns Twips 值
|
|
38
37
|
*/
|
|
39
38
|
static cmToTwip(cm: number): number;
|
|
40
|
-
static mmToTwip(mm: number): number;
|
|
41
39
|
/**
|
|
42
40
|
* 将像素转换为 twips
|
|
43
41
|
* @param pixel 像素值
|
package/dist/core/view/Doc.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { InteractionManager } from '../interaction/InteractionManager';
|
|
|
10
10
|
import { DocModeType } from '../constants';
|
|
11
11
|
import { CommandPayloadMap, RequiredPayloadCommands, OptionalPayloadCommands } from '../command/types';
|
|
12
12
|
import { DocModel } from '../model';
|
|
13
|
-
import { DocRuntimeMeta, FieldModelQuery
|
|
13
|
+
import { DocRuntimeMeta, FieldModelQuery } from '../../sdk/types';
|
|
14
14
|
export interface DocInitOptions {
|
|
15
15
|
mode?: DocModeType;
|
|
16
16
|
model?: DocModel;
|
|
@@ -22,8 +22,6 @@ export interface DocInitOptions {
|
|
|
22
22
|
btnRenderModeType: DocModeType;
|
|
23
23
|
formType: string;
|
|
24
24
|
paramsConfig: Record<string, any>;
|
|
25
|
-
/** 设备配置信息 */
|
|
26
|
-
deviceConfig?: IDeviceConfig;
|
|
27
25
|
pageSize?: {
|
|
28
26
|
width: number;
|
|
29
27
|
height: number;
|
|
@@ -67,8 +65,6 @@ export declare class Doc {
|
|
|
67
65
|
docRuntimeMeta: DocRuntimeMeta;
|
|
68
66
|
/** 外部的参数配置 */
|
|
69
67
|
paramsConfig: Record<string, any>;
|
|
70
|
-
/** 设备配置信息 */
|
|
71
|
-
deviceConfig?: IDeviceConfig;
|
|
72
68
|
/** 字段/模型查询(由上层注入 `SuiteRuntime` 等实现) */
|
|
73
69
|
fieldModelQuery: FieldModelQuery;
|
|
74
70
|
/** 安全距离-上下 */
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { PageMargins, WsecPr } from '../model/document';
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
* 单位: px
|
|
5
|
-
*/
|
|
6
|
-
export interface SectionPageSize {
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
}
|
|
2
|
+
import { PageSizeEnum } from '../constants';
|
|
10
3
|
export type SectionOption = {
|
|
11
|
-
pageSize?:
|
|
4
|
+
pageSize?: {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
};
|
|
12
8
|
pagePadding?: [number, number, number, number];
|
|
13
9
|
bgColor?: string;
|
|
14
10
|
refId: string;
|
|
@@ -59,13 +55,8 @@ export declare class Section {
|
|
|
59
55
|
getContentHeight(): number;
|
|
60
56
|
/** 获取当前页面方向 */
|
|
61
57
|
getOrient(): 'portrait' | 'landscape';
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
paperSize: PaperSize;
|
|
65
|
-
twipWidth?: number | undefined;
|
|
66
|
-
twipHeight?: number | undefined;
|
|
67
|
-
};
|
|
68
|
-
getPaperSize(): PaperSize;
|
|
58
|
+
getPageSizeType(): PageSizeEnum;
|
|
59
|
+
getPageSizeFormat(): [number, number];
|
|
69
60
|
/**
|
|
70
61
|
* 获取页面尺寸信息(用于调试)
|
|
71
62
|
* @returns 格式化的页面信息
|
|
@@ -10,6 +10,8 @@ export interface IImageWidget extends IImageRun {
|
|
|
10
10
|
/** 组件元数据 */
|
|
11
11
|
widgetMeta?: WidgetMeta;
|
|
12
12
|
signature?: string;
|
|
13
|
+
/** 无图签名时的验证时间 */
|
|
14
|
+
signTime?: number;
|
|
13
15
|
pageWidgetMeta?: Record<string, any>;
|
|
14
16
|
dataSlotIndex?: DataSlotIndex;
|
|
15
17
|
}
|
|
@@ -19,6 +21,7 @@ export interface ImageWidgetOptions extends ImageRunOptions {
|
|
|
19
21
|
/** 组件元数据 */
|
|
20
22
|
widgetMeta?: WidgetMeta;
|
|
21
23
|
signature?: string;
|
|
24
|
+
signTime?: number;
|
|
22
25
|
pageWidgetMeta?: IImageWidget['pageWidgetMeta'];
|
|
23
26
|
dataSlotIndex?: DataSlotIndex;
|
|
24
27
|
}
|
|
@@ -30,6 +33,7 @@ export declare class ImageWidget extends ImageRun implements IImageWidget {
|
|
|
30
33
|
valuePath?: string;
|
|
31
34
|
widgetMeta?: WidgetMeta;
|
|
32
35
|
signature?: string;
|
|
36
|
+
signTime?: number;
|
|
33
37
|
pageWidgetMeta?: IImageWidget['pageWidgetMeta'];
|
|
34
38
|
dataSlotIndex?: DataSlotIndex;
|
|
35
39
|
constructor(options: ImageWidgetOptions);
|
|
@@ -4,32 +4,22 @@ export type PanelType =
|
|
|
4
4
|
'panel:paper'
|
|
5
5
|
/** 页眉页脚 */
|
|
6
6
|
| 'panel:paper-header-footer'
|
|
7
|
-
/** 配置 */
|
|
8
|
-
| 'panel:config'
|
|
9
|
-
/** 脚本 */
|
|
10
|
-
| 'panel:script'
|
|
11
7
|
/** 数据初始化 */
|
|
12
8
|
| 'panel:data-init'
|
|
13
|
-
/**
|
|
14
|
-
| 'panel:
|
|
9
|
+
/** 数据加载 */
|
|
10
|
+
| 'panel:data-load'
|
|
15
11
|
/** 动态表 */
|
|
16
12
|
| 'panel:dynamic-table'
|
|
17
13
|
/** 出入库明细表 */
|
|
18
14
|
| 'panel:warehouse-in-out-table'
|
|
19
15
|
/** 库存盘点表 */
|
|
20
16
|
| 'panel:warehouse-inventory-table'
|
|
21
|
-
/** 物料平衡表 */
|
|
22
|
-
| 'panel:material-balance-table'
|
|
23
17
|
/** 库存调拨表 */
|
|
24
18
|
| 'panel:warehouse-allocate-table'
|
|
25
19
|
/** 二维表 */
|
|
26
20
|
| 'panel:2d-table'
|
|
27
21
|
/** 物料消耗表 */
|
|
28
22
|
| 'panel:material-consume-table'
|
|
29
|
-
/** 委托灭菌批次表 */
|
|
30
|
-
| 'panel:entrust-steril-batch-list-table'
|
|
31
|
-
/** 预处理表 */
|
|
32
|
-
| 'panel:pretreatment-list-table'
|
|
33
23
|
/** 固定表 */
|
|
34
24
|
| 'panel:fixed-table'
|
|
35
25
|
/** 检验表 */
|
|
@@ -42,13 +42,4 @@ export declare const FieldStateColors: {
|
|
|
42
42
|
readonly disabledText: "#c9c9c9";
|
|
43
43
|
readonly disabledLine: "#c9c9c9";
|
|
44
44
|
readonly disabledFill: "rgba(0, 0, 0, 0.04)";
|
|
45
|
-
/** 校验失败(超上下限等) */
|
|
46
|
-
readonly validationErrorText: "#ff4d4f";
|
|
47
|
-
readonly validationErrorLine: "#ff4d4f";
|
|
48
|
-
readonly validationErrorBg: "#fff2f2";
|
|
49
|
-
/** 禁用态校验失败 */
|
|
50
|
-
readonly validationErrorDisabledText: "#ff7072";
|
|
51
|
-
readonly validationErrorDisabledLine: "#ff8a8c";
|
|
52
|
-
readonly validationErrorDisabledBg: "#f5f5f5";
|
|
53
|
-
readonly validationErrorDisabledBgActive: "#f0f0f0";
|
|
54
45
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** 字段配置-渲染组件标识 */
|
|
2
|
-
export type FieldPropsSchemaKey = 'schema:field-text' | 'schema:field-boolean' | 'schema:field-number' | 'schema:field-datetime' | 'schema:field-user' | 'schema:field-org' | 'schema:field-sign' | 'schema:field-enum' | 'schema:field-file' | 'schema:field-image' | 'schema:field-trace' | 'schema:field-business' | 'schema:field-ref'
|
|
2
|
+
export type FieldPropsSchemaKey = 'schema:field-text' | 'schema:field-boolean' | 'schema:field-number' | 'schema:field-datetime' | 'schema:field-user' | 'schema:field-org' | 'schema:field-sign' | 'schema:field-enum' | 'schema:field-file' | 'schema:field-image' | 'schema:field-trace' | 'schema:field-business' | 'schema:field-ref';
|
|
3
3
|
/** 优先级规则 */
|
|
4
4
|
export interface PriorityRule {
|
|
5
5
|
type: 'priority';
|
|
@@ -39,7 +39,7 @@ export interface JoinRule {
|
|
|
39
39
|
export interface ApiRule {
|
|
40
40
|
type: 'api';
|
|
41
41
|
/** 请求函数 key */
|
|
42
|
-
fetcher: 'ref' | 'rdo2ref';
|
|
42
|
+
fetcher: 'ref' | 'rdo2ref' | 'ref2lot2sn';
|
|
43
43
|
/** 仅主模型字段可发起请求 */
|
|
44
44
|
onlyMainModelFieldsCanRequest: boolean;
|
|
45
45
|
/** 失败时的默认 label */
|
|
@@ -212,10 +212,6 @@ export declare enum FIELD_TYPE {
|
|
|
212
212
|
* 工单号
|
|
213
213
|
*/
|
|
214
214
|
MFG_ORDER = "mfg_order",
|
|
215
|
-
/**
|
|
216
|
-
* 车间
|
|
217
|
-
*/
|
|
218
|
-
SHOPFLOOR = "shopfloor",
|
|
219
215
|
/**
|
|
220
216
|
* 记录单号
|
|
221
217
|
*/
|
|
@@ -359,29 +355,5 @@ export declare enum FIELD_TYPE {
|
|
|
359
355
|
/**
|
|
360
356
|
* 需求数量
|
|
361
357
|
*/
|
|
362
|
-
QTY_REQUIRED = "qty_required"
|
|
363
|
-
/**
|
|
364
|
-
* E-SOP
|
|
365
|
-
*/
|
|
366
|
-
E_SOP = "e_sop",
|
|
367
|
-
/**
|
|
368
|
-
* E-SOP版本
|
|
369
|
-
*/
|
|
370
|
-
E_SOP_VERSION = "e_sop_version",
|
|
371
|
-
/**
|
|
372
|
-
* 实例数
|
|
373
|
-
*/
|
|
374
|
-
OF_INST_NUM = "of_inst_num",
|
|
375
|
-
/**
|
|
376
|
-
* 生产批次号
|
|
377
|
-
*/
|
|
378
|
-
PRODUCTION_CONTAINER = "production_container",
|
|
379
|
-
/**
|
|
380
|
-
* 物料批(追溯)
|
|
381
|
-
*/
|
|
382
|
-
MATERIAL_CONTAINER = "material_container",
|
|
383
|
-
/**
|
|
384
|
-
* 灭菌批(追溯)
|
|
385
|
-
*/
|
|
386
|
-
STERILIZATION_CONTAINER = "sterilization_container"
|
|
358
|
+
QTY_REQUIRED = "qty_required"
|
|
387
359
|
}
|