@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,14 +1,17 @@
|
|
|
1
1
|
import { Option } from '../../../../../interface/fetchers';
|
|
2
|
+
import { IDisplayField } from '../../../../../../suites/shared/panel/config/editor/display-fields-editor';
|
|
2
3
|
/**
|
|
3
4
|
* 单位格式化函数
|
|
4
5
|
*/
|
|
5
6
|
export declare function uomFormatter({ cellValue, row, column }: any): string;
|
|
6
|
-
export declare function getColumns(key: string, isTree?: boolean): any;
|
|
7
|
+
export declare function getColumns(key: string, displayFields: IDisplayField[], isTree?: boolean): any;
|
|
7
8
|
/**
|
|
8
9
|
* 列格式化函数
|
|
9
10
|
* 根据列配置和行数据返回格式化后的值
|
|
10
11
|
*/
|
|
11
12
|
export declare function renderWithFormatter(column?: any, row?: any): any;
|
|
13
|
+
/** LOT/SN 下拉项的展示名称;related_child 对外展示父批次名称。 */
|
|
14
|
+
export declare function getLotDisplayLabel(item: any): string;
|
|
12
15
|
/**
|
|
13
16
|
* 树形数据转换
|
|
14
17
|
* 用于 RDO 场景,将平层数据转换为树形结构
|
|
@@ -34,7 +37,7 @@ export declare function transformTreeData(options?: any[], currentValue?: string
|
|
|
34
37
|
* 用于批次/表格数据场景,将原始数据转换为表格行数据
|
|
35
38
|
*
|
|
36
39
|
* @param options - 原始选项数据
|
|
37
|
-
* @param currentValue -
|
|
40
|
+
* @param currentValue - 当前选中的值(普通批次为 name,生产批次为 id)
|
|
38
41
|
* @param currentId - companion `_id_`;有值时优先按 id 高亮,老数据无 id 时回退 name
|
|
39
42
|
* @returns 转换后的数据和高亮索引
|
|
40
43
|
*
|
|
@@ -43,7 +46,7 @@ export declare function transformTreeData(options?: any[], currentValue?: string
|
|
|
43
46
|
* const { data, highlightIdx } = transformLotData(options, 'lot-123', 'id-xxx');
|
|
44
47
|
* ```
|
|
45
48
|
*/
|
|
46
|
-
export declare function transformLotData(options?: Option[], currentValue?: string | string[], currentId?: string): {
|
|
49
|
+
export declare function transformLotData(options?: Option[], currentValue?: string | string[], currentId?: string, displayRelatedParent?: boolean): {
|
|
47
50
|
data: any[];
|
|
48
51
|
highlightIdx: {
|
|
49
52
|
index: number[];
|
package/dist/runtime/renderer/dropdowns/components/tables/component/device-type-select.vue.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ type __VLS_Props = {
|
|
|
2
2
|
modelValue?: string;
|
|
3
3
|
};
|
|
4
4
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
-
change: (value?: string | undefined) => any;
|
|
6
5
|
"update:modelValue": (value?: string | undefined) => any;
|
|
6
|
+
change: (value?: string | undefined) => any;
|
|
7
7
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
-
onChange?: ((value?: string | undefined) => any) | undefined;
|
|
9
8
|
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
9
|
+
onChange?: ((value?: string | undefined) => any) | undefined;
|
|
10
10
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
11
|
export default _default;
|
|
@@ -21,4 +21,5 @@ export declare function useTableDropdown(props: any, searchFilters?: MaybeRef<Ta
|
|
|
21
21
|
isDeviceField: import('vue').ComputedRef<boolean>;
|
|
22
22
|
selectedId: import('vue').ComputedRef<string | undefined>;
|
|
23
23
|
persistOptionId: import('vue').ComputedRef<boolean>;
|
|
24
|
+
persistOptionIdPath: import('vue').ComputedRef<string | undefined>;
|
|
24
25
|
};
|
|
@@ -50,10 +50,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
50
50
|
readonly onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
51
51
|
readonly onSearch?: ((value: string | number) => any) | undefined;
|
|
52
52
|
readonly onClear?: (() => any) | undefined;
|
|
53
|
-
readonly
|
|
53
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
54
54
|
readonly onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
55
55
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
56
|
-
readonly
|
|
56
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
57
57
|
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
58
58
|
readonly onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
59
59
|
readonly onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -73,16 +73,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
73
73
|
$root: import('vue').ComponentPublicInstance | null;
|
|
74
74
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
75
75
|
$host: Element | null;
|
|
76
|
-
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "clear") => void) & ((event: "
|
|
76
|
+
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "pressEnter", event: KeyboardEvent) => void);
|
|
77
77
|
$el: HTMLDivElement;
|
|
78
78
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
79
79
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
80
80
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
81
81
|
onClear?: (() => any) | undefined;
|
|
82
|
-
|
|
82
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
83
83
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
84
84
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
85
|
-
|
|
85
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
86
86
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
87
87
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
88
88
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -96,10 +96,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
96
96
|
input: (value: string | number, event: Event) => any;
|
|
97
97
|
search: (value: string | number) => any;
|
|
98
98
|
clear: () => any;
|
|
99
|
-
|
|
99
|
+
"update:modelValue": (value: string | number) => any;
|
|
100
100
|
change: (value: string | number, event: Event) => any;
|
|
101
101
|
blur: (event: FocusEvent) => any;
|
|
102
|
-
|
|
102
|
+
focus: (event: FocusEvent) => any;
|
|
103
103
|
keydown: (event: KeyboardEvent) => any;
|
|
104
104
|
keypress: (event: KeyboardEvent) => any;
|
|
105
105
|
keyup: (event: KeyboardEvent) => any;
|
|
@@ -112,9 +112,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
112
112
|
disabled: boolean;
|
|
113
113
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
114
114
|
placeholder: string;
|
|
115
|
-
suffix: string;
|
|
116
115
|
modelValue: string | number;
|
|
117
116
|
prefix: string;
|
|
117
|
+
suffix: string;
|
|
118
118
|
addonBefore: string;
|
|
119
119
|
addonAfter: string;
|
|
120
120
|
allowClear: boolean;
|
|
@@ -156,9 +156,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
156
156
|
disabled: boolean;
|
|
157
157
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
158
158
|
placeholder: string;
|
|
159
|
-
suffix: string;
|
|
160
159
|
modelValue: string | number;
|
|
161
160
|
prefix: string;
|
|
161
|
+
suffix: string;
|
|
162
162
|
addonBefore: string;
|
|
163
163
|
addonAfter: string;
|
|
164
164
|
allowClear: boolean;
|
|
@@ -176,15 +176,15 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
176
176
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
177
177
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
178
178
|
onClear?: (() => any) | undefined;
|
|
179
|
-
|
|
179
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
180
180
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
181
181
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
182
|
-
|
|
182
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
183
183
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
184
184
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
185
185
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
186
186
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
187
|
-
}>, "select" | "
|
|
187
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("type" | "id" | "name" | "readonly" | "disabled" | "size" | "placeholder" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
188
188
|
focus: () => void;
|
|
189
189
|
blur: () => void;
|
|
190
190
|
select: () => void;
|
|
@@ -10,6 +10,8 @@ export interface SelectQueryContext {
|
|
|
10
10
|
searchField?: string[];
|
|
11
11
|
/** 设备类型 id(设备下拉筛选) */
|
|
12
12
|
deviceTypeId?: string;
|
|
13
|
+
/** 设备组 id(设计态级联过滤) */
|
|
14
|
+
deviceGroupId?: string;
|
|
13
15
|
/** 目前用于 子表字段(带[n]) 额外参数配置 */
|
|
14
16
|
extraParams: any;
|
|
15
17
|
optionMapping?: {
|
|
@@ -34,8 +36,17 @@ export interface SelectStrategy {
|
|
|
34
36
|
allowManualInput?: boolean;
|
|
35
37
|
/** 下拉选中时同步写入 companion `_id_`(批次字段) */
|
|
36
38
|
persistOptionId?: boolean;
|
|
39
|
+
/** 是否将 related_child 的展示名称切换为父批次名称 */
|
|
40
|
+
displayRelatedParent?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 将 option `id_` 写入行内指定字段(如 `inventory_id_`),用于多库存行唯一回显
|
|
43
|
+
* @see SelectSourceDef.optionIdField
|
|
44
|
+
*/
|
|
45
|
+
optionIdField?: string;
|
|
46
|
+
/** biz 请求体与 pageNo/pageSize 平铺,不走 query/exp(由 searchStyle === 'param' 推导) */
|
|
47
|
+
flatRequestBody?: boolean;
|
|
37
48
|
buildQuery?: (ctx: SelectQueryContext) => SelectQueryResult;
|
|
38
|
-
transform: (options: any[], value?: string, currentId?: string) => any;
|
|
49
|
+
transform: (options: any[], value?: string, currentId?: string, displayRelatedParent?: boolean) => any;
|
|
39
50
|
/** 如下拉 value/label 与 fetcher 默认不同 */
|
|
40
51
|
optionMapping?: {
|
|
41
52
|
value?: string;
|
|
@@ -45,10 +45,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
45
45
|
readonly onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
46
46
|
readonly onSearch?: ((value: string | number) => any) | undefined;
|
|
47
47
|
readonly onClear?: (() => any) | undefined;
|
|
48
|
-
readonly
|
|
48
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
49
49
|
readonly onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
50
50
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
51
|
-
readonly
|
|
51
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
52
52
|
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
53
53
|
readonly onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
54
54
|
readonly onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -68,16 +68,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
68
68
|
$root: import('vue').ComponentPublicInstance | null;
|
|
69
69
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
70
70
|
$host: Element | null;
|
|
71
|
-
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "clear") => void) & ((event: "
|
|
71
|
+
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "pressEnter", event: KeyboardEvent) => void);
|
|
72
72
|
$el: HTMLDivElement;
|
|
73
73
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
74
74
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
75
75
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
76
76
|
onClear?: (() => any) | undefined;
|
|
77
|
-
|
|
77
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
78
78
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
79
79
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
80
|
-
|
|
80
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
81
81
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
82
82
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
83
83
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -91,10 +91,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
91
91
|
input: (value: string | number, event: Event) => any;
|
|
92
92
|
search: (value: string | number) => any;
|
|
93
93
|
clear: () => any;
|
|
94
|
-
|
|
94
|
+
"update:modelValue": (value: string | number) => any;
|
|
95
95
|
change: (value: string | number, event: Event) => any;
|
|
96
96
|
blur: (event: FocusEvent) => any;
|
|
97
|
-
|
|
97
|
+
focus: (event: FocusEvent) => any;
|
|
98
98
|
keydown: (event: KeyboardEvent) => any;
|
|
99
99
|
keypress: (event: KeyboardEvent) => any;
|
|
100
100
|
keyup: (event: KeyboardEvent) => any;
|
|
@@ -107,9 +107,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
107
107
|
disabled: boolean;
|
|
108
108
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
109
109
|
placeholder: string;
|
|
110
|
-
suffix: string;
|
|
111
110
|
modelValue: string | number;
|
|
112
111
|
prefix: string;
|
|
112
|
+
suffix: string;
|
|
113
113
|
addonBefore: string;
|
|
114
114
|
addonAfter: string;
|
|
115
115
|
allowClear: boolean;
|
|
@@ -151,9 +151,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
151
151
|
disabled: boolean;
|
|
152
152
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
153
153
|
placeholder: string;
|
|
154
|
-
suffix: string;
|
|
155
154
|
modelValue: string | number;
|
|
156
155
|
prefix: string;
|
|
156
|
+
suffix: string;
|
|
157
157
|
addonBefore: string;
|
|
158
158
|
addonAfter: string;
|
|
159
159
|
allowClear: boolean;
|
|
@@ -171,15 +171,15 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
171
171
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
172
172
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
173
173
|
onClear?: (() => any) | undefined;
|
|
174
|
-
|
|
174
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
175
175
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
176
176
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
177
|
-
|
|
177
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
178
178
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
179
179
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
180
180
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
181
181
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
182
|
-
}>, "select" | "
|
|
182
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("type" | "id" | "name" | "readonly" | "disabled" | "size" | "placeholder" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
183
183
|
focus: () => void;
|
|
184
184
|
blur: () => void;
|
|
185
185
|
select: () => void;
|
|
@@ -5,8 +5,8 @@ type AssocFilterWidgetProps = {
|
|
|
5
5
|
assocFilterSourceFieldType?: string;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* 未开启 / 源值为空 → {};不清空已选物料。
|
|
8
|
+
* 按物料「关联过滤」配置,回查源字段同源接口拿到 product_id_ 再拼查询参数。
|
|
9
|
+
* 未开启 / 源值为空 / 解析不到产品 → {};不清空已选物料。
|
|
10
10
|
*/
|
|
11
|
-
export declare function buildAssocFilterExtraParams(doc: Doc, widgetProps: AssocFilterWidgetProps | undefined, runtimeValuePath?: string): Record<string, any
|
|
11
|
+
export declare function buildAssocFilterExtraParams(doc: Doc, widgetProps: AssocFilterWidgetProps | undefined, runtimeValuePath?: string): Promise<Record<string, any>>;
|
|
12
12
|
export {};
|
|
@@ -47,10 +47,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
47
47
|
readonly onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
48
48
|
readonly onSearch?: ((value: string | number) => any) | undefined;
|
|
49
49
|
readonly onClear?: (() => any) | undefined;
|
|
50
|
-
readonly
|
|
50
|
+
readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
51
51
|
readonly onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
52
52
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
53
|
-
readonly
|
|
53
|
+
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
54
54
|
readonly onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
55
55
|
readonly onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
56
56
|
readonly onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -70,16 +70,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
70
70
|
$root: import('vue').ComponentPublicInstance | null;
|
|
71
71
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
72
72
|
$host: Element | null;
|
|
73
|
-
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "clear") => void) & ((event: "
|
|
73
|
+
$emit: ((event: "input", value: string | number, event: Event) => void) & ((event: "search", value: string | number) => void) & ((event: "clear") => void) & ((event: "update:modelValue", value: string | number) => void) & ((event: "change", value: string | number, event: Event) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "keydown", event: KeyboardEvent) => void) & ((event: "keypress", event: KeyboardEvent) => void) & ((event: "keyup", event: KeyboardEvent) => void) & ((event: "pressEnter", event: KeyboardEvent) => void);
|
|
74
74
|
$el: HTMLDivElement;
|
|
75
75
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../../base/input/src/types').GctInputProps> & Readonly<{
|
|
76
76
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
77
77
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
78
78
|
onClear?: (() => any) | undefined;
|
|
79
|
-
|
|
79
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
80
80
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
81
81
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
82
|
-
|
|
82
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
83
83
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
84
84
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
85
85
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -93,10 +93,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
93
93
|
input: (value: string | number, event: Event) => any;
|
|
94
94
|
search: (value: string | number) => any;
|
|
95
95
|
clear: () => any;
|
|
96
|
-
|
|
96
|
+
"update:modelValue": (value: string | number) => any;
|
|
97
97
|
change: (value: string | number, event: Event) => any;
|
|
98
98
|
blur: (event: FocusEvent) => any;
|
|
99
|
-
|
|
99
|
+
focus: (event: FocusEvent) => any;
|
|
100
100
|
keydown: (event: KeyboardEvent) => any;
|
|
101
101
|
keypress: (event: KeyboardEvent) => any;
|
|
102
102
|
keyup: (event: KeyboardEvent) => any;
|
|
@@ -109,9 +109,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
109
109
|
disabled: boolean;
|
|
110
110
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
111
111
|
placeholder: string;
|
|
112
|
-
suffix: string;
|
|
113
112
|
modelValue: string | number;
|
|
114
113
|
prefix: string;
|
|
114
|
+
suffix: string;
|
|
115
115
|
addonBefore: string;
|
|
116
116
|
addonAfter: string;
|
|
117
117
|
allowClear: boolean;
|
|
@@ -153,9 +153,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
153
153
|
disabled: boolean;
|
|
154
154
|
size: import('../../../../../base/input/src/types').InputSize;
|
|
155
155
|
placeholder: string;
|
|
156
|
-
suffix: string;
|
|
157
156
|
modelValue: string | number;
|
|
158
157
|
prefix: string;
|
|
158
|
+
suffix: string;
|
|
159
159
|
addonBefore: string;
|
|
160
160
|
addonAfter: string;
|
|
161
161
|
allowClear: boolean;
|
|
@@ -173,15 +173,15 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
173
173
|
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
174
174
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
175
175
|
onClear?: (() => any) | undefined;
|
|
176
|
-
|
|
176
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
177
177
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
178
178
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
179
|
-
|
|
179
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
180
180
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
181
181
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
182
182
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
183
183
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
184
|
-
}>, "select" | "
|
|
184
|
+
}>, "select" | "blur" | "focus" | "inputRef" | ("type" | "id" | "name" | "readonly" | "disabled" | "size" | "placeholder" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
|
|
185
185
|
focus: () => void;
|
|
186
186
|
blur: () => void;
|
|
187
187
|
select: () => void;
|
|
@@ -33,8 +33,10 @@ export interface IDocPayload extends IDocTemplatePayload, IDocInstancePayload {
|
|
|
33
33
|
deviceConfig?: IDeviceConfig;
|
|
34
34
|
/** 是否是模拟填报 */
|
|
35
35
|
isMockReport: boolean;
|
|
36
|
-
/**
|
|
36
|
+
/** 是否是预览模式(隐藏设计器壳);与 refer 互斥 */
|
|
37
37
|
isPreview: boolean;
|
|
38
|
+
/** 设计器引用只读态(仅保留属性 panel);与 isPreview 互斥 */
|
|
39
|
+
isRefer?: boolean;
|
|
38
40
|
ctx: DesignSuiteContext;
|
|
39
41
|
/**
|
|
40
42
|
* 文档接口请求成功且引擎挂载完成后的回调(每轮成功加载触发一次)。
|
|
@@ -256,8 +256,13 @@ export interface UseWordOptions {
|
|
|
256
256
|
modelKey: string;
|
|
257
257
|
/** 套件 key(默认 'edhr') */
|
|
258
258
|
suiteKey?: string;
|
|
259
|
-
/**
|
|
259
|
+
/** 是否预览模式(隐藏 ribbon / toolkit / panel);与 isRefer 互斥 */
|
|
260
260
|
isPreview?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* 设计器引用只读态;与 isPreview 互斥。
|
|
263
|
+
* 仅保留右侧属性 panel,禁止修改文档与配置。
|
|
264
|
+
*/
|
|
265
|
+
isRefer?: boolean;
|
|
261
266
|
/** 是否模拟填报 */
|
|
262
267
|
isMockReport?: boolean;
|
|
263
268
|
/** 是否详情页(强制只读) */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type FieldRenderColors = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
color: string;
|
|
3
|
+
background: string;
|
|
4
|
+
/** 超链接下划线颜色(文字颜色可能被校验色覆盖) */
|
|
5
|
+
underlineColor?: string;
|
|
5
6
|
};
|
|
6
7
|
/**
|
|
7
8
|
* 统一字段画布配色:校验异常红 + 打印 / 禁用 / 只读 / 可编辑
|
|
@@ -13,8 +14,9 @@ export declare function resolveFieldRenderColors(input: {
|
|
|
13
14
|
readonly: boolean;
|
|
14
15
|
/** placeholder 空值必填提示色 */
|
|
15
16
|
required?: boolean;
|
|
16
|
-
active: boolean;
|
|
17
17
|
/** 有值文本在打印/只读时使用的字色 */
|
|
18
18
|
textColor?: string;
|
|
19
19
|
variant: 'text' | 'placeholder';
|
|
20
|
+
/** 是否按超链接展示。超链接文字无校验时使用链接蓝色。 */
|
|
21
|
+
hyperlink?: boolean;
|
|
20
22
|
}): FieldRenderColors;
|
|
@@ -4,7 +4,7 @@ import { FieldNodeRenderers } from '../../../../../core/widget';
|
|
|
4
4
|
export declare const commonDefaultRenderers: FieldNodeRenderers;
|
|
5
5
|
export declare const commonDefaultProps: {
|
|
6
6
|
readonly viewState: string;
|
|
7
|
-
readonly emptySymbol:
|
|
7
|
+
readonly emptySymbol: undefined;
|
|
8
8
|
readonly required: true;
|
|
9
9
|
readonly disabled: false;
|
|
10
10
|
readonly fieldDisabled: false;
|
|
@@ -79,6 +79,11 @@ export declare const styleSizeDefaultProps: {
|
|
|
79
79
|
/** 组件默认高度 */
|
|
80
80
|
readonly height: 68;
|
|
81
81
|
};
|
|
82
|
+
/** 签名/报工人等:与无图兜底画布同比例(≈1.76:1),默认略放大便于阅读 */
|
|
83
|
+
export declare const signStyleSizeDefaultProps: {
|
|
84
|
+
readonly width: 180;
|
|
85
|
+
readonly height: 102;
|
|
86
|
+
};
|
|
82
87
|
export declare const labelPriorityConfig: PriorityRule;
|
|
83
88
|
export declare const labelResolveDateConfig: ResolveRule;
|
|
84
89
|
export declare const labelResolveUserConfig: ResolveRule;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { FormInstBomResponse } from '@gct-paas/api/apaas';
|
|
2
|
+
/** 物料消耗对象字段信息 */
|
|
3
|
+
export interface IMaterialConsumeObjectInfo {
|
|
4
|
+
/** 对象字段key */
|
|
5
|
+
objectField: string;
|
|
6
|
+
/** 对象字段名称(仅用于展示) */
|
|
7
|
+
objectFieldName?: string;
|
|
8
|
+
/** 子表字段key */
|
|
9
|
+
subFields?: Record<string, {
|
|
10
|
+
used: boolean;
|
|
11
|
+
key: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
/** 物料消耗对象中参与提交数量校验的上料数量字段。 */
|
|
16
|
+
export declare function getObjectBomQtyFieldKeys(objectFieldList?: IMaterialConsumeObjectInfo[]): string[];
|
|
17
|
+
/**
|
|
18
|
+
* 物料消耗对象扫码:按对象 BOM 配置校验扫码物料是否允许
|
|
19
|
+
* - 无 belongingObject / 无配置:跳过
|
|
20
|
+
* - personal_bom_enabled_:人为指定物料,直接通过
|
|
21
|
+
* - 否则用实例 bomEntries 校验(仅主料;开启替代料时才含替代料)
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateObjectBomForScan(opts: {
|
|
24
|
+
formInstBom?: FormInstBomResponse | null;
|
|
25
|
+
belongingObject?: string;
|
|
26
|
+
productId?: string;
|
|
27
|
+
}): void;
|
|
28
|
+
/**
|
|
29
|
+
* 物料消耗对象物料批下拉:未开人为指定时,限制为 BOM 主料 + 已开替代料的替代料
|
|
30
|
+
* - 无需过滤时返回 null(无 belongingObject / 无配置 / 人为指定)
|
|
31
|
+
* - 无候选时用占位 id,避免空数组被后端当成不筛选
|
|
32
|
+
*/
|
|
33
|
+
export declare function getObjectBomMaterialLotQuery(opts: {
|
|
34
|
+
formInstBom?: FormInstBomResponse | null;
|
|
35
|
+
belongingObject?: string;
|
|
36
|
+
}): {
|
|
37
|
+
'product_id_.versionIn': string[];
|
|
38
|
+
} | null;
|
|
39
|
+
/**
|
|
40
|
+
* 表单提交:校验所有物料消耗对象的数量 vs 需求数量
|
|
41
|
+
* - 开了数量校验且需求数量有值才校验
|
|
42
|
+
* - 人为指定:用 objectBom.entries_[0];否则用 bomEntries 中与对象物料匹配的明细
|
|
43
|
+
* - 失败返回与物料消耗表 submitValidate 同类的 field/message 结构
|
|
44
|
+
*/
|
|
45
|
+
export declare function validateObjectBomQtyOnSubmit(opts: {
|
|
46
|
+
formState: Record<string, any>;
|
|
47
|
+
objectFieldList?: IMaterialConsumeObjectInfo[];
|
|
48
|
+
formInstBom?: FormInstBomResponse | null;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
field: string;
|
|
51
|
+
message: string;
|
|
52
|
+
} | null>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComputedRef, MaybeRef } from 'vue';
|
|
2
|
+
import { FormTmplBomController } from '../../../../../runtime/canvas/table/render/material-consume';
|
|
3
|
+
import { FormInstBomResponse } from '@gct-paas/api/apaas';
|
|
4
|
+
/**
|
|
5
|
+
* 当前页 FormTmplBomController 的 provide / inject
|
|
6
|
+
* - document-paper 中 provide 当前页控制器
|
|
7
|
+
* - 主模型字段等通过 injectController / injectFormInstBom 读取
|
|
8
|
+
*/
|
|
9
|
+
export declare function useTmplBom(): {
|
|
10
|
+
provideController: (c: MaybeRef<FormTmplBomController | undefined>) => MaybeRef<FormTmplBomController | undefined>;
|
|
11
|
+
injectController: () => ComputedRef<FormTmplBomController | undefined>;
|
|
12
|
+
injectFormInstBom: () => ComputedRef<FormInstBomResponse | null | undefined>;
|
|
13
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
|
|
3
|
-
onChange: (list: any[]) => void;
|
|
2
|
+
objects: any[];
|
|
4
3
|
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:objects": (...args: any[]) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
"onUpdate:objects"?: ((...args: any[]) => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
objects: any[];
|
|
8
10
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
11
|
export default _default;
|
package/dist/suites/edhr/panel-schema/device-part-consume-table/device-part-consume-table.basic.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const schema: import('../../../..').PanelSchema;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value?: unknown;
|
|
3
|
+
tooltip?: string;
|
|
4
|
+
};
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
icon?(_: {}): any;
|
|
9
|
+
default?(_: {}): any;
|
|
10
|
+
};
|
|
11
|
+
refs: {
|
|
12
|
+
contentRef: HTMLSpanElement;
|
|
13
|
+
};
|
|
14
|
+
rootEl: any;
|
|
15
|
+
};
|
|
16
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
contentRef: HTMLSpanElement;
|
|
19
|
+
}, any>;
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
expanded: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
2
|
+
export default _default;
|
|
@@ -5,6 +5,12 @@ export declare function registryPanelSchemas(): {
|
|
|
5
5
|
render: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
6
6
|
};
|
|
7
7
|
'dynamic-table.basic': import('../../..').PanelSchema;
|
|
8
|
+
'warehouse-in-table.basic': import('../../..').PanelSchema;
|
|
9
|
+
'warehouse-inbound-table.basic': import('../../..').PanelSchema;
|
|
10
|
+
'warehouse-out-table.basic': import('../../..').PanelSchema;
|
|
11
|
+
'warehouse-outbound-table.basic': import('../../..').PanelSchema;
|
|
12
|
+
'part-stocktake-table.basic': import('../../..').PanelSchema;
|
|
13
|
+
'device-part-consume-table.basic': import('../../..').PanelSchema;
|
|
8
14
|
'warehouse-in-out-table.basic': import('../../..').PanelSchema;
|
|
9
15
|
'warehouse-inventory-table.basic': import('../../..').PanelSchema;
|
|
10
16
|
'warehouse-allocate-table.basic': import('../../..').PanelSchema;
|
|
@@ -13,6 +19,7 @@ export declare function registryPanelSchemas(): {
|
|
|
13
19
|
'2d-table.basic': import('../../..').PanelSchema;
|
|
14
20
|
'material-consume-table.basic': import('../../..').PanelSchema;
|
|
15
21
|
'material-balance-table.basic': import('../../..').PanelSchema;
|
|
22
|
+
'material-requisition-table.basic': import('../../..').PanelSchema;
|
|
16
23
|
'fixed-table.basic': import('../../..').PanelSchema;
|
|
17
24
|
'check-table.basic': import('../../..').PanelSchema;
|
|
18
25
|
'data-group.basic': {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const schema: import('../../../..').PanelSchema;
|