@gct-paas/word 0.1.74-beta.2 → 0.1.74-beta.21

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 (240) hide show
  1. package/README.md +4 -1
  2. package/dist/assets/svgs/table/index.d.ts +7 -0
  3. package/dist/assets/theme/field-state.d.ts +64 -56
  4. package/dist/base/calendar/src/calendar.vue.d.ts +2 -2
  5. package/dist/base/calendar/src/time.vue.d.ts +2 -2
  6. package/dist/base/checkbox/src/checkbox-group.vue.d.ts +2 -2
  7. package/dist/base/checkbox/src/checkbox.vue.d.ts +2 -2
  8. package/dist/base/collapse/src/collapse.vue.d.ts +3 -0
  9. package/dist/base/color-picker/src/ColorPicker.vue.d.ts +1 -1
  10. package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -2
  11. package/dist/base/empty/src/empty.vue.d.ts +1 -1
  12. package/dist/base/image-upload/src/image-upload.vue.d.ts +1 -1
  13. package/dist/base/input/src/input-number.vue.d.ts +2 -2
  14. package/dist/base/input/src/input.vue.d.ts +5 -5
  15. package/dist/base/input/src/text-area.vue.d.ts +4 -4
  16. package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -0
  17. package/dist/base/modal/src/modal.type.d.ts +5 -0
  18. package/dist/base/radio/src/radio-group.vue.d.ts +2 -2
  19. package/dist/base/radio/src/radio.vue.d.ts +2 -2
  20. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +2 -2
  21. package/dist/base/segment-slider/src/segment-slider.vue.d.ts +2 -2
  22. package/dist/base/select/src/basic-select.vue.d.ts +4 -4
  23. package/dist/base/select/src/searchable-select.vue.d.ts +30 -3
  24. package/dist/base/slider/src/slider.vue.d.ts +4 -4
  25. package/dist/base/switch/src/switch.vue.d.ts +2 -2
  26. package/dist/base/tree-select/src/tree-select.vue.d.ts +2 -2
  27. package/dist/base/utils/image-size-util.d.ts +12 -4
  28. package/dist/core/command/commands/InsertTable.d.ts +4 -0
  29. package/dist/core/constants/index.d.ts +1 -0
  30. package/dist/core/constants/paper.d.ts +3 -1
  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 +13 -0
  37. package/dist/core/data/paths/field-paths.d.ts +2 -0
  38. package/dist/core/data/updates/field-updates.d.ts +7 -2
  39. package/dist/core/event/types.d.ts +1 -1
  40. package/dist/core/index.d.ts +1 -1
  41. package/dist/core/interaction/InteractionController.d.ts +11 -0
  42. package/dist/core/interaction/types.d.ts +8 -0
  43. package/dist/core/interaction/useInteraction.d.ts +6 -0
  44. package/dist/core/layout/LayoutManager.d.ts +5 -1
  45. package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
  46. package/dist/core/layout/table/split-table.d.ts +10 -0
  47. package/dist/core/layout/types/index.d.ts +2 -0
  48. package/dist/core/model/document/Wbody.d.ts +4 -0
  49. package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
  50. package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
  51. package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
  52. package/dist/core/model/document/Wtbl.d.ts +31 -3
  53. package/dist/core/model/document/Wtc.d.ts +13 -2
  54. package/dist/core/model/document/Wtr.d.ts +2 -1
  55. package/dist/core/model/document/index.d.ts +1 -0
  56. package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
  57. package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
  58. package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +28 -1
  59. package/dist/core/model/templates/tableCell.template.d.ts +2 -0
  60. package/dist/core/view/Doc.d.ts +13 -1
  61. package/dist/core/view/Page.d.ts +2 -2
  62. package/dist/core/view/Table.d.ts +13 -0
  63. package/dist/core/view/TableCell.d.ts +2 -1
  64. package/dist/core/view/base/LayoutGroup.d.ts +11 -0
  65. package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
  66. package/dist/core/view/runs/ImageWidget.d.ts +4 -0
  67. package/dist/core/view/utils/TextUtil.d.ts +1 -9
  68. package/dist/domain/active/active-types.d.ts +15 -1
  69. package/dist/domain/constants/enum/view.d.ts +15 -0
  70. package/dist/domain/field/field-type.d.ts +14 -2
  71. package/dist/domain/field/form-value.d.ts +5 -0
  72. package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
  73. package/dist/domain/table/business/material/material-requisition/index.d.ts +2 -0
  74. package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +34 -0
  75. package/dist/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
  76. package/dist/domain/table/business/material/material-requisition/profile/index.d.ts +4 -0
  77. package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
  78. package/dist/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +5 -0
  79. package/dist/domain/table/business/material/types.d.ts +41 -0
  80. package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -1
  81. package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +6 -7
  82. package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +7 -7
  83. package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +13 -0
  84. package/dist/domain/table/business/shared/scan-action.d.ts +27 -20
  85. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -1
  86. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +6 -7
  87. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +0 -2
  88. package/dist/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
  89. package/dist/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +35 -0
  90. package/dist/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
  91. package/dist/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
  92. package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
  93. package/dist/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +3 -0
  94. package/dist/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
  95. package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +38 -0
  96. package/dist/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
  97. package/dist/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
  98. package/dist/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
  99. package/dist/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +6 -0
  100. package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +15 -0
  101. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +0 -1
  102. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -7
  103. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +31 -10
  104. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
  105. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +2 -5
  106. package/dist/domain/table/business/warehouse/warehouse-in/actions/index.d.ts +1 -0
  107. package/dist/domain/table/business/warehouse/warehouse-in/actions/scan.d.ts +3 -0
  108. package/dist/domain/table/business/warehouse/warehouse-in/index.d.ts +3 -0
  109. package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +39 -0
  110. package/dist/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
  111. package/dist/domain/table/business/warehouse/warehouse-in/profile/index.d.ts +3 -0
  112. package/dist/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
  113. package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +5 -0
  114. package/dist/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
  115. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +32 -0
  116. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
  117. package/dist/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
  118. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
  119. package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +2 -0
  120. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +0 -1
  121. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +9 -7
  122. package/dist/domain/table/business/warehouse/warehouse-inventory/index.d.ts +1 -0
  123. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/api.d.ts +3 -0
  124. package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +25 -43
  125. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +1 -2
  126. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +2 -18
  127. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +8 -59
  128. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts +10 -0
  129. package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +22 -22
  130. package/dist/domain/table/business/warehouse/warehouse-out/actions/index.d.ts +1 -0
  131. package/dist/domain/table/business/warehouse/warehouse-out/actions/scan.d.ts +7 -0
  132. package/dist/domain/table/business/warehouse/warehouse-out/index.d.ts +3 -0
  133. package/dist/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +44 -0
  134. package/dist/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
  135. package/dist/domain/table/business/warehouse/warehouse-out/profile/index.d.ts +3 -0
  136. package/dist/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
  137. package/dist/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +5 -0
  138. package/dist/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
  139. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +34 -0
  140. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
  141. package/dist/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
  142. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
  143. package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +2 -0
  144. package/dist/domain/table/design/ribbon-options.d.ts +8 -1
  145. package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
  146. package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
  147. package/dist/domain/table/index.d.ts +1 -0
  148. package/dist/domain/table/runtime/engines/linkage-engine.d.ts +9 -2
  149. package/dist/domain/table/runtime/engines/main-field-bind-engine.d.ts +2 -0
  150. package/dist/domain/table/runtime/table-runtime-utils.d.ts +6 -1
  151. package/dist/domain/table/runtime/table-runtime.d.ts +2 -0
  152. package/dist/domain/table/types.d.ts +60 -7
  153. package/dist/index.es.js +21189 -11330
  154. package/dist/runtime/canvas/inline-image/resize-box.vue.d.ts +2 -2
  155. package/dist/runtime/canvas/table/render/label-parse-rule/type.d.ts +7 -1
  156. package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +141 -18
  157. package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -0
  158. package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
  159. package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +19 -0
  160. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +79 -20
  161. package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +2 -3
  162. package/dist/runtime/canvas/table/render/material-consume/product-id-query.d.ts +31 -0
  163. package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +13 -0
  164. package/dist/runtime/canvas/table/render/material-consume/scan-validator.d.ts +192 -0
  165. package/dist/runtime/canvas/table/render/material-consume/service.d.ts +6 -0
  166. package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
  167. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +9 -0
  168. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/index.d.ts +1 -1
  169. package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/quick-fill.util.d.ts +5 -1
  170. package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
  171. package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
  172. package/dist/runtime/designer/panel/panel-breadcrumb-separator.vue.d.ts +2 -0
  173. package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
  174. package/dist/runtime/designer/ribbon/components/text-color-select.vue.d.ts +1 -1
  175. package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +13 -12
  176. package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +1 -0
  177. package/dist/runtime/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
  178. package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +14 -0
  179. package/dist/runtime/renderer/dialogs/signature/security-config.d.ts +6 -0
  180. package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +4 -0
  181. package/dist/runtime/renderer/dropdowns/components/option-dropdown.vue.d.ts +12 -12
  182. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
  183. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-inventory-ndo.d.ts +11 -0
  184. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-ndo.d.ts +11 -0
  185. package/dist/runtime/renderer/dropdowns/components/tables/columns/business/product-ndo.d.ts +12 -0
  186. package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +6 -3
  187. package/dist/runtime/renderer/dropdowns/components/tables/component/device-type-select.vue.d.ts +2 -2
  188. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +1 -0
  189. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +12 -12
  190. package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +12 -1
  191. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +12 -12
  192. package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +3 -3
  193. package/dist/runtime/renderer/dropdowns/components/tree/tree-dropdown.vue.d.ts +12 -12
  194. package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +3 -1
  195. package/dist/sdk/types/index.d.ts +6 -1
  196. package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +6 -4
  197. package/dist/suites/edhr/component/resolve-marker-color.d.ts +7 -0
  198. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +6 -1
  199. package/dist/suites/edhr/manifest/field/business/operation-output-qty-manifest.d.ts +2 -0
  200. package/dist/suites/edhr/manifest/field/business/operation-receive-qty-manifest.d.ts +2 -0
  201. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +52 -0
  202. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +2 -0
  203. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.d.ts +13 -0
  204. package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +7 -5
  205. package/dist/suites/edhr/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
  206. package/dist/suites/edhr/panel-schema/field/field-attribute-value.vue.d.ts +26 -0
  207. package/dist/suites/edhr/panel-schema/field/field-panel-chevron.vue.d.ts +5 -0
  208. package/dist/suites/edhr/panel-schema/field/field-panel-text-icon.vue.d.ts +2 -0
  209. package/dist/suites/edhr/panel-schema/index.d.ts +7 -0
  210. package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
  211. package/dist/suites/edhr/panel-schema/part-stocktake-table/part-stocktake-table.basic.d.ts +1 -0
  212. package/dist/suites/edhr/panel-schema/warehouse-in-table/warehouse-in-table.basic.d.ts +1 -0
  213. package/dist/suites/edhr/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.d.ts +1 -0
  214. package/dist/suites/edhr/panel-schema/warehouse-out-table/warehouse-out-table.basic.d.ts +1 -0
  215. package/dist/suites/edhr/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
  216. package/dist/suites/shared/components/option-control-colors.d.ts +14 -0
  217. package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
  218. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +2 -0
  219. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +2 -2
  220. package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
  221. package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
  222. package/dist/suites/shared/suite-features.d.ts +17 -0
  223. package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
  224. package/dist/utils/func/file.d.ts +1 -1
  225. package/dist/utils/pdf/resolve-pdf-text-baseline.d.ts +1 -2
  226. package/dist/word.css +1434 -1175
  227. package/package.json +5 -3
  228. package/vite/index.mjs +4 -0
  229. package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
  230. package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
  231. package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
  232. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
  233. package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
  234. package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +0 -7
  235. package/dist/domain/table/business/warehouse/warehouse-allocate/types.d.ts +0 -38
  236. package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +0 -7
  237. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/remote-sync-apply.d.ts +0 -9
  238. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
  239. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/warehouse-context.d.ts +0 -3
  240. package/dist/utils/fonts/cjk-optical-offset.d.ts +0 -12
@@ -0,0 +1,35 @@
1
+ /**
2
+ * EQM 备件消耗表(DEVICE_PART_CONSUME)字段 key
3
+ */
4
+ export declare const F: {
5
+ /** 库存列表 id */
6
+ readonly inventory: "inventory_id_";
7
+ /** 备件 */
8
+ readonly part: "part_id_";
9
+ /** 备件名称 */
10
+ readonly partName: "part_id_name_";
11
+ /** 备件编码 */
12
+ readonly partCode: "part_id_code_";
13
+ /** 备件规格 */
14
+ readonly partSpec: "part_id_spec_";
15
+ /** 消耗数量 */
16
+ readonly qtyConsumed: "qty_consumed_";
17
+ /** 数量单位 */
18
+ readonly qtyUom: "qty_uom_id_";
19
+ /** 库存数量 */
20
+ readonly stock: "stock_num_";
21
+ /** 仓库 */
22
+ readonly warehouse: "warehouse_id_";
23
+ /** 库区 */
24
+ readonly storageZone: "storage_zone_id_";
25
+ /** 库位 */
26
+ readonly location: "location_id_";
27
+ };
28
+ export type DevicePartConsumeFieldKey = (typeof F)[keyof typeof F];
29
+ /**
30
+ * 设计态固定禁用、运行态只读
31
+ * 可编辑:备件、消耗数量
32
+ */
33
+ export declare const DISABLED_INPUT_FIELDS: readonly ["inventory_id_", "part_id_name_", "part_id_code_", "part_id_spec_", "qty_uom_id_", "stock_num_", "warehouse_id_", "storage_zone_id_", "location_id_"];
34
+ /** 备件清空时需一并清空的字段 */
35
+ export declare const CLEAR_ON_PART_EMPTY: readonly ["inventory_id_", "part_id_name_", "part_id_code_", "part_id_spec_", "qty_uom_id_", "stock_num_", "warehouse_id_", "storage_zone_id_", "location_id_"];
@@ -0,0 +1,2 @@
1
+ import { BusinessFieldProfile } from '../../../../types';
2
+ export declare const fields: BusinessFieldProfile[];
@@ -0,0 +1,3 @@
1
+ import { BusinessSubTableProfile } from '../../../../types';
2
+ export declare const TABLE_TYPE: "device-part-consume";
3
+ export declare const profile: BusinessSubTableProfile;
@@ -0,0 +1,3 @@
1
+ import { Doc } from '../../../../../../core';
2
+ /** 备件清空时,同步清空库存回填字段 */
3
+ export declare function handlePartIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -0,0 +1,2 @@
1
+ export { profile as partStocktakeProfile, TABLE_TYPE } from './profile';
2
+ export * from './profile';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * EQM 备件库存盘点表(PART_STOCKTAKE)字段 key
3
+ */
4
+ export declare const F: {
5
+ /** 库存列表 id */
6
+ readonly inventory: "inventory_id_";
7
+ /** 备件 */
8
+ readonly part: "part_id_";
9
+ /** 备件 id(展示 / 文本) */
10
+ readonly partLb: "part_id__lb_";
11
+ /** 备件名称 */
12
+ readonly partName: "part_id_name_";
13
+ /** 备件编码 */
14
+ readonly partCode: "part_id_code_";
15
+ /** 备件规格 */
16
+ readonly partSpec: "part_id_spec_";
17
+ /** 库存数量 */
18
+ readonly stock: "stock_num_";
19
+ /** 盘点数量 */
20
+ readonly stocktake: "stocktake_num_";
21
+ /** 差异数量 */
22
+ readonly diff: "diff_num_";
23
+ /** 数量单位 */
24
+ readonly qtyUom: "qty_uom_id_";
25
+ /** 盘点状态 */
26
+ readonly stocktakeStatus: "stocktake_status_";
27
+ /** 仓库 */
28
+ readonly warehouse: "warehouse_id_";
29
+ /** 库区 */
30
+ readonly storageZone: "storage_zone_id_";
31
+ /** 库位 */
32
+ readonly location: "location_id_";
33
+ };
34
+ export type PartStocktakeFieldKey = (typeof F)[keyof typeof F];
35
+ /** 设计态固定禁用、运行态只读 */
36
+ export declare const DISABLED_INPUT_FIELDS: readonly ["inventory_id_", "part_id__lb_", "part_id_name_", "part_id_code_", "part_id_spec_", "stock_num_", "diff_num_", "qty_uom_id_", "stocktake_status_", "warehouse_id_", "storage_zone_id_", "location_id_"];
37
+ /** 备件清空时需一并清空的字段 */
38
+ export declare const CLEAR_ON_PART_EMPTY: readonly ["inventory_id_", "part_id_name_", "part_id_code_", "part_id_spec_", "stock_num_", "stocktake_num_", "diff_num_", "qty_uom_id_", "warehouse_id_", "storage_zone_id_", "location_id_"];
@@ -0,0 +1,2 @@
1
+ import { BusinessFieldProfile } from '../../../../types';
2
+ export declare const fields: BusinessFieldProfile[];
@@ -0,0 +1,3 @@
1
+ import { BusinessSubTableProfile } from '../../../../types';
2
+ export declare const TABLE_TYPE: "part-stocktake";
3
+ export declare const profile: BusinessSubTableProfile;
@@ -0,0 +1,6 @@
1
+ import { Doc } from '../../../../../../core';
2
+ /**
3
+ * 备件清空时,同步清空库存回填字段,并刷新差异 / 盘点状态
4
+ * 切换备件不预清:由 fillFromOption 覆盖回填
5
+ */
6
+ export declare function handlePartIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -0,0 +1,15 @@
1
+ import { IRuleParseData } from '../../../../../runtime/canvas/table/render/label-parse-rule/type';
2
+ import { BizServiceApiDef } from '../../../types';
3
+ export declare const SCAN_NOT_FOUND_MSG = "\u626B\u63CF\u7684\u7269\u6599\u4E0D\u5B58\u5728";
4
+ export declare const 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 INVENTORY_PRODUCTION_IDENTIFICATION_SCAN_API: BizServiceApiDef;
6
+ /** 物料批号、唯一码至少有一个非空 */
7
+ export declare function hasLotOrUniqueCode(parsed: IRuleParseData): boolean;
8
+ /** 条码解析结果 + 当前仓库 → 扫码接口入参 */
9
+ export declare function buildInventoryScanRequestBody(parsed: IRuleParseData, warehouseId?: string): Record<string, unknown>;
10
+ /** 调用库存扫码匹配接口,返回 0/1/N 条候选 */
11
+ export declare function matchInventoryScanRecords(parsed: IRuleParseData, warehouseId?: string): Promise<Record<string, unknown>[]>;
12
+ /** 多条候选 → 公共多选弹框 */
13
+ export declare function pickInventoryScanRecord(records: Record<string, unknown>[]): Promise<Record<string, unknown> | undefined>;
14
+ /** 解析扫码数量,缺省为 1 */
15
+ export declare function resolveScanQty(parsedQty: unknown, recordQty?: unknown, fallback?: number): number;
@@ -1,2 +1 @@
1
1
  export * from './scan';
2
- export * from './change-parse-rule';
@@ -1,7 +1,7 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 打开扫码弹窗并处理调拨行合并 */
3
- export declare function openWarehouseAllocateScan(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subFieldKey: string;
7
- }): Promise<void>;
1
+ import { BusinessScanHandler } from '../../../shared/scan-action';
2
+ /**
3
+ * 库存调拨表:扫码后入行
4
+ * - 连续扫码每次新增一行
5
+ * - 重复扫同一码不合并
6
+ */
7
+ export declare const handleWarehouseAllocateScan: BusinessScanHandler;
@@ -3,23 +3,44 @@
3
3
  */
4
4
  /** 单字段 key */
5
5
  export declare const F: {
6
- readonly batch: "production_identification_id_";
6
+ /** 库存主键(选物料时写 option.id_,用于唯一回显) */
7
+ readonly inventory: "inventory_id_";
8
+ /** 物料 */
7
9
  readonly product: "product_id_";
10
+ /** 物料名称 */
8
11
  readonly productName: "product_id_name_";
12
+ /** 物料编码 */
9
13
  readonly productCode: "product_id_code_";
14
+ /** 物料规格 */
10
15
  readonly productSpec: "product_id_spec_";
11
- readonly validity: "validity_";
12
- readonly stock: "stock_num_";
16
+ /** 物料批号 */
17
+ readonly batch: "production_identification_id_";
18
+ /** 源仓库 */
19
+ readonly originWarehouse: "origin_warehouse_id_";
20
+ /** 源库位 */
21
+ readonly originLocation: "origin_location_id_";
22
+ /** 目标仓库 */
13
23
  readonly warehouse: "warehouse_id_";
24
+ /** 目标库位 */
14
25
  readonly location: "location_id_";
15
- readonly originWarehouseId: "origin_warehouse_id_";
16
- readonly originLocationId: "origin_location_id_";
17
- readonly allocateReason: "allocate_reason_";
26
+ /** 库存数量 */
27
+ readonly stock: "stock_num_";
28
+ /** 调拨数量 */
18
29
  readonly allocateNum: "allocate_num_";
30
+ /** 工单 */
31
+ readonly mfgOrder: "mfg_order_id_";
32
+ /** 批次/SN */
33
+ readonly lotSn: "lot_sn_id_";
34
+ /** 有效期 */
35
+ readonly validity: "validity_";
36
+ /** 复检日期 */
37
+ readonly reInspectionDate: "re_inspection_date_";
38
+ /** 唯一码 */
39
+ readonly uniqueCode: "unique_code_";
19
40
  readonly matcode: "product_code_";
20
- readonly rowSource: "row_source_";
21
- readonly allocateLocationIds: "_allocate_location_ids_";
22
41
  };
23
42
  export type AllocateFieldKey = (typeof F)[keyof typeof F];
24
- /** runtimeRules:始终只读的信息字段 */
25
- export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "stock_num_", "validity_", "origin_warehouse_id_", "origin_location_id_"];
43
+ /** 设计态输入属性固定禁用、运行态只读的字段 */
44
+ export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "validity_", "re_inspection_date_"];
45
+ /** 物料清空时需一并清空的字段 */
46
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "warehouse_id_", "location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "allocate_num_", "validity_", "re_inspection_date_"];
@@ -1,4 +1,3 @@
1
1
  import { BusinessSubTableProfile } from '../../../../types';
2
2
  export declare const TABLE_TYPE: "warehouse-allocate";
3
3
  export declare const profile: BusinessSubTableProfile;
4
- export { profile as warehouseAllocateProfile };
@@ -1,9 +1,6 @@
1
1
  import { Doc } from '../../../../../../core';
2
2
  /**
3
- * 物料切换 / 清空
3
+ * 物料清空时,同步清空选库存带回的填充字段
4
+ * 切换物料不预清:由 fillFromOption 覆盖回填
4
5
  */
5
6
  export declare function handleProductIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
6
- /**
7
- * 库位切换 / 清空
8
- */
9
- export declare function handleLocationChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -0,0 +1 @@
1
+ export * from './scan';
@@ -0,0 +1,3 @@
1
+ import { BusinessScanHandler } from '../../../shared/scan-action';
2
+ /** 入库明细表:扫码后落表(连续扫码每次新增一行) */
3
+ export declare const handleWarehouseInScan: BusinessScanHandler;
@@ -0,0 +1,3 @@
1
+ export { profile as warehouseInProfile, TABLE_TYPE } from './profile';
2
+ export * from './profile';
3
+ export * from './actions';
@@ -0,0 +1,39 @@
1
+ /**
2
+ * 入库明细表字段 key 统一定义
3
+ */
4
+ /** 单字段 key */
5
+ export declare const F: {
6
+ /** 物料 */
7
+ readonly product: "product_id_";
8
+ /** 物料名称 */
9
+ readonly productName: "product_id_name_";
10
+ /** 物料编码 */
11
+ readonly productCode: "product_id_code_";
12
+ /** 物料规格 */
13
+ readonly productSpec: "product_id_spec_";
14
+ /** 物料批号 */
15
+ readonly materialNo: "material_no_";
16
+ /** 物料批号ID */
17
+ readonly materialNoId: "material_no__id_";
18
+ /** 数量 */
19
+ readonly qty: "qty_";
20
+ /** 仓库 */
21
+ readonly warehouse: "warehouse_id_";
22
+ /** 库位 */
23
+ readonly location: "location_id_";
24
+ /** 工单 */
25
+ readonly mfgOrder: "mfg_order_id_";
26
+ /** 生产批次/SN */
27
+ readonly lotSn: "lot_sn_id_";
28
+ /** 有效期 */
29
+ readonly validity: "validity_";
30
+ /** 唯一码 */
31
+ readonly uniqueCode: "unique_code_";
32
+ /** 复检日期 */
33
+ readonly reInspectionDate: "re_inspection_date_";
34
+ };
35
+ export type WarehouseInFieldKey = (typeof F)[keyof typeof F];
36
+ /** runtimeRules:始终只读的信息字段 */
37
+ export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
38
+ /** 物料清空时需一并清空的字段 */
39
+ 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,3 @@
1
+ import { BusinessSubTableProfile } from '../../../../types';
2
+ export declare const TABLE_TYPE: "warehouse-in";
3
+ export declare const profile: BusinessSubTableProfile;
@@ -0,0 +1,5 @@
1
+ import { Doc } from '../../../../../../core';
2
+ /**
3
+ * 物料清空时,同步清空名称 / 编码 / 规格
4
+ */
5
+ export declare function handleProductIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -0,0 +1,2 @@
1
+ export { profile as warehouseInboundProfile, TABLE_TYPE } from './profile';
2
+ export * from './profile';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * EQM 入库明细表(WAREHOUSE_INBOUND)字段 key
3
+ */
4
+ export declare const F: {
5
+ /** 备件 */
6
+ readonly part: "part_id_";
7
+ /** 备件 id(展示 / 文本) */
8
+ readonly partLb: "part_id__lb_";
9
+ /** 备件名称 */
10
+ readonly partName: "part_id_name_";
11
+ /** 备件编码 */
12
+ readonly partCode: "part_id_code_";
13
+ /** 备件规格 */
14
+ readonly partSpec: "part_id_spec_";
15
+ /** 数量 */
16
+ readonly qty: "qty_";
17
+ /** 数量单位 */
18
+ readonly qtyUom: "qty_uom_id_";
19
+ /** 仓库 */
20
+ readonly warehouse: "warehouse_id_";
21
+ /** 库区 */
22
+ readonly storageZone: "storage_zone_id_";
23
+ /** 库位 */
24
+ readonly location: "location_id_";
25
+ /** 有效期 */
26
+ readonly validity: "validity_";
27
+ };
28
+ export type WarehouseInboundFieldKey = (typeof F)[keyof typeof F];
29
+ /** 设计态输入属性固定禁用、运行态只读的字段 */
30
+ export declare const DISABLED_INPUT_FIELDS: readonly ["part_id__lb_", "part_id_name_", "part_id_code_", "part_id_spec_", "qty_uom_id_"];
31
+ /** 备件清空时需一并清空的字段 */
32
+ export declare const CLEAR_ON_PART_EMPTY: readonly ["part_id_name_", "part_id_code_", "part_id_spec_", "qty_uom_id_"];
@@ -0,0 +1,2 @@
1
+ import { BusinessFieldProfile } from '../../../../types';
2
+ export declare const fields: BusinessFieldProfile[];
@@ -0,0 +1,3 @@
1
+ import { BusinessSubTableProfile } from '../../../../types';
2
+ export declare const TABLE_TYPE: "warehouse-inbound";
3
+ export declare const profile: BusinessSubTableProfile;
@@ -0,0 +1,2 @@
1
+ import { Doc } from '../../../../../../core';
2
+ export declare function handlePartIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -1,2 +1 @@
1
1
  export * from './scan';
2
- export * from './change-parse-rule';
@@ -1,7 +1,9 @@
1
- import { Doc, SubRenderer } from '../../../../../../core';
2
- /** 打开扫码弹窗并处理盘点行合并 */
3
- export declare function openWarehouseInventoryScan(options: {
4
- doc: Doc;
5
- subRenderer: SubRenderer;
6
- subFieldKey: string;
7
- }): Promise<void>;
1
+ import { BusinessScanHandler } from '../../../shared/scan-action';
2
+ /**
3
+ * 库存盘点表扫码(新逻辑)
4
+ * - 接口:em_inventory / biz_inventory_production_identification_scan
5
+ * - 0 条 → 报错;1 条自动写入;N 条手选
6
+ * - 连续扫码:新物料新增一行,不覆盖
7
+ * - 同物料+批次(需求已去掉「重复建多行不合并」):累加实盘数量
8
+ */
9
+ export declare const handleWarehouseInventoryScan: BusinessScanHandler;
@@ -1,3 +1,4 @@
1
1
  export { profile as warehouseInventoryProfile } from './profile';
2
2
  export * from './runtime';
3
3
  export * from './actions';
4
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ import { BizServiceApiDef } from '../../../../types';
2
+ /** 按盘点维度解析库存接口 */
3
+ export declare function resolveStocktakeInventoryApi(regionProps?: Record<string, unknown> | null): BizServiceApiDef;
@@ -3,63 +3,45 @@
3
3
  */
4
4
  /** 单字段 key */
5
5
  export declare const F: {
6
+ /** 主键(选物料时写 option.id_,用于唯一回显) */
7
+ readonly inventory: "inventory_id_";
8
+ /** 物料批号 */
6
9
  readonly batch: "production_identification_id_";
10
+ /** 物料 */
7
11
  readonly product: "product_id_";
12
+ /** 物料名称 */
8
13
  readonly productName: "product_id_name_";
14
+ /** 物料编码 */
9
15
  readonly productCode: "product_id_code_";
16
+ /** 物料规格 */
10
17
  readonly productSpec: "product_id_spec_";
18
+ /** 仓库 */
11
19
  readonly warehouse: "warehouse_id_";
20
+ /** 库位 */
12
21
  readonly location: "location_id_";
22
+ /** 库存数量 */
13
23
  readonly stock: "stock_num_";
24
+ /** 盘点数量 */
14
25
  readonly stocktake: "stocktake_num_";
26
+ /** 差异数量 */
15
27
  readonly diff: "diff_num_";
28
+ /** 盘点状态 */
16
29
  readonly stocktakeStatus: "stocktake_status_";
30
+ /** 有效期 */
31
+ readonly validity: "validity_";
32
+ /** 复检日期 */
33
+ readonly reInspectionDate: "re_inspection_date_";
34
+ /** 行数据来源 */
35
+ readonly rowSource: "row_source_";
17
36
  readonly matno: "material_no_";
18
37
  readonly matcode: "product_code_";
19
- readonly rowSource: "row_source_";
20
- readonly locationAutoResolved: "_location_auto_resolved_";
21
- readonly inventoryLocationIds: "_inventory_location_ids_";
22
38
  };
23
39
  export type InventoryFieldKey = (typeof F)[keyof typeof F];
24
- /** 含 label 的身份字段组 */
25
- export declare const BATCH_IDENTITY: readonly ["production_identification_id_"];
26
- export declare const PRODUCT_IDENTITY: readonly ["product_id_"];
27
- export declare const PRODUCT_DESC: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
28
- export declare const LOCATION_FIELDS: readonly ["location_id_"];
29
- export declare const STOCK_FIELDS: readonly ["stock_num_", "stocktake_num_"];
30
- /** 库存、实盘及差异清空集 */
31
- export declare const STOCK_RELATED_CLEAR_FIELDS: readonly ["stock_num_", "stocktake_num_", "diff_num_"];
32
- /** remoteSync 触发字段(含仅触发、不入请求的库位) */
33
- export declare const INVENTORY_IDENTITY_FIELDS: readonly ["production_identification_id_", "warehouse_id_", "location_id_", "product_id_"];
34
- /** remoteSync 请求体字段 */
35
- export declare const INVENTORY_REMOTE_SYNC_REQUEST_FIELDS: readonly ["production_identification_id_", "warehouse_id_", "product_id_", "material_no_", "product_code_"];
36
- /** remoteSync 仅触发、排除出请求的字段 */
37
- export declare const INVENTORY_REMOTE_SYNC_EXCLUDE_REQUEST_FIELDS: readonly ["location_id_"];
38
- /** remoteSync 成功回写的基础字段(不含库位/库存,由 resolveApply 决定) */
39
- export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
40
- /** remoteSync 查无数据时清空的字段 */
41
- export declare const INVENTORY_INFO_CLEAR_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
42
- /** 行变更 handler:批次清空 / 切换时的字段集 */
43
- export declare const CLEAR_ON_BATCH_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
44
- export declare const CLEAR_ON_BATCH_SWITCH: readonly ["location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
45
- /** 行变更 handler:物料清空 / 切换时的字段集 */
46
- export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
47
- export declare const CLEAR_ON_PRODUCT_SWITCH: readonly ["production_identification_id_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
48
- /** remoteSync:切换物料发请求前需清空的行字段(含库位与自动解析标记) */
49
- export declare const PREPARE_ROW_ON_PRODUCT_SYNC: readonly ["production_identification_id_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_", "_location_auto_resolved_", "_inventory_location_ids_"];
50
- /** remoteSync:批次查询无结果 / 接口异常时清空的字段 */
51
- export declare const CLEAR_ON_BATCH_SYNC_ERROR: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "stock_num_", "stocktake_num_", "diff_num_"];
52
- /** runtimeRules:始终只读的信息字段 */
53
- export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_", "stock_num_", "diff_num_", "stocktake_status_"];
54
- /** auto 行只读的可选字段 */
55
- export declare const AUTO_LOAD_READONLY_SELECT_FIELDS: readonly ["product_id_", "production_identification_id_", "location_id_"];
56
- /** scan 行只读:物料/批次;库位待选时可编辑,单库位自动解析后走 _location_auto_resolved_ 只读 */
57
- export declare const SCAN_READONLY_SELECT_FIELDS: readonly ["product_id_", "production_identification_id_"];
58
- /** rowHandlers:盘点衍生字段监听 */
59
- export declare const STOCKTAKE_DERIVED_WATCH_FIELDS: readonly ["stocktake_num_", "stock_num_"];
60
- /** 按批次+物料+仓库分组 */
40
+ /** 设计态输入属性固定禁用、运行态只读的字段 */
41
+ export declare const DISABLED_INPUT_FIELDS: readonly ["production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "stock_num_", "diff_num_", "stocktake_status_", "warehouse_id_", "location_id_", "validity_", "re_inspection_date_"];
42
+ /** 物料清空时需一并清空的字段 */
43
+ export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "production_identification_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "stock_num_", "stocktake_num_", "diff_num_", "warehouse_id_", "location_id_", "validity_", "re_inspection_date_"];
44
+ /** 按批次+物料+仓库分组(initLoad / 汇总) */
61
45
  export declare const WAREHOUSE_IDENTITY_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_"];
62
- /** 扫码合并键(含库位) */
63
- export declare const SCAN_MERGE_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_", "location_id_"];
64
- /** 库存唯一标识基础字段 */
46
+ /** 库存记录映射基础字段(initLoad mapper / 扫码聚合) */
65
47
  export declare const INVENTORY_BASE_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
@@ -1,3 +1,2 @@
1
1
  export * from './stocktake-calc';
2
- export * from './warehouse-context';
3
- export * from './scan-config';
2
+ export * from './stocktake-dimension';
@@ -1,22 +1,6 @@
1
1
  import { Doc } from '../../../../../../core';
2
2
  /**
3
- * 物料批次选择 / 清空
4
- *
5
- * 选择批次 → 清库位 + 库存/实盘/差异,等 remoteSync 重填,状态回到待盘点
6
- * 清空批次 → 清物料信息 + 库位 + 库存/实盘/差异 → 状态回到待盘点
7
- */
8
- export declare function handleProductionIdentificationIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
9
- /**
10
- * 物料切换 / 清空
11
- *
12
- * 切换物料 → 清批次 + 库位 + 库存/实盘/差异,状态回到待盘点
13
- * 清空物料 → 清批次 + 物料描述 + 库位 + 库存/实盘/差异 → 状态回到待盘点
3
+ * 物料清空时,同步清空选库存带回的填充字段
4
+ * 切换物料不预清:由 fillFromOption 覆盖回填
14
5
  */
15
6
  export declare function handleProductIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
16
- /**
17
- * 库位切换 / 清空
18
- *
19
- * 切换库位 → 由 remoteSync 自动重填 stock_num_ 并触发 afterApply(stocktake-derived)
20
- * 清空库位 → 清库存数 → 立即重算衍生字段
21
- */
22
- export declare function handleLocationChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -1,6 +1,6 @@
1
1
  import { Doc } from '../../../../../../core';
2
- import { WarehouseInventoryScanAdjustType } from './scan-config';
3
- import { StocktakeStatusKey, IWarehouseInventoryRow } from '../types';
2
+ import { ScanAdjustType } from '../../../shared/scan-action';
3
+ import { StocktakeStatusKey } from '../types';
4
4
  /** 盘点状态 key 对应展示文案 */
5
5
  export declare function getStocktakeStatusLabel(key: StocktakeStatusKey): string;
6
6
  /** 计算差异数量 */
@@ -9,66 +9,15 @@ export declare function calcDiffNum(stocktakeNum?: number | null, stockNum?: num
9
9
  export declare function calcStocktakeStatus(stocktakeNum?: number | null, stockNum?: number | null): StocktakeStatusKey;
10
10
  /** 刷新单行盘点衍生字段 */
11
11
  export declare function refreshStocktakeDerivedFields(doc: Doc, subFieldKey: string, rowIndex: number): void;
12
- /** 按批次+物料+仓库将接口明细拆成多组(扫码可能一次返回多种物料) */
13
- export declare function groupRecordsByInventoryIdentity(records: Record<string, unknown>[]): Record<string, unknown>[][];
14
- /**
15
- * 扫码记录处理结果
16
- * @property kind='accumulate' - 匹配到已有盘点行,执行数量累加
17
- * @property kind='skip-location-not-selected' - 因未选择仓位而跳过处理
18
- * @property kind='unprocessed' - 未匹配到已有盘点行,等待后续新增行处理
19
- */
20
- export type ScanRecordDisposition = {
21
- kind: 'accumulate';
22
- index: number;
23
- } | {
24
- kind: 'skip-location-not-selected';
25
- } | {
26
- kind: 'unprocessed';
27
- };
28
- /**
29
- * 判断单条扫码明细如何处理:
30
- * - 已有相同行且库位已选(或无库位字段)→ 累加条码 qty 到实盘数
31
- * - 已有相同物料行但库位未选 → 跳过
32
- * - 否则 → 待新建行
33
- */
34
- export declare function dispositionScanRecord(record: Record<string, unknown>, visibleRows: IWarehouseInventoryRow[], groupByWarehouse: boolean): ScanRecordDisposition;
35
- /**
36
- * 待新建明细:先按批次+物料+仓库分组,取第一组再组装 resolve 入参
37
- * - 页面无库位:该组全部明细 groupBy 累加
38
- * - 页面有库位 + 组内多条:整组走多库位候选(不自动填库位)
39
- * - 页面有库位 + 组内单条:自动填库位
40
- */
41
- export declare function pickRecordsForNewScanRow(unprocessed: Record<string, unknown>[], groupByWarehouse: boolean): {
42
- records: Record<string, unknown>[];
43
- productGroupCount: number;
44
- };
45
12
  /** 盘点数量下限 */
46
13
  export declare const MIN_STOCKTAKE_NUM = 0;
47
- /** 条码未解析到数量时的默认扫码数量 */
48
- export declare const DEFAULT_SCAN_QTY = 1;
49
- export interface ResolveStocktakeQtyOptions {
50
- /** 空值或无效数字时的回落;未指定则返回 null */
51
- fallback?: number;
52
- }
53
- /** 解析盘点/扫码数量 */
54
- export declare function resolveStocktakeQty(value: unknown, options?: ResolveStocktakeQtyOptions): number | null;
55
14
  /** 扣减导致实盘数量小于 0 时的拦截原因;add 或无需校验时返回 undefined */
56
- export declare function getScanQtyDeductionBlockReason(current: unknown, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): string | undefined;
15
+ export declare function getScanQtyDeductionBlockReason(current: unknown, scanQty: unknown, type?: ScanAdjustType): string | undefined;
57
16
  /** 按条码 qty 与调整方向更新盘点数量;原值为空时视为 0 */
58
- export declare function applyScanQtyToStocktake(current: unknown, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): unknown;
59
- /** 扫码命中已有行:按 add/minus 调整 stocktake_num_ */
60
- export declare function accumulateScanQtyOnRow(visibleRows: IWarehouseInventoryRow[], rowIndex: number, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): {
61
- rows: IWarehouseInventoryRow[];
62
- mergedIndex: number;
63
- };
64
- /** 未处理明细新建行 */
65
- export declare function appendScanRowFromResolve(visibleRows: IWarehouseInventoryRow[], rowData: Record<string, unknown>): {
66
- rows: IWarehouseInventoryRow[];
67
- mergedIndex: number;
68
- };
17
+ export declare function applyScanQtyToStocktake(current: unknown, scanQty: unknown, type?: ScanAdjustType): unknown;
69
18
  /**
70
- * 将明细转为盘点行
71
- * - 页面有库位字段:不 groupBy,一条明细一行
72
- * - 页面无库位字段:按 批次 + 物料 + 仓库 groupBy,stock_num_ 累加
19
+ * 将库存接口结果转为盘点行:
20
+ * - groupByWarehouse=true(按仓库汇总):按 批次+物料+仓库 聚合,库存累加,无库位
21
+ * - groupByWarehouse=false(按库位精细):一条库存明细一行(含库位,可空)
73
22
  */
74
- export declare function groupInventoryToStocktakeRows(records: Record<string, unknown>[], groupByWarehouse: boolean): IWarehouseInventoryRow[];
23
+ export declare function groupInventoryToStocktakeRows(records: Record<string, unknown>[], groupByWarehouse: boolean): Record<string, unknown>[];
@@ -0,0 +1,10 @@
1
+ import { TableRuntimeContext } from '../../../../runtime/table-runtime-context';
2
+ import { StocktakeDimension } from '../types';
3
+ /** 读取设计态盘点维度;未配置时默认按库位精细 */
4
+ export declare function getStocktakeDimension(regionProps?: Record<string, unknown> | null): StocktakeDimension;
5
+ /**
6
+ * 是否按「物料 + 批号 + 仓库」聚合库存行:
7
+ * - 按仓库汇总:聚合(忽略库位)
8
+ * - 按库位精细(默认):不聚合
9
+ */
10
+ export declare function resolveGroupByWarehouse(runtimeCtx: TableRuntimeContext): boolean;