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

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 (165) hide show
  1. package/dist/assets/svgs/table/index.d.ts +0 -1
  2. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +0 -6
  3. package/dist/base/input/src/input-number.vue.d.ts +0 -1
  4. package/dist/base/message/src/Message.vue.d.ts +0 -2
  5. package/dist/base/message/src/message.d.ts +0 -2
  6. package/dist/base/modal/src/modal.type.d.ts +1 -3
  7. package/dist/base/select/src/basic-select.vue.d.ts +4 -16
  8. package/dist/base/utils/image-size-util.d.ts +6 -12
  9. package/dist/capabilities/model-field-runtime/types/field.d.ts +0 -4
  10. package/dist/core/command/commands/DeleteCol.d.ts +1 -1
  11. package/dist/core/command/commands/DeleteRow.d.ts +1 -1
  12. package/dist/core/command/commands/InsertTable.d.ts +1 -0
  13. package/dist/core/command/types.d.ts +0 -21
  14. package/dist/core/data/DataManager.d.ts +32 -11
  15. package/dist/core/data/initialization.d.ts +26 -0
  16. package/dist/core/data/types/runtime-config.d.ts +0 -13
  17. package/dist/core/event/handlers/IMEHandler.d.ts +0 -1
  18. package/dist/core/index.d.ts +0 -2
  19. package/dist/core/model/document/WtblPr.d.ts +0 -2
  20. package/dist/core/model/document/Wtc.d.ts +0 -2
  21. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  22. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -4
  23. package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +1 -37
  24. package/dist/core/model/overlays/Wlayout.d.ts +0 -4
  25. package/dist/core/view/Doc.d.ts +0 -5
  26. package/dist/core/view/TableCell.d.ts +0 -3
  27. package/dist/core/widget/types.d.ts +2 -2
  28. package/dist/domain/active/active-types.d.ts +1 -3
  29. package/dist/domain/field/field-props-schema-type.d.ts +1 -1
  30. package/dist/domain/field/field-type.d.ts +2 -68
  31. package/dist/domain/field/form-value.d.ts +0 -6
  32. package/dist/domain/table/business/check/check-table/runtime/map-check-table-item-infos.d.ts +3 -2
  33. package/dist/domain/table/business/check/check-table/runtime/prepare-check-table-init.d.ts +1 -1
  34. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
  35. package/dist/domain/table/business/material/types.d.ts +1 -2
  36. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +2 -1
  37. package/dist/domain/table/design/ribbon-options.d.ts +0 -2
  38. package/dist/domain/table/design/sub-model-matcher.d.ts +0 -2
  39. package/dist/domain/table/index.d.ts +0 -3
  40. package/dist/domain/table/registry.d.ts +2 -5
  41. package/dist/domain/table/runtime/engines/init-load-engine.d.ts +2 -1
  42. package/dist/domain/table/runtime/engines/row-runtime-engine.d.ts +2 -2
  43. package/dist/domain/table/runtime/table-runtime.d.ts +3 -4
  44. package/dist/domain/table/types.d.ts +5 -15
  45. package/dist/index.es.js +9866 -32012
  46. package/dist/runtime/canvas/doc-layout.vue.d.ts +2 -1
  47. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +2 -10
  48. package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +0 -1
  49. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +0 -6
  50. package/dist/runtime/canvas/table/shared/table-lines.vue.d.ts +0 -1
  51. package/dist/runtime/interface/computed.d.ts +1 -1
  52. package/dist/runtime/interface/render.d.ts +3 -1
  53. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +1 -54
  54. package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +0 -1
  55. package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +0 -1
  56. package/dist/runtime/validation/layout.d.ts +0 -20
  57. package/dist/runtime/validation/state.d.ts +3 -7
  58. package/dist/runtime/validation/useFormValidator.d.ts +0 -4
  59. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +5 -2
  60. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +0 -5
  61. package/dist/sdk/engine/index.d.ts +1 -3
  62. package/dist/sdk/setup.d.ts +0 -6
  63. package/dist/sdk/types/index.d.ts +0 -8
  64. package/dist/sdk/vue/index.d.ts +0 -6
  65. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
  66. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +3 -7
  67. package/dist/suites/edhr/panel-schema/index.d.ts +0 -1
  68. package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +3 -8
  69. package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -3
  70. package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -12
  71. package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +0 -1
  72. package/dist/utils/adapters/ServiceUtil.d.ts +0 -9
  73. package/dist/word.css +1309 -1697
  74. package/package.json +4 -4
  75. package/dist/core/command/base/FloatingFieldCommand.d.ts +0 -9
  76. package/dist/core/command/commands/InsertFloatingField.d.ts +0 -9
  77. package/dist/core/command/commands/MoveFloatingField.d.ts +0 -10
  78. package/dist/core/command/commands/RemoveFloatingField.d.ts +0 -12
  79. package/dist/core/command/commands/SetTableBorder.d.ts +0 -14
  80. package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +0 -19
  81. package/dist/core/data/enrichers/udi-enricher.d.ts +0 -23
  82. package/dist/core/data/formula/business-functions.d.ts +0 -10
  83. package/dist/core/data/formula/formula-params-cache.d.ts +0 -15
  84. package/dist/core/model/types/table-border.d.ts +0 -18
  85. package/dist/core/runtime/DocumentRuntimeManager.d.ts +0 -34
  86. package/dist/core/table/border-selection.d.ts +0 -9
  87. package/dist/core/table/borders.d.ts +0 -42
  88. package/dist/domain/document-business/business/product-release/profile.d.ts +0 -2
  89. package/dist/domain/document-business/business/product-release/service.d.ts +0 -2
  90. package/dist/domain/document-business/index.d.ts +0 -2
  91. package/dist/domain/document-business/registry.d.ts +0 -2
  92. package/dist/domain/document-business/runtime/field-query-runtime.d.ts +0 -4
  93. package/dist/domain/document-business/types.d.ts +0 -24
  94. package/dist/domain/document-rule/index.d.ts +0 -3
  95. package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +0 -13
  96. package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +0 -19
  97. package/dist/domain/document-rule/types.d.ts +0 -50
  98. package/dist/domain/field/query-filter.d.ts +0 -15
  99. package/dist/domain/field/seal/seal-binding.d.ts +0 -19
  100. package/dist/domain/field/seal/seal-display.d.ts +0 -32
  101. package/dist/domain/field/seal/seal-value.d.ts +0 -39
  102. package/dist/domain/table/business/device/maintenance/index.d.ts +0 -1
  103. package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
  104. package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
  105. package/dist/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
  106. package/dist/domain/table/business/device/point-inspection/index.d.ts +0 -1
  107. package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
  108. package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
  109. package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
  110. package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +0 -13
  111. package/dist/domain/table/business/device/signature-lock.d.ts +0 -26
  112. package/dist/domain/table/business/material/material-consume/profile/fields.d.ts +0 -2
  113. package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +0 -3
  114. package/dist/domain/table/business/material/material-substitution/index.d.ts +0 -3
  115. package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -41
  116. package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
  117. package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
  118. package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
  119. package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -4
  120. package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +0 -3
  121. package/dist/domain/table/design/validate-nested-table-insert.d.ts +0 -3
  122. package/dist/domain/table/runtime/option-fill-updates.d.ts +0 -6
  123. package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +0 -10
  124. package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +0 -6
  125. package/dist/runtime/canvas/print-capture.d.ts +0 -12
  126. package/dist/runtime/canvas/table/table-presentation.d.ts +0 -16
  127. package/dist/runtime/canvas/table/utils/paint-table-borders.d.ts +0 -4
  128. package/dist/runtime/designer/ribbon/hooks/useDhrEdition.d.ts +0 -7
  129. package/dist/runtime/designer/ribbon/svg/table-border-icon.vue.d.ts +0 -6
  130. package/dist/runtime/interface/sterilization-date.d.ts +0 -9
  131. package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +0 -5
  132. package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +0 -2
  133. package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +0 -3
  134. package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +0 -17
  135. package/dist/runtime/renderer/dialogs/seal/seal-auth-dialog.vue.d.ts +0 -60
  136. package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +0 -9
  137. package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +0 -30
  138. package/dist/runtime/renderer/dialogs/seal/types.d.ts +0 -24
  139. package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +0 -27
  140. package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +0 -27
  141. package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +0 -30
  142. package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +0 -29
  143. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +0 -17
  144. package/dist/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.d.ts +0 -7
  145. package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +0 -3
  146. package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +0 -7
  147. package/dist/sdk/types/placed-form-field.d.ts +0 -6
  148. package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +0 -7
  149. package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +0 -2
  150. package/dist/suites/edhr/manifest/field/business/product-release-qty-manifest.d.ts +0 -2
  151. package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +0 -2
  152. package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +0 -2
  153. package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +0 -2
  154. package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +0 -2
  155. package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +0 -2
  156. package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +0 -2
  157. package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +0 -2
  158. package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +0 -1
  159. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +0 -19
  160. package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +0 -16
  161. package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +0 -11
  162. package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +0 -8
  163. package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +0 -34
  164. package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +0 -3
  165. package/dist/utils/pdf/collect-seal-draw-ops.d.ts +0 -4
@@ -1,7 +1,7 @@
1
1
  import { FIELD_TYPE } from '../../domain/field/field-type';
2
- export type ExternalComponentType = 'cascade' | 'fw:input' | 'fw:number' | 'fw:double' | 'fw:enum' | 'fw:enum-multiple' | 'fw:date-time' | 'fw:date' | 'fw:time' | 'fw:select' | 'fw:select-multiple' | 'fw:tree-select' | 'fw:tree-select-multiple' | 'fw:table-select' | 'fw:rdo-table-select' | 'fw:signature' | 'fw:seal' | 'fw:image' | 'fw:file' | 'pw:image' | 'pw:barcode' | 'pw:qrcode' | 'pw:diagonal' | 'pw:serialnumber' | 'pw:pagination' | 'pw:line' | 'pw:timediff';
2
+ export type ExternalComponentType = 'cascade' | 'fw:input' | 'fw:number' | 'fw:double' | 'fw:enum' | 'fw:enum-multiple' | 'fw:date-time' | 'fw:date' | 'fw:time' | 'fw:select' | 'fw:select-multiple' | 'fw:tree-select' | 'fw:tree-select-multiple' | 'fw:table-select' | 'fw:rdo-table-select' | 'fw:signature' | 'fw:image' | 'fw:file' | 'pw:image' | 'pw:barcode' | 'pw:qrcode' | 'pw:diagonal' | 'pw:serialnumber' | 'pw:pagination' | 'pw:line' | 'pw:timediff';
3
3
  /** 渲染组件标识 后续支持自定义组件 */
4
- export type ExternalNodeType = 'render:gct-placeholder' | 'render:gct-control' | 'render:gct-space' | 'render:gct-text' | 'render:gct-image' | 'render:gct-signature' | 'render:gct-seal' | 'render:gct-leftMarker' | 'render:gct-rightMarker' | 'render:pw-barcode' | 'render:pw-qrcode' | 'render:pw-image' | 'render:pw-diagonal' | 'render:pw-pagination' | 'render:pw-line';
4
+ export type ExternalNodeType = 'render:gct-placeholder' | 'render:gct-control' | 'render:gct-space' | 'render:gct-text' | 'render:gct-image' | 'render:gct-signature' | 'render:gct-leftMarker' | 'render:gct-rightMarker' | 'render:pw-barcode' | 'render:pw-qrcode' | 'render:pw-image' | 'render:pw-diagonal' | 'render:pw-pagination' | 'render:pw-line';
5
5
  /** 渲染节点集合 */
6
6
  export interface FieldNodeRenderers {
7
7
  /** 暗提示节点 */
@@ -32,10 +32,8 @@ export type PanelType =
32
32
  | 'panel:device-part-consume-table'
33
33
  /** 物料平衡表 */
34
34
  | 'panel:material-balance-table'
35
- /** 产线收料表 */
35
+ /** 生产收料表 */
36
36
  | 'panel:material-requisition-table'
37
- /** 物料替换表 */
38
- | 'panel:material-substitution-table'
39
37
  /** 库存调拨表 */
40
38
  | 'panel:warehouse-allocate-table'
41
39
  /** 二维表 */
@@ -1,5 +1,5 @@
1
1
  /** 字段配置-渲染组件标识 */
2
- export type FieldPropsSchemaKey = 'schema:field-seal' | 'schema:field-text' | 'schema:field-boolean' | 'schema:field-number' | 'schema:field-datetime' | 'schema:field-user' | 'schema:field-org' | 'schema:field-sign' | 'schema:field-enum' | 'schema:field-file' | 'schema:field-image' | 'schema:field-trace' | 'schema:field-business' | 'schema:field-ref' | 'schema:field-rdo-ref' | 'schema:field-e-sop-version';
2
+ export type FieldPropsSchemaKey = 'schema:field-text' | 'schema:field-boolean' | 'schema:field-number' | 'schema:field-datetime' | 'schema:field-user' | 'schema:field-org' | 'schema:field-sign' | 'schema:field-enum' | 'schema:field-file' | 'schema:field-image' | 'schema:field-trace' | 'schema:field-business' | 'schema:field-ref' | 'schema:field-rdo-ref' | 'schema:field-e-sop-version';
3
3
  /** 优先级规则 */
4
4
  export interface PriorityRule {
5
5
  type: 'priority';
@@ -218,7 +218,6 @@ export declare const BASE_FIELD_TYPE: {
218
218
  export type BaseFieldType = (typeof BASE_FIELD_TYPE)[keyof typeof BASE_FIELD_TYPE];
219
219
  /** 业务字段(基础类型上的业务身份)。后续重构前仍并入 FIELD_TYPE,当作一个字段用。 */
220
220
  export declare const BUSINESS_FIELD_TYPE: {
221
- readonly SEAL: "seal";
222
221
  /**
223
222
  * 关联批次
224
223
  */
@@ -327,22 +326,14 @@ export declare const BUSINESS_FIELD_TYPE: {
327
326
  * 产品检验数量
328
327
  */
329
328
  readonly PRODUCT_CHECK_QTY: "product_check_qty";
330
- /**
331
- * 放行数量
332
- */
333
- readonly PRODUCT_RELEASE_QTY: "product_release_qty";
334
329
  /**
335
330
  * 材料检验数量
336
331
  */
337
332
  readonly MATERIAL_CHECK_QTY: "material_check_qty";
338
- /**
339
- * 送检数量
340
- */
341
- readonly INSPECTION_QTY: "inspection_qty";
342
333
  /**
343
334
  * 检验数量
344
335
  */
345
- readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
336
+ readonly INSPECTION_QTY: "inspection_qty";
346
337
  /**
347
338
  * 工序接收数量
348
339
  */
@@ -395,18 +386,6 @@ export declare const BUSINESS_FIELD_TYPE: {
395
386
  * 物料日期对象
396
387
  */
397
388
  readonly DATE_OBJECT: "date_object";
398
- /**
399
- * 检验参数对象
400
- */
401
- readonly INSPECTION_PARAMETER_OBJECT: "inspection_parameter_object";
402
- /**
403
- * 工艺参数对象
404
- */
405
- readonly PROCESS_PARAMETER_OBJECT: "process_parameter_object";
406
- /**
407
- * 设备参数对象
408
- */
409
- readonly DEVICE_PARAMETER_OBJECT: "device_parameter_object";
410
389
  /**
411
390
  * 有效期
412
391
  */
@@ -439,10 +418,6 @@ export declare const BUSINESS_FIELD_TYPE: {
439
418
  * 表单实例数
440
419
  */
441
420
  readonly OF_INST_NUM: "of_inst_num";
442
- /**
443
- * 医疗器械唯一标识
444
- */
445
- readonly UDI: "udi";
446
421
  /**
447
422
  * 生产数量
448
423
  */
@@ -459,19 +434,10 @@ export declare const BUSINESS_FIELD_TYPE: {
459
434
  * 灭菌批(追溯)
460
435
  */
461
436
  readonly STERILIZATION_CONTAINER: "sterilization_container";
462
- /**
463
- * 检验批
464
- */
465
- readonly INSPECTION_CONTAINER: "inspection_container";
466
- /**
467
- * 灭菌日期
468
- */
469
- readonly STERILIZATION_DATE: "sterilization_date";
470
437
  };
471
438
  export type BusinessFieldType = (typeof BUSINESS_FIELD_TYPE)[keyof typeof BUSINESS_FIELD_TYPE];
472
439
  /** 字段类型 = 基础 + 业务 */
473
440
  export declare const FIELD_TYPE: {
474
- readonly SEAL: "seal";
475
441
  /**
476
442
  * 关联批次
477
443
  */
@@ -580,22 +546,14 @@ export declare const FIELD_TYPE: {
580
546
  * 产品检验数量
581
547
  */
582
548
  readonly PRODUCT_CHECK_QTY: "product_check_qty";
583
- /**
584
- * 放行数量
585
- */
586
- readonly PRODUCT_RELEASE_QTY: "product_release_qty";
587
549
  /**
588
550
  * 材料检验数量
589
551
  */
590
552
  readonly MATERIAL_CHECK_QTY: "material_check_qty";
591
- /**
592
- * 送检数量
593
- */
594
- readonly INSPECTION_QTY: "inspection_qty";
595
553
  /**
596
554
  * 检验数量
597
555
  */
598
- readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
556
+ readonly INSPECTION_QTY: "inspection_qty";
599
557
  /**
600
558
  * 工序接收数量
601
559
  */
@@ -648,18 +606,6 @@ export declare const FIELD_TYPE: {
648
606
  * 物料日期对象
649
607
  */
650
608
  readonly DATE_OBJECT: "date_object";
651
- /**
652
- * 检验参数对象
653
- */
654
- readonly INSPECTION_PARAMETER_OBJECT: "inspection_parameter_object";
655
- /**
656
- * 工艺参数对象
657
- */
658
- readonly PROCESS_PARAMETER_OBJECT: "process_parameter_object";
659
- /**
660
- * 设备参数对象
661
- */
662
- readonly DEVICE_PARAMETER_OBJECT: "device_parameter_object";
663
609
  /**
664
610
  * 有效期
665
611
  */
@@ -692,10 +638,6 @@ export declare const FIELD_TYPE: {
692
638
  * 表单实例数
693
639
  */
694
640
  readonly OF_INST_NUM: "of_inst_num";
695
- /**
696
- * 医疗器械唯一标识
697
- */
698
- readonly UDI: "udi";
699
641
  /**
700
642
  * 生产数量
701
643
  */
@@ -712,14 +654,6 @@ export declare const FIELD_TYPE: {
712
654
  * 灭菌批(追溯)
713
655
  */
714
656
  readonly STERILIZATION_CONTAINER: "sterilization_container";
715
- /**
716
- * 检验批
717
- */
718
- readonly INSPECTION_CONTAINER: "inspection_container";
719
- /**
720
- * 灭菌日期
721
- */
722
- readonly STERILIZATION_DATE: "sterilization_date";
723
657
  /**
724
658
  * 文本
725
659
  */
@@ -80,12 +80,6 @@ type NormalizeNumberTextResult = {
80
80
  * - fw:number 根据 digits 执行整数化或小数截断
81
81
  */
82
82
  export declare function normalizeNumberTextOnCommit(rawText: string, options: NormalizeNumberTextOptions): NormalizeNumberTextResult;
83
- /** 配置检查:返回错误说明,不抛异常。 */
84
- export declare function getNumberInputConfigError(fieldType: FIELD_TYPE | undefined, digits: unknown): string | null;
85
- /** 填报失焦时处理数字长度和整数上限。 */
86
- export declare function normalizeNumberInputOnBlur(rawText: string, options: NormalizeNumberTextOptions, fieldType?: FIELD_TYPE): NormalizeNumberTextResult & {
87
- configError?: string;
88
- };
89
83
  export declare function buildNumberFormats(props: any, type: NumberFieldType): {
90
84
  type: NumberFieldType;
91
85
  digits: number | undefined;
@@ -1,8 +1,9 @@
1
1
  import { CheckTableItemInfosPayload, CheckTableRegionRef } from '../types';
2
2
  /**
3
3
  * 将接口返回的检验项配置写入 defaults(展开为 $.f_jianyan1[0].type_ 等字段路径)。
4
- * 仅配置字段;不写入 rawData,避免覆盖 fetchRenderData 的业务数据。
4
+ * 行配置与交叉区填报初值分别输出:配置重开时仍有效,填报初值仅首次使用。
5
+ * 两者都不直接写 rawData,已有业务值由 DataManager 保留。
5
6
  */
6
- export declare function mergeCheckTableItemInfosIntoDefaults(defaultsMap: Record<string, unknown>, region: CheckTableRegionRef, infos: CheckTableItemInfosPayload, layoutColumnCount?: number): void;
7
+ export declare function mergeCheckTableItemInfosIntoDefaults(defaultsMap: Record<string, unknown>, region: CheckTableRegionRef, infos: CheckTableItemInfosPayload, layoutColumnCount?: number, configurationDefaultsMap?: Record<string, unknown>): void;
7
8
  /** 从字段级 defaults 组装检验项行配置(供 readRowMeta) */
8
9
  export declare function readCheckTableRowConfigFromDefaults(getDefault: (path: string) => unknown, rowMetaPath: string): Record<string, unknown>;
@@ -19,4 +19,4 @@ export declare function prepareCheckTableRuntimeJson<T extends Record<string, un
19
19
  * 文档初始化中:将检验项配置写入 defaultsMap(字段路径展开)。
20
20
  * 优先使用 prepare 返回的 regions,避免再次扫描 runtimeJson。
21
21
  */
22
- export declare function applyCheckTableItemInfosToDefaults(defaultsMap: Record<string, unknown>, regions: CheckTableRegionRef[], infosMap: Record<string, CheckTableItemInfosPayload>, getLayoutSlotCount: (linkFieldKey: string) => number): void;
22
+ export declare function applyCheckTableItemInfosToDefaults(defaultsMap: Record<string, unknown>, regions: CheckTableRegionRef[], infosMap: Record<string, CheckTableItemInfosPayload>, getLayoutSlotCount: (linkFieldKey: string) => number, configurationDefaultsMap?: Record<string, unknown>): void;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * 产线收料表(MATERIAL_REQUISITION)字段 key
2
+ * 生产收料表(MATERIAL_REQUISITION)字段 key
3
3
  */
4
4
  export declare const F: {
5
5
  /** 物料 */
@@ -190,6 +190,5 @@ export declare enum ScanParamType {
190
190
  /** 需求数量计算规则 */
191
191
  export declare enum RequiredQtyCalcRule {
192
192
  LotQty = "lotQty",
193
- ProductQty = "productQty",
194
- Custom = "custom"
193
+ ProductQty = "productQty"
195
194
  }
@@ -1,7 +1,8 @@
1
1
  import { BusinessScanHandler } from '../../../shared/scan-action';
2
2
  /**
3
3
  * 库存调拨表:扫码后入行
4
- * - 连续扫码每次新增一行
4
+ * - 优先填充未选择库存物料的占位行,忽略默认数量、目标仓库等字段
5
+ * - 已有物料后连续扫码每次新增一行
5
6
  * - 重复扫同一码不合并
6
7
  */
7
8
  export declare const handleWarehouseAllocateScan: BusinessScanHandler;
@@ -7,8 +7,6 @@ export interface RibbonTableOptionsParams {
7
7
  suiteKey?: string;
8
8
  /** 套件级需从 Ribbon 隐藏的业务表类型 */
9
9
  hiddenBusinessTableTypes?: BusinessSubTableType[];
10
- /** 是否可使用仅向 eDHR Max / Ultra 开放的业务表 */
11
- canUseMaxEditionTables?: boolean;
12
10
  }
13
11
  /** 生成 Ribbon「数据表」「业务表」下拉选项 */
14
12
  export declare function getRibbonTableOptions(params?: RibbonTableOptionsParams): {
@@ -1,7 +1,5 @@
1
1
  import { FieldMeta } from '../../../capabilities/model-field-runtime';
2
2
  import { DropdownOption } from '../../../base';
3
- /** 是否为仅能通过固定表入口选择的业务子模型。 */
4
- export declare function isFixedOnlyBusinessRefModelType(refModelType: string | undefined | null): boolean;
5
3
  /**
6
4
  * 生成「选择子模型」下拉选项
7
5
  * @param tableTypeOrRibbonAction 表类型或 Ribbon action
@@ -13,8 +13,5 @@ export * from './runtime/table-runtime';
13
13
  export * from './design/hooks/on-subtable-create';
14
14
  export * from './design/hooks/on-field-attach';
15
15
  export * from './design/hooks/on-repeating-default-props';
16
- export * from './design/hooks/on-bounded-default-props';
17
16
  export * from './design/validate-table-selection';
18
17
  export * from './design/validate-nested-table-region';
19
- export * from './design/validate-nested-table-insert';
20
- export * from './business/device/signature-lock';
@@ -1,5 +1,4 @@
1
- import { BusinessFieldProfile, BusinessSubTableProfile, TableCategory, TableProfile } from './types';
2
- import { FieldMeta } from '../../capabilities/model-field-runtime';
1
+ import { BusinessSubTableProfile, TableCategory, TableProfile } from './types';
3
2
  /** 所有已注册的子表 Profile */
4
3
  declare const ALL_TABLE_PROFILES: TableProfile[];
5
4
  /** 按分类获取 Profile 列表 */
@@ -16,7 +15,5 @@ export declare function getProfileByLayoutType(layoutType: string): TableProfile
16
15
  */
17
16
  export declare function getAllBusinessRefModelTypes(): string[];
18
17
  /** 按 refModelType 获取业务表 Profile */
19
- export declare function getBusinessProfileByRefModelType(refModelType: string | undefined | null): BusinessSubTableProfile | undefined;
20
- /** 与设计态使用同一匹配顺序,读取业务表字段配置。 */
21
- export declare function getBusinessFieldProfileByRefModelType(refModelType: string | undefined | null, field: Pick<FieldMeta, 'key' | 'type' | 'bizType'>): BusinessFieldProfile | undefined;
18
+ export declare function getBusinessProfileByRefModelType(refModelType: string): BusinessSubTableProfile | undefined;
22
19
  export { ALL_TABLE_PROFILES };
@@ -13,5 +13,6 @@ export declare class InitLoadEngine {
13
13
  */
14
14
  private shouldSkip;
15
15
  private readExistingRows;
16
- private hasNonemptyRow;
16
+ /** null / '' 也是已赋值;只允许替换尚未填写业务字段的占位行。 */
17
+ private hasInitializedRow;
17
18
  }
@@ -6,9 +6,9 @@ export declare class RowRuntimeEngine {
6
6
  constructor(doc: Doc);
7
7
  hasRowInit(ctx: TableRuntimeContext): boolean;
8
8
  /** 对单行执行行初始化 */
9
- applyRowInit(ctx: TableRuntimeContext, rowIndex: number, rowSource?: string): void;
9
+ applyRowInit(ctx: TableRuntimeContext, rowIndex: number, rowSource?: string, initializeValues?: boolean): void;
10
10
  /** 初始化时对所有未软删行执行行初始化 */
11
- applyRowInitForAllRows(ctx: TableRuntimeContext): void;
11
+ applyRowInitForAllRows(ctx: TableRuntimeContext, initializeValues?: boolean): void;
12
12
  /** 字段变更时执行 when=onFieldChange 的行处理器(按 watch 过滤) */
13
13
  applyRowHandlersOnFieldChange(ctx: TableRuntimeContext, change: SubtableFieldPath, fieldChange?: FieldChangeDetail): void;
14
14
  /** 主表字段变更时,执行 when=onMainFieldChange 的上下文赋值,补填全部子表行 */
@@ -36,12 +36,13 @@ export declare class TableRuntime {
36
36
  private readonly remoteSync;
37
37
  private readonly initLoad;
38
38
  private readonly mainFieldBind;
39
- private readonly deviceSignatureLock;
40
39
  constructor(doc: Doc);
41
40
  /** 文档是否包含业务子表 */
42
41
  get hasBusinessTables(): boolean;
43
42
  /** 文档初始化时执行全套运行时逻辑 */
44
- onInit(): Promise<void>;
43
+ onInit(options?: {
44
+ initializeValues?: boolean;
45
+ }): Promise<void>;
45
46
  /**
46
47
  * 子表新增行初始化:rowInit → 字段态规则 → 级联 → 数据填充。
47
48
  */
@@ -61,8 +62,6 @@ export declare class TableRuntime {
61
62
  * 解析业务表字段的下拉数据源 / 列覆盖(selectSource)。
62
63
  */
63
64
  resolveSelectSource(options: ResolveSelectSourceOptions): SelectSourceDef | null;
64
- /** 默认保留原来的 user 写入,仅显式配置的业务字段改变回填事件来源。 */
65
- resolveOptionFillSource(options: ResolveSelectSourceOptions): 'user' | 'enrichment';
66
65
  /**
67
66
  * 下拉选中后从选项反向回填同行字段,供 onChange 使用。
68
67
  */
@@ -1,6 +1,5 @@
1
1
  import { FIELD_TYPE } from '../field/field-type';
2
2
  import { SubTableLayoutType } from '../../core/model/document/wtcRegionRef';
3
- import { RequiredQtyCalcRule } from './business/material/types';
4
3
  /**
5
4
  * 数据表类型
6
5
  * @property dynamic-table - 动态表
@@ -21,15 +20,12 @@ export type DataTableType = 'dynamic-table' | 'fixed-table' | 'two-d-table';
21
20
  * @property warehouse-allocate - 库存调拨表
22
21
  * @property material-consume - 物料消耗表
23
22
  * @property material-balance - 物料平衡表
24
- * @property material-requisition - 产线收料表
25
- * @property material-substitution - 物料替换表
26
- * @property point-inspection - 设备点检表(固定表业务模型)
27
- * @property maintenance - 设备保养表(固定表业务模型)
23
+ * @property material-requisition - 生产收料表
28
24
  * @property check-table - 检验表
29
25
  * @property pretreatment-list - 预处理表
30
26
  * @property entrust-steril-batch-list - 委托灭菌生产批次表
31
27
  */
32
- export type BusinessSubTableType = 'warehouse-in' | 'warehouse-inbound' | 'warehouse-out' | 'warehouse-outbound' | 'warehouse-in-out' | 'warehouse-inventory' | 'part-stocktake' | 'device-part-consume' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'material-requisition' | 'material-substitution' | 'point-inspection' | 'maintenance' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
28
+ export type BusinessSubTableType = 'warehouse-in' | 'warehouse-inbound' | 'warehouse-out' | 'warehouse-outbound' | 'warehouse-in-out' | 'warehouse-inventory' | 'part-stocktake' | 'device-part-consume' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'material-requisition' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
33
29
  /** 所有子表类型(数据表 + 业务表) */
34
30
  export type TableType = DataTableType | BusinessSubTableType;
35
31
  /**
@@ -109,10 +105,8 @@ export interface BusinessSubTableProfile extends TableProfileBase {
109
105
  category: 'business';
110
106
  type: BusinessSubTableType;
111
107
  match: BusinessTableMatchRule;
112
- /** fixed-table-model 不注册独立 Ribbon 入口,仅借用固定表选择业务子模型。 */
113
- entry?: 'ribbon' | 'fixed-table-model';
114
108
  /** Ribbon 业务表分组名 */
115
- ribbonGroup?: string;
109
+ ribbonGroup: string;
116
110
  ribbonGroupDivider?: boolean;
117
111
  /** 仅在这些套件的 Ribbon 中展示;省略则所有套件可见(仍受 suite hidden 列表约束) */
118
112
  ribbonSuites?: SuiteKey[];
@@ -239,7 +233,7 @@ export interface RemoteSyncDef {
239
233
  export interface ContextAssignmentDef {
240
234
  /**
241
235
  * context → 行字段赋值的触发时机
242
- * @property onRowInit - 插行 / 文档初始化逐行时
236
+ * @property onRowInit - 新增行 / 首次填报逐行时,已保存文档重开不执行
243
237
  * @property onMainFieldChange - 指定主表字段变更时,补填全部行(需配 mainFieldKey)
244
238
  * @property onInitLoad - initLoad 批量加载映射后,逐行补填
245
239
  */
@@ -250,7 +244,7 @@ export interface ContextAssignmentDef {
250
244
  paramKey: string;
251
245
  /** 写入的行字段 key */
252
246
  fieldKey: string;
253
- /** 仅当目标字段为空时写入 */
247
+ /** 历史配置兼容;初始化统一仅填 undefined,null / '' 和其他已定义值均保留。 */
254
248
  onlyIfEmpty?: boolean;
255
249
  }
256
250
  /** 行级处理器声明:按时机调用注册于 runtime-handlers 的具名处理器 */
@@ -371,8 +365,6 @@ export interface BusinessFieldProfile {
371
365
  select?: SelectBehaviorDef;
372
366
  /** 选中下拉项后,从 option 数据同步填充同行多个字段 */
373
367
  fillFromOption?: FieldOptionFillDef[];
374
- /** 同行回填的事件来源;默认沿用 user,仅显式配置的字段使用 enrichment。 */
375
- optionFillSource?: 'user' | 'enrichment';
376
368
  /**
377
369
  * 按表实例 props 动态解析回填规则;返回值优先于 fillFromOption。
378
370
  * 返回 null/undefined 时回退 fillFromOption。
@@ -479,8 +471,6 @@ export type RuleTrigger = 'always' | 'onRowInit' | 'onFieldChange' | 'onRowConfi
479
471
  export interface RuleContext {
480
472
  /** 当前文档是否为模拟填报 */
481
473
  isMockReport: boolean;
482
- /** 物料消耗表的需求数量计算规则 */
483
- requiredQtyCalcRule?: RequiredQtyCalcRule;
484
474
  /** 子表在 rawData 中的 fieldKey */
485
475
  subFieldKey: string;
486
476
  /** 业务子模型 refModelType */