@gct-paas/word 0.2.19 → 0.2.20-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.
Files changed (155) hide show
  1. package/dist/assets/svgs/table/index.d.ts +1 -0
  2. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +6 -0
  3. package/dist/base/input/src/input-number.vue.d.ts +1 -0
  4. package/dist/base/message/src/Message.vue.d.ts +2 -0
  5. package/dist/base/message/src/message.d.ts +2 -0
  6. package/dist/base/modal/src/modal.type.d.ts +3 -1
  7. package/dist/base/select/src/basic-select.vue.d.ts +16 -4
  8. package/dist/base/utils/image-size-util.d.ts +12 -6
  9. package/dist/capabilities/model-field-runtime/types/field.d.ts +4 -0
  10. package/dist/core/command/base/FloatingFieldCommand.d.ts +9 -0
  11. package/dist/core/command/commands/DeleteCol.d.ts +1 -1
  12. package/dist/core/command/commands/DeleteRow.d.ts +1 -1
  13. package/dist/core/command/commands/InsertFloatingField.d.ts +9 -0
  14. package/dist/core/command/commands/InsertTable.d.ts +0 -1
  15. package/dist/core/command/commands/MoveFloatingField.d.ts +10 -0
  16. package/dist/core/command/commands/RemoveFloatingField.d.ts +12 -0
  17. package/dist/core/command/commands/SetTableBorder.d.ts +14 -0
  18. package/dist/core/command/types.d.ts +21 -0
  19. package/dist/core/data/DataManager.d.ts +6 -1
  20. package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +19 -0
  21. package/dist/core/data/enrichers/udi-enricher.d.ts +23 -0
  22. package/dist/core/data/formula/business-functions.d.ts +10 -0
  23. package/dist/core/data/formula/formula-params-cache.d.ts +15 -0
  24. package/dist/core/data/types/runtime-config.d.ts +13 -0
  25. package/dist/core/event/handlers/IMEHandler.d.ts +1 -0
  26. package/dist/core/index.d.ts +2 -0
  27. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +11 -0
  28. package/dist/core/model/document/WtblPr.d.ts +2 -0
  29. package/dist/core/model/document/Wtc.d.ts +2 -0
  30. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  31. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -1
  32. package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +37 -1
  33. package/dist/core/model/overlays/Wlayout.d.ts +4 -0
  34. package/dist/core/model/types/table-border.d.ts +18 -0
  35. package/dist/core/runtime/DocumentRuntimeManager.d.ts +38 -0
  36. package/dist/core/table/border-selection.d.ts +9 -0
  37. package/dist/core/table/borders.d.ts +42 -0
  38. package/dist/core/view/Doc.d.ts +5 -0
  39. package/dist/core/view/TableCell.d.ts +3 -0
  40. package/dist/core/widget/types.d.ts +2 -2
  41. package/dist/domain/active/active-types.d.ts +3 -1
  42. package/dist/domain/document-business/business/product-release/profile.d.ts +2 -0
  43. package/dist/domain/document-business/business/product-release/service.d.ts +2 -0
  44. package/dist/domain/document-business/index.d.ts +2 -0
  45. package/dist/domain/document-business/registry.d.ts +2 -0
  46. package/dist/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
  47. package/dist/domain/document-business/types.d.ts +24 -0
  48. package/dist/domain/document-rule/index.d.ts +3 -0
  49. package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +13 -0
  50. package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +19 -0
  51. package/dist/domain/document-rule/types.d.ts +50 -0
  52. package/dist/domain/field/field-props-schema-type.d.ts +1 -1
  53. package/dist/domain/field/field-type.d.ts +68 -2
  54. package/dist/domain/field/form-value.d.ts +6 -0
  55. package/dist/domain/field/query-filter.d.ts +15 -0
  56. package/dist/domain/field/seal/seal-binding.d.ts +19 -0
  57. package/dist/domain/field/seal/seal-display.d.ts +34 -0
  58. package/dist/domain/field/seal/seal-value.d.ts +39 -0
  59. package/dist/domain/table/business/device/maintenance/index.d.ts +1 -0
  60. package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +9 -0
  61. package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +2 -0
  62. package/dist/domain/table/business/device/maintenance/profile/index.d.ts +3 -0
  63. package/dist/domain/table/business/device/point-inspection/index.d.ts +1 -0
  64. package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +9 -0
  65. package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +2 -0
  66. package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +3 -0
  67. package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +13 -0
  68. package/dist/domain/table/business/device/signature-lock.d.ts +26 -0
  69. package/dist/domain/table/business/material/material-consume/profile/fields.d.ts +2 -0
  70. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
  71. package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +3 -0
  72. package/dist/domain/table/business/material/material-substitution/index.d.ts +3 -0
  73. package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +41 -0
  74. package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +2 -0
  75. package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +4 -0
  76. package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +1 -0
  77. package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +4 -0
  78. package/dist/domain/table/business/material/types.d.ts +2 -1
  79. package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +3 -0
  80. package/dist/domain/table/design/sub-model-matcher.d.ts +2 -0
  81. package/dist/domain/table/design/validate-nested-table-insert.d.ts +3 -0
  82. package/dist/domain/table/index.d.ts +3 -0
  83. package/dist/domain/table/registry.d.ts +5 -2
  84. package/dist/domain/table/runtime/option-fill-updates.d.ts +6 -0
  85. package/dist/domain/table/runtime/table-runtime.d.ts +3 -0
  86. package/dist/domain/table/types.d.ts +13 -3
  87. package/dist/index.es.js +32488 -10167
  88. package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +10 -0
  89. package/dist/runtime/canvas/doc-layout.vue.d.ts +1 -2
  90. package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +6 -0
  91. package/dist/runtime/canvas/print-capture.d.ts +12 -0
  92. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +10 -2
  93. package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +1 -0
  94. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +6 -0
  95. package/dist/runtime/canvas/table/shared/table-lines.vue.d.ts +1 -0
  96. package/dist/runtime/canvas/table/table-presentation.d.ts +16 -0
  97. package/dist/runtime/canvas/table/utils/paint-table-borders.d.ts +4 -0
  98. package/dist/runtime/designer/ribbon/svg/table-border-icon.vue.d.ts +6 -0
  99. package/dist/runtime/interface/computed.d.ts +1 -1
  100. package/dist/runtime/interface/sterilization-date.d.ts +9 -0
  101. package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +5 -0
  102. package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +2 -0
  103. package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +3 -0
  104. package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +17 -0
  105. package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +7 -0
  106. package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +30 -0
  107. package/dist/runtime/renderer/dialogs/seal/types.d.ts +17 -0
  108. package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +27 -0
  109. package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +27 -0
  110. package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +30 -0
  111. package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +29 -0
  112. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +54 -1
  113. package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +1 -0
  114. package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -0
  115. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +17 -0
  116. package/dist/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.d.ts +7 -0
  117. package/dist/runtime/validation/layout.d.ts +20 -0
  118. package/dist/runtime/validation/state.d.ts +7 -3
  119. package/dist/runtime/validation/useFormValidator.d.ts +4 -0
  120. package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +3 -0
  121. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +1 -1
  122. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -0
  123. package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +7 -0
  124. package/dist/sdk/engine/index.d.ts +3 -1
  125. package/dist/sdk/setup.d.ts +6 -0
  126. package/dist/sdk/types/index.d.ts +8 -0
  127. package/dist/sdk/types/placed-form-field.d.ts +6 -0
  128. package/dist/sdk/vue/index.d.ts +6 -0
  129. package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +7 -0
  130. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
  131. package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +2 -0
  132. package/dist/suites/edhr/manifest/field/business/product-release-qty-manifest.d.ts +2 -0
  133. package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +2 -0
  134. package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +2 -0
  135. package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +2 -0
  136. package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +2 -0
  137. package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +2 -0
  138. package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +2 -0
  139. package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +2 -0
  140. package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
  141. package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +1 -0
  142. package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +8 -3
  143. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +19 -0
  144. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +16 -0
  145. package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +11 -0
  146. package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +8 -0
  147. package/dist/suites/edhr/panel-schema/rule/types.d.ts +3 -0
  148. package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +12 -0
  149. package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +34 -0
  150. package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -0
  151. package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
  152. package/dist/utils/adapters/ServiceUtil.d.ts +9 -0
  153. package/dist/utils/pdf/collect-seal-draw-ops.d.ts +4 -0
  154. package/dist/word.css +1560 -1181
  155. package/package.json +4 -4
@@ -9,6 +9,10 @@ export interface SetupPlatformAdaptersOptions {
9
9
  interceptors?: any;
10
10
  /** 获取应用信息/默认内置参数 */
11
11
  getAppInfo: any;
12
+ /** 获取业务配置,供填报及模拟填报的 SOP 选项过滤使用。 */
13
+ getBusinessSetting?: () => Promise<{
14
+ enableSopDocApprove?: number | boolean;
15
+ }>;
12
16
  /** 文件解析方法 */
13
17
  parseFile: any;
14
18
  /** 文件上传方法 */
@@ -17,6 +21,8 @@ export interface SetupPlatformAdaptersOptions {
17
21
  formulaIdentify?: any;
18
22
  /** 公式计算(可选) */
19
23
  formulaCalculate?: any;
24
+ /** 注入业务函数 */
25
+ formulaRegister?: any;
20
26
  /** 触发主工程交互(可选) */
21
27
  triggerHandler?: TriggerHandler;
22
28
  /** 需要安装的 Suite 插件列表 */
@@ -1,3 +1,4 @@
1
+ import { DataSourceManager, DataSourceManagerOptions } from '@gct-paas/form-base';
1
2
  import { ComputedRef, Ref, ShallowRef } from 'vue';
2
3
  import { DocModeType, IPaperInfo } from '../../core/constants';
3
4
  import { DocModel } from '../../core/model';
@@ -12,6 +13,7 @@ export type { DocUnsavedChanges, DocGetUnsavedChangesOptions, } from '../doc-run
12
13
  export type { DesignerValidationError, DesignerValidationResult, DesignerValidationSource, } from './designer-validation';
13
14
  export type { FieldModelQuery } from './field-model-query';
14
15
  export type { IActionButtonItem } from './action-button';
16
+ export type { PlacedFormField } from './placed-form-field';
15
17
  /** 设备配置信息 */
16
18
  export interface IDeviceConfig {
17
19
  /** 默认的用户id */
@@ -193,6 +195,8 @@ export interface DocRuntimeMetaHandleInfo {
193
195
  }
194
196
  /** 文档运行时元信息(接口返回字段 + 业务拼接字段) */
195
197
  export interface DocRuntimeMeta extends OnlineFormInstanceResponse, OnlineFormTmplResponse {
198
+ /** detail 返回的交易实例 id,供检验数量等业务字段查询使用 */
199
+ txnInstId?: string;
196
200
  /** 业务拼接的运行时处理信息 */
197
201
  handleInfo: DocRuntimeMetaHandleInfo;
198
202
  /**
@@ -210,6 +214,8 @@ export interface DocRuntimeMeta extends OnlineFormInstanceResponse, OnlineFormTm
210
214
  * useWord 返回的运行时对象(SDK 公共面)
211
215
  */
212
216
  export interface WordRuntime {
217
+ /** 填报实例的数源管理器,支持 query(key) 和读取 states。 */
218
+ dataSourceManager: ShallowRef<DataSourceManager | undefined>;
213
219
  /**
214
220
  * 对外暴露的文档控制器引用。
215
221
  *
@@ -254,6 +260,8 @@ export interface WordPrintCaptureOptions {
254
260
  }
255
261
  /** useWord 配置选项 */
256
262
  export interface UseWordOptions {
263
+ /** 表单、实体、业务数源等宿主查询实现。 */
264
+ dataSourceAdapters?: DataSourceManagerOptions['adapters'];
257
265
  /** 工厂类型:template(模板) | instance(实例) */
258
266
  factoryType: 'template' | 'instance';
259
267
  /** 主模型 key */
@@ -0,0 +1,6 @@
1
+ export interface PlacedFormField {
2
+ field: string;
3
+ fieldType: string;
4
+ model: string;
5
+ subFieldKey?: string;
6
+ }
@@ -5,3 +5,9 @@
5
5
  export { default as DocDesignLayout } from './layouts/doc-design-layout.vue';
6
6
  export { default as DocRenderLayout } from './layouts/doc-render-layout.vue';
7
7
  export { GctLayout } from '../../base';
8
+ /**
9
+ * 共用数据获取列表:设计配置与运行时查看、手动加载
10
+ * word, excel 都暴露出去了,gct-dhr-kit 可从中任用一个
11
+ */
12
+ export { DataSources } from '@gct-paas/form-base';
13
+ export type { DataSourceManager } from '@gct-paas/form-base';
@@ -0,0 +1,7 @@
1
+ import { ImageWidget } from '../../../core/view/runs/ImageWidget';
2
+ type __VLS_Props = {
3
+ widget: ImageWidget;
4
+ modelId?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -84,10 +84,10 @@ export declare const styleSizeDefaultProps: {
84
84
  /** 组件默认高度 */
85
85
  readonly height: 68;
86
86
  };
87
- /** 签名/报工人等:与无图兜底画布同比例(≈1.76:1),默认略放大便于阅读 */
87
+ /** 签名/报工人等:与无图兜底画布同比例(≈1.76:1) */
88
88
  export declare const signStyleSizeDefaultProps: {
89
- readonly width: 180;
90
- readonly height: 102;
89
+ readonly width: 120;
90
+ readonly height: 68;
91
91
  };
92
92
  export declare const labelPriorityConfig: PriorityRule;
93
93
  export declare const labelResolveDateConfig: ResolveRule;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -16,6 +16,7 @@ export declare function registryPanelSchemas(): {
16
16
  'material-consume-table.basic': import('../../..').PanelSchema;
17
17
  'material-balance-table.basic': import('../../..').PanelSchema;
18
18
  'material-requisition-table.basic': import('../../..').PanelSchema;
19
+ 'material-substitution-table.basic': import('../../..').PanelSchema;
19
20
  'fixed-table.basic': import('../../..').PanelSchema;
20
21
  'check-table.basic': import('../../..').PanelSchema;
21
22
  'data-group.basic': {
@@ -0,0 +1 @@
1
+ export declare const schema: import('../../../..').PanelSchema;
@@ -1,6 +1,11 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1
+ type __VLS_Props = {
2
+ label?: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2
5
  click: () => any;
3
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
4
7
  onClick?: (() => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
8
+ }>, {
9
+ label: string;
10
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
6
11
  export default _default;
@@ -0,0 +1,19 @@
1
+ import { DecisionRuleCondition } from '../types';
2
+ import { DecisionRuleFieldOption } from '../utils/decision-rule';
3
+ type __VLS_Props = {
4
+ condition: DecisionRuleCondition;
5
+ fields: DecisionRuleFieldOption[];
6
+ usedFieldValues: string[];
7
+ removable: boolean;
8
+ error?: boolean;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ remove: () => any;
12
+ add: () => any;
13
+ change: () => any;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onRemove?: (() => any) | undefined;
16
+ onAdd?: (() => any) | undefined;
17
+ onChange?: (() => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ export default _default;
@@ -0,0 +1,16 @@
1
+ import { DecisionRuleGroup } from '../types';
2
+ import { DecisionRuleFieldOption } from '../utils/decision-rule';
3
+ type __VLS_Props = {
4
+ group: DecisionRuleGroup;
5
+ fields: DecisionRuleFieldOption[];
6
+ usedFieldValues: string[];
7
+ invalidKeys: Set<string>;
8
+ };
9
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ remove: () => any;
11
+ change: () => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
13
+ onRemove?: (() => any) | undefined;
14
+ onChange?: (() => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { Doc } from '../../../../../core';
2
+ import { InspectionDecisionRule } from '../types';
3
+ type __VLS_Props = {
4
+ item: InspectionDecisionRule;
5
+ doc: Doc;
6
+ };
7
+ declare function onSave(): Promise<InspectionDecisionRule | null>;
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
9
+ onSave: typeof onSave;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { Doc } from '../../../../../core';
2
+ import { InspectionDecisionRule } from '../types';
3
+ interface InspectionDecisionModalContext {
4
+ item: InspectionDecisionRule;
5
+ doc: Doc;
6
+ }
7
+ export declare function openInspectionDecisionModal(ctx: InspectionDecisionModalContext): Promise<InspectionDecisionRule | null>;
8
+ export {};
@@ -1,4 +1,6 @@
1
1
  import { Doc } from '../../../../core';
2
+ import { InspectionDecisionRule } from '../../../../domain/document-rule';
3
+ export type { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRelation, DecisionRuleRightValue, DecisionRuleValueType, InspectionDecisionRule, } from '../../../../domain/document-rule';
2
4
  export type UnitConversionFieldKey = 'sourceUnit' | 'targetUnit';
3
5
  /** 字段映射行 */
4
6
  export interface RuleFieldMap {
@@ -35,6 +37,7 @@ export interface BaseRuleItem {
35
37
  }
36
38
  export interface DocumentRulesConfig {
37
39
  unitConversionRules: BaseRuleItem[];
40
+ inspectionDecisionRule: InspectionDecisionRule;
38
41
  }
39
42
  export type RulePanelRuleKind = 'barcodeParsing' | 'unitConversion';
40
43
  export type RulePanelModalMode = 'create' | 'edit';
@@ -22,6 +22,12 @@ export declare function useRulesConfig(): {
22
22
  required?: boolean | undefined;
23
23
  }[] | undefined;
24
24
  }[];
25
+ inspectionDecisionRule: {
26
+ dataRuleEnabled: boolean;
27
+ dataRule: string;
28
+ dataRuleConfig: string;
29
+ prompt: string;
30
+ };
25
31
  }, DocumentRulesConfig | {
26
32
  unitConversionRules: {
27
33
  id: string;
@@ -44,5 +50,11 @@ export declare function useRulesConfig(): {
44
50
  required?: boolean | undefined;
45
51
  }[] | undefined;
46
52
  }[];
53
+ inspectionDecisionRule: {
54
+ dataRuleEnabled: boolean;
55
+ dataRule: string;
56
+ dataRuleConfig: string;
57
+ prompt: string;
58
+ };
47
59
  }>;
48
60
  };
@@ -0,0 +1,34 @@
1
+ import { Doc } from '../../../../../core';
2
+ import { DecisionRuleCondition, DecisionRuleField, DecisionRuleGroup, DecisionRuleRightValue, InspectionDecisionRule } from '../types';
3
+ export declare const DECISION_RULE_FIELD_TYPES: Set<string>;
4
+ export declare const NUMBER_DECISION_FIELD_TYPES: Set<string>;
5
+ export declare const DECISION_RULE_OPERATORS: Record<'number' | 'enum' | 'boolean', Array<{
6
+ label: string;
7
+ value: string;
8
+ }>>;
9
+ export interface DecisionRuleFieldOption extends DecisionRuleField {
10
+ label: string;
11
+ value: string;
12
+ group: string;
13
+ icon?: string;
14
+ iconVersion?: 'v1' | 'v2';
15
+ }
16
+ /** 从编辑态字段选项中提取判定规则需要保存的字段信息。 */
17
+ export declare function toStoredDecisionRuleField(field: DecisionRuleField): DecisionRuleField;
18
+ /** 拉取并整理主表、子表、对象字段。 */
19
+ export declare function resolveDecisionRuleFields(doc: Doc): Promise<DecisionRuleFieldOption[]>;
20
+ export declare function getDecisionRuleOperators(type?: string): {
21
+ label: string;
22
+ value: string;
23
+ }[];
24
+ export declare function areDecisionFieldsCompatible(left?: DecisionRuleField, right?: DecisionRuleField): boolean;
25
+ export declare function createDecisionRuleCondition(pid: string, level: number): DecisionRuleCondition;
26
+ export declare function createDecisionRuleGroup(pid?: string, level?: number, withCondition?: boolean): DecisionRuleGroup;
27
+ export declare function parseDecisionRuleTree(dataRuleConfig?: string): DecisionRuleGroup;
28
+ /** 用最新元数据补齐历史 DataRulesContainer 配置缺少的 scope / 字段右值信息。 */
29
+ export declare function hydrateDecisionRuleTreeFields(root: DecisionRuleGroup, fields: DecisionRuleFieldOption[]): void;
30
+ export declare function getConditionQueryKey(condition: DecisionRuleCondition): string;
31
+ export declare function hasDecisionRuleValue(value?: DecisionRuleRightValue): boolean;
32
+ export declare function validateDecisionRuleTree(root: DecisionRuleGroup): Set<string>;
33
+ /** 生成与 DataRulesContainer 一致的条件查询数据。 */
34
+ export declare function serializeDecisionRule(root: DecisionRuleGroup, prompt: string, enabled?: boolean): InspectionDecisionRule;
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  expr?: string;
5
5
  exprEcho?: string;
6
6
  formulaFieldOptions?: IdentifierGroupInterface[];
7
+ functions?: any[];
7
8
  };
8
9
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
10
  "update:expr": (expr: string) => any;
@@ -0,0 +1,3 @@
1
+ import { Doc } from '../../../../core';
2
+ /** 指定业务表内的字段不显示默认值配置,主表及普通数据表继续显示。 */
3
+ export declare function isDefaultValueHiddenInBusinessTable(doc: Doc | null | undefined, subFieldKey?: string): boolean;
@@ -1,4 +1,7 @@
1
1
  type GetAppInfoMethod = () => Promise<any>;
2
+ type GetBusinessSettingMethod = () => Promise<{
3
+ enableSopDocApprove?: number | boolean;
4
+ }>;
2
5
  type ParseFileResult = {
3
6
  data?: string;
4
7
  } | string;
@@ -13,6 +16,7 @@ type FormulaIdentify = (expr: string) => string[];
13
16
  type FormulaCalculate = (expr: string, values: Record<string, any>) => Promise<any>;
14
17
  interface ServiceUtilHandlers {
15
18
  getAppInfo?: GetAppInfoMethod;
19
+ getBusinessSetting?: GetBusinessSettingMethod;
16
20
  parseFile?: ParseFileMethod;
17
21
  uploadFile?: UploadFileMethod;
18
22
  formulaIdentify?: FormulaIdentify;
@@ -21,6 +25,7 @@ interface ServiceUtilHandlers {
21
25
  declare class ServiceUtil {
22
26
  private static instance;
23
27
  private _getAppInfo?;
28
+ private _getBusinessSetting?;
24
29
  private _parseFileImpl?;
25
30
  private _uploadFileImpl?;
26
31
  private _formulaIdentifyImpl?;
@@ -39,6 +44,10 @@ declare class ServiceUtil {
39
44
  * 获取应用信息
40
45
  */
41
46
  getAppInfo(): Promise<any>;
47
+ /** 由宿主加载业务配置,未注入时保持原有查询行为。 */
48
+ getBusinessSetting(): Promise<{
49
+ enableSopDocApprove?: number | boolean;
50
+ }>;
42
51
  /**
43
52
  * 解析文件
44
53
  * @param file - 文件对象
@@ -0,0 +1,4 @@
1
+ import { Doc } from '../../core/view/Doc';
2
+ import { ImageWidget } from '../../core/view/runs/ImageWidget';
3
+ import { PdfDrawOp } from './types';
4
+ export declare function collectSealDrawOps(widget: ImageWidget, doc: Doc): Promise<PdfDrawOp[]>;