@gct-paas/word 0.1.74 → 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 (291) hide show
  1. package/README.md +4 -1
  2. package/dist/assets/svgs/table/index.d.ts +7 -0
  3. package/dist/base/calendar/src/calendar.vue.d.ts +2 -2
  4. package/dist/base/calendar/src/time.vue.d.ts +2 -2
  5. package/dist/base/checkbox/src/checkbox-group.vue.d.ts +2 -2
  6. package/dist/base/checkbox/src/checkbox.vue.d.ts +2 -2
  7. package/dist/base/color-picker/src/ColorPicker.vue.d.ts +1 -1
  8. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -2
  9. package/dist/base/input/src/input-number.vue.d.ts +2 -2
  10. package/dist/base/input/src/input.vue.d.ts +5 -5
  11. package/dist/base/input/src/text-area.vue.d.ts +4 -4
  12. package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -0
  13. package/dist/base/modal/src/modal.type.d.ts +5 -0
  14. package/dist/base/radio/src/radio-group.vue.d.ts +2 -2
  15. package/dist/base/radio/src/radio.vue.d.ts +2 -2
  16. package/dist/base/rdo-tree-select/src/rdo-tree-select-more.vue.d.ts +10 -3
  17. package/dist/base/rdo-tree-select/src/rdo-tree-select-panel.vue.d.ts +6 -1
  18. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +3 -3
  19. package/dist/base/scrollbar/src/scrollbar.vue.d.ts +2 -2
  20. package/dist/base/segment-slider/src/segment-slider.vue.d.ts +2 -2
  21. package/dist/base/select/src/basic-select.vue.d.ts +16 -2
  22. package/dist/base/select/src/searchable-select.vue.d.ts +2 -2
  23. package/dist/base/slider/src/slider.vue.d.ts +4 -4
  24. package/dist/base/switch/src/switch.vue.d.ts +2 -2
  25. package/dist/base/tree-select/src/tree-select.vue.d.ts +2 -2
  26. package/dist/base/utils/image-size-util.d.ts +2 -0
  27. package/dist/core/command/commands/InsertTable.d.ts +4 -0
  28. package/dist/core/command/commands/UnmergeCells.d.ts +5 -1
  29. package/dist/core/command/types.d.ts +1 -0
  30. package/dist/core/constants/index.d.ts +1 -0
  31. package/dist/core/constants/table.d.ts +11 -0
  32. package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
  33. package/dist/core/cursor/logic/index.d.ts +2 -1
  34. package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
  35. package/dist/core/data/enrichers/build-field-enrichers.d.ts +1 -1
  36. package/dist/core/data/enrichers/lot-parent-label-enricher.d.ts +12 -0
  37. package/dist/core/data/enrichers/operation-receive-qty-enricher.d.ts +19 -0
  38. package/dist/core/data/paths/field-paths.d.ts +2 -0
  39. package/dist/core/data/submit/form-state.d.ts +1 -1
  40. package/dist/core/data/updates/field-updates.d.ts +7 -2
  41. package/dist/core/event/types.d.ts +1 -1
  42. package/dist/core/index.d.ts +1 -1
  43. package/dist/core/interaction/InteractionController.d.ts +11 -0
  44. package/dist/core/interaction/types.d.ts +8 -0
  45. package/dist/core/interaction/useInteraction.d.ts +6 -0
  46. package/dist/core/layout/LayoutManager.d.ts +5 -1
  47. package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +2 -0
  48. package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
  49. package/dist/core/layout/table/split-table.d.ts +10 -0
  50. package/dist/core/layout/types/index.d.ts +2 -0
  51. package/dist/core/model/document/Wbody.d.ts +4 -0
  52. package/dist/core/model/document/WrText.d.ts +2 -0
  53. package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
  54. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
  55. package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
  56. package/dist/core/model/document/Wtbl.d.ts +31 -3
  57. package/dist/core/model/document/Wtc.d.ts +13 -2
  58. package/dist/core/model/document/Wtr.d.ts +2 -1
  59. package/dist/core/model/document/index.d.ts +1 -0
  60. package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
  61. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  62. package/dist/core/model/logic/subtable/bounded/BoundedRegion.d.ts +2 -0
  63. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +28 -1
  64. package/dist/core/model/templates/tableCell.template.d.ts +2 -0
  65. package/dist/core/model/types/style.d.ts +2 -0
  66. package/dist/core/view/Doc.d.ts +13 -1
  67. package/dist/core/view/Table.d.ts +13 -0
  68. package/dist/core/view/TableCell.d.ts +2 -1
  69. package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
  70. package/dist/core/view/runs/TextRun.d.ts +4 -0
  71. package/dist/domain/active/active-types.d.ts +15 -1
  72. package/dist/domain/constants/enum/device.d.ts +26 -0
  73. package/dist/domain/constants/enum/index.d.ts +2 -0
  74. package/dist/domain/constants/enum/lot.d.ts +16 -0
  75. package/dist/domain/constants/enum/view.d.ts +1 -1
  76. package/dist/domain/device/device-query.d.ts +10 -0
  77. package/dist/domain/field/field-props-schema-type.d.ts +10 -1
  78. package/dist/domain/field/field-type.d.ts +515 -144
  79. package/dist/domain/field/form-value.d.ts +5 -0
  80. package/dist/domain/field/lot-display-label.d.ts +2 -0
  81. package/dist/domain/object/date-object/index.d.ts +4 -0
  82. package/dist/domain/object/date-object/profile/field-keys.d.ts +19 -0
  83. package/dist/domain/object/date-object/profile/fields.d.ts +2 -0
  84. package/dist/domain/object/date-object/profile/index.d.ts +3 -0
  85. package/dist/domain/object/date-object/runtime/date-object-context.d.ts +41 -0
  86. package/dist/domain/object/date-object/runtime/date-object-runtime.d.ts +41 -0
  87. package/dist/domain/object/date-object/runtime/fetch-records.d.ts +16 -0
  88. package/dist/domain/object/date-object/runtime/object-handlers.d.ts +6 -0
  89. package/dist/domain/object/date-object/runtime/re-inspection-date.d.ts +49 -0
  90. package/dist/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
  91. package/dist/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
  92. package/dist/domain/object/date-object/types.d.ts +48 -0
  93. package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
  94. package/dist/domain/table/business/material/material-requisition/index.d.ts +2 -0
  95. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +34 -0
  96. package/dist/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
  97. package/dist/domain/table/business/material/material-requisition/profile/index.d.ts +4 -0
  98. package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
  99. package/dist/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +5 -0
  100. package/dist/domain/table/business/material/types.d.ts +41 -0
  101. package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -1
  102. package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +6 -7
  103. package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +6 -6
  104. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +6 -6
  105. package/dist/domain/table/business/shared/production-container-hyperlink-enricher.d.ts +1 -1
  106. package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +17 -0
  107. package/dist/domain/table/business/shared/scan-action.d.ts +38 -20
  108. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -1
  109. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +6 -7
  110. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -4
  111. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +1 -1
  112. package/dist/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
  113. package/dist/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +35 -0
  114. package/dist/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
  115. package/dist/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
  116. package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
  117. package/dist/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +3 -0
  118. package/dist/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
  119. package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +38 -0
  120. package/dist/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
  121. package/dist/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
  122. package/dist/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
  123. package/dist/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +6 -0
  124. package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +19 -0
  125. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +0 -1
  126. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -7
  127. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +31 -10
  128. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
  129. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +2 -5
  130. package/dist/domain/table/business/warehouse/warehouse-in/actions/index.d.ts +1 -0
  131. package/dist/domain/table/business/warehouse/warehouse-in/actions/scan.d.ts +3 -0
  132. package/dist/domain/table/business/warehouse/warehouse-in/index.d.ts +3 -0
  133. package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +45 -0
  134. package/dist/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
  135. package/dist/domain/table/business/warehouse/warehouse-in/profile/index.d.ts +3 -0
  136. package/dist/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
  137. package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +12 -0
  138. package/dist/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
  139. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +32 -0
  140. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
  141. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
  142. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
  143. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +2 -0
  144. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +0 -1
  145. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +9 -7
  146. package/dist/domain/table/business/warehouse/warehouse-inventory/index.d.ts +1 -0
  147. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/api.d.ts +3 -0
  148. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +30 -43
  149. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +1 -2
  150. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +2 -18
  151. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +8 -59
  152. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts +10 -0
  153. package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +24 -22
  154. package/dist/domain/table/business/warehouse/warehouse-out/actions/index.d.ts +1 -0
  155. package/dist/domain/table/business/warehouse/warehouse-out/actions/scan.d.ts +7 -0
  156. package/dist/domain/table/business/warehouse/warehouse-out/index.d.ts +3 -0
  157. package/dist/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +44 -0
  158. package/dist/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
  159. package/dist/domain/table/business/warehouse/warehouse-out/profile/index.d.ts +3 -0
  160. package/dist/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
  161. package/dist/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +5 -0
  162. package/dist/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
  163. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +34 -0
  164. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
  165. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
  166. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
  167. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +2 -0
  168. package/dist/domain/table/design/ribbon-options.d.ts +8 -1
  169. package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
  170. package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
  171. package/dist/domain/table/index.d.ts +1 -0
  172. package/dist/domain/table/runtime/api/biz-service-api.d.ts +3 -1
  173. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +9 -2
  174. package/dist/domain/table/runtime/engines/main-field-bind-engine.d.ts +2 -0
  175. package/dist/domain/table/runtime/table-runtime-utils.d.ts +6 -1
  176. package/dist/domain/table/runtime/table-runtime.d.ts +2 -0
  177. package/dist/domain/table/types.d.ts +71 -7
  178. package/dist/index.es.js +30579 -17522
  179. package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -0
  180. package/dist/runtime/canvas/inline-image/resize-box.vue.d.ts +2 -2
  181. package/dist/runtime/canvas/table/render/label-parse-rule/type.d.ts +7 -1
  182. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +151 -18
  183. package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -0
  184. package/dist/runtime/canvas/table/render/material-consume/derived-qty.d.ts +5 -0
  185. package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
  186. package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +46 -0
  187. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +126 -29
  188. package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +2 -3
  189. package/dist/runtime/canvas/table/render/material-consume/product-id-query.d.ts +31 -0
  190. package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +10 -0
  191. package/dist/runtime/canvas/table/render/material-consume/scan-validator.d.ts +192 -0
  192. package/dist/runtime/canvas/table/render/material-consume/service.d.ts +20 -0
  193. package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +4 -1
  194. package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
  195. package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +13 -0
  196. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +12 -0
  197. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/index.d.ts +1 -1
  198. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/quick-fill.util.d.ts +5 -1
  199. package/dist/runtime/canvas/table/shared/resolve-cell-row-change-style.d.ts +8 -4
  200. package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
  201. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
  202. package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
  203. package/dist/runtime/designer/ribbon/components/text-color-select.vue.d.ts +1 -1
  204. package/dist/runtime/designer/ribbon/constant/font.d.ts +13 -5
  205. package/dist/runtime/interface/computed.d.ts +1 -1
  206. package/dist/runtime/interface/fetchers.d.ts +4 -0
  207. package/dist/runtime/interface/form-change-row.d.ts +0 -1
  208. package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +13 -12
  209. package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +1 -0
  210. package/dist/runtime/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
  211. package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +14 -0
  212. package/dist/runtime/renderer/dialogs/signature/security-config.d.ts +6 -0
  213. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +4 -0
  214. package/dist/runtime/renderer/dropdowns/components/option-dropdown.vue.d.ts +12 -12
  215. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
  216. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-inventory-ndo.d.ts +11 -0
  217. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-ndo.d.ts +11 -0
  218. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/product-ndo.d.ts +12 -0
  219. package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +6 -3
  220. package/dist/runtime/renderer/dropdowns/components/tables/component/device-type-select.vue.d.ts +2 -2
  221. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +1 -0
  222. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +4 -0
  223. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +13 -13
  224. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +16 -1
  225. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +13 -13
  226. package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +338 -0
  227. package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +8 -3
  228. package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +6 -4
  229. package/dist/runtime/renderer/dropdowns/components/tree/tree-dropdown.vue.d.ts +12 -12
  230. package/dist/runtime/renderer/dropdowns/composables/useDropdownViewportSize.d.ts +7 -0
  231. package/dist/runtime/validation/useFormValidator.d.ts +5 -2
  232. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -1
  233. package/dist/sdk/types/field-model-query.d.ts +2 -0
  234. package/dist/sdk/types/index.d.ts +8 -1
  235. package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +15 -0
  236. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +8 -2
  237. package/dist/suites/edhr/manifest/field/business/operation-manifest.d.ts +2 -0
  238. package/dist/suites/edhr/manifest/field/business/operation-output-qty-manifest.d.ts +2 -0
  239. package/dist/suites/edhr/manifest/field/business/operation-receive-qty-manifest.d.ts +2 -0
  240. package/dist/suites/edhr/manifest/field/business/production-qty-manifest.d.ts +2 -0
  241. package/dist/suites/edhr/manifest/field/logic/model-relation-manifest.d.ts +2 -0
  242. package/dist/suites/edhr/manifest/field/material/target-warehouse-manifest.d.ts +2 -0
  243. package/dist/suites/edhr/manifest/field/object-type/date-object-manifest.d.ts +3 -0
  244. package/dist/suites/edhr/manifest/field/object-type/re-inspection-date-manifest.d.ts +2 -0
  245. package/dist/suites/edhr/manifest/field/object-type/validity-manifest.d.ts +2 -0
  246. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +74 -0
  247. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +3 -0
  248. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +69 -0
  249. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.d.ts +13 -0
  250. package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +7 -5
  251. package/dist/suites/edhr/panel-schema/index.d.ts +3 -0
  252. package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +2 -1
  253. package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
  254. package/dist/suites/edhr/panel-schema/warehouse-in-table/warehouse-in-table.basic.d.ts +1 -0
  255. package/dist/suites/edhr/panel-schema/warehouse-out-table/warehouse-out-table.basic.d.ts +1 -0
  256. package/dist/suites/eqm/index.d.ts +1 -1
  257. package/dist/suites/eqm/panel-router/index.d.ts +2 -0
  258. package/dist/suites/eqm/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
  259. package/dist/suites/eqm/panel-schema/index.d.ts +7 -0
  260. package/dist/suites/eqm/panel-schema/part-stocktake-table/part-stocktake-table.basic.d.ts +1 -0
  261. package/dist/suites/eqm/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.d.ts +1 -0
  262. package/dist/suites/eqm/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
  263. package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
  264. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue.d.ts +4 -3
  265. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +8 -0
  266. package/dist/suites/shared/panel/config/editor/field-config-visibility.d.ts +2 -0
  267. package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue.d.ts +28 -0
  268. package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +5 -7
  269. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +2 -2
  270. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +3 -2
  271. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
  272. package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
  273. package/dist/suites/shared/suite-features.d.ts +19 -0
  274. package/dist/utils/adapters/ServiceUtil.d.ts +5 -2
  275. package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
  276. package/dist/utils/fonts/cjk-font-catalog.d.ts +24 -1
  277. package/dist/utils/func/file.d.ts +1 -1
  278. package/dist/word.css +1466 -1054
  279. package/package.json +3 -2
  280. package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
  281. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
  282. package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
  283. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
  284. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
  285. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +0 -7
  286. package/dist/domain/table/business/warehouse/warehouse-allocate/types.d.ts +0 -38
  287. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +0 -7
  288. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/remote-sync-apply.d.ts +0 -9
  289. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
  290. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/warehouse-context.d.ts +0 -3
  291. /package/dist/suites/edhr/manifest/field/{trace/production-identifier-manifest.d.ts → business/inspection-qty-manifest.d.ts} +0 -0
@@ -8,6 +8,11 @@ export declare function setValue(value: any, valuePath: string, payload?: {
8
8
  [valuePath]: any;
9
9
  };
10
10
  export declare function toBoolean(value: any): boolean | null;
11
+ /** 布尔选项默认别名 */
12
+ export declare const BOOLEAN_TRUE_LABEL = "\u771F";
13
+ export declare const BOOLEAN_FALSE_LABEL = "\u5047";
14
+ /** 别名为空时回退到默认「真 / 假」 */
15
+ export declare function resolveBooleanOptionLabel(label: unknown, value: unknown): string;
11
16
  export declare function toFormatValue(fieldType: FIELD_TYPE, value: any): any;
12
17
  export declare function toDictValue(field: string, value: any, row: any): any;
13
18
  export declare function getSelectOptions(payload: any): {
@@ -0,0 +1,2 @@
1
+ /** 根据 批次/SN 记录决定界面展示名称;关联批子批次对外展示父批次名。 */
2
+ export declare function resolveLotDisplayLabel(record: Record<string, any> | undefined): string | undefined;
@@ -0,0 +1,4 @@
1
+ export { profile as dateObjectProfile, OBJECT_TYPE } from './profile';
2
+ export { DateObjectRuntime } from './runtime/date-object-runtime';
3
+ export { DateObjectContext } from './runtime/date-object-context';
4
+ export type { DateObjectProfile } from './types';
@@ -0,0 +1,19 @@
1
+ /** 批次 / 物料下拉 option 上的字段 */
2
+ export declare const OptionF: {
3
+ /** 物料 */
4
+ readonly productId: "product_id_";
5
+ /** 生产日期 */
6
+ readonly productionDate: "production_date_";
7
+ /** 有效期 */
8
+ readonly validity: "validate_";
9
+ /** 下一次复检日期 */
10
+ readonly reInspectionDate: "re_inspection_date_";
11
+ /** 复检周期 */
12
+ readonly reInspectionInterval: "re_inspection_interval_";
13
+ /** 复检周期单位 */
14
+ readonly reInspectionIntervalUnit: "re_inspection_interval_unit_";
15
+ };
16
+ /** paramsConfig.txnConfig.businessType:复检场景 */
17
+ export declare const RE_INSPECTION_BUSINESS_TYPE = "reInspection";
18
+ /** 真正要按周期计算、但物料未配周期时的提示 */
19
+ export declare const MISSING_RE_INSPECTION_INTERVAL_MSG = "\u5F53\u524D\u7269\u6599\u672A\u914D\u7F6E\u590D\u68C0\u5468\u671F\uFF0C\u65E0\u6CD5\u8BA1\u7B97\u4E0B\u4E00\u6B21\u590D\u68C0\u65E5\u671F";
@@ -0,0 +1,2 @@
1
+ import { DateObjectFieldProfile } from '../types';
2
+ export declare const fields: DateObjectFieldProfile[];
@@ -0,0 +1,3 @@
1
+ import { DateObjectProfile } from '../types';
2
+ export declare const OBJECT_TYPE: "date_object";
3
+ export declare const profile: DateObjectProfile;
@@ -0,0 +1,41 @@
1
+ import { Doc } from '../../../../core';
2
+ import { FIELD_TYPE } from '../../../field/field-type';
3
+ import { DateObjectFieldProfile, DateObjectProfile } from '../types';
4
+ /** 日期对象子字段身份:控件 fieldLink 末段即主表 field key */
5
+ interface DateObjectChildField {
6
+ key: string;
7
+ }
8
+ /** 同一日期对象下的子字段,按 bizType 索引 */
9
+ interface DateObjectFieldSet {
10
+ belongingObject: string;
11
+ byBizType: Partial<Record<FIELD_TYPE, DateObjectChildField>>;
12
+ }
13
+ /** 单个物料日期对象实例:Profile + 同组字段 */
14
+ export declare class DateObjectContext {
15
+ readonly doc: Doc;
16
+ readonly profile: DateObjectProfile;
17
+ readonly belongingObject: string;
18
+ readonly fieldSet: DateObjectFieldSet;
19
+ /**
20
+ * @param doc 当前文档
21
+ * @param profile 日期对象 Profile
22
+ * @param belongingObject 对象字段 key,同组子字段都挂在它下面
23
+ * @param fieldSet 已按 bizType 收好的同组字段
24
+ */
25
+ constructor(doc: Doc, profile: DateObjectProfile, belongingObject: string, fieldSet: DateObjectFieldSet);
26
+ /** 按 bizType 取同组字段 key */
27
+ fieldByBizType(bizType: FIELD_TYPE): DateObjectChildField | undefined;
28
+ /** 主表路径 `$.{fieldKey}` */
29
+ path(bizType: FIELD_TYPE): string | undefined;
30
+ /** 读取同组字段当前值 */
31
+ getValue(bizType: FIELD_TYPE): unknown;
32
+ /** 按 bizType 查找字段 Profile */
33
+ findFieldProfile(bizType: FIELD_TYPE): DateObjectFieldProfile | undefined;
34
+ /** 按主表 field key 反查同组 bizType */
35
+ bizTypeByFieldKey(fieldKey: string | undefined): FIELD_TYPE | undefined;
36
+ /** 一次模型遍历,收集文档内全部物料日期对象 */
37
+ static collectAll(doc: Doc): DateObjectContext[];
38
+ /** 按对象 key 查找上下文;不是日期对象则返回 undefined */
39
+ static find(doc: Doc, belongingObject: string | undefined): DateObjectContext | undefined;
40
+ }
41
+ export {};
@@ -0,0 +1,41 @@
1
+ import { Doc } from '../../../../core';
2
+ import { FieldChangeMap } from '../../../../core/data';
3
+ export declare class DateObjectRuntime {
4
+ private readonly doc;
5
+ /** 绑定当前文档;每次 overlay / afterFlush 可 new 一份 */
6
+ constructor(doc: Doc);
7
+ /** 文档初始化:按当前物料写入批次下拉过滤参数 */
8
+ onInit(): void;
9
+ /**
10
+ * 选中 / 清空下拉:按 profile.fillFromOption、clearOnEmpty 回填。
11
+ * 只反填物料 / 生产日期 / 有效期;下一次复检日期由 afterFlush 现查接口计算。
12
+ */
13
+ buildFillFromOption(options: {
14
+ belongingObject?: string;
15
+ bizType?: string;
16
+ selectedOption?: Record<string, unknown> | null;
17
+ }): Record<string, unknown>;
18
+ /**
19
+ * 用户改上游字段时,按 select.clearOnLinkChange 清空下游。
20
+ * 只看「本次点选的字段」,避免批次反填物料时把批次自己清掉。
21
+ */
22
+ buildDownstreamClears(options: {
23
+ belongingObject?: string;
24
+ bizType?: string;
25
+ pending?: Record<string, unknown>;
26
+ }): Record<string, unknown>;
27
+ /**
28
+ * 用户变更主表字段后:刷新级联 query,并按 profile.rowHandlers 现查接口重算。
29
+ */
30
+ onFieldChanges(changedMap: FieldChangeMap, options?: {
31
+ batchSource?: string;
32
+ }): Promise<void>;
33
+ /** 主表路径 `$.fieldKey` → 对象内 bizType */
34
+ private resolveChangedBizType;
35
+ /** 批次反填物料时物料值未变,不应触发 clearOnLinkChange */
36
+ private isUnchangedProduct;
37
+ /** 按 select.buildLinkQuery 写入批次下拉过滤参数 */
38
+ private applyLinkage;
39
+ /** 按 bizType 把同组字段写成 null;批次额外清 _id_ */
40
+ private buildClearUpdates;
41
+ }
@@ -0,0 +1,16 @@
1
+ /** 物料信息:按版本 id 拉一条(value 可能是 baseId:versionId) */
2
+ export declare function fetchProductRecord(productValue: unknown): Promise<Record<string, unknown> | null>;
3
+ /** 批次信息:优先 companion id,否则按批次号 name_;每次现查,不用缓存 */
4
+ export declare function fetchLotRecord(options: {
5
+ lotId?: unknown;
6
+ lotName?: unknown;
7
+ }): Promise<Record<string, unknown> | null>;
8
+ /** 并行拉物料 + 批次;缺 ident 的一侧不请求 */
9
+ export declare function fetchDateObjectRecords(options: {
10
+ productValue?: unknown;
11
+ lotId?: unknown;
12
+ lotName?: unknown;
13
+ }): Promise<{
14
+ product: Record<string, unknown> | null;
15
+ lot: Record<string, unknown> | null;
16
+ }>;
@@ -0,0 +1,6 @@
1
+ import { Doc } from '../../../../core';
2
+ export type DateObjectHandler = (doc: Doc, belongingObject: string) => void | Promise<void>;
3
+ /** 注册对象级运行时钩子;profile 只需写短名 */
4
+ export declare function registerDateObjectHandler(name: string, handler: DateObjectHandler): void;
5
+ /** 执行指定短名的对象处理器;未注册则静默跳过 */
6
+ export declare function runDateObjectHandler(name: string | undefined, doc: Doc, belongingObject: string): Promise<void>;
@@ -0,0 +1,49 @@
1
+ import { MISSING_RE_INSPECTION_INTERVAL_MSG } from '../profile/field-keys';
2
+ export { MISSING_RE_INSPECTION_INTERVAL_MSG };
3
+ export type ReInspectionIntervalUnit = 'day' | 'month';
4
+ export interface ReInspectionInterval {
5
+ /** 复检周期 */
6
+ amount: number;
7
+ /** 复检周期单位 */
8
+ unit: ReInspectionIntervalUnit;
9
+ }
10
+ export interface ResolveNextReInspectionDateInput {
11
+ /** paramsConfig.txnConfig.businessType === reInspection */
12
+ isReInspection: boolean;
13
+ /** 批次接口上的下一次复检日期 */
14
+ lotReInspectionDate?: unknown;
15
+ /** 当前生产日期(批次带出或手选) */
16
+ productionDate?: unknown;
17
+ /** 复检周期信息 */
18
+ interval?: ReInspectionInterval;
19
+ }
20
+ export interface ResolveNextReInspectionDateResult {
21
+ value: string | null;
22
+ /** 是否走「生产日期 / 接口日期 + 周期」计算 */
23
+ needCalculate: boolean;
24
+ missingInterval: boolean;
25
+ }
26
+ /** 是否为可解析的日历日期(写入前会归一成 YYYY-MM-DD) */
27
+ export declare function hasDateValue(value: unknown): boolean;
28
+ /**
29
+ * 复检周期单位:接口只返回 day / month。
30
+ */
31
+ export declare function normalizeReInspectionUnit(unit: unknown): ReInspectionIntervalUnit | undefined;
32
+ /** 复检周期数量:必须是有限正数 */
33
+ export declare function parseReInspectionIntervalAmount(value: unknown): number | undefined;
34
+ /** 从物料或批次 option 读取复检周期;缺数量或单位则视为未配置 */
35
+ export declare function pickReInspectionInterval(source?: Record<string, unknown> | null): ReInspectionInterval | undefined;
36
+ /**
37
+ * 按日历加周期:先 toDateOnly 成 YYYY-MM-DD,再 dayjs.add。
38
+ * 项目里没有现成的日期加减工具,日期归一复用 toDateOnly。
39
+ * 自然月:1月31日 + 1月 → 2月28日;无效基准日期返回 null。
40
+ */
41
+ export declare function addReInspectionInterval(base: unknown, interval: ReInspectionInterval): string | null;
42
+ /**
43
+ * 下一次复检日期:
44
+ * - 未配复检且批次已有日期 → 直接用接口值
45
+ * - 否则用「接口日期(复检场景)或生产日期」+ 周期
46
+ */
47
+ export declare function resolveNextReInspectionDate(input: ResolveNextReInspectionDateInput): ResolveNextReInspectionDateResult;
48
+ /** paramsConfig.txnConfig.businessType === reInspection */
49
+ export declare function isReInspectionTxnConfig(txnConfig: unknown): boolean;
@@ -0,0 +1,6 @@
1
+ import { Doc } from '../../../../core';
2
+ /**
3
+ * 用当前表单上的物料 / 批次去拉接口,写入下一次复检日期。
4
+ * 物料、批次都空时不请求、不提示(还没选 ident)。
5
+ */
6
+ export declare function syncReInspectionDate(doc: Doc, belongingObject: string): Promise<void>;
@@ -0,0 +1,48 @@
1
+ import { FIELD_TYPE } from '../../field/field-type';
2
+ /** 单条 option → 对象子字段 的映射 */
3
+ export interface DateObjectOptionFillDef {
4
+ /** option record 里的源字段 key */
5
+ optionField: string;
6
+ /** 目标子字段,运行时按 bizType 解析为实际 field key */
7
+ toBizType: FIELD_TYPE;
8
+ /** 写入前对 option 值做转换(如日期时间 → 日期) */
9
+ transform?: (value: unknown) => unknown;
10
+ }
11
+ /** 下拉级联:上游按 bizType 解析,不写死 field key */
12
+ export interface DateObjectSelectDef {
13
+ /** 上游字段 bizType(与本字段同属一个 belongingObject) */
14
+ linkBizType: FIELD_TYPE;
15
+ /** 构建下拉查询参数;上游为空时返回 {},批次可独立下拉 */
16
+ buildLinkQuery?: (ctx: {
17
+ linkValue: unknown;
18
+ }) => Record<string, unknown>;
19
+ /** 用户改上游时清空的下游(bizType) */
20
+ clearOnLinkChange?: FIELD_TYPE[];
21
+ }
22
+ /** 日期对象子字段 Profile:按 bizType 匹配,声明联动 / 反填 */
23
+ export interface DateObjectFieldProfile {
24
+ match: {
25
+ bizType: FIELD_TYPE;
26
+ };
27
+ /** 下拉级联 */
28
+ select?: DateObjectSelectDef;
29
+ /** 选中下拉项后,从 option 同步填充同组字段 */
30
+ fillFromOption?: DateObjectOptionFillDef[];
31
+ /** 本字段清空时要清的 sibling bizType(不含反填物料) */
32
+ clearOnEmpty?: FIELD_TYPE[];
33
+ }
34
+ /** 对象级处理器声明:按时机调用注册于 object-handlers 的具名处理器 */
35
+ export interface DateObjectRowHandlerDef {
36
+ when: 'onFieldChange';
37
+ /** 仅这些 bizType 变更时执行 */
38
+ watch: FIELD_TYPE[];
39
+ /** 注册于 object-handlers 的处理器短名 */
40
+ handler: string;
41
+ }
42
+ /** 物料日期对象 Profile */
43
+ export interface DateObjectProfile {
44
+ type: 'date_object';
45
+ fields: DateObjectFieldProfile[];
46
+ /** 无法声明的副作用(如按物料/批次接口计算复检日期) */
47
+ rowHandlers?: DateObjectRowHandlerDef[];
48
+ }
@@ -2,6 +2,7 @@ import { CheckTableItemInfosPayload, CheckTableRegionRef } from '../types';
2
2
  import { ICheckTableConfig } from '../front-config';
3
3
  /**
4
4
  * 按已扫描的检验表 region 并行解析检验项(有快照用快照,否则请求)。
5
+ * @param instanceId 真实填报实例 id;设计态 / 模拟填报应传空字符串(默认数据源将跳过请求)
5
6
  * @returns infosMap / countMap(count 至少为 1,用于占位行)/ 待落库 byTable 快照
6
7
  */
7
8
  export declare function fetchCheckItemsForRegions(instanceId: string, regions: CheckTableRegionRef[], checkTableConfig?: ICheckTableConfig): Promise<{
@@ -0,0 +1,2 @@
1
+ export { profile as materialRequisitionProfile, TABLE_TYPE } from './profile';
2
+ export * from './profile';
@@ -0,0 +1,34 @@
1
+ /**
2
+ * 生产收料表(MATERIAL_REQUISITION)字段 key
3
+ */
4
+ export declare const F: {
5
+ /** 物料 */
6
+ readonly product: "product_id_";
7
+ /** 物料名称 */
8
+ readonly productName: "product_id_name_";
9
+ /** 物料编码 */
10
+ readonly productCode: "product_id_code_";
11
+ /** 物料规格 */
12
+ readonly productSpec: "product_id_spec_";
13
+ /** 物料批号 */
14
+ readonly materialNo: "material_no_";
15
+ /** 物料批号 ID */
16
+ readonly materialNoId: "material_no__id_";
17
+ /** 工单 */
18
+ readonly mfgOrder: "mfg_order_id_";
19
+ /** 批次/SN */
20
+ readonly lotSn: "lot_sn_id_";
21
+ /** 唯一码 */
22
+ readonly uniqueCode: "unique_code_";
23
+ /** 收料数量 */
24
+ readonly qtyRequisition: "qty_requisition_";
25
+ /** 数量单位 */
26
+ readonly qtyUom: "qty_uom_id_";
27
+ /** 有效期 */
28
+ readonly validity: "validity_";
29
+ };
30
+ export type MaterialRequisitionFieldKey = (typeof F)[keyof typeof F];
31
+ /** 设计态固定禁用、运行态只读的信息字段 */
32
+ export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
33
+ /** 物料清空时需一并清空的字段 */
34
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
@@ -0,0 +1,2 @@
1
+ import { BusinessFieldProfile } from '../../../../types';
2
+ export declare const fields: BusinessFieldProfile[];
@@ -0,0 +1,4 @@
1
+ import { BusinessSubTableProfile } from '../../../../types';
2
+ export declare const TABLE_TYPE: "material-requisition";
3
+ export declare const profile: BusinessSubTableProfile;
4
+ export { profile as materialRequisitionProfile };
@@ -0,0 +1,5 @@
1
+ import { Doc } from '../../../../../../core';
2
+ /**
3
+ * 物料清空时,同步清空名称 / 编码 / 规格
4
+ */
5
+ export declare function handleProductIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -55,6 +55,21 @@ export interface IBomEntry {
55
55
  operation_sort_num_?: number;
56
56
  /** 是否必须上料 */
57
57
  force_loading_enabled_?: boolean;
58
+ /** 是否指定物料批次 */
59
+ specified_material_no_enabled_?: boolean;
60
+ /** 指定的物料批次集合 */
61
+ specified_material_entries_?: Array<{
62
+ name_?: string;
63
+ production_identification_id_?: string;
64
+ }>;
65
+ /** 是否禁用条码解析 */
66
+ disable_barcode_parsing_?: boolean;
67
+ /** 条码参数类型 */
68
+ scan_param_type_?: ScanParamType;
69
+ /** 需求数量计算规则 */
70
+ required_qty_calc_rule_?: RequiredQtyCalcRule;
71
+ /** 需求数量按生产数量计算时绑定的生产数量字段 */
72
+ product_qty_field_?: string;
58
73
  }
59
74
  /** 物料消耗表业务配置 */
60
75
  export interface IFormTmplBom {
@@ -68,6 +83,8 @@ export interface IFormTmplBom {
68
83
  material_loading_model_enabled_: boolean;
69
84
  /** 条码解析规则(旧数据是id,新数据是json对象str) */
70
85
  barcode_parsing_rules_id_?: string;
86
+ /** 条码参数配置,不开启条码解析时,用这个配置 */
87
+ barcodeParamType?: string;
71
88
  /** 从BOM初始化 */
72
89
  bom_init_enabled_?: boolean;
73
90
  /** 人为指定物料 */
@@ -80,6 +97,16 @@ export interface IFormTmplBom {
80
97
  deleted_?: boolean;
81
98
  /** 物料消耗模式, record:记录模式,bom: BOM模式 */
82
99
  material_consumption_pattern_?: MaterialConsumptionPatternEnum;
100
+ /** 是否禁用条码解析 */
101
+ disable_barcode_parsing_?: boolean;
102
+ /** 条码参数类型 */
103
+ scan_param_type_?: ScanParamType;
104
+ /** 需求数量计算规则 */
105
+ required_qty_calc_rule_?: RequiredQtyCalcRule;
106
+ /** 需求数量按生产数量计算时绑定的生产数量字段 */
107
+ product_qty_field_?: string;
108
+ /** 物料消耗对象 key */
109
+ object_key_?: string;
83
110
  }
84
111
  /**
85
112
  * 物料消耗表子模型的数据结构
@@ -99,6 +126,8 @@ export interface IMaterialConsumeData {
99
126
  qty_required_?: number;
100
127
  /** 需求数量单位 */
101
128
  qty_required_uom_id_?: string;
129
+ /** 序号 */
130
+ sort_num_?: number;
102
131
  /** 数量单位 */
103
132
  qty_uom_id_?: string;
104
133
  /** 转换后数量 */
@@ -127,6 +156,8 @@ export interface IMaterialConsumeData {
127
156
  product_id__lb_?: string;
128
157
  /** 扫码未回填 product_id_ 的兜底行标记(记录模式内部瞬态,行生命周期内持久,不向后端提交) */
129
158
  _scanFallback?: boolean;
159
+ /** 本次上料汇总数量 */
160
+ qty_consumed_total_?: number;
130
161
  }
131
162
  /**
132
163
  * 条码解析规则配置参数
@@ -151,3 +182,13 @@ export declare enum MaterialConsumptionPatternEnum {
151
182
  /** bom模式 */
152
183
  BOM = "bom"
153
184
  }
185
+ /** 扫码参数类型 */
186
+ export declare enum ScanParamType {
187
+ Lot = "lot",
188
+ UniqueCode = "uniqueCode"
189
+ }
190
+ /** 需求数量计算规则 */
191
+ export declare enum RequiredQtyCalcRule {
192
+ LotQty = "lotQty",
193
+ ProductQty = "productQty"
194
+ }
@@ -1,2 +1 @@
1
1
  export * from './scan';
2
- export * from './change-parse-rule';
@@ -1,7 +1,6 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 打开扫码弹窗 */
3
- export declare function openPretreatmentListScan(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subFieldKey: string;
7
- }): Promise<void>;
1
+ import { BusinessScanHandler } from '../../../shared/scan-action';
2
+ /**
3
+ * 预处理表:扫码后入行
4
+ * 接口同入库:em_production_identification / biz_production_identification_scan
5
+ */
6
+ export declare const handlePretreatmentListScan: BusinessScanHandler;
@@ -13,7 +13,7 @@ export declare const F: {
13
13
  readonly productSpec: "product_id_spec_";
14
14
  /** 物料批次号 */
15
15
  readonly materialContainer: "material_container_no_";
16
- /** 生产批次号 */
16
+ /** 生产LOT/SN */
17
17
  readonly productionContainer: "production_container_id_";
18
18
  /** 数量 */
19
19
  readonly qty: "qty_";
@@ -24,16 +24,16 @@ export declare const F: {
24
24
  /** 生产日期 */
25
25
  readonly productionDate: "production_date_";
26
26
  };
27
- /** remoteSync 成功回写的基础字段 */
28
- export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "mfg_order_code_"];
29
- /** 行变更 handler:生产批次号清空时的字段集 */
27
+ /** 设计态输入属性固定禁用、运行态只读:物料名称 / 编码 / 规格 */
28
+ export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
29
+ /** 行变更 handler:生产LOT/SN清空时的字段集 */
30
30
  export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
31
- /** 行变更 handler:生产批次号切换时的字段集 */
31
+ /** 行变更 handler:生产LOT/SN切换时的字段集 */
32
32
  export declare const CLEAR_ON_PROD_CONTAINER_SWITCH: ("material_container_no_" | "mfg_order_id_")[];
33
33
  /** 行变更 handler:工单清空时的字段集 */
34
34
  export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
35
35
  /** 行变更 handler:工单切换时的字段集 */
36
- export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("material_container_no_" | "production_container_id_")[];
36
+ export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("production_container_id_" | "material_container_no_")[];
37
37
  /** 行变更 handler:物料批次号清空时的字段集 */
38
38
  export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY: ("product_id_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "mfg_order_code_" | "qty_" | "production_date_")[];
39
39
  /** 行变更 handler:物料批次号切换时的字段集 */
@@ -1,20 +1,20 @@
1
1
  import { Doc } from '../../../../../../core';
2
2
  /**
3
- * 生产批次号 切换 / 清空
4
- * 切换【生产批次号】 → 清工单 + 物料批次号
5
- * 清空【生产批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
3
+ * 生产LOT/SN 切换 / 清空
4
+ * 切换【生产LOT/SN】 → 清工单 + 物料批次号
5
+ * 清空【生产LOT/SN】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
6
6
  */
7
7
  export declare function handleProductionContainerChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
8
8
  /**
9
9
  * 工单 切换 / 清空
10
- * 切换【工单】 -> 清生产批次号 + 物料批次号
10
+ * 切换【工单】 -> 清生产LOT/SN + 物料批次号
11
11
  * 清空【工单】 -> 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
12
12
  */
13
13
  export declare function handleMfgOrderChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
14
14
  /**
15
15
  * 物料批次号 切换 / 清空
16
- * 下拉选中(有 companion id)→ 清生产批次号 + 工单
17
- * 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产批次号 + 工单
16
+ * 下拉选中(有 companion id)→ 清生产LOT/SN + 工单
17
+ * 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产LOT/SN + 工单
18
18
  * 清空【物料批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
19
19
  */
20
20
  export declare function handleMaterialContainerNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -2,6 +2,6 @@ import { Doc } from '../../../../core';
2
2
  import { DataEnricherRegistration } from '../../../../core/data';
3
3
  import { BusinessSubTableType } from '../../types';
4
4
  /**
5
- * 按业务表类型,仅为该表内的「生产批次号」补全 _href_
5
+ * 按业务表类型,仅为该表内的「生产LOT/SN」补全 _href_
6
6
  */
7
7
  export declare function createProductionContainerHyperlinkEnricher(doc: Doc, tableType: BusinessSubTableType): DataEnricherRegistration;
@@ -0,0 +1,17 @@
1
+ import { IRuleParseData } from '../../../../runtime/canvas/table/render/label-parse-rule/type';
2
+ import { BizServiceApiDef } from '../../types';
3
+ export declare const PRODUCTION_IDENTIFICATION_SCAN_NOT_FOUND_MSG = "\u626B\u63CF\u7684\u7269\u6599\u4E0D\u5B58\u5728";
4
+ export declare const PRODUCTION_IDENTIFICATION_SCAN_LOT_OR_UNIQUE_REQUIRED_MSG = "\u6761\u7801\u4E2D\u672A\u89E3\u6790\u5230\u7269\u6599\u6279\u53F7\u6216\u552F\u4E00\u7801";
5
+ export declare const PRODUCTION_IDENTIFICATION_SCAN_API: BizServiceApiDef;
6
+ /** 物料批号、唯一码至少有一个非空 */
7
+ export declare function hasProductionIdentificationScanKey(parsed: IRuleParseData): boolean;
8
+ /** 条码解析结果 → 扫码接口入参(字段名与后端约定一致,含 vaildate_ 拼写) */
9
+ export declare function buildProductionIdentificationScanBody(parsed: IRuleParseData): Record<string, unknown>;
10
+ /**
11
+ * 调用生产标识扫码匹配接口
12
+ * - 接口失败(宿主拦截器已提示):返回 null,调用方直接中止
13
+ * - 成功:返回 0/1/N 条候选
14
+ */
15
+ export declare function matchProductionIdentificationScanRecords(parsed: IRuleParseData): Promise<Record<string, unknown>[] | null>;
16
+ /** 多条候选 → 公共多选弹框 */
17
+ export declare function pickProductionIdentificationScanRecord(records: Record<string, unknown>[]): Promise<Record<string, unknown> | undefined>;
@@ -1,25 +1,43 @@
1
+ import { Doc, SubRenderer } from '../../../../core';
1
2
  import { ParseRuleProps } from '../material/types';
2
- import { TriggerName } from '../../../../utils/adapters/TriggerUtil';
3
+ /** 扫码数量调整方向(盘点加减实盘等可复用) */
4
+ export type ScanAdjustType = 'add' | 'minus';
5
+ /** CommonScanModal 回传(可另带 barcode/type) */
6
+ export type ScanModalInput = {
7
+ str?: string;
8
+ parsedValue?: unknown;
9
+ transformedData?: unknown;
10
+ barcode?: string;
11
+ type?: ScanAdjustType | string;
12
+ [key: string]: unknown;
13
+ };
14
+ export type BusinessScanContext = {
15
+ doc: Doc;
16
+ subRenderer: SubRenderer;
17
+ subFieldKey: string;
18
+ subModelKey?: string;
19
+ };
20
+ export type BusinessScanHandler = (ctx: BusinessScanContext, input: ScanModalInput) => void | Promise<void>;
21
+ /** 取 CommonScanModal.parsedValue(条码解析结果) */
22
+ export declare function resolveScanParsedValue<T extends Record<string, unknown> = Record<string, unknown>>(input: ScanModalInput): T | undefined;
23
+ /** 取 CommonScanModal.transformedData(字段映射结果) */
24
+ export declare function resolveScanFillData(input: ScanModalInput): Record<string, unknown>;
25
+ /** 取扫码数量调整方向,默认 add */
26
+ export declare function resolveScanAdjustType(input: ScanModalInput): ScanAdjustType;
27
+ /** 出入库空行:物料、批次都没值 */
28
+ export declare function isProductBatchEmptyRow(row: Record<string, unknown>): boolean;
29
+ /**
30
+ * 扫码入行:优先回填首个空壳占位行,否则在活跃区末尾新增。
31
+ * 避免版面默认空行时 insertAt 导致「第一行空、第二行有数据」。
32
+ * 回填时空壳行按字段合并,保留 front_row_key_ / group_ 等元数据。
33
+ */
34
+ export declare function appendOrFillScanRow(doc: Doc, subFieldKey: string, row: Record<string, unknown>, isEmptyRow?: (item: Record<string, unknown>) => boolean): number;
3
35
  /** 将 widget 上的条码解析规则 id 字符串转为配置对象 */
4
36
  export declare function toParseRuleConfig(value?: string): ParseRuleProps | undefined;
5
- export interface ScanRuleInfo {
6
- rules_?: string;
7
- [key: string]: unknown;
8
- }
9
- export interface OpenScanWithParseRuleOptions {
10
- regionId: string;
11
- barcodeParsingRulesId?: string;
12
- modalEvent: TriggerName;
13
- title?: string;
14
- onScan: (input: {
15
- str: string;
16
- }, ctx: {
17
- parseRuleProps: ParseRuleProps;
18
- scanRuleInfo: ScanRuleInfo;
19
- }) => void | Promise<void>;
20
- }
21
37
  /**
22
- * 扫码入口脚手架:防重入、校验解析规则、打开 modal、finally 清理
23
- * 业务侧只实现 onScan
38
+ * 业务子表统一扫码入口:同一个 CommonScanModal,差异只在 onScan 业务处理
24
39
  */
25
- export declare function openScanWithParseRule(options: OpenScanWithParseRuleOptions): Promise<void>;
40
+ export declare function openBusinessTableScan(ctx: BusinessScanContext, onScan: BusinessScanHandler, formFieldOptions?: {
41
+ label: string;
42
+ value: string;
43
+ }[]): Promise<void>;
@@ -1,2 +1 @@
1
1
  export * from './scan';
2
- export * from './change-parse-rule';
@@ -1,7 +1,6 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 打开扫码弹窗 */
3
- export declare function openEntrustSterilBatchListScan(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subFieldKey: string;
7
- }): Promise<void>;
1
+ import { BusinessScanHandler } from '../../../shared/scan-action';
2
+ /**
3
+ * 委托灭菌生产批次表:扫码后入行
4
+ * 接口同入库:em_production_identification / biz_production_identification_scan
5
+ */
6
+ export declare const handleEntrustSterilBatchListScan: BusinessScanHandler;
@@ -11,7 +11,7 @@ export declare const F: {
11
11
  readonly productCode: "product_id_code_";
12
12
  /** 产品规格 */
13
13
  readonly productSpec: "product_id_spec_";
14
- /** 生产批次号 */
14
+ /** 生产LOT/SN */
15
15
  readonly productionContainer: "production_container_id_";
16
16
  /** 数量 */
17
17
  readonly qty: "qty_";
@@ -22,7 +22,5 @@ export declare const F: {
22
22
  /** 生产日期 */
23
23
  readonly productionDate: "production_date_";
24
24
  };
25
- /** remoteSync 成功回写的基础字段 */
26
- export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "mfg_order_code_", "mfg_order_id_"];
27
- /** 行变更 handler:生产批次号清空时的字段集 */
25
+ /** 行变更 handler:生产LOT/SN清空时的字段集 */
28
26
  export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "qty_", "mfg_order_code_", "mfg_order_id_", "production_date_"];