@gct-paas/word 0.1.52-beta.2 → 0.1.52-beta.3
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/dist/base/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/dist/base/date-time-picker/src/DateTimePicker.vue.d.ts +1 -1
- package/dist/base/divider/src/divider.vue.d.ts +1 -1
- package/dist/base/form-item/src/form-item.vue.d.ts +1 -1
- package/dist/base/icon/src/icon.vue.d.ts +2 -2
- package/dist/base/input/src/input.vue.d.ts +4 -4
- package/dist/base/input/src/text-area.vue.d.ts +2 -2
- package/dist/base/radio/src/radio-group.vue.d.ts +1 -1
- package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +2 -2
- package/dist/base/select/src/basic-select.vue.d.ts +1 -1
- package/dist/base/select/src/searchable-select.vue.d.ts +2 -2
- package/dist/base/switch/src/switch.vue.d.ts +1 -1
- package/dist/base/table/src/table.vue.d.ts +1 -1
- package/dist/capabilities/model-field-runtime/types/field.d.ts +2 -0
- package/dist/core/data/DataManager.d.ts +7 -0
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +10 -1
- package/dist/domain/table/business/{check-table/profile.d.ts → check/check-table/profile/index.d.ts} +1 -1
- package/dist/domain/table/business/{material-balance/profile.d.ts → material/material-balance/profile/index.d.ts} +1 -1
- package/dist/domain/table/business/{material-consume/profile.d.ts → material/material-consume/profile/index.d.ts} +1 -1
- package/dist/domain/table/business/warehouse/warehouse-in-out/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-in-out/profile/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/change-parse-rule.d.ts +7 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/actions/scan.d.ts +7 -0
- package/dist/domain/table/business/{warehouse-inventory → warehouse/warehouse-inventory}/index.d.ts +2 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/field-keys.d.ts +63 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/{warehouse-inventory/profile.d.ts → warehouse/warehouse-inventory/profile/index.d.ts} +1 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/index.d.ts +3 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/remote-sync-apply.d.ts +9 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts +22 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/scan-config.d.ts +31 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +72 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/warehouse-context.d.ts +3 -0
- package/dist/domain/table/business/{warehouse-transfer/profile.d.ts → warehouse/warehouse-transfer/profile/index.d.ts} +1 -1
- package/dist/domain/table/data/dynamic-table/{profile.d.ts → profile/index.d.ts} +1 -1
- package/dist/domain/table/data/fixed-table/{profile.d.ts → profile/index.d.ts} +1 -1
- package/dist/domain/table/data/two-d-table/{profile.d.ts → profile/index.d.ts} +1 -1
- package/dist/domain/table/{hooks → design/hooks}/on-field-attach.d.ts +2 -2
- package/dist/domain/table/design/hooks/on-repeating-default-props.d.ts +3 -0
- package/dist/domain/table/{hooks → design/hooks}/on-subtable-create.d.ts +4 -4
- package/dist/domain/table/design/label.d.ts +2 -0
- package/dist/domain/table/design/ribbon-options.d.ts +8 -0
- package/dist/domain/table/{_shared → design/theme}/region-item-theme.d.ts +1 -1
- package/dist/domain/table/index.d.ts +10 -8
- package/dist/domain/table/registry.d.ts +3 -13
- package/dist/domain/table/runtime/api/biz-service-api.d.ts +6 -0
- package/dist/domain/table/runtime/engines/init-load-engine.d.ts +16 -0
- package/dist/domain/table/runtime/engines/linkage-engine.d.ts +67 -0
- package/dist/domain/table/runtime/engines/main-field-bind-engine.d.ts +7 -0
- package/dist/domain/table/runtime/engines/remote-sync-engine.d.ts +25 -0
- package/dist/domain/table/runtime/engines/row-runtime-engine.d.ts +20 -0
- package/dist/domain/table/runtime/engines/rule-engine.d.ts +35 -0
- package/dist/domain/table/runtime/runtime-handlers.d.ts +72 -0
- package/dist/domain/table/runtime/table-runtime-context.d.ts +48 -0
- package/dist/domain/table/runtime/table-runtime-utils.d.ts +60 -0
- package/dist/domain/table/runtime/table-runtime.d.ts +64 -0
- package/dist/domain/table/types.d.ts +172 -62
- package/dist/domain/widget/component-type.d.ts +1 -1
- package/dist/index.es.js +19022 -16926
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
- package/dist/runtime/designer/toolkit/renderer/field-palette/field-palette.vue.d.ts +15 -0
- package/dist/runtime/designer/toolkit/renderer/field-palette/index.d.ts +14 -0
- package/dist/runtime/interface/fetchers.d.ts +3 -1
- package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +9 -9
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +9 -9
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +9 -9
- package/dist/suites/edhr/manifest/field/object-type/material-consume-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/qty-consumed-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/qty-required-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/production-identifier-manifest.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-init/object-init/object-init.vue.d.ts +9 -0
- package/dist/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-string-editor.vue.d.ts +1 -1
- package/dist/types/warehouse-inventory.type.d.ts +33 -0
- package/dist/utils/TriggerUtil.d.ts +1 -1
- package/dist/word.css +157 -100
- package/package.json +2 -2
- package/dist/domain/table/_shared/linkage-engine.d.ts +0 -25
- package/dist/domain/table/_shared/rule-engine.d.ts +0 -9
- package/dist/domain/table/_shared/runtime-engine.d.ts +0 -12
- package/dist/domain/table/_shared/table-runtime-shared.d.ts +0 -45
- package/dist/domain/table/business/warehouse-in-out/fields.d.ts +0 -2
- package/dist/domain/table/business/warehouse-in-out/profile.d.ts +0 -2
- package/dist/domain/table/hooks/on-repeating-default-props.d.ts +0 -3
- /package/dist/domain/table/business/{check-table → check/check-table}/index.d.ts +0 -0
- /package/dist/domain/table/business/{material-balance → material/material-balance}/index.d.ts +0 -0
- /package/dist/domain/table/business/{material-consume → material/material-consume}/index.d.ts +0 -0
- /package/dist/domain/table/business/{warehouse-in-out → warehouse/warehouse-in-out}/index.d.ts +0 -0
- /package/dist/domain/table/business/{warehouse-transfer → warehouse/warehouse-transfer}/index.d.ts +0 -0
- /package/dist/domain/table/{_shared → design}/autofill-expander.d.ts +0 -0
- /package/dist/domain/table/{_shared → design}/sub-model-matcher.d.ts +0 -0
- /package/dist/domain/table/{_shared → design/theme}/table-theme.d.ts +0 -0
|
@@ -19,8 +19,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
19
19
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
20
20
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
|
-
size: string;
|
|
23
22
|
disabled: boolean;
|
|
23
|
+
size: string;
|
|
24
24
|
modelValue: Array<string | number | boolean>;
|
|
25
25
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -11,8 +11,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
11
11
|
"onUpdate:modelValue"?: ((v: string | undefined) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
disabled: boolean;
|
|
14
|
-
format: string;
|
|
15
14
|
placeholder: string;
|
|
15
|
+
format: string;
|
|
16
16
|
calendarProps: any;
|
|
17
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
18
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
|
|
|
7
7
|
};
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<IDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IDividerProps> & Readonly<{}>, {
|
|
10
|
-
vertical: boolean;
|
|
11
10
|
color: string;
|
|
11
|
+
vertical: boolean;
|
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
14
|
export default _default;
|
|
@@ -16,8 +16,8 @@ declare function __VLS_template(): {
|
|
|
16
16
|
};
|
|
17
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
18
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
19
|
-
size: string;
|
|
20
19
|
required: boolean;
|
|
20
|
+
size: string;
|
|
21
21
|
inline: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -5,8 +5,8 @@ type __VLS_Props = {
|
|
|
5
5
|
icon: string;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
-
size: number | string;
|
|
9
|
-
version: "v1" | "v2";
|
|
10
8
|
color: string;
|
|
9
|
+
version: "v1" | "v2";
|
|
10
|
+
size: number | string;
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
12
12
|
export default _default;
|
|
@@ -44,13 +44,13 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
|
|
|
44
44
|
name: string;
|
|
45
45
|
type: import('./types').InputType;
|
|
46
46
|
id: string;
|
|
47
|
-
|
|
47
|
+
readonly: boolean;
|
|
48
48
|
disabled: boolean;
|
|
49
|
-
|
|
49
|
+
suffix: string;
|
|
50
|
+
size: import('./types').InputSize;
|
|
50
51
|
placeholder: string;
|
|
52
|
+
modelValue: string | number;
|
|
51
53
|
prefix: string;
|
|
52
|
-
readonly: boolean;
|
|
53
|
-
suffix: string;
|
|
54
54
|
addonBefore: string;
|
|
55
55
|
addonAfter: string;
|
|
56
56
|
allowClear: boolean;
|
|
@@ -40,10 +40,10 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
|
|
|
40
40
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
42
|
name: string;
|
|
43
|
+
readonly: boolean;
|
|
43
44
|
disabled: boolean;
|
|
44
|
-
modelValue: string | number;
|
|
45
45
|
placeholder: string;
|
|
46
|
-
|
|
46
|
+
modelValue: string | number;
|
|
47
47
|
allowClear: boolean;
|
|
48
48
|
showCount: boolean;
|
|
49
49
|
maxLength: number;
|
|
@@ -20,8 +20,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
20
20
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
21
21
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
size: string;
|
|
24
23
|
disabled: boolean;
|
|
24
|
+
size: string;
|
|
25
25
|
optionType: string;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -22,13 +22,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
22
22
|
"onUpdate:fullPathValue"?: ((value?: string | null | undefined) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
disabled: boolean;
|
|
25
|
+
modelCategory: string;
|
|
26
|
+
pageSize: number;
|
|
25
27
|
placeholder: string;
|
|
26
28
|
popperWidth: number;
|
|
27
29
|
allowClear: boolean;
|
|
28
30
|
disabledParent: boolean;
|
|
29
31
|
parentToDefault: boolean;
|
|
30
|
-
pageSize: number;
|
|
31
|
-
modelCategory: string;
|
|
32
32
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
33
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
34
34
|
P: {};
|
|
@@ -67,8 +67,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
67
67
|
"onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
|
|
68
68
|
}>, {
|
|
69
69
|
disabled: boolean;
|
|
70
|
-
placeholder: string;
|
|
71
70
|
options: DropdownOption[];
|
|
71
|
+
placeholder: string;
|
|
72
72
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
73
73
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
74
74
|
P: {};
|
|
@@ -15,10 +15,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
15
15
|
onChange?: ((val?: string | number | undefined, item?: DropdownOption | undefined) => any) | undefined;
|
|
16
16
|
"onUpdate:modelValue"?: ((val?: string | number | undefined) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
+
readonly: boolean;
|
|
18
19
|
disabled: boolean;
|
|
19
|
-
placeholder: string;
|
|
20
20
|
options: DropdownOption[];
|
|
21
|
-
|
|
21
|
+
placeholder: string;
|
|
22
22
|
allowClear: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
24
|
rootRef: HTMLDivElement;
|
|
@@ -10,8 +10,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
10
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
11
11
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
|
-
size: string;
|
|
14
13
|
disabled: boolean;
|
|
14
|
+
size: string;
|
|
15
15
|
modelValue: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
17
17
|
export default _default;
|
|
@@ -31,9 +31,9 @@ declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {},
|
|
|
31
31
|
onSelect?: ((keys: string[]) => any) | undefined;
|
|
32
32
|
"onRow-click"?: ((row: TableRow) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
size: "small" | "middle" | "large";
|
|
35
34
|
loading: boolean;
|
|
36
35
|
multiple: boolean;
|
|
36
|
+
size: "small" | "middle" | "large";
|
|
37
37
|
columns: TableColumn[];
|
|
38
38
|
stripe: boolean;
|
|
39
39
|
selectable: boolean;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { Doc } from '../view/Doc';
|
|
2
2
|
import { PostChangePipelineContext } from './post-change-pipeline';
|
|
3
|
+
/**
|
|
4
|
+
* 事件触发来源
|
|
5
|
+
* @property user - 用户手动操作触发
|
|
6
|
+
* @property dependency - 依赖数据变更触发
|
|
7
|
+
* @property enrichment - 数据补充/富化逻辑触发
|
|
8
|
+
* @property parent - 父组件/上层逻辑触发
|
|
9
|
+
*/
|
|
3
10
|
export type EmitSource = 'user' | 'dependency' | 'enrichment' | 'parent';
|
|
4
11
|
/** 单字段变更明细(path 作为 FieldChangeMap 的 key) */
|
|
5
12
|
export interface FieldChangeDetail {
|
|
@@ -39,7 +39,7 @@ export interface JoinRule {
|
|
|
39
39
|
export interface ApiRule {
|
|
40
40
|
type: 'api';
|
|
41
41
|
/** 请求函数 key */
|
|
42
|
-
fetcher: 'ref' | 'lot2sn' | 'rdo2ref';
|
|
42
|
+
fetcher: 'ref' | 'lot2sn' | 'rdo2ref' | 'ref2lot2sn';
|
|
43
43
|
/** 仅主模型字段可发起请求 */
|
|
44
44
|
onlyMainModelFieldsCanRequest: boolean;
|
|
45
45
|
/** 失败时的默认 label */
|
|
@@ -327,5 +327,14 @@ export declare enum FIELD_TYPE {
|
|
|
327
327
|
/**
|
|
328
328
|
* 库位
|
|
329
329
|
*/
|
|
330
|
-
LOCATION = "location"
|
|
330
|
+
LOCATION = "location",
|
|
331
|
+
/**
|
|
332
|
+
* 物料批次(生产标识)
|
|
333
|
+
*/
|
|
334
|
+
PRODUCTION_IDENTIFIER = "production_identifier",
|
|
335
|
+
OBJECT_TYPE = "object_type",
|
|
336
|
+
MATERIAL_CONSUME = "material_consume",
|
|
337
|
+
QTY = "qty",
|
|
338
|
+
QTY_CONSUMED = "qty_consumed",
|
|
339
|
+
QTY_REQUIRED = "qty_required_"
|
|
331
340
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 盘点表字段 key 统一定义
|
|
3
|
+
*/
|
|
4
|
+
/** 单字段 key */
|
|
5
|
+
export declare const F: {
|
|
6
|
+
readonly batch: "production_identification_id_";
|
|
7
|
+
readonly batchLb: "production_identification_id__lb_";
|
|
8
|
+
readonly product: "product_id_";
|
|
9
|
+
readonly productLb: "product_id__lb_";
|
|
10
|
+
readonly productName: "product_id_name_";
|
|
11
|
+
readonly productCode: "product_id_code_";
|
|
12
|
+
readonly productSpec: "product_id_spec_";
|
|
13
|
+
readonly warehouse: "warehouse_id_";
|
|
14
|
+
readonly location: "location_id_";
|
|
15
|
+
readonly locationLb: "location_id__lb_";
|
|
16
|
+
readonly stock: "stock_num_";
|
|
17
|
+
readonly stocktake: "stocktake_num_";
|
|
18
|
+
readonly diff: "diff_num_";
|
|
19
|
+
readonly stocktakeStatus: "stocktake_status_";
|
|
20
|
+
readonly stocktakeStatusLb: "stocktake_status__lb_";
|
|
21
|
+
readonly matno: "material_no_";
|
|
22
|
+
readonly matcode: "product_code_";
|
|
23
|
+
readonly rowSource: "row_source_";
|
|
24
|
+
readonly locationAutoResolved: "_location_auto_resolved_";
|
|
25
|
+
readonly inventoryLocationIds: "_inventory_location_ids_";
|
|
26
|
+
};
|
|
27
|
+
export type InventoryFieldKey = (typeof F)[keyof typeof F];
|
|
28
|
+
/** 含 label 的身份字段组 */
|
|
29
|
+
export declare const BATCH_IDENTITY: readonly ["production_identification_id_", "production_identification_id__lb_"];
|
|
30
|
+
export declare const PRODUCT_IDENTITY: readonly ["product_id_", "product_id__lb_"];
|
|
31
|
+
export declare const PRODUCT_DESC: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
32
|
+
export declare const LOCATION_FIELDS: readonly ["location_id_", "location_id__lb_"];
|
|
33
|
+
export declare const STOCK_FIELDS: readonly ["stock_num_", "stocktake_num_"];
|
|
34
|
+
/** remoteSync 触发字段(含仅触发、不入请求的库位) */
|
|
35
|
+
export declare const INVENTORY_IDENTITY_FIELDS: readonly ["production_identification_id_", "warehouse_id_", "location_id_", "product_id_"];
|
|
36
|
+
/** remoteSync 请求体字段 */
|
|
37
|
+
export declare const INVENTORY_REMOTE_SYNC_REQUEST_FIELDS: readonly ["production_identification_id_", "warehouse_id_", "product_id_", "material_no_", "product_code_"];
|
|
38
|
+
/** remoteSync 仅触发、排除出请求的字段 */
|
|
39
|
+
export declare const INVENTORY_REMOTE_SYNC_EXCLUDE_REQUEST_FIELDS: readonly ["location_id_"];
|
|
40
|
+
/** remoteSync 成功回写的基础字段(不含库位/库存,由 resolveApply 决定) */
|
|
41
|
+
export declare const INVENTORY_INFO_APPLY_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
|
|
42
|
+
/** remoteSync 查无数据时清空的字段 */
|
|
43
|
+
export declare const INVENTORY_INFO_CLEAR_FIELDS: readonly ["production_identification_id_", "production_identification_id__lb_", "product_id_", "product_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_"];
|
|
44
|
+
/** 行变更 handler:批次清空 / 切换时的字段集 */
|
|
45
|
+
export declare const CLEAR_ON_BATCH_EMPTY: readonly ["product_id_", "product_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_"];
|
|
46
|
+
export declare const CLEAR_ON_BATCH_SWITCH: readonly ["location_id_", "location_id__lb_", "stock_num_", "stocktake_num_"];
|
|
47
|
+
/** 行变更 handler:物料清空 / 切换时的字段集 */
|
|
48
|
+
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["production_identification_id_", "production_identification_id__lb_", "product_id_name_", "product_id_code_", "product_id_spec_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_"];
|
|
49
|
+
export declare const CLEAR_ON_PRODUCT_SWITCH: readonly ["production_identification_id_", "production_identification_id__lb_", "location_id_", "location_id__lb_", "stock_num_", "stocktake_num_"];
|
|
50
|
+
/** runtimeRules:始终只读的信息字段 */
|
|
51
|
+
export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_", "stock_num_", "diff_num_", "stocktake_status_"];
|
|
52
|
+
/** auto 行只读的可选字段 */
|
|
53
|
+
export declare const AUTO_LOAD_READONLY_SELECT_FIELDS: readonly ["product_id_", "production_identification_id_", "location_id_"];
|
|
54
|
+
/** scan 行只读:物料/批次;库位待选时可编辑,单库位自动解析后走 _location_auto_resolved_ 只读 */
|
|
55
|
+
export declare const SCAN_READONLY_SELECT_FIELDS: readonly ["product_id_", "production_identification_id_"];
|
|
56
|
+
/** rowHandlers:盘点衍生字段监听 */
|
|
57
|
+
export declare const STOCKTAKE_DERIVED_WATCH_FIELDS: readonly ["stocktake_num_", "stock_num_"];
|
|
58
|
+
/** 按批次+物料+仓库分组 */
|
|
59
|
+
export declare const WAREHOUSE_IDENTITY_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_"];
|
|
60
|
+
/** 扫码合并键(含库位) */
|
|
61
|
+
export declare const SCAN_MERGE_GROUP_KEYS: readonly ["production_identification_id_", "product_id_", "warehouse_id_", "location_id_"];
|
|
62
|
+
/** 库存唯一标识基础字段 */
|
|
63
|
+
export declare const INVENTORY_BASE_FIELDS: readonly ["production_identification_id_", "product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "warehouse_id_"];
|
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/register-handlers.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/remote-sync-apply.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RemoteSyncApplyContext, RemoteSyncApplyResult } from '../../../../runtime/runtime-handlers';
|
|
2
|
+
/**
|
|
3
|
+
* 盘点表 remoteSync 回写策略:
|
|
4
|
+
* - 页面无库位字段:groupBy 累加库存
|
|
5
|
+
* - 1 条:自动写入库位 + 库存,库位标记为自动解析(只读)
|
|
6
|
+
* - 多条且未选库位:只写基础信息,清空库位/库存,记录候选库位
|
|
7
|
+
* - 多条且用户已选库位:按库位在返回列表中匹配,只补库存,不清库位
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveWarehouseInventoryRemoteSync(records: Record<string, unknown>[], ctx: RemoteSyncApplyContext): RemoteSyncApplyResult;
|
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/row-change-handlers.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
/**
|
|
3
|
+
* 物料批次选择 / 清空
|
|
4
|
+
*
|
|
5
|
+
* 选择批次 → 清库位 + 库存/盘点数,等 remoteSync 重填
|
|
6
|
+
* 清空批次 → 清物料信息 + 库位 + 库存/盘点数 → 立即重算衍生字段
|
|
7
|
+
*/
|
|
8
|
+
export declare function handleProductionIdentificationIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
9
|
+
/**
|
|
10
|
+
* 物料切换 / 清空
|
|
11
|
+
*
|
|
12
|
+
* 切换物料 → 清批次 + 库位 + 库存/盘点数
|
|
13
|
+
* 清空物料 → 清批次 + 物料描述 + 库位 + 库存/盘点数 → 立即重算衍生字段
|
|
14
|
+
*/
|
|
15
|
+
export declare function handleProductIdChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
16
|
+
/**
|
|
17
|
+
* 库位切换 / 清空
|
|
18
|
+
*
|
|
19
|
+
* 切换库位 → 由 remoteSync 自动重填 stock_num_ 并触发 afterApply(stocktake-derived)
|
|
20
|
+
* 清空库位 → 清库存数 → 立即重算衍生字段
|
|
21
|
+
*/
|
|
22
|
+
export declare function handleLocationChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 扫码盘点数量写入策略
|
|
3
|
+
*
|
|
4
|
+
* - once-per-scan:本次扫码仅第一个命中行写入盘点数量
|
|
5
|
+
* - once-per-row:不同命中行分别写入盘点数量;同一行被多条明细重复命中时只写一次
|
|
6
|
+
*/
|
|
7
|
+
export type ScanQtyAssignStrategy = 'once-per-scan' | 'once-per-row';
|
|
8
|
+
/** 扫码实盘数量调整方向 */
|
|
9
|
+
export type WarehouseInventoryScanAdjustType = 'add' | 'minus';
|
|
10
|
+
/** 扫码弹窗回调入参 */
|
|
11
|
+
export interface WarehouseInventoryScanInput {
|
|
12
|
+
barcode: string;
|
|
13
|
+
type: WarehouseInventoryScanAdjustType;
|
|
14
|
+
}
|
|
15
|
+
export declare const SCAN_QTY_ASSIGN_STRATEGY: ScanQtyAssignStrategy;
|
|
16
|
+
export declare function shouldAssignScanQty(options: {
|
|
17
|
+
strategy: ScanQtyAssignStrategy;
|
|
18
|
+
assignScanQty: boolean;
|
|
19
|
+
scanQty: unknown;
|
|
20
|
+
rowIndex: number;
|
|
21
|
+
qtyAssignedOnScan: boolean;
|
|
22
|
+
qtyAssignedRowIndexes: ReadonlySet<number>;
|
|
23
|
+
}): boolean;
|
|
24
|
+
export declare function getScanQtySkipReason(options: {
|
|
25
|
+
strategy: ScanQtyAssignStrategy;
|
|
26
|
+
assignScanQty: boolean;
|
|
27
|
+
scanQty: unknown;
|
|
28
|
+
rowIndex: number;
|
|
29
|
+
qtyAssignedOnScan: boolean;
|
|
30
|
+
qtyAssignedRowIndexes: ReadonlySet<number>;
|
|
31
|
+
}): string | undefined;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
import { StocktakeStatusKey, IWarehouseInventoryRow } from '../../../../../../types/warehouse-inventory.type';
|
|
3
|
+
import { WarehouseInventoryScanAdjustType } from './scan-config';
|
|
4
|
+
/** 盘点状态 key 对应展示文案 */
|
|
5
|
+
export declare function getStocktakeStatusLabel(key: StocktakeStatusKey): string;
|
|
6
|
+
/** 计算差异数量 */
|
|
7
|
+
export declare function calcDiffNum(stocktakeNum?: number | null, stockNum?: number | null): number | undefined;
|
|
8
|
+
/** 根据实盘数量与库存数量计算盘点状态 key */
|
|
9
|
+
export declare function calcStocktakeStatus(stocktakeNum?: number | null, stockNum?: number | null): StocktakeStatusKey;
|
|
10
|
+
/** 刷新单行盘点衍生字段 */
|
|
11
|
+
export declare function refreshStocktakeDerivedFields(doc: Doc, subFieldKey: string, rowIndex: number): void;
|
|
12
|
+
/** 按批次+物料+仓库将接口明细拆成多组(扫码可能一次返回多种物料) */
|
|
13
|
+
export declare function groupRecordsByInventoryIdentity(records: Record<string, unknown>[]): Record<string, unknown>[][];
|
|
14
|
+
/**
|
|
15
|
+
* 扫码记录处理结果
|
|
16
|
+
* @property kind='accumulate' - 匹配到已有盘点行,执行数量累加
|
|
17
|
+
* @property kind='skip-location-not-selected' - 因未选择仓位而跳过处理
|
|
18
|
+
* @property kind='unprocessed' - 未匹配到已有盘点行,等待后续新增行处理
|
|
19
|
+
*/
|
|
20
|
+
export type ScanRecordDisposition = {
|
|
21
|
+
kind: 'accumulate';
|
|
22
|
+
index: number;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'skip-location-not-selected';
|
|
25
|
+
} | {
|
|
26
|
+
kind: 'unprocessed';
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 判断单条扫码明细如何处理:
|
|
30
|
+
* - 已有相同行且库位已选(或无库位字段)→ 累加条码 qty 到实盘数
|
|
31
|
+
* - 已有相同物料行但库位未选 → 跳过
|
|
32
|
+
* - 否则 → 待新建行
|
|
33
|
+
*/
|
|
34
|
+
export declare function dispositionScanRecord(record: Record<string, unknown>, visibleRows: IWarehouseInventoryRow[], groupByWarehouse: boolean): ScanRecordDisposition;
|
|
35
|
+
/**
|
|
36
|
+
* 待新建明细:先按批次+物料+仓库分组,取第一组再组装 resolve 入参
|
|
37
|
+
* - 页面无库位:该组全部明细 groupBy 累加
|
|
38
|
+
* - 页面有库位 + 组内多条:整组走多库位候选(不自动填库位)
|
|
39
|
+
* - 页面有库位 + 组内单条:自动填库位
|
|
40
|
+
*/
|
|
41
|
+
export declare function pickRecordsForNewScanRow(unprocessed: Record<string, unknown>[], groupByWarehouse: boolean): {
|
|
42
|
+
records: Record<string, unknown>[];
|
|
43
|
+
productGroupCount: number;
|
|
44
|
+
};
|
|
45
|
+
/** 盘点数量下限 */
|
|
46
|
+
export declare const MIN_STOCKTAKE_NUM = 0;
|
|
47
|
+
/** 条码未解析到数量时的默认扫码数量 */
|
|
48
|
+
export declare const DEFAULT_SCAN_QTY = 1;
|
|
49
|
+
export interface ResolveStocktakeQtyOptions {
|
|
50
|
+
/** 空值或无效数字时的回落;未指定则返回 null */
|
|
51
|
+
fallback?: number;
|
|
52
|
+
}
|
|
53
|
+
/** 解析盘点/扫码数量 */
|
|
54
|
+
export declare function resolveStocktakeQty(value: unknown, options?: ResolveStocktakeQtyOptions): number | null;
|
|
55
|
+
/** 按条码 qty 与调整方向更新盘点数量;原值为空时视为 0 */
|
|
56
|
+
export declare function applyScanQtyToStocktake(current: unknown, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): unknown;
|
|
57
|
+
/** 扫码命中已有行:按 add/minus 调整 stocktake_num_ */
|
|
58
|
+
export declare function accumulateScanQtyOnRow(visibleRows: IWarehouseInventoryRow[], rowIndex: number, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): {
|
|
59
|
+
rows: IWarehouseInventoryRow[];
|
|
60
|
+
mergedIndex: number;
|
|
61
|
+
};
|
|
62
|
+
/** 未处理明细新建行 */
|
|
63
|
+
export declare function appendScanRowFromResolve(visibleRows: IWarehouseInventoryRow[], rowData: Record<string, unknown>): {
|
|
64
|
+
rows: IWarehouseInventoryRow[];
|
|
65
|
+
mergedIndex: number;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* 将明细转为盘点行
|
|
69
|
+
* - 页面有库位字段:不 groupBy,一条明细一行
|
|
70
|
+
* - 页面无库位字段:按 批次 + 物料 + 仓库 groupBy,stock_num_ 累加
|
|
71
|
+
*/
|
|
72
|
+
export declare function groupInventoryToStocktakeRows(records: Record<string, unknown>[], groupByWarehouse: boolean): IWarehouseInventoryRow[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldMeta } from '
|
|
2
|
-
import { WidgetMeta } from '
|
|
1
|
+
import { FieldMeta } from '../../../../capabilities/model-field-runtime';
|
|
2
|
+
import { WidgetMeta } from '../../../../core';
|
|
3
3
|
interface ApplyFieldProfileOptions {
|
|
4
4
|
/** 子表分区路径,如 f_crkmx 或 f_ewb:f_link */
|
|
5
5
|
parentFieldKey?: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { SubTableLayoutType } from '../../../../core/model/document/wtcRegionRef';
|
|
2
|
+
import { RepeatingWidgetPropsMeta } from '../../../../core/model/logic/subtable/repeating/RepeatingRegion';
|
|
3
|
+
export declare function getDefaultRepeatingWidgetProps(layoutType?: SubTableLayoutType): RepeatingWidgetPropsMeta;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DocModel } from '
|
|
2
|
-
import { FieldMeta } from '
|
|
3
|
-
import { SubTableCommand } from '
|
|
1
|
+
import { DocModel } from '../../../../core/model/DocModel';
|
|
2
|
+
import { FieldMeta } from '../../../../capabilities/model-field-runtime';
|
|
3
|
+
import { SubTableCommand } from '../../types';
|
|
4
4
|
/**
|
|
5
5
|
* 从当前文档收集已被子表占用的 master_slave field key
|
|
6
6
|
*/
|
|
@@ -18,5 +18,5 @@ interface ConfirmSubTableCreateOptions {
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function confirmSubTableCreate(options: ConfirmSubTableCreateOptions): SubTableCommand;
|
|
20
20
|
/** 解析 Ribbon action 对应的表 Profile */
|
|
21
|
-
export declare function resolveSubTableProfile(ribbonAction: string): import('
|
|
21
|
+
export declare function resolveSubTableProfile(ribbonAction: string): import('../..').TableProfile | undefined;
|
|
22
22
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DropdownOption, DropdownOptionGroup } from '../../../base';
|
|
2
|
+
/** 表头(挂在数据表 Ribbon 首位) */
|
|
3
|
+
export declare const TABLE_HEADER_RIBBON_OPTION: DropdownOption;
|
|
4
|
+
/** 生成 Ribbon「数据表」「业务表」下拉选项 */
|
|
5
|
+
export declare function getRibbonTableOptions(): {
|
|
6
|
+
dataTables: DropdownOption[];
|
|
7
|
+
businessTables: DropdownOptionGroup[];
|
|
8
|
+
};
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './types';
|
|
5
5
|
export * from './registry';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './hooks/on-
|
|
6
|
+
export * from './design/ribbon-options';
|
|
7
|
+
export * from './design/label';
|
|
8
|
+
export * from './design/sub-model-matcher';
|
|
9
|
+
export * from './design/autofill-expander';
|
|
10
|
+
export * from './design/theme/region-item-theme';
|
|
11
|
+
export * from './design/theme/table-theme';
|
|
12
|
+
export * from './runtime/table-runtime';
|
|
13
|
+
export * from './design/hooks/on-subtable-create';
|
|
14
|
+
export * from './design/hooks/on-field-attach';
|
|
15
|
+
export * from './design/hooks/on-repeating-default-props';
|