@gct-paas/word 0.1.74-beta.9 → 0.2.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 (241) hide show
  1. package/README.md +4 -1
  2. package/dist/assets/svgs/table/index.d.ts +5 -0
  3. package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -0
  4. package/dist/base/modal/src/modal.type.d.ts +5 -0
  5. package/dist/base/rdo-tree-select/src/rdo-tree-select-more.vue.d.ts +10 -3
  6. package/dist/base/rdo-tree-select/src/rdo-tree-select-panel.vue.d.ts +6 -1
  7. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
  8. package/dist/base/scrollbar/src/scrollbar.vue.d.ts +2 -2
  9. package/dist/base/select/src/basic-select.vue.d.ts +14 -0
  10. package/dist/base/utils/image-size-util.d.ts +2 -0
  11. package/dist/core/command/commands/InsertTable.d.ts +4 -0
  12. package/dist/core/command/commands/UnmergeCells.d.ts +5 -1
  13. package/dist/core/command/types.d.ts +1 -0
  14. package/dist/core/constants/index.d.ts +1 -0
  15. package/dist/core/constants/table.d.ts +11 -0
  16. package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
  17. package/dist/core/cursor/logic/index.d.ts +2 -1
  18. package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
  19. package/dist/core/data/enrichers/build-field-enrichers.d.ts +1 -1
  20. package/dist/core/data/enrichers/lot-parent-label-enricher.d.ts +12 -0
  21. package/dist/core/data/enrichers/operation-receive-qty-enricher.d.ts +19 -0
  22. package/dist/core/data/submit/form-state.d.ts +1 -1
  23. package/dist/core/event/types.d.ts +1 -1
  24. package/dist/core/index.d.ts +1 -1
  25. package/dist/core/interaction/InteractionController.d.ts +11 -0
  26. package/dist/core/interaction/types.d.ts +8 -0
  27. package/dist/core/interaction/useInteraction.d.ts +6 -0
  28. package/dist/core/layout/LayoutManager.d.ts +5 -1
  29. package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +2 -0
  30. package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
  31. package/dist/core/layout/table/split-table.d.ts +10 -0
  32. package/dist/core/layout/types/index.d.ts +2 -0
  33. package/dist/core/model/document/Wbody.d.ts +4 -0
  34. package/dist/core/model/document/WrText.d.ts +2 -0
  35. package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
  36. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
  37. package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
  38. package/dist/core/model/document/Wtbl.d.ts +31 -3
  39. package/dist/core/model/document/Wtc.d.ts +13 -2
  40. package/dist/core/model/document/Wtr.d.ts +2 -1
  41. package/dist/core/model/document/index.d.ts +1 -0
  42. package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
  43. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  44. package/dist/core/model/logic/subtable/bounded/BoundedRegion.d.ts +2 -0
  45. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +20 -1
  46. package/dist/core/model/templates/tableCell.template.d.ts +2 -0
  47. package/dist/core/model/types/style.d.ts +2 -0
  48. package/dist/core/view/Doc.d.ts +13 -1
  49. package/dist/core/view/Table.d.ts +13 -0
  50. package/dist/core/view/TableCell.d.ts +2 -1
  51. package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
  52. package/dist/core/view/runs/TextRun.d.ts +4 -0
  53. package/dist/domain/active/active-types.d.ts +10 -0
  54. package/dist/domain/constants/enum/device.d.ts +26 -0
  55. package/dist/domain/constants/enum/index.d.ts +2 -0
  56. package/dist/domain/constants/enum/lot.d.ts +16 -0
  57. package/dist/domain/constants/enum/view.d.ts +1 -1
  58. package/dist/domain/device/device-query.d.ts +10 -0
  59. package/dist/domain/field/field-props-schema-type.d.ts +10 -1
  60. package/dist/domain/field/field-type.d.ts +514 -143
  61. package/dist/domain/field/form-value.d.ts +5 -0
  62. package/dist/domain/field/lot-display-label.d.ts +2 -0
  63. package/dist/domain/object/date-object/index.d.ts +4 -0
  64. package/dist/domain/object/date-object/profile/field-keys.d.ts +19 -0
  65. package/dist/domain/object/date-object/profile/fields.d.ts +2 -0
  66. package/dist/domain/object/date-object/profile/index.d.ts +3 -0
  67. package/dist/domain/object/date-object/runtime/date-object-context.d.ts +41 -0
  68. package/dist/domain/object/date-object/runtime/date-object-runtime.d.ts +41 -0
  69. package/dist/domain/object/date-object/runtime/fetch-records.d.ts +16 -0
  70. package/dist/domain/object/date-object/runtime/object-handlers.d.ts +6 -0
  71. package/dist/domain/object/date-object/runtime/re-inspection-date.d.ts +49 -0
  72. package/dist/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
  73. package/dist/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
  74. package/dist/domain/object/date-object/types.d.ts +48 -0
  75. package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
  76. package/dist/domain/table/business/material/material-requisition/index.d.ts +2 -0
  77. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +34 -0
  78. package/dist/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
  79. package/dist/domain/table/business/material/material-requisition/profile/index.d.ts +4 -0
  80. package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
  81. package/dist/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +5 -0
  82. package/dist/domain/table/business/material/types.d.ts +41 -0
  83. package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -1
  84. package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +6 -8
  85. package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +4 -6
  86. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +6 -6
  87. package/dist/domain/table/business/shared/production-container-hyperlink-enricher.d.ts +1 -1
  88. package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +17 -0
  89. package/dist/domain/table/business/shared/scan-action.d.ts +32 -17
  90. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -1
  91. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +6 -7
  92. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -4
  93. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +1 -1
  94. package/dist/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
  95. package/dist/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +35 -0
  96. package/dist/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
  97. package/dist/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
  98. package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
  99. package/dist/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +3 -0
  100. package/dist/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
  101. package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +38 -0
  102. package/dist/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
  103. package/dist/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
  104. package/dist/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
  105. package/dist/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +6 -0
  106. package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +19 -0
  107. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +0 -1
  108. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -7
  109. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -2
  110. package/dist/domain/table/business/warehouse/warehouse-in/actions/index.d.ts +1 -0
  111. package/dist/domain/table/business/warehouse/warehouse-in/actions/scan.d.ts +3 -0
  112. package/dist/domain/table/business/warehouse/warehouse-in/index.d.ts +1 -0
  113. package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +6 -0
  114. package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +7 -0
  115. package/dist/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
  116. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +32 -0
  117. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
  118. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
  119. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
  120. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +2 -0
  121. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +0 -1
  122. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +9 -7
  123. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +7 -4
  124. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +0 -1
  125. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +6 -57
  126. package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +2 -0
  127. package/dist/domain/table/business/warehouse/warehouse-out/actions/index.d.ts +1 -0
  128. package/dist/domain/table/business/warehouse/warehouse-out/actions/scan.d.ts +7 -0
  129. package/dist/domain/table/business/warehouse/warehouse-out/index.d.ts +1 -0
  130. package/dist/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
  131. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +34 -0
  132. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
  133. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
  134. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
  135. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +2 -0
  136. package/dist/domain/table/design/ribbon-options.d.ts +2 -0
  137. package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
  138. package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
  139. package/dist/domain/table/index.d.ts +1 -0
  140. package/dist/domain/table/runtime/api/biz-service-api.d.ts +3 -1
  141. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +9 -2
  142. package/dist/domain/table/types.d.ts +28 -4
  143. package/dist/index.es.js +27216 -15049
  144. package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -0
  145. package/dist/runtime/canvas/table/render/label-parse-rule/type.d.ts +7 -1
  146. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +151 -18
  147. package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -0
  148. package/dist/runtime/canvas/table/render/material-consume/derived-qty.d.ts +5 -0
  149. package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
  150. package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +46 -0
  151. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +126 -29
  152. package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +2 -3
  153. package/dist/runtime/canvas/table/render/material-consume/product-id-query.d.ts +31 -0
  154. package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +10 -0
  155. package/dist/runtime/canvas/table/render/material-consume/scan-validator.d.ts +192 -0
  156. package/dist/runtime/canvas/table/render/material-consume/service.d.ts +20 -0
  157. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +4 -1
  158. package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
  159. package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +13 -0
  160. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +12 -0
  161. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/index.d.ts +1 -1
  162. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/quick-fill.util.d.ts +5 -1
  163. package/dist/runtime/canvas/table/shared/resolve-cell-row-change-style.d.ts +8 -4
  164. package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
  165. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
  166. package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
  167. package/dist/runtime/designer/ribbon/constant/font.d.ts +13 -5
  168. package/dist/runtime/interface/computed.d.ts +1 -1
  169. package/dist/runtime/interface/fetchers.d.ts +4 -0
  170. package/dist/runtime/interface/form-change-row.d.ts +0 -1
  171. package/dist/runtime/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
  172. package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +14 -0
  173. package/dist/runtime/renderer/dialogs/signature/security-config.d.ts +6 -0
  174. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +4 -0
  175. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
  176. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-inventory-ndo.d.ts +11 -0
  177. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-ndo.d.ts +11 -0
  178. package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +4 -2
  179. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +1 -0
  180. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +3 -0
  181. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +1 -1
  182. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +7 -1
  183. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +1 -1
  184. package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +338 -0
  185. package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +8 -3
  186. package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +6 -4
  187. package/dist/runtime/renderer/dropdowns/composables/useDropdownViewportSize.d.ts +7 -0
  188. package/dist/runtime/validation/useFormValidator.d.ts +5 -2
  189. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -1
  190. package/dist/sdk/types/field-model-query.d.ts +2 -0
  191. package/dist/sdk/types/index.d.ts +8 -1
  192. package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +15 -0
  193. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +8 -2
  194. package/dist/suites/edhr/manifest/field/business/operation-manifest.d.ts +2 -0
  195. package/dist/suites/edhr/manifest/field/business/operation-output-qty-manifest.d.ts +2 -0
  196. package/dist/suites/edhr/manifest/field/business/operation-receive-qty-manifest.d.ts +2 -0
  197. package/dist/suites/edhr/manifest/field/business/production-qty-manifest.d.ts +2 -0
  198. package/dist/suites/edhr/manifest/field/logic/model-relation-manifest.d.ts +2 -0
  199. package/dist/suites/edhr/manifest/field/material/target-warehouse-manifest.d.ts +2 -0
  200. package/dist/suites/edhr/manifest/field/object-type/date-object-manifest.d.ts +3 -0
  201. package/dist/suites/edhr/manifest/field/object-type/re-inspection-date-manifest.d.ts +2 -0
  202. package/dist/suites/edhr/manifest/field/object-type/validity-manifest.d.ts +2 -0
  203. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +74 -0
  204. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +3 -0
  205. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +69 -0
  206. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.d.ts +13 -0
  207. package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +7 -5
  208. package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
  209. package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +2 -1
  210. package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
  211. package/dist/suites/eqm/index.d.ts +1 -1
  212. package/dist/suites/eqm/panel-router/index.d.ts +2 -0
  213. package/dist/suites/eqm/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
  214. package/dist/suites/eqm/panel-schema/index.d.ts +7 -0
  215. package/dist/suites/eqm/panel-schema/part-stocktake-table/part-stocktake-table.basic.d.ts +1 -0
  216. package/dist/suites/eqm/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.d.ts +1 -0
  217. package/dist/suites/eqm/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
  218. package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
  219. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue.d.ts +4 -3
  220. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +6 -0
  221. package/dist/suites/shared/panel/config/editor/field-config-visibility.d.ts +2 -0
  222. package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue.d.ts +28 -0
  223. package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +5 -7
  224. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +3 -2
  225. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
  226. package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
  227. package/dist/suites/shared/suite-features.d.ts +3 -1
  228. package/dist/utils/adapters/ServiceUtil.d.ts +5 -2
  229. package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
  230. package/dist/utils/fonts/cjk-font-catalog.d.ts +24 -1
  231. package/dist/word.css +1434 -1032
  232. package/package.json +2 -1
  233. package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
  234. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
  235. package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
  236. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
  237. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
  238. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +0 -7
  239. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +0 -7
  240. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
  241. /package/dist/suites/edhr/manifest/field/{trace/production-identifier-manifest.d.ts → business/inspection-qty-manifest.d.ts} +0 -0
@@ -1,16 +1,41 @@
1
1
  import { RawElement } from '../../types/raw';
2
+ import { ModelNode } from '../../base';
2
3
  import { Wtr } from '../Wtr';
3
4
  import { Wtbl } from '../Wtbl';
4
5
  import { Wtc } from '../Wtc';
6
+ /** Wtc.fromXmlJson / Wtr.fromXmlJson 解析单元格内容时的上下文 */
7
+ export type WtcParseOptions = {
8
+ hostTableDepth: 0 | 1;
9
+ rootTableId: string;
10
+ grandchildWarned: {
11
+ value: number;
12
+ };
13
+ parseNestedTable: (json: RawElement) => ModelNode;
14
+ onGrandchildIgnored?: () => void;
15
+ };
16
+ /** WtblSerialization.fromXmlJson 解析上下文 */
17
+ export type WtblParseContext = {
18
+ depth: 0 | 1;
19
+ rootTableId?: string;
20
+ hostCellId?: string;
21
+ grandchildWarned?: {
22
+ value: number;
23
+ };
24
+ };
5
25
  /**
6
26
  * 表格序列化功能类
7
27
  * 提供 XML 转换、快照序列化等功能
8
28
  */
9
29
  export declare class WtblSerialization {
30
+ static resetImportGrandchildWarning(): void;
31
+ static consumeImportGrandchildWarning(): number;
32
+ static markGrandchildTableIgnored(warnedRef?: {
33
+ value: number;
34
+ }): void;
10
35
  /**
11
36
  * 从 XML JSON 创建表格实例
12
37
  */
13
- static fromXmlJson(json: RawElement): Wtbl;
38
+ static fromXmlJson(json: RawElement, context?: WtblParseContext): Wtbl;
14
39
  /**
15
40
  * 将表格实例转换为 XML JSON
16
41
  */
@@ -1,18 +1,32 @@
1
1
  import { RawElement } from '../types/raw';
2
2
  import { Wbody } from './Wbody';
3
- import { Wtr } from './Wtr';
4
3
  import { Wtc } from './Wtc';
4
+ import { Wtr } from './Wtr';
5
5
  import { ModelGroup, ModelGroupOptions } from '../base';
6
6
  import { TableRegion, BoundedRegionOptions, CheckTableRegionOptions, RepeatingRegionOptions, _2DTableRegionOptions, TableHeaderRegion, SubTableHeaderRegion, TableHeaderRegionOptions, SubTableHeaderRegionOptions, CheckTableRegion, MaterialConsumeTableRegion, MaterialConsumeTableRegionOptions, BoundedRegion, RepeatingRegion, _2DTableRegion } from '../logic';
7
+ import { WtblParseContext } from './Wtbl/Serialization';
7
8
  import { WtblPr } from './WtblPr';
9
+ /** 当前操作归属的表格作用域 */
10
+ export type TableScope = {
11
+ wtbl: Wtbl;
12
+ depth: number;
13
+ hostCell?: Wtc;
14
+ rootWtbl: Wtbl;
15
+ };
8
16
  export declare class Wtbl extends ModelGroup {
9
17
  name: 'w:tbl';
10
18
  type: "element";
11
19
  tblPr?: WtblPr;
12
20
  colWidths?: number[];
13
21
  regions: TableRegion[];
14
- parent?: Wbody;
22
+ parent?: Wbody | Wtc;
15
23
  children: Wtr[];
24
+ /** 嵌套表宿主单元格 id */
25
+ nestedInCellId?: string;
26
+ /** 最外层 Wtbl.id */
27
+ rootTableId?: string;
28
+ /** 嵌套深度:0(外表)或 1(嵌套表) */
29
+ depth: 0 | 1;
16
30
  private pendingRecalculate;
17
31
  private mutationDepth;
18
32
  private mutationNeedsRecalculate;
@@ -36,6 +50,17 @@ export declare class Wtbl extends ModelGroup {
36
50
  get checkTable(): CheckTableRegion[];
37
51
  getCheckTableById(id: string): CheckTableRegion | undefined;
38
52
  get hasCheckTable(): boolean;
53
+ /** 是否已标为业务表 / 数据表 */
54
+ get isBusinessOrDataTable(): boolean;
55
+ /** 沿 parent 链找到最外层 Wtbl */
56
+ getRootTable(): Wtbl;
57
+ getTableScope(): TableScope;
58
+ /** 收集本表单元格内的物理嵌套表 */
59
+ collectNestedTables(): Wtbl[];
60
+ /** 本表内是否存在已标业务/数据区的嵌套表 */
61
+ hasNestedBusinessOrDataTable(): boolean;
62
+ /** 作为物理嵌套表挂到宿主单元格 */
63
+ attachAsNested(hostCell: Wtc): void;
39
64
  get tableHeader(): Array<TableHeaderRegion | SubTableHeaderRegion>;
40
65
  getTableHeaderById(id: string): TableHeaderRegion | SubTableHeaderRegion | undefined;
41
66
  /**
@@ -49,7 +74,9 @@ export declare class Wtbl extends ModelGroup {
49
74
  syncRefs?: () => void;
50
75
  finalize?: () => void;
51
76
  }): void;
52
- static fromXmlJson(json: RawElement): Wtbl;
77
+ static fromXmlJson(json: RawElement, context?: WtblParseContext): Wtbl;
78
+ /** 是否为嵌套在单元格内的物理子表 */
79
+ get isNestedTable(): boolean;
53
80
  toXmlJson(): RawElement;
54
81
  /**
55
82
  * 在指定行索引处拆分表格
@@ -102,5 +129,6 @@ export declare class Wtbl extends ModelGroup {
102
129
  deleteColAt(index: number): void;
103
130
  deleteColRange(startIndex: number, endIndex: number): void;
104
131
  resizeCol(colIndex: number, width: number): void;
132
+ stealWidthToColumn(startCol: number, colSpan: number, extra: number, minWidth?: number): number;
105
133
  resizeRow(rowIndex: number, height: number): void;
106
134
  }
@@ -1,8 +1,9 @@
1
1
  import { RawElement } from '../types/raw';
2
2
  import { Wtr } from './Wtr';
3
3
  import { Wp } from './Wp';
4
+ import { Wtbl, TableScope } from './Wtbl';
4
5
  import { ModelGroup, ModelGroupOptions } from '../base';
5
- import { Wtbl } from './Wtbl';
6
+ import { WtcParseOptions } from './Wtbl/Serialization';
6
7
  import { SubTableRegionType, SubTableItemType, TableHeaderRegionType, WtcHeaderRef, WtcSubTableItemRef, WtcSubTableRef } from './wtcRegionRef';
7
8
  /** 单元格上需随行列复制同步的引用字段 */
8
9
  export declare const WTC_REF_KEYS: readonly ["mergeId", "subTable", "subTableItem", "header"];
@@ -46,6 +47,15 @@ export declare class Wtc extends ModelGroup {
46
47
  /** 是否是合并起始单元格 */
47
48
  get isMergeStart(): boolean;
48
49
  get contents(): Wp[];
50
+ getParagraphs(): Wp[];
51
+ getNestedTables(): Wtbl[];
52
+ getTableScope(): TableScope;
53
+ /** 单元格内容区宽度(DXA),用于嵌套表初始列宽(已扣除左右 padding) */
54
+ getContentWidthDxa(): number;
55
+ /** 是否允许在本单元格插入物理嵌套表 */
56
+ canInsertNestedTable(): boolean;
57
+ /** 在 block 子节点序列中插入嵌套表(纵向堆叠) */
58
+ insertNestedTableAt(index: number, wtbl: Wtbl): void;
49
59
  /** 单元格垂直对齐(w:tcPr/w:vAlign) */
50
60
  get vAlign(): 'top' | 'center' | 'bottom' | undefined;
51
61
  get firstContent(): Wp | undefined;
@@ -100,7 +110,7 @@ export declare class Wtc extends ModelGroup {
100
110
  /**
101
111
  * 从 XML JSON 创建单元格(返回数组,因为 colspan 会产生多个单元格)
102
112
  */
103
- static fromXmlJson(tcRaw: RawElement): Wtc[];
113
+ static fromXmlJson(tcRaw: RawElement, cellParseOptions?: WtcParseOptions): Wtc[];
104
114
  /**
105
115
  * 转换为 XML JSON
106
116
  * 结构:w:tc
@@ -109,6 +119,7 @@ export declare class Wtc extends ModelGroup {
109
119
  */
110
120
  toXmlJson(): RawElement | null;
111
121
  private buildTcPr;
122
+ private static parseNestedTableFromXml;
112
123
  private static normalizeWordColor;
113
124
  /**
114
125
  * 从模板创建单元格
@@ -1,6 +1,7 @@
1
1
  import { RawElement } from '../types/raw';
2
2
  import { Wtbl } from './Wtbl';
3
3
  import { Wtc } from './Wtc';
4
+ import { WtcParseOptions } from './Wtbl/Serialization';
4
5
  import { ModelGroup, ModelGroupOptions } from '../base';
5
6
  import { WtrPr, WtrHeightRule } from './WtrPr';
6
7
  type RowHeightRule = WtrHeightRule;
@@ -28,7 +29,7 @@ export declare class Wtr extends ModelGroup {
28
29
  /**
29
30
  * 从 XML JSON 创建表格行
30
31
  */
31
- static fromXmlJson(trRaw: RawElement): Wtr;
32
+ static fromXmlJson(trRaw: RawElement, cellParseOptions?: WtcParseOptions): Wtr;
32
33
  /**
33
34
  * 转换为 XML JSON
34
35
  * 结构:w:tr
@@ -8,6 +8,7 @@ export { WrImage } from './WrImage';
8
8
  export { WrField } from './WrField';
9
9
  export { WrPageWidget } from './WrPageWidget';
10
10
  export { Wtbl } from './Wtbl';
11
+ export type { TableScope } from './Wtbl';
11
12
  export { Wtr } from './Wtr';
12
13
  export { Wtc } from './Wtc';
13
14
  export { WsecPr } from './WsecPr';
@@ -0,0 +1,18 @@
1
+ import { Wtbl } from '../Wtbl';
2
+ import { ModelGroup } from '../../base';
3
+ type EnsureGroup = Pick<ModelGroup<any>, 'children' | 'insertBefore' | 'insertAfter'>;
4
+ /**
5
+ * 在数组中为每个表格补齐前后段落(就地修改,倒序遍历)。
6
+ * 适用于 fromXmlJson 等尚未挂到 ModelGroup 的构建阶段。
7
+ */
8
+ export declare function ensureParagraphsAroundTablesInList<T>(children: T[], isTable: (item: T | undefined) => boolean, isParagraph: (item: T | undefined) => boolean, createParagraph: () => T): void;
9
+ /** Wp / Wtbl 列表的便捷封装 */
10
+ export declare function ensureWpAroundWtblInList(children: unknown[]): void;
11
+ /**
12
+ * 确保单个表格在 ModelGroup 中前后都紧跟段落。
13
+ * 插入表格后调用即可(body / 单元格共用)。
14
+ */
15
+ export declare function ensureParagraphsAroundTable(group: EnsureGroup, table: Wtbl): void;
16
+ /** 确保 group 内每个表格前后都有段落 */
17
+ export declare function ensureParagraphsAroundAllTables(group: EnsureGroup): void;
18
+ export {};
@@ -29,7 +29,7 @@ export declare const SUB_TABLE_REGION_TYPES: readonly ["repeating", "bounded", "
29
29
  * 子表 layout 类型
30
30
  * Ribbon 面板、子表主题色均使用此类型;主题配置见 @/domain/table 各 Profile.theme
31
31
  */
32
- export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'warehouse-in-table' | 'warehouse-out-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
32
+ export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'material-requisition-table' | 'warehouse-in-table' | 'warehouse-inbound-table' | 'warehouse-out-table' | 'warehouse-outbound-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'part-stocktake-table' | 'device-part-consume-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
33
33
  /** 表头 layout 类型 */
34
34
  export type TableHeaderLayoutType = 'table-header';
35
35
  /** 所有子表表格 layout 类型 */
@@ -5,6 +5,8 @@ import { BoundedItemRegion, BoundedItemRegionOptions } from './BoundedItemRegion
5
5
  export type BoundedWidgetPropsMeta = {
6
6
  /** 引用填充(撑满固定表)*/
7
7
  autoFill: boolean;
8
+ /** 快速填报 */
9
+ quickFill: boolean;
8
10
  /**
9
11
  * 填充方向
10
12
  * @alias x 横向填充
@@ -15,9 +15,19 @@ export type DynamicTableProps = RepeatingWidgetPropsBase & {
15
15
  };
16
16
  export type WarehouseInTableProps = RepeatingWidgetPropsBase & {
17
17
  layoutType: 'warehouse-in-table';
18
+ /** 条码解析规则 */
19
+ barcode_parsing_rules_id_?: string;
20
+ };
21
+ export type WarehouseInboundTableProps = RepeatingWidgetPropsBase & {
22
+ layoutType: 'warehouse-inbound-table';
18
23
  };
19
24
  export type WarehouseOutTableProps = RepeatingWidgetPropsBase & {
20
25
  layoutType: 'warehouse-out-table';
26
+ /** 条码解析规则 */
27
+ barcode_parsing_rules_id_?: string;
28
+ };
29
+ export type WarehouseOutboundTableProps = RepeatingWidgetPropsBase & {
30
+ layoutType: 'warehouse-outbound-table';
21
31
  };
22
32
  export type WarehouseInOutTableProps = RepeatingWidgetPropsBase & {
23
33
  layoutType: 'warehouse-in-out-table';
@@ -41,14 +51,23 @@ export type WarehouseInventoryTableProps = RepeatingWidgetPropsBase & {
41
51
  /** 条码解析规则 */
42
52
  barcode_parsing_rules_id_?: string;
43
53
  };
54
+ export type PartStocktakeTableProps = RepeatingWidgetPropsBase & {
55
+ layoutType: 'part-stocktake-table';
56
+ };
57
+ export type DevicePartConsumeTableProps = RepeatingWidgetPropsBase & {
58
+ layoutType: 'device-part-consume-table';
59
+ };
44
60
  export type MaterialBalanceTableProps = RepeatingWidgetPropsBase & {
45
61
  layoutType: 'material-balance-table';
46
62
  };
63
+ export type MaterialRequisitionTableProps = RepeatingWidgetPropsBase & {
64
+ layoutType: 'material-requisition-table';
65
+ };
47
66
  export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
48
67
  layoutType: 'warehouse-allocate-table';
49
68
  barcode_parsing_rules_id_?: string;
50
69
  };
51
- export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseOutTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | WarehouseAllocateTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
70
+ export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
52
71
  export type RepeatingWidgetMeta = {
53
72
  props: RepeatingWidgetPropsMeta;
54
73
  };
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * 表格单元格模板 - TypeScript 版本
3
3
  * 保留变量占位符位置:{{width}}, {{paraId}}
4
+ *
5
+ * 单元格 block 子节点可为 w:p(段落)与 w:tbl(物理嵌套表)混合排列,仅纵向堆叠。
4
6
  */
5
7
  export declare const TABLE_CELL_TEMPLATE: {
6
8
  name: string;
@@ -20,6 +20,8 @@ export type TextStyle = {
20
20
  };
21
21
  sz?: number;
22
22
  szCs?: number;
23
+ /** Ribbon 字号选项 id,区分同磅值的号数/数字项 */
24
+ fontSizeOption?: string;
23
25
  spacing?: number;
24
26
  kern?: number;
25
27
  rFonts?: {
@@ -15,6 +15,11 @@ export interface DocInitOptions {
15
15
  mode?: DocModeType;
16
16
  model?: DocModel;
17
17
  preview?: boolean;
18
+ /**
19
+ * 设计器引用只读态;与 preview 互斥。
20
+ * 仅保留右侧属性 panel,禁止修改文档与配置
21
+ */
22
+ refer?: boolean;
18
23
  /** 是否是模拟填报 */
19
24
  isMockReport?: boolean;
20
25
  mainModelKey: ModelKey;
@@ -45,8 +50,10 @@ export declare class Doc {
45
50
  mode: DocModeType;
46
51
  /** 按钮区渲染模式 */
47
52
  btnRenderModeType: DocModeType;
48
- /** 是否是设计器预览模式 */
53
+ /** 是否是设计器预览模式(隐藏设计器壳) */
49
54
  preview: boolean;
55
+ /** 是否是设计器引用只读态(保留壳,禁止编辑) */
56
+ refer: boolean;
50
57
  /** 是否是模拟填报 */
51
58
  isMockReport: boolean;
52
59
  /** 填报内容区底色开关配置 */
@@ -131,6 +138,11 @@ export declare class Doc {
131
138
  isInFillMode(): boolean;
132
139
  /** 是否是打印模式 */
133
140
  isInPrintMode(): boolean;
141
+ /**
142
+ * 设计侧不可编辑:预览(藏壳)或引用只读(留 panel)。
143
+ * 用于命令 / 输入 / 拖拽等写操作拦截。
144
+ */
145
+ isDesignReadonly(): boolean;
134
146
  /** 打印时临时开关填报内容区底色 */
135
147
  setShowPrintFieldBg(show: boolean): void;
136
148
  bumpUpdateTick(): void;
@@ -3,14 +3,18 @@ import { TableRow } from './TableRow';
3
3
  import { Border } from './types';
4
4
  import { EventUtil } from './utils/EventUtil';
5
5
  import { TableCell } from './TableCell';
6
+ import { WtblPr } from '../model/document/WtblPr';
6
7
  export interface TableOptions extends LayoutGroupOptions {
7
8
  colWidths?: number[];
9
+ tblPr?: WtblPr;
8
10
  }
9
11
  export declare class Table extends LayoutGroup<TableRow> {
10
12
  type: 'table';
11
13
  component: "table";
12
14
  cellPadding: [number, number, number, number];
13
15
  colWidths?: number[];
16
+ /** 表格属性 */
17
+ tblPr?: WtblPr;
14
18
  /** redistribute 完成事件 */
15
19
  redistributeEvent: EventUtil;
16
20
  /** 表格边框 */
@@ -21,6 +25,15 @@ export declare class Table extends LayoutGroup<TableRow> {
21
25
  get width(): number;
22
26
  redistribute(): void;
23
27
  layout(x: number, y: number): void;
28
+ /**
29
+ * 相对正文区左边缘的水平偏移
30
+ * 对应 w:jc / w:tblInd;居中或右对齐且表格宽于正文区时可为负值
31
+ */
32
+ private resolveOffsetX;
33
+ /** 嵌套在单元格内的表格不使用页面级对齐 */
34
+ private isNestedInCell;
35
+ private getTableJc;
36
+ private getTblIndPx;
24
37
  updateCellOffsetInfo(): void;
25
38
  forEachCell(options: {
26
39
  startRowIdx: number;
@@ -27,7 +27,8 @@ export type SubRenderer = {
27
27
  /** 用来标记二维表的子类型 交叉 / 横向 / 纵向 */
28
28
  cellZone?: LinkSubTableCellZone;
29
29
  };
30
- export declare class TableCell extends LayoutGroup<Paragraph> implements IContainerMetrics {
30
+ export type TableCellContent = Paragraph | Table;
31
+ export declare class TableCell extends LayoutGroup<TableCellContent> implements IContainerMetrics {
31
32
  component: "tableCell";
32
33
  colspan: number;
33
34
  rowspan: number;
@@ -11,6 +11,7 @@ export declare function useDocPubApiContext(): {
11
11
  query: ComputedRef<import('../../../sdk/types').DocQueryAPI>;
12
12
  updateTick: ComputedRef<number>;
13
13
  isDesignMode: ComputedRef<boolean>;
14
+ isRefer: ComputedRef<boolean>;
14
15
  loading: ComputedRef<boolean>;
15
16
  hasData: ComputedRef<boolean>;
16
17
  hasPages: ComputedRef<boolean>;
@@ -30,6 +30,8 @@ export interface ITextRun {
30
30
  text: string;
31
31
  /** 字号 */
32
32
  fontSize: number;
33
+ /** Ribbon 字号选项 id */
34
+ fontSizeOption?: string;
33
35
  /** 字体 */
34
36
  fontFamily: string;
35
37
  /** 高亮 */
@@ -72,6 +74,8 @@ export declare class TextRun extends LayoutNode implements ITextRun {
72
74
  text: string;
73
75
  /** 字号 */
74
76
  fontSize: number;
77
+ /** Ribbon 字号选项 id */
78
+ fontSizeOption?: string;
75
79
  /** 字体 */
76
80
  fontFamily: string;
77
81
  /** 高亮 */
@@ -16,14 +16,24 @@ export type PanelType =
16
16
  | 'panel:dynamic-table'
17
17
  /** 入库明细表 */
18
18
  | 'panel:warehouse-in-table'
19
+ /** EQM 入库明细表(WAREHOUSE_INBOUND) */
20
+ | 'panel:warehouse-inbound-table'
19
21
  /** 出库明细表 */
20
22
  | 'panel:warehouse-out-table'
23
+ /** EQM 出库明细表(WAREHOUSE_OUTBOUND) */
24
+ | 'panel:warehouse-outbound-table'
21
25
  /** 出入库明细表(兼容老文档) */
22
26
  | 'panel:warehouse-in-out-table'
23
27
  /** 库存盘点表 */
24
28
  | 'panel:warehouse-inventory-table'
29
+ /** EQM 备件盘点表(PART_STOCKTAKE) */
30
+ | 'panel:part-stocktake-table'
31
+ /** EQM 备件消耗表(DEVICE_PART_CONSUME) */
32
+ | 'panel:device-part-consume-table'
25
33
  /** 物料平衡表 */
26
34
  | 'panel:material-balance-table'
35
+ /** 生产收料表 */
36
+ | 'panel:material-requisition-table'
27
37
  /** 库存调拨表 */
28
38
  | 'panel:warehouse-allocate-table'
29
39
  /** 二维表 */
@@ -0,0 +1,26 @@
1
+ /** 设备状态(enu_device_status) */
2
+ export declare const DeviceStatus: {
3
+ /** 使用中 */
4
+ readonly IN_USE: "state_device_in_use";
5
+ /** 维修中 */
6
+ readonly REPAIRING: "REPAIRING";
7
+ /** 保养中 */
8
+ readonly MAINTAINING: "MAINTAINING";
9
+ /** 点检中 */
10
+ readonly INSPECTING: "INSPECTING";
11
+ /** 校准中 */
12
+ readonly CALIBRATING: "CALIBRATING";
13
+ /** 验证中 */
14
+ readonly VERIFYING: "VERIFYING";
15
+ /** 备用 */
16
+ readonly STANDBY: "STANDBY";
17
+ /** 停用 */
18
+ readonly DEACTIVATED: "DEACTIVATED";
19
+ /** 报废 */
20
+ readonly SCRAPPED: "SCRAPPED";
21
+ };
22
+ export type DeviceStatus = (typeof DeviceStatus)[keyof typeof DeviceStatus];
23
+ /** 设备状态展示文案 */
24
+ export declare const DeviceStatusLabel: Record<DeviceStatus, string>;
25
+ /** 将设备状态枚举值转为中文;未知值原样返回 */
26
+ export declare function formatDeviceStatus(value: unknown): string;
@@ -3,3 +3,5 @@ export * from './form';
3
3
  export * from './signature';
4
4
  export * from './image';
5
5
  export * from './widget';
6
+ export * from './device';
7
+ export * from './lot';
@@ -0,0 +1,16 @@
1
+ /** 批次类型(生产标识 container_role_) */
2
+ export declare const ContainerRoleConst: {
3
+ /** 普通批次 */
4
+ readonly NORMAL: "normal";
5
+ /** 关联批父节点 */
6
+ readonly RELATED_PARENT: "related_parent";
7
+ /** 关联批子批次 */
8
+ readonly RELATED_CHILD: "related_child";
9
+ /** 合并批父节点 */
10
+ readonly MERGE_PARENT: "merge_parent";
11
+ /** 共线批父节点 */
12
+ readonly COLLINEAR_PARENT: "collinear_parent";
13
+ /** 共线批子节点 */
14
+ readonly COLLINEAR_CHILD: "collinear_child";
15
+ };
16
+ export type ContainerRole = (typeof ContainerRoleConst)[keyof typeof ContainerRoleConst];
@@ -31,7 +31,7 @@ export type RenderCompType = ValueOf<typeof RenderCompTypeConst>;
31
31
  export declare const BooleanShowModeTypeConst: {
32
32
  /** 只显示真 */
33
33
  OnlyTrue: string;
34
- /** 只显示真 */
34
+ /** 只显示假 */
35
35
  OnlyFalse: string;
36
36
  /** 同时显示真和假 */
37
37
  Both: string;
@@ -0,0 +1,10 @@
1
+ import { SelectApiBinding } from '../table/types';
2
+ /** 填报设备下拉 / 扫码查询 */
3
+ export declare const DEVICE_SEARCH_API: SelectApiBinding;
4
+ export declare const DEVICE_GROUP_QUERY_KEY = "device_group_id_";
5
+ /**
6
+ * 设备可选过滤:使用中 +(校准有效期未过 OR 无校准日期)。
7
+ * `__orExpKeys` 供 buildLikeQuery 把校准两条件做成 OR。
8
+ * 设备组不要放进 extraQuery。
9
+ */
10
+ export declare function buildDeviceBaseQuery(extraQuery?: Record<string, any>): Record<string, any>;
@@ -67,7 +67,16 @@ export interface LabelRule {
67
67
  export interface IdRule {
68
68
  type: 'id';
69
69
  }
70
- export type ValueChangeRule = HyperlinkRule | LabelRule | IdRule;
70
+ /**
71
+ * 批次/SN 父批展示名写入 `_lb_`。
72
+ * - lookupBy: 'name' → 字段值是子批次 name_
73
+ * - lookupBy: 'id' → 字段值是子批次 id_(如生产 LOT/SN)
74
+ */
75
+ export interface LotParentLabelRule {
76
+ type: 'lot-parent-label';
77
+ lookupBy?: 'name' | 'id';
78
+ }
79
+ export type ValueChangeRule = HyperlinkRule | LabelRule | IdRule | LotParentLabelRule;
71
80
  /** 将 manifest 中的 onValueChangeRule 规范为数组 */
72
81
  export declare function normalizeValueChangeRules(rule?: ValueChangeRule | ValueChangeRule[]): ValueChangeRule[];
73
82
  export type ComputedRule = PriorityRule | ResolveRule | MapRule | JoinRule | ApiRule;