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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +174883 -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,2 +1 @@
1
1
  export { profile as materialBalanceProfile } from './profile';
2
- export * from './actions';
@@ -1,4 +1,3 @@
1
1
  import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "material-balance";
3
2
  export declare const profile: BusinessSubTableProfile;
4
3
  export { profile as materialBalanceProfile };
@@ -1,4 +1,3 @@
1
1
  import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "material-consume";
3
2
  export declare const profile: BusinessSubTableProfile;
4
3
  export { profile as materialConsumeProfile };
@@ -4,6 +4,7 @@
4
4
  /** 单字段 key */
5
5
  export declare const F: {
6
6
  readonly batch: "production_identification_id_";
7
+ readonly batchLb: "production_identification_id__lb_";
7
8
  readonly product: "product_id_";
8
9
  readonly productName: "product_id_name_";
9
10
  readonly productCode: "product_id_code_";
@@ -13,7 +14,9 @@ export declare const F: {
13
14
  readonly warehouse: "warehouse_id_";
14
15
  readonly location: "location_id_";
15
16
  readonly originWarehouseId: "origin_warehouse_id_";
17
+ readonly originWarehouseIdLb: "origin_warehouse_id__lb_";
16
18
  readonly originLocationId: "origin_location_id_";
19
+ readonly originLocationIdLb: "origin_location_id__lb_";
17
20
  readonly allocateReason: "allocate_reason_";
18
21
  readonly allocateNum: "allocate_num_";
19
22
  readonly matcode: "product_code_";
@@ -1,4 +1,3 @@
1
1
  import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "warehouse-allocate";
3
2
  export declare const profile: BusinessSubTableProfile;
4
3
  export { profile as warehouseAllocateProfile };
@@ -4,16 +4,20 @@
4
4
  /** 单字段 key */
5
5
  export declare const F: {
6
6
  readonly batch: "production_identification_id_";
7
+ readonly batchLb: "production_identification_id__lb_";
7
8
  readonly product: "product_id_";
9
+ readonly productLb: "product_id__lb_";
8
10
  readonly productName: "product_id_name_";
9
11
  readonly productCode: "product_id_code_";
10
12
  readonly productSpec: "product_id_spec_";
11
13
  readonly warehouse: "warehouse_id_";
12
14
  readonly location: "location_id_";
15
+ readonly locationLb: "location_id__lb_";
13
16
  readonly stock: "stock_num_";
14
17
  readonly stocktake: "stocktake_num_";
15
18
  readonly diff: "diff_num_";
16
19
  readonly stocktakeStatus: "stocktake_status_";
20
+ readonly stocktakeStatusLb: "stocktake_status__lb_";
17
21
  readonly matno: "material_no_";
18
22
  readonly matcode: "product_code_";
19
23
  readonly rowSource: "row_source_";
@@ -22,10 +26,10 @@ export declare const F: {
22
26
  };
23
27
  export type InventoryFieldKey = (typeof F)[keyof typeof F];
24
28
  /** 含 label 的身份字段组 */
25
- export declare const BATCH_IDENTITY: readonly ["production_identification_id_"];
26
- export declare const PRODUCT_IDENTITY: readonly ["product_id_"];
29
+ export declare const BATCH_IDENTITY: readonly ["production_identification_id_", "production_identification_id__lb_"];
30
+ export declare const PRODUCT_IDENTITY: readonly ["product_id_", "product_id__lb_"];
27
31
  export declare const PRODUCT_DESC: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
28
- export declare const LOCATION_FIELDS: readonly ["location_id_"];
32
+ export declare const LOCATION_FIELDS: readonly ["location_id_", "location_id__lb_"];
29
33
  export declare const STOCK_FIELDS: readonly ["stock_num_", "stocktake_num_"];
30
34
  /** 库存、实盘及差异清空集 */
31
35
  export declare const STOCK_RELATED_CLEAR_FIELDS: readonly ["stock_num_", "stocktake_num_", "diff_num_"];
@@ -38,17 +42,17 @@ export declare const INVENTORY_REMOTE_SYNC_EXCLUDE_REQUEST_FIELDS: readonly ["lo
38
42
  /** remoteSync 成功回写的基础字段(不含库位/库存,由 resolveApply 决定) */
39
43
  export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
40
44
  /** remoteSync 查无数据时清空的字段 */
41
- export declare const INVENTORY_INFO_CLEAR_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
45
+ export declare const INVENTORY_INFO_CLEAR_FIELDS: readonly ["production_identification_id_", "production_identification_id__lb_", "product_id_", "product_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_"];
42
46
  /** 行变更 handler:批次清空 / 切换时的字段集 */
43
- export declare const CLEAR_ON_BATCH_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
44
- export declare const CLEAR_ON_BATCH_SWITCH: readonly ["location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
47
+ export declare const CLEAR_ON_BATCH_EMPTY: readonly ["product_id_", "product_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_"];
48
+ export declare const CLEAR_ON_BATCH_SWITCH: readonly ["location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_"];
45
49
  /** 行变更 handler:物料清空 / 切换时的字段集 */
46
- export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
47
- export declare const CLEAR_ON_PRODUCT_SWITCH: readonly ["production_identification_id_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
50
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["production_identification_id_", "production_identification_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_"];
51
+ export declare const CLEAR_ON_PRODUCT_SWITCH: readonly ["production_identification_id_", "production_identification_id__lb_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_"];
48
52
  /** remoteSync:切换物料发请求前需清空的行字段(含库位与自动解析标记) */
49
- export declare const PREPARE_ROW_ON_PRODUCT_SYNC: readonly ["production_identification_id_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_", "_location_auto_resolved_", "_inventory_location_ids_"];
53
+ export declare const PREPARE_ROW_ON_PRODUCT_SYNC: readonly ["production_identification_id_", "production_identification_id__lb_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_", "_location_auto_resolved_", "_inventory_location_ids_"];
50
54
  /** remoteSync:批次查询无结果 / 接口异常时清空的字段 */
51
- export declare const CLEAR_ON_BATCH_SYNC_ERROR: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
55
+ export declare const CLEAR_ON_BATCH_SYNC_ERROR: readonly ["production_identification_id_", "production_identification_id__lb_", "product_id_", "product_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_", "diff_num_"];
52
56
  /** runtimeRules:始终只读的信息字段 */
53
57
  export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_", "stock_num_", "diff_num_", "stocktake_status_"];
54
58
  /** auto 行只读的可选字段 */
@@ -1,4 +1,3 @@
1
1
  import { BusinessSubTableProfile } from '../../../../types';
2
- export declare const TABLE_TYPE: "warehouse-inventory";
3
2
  export declare const profile: BusinessSubTableProfile;
4
3
  export { profile as warehouseInventoryProfile };
@@ -10,10 +10,8 @@ interface ExpandAutofillContext {
10
10
  sourceFieldKey: string;
11
11
  /** 目标字段所在模型 key(子表字段为子模型 modelKey) */
12
12
  toModelKey?: string;
13
- /** 是否为子表字段:0 / undefined = 主表,1 = 子表 */
13
+ /** 是否为子表字段 */
14
14
  toSubModel?: number;
15
- /** 子表时:主表 master_slave 字段 key */
16
- toSubFieldKey?: string;
17
15
  }
18
16
  /**
19
17
  * 将字段 Profile 中的 autofillTemplates 展开为 widget.props.autofillRules
@@ -6,5 +6,3 @@ export declare function isBizServiceFailure(res: unknown): boolean;
6
6
  export declare function unwrapBizServiceData<T extends Record<string, unknown>>(res: unknown): T | null;
7
7
  /** listAll 类接口取数组 */
8
8
  export declare function unwrapBizServiceList(res: unknown): Record<string, unknown>[];
9
- /** 解析 biz-service 返回的 dict */
10
- export declare function unwrapBizServiceDict(res: unknown): Record<string, Record<string, unknown>> | undefined;
@@ -4,7 +4,6 @@ export declare class InitLoadEngine {
4
4
  private readonly doc;
5
5
  constructor(doc: Doc);
6
6
  apply(ctx: TableRuntimeContext): Promise<void>;
7
- private isEnabled;
8
7
  /**
9
8
  * 判断当前子字段是否需要跳过赋值逻辑
10
9
  * @param subFieldKey 子字段数据存储的key
@@ -62,4 +62,6 @@ export declare class LinkageEngine {
62
62
  buildFillFromOption(ctx: TableRuntimeContext, fieldKey: string, rowIndex: number, selectedOption: Record<string, unknown>): Record<string, unknown>;
63
63
  /** 将单条 FieldOptionFillDef 映射写入 updates */
64
64
  private applyOptionFillDef;
65
+ /** 构建字段清空更新对象(同时清值、_lb_ 标签与 companion _id_) */
66
+ private buildClearUpdates;
65
67
  }
@@ -9,7 +9,6 @@ export declare class RemoteSyncEngine {
9
9
  constructor(doc: Doc);
10
10
  /** 将远程同步结果写回行 */
11
11
  applyToRow(ctx: TableRuntimeContext, rowIndex: number, config: RemoteSyncDef, data: Record<string, unknown>, rowPatch?: Record<string, unknown>): Promise<void>;
12
- applySyncResult(ctx: TableRuntimeContext, rowIndex: number, config: RemoteSyncDef, records: Record<string, any>[], changedFieldKey?: string, row?: Record<string, any>): Promise<void>;
13
12
  /** enrichment 写入不触发 enricher,remoteSync 回写后需补全 _lb_ */
14
13
  private hydrateLabelsForPaths;
15
14
  /** 按 profile.remoteSync 从行数据组装请求体;条件不足返回 null */
@@ -35,4 +34,5 @@ export declare class RemoteSyncEngine {
35
34
  private refreshLinkageForRow;
36
35
  private clearMissFields;
37
36
  private afterApply;
37
+ private pickFields;
38
38
  }
@@ -1,5 +1,5 @@
1
1
  import { Doc } from '../../../core';
2
- import { RemoteSyncDef, TableType } from '../types';
2
+ import { RemoteSyncDef } from '../types';
3
3
  import { TableRuntimeContext } from './table-runtime-context';
4
4
  /**
5
5
  * 单行运行时处理器类型定义
@@ -16,8 +16,6 @@ export interface InitLoadMapContext {
16
16
  runtimeCtx: TableRuntimeContext;
17
17
  /** 是否开启分组 */
18
18
  groupBy: boolean;
19
- /** 接口返回的字典数据 */
20
- dict?: Record<string, Record<string, unknown>>;
21
19
  }
22
20
  /**
23
21
  * 初始化加载数据转换函数类型
@@ -48,29 +46,27 @@ export interface RemoteSyncApplyResult {
48
46
  * remoteSync 回写解析器:根据接口返回条数决定 applyFields 的实际写入内容
49
47
  */
50
48
  export type RemoteSyncApplyResolver = (records: Record<string, unknown>[], ctx: RemoteSyncApplyContext) => RemoteSyncApplyResult;
51
- /** 按表类型注册单行运行时钩子;profile 只需写短名 */
52
- export declare function registerRowHandler(tableType: TableType, name: string, handler: RowRuntimeHandler): void;
53
- /** 按表类型注册初始化数据转换映射钩子函数 */
54
- export declare function registerInitLoadMapper(tableType: TableType, name: string, mapper: InitLoadRecordsMapper): void;
55
- /** 按表类型注册 remoteSync 回写解析钩子函数 */
56
- export declare function registerRemoteSyncApplyResolver(tableType: TableType, name: string, resolver: RemoteSyncApplyResolver): void;
49
+ /** 注册单行运行时钩子函数 */
50
+ export declare function registerRowHandler(name: string, handler: RowRuntimeHandler): void;
51
+ /** 注册初始化数据转换映射钩子函数 */
52
+ export declare function registerInitLoadMapper(name: string, mapper: InitLoadRecordsMapper): void;
53
+ /** 注册 remoteSync 回写解析钩子函数 */
54
+ export declare function registerRemoteSyncApplyResolver(name: string, resolver: RemoteSyncApplyResolver): void;
57
55
  /**
58
56
  * 执行指定名称的单行处理器
59
- * @param tableType 表类型(与 registerRowHandler 一致)
60
- * @param name 注册短名
57
+ * @param name 注册名称
61
58
  * @param doc 文档实例
62
59
  * @param subFieldKey 子表格字段key
63
60
  * @param rowIndex 当前行索引
64
61
  */
65
- export declare function runRowHandler(tableType: string | undefined, name: string | undefined, doc: Doc, subFieldKey: string, rowIndex: number): void;
62
+ export declare function runRowHandler(name: string | undefined, doc: Doc, subFieldKey: string, rowIndex: number): void;
66
63
  /**
67
64
  * 使用注册的转换函数处理初始化加载的表格数据
68
- * @param tableType 表类型
69
65
  * @param name 注册名称
70
66
  * @param records 接口原始行数据
71
67
  * @param ctx 转换上下文
72
68
  * @returns 转换后数据;无对应转换器时返回原数组
73
69
  */
74
- export declare function mapInitLoadRecords(tableType: string | undefined, name: string | undefined, records: Record<string, unknown>[], ctx: InitLoadMapContext): Record<string, unknown>[];
70
+ export declare function mapInitLoadRecords(name: string | undefined, records: Record<string, unknown>[], ctx: InitLoadMapContext): Record<string, unknown>[];
75
71
  /** 使用注册的解析器决定 remoteSync 回写字段 */
76
- export declare function resolveRemoteSyncApply(tableType: string | undefined, name: string | undefined, records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult | null;
72
+ export declare function resolveRemoteSyncApply(name: string | undefined, records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult | null;
@@ -1,5 +1,5 @@
1
1
  import { Doc } from '../../../core';
2
- import { RepeatingRegion, MaterialConsumeTableRegion } from '../../../core/model/logic';
2
+ import { RepeatingRegion } from '../../../core/model/logic';
3
3
  import { BusinessFieldProfile, BusinessSubTableProfile, RuleContext } from '../types';
4
4
  /** 行遍历选项 */
5
5
  export interface EachRowOptions {
@@ -13,9 +13,9 @@ export declare class TableRuntimeContext {
13
13
  readonly doc: Doc;
14
14
  readonly profile: BusinessSubTableProfile;
15
15
  readonly subFieldKey: string;
16
- readonly region: RepeatingRegion | MaterialConsumeTableRegion;
16
+ readonly region: RepeatingRegion;
17
17
  private widgetFieldKeys?;
18
- constructor(doc: Doc, profile: BusinessSubTableProfile, subFieldKey: string, region: RepeatingRegion | MaterialConsumeTableRegion);
18
+ constructor(doc: Doc, profile: BusinessSubTableProfile, subFieldKey: string, region: RepeatingRegion);
19
19
  /** 业务子模型 refModelType */
20
20
  get refModelType(): string;
21
21
  /** 子表数组路径 $.subFieldKey */
@@ -30,7 +30,7 @@ export declare class TableRuntimeContext {
30
30
  buildRuleContext(rowIndex: number, changedFieldKey?: string): RuleContext;
31
31
  /** 遍历子表数据行,支持指定单行或全量遍历,逐行注入 RuleContext */
32
32
  eachRow(options: EachRowOptions, iteratee: (ctx: RuleContext) => void): void;
33
- /** 在子表字段配置列表中查找指定字段配置(支持 match.fieldKey 为数组) */
33
+ /** 在子表字段配置列表中查找指定字段配置 */
34
34
  findFieldProfile(fieldKey: string): BusinessFieldProfile | undefined;
35
35
  /** 本子表表单内已渲染的字段控件 key 集合 */
36
36
  private get presentFieldWidgetKeys();
@@ -54,11 +54,3 @@ export declare function isSameFieldValue(a: unknown, b: unknown): boolean;
54
54
  * @returns true:新旧值不同,需要清空下游下拉
55
55
  */
56
56
  export declare function shouldClearDownstreamForFieldChange(change?: FieldChangeDetail): boolean;
57
- /** 从 source 中挑出 keys 里已定义(!== undefined)的字段 */
58
- export declare function pickDefinedFields(source: Record<string, unknown>, keys: readonly string[]): Record<string, unknown>;
59
- /**
60
- * 页面无指定字段时是否应按 groupBy 聚合
61
- * @param hasFieldWidget 判断字段是否有控件
62
- * @param fieldKey groupByWhenFieldAbsent 配置
63
- */
64
- export declare function shouldGroupByWhenFieldAbsent(hasFieldWidget: (fieldKey: string) => boolean, fieldKey?: string): boolean;
@@ -1,12 +1,6 @@
1
1
  import { Doc } from '../../../core';
2
2
  import { FieldChangeMap, EmitSource } from '../../../core/data/DataManager';
3
3
  import { BusinessSelectLinkageResult } from './engines/linkage-engine';
4
- import { SelectSourceDef } from '../types';
5
- /** resolveSelectSource 入参 */
6
- export interface ResolveSelectSourceOptions {
7
- subFieldKey?: string;
8
- fieldKey?: string;
9
- }
10
4
  /** resolveSelectLinkage 入参 */
11
5
  export interface ResolveSelectLinkageOptions {
12
6
  subFieldKey?: string;
@@ -42,7 +36,7 @@ export declare class TableRuntime {
42
36
  /** 文档初始化时执行全套运行时逻辑 */
43
37
  onInit(): Promise<void>;
44
38
  /**
45
- * 子表新增行初始化:rowInit → 字段态规则 → 级联 → 数据填充。
39
+ * 子表新增行初始化:rowInit → 字段态规则 → 级联。
46
40
  */
47
41
  onRowInit(subFieldKey: string, rowIndex: number, rowSource?: string): void;
48
42
  /**
@@ -56,10 +50,6 @@ export declare class TableRuntime {
56
50
  * 解析下拉字段级联联动信息(联动启用状态 + 上游值),供下拉组件使用。
57
51
  */
58
52
  resolveSelectLinkage(options: ResolveSelectLinkageOptions): BusinessSelectLinkageResult | null;
59
- /**
60
- * 解析业务表字段的下拉数据源 / 列覆盖(selectSource)。
61
- */
62
- resolveSelectSource(options: ResolveSelectSourceOptions): SelectSourceDef | null;
63
53
  /**
64
54
  * 下拉选中后从选项反向回填同行字段,供 onChange 使用。
65
55
  */
@@ -15,10 +15,8 @@ export type DataTableType = 'dynamic-table' | 'fixed-table' | 'two-d-table';
15
15
  * @property material-consume - 物料消耗表
16
16
  * @property material-balance - 物料平衡表
17
17
  * @property check-table - 检验表
18
- * @property pretreatment-list - 预处理表
19
- * @property entrust-steril-batch-list - 委托灭菌批次表
20
18
  */
21
- export type BusinessSubTableType = 'warehouse-in-out' | 'warehouse-inventory' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
19
+ export type BusinessSubTableType = 'warehouse-in-out' | 'warehouse-inventory' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'check-table';
22
20
  /** 所有子表类型(数据表 + 业务表) */
23
21
  export type TableType = DataTableType | BusinessSubTableType;
24
22
  /**
@@ -137,15 +135,11 @@ export interface BizServiceApiDef {
137
135
  modelCategory: string;
138
136
  modelKey: string;
139
137
  bsKey: string;
140
- /** 请求方式,默认 post */
141
- method?: 'get' | 'post';
142
138
  }
143
139
  /** 文档初始化批量加载 */
144
140
  export interface InitLoadDef {
145
- /** 加载属性写死开关,为 true 时直接启用 initLoad */
146
- enabled?: boolean;
147
141
  /** 对应 widgetMeta.props 上的开关属性名 */
148
- enabledByWidgetProp?: string;
142
+ enabledByWidgetProp: string;
149
143
  api: BizServiceApiDef;
150
144
  /** listAll 类接口 query 构建 */
151
145
  listQuery?: Array<{
@@ -199,11 +193,11 @@ export interface RemoteSyncDef {
199
193
  paramKey: string;
200
194
  fieldKey: string;
201
195
  };
202
- /** 接口返回后写回行的字段处理器名 */
196
+ /** 接口返回后写回行的字段处理器 */
203
197
  resolveApply?: string;
204
198
  /** 页面无此字段时,对返回多条记录 groupBy */
205
199
  groupByWhenFieldAbsent?: string;
206
- /** 回写完成后执行的行处理器名 */
200
+ /** 回写完成后执行的内置行处理器 */
207
201
  afterApply?: string;
208
202
  /** 表单初始化后:当 requireAllOf 已满足且列出的字段仍为空时,对行触发一次 remoteSync */
209
203
  resyncOnInitWhenMissing?: string[];
@@ -254,47 +248,6 @@ export interface FieldOptionFillDef {
254
248
  /** 目标行 label 字段 key */
255
249
  toLabelField?: string;
256
250
  }
257
- /**
258
- * 业务下拉列表取数自定义接口绑定
259
- */
260
- export interface SelectApiBinding {
261
- modelCategory?: string;
262
- modelKey?: string;
263
- /** true 时 modelKey 取请求里的 refModelKey */
264
- modelKeyFromRef?: boolean;
265
- bsKey: string;
266
- }
267
- /**
268
- * 下拉数据源 / 列展示覆盖(表 + 字段实例)
269
- */
270
- export interface SelectSourceDef {
271
- /**
272
- * apiFetchers key:
273
- * 通用 `lot2sn` | `ref` | `rdo2ref` | `dept` | `user`;
274
- * 业务接口用 `biz`(需配合 api)
275
- */
276
- dataSource: string;
277
- /** dataSource 为 biz 时声明接口 */
278
- api?: SelectApiBinding;
279
- columnsKey?: string;
280
- isTree?: boolean;
281
- allowManualInput?: boolean;
282
- persistOptionId?: boolean;
283
- baseQuery?: Record<string, unknown>;
284
- /**
285
- * baseQuery 多条件时的组合方式
286
- * @default 'and'
287
- */
288
- filterCombine?: 'and' | 'or';
289
- searchFields?: string[];
290
- /** quick:快速搜索;缺省继承 fieldType 默认 buildQuery */
291
- searchStyle?: 'quick' | 'like';
292
- /** 下拉 Option 的 value/label 字段映射 */
293
- optionMapping?: {
294
- value?: string;
295
- label?: string;
296
- };
297
- }
298
251
  /** 业务表字段 Profile 在拖入与运行时注入行为 */
299
252
  export interface BusinessFieldProfile {
300
253
  /** 按 fieldKey 或 bizType 匹配字段 */
@@ -308,8 +261,6 @@ export interface BusinessFieldProfile {
308
261
  autofillTemplates?: AutofillTemplate[];
309
262
  /** 设计态锁定,用户不可在面板修改对应属性 */
310
263
  locked?: ('readonly' | 'disabled' | 'required')[];
311
- /** 下拉数据源与列展示 */
312
- selectSource?: SelectSourceDef;
313
264
  /** 下拉级联 */
314
265
  select?: SelectBehaviorDef;
315
266
  /** 选中下拉项后,从 option 数据同步填充同行多个字段 */