@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.
- package/README.md +4 -1
- package/dist/assets/svgs/table/index.d.ts +7 -0
- package/dist/base/calendar/src/calendar.vue.d.ts +2 -2
- package/dist/base/calendar/src/time.vue.d.ts +2 -2
- package/dist/base/checkbox/src/checkbox-group.vue.d.ts +2 -2
- package/dist/base/checkbox/src/checkbox.vue.d.ts +2 -2
- package/dist/base/color-picker/src/ColorPicker.vue.d.ts +1 -1
- package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -2
- package/dist/base/input/src/input-number.vue.d.ts +2 -2
- package/dist/base/input/src/input.vue.d.ts +5 -5
- package/dist/base/input/src/text-area.vue.d.ts +4 -4
- 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/radio/src/radio-group.vue.d.ts +2 -2
- package/dist/base/radio/src/radio.vue.d.ts +2 -2
- 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 +3 -3
- package/dist/base/scrollbar/src/scrollbar.vue.d.ts +2 -2
- package/dist/base/segment-slider/src/segment-slider.vue.d.ts +2 -2
- package/dist/base/select/src/basic-select.vue.d.ts +16 -2
- package/dist/base/select/src/searchable-select.vue.d.ts +2 -2
- package/dist/base/slider/src/slider.vue.d.ts +4 -4
- package/dist/base/switch/src/switch.vue.d.ts +2 -2
- package/dist/base/tree-select/src/tree-select.vue.d.ts +2 -2
- 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/paths/field-paths.d.ts +2 -0
- package/dist/core/data/submit/form-state.d.ts +1 -1
- package/dist/core/data/updates/field-updates.d.ts +7 -2
- 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 +28 -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 +15 -1
- 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 +515 -144
- 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 -7
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +6 -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 +38 -20
- 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 +31 -10
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/index.d.ts +0 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/row-change-handlers.d.ts +2 -5
- 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 +3 -0
- package/dist/domain/table/business/warehouse/warehouse-in/profile/field-keys.d.ts +45 -0
- package/dist/domain/table/business/warehouse/warehouse-in/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-in/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-in/runtime/row-change-handlers.d.ts +12 -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/index.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/api.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +30 -43
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +1 -2
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +2 -18
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +8 -59
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts +10 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/types.d.ts +24 -22
- 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 +3 -0
- package/dist/domain/table/business/warehouse/warehouse-out/profile/field-keys.d.ts +44 -0
- package/dist/domain/table/business/warehouse/warehouse-out/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-out/profile/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-out/runtime/row-change-handlers.d.ts +5 -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 +8 -1
- 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/runtime/engines/main-field-bind-engine.d.ts +2 -0
- package/dist/domain/table/runtime/table-runtime-utils.d.ts +6 -1
- package/dist/domain/table/runtime/table-runtime.d.ts +2 -0
- package/dist/domain/table/types.d.ts +71 -7
- package/dist/index.es.js +30579 -17522
- package/dist/runtime/canvas/__common__/widget-container/overlay-render.vue.d.ts +1 -0
- package/dist/runtime/canvas/inline-image/resize-box.vue.d.ts +2 -2
- 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/components/text-color-select.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/device-scan/device-scan-dialog.vue.d.ts +13 -12
- package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +1 -0
- 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/option-dropdown.vue.d.ts +12 -12
- 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/business/product-ndo.d.ts +12 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +6 -3
- package/dist/runtime/renderer/dropdowns/components/tables/component/device-type-select.vue.d.ts +2 -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 +4 -0
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +13 -13
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +16 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +13 -13
- 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/components/tree/tree-dropdown.vue.d.ts +12 -12
- 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 +3 -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/edhr/panel-schema/warehouse-in-table/warehouse-in-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/warehouse-out-table/warehouse-out-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 +8 -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/field-tree-select.vue.d.ts +2 -2
- 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 +19 -0
- 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/utils/func/file.d.ts +1 -1
- package/dist/word.css +1466 -1054
- package/package.json +3 -2
- 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-allocate/types.d.ts +0 -38
- 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/remote-sync-apply.d.ts +0 -9
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +0 -38
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/warehouse-context.d.ts +0 -3
- /package/dist/suites/edhr/manifest/field/{trace/production-identifier-manifest.d.ts → business/inspection-qty-manifest.d.ts} +0 -0
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Doc } from '../../../../../../core';
|
|
2
|
-
import {
|
|
3
|
-
import { StocktakeStatusKey
|
|
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?:
|
|
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: 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
|
-
* -
|
|
72
|
-
* -
|
|
19
|
+
* 将库存接口结果转为盘点行:
|
|
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>[];
|
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-dimension.d.ts
ADDED
|
@@ -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;
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
/** 库存盘点行数据来源 */
|
|
2
2
|
export type WarehouseInventoryRowSource = 'manual' | 'auto' | 'scan';
|
|
3
|
+
/**
|
|
4
|
+
* 盘点维度
|
|
5
|
+
* - warehouse_summary:按仓库汇总盘点(库存表,物料+批号+仓库)
|
|
6
|
+
* - location_detail:按库位精细盘点(库存明细,物料+批号+仓库+库位)
|
|
7
|
+
*/
|
|
8
|
+
export declare const STOCKTAKE_DIMENSION: {
|
|
9
|
+
/** 按仓库汇总盘点 */
|
|
10
|
+
readonly warehouseSummary: "warehouse_summary";
|
|
11
|
+
/** 按库位精细盘点 */
|
|
12
|
+
readonly locationDetail: "location_detail";
|
|
13
|
+
};
|
|
14
|
+
export type StocktakeDimension = (typeof STOCKTAKE_DIMENSION)[keyof typeof STOCKTAKE_DIMENSION];
|
|
15
|
+
/** 设计态盘点维度下拉选项 */
|
|
16
|
+
export declare const STOCKTAKE_DIMENSION_OPTIONS: readonly [{
|
|
17
|
+
readonly label: "按仓库汇总盘点";
|
|
18
|
+
readonly value: "warehouse_summary";
|
|
19
|
+
readonly showTip: false;
|
|
20
|
+
readonly tip: "按SKU汇总总数核对,不支持自动调整库存";
|
|
21
|
+
}, {
|
|
22
|
+
readonly label: "按库位精细盘点";
|
|
23
|
+
readonly value: "location_detail";
|
|
24
|
+
readonly showTip: false;
|
|
25
|
+
readonly tip: "按库存明细逐条核对";
|
|
26
|
+
}];
|
|
3
27
|
/** 盘点状态 key → 展示文案 */
|
|
4
28
|
export declare const STOCKTAKE_STATUS: {
|
|
5
29
|
readonly waiting: "待盘点";
|
|
@@ -9,25 +33,3 @@ export declare const STOCKTAKE_STATUS: {
|
|
|
9
33
|
};
|
|
10
34
|
export type StocktakeStatusKey = keyof typeof STOCKTAKE_STATUS;
|
|
11
35
|
export type StocktakeStatusLabel = (typeof STOCKTAKE_STATUS)[StocktakeStatusKey];
|
|
12
|
-
/** 库存盘点子表行数据 */
|
|
13
|
-
export interface IWarehouseInventoryRow {
|
|
14
|
-
id_?: string;
|
|
15
|
-
production_identification_id_?: string;
|
|
16
|
-
product_id_?: string;
|
|
17
|
-
product_id_name_?: string;
|
|
18
|
-
product_id_code_?: string;
|
|
19
|
-
product_id_spec_?: string;
|
|
20
|
-
warehouse_id_?: string;
|
|
21
|
-
location_id_?: string;
|
|
22
|
-
stock_num_?: number;
|
|
23
|
-
stocktake_num_?: number;
|
|
24
|
-
diff_num_?: number;
|
|
25
|
-
stocktake_status_?: StocktakeStatusKey;
|
|
26
|
-
deleted_?: boolean;
|
|
27
|
-
/** 行数据来源:手动 / 自动加载 / 扫码 */
|
|
28
|
-
row_source_?: WarehouseInventoryRowSource;
|
|
29
|
-
/** remoteSync 自动解析库位后为 true,库位字段只读 */
|
|
30
|
-
_location_auto_resolved_?: boolean;
|
|
31
|
-
/** 接口返回多条库存时的候选库位 ID,用于库位下拉过滤 */
|
|
32
|
-
_inventory_location_ids_?: string[] | null;
|
|
33
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scan';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 出库明细表字段 key 统一定义
|
|
3
|
+
*/
|
|
4
|
+
/** 单字段 key */
|
|
5
|
+
export declare const F: {
|
|
6
|
+
/** 物料 */
|
|
7
|
+
readonly product: "product_id_";
|
|
8
|
+
/** 库存主键(出库选物料时写 option.id_,用于唯一回显) */
|
|
9
|
+
readonly inventory: "inventory_id_";
|
|
10
|
+
/** 物料名称 */
|
|
11
|
+
readonly productName: "product_id_name_";
|
|
12
|
+
/** 物料编码 */
|
|
13
|
+
readonly productCode: "product_id_code_";
|
|
14
|
+
/** 物料规格 */
|
|
15
|
+
readonly productSpec: "product_id_spec_";
|
|
16
|
+
/** 物料批号 */
|
|
17
|
+
readonly materialNo: "material_no_";
|
|
18
|
+
/** 物料批号ID */
|
|
19
|
+
readonly materialNoId: "material_no__id_";
|
|
20
|
+
/** 数量 */
|
|
21
|
+
readonly qty: "qty_";
|
|
22
|
+
/** 仓库 */
|
|
23
|
+
readonly warehouse: "warehouse_id_";
|
|
24
|
+
/** 库位 */
|
|
25
|
+
readonly location: "location_id_";
|
|
26
|
+
/** 工单 */
|
|
27
|
+
readonly mfgOrder: "mfg_order_id_";
|
|
28
|
+
/** 生产批次/SN */
|
|
29
|
+
readonly lotSn: "lot_sn_id_";
|
|
30
|
+
/** 有效期 */
|
|
31
|
+
readonly validity: "validity_";
|
|
32
|
+
/** 唯一码 */
|
|
33
|
+
readonly uniqueCode: "unique_code_";
|
|
34
|
+
/** 复检日期 */
|
|
35
|
+
readonly reInspectionDate: "re_inspection_date_";
|
|
36
|
+
};
|
|
37
|
+
export type WarehouseOutFieldKey = (typeof F)[keyof typeof F];
|
|
38
|
+
/**
|
|
39
|
+
* 设计态输入属性固定禁用、运行态只读的字段
|
|
40
|
+
* 物料编码 / 名称 / 规格 / 物料批号 / 仓库 / 库位 / 工单 / 生产批次/SN / 有效期 / 复检日期
|
|
41
|
+
*/
|
|
42
|
+
export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "material_no_", "warehouse_id_", "location_id_", "mfg_order_id_", "lot_sn_id_", "validity_", "re_inspection_date_"];
|
|
43
|
+
/** 物料清空时需一并清空的字段 */
|
|
44
|
+
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "material_no_", "material_no__id_", "warehouse_id_", "location_id_", "mfg_order_id_", "lot_sn_id_", "validity_", "re_inspection_date_"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { DropdownOption, DropdownOptionGroup } from '../../../base';
|
|
2
|
+
import { BusinessSubTableType } from '../types';
|
|
2
3
|
/** 表头(挂在数据表 Ribbon 首位) */
|
|
3
4
|
export declare const TABLE_HEADER_RIBBON_OPTION: DropdownOption;
|
|
5
|
+
export interface RibbonTableOptionsParams {
|
|
6
|
+
/** 当前套件 key,用于 ribbonSuites 过滤 */
|
|
7
|
+
suiteKey?: string;
|
|
8
|
+
/** 套件级需从 Ribbon 隐藏的业务表类型 */
|
|
9
|
+
hiddenBusinessTableTypes?: BusinessSubTableType[];
|
|
10
|
+
}
|
|
4
11
|
/** 生成 Ribbon「数据表」「业务表」下拉选项 */
|
|
5
|
-
export declare function getRibbonTableOptions(): {
|
|
12
|
+
export declare function getRibbonTableOptions(params?: RibbonTableOptionsParams): {
|
|
6
13
|
dataTables: DropdownOption[];
|
|
7
14
|
businessTables: DropdownOptionGroup[];
|
|
8
15
|
};
|
|
@@ -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(含空数组)→ 使用配置值
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../../core';
|
|
2
|
-
import { BusinessFieldProfile } from '../types';
|
|
2
|
+
import { BizServiceApiDef, BusinessFieldProfile, ResolveBizServiceApi } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* 从字段匹配配置中提取有效字段 key
|
|
5
5
|
* @returns 单个字符串字段名;数组 / 空值返回 undefined
|
|
@@ -8,6 +8,11 @@ export declare function resolveFieldKeyFromMatch(fieldProfile: BusinessFieldProf
|
|
|
8
8
|
export declare function toNumber(value: unknown, fallback?: number): number;
|
|
9
9
|
/** 读取填报上下文参数;空值(null / undefined / 空串)统一返回 undefined */
|
|
10
10
|
export declare function readContextParam(doc: Doc, paramKey: string): unknown;
|
|
11
|
+
/** 解析 initLoad / remoteSync 的 biz 接口 */
|
|
12
|
+
export declare function resolveConfiguredBizApi(config: {
|
|
13
|
+
api?: BizServiceApiDef;
|
|
14
|
+
resolveApi?: ResolveBizServiceApi;
|
|
15
|
+
}, regionProps?: Record<string, unknown> | null): BizServiceApiDef;
|
|
11
16
|
/** 写入子字段级联查询参数到 doc.paramsConfig._subFieldConfig */
|
|
12
17
|
export declare function setSubFieldQueryParams(doc: Doc, fieldValuePath: string, queryParams: Record<string, unknown>): void;
|
|
13
18
|
/** 控件字段条目:用于跨 engine 统一遍历 getWidgetInstances */
|
|
@@ -9,16 +9,23 @@ import { SubTableLayoutType } from '../../core/model/document/wtcRegionRef';
|
|
|
9
9
|
export type DataTableType = 'dynamic-table' | 'fixed-table' | 'two-d-table';
|
|
10
10
|
/**
|
|
11
11
|
* 业务表类型
|
|
12
|
-
* @property warehouse-in-
|
|
13
|
-
* @property warehouse-
|
|
12
|
+
* @property warehouse-in - 入库明细表(EDHR / WAREHOUSE_IN)
|
|
13
|
+
* @property warehouse-inbound - 入库明细表(EQM / WAREHOUSE_INBOUND)
|
|
14
|
+
* @property warehouse-out - 出库明细表(EDHR / WAREHOUSE_OUT)
|
|
15
|
+
* @property warehouse-outbound - 出库明细表(EQM / WAREHOUSE_OUTBOUND)
|
|
16
|
+
* @property warehouse-in-out - 出入库明细表(兼容老文档,Ribbon 已隐藏)
|
|
17
|
+
* @property warehouse-inventory - 库存盘点表(EDHR / STOCKTAKE)
|
|
18
|
+
* @property part-stocktake - 备件盘点表(EQM / PART_STOCKTAKE)
|
|
19
|
+
* @property device-part-consume - 备件消耗表(EQM / DEVICE_PART_CONSUME)
|
|
14
20
|
* @property warehouse-allocate - 库存调拨表
|
|
15
21
|
* @property material-consume - 物料消耗表
|
|
16
22
|
* @property material-balance - 物料平衡表
|
|
23
|
+
* @property material-requisition - 生产收料表
|
|
17
24
|
* @property check-table - 检验表
|
|
18
25
|
* @property pretreatment-list - 预处理表
|
|
19
26
|
* @property entrust-steril-batch-list - 委托灭菌生产批次表
|
|
20
27
|
*/
|
|
21
|
-
export type BusinessSubTableType = 'warehouse-in-out' | 'warehouse-inventory' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
|
|
28
|
+
export type BusinessSubTableType = 'warehouse-in' | 'warehouse-inbound' | 'warehouse-out' | 'warehouse-outbound' | 'warehouse-in-out' | 'warehouse-inventory' | 'part-stocktake' | 'device-part-consume' | 'warehouse-allocate' | 'material-consume' | 'material-balance' | 'material-requisition' | 'check-table' | 'pretreatment-list' | 'entrust-steril-batch-list';
|
|
22
29
|
/** 所有子表类型(数据表 + 业务表) */
|
|
23
30
|
export type TableType = DataTableType | BusinessSubTableType;
|
|
24
31
|
/**
|
|
@@ -101,6 +108,8 @@ export interface BusinessSubTableProfile extends TableProfileBase {
|
|
|
101
108
|
/** Ribbon 业务表分组名 */
|
|
102
109
|
ribbonGroup: string;
|
|
103
110
|
ribbonGroupDivider?: boolean;
|
|
111
|
+
/** 仅在这些套件的 Ribbon 中展示;省略则所有套件可见(仍受 suite hidden 列表约束) */
|
|
112
|
+
ribbonSuites?: SuiteKey[];
|
|
104
113
|
/** 字段级行为配置 */
|
|
105
114
|
fields?: BusinessFieldProfile[];
|
|
106
115
|
/** 隐式上游字段,必要的情况下可与下游字段进行级联配合 */
|
|
@@ -124,8 +133,9 @@ export interface BusinessSubTableProfile extends TableProfileBase {
|
|
|
124
133
|
export type TableProfile = DataTableProfile | BusinessSubTableProfile;
|
|
125
134
|
/** 主表字段绑定:从填报上下文写入主模型字段 */
|
|
126
135
|
export interface MainFieldBindingDef {
|
|
136
|
+
/** 字段类型 */
|
|
127
137
|
fieldType: FIELD_TYPE;
|
|
128
|
-
/**
|
|
138
|
+
/** 排除的字段 key */
|
|
129
139
|
excludeFieldKeys?: string[];
|
|
130
140
|
source: {
|
|
131
141
|
type: 'context';
|
|
@@ -140,13 +150,20 @@ export interface BizServiceApiDef {
|
|
|
140
150
|
/** 请求方式,默认 post */
|
|
141
151
|
method?: 'get' | 'post';
|
|
142
152
|
}
|
|
153
|
+
/** 按表实例 props 动态解析 biz 接口 */
|
|
154
|
+
export type ResolveBizServiceApi = (input: {
|
|
155
|
+
regionProps?: Record<string, unknown> | null;
|
|
156
|
+
}) => BizServiceApiDef;
|
|
143
157
|
/** 文档初始化批量加载 */
|
|
144
158
|
export interface InitLoadDef {
|
|
145
159
|
/** 加载属性写死开关,为 true 时直接启用 initLoad */
|
|
146
160
|
enabled?: boolean;
|
|
147
161
|
/** 对应 widgetMeta.props 上的开关属性名 */
|
|
148
162
|
enabledByWidgetProp?: string;
|
|
149
|
-
|
|
163
|
+
/** 静态接口;与 resolveApi 至少配置其一 */
|
|
164
|
+
api?: BizServiceApiDef;
|
|
165
|
+
/** 有则优先于 api(按设计态 props 切换数据源) */
|
|
166
|
+
resolveApi?: ResolveBizServiceApi;
|
|
150
167
|
/** listAll 类接口 query 构建 */
|
|
151
168
|
listQuery?: Array<{
|
|
152
169
|
fromContext: {
|
|
@@ -154,6 +171,8 @@ export interface InitLoadDef {
|
|
|
154
171
|
};
|
|
155
172
|
queryKey: string;
|
|
156
173
|
}>;
|
|
174
|
+
/** 固定写入请求体的字段 */
|
|
175
|
+
fixedBody?: Record<string, unknown>;
|
|
157
176
|
/** 行内任一字段有值则跳过加载 */
|
|
158
177
|
skipIfRowHasAny?: string[];
|
|
159
178
|
/** 服务端已返回非空子表行时跳过 */
|
|
@@ -168,6 +187,8 @@ export interface InitLoadDef {
|
|
|
168
187
|
/** 远程同步:身份字段变更 → 调接口 → 回写行数据 */
|
|
169
188
|
export interface RemoteSyncDef {
|
|
170
189
|
api: BizServiceApiDef;
|
|
190
|
+
/** 有则优先于 api(按设计态 props 切换数据源) */
|
|
191
|
+
resolveApi?: ResolveBizServiceApi;
|
|
171
192
|
/** 这些字段变更时触发 */
|
|
172
193
|
triggerFields: string[];
|
|
173
194
|
/** 作为 POST body 从行读取的字段 */
|
|
@@ -265,6 +286,15 @@ export interface SelectApiBinding {
|
|
|
265
286
|
/** true 时 modelKey 取请求里的 refModelKey */
|
|
266
287
|
modelKeyFromRef?: boolean;
|
|
267
288
|
bsKey: string;
|
|
289
|
+
/** 请求体对齐引用查询:带 fieldKey、modelKey、refModelKey、query、exp */
|
|
290
|
+
withRefIdentity?: boolean;
|
|
291
|
+
/** 与 query 同级合并进请求体 */
|
|
292
|
+
body?: Record<string, any>;
|
|
293
|
+
/**
|
|
294
|
+
* 接口忽略 pageNo/pageSize,一次返回全量。
|
|
295
|
+
* 请求仍可带分页参数;下拉展示由前端对全量结果切片。
|
|
296
|
+
*/
|
|
297
|
+
clientPagination?: boolean;
|
|
268
298
|
}
|
|
269
299
|
/**
|
|
270
300
|
* 下拉数据源 / 列展示覆盖(表 + 字段实例)
|
|
@@ -282,6 +312,11 @@ export interface SelectSourceDef {
|
|
|
282
312
|
isTree?: boolean;
|
|
283
313
|
allowManualInput?: boolean;
|
|
284
314
|
persistOptionId?: boolean;
|
|
315
|
+
/**
|
|
316
|
+
* 将 option 的 `id_` 写入行内该字段(如出库物料 → `inventory_id_`)。
|
|
317
|
+
* 用于同 product 多库存行时按库存主键唯一回显;有值时选中/高亮都走此字段,不再用 companion `_id_`
|
|
318
|
+
*/
|
|
319
|
+
optionIdField?: string;
|
|
285
320
|
baseQuery?: Record<string, unknown>;
|
|
286
321
|
/**
|
|
287
322
|
* baseQuery 多条件时的组合方式
|
|
@@ -289,8 +324,15 @@ export interface SelectSourceDef {
|
|
|
289
324
|
*/
|
|
290
325
|
filterCombine?: 'and' | 'or';
|
|
291
326
|
searchFields?: string[];
|
|
292
|
-
/**
|
|
293
|
-
|
|
327
|
+
/**
|
|
328
|
+
* 搜索拼装方式:
|
|
329
|
+
* - quick:OR(iLike 字段) + 可选过滤,走 query/exp
|
|
330
|
+
* - like:类型注释保留,实际等同不写(走 fieldType 默认 buildQuery)
|
|
331
|
+
* - param:搜索框值写入 searchKeywordParam;biz 请求体与 pageNo/pageSize 平铺(不走 query/exp)
|
|
332
|
+
*/
|
|
333
|
+
searchStyle?: 'quick' | 'like' | 'param';
|
|
334
|
+
/** param 模式下,搜索框值写入的请求参数名 */
|
|
335
|
+
searchKeywordParam?: string;
|
|
294
336
|
/** 下拉 Option 的 value/label 字段映射 */
|
|
295
337
|
optionMapping?: {
|
|
296
338
|
value?: string;
|
|
@@ -312,10 +354,24 @@ export interface BusinessFieldProfile {
|
|
|
312
354
|
locked?: ('readonly' | 'disabled' | 'required')[];
|
|
313
355
|
/** 下拉数据源与列展示 */
|
|
314
356
|
selectSource?: SelectSourceDef;
|
|
357
|
+
/**
|
|
358
|
+
* 按表实例 props 动态解析下拉数据源;返回值优先于 selectSource。
|
|
359
|
+
* 返回 null/undefined 时回退 selectSource。
|
|
360
|
+
*/
|
|
361
|
+
resolveSelectSource?: (input: {
|
|
362
|
+
regionProps?: Record<string, unknown> | null;
|
|
363
|
+
}) => SelectSourceDef | null | undefined;
|
|
315
364
|
/** 下拉级联 */
|
|
316
365
|
select?: SelectBehaviorDef;
|
|
317
366
|
/** 选中下拉项后,从 option 数据同步填充同行多个字段 */
|
|
318
367
|
fillFromOption?: FieldOptionFillDef[];
|
|
368
|
+
/**
|
|
369
|
+
* 按表实例 props 动态解析回填规则;返回值优先于 fillFromOption。
|
|
370
|
+
* 返回 null/undefined 时回退 fillFromOption。
|
|
371
|
+
*/
|
|
372
|
+
resolveFillFromOption?: (input: {
|
|
373
|
+
regionProps?: Record<string, unknown> | null;
|
|
374
|
+
}) => FieldOptionFillDef[] | null | undefined;
|
|
319
375
|
}
|
|
320
376
|
/** 级联查询上下文:buildLinkQuery 回调入参 */
|
|
321
377
|
export interface LinkQueryContext extends RuleContext {
|
|
@@ -328,6 +384,11 @@ export interface LinkQueryContext extends RuleContext {
|
|
|
328
384
|
export interface SelectBehaviorDef {
|
|
329
385
|
/** 上游字段 key 可与本字段同处一行 也可在子表外但需配合 implicitFields */
|
|
330
386
|
linkFieldKey: string;
|
|
387
|
+
/**
|
|
388
|
+
* 首选上游控件未拖入时的回退上游字段。
|
|
389
|
+
* 例:库位优先按库区联动;未拖库区时回退按仓库联动。
|
|
390
|
+
*/
|
|
391
|
+
fallbackLinkFieldKey?: string;
|
|
331
392
|
/**
|
|
332
393
|
* 是否要求上游字段拖入子表表单才启用联动
|
|
333
394
|
*
|
|
@@ -339,6 +400,7 @@ export interface SelectBehaviorDef {
|
|
|
339
400
|
* | `false` | 不要求拖上游控件;行内无值时回退读主表 `$.{linkFieldKey}`,进行联动
|
|
340
401
|
*
|
|
341
402
|
* 与 `implicitFields` 配合:主表上游建议同时写 implicitFields(主表变更时刷新所有行 + 清空下游)。
|
|
403
|
+
* 若配置了 `fallbackLinkFieldKey`:首选上游未拖入时,对回退上游同样按本开关判断。
|
|
342
404
|
*/
|
|
343
405
|
requireLinkWidget?: boolean;
|
|
344
406
|
/** 构建下拉查询参数 */
|
|
@@ -407,6 +469,8 @@ export interface ImplicitFieldDef {
|
|
|
407
469
|
export type RuleTrigger = 'always' | 'onRowInit' | 'onFieldChange' | 'onRowConfirm';
|
|
408
470
|
/** 规则 / 级联执行上下文 */
|
|
409
471
|
export interface RuleContext {
|
|
472
|
+
/** 当前文档是否为模拟填报 */
|
|
473
|
+
isMockReport: boolean;
|
|
410
474
|
/** 子表在 rawData 中的 fieldKey */
|
|
411
475
|
subFieldKey: string;
|
|
412
476
|
/** 业务子模型 refModelType */
|