@gct-paas/word 0.2.7-beta.0 → 0.2.7

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.
Files changed (120) hide show
  1. package/dist/assets/svgs/table/index.d.ts +0 -1
  2. package/dist/base/input/src/input-number.vue.d.ts +0 -1
  3. package/dist/base/message/src/Message.vue.d.ts +0 -2
  4. package/dist/base/message/src/message.d.ts +0 -2
  5. package/dist/base/modal/src/modal.type.d.ts +1 -3
  6. package/dist/base/select/src/basic-select.vue.d.ts +4 -16
  7. package/dist/base/utils/image-size-util.d.ts +1 -1
  8. package/dist/capabilities/model-field-runtime/types/field.d.ts +0 -4
  9. package/dist/core/command/commands/DeleteRow.d.ts +1 -1
  10. package/dist/core/command/types.d.ts +0 -14
  11. package/dist/core/data/DataManager.d.ts +1 -6
  12. package/dist/core/data/types/runtime-config.d.ts +0 -11
  13. package/dist/core/event/handlers/IMEHandler.d.ts +0 -1
  14. package/dist/core/index.d.ts +0 -2
  15. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  16. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -4
  17. package/dist/core/model/overlays/Wlayout.d.ts +0 -4
  18. package/dist/core/view/Doc.d.ts +0 -5
  19. package/dist/core/widget/types.d.ts +2 -2
  20. package/dist/domain/active/active-types.d.ts +1 -3
  21. package/dist/domain/field/field-props-schema-type.d.ts +1 -1
  22. package/dist/domain/field/field-type.d.ts +0 -58
  23. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
  24. package/dist/domain/table/business/material/types.d.ts +1 -2
  25. package/dist/domain/table/design/ribbon-options.d.ts +0 -2
  26. package/dist/domain/table/design/sub-model-matcher.d.ts +0 -2
  27. package/dist/domain/table/index.d.ts +0 -2
  28. package/dist/domain/table/registry.d.ts +1 -1
  29. package/dist/domain/table/runtime/table-runtime.d.ts +0 -1
  30. package/dist/domain/table/types.d.ts +3 -11
  31. package/dist/index.es.js +5531 -28314
  32. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +2 -10
  33. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +0 -6
  34. package/dist/runtime/interface/computed.d.ts +1 -1
  35. package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +0 -3
  36. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +1 -54
  37. package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +0 -1
  38. package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +0 -1
  39. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +0 -2
  40. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -2
  41. package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
  42. package/dist/runtime/validation/layout.d.ts +0 -20
  43. package/dist/runtime/validation/useFormValidator.d.ts +0 -4
  44. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +0 -5
  45. package/dist/sdk/setup.d.ts +0 -2
  46. package/dist/sdk/types/index.d.ts +0 -5
  47. package/dist/sdk/vue/index.d.ts +0 -6
  48. package/dist/suites/edhr/panel-schema/index.d.ts +0 -1
  49. package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +3 -8
  50. package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -3
  51. package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -12
  52. package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +0 -1
  53. package/dist/word.css +611 -1312
  54. package/package.json +4 -4
  55. package/dist/core/command/base/FloatingFieldCommand.d.ts +0 -9
  56. package/dist/core/command/commands/InsertFloatingField.d.ts +0 -9
  57. package/dist/core/command/commands/MoveFloatingField.d.ts +0 -10
  58. package/dist/core/command/commands/RemoveFloatingField.d.ts +0 -12
  59. package/dist/core/data/enrichers/udi-enricher.d.ts +0 -23
  60. package/dist/core/data/formula/business-functions.d.ts +0 -4
  61. package/dist/core/runtime/DocumentRuntimeManager.d.ts +0 -34
  62. package/dist/domain/document-rule/index.d.ts +0 -3
  63. package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +0 -13
  64. package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +0 -19
  65. package/dist/domain/document-rule/types.d.ts +0 -50
  66. package/dist/domain/field/seal/seal-binding.d.ts +0 -19
  67. package/dist/domain/field/seal/seal-display.d.ts +0 -32
  68. package/dist/domain/field/seal/seal-value.d.ts +0 -39
  69. package/dist/domain/table/business/device/maintenance/index.d.ts +0 -1
  70. package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
  71. package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
  72. package/dist/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
  73. package/dist/domain/table/business/device/point-inspection/index.d.ts +0 -1
  74. package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
  75. package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
  76. package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
  77. package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +0 -13
  78. package/dist/domain/table/business/device/signature-lock.d.ts +0 -26
  79. package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +0 -3
  80. package/dist/domain/table/business/material/material-substitution/index.d.ts +0 -3
  81. package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -39
  82. package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
  83. package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
  84. package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
  85. package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -3
  86. package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +0 -3
  87. package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +0 -6
  88. package/dist/runtime/designer/ribbon/hooks/useDhrEdition.d.ts +0 -7
  89. package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +0 -5
  90. package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +0 -2
  91. package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +0 -3
  92. package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +0 -17
  93. package/dist/runtime/renderer/dialogs/seal/seal-auth-dialog.vue.d.ts +0 -60
  94. package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +0 -9
  95. package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +0 -30
  96. package/dist/runtime/renderer/dialogs/seal/types.d.ts +0 -24
  97. package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +0 -27
  98. package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +0 -27
  99. package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +0 -30
  100. package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +0 -29
  101. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +0 -17
  102. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSearchEnter.d.ts +0 -18
  103. package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +0 -3
  104. package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +0 -7
  105. package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +0 -2
  106. package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +0 -2
  107. package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +0 -2
  108. package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +0 -2
  109. package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +0 -2
  110. package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +0 -2
  111. package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +0 -2
  112. package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +0 -2
  113. package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +0 -1
  114. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +0 -19
  115. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +0 -16
  116. package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +0 -11
  117. package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +0 -8
  118. package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +0 -34
  119. package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +0 -3
  120. package/dist/utils/pdf/collect-seal-draw-ops.d.ts +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.2.7-beta.0",
3
+ "version": "0.2.7",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",
@@ -50,7 +50,6 @@
50
50
  "version:release": "npm version patch --no-git-tag-version"
51
51
  },
52
52
  "dependencies": {
53
- "@gct-paas/form-base": "0.1.2-beta.2",
54
53
  "@vueuse/core": "^14.1.0",
55
54
  "async-validator": "^4.2.5",
56
55
  "hotkeys-js": "4.0.0-beta.7",
@@ -60,10 +59,11 @@
60
59
  "pdf-fontkit": "^1.8.9",
61
60
  "pdf-lib": "^1.17.1",
62
61
  "resize-observer-polyfill": "^1.5.1",
62
+ "@gct-paas/form-base": "0.1.1",
63
63
  "vue-color": "^3.3.3"
64
64
  },
65
65
  "devDependencies": {
66
- "@gct-paas/api": "6.2.0-dev.2",
66
+ "@gct-paas/api": "0.1.0-word.11",
67
67
  "@gct-paas/build": "^0.1.23",
68
68
  "@types/crypto-js": "^4.1.1",
69
69
  "@types/lodash-es": "^4.17.7",
@@ -86,7 +86,7 @@
86
86
  "vue-tsc": "^3.2.8"
87
87
  },
88
88
  "peerDependencies": {
89
- "@gct-paas/api": "6.2.0-dev.2",
89
+ "@gct-paas/api": ">=0.1.0",
90
90
  "bignumber.js": "^9.0.0",
91
91
  "crypto-js": "^4.1.1",
92
92
  "dayjs": "^1.11.0",
@@ -1,9 +0,0 @@
1
- import { CommandBase } from './CommandBase';
2
- import { CommandType } from '../types';
3
- /** Existing commands snapshot only the body; floating field commands also own their overlays. */
4
- export declare abstract class FloatingFieldCommand<T extends CommandType> extends CommandBase<T> {
5
- private overlays?;
6
- private overlayIdentities?;
7
- protected saveSnapshot(): import('../../model/types').RawElement | undefined;
8
- protected restoreSnapshot(): void;
9
- }
@@ -1,9 +0,0 @@
1
- import { FloatingFieldCommand } from '../base/FloatingFieldCommand';
2
- import { WrField } from '../../model/document';
3
- export declare class InsertFloatingField extends FloatingFieldCommand<'insertFloatingField'> {
4
- protected execute(): Promise<{
5
- wr: WrField;
6
- pos: number;
7
- side: "before";
8
- } | null>;
9
- }
@@ -1,10 +0,0 @@
1
- import { FloatingFieldCommand } from '../base/FloatingFieldCommand';
2
- export declare class MoveFloatingField extends FloatingFieldCommand<'moveFloatingField'> {
3
- private fieldId?;
4
- protected execute(): Promise<{
5
- wr: import('../../model/document').WrField;
6
- pos: number;
7
- side: "after";
8
- } | null>;
9
- protected afterUndo(): import('../types').CursorMeta | null;
10
- }
@@ -1,12 +0,0 @@
1
- import { FloatingFieldCommand } from '../base/FloatingFieldCommand';
2
- export declare class RemoveFloatingField extends FloatingFieldCommand<'removeFloatingField'> {
3
- private fieldId?;
4
- private bindingSnapshot;
5
- protected execute(): Promise<{
6
- wp: import('../../model/document').Wp;
7
- pos: number;
8
- side: "before";
9
- } | null>;
10
- protected restoreSnapshot(): void;
11
- protected afterUndo(): import('../types').CursorMeta | null;
12
- }
@@ -1,23 +0,0 @@
1
- import { Doc } from '../../view/Doc';
2
- import { DataEnricherRegistration } from '../types';
3
- import { FIELD_TYPE } from '../../../domain/field/field-type';
4
- export interface UdiWidgetTarget {
5
- valuePath: string;
6
- }
7
- type UdiWidgetInstance = {
8
- widgetMeta?: {
9
- field?: {
10
- fieldType?: FIELD_TYPE;
11
- };
12
- };
13
- valuePath?: string;
14
- };
15
- /** paramsConfig 中 containerId 优先;没有时使用 snId。 */
16
- export declare function resolveUdiQuery(doc: Doc): Record<string, string> | undefined;
17
- /** listAll 返回第一条 UDI;兼容接口返回 udi / name_ 的历史形态。 */
18
- export declare function parseUdi(res: unknown): string | undefined;
19
- /** 从单个 widget 实例解析 UDI enrich 目标。 */
20
- export declare function tryCollectUdiTarget(instance: UdiWidgetInstance): UdiWidgetTarget | null;
21
- /** UDI:按 paramsConfig.containerId / snId 查询并回填尚未赋值的字段。 */
22
- export declare function createUdiEnricher(doc: Doc, targets: UdiWidgetTarget[]): DataEnricherRegistration;
23
- export {};
@@ -1,4 +0,0 @@
1
- export type FormulaRegister = (name: string, executor: (...args: any[]) => any) => void;
2
- /** 更新当前表单的参数配置;未传入配置时清空上次的数据。 */
3
- export declare function setFormulaParamsConfig(paramsConfig?: Record<string, any> | null): void;
4
- export declare function registerFormulaFuncs(register?: FormulaRegister): void;
@@ -1,34 +0,0 @@
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
- /**
10
- * 文档级运行时扩展。
11
- *
12
- * 表格、对象及文档规则都通过同一生命周期接入,避免业务能力分别挂在
13
- * composable / DataManager / 校验入口中。
14
- */
15
- export interface DocumentRuntimeExtension {
16
- onInit?(): void | Promise<void>;
17
- onHydrate?(): void | Promise<void>;
18
- onFieldChanges?(changedMap: FieldChangeMap, options: {
19
- batchSource: EmitSource;
20
- }): void | Promise<void>;
21
- beforeValidate?(context: DocumentValidationContext): DocumentValidationDecision | void | Promise<DocumentValidationDecision | void>;
22
- destroy?(): void;
23
- }
24
- export declare class DocumentRuntimeManager {
25
- private readonly extensions;
26
- register(extension: DocumentRuntimeExtension): void;
27
- onInit(): Promise<void>;
28
- onHydrate(): Promise<void>;
29
- onFieldChanges(changedMap: FieldChangeMap, options: {
30
- batchSource: EmitSource;
31
- }): Promise<void>;
32
- beforeValidate(context: DocumentValidationContext): Promise<DocumentValidationDecision>;
33
- destroy(): void;
34
- }
@@ -1,3 +0,0 @@
1
- export * from './types';
2
- export * from './runtime/decision-rule-evaluator';
3
- export * from './runtime/document-rule-runtime';
@@ -1,13 +0,0 @@
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 {};
@@ -1,19 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
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,19 +0,0 @@
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;
@@ -1,32 +0,0 @@
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
- showEmptySymbol: boolean;
9
- placeholder: string;
10
- requiredBorder: boolean | undefined;
11
- state: undefined;
12
- disabled: boolean;
13
- isReadonly: boolean;
14
- blocked: boolean;
15
- } | {
16
- stamped: boolean;
17
- visible: boolean;
18
- hasError: boolean;
19
- emptySymbol: string;
20
- showEmptySymbol: boolean;
21
- placeholder: string;
22
- requiredBorder: boolean | undefined;
23
- state: {
24
- required: boolean;
25
- readonly: boolean;
26
- disabled: boolean;
27
- displayStatus: import('../../../core/widget/state').WidgetDisplayStatus;
28
- };
29
- disabled: boolean;
30
- isReadonly: boolean;
31
- blocked: boolean;
32
- };
@@ -1,39 +0,0 @@
1
- export interface SealPosition {
2
- sheetId: string;
3
- pageIndex: number;
4
- leftMm: number;
5
- topMm: number;
6
- }
7
- export interface SealStamp {
8
- sealId: string;
9
- sealName: string;
10
- sealType: string;
11
- sealImage: string;
12
- sealUserId: string;
13
- sealUserName: string;
14
- sealUserTime: string;
15
- }
16
- export interface SealFieldValue extends SealStamp {
17
- sealPosition: SealPosition;
18
- }
19
- export declare function parseSealValue(raw: unknown): Record<string, unknown> | undefined;
20
- export declare function isSealPosition(value: unknown): value is SealPosition;
21
- /** Position is instance metadata, not evidence that the field has been filled. */
22
- export declare function classifySealValue(raw: unknown): 'empty' | 'stamped' | 'invalid';
23
- export declare const isSealStamped: (raw: unknown) => boolean;
24
- export declare function readSealValue(raw: unknown, fallback: SealPosition): SealFieldValue;
25
- export declare function stampSealValue(raw: unknown, fallback: SealPosition, stamp: SealStamp): string;
26
- export declare function clearSealValue(raw: unknown, fallback: SealPosition): string;
27
- export declare function moveSealValue(raw: unknown, fallback: SealPosition, position: SealPosition): string;
28
- /** Only missing positions are repaired; malformed historical values remain available to validation. */
29
- export declare function initializeSealValue(raw: unknown, fallback: SealPosition): unknown;
30
- export declare function normalizeSealDiameter(value: unknown): number;
31
- export declare const mmToPx: (mm: number) => number;
32
- export declare const pxToMm: (px: number) => number;
33
- export declare function clampSealPosition(p: SealPosition, widthPx: number, heightPx: number, diameterMm: number): SealPosition;
34
- export declare function containSealImage(width: number, height: number, size: number): {
35
- x: number;
36
- y: number;
37
- width: number;
38
- height: number;
39
- };
@@ -1 +0,0 @@
1
- export { profile as maintenanceProfile } from './profile';
@@ -1,9 +0,0 @@
1
- /** 设备保养表内置字段 key */
2
- export declare const F: {
3
- /** 点检日期 */
4
- readonly inspectionDate: "inspection_date_";
5
- /** 点检人 */
6
- readonly inspector: "inspector_";
7
- /** 复核人 */
8
- readonly reviewer: "reviewer_";
9
- };
@@ -1,2 +0,0 @@
1
- import { BusinessFieldProfile } from '../../../../types';
2
- export declare const fields: BusinessFieldProfile[];
@@ -1,3 +0,0 @@
1
- import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "maintenance";
3
- export declare const profile: BusinessSubTableProfile;
@@ -1 +0,0 @@
1
- export { profile as pointInspectionProfile } from './profile';
@@ -1,9 +0,0 @@
1
- /** 设备点检表内置字段 key */
2
- export declare const F: {
3
- /** 点检日期 */
4
- readonly inspectionDate: "inspection_date_";
5
- /** 点检人 */
6
- readonly inspector: "inspector_";
7
- /** 复核人 */
8
- readonly reviewer: "reviewer_";
9
- };
@@ -1,2 +0,0 @@
1
- import { BusinessFieldProfile } from '../../../../types';
2
- export declare const fields: BusinessFieldProfile[];
@@ -1,3 +0,0 @@
1
- import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "point-inspection";
3
- export declare const profile: BusinessSubTableProfile;
@@ -1,13 +0,0 @@
1
- import { Doc } from '../../../../../core';
2
- /**
3
- * 设备点检/保养签字锁定引擎。
4
- *
5
- * 由 TableRuntime 生命周期驱动,只在初始化、行初始化或用户数据变更后重算;
6
- * 不依赖组件是否已挂载,也不在渲染过程中反向写状态。
7
- */
8
- export declare class DeviceSignatureLockEngine {
9
- private readonly doc;
10
- constructor(doc: Doc);
11
- apply(): void;
12
- private collectConstraint;
13
- }
@@ -1,26 +0,0 @@
1
- import { Doc } from '../../../../core';
2
- export type DeviceOperationControlField = 'inspector_' | 'reviewer_';
3
- export interface FixedDeviceOperationConfig {
4
- /** 签名后一并锁定的主表字段 */
5
- mainFieldBindings?: string[];
6
- /** 触发当前行数据锁定的签名字段 */
7
- dataLockControlField?: DeviceOperationControlField;
8
- }
9
- export interface FixedDeviceOperationFieldState {
10
- disabled?: boolean;
11
- readonly?: boolean;
12
- }
13
- export interface FixedDeviceOperationTable {
14
- subFieldKey: string;
15
- config: FixedDeviceOperationConfig;
16
- }
17
- /** 签名字段有有效数据时,认为该行已进入锁定状态。 */
18
- export declare function hasSignatureValue(value: unknown): boolean;
19
- export declare function isSignatureLockActive(config: FixedDeviceOperationConfig | undefined, rowData: Record<string, any> | undefined): boolean;
20
- /** 已保存的固定表行,其控制签名不可再删除。 */
21
- export declare function isPersistedSignatureLockActive(config: FixedDeviceOperationConfig | undefined, rowData: Record<string, any> | undefined): boolean;
22
- export declare function getFixedDeviceOperationTables(doc: Doc): FixedDeviceOperationTable[];
23
- /** 根据字段实际运行时路径解析设备点检/保养表的动态禁用、只读状态。 */
24
- export declare function resolveFixedDeviceOperationFieldState(doc: Doc, runtimeValuePath: string): FixedDeviceOperationFieldState;
25
- /** 组装设备点检/保养控制签名前需校验的主表与当前行字段路径。 */
26
- export declare function resolveDeviceSignatureValidationPaths(doc: Doc, runtimeValuePath: string, candidatePaths: Iterable<string>): string[];
@@ -1,3 +0,0 @@
1
- import { BusinessScanHandler } from '../../../shared/scan-action';
2
- /** 物料替换表:按条码解析规则映射结果填充空行,否则新增一行。 */
3
- export declare const handleMaterialSubstitutionScan: BusinessScanHandler;
@@ -1,3 +0,0 @@
1
- export { profile as materialSubstitutionProfile, TABLE_TYPE } from './profile';
2
- export * from './profile';
3
- export { handleMaterialSubstitutionScan } from './actions/scan';
@@ -1,39 +0,0 @@
1
- /**
2
- * 物料替换表(MATERIAL_SUBSTITUTION)字段 key
3
- */
4
- export declare const F: {
5
- /** 工序节点 */
6
- readonly routingOperation: "routing_operation_id_";
7
- /** SN */
8
- readonly productionContainer: "production_container_id_";
9
- /** 被替换物料批号 */
10
- readonly sourceMaterialNo: "source_material_no_";
11
- /** 被替换物料 */
12
- readonly sourceProduct: "source_product_id_";
13
- /** 被替换物料名称 */
14
- readonly sourceProductName: "source_product_id_name_";
15
- /** 被替换物料编码 */
16
- readonly sourceProductCode: "source_product_id_code_";
17
- /** 被替换物料规格 */
18
- readonly sourceProductSpec: "source_product_id_spec_";
19
- /** 原上料数量 */
20
- readonly sourceQtyConsumed: "source_qty_consumed_";
21
- /** 替换物料批号 */
22
- readonly targetMaterialNo: "target_material_no_";
23
- /** 替换物料 */
24
- readonly targetProduct: "target_product_id_";
25
- /** 替换物料名称 */
26
- readonly targetProductName: "target_product_id_name_";
27
- /** 替换物料编码 */
28
- readonly targetProductCode: "target_product_id_code_";
29
- /** 替换物料规格 */
30
- readonly targetProductSpec: "target_product_id_spec_";
31
- /** 替换数量 */
32
- readonly targetQtyConsumed: "target_qty_consumed_";
33
- };
34
- export type MaterialSubstitutionFieldKey = (typeof F)[keyof typeof F];
35
- /** 设计态固定禁用、运行态只读的物料信息字段 */
36
- export declare const DISABLED_INPUT_FIELDS: readonly ["source_material_no_", "source_product_id_name_", "source_product_id_code_", "source_product_id_spec_", "source_qty_consumed_", "target_product_id_name_", "target_product_id_code_", "target_product_id_spec_"];
37
- export declare const CLEAR_ON_SOURCE_PRODUCT_EMPTY: readonly ["source_material_no_", "source_product_id_name_", "source_product_id_code_", "source_product_id_spec_", "source_qty_consumed_"];
38
- /** 替换物料批号清空 / 手输时需清空的物料字段 */
39
- export declare const CLEAR_ON_TARGET_MATERIAL_NO_EMPTY: readonly ["target_product_id_name_", "target_product_id_code_", "target_product_id_spec_"];
@@ -1,2 +0,0 @@
1
- import { BusinessFieldProfile } from '../../../../types';
2
- export declare const fields: BusinessFieldProfile[];
@@ -1,4 +0,0 @@
1
- import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "material-substitution";
3
- export declare const profile: BusinessSubTableProfile;
4
- export { profile as materialSubstitutionProfile };
@@ -1,3 +0,0 @@
1
- import { Doc } from '../../../../../../core';
2
- export declare function handleTargetMaterialNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
3
- export declare function handleSourceProductChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -1,3 +0,0 @@
1
- import { BoundedWidgetPropsMeta } from '../../../../core/model/logic/subtable/bounded/BoundedRegion';
2
- /** 根据所选子模型解析固定表创建时的默认配置。 */
3
- export declare function getDefaultBoundedWidgetProps(refModelType?: string): BoundedWidgetPropsMeta;
@@ -1,6 +0,0 @@
1
- import { OverlayLayout } from '../../../core';
2
- type __VLS_Props = {
3
- widget: OverlayLayout;
4
- };
5
- 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>;
6
- export default _default;
@@ -1,7 +0,0 @@
1
- import { Ref } from 'vue';
2
- /**
3
- * Word 设计器加载 DHR 版本授权;非 eDHR 套件不请求,加载失败时按无授权处理。
4
- */
5
- export declare function useDhrEdition(suiteKey: string): {
6
- canUseMaxEditionTables: Ref<boolean>;
7
- };
@@ -1,5 +0,0 @@
1
- type __VLS_Props = {
2
- message: string;
3
- };
4
- 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, {}, HTMLDivElement>;
5
- export default _default;
@@ -1,2 +0,0 @@
1
- import { IModalInstance } from '../../../../base/modal';
2
- export declare function openDocumentRulePrompt(message: string, onClosed?: () => void): IModalInstance;
@@ -1,3 +0,0 @@
1
- import { SealFlowContext } from './types';
2
- import { SealStamp } from '../../../../domain/field/seal/seal-value';
3
- export declare function openSealFlow(ctx: SealFlowContext): Promise<SealStamp | undefined>;
@@ -1,17 +0,0 @@
1
- import { api } from '../../../../utils/adapters/api';
2
- export interface SealDetail {
3
- id?: string;
4
- name?: string;
5
- code?: string;
6
- sealImage?: string;
7
- }
8
- export declare const sealRequestConfig: NonNullable<Parameters<typeof api.platform.sealManagement.getInfo>[1]> & {
9
- errorMessageMode: 'none';
10
- };
11
- export declare const getSealDetail: (id: string) => Promise<SealDetail>;
12
- export declare const verifySealPassword: (request: {
13
- id: string;
14
- password: string;
15
- }) => Promise<boolean>;
16
- export declare const getSealUserTime: () => string;
17
- export declare function isValidSealDetail(detail: SealDetail, id: string): boolean;
@@ -1,60 +0,0 @@
1
- import { AuthenticationAttempt, AuthenticationState } from '../signature/authentication/types';
2
- import { AuthResult, SealStepContext } from './types';
3
- type __VLS_Props = {
4
- context: SealStepContext;
5
- onResult(result: AuthResult): void;
6
- };
7
- 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, {
8
- authRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
9
- defaultLoginAccount?: string;
10
- enableSignPassword?: number;
11
- imageDirection?: string;
12
- showForm?: boolean;
13
- disabled?: boolean;
14
- submitCard: (code: string) => Promise<void>;
15
- }> & Readonly<{
16
- "onState-change"?: ((state: AuthenticationState) => any) | undefined;
17
- "onCard-complete"?: (() => any) | undefined;
18
- }>, {
19
- authenticatePassword(): Promise<AuthenticationAttempt | undefined>;
20
- authenticateCard(code: string): Promise<AuthenticationAttempt>;
21
- hasInput(): boolean;
22
- reset(): void;
23
- invalidate(): void;
24
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
25
- "state-change": (state: AuthenticationState) => any;
26
- "card-complete": () => any;
27
- }, import('vue').PublicProps, {
28
- disabled: boolean;
29
- enableSignPassword: number;
30
- showForm: boolean;
31
- }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
32
- P: {};
33
- B: {};
34
- D: {};
35
- C: {};
36
- M: {};
37
- Defaults: {};
38
- }, Readonly<{
39
- defaultLoginAccount?: string;
40
- enableSignPassword?: number;
41
- imageDirection?: string;
42
- showForm?: boolean;
43
- disabled?: boolean;
44
- submitCard: (code: string) => Promise<void>;
45
- }> & Readonly<{
46
- "onState-change"?: ((state: AuthenticationState) => any) | undefined;
47
- "onCard-complete"?: (() => any) | undefined;
48
- }>, {
49
- authenticatePassword(): Promise<AuthenticationAttempt | undefined>;
50
- authenticateCard(code: string): Promise<AuthenticationAttempt>;
51
- hasInput(): boolean;
52
- reset(): void;
53
- invalidate(): void;
54
- }, {}, {}, {}, {
55
- disabled: boolean;
56
- enableSignPassword: number;
57
- showForm: boolean;
58
- }> | null;
59
- }, HTMLDivElement>;
60
- export default _default;
@@ -1,9 +0,0 @@
1
- import { SignInfo } from '../signature/logic';
2
- import { ConfirmResult, SealStepContext } from './types';
3
- type __VLS_Props = {
4
- context: SealStepContext;
5
- info: SignInfo;
6
- onResult(result: ConfirmResult): void;
7
- };
8
- 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, {}, HTMLDivElement>;
9
- export default _default;