@gct-paas/word 0.1.74-beta.43 → 0.1.74-beta.44

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.
@@ -26,6 +26,8 @@ type __VLS_Props = {
26
26
  multipleArrow?: boolean;
27
27
  /** 是否允许清除 */
28
28
  allowClear?: boolean;
29
+ /** 多选标签最大显示数量,responsive 时根据容器宽度自动折叠 */
30
+ maxTagCount?: number | 'responsive';
29
31
  /** 弹窗选择模式:编辑态外观,点击不展开下拉 */
30
32
  picker?: boolean;
31
33
  /** 是否需要分组展示 */
@@ -61,6 +63,8 @@ declare function __VLS_template(): {
61
63
  Defaults: {};
62
64
  }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
63
65
  triggerRef: HTMLDivElement;
66
+ measureTagRefs: HTMLSpanElement[];
67
+ measureRestRef: HTMLSpanElement;
64
68
  inputRef: HTMLInputElement;
65
69
  };
66
70
  rootEl: HTMLDivElement;
@@ -94,6 +98,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
94
98
  Defaults: {};
95
99
  }, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
96
100
  triggerRef: HTMLDivElement;
101
+ measureTagRefs: HTMLSpanElement[];
102
+ measureRestRef: HTMLSpanElement;
97
103
  inputRef: HTMLInputElement;
98
104
  }, HTMLDivElement>;
99
105
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,6 +1,6 @@
1
1
  /** 物料信息:按版本 id 拉一条(value 可能是 baseId:versionId) */
2
2
  export declare function fetchProductRecord(productValue: unknown): Promise<Record<string, unknown> | null>;
3
- /** 批次信息:优先 companion id,否则按批次号 name_ */
3
+ /** 批次信息:优先 companion id,否则按批次号 name_;每次现查,不用缓存 */
4
4
  export declare function fetchLotRecord(options: {
5
5
  lotId?: unknown;
6
6
  lotName?: unknown;
@@ -33,7 +33,13 @@ export declare const F: {
33
33
  readonly reInspectionDate: "re_inspection_date_";
34
34
  };
35
35
  export type WarehouseInFieldKey = (typeof F)[keyof typeof F];
36
+ /** 物料及名称 / 编码 / 规格 */
37
+ export declare const PRODUCT_FIELDS: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_"];
36
38
  /** runtimeRules:始终只读的信息字段 */
37
39
  export declare const READONLY_INFO_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
38
40
  /** 物料清空时需一并清空的字段 */
39
41
  export declare const CLEAR_ON_PRODUCT_EMPTY: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
42
+ /** 物料批号清空 / 手输切换时需一并清空的物料相关字段 */
43
+ export declare const CLEAR_ON_MATERIAL_NO_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_"];
44
+ /** 相关字段变更时需重算物料禁用态 */
45
+ export declare const PRODUCT_EDITABILITY_WATCH: readonly ["material_no_", "material_no__id_"];
@@ -1,4 +1,11 @@
1
1
  import { Doc } from '../../../../../../core';
2
+ /**
3
+ * 物料批号 切换 / 清空
4
+ * 下拉选中(有 companion id)→ 由 fillFromOption 回填物料,此处不预清
5
+ * 手动输入(无 companion id)→ 清物料及相关字段,供用户自选物料
6
+ * 清空【物料批号】 → 清物料 + 物料名称 + 物料编码 + 物料规格
7
+ */
8
+ export declare function handleMaterialNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
2
9
  /**
3
10
  * 物料清空时,同步清空名称 / 编码 / 规格
4
11
  */