@gct-paas/word 0.1.74-beta.29 → 0.1.74-beta.30

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.
@@ -1,13 +1,12 @@
1
1
  import { Doc } from '../../view/Doc';
2
- import { FIELD_TYPE } from '../../../domain/field/field-type';
3
2
  import { DataEnricherRegistration } from '../types';
4
- export declare const LOT_PARENT_LABEL_FIELD_TYPES: Set<FIELD_TYPE>;
3
+ export type LotParentLookupBy = 'name' | 'id';
5
4
  /** 生产 LOT/SN 字段保存子批次 ID 时,解析其子批次名称。 */
6
5
  export declare function resolveProductionContainerChildName(childId: unknown): Promise<string | undefined>;
7
6
  type LotParentLabelEnricherOptions = {
8
7
  doc: Doc;
9
8
  valuePath: string;
10
- fieldType: FIELD_TYPE;
9
+ lookupBy?: LotParentLookupBy;
11
10
  };
12
11
  export declare function createLotParentLabelEnricher(options: LotParentLabelEnricherOptions): DataEnricherRegistration;
13
12
  export {};
@@ -67,7 +67,16 @@ export interface LabelRule {
67
67
  export interface IdRule {
68
68
  type: 'id';
69
69
  }
70
- export type ValueChangeRule = HyperlinkRule | LabelRule | IdRule;
70
+ /**
71
+ * LOT/SN 父批展示名写入 `_lb_`。
72
+ * - lookupBy: 'name' → 字段值是子批次 name_
73
+ * - lookupBy: 'id' → 字段值是子批次 id_(如生产 LOT/SN)
74
+ */
75
+ export interface LotParentLabelRule {
76
+ type: 'lot-parent-label';
77
+ lookupBy?: 'name' | 'id';
78
+ }
79
+ export type ValueChangeRule = HyperlinkRule | LabelRule | IdRule | LotParentLabelRule;
71
80
  /** 将 manifest 中的 onValueChangeRule 规范为数组 */
72
81
  export declare function normalizeValueChangeRules(rule?: ValueChangeRule | ValueChangeRule[]): ValueChangeRule[];
73
82
  export type ComputedRule = PriorityRule | ResolveRule | MapRule | JoinRule | ApiRule;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.1.74-beta.29 */
1
+ /*! @gct-paas/word v0.1.74-beta.30 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, 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 Mt, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -96155,7 +96155,7 @@ function resolveVerticalOptionGap(optionIndex, optionCount, optionSpacing, legac
96155
96155
  var init_option_spacing = __esmMin((() => {}));
96156
96156
  //#endregion
96157
96157
  //#region src/suites/edhr/manifest/field/_common_/basic.ts
96158
- var initComponentDependency, commonDefaultRenderers, commonDefaultProps, autofillFieldDefaultProps, dateFieldDefaultProps, numberFieldDefaultProps, signFieldDefaultProps, fileFieldDefaultProps, styleDefaultProps, styleSizeDefaultProps, signStyleSizeDefaultProps, labelPriorityConfig, labelResolveDateConfig, labelResolveUserConfig, labelResolveOrgConfig, labelResolveEnumConfig, optionsMapEnumConfig, labelOnValueChangeRule, hyperlinkOnValueChangeRule, idOnValueChangeRule, hyperlinkAndIdOnValueChangeRules;
96158
+ var initComponentDependency, commonDefaultRenderers, commonDefaultProps, autofillFieldDefaultProps, dateFieldDefaultProps, numberFieldDefaultProps, signFieldDefaultProps, fileFieldDefaultProps, styleDefaultProps, styleSizeDefaultProps, signStyleSizeDefaultProps, labelPriorityConfig, labelResolveDateConfig, labelResolveUserConfig, labelResolveOrgConfig, labelResolveEnumConfig, optionsMapEnumConfig, labelOnValueChangeRule, hyperlinkOnValueChangeRule, idOnValueChangeRule, lotParentLabelByNameRule, lotParentLabelByIdRule, hyperlinkAndIdOnValueChangeRules, hyperlinkIdAndLotParentLabelRules;
96159
96159
  var init_basic = __esmMin((() => {
96160
96160
  init_enum();
96161
96161
  init_option_spacing();
@@ -96295,7 +96295,16 @@ var init_basic = __esmMin((() => {
96295
96295
  labelOnValueChangeRule = { type: "label" };
96296
96296
  hyperlinkOnValueChangeRule = { type: "hyperlink" };
96297
96297
  idOnValueChangeRule = { type: "id" };
96298
+ lotParentLabelByNameRule = {
96299
+ type: "lot-parent-label",
96300
+ lookupBy: "name"
96301
+ };
96302
+ lotParentLabelByIdRule = {
96303
+ type: "lot-parent-label",
96304
+ lookupBy: "id"
96305
+ };
96298
96306
  hyperlinkAndIdOnValueChangeRules = [hyperlinkOnValueChangeRule, idOnValueChangeRule];
96307
+ hyperlinkIdAndLotParentLabelRules = [...hyperlinkAndIdOnValueChangeRules, lotParentLabelByNameRule];
96299
96308
  }));
96300
96309
  //#endregion
96301
96310
  //#region src/domain/table/business/check/check-table/profile/field-keys.ts
@@ -99783,13 +99792,13 @@ var init_label_enricher = __esmMin((() => {
99783
99792
  }));
99784
99793
  //#endregion
99785
99794
  //#region src/core/data/enrichers/lot-parent-label-enricher.ts
99786
- function getQuery(value, fieldType) {
99795
+ function getQuery(value, lookupBy) {
99787
99796
  if (!isPresent(value)) return void 0;
99788
- return { [fieldType === FIELD_TYPE.PRODUCTION_CONTAINER ? "id_.eq" : "name_.eq"]: String(value) };
99797
+ return { [lookupBy === "id" ? "id_.eq" : "name_.eq"]: String(value) };
99789
99798
  }
99790
99799
  /** 按字段值获取 LOT/SN 原始记录。 */
99791
- async function resolveLotRecordByFieldValue(value, fieldType) {
99792
- const queryData = getQuery(value, fieldType);
99800
+ async function resolveLotRecordByFieldValue(value, lookupBy) {
99801
+ const queryData = getQuery(value, lookupBy);
99793
99802
  if (!queryData) return void 0;
99794
99803
  try {
99795
99804
  const result = await api$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
@@ -99809,12 +99818,12 @@ async function resolveLotRecordByFieldValue(value, fieldType) {
99809
99818
  }
99810
99819
  /** 生产 LOT/SN 字段保存子批次 ID 时,解析其子批次名称。 */
99811
99820
  async function resolveProductionContainerChildName(childId) {
99812
- const record = await resolveLotRecordByFieldValue(childId, FIELD_TYPE.PRODUCTION_CONTAINER);
99821
+ const record = await resolveLotRecordByFieldValue(childId, "id");
99813
99822
  const name = record === null || record === void 0 ? void 0 : record.name_;
99814
99823
  return name == null || name === "" ? void 0 : String(name);
99815
99824
  }
99816
99825
  function createLotParentLabelEnricher(options) {
99817
- const { doc, valuePath, fieldType } = options;
99826
+ const { doc, valuePath, lookupBy = "name" } = options;
99818
99827
  return {
99819
99828
  id: `lot-parent-label:${valuePath}`,
99820
99829
  valuePathTemplate: valuePath,
@@ -99826,29 +99835,21 @@ function createLotParentLabelEnricher(options) {
99826
99835
  if (!isPresent(value)) return { [labelPath]: null };
99827
99836
  const label = resolveLotDisplayLabel(await withRequestCache.handleRequest("lot_parent_label_resolve", {
99828
99837
  value,
99829
- fieldType
99830
- }, () => resolveLotRecordByFieldValue(value, fieldType), 3e4));
99838
+ lookupBy
99839
+ }, () => resolveLotRecordByFieldValue(value, lookupBy), 3e4));
99831
99840
  if (label) return { [labelPath]: label };
99832
- if (fieldType === FIELD_TYPE.PRODUCTION_CONTAINER) return { [labelPath]: null };
99841
+ if (lookupBy === "id") return { [labelPath]: null };
99833
99842
  return { [labelPath]: String(value) };
99834
99843
  }
99835
99844
  };
99836
99845
  }
99837
- var LOT_PARENT_LABEL_FIELD_TYPES;
99838
99846
  var init_lot_parent_label_enricher = __esmMin((() => {
99839
- init_field_type();
99840
99847
  init_lot_display_label();
99841
99848
  init_api$1();
99842
99849
  init_core$1();
99843
99850
  init_withRequestCache();
99844
99851
  init_field_paths();
99845
99852
  init_enrich_utils();
99846
- LOT_PARENT_LABEL_FIELD_TYPES = /* @__PURE__ */ new Set([
99847
- FIELD_TYPE.MATERIAL_NO,
99848
- FIELD_TYPE.RELATED_LOT_NO,
99849
- FIELD_TYPE.SCRAP_MATERIAL_NO,
99850
- FIELD_TYPE.PRODUCTION_CONTAINER
99851
- ]);
99852
99853
  }));
99853
99854
  //#endregion
99854
99855
  //#region src/sdk/doc-runtime/utils/sub-field-config.ts
@@ -100074,50 +100075,58 @@ function buildFieldEnricherRegistrations(instances, ctx, doc) {
100074
100075
  const regs = [];
100075
100076
  const ofInstNumTargets = [];
100076
100077
  for (const instance of instances) {
100077
- var _instance$widgetMeta2;
100078
+ var _instance$widgetMeta2, _manifest$computed2;
100078
100079
  const fieldMeta = (_instance$widgetMeta2 = instance.widgetMeta) === null || _instance$widgetMeta2 === void 0 ? void 0 : _instance$widgetMeta2.field;
100079
100080
  const valuePath = instance.valuePath;
100080
100081
  if (!fieldMeta || !valuePath) continue;
100081
100082
  const ofInstNumTarget = tryCollectOfInstNumTarget(instance);
100082
100083
  if (ofInstNumTarget) ofInstNumTargets.push(ofInstNumTarget);
100083
100084
  const manifest = ctx.getFieldManifest(fieldMeta.fieldType);
100084
- const computed = manifest === null || manifest === void 0 ? void 0 : manifest.computed;
100085
- const valueChangeRules = normalizeValueChangeRules(computed === null || computed === void 0 ? void 0 : computed.onValueChangeRule);
100086
- if (valueChangeRules.some((rule) => rule.type === "hyperlink")) regs.push(createHyperlinkEnricher({
100087
- id: `hyperlink:${valuePath}`,
100088
- valuePathTemplate: valuePath,
100089
- match: createValuePathMatcher(valuePath),
100090
- doc,
100091
- widgetMeta: instance.widgetMeta
100092
- }));
100093
- if (valueChangeRules.some((rule) => rule.type === "id")) regs.push(createIdEnricher({
100094
- id: `id:${valuePath}`,
100095
- valuePathTemplate: valuePath,
100096
- match: createValuePathMatcher(valuePath),
100097
- doc,
100098
- widgetMeta: instance.widgetMeta
100099
- }));
100100
- const fieldType = fieldMeta.fieldType;
100101
- if (LOT_PARENT_LABEL_FIELD_TYPES.has(fieldType)) regs.push(createLotParentLabelEnricher({
100102
- doc,
100103
- valuePath,
100104
- fieldType
100105
- }));
100106
- else if (fieldNeedsLabelEnrichment(fieldType, manifest)) {
100107
- const enricherProps = resolveEnricherWidgetProps(instance, manifest);
100108
- regs.push(createLabelEnricher({
100109
- id: `label:${valuePath}`,
100110
- valuePathTemplate: valuePath,
100111
- match: createValuePathMatcher(valuePath),
100112
- doc,
100113
- widgetMeta: {
100114
- ...instance.widgetMeta,
100115
- props: enricherProps
100116
- },
100117
- fieldBinding: fieldMeta,
100118
- manifest,
100119
- loadFieldByKey: ctx.loadFieldByKey
100120
- }));
100085
+ const valueChangeRules = normalizeValueChangeRules(manifest === null || manifest === void 0 || (_manifest$computed2 = manifest.computed) === null || _manifest$computed2 === void 0 ? void 0 : _manifest$computed2.onValueChangeRule);
100086
+ if (!valueChangeRules.length) continue;
100087
+ const match = createValuePathMatcher(valuePath);
100088
+ const preferLotParentLabel = valueChangeRules.some((rule) => rule.type === "lot-parent-label");
100089
+ for (const rule of valueChangeRules) switch (rule.type) {
100090
+ case "hyperlink":
100091
+ regs.push(createHyperlinkEnricher({
100092
+ id: `hyperlink:${valuePath}`,
100093
+ valuePathTemplate: valuePath,
100094
+ match,
100095
+ doc,
100096
+ widgetMeta: instance.widgetMeta
100097
+ }));
100098
+ break;
100099
+ case "id":
100100
+ regs.push(createIdEnricher({
100101
+ id: `id:${valuePath}`,
100102
+ valuePathTemplate: valuePath,
100103
+ match,
100104
+ doc,
100105
+ widgetMeta: instance.widgetMeta
100106
+ }));
100107
+ break;
100108
+ case "lot-parent-label":
100109
+ regs.push(createLotParentLabelEnricher({
100110
+ doc,
100111
+ valuePath,
100112
+ lookupBy: rule.lookupBy ?? "name"
100113
+ }));
100114
+ break;
100115
+ case "label":
100116
+ if (preferLotParentLabel) break;
100117
+ regs.push(createLabelEnricher({
100118
+ id: `label:${valuePath}`,
100119
+ valuePathTemplate: valuePath,
100120
+ match,
100121
+ doc,
100122
+ widgetMeta: {
100123
+ ...instance.widgetMeta,
100124
+ props: resolveEnricherWidgetProps(instance, manifest)
100125
+ },
100126
+ fieldBinding: fieldMeta,
100127
+ manifest,
100128
+ loadFieldByKey: ctx.loadFieldByKey
100129
+ }));
100121
100130
  }
100122
100131
  }
100123
100132
  if (ofInstNumTargets.length) regs.push(createOfInstNumEnricher(doc, ofInstNumTargets));
@@ -100130,7 +100139,6 @@ var init_build_field_enrichers = __esmMin((() => {
100130
100139
  init_id_enricher();
100131
100140
  init_label_enricher();
100132
100141
  init_lot_parent_label_enricher();
100133
- init_label_resolve();
100134
100142
  init_static_label_enrichers();
100135
100143
  init_computed();
100136
100144
  init_field_props_schema_type();
@@ -138631,16 +138639,17 @@ async function resolveProductIdsFromLot(lotIdOrName, byName) {
138631
138639
  /** 用工单 id 取 product_id_ */
138632
138640
  async function resolveProductIdsFromMfgOrder(orderId) {
138633
138641
  try {
138634
- return pickProductIdsFromMfgOrderRow(await api$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
138642
+ const result = await api$1.apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey({
138635
138643
  modelCategory: "entity",
138636
138644
  modelKey: "em_mfg_order",
138637
138645
  bsKey: "biz_get_mfg_order_by_id"
138638
- }, { id_: orderId }, {}));
138646
+ }, { id_: orderId }, {});
138647
+ return pickProductIdsFromMfgOrderRow(unwrapBizServiceData(result) ?? (result && typeof result === "object" ? result : null));
138639
138648
  } catch {
138640
138649
  return [];
138641
138650
  }
138642
138651
  }
138643
- /** 物料下拉按产品 id 过滤:RDO 有版本用 base_id_.in,否则 id_.in */
138652
+ /** 物料下拉按产品 id 过滤:RDO 有版本用 base_id_.in,否则 id_.in;混用时 OR */
138644
138653
  function buildProductIdFilterQuery(productIds) {
138645
138654
  const baseIds = [];
138646
138655
  const ids = [];
@@ -138654,15 +138663,19 @@ function buildProductIdFilterQuery(productIds) {
138654
138663
  if (targetId) ids.push(targetId);
138655
138664
  }
138656
138665
  const uniqueBaseIds = uniqNonEmpty(baseIds);
138657
- if (uniqueBaseIds.length) return { "base_id_.in": uniqueBaseIds };
138658
138666
  const uniqueIds = uniqNonEmpty(ids);
138667
+ if (uniqueBaseIds.length && uniqueIds.length) return {
138668
+ "base_id_.in": uniqueBaseIds,
138669
+ "id_.in": uniqueIds,
138670
+ [ASSOC_FILTER_OR_EXP_KEYS]: ["base_id_.in", "id_.in"]
138671
+ };
138672
+ if (uniqueBaseIds.length) return { "base_id_.in": uniqueBaseIds };
138659
138673
  if (uniqueIds.length) return { "id_.in": uniqueIds };
138660
138674
  return {};
138661
138675
  }
138662
138676
  /**
138663
138677
  * 按物料「关联过滤」配置,回查源字段同源接口拿到 product_id_ 再拼查询参数。
138664
- * - 未开启 / 源值为空 → {}(不加过滤,不清空已选物料)
138665
- * - 源有值但解析不到产品 → 空命中条件(不退回全量产品)
138678
+ * 未开启 / 源值为空 / 解析不到产品 → {}(不加过滤,不清空已选物料)。
138666
138679
  */
138667
138680
  async function buildAssocFilterExtraParams(doc, widgetProps, runtimeValuePath) {
138668
138681
  if (!(widgetProps === null || widgetProps === void 0 ? void 0 : widgetProps.enableAssocFilter) || !widgetProps.assocFilterSourceField) return {};
@@ -138678,7 +138691,7 @@ async function buildAssocFilterExtraParams(doc, widgetProps, runtimeValuePath) {
138678
138691
  const idValue = doc.dataManager.get(getIdPath(valuePath));
138679
138692
  const sourceType = widgetProps.assocFilterSourceFieldType;
138680
138693
  let productIds = [];
138681
- if (sourceType === FIELD_TYPE.MFG_ORDER) productIds = await resolveProductIdsFromMfgOrder(String(value));
138694
+ if (sourceType === FIELD_TYPE.MFG_ORDER) productIds = await resolveProductIdsFromMfgOrder(!isNil(idValue) && idValue !== "" ? String(idValue) : String(value));
138682
138695
  else if (sourceType === FIELD_TYPE.MATERIAL_NO) {
138683
138696
  const hasId = !isNil(idValue) && idValue !== "";
138684
138697
  productIds = await resolveProductIdsFromLot(String(hasId ? idValue : value), !hasId);
@@ -138686,7 +138699,7 @@ async function buildAssocFilterExtraParams(doc, widgetProps, runtimeValuePath) {
138686
138699
  if (!productIds.length) return {};
138687
138700
  return buildProductIdFilterQuery(productIds);
138688
138701
  }
138689
- var PARENT_ROLES;
138702
+ var PARENT_ROLES, ASSOC_FILTER_OR_EXP_KEYS;
138690
138703
  var init_assoc_filter = __esmMin((() => {
138691
138704
  init_data();
138692
138705
  init_field_type();
@@ -138697,6 +138710,7 @@ var init_assoc_filter = __esmMin((() => {
138697
138710
  init_core$1();
138698
138711
  init_enum();
138699
138712
  PARENT_ROLES = /* @__PURE__ */ new Set([ContainerRoleConst.RELATED_PARENT, ContainerRoleConst.COLLINEAR_PARENT]);
138713
+ ASSOC_FILTER_OR_EXP_KEYS = "__orExpKeys";
138700
138714
  }));
138701
138715
  //#endregion
138702
138716
  //#region src/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.ts
@@ -142379,15 +142393,25 @@ function resolveFieldKey(widgetMeta, runtimeValuePath) {
142379
142393
  if (fromPath) return fromPath;
142380
142394
  return getLastSegment$1((_widgetMeta$field = widgetMeta.field) === null || _widgetMeta$field === void 0 ? void 0 : _widgetMeta$field.fieldLink) || "";
142381
142395
  }
142396
+ /**
142397
+ * 弹框要的是子批次 name_:
142398
+ * - 普通 LOT/SN:字段值本身就是子批次名
142399
+ * - 生产 LOT/SN:字段值是子批次 id_,需回查 name_(不能用 _lb_,关联子批时 _lb_ 是父批名)
142400
+ */
142401
+ async function resolveHyperlinkMaterialNo(widgetMeta, fieldKey, rawValue) {
142402
+ var _widgetMeta$field2;
142403
+ if (((_widgetMeta$field2 = widgetMeta.field) === null || _widgetMeta$field2 === void 0 ? void 0 : _widgetMeta$field2.fieldType) === FIELD_TYPE.PRODUCTION_CONTAINER || fieldKey === "production_container_id_") return await resolveProductionContainerChildName(rawValue) ?? getValue$1(rawValue, false);
142404
+ return getValue$1(rawValue, false);
142405
+ }
142382
142406
  async function resolveOpenFieldHyperlinkModalOptions(doc, widgetMeta, runtimeValuePath) {
142383
- var _widgetMeta$field2, _TableRuntimeContext$, _widgetMeta$field3, _widgetMeta$field4;
142407
+ var _widgetMeta$field3, _TableRuntimeContext$, _widgetMeta$field4;
142384
142408
  const rawValue = doc.dataManager.get(runtimeValuePath);
142385
142409
  const sub = parseSubtableFieldPath(runtimeValuePath);
142386
- const subFieldKey = (sub === null || sub === void 0 ? void 0 : sub.subFieldKey) || ((_widgetMeta$field2 = widgetMeta.field) === null || _widgetMeta$field2 === void 0 ? void 0 : _widgetMeta$field2.subFieldKey);
142410
+ const subFieldKey = (sub === null || sub === void 0 ? void 0 : sub.subFieldKey) || ((_widgetMeta$field3 = widgetMeta.field) === null || _widgetMeta$field3 === void 0 ? void 0 : _widgetMeta$field3.subFieldKey);
142387
142411
  const tableType = subFieldKey ? (_TableRuntimeContext$ = TableRuntimeContext.find(doc, subFieldKey)) === null || _TableRuntimeContext$ === void 0 ? void 0 : _TableRuntimeContext$.profile.type : void 0;
142388
142412
  const fieldKey = resolveFieldKey(widgetMeta, runtimeValuePath);
142389
142413
  return {
142390
- materialNo: ((_widgetMeta$field3 = widgetMeta.field) === null || _widgetMeta$field3 === void 0 ? void 0 : _widgetMeta$field3.fieldType) === FIELD_TYPE.PRODUCTION_CONTAINER || fieldKey === "production_container_id_" ? await resolveProductionContainerChildName(rawValue) ?? getValue$1(rawValue, false) : getValue$1(rawValue, false),
142414
+ materialNo: await resolveHyperlinkMaterialNo(widgetMeta, fieldKey, rawValue),
142391
142415
  fieldType: (_widgetMeta$field4 = widgetMeta.field) === null || _widgetMeta$field4 === void 0 ? void 0 : _widgetMeta$field4.fieldType,
142392
142416
  href: doc.dataManager.getHref(runtimeValuePath) ?? void 0,
142393
142417
  fieldKey: fieldKey || void 0,
@@ -142403,12 +142427,12 @@ async function openFieldHyperlinkModal(doc, widgetMeta, runtimeValuePath) {
142403
142427
  }
142404
142428
  var init_open_field_hyperlink = __esmMin((() => {
142405
142429
  init_data();
142430
+ init_lot_parent_label_enricher();
142406
142431
  init_table_runtime_context();
142432
+ init_field_type();
142407
142433
  init_form_value();
142408
142434
  init_TriggerUtil();
142409
142435
  init_core$1();
142410
- init_field_type();
142411
- init_lot_parent_label_enricher();
142412
142436
  }));
142413
142437
  //#endregion
142414
142438
  //#region src/runtime/canvas/__common__/widget-container/index.vue?vue&type=script&setup=true&name=widget-container&lang.ts
@@ -154719,7 +154743,7 @@ var manifest$47 = {
154719
154743
  renderers: { ...commonDefaultRenderers },
154720
154744
  propsSchema: "schema:field-business",
154721
154745
  defaultProps: { ...commonDefaultProps },
154722
- computed: { onValueChangeRule: idOnValueChangeRule }
154746
+ computed: { onValueChangeRule: [idOnValueChangeRule, lotParentLabelByNameRule] }
154723
154747
  };
154724
154748
  //#endregion
154725
154749
  //#region src/suites/edhr/manifest/field/business/scrap-qty-manifest.ts
@@ -155413,7 +155437,7 @@ var manifest$18 = {
155413
155437
  computed: {
155414
155438
  onlyMainModelCanDefault: true,
155415
155439
  skipDefaultWhenBelongingObject: true,
155416
- onValueChangeRule: [...hyperlinkAndIdOnValueChangeRules]
155440
+ onValueChangeRule: [...hyperlinkIdAndLotParentLabelRules]
155417
155441
  }
155418
155442
  };
155419
155443
  //#endregion
@@ -155527,7 +155551,7 @@ var manifest$14 = {
155527
155551
  type: "api",
155528
155552
  fetcher: "ref"
155529
155553
  },
155530
- onValueChangeRule: labelOnValueChangeRule
155554
+ onValueChangeRule: lotParentLabelByIdRule
155531
155555
  }
155532
155556
  };
155533
155557
  //#endregion
@@ -155599,7 +155623,7 @@ var manifest$11 = {
155599
155623
  defaultProps: { ...commonDefaultProps },
155600
155624
  computed: {
155601
155625
  onlyMainModelCanDefault: true,
155602
- onValueChangeRule: [...hyperlinkAndIdOnValueChangeRules]
155626
+ onValueChangeRule: [...hyperlinkIdAndLotParentLabelRules]
155603
155627
  }
155604
155628
  };
155605
155629
  //#endregion
@@ -158318,13 +158342,9 @@ var vueComponentMap = loadVueComponentModulesSync();
158318
158342
  var CONVENTION_PANEL_TYPES = [
158319
158343
  "panel:dynamic-table",
158320
158344
  "panel:warehouse-in-table",
158321
- "panel:warehouse-inbound-table",
158322
158345
  "panel:warehouse-out-table",
158323
- "panel:warehouse-outbound-table",
158324
158346
  "panel:warehouse-in-out-table",
158325
158347
  "panel:warehouse-inventory-table",
158326
- "panel:part-stocktake-table",
158327
- "panel:device-part-consume-table",
158328
158348
  "panel:warehouse-allocate-table",
158329
158349
  "panel:2d-table",
158330
158350
  "panel:material-consume-table",
@@ -160191,41 +160211,29 @@ var schema$25 = createTablePanelSchema("dynamic-table.basic", RepeatingSubTableP
160191
160211
  //#region src/suites/edhr/panel-schema/warehouse-in-table/warehouse-in-table.basic.ts
160192
160212
  var schema$24 = createTablePanelSchema("warehouse-in-table.basic", RepeatingSubTablePanel_default);
160193
160213
  //#endregion
160194
- //#region src/suites/edhr/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.ts
160195
- var schema$23 = createTablePanelSchema("warehouse-inbound-table.basic", RepeatingSubTablePanel_default);
160196
- //#endregion
160197
160214
  //#region src/suites/edhr/panel-schema/warehouse-out-table/warehouse-out-table.basic.ts
160198
- var schema$22 = createTablePanelSchema("warehouse-out-table.basic", RepeatingSubTablePanel_default);
160199
- //#endregion
160200
- //#region src/suites/edhr/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.ts
160201
- var schema$21 = createTablePanelSchema("warehouse-outbound-table.basic", RepeatingSubTablePanel_default);
160202
- //#endregion
160203
- //#region src/suites/edhr/panel-schema/part-stocktake-table/part-stocktake-table.basic.ts
160204
- var schema$20 = createTablePanelSchema("part-stocktake-table.basic", RepeatingSubTablePanel_default);
160205
- //#endregion
160206
- //#region src/suites/edhr/panel-schema/device-part-consume-table/device-part-consume-table.basic.ts
160207
- var schema$19 = createTablePanelSchema("device-part-consume-table.basic", RepeatingSubTablePanel_default);
160215
+ var schema$23 = createTablePanelSchema("warehouse-out-table.basic", RepeatingSubTablePanel_default);
160208
160216
  //#endregion
160209
160217
  //#region src/suites/edhr/panel-schema/warehouse-in-out-table/warehouse-in-out-table.basic.ts
160210
- var schema$18 = createTablePanelSchema("warehouse-in-out-table.basic", RepeatingSubTablePanel_default);
160218
+ var schema$22 = createTablePanelSchema("warehouse-in-out-table.basic", RepeatingSubTablePanel_default);
160211
160219
  //#endregion
160212
160220
  //#region src/suites/edhr/panel-schema/warehouse-inventory-table/warehouse-inventory-table.basic.ts
160213
- var schema$17 = createTablePanelSchema("warehouse-inventory-table.basic", RepeatingSubTablePanel_default);
160221
+ var schema$21 = createTablePanelSchema("warehouse-inventory-table.basic", RepeatingSubTablePanel_default);
160214
160222
  //#endregion
160215
160223
  //#region src/suites/edhr/panel-schema/material-balance-table/material-balance-table.basic.ts
160216
- var schema$16 = createTablePanelSchema("material-balance-table.basic", RepeatingSubTablePanel_default);
160224
+ var schema$20 = createTablePanelSchema("material-balance-table.basic", RepeatingSubTablePanel_default);
160217
160225
  //#endregion
160218
160226
  //#region src/suites/edhr/panel-schema/material-requisition-table/material-requisition-table.basic.ts
160219
- var schema$15 = createTablePanelSchema("material-requisition-table.basic", RepeatingSubTablePanel_default);
160227
+ var schema$19 = createTablePanelSchema("material-requisition-table.basic", RepeatingSubTablePanel_default);
160220
160228
  //#endregion
160221
160229
  //#region src/suites/edhr/panel-schema/warehouse-allocate-table/warehouse-allocate-table.basic.ts
160222
- var schema$14 = createTablePanelSchema("warehouse-allocate-table.basic", RepeatingSubTablePanel_default);
160230
+ var schema$18 = createTablePanelSchema("warehouse-allocate-table.basic", RepeatingSubTablePanel_default);
160223
160231
  //#endregion
160224
160232
  //#region src/suites/edhr/panel-schema/entrust-steril-batch-list-table/entrust-steril-batch-list-table.basic.ts
160225
- var schema$13 = createTablePanelSchema("entrust-steril-batch-list-table.basic", RepeatingSubTablePanel_default);
160233
+ var schema$17 = createTablePanelSchema("entrust-steril-batch-list-table.basic", RepeatingSubTablePanel_default);
160226
160234
  //#endregion
160227
160235
  //#region src/suites/edhr/panel-schema/pretreatment-list-table/pretreatment-list-table.basic.ts
160228
- var schema$12 = createTablePanelSchema("pretreatment-list-table.basic", RepeatingSubTablePanel_default);
160236
+ var schema$16 = createTablePanelSchema("pretreatment-list-table.basic", RepeatingSubTablePanel_default);
160229
160237
  //#endregion
160230
160238
  //#region src/suites/shared/panel/modules/sub-table-grid-info.vue?vue&type=script&setup=true&lang.ts
160231
160239
  init_base$2();
@@ -160376,7 +160384,7 @@ var _2DSubTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
160376
160384
  init__plugin_vue_export_helper();
160377
160385
  //#endregion
160378
160386
  //#region src/suites/edhr/panel-schema/2d-table/2d-table.basic.ts
160379
- var schema$11 = createTablePanelSchema("2d-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(_2DSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-12ebeb6f"]]));
160387
+ var schema$15 = createTablePanelSchema("2d-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(_2DSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-12ebeb6f"]]));
160380
160388
  //#endregion
160381
160389
  //#region src/suites/edhr/panel-schema/material-consume-table/parse-rule-add-btn.vue?vue&type=script&setup=true&name=parse-rule-add-btn&lang.ts
160382
160390
  init_base$2();
@@ -160888,7 +160896,7 @@ var MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default = /*@_
160888
160896
  init__plugin_vue_export_helper();
160889
160897
  //#endregion
160890
160898
  //#region src/suites/edhr/panel-schema/material-consume-table/material-consume-table.basic.ts
160891
- var schema$10 = createTablePanelSchema("material-consume-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9a20d3b9"]]));
160899
+ var schema$14 = createTablePanelSchema("material-consume-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9a20d3b9"]]));
160892
160900
  //#endregion
160893
160901
  //#region src/suites/edhr/panel-schema/_shared/BoundedSubTablePanel.vue?vue&type=script&setup=true&lang.ts
160894
160902
  init_table$1();
@@ -161011,7 +161019,7 @@ var BoundedSubTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE
161011
161019
  init__plugin_vue_export_helper();
161012
161020
  //#endregion
161013
161021
  //#region src/suites/edhr/panel-schema/fixed-table/fixed-table.basic.ts
161014
- var schema$9 = createTablePanelSchema("fixed-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(BoundedSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5a5ac7e8"]]));
161022
+ var schema$13 = createTablePanelSchema("fixed-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(BoundedSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5a5ac7e8"]]));
161015
161023
  //#endregion
161016
161024
  //#region src/suites/edhr/panel-schema/check-table/add-ds-btn.vue?vue&type=script&setup=true&name=add-ds-btn&lang.ts
161017
161025
  init_base$2();
@@ -161131,7 +161139,7 @@ var CheckTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
161131
161139
  init__plugin_vue_export_helper();
161132
161140
  //#endregion
161133
161141
  //#region src/suites/edhr/panel-schema/check-table/check-table.basic.ts
161134
- var schema$8 = createTablePanelSchema("check-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(CheckTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ff555ae9"]]));
161142
+ var schema$12 = createTablePanelSchema("check-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(CheckTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ff555ae9"]]));
161135
161143
  //#endregion
161136
161144
  //#region src/suites/edhr/panel-schema/data-group/DataGroupPanel.vue?vue&type=script&setup=true&lang.ts
161137
161145
  init_base$2();
@@ -161237,7 +161245,7 @@ var DataGroupPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
161237
161245
  init__plugin_vue_export_helper();
161238
161246
  //#endregion
161239
161247
  //#region src/suites/edhr/panel-schema/data-group/data-group.basic.ts
161240
- var schema$7 = {
161248
+ var schema$11 = {
161241
161249
  key: "data-group.basic",
161242
161250
  title: [
161243
161251
  {
@@ -161435,7 +161443,7 @@ function createDataGroup2DTitle({ active, widget }) {
161435
161443
  }
161436
161444
  //#endregion
161437
161445
  //#region src/suites/edhr/panel-schema/data-group-2d/data-group-2d.basic.ts
161438
- var schema$6 = {
161446
+ var schema$10 = {
161439
161447
  key: "data-group-2d.basic",
161440
161448
  title: [{
161441
161449
  key: "paper",
@@ -163802,7 +163810,7 @@ var DataInitPanel_vue_vue_type_script_setup_true_name_panel_data_init_lang_defau
163802
163810
  init__plugin_vue_export_helper();
163803
163811
  //#endregion
163804
163812
  //#region src/suites/edhr/panel-schema/data-init/data-init.basic.ts
163805
- var schema$5 = {
163813
+ var schema$9 = {
163806
163814
  key: "data-init.basic",
163807
163815
  title: "数据",
163808
163816
  render: /* @__PURE__ */ _plugin_vue_export_helper_default(DataInitPanel_vue_vue_type_script_setup_true_name_panel_data_init_lang_default, [["__scopeId", "data-v-004e3ce4"]])
@@ -165268,7 +165276,7 @@ var RulePanel_vue_vue_type_script_setup_true_name_panel_rule_lang_default = /*@_
165268
165276
  init__plugin_vue_export_helper();
165269
165277
  //#endregion
165270
165278
  //#region src/suites/edhr/panel-schema/rule/rule.basic.ts
165271
- var schema$4 = {
165279
+ var schema$8 = {
165272
165280
  key: "rule.basic",
165273
165281
  title: "规则",
165274
165282
  render: /* @__PURE__ */ _plugin_vue_export_helper_default(RulePanel_vue_vue_type_script_setup_true_name_panel_rule_lang_default, [["__scopeId", "data-v-1da79152"]])
@@ -166163,7 +166171,7 @@ var FieldPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
166163
166171
  init__plugin_vue_export_helper();
166164
166172
  //#endregion
166165
166173
  //#region src/suites/edhr/panel-schema/field/field.basic.ts
166166
- var schema$3 = {
166174
+ var schema$7 = {
166167
166175
  key: "field.basic",
166168
166176
  title: "字段属性",
166169
166177
  resolveTitle({ active, attachFieldTarget }) {
@@ -166237,7 +166245,7 @@ var PaperWidgetPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
166237
166245
  init__plugin_vue_export_helper();
166238
166246
  //#endregion
166239
166247
  //#region src/suites/edhr/panel-schema/paper-widget/paper-widget.basic.ts
166240
- var schema$2 = {
166248
+ var schema$6 = {
166241
166249
  key: "paper-widget.basic",
166242
166250
  title: "组件属性",
166243
166251
  render: /* @__PURE__ */ _plugin_vue_export_helper_default(PaperWidgetPanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-07cf8744"]])
@@ -166308,7 +166316,7 @@ var TableHeaderPanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
166308
166316
  init__plugin_vue_export_helper();
166309
166317
  //#endregion
166310
166318
  //#region src/suites/edhr/panel-schema/table-header/table-header.basic.ts
166311
- var schema$1 = {
166319
+ var schema$5 = {
166312
166320
  key: "table-header.basic",
166313
166321
  title: "表头",
166314
166322
  render: /* @__PURE__ */ _plugin_vue_export_helper_default(TableHeaderPanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-1c020e08"]])
@@ -166479,7 +166487,7 @@ var PaperHeaderFooterPanel_vue_vue_type_script_setup_true_lang_default = /*@__PU
166479
166487
  init__plugin_vue_export_helper();
166480
166488
  //#endregion
166481
166489
  //#region src/suites/edhr/panel-schema/paper-header-footer/paper-header-footer.basic.ts
166482
- var schema = {
166490
+ var schema$4 = {
166483
166491
  key: "paper-header-footer.basic",
166484
166492
  title: "页眉页脚属性",
166485
166493
  render: /* @__PURE__ */ _plugin_vue_export_helper_default(PaperHeaderFooterPanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-80e3a630"]])
@@ -166491,30 +166499,26 @@ function registryPanelSchemas() {
166491
166499
  "paper.basic": schema$26,
166492
166500
  "dynamic-table.basic": schema$25,
166493
166501
  "warehouse-in-table.basic": schema$24,
166494
- "warehouse-inbound-table.basic": schema$23,
166495
- "warehouse-out-table.basic": schema$22,
166496
- "warehouse-outbound-table.basic": schema$21,
166497
- "part-stocktake-table.basic": schema$20,
166498
- "device-part-consume-table.basic": schema$19,
166499
- "warehouse-in-out-table.basic": schema$18,
166500
- "warehouse-inventory-table.basic": schema$17,
166501
- "warehouse-allocate-table.basic": schema$14,
166502
- "entrust-steril-batch-list-table.basic": schema$13,
166503
- "pretreatment-list-table.basic": schema$12,
166504
- "2d-table.basic": schema$11,
166505
- "material-consume-table.basic": schema$10,
166506
- "material-balance-table.basic": schema$16,
166507
- "material-requisition-table.basic": schema$15,
166508
- "fixed-table.basic": schema$9,
166509
- "check-table.basic": schema$8,
166510
- "data-group.basic": schema$7,
166511
- "data-group-2d.basic": schema$6,
166512
- "data-init.basic": schema$5,
166513
- "rule.basic": schema$4,
166514
- "paper-header-footer.basic": schema,
166515
- "field.basic": schema$3,
166516
- "table-header.basic": schema$1,
166517
- "paper-widget.basic": schema$2
166502
+ "warehouse-out-table.basic": schema$23,
166503
+ "warehouse-in-out-table.basic": schema$22,
166504
+ "warehouse-inventory-table.basic": schema$21,
166505
+ "warehouse-allocate-table.basic": schema$18,
166506
+ "entrust-steril-batch-list-table.basic": schema$17,
166507
+ "pretreatment-list-table.basic": schema$16,
166508
+ "2d-table.basic": schema$15,
166509
+ "material-consume-table.basic": schema$14,
166510
+ "material-balance-table.basic": schema$20,
166511
+ "material-requisition-table.basic": schema$19,
166512
+ "fixed-table.basic": schema$13,
166513
+ "check-table.basic": schema$12,
166514
+ "data-group.basic": schema$11,
166515
+ "data-group-2d.basic": schema$10,
166516
+ "data-init.basic": schema$9,
166517
+ "rule.basic": schema$8,
166518
+ "paper-header-footer.basic": schema$4,
166519
+ "field.basic": schema$7,
166520
+ "table-header.basic": schema$5,
166521
+ "paper-widget.basic": schema$6
166518
166522
  };
166519
166523
  }
166520
166524
  //#endregion
@@ -173881,6 +173885,43 @@ var edhrSuitePlugin = {
173881
173885
  install: installEdhrSuite
173882
173886
  };
173883
173887
  //#endregion
173888
+ //#region src/suites/eqm/panel-router/index.ts
173889
+ /** EQM 业务表面板约定路由 */
173890
+ var EQM_CONVENTION_PANEL_TYPES = [
173891
+ "panel:warehouse-inbound-table",
173892
+ "panel:warehouse-outbound-table",
173893
+ "panel:part-stocktake-table",
173894
+ "panel:device-part-consume-table"
173895
+ ];
173896
+ function registryEqmPanelRouters() {
173897
+ const panelRouters = {};
173898
+ for (const panelType of EQM_CONVENTION_PANEL_TYPES) panelRouters[panelType] = () => `${panelType.slice(6)}.basic`;
173899
+ return panelRouters;
173900
+ }
173901
+ //#endregion
173902
+ //#region src/suites/eqm/panel-schema/warehouse-inbound-table/warehouse-inbound-table.basic.ts
173903
+ var schema$3 = createTablePanelSchema("warehouse-inbound-table.basic", RepeatingSubTablePanel_default);
173904
+ //#endregion
173905
+ //#region src/suites/eqm/panel-schema/warehouse-outbound-table/warehouse-outbound-table.basic.ts
173906
+ var schema$2 = createTablePanelSchema("warehouse-outbound-table.basic", RepeatingSubTablePanel_default);
173907
+ //#endregion
173908
+ //#region src/suites/eqm/panel-schema/part-stocktake-table/part-stocktake-table.basic.ts
173909
+ var schema$1 = createTablePanelSchema("part-stocktake-table.basic", RepeatingSubTablePanel_default);
173910
+ //#endregion
173911
+ //#region src/suites/eqm/panel-schema/device-part-consume-table/device-part-consume-table.basic.ts
173912
+ var schema = createTablePanelSchema("device-part-consume-table.basic", RepeatingSubTablePanel_default);
173913
+ //#endregion
173914
+ //#region src/suites/eqm/panel-schema/index.ts
173915
+ /** EQM 业务表面板 schema */
173916
+ function registryEqmPanelSchemas() {
173917
+ return {
173918
+ "warehouse-inbound-table.basic": schema$3,
173919
+ "warehouse-outbound-table.basic": schema$2,
173920
+ "part-stocktake-table.basic": schema$1,
173921
+ "device-part-consume-table.basic": schema
173922
+ };
173923
+ }
173924
+ //#endregion
173884
173925
  //#region src/suites/eqm/index.ts
173885
173926
  init_model_field_runtime();
173886
173927
  init_field_manifest();
@@ -173891,7 +173932,8 @@ init_registry$2();
173891
173932
  init_registry$1();
173892
173933
  var SUITE_KEY = "eqm";
173893
173934
  /**
173894
- * 当前复用 edhr 能力;可见性差异见 `suites/shared/suite-features.ts`
173935
+ * 复用 edhr 字段/组件能力;EQM 业务表面板在本套件注册。
173936
+ * 可见性差异见 `suites/shared/suite-features.ts`
173895
173937
  */
173896
173938
  function installEqmSuite() {
173897
173939
  FieldEngine.bootstrap({
@@ -173902,11 +173944,17 @@ function installEqmSuite() {
173902
173944
  fieldManifestRegistry.register(SUITE_KEY, fieldManifestMap);
173903
173945
  paperWidgetManifestRegistry.register(SUITE_KEY, paperWidgetManifestMap);
173904
173946
  componentRegistry.register(SUITE_KEY, vueComponentMap);
173905
- panelRouterRegistry.register(SUITE_KEY, registryPanelRouters());
173906
- panelSchemaRegistry.register(SUITE_KEY, registryPanelSchemas());
173947
+ panelRouterRegistry.register(SUITE_KEY, {
173948
+ ...registryPanelRouters(),
173949
+ ...registryEqmPanelRouters()
173950
+ });
173951
+ panelSchemaRegistry.register(SUITE_KEY, {
173952
+ ...registryPanelSchemas(),
173953
+ ...registryEqmPanelSchemas()
173954
+ });
173907
173955
  panelConfigRegistry.register(SUITE_KEY, panelConfigComponentMap);
173908
173956
  }
173909
- /** EQM 套件插件注册(当前复用 edhr 能力) */
173957
+ /** EQM 套件插件注册 */
173910
173958
  var eqmSuitePlugin = {
173911
173959
  key: SUITE_KEY,
173912
173960
  install: installEqmSuite
@@ -4,10 +4,14 @@ type AssocFilterWidgetProps = {
4
4
  assocFilterSourceField?: string;
5
5
  assocFilterSourceFieldType?: string;
6
6
  };
7
+ /**
8
+ * buildLikeQuery 识别:这些 key 彼此 OR,再与其余过滤 AND。
9
+ * 用于 RDO base_id_ 与普通 id_ 混用场景。
10
+ */
11
+ export declare const ASSOC_FILTER_OR_EXP_KEYS = "__orExpKeys";
7
12
  /**
8
13
  * 按物料「关联过滤」配置,回查源字段同源接口拿到 product_id_ 再拼查询参数。
9
- * - 未开启 / 源值为空 → {}(不加过滤,不清空已选物料)
10
- * - 源有值但解析不到产品 → 空命中条件(不退回全量产品)
14
+ * 未开启 / 源值为空 / 解析不到产品 → {}(不加过滤,不清空已选物料)。
11
15
  */
12
16
  export declare function buildAssocFilterExtraParams(doc: Doc, widgetProps: AssocFilterWidgetProps | undefined, runtimeValuePath?: string): Promise<Record<string, any>>;
13
17
  export {};
@@ -1,5 +1,5 @@
1
1
  import { ComponentDependency } from '../../../../shared/panel/modules/field-dependency-module/types';
2
- import { MapRule, PriorityRule, ResolveRule, HyperlinkRule, LabelRule, IdRule } from '../../../../../domain/field/field-props-schema-type';
2
+ import { MapRule, PriorityRule, ResolveRule, HyperlinkRule, LabelRule, IdRule, LotParentLabelRule } from '../../../../../domain/field/field-props-schema-type';
3
3
  import { FieldNodeRenderers } from '../../../../../core/widget';
4
4
  export declare const commonDefaultRenderers: FieldNodeRenderers;
5
5
  export declare const commonDefaultProps: {
@@ -96,7 +96,13 @@ export declare const labelOnValueChangeRule: LabelRule;
96
96
  export declare const hyperlinkOnValueChangeRule: HyperlinkRule;
97
97
  /** 值变化后补全批次唯一标识 _id_ */
98
98
  export declare const idOnValueChangeRule: IdRule;
99
+ /** LOT/SN:按 name_ 回查父批展示名写入 _lb_ */
100
+ export declare const lotParentLabelByNameRule: LotParentLabelRule;
101
+ /** 生产 LOT/SN:按 id_ 回查父批展示名写入 _lb_ */
102
+ export declare const lotParentLabelByIdRule: LotParentLabelRule;
99
103
  /** 同时补全 _href_ 与 _lb_(如批次号等追溯字段) */
100
104
  export declare const hyperlinkAndLabelOnValueChangeRules: readonly [HyperlinkRule, LabelRule];
101
105
  /** 批次号:补全 _href_ 与 _id_ */
102
106
  export declare const hyperlinkAndIdOnValueChangeRules: readonly [HyperlinkRule, IdRule];
107
+ /** 批次号:补全 _href_、_id_ 与父批展示 _lb_ */
108
+ export declare const hyperlinkIdAndLotParentLabelRules: readonly [HyperlinkRule, IdRule, LotParentLabelRule];
@@ -6,11 +6,7 @@ export declare function registryPanelSchemas(): {
6
6
  };
7
7
  'dynamic-table.basic': import('../../..').PanelSchema;
8
8
  'warehouse-in-table.basic': import('../../..').PanelSchema;
9
- 'warehouse-inbound-table.basic': import('../../..').PanelSchema;
10
9
  'warehouse-out-table.basic': import('../../..').PanelSchema;
11
- 'warehouse-outbound-table.basic': import('../../..').PanelSchema;
12
- 'part-stocktake-table.basic': import('../../..').PanelSchema;
13
- 'device-part-consume-table.basic': import('../../..').PanelSchema;
14
10
  'warehouse-in-out-table.basic': import('../../..').PanelSchema;
15
11
  'warehouse-inventory-table.basic': import('../../..').PanelSchema;
16
12
  'warehouse-allocate-table.basic': import('../../..').PanelSchema;
@@ -1,3 +1,3 @@
1
1
  import { WordSuitePlugin } from '../../sdk/types';
2
- /** EQM 套件插件注册(当前复用 edhr 能力) */
2
+ /** EQM 套件插件注册 */
3
3
  export declare const eqmSuitePlugin: WordSuitePlugin;
@@ -0,0 +1,2 @@
1
+ import { PanelRouterMap } from '../../../capabilities/panel/router/types';
2
+ export declare function registryEqmPanelRouters(): PanelRouterMap;
@@ -0,0 +1,7 @@
1
+ /** EQM 业务表面板 schema */
2
+ export declare function registryEqmPanelSchemas(): {
3
+ 'warehouse-inbound-table.basic': import('../../..').PanelSchema;
4
+ 'warehouse-outbound-table.basic': import('../../..').PanelSchema;
5
+ 'part-stocktake-table.basic': import('../../..').PanelSchema;
6
+ 'device-part-consume-table.basic': import('../../..').PanelSchema;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.1.74-beta.29",
3
+ "version": "0.1.74-beta.30",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",