@gct-paas/word 0.1.74-beta.36 → 0.1.74-beta.38

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.
@@ -14,6 +14,6 @@ type OperationReceiveQtyWidgetInstance = {
14
14
  };
15
15
  /** 从单个 widget 实例解析工序接收数量 enrich 目标 */
16
16
  export declare function tryCollectOperationReceiveQtyTarget(instance: OperationReceiveQtyWidgetInstance): OperationReceiveQtyWidgetTarget | null;
17
- /** 工序接收数量:params 取 containerId / routingOperationId,空值时拉取 qty_current_ */
17
+ /** 工序接收数量:getOne query 取 container_id_ / routing_operation_id_,空值时拉取 qty_current_ */
18
18
  export declare function createOperationReceiveQtyEnricher(doc: Doc, targets: OperationReceiveQtyWidgetTarget[]): DataEnricherRegistration;
19
19
  export {};
@@ -1,5 +1,10 @@
1
+ import { SelectApiBinding } from '../table/types';
2
+ /** 填报设备下拉 / 扫码查询 */
3
+ export declare const DEVICE_SEARCH_API: SelectApiBinding;
4
+ export declare const DEVICE_GROUP_QUERY_KEY = "device_group_id_";
1
5
  /**
2
- * 设备可选过滤:启用中 + 使用中 +(校准有效期未过 OR 无校准日期)。
6
+ * 设备可选过滤:使用中 +(校准有效期未过 OR 无校准日期)。
3
7
  * `__orExpKeys` 供 buildLikeQuery 把校准两条件做成 OR。
8
+ * 设备组不要放进 extraQuery。
4
9
  */
5
10
  export declare function buildDeviceBaseQuery(extraQuery?: Record<string, any>): Record<string, any>;
@@ -68,7 +68,7 @@ export interface IdRule {
68
68
  type: 'id';
69
69
  }
70
70
  /**
71
- * LOT/SN 父批展示名写入 `_lb_`。
71
+ * 批次/SN 父批展示名写入 `_lb_`。
72
72
  * - lookupBy: 'name' → 字段值是子批次 name_
73
73
  * - lookupBy: 'id' → 字段值是子批次 id_(如生产 LOT/SN)
74
74
  */
@@ -207,7 +207,7 @@ export declare const BASE_FIELD_TYPE: {
207
207
  */
208
208
  readonly SIGNATURE: "electronic_signature";
209
209
  /**
210
- * lot/sn
210
+ * 批次/SN
211
211
  */
212
212
  readonly MATERIAL_NO: "material_no";
213
213
  /**
@@ -387,15 +387,15 @@ export declare const BUSINESS_FIELD_TYPE: {
387
387
  */
388
388
  readonly QTY_REQUIRED: "qty_required";
389
389
  /**
390
- * E-SOP
390
+ * SOP
391
391
  */
392
392
  readonly E_SOP: "e_sop";
393
393
  /**
394
- * E-SOP版本
394
+ * SOP版本
395
395
  */
396
396
  readonly E_SOP_VERSION: "e_sop_version";
397
397
  /**
398
- * 实例数
398
+ * 表单实例数
399
399
  */
400
400
  readonly OF_INST_NUM: "of_inst_num";
401
401
  /**
@@ -403,7 +403,7 @@ export declare const BUSINESS_FIELD_TYPE: {
403
403
  */
404
404
  readonly PRODUCTION_QTY: "production_qty";
405
405
  /**
406
- * 生产批次号(生产 lot/sn)(追溯)
406
+ * 生产LOT/SN(追溯)
407
407
  */
408
408
  readonly PRODUCTION_CONTAINER: "production_container";
409
409
  /**
@@ -587,15 +587,15 @@ export declare const FIELD_TYPE: {
587
587
  */
588
588
  readonly QTY_REQUIRED: "qty_required";
589
589
  /**
590
- * E-SOP
590
+ * SOP
591
591
  */
592
592
  readonly E_SOP: "e_sop";
593
593
  /**
594
- * E-SOP版本
594
+ * SOP版本
595
595
  */
596
596
  readonly E_SOP_VERSION: "e_sop_version";
597
597
  /**
598
- * 实例数
598
+ * 表单实例数
599
599
  */
600
600
  readonly OF_INST_NUM: "of_inst_num";
601
601
  /**
@@ -603,7 +603,7 @@ export declare const FIELD_TYPE: {
603
603
  */
604
604
  readonly PRODUCTION_QTY: "production_qty";
605
605
  /**
606
- * 生产批次号(生产 lot/sn)(追溯)
606
+ * 生产LOT/SN(追溯)
607
607
  */
608
608
  readonly PRODUCTION_CONTAINER: "production_container";
609
609
  /**
@@ -707,7 +707,7 @@ export declare const FIELD_TYPE: {
707
707
  */
708
708
  readonly SIGNATURE: "electronic_signature";
709
709
  /**
710
- * lot/sn
710
+ * 批次/SN
711
711
  */
712
712
  readonly MATERIAL_NO: "material_no";
713
713
  /**
@@ -1,2 +1,2 @@
1
- /** 根据 LOT/SN 记录决定界面展示名称;关联批子批次对外展示父批次名。 */
1
+ /** 根据 批次/SN 记录决定界面展示名称;关联批子批次对外展示父批次名。 */
2
2
  export declare function resolveLotDisplayLabel(record: Record<string, any> | undefined): string | undefined;
@@ -13,7 +13,7 @@ export declare const F: {
13
13
  readonly productSpec: "product_id_spec_";
14
14
  /** 物料批次号 */
15
15
  readonly materialContainer: "material_container_no_";
16
- /** 生产批次号 */
16
+ /** 生产LOT/SN */
17
17
  readonly productionContainer: "production_container_id_";
18
18
  /** 数量 */
19
19
  readonly qty: "qty_";
@@ -26,9 +26,9 @@ export declare const F: {
26
26
  };
27
27
  /** 设计态输入属性固定禁用、运行态只读:物料名称 / 编码 / 规格 */
28
28
  export declare const DISABLED_INPUT_FIELDS: readonly ["product_id_name_", "product_id_code_", "product_id_spec_"];
29
- /** 行变更 handler:生产批次号清空时的字段集 */
29
+ /** 行变更 handler:生产LOT/SN清空时的字段集 */
30
30
  export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
31
- /** 行变更 handler:生产批次号切换时的字段集 */
31
+ /** 行变更 handler:生产LOT/SN切换时的字段集 */
32
32
  export declare const CLEAR_ON_PROD_CONTAINER_SWITCH: ("material_container_no_" | "mfg_order_id_")[];
33
33
  /** 行变更 handler:工单清空时的字段集 */
34
34
  export declare const CLEAR_ON_MFG_ORDER_EMPTY: ("product_id_" | "mfg_order_code_" | "product_id_name_" | "product_id_code_" | "product_id_spec_" | "qty_" | "production_date_")[];
@@ -1,20 +1,20 @@
1
1
  import { Doc } from '../../../../../../core';
2
2
  /**
3
- * 生产批次号 切换 / 清空
4
- * 切换【生产批次号】 → 清工单 + 物料批次号
5
- * 清空【生产批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
3
+ * 生产LOT/SN 切换 / 清空
4
+ * 切换【生产LOT/SN】 → 清工单 + 物料批次号
5
+ * 清空【生产LOT/SN】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
6
6
  */
7
7
  export declare function handleProductionContainerChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
8
8
  /**
9
9
  * 工单 切换 / 清空
10
- * 切换【工单】 -> 清生产批次号 + 物料批次号
10
+ * 切换【工单】 -> 清生产LOT/SN + 物料批次号
11
11
  * 清空【工单】 -> 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
12
12
  */
13
13
  export declare function handleMfgOrderChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
14
14
  /**
15
15
  * 物料批次号 切换 / 清空
16
- * 下拉选中(有 companion id)→ 清生产批次号 + 工单
17
- * 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产批次号 + 工单
16
+ * 下拉选中(有 companion id)→ 清生产LOT/SN + 工单
17
+ * 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产LOT/SN + 工单
18
18
  * 清空【物料批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
19
19
  */
20
20
  export declare function handleMaterialContainerNoChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
@@ -2,6 +2,6 @@ import { Doc } from '../../../../core';
2
2
  import { DataEnricherRegistration } from '../../../../core/data';
3
3
  import { BusinessSubTableType } from '../../types';
4
4
  /**
5
- * 按业务表类型,仅为该表内的「生产批次号」补全 _href_
5
+ * 按业务表类型,仅为该表内的「生产LOT/SN」补全 _href_
6
6
  */
7
7
  export declare function createProductionContainerHyperlinkEnricher(doc: Doc, tableType: BusinessSubTableType): DataEnricherRegistration;
@@ -11,7 +11,7 @@ export declare const F: {
11
11
  readonly productCode: "product_id_code_";
12
12
  /** 产品规格 */
13
13
  readonly productSpec: "product_id_spec_";
14
- /** 生产批次号 */
14
+ /** 生产LOT/SN */
15
15
  readonly productionContainer: "production_container_id_";
16
16
  /** 数量 */
17
17
  readonly qty: "qty_";
@@ -22,5 +22,5 @@ export declare const F: {
22
22
  /** 生产日期 */
23
23
  readonly productionDate: "production_date_";
24
24
  };
25
- /** 行变更 handler:生产批次号清空时的字段集 */
25
+ /** 行变更 handler:生产LOT/SN清空时的字段集 */
26
26
  export declare const CLEAR_ON_PROD_CONTAINER_EMPTY: readonly ["product_id_", "product_id_name_", "product_id_code_", "product_id_spec_", "qty_", "mfg_order_code_", "mfg_order_id_", "production_date_"];
@@ -1,5 +1,5 @@
1
1
  import { Doc } from '../../../../../../core';
2
2
  /**
3
- * 生产批次号 清空其他字段
3
+ * 生产LOT/SN 清空其他字段
4
4
  */
5
5
  export declare function handleProductionContainerChange(doc: Doc, subFieldKey: string, rowIndex: number): void;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.1.74-beta.36 */
1
+ /*! @gct-paas/word v0.1.74-beta.38 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, effectScope, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import St, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -17346,7 +17346,7 @@ var init_field_type = __esmMin((() => {
17346
17346
  */
17347
17347
  SIGNATURE: "electronic_signature",
17348
17348
  /**
17349
- * lot/sn
17349
+ * 批次/SN
17350
17350
  */
17351
17351
  MATERIAL_NO: "material_no",
17352
17352
  /**
@@ -17524,15 +17524,15 @@ var init_field_type = __esmMin((() => {
17524
17524
  */
17525
17525
  QTY_REQUIRED: "qty_required",
17526
17526
  /**
17527
- * E-SOP
17527
+ * SOP
17528
17528
  */
17529
17529
  E_SOP: "e_sop",
17530
17530
  /**
17531
- * E-SOP版本
17531
+ * SOP版本
17532
17532
  */
17533
17533
  E_SOP_VERSION: "e_sop_version",
17534
17534
  /**
17535
- * 实例数
17535
+ * 表单实例数
17536
17536
  */
17537
17537
  OF_INST_NUM: "of_inst_num",
17538
17538
  /**
@@ -17540,7 +17540,7 @@ var init_field_type = __esmMin((() => {
17540
17540
  */
17541
17541
  PRODUCTION_QTY: "production_qty",
17542
17542
  /**
17543
- * 生产批次号(生产 lot/sn)(追溯)
17543
+ * 生产LOT/SN(追溯)
17544
17544
  */
17545
17545
  PRODUCTION_CONTAINER: "production_container",
17546
17546
  /**
@@ -95099,7 +95099,7 @@ var init_utils$3 = __esmMin((() => {
95099
95099
  rdo_ref: "版本模型关联",
95100
95100
  enum_multi: "枚举多选",
95101
95101
  ref_multi: "模型多选",
95102
- esop: "E-SOP",
95102
+ esop: "SOP",
95103
95103
  expression: "公式",
95104
95104
  expression_condition: "公式条件",
95105
95105
  agg: "汇总",
@@ -95126,7 +95126,7 @@ var init_utils$3 = __esmMin((() => {
95126
95126
  PROCESS: "流程字段",
95127
95127
  data_table_formula: "公式",
95128
95128
  readonlycmp: "自定义",
95129
- material_no: "LOT/SN",
95129
+ material_no: "批次/SN",
95130
95130
  device: "设备",
95131
95131
  product: "物料",
95132
95132
  biz_process: "业务流",
@@ -95168,7 +95168,7 @@ var init_utils$3 = __esmMin((() => {
95168
95168
  location: "库位",
95169
95169
  stocktake_status: "盘点状态",
95170
95170
  production_identifier: "物料批次(生产标识)",
95171
- production_container: "生产批次号",
95171
+ production_container: "生产LOT/SN",
95172
95172
  material_container: "物料批次号",
95173
95173
  sterilization_container: "灭菌批次号",
95174
95174
  object_type: "对象",
@@ -95176,9 +95176,9 @@ var init_utils$3 = __esmMin((() => {
95176
95176
  qty: "数量",
95177
95177
  qty_consumed: "已消耗数量",
95178
95178
  qty_required: "需求数量",
95179
- e_sop: "E-SOP",
95180
- e_sop_version: "E-SOP版本",
95181
- of_inst_num: "实例数",
95179
+ e_sop: "SOP",
95180
+ e_sop_version: "SOP版本",
95181
+ of_inst_num: "表单实例数",
95182
95182
  production_qty: "生产数量",
95183
95183
  device_ref: "设备关联",
95184
95184
  device_ref_multi: "设备多选",
@@ -98494,7 +98494,7 @@ var init_part_inventory_ndo = __esmMin((() => {
98494
98494
  }));
98495
98495
  //#endregion
98496
98496
  //#region src/domain/field/lot-display-label.ts
98497
- /** 根据 LOT/SN 记录决定界面展示名称;关联批子批次对外展示父批次名。 */
98497
+ /** 根据 批次/SN 记录决定界面展示名称;关联批子批次对外展示父批次名。 */
98498
98498
  function resolveLotDisplayLabel(record) {
98499
98499
  if (!record) return void 0;
98500
98500
  if (record.container_role_ === ContainerRoleConst.RELATED_CHILD && isPresent(record.related_parent_name_)) return String(record.related_parent_name_);
@@ -98548,7 +98548,7 @@ function renderWithFormatter(column = {}, row = {}) {
98548
98548
  }) || "--";
98549
98549
  return toDictValue(field, cellValue, row._item) ?? params.defaultValueStr ?? "--";
98550
98550
  }
98551
- /** LOT/SN 下拉项的展示名称;关联批子批次对外展示父批次名称。 */
98551
+ /** 批次/SN 下拉项的展示名称;关联批子批次对外展示父批次名称。 */
98552
98552
  function getLotDisplayLabel(item) {
98553
98553
  const raw = (item === null || item === void 0 ? void 0 : item._item) ?? item ?? {};
98554
98554
  if (raw.container_role_ === ContainerRoleConst.RELATED_CHILD) {
@@ -98697,25 +98697,31 @@ var init_columns = __esmMin((() => {
98697
98697
  //#endregion
98698
98698
  //#region src/domain/device/device-query.ts
98699
98699
  /**
98700
- * 设备可选过滤:启用中 + 使用中 +(校准有效期未过 OR 无校准日期)。
98700
+ * 设备可选过滤:使用中 +(校准有效期未过 OR 无校准日期)。
98701
98701
  * `__orExpKeys` 供 buildLikeQuery 把校准两条件做成 OR。
98702
+ * 设备组不要放进 extraQuery。
98702
98703
  */
98703
98704
  function buildDeviceBaseQuery(extraQuery) {
98704
98705
  const today = dayjs().startOf("day").format("YYYY-MM-DD HH:mm:ss");
98705
- const queryData = {
98706
- operating_state_: true,
98706
+ const { "device_type_id_.eq": deviceTypeId, ...extra } = extraQuery ?? {};
98707
+ return {
98707
98708
  "state_.eq": DeviceStatus.IN_USE,
98708
98709
  "next_calibration_date_.ge": today,
98709
98710
  "next_calibration_date_.isNull": null,
98710
- ...extraQuery,
98711
+ ...extra,
98712
+ ...deviceTypeId ? { "device_type_id_.eq": deviceTypeId } : {},
98711
98713
  __orExpKeys: ["next_calibration_date_.ge", "next_calibration_date_.isNull"]
98712
98714
  };
98713
- const deviceTypeId = queryData["device_type_id_.eq"];
98714
- if (deviceTypeId == null || deviceTypeId === "") delete queryData["device_type_id_.eq"];
98715
- return queryData;
98716
98715
  }
98716
+ var DEVICE_SEARCH_API, DEVICE_GROUP_QUERY_KEY;
98717
98717
  var init_device_query = __esmMin((() => {
98718
98718
  init_enum();
98719
+ DEVICE_SEARCH_API = {
98720
+ modelCategory: "entity",
98721
+ modelKey: "em_device",
98722
+ bsKey: "biz_form_device_search"
98723
+ };
98724
+ DEVICE_GROUP_QUERY_KEY = "device_group_id_";
98719
98725
  }));
98720
98726
  //#endregion
98721
98727
  //#region src/runtime/renderer/dropdowns/components/tables/utils/quick-search.ts
@@ -98780,9 +98786,14 @@ function buildLikeQuery(searchFields, keyword, extraQuery = {}, options) {
98780
98786
  exp
98781
98787
  };
98782
98788
  }
98783
- /** 设备下拉:按设计端配置搜索,并附加设备可选范围过滤。 */
98784
- function buildDeviceQuickSearchQuery(quickSearchField, keyword, extraQuery) {
98785
- return buildLikeQuery(quickSearchField || [], keyword, buildDeviceBaseQuery(extraQuery));
98789
+ /** 设备下拉:条件与 ref 相同;deviceGroupId 只进 query,不进 exp。 */
98790
+ function buildDeviceQuickSearchQuery(quickSearchField, keyword, extraQuery, deviceGroupId) {
98791
+ const { queryData, exp } = buildLikeQuery(quickSearchField || [], keyword, buildDeviceBaseQuery(extraQuery));
98792
+ if (deviceGroupId) queryData[DEVICE_GROUP_QUERY_KEY] = deviceGroupId;
98793
+ return {
98794
+ queryData,
98795
+ exp
98796
+ };
98786
98797
  }
98787
98798
  /** 关联下拉:按设计端配置搜索。 */
98788
98799
  function buildRefQuickSearchQuery(searchField, keyword, extraQuery, options) {
@@ -98838,12 +98849,13 @@ function getSelectStrategy(fieldType) {
98838
98849
  if (strategy) return strategy;
98839
98850
  return selectStrategyMap[FIELD_TYPE.REF];
98840
98851
  }
98841
- var LOT2SN_STRATEGY, REF_STRATEGY, selectStrategyMap;
98852
+ var LOT2SN_STRATEGY, REF_STRATEGY, REF_OPERATING_STATE_STRATEGY, selectStrategyMap;
98842
98853
  var init_selectStrategy = __esmMin((() => {
98843
98854
  init_field_type();
98844
98855
  init_columns();
98845
98856
  init_quick_search();
98846
98857
  init_enum();
98858
+ init_device_query();
98847
98859
  LOT2SN_STRATEGY = {
98848
98860
  columnsKey: "lot-sn",
98849
98861
  fetcher: "lot2sn",
@@ -98866,6 +98878,15 @@ var init_selectStrategy = __esmMin((() => {
98866
98878
  },
98867
98879
  transform: transformLotData
98868
98880
  };
98881
+ REF_OPERATING_STATE_STRATEGY = {
98882
+ ...REF_STRATEGY,
98883
+ buildQuery({ keyword, searchField, extraParams }) {
98884
+ return buildRefQuickSearchQuery(searchField, keyword, {
98885
+ ...extraParams,
98886
+ operating_state_: true
98887
+ });
98888
+ }
98889
+ };
98869
98890
  selectStrategyMap = {
98870
98891
  [FIELD_TYPE.MATERIAL_NO]: LOT2SN_STRATEGY,
98871
98892
  [FIELD_TYPE.SCRAP_MATERIAL_NO]: LOT2SN_STRATEGY,
@@ -98880,20 +98901,21 @@ var init_selectStrategy = __esmMin((() => {
98880
98901
  },
98881
98902
  [FIELD_TYPE.DEVICE]: {
98882
98903
  columnsKey: "device",
98883
- fetcher: "ref",
98904
+ fetcher: "biz",
98905
+ api: DEVICE_SEARCH_API,
98884
98906
  buildQuery({ keyword, searchField, deviceTypeId, deviceGroupId }) {
98885
- return buildDeviceQuickSearchQuery(searchField, keyword, {
98886
- ...deviceTypeId ? { "device_type_id_.eq": deviceTypeId } : {},
98887
- ...deviceGroupId ? { "device_group_id_.eq": deviceGroupId } : {}
98888
- });
98907
+ return buildDeviceQuickSearchQuery(searchField, keyword, deviceTypeId ? { "device_type_id_.eq": deviceTypeId } : void 0, deviceGroupId);
98889
98908
  },
98890
98909
  transform: transformLotData
98891
98910
  },
98892
98911
  [FIELD_TYPE.ROUTING_OPERATION]: {
98893
98912
  columnsKey: "route-operation",
98894
98913
  fetcher: "ref",
98895
- buildQuery({ keyword }) {
98896
- return buildLikeQuery(["name_", "code_"], keyword, { type_: "NODE_SPEC" });
98914
+ buildQuery({ keyword, isMockReport }) {
98915
+ return buildLikeQuery(["name_", "code_"], keyword, {
98916
+ type_: "NODE_SPEC",
98917
+ ...isMockReport ? {} : { operating_state_: true }
98918
+ });
98897
98919
  },
98898
98920
  transform: transformLotData
98899
98921
  },
@@ -98902,7 +98924,7 @@ var init_selectStrategy = __esmMin((() => {
98902
98924
  fetcher: "ref",
98903
98925
  clearFieldId: "scrap_reason_1_",
98904
98926
  buildQuery({ keyword }) {
98905
- return buildLikeQuery(["name_", "code_"], keyword, { operating_state_: true });
98927
+ return buildLikeQuery(["name_", "code_"], keyword);
98906
98928
  },
98907
98929
  transform: transformLotData
98908
98930
  },
@@ -98934,7 +98956,7 @@ var init_selectStrategy = __esmMin((() => {
98934
98956
  isLinkQuery: true
98935
98957
  };
98936
98958
  if (keyword === null || keyword === void 0 ? void 0 : keyword.trim()) {
98937
- const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword, { operating_state_: true });
98959
+ const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword);
98938
98960
  return {
98939
98961
  queryData: {
98940
98962
  ...queryData,
@@ -98948,7 +98970,7 @@ var init_selectStrategy = __esmMin((() => {
98948
98970
  exp: ""
98949
98971
  };
98950
98972
  }
98951
- return buildLikeQuery(["name_", "code_"], keyword, { operating_state_: true });
98973
+ return buildLikeQuery(["name_", "code_"], keyword);
98952
98974
  },
98953
98975
  transform: transformLotData
98954
98976
  },
@@ -98957,7 +98979,7 @@ var init_selectStrategy = __esmMin((() => {
98957
98979
  fetcher: "ref",
98958
98980
  clearFieldId: "not_good_reason_1_",
98959
98981
  buildQuery({ keyword }) {
98960
- return buildLikeQuery(["name_", "code_"], keyword, { operating_state_: true });
98982
+ return buildLikeQuery(["name_", "code_"], keyword);
98961
98983
  },
98962
98984
  transform: transformLotData
98963
98985
  },
@@ -98989,7 +99011,7 @@ var init_selectStrategy = __esmMin((() => {
98989
99011
  isLinkQuery: true
98990
99012
  };
98991
99013
  if (keyword === null || keyword === void 0 ? void 0 : keyword.trim()) {
98992
- const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword, { operating_state_: true });
99014
+ const { queryData: searchQuery, exp } = buildLikeQuery(["name_", "code_"], keyword);
98993
99015
  return {
98994
99016
  queryData: {
98995
99017
  ...queryData,
@@ -99003,7 +99025,7 @@ var init_selectStrategy = __esmMin((() => {
99003
99025
  exp: ""
99004
99026
  };
99005
99027
  }
99006
- return buildLikeQuery(["name_", "code_"], keyword, { operating_state_: true });
99028
+ return buildLikeQuery(["name_", "code_"], keyword);
99007
99029
  },
99008
99030
  transform: transformLotData
99009
99031
  },
@@ -99012,14 +99034,8 @@ var init_selectStrategy = __esmMin((() => {
99012
99034
  fetcher: "rdo2ref",
99013
99035
  isTree: true,
99014
99036
  buildQuery({ keyword, searchField, extraParams }) {
99015
- if (searchField === null || searchField === void 0 ? void 0 : searchField.length) return buildRefQuickSearchQuery(searchField, keyword, {
99016
- operating_state_: true,
99017
- ...extraParams
99018
- });
99019
- return buildLikeQuery(["name_", "code_"], keyword, {
99020
- operating_state_: true,
99021
- ...extraParams
99022
- });
99037
+ if (searchField === null || searchField === void 0 ? void 0 : searchField.length) return buildRefQuickSearchQuery(searchField, keyword, extraParams);
99038
+ return buildLikeQuery(["name_", "code_"], keyword, extraParams);
99023
99039
  },
99024
99040
  transform: transformTreeData
99025
99041
  },
@@ -99028,10 +99044,7 @@ var init_selectStrategy = __esmMin((() => {
99028
99044
  fetcher: "rdo2ref",
99029
99045
  isTree: true,
99030
99046
  buildQuery({ keyword, searchField, extraParams }) {
99031
- return buildLikeQuery((searchField === null || searchField === void 0 ? void 0 : searchField.length) ? searchField : ["name_", "code_"], keyword, {
99032
- operating_state_: true,
99033
- ...extraParams
99034
- });
99047
+ return buildLikeQuery((searchField === null || searchField === void 0 ? void 0 : searchField.length) ? searchField : ["name_", "code_"], keyword, extraParams);
99035
99048
  },
99036
99049
  transform: transformTreeData
99037
99050
  },
@@ -99040,14 +99053,14 @@ var init_selectStrategy = __esmMin((() => {
99040
99053
  fetcher: "rdo2ref",
99041
99054
  isTree: true,
99042
99055
  buildQuery({ keyword, searchField }) {
99043
- return buildLikeQuery((searchField === null || searchField === void 0 ? void 0 : searchField.length) ? searchField : ["name_", "code_"], keyword, { operating_state_: true });
99056
+ return buildLikeQuery((searchField === null || searchField === void 0 ? void 0 : searchField.length) ? searchField : ["name_", "code_"], keyword);
99044
99057
  },
99045
99058
  transform: transformTreeData
99046
99059
  },
99047
- [FIELD_TYPE.WAREHOUSE]: REF_STRATEGY,
99048
- [FIELD_TYPE.TARGET_WAREHOUSE]: REF_STRATEGY,
99049
- [FIELD_TYPE.LOCATION]: REF_STRATEGY,
99050
- [FIELD_TYPE.SHOPFLOOR]: REF_STRATEGY,
99060
+ [FIELD_TYPE.WAREHOUSE]: REF_OPERATING_STATE_STRATEGY,
99061
+ [FIELD_TYPE.TARGET_WAREHOUSE]: REF_OPERATING_STATE_STRATEGY,
99062
+ [FIELD_TYPE.LOCATION]: REF_OPERATING_STATE_STRATEGY,
99063
+ [FIELD_TYPE.SHOPFLOOR]: REF_OPERATING_STATE_STRATEGY,
99051
99064
  [FIELD_TYPE.REF]: REF_STRATEGY,
99052
99065
  [FIELD_TYPE.MODEL_RELATION]: REF_STRATEGY,
99053
99066
  [FIELD_TYPE.PRODUCTION_CONTAINER]: {
@@ -99434,7 +99447,7 @@ function enrichContextDefaultValues(defaults, valuePath, fieldType, context, opt
99434
99447
  };
99435
99448
  }
99436
99449
  /**
99437
- * E-SOP 版本字段:配置了 SOP 后的默认值补全
99450
+ * SOP 版本字段:配置了 SOP 后的默认值补全
99438
99451
  * 优先级:设计态 defaultValue > paramsConfig.sopList > 接口 default_ 版本
99439
99452
  */
99440
99453
  async function enrichESopVersionDefaultValues(defaults, valuePath, props, context) {
@@ -99908,7 +99921,7 @@ function getQuery(value, lookupBy) {
99908
99921
  if (!isPresent(value)) return void 0;
99909
99922
  return { [lookupBy === "id" ? "id_.eq" : "name_.eq"]: String(value) };
99910
99923
  }
99911
- /** 按字段值获取 LOT/SN 原始记录。 */
99924
+ /** 按字段值获取 批次/SN 原始记录。 */
99912
99925
  async function resolveLotRecordByFieldValue(value, lookupBy) {
99913
99926
  const queryData = getQuery(value, lookupBy);
99914
99927
  if (!queryData) return void 0;
@@ -100208,18 +100221,21 @@ var init_of_inst_num_enricher = __esmMin((() => {
100208
100221
  }));
100209
100222
  //#endregion
100210
100223
  //#region src/core/data/enrichers/operation-receive-qty-enricher.ts
100211
- function resolveQueryParams(doc) {
100224
+ /** 上下文 → getOne query;缺任一条件则不请求 */
100225
+ function resolveQtyCurrentQuery(doc) {
100212
100226
  const containerId = readContextParam(doc, "containerId");
100213
100227
  const routingOperationId = readContextParam(doc, "routingOperationId");
100228
+ if (isBlank$1(containerId) || isBlank$1(routingOperationId)) return void 0;
100214
100229
  return {
100215
- containerId: isBlank$1(containerId) ? void 0 : String(containerId),
100216
- routingOperationId: isBlank$1(routingOperationId) ? void 0 : String(routingOperationId)
100230
+ container_id_: String(containerId),
100231
+ routing_operation_id_: String(routingOperationId)
100217
100232
  };
100218
100233
  }
100219
100234
  function parseQtyCurrent(res) {
100220
- const payload = unwrapBizServiceData(res) ?? res;
100221
- if (!payload || typeof payload !== "object") return void 0;
100222
- const raw = (payload.data && typeof payload.data === "object" ? payload.data : payload).qty_current_;
100235
+ const payload = unwrapBizServiceData(res);
100236
+ const row = (payload === null || payload === void 0 ? void 0 : payload.data) && typeof payload.data === "object" ? payload.data : payload;
100237
+ if (!row) return void 0;
100238
+ const raw = row.qty_current_;
100223
100239
  if (raw === void 0 || raw === null || raw === "") return void 0;
100224
100240
  const num = Number(raw);
100225
100241
  return Number.isNaN(num) ? void 0 : num;
@@ -100237,12 +100253,9 @@ async function fetchQtyCurrent(doc) {
100237
100253
  const existing = inflightQtyByDoc.get(doc);
100238
100254
  if (existing) return existing;
100239
100255
  const task = (async () => {
100240
- const { containerId, routingOperationId } = resolveQueryParams(doc);
100241
- if (!containerId || !routingOperationId) return void 0;
100242
- return parseQtyCurrent(await callBizService(OPERATION_RECEIVE_QTY_API, {
100243
- containerId,
100244
- routingOperationId
100245
- }));
100256
+ const query = resolveQtyCurrentQuery(doc);
100257
+ if (!query) return void 0;
100258
+ return parseQtyCurrent(await callBizService(OPERATION_RECEIVE_QTY_API, { query }));
100246
100259
  })();
100247
100260
  inflightQtyByDoc.set(doc, task);
100248
100261
  try {
@@ -100263,7 +100276,7 @@ function tryCollectOperationReceiveQtyTarget(instance) {
100263
100276
  if (!field || field.fieldType !== FIELD_TYPE.OPERATION_RECEIVE_QTY || !instance.valuePath) return null;
100264
100277
  return { valuePath: String(instance.valuePath) };
100265
100278
  }
100266
- /** 工序接收数量:params 取 containerId / routingOperationId,空值时拉取 qty_current_ */
100279
+ /** 工序接收数量:getOne query 取 container_id_ / routing_operation_id_,空值时拉取 qty_current_ */
100267
100280
  function createOperationReceiveQtyEnricher(doc, targets) {
100268
100281
  const pathMatchers = targets.map((item) => createValuePathMatcher(item.valuePath));
100269
100282
  return {
@@ -105715,7 +105728,7 @@ var init_field_keys$1 = __esmMin((() => {
105715
105728
  productSpec: "product_id_spec_",
105716
105729
  /** 物料批次号 */
105717
105730
  materialContainer: "material_container_no_",
105718
- /** 生产批次号 */
105731
+ /** 生产LOT/SN */
105719
105732
  productionContainer: "production_container_id_",
105720
105733
  /** 数量 */
105721
105734
  qty: "qty_",
@@ -106019,7 +106032,7 @@ var init_profile$1 = __esmMin((() => {
106019
106032
  //#endregion
106020
106033
  //#region src/domain/table/business/shared/production-container-hyperlink-enricher.ts
106021
106034
  /**
106022
- * 按业务表类型,仅为该表内的「生产批次号」补全 _href_
106035
+ * 按业务表类型,仅为该表内的「生产LOT/SN」补全 _href_
106023
106036
  */
106024
106037
  function createProductionContainerHyperlinkEnricher(doc, tableType) {
106025
106038
  const subFieldKeys = new Set(TableRuntimeContext.collectAll(doc).filter((ctx) => ctx.profile.type === tableType).map((ctx) => ctx.subFieldKey));
@@ -106058,9 +106071,9 @@ var init_production_container_hyperlink_enricher = __esmMin((() => {
106058
106071
  //#endregion
106059
106072
  //#region src/domain/table/business/preprocess/pretreatment-list/runtime/row-change-handlers.ts
106060
106073
  /**
106061
- * 生产批次号 切换 / 清空
106062
- * 切换【生产批次号】 → 清工单 + 物料批次号
106063
- * 清空【生产批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
106074
+ * 生产LOT/SN 切换 / 清空
106075
+ * 切换【生产LOT/SN】 → 清工单 + 物料批次号
106076
+ * 清空【生产LOT/SN】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
106064
106077
  */
106065
106078
  function handleProductionContainerChange$1(doc, subFieldKey, rowIndex) {
106066
106079
  const ctx = getRowChangeCtx(doc, subFieldKey, rowIndex);
@@ -106069,7 +106082,7 @@ function handleProductionContainerChange$1(doc, subFieldKey, rowIndex) {
106069
106082
  }
106070
106083
  /**
106071
106084
  * 工单 切换 / 清空
106072
- * 切换【工单】 -> 清生产批次号 + 物料批次号
106085
+ * 切换【工单】 -> 清生产LOT/SN + 物料批次号
106073
106086
  * 清空【工单】 -> 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
106074
106087
  */
106075
106088
  function handleMfgOrderChange(doc, subFieldKey, rowIndex) {
@@ -106079,8 +106092,8 @@ function handleMfgOrderChange(doc, subFieldKey, rowIndex) {
106079
106092
  }
106080
106093
  /**
106081
106094
  * 物料批次号 切换 / 清空
106082
- * 下拉选中(有 companion id)→ 清生产批次号 + 工单
106083
- * 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产批次号 + 工单
106095
+ * 下拉选中(有 companion id)→ 清生产LOT/SN + 工单
106096
+ * 手动输入(无 companion id)→ 清物料信息 + 数量 + 工单号 + 生产日期 + 生产LOT/SN + 工单
106084
106097
  * 清空【物料批次号】 → 清物料 + 物料名称 + 物料编码 + 物料规格 + 数量 + 工单号 + 生产日期
106085
106098
  */
106086
106099
  function handleMaterialContainerNoChange(doc, subFieldKey, rowIndex) {
@@ -106129,7 +106142,7 @@ function isProductionLotOrSn(record) {
106129
106142
  const type = record.production_identification_type_;
106130
106143
  return type === "LOT" || type === "SN";
106131
106144
  }
106132
- /** 生产批次/SN → 回填生产批次号字段,并互斥清空物料批号/工单 */
106145
+ /** 生产批次/SN → 回填生产LOT/SN字段,并互斥清空物料批号/工单 */
106133
106146
  function buildProductionContainerRow(record, parsed, fillData) {
106134
106147
  return {
106135
106148
  [F$2.productionContainer]: record.lot_sn_id_ ?? record.production_container_id_,
@@ -106217,7 +106230,7 @@ var init_field_keys = __esmMin((() => {
106217
106230
  productCode: "product_id_code_",
106218
106231
  /** 产品规格 */
106219
106232
  productSpec: "product_id_spec_",
106220
- /** 生产批次号 */
106233
+ /** 生产LOT/SN */
106221
106234
  productionContainer: "production_container_id_",
106222
106235
  /** 数量 */
106223
106236
  qty: "qty_",
@@ -106338,7 +106351,7 @@ var init_profile = __esmMin((() => {
106338
106351
  //#endregion
106339
106352
  //#region src/domain/table/business/sterilize/entrust-steril-batch-list/runtime/row-change-handlers.ts
106340
106353
  /**
106341
- * 生产批次号 清空其他字段
106354
+ * 生产LOT/SN 清空其他字段
106342
106355
  */
106343
106356
  function handleProductionContainerChange(doc, subFieldKey, rowIndex) {
106344
106357
  const ctx = getRowChangeCtx(doc, subFieldKey, rowIndex);
@@ -137240,16 +137253,11 @@ async function submitDeviceScan(params) {
137240
137253
  ok: false,
137241
137254
  message: MSG_NO_CODE
137242
137255
  };
137243
- const { queryData, exp } = buildLikeQuery([], "", buildDeviceBaseQuery({
137244
- "code_.eq": code,
137245
- ...deviceGroupId ? { "device_group_id_.eq": deviceGroupId } : {}
137246
- }));
137247
- const option = (_res$options = (await apiFetchers.ref.getOptions({
137248
- fieldKey: fieldInfo.key,
137249
- modelKey: fieldInfo.modelKey,
137250
- refModelKey: fieldInfo.bindInfo,
137251
- exp,
137256
+ const { queryData, exp } = buildDeviceQuickSearchQuery([], "", { "code_.eq": code }, deviceGroupId);
137257
+ const option = (_res$options = (await apiFetchers.biz.getOptions({
137258
+ api: DEVICE_SEARCH_API,
137252
137259
  queryData,
137260
+ exp,
137253
137261
  pageNo: 1,
137254
137262
  pageSize: 30
137255
137263
  })).options) === null || _res$options === void 0 ? void 0 : _res$options[0];
@@ -139115,7 +139123,7 @@ function pickProductIdsFromMfgOrderRow(row) {
139115
139123
  }
139116
139124
  return uniqNonEmpty([pickProductId(row)]);
139117
139125
  }
139118
- /** LOT/SN:父节点从 product_id_list_ 取值,否则取当前行 product_id_ */
139126
+ /** 批次/SN:父节点从 product_id_list_ 取值,否则取当前行 product_id_ */
139119
139127
  function pickProductIdsFromLotRow(row) {
139120
139128
  if (!row) return [];
139121
139129
  if (PARENT_ROLES.has(String(row.container_role_ ?? ""))) {
@@ -139124,7 +139132,7 @@ function pickProductIdsFromLotRow(row) {
139124
139132
  }
139125
139133
  return uniqNonEmpty([pickProductId(row)]);
139126
139134
  }
139127
- /** 用 LOT/SN 列表同源接口按 id / 名称取 product_id_ */
139135
+ /** 用 批次/SN 列表同源接口按 id / 名称取 product_id_ */
139128
139136
  async function resolveProductIdsFromLot(lotIdOrName, byName) {
139129
139137
  try {
139130
139138
  var _res$options;
@@ -139434,7 +139442,8 @@ function useTableDropdown(props, searchFilters) {
139434
139442
  deviceTypeId: deviceTypeId ?? (filters === null || filters === void 0 ? void 0 : filters.deviceTypeId),
139435
139443
  deviceGroupId: widgetProps.value.enableCascadeDataFilter ? widgetProps.value.deviceGroupId : void 0,
139436
139444
  extraParams,
139437
- optionMapping
139445
+ optionMapping,
139446
+ isMockReport: !!docInst.value.isMockReport
139438
139447
  })) ?? {};
139439
139448
  const apiFetcher = apiFetchers[fetcher];
139440
139449
  if (!apiFetcher) return {
@@ -143028,7 +143037,7 @@ function resolveFieldKey(widgetMeta, runtimeValuePath) {
143028
143037
  }
143029
143038
  /**
143030
143039
  * 弹框要的是子批次 name_:
143031
- * - 普通 LOT/SN:字段值本身就是子批次名
143040
+ * - 普通 批次/SN:字段值本身就是子批次名
143032
143041
  * - 生产 LOT/SN:字段值是子批次 id_,需回查 name_(不能用 _lb_,关联子批时 _lb_ 是父批名)
143033
143042
  */
143034
143043
  async function resolveHyperlinkMaterialNo(widgetMeta, fieldKey, rawValue) {
@@ -155104,7 +155113,7 @@ init_basic();
155104
155113
  var manifest$60 = {
155105
155114
  key: "field:of_inst_num",
155106
155115
  type: FIELD_TYPE.OF_INST_NUM,
155107
- label: "实例数",
155116
+ label: "表单实例数",
155108
155117
  icon: "icon-shilishu",
155109
155118
  version: "v1",
155110
155119
  allowDrag: true,
@@ -155496,7 +155505,7 @@ init_basic();
155496
155505
  var manifest$43 = {
155497
155506
  key: "field:e_sop",
155498
155507
  type: FIELD_TYPE.E_SOP,
155499
- label: "E-SOP",
155508
+ label: "SOP",
155500
155509
  icon: "icon-SOP",
155501
155510
  version: "v1",
155502
155511
  allowDrag: true,
@@ -155529,7 +155538,7 @@ init_basic();
155529
155538
  var manifest$42 = {
155530
155539
  key: "field:e_sop_version",
155531
155540
  type: FIELD_TYPE.E_SOP_VERSION,
155532
- label: "E-SOP版本",
155541
+ label: "SOP版本",
155533
155542
  icon: "icon-SOPbanbenhao",
155534
155543
  version: "v1",
155535
155544
  allowDrag: true,
@@ -156139,7 +156148,7 @@ init_basic();
156139
156148
  var manifest$17 = {
156140
156149
  key: "field:material_no",
156141
156150
  type: FIELD_TYPE.MATERIAL_NO,
156142
- label: "批次号",
156151
+ label: "批次/SN",
156143
156152
  icon: "icon-field-material-no",
156144
156153
  version: "v1",
156145
156154
  allowDrag: true,
@@ -156247,7 +156256,7 @@ init_basic();
156247
156256
  var manifest$13 = {
156248
156257
  key: "field:production_container",
156249
156258
  type: FIELD_TYPE.PRODUCTION_CONTAINER,
156250
- label: "生产批次号",
156259
+ label: "生产LOT/SN",
156251
156260
  icon: "icon-field-material-no",
156252
156261
  version: "v1",
156253
156262
  allowDrag: true,
@@ -164195,6 +164204,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
164195
164204
  });
164196
164205
  };
164197
164206
  const handleEditClick = (index, obj) => {
164207
+ var _window$NocodeAdapter;
164198
164208
  if (!RenderFieldWrapper) {
164199
164209
  console.error("未找到字段渲染组件");
164200
164210
  return;
@@ -164203,7 +164213,8 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
164203
164213
  ...baseParam.value,
164204
164214
  editingItem: obj,
164205
164215
  RenderFieldWrapper,
164206
- showConsumePolicy: showConsumePolicy.value
164216
+ showConsumePolicy: showConsumePolicy.value,
164217
+ openFormulaEditor: (_window$NocodeAdapter = window.NocodeAdapter) === null || _window$NocodeAdapter === void 0 || (_window$NocodeAdapter = _window$NocodeAdapter.utils) === null || _window$NocodeAdapter === void 0 ? void 0 : _window$NocodeAdapter.openFormulaEditor
164207
164218
  }, { title: "配置" }).then(({ success, result }) => {
164208
164219
  if (!success || !result) return;
164209
164220
  const objects = [...props.objects];
@@ -164250,7 +164261,7 @@ var object_init_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
164250
164261
  //#endregion
164251
164262
  //#region src/suites/edhr/panel-schema/data-init/object-init/object-init.vue
164252
164263
  init__plugin_vue_export_helper();
164253
- var object_init_default = /*#__PURE__*/ _plugin_vue_export_helper_default(object_init_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-79a4a3de"]]);
164264
+ var object_init_default = /*#__PURE__*/ _plugin_vue_export_helper_default(object_init_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c1b6427a"]]);
164254
164265
  //#endregion
164255
164266
  //#region src/suites/edhr/panel-schema/data-init/DataInitPanel.vue?vue&type=script&setup=true&name=panel-data-init&lang.ts
164256
164267
  init_core$1();
@@ -165225,7 +165236,7 @@ async function fetchProductOptions() {
165225
165236
  modelCategory: ENTITY_CATEGORY$1
165226
165237
  }, {}, {
165227
165238
  exp: "",
165228
- query: { operating_state_: true },
165239
+ query: {},
165229
165240
  pageNo: 1,
165230
165241
  pageSize: 9999
165231
165242
  });
@@ -165244,7 +165255,7 @@ async function fetchUomConvertRuleOptions() {
165244
165255
  modelKey: UOM_CONVERT_RULE_MODEL_KEY,
165245
165256
  modelCategory: ENTITY_CATEGORY$1
165246
165257
  }, {}, {
165247
- query: { operating_state_: true },
165258
+ query: {},
165248
165259
  pageNo: 1,
165249
165260
  pageSize: 999
165250
165261
  });
@@ -169781,7 +169792,7 @@ var field_e_sop_version_config_vue_vue_type_script_setup_true_lang_default = /*@
169781
169792
  modelCategory: "entity"
169782
169793
  }, {}, {
169783
169794
  exp: "",
169784
- query: { operating_state_: true },
169795
+ query: {},
169785
169796
  pageNo: 1,
169786
169797
  pageSize: 9999
169787
169798
  });
@@ -169873,7 +169884,7 @@ var field_e_sop_version_config_vue_vue_type_script_setup_true_lang_default = /*@
169873
169884
  //#region src/suites/edhr/panel-config/field/e-sop-version/field-e-sop-version-config.vue
169874
169885
  var field_e_sop_version_config_exports = /* @__PURE__ */ __exportAll({ default: () => field_e_sop_version_config_default });
169875
169886
  init__plugin_vue_export_helper();
169876
- var field_e_sop_version_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(field_e_sop_version_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-792e485e"]]);
169887
+ var field_e_sop_version_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(field_e_sop_version_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-378f7219"]]);
169877
169888
  //#endregion
169878
169889
  //#region src/suites/shared/panel/config/editor/enum-opt-editor/enum-option-item.vue?vue&type=script&setup=true&lang.ts
169879
169890
  init_base$2();
@@ -172521,7 +172532,7 @@ var field_text_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(
172521
172532
  //#endregion
172522
172533
  //#region src/suites/shared/panel/config/editor/assoc-filter-editor/utils.ts
172523
172534
  init_field_type();
172524
- /** 关联过滤可选源字段:LOT/SN、工单号 */
172535
+ /** 关联过滤可选源字段:批次/SN、工单号 */
172525
172536
  var ASSOC_FILTER_SOURCE_TYPES = /* @__PURE__ */ new Set([FIELD_TYPE.MATERIAL_NO, FIELD_TYPE.MFG_ORDER]);
172526
172537
  /** 主表 `fieldKey`;子表 `subFieldKey.fieldKey` */
172527
172538
  function buildAssocSourceFieldValue(fieldKey, subFieldKey) {
@@ -30,7 +30,7 @@ export declare function enrichContextDefaultValues(defaults: Record<string, any>
30
30
  skipRuntimeDefaultEnrichment?: boolean;
31
31
  }): Record<string, any> | undefined;
32
32
  /**
33
- * E-SOP 版本字段:配置了 SOP 后的默认值补全
33
+ * SOP 版本字段:配置了 SOP 后的默认值补全
34
34
  * 优先级:设计态 defaultValue > paramsConfig.sopList > 接口 default_ 版本
35
35
  */
36
36
  export declare function enrichESopVersionDefaultValues(defaults: Record<string, any> | undefined, valuePath: string, props: Record<string, any>, context: Record<string, unknown>): Promise<Record<string, any> | undefined>;
@@ -10,7 +10,7 @@ export declare function getColumns(key: string, displayFields: IDisplayField[],
10
10
  * 根据列配置和行数据返回格式化后的值
11
11
  */
12
12
  export declare function renderWithFormatter(column?: any, row?: any): any;
13
- /** LOT/SN 下拉项的展示名称;关联批子批次对外展示父批次名称。 */
13
+ /** 批次/SN 下拉项的展示名称;关联批子批次对外展示父批次名称。 */
14
14
  export declare function getLotDisplayLabel(item: any): string;
15
15
  /**
16
16
  * 树形数据转换
@@ -18,6 +18,8 @@ export interface SelectQueryContext {
18
18
  value?: string;
19
19
  label?: string;
20
20
  };
21
+ /** 模拟填报:工序不传 operating_state_,避免模板数据被启用态滤空 */
22
+ isMockReport?: boolean;
21
23
  }
22
24
  export interface SelectQueryResult {
23
25
  queryData?: Record<string, any>;
@@ -18,8 +18,8 @@ export declare function buildLikeQuery(searchFields: string[], keyword: string,
18
18
  queryData: Record<string, any>;
19
19
  exp: string;
20
20
  };
21
- /** 设备下拉:按设计端配置搜索,并附加设备可选范围过滤。 */
22
- export declare function buildDeviceQuickSearchQuery(quickSearchField: string[] | undefined, keyword: string, extraQuery?: Record<string, any>): {
21
+ /** 设备下拉:条件与 ref 相同;deviceGroupId 只进 query,不进 exp。 */
22
+ export declare function buildDeviceQuickSearchQuery(quickSearchField: string[] | undefined, keyword: string, extraQuery?: Record<string, any>, deviceGroupId?: string): {
23
23
  queryData: Record<string, any>;
24
24
  exp: string;
25
25
  };
package/dist/word.css CHANGED
@@ -12554,35 +12554,35 @@ svg.portrait-icon[data-v-8bdb451e] {
12554
12554
  cursor: pointer;
12555
12555
  color: #797a7d;
12556
12556
  }
12557
- .object-item[data-v-79a4a3de] {
12557
+ .object-item[data-v-c1b6427a] {
12558
12558
  margin-bottom: 16px;
12559
12559
  padding: 12px;
12560
12560
  border: 1px dashed #e4e4e4;
12561
12561
  border-radius: 8px;
12562
12562
  background: #f6f8fa;
12563
12563
  }
12564
- .object-item.is-filled[data-v-79a4a3de] {
12564
+ .object-item.is-filled[data-v-c1b6427a] {
12565
12565
  border-color: #a7cae6;
12566
12566
  background: #ecf3fc;
12567
12567
  }
12568
- .object-item .item-info[data-v-79a4a3de] {
12568
+ .object-item .item-info[data-v-c1b6427a] {
12569
12569
  display: flex;
12570
12570
  }
12571
- .object-item .item-info .info-text[data-v-79a4a3de] {
12571
+ .object-item .item-info .info-text[data-v-c1b6427a] {
12572
12572
  flex-grow: 1;
12573
12573
  margin-right: 8px;
12574
12574
  overflow: hidden;
12575
12575
  }
12576
- .object-item .item-info .info-text .text-row[data-v-79a4a3de] {
12576
+ .object-item .item-info .info-text .text-row[data-v-c1b6427a] {
12577
12577
  margin-bottom: 4px;
12578
12578
  overflow: hidden;
12579
12579
  text-overflow: ellipsis;
12580
12580
  white-space: nowrap;
12581
12581
  }
12582
- .object-item .item-info .info-text .text-row .row-label[data-v-79a4a3de] {
12582
+ .object-item .item-info .info-text .text-row .row-label[data-v-c1b6427a] {
12583
12583
  color: #76777e;
12584
12584
  }
12585
- .object-item .item-info .info-button[data-v-79a4a3de] {
12585
+ .object-item .item-info .info-button[data-v-c1b6427a] {
12586
12586
  display: flex;
12587
12587
  flex-shrink: 0;
12588
12588
  align-items: center;
@@ -12592,16 +12592,16 @@ svg.portrait-icon[data-v-8bdb451e] {
12592
12592
  border-radius: 4px;
12593
12593
  cursor: pointer;
12594
12594
  }
12595
- .object-item .item-info .info-button[data-v-79a4a3de]:hover {
12595
+ .object-item .item-info .info-button[data-v-c1b6427a]:hover {
12596
12596
  background: #fff;
12597
12597
  }
12598
- .object-item .item-info .info-button:hover .gct-icon[data-v-79a4a3de] {
12598
+ .object-item .item-info .info-button:hover .gct-icon[data-v-c1b6427a] {
12599
12599
  color: #1c1e20;
12600
12600
  }
12601
- .object-item .item-info .info-button .gct-icon[data-v-79a4a3de] {
12601
+ .object-item .item-info .info-button .gct-icon[data-v-c1b6427a] {
12602
12602
  color: #a4aaaf;
12603
12603
  }
12604
- .object-item .item-button[data-v-79a4a3de] {
12604
+ .object-item .item-button[data-v-c1b6427a] {
12605
12605
  margin-top: 8px;
12606
12606
  }
12607
12607
  .panel-data-init[data-v-004e3ce4] {
@@ -13618,7 +13618,7 @@ svg.portrait-icon[data-v-8bdb451e] {
13618
13618
  .panel-field-datetime-config[data-v-c9d1de47] {
13619
13619
  padding: 16px;
13620
13620
  }
13621
- .panel-field-e-sop-version-config[data-v-792e485e] {
13621
+ .panel-field-e-sop-version-config[data-v-378f7219] {
13622
13622
  padding: 16px;
13623
13623
  }
13624
13624
  .enum-option-item[data-v-b9876231] {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.74-beta.36",
3
+ "version": "0.1.74-beta.38",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",