@gct-paas/word 0.1.52-beta.9 → 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.
@@ -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 layoutCheckTableCrossValue;
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;
@@ -67,4 +67,8 @@ export interface FieldDataBindingMeta {
67
67
  * 可选属性,仅子表绑定配置时需要,用于标识子表字段的唯一关键字
68
68
  */
69
69
  subFieldKey?: string;
70
+ /**
71
+ * 对象字段所属对象键值
72
+ */
73
+ belongingObject?: string;
70
74
  }
@@ -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_";
@@ -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_ */