@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
|
@@ -13,6 +13,22 @@ export type RepeatingWidgetPropsBase = {
|
|
|
13
13
|
export type DynamicTableProps = RepeatingWidgetPropsBase & {
|
|
14
14
|
layoutType?: 'dynamic-table';
|
|
15
15
|
};
|
|
16
|
+
export type WarehouseInTableProps = RepeatingWidgetPropsBase & {
|
|
17
|
+
layoutType: 'warehouse-in-table';
|
|
18
|
+
/** 条码解析规则 */
|
|
19
|
+
barcode_parsing_rules_id_?: string;
|
|
20
|
+
};
|
|
21
|
+
export type WarehouseInboundTableProps = RepeatingWidgetPropsBase & {
|
|
22
|
+
layoutType: 'warehouse-inbound-table';
|
|
23
|
+
};
|
|
24
|
+
export type WarehouseOutTableProps = RepeatingWidgetPropsBase & {
|
|
25
|
+
layoutType: 'warehouse-out-table';
|
|
26
|
+
/** 条码解析规则 */
|
|
27
|
+
barcode_parsing_rules_id_?: string;
|
|
28
|
+
};
|
|
29
|
+
export type WarehouseOutboundTableProps = RepeatingWidgetPropsBase & {
|
|
30
|
+
layoutType: 'warehouse-outbound-table';
|
|
31
|
+
};
|
|
16
32
|
export type WarehouseInOutTableProps = RepeatingWidgetPropsBase & {
|
|
17
33
|
layoutType: 'warehouse-in-out-table';
|
|
18
34
|
};
|
|
@@ -30,17 +46,28 @@ export type WarehouseInventoryTableProps = RepeatingWidgetPropsBase & {
|
|
|
30
46
|
layoutType: 'warehouse-inventory-table';
|
|
31
47
|
/** 库存自动加载 */
|
|
32
48
|
autoLoadInventory?: boolean;
|
|
49
|
+
/** 盘点维度 */
|
|
50
|
+
stocktakeDimension?: 'warehouse_summary' | 'location_detail';
|
|
33
51
|
/** 条码解析规则 */
|
|
34
52
|
barcode_parsing_rules_id_?: string;
|
|
35
53
|
};
|
|
54
|
+
export type PartStocktakeTableProps = RepeatingWidgetPropsBase & {
|
|
55
|
+
layoutType: 'part-stocktake-table';
|
|
56
|
+
};
|
|
57
|
+
export type DevicePartConsumeTableProps = RepeatingWidgetPropsBase & {
|
|
58
|
+
layoutType: 'device-part-consume-table';
|
|
59
|
+
};
|
|
36
60
|
export type MaterialBalanceTableProps = RepeatingWidgetPropsBase & {
|
|
37
61
|
layoutType: 'material-balance-table';
|
|
38
62
|
};
|
|
63
|
+
export type MaterialRequisitionTableProps = RepeatingWidgetPropsBase & {
|
|
64
|
+
layoutType: 'material-requisition-table';
|
|
65
|
+
};
|
|
39
66
|
export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
|
|
40
67
|
layoutType: 'warehouse-allocate-table';
|
|
41
68
|
barcode_parsing_rules_id_?: string;
|
|
42
69
|
};
|
|
43
|
-
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | WarehouseAllocateTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
70
|
+
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
44
71
|
export type RepeatingWidgetMeta = {
|
|
45
72
|
props: RepeatingWidgetPropsMeta;
|
|
46
73
|
};
|
package/dist/core/view/Doc.d.ts
CHANGED
|
@@ -15,6 +15,11 @@ export interface DocInitOptions {
|
|
|
15
15
|
mode?: DocModeType;
|
|
16
16
|
model?: DocModel;
|
|
17
17
|
preview?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 设计器引用只读态;与 preview 互斥。
|
|
20
|
+
* 仅保留右侧属性 panel,禁止修改文档与配置
|
|
21
|
+
*/
|
|
22
|
+
refer?: boolean;
|
|
18
23
|
/** 是否是模拟填报 */
|
|
19
24
|
isMockReport?: boolean;
|
|
20
25
|
mainModelKey: ModelKey;
|
|
@@ -45,8 +50,10 @@ export declare class Doc {
|
|
|
45
50
|
mode: DocModeType;
|
|
46
51
|
/** 按钮区渲染模式 */
|
|
47
52
|
btnRenderModeType: DocModeType;
|
|
48
|
-
/**
|
|
53
|
+
/** 是否是设计器预览模式(隐藏设计器壳) */
|
|
49
54
|
preview: boolean;
|
|
55
|
+
/** 是否是设计器引用只读态(保留壳,禁止编辑) */
|
|
56
|
+
refer: boolean;
|
|
50
57
|
/** 是否是模拟填报 */
|
|
51
58
|
isMockReport: boolean;
|
|
52
59
|
/** 填报内容区底色开关配置 */
|
|
@@ -131,6 +138,11 @@ export declare class Doc {
|
|
|
131
138
|
isInFillMode(): boolean;
|
|
132
139
|
/** 是否是打印模式 */
|
|
133
140
|
isInPrintMode(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* 设计侧不可编辑:预览(藏壳)或引用只读(留 panel)。
|
|
143
|
+
* 用于命令 / 输入 / 拖拽等写操作拦截。
|
|
144
|
+
*/
|
|
145
|
+
isDesignReadonly(): boolean;
|
|
134
146
|
/** 打印时临时开关填报内容区底色 */
|
|
135
147
|
setShowPrintFieldBg(show: boolean): void;
|
|
136
148
|
bumpUpdateTick(): void;
|
package/dist/core/view/Page.d.ts
CHANGED
|
@@ -58,8 +58,8 @@ export declare class Page extends LayoutGroup<PageChild> implements IContainerMe
|
|
|
58
58
|
*/
|
|
59
59
|
get contentMaxHeight(): number;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
61
|
+
* 获取当前页面正文实际占用高度
|
|
62
|
+
* 按段落、表格等子组件的底边计算,包含显式块间距
|
|
63
63
|
*/
|
|
64
64
|
getContentHeight(): number;
|
|
65
65
|
/** 获取当前是第几页 */
|
|
@@ -3,14 +3,18 @@ import { TableRow } from './TableRow';
|
|
|
3
3
|
import { Border } from './types';
|
|
4
4
|
import { EventUtil } from './utils/EventUtil';
|
|
5
5
|
import { TableCell } from './TableCell';
|
|
6
|
+
import { WtblPr } from '../model/document/WtblPr';
|
|
6
7
|
export interface TableOptions extends LayoutGroupOptions {
|
|
7
8
|
colWidths?: number[];
|
|
9
|
+
tblPr?: WtblPr;
|
|
8
10
|
}
|
|
9
11
|
export declare class Table extends LayoutGroup<TableRow> {
|
|
10
12
|
type: 'table';
|
|
11
13
|
component: "table";
|
|
12
14
|
cellPadding: [number, number, number, number];
|
|
13
15
|
colWidths?: number[];
|
|
16
|
+
/** 表格属性 */
|
|
17
|
+
tblPr?: WtblPr;
|
|
14
18
|
/** redistribute 完成事件 */
|
|
15
19
|
redistributeEvent: EventUtil;
|
|
16
20
|
/** 表格边框 */
|
|
@@ -21,6 +25,15 @@ export declare class Table extends LayoutGroup<TableRow> {
|
|
|
21
25
|
get width(): number;
|
|
22
26
|
redistribute(): void;
|
|
23
27
|
layout(x: number, y: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* 相对正文区左边缘的水平偏移
|
|
30
|
+
* 对应 w:jc / w:tblInd;居中或右对齐且表格宽于正文区时可为负值
|
|
31
|
+
*/
|
|
32
|
+
private resolveOffsetX;
|
|
33
|
+
/** 嵌套在单元格内的表格不使用页面级对齐 */
|
|
34
|
+
private isNestedInCell;
|
|
35
|
+
private getTableJc;
|
|
36
|
+
private getTblIndPx;
|
|
24
37
|
updateCellOffsetInfo(): void;
|
|
25
38
|
forEachCell(options: {
|
|
26
39
|
startRowIdx: number;
|
|
@@ -27,7 +27,8 @@ export type SubRenderer = {
|
|
|
27
27
|
/** 用来标记二维表的子类型 交叉 / 横向 / 纵向 */
|
|
28
28
|
cellZone?: LinkSubTableCellZone;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type TableCellContent = Paragraph | Table;
|
|
31
|
+
export declare class TableCell extends LayoutGroup<TableCellContent> implements IContainerMetrics {
|
|
31
32
|
component: "tableCell";
|
|
32
33
|
colspan: number;
|
|
33
34
|
rowspan: number;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { LayoutNode, LayoutNodeOptions } from './LayoutNode';
|
|
2
|
+
type PositionedLayoutNode = Pick<LayoutNode, 'y' | 'height'>;
|
|
3
|
+
/**
|
|
4
|
+
* 按子节点的实际底边计算内容占位高度。
|
|
5
|
+
*
|
|
6
|
+
* 子节点可能带有块级间距形成的 y 偏移;仅累加 height 会漏掉这些间距,
|
|
7
|
+
* 导致后续文档流插入到已有内容之间。
|
|
8
|
+
*/
|
|
9
|
+
export declare function measureLayoutContentHeight(children: readonly PositionedLayoutNode[]): number;
|
|
2
10
|
/**
|
|
3
11
|
* 布局容器配置
|
|
4
12
|
*/
|
|
@@ -68,6 +76,8 @@ export declare abstract class LayoutGroup<T extends LayoutNode = LayoutNode> ext
|
|
|
68
76
|
* 获取子节点数量
|
|
69
77
|
*/
|
|
70
78
|
getChildCount(): number;
|
|
79
|
+
/** 获取所有子节点在当前容器中实际占用的纵向高度。 */
|
|
80
|
+
protected getChildrenContentHeight(): number;
|
|
71
81
|
/**
|
|
72
82
|
* 获取第一个子节点
|
|
73
83
|
*/
|
|
@@ -109,3 +119,4 @@ export declare abstract class LayoutGroup<T extends LayoutNode = LayoutNode> ext
|
|
|
109
119
|
*/
|
|
110
120
|
filterChildren(predicate: (child: T) => boolean): T[];
|
|
111
121
|
}
|
|
122
|
+
export {};
|
|
@@ -11,6 +11,7 @@ export declare function useDocPubApiContext(): {
|
|
|
11
11
|
query: ComputedRef<import('../../../sdk/types').DocQueryAPI>;
|
|
12
12
|
updateTick: ComputedRef<number>;
|
|
13
13
|
isDesignMode: ComputedRef<boolean>;
|
|
14
|
+
isRefer: ComputedRef<boolean>;
|
|
14
15
|
loading: ComputedRef<boolean>;
|
|
15
16
|
hasData: ComputedRef<boolean>;
|
|
16
17
|
hasPages: ComputedRef<boolean>;
|
|
@@ -10,6 +10,8 @@ export interface IImageWidget extends IImageRun {
|
|
|
10
10
|
/** 组件元数据 */
|
|
11
11
|
widgetMeta?: WidgetMeta;
|
|
12
12
|
signature?: string;
|
|
13
|
+
/** 无图签名时的验证时间 */
|
|
14
|
+
signTime?: number;
|
|
13
15
|
pageWidgetMeta?: Record<string, any>;
|
|
14
16
|
dataSlotIndex?: DataSlotIndex;
|
|
15
17
|
}
|
|
@@ -19,6 +21,7 @@ export interface ImageWidgetOptions extends ImageRunOptions {
|
|
|
19
21
|
/** 组件元数据 */
|
|
20
22
|
widgetMeta?: WidgetMeta;
|
|
21
23
|
signature?: string;
|
|
24
|
+
signTime?: number;
|
|
22
25
|
pageWidgetMeta?: IImageWidget['pageWidgetMeta'];
|
|
23
26
|
dataSlotIndex?: DataSlotIndex;
|
|
24
27
|
}
|
|
@@ -30,6 +33,7 @@ export declare class ImageWidget extends ImageRun implements IImageWidget {
|
|
|
30
33
|
valuePath?: string;
|
|
31
34
|
widgetMeta?: WidgetMeta;
|
|
32
35
|
signature?: string;
|
|
36
|
+
signTime?: number;
|
|
33
37
|
pageWidgetMeta?: IImageWidget['pageWidgetMeta'];
|
|
34
38
|
dataSlotIndex?: DataSlotIndex;
|
|
35
39
|
constructor(options: ImageWidgetOptions);
|
|
@@ -66,17 +66,9 @@ export declare class TextUtil {
|
|
|
66
66
|
* @returns
|
|
67
67
|
*/
|
|
68
68
|
private static getMeasureCacheKey;
|
|
69
|
-
/** 历史默认西文栈:仅黑体垂直定位参照,保持与旧版观感一致 */
|
|
70
|
-
private static readonly VERTICAL_METRICS_REF_FONT;
|
|
71
|
-
/**
|
|
72
|
-
* 是否为文档黑体(Noto Sans SC);宋体/楷体不走 Roboto 垂直参照
|
|
73
|
-
*/
|
|
74
|
-
private static isHeitiDocumentFontFamily;
|
|
75
69
|
/**
|
|
76
70
|
* 计算字体度量 ascent / descent
|
|
77
|
-
*
|
|
78
|
-
* 黑体:用 Roboto 栈的 'Hg' + actualBoundingBox 做垂直定位(接近旧默认观感)。
|
|
79
|
-
* 宋体/楷体/其它:用自身字体度量。
|
|
71
|
+
* 与屏显/PDF 绘制字体一致,直接用文档 fontFamily 度量(黑体为 Noto Sans SC)。
|
|
80
72
|
*/
|
|
81
73
|
static getFontMetrics(payload: Konva.TextConfig): {
|
|
82
74
|
ascent: number;
|
|
@@ -14,12 +14,26 @@ export type PanelType =
|
|
|
14
14
|
| 'panel:rule'
|
|
15
15
|
/** 动态表 */
|
|
16
16
|
| 'panel:dynamic-table'
|
|
17
|
-
/**
|
|
17
|
+
/** 入库明细表 */
|
|
18
|
+
| 'panel:warehouse-in-table'
|
|
19
|
+
/** EQM 入库明细表(WAREHOUSE_INBOUND) */
|
|
20
|
+
| 'panel:warehouse-inbound-table'
|
|
21
|
+
/** 出库明细表 */
|
|
22
|
+
| 'panel:warehouse-out-table'
|
|
23
|
+
/** EQM 出库明细表(WAREHOUSE_OUTBOUND) */
|
|
24
|
+
| 'panel:warehouse-outbound-table'
|
|
25
|
+
/** 出入库明细表(兼容老文档) */
|
|
18
26
|
| 'panel:warehouse-in-out-table'
|
|
19
27
|
/** 库存盘点表 */
|
|
20
28
|
| 'panel:warehouse-inventory-table'
|
|
29
|
+
/** EQM 备件库存盘点表(PART_STOCKTAKE) */
|
|
30
|
+
| 'panel:part-stocktake-table'
|
|
31
|
+
/** EQM 备件消耗表(DEVICE_PART_CONSUME) */
|
|
32
|
+
| 'panel:device-part-consume-table'
|
|
21
33
|
/** 物料平衡表 */
|
|
22
34
|
| 'panel:material-balance-table'
|
|
35
|
+
/** 生产收料表 */
|
|
36
|
+
| 'panel:material-requisition-table'
|
|
23
37
|
/** 库存调拨表 */
|
|
24
38
|
| 'panel:warehouse-allocate-table'
|
|
25
39
|
/** 二维表 */
|
|
@@ -89,3 +89,18 @@ export declare const FieldSysVarDefaultValueConst: {
|
|
|
89
89
|
/** 当前登录用户主部门 */
|
|
90
90
|
CURRENT_ORG: string;
|
|
91
91
|
};
|
|
92
|
+
/** 批次类型 */
|
|
93
|
+
export declare const ContainerRoleConst: {
|
|
94
|
+
/** 普通批次 */
|
|
95
|
+
NORMAL: string;
|
|
96
|
+
/** 关联批父节点 */
|
|
97
|
+
RELATED_PARENT: string;
|
|
98
|
+
/** 关联批子批次 */
|
|
99
|
+
RELATED_CHILD: string;
|
|
100
|
+
/** 合并批父节点 */
|
|
101
|
+
MERGE_PARENT: string;
|
|
102
|
+
/** 共线批父节点 */
|
|
103
|
+
COLLINEAR_PARENT: string;
|
|
104
|
+
/** 共线批子节点 */
|
|
105
|
+
COLLINEAR_CHILD: string;
|
|
106
|
+
};
|
|
@@ -219,7 +219,7 @@ export declare enum FIELD_TYPE {
|
|
|
219
219
|
SHOPFLOOR = "shopfloor",
|
|
220
220
|
/**
|
|
221
221
|
* 建模关联
|
|
222
|
-
|
|
222
|
+
*/
|
|
223
223
|
MODEL_RELATION = "model_relation",
|
|
224
224
|
/**
|
|
225
225
|
* 记录单号
|
|
@@ -305,6 +305,14 @@ export declare enum FIELD_TYPE {
|
|
|
305
305
|
* 材料检验数量
|
|
306
306
|
*/
|
|
307
307
|
MATERIAL_CHECK_QTY = "material_check_qty",
|
|
308
|
+
/**
|
|
309
|
+
* 工序接收数量
|
|
310
|
+
*/
|
|
311
|
+
OPERATION_RECEIVE_QTY = "operation_receive_qty",
|
|
312
|
+
/**
|
|
313
|
+
* 工序实际产出数量
|
|
314
|
+
*/
|
|
315
|
+
OPERATION_OUTPUT_QTY = "operation_output_qty",
|
|
308
316
|
/**
|
|
309
317
|
* 设备关联(MedPro)
|
|
310
318
|
*/
|
|
@@ -378,7 +386,11 @@ export declare enum FIELD_TYPE {
|
|
|
378
386
|
*/
|
|
379
387
|
OF_INST_NUM = "of_inst_num",
|
|
380
388
|
/**
|
|
381
|
-
*
|
|
389
|
+
* 生产数量
|
|
390
|
+
*/
|
|
391
|
+
PRODUCTION_QTY = "production_qty",
|
|
392
|
+
/**
|
|
393
|
+
* 生产批次号(生产 lot/sn)(追溯)
|
|
382
394
|
*/
|
|
383
395
|
PRODUCTION_CONTAINER = "production_container",
|
|
384
396
|
/**
|
|
@@ -8,6 +8,11 @@ export declare function setValue(value: any, valuePath: string, payload?: {
|
|
|
8
8
|
[valuePath]: any;
|
|
9
9
|
};
|
|
10
10
|
export declare function toBoolean(value: any): boolean | null;
|
|
11
|
+
/** 布尔选项默认别名 */
|
|
12
|
+
export declare const BOOLEAN_TRUE_LABEL = "\u771F";
|
|
13
|
+
export declare const BOOLEAN_FALSE_LABEL = "\u5047";
|
|
14
|
+
/** 别名为空时回退到默认「真 / 假」 */
|
|
15
|
+
export declare function resolveBooleanOptionLabel(label: unknown, value: unknown): string;
|
|
11
16
|
export declare function toFormatValue(fieldType: FIELD_TYPE, value: any): any;
|
|
12
17
|
export declare function toDictValue(field: string, value: any, row: any): any;
|
|
13
18
|
export declare function getSelectOptions(payload: any): {
|
|
@@ -2,6 +2,7 @@ import { CheckTableItemInfosPayload, CheckTableRegionRef } from '../types';
|
|
|
2
2
|
import { ICheckTableConfig } from '../front-config';
|
|
3
3
|
/**
|
|
4
4
|
* 按已扫描的检验表 region 并行解析检验项(有快照用快照,否则请求)。
|
|
5
|
+
* @param instanceId 真实填报实例 id;设计态 / 模拟填报应传空字符串(默认数据源将跳过请求)
|
|
5
6
|
* @returns infosMap / countMap(count 至少为 1,用于占位行)/ 待落库 byTable 快照
|
|
6
7
|
*/
|
|
7
8
|
export declare function fetchCheckItemsForRegions(instanceId: string, regions: CheckTableRegionRef[], checkTableConfig?: ICheckTableConfig): Promise<{
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 生产收料表(MATERIAL_REQUISITION)字段 key
|
|
3
|
+
*/
|
|
4
|
+
export declare const F: {
|
|
5
|
+
/** 物料 */
|
|
6
|
+
readonly product: "product_id_";
|
|
7
|
+
/** 物料名称 */
|
|
8
|
+
readonly productName: "product_id_name_";
|
|
9
|
+
/** 物料编码 */
|
|
10
|
+
readonly productCode: "product_id_code_";
|
|
11
|
+
/** 物料规格 */
|
|
12
|
+
readonly productSpec: "product_id_spec_";
|
|
13
|
+
/** 物料批号 */
|
|
14
|
+
readonly materialNo: "material_no_";
|
|
15
|
+
/** 物料批号 ID */
|
|
16
|
+
readonly materialNoId: "material_no__id_";
|
|
17
|
+
/** 工单 */
|
|
18
|
+
readonly mfgOrder: "mfg_order_id_";
|
|
19
|
+
/** 批次/SN */
|
|
20
|
+
readonly lotSn: "lot_sn_id_";
|
|
21
|
+
/** 唯一码 */
|
|
22
|
+
readonly uniqueCode: "unique_code_";
|
|
23
|
+
/** 收料数量 */
|
|
24
|
+
readonly qtyRequisition: "qty_requisition_";
|
|
25
|
+
/** 数量单位 */
|
|
26
|
+
readonly qtyUom: "qty_uom_id_";
|
|
27
|
+
/** 有效期 */
|
|
28
|
+
readonly validity: "validity_";
|
|
29
|
+
};
|
|
30
|
+
export type MaterialRequisitionFieldKey = (typeof F)[keyof typeof F];
|
|
31
|
+
/** 设计态固定禁用、运行态只读的信息字段 */
|
|
32
|
+
export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
33
|
+
/** 物料清空时需一并清空的字段 */
|
|
34
|
+
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
package/dist/domain/table/business/material/material-requisition/runtime/register-handlers.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -55,6 +55,21 @@ export interface IBomEntry {
|
|
|
55
55
|
operation_sort_num_?: number;
|
|
56
56
|
/** 是否必须上料 */
|
|
57
57
|
force_loading_enabled_?: boolean;
|
|
58
|
+
/** 是否指定物料批次 */
|
|
59
|
+
specified_material_no_enabled_?: boolean;
|
|
60
|
+
/** 指定的物料批次集合 */
|
|
61
|
+
specified_material_entries_?: Array<{
|
|
62
|
+
name_?: string;
|
|
63
|
+
production_identification_id_?: string;
|
|
64
|
+
}>;
|
|
65
|
+
/** 是否禁用条码解析 */
|
|
66
|
+
disable_barcode_parsing_?: boolean;
|
|
67
|
+
/** 条码参数类型 */
|
|
68
|
+
scan_param_type_?: ScanParamType;
|
|
69
|
+
/** 需求数量计算规则 */
|
|
70
|
+
required_qty_calc_rule_?: RequiredQtyCalcRule;
|
|
71
|
+
/** 需求数量按生产数量计算时绑定的生产数量字段 */
|
|
72
|
+
product_qty_field_?: string;
|
|
58
73
|
}
|
|
59
74
|
/** 物料消耗表业务配置 */
|
|
60
75
|
export interface IFormTmplBom {
|
|
@@ -68,6 +83,8 @@ export interface IFormTmplBom {
|
|
|
68
83
|
material_loading_model_enabled_: boolean;
|
|
69
84
|
/** 条码解析规则(旧数据是id,新数据是json对象str) */
|
|
70
85
|
barcode_parsing_rules_id_?: string;
|
|
86
|
+
/** 条码参数配置,不开启条码解析时,用这个配置 */
|
|
87
|
+
barcodeParamType?: string;
|
|
71
88
|
/** 从BOM初始化 */
|
|
72
89
|
bom_init_enabled_?: boolean;
|
|
73
90
|
/** 人为指定物料 */
|
|
@@ -80,6 +97,16 @@ export interface IFormTmplBom {
|
|
|
80
97
|
deleted_?: boolean;
|
|
81
98
|
/** 物料消耗模式, record:记录模式,bom: BOM模式 */
|
|
82
99
|
material_consumption_pattern_?: MaterialConsumptionPatternEnum;
|
|
100
|
+
/** 是否禁用条码解析 */
|
|
101
|
+
disable_barcode_parsing_?: boolean;
|
|
102
|
+
/** 条码参数类型 */
|
|
103
|
+
scan_param_type_?: ScanParamType;
|
|
104
|
+
/** 需求数量计算规则 */
|
|
105
|
+
required_qty_calc_rule_?: RequiredQtyCalcRule;
|
|
106
|
+
/** 需求数量按生产数量计算时绑定的生产数量字段 */
|
|
107
|
+
product_qty_field_?: string;
|
|
108
|
+
/** 物料消耗对象 key */
|
|
109
|
+
object_key_?: string;
|
|
83
110
|
}
|
|
84
111
|
/**
|
|
85
112
|
* 物料消耗表子模型的数据结构
|
|
@@ -99,6 +126,8 @@ export interface IMaterialConsumeData {
|
|
|
99
126
|
qty_required_?: number;
|
|
100
127
|
/** 需求数量单位 */
|
|
101
128
|
qty_required_uom_id_?: string;
|
|
129
|
+
/** 序号 */
|
|
130
|
+
sort_num_?: number;
|
|
102
131
|
/** 数量单位 */
|
|
103
132
|
qty_uom_id_?: string;
|
|
104
133
|
/** 转换后数量 */
|
|
@@ -127,6 +156,8 @@ export interface IMaterialConsumeData {
|
|
|
127
156
|
product_id__lb_?: string;
|
|
128
157
|
/** 扫码未回填 product_id_ 的兜底行标记(记录模式内部瞬态,行生命周期内持久,不向后端提交) */
|
|
129
158
|
_scanFallback?: boolean;
|
|
159
|
+
/** 本次上料汇总数量 */
|
|
160
|
+
qty_consumed_total_?: number;
|
|
130
161
|
}
|
|
131
162
|
/**
|
|
132
163
|
* 条码解析规则配置参数
|
|
@@ -151,3 +182,13 @@ export declare enum MaterialConsumptionPatternEnum {
|
|
|
151
182
|
/** bom模式 */
|
|
152
183
|
BOM = "bom"
|
|
153
184
|
}
|
|
185
|
+
/** 扫码参数类型 */
|
|
186
|
+
export declare enum ScanParamType {
|
|
187
|
+
Lot = "lot",
|
|
188
|
+
UniqueCode = "uniqueCode"
|
|
189
|
+
}
|
|
190
|
+
/** 需求数量计算规则 */
|
|
191
|
+
export declare enum RequiredQtyCalcRule {
|
|
192
|
+
LotQty = "lotQty",
|
|
193
|
+
ProductQty = "productQty"
|
|
194
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}): Promise<void>;
|
|
1
|
+
import { BusinessScanHandler } from '../../../shared/scan-action';
|
|
2
|
+
/**
|
|
3
|
+
* 预处理表:扫码后入行
|
|
4
|
+
* 接口同入库:em_production_identification / biz_production_identification_scan
|
|
5
|
+
*/
|
|
6
|
+
export declare const handlePretreatmentListScan: BusinessScanHandler;
|
|
@@ -24,22 +24,22 @@ export declare const F: {
|
|
|
24
24
|
/** 生产日期 */
|
|
25
25
|
readonly productionDate: "production_date_";
|
|
26
26
|
};
|
|
27
|
-
/**
|
|
28
|
-
export declare const
|
|
27
|
+
/** 设计态输入属性固定禁用、运行态只读:物料名称 / 编码 / 规格 */
|
|
28
|
+
export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
29
29
|
/** 行变更 handler:生产批次号清空时的字段集 */
|
|
30
|
-
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "
|
|
30
|
+
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
31
31
|
/** 行变更 handler:生产批次号切换时的字段集 */
|
|
32
32
|
export declare const CLEAR_ON_PROD_CONTAINER_SWITCH: ("material_container_no_" | "mfg_order_id_")[];
|
|
33
33
|
/** 行变更 handler:工单清空时的字段集 */
|
|
34
|
-
export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "
|
|
34
|
+
export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
35
35
|
/** 行变更 handler:工单切换时的字段集 */
|
|
36
|
-
export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("
|
|
36
|
+
export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("production_container_id_" | "material_container_no_")[];
|
|
37
37
|
/** 行变更 handler:物料批次号清空时的字段集 */
|
|
38
|
-
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY: ("product_id_" | "
|
|
38
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY: ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
39
39
|
/** 行变更 handler:物料批次号切换时的字段集 */
|
|
40
40
|
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH: readonly ["mfg_order_id_", "production_container_id_"];
|
|
41
41
|
/** 行变更 handler:物料批次号手动输入(无 companion id)切换时需额外清空的字段 */
|
|
42
|
-
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH: readonly ("product_id_" | "
|
|
42
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH: readonly ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
43
43
|
export declare const MATERIAL_CONTAINER_ID: string;
|
|
44
44
|
/** 相关字段变更时需重算物料禁用态 */
|
|
45
45
|
export declare const PRODUCT_EDITABILITY_WATCH: readonly ["material_container_no_", string, "mfg_order_id_", "production_container_id_"];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IRuleParseData } from '../../../../runtime/canvas/table/render/label-parse-rule/type';
|
|
2
|
+
import { BizServiceApiDef } from '../../types';
|
|
3
|
+
export declare const PRODUCTION_IDENTIFICATION_SCAN_NOT_FOUND_MSG = "\u626B\u63CF\u7684\u7269\u6599\u4E0D\u5B58\u5728";
|
|
4
|
+
export declare const PRODUCTION_IDENTIFICATION_SCAN_LOT_OR_UNIQUE_REQUIRED_MSG = "\u6761\u7801\u4E2D\u672A\u89E3\u6790\u5230\u7269\u6599\u6279\u53F7\u6216\u552F\u4E00\u7801";
|
|
5
|
+
export declare const PRODUCTION_IDENTIFICATION_SCAN_API: BizServiceApiDef;
|
|
6
|
+
/** 物料批号、唯一码至少有一个非空 */
|
|
7
|
+
export declare function hasProductionIdentificationScanKey(parsed: IRuleParseData): boolean;
|
|
8
|
+
/** 条码解析结果 → 扫码接口入参(字段名与后端约定一致,含 vaildate_ 拼写) */
|
|
9
|
+
export declare function buildProductionIdentificationScanBody(parsed: IRuleParseData): Record<string, unknown>;
|
|
10
|
+
/** 调用生产标识扫码匹配接口,返回 0/1/N 条候选 */
|
|
11
|
+
export declare function matchProductionIdentificationScanRecords(parsed: IRuleParseData): Promise<Record<string, unknown>[]>;
|
|
12
|
+
/** 多条候选 → 公共多选弹框 */
|
|
13
|
+
export declare function pickProductionIdentificationScanRecord(records: Record<string, unknown>[]): Promise<Record<string, unknown> | undefined>;
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
+
import { Doc, SubRenderer } from '../../../../core';
|
|
1
2
|
import { ParseRuleProps } from '../material/types';
|
|
2
|
-
|
|
3
|
+
/** 扫码数量调整方向(盘点加减实盘等可复用) */
|
|
4
|
+
export type ScanAdjustType = 'add' | 'minus';
|
|
5
|
+
/** CommonScanModal 回传(可另带 barcode/type) */
|
|
6
|
+
export type ScanModalInput = {
|
|
7
|
+
str?: string;
|
|
8
|
+
parsedValue?: unknown;
|
|
9
|
+
transformedData?: unknown;
|
|
10
|
+
barcode?: string;
|
|
11
|
+
type?: ScanAdjustType | string;
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
export type BusinessScanContext = {
|
|
15
|
+
doc: Doc;
|
|
16
|
+
subRenderer: SubRenderer;
|
|
17
|
+
subFieldKey: string;
|
|
18
|
+
subModelKey?: string;
|
|
19
|
+
};
|
|
20
|
+
export type BusinessScanHandler = (ctx: BusinessScanContext, input: ScanModalInput) => void | Promise<void>;
|
|
21
|
+
/** 取 CommonScanModal.parsedValue(条码解析结果) */
|
|
22
|
+
export declare function resolveScanParsedValue<T extends Record<string, unknown> = Record<string, unknown>>(input: ScanModalInput): T | undefined;
|
|
23
|
+
/** 取 CommonScanModal.transformedData(字段映射结果) */
|
|
24
|
+
export declare function resolveScanFillData(input: ScanModalInput): Record<string, unknown>;
|
|
25
|
+
/** 取扫码数量调整方向,默认 add */
|
|
26
|
+
export declare function resolveScanAdjustType(input: ScanModalInput): ScanAdjustType;
|
|
3
27
|
/** 将 widget 上的条码解析规则 id 字符串转为配置对象 */
|
|
4
28
|
export declare function toParseRuleConfig(value?: string): ParseRuleProps | undefined;
|
|
5
|
-
export interface ScanRuleInfo {
|
|
6
|
-
rules_?: string;
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export interface OpenScanWithParseRuleOptions {
|
|
10
|
-
regionId: string;
|
|
11
|
-
barcodeParsingRulesId?: string;
|
|
12
|
-
modalEvent: TriggerName;
|
|
13
|
-
title?: string;
|
|
14
|
-
onScan: (input: {
|
|
15
|
-
str: string;
|
|
16
|
-
}, ctx: {
|
|
17
|
-
parseRuleProps: ParseRuleProps;
|
|
18
|
-
scanRuleInfo: ScanRuleInfo;
|
|
19
|
-
}) => void | Promise<void>;
|
|
20
|
-
}
|
|
21
29
|
/**
|
|
22
|
-
*
|
|
23
|
-
* 业务侧只实现 onScan
|
|
30
|
+
* 业务子表统一扫码入口:同一个 CommonScanModal,差异只在 onScan 业务处理
|
|
24
31
|
*/
|
|
25
|
-
export declare function
|
|
32
|
+
export declare function openBusinessTableScan(ctx: BusinessScanContext, onScan: BusinessScanHandler): Promise<void>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}): Promise<void>;
|
|
1
|
+
import { BusinessScanHandler } from '../../../shared/scan-action';
|
|
2
|
+
/**
|
|
3
|
+
* 委托灭菌生产批次表:扫码后入行
|
|
4
|
+
* 接口同入库:em_production_identification / biz_production_identification_scan
|
|
5
|
+
*/
|
|
6
|
+
export declare const handleEntrustSterilBatchListScan: BusinessScanHandler;
|
package/dist/domain/table/business/sterilize/entrust-steril-batch-list/profile/field-keys.d.ts
CHANGED
|
@@ -22,7 +22,5 @@ export declare const F: {
|
|
|
22
22
|
/** 生产日期 */
|
|
23
23
|
readonly productionDate: "production_date_";
|
|
24
24
|
};
|
|
25
|
-
/** remoteSync 成功回写的基础字段 */
|
|
26
|
-
export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "mfg_order_code_", "mfg_order_id_"];
|
|
27
25
|
/** 行变更 handler:生产批次号清空时的字段集 */
|
|
28
26
|
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "qty_", "mfg_order_code_", "mfg_order_id_", "production_date_"];
|