@gct-paas/word 0.2.41 → 0.2.42

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.
Files changed (50) hide show
  1. package/dist/base/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
  2. package/dist/base/checkbox/src/checkbox-group.vue.d.ts +1 -1
  3. package/dist/base/date-time-picker/src/DateTimePicker.vue.d.ts +1 -1
  4. package/dist/base/form-item/src/form-item.vue.d.ts +1 -1
  5. package/dist/base/icon/src/icon.vue.d.ts +1 -1
  6. package/dist/base/index.d.ts +1 -0
  7. package/dist/base/input/src/input.vue.d.ts +3 -3
  8. package/dist/base/input/src/text-area.vue.d.ts +1 -1
  9. package/dist/base/radio/src/radio-group.vue.d.ts +1 -1
  10. package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
  11. package/dist/base/select/src/basic-select.vue.d.ts +1 -1
  12. package/dist/base/select/src/searchable-select.vue.d.ts +1 -1
  13. package/dist/base/switch/src/switch.vue.d.ts +1 -1
  14. package/dist/base/table/src/table.vue.d.ts +1 -1
  15. package/dist/base/time-picker/index.d.ts +1 -0
  16. package/dist/base/time-picker/src/TimePicker.vue.d.ts +29 -0
  17. package/dist/core/data/DataManager.d.ts +2 -1
  18. package/dist/core/data/enrichers/received-qty-enricher.d.ts +4 -0
  19. package/dist/domain/field/field-type.d.ts +4 -0
  20. package/dist/domain/table/business/material/material-consume/profile/product-fields.d.ts +6 -0
  21. package/dist/domain/table/design/hooks/on-field-attach.d.ts +3 -0
  22. package/dist/index.es.js +3050 -2537
  23. package/dist/runtime/_register_/runtime/SuiteRuntime.d.ts +4 -0
  24. package/dist/runtime/canvas/table/render/material-consume/initial-product-autofill.d.ts +6 -0
  25. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +11 -7
  26. package/dist/runtime/canvas/table/render/material-consume/product-autofill.d.ts +7 -0
  27. package/dist/runtime/canvas/table/render/material-consume/product-source.d.ts +4 -0
  28. package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +7 -2
  29. package/dist/runtime/designer/toolkit/renderer/add-field-btn.vue.d.ts +8 -0
  30. package/dist/runtime/designer/toolkit/renderer/toolkit-content-fields.vue.d.ts +3 -1
  31. package/dist/runtime/designer/toolkit/toolkit-item.vue.d.ts +3 -16
  32. package/dist/runtime/designer/toolkit/toolkit.vue.d.ts +16 -16
  33. package/dist/runtime/factories/createDesignWidgetFactory.d.ts +2 -0
  34. package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +7 -7
  35. package/dist/runtime/renderer/dialogs/signature/card-signer.vue.d.ts +2 -2
  36. package/dist/runtime/renderer/dropdowns/components/option-dropdown.vue.d.ts +7 -7
  37. package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +7 -7
  38. package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +7 -7
  39. package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +7 -7
  40. package/dist/runtime/renderer/dropdowns/components/tree/tree-dropdown.vue.d.ts +7 -7
  41. package/dist/sdk/index.d.ts +1 -0
  42. package/dist/suites/edhr/manifest/field/business/quantity-received-qty-manifest.d.ts +3 -0
  43. package/dist/suites/edhr/panel-schema/data-init/material-consume-object/linkage.d.ts +7 -0
  44. package/dist/suites/edhr/panel-schema/rule/components/field-map-row.vue.d.ts +1 -1
  45. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +2 -0
  46. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/field-tree-select.vue.d.ts +1 -1
  47. package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
  48. package/dist/utils/func/base-formula-functions.d.ts +8 -0
  49. package/dist/word.css +221 -133
  50. package/package.json +1 -1
@@ -10,6 +10,7 @@ import { FieldModelQuery } from '../../../sdk/types/field-model-query';
10
10
  /** 套件唯一运行期入口 */
11
11
  export declare class SuiteRuntime implements FieldModelQuery {
12
12
  readonly suiteKey: SuiteKey;
13
+ private readonly fieldsUpdatedListeners;
13
14
  readonly fieldService: FieldService;
14
15
  readonly modelService: ModelService;
15
16
  readonly fieldScope: FieldScope;
@@ -36,6 +37,9 @@ export declare class SuiteRuntime implements FieldModelQuery {
36
37
  getMasterSlaveFieldList(modelKey: ModelKey): FieldMeta[];
37
38
  getFieldManifest(type: FIELD_TYPE): import('../../../capabilities/field-manifest').FieldManifest | undefined;
38
39
  reloadFields(modelKey: ModelKey): Promise<import('../../../capabilities/model-field-runtime').FieldListResult>;
40
+ onFieldsUpdated(listener: (modelKey: ModelKey) => void): () => void;
41
+ /** 通知正在使用指定模型的面板,从字段缓存更新列表;不重新请求字段或加载文档。 */
42
+ notifyFieldsUpdated(modelKey: ModelKey): void;
39
43
  reloadModel(modelKey: ModelKey): Promise<[ModelMeta | undefined, import('../../../capabilities/model-field-runtime').FieldListResult]>;
40
44
  dispose(): void;
41
45
  }
@@ -0,0 +1,6 @@
1
+ import { Doc } from '../../../../../core';
2
+ import { IMaterialConsumeData } from '../../../../../domain/table/business/material/types';
3
+ type Updates = Record<string, unknown>;
4
+ /** 初值仅填 undefined,详情或规则错误均不阻断基础行初始化。 */
5
+ export declare function prepareConsumeInitialWrite(doc: Doc, subFieldKey: string, rows: readonly IMaterialConsumeData[]): Promise<Updates>;
6
+ export {};
@@ -169,7 +169,7 @@ export declare class MaterialConsumeTableController {
169
169
  * 未填报时初始化消耗表行数据
170
170
  * @param defaultData 子表行默认值(含工序等)
171
171
  */
172
- initTableData(dataManager: DataManager, subFieldKey: string, defaultData?: Record<string, any>): number[];
172
+ initTableData(doc: Doc, subFieldKey: string, defaultData?: Record<string, any>): Promise<number[]>;
173
173
  /**
174
174
  * 根据数据计算需要禁用的字段
175
175
  * @param row
@@ -338,14 +338,18 @@ export declare class MaterialConsumeTableController {
338
338
  */
339
339
  setDefaultValue(row: IMaterialConsumeData, doc: Doc): void;
340
340
  getDefaultValue(row: IMaterialConsumeData): any;
341
- /**
342
- * 处理[物料消耗表]下拉字段变更
343
- */
344
- handleSelectChange({ changedData, selectedOption, doc, parsed, dataIndex, }: {
345
- changedData: any;
341
+ /** 下拉写入前校验,只生成更新,不修改当前行。 */
342
+ prepareSelectChange({ pending, selectedOption, doc, parsed, dataIndex, }: {
343
+ pending: Record<string, unknown>;
346
344
  selectedOption: any;
347
345
  doc: Doc;
348
346
  parsed: ParsedValuePath;
349
347
  dataIndex: number;
350
- }): Promise<void>;
348
+ }): Promise<Record<string, unknown>>;
349
+ /** 提交成功后刷新查询条件、禁用状态及派生数量。 */
350
+ afterSelectChange({ doc, parsed, dataIndex, }: {
351
+ doc: Doc;
352
+ parsed: ParsedValuePath;
353
+ dataIndex: number;
354
+ }): void;
351
355
  }
@@ -0,0 +1,7 @@
1
+ import { Doc } from '../../../../../core';
2
+ type Updates = Record<string, unknown>;
3
+ /** 批次选择只填充实际变化的来源;扫码仍按本次命中行执行。 */
4
+ export declare function getChangedConsumeSourcePaths(doc: Doc, pending: Updates, sourcePaths: readonly string[]): string[];
5
+ /** 仅对指定来源生成填充更新;详情查询失败时保留业务更新。 */
6
+ export declare function prepareConsumeWrite(doc: Doc, pending: Updates, sourcePaths: readonly string[]): Promise<Updates>;
7
+ export {};
@@ -0,0 +1,4 @@
1
+ export type ProductRecord = Record<string, unknown>;
2
+ export declare function productVersionId(value: unknown): string;
3
+ /** 初始化专用:单次批量查询,失败不抛错、不逐条补查。 */
4
+ export declare function loadConsumeInitialProducts(productRefs: readonly unknown[]): Promise<Map<string, ProductRecord>>;
@@ -1,10 +1,15 @@
1
1
  import { BomEntryValidator, ScanFillPlan } from './bom-validator';
2
2
  import { IMaterialConsumeData } from '../../../../../domain/table/business/material/types';
3
3
  export type ValidateCurrentGroupForSwitch = (table: IMaterialConsumeData[], current: BomEntryValidator) => void | Promise<void>;
4
+ export interface ScanFillResult {
5
+ rows: IMaterialConsumeData[];
6
+ /** 本次扫码实际写入行的稳定身份 */
7
+ filledRowKey: string;
8
+ }
4
9
  /**
5
- * 按 ScanFillPlan 切组 / 建组 / 填充,返回新表(不改入参 arr)。
10
+ * 按 ScanFillPlan 切组 / 建组 / 填充,返回新表及本次写入行的身份(不改入参 arr)。
6
11
  * needSwitch 时通过 options.validateCurrentGroupForSwitch 先校验当前组。
7
12
  */
8
13
  export declare function applyScanFillPlan(arr: IMaterialConsumeData[], scanRow: IMaterialConsumeData, plan?: ScanFillPlan, options?: {
9
14
  validateCurrentGroupForSwitch?: ValidateCurrentGroupForSwitch;
10
- }): Promise<IMaterialConsumeData[]>;
15
+ }): Promise<ScanFillResult>;
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ /** 新字段的保存位置:主表的主模型、子表绑定的子模型,或二维表所选分组对应的模型。 */
3
+ model?: string;
4
+ /** 新字段所属的表单版本。 */
5
+ tmplVersionId: string;
6
+ };
7
+ 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, {}, HTMLDivElement>;
8
+ export default _default;
@@ -1,2 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ addFieldModelKey: import('vue').ComputedRef<string | undefined>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
2
4
  export default _default;
@@ -10,17 +10,11 @@ type __VLS_Props = {
10
10
  declare function __VLS_template(): {
11
11
  attrs: Partial<{}>;
12
12
  slots: {
13
+ 'title-actions'?(_: {}): any;
13
14
  default?(_: {}): any;
14
15
  };
15
16
  refs: {
16
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
17
- P: {};
18
- B: {};
19
- D: {};
20
- C: {};
21
- M: {};
22
- Defaults: {};
23
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
17
+ dropdownRef: unknown;
24
18
  };
25
19
  rootEl: HTMLDivElement;
26
20
  };
@@ -46,14 +40,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
46
40
  active: boolean;
47
41
  noDropdown: boolean;
48
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
49
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
50
- P: {};
51
- B: {};
52
- D: {};
53
- C: {};
54
- M: {};
55
- Defaults: {};
56
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
43
+ dropdownRef: unknown;
57
44
  }, HTMLDivElement>;
58
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
46
  export default _default;
@@ -17,14 +17,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
17
17
  $refs: {
18
18
  [x: string]: unknown;
19
19
  } & {
20
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
21
- P: {};
22
- B: {};
23
- D: {};
24
- C: {};
25
- M: {};
26
- Defaults: {};
27
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
20
+ dropdownRef: unknown;
28
21
  };
29
22
  $slots: Readonly<{
30
23
  [name: string]: import('vue').Slot<any> | undefined;
@@ -105,9 +98,22 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
105
98
  isVisible: import('vue').Ref<boolean, boolean>;
106
99
  }> & {} & import('vue').ComponentCustomProperties & {} & {
107
100
  $slots: {
101
+ 'title-actions'?(_: {}): any;
108
102
  default?(_: {}): any;
109
103
  };
110
104
  }) | null;
105
+ fieldContentRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
106
+ addFieldModelKey: import('vue').ComputedRef<string | undefined>;
107
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
108
+ P: {};
109
+ B: {};
110
+ D: {};
111
+ C: {};
112
+ M: {};
113
+ Defaults: {};
114
+ }, Readonly<{}> & Readonly<{}>, {
115
+ addFieldModelKey: import('vue').ComputedRef<string | undefined>;
116
+ }, {}, {}, {}, {}> | null;
111
117
  widgetToolkitRef: ({
112
118
  $: import('vue').ComponentInternalInstance;
113
119
  $data: {};
@@ -126,14 +132,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
126
132
  $refs: {
127
133
  [x: string]: unknown;
128
134
  } & {
129
- dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
130
- P: {};
131
- B: {};
132
- D: {};
133
- C: {};
134
- M: {};
135
- Defaults: {};
136
- }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
135
+ dropdownRef: unknown;
137
136
  };
138
137
  $slots: Readonly<{
139
138
  [name: string]: import('vue').Slot<any> | undefined;
@@ -214,6 +213,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
214
213
  isVisible: import('vue').Ref<boolean, boolean>;
215
214
  }> & {} & import('vue').ComponentCustomProperties & {} & {
216
215
  $slots: {
216
+ 'title-actions'?(_: {}): any;
217
217
  default?(_: {}): any;
218
218
  };
219
219
  }) | null;
@@ -14,6 +14,8 @@ export interface CreateWidgetFromPaletteOptions {
14
14
  overrideProps?: Record<string, any>;
15
15
  /** 用于解析子表业务 Profile */
16
16
  refModelType?: string;
17
+ /** 当前模型的完整字段列表,包含对象及对象子字段。 */
18
+ modelFields?: readonly FieldMeta[];
17
19
  }
18
20
  export declare function createDesignFieldToWidgetFactory(getFieldManifestForField: (f: FieldTypeSource) => FieldManifest | undefined): (field: FieldMeta, opts?: CreateWidgetFromPaletteOptions) => WidgetMeta;
19
21
  export declare function createDesignPaperWidgetToWidgetFactory(getManifest: (type: PAPER_WIDGET_TYPE) => PaperWidgetManifest | undefined): (widget: PaperWidgetMeta, opts?: CreateWidgetFromPaletteOptions) => WidgetMeta;
@@ -105,13 +105,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
105
105
  keyup: (event: KeyboardEvent) => any;
106
106
  pressEnter: (event: KeyboardEvent) => any;
107
107
  }, string, {
108
- type: import('../../../../base/input/src/types').InputType;
109
108
  id: string;
109
+ type: import('../../../../base/input/src/types').InputType;
110
110
  name: string;
111
+ placeholder: string;
112
+ size: import('../../../../base/input/src/types').InputSize;
111
113
  readonly: boolean;
112
114
  disabled: boolean;
113
- size: import('../../../../base/input/src/types').InputSize;
114
- placeholder: string;
115
115
  modelValue: string | number;
116
116
  prefix: string;
117
117
  suffix: string;
@@ -149,13 +149,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
149
149
  $nextTick: typeof nextTick;
150
150
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
151
151
  } & Readonly<{
152
- type: import('../../../../base/input/src/types').InputType;
153
152
  id: string;
153
+ type: import('../../../../base/input/src/types').InputType;
154
154
  name: string;
155
+ placeholder: string;
156
+ size: import('../../../../base/input/src/types').InputSize;
155
157
  readonly: boolean;
156
158
  disabled: boolean;
157
- size: import('../../../../base/input/src/types').InputSize;
158
- placeholder: string;
159
159
  modelValue: string | number;
160
160
  prefix: string;
161
161
  suffix: string;
@@ -184,7 +184,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
184
184
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
185
185
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
186
186
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
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<{
187
+ }>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "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;
@@ -4,10 +4,10 @@ type __VLS_Props = {
4
4
  };
5
5
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
6
  success: () => any;
7
- status: (status: "error" | "success" | "warning" | "waiting") => any;
7
+ status: (status: "success" | "warning" | "error" | "waiting") => any;
8
8
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onSuccess?: (() => any) | undefined;
10
- onStatus?: ((status: "error" | "success" | "warning" | "waiting") => any) | undefined;
10
+ onStatus?: ((status: "success" | "warning" | "error" | "waiting") => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
12
12
  inputRef: HTMLInputElement;
13
13
  }, HTMLDivElement>;
@@ -103,13 +103,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
103
103
  keyup: (event: KeyboardEvent) => any;
104
104
  pressEnter: (event: KeyboardEvent) => any;
105
105
  }, string, {
106
- type: import('../../../../base/input/src/types').InputType;
107
106
  id: string;
107
+ type: import('../../../../base/input/src/types').InputType;
108
108
  name: string;
109
+ placeholder: string;
110
+ size: import('../../../../base/input/src/types').InputSize;
109
111
  readonly: boolean;
110
112
  disabled: boolean;
111
- size: import('../../../../base/input/src/types').InputSize;
112
- placeholder: string;
113
113
  modelValue: string | number;
114
114
  prefix: string;
115
115
  suffix: string;
@@ -147,13 +147,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
147
147
  $nextTick: typeof import('vue').nextTick;
148
148
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
149
149
  } & Readonly<{
150
- type: import('../../../../base/input/src/types').InputType;
151
150
  id: string;
151
+ type: import('../../../../base/input/src/types').InputType;
152
152
  name: string;
153
+ placeholder: string;
154
+ size: import('../../../../base/input/src/types').InputSize;
153
155
  readonly: boolean;
154
156
  disabled: boolean;
155
- size: import('../../../../base/input/src/types').InputSize;
156
- placeholder: string;
157
157
  modelValue: string | number;
158
158
  prefix: string;
159
159
  suffix: string;
@@ -182,7 +182,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
182
182
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
183
183
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
184
184
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
185
- }>, "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
+ }>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
186
186
  focus: () => void;
187
187
  blur: () => void;
188
188
  select: () => void;
@@ -105,13 +105,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
105
105
  keyup: (event: KeyboardEvent) => any;
106
106
  pressEnter: (event: KeyboardEvent) => any;
107
107
  }, string, {
108
- type: import('../../../../../base/input/src/types').InputType;
109
108
  id: string;
109
+ type: import('../../../../../base/input/src/types').InputType;
110
110
  name: string;
111
+ placeholder: string;
112
+ size: import('../../../../../base/input/src/types').InputSize;
111
113
  readonly: boolean;
112
114
  disabled: boolean;
113
- size: import('../../../../../base/input/src/types').InputSize;
114
- placeholder: string;
115
115
  modelValue: string | number;
116
116
  prefix: string;
117
117
  suffix: string;
@@ -149,13 +149,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
149
149
  $nextTick: typeof import('vue').nextTick;
150
150
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
151
151
  } & Readonly<{
152
- type: import('../../../../../base/input/src/types').InputType;
153
152
  id: string;
153
+ type: import('../../../../../base/input/src/types').InputType;
154
154
  name: string;
155
+ placeholder: string;
156
+ size: import('../../../../../base/input/src/types').InputSize;
155
157
  readonly: boolean;
156
158
  disabled: boolean;
157
- size: import('../../../../../base/input/src/types').InputSize;
158
- placeholder: string;
159
159
  modelValue: string | number;
160
160
  prefix: string;
161
161
  suffix: string;
@@ -184,7 +184,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
184
184
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
185
185
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
186
186
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
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<{
187
+ }>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "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;
@@ -100,13 +100,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
100
100
  keyup: (event: KeyboardEvent) => any;
101
101
  pressEnter: (event: KeyboardEvent) => any;
102
102
  }, string, {
103
- type: import('../../../../../base/input/src/types').InputType;
104
103
  id: string;
104
+ type: import('../../../../../base/input/src/types').InputType;
105
105
  name: string;
106
+ placeholder: string;
107
+ size: import('../../../../../base/input/src/types').InputSize;
106
108
  readonly: boolean;
107
109
  disabled: boolean;
108
- size: import('../../../../../base/input/src/types').InputSize;
109
- placeholder: string;
110
110
  modelValue: string | number;
111
111
  prefix: string;
112
112
  suffix: string;
@@ -144,13 +144,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
144
144
  $nextTick: typeof import('vue').nextTick;
145
145
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
146
146
  } & Readonly<{
147
- type: import('../../../../../base/input/src/types').InputType;
148
147
  id: string;
148
+ type: import('../../../../../base/input/src/types').InputType;
149
149
  name: string;
150
+ placeholder: string;
151
+ size: import('../../../../../base/input/src/types').InputSize;
150
152
  readonly: boolean;
151
153
  disabled: boolean;
152
- size: import('../../../../../base/input/src/types').InputSize;
153
- placeholder: string;
154
154
  modelValue: string | number;
155
155
  prefix: string;
156
156
  suffix: string;
@@ -179,7 +179,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
179
179
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
180
180
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
181
181
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
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<{
182
+ }>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "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;
@@ -122,13 +122,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
122
122
  keyup: (event: KeyboardEvent) => any;
123
123
  pressEnter: (event: KeyboardEvent) => any;
124
124
  }, string, {
125
- type: import('../../../../../base/input/src/types').InputType;
126
125
  id: string;
126
+ type: import('../../../../../base/input/src/types').InputType;
127
127
  name: string;
128
+ placeholder: string;
129
+ size: import('../../../../../base/input/src/types').InputSize;
128
130
  readonly: boolean;
129
131
  disabled: boolean;
130
- size: import('../../../../../base/input/src/types').InputSize;
131
- placeholder: string;
132
132
  modelValue: string | number;
133
133
  prefix: string;
134
134
  suffix: string;
@@ -166,13 +166,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
166
166
  $nextTick: typeof nextTick;
167
167
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
168
168
  } & Readonly<{
169
- type: import('../../../../../base/input/src/types').InputType;
170
169
  id: string;
170
+ type: import('../../../../../base/input/src/types').InputType;
171
171
  name: string;
172
+ placeholder: string;
173
+ size: import('../../../../../base/input/src/types').InputSize;
172
174
  readonly: boolean;
173
175
  disabled: boolean;
174
- size: import('../../../../../base/input/src/types').InputSize;
175
- placeholder: string;
176
176
  modelValue: string | number;
177
177
  prefix: string;
178
178
  suffix: string;
@@ -201,7 +201,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
201
201
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
202
202
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
203
203
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
204
- }>, "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<{
204
+ }>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "modelValue" | "prefix" | "suffix" | "addonBefore" | "addonAfter" | "allowClear" | "showCount" | "showPasswordToggle" | "maxLength" | "autofocus" | "autocomplete" | "rows" | "bordered" | "showSearchButton" | "spellcheck" | "customStyle")> & import('vue').ShallowUnwrapRef<{
205
205
  focus: () => void;
206
206
  blur: () => void;
207
207
  select: () => void;
@@ -102,13 +102,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
102
102
  keyup: (event: KeyboardEvent) => any;
103
103
  pressEnter: (event: KeyboardEvent) => any;
104
104
  }, string, {
105
- type: import('../../../../../base/input/src/types').InputType;
106
105
  id: string;
106
+ type: import('../../../../../base/input/src/types').InputType;
107
107
  name: string;
108
+ placeholder: string;
109
+ size: import('../../../../../base/input/src/types').InputSize;
108
110
  readonly: boolean;
109
111
  disabled: boolean;
110
- size: import('../../../../../base/input/src/types').InputSize;
111
- placeholder: string;
112
112
  modelValue: string | number;
113
113
  prefix: string;
114
114
  suffix: string;
@@ -146,13 +146,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
146
146
  $nextTick: typeof import('vue').nextTick;
147
147
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
148
148
  } & Readonly<{
149
- type: import('../../../../../base/input/src/types').InputType;
150
149
  id: string;
150
+ type: import('../../../../../base/input/src/types').InputType;
151
151
  name: string;
152
+ placeholder: string;
153
+ size: import('../../../../../base/input/src/types').InputSize;
152
154
  readonly: boolean;
153
155
  disabled: boolean;
154
- size: import('../../../../../base/input/src/types').InputSize;
155
- placeholder: string;
156
156
  modelValue: string | number;
157
157
  prefix: string;
158
158
  suffix: string;
@@ -181,7 +181,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
181
181
  onKeypress?: ((event: KeyboardEvent) => any) | undefined;
182
182
  onKeyup?: ((event: KeyboardEvent) => any) | undefined;
183
183
  onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
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<{
184
+ }>, "select" | "blur" | "focus" | "inputRef" | ("id" | "type" | "name" | "placeholder" | "size" | "readonly" | "disabled" | "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;
@@ -12,3 +12,4 @@ export type { SetupPlatformAdaptersOptions, SetupVueRuntimeOptions } from './set
12
12
  export * from './engine';
13
13
  export * from './vue';
14
14
  export * from './plugins';
15
+ export declare function showWordValidationWarning(text: string): void;
@@ -0,0 +1,3 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ /** 收检数量沿用小数控件,默认不开启上下限校验。 */
3
+ export declare const manifest: FieldManifest;
@@ -25,8 +25,15 @@ export interface ConsumeObjectSelectUpdatesOpts {
25
25
  /** 表单实例 BOM 信息,用于 BOM 模式下写入 bom_entry_id_ */
26
26
  formInstBom?: FormInstBomResponse | null;
27
27
  }
28
+ interface ConsumeObjectFieldPaths {
29
+ productPath?: string;
30
+ materialNoPath?: string;
31
+ /** bom_entry_id_ 子字段路径(bizType = 'bom_entry_id') */
32
+ bomEntryIdPath?: string;
33
+ }
28
34
  /** 提交前按当前产品值补齐所有物料消耗对象的 BOM 明细 ID。 */
29
35
  export declare function buildConsumeObjectBomSubmitUpdates(doc: ConsumeObjectDoc, formInstBom?: FormInstBomResponse | null): Record<string, unknown>;
36
+ export declare function collectConsumeObjectPaths(doc: ConsumeObjectDoc, belongingObject: string): ConsumeObjectFieldPaths;
30
37
  /**
31
38
  * 消耗对象批次下拉:同组物料有值时按该物料版本过滤,替换 BOM versionIn。
32
39
  */
@@ -27,8 +27,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
27
27
  "onUpdate:formSubModel"?: ((value?: number | undefined) => any) | undefined;
28
28
  "onUpdate:formSubFieldKey"?: ((value?: string | undefined) => any) | undefined;
29
29
  }>, {
30
- required: boolean;
31
30
  fixed: boolean;
31
+ required: boolean;
32
32
  treeData: FieldTreeNode[];
33
33
  leftTitle: string;
34
34
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -9,6 +9,8 @@ type AutofillApplyOptions = {
9
9
  /** 仅写入指定子表行(插行场景) */
10
10
  rowIndexes?: number[];
11
11
  };
12
+ /** 只解析目标路径,不执行来源取值或填充。 */
13
+ export declare function getAutofillTargetPaths(autofillRules: AutofillRule[], opts?: AutofillApplyOptions): string[];
12
14
  export declare function applyAutofillRules(record: Record<string, unknown>, autofillRules: AutofillRule[], opts?: AutofillApplyOptions): Record<string, unknown>;
13
15
  /**
14
16
  * 子表插行 / 行初始化:从主表规则补默认值
@@ -16,9 +16,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
16
16
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
17
17
  onChange?: ((value?: string | undefined, node?: FieldTreeNodeType | undefined) => any) | undefined;
18
18
  }>, {
19
+ placeholder: string;
19
20
  disabled: boolean;
20
21
  treeData: FieldTreeNodeType[];
21
- placeholder: string;
22
22
  defaultExpanded: boolean;
23
23
  defaultExpandedValues: string[];
24
24
  groupOnlyExpand: boolean;
@@ -1,4 +1,4 @@
1
- export type TriggerName = 'OPEN_COMMON_CONFIRM_MODAL' | 'OPEN_DOC_SIGNATURE_RULE_CONFIG_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_FORM_MODEL_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_INPUT_PARAMS_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_OUTPUT_PARAMS_MODAL' | 'OPEN_FIELD_HYPERLINK_MODAL' | 'OPEN_FIELD_ONLINE_FORM_TMPL_MODAL' | 'OPEN_DISPLAY_FIELDS_TRANSFER_MODAL' | 'OPEN_QUICK_FILL_MODAL' | 'OPEN_CHECK_TABLE_DS_MODAL' | 'OPEN_E_SOP_VIEW_MODAL' | 'OPEN_FORMULA_EDITOR_MODAL';
1
+ export type TriggerName = 'OPEN_COMMON_CONFIRM_MODAL' | 'OPEN_DOC_SIGNATURE_RULE_CONFIG_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_FORM_MODEL_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_INPUT_PARAMS_MODAL' | 'OPEN_DATA_INIT_DATASOURCE_OUTPUT_PARAMS_MODAL' | 'OPEN_FIELD_HYPERLINK_MODAL' | 'OPEN_FIELD_ONLINE_FORM_TMPL_MODAL' | 'OPEN_ADD_ONLINE_FORM_FIELD_MODAL' | 'OPEN_DISPLAY_FIELDS_TRANSFER_MODAL' | 'OPEN_QUICK_FILL_MODAL' | 'OPEN_CHECK_TABLE_DS_MODAL' | 'OPEN_E_SOP_VIEW_MODAL' | 'OPEN_FORMULA_EDITOR_MODAL';
2
2
  export type TriggerHandler = (name: TriggerName, options?: any) => Promise<any>;
3
3
  interface TriggerUtilHandlers {
4
4
  handle?: TriggerHandler;
@@ -0,0 +1,8 @@
1
+ /** 按注册标记匹配可在无结果时跳过写回的函数名。 */
2
+ export declare function usesSkipWriteOnUndefinedFunction(expression: string): boolean;
3
+ /** 注册基础函数执行体,供表单填报和预览时计算公式。 */
4
+ export declare function registerBaseFormulaFuncs(): void;
5
+ /** 保留调用方已有函数,并按各自分组追加基础函数描述。 */
6
+ export declare function appendBaseFormulaFunctions(options: Record<string, any>): {
7
+ functions: any[];
8
+ };