@gct-paas/word 0.1.52-beta.8 → 0.1.53
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/DataManager.d.ts +2 -0
- package/dist/core/layout/handlers/FieldHandler.d.ts +1 -1
- package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +7 -0
- package/dist/domain/field/field-binding.d.ts +4 -0
- package/dist/domain/table/business/check/check-table/index.d.ts +1 -0
- package/dist/domain/table/business/check/check-table/runtime/check-table-label-enricher.d.ts +4 -0
- package/dist/domain/table/business/check/check-table/runtime/check-table-value-fields.d.ts +3 -0
- package/dist/domain/table/business/check/check-table/runtime/index.d.ts +2 -0
- package/dist/domain/table/business/check/check-table/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -1
- package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/before-btn-click.d.ts +5 -0
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +2 -0
- package/dist/index.es.js +1453 -1209
- package/dist/runtime/_register_/runtime/SuiteRuntime.d.ts +2 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +6 -4
- package/dist/runtime/canvas/table/render/material-consume/sync-material-info.d.ts +2 -0
- package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +5 -0
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +2 -0
- package/dist/sdk/types/field-model-query.d.ts +3 -0
- package/dist/sdk/types/index.d.ts +5 -0
- package/dist/suites/edhr/check-table/check-table-dyn-value.d.ts +17 -1
- package/dist/types/main.type.d.ts +43 -0
- package/dist/utils/TriggerUtil.d.ts +1 -1
- package/dist/word.css +69 -69
- package/package.json +1 -1
|
@@ -162,6 +162,8 @@ export declare class DataManager {
|
|
|
162
162
|
*/
|
|
163
163
|
private get2DByCoords;
|
|
164
164
|
private set2DByCoords;
|
|
165
|
+
/** 二维/检验表写字段后,额外 emit 带下标的字段路径,供 label enricher 等按字段匹配 */
|
|
166
|
+
private emit2DFieldPath;
|
|
165
167
|
private cleanupCrossByAxisUid;
|
|
166
168
|
/**
|
|
167
169
|
* 复制轴行插入时:若 uid 与已有行重复,换新 uid 并复制关联交叉区行。
|
|
@@ -3,5 +3,5 @@ import { LayoutContext } from '../LayoutContext';
|
|
|
3
3
|
export declare class FieldHandler {
|
|
4
4
|
static layout(context: LayoutContext, wr: WrText): void;
|
|
5
5
|
/** 检验表交叉区 value_:按同行检验项 type_ 渲染,值路径固定 value_ */
|
|
6
|
-
private static
|
|
6
|
+
private static layoutCheckTableValue;
|
|
7
7
|
}
|
|
@@ -8,6 +8,13 @@ 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
|
+
/** 将展示文案拆成逐字 run;空串 split 会得到 [],需单独处理 */
|
|
12
|
+
static toLayoutChars(label: unknown): string[];
|
|
13
|
+
/**
|
|
14
|
+
* 展示内容为空时补一个带 widgetMeta/valuePath 的占位 run
|
|
15
|
+
* 避免段落只剩默认 TextRun(isPlaceholder=true)导致 getWidgetInstances 收集不到
|
|
16
|
+
*/
|
|
17
|
+
static ensureFieldWidgetAnchor(ctx: HandlerContext, layoutStyle: Partial<TextRun>, extra?: Partial<TextWidget>): void;
|
|
11
18
|
static getModelRefId(context: LayoutContext, wr: WrText): string;
|
|
12
19
|
static getDataSlotIndex(context: LayoutContext): DataSlotIndex | undefined;
|
|
13
20
|
static getValue(ctx: HandlerContext, valuePath: string): any;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Doc } from '../../../../../../core';
|
|
2
|
+
import { DataEnricherRegistration } from '../../../../../../core/data/enricher-types';
|
|
3
|
+
/** 检验表交叉区 value_:按同行 type_ 补全 value_lb_ */
|
|
4
|
+
export declare function createCheckTableValueLabelEnricher(doc: Doc): DataEnricherRegistration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,16 +4,17 @@
|
|
|
4
4
|
/** 单字段 key */
|
|
5
5
|
export declare const F: {
|
|
6
6
|
readonly batch: "production_identification_id_";
|
|
7
|
+
readonly batchLb: "production_identification_id__lb_";
|
|
7
8
|
readonly product: "product_id_";
|
|
8
9
|
readonly productName: "product_id_name_";
|
|
9
10
|
readonly productCode: "product_id_code_";
|
|
10
11
|
readonly productSpec: "product_id_spec_";
|
|
11
|
-
readonly matno: "material_no_";
|
|
12
12
|
readonly validity: "validity_";
|
|
13
13
|
readonly stock: "stock_num_";
|
|
14
14
|
readonly warehouse: "warehouse_id_";
|
|
15
15
|
readonly location: "location_id_";
|
|
16
16
|
readonly originWarehouseId: "origin_warehouse_id_";
|
|
17
|
+
readonly originWarehouseIdLb: "origin_warehouse_id__lb_";
|
|
17
18
|
readonly originLocationId: "origin_location_id_";
|
|
18
19
|
readonly originLocationIdLb: "origin_location_id__lb_";
|
|
19
20
|
readonly allocateReason: "allocate_reason_";
|
package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export interface ResolveStocktakeQtyOptions {
|
|
|
52
52
|
}
|
|
53
53
|
/** 解析盘点/扫码数量 */
|
|
54
54
|
export declare function resolveStocktakeQty(value: unknown, options?: ResolveStocktakeQtyOptions): number | null;
|
|
55
|
+
/** 扣减导致实盘数量小于 0 时的拦截原因;add 或无需校验时返回 undefined */
|
|
56
|
+
export declare function getScanQtyDeductionBlockReason(current: unknown, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): string | undefined;
|
|
55
57
|
/** 按条码 qty 与调整方向更新盘点数量;原值为空时视为 0 */
|
|
56
58
|
export declare function applyScanQtyToStocktake(current: unknown, scanQty: unknown, type?: WarehouseInventoryScanAdjustType): unknown;
|
|
57
59
|
/** 扫码命中已有行:按 add/minus 调整 stocktake_num_ */
|