@gct-paas/word 0.1.62-beta.4 → 0.1.62-patch.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/svgs/table/index.d.ts +0 -2
  3. package/dist/base/button/src/button.type.d.ts +1 -1
  4. package/dist/base/form-item/src/form-item.vue.d.ts +2 -5
  5. package/dist/base/modal/src/ModalRoot.vue.d.ts +0 -2
  6. package/dist/base/modal/src/modal.type.d.ts +0 -4
  7. package/dist/base/select/src/basic-select.vue.d.ts +0 -5
  8. package/dist/base/utils/image-size-util.d.ts +10 -4
  9. package/dist/core/command/types.d.ts +2 -10
  10. package/dist/core/constants/index.d.ts +7 -10
  11. package/dist/core/data/DataManager.d.ts +0 -2
  12. package/dist/core/data/derived-fields.d.ts +0 -17
  13. package/dist/core/data/enrichers/build-field-enrichers.d.ts +4 -0
  14. package/dist/core/data/pipeline-logger.d.ts +1 -1
  15. package/dist/core/data/post-change-pipeline.d.ts +0 -5
  16. package/dist/core/event/handlers/InteractionHandler.d.ts +0 -1
  17. package/dist/core/index.d.ts +1 -1
  18. package/dist/core/interaction/InteractionController.d.ts +0 -5
  19. package/dist/core/interaction/types.d.ts +1 -10
  20. package/dist/core/interaction/useInteraction.d.ts +0 -7
  21. package/dist/core/model/document/WsecPr.d.ts +1 -14
  22. package/dist/core/model/document/wtcRegionRef.d.ts +2 -2
  23. package/dist/core/model/logic/subtable/repeating/MaterialConsumeTableRegion.d.ts +0 -3
  24. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -14
  25. package/dist/core/utils/unit-converter-util.d.ts +0 -2
  26. package/dist/core/view/Doc.d.ts +1 -5
  27. package/dist/core/view/Section.d.ts +7 -16
  28. package/dist/core/view/runs/ImageWidget.d.ts +4 -0
  29. package/dist/domain/active/active-types.d.ts +2 -12
  30. package/dist/domain/constants/field-state.d.ts +0 -9
  31. package/dist/domain/field/field-props-schema-type.d.ts +2 -2
  32. package/dist/domain/field/field-type.d.ts +1 -29
  33. package/dist/domain/table/business/material/material-balance/index.d.ts +0 -1
  34. package/dist/domain/table/business/material/material-balance/profile/index.d.ts +0 -1
  35. package/dist/domain/table/business/material/material-consume/profile/index.d.ts +0 -1
  36. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +3 -0
  37. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
  38. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +14 -10
  39. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/index.d.ts +0 -1
  40. package/dist/domain/table/design/autofill-expander.d.ts +1 -3
  41. package/dist/domain/table/runtime/api/biz-service-api.d.ts +0 -2
  42. package/dist/domain/table/runtime/engines/init-load-engine.d.ts +0 -1
  43. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +2 -0
  44. package/dist/domain/table/runtime/engines/remote-sync-engine.d.ts +1 -1
  45. package/dist/domain/table/runtime/runtime-handlers.d.ts +11 -15
  46. package/dist/domain/table/runtime/table-runtime-context.d.ts +4 -4
  47. package/dist/domain/table/runtime/table-runtime-utils.d.ts +0 -8
  48. package/dist/domain/table/runtime/table-runtime.d.ts +1 -11
  49. package/dist/domain/table/types.d.ts +4 -53
  50. package/dist/index.es.js +174879 -141506
  51. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +1 -12
  52. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
  53. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +0 -7
  54. package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +3 -5
  55. package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +18 -18
  56. package/dist/runtime/factories/createValidateFactory.d.ts +0 -2
  57. package/dist/runtime/factories/useFormValidator.d.ts +1 -9
  58. package/dist/runtime/interface/computed.d.ts +2 -14
  59. package/dist/runtime/interface/fetchers.d.ts +6 -28
  60. package/dist/runtime/interface/render.d.ts +24 -0
  61. package/dist/runtime/renderer/dialogs/signature/logic.d.ts +0 -2
  62. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +0 -2
  63. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/rdo-ref.d.ts +0 -17
  64. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -1
  65. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +2 -3
  66. package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +0 -3
  67. package/dist/sdk/doc-runtime/factories/runtime-json-builder.d.ts +2 -2
  68. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +12 -1
  69. package/dist/sdk/engine/index.d.ts +2 -2
  70. package/dist/sdk/types/index.d.ts +1 -16
  71. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +5 -7
  72. package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +1 -3
  73. package/dist/suites/edhr/panel-schema/index.d.ts +0 -8
  74. package/dist/{domain/table/business/material/material-balance/components/material-consume-modal.vue.d.ts → suites/edhr/panel-schema/warehouse-allocate-table/WarehouseAllocateTablePanel.vue.d.ts} +4 -2
  75. package/dist/suites/edhr/panel-schema/warehouse-inventory-table/WarehouseInventoryTablePanel.vue.d.ts +8 -0
  76. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/types.d.ts +0 -11
  77. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +0 -2
  78. package/dist/types/material.type.d.ts +0 -10
  79. package/dist/utils/TriggerUtil.d.ts +1 -1
  80. package/dist/utils/composables/usePagesToPdf.d.ts +2 -2
  81. package/dist/utils/func/core.d.ts +0 -4
  82. package/dist/utils/func/form.d.ts +0 -8
  83. package/dist/word.css +3907 -4913
  84. package/package.json +4 -2
  85. package/dist/assets/svgs/toolkit/index.d.ts +0 -10
  86. package/dist/core/command/commands/SetWsecSize.d.ts +0 -10
  87. package/dist/core/data/enrichers/path-templates.d.ts +0 -2
  88. package/dist/core/data/enrichers/subtable-path.d.ts +0 -15
  89. package/dist/core/widget/e-sop-view.d.ts +0 -4
  90. package/dist/domain/field/index.d.ts +0 -1
  91. package/dist/domain/field/of-inst-num/index.d.ts +0 -1
  92. package/dist/domain/field/of-inst-num/of-inst-num-enricher.d.ts +0 -23
  93. package/dist/domain/table/business/material/material-balance/actions/fetch-material-consume-data.d.ts +0 -7
  94. package/dist/domain/table/business/material/material-balance/actions/index.d.ts +0 -3
  95. package/dist/domain/table/business/material/material-balance/actions/open-consume-modal.d.ts +0 -7
  96. package/dist/domain/table/business/material/material-balance/profile/field-keys.d.ts +0 -25
  97. package/dist/domain/table/business/material/material-balance/profile/fields.d.ts +0 -2
  98. package/dist/domain/table/business/material/material-balance/runtime/register-handlers.d.ts +0 -1
  99. package/dist/domain/table/business/material/material-balance/runtime/use-consume-modal-cleanup.d.ts +0 -3
  100. package/dist/domain/table/business/material/material-consume/runtime/register-handlers.d.ts +0 -1
  101. package/dist/domain/table/business/material/material-consume/runtime/row-change-handlers.d.ts +0 -2
  102. package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
  103. package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -2
  104. package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +0 -7
  105. package/dist/domain/table/business/preprocess/pretreatment-list/index.d.ts +0 -2
  106. package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +0 -45
  107. package/dist/domain/table/business/preprocess/pretreatment-list/profile/fields.d.ts +0 -2
  108. package/dist/domain/table/business/preprocess/pretreatment-list/profile/index.d.ts +0 -3
  109. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/register-handlers.d.ts +0 -1
  110. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
  111. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +0 -25
  112. package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
  113. package/dist/domain/table/business/shared/scan-action.d.ts +0 -25
  114. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
  115. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -2
  116. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +0 -7
  117. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/index.d.ts +0 -2
  118. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -28
  119. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/fields.d.ts +0 -2
  120. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.d.ts +0 -3
  121. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/register-handlers.d.ts +0 -1
  122. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
  123. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +0 -5
  124. package/dist/domain/table/business/warehouse/warehouse-in-out/profile/field-keys.d.ts +0 -8
  125. package/dist/domain/table/runtime/row-change-utils.d.ts +0 -25
  126. package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +0 -36
  127. package/dist/runtime/designer/toolkit/svg/toolkit-svg-icon.vue.d.ts +0 -9
  128. package/dist/runtime/interface/context-defaults.d.ts +0 -9
  129. package/dist/runtime/renderer/dialogs/signature/validate-signature-config.d.ts +0 -5
  130. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +0 -22
  131. package/dist/runtime/renderer/dropdowns/components/tables/strategy/merge-select-source.d.ts +0 -10
  132. package/dist/suites/edhr/manifest/field/business/of-inst-num-manifest.d.ts +0 -2
  133. package/dist/suites/edhr/manifest/field/logic/e-sop-manifest.d.ts +0 -2
  134. package/dist/suites/edhr/manifest/field/logic/e-sop-version-manifest.d.ts +0 -2
  135. package/dist/suites/edhr/manifest/field/trace/material-container-manifest.d.ts +0 -2
  136. package/dist/suites/edhr/manifest/field/trace/production-container-manifest.d.ts +0 -2
  137. package/dist/suites/edhr/manifest/field/trace/shopfloor-manifest.d.ts +0 -2
  138. package/dist/suites/edhr/manifest/field/trace/sterilization-container-manifest.d.ts +0 -2
  139. package/dist/suites/edhr/panel-schema/entrust-steril-batch-list-table/entrust-steril-batch-list-table.basic.d.ts +0 -1
  140. package/dist/suites/edhr/panel-schema/material-balance-table/material-balance-table.basic.d.ts +0 -1
  141. package/dist/suites/edhr/panel-schema/paper/modules/page-size-config.vue.d.ts +0 -2
  142. package/dist/suites/edhr/panel-schema/paper/modules/signature-config.vue.d.ts +0 -2
  143. package/dist/suites/edhr/panel-schema/paper/modules/table-setting-config.vue.d.ts +0 -2
  144. package/dist/suites/edhr/panel-schema/pretreatment-list-table/pretreatment-list-table.basic.d.ts +0 -1
  145. package/dist/suites/edhr/panel-schema/rule/RulePanel.vue.d.ts +0 -2
  146. package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +0 -6
  147. package/dist/suites/edhr/panel-schema/rule/components/field-map-row.vue.d.ts +0 -35
  148. package/dist/suites/edhr/panel-schema/rule/components/rule-item-card.vue.d.ts +0 -12
  149. package/dist/suites/edhr/panel-schema/rule/components/rule-section.vue.d.ts +0 -11
  150. package/dist/suites/edhr/panel-schema/rule/constants/builtin-field-maps.d.ts +0 -10
  151. package/dist/suites/edhr/panel-schema/rule/modals/open-rule-modal.d.ts +0 -2
  152. package/dist/suites/edhr/panel-schema/rule/modals/unit-field-map-modal.vue.d.ts +0 -11
  153. package/dist/suites/edhr/panel-schema/rule/rule.basic.d.ts +0 -5
  154. package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -47
  155. package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -48
  156. package/dist/suites/edhr/panel-schema/rule/utils/rule-field-map.d.ts +0 -29
  157. package/dist/suites/edhr/panel-schema/rule/utils/uom-convert-rule.d.ts +0 -26
  158. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +0 -15
  159. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-node.vue.d.ts +0 -19
  160. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +0 -26
  161. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-utils.d.ts +0 -22
  162. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/from-field-tree-utils.d.ts +0 -5
  163. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/to-field-tree-utils.d.ts +0 -19
  164. package/dist/suites/shared/panel/modules/online-form-tmpl-module/online-form-tmpl-utils.d.ts +0 -3
@@ -1,35 +0,0 @@
1
- import { FieldTreeNode } from '../../../../shared/panel/config/editor/ref-autofill-editor/field-tree-utils';
2
- type __VLS_Props = {
3
- /** 左侧标题:规则表达式值 / 源单位 / 目标单位 */
4
- leftTitle?: string;
5
- ruleExpressionLabel?: string;
6
- formField?: string;
7
- formModelKey?: string;
8
- formSubModel?: number;
9
- formSubFieldKey?: string;
10
- formFieldLabel?: string;
11
- treeData?: FieldTreeNode[];
12
- /** 写死字段:右侧只读展示 */
13
- fixed?: boolean;
14
- required?: boolean;
15
- error?: string;
16
- };
17
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
18
- change: () => any;
19
- "update:formField": (value?: string | undefined) => any;
20
- "update:formModelKey": (value?: string | undefined) => any;
21
- "update:formSubModel": (value?: number | undefined) => any;
22
- "update:formSubFieldKey": (value?: string | undefined) => any;
23
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onChange?: (() => any) | undefined;
25
- "onUpdate:formField"?: ((value?: string | undefined) => any) | undefined;
26
- "onUpdate:formModelKey"?: ((value?: string | undefined) => any) | undefined;
27
- "onUpdate:formSubModel"?: ((value?: number | undefined) => any) | undefined;
28
- "onUpdate:formSubFieldKey"?: ((value?: string | undefined) => any) | undefined;
29
- }>, {
30
- required: boolean;
31
- fixed: boolean;
32
- treeData: FieldTreeNode[];
33
- leftTitle: string;
34
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
35
- export default _default;
@@ -1,12 +0,0 @@
1
- import { BaseRuleItem } from '../types';
2
- type __VLS_Props = {
3
- item: BaseRuleItem;
4
- };
5
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
- remove: () => any;
7
- action: () => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onRemove?: (() => any) | undefined;
10
- onAction?: (() => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
12
- export default _default;
@@ -1,11 +0,0 @@
1
- import { BaseRuleItem, RulePanelRuleKind } from '../types';
2
- type __VLS_Props = {
3
- kind: RulePanelRuleKind;
4
- items: BaseRuleItem[];
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- "update:items": (items: BaseRuleItem[]) => any;
8
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- "onUpdate:items"?: ((items: BaseRuleItem[]) => any) | undefined;
10
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
- export default _default;
@@ -1,10 +0,0 @@
1
- import { RuleFieldMap, UnitConversionFieldKey } from '../types';
2
- export declare const SOURCE_UNIT_KEY: UnitConversionFieldKey;
3
- export declare const TARGET_UNIT_KEY: UnitConversionFieldKey;
4
- export declare const EXPR_FIELD_TITLE = "\u89C4\u5219\u8868\u8FBE\u5F0F\u503C";
5
- export declare const FORM_FIELD_TITLE = "\u8868\u5355\u5B57\u6BB5";
6
- /** 单位转换规则固定行:源单位 / 目标单位 */
7
- export declare const UNIT_CONVERSION_UOM_FIELDS: RuleFieldMap[];
8
- export declare const UNIT_CONVERSION_FIELD_KEYS: Set<UnitConversionFieldKey>;
9
- /** expr 字段标识 → 展示文案 */
10
- export declare const EXPR_FIELD_LABELS: Record<string, string>;
@@ -1,2 +0,0 @@
1
- import { BaseRuleItem, RulePanelModalContext } from '../types';
2
- export declare function openRuleModal(ctx: RulePanelModalContext): Promise<Partial<BaseRuleItem> | null>;
@@ -1,11 +0,0 @@
1
- import { Doc } from '../../../../../core';
2
- import { BaseRuleItem } from '../types';
3
- type __VLS_Props = {
4
- item: BaseRuleItem;
5
- doc: Doc;
6
- };
7
- declare function onSave(): Promise<Partial<BaseRuleItem> | 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;
@@ -1,5 +0,0 @@
1
- export declare const schema: {
2
- key: string;
3
- title: string;
4
- render: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
5
- };
@@ -1,47 +0,0 @@
1
- import { Doc } from '../../../../core';
2
- export type UnitConversionFieldKey = 'sourceUnit' | 'targetUnit';
3
- /** 字段映射行 */
4
- export interface RuleFieldMap {
5
- key: UnitConversionFieldKey | string;
6
- /** 左侧表单项标题 */
7
- title: string;
8
- /** 左侧只读展示值 */
9
- label?: string;
10
- /** 源/目标单位 id,或 expr 字段标识 */
11
- value?: string;
12
- /** 表单字段 key */
13
- formField?: string;
14
- /** 表单字段所属模型 key */
15
- formModelKey?: string;
16
- /** 0 / undefined = 主表;1 = 子表 */
17
- formSubModel?: number;
18
- /** 子表 master_slave 字段 key */
19
- formSubFieldKey?: string;
20
- /** 写死字段在右侧的展示名 */
21
- formFieldLabel?: string;
22
- /** 是否为写死字段(输入值 / 源单位 / 目标单位) */
23
- fixed?: boolean;
24
- required?: boolean;
25
- }
26
- export interface BaseRuleItem {
27
- id: string;
28
- ruleId?: string;
29
- ruleName?: string;
30
- expressionStr?: string;
31
- productId?: string;
32
- productName?: string;
33
- /** 字段映射 */
34
- fieldMaps?: RuleFieldMap[];
35
- }
36
- export interface DocumentRulesConfig {
37
- unitConversionRules: BaseRuleItem[];
38
- }
39
- export type RulePanelRuleKind = 'barcodeParsing' | 'unitConversion';
40
- export type RulePanelModalMode = 'create' | 'edit';
41
- export interface RulePanelModalContext {
42
- kind: RulePanelRuleKind;
43
- mode: RulePanelModalMode;
44
- item?: BaseRuleItem;
45
- doc: Doc;
46
- }
47
- export declare const createEmptyRulesConfig: () => DocumentRulesConfig;
@@ -1,48 +0,0 @@
1
- import { DocumentRulesConfig } from './types';
2
- export declare function useRulesConfig(): {
3
- formState: import('vue').Ref<{
4
- unitConversionRules: {
5
- id: string;
6
- ruleId?: string | undefined;
7
- ruleName?: string | undefined;
8
- expressionStr?: string | undefined;
9
- productId?: string | undefined;
10
- productName?: string | undefined;
11
- fieldMaps?: {
12
- key: import('./types').UnitConversionFieldKey | string;
13
- title: string;
14
- label?: string | undefined;
15
- value?: string | undefined;
16
- formField?: string | undefined;
17
- formModelKey?: string | undefined;
18
- formSubModel?: number | undefined;
19
- formSubFieldKey?: string | undefined;
20
- formFieldLabel?: string | undefined;
21
- fixed?: boolean | undefined;
22
- required?: boolean | undefined;
23
- }[] | undefined;
24
- }[];
25
- }, DocumentRulesConfig | {
26
- unitConversionRules: {
27
- id: string;
28
- ruleId?: string | undefined;
29
- ruleName?: string | undefined;
30
- expressionStr?: string | undefined;
31
- productId?: string | undefined;
32
- productName?: string | undefined;
33
- fieldMaps?: {
34
- key: import('./types').UnitConversionFieldKey | string;
35
- title: string;
36
- label?: string | undefined;
37
- value?: string | undefined;
38
- formField?: string | undefined;
39
- formModelKey?: string | undefined;
40
- formSubModel?: number | undefined;
41
- formSubFieldKey?: string | undefined;
42
- formFieldLabel?: string | undefined;
43
- fixed?: boolean | undefined;
44
- required?: boolean | undefined;
45
- }[] | undefined;
46
- }[];
47
- }>;
48
- };
@@ -1,29 +0,0 @@
1
- import { Doc } from '../../../../../core';
2
- import { FieldTreeNode, FieldTreeTargetMeta } from '../../../../shared/panel/config/editor/ref-autofill-editor/field-tree-utils';
3
- import { RuleFieldMap } from '../types';
4
- /** 树选临时编码 */
5
- export declare function encodeFormFieldSelectValue(map: Pick<RuleFieldMap, 'formField' | 'formModelKey' | 'formSubModel' | 'formSubFieldKey'>): string | undefined;
6
- /** 主表 + 物料消耗子表字段树 */
7
- export declare function resolveParamFieldTree(doc: Doc): FieldTreeNode[];
8
- /**
9
- * 参数值已选子表时锁定:仅保留主表 + 该子表。
10
- * 未选子表字段时展示全部。
11
- */
12
- export declare function filterParamFieldTree(nodes: FieldTreeNode[], options: {
13
- mainModelKey: string;
14
- lockedSubFieldKey?: string;
15
- }): FieldTreeNode[];
16
- /** 从参数值已选字段中解析锁定的子表字段 key;仅主表则不锁定 */
17
- export declare function resolveLockedSubFieldKey(fieldMaps: RuleFieldMap[]): string | undefined;
18
- /** 清除与锁定子表冲突的参数值选择(其他子表字段) */
19
- export declare function clearIncompatibleParamFormFields(fieldMaps: RuleFieldMap[], lockedSubFieldKey?: string): void;
20
- export declare function clearFormFieldSelection(item: RuleFieldMap): void;
21
- export declare function applyFormFieldSelection(item: RuleFieldMap, meta?: FieldTreeTargetMeta): void;
22
- /** 按选中规则重建固定映射行 */
23
- export declare function buildFixedFieldMaps(options: {
24
- expr?: string;
25
- sourceUomId?: string;
26
- targetUomId?: string;
27
- sourceUomLabel?: string;
28
- targetUomLabel?: string;
29
- }): RuleFieldMap[];
@@ -1,26 +0,0 @@
1
- import { DropdownOption } from '../../../../../base';
2
- /** 单位转换规则模型 */
3
- export declare const UOM_CONVERT_RULE_MODEL_KEY = "em_uom_convert_rule";
4
- /** 物料(产品)RDO 模型 */
5
- export declare const PRODUCT_MODEL_KEY = "em_product";
6
- /** 单位模型 */
7
- export declare const UOM_MODEL_KEY = "em_uom";
8
- export interface UomConvertRuleItem {
9
- ruleName: string;
10
- expr: string;
11
- desc: string;
12
- sourceUomId: string;
13
- targetUomId: string;
14
- }
15
- /** 分页拉取单位转换规则列表 */
16
- export declare function fetchUomConvertRuleOptions(): Promise<DropdownOption[]>;
17
- /** 按 id 批量查询单位展示名 */
18
- export declare function fetchUomLabelsByIds(ids: string[]): Promise<Record<string, string>>;
19
- /**
20
- * 从表达式中抽出可映射字段标识(不含函数名、字面量数字)。
21
- * 例:MULTIPLICATION(formulaRuleInput, formulaRuleParam1, 1000)
22
- * → ['formulaRuleInput', 'formulaRuleParam1']
23
- *
24
- * 转换规则解析后续可替换此实现。
25
- */
26
- export declare function extractExprFieldKeys(expr?: string): string[];
@@ -1,15 +0,0 @@
1
- import { Doc } from '../../../../../../core';
2
- import { FieldDataBindingMeta } from '../../../../../../domain/field/field-binding';
3
- import { AutofillRule } from './types';
4
- type AutofillApplyOptions = {
5
- needReplacePathIndexPlaceholder?: boolean;
6
- sourceValuePath?: string;
7
- rawData?: Record<string, unknown>;
8
- doc?: Doc;
9
- /** 仅写入指定子表行(插行场景) */
10
- rowIndexes?: number[];
11
- };
12
- export declare function applyAutofillRules(record: Record<string, unknown>, autofillRules: AutofillRule[], opts?: AutofillApplyOptions): Record<string, unknown>;
13
- /** 子表插行 / 行初始化:从主表规则补默认值 */
14
- export declare function applyAutofillOnSubTableRowInit(doc: Doc, subFieldKey: string, rowIndex: number, fetchSource?: (field: FieldDataBindingMeta, context: Record<string, unknown>) => Promise<unknown>): Promise<void>;
15
- export {};
@@ -1,19 +0,0 @@
1
- import { FieldTreeNode as FieldTreeNodeType } from './field-tree-utils';
2
- type __VLS_Props = {
3
- node: FieldTreeNodeType;
4
- level: number;
5
- modelValue?: string;
6
- forceExpand?: boolean;
7
- defaultExpanded?: boolean;
8
- groupOnlyExpand?: boolean;
9
- highlightName?: (name?: string) => string;
10
- };
11
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
- select: (value: string, node: FieldTreeNodeType) => any;
13
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onSelect?: ((value: string, node: FieldTreeNodeType) => any) | undefined;
15
- }>, {
16
- defaultExpanded: boolean;
17
- groupOnlyExpand: boolean;
18
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
- export default _default;
@@ -1,26 +0,0 @@
1
- import { FieldTreeNode as FieldTreeNodeType } from './field-tree-utils';
2
- type __VLS_Props = {
3
- modelValue?: string;
4
- treeData: FieldTreeNodeType[];
5
- placeholder?: string;
6
- popperWidth?: number;
7
- defaultExpanded?: boolean;
8
- groupOnlyExpand?: boolean;
9
- };
10
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
- change: (value?: string | undefined, node?: FieldTreeNodeType | undefined) => any;
12
- "update:modelValue": (value?: string | undefined) => any;
13
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- onChange?: ((value?: string | undefined, node?: FieldTreeNodeType | undefined) => any) | undefined;
15
- "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
16
- }>, {
17
- treeData: FieldTreeNodeType[];
18
- placeholder: string;
19
- defaultExpanded: boolean;
20
- groupOnlyExpand: boolean;
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
- rootRef: HTMLDivElement;
23
- inputRef: HTMLInputElement;
24
- dropdownRef: HTMLDivElement;
25
- }, HTMLDivElement>;
26
- export default _default;
@@ -1,22 +0,0 @@
1
- import { FieldMeta } from '../../../../../../capabilities/model-field-runtime';
2
- export interface FieldTreeTargetMeta {
3
- fieldKey: string;
4
- modelKey: string;
5
- subModel: 0 | 1;
6
- subFieldKey?: string;
7
- field: FieldMeta;
8
- }
9
- export interface FieldTreeNode {
10
- label: string;
11
- value: string;
12
- icon?: string;
13
- iconVersion?: 'v1' | 'v2';
14
- iconColor?: string;
15
- disabled?: boolean;
16
- children?: FieldTreeNode[];
17
- _item?: FieldMeta;
18
- _targetMeta?: FieldTreeTargetMeta;
19
- }
20
- export declare function flattenFieldTree(nodes: FieldTreeNode[]): FieldTreeNode[];
21
- /** 模型名或字段名匹配时保留节点;字段始终按关键词过滤,仅模型名单独命中时展示其下全部字段 */
22
- export declare function filterFieldTree(nodes: FieldTreeNode[], keyword: string): FieldTreeNode[];
@@ -1,5 +0,0 @@
1
- import { FieldMeta } from '../../../../../../capabilities/model-field-runtime';
2
- import { FieldTreeNode } from './field-tree-utils';
3
- export declare function buildFromFieldTree(currentField: FieldMeta, refModelFieldList: FieldMeta[]): FieldTreeNode[];
4
- export declare function resolveFromFieldMeta(fromField: string | undefined, refModelFieldList: FieldMeta[], currentField: FieldMeta): FieldMeta | undefined;
5
- export declare function resolveAutofillSourceValue(record: Record<string, unknown>, fromField: string): unknown;
@@ -1,19 +0,0 @@
1
- import { FieldMeta } from '../../../../../../capabilities/model-field-runtime';
2
- import { ModelMeta } from '../../../../../../capabilities/model-field-runtime/types/model';
3
- import { FieldTreeNode } from './field-tree-utils';
4
- import { AutofillRule } from './types';
5
- export declare const TO_FIELD_MAIN_PREFIX = "main:";
6
- export declare const TO_FIELD_SUB_PREFIX = "sub:";
7
- /** 目标字段树:子表上下文 */
8
- export interface ToFieldSubTableContext {
9
- subFieldKey: string;
10
- subFieldName: string;
11
- subModelKey: string;
12
- subModelName: string;
13
- fields: FieldMeta[];
14
- }
15
- /** 库存盘点、库存调拨子表不参与目标字段选择 */
16
- export declare const EXCLUDED_SUB_TABLE_REF_MODEL_TYPES: readonly ["STOCKTAKE", "ALLOCATE"];
17
- export declare function encodeToFieldValueFromRule(rule: Pick<AutofillRule, 'toField' | 'toModelKey' | 'toSubFieldKey' | 'toSubModel'>): string | undefined;
18
- export declare function buildToFieldTree(toModelInfo: ModelMeta, mainFieldList: FieldMeta[], subTables?: ToFieldSubTableContext[]): FieldTreeNode[];
19
- export declare function filterToFieldTreeBySource(nodes: FieldTreeNode[], fromMeta: FieldMeta | undefined): FieldTreeNode[];
@@ -1,3 +0,0 @@
1
- import { FormRelateDTO } from '@gct-paas/api/apaas';
2
- export declare const ONLINE_FORM_TMPL_MODULE_TYPE = "online_form_module";
3
- export declare function buildFormTmplRefId(item: Pick<FormRelateDTO, 'baseId' | 'id'>): string;