@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.
Files changed (25) hide show
  1. package/dist/core/data/DataManager.d.ts +2 -0
  2. package/dist/core/layout/handlers/FieldHandler.d.ts +1 -1
  3. package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +7 -0
  4. package/dist/domain/field/field-binding.d.ts +4 -0
  5. package/dist/domain/table/business/check/check-table/index.d.ts +1 -0
  6. package/dist/domain/table/business/check/check-table/runtime/check-table-label-enricher.d.ts +4 -0
  7. package/dist/domain/table/business/check/check-table/runtime/check-table-value-fields.d.ts +3 -0
  8. package/dist/domain/table/business/check/check-table/runtime/index.d.ts +2 -0
  9. package/dist/domain/table/business/check/check-table/runtime/register-handlers.d.ts +1 -0
  10. package/dist/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.d.ts +2 -1
  11. package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/before-btn-click.d.ts +5 -0
  12. package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +2 -0
  13. package/dist/index.es.js +1453 -1209
  14. package/dist/runtime/_register_/runtime/SuiteRuntime.d.ts +2 -0
  15. package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +6 -4
  16. package/dist/runtime/canvas/table/render/material-consume/sync-material-info.d.ts +2 -0
  17. package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +5 -0
  18. package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +2 -0
  19. package/dist/sdk/types/field-model-query.d.ts +3 -0
  20. package/dist/sdk/types/index.d.ts +5 -0
  21. package/dist/suites/edhr/check-table/check-table-dyn-value.d.ts +17 -1
  22. package/dist/types/main.type.d.ts +43 -0
  23. package/dist/utils/TriggerUtil.d.ts +1 -1
  24. package/dist/word.css +69 -69
  25. 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 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
  }
@@ -1,2 +1,3 @@
1
1
  export { profile as checkTableProfile } from './profile';
2
+ export * from './runtime';
2
3
  export * from './profile';
@@ -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,3 @@
1
+ /** 检验项 type_ → 提交用 typed value 字段 */
2
+ export declare const CHECK_TABLE_TYPE_TO_VALUE_FIELD: Record<string, string>;
3
+ export declare function shouldSyncCheckTableLabel(type_: string): boolean;
@@ -0,0 +1,2 @@
1
+ export * from './check-table-value-fields';
2
+ export * from './check-table-label-enricher';
@@ -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_";
@@ -0,0 +1,5 @@
1
+ import { Doc } from '../../../../../../core';
2
+ import { IActionButtonItem } from '../../../../../../types/main.type';
3
+ export declare const beforeBtnClick: (params: {
4
+ btn: IActionButtonItem;
5
+ }, doc: Doc) => Promise<void>;
@@ -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_ */