@gct-paas/word 0.1.74-beta.20 → 0.1.74-beta.23
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/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/domain/field/field-type.d.ts +4 -0
- package/dist/domain/table/business/material/types.d.ts +41 -0
- package/dist/domain/table/business/preprocess/pretreatment-list/profile/field-keys.d.ts +5 -5
- package/dist/index.es.js +10864 -5218
- 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/derived-qty.d.ts +5 -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/renderer/dialogs/field-hyperlink/open-field-hyperlink.d.ts +0 -22
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/biz.d.ts +11 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +4 -2
- package/dist/runtime/renderer/dropdowns/components/tables/strategy/selectStrategy.d.ts +3 -1
- package/dist/suites/edhr/component/resolve-field-render-colors.d.ts +4 -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/utils/adapters/TriggerUtil.d.ts +1 -1
- package/dist/word.css +69 -66
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
|
-
import {
|
|
2
|
+
import { DataEnricherRegistration, PostChangePipelineContext } from '../types';
|
|
3
3
|
import { FieldComputedConfig } from '../../../domain/field/field-props-schema-type';
|
|
4
4
|
/**
|
|
5
5
|
* 解析 enricher 用的 widget props
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { FIELD_TYPE } from '../../../domain/field/field-type';
|
|
3
|
+
import { DataEnricherRegistration } from '../types';
|
|
4
|
+
export declare const LOT_PARENT_LABEL_FIELD_TYPES: Set<FIELD_TYPE>;
|
|
5
|
+
/** 生产 LOT/SN 字段保存子批次 ID 时,解析其子批次名称。 */
|
|
6
|
+
export declare function resolveProductionContainerChildName(childId: unknown): Promise<string | undefined>;
|
|
7
|
+
type LotParentLabelEnricherOptions = {
|
|
8
|
+
doc: Doc;
|
|
9
|
+
valuePath: string;
|
|
10
|
+
fieldType: FIELD_TYPE;
|
|
11
|
+
};
|
|
12
|
+
export declare function createLotParentLabelEnricher(options: LotParentLabelEnricherOptions): DataEnricherRegistration;
|
|
13
|
+
export {};
|
|
@@ -55,6 +55,21 @@ export interface IBomEntry {
|
|
|
55
55
|
operation_sort_num_?: number;
|
|
56
56
|
/** 是否必须上料 */
|
|
57
57
|
force_loading_enabled_?: boolean;
|
|
58
|
+
/** 是否指定物料批次 */
|
|
59
|
+
specified_material_no_enabled_?: boolean;
|
|
60
|
+
/** 指定的物料批次集合 */
|
|
61
|
+
specified_material_entries_?: Array<{
|
|
62
|
+
name_?: string;
|
|
63
|
+
production_identification_id_?: string;
|
|
64
|
+
}>;
|
|
65
|
+
/** 是否禁用条码解析 */
|
|
66
|
+
disable_barcode_parsing_?: boolean;
|
|
67
|
+
/** 条码参数类型 */
|
|
68
|
+
scan_param_type_?: ScanParamType;
|
|
69
|
+
/** 需求数量计算规则 */
|
|
70
|
+
required_qty_calc_rule_?: RequiredQtyCalcRule;
|
|
71
|
+
/** 需求数量按生产数量计算时绑定的生产数量字段 */
|
|
72
|
+
product_qty_field_?: string;
|
|
58
73
|
}
|
|
59
74
|
/** 物料消耗表业务配置 */
|
|
60
75
|
export interface IFormTmplBom {
|
|
@@ -68,6 +83,8 @@ export interface IFormTmplBom {
|
|
|
68
83
|
material_loading_model_enabled_: boolean;
|
|
69
84
|
/** 条码解析规则(旧数据是id,新数据是json对象str) */
|
|
70
85
|
barcode_parsing_rules_id_?: string;
|
|
86
|
+
/** 条码参数配置,不开启条码解析时,用这个配置 */
|
|
87
|
+
barcodeParamType?: string;
|
|
71
88
|
/** 从BOM初始化 */
|
|
72
89
|
bom_init_enabled_?: boolean;
|
|
73
90
|
/** 人为指定物料 */
|
|
@@ -80,6 +97,16 @@ export interface IFormTmplBom {
|
|
|
80
97
|
deleted_?: boolean;
|
|
81
98
|
/** 物料消耗模式, record:记录模式,bom: BOM模式 */
|
|
82
99
|
material_consumption_pattern_?: MaterialConsumptionPatternEnum;
|
|
100
|
+
/** 是否禁用条码解析 */
|
|
101
|
+
disable_barcode_parsing_?: boolean;
|
|
102
|
+
/** 条码参数类型 */
|
|
103
|
+
scan_param_type_?: ScanParamType;
|
|
104
|
+
/** 需求数量计算规则 */
|
|
105
|
+
required_qty_calc_rule_?: RequiredQtyCalcRule;
|
|
106
|
+
/** 需求数量按生产数量计算时绑定的生产数量字段 */
|
|
107
|
+
product_qty_field_?: string;
|
|
108
|
+
/** 物料消耗对象 key */
|
|
109
|
+
object_key_?: string;
|
|
83
110
|
}
|
|
84
111
|
/**
|
|
85
112
|
* 物料消耗表子模型的数据结构
|
|
@@ -99,6 +126,8 @@ export interface IMaterialConsumeData {
|
|
|
99
126
|
qty_required_?: number;
|
|
100
127
|
/** 需求数量单位 */
|
|
101
128
|
qty_required_uom_id_?: string;
|
|
129
|
+
/** 序号 */
|
|
130
|
+
sort_num_?: number;
|
|
102
131
|
/** 数量单位 */
|
|
103
132
|
qty_uom_id_?: string;
|
|
104
133
|
/** 转换后数量 */
|
|
@@ -127,6 +156,8 @@ export interface IMaterialConsumeData {
|
|
|
127
156
|
product_id__lb_?: string;
|
|
128
157
|
/** 扫码未回填 product_id_ 的兜底行标记(记录模式内部瞬态,行生命周期内持久,不向后端提交) */
|
|
129
158
|
_scanFallback?: boolean;
|
|
159
|
+
/** 本次上料汇总数量 */
|
|
160
|
+
qty_consumed_total_?: number;
|
|
130
161
|
}
|
|
131
162
|
/**
|
|
132
163
|
* 条码解析规则配置参数
|
|
@@ -151,3 +182,13 @@ export declare enum MaterialConsumptionPatternEnum {
|
|
|
151
182
|
/** bom模式 */
|
|
152
183
|
BOM = "bom"
|
|
153
184
|
}
|
|
185
|
+
/** 扫码参数类型 */
|
|
186
|
+
export declare enum ScanParamType {
|
|
187
|
+
Lot = "lot",
|
|
188
|
+
UniqueCode = "uniqueCode"
|
|
189
|
+
}
|
|
190
|
+
/** 需求数量计算规则 */
|
|
191
|
+
export declare enum RequiredQtyCalcRule {
|
|
192
|
+
LotQty = "lotQty",
|
|
193
|
+
ProductQty = "productQty"
|
|
194
|
+
}
|
|
@@ -27,19 +27,19 @@ export declare const F: {
|
|
|
27
27
|
/** 设计态输入属性固定禁用、运行态只读:物料名称 / 编码 / 规格 */
|
|
28
28
|
export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
|
|
29
29
|
/** 行变更 handler:生产批次号清空时的字段集 */
|
|
30
|
-
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "
|
|
30
|
+
export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
31
31
|
/** 行变更 handler:生产批次号切换时的字段集 */
|
|
32
32
|
export declare const CLEAR_ON_PROD_CONTAINER_SWITCH: ("material_container_no_" | "mfg_order_id_")[];
|
|
33
33
|
/** 行变更 handler:工单清空时的字段集 */
|
|
34
|
-
export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "
|
|
34
|
+
export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
35
35
|
/** 行变更 handler:工单切换时的字段集 */
|
|
36
|
-
export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("
|
|
36
|
+
export declare const CLEAR_ON_MFG_ORDER_SWITCH: ("production_container_id_" | "material_container_no_")[];
|
|
37
37
|
/** 行变更 handler:物料批次号清空时的字段集 */
|
|
38
|
-
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY: ("product_id_" | "
|
|
38
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_EMPTY: ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
39
39
|
/** 行变更 handler:物料批次号切换时的字段集 */
|
|
40
40
|
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_SWITCH: readonly ["mfg_order_id_", "production_container_id_"];
|
|
41
41
|
/** 行变更 handler:物料批次号手动输入(无 companion id)切换时需额外清空的字段 */
|
|
42
|
-
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH: readonly ("product_id_" | "
|
|
42
|
+
export declare const CLEAR_ON_MATERIAL_CONTAINER_NO_MANUAL_SWITCH: readonly ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
|
|
43
43
|
export declare const MATERIAL_CONTAINER_ID: string;
|
|
44
44
|
/** 相关字段变更时需重算物料禁用态 */
|
|
45
45
|
export declare const PRODUCT_EDITABILITY_WATCH: readonly ["material_container_no_", string, "mfg_order_id_", "production_container_id_"];
|