@gct-paas/word 0.1.74-beta.24 → 0.1.74-beta.27
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/layout/handlers/fields/FieldBaseHandler.d.ts +1 -1
- package/dist/domain/active/active-types.d.ts +1 -1
- package/dist/domain/constants/enum/device.d.ts +26 -0
- package/dist/domain/constants/enum/index.d.ts +2 -0
- package/dist/domain/constants/enum/lot.d.ts +16 -0
- package/dist/domain/constants/enum/view.d.ts +1 -16
- package/dist/domain/device/device-query.d.ts +5 -0
- package/dist/domain/field/lot-display-label.d.ts +2 -0
- package/dist/domain/table/business/shared/scan-action.d.ts +10 -1
- package/dist/domain/table/business/warehouse/part-stocktake/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -2
- package/dist/domain/table/types.d.ts +1 -1
- package/dist/index.es.js +1688 -1375
- package/dist/runtime/canvas/table/render/material-consume/scan-fill.d.ts +0 -3
- package/dist/runtime/canvas/table/render/table-structure-overlay/sub-table-action/business-scan-menu.d.ts +4 -1
- package/dist/runtime/renderer/dropdowns/components/tables/columns/columns.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/tables/utils/assoc-filter.d.ts +2 -1
- package/dist/runtime/renderer/dropdowns/components/tables/utils/quick-search.d.ts +5 -27
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue.d.ts +3 -3
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +6 -0
- package/dist/suites/shared/panel/config/editor/quick-search-editor/quick-search.util.d.ts +1 -0
- package/dist/utils/adapters/ServiceUtil.d.ts +5 -2
- package/dist/utils/adapters/TriggerUtil.d.ts +1 -1
- package/dist/utils/fonts/cjk-font-catalog.d.ts +24 -1
- package/dist/word.css +30 -30
- package/package.json +2 -1
|
@@ -8,7 +8,7 @@ import { DataSlotIndex } from '../../../view/types';
|
|
|
8
8
|
type ValueType = string | number | undefined | null;
|
|
9
9
|
export declare class FieldBaseHandler extends RunHandlerBase {
|
|
10
10
|
static hasValue(value: ValueType): boolean;
|
|
11
|
-
/** 图片/附件 url
|
|
11
|
+
/** 图片/附件 url 列表:兼容逗号串、字符串数组、以及 {url|path|fileUrl} 对象 */
|
|
12
12
|
static normalizeUrlSources(raw: unknown): string[];
|
|
13
13
|
/** 将展示文案拆成逐字 run;空串 split 会得到 [],需单独处理 */
|
|
14
14
|
static toLayoutChars(label: unknown): string[];
|
|
@@ -26,7 +26,7 @@ export type PanelType =
|
|
|
26
26
|
| 'panel:warehouse-in-out-table'
|
|
27
27
|
/** 库存盘点表 */
|
|
28
28
|
| 'panel:warehouse-inventory-table'
|
|
29
|
-
/** EQM
|
|
29
|
+
/** EQM 备件盘点表(PART_STOCKTAKE) */
|
|
30
30
|
| 'panel:part-stocktake-table'
|
|
31
31
|
/** EQM 备件消耗表(DEVICE_PART_CONSUME) */
|
|
32
32
|
| 'panel:device-part-consume-table'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** 设备状态(enu_device_status) */
|
|
2
|
+
export declare const DeviceStatus: {
|
|
3
|
+
/** 使用中 */
|
|
4
|
+
readonly IN_USE: "IN_USE";
|
|
5
|
+
/** 维修中 */
|
|
6
|
+
readonly REPAIRING: "REPAIRING";
|
|
7
|
+
/** 保养中 */
|
|
8
|
+
readonly MAINTAINING: "MAINTAINING";
|
|
9
|
+
/** 点检中 */
|
|
10
|
+
readonly INSPECTING: "INSPECTING";
|
|
11
|
+
/** 校准中 */
|
|
12
|
+
readonly CALIBRATING: "CALIBRATING";
|
|
13
|
+
/** 验证中 */
|
|
14
|
+
readonly VERIFYING: "VERIFYING";
|
|
15
|
+
/** 备用 */
|
|
16
|
+
readonly STANDBY: "STANDBY";
|
|
17
|
+
/** 停用 */
|
|
18
|
+
readonly DEACTIVATED: "DEACTIVATED";
|
|
19
|
+
/** 报废 */
|
|
20
|
+
readonly SCRAPPED: "SCRAPPED";
|
|
21
|
+
};
|
|
22
|
+
export type DeviceStatus = (typeof DeviceStatus)[keyof typeof DeviceStatus];
|
|
23
|
+
/** 设备状态展示文案 */
|
|
24
|
+
export declare const DeviceStatusLabel: Record<DeviceStatus, string>;
|
|
25
|
+
/** 将设备状态枚举值转为中文;未知值原样返回 */
|
|
26
|
+
export declare function formatDeviceStatus(value: unknown): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** 批次类型(生产标识 container_role_) */
|
|
2
|
+
export declare const ContainerRoleConst: {
|
|
3
|
+
/** 普通批次 */
|
|
4
|
+
readonly NORMAL: "normal";
|
|
5
|
+
/** 关联批父节点 */
|
|
6
|
+
readonly RELATED_PARENT: "related_parent";
|
|
7
|
+
/** 关联批子批次 */
|
|
8
|
+
readonly RELATED_CHILD: "related_child";
|
|
9
|
+
/** 合并批父节点 */
|
|
10
|
+
readonly MERGE_PARENT: "merge_parent";
|
|
11
|
+
/** 共线批父节点 */
|
|
12
|
+
readonly COLLINEAR_PARENT: "collinear_parent";
|
|
13
|
+
/** 共线批子节点 */
|
|
14
|
+
readonly COLLINEAR_CHILD: "collinear_child";
|
|
15
|
+
};
|
|
16
|
+
export type ContainerRole = (typeof ContainerRoleConst)[keyof typeof ContainerRoleConst];
|
|
@@ -31,7 +31,7 @@ export type RenderCompType = ValueOf<typeof RenderCompTypeConst>;
|
|
|
31
31
|
export declare const BooleanShowModeTypeConst: {
|
|
32
32
|
/** 只显示真 */
|
|
33
33
|
OnlyTrue: string;
|
|
34
|
-
/**
|
|
34
|
+
/** 只显示假 */
|
|
35
35
|
OnlyFalse: string;
|
|
36
36
|
/** 同时显示真和假 */
|
|
37
37
|
Both: string;
|
|
@@ -89,18 +89,3 @@ export declare const FieldSysVarDefaultValueConst: {
|
|
|
89
89
|
/** 当前登录用户主部门 */
|
|
90
90
|
CURRENT_ORG: string;
|
|
91
91
|
};
|
|
92
|
-
/** 批次类型 */
|
|
93
|
-
export declare const ContainerRoleConst: {
|
|
94
|
-
/** 普通批次 */
|
|
95
|
-
NORMAL: string;
|
|
96
|
-
/** 关联批父节点 */
|
|
97
|
-
RELATED_PARENT: string;
|
|
98
|
-
/** 关联批子批次 */
|
|
99
|
-
RELATED_CHILD: string;
|
|
100
|
-
/** 合并批父节点 */
|
|
101
|
-
MERGE_PARENT: string;
|
|
102
|
-
/** 共线批父节点 */
|
|
103
|
-
COLLINEAR_PARENT: string;
|
|
104
|
-
/** 共线批子节点 */
|
|
105
|
-
COLLINEAR_CHILD: string;
|
|
106
|
-
};
|
|
@@ -24,9 +24,18 @@ export declare function resolveScanParsedValue<T extends Record<string, unknown>
|
|
|
24
24
|
export declare function resolveScanFillData(input: ScanModalInput): Record<string, unknown>;
|
|
25
25
|
/** 取扫码数量调整方向,默认 add */
|
|
26
26
|
export declare function resolveScanAdjustType(input: ScanModalInput): ScanAdjustType;
|
|
27
|
+
/**
|
|
28
|
+
* 扫码入行:优先回填首个空壳占位行,否则在活跃区末尾新增。
|
|
29
|
+
* 避免版面默认空行时 insertAt 导致「第一行空、第二行有数据」。
|
|
30
|
+
* 回填时空壳行按字段合并,保留 front_row_key_ / group_ 等元数据。
|
|
31
|
+
*/
|
|
32
|
+
export declare function appendOrFillScanRow(doc: Doc, subFieldKey: string, row: Record<string, unknown>): number;
|
|
27
33
|
/** 将 widget 上的条码解析规则 id 字符串转为配置对象 */
|
|
28
34
|
export declare function toParseRuleConfig(value?: string): ParseRuleProps | undefined;
|
|
29
35
|
/**
|
|
30
36
|
* 业务子表统一扫码入口:同一个 CommonScanModal,差异只在 onScan 业务处理
|
|
31
37
|
*/
|
|
32
|
-
export declare function openBusinessTableScan(ctx: BusinessScanContext, onScan: BusinessScanHandler
|
|
38
|
+
export declare function openBusinessTableScan(ctx: BusinessScanContext, onScan: BusinessScanHandler, formFieldOptions?: {
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
}[]): Promise<void>;
|
|
@@ -42,5 +42,5 @@ export declare const F: {
|
|
|
42
42
|
export type AllocateFieldKey = (typeof F)[keyof typeof F];
|
|
43
43
|
/** 设计态输入属性固定禁用、运行态只读的字段 */
|
|
44
44
|
export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "validity_", "re_inspection_date_"];
|
|
45
|
-
/**
|
|
46
|
-
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "
|
|
45
|
+
/** 物料清空时需一并清空的字段(不含目标仓/目标库位,避免误清已选目标) */
|
|
46
|
+
export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["inventory_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "production_identification_id_", "origin_warehouse_id_", "origin_location_id_", "mfg_order_id_", "lot_sn_id_", "stock_num_", "allocate_num_", "validity_", "re_inspection_date_"];
|
|
@@ -15,7 +15,7 @@ export type DataTableType = 'dynamic-table' | 'fixed-table' | 'two-d-table';
|
|
|
15
15
|
* @property warehouse-outbound - 出库明细表(EQM / WAREHOUSE_OUTBOUND)
|
|
16
16
|
* @property warehouse-in-out - 出入库明细表(兼容老文档,Ribbon 已隐藏)
|
|
17
17
|
* @property warehouse-inventory - 库存盘点表(EDHR / STOCKTAKE)
|
|
18
|
-
* @property part-stocktake -
|
|
18
|
+
* @property part-stocktake - 备件盘点表(EQM / PART_STOCKTAKE)
|
|
19
19
|
* @property device-part-consume - 备件消耗表(EQM / DEVICE_PART_CONSUME)
|
|
20
20
|
* @property warehouse-allocate - 库存调拨表
|
|
21
21
|
* @property material-consume - 物料消耗表
|