@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.
- package/README.md +4 -1
- package/dist/assets/svgs/table/index.d.ts +7 -0
- package/dist/assets/theme/field-state.d.ts +64 -56
- 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/collapse/src/collapse.vue.d.ts +3 -0
- 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/empty/src/empty.vue.d.ts +1 -1
- package/dist/base/image-upload/src/image-upload.vue.d.ts +1 -1
- 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.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 +4 -4
- package/dist/base/select/src/searchable-select.vue.d.ts +30 -3
- 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 +12 -4
- package/dist/core/command/commands/InsertTable.d.ts +4 -0
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/paper.d.ts +3 -1
- 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 +13 -0
- package/dist/core/data/paths/field-paths.d.ts +2 -0
- 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/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/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/repeating/RepeatingRegion.d.ts +28 -1
- package/dist/core/model/templates/tableCell.template.d.ts +2 -0
- package/dist/core/view/Doc.d.ts +13 -1
- package/dist/core/view/Page.d.ts +2 -2
- package/dist/core/view/Table.d.ts +13 -0
- package/dist/core/view/TableCell.d.ts +2 -1
- package/dist/core/view/base/LayoutGroup.d.ts +11 -0
- package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
- package/dist/core/view/runs/ImageWidget.d.ts +4 -0
- package/dist/core/view/utils/TextUtil.d.ts +1 -9
- package/dist/domain/active/active-types.d.ts +15 -1
- package/dist/domain/constants/enum/view.d.ts +15 -0
- package/dist/domain/field/field-type.d.ts +14 -2
- package/dist/domain/field/form-value.d.ts +5 -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 +7 -7
- package/dist/domain/table/business/shared/production-identification-scan-api.d.ts +13 -0
- package/dist/domain/table/business/shared/scan-action.d.ts +27 -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 +0 -2
- 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 +15 -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 +39 -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 +5 -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 +25 -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 +22 -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/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 +60 -7
- package/dist/index.es.js +21189 -11330
- 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 +141 -18
- package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +4 -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 +19 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +79 -20
- 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 +13 -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 +6 -0
- package/dist/runtime/canvas/table/render/material-consume/transform.d.ts +12 -0
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +9 -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/table-design.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
- package/dist/runtime/designer/panel/panel-breadcrumb-separator.vue.d.ts +2 -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/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/useTableDropdown.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +12 -12
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +12 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +12 -12
- package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +3 -3
- package/dist/runtime/renderer/dropdowns/components/tree/tree-dropdown.vue.d.ts +12 -12
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +3 -1
- package/dist/sdk/types/index.d.ts +6 -1
- package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +6 -4
- package/dist/suites/edhr/component/resolve-marker-color.d.ts +7 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +6 -1
- 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/panel-schema/data-init/material-consume-object/bom-validator.d.ts +52 -0
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/index.d.ts +2 -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/device-part-consume-table/device-part-consume-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/field/field-attribute-value.vue.d.ts +26 -0
- package/dist/suites/edhr/panel-schema/field/field-panel-chevron.vue.d.ts +5 -0
- package/dist/suites/edhr/panel-schema/field/field-panel-text-icon.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/index.d.ts +7 -0
- package/dist/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/part-stocktake-table/part-stocktake-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-inbound-table/warehouse-inbound-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/edhr/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.d.ts +1 -0
- package/dist/suites/shared/components/option-control-colors.d.ts +14 -0
- package/dist/suites/shared/hooks/useFieldPanel.d.ts +1 -0
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +2 -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 +17 -0
- package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
- package/dist/utils/func/file.d.ts +1 -1
- package/dist/utils/pdf/resolve-pdf-text-baseline.d.ts +1 -2
- package/dist/word.css +1434 -1175
- package/package.json +5 -3
- package/vite/index.mjs +4 -0
- 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/utils/fonts/cjk-optical-offset.d.ts +0 -12
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
readonly warehouseSummary: "warehouse_summary";
|
|
10
|
+
readonly locationDetail: "location_detail";
|
|
11
|
+
};
|
|
12
|
+
export type StocktakeDimension = (typeof STOCKTAKE_DIMENSION)[keyof typeof STOCKTAKE_DIMENSION];
|
|
13
|
+
/** 设计态盘点维度下拉选项 */
|
|
14
|
+
export declare const STOCKTAKE_DIMENSION_OPTIONS: readonly [{
|
|
15
|
+
readonly label: "按仓库汇总盘点";
|
|
16
|
+
readonly value: "warehouse_summary";
|
|
17
|
+
readonly showTip: false;
|
|
18
|
+
readonly tip: "按SKU汇总总数核对,不支持自动调整库存";
|
|
19
|
+
}, {
|
|
20
|
+
readonly label: "按库位精细盘点";
|
|
21
|
+
readonly value: "location_detail";
|
|
22
|
+
readonly showTip: false;
|
|
23
|
+
readonly tip: "按库存明细逐条核对";
|
|
24
|
+
}];
|
|
3
25
|
/** 盘点状态 key → 展示文案 */
|
|
4
26
|
export declare const STOCKTAKE_STATUS: {
|
|
5
27
|
readonly waiting: "待盘点";
|
|
@@ -9,25 +31,3 @@ export declare const STOCKTAKE_STATUS: {
|
|
|
9
31
|
};
|
|
10
32
|
export type StocktakeStatusKey = keyof typeof STOCKTAKE_STATUS;
|
|
11
33
|
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';
|
|
@@ -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 从行读取的字段 */
|
|
@@ -282,6 +303,11 @@ export interface SelectSourceDef {
|
|
|
282
303
|
isTree?: boolean;
|
|
283
304
|
allowManualInput?: boolean;
|
|
284
305
|
persistOptionId?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* 将 option 的 `id_` 写入行内该字段(如出库物料 → `inventory_id_`)。
|
|
308
|
+
* 用于同 product 多库存行时按库存主键唯一回显;有值时选中/高亮都走此字段,不再用 companion `_id_`
|
|
309
|
+
*/
|
|
310
|
+
optionIdField?: string;
|
|
285
311
|
baseQuery?: Record<string, unknown>;
|
|
286
312
|
/**
|
|
287
313
|
* baseQuery 多条件时的组合方式
|
|
@@ -289,8 +315,15 @@ export interface SelectSourceDef {
|
|
|
289
315
|
*/
|
|
290
316
|
filterCombine?: 'and' | 'or';
|
|
291
317
|
searchFields?: string[];
|
|
292
|
-
/**
|
|
293
|
-
|
|
318
|
+
/**
|
|
319
|
+
* 搜索拼装方式:
|
|
320
|
+
* - quick:OR(iLike 字段) + 可选过滤,走 query/exp
|
|
321
|
+
* - like:类型注释保留,实际等同不写(走 fieldType 默认 buildQuery)
|
|
322
|
+
* - param:搜索框值写入 searchKeywordParam;biz 请求体与 pageNo/pageSize 平铺(不走 query/exp)
|
|
323
|
+
*/
|
|
324
|
+
searchStyle?: 'quick' | 'like' | 'param';
|
|
325
|
+
/** param 模式下,搜索框值写入的请求参数名 */
|
|
326
|
+
searchKeywordParam?: string;
|
|
294
327
|
/** 下拉 Option 的 value/label 字段映射 */
|
|
295
328
|
optionMapping?: {
|
|
296
329
|
value?: string;
|
|
@@ -312,10 +345,24 @@ export interface BusinessFieldProfile {
|
|
|
312
345
|
locked?: ('readonly' | 'disabled' | 'required')[];
|
|
313
346
|
/** 下拉数据源与列展示 */
|
|
314
347
|
selectSource?: SelectSourceDef;
|
|
348
|
+
/**
|
|
349
|
+
* 按表实例 props 动态解析下拉数据源;返回值优先于 selectSource。
|
|
350
|
+
* 返回 null/undefined 时回退 selectSource。
|
|
351
|
+
*/
|
|
352
|
+
resolveSelectSource?: (input: {
|
|
353
|
+
regionProps?: Record<string, unknown> | null;
|
|
354
|
+
}) => SelectSourceDef | null | undefined;
|
|
315
355
|
/** 下拉级联 */
|
|
316
356
|
select?: SelectBehaviorDef;
|
|
317
357
|
/** 选中下拉项后,从 option 数据同步填充同行多个字段 */
|
|
318
358
|
fillFromOption?: FieldOptionFillDef[];
|
|
359
|
+
/**
|
|
360
|
+
* 按表实例 props 动态解析回填规则;返回值优先于 fillFromOption。
|
|
361
|
+
* 返回 null/undefined 时回退 fillFromOption。
|
|
362
|
+
*/
|
|
363
|
+
resolveFillFromOption?: (input: {
|
|
364
|
+
regionProps?: Record<string, unknown> | null;
|
|
365
|
+
}) => FieldOptionFillDef[] | null | undefined;
|
|
319
366
|
}
|
|
320
367
|
/** 级联查询上下文:buildLinkQuery 回调入参 */
|
|
321
368
|
export interface LinkQueryContext extends RuleContext {
|
|
@@ -328,6 +375,11 @@ export interface LinkQueryContext extends RuleContext {
|
|
|
328
375
|
export interface SelectBehaviorDef {
|
|
329
376
|
/** 上游字段 key 可与本字段同处一行 也可在子表外但需配合 implicitFields */
|
|
330
377
|
linkFieldKey: string;
|
|
378
|
+
/**
|
|
379
|
+
* 首选上游控件未拖入时的回退上游字段。
|
|
380
|
+
* 例:库位优先按库区联动;未拖库区时回退按仓库联动。
|
|
381
|
+
*/
|
|
382
|
+
fallbackLinkFieldKey?: string;
|
|
331
383
|
/**
|
|
332
384
|
* 是否要求上游字段拖入子表表单才启用联动
|
|
333
385
|
*
|
|
@@ -339,6 +391,7 @@ export interface SelectBehaviorDef {
|
|
|
339
391
|
* | `false` | 不要求拖上游控件;行内无值时回退读主表 `$.{linkFieldKey}`,进行联动
|
|
340
392
|
*
|
|
341
393
|
* 与 `implicitFields` 配合:主表上游建议同时写 implicitFields(主表变更时刷新所有行 + 清空下游)。
|
|
394
|
+
* 若配置了 `fallbackLinkFieldKey`:首选上游未拖入时,对回退上游同样按本开关判断。
|
|
342
395
|
*/
|
|
343
396
|
requireLinkWidget?: boolean;
|
|
344
397
|
/** 构建下拉查询参数 */
|