@gct-paas/word 0.1.74-beta.9 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/assets/svgs/table/index.d.ts +5 -0
- package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -0
- package/dist/base/modal/src/modal.type.d.ts +5 -0
- package/dist/base/rdo-tree-select/src/rdo-tree-select-more.vue.d.ts +10 -3
- package/dist/base/rdo-tree-select/src/rdo-tree-select-panel.vue.d.ts +6 -1
- package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
- package/dist/base/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/dist/base/select/src/basic-select.vue.d.ts +14 -0
- package/dist/base/utils/image-size-util.d.ts +2 -0
- package/dist/core/command/commands/InsertTable.d.ts +4 -0
- package/dist/core/command/commands/UnmergeCells.d.ts +5 -1
- package/dist/core/command/types.d.ts +1 -0
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/table.d.ts +11 -0
- package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
- package/dist/core/cursor/logic/index.d.ts +2 -1
- package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
- package/dist/core/data/enrichers/build-field-enrichers.d.ts +1 -1
- package/dist/core/data/enrichers/lot-parent-label-enricher.d.ts +12 -0
- package/dist/core/data/enrichers/operation-receive-qty-enricher.d.ts +19 -0
- package/dist/core/data/submit/form-state.d.ts +1 -1
- package/dist/core/event/types.d.ts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/interaction/InteractionController.d.ts +11 -0
- package/dist/core/interaction/types.d.ts +8 -0
- package/dist/core/interaction/useInteraction.d.ts +6 -0
- package/dist/core/layout/LayoutManager.d.ts +5 -1
- package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +2 -0
- package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
- package/dist/core/layout/table/split-table.d.ts +10 -0
- package/dist/core/layout/types/index.d.ts +2 -0
- package/dist/core/model/document/Wbody.d.ts +4 -0
- package/dist/core/model/document/WrText.d.ts +2 -0
- package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
- package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
- package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
- package/dist/core/model/document/Wtbl.d.ts +31 -3
- package/dist/core/model/document/Wtc.d.ts +13 -2
- package/dist/core/model/document/Wtr.d.ts +2 -1
- package/dist/core/model/document/index.d.ts +1 -0
- package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/bounded/BoundedRegion.d.ts +2 -0
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +20 -1
- package/dist/core/model/templates/tableCell.template.d.ts +2 -0
- package/dist/core/model/types/style.d.ts +2 -0
- package/dist/core/view/Doc.d.ts +13 -1
- package/dist/core/view/Table.d.ts +13 -0
- package/dist/core/view/TableCell.d.ts +2 -1
- package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
- package/dist/core/view/runs/TextRun.d.ts +4 -0
- package/dist/domain/active/active-types.d.ts +10 -0
- package/dist/domain/constants/enum/device.d.ts +26 -0
- package/dist/domain/constants/enum/index.d.ts +2 -0
- package/dist/domain/constants/enum/lot.d.ts +16 -0
- package/dist/domain/constants/enum/view.d.ts +1 -1
- package/dist/domain/device/device-query.d.ts +10 -0
- package/dist/domain/field/field-props-schema-type.d.ts +10 -1
- package/dist/domain/field/field-type.d.ts +514 -143
- package/dist/domain/field/form-value.d.ts +5 -0
- package/dist/domain/field/lot-display-label.d.ts +2 -0
- package/dist/domain/object/date-object/index.d.ts +4 -0
- package/dist/domain/object/date-object/profile/field-keys.d.ts +19 -0
- package/dist/domain/object/date-object/profile/fields.d.ts +2 -0
- package/dist/domain/object/date-object/profile/index.d.ts +3 -0
- package/dist/domain/object/date-object/runtime/date-object-context.d.ts +41 -0
- package/dist/domain/object/date-object/runtime/date-object-runtime.d.ts +41 -0
- package/dist/domain/object/date-object/runtime/fetch-records.d.ts +16 -0
- package/dist/domain/object/date-object/runtime/object-handlers.d.ts +6 -0
- package/dist/domain/object/date-object/runtime/re-inspection-date.d.ts +49 -0
- package/dist/domain/object/date-object/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/object/date-object/runtime/row-change-handlers.d.ts +6 -0
- package/dist/domain/object/date-object/types.d.ts +48 -0
- package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
- package/dist/domain/table/business/material/material-requisition/index.d.ts +2 -0
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +34 -0
- package/dist/domain/table/business/material/material-requisition/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-requisition/profile/index.d.ts +4 -0
- package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-requisition/runtime/row-change-handlers.d.ts +5 -0
- package/dist/domain/table/business/material/types.d.ts +41 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/index.d.ts +0 -1
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/scan.d.ts +6 -8
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +4 -6
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.d.ts +6 -6
- package/dist/domain/table/business/shared/production-container-hyperlink-enricher.d.ts +1 -1
- package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +17 -0
- package/dist/domain/table/business/shared/scan-action.d.ts +32 -17
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/index.d.ts +0 -1
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/scan.d.ts +6 -7
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts +2 -4
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.d.ts +1 -1
- package/dist/domain/table/business/warehouse/device-part-consume/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/device-part-consume/profile/field-keys.d.ts +35 -0
- package/dist/domain/table/business/warehouse/device-part-consume/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/device-part-consume/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/device-part-consume/runtime/row-change-handlers.d.ts +3 -0
- package/dist/domain/table/business/warehouse/part-stocktake/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +38 -0
- package/dist/domain/table/business/warehouse/part-stocktake/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/part-stocktake/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/part-stocktake/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/part-stocktake/runtime/row-change-handlers.d.ts +6 -0
- package/dist/domain/table/business/warehouse/shared/inventory-scan-api.d.ts +19 -0
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +7 -7
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -2
- package/dist/domain/table/business/warehouse/warehouse-in/actions/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-in/actions/scan.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-in/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +6 -0
- package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +7 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/profile/field-keys.d.ts +32 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-inbound/runtime/row-change-handlers.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +9 -7
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +7 -4
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +6 -57
- package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-out/actions/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-out/actions/scan.d.ts +7 -0
- package/dist/domain/table/business/warehouse/warehouse-out/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/profile/field-keys.d.ts +34 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/row-change-handlers.d.ts +2 -0
- package/dist/domain/table/design/ribbon-options.d.ts +2 -0
- package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
- package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
- package/dist/domain/table/index.d.ts +1 -0
- package/dist/domain/table/runtime/api/biz-service-api.d.ts +3 -1
- package/dist/domain/table/runtime/engines/linkage-engine.d.ts +9 -2
- package/dist/domain/table/types.d.ts +28 -4
- package/dist/index.es.js +27216 -15049
- package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/render/label-parse-rule/type.d.ts +7 -1
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +151 -18
- package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -0
- package/dist/runtime/canvas/table/render/material-consume/derived-qty.d.ts +5 -0
- package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +46 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +126 -29
- package/dist/runtime/canvas/table/render/material-consume/material-consume.util.d.ts +2 -3
- package/dist/runtime/canvas/table/render/material-consume/product-id-query.d.ts +31 -0
- package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +10 -0
- package/dist/runtime/canvas/table/render/material-consume/scan-validator.d.ts +192 -0
- package/dist/runtime/canvas/table/render/material-consume/service.d.ts +20 -0
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +4 -1
- package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
- package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +13 -0
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +12 -0
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/index.d.ts +1 -1
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/quick-fill.util.d.ts +5 -1
- package/dist/runtime/canvas/table/shared/resolve-cell-row-change-style.d.ts +8 -4
- package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
- package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
- package/dist/runtime/designer/ribbon/constant/font.d.ts +13 -5
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/interface/fetchers.d.ts +4 -0
- package/dist/runtime/interface/form-change-row.d.ts +0 -1
- package/dist/runtime/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
- package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +14 -0
- package/dist/runtime/renderer/dialogs/signature/security-config.d.ts +6 -0
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +4 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-inventory-ndo.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/part-ndo.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +4 -2
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +3 -0
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +7 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +338 -0
- package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +8 -3
- package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +6 -4
- package/dist/runtime/renderer/dropdowns/composables/useDropdownViewportSize.d.ts +7 -0
- package/dist/runtime/validation/useFormValidator.d.ts +5 -2
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -1
- package/dist/sdk/types/field-model-query.d.ts +2 -0
- package/dist/sdk/types/index.d.ts +8 -1
- package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +15 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +8 -2
- package/dist/suites/edhr/manifest/field/business/operation-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/operation-output-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/operation-receive-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/production-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/model-relation-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/material/target-warehouse-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/date-object-manifest.d.ts +3 -0
- package/dist/suites/edhr/manifest/field/object-type/re-inspection-date-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/validity-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +74 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +69 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.d.ts +13 -0
- package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +7 -5
- package/dist/suites/edhr/panel-schema/index.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +2 -1
- package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
- package/dist/suites/eqm/index.d.ts +1 -1
- package/dist/suites/eqm/panel-router/index.d.ts +2 -0
- package/dist/suites/eqm/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
- package/dist/suites/eqm/panel-schema/index.d.ts +7 -0
- package/dist/suites/eqm/panel-schema/part-stocktake-table/part-stocktake-table.basic.d.ts +1 -0
- package/dist/suites/eqm/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.d.ts +1 -0
- package/dist/suites/eqm/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
- package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue.d.ts +4 -3
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +6 -0
- package/dist/suites/shared/panel/config/editor/field-config-visibility.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue.d.ts +28 -0
- package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +5 -7
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/utils.d.ts +3 -2
- package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
- package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
- package/dist/suites/shared/suite-features.d.ts +3 -1
- package/dist/utils/adapters/ServiceUtil.d.ts +5 -2
- package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
- package/dist/utils/fonts/cjk-font-catalog.d.ts +24 -1
- package/dist/word.css +1434 -1032
- package/package.json +2 -1
- package/dist/domain/table/business/preprocess/pretreatment-list/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/preprocess/pretreatment-list/runtime/remote-sync-apply.d.ts +0 -2
- package/dist/domain/table/business/shared/change-parse-rule.d.ts +0 -10
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/sterilize/entrust-steril-batch-list/runtime/remote-sync-apply.d.ts +0 -2
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +0 -7
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
- /package/dist/suites/edhr/manifest/field/{trace/production-identifier-manifest.d.ts → business/inspection-qty-manifest.d.ts} +0 -0
|
@@ -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_"];
|
package/dist/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
/**
|
|
11
|
+
* 调用库存扫码匹配接口
|
|
12
|
+
* - 接口失败(拦截器已提示):返回 null,调用方直接中止
|
|
13
|
+
* - 成功:返回 0/1/N 条候选
|
|
14
|
+
*/
|
|
15
|
+
export declare function matchInventoryScanRecords(parsed: IRuleParseData, warehouseId?: string): Promise<Record<string, unknown>[] | null>;
|
|
16
|
+
/** 多条候选 → 公共多选弹框 */
|
|
17
|
+
export declare function pickInventoryScanRecord(records: Record<string, unknown>[]): Promise<Record<string, unknown> | undefined>;
|
|
18
|
+
/** 解析扫码数量,缺省为 1 */
|
|
19
|
+
export declare function resolveScanQty(parsedQty: unknown, recordQty?: unknown, fallback?: number): number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { BusinessScanHandler } from '../../../shared/scan-action';
|
|
2
|
+
/**
|
|
3
|
+
* 库存调拨表:扫码后入行
|
|
4
|
+
* - 连续扫码每次新增一行
|
|
5
|
+
* - 重复扫同一码不合并
|
|
6
|
+
*/
|
|
7
|
+
export declare const handleWarehouseAllocateScan: BusinessScanHandler;
|
|
@@ -42,5 +42,5 @@ export declare const F: {
|
|
|
42
42
|
export type AllocateFieldKey = (typeof F)[keyof typeof F];
|
|
43
43
|
/** 设计态输入属性固定禁用、运行态只读的字段 */
|
|
44
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_", "
|
|
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_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "allocate_num_", "validity_", "re_inspection_date_"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scan';
|
|
@@ -33,7 +33,13 @@ export declare const F: {
|
|
|
33
33
|
readonly reInspectionDate: "re_inspection_date_";
|
|
34
34
|
};
|
|
35
35
|
export type WarehouseInFieldKey = (typeof F)[keyof typeof F];
|
|
36
|
+
/** 物料及名称 / 编码 / 规格 */
|
|
37
|
+
export declare const PRODUCT_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
36
38
|
/** runtimeRules:始终只读的信息字段 */
|
|
37
39
|
export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
38
40
|
/** 物料清空时需一并清空的字段 */
|
|
39
41
|
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
42
|
+
/** 物料批号清空 / 手输切换时需一并清空的物料相关字段 */
|
|
43
|
+
export declare const CLEAR_ON_MATERIAL_NO_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
44
|
+
/** 相关字段变更时需重算物料禁用态 */
|
|
45
|
+
export declare const PRODUCT_EDITABILITY_WATCH: readonly ["material_no_", "material_no__id_"];
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { Doc } from '../../../../../../core';
|
|
2
|
+
/**
|
|
3
|
+
* 物料批号 切换 / 清空
|
|
4
|
+
* 下拉选中(有 companion id)→ 由 fillFromOption 回填物料,此处不预清
|
|
5
|
+
* 手动输入(无 companion id)→ 清物料及相关字段,供用户自选物料
|
|
6
|
+
* 清空【物料批号】 → 清物料 + 物料名称 + 物料编码 + 物料规格
|
|
7
|
+
*/
|
|
8
|
+
export declare function handleMaterialNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
2
9
|
/**
|
|
3
10
|
* 物料清空时,同步清空名称 / 编码 / 规格
|
|
4
11
|
*/
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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;
|
|
@@ -3,8 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/** 单字段 key */
|
|
5
5
|
export declare const F: {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* 库存主键。
|
|
8
|
+
* 库位精细:选中项 `id_`;按仓库汇总:接口单独返回的 `inventory_id_`,不再从 `id_` 写入。
|
|
9
|
+
*/
|
|
7
10
|
readonly inventory: "inventory_id_";
|
|
11
|
+
/** 按仓库汇总时写入接口 `id_`,下拉高亮优先用它 */
|
|
12
|
+
readonly frontId: "front_id_";
|
|
8
13
|
/** 物料批号 */
|
|
9
14
|
readonly batch: "production_identification_id_";
|
|
10
15
|
/** 物料 */
|
|
@@ -40,10 +45,8 @@ export type InventoryFieldKey = (typeof F)[keyof typeof F];
|
|
|
40
45
|
/** 设计态输入属性固定禁用、运行态只读的字段 */
|
|
41
46
|
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
47
|
/** 物料清空时需一并清空的字段 */
|
|
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_"];
|
|
48
|
+
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "front_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
49
|
/** 按批次+物料+仓库分组(initLoad / 汇总) */
|
|
45
50
|
export declare const WAREHOUSE_IDENTITY_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_"];
|
|
46
|
-
/** 扫码合并键(含库位);扫码产品逻辑未定前仍保留 */
|
|
47
|
-
export declare const SCAN_MERGE_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_", "location_id_"];
|
|
48
51
|
/** 库存记录映射基础字段(initLoad mapper / 扫码聚合) */
|
|
49
52
|
export declare const INVENTORY_BASE_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
|
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../../../../../core';
|
|
2
|
-
import {
|
|
2
|
+
import { ScanAdjustType } from '../../../shared/scan-action';
|
|
3
3
|
import { StocktakeStatusKey } from '../types';
|
|
4
4
|
/** 盘点状态 key 对应展示文案 */
|
|
5
5
|
export declare function getStocktakeStatusLabel(key: StocktakeStatusKey): string;
|
|
@@ -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: Record<string, unknown>[], 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?:
|
|
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?:
|
|
59
|
-
/** 扫码命中已有行:按 add/minus 调整 stocktake_num_ */
|
|
60
|
-
export declare function accumulateScanQtyOnRow(visibleRows: Record<string, unknown>[], rowIndex: number, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): {
|
|
61
|
-
rows: Record<string, unknown>[];
|
|
62
|
-
mergedIndex: number;
|
|
63
|
-
};
|
|
64
|
-
/** 未处理明细新建行 */
|
|
65
|
-
export declare function appendScanRowFromResolve(visibleRows: Record<string, unknown>[], rowData: Record<string, unknown>): {
|
|
66
|
-
rows: Record<string, unknown>[];
|
|
67
|
-
mergedIndex: number;
|
|
68
|
-
};
|
|
17
|
+
export declare function applyScanQtyToStocktake(current: unknown, scanQty: unknown, type?: ScanAdjustType): unknown;
|
|
69
18
|
/**
|
|
70
19
|
* 将库存接口结果转为盘点行:
|
|
71
|
-
* - groupByWarehouse=true
|
|
72
|
-
* -
|
|
20
|
+
* - groupByWarehouse=true:按 批次+物料+仓库 聚合,库存累加,无库位
|
|
21
|
+
* - warehouseSummary:库存主键取接口 inventory_id_,id_ 写入 front_id_
|
|
73
22
|
*/
|
|
74
|
-
export declare function groupInventoryToStocktakeRows(records: Record<string, unknown>[],
|
|
23
|
+
export declare function groupInventoryToStocktakeRows(records: Record<string, unknown>[], warehouseSummary: boolean): Record<string, unknown>[];
|
|
@@ -6,7 +6,9 @@ export type WarehouseInventoryRowSource = 'manual' | 'auto' | 'scan';
|
|
|
6
6
|
* - location_detail:按库位精细盘点(库存明细,物料+批号+仓库+库位)
|
|
7
7
|
*/
|
|
8
8
|
export declare const STOCKTAKE_DIMENSION: {
|
|
9
|
+
/** 按仓库汇总盘点 */
|
|
9
10
|
readonly warehouseSummary: "warehouse_summary";
|
|
11
|
+
/** 按库位精细盘点 */
|
|
10
12
|
readonly locationDetail: "location_detail";
|
|
11
13
|
};
|
|
12
14
|
export type StocktakeDimension = (typeof STOCKTAKE_DIMENSION)[keyof typeof STOCKTAKE_DIMENSION];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scan';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EQM 出库明细表(WAREHOUSE_OUTBOUND)字段 key
|
|
3
|
+
*/
|
|
4
|
+
export declare const F: {
|
|
5
|
+
/** 库存主键(选备件时写 option.id_,用于唯一回显) */
|
|
6
|
+
readonly inventory: "inventory_id_";
|
|
7
|
+
/** 备件 */
|
|
8
|
+
readonly part: "part_id_";
|
|
9
|
+
/** 备件 id(展示 / 文本) */
|
|
10
|
+
readonly partLb: "part_id__lb_";
|
|
11
|
+
/** 备件编码 */
|
|
12
|
+
readonly partCode: "part_id_code_";
|
|
13
|
+
/** 备件名称 */
|
|
14
|
+
readonly partName: "part_id_name_";
|
|
15
|
+
/** 备件规格 */
|
|
16
|
+
readonly partSpec: "part_id_spec_";
|
|
17
|
+
/** 有效期 */
|
|
18
|
+
readonly validity: "validity_";
|
|
19
|
+
/** 库位 */
|
|
20
|
+
readonly location: "location_id_";
|
|
21
|
+
/** 库区 */
|
|
22
|
+
readonly storageZone: "storage_zone_id_";
|
|
23
|
+
/** 仓库 */
|
|
24
|
+
readonly warehouse: "warehouse_id_";
|
|
25
|
+
/** 数量单位 */
|
|
26
|
+
readonly qtyUom: "qty_uom_id_";
|
|
27
|
+
/** 数量 */
|
|
28
|
+
readonly qty: "qty_";
|
|
29
|
+
};
|
|
30
|
+
export type WarehouseOutboundFieldKey = (typeof F)[keyof typeof F];
|
|
31
|
+
/** 设计态固定禁用、运行态只读 */
|
|
32
|
+
export declare const DISABLED_INPUT_FIELDS: readonly ["part_id__lb_", "part_id_code_", "part_id_name_", "part_id_spec_", "location_id_", "storage_zone_id_", "warehouse_id_", "qty_uom_id_"];
|
|
33
|
+
/** 备件清空时需一并清空的字段 */
|
|
34
|
+
export declare const CLEAR_ON_PART_EMPTY: readonly ["inventory_id_", "part_id_code_", "part_id_name_", "part_id_spec_", "validity_", "location_id_", "storage_zone_id_", "warehouse_id_", "qty_uom_id_"];
|
package/dist/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,6 +3,8 @@ import { BusinessSubTableType } from '../types';
|
|
|
3
3
|
/** 表头(挂在数据表 Ribbon 首位) */
|
|
4
4
|
export declare const TABLE_HEADER_RIBBON_OPTION: DropdownOption;
|
|
5
5
|
export interface RibbonTableOptionsParams {
|
|
6
|
+
/** 当前套件 key,用于 ribbonSuites 过滤 */
|
|
7
|
+
suiteKey?: string;
|
|
6
8
|
/** 套件级需从 Ribbon 隐藏的业务表类型 */
|
|
7
9
|
hiddenBusinessTableTypes?: BusinessSubTableType[];
|
|
8
10
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Wtbl, Wtc } from '../../../core/model/document';
|
|
2
|
+
import { TableCellSelectionBounds } from './validate-table-selection';
|
|
3
|
+
export type NestedTableMutexReason = 'cell-has-nested' | 'outer-has-region';
|
|
4
|
+
/**
|
|
5
|
+
* 业务表/数据表互斥校验(内外表)
|
|
6
|
+
*
|
|
7
|
+
* 规则 3:内表已标业务/数据区 → 外表该单元格不支持再标(被规则 4 涵盖)
|
|
8
|
+
* 规则 4:外表选中单元格含有内表 → 不支持标为业务/数据表
|
|
9
|
+
* 内表视角:外层宿主单元格已被外表标为业务/数据区 → 内表不支持再标
|
|
10
|
+
*
|
|
11
|
+
* @param table 当前操作的表格(外表或内表)
|
|
12
|
+
* @param bounds 当前光标选区对应的单元格范围(来自 resolveTableCellSelectionBounds)
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateNestedTableRegionMutex(table: Wtbl, bounds?: TableCellSelectionBounds | null): {
|
|
15
|
+
ok: boolean;
|
|
16
|
+
existingLabel?: string;
|
|
17
|
+
reason?: NestedTableMutexReason;
|
|
18
|
+
};
|
|
19
|
+
export declare function getNestedTableRegionMutexMessage(reason?: NestedTableMutexReason, existingLabel?: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* 校验互斥并弹出警告。返回 true 表示可以继续标记。
|
|
22
|
+
*/
|
|
23
|
+
export declare function assertNestedTableRegionMutex(table: Wtbl, bounds?: TableCellSelectionBounds | null): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 设置子表前的综合校验(嵌套互斥 + 同一行唯一子表)
|
|
26
|
+
*/
|
|
27
|
+
export declare function assertSubTableRegionPlacement(table: Wtbl, bounds?: TableCellSelectionBounds | null): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 从起止单元格构造互斥校验所需的 bounds。
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildBoundsFromCellRange(startCell: Wtc, endCell: Wtc): TableCellSelectionBounds | null;
|
|
@@ -18,6 +18,14 @@ export type ValidateTableSelectionOptions = {
|
|
|
18
18
|
/** 与这些类型区域重叠时不视为非法 */
|
|
19
19
|
ignoreOverlapTypes?: string[];
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* 同一行并排多个子表(列不重叠)时,布局展开只保留后设 region,需提前拦截。
|
|
23
|
+
* 若选区与已有 region 重叠,交由 findCrossRegion 处理,此处返回 undefined。
|
|
24
|
+
*/
|
|
25
|
+
export declare function findSameRowSubTableConflict(table: Wtbl, bounds: TableCellSelectionBounds): TableRegion | undefined;
|
|
26
|
+
export declare function getSameRowSubTableConflictMessage(existing?: TableRegion): string;
|
|
27
|
+
/** 校验通过返回 true;冲突时弹出提示并返回 false */
|
|
28
|
+
export declare function assertSameRowSubTableAllowed(table: Wtbl, bounds: TableCellSelectionBounds): boolean;
|
|
21
29
|
/** 解析已有逻辑区域的展示名称 */
|
|
22
30
|
export declare function resolveTableRegionLabel(region: TableRegion): string;
|
|
23
31
|
/** 从当前光标选区解析表格单元格范围 */
|
|
@@ -14,3 +14,4 @@ export * from './design/hooks/on-subtable-create';
|
|
|
14
14
|
export * from './design/hooks/on-field-attach';
|
|
15
15
|
export * from './design/hooks/on-repeating-default-props';
|
|
16
16
|
export * from './design/validate-table-selection';
|
|
17
|
+
export * from './design/validate-nested-table-region';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BizServiceApiDef } from '../../types';
|
|
2
|
-
export declare function callBizService(apiDef: BizServiceApiDef, body: Record<string, unknown
|
|
2
|
+
export declare function callBizService(apiDef: BizServiceApiDef, body: Record<string, unknown>, options?: {
|
|
3
|
+
__useWordMessage?: boolean;
|
|
4
|
+
}): Promise<unknown>;
|
|
3
5
|
/** 判断 biz-service 是否失败(网络异常或业务 ok:false) */
|
|
4
6
|
export declare function isBizServiceFailure(res: unknown): boolean;
|
|
5
7
|
/** 解析 biz-service 返回体 */
|
|
@@ -46,8 +46,15 @@ export declare class LinkageEngine {
|
|
|
46
46
|
* 1.当前行同名字段 → 2.context 隐式字段 → 3.主表映射字段 → 4.主表顶层同名字段(配置允许时)
|
|
47
47
|
*/
|
|
48
48
|
private resolveLinkFieldValue;
|
|
49
|
-
/**
|
|
50
|
-
|
|
49
|
+
/**
|
|
50
|
+
* 解析实际生效的上游字段:
|
|
51
|
+
* 1. 首选 linkFieldKey(requireLinkWidget=false 或不要求控件 / 控件已拖入)
|
|
52
|
+
* 2. 否则若配置了 fallbackLinkFieldKey,且回退上游可用 → 用回退上游
|
|
53
|
+
* 3. 都不可用 → null(不启用联动)
|
|
54
|
+
*/
|
|
55
|
+
private resolveActiveLinkFieldKey;
|
|
56
|
+
/** 判断某个上游字段当前是否可作为联动来源 */
|
|
57
|
+
private isLinkFieldAvailable;
|
|
51
58
|
/**
|
|
52
59
|
* 级联变更需清空的字段:
|
|
53
60
|
* - 显式配置了 clearOnLinkChange(含空数组)→ 使用配置值
|