@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,15 @@
|
|
|
1
|
+
interface FormulaParam {
|
|
2
|
+
customFieldKey: string;
|
|
3
|
+
lowerLimit?: number | string | null;
|
|
4
|
+
upperLimit?: number | string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const currentParamsConfig: {
|
|
7
|
+
readonly routingParamList: FormulaParam[];
|
|
8
|
+
readonly inspectionParamList: FormulaParam[];
|
|
9
|
+
readonly deviceParamList: FormulaParam[];
|
|
10
|
+
};
|
|
11
|
+
/** Excel、Word 共用参数;空配置也要覆盖旧值。 */
|
|
12
|
+
export declare function setFormulaParamsConfig(paramsConfig?: Record<string, any> | null): void;
|
|
13
|
+
/** 随应用绑定一次失效通知,不包装或替换宿主计算函数。 */
|
|
14
|
+
export declare function bindFormulaCacheInvalidation(value: unknown): void;
|
|
15
|
+
export {};
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 独立运行时功能施加的字段约束。
|
|
3
|
+
*
|
|
4
|
+
* 多个来源互不覆盖,最终状态按“任一来源为 true”聚合。
|
|
5
|
+
*/
|
|
6
|
+
export type FieldRuntimeConstraint = {
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
1
10
|
/** 组件依赖按 runtime valuePath 写入的运行时配置(子表各行独立) */
|
|
2
11
|
export type FieldRuntimeSpecificConfig = {
|
|
3
12
|
newReadonly?: boolean;
|
|
4
13
|
newRequired?: boolean;
|
|
5
14
|
newDisabled?: boolean;
|
|
15
|
+
/** 按功能来源隔离的强制约束,避免解除某项约束时覆盖其他运行时规则 */
|
|
16
|
+
runtimeConstraints?: Record<string, FieldRuntimeConstraint>;
|
|
6
17
|
/** assignment 策略「始终覆盖」时按行不可输入 */
|
|
7
18
|
cannotInput?: boolean;
|
|
8
19
|
/** 实例数字段:用户手填后不再被 API 回填覆盖 */
|
|
9
20
|
ofInstNumUserEdited?: boolean;
|
|
21
|
+
/** 检验数量字段:用户手填(含清空)后不再被 API 回填覆盖 */
|
|
22
|
+
inspectionModuleQtyUserEdited?: boolean;
|
|
10
23
|
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ 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 { DocumentRuntimeManager } from './runtime/DocumentRuntimeManager';
|
|
13
|
+
export type { DocumentRuntimeExtension, DocumentValidationContext, DocumentValidationDecision, } from './runtime/DocumentRuntimeManager';
|
|
12
14
|
export { DocModeTypeConst, PaperSizeConst, BuiltinComponentTypeConst } from './constants';
|
|
13
15
|
export { default as CursorOverlay } from './cursor/render/cursor-overlay.vue';
|
|
14
16
|
export { default as HiddenInput } from './cursor/render/hidden-input.vue';
|
|
@@ -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' | 'material-balance-table' | 'material-requisition-table' | 'warehouse-in-table' | 'warehouse-inbound-table' | 'warehouse-out-table' | 'warehouse-outbound-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'part-stocktake-table' | 'device-part-consume-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
|
|
32
|
+
export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'material-requisition-table' | 'material-substitution-table' | 'warehouse-in-table' | 'warehouse-inbound-table' | 'warehouse-out-table' | 'warehouse-outbound-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'part-stocktake-table' | 'device-part-consume-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
|
|
33
33
|
/** 表头 layout 类型 */
|
|
34
34
|
export type TableHeaderLayoutType = 'table-header';
|
|
35
35
|
/** 所有子表表格 layout 类型 */
|
|
@@ -63,11 +63,14 @@ export type MaterialBalanceTableProps = RepeatingWidgetPropsBase & {
|
|
|
63
63
|
export type MaterialRequisitionTableProps = RepeatingWidgetPropsBase & {
|
|
64
64
|
layoutType: 'material-requisition-table';
|
|
65
65
|
};
|
|
66
|
+
export type MaterialSubstitutionTableProps = RepeatingWidgetPropsBase & {
|
|
67
|
+
layoutType: 'material-substitution-table';
|
|
68
|
+
};
|
|
66
69
|
export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
|
|
67
70
|
layoutType: 'warehouse-allocate-table';
|
|
68
71
|
barcode_parsing_rules_id_?: string;
|
|
69
72
|
};
|
|
70
|
-
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
73
|
+
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | MaterialSubstitutionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
71
74
|
export type RepeatingWidgetMeta = {
|
|
72
75
|
props: RepeatingWidgetPropsMeta;
|
|
73
76
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Wtbl } from '../../../document/Wtbl';
|
|
1
2
|
/** 表格矩形范围(含起止行列,均为闭区间) */
|
|
2
3
|
export type TableRange = {
|
|
3
4
|
start: {
|
|
@@ -9,10 +10,45 @@ export type TableRange = {
|
|
|
9
10
|
col: number;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
13
|
+
type AxisRange = {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
};
|
|
17
|
+
export type MergeAwareDataGroupSlot = {
|
|
18
|
+
range: TableRange;
|
|
19
|
+
/** 目标可见行带与模板行带的对应关系。 */
|
|
20
|
+
rowBands: Array<{
|
|
21
|
+
source: AxisRange;
|
|
22
|
+
target: AxisRange;
|
|
23
|
+
}>;
|
|
24
|
+
/** 目标可见列带与模板列带的对应关系。 */
|
|
25
|
+
colBands: Array<{
|
|
26
|
+
source: AxisRange;
|
|
27
|
+
target: AxisRange;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export type MergeAwareDataGroupCellMapping = {
|
|
31
|
+
row: number;
|
|
32
|
+
col: number;
|
|
33
|
+
sourceRow: number;
|
|
34
|
+
sourceCol: number;
|
|
35
|
+
dataIndex: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 按可见合并单元格枚举铺砖槽位。
|
|
39
|
+
*
|
|
40
|
+
* Word 底层的 gridCol/gridRow 数量不一定等于用户看到的单元格数量。这里先把父区域
|
|
41
|
+
* 转换为逻辑行列带,再按原有的先横后纵/先纵后横顺序铺砖。返回 undefined 表示合并
|
|
42
|
+
* 结构不规则,应回退到传统的底层网格矩形算法。
|
|
43
|
+
*/
|
|
44
|
+
export declare function getMergeAwareDataGroupSlots(table: Wtbl, range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y'): MergeAwareDataGroupSlot[] | undefined;
|
|
45
|
+
/** 将可见槽位展开为每个底层网格单元格的数据索引和模板坐标。 */
|
|
46
|
+
export declare function getMergeAwareDataGroupCellMappings(slots: MergeAwareDataGroupSlot[]): MergeAwareDataGroupCellMapping[];
|
|
12
47
|
/**
|
|
13
48
|
* 计算数据分组 / 动态关联在版面中可铺砖的数据槽位数(含模板块 dataIndex 0)。
|
|
14
49
|
* 逻辑与 TableExpander.computeDataIndexMap 中铺砖循环一致。
|
|
15
50
|
*/
|
|
16
|
-
export declare function countDataGroupSlots(range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y'): number;
|
|
51
|
+
export declare function countDataGroupSlots(range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y', table?: Wtbl): number;
|
|
17
52
|
/** 检验表 / 二维表动态关联:itemRegion 行范围可能超出子表主体 */
|
|
18
53
|
export declare function expandDataGroupRowRange(parent: TableRange, itemRange: TableRange): TableRange;
|
|
54
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export type WlayoutXmlJson = RawElement & {
|
|
|
9
9
|
width?: number;
|
|
10
10
|
height?: number;
|
|
11
11
|
zIndex?: number;
|
|
12
|
+
pageIndex?: number;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
15
|
export interface WlayoutOptions extends ModelGroupOptions<ModelNode> {
|
|
@@ -18,6 +19,7 @@ export interface WlayoutOptions extends ModelGroupOptions<ModelNode> {
|
|
|
18
19
|
width?: number;
|
|
19
20
|
height?: number;
|
|
20
21
|
zIndex?: number;
|
|
22
|
+
pageIndex?: number;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* 布局容器
|
|
@@ -34,6 +36,7 @@ export declare class Wlayout extends ModelGroup<ModelNode> {
|
|
|
34
36
|
width?: number;
|
|
35
37
|
height?: number;
|
|
36
38
|
zIndex: number;
|
|
39
|
+
pageIndex?: number;
|
|
37
40
|
parent?: ModelNode;
|
|
38
41
|
constructor(options: WlayoutOptions);
|
|
39
42
|
/**
|
|
@@ -66,5 +69,6 @@ export declare class Wlayout extends ModelGroup<ModelNode> {
|
|
|
66
69
|
width: number;
|
|
67
70
|
height: number;
|
|
68
71
|
zIndex: number;
|
|
72
|
+
pageIndex?: number;
|
|
69
73
|
}): Wlayout;
|
|
70
74
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { FieldChangeMap, EmitSource } from '../data';
|
|
2
|
+
export interface DocumentValidationContext {
|
|
3
|
+
scene: 'submit';
|
|
4
|
+
}
|
|
5
|
+
export interface DocumentValidationDecision {
|
|
6
|
+
skipValidation: boolean;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface DocumentRuntimeInitOptions {
|
|
10
|
+
/** 刷新/整表换数时只恢复运行时状态,禁止重跑首次填报的初值赋值。 */
|
|
11
|
+
initializeValues?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 文档级运行时扩展。
|
|
15
|
+
*
|
|
16
|
+
* 表格、对象及文档规则都通过同一生命周期接入,避免业务能力分别挂在
|
|
17
|
+
* composable / DataManager / 校验入口中。
|
|
18
|
+
*/
|
|
19
|
+
export interface DocumentRuntimeExtension {
|
|
20
|
+
onInit?(options?: DocumentRuntimeInitOptions): void | Promise<void>;
|
|
21
|
+
onHydrate?(): void | Promise<void>;
|
|
22
|
+
onFieldChanges?(changedMap: FieldChangeMap, options: {
|
|
23
|
+
batchSource: EmitSource;
|
|
24
|
+
}): void | Promise<void>;
|
|
25
|
+
beforeValidate?(context: DocumentValidationContext): DocumentValidationDecision | void | Promise<DocumentValidationDecision | void>;
|
|
26
|
+
destroy?(): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class DocumentRuntimeManager {
|
|
29
|
+
private readonly extensions;
|
|
30
|
+
register(extension: DocumentRuntimeExtension): void;
|
|
31
|
+
onInit(options?: DocumentRuntimeInitOptions): Promise<void>;
|
|
32
|
+
onHydrate(): Promise<void>;
|
|
33
|
+
onFieldChanges(changedMap: FieldChangeMap, options: {
|
|
34
|
+
batchSource: EmitSource;
|
|
35
|
+
}): Promise<void>;
|
|
36
|
+
beforeValidate(context: DocumentValidationContext): Promise<DocumentValidationDecision>;
|
|
37
|
+
destroy(): void;
|
|
38
|
+
}
|
package/dist/core/view/Doc.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { DocModeType } from '../constants';
|
|
|
11
11
|
import { CommandPayloadMap, RequiredPayloadCommands, OptionalPayloadCommands } from '../command/types';
|
|
12
12
|
import { DocModel } from '../model';
|
|
13
13
|
import { DocRuntimeMeta, FieldModelQuery, IDeviceConfig } from '../../sdk/types';
|
|
14
|
+
import { DocumentRuntimeManager } from '../runtime/DocumentRuntimeManager';
|
|
14
15
|
export interface DocInitOptions {
|
|
15
16
|
mode?: DocModeType;
|
|
16
17
|
model?: DocModel;
|
|
@@ -56,6 +57,8 @@ export declare class Doc {
|
|
|
56
57
|
refer: boolean;
|
|
57
58
|
/** 是否是模拟填报 */
|
|
58
59
|
isMockReport: boolean;
|
|
60
|
+
/** 已进入表单变更编辑;由 enterBaseline 设置,随文档实例销毁。 */
|
|
61
|
+
isFormChangeEditing: boolean;
|
|
59
62
|
/** 填报内容区底色开关配置 */
|
|
60
63
|
showPrintFieldBg: boolean;
|
|
61
64
|
model?: DocModel;
|
|
@@ -67,6 +70,8 @@ export declare class Doc {
|
|
|
67
70
|
eventManager: EventManager;
|
|
68
71
|
dataManager: DataManager;
|
|
69
72
|
interactionManager: InteractionManager;
|
|
73
|
+
/** 文档级业务运行时统一生命周期。 */
|
|
74
|
+
runtimeManager: DocumentRuntimeManager;
|
|
70
75
|
pageSize: {
|
|
71
76
|
width: number;
|
|
72
77
|
height: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
2
|
-
export type ExternalComponentType = 'cascade' | 'fw:input' | 'fw:number' | 'fw:double' | 'fw:enum' | 'fw:enum-multiple' | 'fw:date-time' | 'fw:date' | 'fw:time' | 'fw:select' | 'fw:select-multiple' | 'fw:tree-select' | 'fw:tree-select-multiple' | 'fw:table-select' | 'fw:rdo-table-select' | 'fw:signature' | 'fw:image' | 'fw:file' | 'pw:image' | 'pw:barcode' | 'pw:qrcode' | 'pw:diagonal' | 'pw:serialnumber' | 'pw:pagination' | 'pw:line' | 'pw:timediff';
|
|
2
|
+
export type ExternalComponentType = 'cascade' | 'fw:input' | 'fw:number' | 'fw:double' | 'fw:enum' | 'fw:enum-multiple' | 'fw:date-time' | 'fw:date' | 'fw:time' | 'fw:select' | 'fw:select-multiple' | 'fw:tree-select' | 'fw:tree-select-multiple' | 'fw:table-select' | 'fw:rdo-table-select' | 'fw:signature' | 'fw:seal' | 'fw:image' | 'fw:file' | 'pw:image' | 'pw:barcode' | 'pw:qrcode' | 'pw:diagonal' | 'pw:serialnumber' | 'pw:pagination' | 'pw:line' | 'pw:timediff';
|
|
3
3
|
/** 渲染组件标识 后续支持自定义组件 */
|
|
4
|
-
export type ExternalNodeType = 'render:gct-placeholder' | 'render:gct-control' | 'render:gct-space' | 'render:gct-text' | 'render:gct-image' | 'render:gct-signature' | 'render:gct-leftMarker' | 'render:gct-rightMarker' | 'render:pw-barcode' | 'render:pw-qrcode' | 'render:pw-image' | 'render:pw-diagonal' | 'render:pw-pagination' | 'render:pw-line';
|
|
4
|
+
export type ExternalNodeType = 'render:gct-placeholder' | 'render:gct-control' | 'render:gct-space' | 'render:gct-text' | 'render:gct-image' | 'render:gct-signature' | 'render:gct-seal' | 'render:gct-leftMarker' | 'render:gct-rightMarker' | 'render:pw-barcode' | 'render:pw-qrcode' | 'render:pw-image' | 'render:pw-diagonal' | 'render:pw-pagination' | 'render:pw-line';
|
|
5
5
|
/** 渲染节点集合 */
|
|
6
6
|
export interface FieldNodeRenderers {
|
|
7
7
|
/** 暗提示节点 */
|
|
@@ -32,8 +32,10 @@ export type PanelType =
|
|
|
32
32
|
| 'panel:device-part-consume-table'
|
|
33
33
|
/** 物料平衡表 */
|
|
34
34
|
| 'panel:material-balance-table'
|
|
35
|
-
/**
|
|
35
|
+
/** 产线收料表 */
|
|
36
36
|
| 'panel:material-requisition-table'
|
|
37
|
+
/** 物料替换表 */
|
|
38
|
+
| 'panel:material-substitution-table'
|
|
37
39
|
/** 库存调拨表 */
|
|
38
40
|
| 'panel:warehouse-allocate-table'
|
|
39
41
|
/** 二维表 */
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FieldQueryFilter } from '../../field/query-filter';
|
|
2
|
+
import { BusinessFieldQueryContext } from '../types';
|
|
3
|
+
/** 按业务场景与字段匹配规则;规则失败时保留原查询,失败结果不进入缓存。 */
|
|
4
|
+
export declare function resolveBusinessFieldFilters(context: BusinessFieldQueryContext): Promise<FieldQueryFilter[]>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FIELD_TYPE } from '../field/field-type';
|
|
2
|
+
import { FieldQueryFilter } from '../field/query-filter';
|
|
3
|
+
/** detail 业务类型、实例参数与当前查询字段;业务规则无需依赖 Doc 或组件。 */
|
|
4
|
+
export interface BusinessFieldQueryContext {
|
|
5
|
+
businessType?: string;
|
|
6
|
+
paramsConfig: Readonly<Record<string, unknown>>;
|
|
7
|
+
fieldType?: FIELD_TYPE;
|
|
8
|
+
}
|
|
9
|
+
export interface BusinessFieldQueryRule {
|
|
10
|
+
id: string;
|
|
11
|
+
match: {
|
|
12
|
+
fieldType: FIELD_TYPE;
|
|
13
|
+
};
|
|
14
|
+
/** 声明结果缓存的依赖参数,由 Runtime 统一执行缓存和请求去重。 */
|
|
15
|
+
cache?: {
|
|
16
|
+
key: (context: BusinessFieldQueryContext) => unknown;
|
|
17
|
+
ttlMs?: number;
|
|
18
|
+
};
|
|
19
|
+
resolveFilters: (context: BusinessFieldQueryContext) => Promise<readonly FieldQueryFilter[]>;
|
|
20
|
+
}
|
|
21
|
+
export interface DocumentBusinessProfile {
|
|
22
|
+
businessType: string;
|
|
23
|
+
fieldQueries: readonly BusinessFieldQueryRule[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DecisionRuleGroup, InspectionDecisionRule } from '../types';
|
|
2
|
+
type DataRow = Record<string, unknown>;
|
|
3
|
+
/** 安全解析设计端保存的规则树;无效或空配置不命中。 */
|
|
4
|
+
export declare function parseInspectionDecisionRuleTree(dataRuleConfig?: string): DecisionRuleGroup | null;
|
|
5
|
+
/**
|
|
6
|
+
* 计算规则树。
|
|
7
|
+
*
|
|
8
|
+
* 同一子表的多个条件绑定到同一条有效行;多个子表则按行组合判断。
|
|
9
|
+
* 子表为空时使用 undefined 占位,使 OR 中的主表条件仍可独立命中。
|
|
10
|
+
*/
|
|
11
|
+
export declare function evaluateDecisionRuleTree(root: DecisionRuleGroup, rawData: DataRow): boolean;
|
|
12
|
+
export declare function evaluateInspectionDecisionRule(rule: InspectionDecisionRule | null | undefined, rawData: DataRow): boolean;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Doc } from '../../../core/view/Doc';
|
|
2
|
+
import { DocumentRuntimeExtension, DocumentValidationContext, DocumentValidationDecision } from '../../../core/runtime/DocumentRuntimeManager';
|
|
3
|
+
import { FieldChangeMap } from '../../../core/data';
|
|
4
|
+
export declare const DOCUMENT_RULE_PROMPT_EVENT = "document-rule:prompt";
|
|
5
|
+
export interface DocumentRulePromptPayload {
|
|
6
|
+
rule: 'inspection-decision';
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
/** 文档级规则运行时:统一处理状态迁移、提示事件及提交前裁决。 */
|
|
10
|
+
export declare class DocumentRuleRuntime implements DocumentRuntimeExtension {
|
|
11
|
+
private readonly doc;
|
|
12
|
+
private inspectionDecisionMatched;
|
|
13
|
+
constructor(doc: Doc);
|
|
14
|
+
/** 装载和整表换数只建立状态基线,不弹提示。 */
|
|
15
|
+
onHydrate(): void;
|
|
16
|
+
onFieldChanges(changedMap: FieldChangeMap): void;
|
|
17
|
+
beforeValidate(context: DocumentValidationContext): DocumentValidationDecision;
|
|
18
|
+
private evaluateInspectionDecision;
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type DecisionRuleRelation = 'AND' | 'OR';
|
|
2
|
+
export type DecisionRuleValueType = 'FIXED' | 'FIELD';
|
|
3
|
+
/** 判定规则字段。保留所属模型/容器信息,供运行时准确取值。 */
|
|
4
|
+
export interface DecisionRuleField {
|
|
5
|
+
id: string;
|
|
6
|
+
key: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
modelKey: string;
|
|
10
|
+
modelName?: string;
|
|
11
|
+
/** 主表 / 子表 / 对象字段 */
|
|
12
|
+
scope: 'main' | 'sub' | 'object';
|
|
13
|
+
subFieldKey?: string;
|
|
14
|
+
objectFieldKey?: string;
|
|
15
|
+
options?: Array<{
|
|
16
|
+
label: string;
|
|
17
|
+
value: string | number | boolean;
|
|
18
|
+
}>;
|
|
19
|
+
}
|
|
20
|
+
export interface DecisionRuleRightValue {
|
|
21
|
+
valueType: DecisionRuleValueType;
|
|
22
|
+
result?: string | number | boolean;
|
|
23
|
+
/** FIELD 类型右值的完整字段信息。 */
|
|
24
|
+
field?: DecisionRuleField;
|
|
25
|
+
}
|
|
26
|
+
export interface DecisionRuleCondition {
|
|
27
|
+
key: string;
|
|
28
|
+
pid: string;
|
|
29
|
+
level: number;
|
|
30
|
+
firstRow?: boolean;
|
|
31
|
+
class?: string;
|
|
32
|
+
leftValue?: DecisionRuleField;
|
|
33
|
+
operatorValue?: string;
|
|
34
|
+
rightValue?: DecisionRuleRightValue[];
|
|
35
|
+
}
|
|
36
|
+
export interface DecisionRuleGroup {
|
|
37
|
+
key: string;
|
|
38
|
+
pid: string;
|
|
39
|
+
level: number;
|
|
40
|
+
class?: string;
|
|
41
|
+
type: 'group';
|
|
42
|
+
operatorType: DecisionRuleRelation;
|
|
43
|
+
children: Array<DecisionRuleGroup | DecisionRuleCondition>;
|
|
44
|
+
}
|
|
45
|
+
export interface InspectionDecisionRule {
|
|
46
|
+
dataRuleEnabled: boolean;
|
|
47
|
+
dataRule: string;
|
|
48
|
+
dataRuleConfig: string;
|
|
49
|
+
prompt: string;
|
|
50
|
+
}
|
|
@@ -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' | 'schema:field-rdo-ref' | 'schema:field-e-sop-version';
|
|
2
|
+
export type FieldPropsSchemaKey = 'schema:field-seal' | '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' | 'schema:field-rdo-ref' | 'schema:field-e-sop-version';
|
|
3
3
|
/** 优先级规则 */
|
|
4
4
|
export interface PriorityRule {
|
|
5
5
|
type: 'priority';
|
|
@@ -206,6 +206,10 @@ export declare const BASE_FIELD_TYPE: {
|
|
|
206
206
|
* 签名
|
|
207
207
|
*/
|
|
208
208
|
readonly SIGNATURE: "electronic_signature";
|
|
209
|
+
/**
|
|
210
|
+
* 印章
|
|
211
|
+
*/
|
|
212
|
+
readonly SEAL: "seal";
|
|
209
213
|
/**
|
|
210
214
|
* 批次/SN
|
|
211
215
|
*/
|
|
@@ -326,6 +330,10 @@ export declare const BUSINESS_FIELD_TYPE: {
|
|
|
326
330
|
* 产品检验数量
|
|
327
331
|
*/
|
|
328
332
|
readonly PRODUCT_CHECK_QTY: "product_check_qty";
|
|
333
|
+
/**
|
|
334
|
+
* 放行数量
|
|
335
|
+
*/
|
|
336
|
+
readonly PRODUCT_RELEASE_QTY: "product_release_qty";
|
|
329
337
|
/**
|
|
330
338
|
* 材料检验数量
|
|
331
339
|
*/
|
|
@@ -338,6 +346,8 @@ export declare const BUSINESS_FIELD_TYPE: {
|
|
|
338
346
|
* 检验数量
|
|
339
347
|
*/
|
|
340
348
|
readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
|
|
349
|
+
/** 收检数量 */
|
|
350
|
+
readonly QUANTITY_RECEIVED_QTY: "quantity_received_qty";
|
|
341
351
|
/**
|
|
342
352
|
* 工序接收数量
|
|
343
353
|
*/
|
|
@@ -390,6 +400,18 @@ export declare const BUSINESS_FIELD_TYPE: {
|
|
|
390
400
|
* 物料日期对象
|
|
391
401
|
*/
|
|
392
402
|
readonly DATE_OBJECT: "date_object";
|
|
403
|
+
/**
|
|
404
|
+
* 检验参数对象
|
|
405
|
+
*/
|
|
406
|
+
readonly INSPECTION_PARAMETER_OBJECT: "inspection_parameter_object";
|
|
407
|
+
/**
|
|
408
|
+
* 工艺参数对象
|
|
409
|
+
*/
|
|
410
|
+
readonly PROCESS_PARAMETER_OBJECT: "process_parameter_object";
|
|
411
|
+
/**
|
|
412
|
+
* 设备参数对象
|
|
413
|
+
*/
|
|
414
|
+
readonly DEVICE_PARAMETER_OBJECT: "device_parameter_object";
|
|
393
415
|
/**
|
|
394
416
|
* 有效期
|
|
395
417
|
*/
|
|
@@ -422,6 +444,10 @@ export declare const BUSINESS_FIELD_TYPE: {
|
|
|
422
444
|
* 表单实例数
|
|
423
445
|
*/
|
|
424
446
|
readonly OF_INST_NUM: "of_inst_num";
|
|
447
|
+
/**
|
|
448
|
+
* 医疗器械唯一标识
|
|
449
|
+
*/
|
|
450
|
+
readonly UDI: "udi";
|
|
425
451
|
/**
|
|
426
452
|
* 生产数量
|
|
427
453
|
*/
|
|
@@ -438,6 +464,14 @@ export declare const BUSINESS_FIELD_TYPE: {
|
|
|
438
464
|
* 灭菌批(追溯)
|
|
439
465
|
*/
|
|
440
466
|
readonly STERILIZATION_CONTAINER: "sterilization_container";
|
|
467
|
+
/**
|
|
468
|
+
* 检验批
|
|
469
|
+
*/
|
|
470
|
+
readonly INSPECTION_CONTAINER: "inspection_container";
|
|
471
|
+
/**
|
|
472
|
+
* 灭菌日期
|
|
473
|
+
*/
|
|
474
|
+
readonly STERILIZATION_DATE: "sterilization_date";
|
|
441
475
|
};
|
|
442
476
|
export type BusinessFieldType = (typeof BUSINESS_FIELD_TYPE)[keyof typeof BUSINESS_FIELD_TYPE];
|
|
443
477
|
/** 字段类型 = 基础 + 业务 */
|
|
@@ -550,6 +584,10 @@ export declare const FIELD_TYPE: {
|
|
|
550
584
|
* 产品检验数量
|
|
551
585
|
*/
|
|
552
586
|
readonly PRODUCT_CHECK_QTY: "product_check_qty";
|
|
587
|
+
/**
|
|
588
|
+
* 放行数量
|
|
589
|
+
*/
|
|
590
|
+
readonly PRODUCT_RELEASE_QTY: "product_release_qty";
|
|
553
591
|
/**
|
|
554
592
|
* 材料检验数量
|
|
555
593
|
*/
|
|
@@ -562,6 +600,8 @@ export declare const FIELD_TYPE: {
|
|
|
562
600
|
* 检验数量
|
|
563
601
|
*/
|
|
564
602
|
readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
|
|
603
|
+
/** 收检数量 */
|
|
604
|
+
readonly QUANTITY_RECEIVED_QTY: "quantity_received_qty";
|
|
565
605
|
/**
|
|
566
606
|
* 工序接收数量
|
|
567
607
|
*/
|
|
@@ -614,6 +654,18 @@ export declare const FIELD_TYPE: {
|
|
|
614
654
|
* 物料日期对象
|
|
615
655
|
*/
|
|
616
656
|
readonly DATE_OBJECT: "date_object";
|
|
657
|
+
/**
|
|
658
|
+
* 检验参数对象
|
|
659
|
+
*/
|
|
660
|
+
readonly INSPECTION_PARAMETER_OBJECT: "inspection_parameter_object";
|
|
661
|
+
/**
|
|
662
|
+
* 工艺参数对象
|
|
663
|
+
*/
|
|
664
|
+
readonly PROCESS_PARAMETER_OBJECT: "process_parameter_object";
|
|
665
|
+
/**
|
|
666
|
+
* 设备参数对象
|
|
667
|
+
*/
|
|
668
|
+
readonly DEVICE_PARAMETER_OBJECT: "device_parameter_object";
|
|
617
669
|
/**
|
|
618
670
|
* 有效期
|
|
619
671
|
*/
|
|
@@ -646,6 +698,10 @@ export declare const FIELD_TYPE: {
|
|
|
646
698
|
* 表单实例数
|
|
647
699
|
*/
|
|
648
700
|
readonly OF_INST_NUM: "of_inst_num";
|
|
701
|
+
/**
|
|
702
|
+
* 医疗器械唯一标识
|
|
703
|
+
*/
|
|
704
|
+
readonly UDI: "udi";
|
|
649
705
|
/**
|
|
650
706
|
* 生产数量
|
|
651
707
|
*/
|
|
@@ -662,6 +718,14 @@ export declare const FIELD_TYPE: {
|
|
|
662
718
|
* 灭菌批(追溯)
|
|
663
719
|
*/
|
|
664
720
|
readonly STERILIZATION_CONTAINER: "sterilization_container";
|
|
721
|
+
/**
|
|
722
|
+
* 检验批
|
|
723
|
+
*/
|
|
724
|
+
readonly INSPECTION_CONTAINER: "inspection_container";
|
|
725
|
+
/**
|
|
726
|
+
* 灭菌日期
|
|
727
|
+
*/
|
|
728
|
+
readonly STERILIZATION_DATE: "sterilization_date";
|
|
665
729
|
/**
|
|
666
730
|
* 文本
|
|
667
731
|
*/
|
|
@@ -754,6 +818,10 @@ export declare const FIELD_TYPE: {
|
|
|
754
818
|
* 签名
|
|
755
819
|
*/
|
|
756
820
|
readonly SIGNATURE: "electronic_signature";
|
|
821
|
+
/**
|
|
822
|
+
* 印章
|
|
823
|
+
*/
|
|
824
|
+
readonly SEAL: "seal";
|
|
757
825
|
/**
|
|
758
826
|
* 批次/SN
|
|
759
827
|
*/
|
|
@@ -80,6 +80,12 @@ type NormalizeNumberTextResult = {
|
|
|
80
80
|
* - fw:number 根据 digits 执行整数化或小数截断
|
|
81
81
|
*/
|
|
82
82
|
export declare function normalizeNumberTextOnCommit(rawText: string, options: NormalizeNumberTextOptions): NormalizeNumberTextResult;
|
|
83
|
+
/** 配置检查:返回错误说明,不抛异常。 */
|
|
84
|
+
export declare function getNumberInputConfigError(fieldType: FIELD_TYPE | undefined, digits: unknown): string | null;
|
|
85
|
+
/** 填报失焦时处理数字长度和整数上限。 */
|
|
86
|
+
export declare function normalizeNumberInputOnBlur(rawText: string, options: NormalizeNumberTextOptions, fieldType?: FIELD_TYPE): NormalizeNumberTextResult & {
|
|
87
|
+
configError?: string;
|
|
88
|
+
};
|
|
83
89
|
export declare function buildNumberFormats(props: any, type: NumberFieldType): {
|
|
84
90
|
type: NumberFieldType;
|
|
85
91
|
digits: number | undefined;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** 下拉接口使用的查询结构,与渲染组件解耦。 */
|
|
2
|
+
export interface FieldQuery {
|
|
3
|
+
queryData?: Record<string, unknown>;
|
|
4
|
+
exp?: string;
|
|
5
|
+
}
|
|
6
|
+
/** 业务规则提供的附加条件;空 values 明确表示无候选,空条件列表表示不追加过滤。 */
|
|
7
|
+
export interface FieldQueryFilter {
|
|
8
|
+
field: string;
|
|
9
|
+
operator: 'in';
|
|
10
|
+
values: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
/** 空 in 可能被接口视为不筛选,使用占位值表达无候选。 */
|
|
13
|
+
export declare const EMPTY_QUERY_VALUE = "__word_no_matching_query_value__";
|
|
14
|
+
/** 附加条件统一按 AND 合并;同字段 IN 条件取交集,保留已有搜索表达式。 */
|
|
15
|
+
export declare function mergeQueryFilters(query: FieldQuery, filters: readonly FieldQueryFilter[]): FieldQuery;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DocModel } from '../../../core/model/DocModel';
|
|
2
|
+
import { Doc } from '../../../core/view/Doc';
|
|
3
|
+
import { Page } from '../../../core/view/Page';
|
|
4
|
+
import { WrField } from '../../../core/model/document';
|
|
5
|
+
import { Wlayout } from '../../../core/model/overlays/Wlayout';
|
|
6
|
+
import { WidgetMeta } from '../../../core/widget/types';
|
|
7
|
+
import { SealPosition } from './seal-value';
|
|
8
|
+
export declare function isMainSealBinding(meta: WidgetMeta, mainModelKey: string): boolean;
|
|
9
|
+
export declare function listSealFields(model?: DocModel): {
|
|
10
|
+
overlay: import('../../../core/model/overlays/Woverlay').Woverlay;
|
|
11
|
+
layout: Wlayout;
|
|
12
|
+
field: WrField;
|
|
13
|
+
}[];
|
|
14
|
+
export type SealFieldEntry = ReturnType<typeof listSealFields>[number];
|
|
15
|
+
export declare function getSealTemplatePosition({ overlay, layout }: SealFieldEntry): SealPosition;
|
|
16
|
+
export declare function getSealInstancePosition(doc: Doc, entry: SealFieldEntry): SealPosition;
|
|
17
|
+
export declare function findSealPage(pages: Page[], position: SealPosition): Page | undefined;
|
|
18
|
+
export declare function getSealPagePosition(doc: Doc, page: Page, x: number, y: number): SealPosition;
|
|
19
|
+
export declare function initializeDocumentSeals(doc: Doc): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Doc } from '../../../core/view/Doc';
|
|
2
|
+
import { ImageWidget } from '../../../core/view/runs/ImageWidget';
|
|
3
|
+
export declare function resolveSealDisplay(doc: Doc, widget: ImageWidget): {
|
|
4
|
+
stamped: boolean;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
emptySymbol: string;
|
|
8
|
+
readonlyEmpty: boolean;
|
|
9
|
+
showEmptySymbol: boolean;
|
|
10
|
+
placeholder: string;
|
|
11
|
+
requiredBorder: boolean | undefined;
|
|
12
|
+
state: undefined;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
isReadonly: boolean;
|
|
15
|
+
blocked: boolean;
|
|
16
|
+
} | {
|
|
17
|
+
stamped: boolean;
|
|
18
|
+
visible: boolean;
|
|
19
|
+
hasError: boolean;
|
|
20
|
+
emptySymbol: string;
|
|
21
|
+
readonlyEmpty: boolean;
|
|
22
|
+
showEmptySymbol: boolean;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
requiredBorder: boolean | undefined;
|
|
25
|
+
state: {
|
|
26
|
+
required: boolean;
|
|
27
|
+
readonly: boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
displayStatus: import('../../../core/widget/state').WidgetDisplayStatus;
|
|
30
|
+
};
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
isReadonly: boolean;
|
|
33
|
+
blocked: boolean;
|
|
34
|
+
};
|