@gct-paas/word 0.2.12-beta.0 → 0.2.15-beta.0

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.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @gct-paas/word v0.2.12-beta.0 */
1
+ /*! @gct-paas/word v0.2.15-beta.0 */
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, shallowReactive, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import Gt, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -34436,7 +34436,7 @@ var init_regionValuePath = __esmMin((() => {
34436
34436
  //#endregion
34437
34437
  //#region src/domain/table/data/dynamic-table/profile/index.ts
34438
34438
  var profile$21;
34439
- var init_profile$21 = __esmMin((() => {
34439
+ var init_profile$22 = __esmMin((() => {
34440
34440
  profile$21 = {
34441
34441
  type: "dynamic-table",
34442
34442
  label: "动态表",
@@ -34459,13 +34459,13 @@ var init_profile$21 = __esmMin((() => {
34459
34459
  //#endregion
34460
34460
  //#region src/domain/table/data/dynamic-table/index.ts
34461
34461
  var init_dynamic_table = __esmMin((() => {
34462
- init_profile$21();
34463
- init_profile$21();
34462
+ init_profile$22();
34463
+ init_profile$22();
34464
34464
  }));
34465
34465
  //#endregion
34466
34466
  //#region src/domain/table/data/fixed-table/profile/index.ts
34467
34467
  var profile$20;
34468
- var init_profile$20 = __esmMin((() => {
34468
+ var init_profile$21 = __esmMin((() => {
34469
34469
  profile$20 = {
34470
34470
  type: "fixed-table",
34471
34471
  label: "固定表",
@@ -34488,13 +34488,13 @@ var init_profile$20 = __esmMin((() => {
34488
34488
  //#endregion
34489
34489
  //#region src/domain/table/data/fixed-table/index.ts
34490
34490
  var init_fixed_table = __esmMin((() => {
34491
- init_profile$20();
34492
- init_profile$20();
34491
+ init_profile$21();
34492
+ init_profile$21();
34493
34493
  }));
34494
34494
  //#endregion
34495
34495
  //#region src/domain/table/data/two-d-table/profile/index.ts
34496
34496
  var profile$19;
34497
- var init_profile$19 = __esmMin((() => {
34497
+ var init_profile$20 = __esmMin((() => {
34498
34498
  profile$19 = {
34499
34499
  type: "two-d-table",
34500
34500
  label: "二维表",
@@ -34517,8 +34517,8 @@ var init_profile$19 = __esmMin((() => {
34517
34517
  //#endregion
34518
34518
  //#region src/domain/table/data/two-d-table/index.ts
34519
34519
  var init_two_d_table = __esmMin((() => {
34520
- init_profile$19();
34521
- init_profile$19();
34520
+ init_profile$20();
34521
+ init_profile$20();
34522
34522
  }));
34523
34523
  //#endregion
34524
34524
  //#region src/domain/table/runtime/runtime-handlers.ts
@@ -34912,6 +34912,10 @@ var init_field_type = __esmMin((() => {
34912
34912
  */
34913
34913
  PRODUCT_CHECK_QTY: "product_check_qty",
34914
34914
  /**
34915
+ * 放行数量
34916
+ */
34917
+ PRODUCT_RELEASE_QTY: "product_release_qty",
34918
+ /**
34915
34919
  * 材料检验数量
34916
34920
  */
34917
34921
  MATERIAL_CHECK_QTY: "material_check_qty",
@@ -35583,7 +35587,7 @@ function isProductManuallyEditable$1(ctx) {
35583
35587
  return Boolean(ctx.rowData[F$17.materialNo]) && !ctx.rowData[F$17.materialNoId];
35584
35588
  }
35585
35589
  var TABLE_TYPE$16, profile$18;
35586
- var init_profile$18 = __esmMin((() => {
35590
+ var init_profile$19 = __esmMin((() => {
35587
35591
  init_field_type();
35588
35592
  init_fields$19();
35589
35593
  init_field_keys$17();
@@ -35798,6 +35802,7 @@ function toFormatValue(fieldType, value) {
35798
35802
  FIELD_TYPE.DOUBLE,
35799
35803
  FIELD_TYPE.DECIMAL,
35800
35804
  FIELD_TYPE.PRODUCTION_QTY,
35805
+ FIELD_TYPE.PRODUCT_RELEASE_QTY,
35801
35806
  FIELD_TYPE.INSPECTION_QTY,
35802
35807
  FIELD_TYPE.INSPECTION_MODULE_QTY
35803
35808
  ].includes(fieldType)) {
@@ -113543,7 +113548,7 @@ var init_BaseRegistry = __esmMin((() => {
113543
113548
  //#endregion
113544
113549
  //#region src/capabilities/field-manifest/registry.ts
113545
113550
  var FieldManifestRegistry, fieldManifestRegistry;
113546
- var init_registry$6 = __esmMin((() => {
113551
+ var init_registry$7 = __esmMin((() => {
113547
113552
  init_BaseRegistry();
113548
113553
  FieldManifestRegistry = class extends BaseRegistry {
113549
113554
  register(suiteKey, manifests) {
@@ -113555,9 +113560,9 @@ var init_registry$6 = __esmMin((() => {
113555
113560
  //#endregion
113556
113561
  //#region src/capabilities/field-manifest/service.ts
113557
113562
  var FieldManifestService;
113558
- var init_service$6 = __esmMin((() => {
113563
+ var init_service$7 = __esmMin((() => {
113559
113564
  init_BaseService();
113560
- init_registry$6();
113565
+ init_registry$7();
113561
113566
  init_field_type();
113562
113567
  FieldManifestService = class extends BaseService {
113563
113568
  constructor(suiteKey) {
@@ -113580,8 +113585,8 @@ var init_types$10 = __esmMin((() => {}));
113580
113585
  //#endregion
113581
113586
  //#region src/capabilities/field-manifest/index.ts
113582
113587
  var init_field_manifest = __esmMin((() => {
113583
- init_service$6();
113584
- init_registry$6();
113588
+ init_service$7();
113589
+ init_registry$7();
113585
113590
  init_types$10();
113586
113591
  }));
113587
113592
  //#endregion
@@ -114370,7 +114375,7 @@ var init_register_handlers$15 = __esmMin((() => {
114370
114375
  //#endregion
114371
114376
  //#region src/domain/table/business/check/check-table/profile/index.ts
114372
114377
  var TABLE_TYPE$15, profile$17;
114373
- var init_profile$17 = __esmMin((() => {
114378
+ var init_profile$18 = __esmMin((() => {
114374
114379
  TABLE_TYPE$15 = "check-table";
114375
114380
  profile$17 = {
114376
114381
  type: TABLE_TYPE$15,
@@ -114758,7 +114763,7 @@ var init_actions$7 = __esmMin((() => {
114758
114763
  //#region src/domain/table/business/check/check-table/index.ts
114759
114764
  var init_check_table = __esmMin((() => {
114760
114765
  init_register_handlers$15();
114761
- init_profile$17();
114766
+ init_profile$18();
114762
114767
  init_field_keys$16();
114763
114768
  init_runtime$1();
114764
114769
  init_actions$7();
@@ -116258,7 +116263,7 @@ function buildQuickSearchFieldOptions(fields = []) {
116258
116263
  function normalizeSearchFieldKey(field) {
116259
116264
  return field.includes(".") ? field : `${field}.iLike`;
116260
116265
  }
116261
- function joinAnd(keys) {
116266
+ function joinAnd$1(keys) {
116262
116267
  if (keys.length === 0) return "";
116263
116268
  if (keys.length === 1) return keys[0];
116264
116269
  return `AND(${keys.join(",")})`;
@@ -116292,10 +116297,10 @@ function buildLikeQuery(searchFields, keyword, extraQuery = {}, options) {
116292
116297
  const orKeys = filterKeys.filter((k) => orExpKeys.has(k));
116293
116298
  const andKeys = filterKeys.filter((k) => !orExpKeys.has(k));
116294
116299
  const orExp = joinOr(orKeys);
116295
- const andExp = joinAnd(andKeys);
116300
+ const andExp = joinAnd$1(andKeys);
116296
116301
  if (andExp && orExp) filterExp = `AND(${andExp},${orExp})`;
116297
116302
  else filterExp = andExp || orExp;
116298
- } else filterExp = filterCombine === "or" ? joinOr(filterKeys) : joinAnd(filterKeys);
116303
+ } else filterExp = filterCombine === "or" ? joinOr(filterKeys) : joinAnd$1(filterKeys);
116299
116304
  const likeExp = joinOr(searchKeys);
116300
116305
  let exp = "";
116301
116306
  if (filterExp && likeExp) exp = `AND(${filterExp},${likeExp})`;
@@ -116383,11 +116388,11 @@ var init_selectStrategy = __esmMin((() => {
116383
116388
  displayRelatedParent: true,
116384
116389
  buildQuery({ keyword, extraParams }) {
116385
116390
  return buildLikeQuery([
116386
- "name_",
116387
- "related_parent_name_",
116388
- "product_id_code_",
116389
- "product_id_name_",
116390
- "spec_"
116391
+ "name_.iLike:batch",
116392
+ "related_parent_name_.iLike:related",
116393
+ "product_id_$code_.iLike",
116394
+ "product_id_$name_.iLike",
116395
+ "product_id_$spec_.iLike"
116391
116396
  ], keyword, {
116392
116397
  "container_role_.ne": ContainerRoleConst.RELATED_PARENT,
116393
116398
  ...extraParams
@@ -120309,7 +120314,7 @@ var init_row_change_handlers$13 = __esmMin((() => {
120309
120314
  //#region src/domain/table/business/warehouse/warehouse-in/runtime/register-handlers.ts
120310
120315
  var init_register_handlers$14 = __esmMin((() => {
120311
120316
  init_runtime_handlers();
120312
- init_profile$18();
120317
+ init_profile$19();
120313
120318
  init_row_change_handlers$13();
120314
120319
  registerRowHandler(TABLE_TYPE$16, "on-material-no-change", handleMaterialNoChange$1);
120315
120320
  registerRowHandler(TABLE_TYPE$16, "on-product-id-change", handleProductIdChange$4);
@@ -120685,8 +120690,8 @@ var init_actions$6 = __esmMin((() => {
120685
120690
  //#region src/domain/table/business/warehouse/warehouse-in/index.ts
120686
120691
  var init_warehouse_in = __esmMin((() => {
120687
120692
  init_register_handlers$14();
120688
- init_profile$18();
120689
- init_profile$18();
120693
+ init_profile$19();
120694
+ init_profile$19();
120690
120695
  init_actions$6();
120691
120696
  }));
120692
120697
  //#endregion
@@ -120818,7 +120823,7 @@ var init_fields$17 = __esmMin((() => {
120818
120823
  //#endregion
120819
120824
  //#region src/domain/table/business/warehouse/warehouse-inbound/profile/index.ts
120820
120825
  var TABLE_TYPE$14, profile$16;
120821
- var init_profile$16 = __esmMin((() => {
120826
+ var init_profile$17 = __esmMin((() => {
120822
120827
  init_field_type();
120823
120828
  init_fields$17();
120824
120829
  init_field_keys$15();
@@ -120887,7 +120892,7 @@ var init_row_change_handlers$12 = __esmMin((() => {
120887
120892
  //#region src/domain/table/business/warehouse/warehouse-inbound/runtime/register-handlers.ts
120888
120893
  var init_register_handlers$13 = __esmMin((() => {
120889
120894
  init_runtime_handlers();
120890
- init_profile$16();
120895
+ init_profile$17();
120891
120896
  init_row_change_handlers$12();
120892
120897
  registerRowHandler(TABLE_TYPE$14, "on-part-id-change", handlePartIdChange$3);
120893
120898
  }));
@@ -120895,8 +120900,8 @@ var init_register_handlers$13 = __esmMin((() => {
120895
120900
  //#region src/domain/table/business/warehouse/warehouse-inbound/index.ts
120896
120901
  var init_warehouse_inbound = __esmMin((() => {
120897
120902
  init_register_handlers$13();
120898
- init_profile$16();
120899
- init_profile$16();
120903
+ init_profile$17();
120904
+ init_profile$17();
120900
120905
  }));
120901
120906
  //#endregion
120902
120907
  //#region src/domain/table/business/warehouse/warehouse-out/profile/field-keys.ts
@@ -121059,7 +121064,7 @@ var init_fields$16 = __esmMin((() => {
121059
121064
  //#endregion
121060
121065
  //#region src/domain/table/business/warehouse/warehouse-out/profile/index.ts
121061
121066
  var TABLE_TYPE$13, profile$15;
121062
- var init_profile$15 = __esmMin((() => {
121067
+ var init_profile$16 = __esmMin((() => {
121063
121068
  init_field_type();
121064
121069
  init_fields$16();
121065
121070
  init_field_keys$14();
@@ -121168,7 +121173,7 @@ var init_row_change_handlers$11 = __esmMin((() => {
121168
121173
  //#region src/domain/table/business/warehouse/warehouse-out/runtime/register-handlers.ts
121169
121174
  var init_register_handlers$12 = __esmMin((() => {
121170
121175
  init_runtime_handlers();
121171
- init_profile$15();
121176
+ init_profile$16();
121172
121177
  init_row_change_handlers$11();
121173
121178
  registerRowHandler(TABLE_TYPE$13, "on-product-id-change", handleProductIdChange$3);
121174
121179
  }));
@@ -121261,8 +121266,8 @@ var init_actions$5 = __esmMin((() => {
121261
121266
  //#region src/domain/table/business/warehouse/warehouse-out/index.ts
121262
121267
  var init_warehouse_out = __esmMin((() => {
121263
121268
  init_register_handlers$12();
121264
- init_profile$15();
121265
- init_profile$15();
121269
+ init_profile$16();
121270
+ init_profile$16();
121266
121271
  init_actions$5();
121267
121272
  }));
121268
121273
  //#endregion
@@ -121403,7 +121408,7 @@ var init_fields$15 = __esmMin((() => {
121403
121408
  //#endregion
121404
121409
  //#region src/domain/table/business/warehouse/warehouse-outbound/profile/index.ts
121405
121410
  var TABLE_TYPE$12, profile$14;
121406
- var init_profile$14 = __esmMin((() => {
121411
+ var init_profile$15 = __esmMin((() => {
121407
121412
  init_fields$15();
121408
121413
  init_field_keys$13();
121409
121414
  TABLE_TYPE$12 = "warehouse-outbound";
@@ -121461,7 +121466,7 @@ var init_row_change_handlers$10 = __esmMin((() => {
121461
121466
  //#region src/domain/table/business/warehouse/warehouse-outbound/runtime/register-handlers.ts
121462
121467
  var init_register_handlers$11 = __esmMin((() => {
121463
121468
  init_runtime_handlers();
121464
- init_profile$14();
121469
+ init_profile$15();
121465
121470
  init_row_change_handlers$10();
121466
121471
  registerRowHandler(TABLE_TYPE$12, "on-part-id-change", handlePartIdChange$2);
121467
121472
  }));
@@ -121469,8 +121474,8 @@ var init_register_handlers$11 = __esmMin((() => {
121469
121474
  //#region src/domain/table/business/warehouse/warehouse-outbound/index.ts
121470
121475
  var init_warehouse_outbound = __esmMin((() => {
121471
121476
  init_register_handlers$11();
121472
- init_profile$14();
121473
- init_profile$14();
121477
+ init_profile$15();
121478
+ init_profile$15();
121474
121479
  }));
121475
121480
  //#endregion
121476
121481
  //#region src/domain/table/business/warehouse/warehouse-in-out/profile/fields.ts
@@ -121523,7 +121528,7 @@ var init_field_keys$12 = __esmMin((() => {
121523
121528
  //#endregion
121524
121529
  //#region src/domain/table/business/warehouse/warehouse-in-out/profile/index.ts
121525
121530
  var profile$13;
121526
- var init_profile$13 = __esmMin((() => {
121531
+ var init_profile$14 = __esmMin((() => {
121527
121532
  init_field_type();
121528
121533
  init_fields$14();
121529
121534
  init_field_keys$12();
@@ -121565,8 +121570,8 @@ var init_profile$13 = __esmMin((() => {
121565
121570
  //#endregion
121566
121571
  //#region src/domain/table/business/warehouse/warehouse-in-out/index.ts
121567
121572
  var init_warehouse_in_out = __esmMin((() => {
121568
- init_profile$13();
121569
- init_profile$13();
121573
+ init_profile$14();
121574
+ init_profile$14();
121570
121575
  }));
121571
121576
  //#endregion
121572
121577
  //#region src/domain/table/business/warehouse/warehouse-inventory/types.ts
@@ -121829,7 +121834,7 @@ var init_fields$13 = __esmMin((() => {
121829
121834
  //#endregion
121830
121835
  //#region src/domain/table/business/warehouse/warehouse-inventory/profile/index.ts
121831
121836
  var TABLE_TYPE$11, profile$12;
121832
- var init_profile$12 = __esmMin((() => {
121837
+ var init_profile$13 = __esmMin((() => {
121833
121838
  init_field_type();
121834
121839
  init_fields$13();
121835
121840
  init_field_keys$11();
@@ -122040,7 +122045,7 @@ var init_register_handlers$10 = __esmMin((() => {
122040
122045
  init_static_label_enrichers();
122041
122046
  init_label_enricher();
122042
122047
  init_runtime_handlers();
122043
- init_profile$12();
122048
+ init_profile$13();
122044
122049
  init_field_keys$11();
122045
122050
  init_stocktake_calc();
122046
122051
  init_stocktake_dimension();
@@ -122080,7 +122085,7 @@ var init_types$6 = __esmMin((() => {}));
122080
122085
  var TableRuntimeContext;
122081
122086
  var init_table_runtime_context = __esmMin((() => {
122082
122087
  init_data();
122083
- init_registry$5();
122088
+ init_registry$6();
122084
122089
  init_types$6();
122085
122090
  init_table_runtime_utils();
122086
122091
  init_defineProperty();
@@ -122319,7 +122324,7 @@ var init_actions$4 = __esmMin((() => {
122319
122324
  //#region src/domain/table/business/warehouse/warehouse-inventory/index.ts
122320
122325
  var init_warehouse_inventory = __esmMin((() => {
122321
122326
  init_register_handlers$10();
122322
- init_profile$12();
122327
+ init_profile$13();
122323
122328
  init_runtime();
122324
122329
  init_actions$4();
122325
122330
  init_types$7();
@@ -122472,7 +122477,7 @@ var init_fields$12 = __esmMin((() => {
122472
122477
  //#endregion
122473
122478
  //#region src/domain/table/business/warehouse/part-stocktake/profile/index.ts
122474
122479
  var TABLE_TYPE$10, profile$11;
122475
- var init_profile$11 = __esmMin((() => {
122480
+ var init_profile$12 = __esmMin((() => {
122476
122481
  init_fields$12();
122477
122482
  init_field_keys$10();
122478
122483
  TABLE_TYPE$10 = "part-stocktake";
@@ -122550,7 +122555,7 @@ var init_row_change_handlers$8 = __esmMin((() => {
122550
122555
  var init_register_handlers$9 = __esmMin((() => {
122551
122556
  init_runtime_handlers();
122552
122557
  init_stocktake_calc();
122553
- init_profile$11();
122558
+ init_profile$12();
122554
122559
  init_row_change_handlers$8();
122555
122560
  registerRowHandler(TABLE_TYPE$10, "stocktake-derived", refreshStocktakeDerivedFields);
122556
122561
  registerRowHandler(TABLE_TYPE$10, "on-part-id-change", handlePartIdChange$1);
@@ -122559,8 +122564,8 @@ var init_register_handlers$9 = __esmMin((() => {
122559
122564
  //#region src/domain/table/business/warehouse/part-stocktake/index.ts
122560
122565
  var init_part_stocktake = __esmMin((() => {
122561
122566
  init_register_handlers$9();
122562
- init_profile$11();
122563
- init_profile$11();
122567
+ init_profile$12();
122568
+ init_profile$12();
122564
122569
  }));
122565
122570
  //#endregion
122566
122571
  //#region src/domain/table/business/warehouse/device-part-consume/profile/field-keys.ts
@@ -122699,7 +122704,7 @@ var init_fields$11 = __esmMin((() => {
122699
122704
  //#endregion
122700
122705
  //#region src/domain/table/business/warehouse/device-part-consume/profile/index.ts
122701
122706
  var TABLE_TYPE$9, profile$10;
122702
- var init_profile$10 = __esmMin((() => {
122707
+ var init_profile$11 = __esmMin((() => {
122703
122708
  init_fields$11();
122704
122709
  init_field_keys$9();
122705
122710
  TABLE_TYPE$9 = "device-part-consume";
@@ -122760,7 +122765,7 @@ var init_row_change_handlers$7 = __esmMin((() => {
122760
122765
  //#region src/domain/table/business/warehouse/device-part-consume/runtime/register-handlers.ts
122761
122766
  var init_register_handlers$8 = __esmMin((() => {
122762
122767
  init_runtime_handlers();
122763
- init_profile$10();
122768
+ init_profile$11();
122764
122769
  init_row_change_handlers$7();
122765
122770
  registerRowHandler(TABLE_TYPE$9, "on-part-id-change", handlePartIdChange);
122766
122771
  }));
@@ -122768,8 +122773,8 @@ var init_register_handlers$8 = __esmMin((() => {
122768
122773
  //#region src/domain/table/business/warehouse/device-part-consume/index.ts
122769
122774
  var init_device_part_consume = __esmMin((() => {
122770
122775
  init_register_handlers$8();
122771
- init_profile$10();
122772
- init_profile$10();
122776
+ init_profile$11();
122777
+ init_profile$11();
122773
122778
  }));
122774
122779
  //#endregion
122775
122780
  //#region src/domain/table/business/warehouse/warehouse-allocate/profile/field-keys.ts
@@ -122947,7 +122952,7 @@ var init_fields$10 = __esmMin((() => {
122947
122952
  //#endregion
122948
122953
  //#region src/domain/table/business/warehouse/warehouse-allocate/profile/index.ts
122949
122954
  var TABLE_TYPE$8, profile$9;
122950
- var init_profile$9 = __esmMin((() => {
122955
+ var init_profile$10 = __esmMin((() => {
122951
122956
  init_field_type();
122952
122957
  init_field_keys$8();
122953
122958
  init_fields$10();
@@ -123060,7 +123065,7 @@ var init_row_change_handlers$6 = __esmMin((() => {
123060
123065
  //#region src/domain/table/business/warehouse/warehouse-allocate/runtime/register-handlers.ts
123061
123066
  var init_register_handlers$7 = __esmMin((() => {
123062
123067
  init_runtime_handlers();
123063
- init_profile$9();
123068
+ init_profile$10();
123064
123069
  init_row_change_handlers$6();
123065
123070
  registerRowHandler(TABLE_TYPE$8, "on-product-id-change", handleProductIdChange$1);
123066
123071
  }));
@@ -123127,7 +123132,7 @@ var init_actions$3 = __esmMin((() => {
123127
123132
  //#endregion
123128
123133
  //#region src/domain/table/business/warehouse/warehouse-allocate/index.ts
123129
123134
  var init_warehouse_allocate = __esmMin((() => {
123130
- init_profile$9();
123135
+ init_profile$10();
123131
123136
  init_register_handlers$7();
123132
123137
  init_actions$3();
123133
123138
  }));
@@ -123171,7 +123176,7 @@ var init_fields$9 = __esmMin((() => {
123171
123176
  //#endregion
123172
123177
  //#region src/domain/table/business/material/material-consume/profile/index.ts
123173
123178
  var TABLE_TYPE$7, profile$8;
123174
- var init_profile$8 = __esmMin((() => {
123179
+ var init_profile$9 = __esmMin((() => {
123175
123180
  init_types$5();
123176
123181
  init_fields$9();
123177
123182
  TABLE_TYPE$7 = "material-consume";
@@ -123248,7 +123253,7 @@ var init_row_change_handlers$5 = __esmMin((() => {
123248
123253
  //#region src/domain/table/business/material/material-consume/runtime/register-handlers.ts
123249
123254
  var init_register_handlers$6 = __esmMin((() => {
123250
123255
  init_runtime_handlers();
123251
- init_profile$8();
123256
+ init_profile$9();
123252
123257
  init_row_change_handlers$5();
123253
123258
  registerRowHandler(TABLE_TYPE$7, "on-qty-change", handleQtyChange);
123254
123259
  }));
@@ -123256,8 +123261,8 @@ var init_register_handlers$6 = __esmMin((() => {
123256
123261
  //#region src/domain/table/business/material/material-consume/index.ts
123257
123262
  var init_material_consume$1 = __esmMin((() => {
123258
123263
  init_register_handlers$6();
123259
- init_profile$8();
123260
- init_profile$8();
123264
+ init_profile$9();
123265
+ init_profile$9();
123261
123266
  }));
123262
123267
  //#endregion
123263
123268
  //#region src/domain/table/business/material/material-balance/profile/field-keys.ts
@@ -123325,7 +123330,7 @@ var init_fields$8 = __esmMin((() => {
123325
123330
  //#endregion
123326
123331
  //#region src/domain/table/business/material/material-balance/profile/index.ts
123327
123332
  var TABLE_TYPE$6, profile$7;
123328
- var init_profile$7 = __esmMin((() => {
123333
+ var init_profile$8 = __esmMin((() => {
123329
123334
  init_field_keys$7();
123330
123335
  init_fields$8();
123331
123336
  TABLE_TYPE$6 = "material-balance";
@@ -123372,7 +123377,7 @@ var init_profile$7 = __esmMin((() => {
123372
123377
  //#region src/domain/table/business/material/material-balance/runtime/register-handlers.ts
123373
123378
  var init_register_handlers$5 = __esmMin((() => {
123374
123379
  init_runtime_handlers();
123375
- init_profile$7();
123380
+ init_profile$8();
123376
123381
  init_field_keys$7();
123377
123382
  registerInitLoadMapper(TABLE_TYPE$6, "init", (records, ctx) => {
123378
123383
  var _ctx$dict;
@@ -123457,7 +123462,7 @@ async function fetchMaterialConsumeGroupProduct(doc) {
123457
123462
  var init_fetch_material_consume_data = __esmMin((() => {
123458
123463
  init_biz_service_api();
123459
123464
  init_table_runtime_utils();
123460
- init_profile$7();
123465
+ init_profile$8();
123461
123466
  }));
123462
123467
  //#endregion
123463
123468
  //#region src/domain/table/business/material/material-balance/actions/open-consume-modal.ts
@@ -123501,7 +123506,7 @@ var init_actions$2 = __esmMin((() => {
123501
123506
  //#endregion
123502
123507
  //#region src/domain/table/business/material/material-balance/index.ts
123503
123508
  var init_material_balance = __esmMin((() => {
123504
- init_profile$7();
123509
+ init_profile$8();
123505
123510
  init_register_handlers$5();
123506
123511
  init_actions$2();
123507
123512
  }));
@@ -123592,7 +123597,7 @@ var init_fields$7 = __esmMin((() => {
123592
123597
  //#endregion
123593
123598
  //#region src/domain/table/business/material/material-requisition/profile/index.ts
123594
123599
  var TABLE_TYPE$5, profile$6;
123595
- var init_profile$6 = __esmMin((() => {
123600
+ var init_profile$7 = __esmMin((() => {
123596
123601
  init_field_type();
123597
123602
  init_fields$7();
123598
123603
  init_field_keys$6();
@@ -123673,7 +123678,7 @@ var init_row_change_handlers$4 = __esmMin((() => {
123673
123678
  //#region src/domain/table/business/material/material-requisition/runtime/register-handlers.ts
123674
123679
  var init_register_handlers$4 = __esmMin((() => {
123675
123680
  init_runtime_handlers();
123676
- init_profile$6();
123681
+ init_profile$7();
123677
123682
  init_row_change_handlers$4();
123678
123683
  registerRowHandler(TABLE_TYPE$5, "on-product-id-change", handleProductIdChange);
123679
123684
  }));
@@ -123681,8 +123686,8 @@ var init_register_handlers$4 = __esmMin((() => {
123681
123686
  //#region src/domain/table/business/material/material-requisition/index.ts
123682
123687
  var init_material_requisition = __esmMin((() => {
123683
123688
  init_register_handlers$4();
123684
- init_profile$6();
123685
- init_profile$6();
123689
+ init_profile$7();
123690
+ init_profile$7();
123686
123691
  }));
123687
123692
  //#endregion
123688
123693
  //#region src/domain/table/business/shared/production-container-hyperlink-enricher.ts
@@ -123792,9 +123797,10 @@ var init_field_keys$5 = __esmMin((() => {
123792
123797
  function getForeignProductField(fieldKey) {
123793
123798
  return (foreignData) => (foreignData === null || foreignData === void 0 ? void 0 : foreignData[fieldKey]) ?? "";
123794
123799
  }
123795
- var sourceProductProfile, targetFields, fields$5;
123800
+ var sourceProductProfile, fields$5;
123796
123801
  var init_fields$6 = __esmMin((() => {
123797
123802
  init_enum();
123803
+ init_field_paths();
123798
123804
  init_field_keys$5();
123799
123805
  sourceProductProfile = {
123800
123806
  match: { fieldKey: F$5.sourceProduct },
@@ -123845,27 +123851,58 @@ var init_fields$6 = __esmMin((() => {
123845
123851
  }
123846
123852
  ]
123847
123853
  };
123848
- targetFields = {
123849
- [F$5.sourceMaterialNo]: F$5.targetMaterialNo,
123850
- [F$5.sourceProductName]: F$5.targetProductName,
123851
- [F$5.sourceProductCode]: F$5.targetProductCode,
123852
- [F$5.sourceProductSpec]: F$5.targetProductSpec,
123853
- [F$5.sourceQtyConsumed]: F$5.targetQtyConsumed
123854
- };
123855
123854
  fields$5 = [
123856
123855
  sourceProductProfile,
123857
123856
  {
123858
123857
  match: { fieldKey: F$5.targetProduct },
123859
123858
  optionFillSource: "enrichment",
123860
- selectSource: sourceProductProfile.selectSource,
123861
- fillFromOption: sourceProductProfile.fillFromOption.map((def) => ({
123862
- ...def,
123863
- toField: targetFields[def.toField]
123864
- }))
123859
+ selectSource: {
123860
+ dataSource: "lot2sn",
123861
+ columnsKey: "lot-sn",
123862
+ isTree: false,
123863
+ allowManualInput: false,
123864
+ optionMapping: {
123865
+ value: "product_id_",
123866
+ label: "product_id_name_"
123867
+ },
123868
+ optionIdField: getIdPath(F$5.targetMaterialNo),
123869
+ baseQuery: { "container_role_.ne": ContainerRoleConst.RELATED_PARENT },
123870
+ searchFields: [
123871
+ "name_",
123872
+ "related_parent_name_",
123873
+ "product_id_code_",
123874
+ "product_id_name_",
123875
+ "spec_"
123876
+ ],
123877
+ searchStyle: "quick"
123878
+ },
123879
+ fillFromOption: [
123880
+ {
123881
+ optionField: "name_",
123882
+ toField: F$5.targetMaterialNo
123883
+ },
123884
+ {
123885
+ optionField: "product_id_name_",
123886
+ toField: F$5.targetProductName
123887
+ },
123888
+ {
123889
+ optionField: "product_id_code_",
123890
+ toField: F$5.targetProductCode
123891
+ },
123892
+ {
123893
+ optionField: "product_id_spec_",
123894
+ toField: F$5.targetProductSpec
123895
+ }
123896
+ ]
123865
123897
  },
123866
123898
  {
123867
123899
  match: { fieldKey: F$5.targetMaterialNo },
123900
+ optionFillSource: "enrichment",
123868
123901
  fillFromOption: [
123902
+ {
123903
+ optionField: "product_id_",
123904
+ toField: F$5.targetProduct
123905
+ },
123869
123906
  {
123870
123907
  optionField: "product_id_name_",
123871
123908
  toField: F$5.targetProductName
@@ -123900,17 +123937,15 @@ var init_fields$6 = __esmMin((() => {
123900
123937
  }));
123901
123938
  //#endregion
123902
123939
  //#region src/domain/table/business/material/material-substitution/profile/index.ts
123903
- /** SN / 工序仅作为可选过滤条件,无值时不拼接对应查询参数。 */
123940
+ /** 被替换物料按行内生产批查询,并可按行内工序进一步过滤。 */
123904
123941
  function buildProductQuery(ctx) {
123905
123942
  const query = {};
123906
- const productionIdentificationId = ctx.rowData[F$5.productionContainer];
123907
123943
  const routingOperationId = ctx.rowData[F$5.routingOperation];
123908
- if (!isBlank$1(productionIdentificationId)) query["production_identification_id_.eq"] = productionIdentificationId;
123909
123944
  if (!isBlank$1(routingOperationId)) query["routing_operation_id_.eq"] = routingOperationId;
123910
123945
  return query;
123911
123946
  }
123912
123947
  var TABLE_TYPE$4, profile$5;
123913
- var init_profile$5 = __esmMin((() => {
123948
+ var init_profile$6 = __esmMin((() => {
123914
123949
  init_core$1();
123915
123950
  init_fields$6();
123916
123951
  init_field_keys$5();
@@ -123956,13 +123991,13 @@ var init_profile$5 = __esmMin((() => {
123956
123991
  effect: { readonly: true }
123957
123992
  },
123958
123993
  {
123959
- fields: [F$5.sourceProduct, F$5.targetProduct],
123994
+ fields: [F$5.sourceProduct],
123960
123995
  effect: { queryParams: buildProductQuery }
123961
123996
  },
123962
123997
  {
123963
- fields: [F$5.sourceProduct, F$5.targetProduct],
123998
+ fields: [F$5.sourceProduct],
123964
123999
  when: "onFieldChange",
123965
- watch: [F$5.productionContainer, F$5.routingOperation],
124000
+ watch: [F$5.routingOperation],
123966
124001
  effect: { queryParams: buildProductQuery }
123967
124002
  }
123968
124003
  ],
@@ -123995,8 +124030,11 @@ function handleSourceProductChange(doc, subFieldKey, rowIndex) {
123995
124030
  function handleTargetProductChange(doc, subFieldKey, rowIndex) {
123996
124031
  const ctx = getRowChangeCtx(doc, subFieldKey, rowIndex);
123997
124032
  if (!ctx) return;
123998
- applyRowClears(ctx, [getIdPath(F$5.targetMaterialNo), getLabelPath(F$5.targetMaterialNo)]);
123999
- if (isBlank$1(ctx.row[F$5.targetProduct])) applyRowClears(ctx, CLEAR_ON_TARGET_PRODUCT_EMPTY);
124033
+ if (isBlank$1(ctx.row[F$5.targetProduct])) applyRowClears(ctx, [
124034
+ ...CLEAR_ON_TARGET_PRODUCT_EMPTY,
124035
+ getIdPath(F$5.targetMaterialNo),
124036
+ getLabelPath(F$5.targetMaterialNo)
124037
+ ]);
124000
124038
  }
124001
124039
  var init_row_change_handlers$3 = __esmMin((() => {
124002
124040
  init_data();
@@ -124010,7 +124048,7 @@ var init_register_handlers$3 = __esmMin((() => {
124010
124048
  init_static_label_enrichers();
124011
124049
  init_runtime_handlers();
124012
124050
  init_production_container_hyperlink_enricher();
124013
- init_profile$5();
124051
+ init_profile$6();
124014
124052
  init_row_change_handlers$3();
124015
124053
  registerStaticLabelEnricher((doc) => createProductionContainerHyperlinkEnricher(doc, TABLE_TYPE$4));
124016
124054
  registerRowHandler(TABLE_TYPE$4, "on-target-material-no-change", handleTargetMaterialNoChange);
@@ -124051,8 +124089,8 @@ var init_scan$2 = __esmMin((() => {
124051
124089
  //#region src/domain/table/business/material/material-substitution/index.ts
124052
124090
  var init_material_substitution = __esmMin((() => {
124053
124091
  init_register_handlers$3();
124054
- init_profile$5();
124055
- init_profile$5();
124092
+ init_profile$6();
124093
+ init_profile$6();
124056
124094
  init_scan$2();
124057
124095
  }));
124058
124096
  //#endregion
@@ -124091,7 +124129,7 @@ var init_fields$5 = __esmMin((() => {
124091
124129
  //#endregion
124092
124130
  //#region src/domain/table/business/device/point-inspection/profile/index.ts
124093
124131
  var TABLE_TYPE$3, profile$4;
124094
- var init_profile$4 = __esmMin((() => {
124132
+ var init_profile$5 = __esmMin((() => {
124095
124133
  init_fields$5();
124096
124134
  TABLE_TYPE$3 = "point-inspection";
124097
124135
  profile$4 = {
@@ -124117,7 +124155,7 @@ var init_profile$4 = __esmMin((() => {
124117
124155
  //#endregion
124118
124156
  //#region src/domain/table/business/device/point-inspection/index.ts
124119
124157
  var init_point_inspection = __esmMin((() => {
124120
- init_profile$4();
124158
+ init_profile$5();
124121
124159
  }));
124122
124160
  //#endregion
124123
124161
  //#region src/domain/table/business/device/maintenance/profile/field-keys.ts
@@ -124155,7 +124193,7 @@ var init_fields$4 = __esmMin((() => {
124155
124193
  //#endregion
124156
124194
  //#region src/domain/table/business/device/maintenance/profile/index.ts
124157
124195
  var TABLE_TYPE$2, profile$3;
124158
- var init_profile$3 = __esmMin((() => {
124196
+ var init_profile$4 = __esmMin((() => {
124159
124197
  init_fields$4();
124160
124198
  TABLE_TYPE$2 = "maintenance";
124161
124199
  profile$3 = {
@@ -124181,7 +124219,7 @@ var init_profile$3 = __esmMin((() => {
124181
124219
  //#endregion
124182
124220
  //#region src/domain/table/business/device/maintenance/index.ts
124183
124221
  var init_maintenance = __esmMin((() => {
124184
- init_profile$3();
124222
+ init_profile$4();
124185
124223
  }));
124186
124224
  //#endregion
124187
124225
  //#region src/domain/table/business/preprocess/pretreatment-list/profile/field-keys.ts
@@ -124427,7 +124465,7 @@ function isProductManuallyEditable(ctx) {
124427
124465
  return Boolean(ctx.rowData[F$2.materialContainer]) && !ctx.rowData[MATERIAL_CONTAINER_ID];
124428
124466
  }
124429
124467
  var TABLE_TYPE$1, profile$2;
124430
- var init_profile$2 = __esmMin((() => {
124468
+ var init_profile$3 = __esmMin((() => {
124431
124469
  init_field_keys$2();
124432
124470
  init_fields$3();
124433
124471
  TABLE_TYPE$1 = "pretreatment-list";
@@ -124570,7 +124608,7 @@ var init_register_handlers$2 = __esmMin((() => {
124570
124608
  init_static_label_enrichers();
124571
124609
  init_runtime_handlers();
124572
124610
  init_production_container_hyperlink_enricher();
124573
- init_profile$2();
124611
+ init_profile$3();
124574
124612
  init_row_change_handlers$2();
124575
124613
  registerStaticLabelEnricher((doc) => createProductionContainerHyperlinkEnricher(doc, TABLE_TYPE$1));
124576
124614
  registerRowHandler(TABLE_TYPE$1, "on-production-container-change", handleProductionContainerChange$1);
@@ -124656,7 +124694,7 @@ var init_actions$1 = __esmMin((() => {
124656
124694
  //#endregion
124657
124695
  //#region src/domain/table/business/preprocess/pretreatment-list/index.ts
124658
124696
  var init_pretreatment_list = __esmMin((() => {
124659
- init_profile$2();
124697
+ init_profile$3();
124660
124698
  init_register_handlers$2();
124661
124699
  init_actions$1();
124662
124700
  }));
@@ -124769,7 +124807,7 @@ var init_fields$2 = __esmMin((() => {
124769
124807
  //#endregion
124770
124808
  //#region src/domain/table/business/sterilize/entrust-steril-batch-list/profile/index.ts
124771
124809
  var TABLE_TYPE, profile$1;
124772
- var init_profile$1 = __esmMin((() => {
124810
+ var init_profile$2 = __esmMin((() => {
124773
124811
  init_fields$2();
124774
124812
  init_field_keys$1();
124775
124813
  TABLE_TYPE = "entrust-steril-batch-list";
@@ -124825,7 +124863,7 @@ var init_register_handlers$1 = __esmMin((() => {
124825
124863
  init_static_label_enrichers();
124826
124864
  init_runtime_handlers();
124827
124865
  init_production_container_hyperlink_enricher();
124828
- init_profile$1();
124866
+ init_profile$2();
124829
124867
  init_row_change_handlers$1();
124830
124868
  registerStaticLabelEnricher((doc) => createProductionContainerHyperlinkEnricher(doc, TABLE_TYPE));
124831
124869
  registerRowHandler(TABLE_TYPE, "on-production-container-change", handleProductionContainerChange);
@@ -124884,7 +124922,7 @@ var init_actions = __esmMin((() => {
124884
124922
  //#endregion
124885
124923
  //#region src/domain/table/business/sterilize/entrust-steril-batch-list/index.ts
124886
124924
  var init_entrust_steril_batch_list = __esmMin((() => {
124887
- init_profile$1();
124925
+ init_profile$2();
124888
124926
  init_register_handlers$1();
124889
124927
  init_actions();
124890
124928
  }));
@@ -124931,7 +124969,7 @@ function getBusinessFieldProfileByRefModelType(refModelType, field) {
124931
124969
  });
124932
124970
  }
124933
124971
  var CREATABLE_TABLE_PROFILES, FIXED_TABLE_MODEL_PROFILES, ALL_TABLE_PROFILES, profileByType, profileByRibbonAction;
124934
- var init_registry$5 = __esmMin((() => {
124972
+ var init_registry$6 = __esmMin((() => {
124935
124973
  init_dynamic_table();
124936
124974
  init_fixed_table();
124937
124975
  init_two_d_table();
@@ -125002,7 +125040,7 @@ function getDefaultRepeatingWidgetProps(layoutType) {
125002
125040
  };
125003
125041
  }
125004
125042
  var init_on_repeating_default_props = __esmMin((() => {
125005
- init_registry$5();
125043
+ init_registry$6();
125006
125044
  }));
125007
125045
  //#endregion
125008
125046
  //#region src/core/model/logic/subtable/repeating/RepeatingRegion.ts
@@ -134075,7 +134113,7 @@ function getRibbonTableOptions(params = {}) {
134075
134113
  }
134076
134114
  var TABLE_HEADER_RIBBON_OPTION, BUSINESS_RIBBON_GROUPS, MAX_EDITION_TABLE_TYPES;
134077
134115
  var init_ribbon_options = __esmMin((() => {
134078
- init_registry$5();
134116
+ init_registry$6();
134079
134117
  init_types$6();
134080
134118
  TABLE_HEADER_RIBBON_OPTION = {
134081
134119
  value: "set-table-header",
@@ -134169,7 +134207,7 @@ function getTableLabelByLayoutType(layoutType) {
134169
134207
  return ((_getProfileByLayoutTy = getProfileByLayoutType(layoutType)) === null || _getProfileByLayoutTy === void 0 ? void 0 : _getProfileByLayoutTy.label) ?? ((_REGION_ITEM_THEME$la = REGION_ITEM_THEME[layoutType]) === null || _REGION_ITEM_THEME$la === void 0 ? void 0 : _REGION_ITEM_THEME$la.label) ?? layoutType;
134170
134208
  }
134171
134209
  var init_label = __esmMin((() => {
134172
- init_registry$5();
134210
+ init_registry$6();
134173
134211
  init_region_item_theme();
134174
134212
  }));
134175
134213
  //#endregion
@@ -134241,7 +134279,7 @@ function validateSubModelBinding(tableTypeOrRibbonAction, fieldKey, fields) {
134241
134279
  var init_sub_model_matcher = __esmMin((() => {
134242
134280
  init_field_type();
134243
134281
  init_two_d_table();
134244
- init_registry$5();
134282
+ init_registry$6();
134245
134283
  init_types$6();
134246
134284
  }));
134247
134285
  //#endregion
@@ -134288,7 +134326,7 @@ function getStyleByType(type) {
134288
134326
  }
134289
134327
  var REGION_ITEM_OUTLINE_TYPES, DEFAULT_TABLE_STYLE;
134290
134328
  var init_table_theme = __esmMin((() => {
134291
- init_registry$5();
134329
+ init_registry$6();
134292
134330
  init_region_item_theme();
134293
134331
  REGION_ITEM_OUTLINE_TYPES = new Set(Object.keys(REGION_ITEM_THEME));
134294
134332
  DEFAULT_TABLE_STYLE = {
@@ -135386,7 +135424,7 @@ function resolveSubTableProfile(ribbonAction) {
135386
135424
  }
135387
135425
  var init_on_subtable_create = __esmMin((() => {
135388
135426
  init_sub_model_matcher();
135389
- init_registry$5();
135427
+ init_registry$6();
135390
135428
  }));
135391
135429
  //#endregion
135392
135430
  //#region src/domain/table/design/hooks/on-field-attach.ts
@@ -135430,7 +135468,7 @@ function applyFieldProfileOnAttach(widget, field, options = {}) {
135430
135468
  var init_on_field_attach = __esmMin((() => {
135431
135469
  init_enum();
135432
135470
  init_autofill_expander();
135433
- init_registry$5();
135471
+ init_registry$6();
135434
135472
  }));
135435
135473
  //#endregion
135436
135474
  //#region src/domain/table/design/hooks/on-bounded-default-props.ts
@@ -135445,7 +135483,7 @@ function getDefaultBoundedWidgetProps(refModelType) {
135445
135483
  };
135446
135484
  }
135447
135485
  var init_on_bounded_default_props = __esmMin((() => {
135448
- init_registry$5();
135486
+ init_registry$6();
135449
135487
  }));
135450
135488
  //#endregion
135451
135489
  //#region src/domain/table/design/validate-table-selection.ts
@@ -135692,7 +135730,7 @@ var init_validate_nested_table_insert = __esmMin((() => {
135692
135730
  //#region src/domain/table/index.ts
135693
135731
  var init_table$1 = __esmMin((() => {
135694
135732
  init_types$6();
135695
- init_registry$5();
135733
+ init_registry$6();
135696
135734
  init_ribbon_options();
135697
135735
  init_label();
135698
135736
  init_sub_model_matcher();
@@ -145695,7 +145733,7 @@ async function getLotLockedReason(production_identification_id_) {
145695
145733
  return `该物料批次已被锁定;锁定人:${dict.lock_user_id_[data.lock_user_id_]};锁定原因:${data.lock_reason_}`;
145696
145734
  }
145697
145735
  var postApi;
145698
- var init_service$5 = __esmMin((() => {
145736
+ var init_service$6 = __esmMin((() => {
145699
145737
  init_api$1();
145700
145738
  init_core$1();
145701
145739
  postApi = getApi().apaas.modelComprehensive.postBizServiceModelCategoryModelKeyBsKey;
@@ -145720,7 +145758,7 @@ function setGroupEditState(table, util, editing) {
145720
145758
  }
145721
145759
  var McRowValidateError, BomEntryValidator, BomEntriesValidator;
145722
145760
  var init_bom_validator$1 = __esmMin((() => {
145723
- init_service$5();
145761
+ init_service$6();
145724
145762
  init_defineProperty();
145725
145763
  McRowValidateError = class extends Error {
145726
145764
  constructor(message, targetFieldId, row) {
@@ -147067,7 +147105,7 @@ var MCDataUtil, MaterialConsumeTableController;
147067
147105
  var init_material_consume_table_controller = __esmMin((() => {
147068
147106
  init_types$5();
147069
147107
  init_tmpl_bom_controller();
147070
- init_service$5();
147108
+ init_service$6();
147071
147109
  init_bom_validator$1();
147072
147110
  init_label_parse_rule();
147073
147111
  init_sub_field_config();
@@ -148235,7 +148273,7 @@ var init_material_consume_table_controller = __esmMin((() => {
148235
148273
  var FormTmplBomController;
148236
148274
  var init_tmpl_bom_controller = __esmMin((() => {
148237
148275
  init_material_consume_table_controller();
148238
- init_service$5();
148276
+ init_service$6();
148239
148277
  init_types$5();
148240
148278
  init_base$2();
148241
148279
  init_defineProperty();
@@ -148480,7 +148518,7 @@ var init_material_consume = __esmMin((() => {
148480
148518
  init_tmpl_bom_controller();
148481
148519
  init_material_consume_table_controller();
148482
148520
  init_material_consume_util();
148483
- init_service$5();
148521
+ init_service$6();
148484
148522
  }));
148485
148523
  //#endregion
148486
148524
  //#region src/suites/edhr/panel-schema/data-init/material-consume-object/use-tmpl-bom.ts
@@ -148905,7 +148943,7 @@ var init_linkage = __esmMin((() => {
148905
148943
  init_field_paths();
148906
148944
  init_field_updates();
148907
148945
  init_field_type();
148908
- init_service$5();
148946
+ init_service$6();
148909
148947
  init_core$1();
148910
148948
  init_bom_validator();
148911
148949
  ERR_RESOLVE_PRODUCT = "无法解析物料,请重新选择批次";
@@ -149186,7 +149224,7 @@ var init_useFormValidator = __esmMin((() => {
149186
149224
  init_form_value();
149187
149225
  init_field_type();
149188
149226
  init_enum();
149189
- init_registry$5();
149227
+ init_registry$6();
149190
149228
  init_core$1();
149191
149229
  init_createValidateFactory();
149192
149230
  init_widget();
@@ -156674,7 +156712,7 @@ var init_fields = __esmMin((() => {
156674
156712
  //#endregion
156675
156713
  //#region src/domain/object/date-object/profile/index.ts
156676
156714
  var OBJECT_TYPE, profile;
156677
- var init_profile = __esmMin((() => {
156715
+ var init_profile$1 = __esmMin((() => {
156678
156716
  init_field_type();
156679
156717
  init_fields();
156680
156718
  OBJECT_TYPE = "date_object";
@@ -156722,7 +156760,7 @@ var init_date_object_context = __esmMin((() => {
156722
156760
  init_field_type();
156723
156761
  init_table_runtime_utils();
156724
156762
  init_core$1();
156725
- init_profile();
156763
+ init_profile$1();
156726
156764
  init_defineProperty();
156727
156765
  CHILD_BIZ_TYPES = [
156728
156766
  FIELD_TYPE.PRODUCT,
@@ -157120,7 +157158,7 @@ var init_date_object_runtime = __esmMin((() => {
157120
157158
  //#region src/domain/object/date-object/index.ts
157121
157159
  var init_date_object = __esmMin((() => {
157122
157160
  init_register_handlers();
157123
- init_profile();
157161
+ init_profile$1();
157124
157162
  init_date_object_runtime();
157125
157163
  init_date_object_context();
157126
157164
  }));
@@ -159608,7 +159646,7 @@ var init_types$1 = __esmMin((() => {}));
159608
159646
  //#endregion
159609
159647
  //#region src/capabilities/component-registry/registry.ts
159610
159648
  var ComponentRegistry, componentRegistry;
159611
- var init_registry$4 = __esmMin((() => {
159649
+ var init_registry$5 = __esmMin((() => {
159612
159650
  init_BaseRegistry();
159613
159651
  ComponentRegistry = class extends BaseRegistry {
159614
159652
  register(suiteKey, components) {
@@ -159620,9 +159658,9 @@ var init_registry$4 = __esmMin((() => {
159620
159658
  //#endregion
159621
159659
  //#region src/capabilities/component-registry/service.ts
159622
159660
  var ComponentService;
159623
- var init_service$4 = __esmMin((() => {
159661
+ var init_service$5 = __esmMin((() => {
159624
159662
  init_BaseService();
159625
- init_registry$4();
159663
+ init_registry$5();
159626
159664
  ComponentService = class extends BaseService {
159627
159665
  constructor(suiteKey) {
159628
159666
  super(suiteKey, ComponentRegistry.getInstance());
@@ -159633,13 +159671,13 @@ var init_service$4 = __esmMin((() => {
159633
159671
  //#region src/capabilities/component-registry/index.ts
159634
159672
  var init_component_registry = __esmMin((() => {
159635
159673
  init_types$1();
159636
- init_registry$4();
159637
- init_service$4();
159674
+ init_registry$5();
159675
+ init_service$5();
159638
159676
  }));
159639
159677
  //#endregion
159640
159678
  //#region src/capabilities/panel/router/registry.ts
159641
159679
  var PanelRouterRegistry, panelRouterRegistry;
159642
- var init_registry$3 = __esmMin((() => {
159680
+ var init_registry$4 = __esmMin((() => {
159643
159681
  init_BaseRegistry();
159644
159682
  PanelRouterRegistry = class extends BaseRegistry {
159645
159683
  register(suiteKey, components) {
@@ -159651,9 +159689,9 @@ var init_registry$3 = __esmMin((() => {
159651
159689
  //#endregion
159652
159690
  //#region src/capabilities/panel/router/service.ts
159653
159691
  var PanelRouterService;
159654
- var init_service$3 = __esmMin((() => {
159692
+ var init_service$4 = __esmMin((() => {
159655
159693
  init_BaseService();
159656
- init_registry$3();
159694
+ init_registry$4();
159657
159695
  PanelRouterService = class extends BaseService {
159658
159696
  constructor(suiteKey) {
159659
159697
  super(suiteKey, PanelRouterRegistry.getInstance());
@@ -159668,7 +159706,7 @@ var init_service$3 = __esmMin((() => {
159668
159706
  //#endregion
159669
159707
  //#region src/capabilities/panel/schema/registry.ts
159670
159708
  var PanelSchemaRegistry, panelSchemaRegistry;
159671
- var init_registry$2 = __esmMin((() => {
159709
+ var init_registry$3 = __esmMin((() => {
159672
159710
  init_BaseRegistry();
159673
159711
  PanelSchemaRegistry = class extends BaseRegistry {
159674
159712
  register(suiteKey, components, override = false) {
@@ -159680,9 +159718,9 @@ var init_registry$2 = __esmMin((() => {
159680
159718
  //#endregion
159681
159719
  //#region src/capabilities/panel/schema/service.ts
159682
159720
  var PanelSchemaService;
159683
- var init_service$2 = __esmMin((() => {
159721
+ var init_service$3 = __esmMin((() => {
159684
159722
  init_BaseService();
159685
- init_registry$2();
159723
+ init_registry$3();
159686
159724
  PanelSchemaService = class extends BaseService {
159687
159725
  constructor(suiteKey) {
159688
159726
  super(suiteKey, PanelSchemaRegistry.getInstance());
@@ -159692,7 +159730,7 @@ var init_service$2 = __esmMin((() => {
159692
159730
  //#endregion
159693
159731
  //#region src/capabilities/panel/config/registry.ts
159694
159732
  var PanelConfigRegistry, panelConfigRegistry;
159695
- var init_registry$1 = __esmMin((() => {
159733
+ var init_registry$2 = __esmMin((() => {
159696
159734
  init_BaseRegistry();
159697
159735
  PanelConfigRegistry = class extends BaseRegistry {
159698
159736
  register(suiteKey, components) {
@@ -159704,9 +159742,9 @@ var init_registry$1 = __esmMin((() => {
159704
159742
  //#endregion
159705
159743
  //#region src/capabilities/panel/config/service.ts
159706
159744
  var PanelConfigService;
159707
- var init_service$1 = __esmMin((() => {
159745
+ var init_service$2 = __esmMin((() => {
159708
159746
  init_BaseService();
159709
- init_registry$1();
159747
+ init_registry$2();
159710
159748
  PanelConfigService = class extends BaseService {
159711
159749
  constructor(suiteKey) {
159712
159750
  super(suiteKey, PanelConfigRegistry.getInstance());
@@ -159716,7 +159754,7 @@ var init_service$1 = __esmMin((() => {
159716
159754
  //#endregion
159717
159755
  //#region src/capabilities/paper-widget-manifest/registry.ts
159718
159756
  var PaperWidgetManifestRegistry, paperWidgetManifestRegistry;
159719
- var init_registry = __esmMin((() => {
159757
+ var init_registry$1 = __esmMin((() => {
159720
159758
  init_BaseRegistry();
159721
159759
  PaperWidgetManifestRegistry = class extends BaseRegistry {
159722
159760
  register(suiteKey, manifests) {
@@ -159728,9 +159766,9 @@ var init_registry = __esmMin((() => {
159728
159766
  //#endregion
159729
159767
  //#region src/capabilities/paper-widget-manifest/service.ts
159730
159768
  var PaperWidgetManifestService;
159731
- var init_service = __esmMin((() => {
159769
+ var init_service$1 = __esmMin((() => {
159732
159770
  init_BaseService();
159733
- init_registry();
159771
+ init_registry$1();
159734
159772
  PaperWidgetManifestService = class extends BaseService {
159735
159773
  constructor(suiteKey) {
159736
159774
  super(suiteKey, PaperWidgetManifestRegistry.getInstance());
@@ -159749,8 +159787,8 @@ var init_types = __esmMin((() => {}));
159749
159787
  //#endregion
159750
159788
  //#region src/capabilities/paper-widget-manifest/index.ts
159751
159789
  var init_paper_widget_manifest = __esmMin((() => {
159752
- init_service();
159753
- init_registry();
159790
+ init_service$1();
159791
+ init_registry$1();
159754
159792
  init_types();
159755
159793
  }));
159756
159794
  //#endregion
@@ -159760,9 +159798,9 @@ var init_SuiteRuntime = __esmMin((() => {
159760
159798
  init_model_field_runtime();
159761
159799
  init_field_type();
159762
159800
  init_component_registry();
159801
+ init_service$4();
159763
159802
  init_service$3();
159764
159803
  init_service$2();
159765
- init_service$1();
159766
159804
  init_field_manifest();
159767
159805
  init_paper_widget_manifest();
159768
159806
  init_defineProperty();
@@ -163049,6 +163087,141 @@ var init_assoc_filter = __esmMin((() => {
163049
163087
  ASSOC_FILTER_OR_EXP_KEYS = "__orExpKeys";
163050
163088
  }));
163051
163089
  //#endregion
163090
+ //#region src/domain/document-business/business/product-release/service.ts
163091
+ /** 查询共线生产批下的全部批次;请求失败交由 Runtime 处理,不作为空结果缓存。 */
163092
+ async function fetchCollinearContainerIds(containerId) {
163093
+ const res = await callBizService(COLLINEAR_CONTAINERS_API, { query: { collinear_production_container_id_: containerId } });
163094
+ if (isBizServiceFailure(res)) throw new Error("查询放行单共线批次失败");
163095
+ return [...new Set(unwrapBizServiceList(res).flatMap((row) => isPresent(row.id_) ? [String(row.id_)] : []))];
163096
+ }
163097
+ var COLLINEAR_CONTAINERS_API;
163098
+ var init_service = __esmMin((() => {
163099
+ init_biz_service_api();
163100
+ init_core$1();
163101
+ COLLINEAR_CONTAINERS_API = {
163102
+ modelCategory: "entity",
163103
+ modelKey: "em_container",
163104
+ bsKey: "listAll",
163105
+ method: "post"
163106
+ };
163107
+ }));
163108
+ //#endregion
163109
+ //#region src/domain/document-business/business/product-release/profile.ts
163110
+ var productReleaseProfile;
163111
+ var init_profile = __esmMin((() => {
163112
+ init_field_type();
163113
+ init_core$1();
163114
+ init_service();
163115
+ productReleaseProfile = {
163116
+ businessType: "PRODUCT_RELEASE",
163117
+ fieldQueries: [{
163118
+ id: "collinear-lots",
163119
+ match: { fieldType: FIELD_TYPE.MATERIAL_NO },
163120
+ cache: { key: ({ paramsConfig }) => isPresent(paramsConfig.containerId) ? String(paramsConfig.containerId) : null },
163121
+ resolveFilters: async ({ paramsConfig }) => {
163122
+ if (!isPresent(paramsConfig.containerId)) return [];
163123
+ const ids = await fetchCollinearContainerIds(String(paramsConfig.containerId));
163124
+ return ids.length ? [{
163125
+ field: "id_",
163126
+ operator: "in",
163127
+ values: ids
163128
+ }] : [];
163129
+ }
163130
+ }]
163131
+ };
163132
+ }));
163133
+ //#endregion
163134
+ //#region src/domain/document-business/registry.ts
163135
+ function getDocumentBusinessProfile(businessType) {
163136
+ return businessType ? profileByBusinessType.get(businessType) : void 0;
163137
+ }
163138
+ var profileByBusinessType;
163139
+ var init_registry = __esmMin((() => {
163140
+ init_profile();
163141
+ profileByBusinessType = new Map([productReleaseProfile].map((profile) => [profile.businessType, profile]));
163142
+ }));
163143
+ //#endregion
163144
+ //#region src/domain/document-business/runtime/field-query-runtime.ts
163145
+ /** 按业务场景与字段匹配规则;规则失败时保留原查询,失败结果不进入缓存。 */
163146
+ async function resolveBusinessFieldFilters(context) {
163147
+ const profile = getDocumentBusinessProfile(context.businessType);
163148
+ if (!profile) return [];
163149
+ const rules = profile.fieldQueries.filter((rule) => rule.match.fieldType === context.fieldType);
163150
+ return (await Promise.all(rules.map(async (rule) => {
163151
+ try {
163152
+ if (!rule.cache) return await rule.resolveFilters(context);
163153
+ return await withRequestCache.handleRequest("document-business-field-query", {
163154
+ businessType: profile.businessType,
163155
+ ruleId: rule.id,
163156
+ key: rule.cache.key(context)
163157
+ }, () => rule.resolveFilters(context), rule.cache.ttlMs);
163158
+ } catch {
163159
+ return [];
163160
+ }
163161
+ }))).flat();
163162
+ }
163163
+ var init_field_query_runtime = __esmMin((() => {
163164
+ init_withRequestCache();
163165
+ init_registry();
163166
+ }));
163167
+ //#endregion
163168
+ //#region src/domain/document-business/index.ts
163169
+ var init_document_business = __esmMin((() => {
163170
+ init_field_query_runtime();
163171
+ }));
163172
+ //#endregion
163173
+ //#region src/domain/field/query-filter.ts
163174
+ function joinAnd(expressions) {
163175
+ return expressions.length > 1 ? `AND(${expressions.join(",")})` : expressions[0] ?? "";
163176
+ }
163177
+ /** 展开顶层 AND,使附加条件与原条件并列;OR 内的分组保持不变。 */
163178
+ function splitAndTerms(expression) {
163179
+ if (!expression.startsWith("AND(") || !expression.endsWith(")")) return [expression];
163180
+ const inner = expression.slice(4, -1);
163181
+ const terms = [];
163182
+ let depth = 0;
163183
+ let start = 0;
163184
+ for (let index = 0; index < inner.length; index++) {
163185
+ const char = inner[index];
163186
+ if (char === "(") depth++;
163187
+ if (char === ")" && --depth < 0) return [expression];
163188
+ if (char === "," && depth === 0) {
163189
+ terms.push(inner.slice(start, index).trim());
163190
+ start = index + 1;
163191
+ }
163192
+ }
163193
+ terms.push(inner.slice(start).trim());
163194
+ if (depth !== 0 || terms.some((term) => !term)) return [expression];
163195
+ return terms.flatMap(splitAndTerms);
163196
+ }
163197
+ /** 附加条件统一按 AND 合并;同字段 IN 条件取交集,保留已有搜索表达式。 */
163198
+ function mergeQueryFilters(query, filters) {
163199
+ if (!filters.length) return query;
163200
+ const queryData = { ...query.queryData };
163201
+ const baseExp = query.exp || joinAnd(Object.keys(queryData));
163202
+ const expressions = new Set(baseExp ? splitAndTerms(baseExp) : []);
163203
+ for (const filter of filters) {
163204
+ const key = `${filter.field}.${filter.operator}`;
163205
+ let values = [...new Set(filter.values)];
163206
+ const existing = queryData[key];
163207
+ if (Array.isArray(existing) && existing.length) {
163208
+ const existingValues = new Set(existing.map(String));
163209
+ values = values.filter((value) => existingValues.has(value));
163210
+ }
163211
+ queryData[key] = values.length ? values : [EMPTY_QUERY_VALUE];
163212
+ expressions.add(key);
163213
+ }
163214
+ return {
163215
+ ...query,
163216
+ queryData,
163217
+ exp: joinAnd([...expressions])
163218
+ };
163219
+ }
163220
+ var EMPTY_QUERY_VALUE;
163221
+ var init_query_filter = __esmMin((() => {
163222
+ EMPTY_QUERY_VALUE = "__word_no_matching_query_value__";
163223
+ }));
163224
+ //#endregion
163052
163225
  //#region src/suites/shared/panel/config/editor/field-config-visibility.ts
163053
163226
  var FIELD_TYPES, getVisibilityBizType, HIDDEN_DISPLAY_AND_SEARCH_FIELD_TYPES, HIDDEN_PRODUCT_SUBTABLE_TYPES, showDisplayAndSearchConfig;
163054
163227
  var init_field_config_visibility = __esmMin((() => {
@@ -163134,15 +163307,84 @@ var init_quick_search_util = __esmMin((() => {
163134
163307
  };
163135
163308
  }));
163136
163309
  //#endregion
163310
+ //#region src/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.ts
163311
+ /** 被替换物料仅按当前行生产批查询,未选择时阻断;仅允许 SN 查询历史消耗。 */
163312
+ function useMaterialSubstitutionSource(doc, enabled, runtimeValuePath, fieldName) {
163313
+ const productionFieldName = computed(() => fieldName() || "生产LOT/SN");
163314
+ const source = computed(() => {
163315
+ if (!enabled()) return void 0;
163316
+ const valuePath = runtimeValuePath();
163317
+ const parsed = parseValuePath(valuePath);
163318
+ if (parsed.isSubTable && parsed.hasIndex) {
163319
+ const path = getSiblingFieldPath(valuePath, F$5.productionContainer);
163320
+ const value = doc.value.dataManager.get(path);
163321
+ if (!isBlank$1(value)) return {
163322
+ path,
163323
+ name: productionFieldName.value,
163324
+ value
163325
+ };
163326
+ }
163327
+ });
163328
+ const validation = ref();
163329
+ const message = computed(() => {
163330
+ if (!enabled()) return "";
163331
+ const current = source.value;
163332
+ if (!current || isBlank$1(current.value)) return `【数据联动】请先选择字段【${productionFieldName.value}】`;
163333
+ const checked = validation.value;
163334
+ return (checked === null || checked === void 0 ? void 0 : checked.path) === current.path && checked.value === current.value ? checked.message : "";
163335
+ });
163336
+ async function resolveQuery() {
163337
+ var _source$value, _source$value2;
163338
+ if (!enabled()) return {};
163339
+ const current = source.value;
163340
+ if (!current || isBlank$1(current.value)) return null;
163341
+ const result = await apiFetchers.lot2sn.getDataList({
163342
+ queryData: { "id_.eq": current.value },
163343
+ exp: "id_.eq",
163344
+ pageNo: 1,
163345
+ pageSize: 1
163346
+ });
163347
+ if (((_source$value = source.value) === null || _source$value === void 0 ? void 0 : _source$value.path) !== current.path || ((_source$value2 = source.value) === null || _source$value2 === void 0 ? void 0 : _source$value2.value) !== current.value) return null;
163348
+ const record = result.data[0];
163349
+ const type = record === null || record === void 0 ? void 0 : record.production_identification_type_;
163350
+ const error = type === ProductionIdentificationTypeEnum.SN ? "" : type === ProductionIdentificationTypeEnum.LOT ? `【数据联动】字段【${current.name}】选择的是 LOT 类型的批次,请选择 SN 类型的批次` : `【数据联动】无法确认字段【${current.name}】的批次信息,请重新选择`;
163351
+ validation.value = {
163352
+ ...current,
163353
+ message: error
163354
+ };
163355
+ return error ? null : { "production_identification_id_.eq": current.value };
163356
+ }
163357
+ return {
163358
+ message,
163359
+ resolveQuery
163360
+ };
163361
+ }
163362
+ var init_useMaterialSubstitutionSource = __esmMin((() => {
163363
+ init_field_paths();
163364
+ init_enum();
163365
+ init_field_keys$5();
163366
+ init_fetchers();
163367
+ init_core$1();
163368
+ }));
163369
+ //#endregion
163137
163370
  //#region src/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.ts
163138
163371
  function useTableDropdown(props, searchFilters) {
163139
163372
  const { docInst } = useDocPubApiContext();
163140
163373
  const { runtimeValuePath, fieldList, fieldInfo, fieldMeta, widgetProps } = useWidgetStaticAttrs(props.widget);
163374
+ const materialSubstitutionSource = useMaterialSubstitutionSource(docInst, () => {
163375
+ var _fieldMeta$value, _fieldMeta$value$subF, _TableRuntimeContext$;
163376
+ if (((_fieldMeta$value = fieldMeta.value) === null || _fieldMeta$value === void 0 ? void 0 : _fieldMeta$value.fieldLink) !== F$5.sourceProduct) return false;
163377
+ const subFieldKey = (_fieldMeta$value$subF = fieldMeta.value.subFieldKey) === null || _fieldMeta$value$subF === void 0 ? void 0 : _fieldMeta$value$subF.replace(/^\$\./, "");
163378
+ return !!subFieldKey && ((_TableRuntimeContext$ = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$ === void 0 ? void 0 : _TableRuntimeContext$.profile.type) === "material-substitution";
163379
+ }, () => runtimeValuePath.value, () => {
163380
+ var _fieldList$value$find;
163381
+ return (_fieldList$value$find = fieldList.value.find((item) => item.key === F$5.productionContainer)) === null || _fieldList$value$find === void 0 ? void 0 : _fieldList$value$find.name;
163382
+ });
163141
163383
  const strategy = computed(() => {
163142
- var _fieldMeta$value, _fieldMeta$value2, _fieldMeta$value3;
163143
- return mergeSelectStrategy(getSelectStrategy((_fieldMeta$value = fieldMeta.value) === null || _fieldMeta$value === void 0 ? void 0 : _fieldMeta$value.fieldType), new TableRuntime(docInst.value).resolveSelectSource({
163144
- subFieldKey: (_fieldMeta$value2 = fieldMeta.value) === null || _fieldMeta$value2 === void 0 ? void 0 : _fieldMeta$value2.subFieldKey,
163145
- fieldKey: (_fieldMeta$value3 = fieldMeta.value) === null || _fieldMeta$value3 === void 0 ? void 0 : _fieldMeta$value3.fieldLink
163384
+ var _fieldMeta$value2, _fieldMeta$value3, _fieldMeta$value4;
163385
+ return mergeSelectStrategy(getSelectStrategy((_fieldMeta$value2 = fieldMeta.value) === null || _fieldMeta$value2 === void 0 ? void 0 : _fieldMeta$value2.fieldType), new TableRuntime(docInst.value).resolveSelectSource({
163386
+ subFieldKey: (_fieldMeta$value3 = fieldMeta.value) === null || _fieldMeta$value3 === void 0 ? void 0 : _fieldMeta$value3.subFieldKey,
163387
+ fieldKey: (_fieldMeta$value4 = fieldMeta.value) === null || _fieldMeta$value4 === void 0 ? void 0 : _fieldMeta$value4.fieldLink
163146
163388
  }));
163147
163389
  });
163148
163390
  const isDeviceField = computed(() => {
@@ -163150,39 +163392,39 @@ function useTableDropdown(props, searchFilters) {
163150
163392
  return ((_fieldInfo$value = fieldInfo.value) === null || _fieldInfo$value === void 0 ? void 0 : _fieldInfo$value.type) === FIELD_TYPE.DEVICE;
163151
163393
  });
163152
163394
  const isWarehouseField = computed(() => {
163153
- var _fieldMeta$value4, _fieldInfo$value2;
163154
- return [FIELD_TYPE.WAREHOUSE, FIELD_TYPE.TARGET_WAREHOUSE].includes((_fieldMeta$value4 = fieldMeta.value) === null || _fieldMeta$value4 === void 0 ? void 0 : _fieldMeta$value4.fieldType) || [
163395
+ var _fieldMeta$value5, _fieldInfo$value2;
163396
+ return [FIELD_TYPE.WAREHOUSE, FIELD_TYPE.TARGET_WAREHOUSE].includes((_fieldMeta$value5 = fieldMeta.value) === null || _fieldMeta$value5 === void 0 ? void 0 : _fieldMeta$value5.fieldType) || [
163155
163397
  "warehouse_id_",
163156
163398
  "target_warehouse_id_",
163157
163399
  "origin_warehouse_id_"
163158
163400
  ].includes(((_fieldInfo$value2 = fieldInfo.value) === null || _fieldInfo$value2 === void 0 ? void 0 : _fieldInfo$value2.key) ?? "");
163159
163401
  });
163160
163402
  const isWarehouseFamilyField = computed(() => {
163161
- var _fieldMeta$value5, _fieldInfo$value3;
163162
- return isWarehouseField.value || [FIELD_TYPE.LOCATION, FIELD_TYPE.SHOPFLOOR].includes((_fieldMeta$value5 = fieldMeta.value) === null || _fieldMeta$value5 === void 0 ? void 0 : _fieldMeta$value5.fieldType) || ((_fieldInfo$value3 = fieldInfo.value) === null || _fieldInfo$value3 === void 0 ? void 0 : _fieldInfo$value3.key) === "storage_zone_id_";
163403
+ var _fieldMeta$value6, _fieldInfo$value3;
163404
+ return isWarehouseField.value || [FIELD_TYPE.LOCATION, FIELD_TYPE.SHOPFLOOR].includes((_fieldMeta$value6 = fieldMeta.value) === null || _fieldMeta$value6 === void 0 ? void 0 : _fieldMeta$value6.fieldType) || ((_fieldInfo$value3 = fieldInfo.value) === null || _fieldInfo$value3 === void 0 ? void 0 : _fieldInfo$value3.key) === "storage_zone_id_";
163163
163405
  });
163164
163406
  const isSubtableMfgOrder = computed(() => {
163165
- var _fieldMeta$value6, _fieldMeta$value7;
163166
- return ((_fieldMeta$value6 = fieldMeta.value) === null || _fieldMeta$value6 === void 0 ? void 0 : _fieldMeta$value6.fieldType) === FIELD_TYPE.MFG_ORDER && !!((_fieldMeta$value7 = fieldMeta.value) === null || _fieldMeta$value7 === void 0 ? void 0 : _fieldMeta$value7.subFieldKey);
163407
+ var _fieldMeta$value7, _fieldMeta$value8;
163408
+ return ((_fieldMeta$value7 = fieldMeta.value) === null || _fieldMeta$value7 === void 0 ? void 0 : _fieldMeta$value7.fieldType) === FIELD_TYPE.MFG_ORDER && !!((_fieldMeta$value8 = fieldMeta.value) === null || _fieldMeta$value8 === void 0 ? void 0 : _fieldMeta$value8.subFieldKey);
163167
163409
  });
163168
163410
  const isInventoryProductField = computed(() => {
163169
- var _fieldMeta$value8, _fieldMeta$value$subF, _TableRuntimeContext$;
163170
- if (((_fieldMeta$value8 = fieldMeta.value) === null || _fieldMeta$value8 === void 0 ? void 0 : _fieldMeta$value8.fieldType) !== FIELD_TYPE.PRODUCT) return false;
163171
- const subFieldKey = (_fieldMeta$value$subF = fieldMeta.value.subFieldKey) === null || _fieldMeta$value$subF === void 0 ? void 0 : _fieldMeta$value$subF.replace(/^\$\./, "");
163172
- const tableType = subFieldKey ? (_TableRuntimeContext$ = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$ === void 0 ? void 0 : _TableRuntimeContext$.profile.type : void 0;
163411
+ var _fieldMeta$value9, _fieldMeta$value$subF2, _TableRuntimeContext$2;
163412
+ if (((_fieldMeta$value9 = fieldMeta.value) === null || _fieldMeta$value9 === void 0 ? void 0 : _fieldMeta$value9.fieldType) !== FIELD_TYPE.PRODUCT) return false;
163413
+ const subFieldKey = (_fieldMeta$value$subF2 = fieldMeta.value.subFieldKey) === null || _fieldMeta$value$subF2 === void 0 ? void 0 : _fieldMeta$value$subF2.replace(/^\$\./, "");
163414
+ const tableType = subFieldKey ? (_TableRuntimeContext$2 = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$2 === void 0 ? void 0 : _TableRuntimeContext$2.profile.type : void 0;
163173
163415
  return !!tableType && INVENTORY_PRODUCT_TABLE_TYPES.has(tableType);
163174
163416
  });
163175
163417
  const showFieldConfig = computed(() => {
163176
- var _fieldMeta$value9, _TableRuntimeContext$2;
163418
+ var _fieldMeta$value10, _TableRuntimeContext$3;
163177
163419
  if (!fieldInfo.value) return false;
163178
- const subFieldKey = (_fieldMeta$value9 = fieldMeta.value) === null || _fieldMeta$value9 === void 0 || (_fieldMeta$value9 = _fieldMeta$value9.subFieldKey) === null || _fieldMeta$value9 === void 0 ? void 0 : _fieldMeta$value9.replace(/^\$\./, "");
163179
- const tableType = subFieldKey ? (_TableRuntimeContext$2 = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$2 === void 0 ? void 0 : _TableRuntimeContext$2.profile.type : void 0;
163420
+ const subFieldKey = (_fieldMeta$value10 = fieldMeta.value) === null || _fieldMeta$value10 === void 0 || (_fieldMeta$value10 = _fieldMeta$value10.subFieldKey) === null || _fieldMeta$value10 === void 0 ? void 0 : _fieldMeta$value10.replace(/^\$\./, "");
163421
+ const tableType = subFieldKey ? (_TableRuntimeContext$3 = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$3 === void 0 ? void 0 : _TableRuntimeContext$3.profile.type : void 0;
163180
163422
  return showDisplayAndSearchConfig(fieldInfo.value, tableType);
163181
163423
  });
163182
163424
  const isMaterialConsumeObjectProduct = computed(() => {
163183
- var _fieldMeta$value10, _fieldMeta$value11;
163184
- const belongingObject = (_fieldMeta$value10 = fieldMeta.value) === null || _fieldMeta$value10 === void 0 ? void 0 : _fieldMeta$value10.belongingObject;
163185
- if (((_fieldMeta$value11 = fieldMeta.value) === null || _fieldMeta$value11 === void 0 ? void 0 : _fieldMeta$value11.fieldType) !== FIELD_TYPE.PRODUCT || !belongingObject) return false;
163425
+ var _fieldMeta$value11, _fieldMeta$value12;
163426
+ const belongingObject = (_fieldMeta$value11 = fieldMeta.value) === null || _fieldMeta$value11 === void 0 ? void 0 : _fieldMeta$value11.belongingObject;
163427
+ if (((_fieldMeta$value12 = fieldMeta.value) === null || _fieldMeta$value12 === void 0 ? void 0 : _fieldMeta$value12.fieldType) !== FIELD_TYPE.PRODUCT || !belongingObject) return false;
163186
163428
  const objectField = fieldList.value.find((item) => item.key === belongingObject);
163187
163429
  return !!objectField && resolveFieldManifestType(objectField) === FIELD_TYPE.MATERIAL_CONSUME;
163188
163430
  });
@@ -163191,29 +163433,29 @@ function useTableDropdown(props, searchFilters) {
163191
163433
  * SOP、工单号、工序清空后不补回默认项。
163192
163434
  */
163193
163435
  const quickSearchFields = computed(() => {
163194
- var _fieldMeta$value12, _fieldMeta$value13;
163436
+ var _fieldMeta$value13, _fieldMeta$value14;
163195
163437
  if (isSubtableMfgOrder.value) return SEARCHABLE_FIELD_DEFAULT_FIELDS_MAP.subtableMfgOrder;
163196
163438
  if (isInventoryProductField.value) return INVENTORY_QUICK_SEARCH_FIELDS;
163197
- if (((_fieldMeta$value12 = fieldMeta.value) === null || _fieldMeta$value12 === void 0 ? void 0 : _fieldMeta$value12.fieldType) === FIELD_TYPE.STERILIZATION_CONTAINER) return ["name_.iLike"];
163439
+ if (((_fieldMeta$value13 = fieldMeta.value) === null || _fieldMeta$value13 === void 0 ? void 0 : _fieldMeta$value13.fieldType) === FIELD_TYPE.STERILIZATION_CONTAINER) return ["name_.iLike"];
163198
163440
  const configured = widgetProps.value.searchField;
163199
163441
  if (Array.isArray(configured) && configured.length) return configured;
163200
- const fieldType = (_fieldMeta$value13 = fieldMeta.value) === null || _fieldMeta$value13 === void 0 ? void 0 : _fieldMeta$value13.fieldType;
163442
+ const fieldType = (_fieldMeta$value14 = fieldMeta.value) === null || _fieldMeta$value14 === void 0 ? void 0 : _fieldMeta$value14.fieldType;
163201
163443
  if (fieldType === FIELD_TYPE.PRODUCT || fieldType === FIELD_TYPE.SCRAP_MATERIAL) return SEARCHABLE_FIELD_DEFAULT_FIELDS_MAP.material;
163202
163444
  if (isWarehouseFamilyField.value) return SEARCHABLE_FIELD_DEFAULT_FIELDS_MAP.warehouse;
163203
163445
  return [];
163204
163446
  });
163205
163447
  /** 不开放快速搜索配置,但业务上仍需提供固定搜索能力的字段。 */
163206
163448
  const basicSearchEnabled = computed(() => {
163207
- var _fieldMeta$value14;
163449
+ var _fieldMeta$value15;
163208
163450
  if (!fieldInfo.value) return false;
163209
163451
  if (isMaterialConsumeObjectProduct.value) return true;
163210
163452
  if (showFieldConfig.value) return false;
163211
- return fieldInfo.value.key === "part_id_" || BASIC_SEARCH_FIELD_TYPES.has(((_fieldMeta$value14 = fieldMeta.value) === null || _fieldMeta$value14 === void 0 ? void 0 : _fieldMeta$value14.fieldType) ?? fieldInfo.value.type);
163453
+ return fieldInfo.value.key === "part_id_" || BASIC_SEARCH_FIELD_TYPES.has(((_fieldMeta$value15 = fieldMeta.value) === null || _fieldMeta$value15 === void 0 ? void 0 : _fieldMeta$value15.fieldType) ?? fieldInfo.value.type);
163212
163454
  });
163213
163455
  const querySearchFields = computed(() => {
163214
- var _fieldMeta$value15, _fieldInfo$value4;
163456
+ var _fieldMeta$value16, _fieldInfo$value4;
163215
163457
  if (quickSearchFields.value.length) return quickSearchFields.value;
163216
- const fieldType = ((_fieldMeta$value15 = fieldMeta.value) === null || _fieldMeta$value15 === void 0 ? void 0 : _fieldMeta$value15.fieldType) ?? ((_fieldInfo$value4 = fieldInfo.value) === null || _fieldInfo$value4 === void 0 ? void 0 : _fieldInfo$value4.type);
163458
+ const fieldType = ((_fieldMeta$value16 = fieldMeta.value) === null || _fieldMeta$value16 === void 0 ? void 0 : _fieldMeta$value16.fieldType) ?? ((_fieldInfo$value4 = fieldInfo.value) === null || _fieldInfo$value4 === void 0 ? void 0 : _fieldInfo$value4.type);
163217
163459
  return fieldType && BASIC_SEARCH_FIELDS[fieldType] || [];
163218
163460
  });
163219
163461
  const displayFields = computed(() => {
@@ -163233,11 +163475,11 @@ function useTableDropdown(props, searchFilters) {
163233
163475
  return [];
163234
163476
  });
163235
163477
  const columns = computed(() => {
163236
- var _fieldMeta$value16, _fieldMeta$value17, _TableRuntimeContext$3;
163478
+ var _fieldMeta$value17, _fieldMeta$value18, _TableRuntimeContext$4;
163237
163479
  const defaultColumns = getColumns(strategy.value.columnsKey, displayFields.value, strategy.value.isTree);
163238
- const type = (_fieldMeta$value16 = fieldMeta.value) === null || _fieldMeta$value16 === void 0 ? void 0 : _fieldMeta$value16.fieldType;
163239
- const subFieldKey = (_fieldMeta$value17 = fieldMeta.value) === null || _fieldMeta$value17 === void 0 || (_fieldMeta$value17 = _fieldMeta$value17.subFieldKey) === null || _fieldMeta$value17 === void 0 ? void 0 : _fieldMeta$value17.replace(/^\$\./, "");
163240
- const tableType = subFieldKey ? (_TableRuntimeContext$3 = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$3 === void 0 ? void 0 : _TableRuntimeContext$3.profile.type : void 0;
163480
+ const type = (_fieldMeta$value17 = fieldMeta.value) === null || _fieldMeta$value17 === void 0 ? void 0 : _fieldMeta$value17.fieldType;
163481
+ const subFieldKey = (_fieldMeta$value18 = fieldMeta.value) === null || _fieldMeta$value18 === void 0 || (_fieldMeta$value18 = _fieldMeta$value18.subFieldKey) === null || _fieldMeta$value18 === void 0 ? void 0 : _fieldMeta$value18.replace(/^\$\./, "");
163482
+ const tableType = subFieldKey ? (_TableRuntimeContext$4 = TableRuntimeContext.find(docInst.value, subFieldKey)) === null || _TableRuntimeContext$4 === void 0 ? void 0 : _TableRuntimeContext$4.profile.type : void 0;
163241
163483
  if (!displayFields.value.length && showFieldConfig.value && (strategy.value.columnsKey === "ref" || type === FIELD_TYPE.MFG_ORDER || type === FIELD_TYPE.E_SOP || type === FIELD_TYPE.PRODUCT && ["warehouse-in", "material-requisition"].includes(tableType ?? ""))) return [{
163242
163484
  title: "名称",
163243
163485
  field: "__SHOW_LABEL__",
@@ -163276,17 +163518,17 @@ function useTableDropdown(props, searchFilters) {
163276
163518
  });
163277
163519
  /** 是否需要数据联动 */
163278
163520
  const businessLinkage = computed(() => {
163279
- var _fieldMeta$value18, _fieldMeta$value19;
163521
+ var _fieldMeta$value19, _fieldMeta$value20;
163280
163522
  return new TableRuntime(docInst.value).resolveSelectLinkage({
163281
- subFieldKey: (_fieldMeta$value18 = fieldMeta.value) === null || _fieldMeta$value18 === void 0 ? void 0 : _fieldMeta$value18.subFieldKey,
163282
- fieldKey: (_fieldMeta$value19 = fieldMeta.value) === null || _fieldMeta$value19 === void 0 ? void 0 : _fieldMeta$value19.fieldLink,
163523
+ subFieldKey: (_fieldMeta$value19 = fieldMeta.value) === null || _fieldMeta$value19 === void 0 ? void 0 : _fieldMeta$value19.subFieldKey,
163524
+ fieldKey: (_fieldMeta$value20 = fieldMeta.value) === null || _fieldMeta$value20 === void 0 ? void 0 : _fieldMeta$value20.fieldLink,
163283
163525
  runtimeValuePath: runtimeValuePath.value
163284
163526
  });
163285
163527
  });
163286
163528
  const enableLinkage = computed(() => {
163287
- var _businessLinkage$valu, _fieldMeta$value20, _fieldMeta$value21, _fieldMeta$value22;
163529
+ var _businessLinkage$valu, _fieldMeta$value21, _fieldMeta$value22, _fieldMeta$value23;
163288
163530
  if ((_businessLinkage$valu = businessLinkage.value) === null || _businessLinkage$valu === void 0 ? void 0 : _businessLinkage$valu.enabled) return true;
163289
- return shouldEnableLinkage(docInst.value, (_fieldMeta$value20 = fieldMeta.value) === null || _fieldMeta$value20 === void 0 ? void 0 : _fieldMeta$value20.fieldType, ((_fieldMeta$value21 = fieldMeta.value) === null || _fieldMeta$value21 === void 0 ? void 0 : _fieldMeta$value21.subFieldKey) || ((_fieldMeta$value22 = fieldMeta.value) === null || _fieldMeta$value22 === void 0 ? void 0 : _fieldMeta$value22.modelLink));
163531
+ return shouldEnableLinkage(docInst.value, (_fieldMeta$value21 = fieldMeta.value) === null || _fieldMeta$value21 === void 0 ? void 0 : _fieldMeta$value21.fieldType, ((_fieldMeta$value22 = fieldMeta.value) === null || _fieldMeta$value22 === void 0 ? void 0 : _fieldMeta$value22.subFieldKey) || ((_fieldMeta$value23 = fieldMeta.value) === null || _fieldMeta$value23 === void 0 ? void 0 : _fieldMeta$value23.modelLink));
163290
163532
  });
163291
163533
  /** 严格级联:上游无值时阻断;可选过滤(requireLinkValue: false)不阻断 */
163292
163534
  const linkageRequiresUpstreamValue = computed(() => {
@@ -163298,8 +163540,8 @@ function useTableDropdown(props, searchFilters) {
163298
163540
  var _businessLinkage$valu3;
163299
163541
  if ((_businessLinkage$valu3 = businessLinkage.value) === null || _businessLinkage$valu3 === void 0 ? void 0 : _businessLinkage$valu3.enabled) return businessLinkage.value.linkValue;
163300
163542
  if (enableLinkage.value) {
163301
- var _fieldMeta$value23;
163302
- const linkValuePath = generateValuePath(strategy.value.linkFieldId, (_fieldMeta$value23 = fieldMeta.value) === null || _fieldMeta$value23 === void 0 ? void 0 : _fieldMeta$value23.subFieldKey);
163543
+ var _fieldMeta$value24;
163544
+ const linkValuePath = generateValuePath(strategy.value.linkFieldId, (_fieldMeta$value24 = fieldMeta.value) === null || _fieldMeta$value24 === void 0 ? void 0 : _fieldMeta$value24.subFieldKey);
163303
163545
  const realLinkValuePath = replacePathIndexPlaceholders({
163304
163546
  refPath: runtimeValuePath.value,
163305
163547
  templatePath: linkValuePath
@@ -163309,8 +163551,8 @@ function useTableDropdown(props, searchFilters) {
163309
163551
  });
163310
163552
  const clearValuePath = computed(() => {
163311
163553
  if (strategy.value.clearFieldId) {
163312
- var _fieldMeta$value24;
163313
- const valuePath = generateValuePath(strategy.value.clearFieldId, (_fieldMeta$value24 = fieldMeta.value) === null || _fieldMeta$value24 === void 0 ? void 0 : _fieldMeta$value24.subFieldKey);
163554
+ var _fieldMeta$value25;
163555
+ const valuePath = generateValuePath(strategy.value.clearFieldId, (_fieldMeta$value25 = fieldMeta.value) === null || _fieldMeta$value25 === void 0 ? void 0 : _fieldMeta$value25.subFieldKey);
163314
163556
  return replacePathIndexPlaceholders({
163315
163557
  refPath: runtimeValuePath.value,
163316
163558
  templatePath: valuePath
@@ -163318,6 +163560,7 @@ function useTableDropdown(props, searchFilters) {
163318
163560
  }
163319
163561
  });
163320
163562
  const message = computed(() => {
163563
+ if (materialSubstitutionSource.message.value) return materialSubstitutionSource.message.value;
163321
163564
  if (enableLinkage.value && linkageRequiresUpstreamValue.value && !linkDataValue.value) {
163322
163565
  var _businessLinkage$valu4;
163323
163566
  const linkFieldId = ((_businessLinkage$valu4 = businessLinkage.value) === null || _businessLinkage$valu4 === void 0 ? void 0 : _businessLinkage$valu4.linkFieldKey) ?? strategy.value.linkFieldId;
@@ -163327,9 +163570,9 @@ function useTableDropdown(props, searchFilters) {
163327
163570
  return "";
163328
163571
  });
163329
163572
  /** 非联动场景、可选过滤、或联动已选择关联值时,才展示搜索栏 */
163330
- const showSearch = computed(() => !enableLinkage.value || !linkageRequiresUpstreamValue.value || !!linkDataValue.value);
163573
+ const showSearch = computed(() => !message.value && (!enableLinkage.value || !linkageRequiresUpstreamValue.value || !!linkDataValue.value));
163331
163574
  const fetcher = async ({ keyword = "", pageNo, pageSize, deviceTypeId, exactCode }) => {
163332
- var _fieldMeta$value25, _fieldMeta$value26, _window$TMPL_BOM_CONT, _fieldMeta$value27, _fieldMeta$value28, _parsedValuePath$segm, _docInst$value$params, _fieldMeta$value31;
163575
+ var _fieldMeta$value26, _fieldMeta$value27, _window$TMPL_BOM_CONT, _fieldMeta$value28, _fieldMeta$value29, _parsedValuePath$segm, _docInst$value$params, _docInst$value$docRun, _fieldMeta$value32, _fieldMeta$value33;
163333
163576
  if (!fieldInfo.value) return {
163334
163577
  data: [],
163335
163578
  totalPage: 0,
@@ -163342,22 +163585,29 @@ function useTableDropdown(props, searchFilters) {
163342
163585
  totalCount: 0,
163343
163586
  highlightIdx: []
163344
163587
  };
163588
+ const materialSubstitutionQuery = await materialSubstitutionSource.resolveQuery();
163589
+ if (!materialSubstitutionQuery) return {
163590
+ data: [],
163591
+ totalPage: 0,
163592
+ totalCount: 0,
163593
+ highlightIdx: { index: [] }
163594
+ };
163345
163595
  const { buildQuery, fetcher, transform, optionMapping, api, flatRequestBody } = strategy.value;
163346
163596
  const isLinkQuery = enableLinkage.value;
163347
163597
  const filters = unref(searchFilters);
163348
- const valuePath = (_fieldMeta$value25 = fieldMeta.value) === null || _fieldMeta$value25 === void 0 ? void 0 : _fieldMeta$value25.valuePath;
163598
+ const valuePath = (_fieldMeta$value26 = fieldMeta.value) === null || _fieldMeta$value26 === void 0 ? void 0 : _fieldMeta$value26.valuePath;
163349
163599
  const subFieldConfig = getSubFieldConfig(docInst.value.paramsConfig);
163350
163600
  const assocFilterParams = await buildAssocFilterExtraParams(docInst.value, widgetProps.value, runtimeValuePath.value);
163351
- const belongingObject = (_fieldMeta$value26 = fieldMeta.value) === null || _fieldMeta$value26 === void 0 ? void 0 : _fieldMeta$value26.belongingObject;
163601
+ const belongingObject = (_fieldMeta$value27 = fieldMeta.value) === null || _fieldMeta$value27 === void 0 ? void 0 : _fieldMeta$value27.belongingObject;
163352
163602
  const formTmplBomController = (_window$TMPL_BOM_CONT = window[TMPL_BOM_CONTROLLER]) === null || _window$TMPL_BOM_CONT === void 0 ? void 0 : _window$TMPL_BOM_CONT.value;
163353
- const objectBomParams = getObjectBomDropdownQuery((_fieldMeta$value27 = fieldMeta.value) === null || _fieldMeta$value27 === void 0 ? void 0 : _fieldMeta$value27.fieldType, {
163603
+ const objectBomParams = getObjectBomDropdownQuery((_fieldMeta$value28 = fieldMeta.value) === null || _fieldMeta$value28 === void 0 ? void 0 : _fieldMeta$value28.fieldType, {
163354
163604
  formInstBom: formTmplBomController === null || formTmplBomController === void 0 ? void 0 : formTmplBomController.formInstBom,
163355
163605
  belongingObject
163356
163606
  });
163357
163607
  const lotProductParams = getConsumeObjectLotProductQuery({
163358
163608
  doc: docInst.value,
163359
163609
  belongingObject,
163360
- fieldType: (_fieldMeta$value28 = fieldMeta.value) === null || _fieldMeta$value28 === void 0 ? void 0 : _fieldMeta$value28.fieldType
163610
+ fieldType: (_fieldMeta$value29 = fieldMeta.value) === null || _fieldMeta$value29 === void 0 ? void 0 : _fieldMeta$value29.fieldType
163361
163611
  });
163362
163612
  const parsedValuePath = parseValuePath(runtimeValuePath.value);
163363
163613
  const rowIndexMatch = (_parsedValuePath$segm = parsedValuePath.segments[0]) === null || _parsedValuePath$segm === void 0 ? void 0 : _parsedValuePath$segm.match(/\[(\d+)\]/);
@@ -163366,18 +163616,19 @@ function useTableDropdown(props, searchFilters) {
163366
163616
  const materialConsumeRow = rowIndex != null ? materialConsumeTableController === null || materialConsumeTableController === void 0 ? void 0 : materialConsumeTableController.actualTableData[rowIndex] : void 0;
163367
163617
  let materialConsumeRowParams;
163368
163618
  if (materialConsumeTableController && materialConsumeRow) {
163369
- var _fieldMeta$value29, _fieldMeta$value30;
163370
- if (((_fieldMeta$value29 = fieldMeta.value) === null || _fieldMeta$value29 === void 0 ? void 0 : _fieldMeta$value29.fieldType) === FIELD_TYPE.PRODUCT) materialConsumeRowParams = materialConsumeTableController.getProductQueryForRow(materialConsumeRow, rowIndex);
163371
- else if (((_fieldMeta$value30 = fieldMeta.value) === null || _fieldMeta$value30 === void 0 ? void 0 : _fieldMeta$value30.fieldType) === FIELD_TYPE.MATERIAL_NO) materialConsumeRowParams = materialConsumeTableController.getMaterialNoQueryForRow(materialConsumeRow, rowIndex);
163619
+ var _fieldMeta$value30, _fieldMeta$value31;
163620
+ if (((_fieldMeta$value30 = fieldMeta.value) === null || _fieldMeta$value30 === void 0 ? void 0 : _fieldMeta$value30.fieldType) === FIELD_TYPE.PRODUCT) materialConsumeRowParams = materialConsumeTableController.getProductQueryForRow(materialConsumeRow, rowIndex);
163621
+ else if (((_fieldMeta$value31 = fieldMeta.value) === null || _fieldMeta$value31 === void 0 ? void 0 : _fieldMeta$value31.fieldType) === FIELD_TYPE.MATERIAL_NO) materialConsumeRowParams = materialConsumeTableController.getMaterialNoQueryForRow(materialConsumeRow, rowIndex);
163372
163622
  }
163373
163623
  const extraParams = {
163374
163624
  ...subFieldConfig.get(valuePath),
163375
163625
  ...runtimeValuePath.value ? subFieldConfig.get(runtimeValuePath.value) : {},
163376
163626
  ...assocFilterParams,
163377
163627
  ...lotProductParams ?? objectBomParams ?? {},
163378
- ...materialConsumeRowParams ?? {}
163628
+ ...materialConsumeRowParams ?? {},
163629
+ ...materialSubstitutionQuery
163379
163630
  };
163380
- const { queryData = {}, exp = "" } = (buildQuery === null || buildQuery === void 0 ? void 0 : buildQuery({
163631
+ const { queryData = {}, exp = "" } = mergeQueryFilters((buildQuery === null || buildQuery === void 0 ? void 0 : buildQuery({
163381
163632
  keyword,
163382
163633
  isLinkQuery,
163383
163634
  linkDataId: isLinkQuery ? String(linkDataValue.value ?? "") : void 0,
@@ -163388,7 +163639,11 @@ function useTableDropdown(props, searchFilters) {
163388
163639
  optionMapping,
163389
163640
  isMockReport: !!docInst.value.isMockReport,
163390
163641
  routingId: (_docInst$value$params = docInst.value.paramsConfig) === null || _docInst$value$params === void 0 ? void 0 : _docInst$value$params.routingId
163391
- })) ?? {};
163642
+ })) ?? {}, await resolveBusinessFieldFilters({
163643
+ businessType: (_docInst$value$docRun = docInst.value.docRuntimeMeta) === null || _docInst$value$docRun === void 0 ? void 0 : _docInst$value$docRun.businessType,
163644
+ paramsConfig: docInst.value.paramsConfig,
163645
+ fieldType: (_fieldMeta$value32 = fieldMeta.value) === null || _fieldMeta$value32 === void 0 ? void 0 : _fieldMeta$value32.fieldType
163646
+ }));
163392
163647
  const apiFetcher = apiFetchers[fetcher];
163393
163648
  if (!apiFetcher) return {
163394
163649
  data: [],
@@ -163396,7 +163651,7 @@ function useTableDropdown(props, searchFilters) {
163396
163651
  totalCount: 0,
163397
163652
  highlightIdx: []
163398
163653
  };
163399
- const sopApprovalEnabled = ((_fieldMeta$value31 = fieldMeta.value) === null || _fieldMeta$value31 === void 0 ? void 0 : _fieldMeta$value31.fieldType) === FIELD_TYPE.E_SOP && (await serviceUtil.getBusinessSetting()).enableSopDocApprove;
163654
+ const sopApprovalEnabled = ((_fieldMeta$value33 = fieldMeta.value) === null || _fieldMeta$value33 === void 0 ? void 0 : _fieldMeta$value33.fieldType) === FIELD_TYPE.E_SOP && (await serviceUtil.getBusinessSetting()).enableSopDocApprove;
163400
163655
  const res = await apiFetcher.getOptions({
163401
163656
  fieldKey: fieldInfo.value.key,
163402
163657
  modelKey: fieldInfo.value.modelKey,
@@ -163460,11 +163715,15 @@ var init_useTableDropdown = __esmMin((() => {
163460
163715
  init_sub_field_config();
163461
163716
  init_data();
163462
163717
  init_assoc_filter();
163718
+ init_document_business();
163719
+ init_query_filter();
163463
163720
  init_material_consume();
163464
163721
  init_material_consume_object();
163465
163722
  init_field_config_visibility();
163466
163723
  init_table_runtime_context();
163467
163724
  init_quick_search_util();
163725
+ init_field_keys$5();
163726
+ init_useMaterialSubstitutionSource();
163468
163727
  BASIC_SEARCH_FIELD_TYPES = /* @__PURE__ */ new Set([
163469
163728
  FIELD_TYPE.PRODUCT,
163470
163729
  FIELD_TYPE.MFG_ORDER,
@@ -163545,7 +163804,7 @@ var init_table_dropdown_vue_vue_type_script_setup_true_lang = __esmMin((() => {
163545
163804
  init_data();
163546
163805
  init_core$1();
163547
163806
  init_field_type();
163548
- init_service$5();
163807
+ init_service$6();
163549
163808
  _hoisted_1$144 = {
163550
163809
  key: 1,
163551
163810
  class: "table-dropdown"
@@ -166129,7 +166388,7 @@ var init_overlay_render_vue_vue_type_script_setup_true_lang = __esmMin((() => {
166129
166388
  init_date_object();
166130
166389
  init_index_es();
166131
166390
  init_field_type();
166132
- init_service$5();
166391
+ init_service$6();
166133
166392
  init_material_consume_object();
166134
166393
  init_data();
166135
166394
  init_useDropdownSearchFocus();
@@ -179796,7 +180055,7 @@ var FieldProviderRuntime = class {
179796
180055
  };
179797
180056
  //#endregion
179798
180057
  //#region src/suites/edhr/manifest/field/basic/boolean-manifest.ts
179799
- var boolean_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$89 });
180058
+ var boolean_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$90 });
179800
180059
  init_field_type();
179801
180060
  init_enum();
179802
180061
  init_form_value();
@@ -179808,7 +180067,7 @@ var optionsJson = JSON.stringify([{
179808
180067
  label: "假",
179809
180068
  value: false
179810
180069
  }]);
179811
- var manifest$89 = {
180070
+ var manifest$90 = {
179812
180071
  key: "field:boolean",
179813
180072
  type: FIELD_TYPE.BOOLEAN,
179814
180073
  label: "布尔",
@@ -179845,10 +180104,10 @@ var manifest$89 = {
179845
180104
  };
179846
180105
  //#endregion
179847
180106
  //#region src/suites/edhr/manifest/field/basic/date-manifest.ts
179848
- var date_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$88 });
180107
+ var date_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$89 });
179849
180108
  init_field_type();
179850
180109
  init_basic();
179851
- var manifest$88 = {
180110
+ var manifest$89 = {
179852
180111
  key: "field:date",
179853
180112
  type: FIELD_TYPE.DATE,
179854
180113
  label: "日期",
@@ -179866,10 +180125,10 @@ var manifest$88 = {
179866
180125
  };
179867
180126
  //#endregion
179868
180127
  //#region src/suites/edhr/manifest/field/basic/date-time-manifest.ts
179869
- var date_time_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$87 });
180128
+ var date_time_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$88 });
179870
180129
  init_field_type();
179871
180130
  init_basic();
179872
- var manifest$87 = {
180131
+ var manifest$88 = {
179873
180132
  key: "field:date_time",
179874
180133
  type: FIELD_TYPE.DATE_TIME,
179875
180134
  label: "日期时间",
@@ -179888,10 +180147,10 @@ var manifest$87 = {
179888
180147
  };
179889
180148
  //#endregion
179890
180149
  //#region src/suites/edhr/manifest/field/basic/decimal-manifest.ts
179891
- var decimal_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$86 });
180150
+ var decimal_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$87 });
179892
180151
  init_field_type();
179893
180152
  init_basic();
179894
- var manifest$86 = {
180153
+ var manifest$87 = {
179895
180154
  key: "field:decimal",
179896
180155
  type: FIELD_TYPE.DECIMAL,
179897
180156
  label: "精度小数",
@@ -179909,10 +180168,10 @@ var manifest$86 = {
179909
180168
  };
179910
180169
  //#endregion
179911
180170
  //#region src/suites/edhr/manifest/field/basic/double-manifest.ts
179912
- var double_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$85 });
180171
+ var double_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$86 });
179913
180172
  init_field_type();
179914
180173
  init_basic();
179915
- var manifest$85 = {
180174
+ var manifest$86 = {
179916
180175
  key: "field:double",
179917
180176
  type: FIELD_TYPE.DOUBLE,
179918
180177
  label: "小数",
@@ -179930,10 +180189,10 @@ var manifest$85 = {
179930
180189
  };
179931
180190
  //#endregion
179932
180191
  //#region src/suites/edhr/manifest/field/basic/integer-manifest.ts
179933
- var integer_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$84 });
180192
+ var integer_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$85 });
179934
180193
  init_field_type();
179935
180194
  init_basic();
179936
- var manifest$84 = {
180195
+ var manifest$85 = {
179937
180196
  key: "field:integer",
179938
180197
  type: FIELD_TYPE.INTEGER,
179939
180198
  label: "整数",
@@ -179951,10 +180210,10 @@ var manifest$84 = {
179951
180210
  };
179952
180211
  //#endregion
179953
180212
  //#region src/suites/edhr/manifest/field/basic/long-manifest.ts
179954
- var long_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$83 });
180213
+ var long_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$84 });
179955
180214
  init_field_type();
179956
180215
  init_basic();
179957
- var manifest$83 = {
180216
+ var manifest$84 = {
179958
180217
  key: "field:long",
179959
180218
  type: FIELD_TYPE.LONG,
179960
180219
  label: "长整数",
@@ -179972,10 +180231,10 @@ var manifest$83 = {
179972
180231
  };
179973
180232
  //#endregion
179974
180233
  //#region src/suites/edhr/manifest/field/basic/long-text-manifest.ts
179975
- var long_text_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$82 });
180234
+ var long_text_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$83 });
179976
180235
  init_field_type();
179977
180236
  init_basic();
179978
- var manifest$82 = {
180237
+ var manifest$83 = {
179979
180238
  key: "field:long_text",
179980
180239
  type: FIELD_TYPE.LONG_TEXT,
179981
180240
  label: "长文本",
@@ -179996,10 +180255,10 @@ var manifest$82 = {
179996
180255
  };
179997
180256
  //#endregion
179998
180257
  //#region src/suites/edhr/manifest/field/basic/text-manifest.ts
179999
- var text_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$81 });
180258
+ var text_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$82 });
180000
180259
  init_field_type();
180001
180260
  init_basic();
180002
- var manifest$81 = {
180261
+ var manifest$82 = {
180003
180262
  key: "field:text",
180004
180263
  type: FIELD_TYPE.TEXT,
180005
180264
  label: "文本",
@@ -180020,10 +180279,10 @@ var manifest$81 = {
180020
180279
  };
180021
180280
  //#endregion
180022
180281
  //#region src/suites/edhr/manifest/field/basic/time-manifest.ts
180023
- var time_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$80 });
180282
+ var time_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$81 });
180024
180283
  init_field_type();
180025
180284
  init_basic();
180026
- var manifest$80 = {
180285
+ var manifest$81 = {
180027
180286
  key: "field:time",
180028
180287
  type: FIELD_TYPE.TIME,
180029
180288
  label: "时间",
@@ -180042,11 +180301,11 @@ var manifest$80 = {
180042
180301
  };
180043
180302
  //#endregion
180044
180303
  //#region src/suites/edhr/manifest/field/business/destructive-test-qty-manifest.ts
180045
- var destructive_test_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$79 });
180304
+ var destructive_test_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$80 });
180046
180305
  init_field_type();
180047
180306
  init_enum();
180048
180307
  init_basic();
180049
- var manifest$79 = {
180308
+ var manifest$80 = {
180050
180309
  key: "field:destructive_test_qty",
180051
180310
  type: FIELD_TYPE.DESTRUCTIVE_TEST_QTY,
180052
180311
  label: "破坏性试验数量",
@@ -180067,11 +180326,11 @@ var manifest$79 = {
180067
180326
  };
180068
180327
  //#endregion
180069
180328
  //#region src/suites/edhr/manifest/field/business/good-qty-manifest.ts
180070
- var good_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$78 });
180329
+ var good_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$79 });
180071
180330
  init_field_type();
180072
180331
  init_enum();
180073
180332
  init_basic();
180074
- var manifest$78 = {
180333
+ var manifest$79 = {
180075
180334
  key: "field:good_qty",
180076
180335
  type: FIELD_TYPE.GOOD_QTY,
180077
180336
  label: "良品数量",
@@ -180092,11 +180351,11 @@ var manifest$78 = {
180092
180351
  };
180093
180352
  //#endregion
180094
180353
  //#region src/suites/edhr/manifest/field/business/inspection-module-qty-manifest.ts
180095
- var inspection_module_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$77 });
180354
+ var inspection_module_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$78 });
180096
180355
  init_field_type();
180097
180356
  init_enum();
180098
180357
  init_basic();
180099
- var manifest$77 = {
180358
+ var manifest$78 = {
180100
180359
  key: "field:inspection_module_qty",
180101
180360
  type: FIELD_TYPE.INSPECTION_MODULE_QTY,
180102
180361
  label: "检验数量",
@@ -180117,11 +180376,11 @@ var manifest$77 = {
180117
180376
  };
180118
180377
  //#endregion
180119
180378
  //#region src/suites/edhr/manifest/field/business/inspection-qty-manifest.ts
180120
- var inspection_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$76 });
180379
+ var inspection_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$77 });
180121
180380
  init_field_type();
180122
180381
  init_enum();
180123
180382
  init_basic();
180124
- var manifest$76 = {
180383
+ var manifest$77 = {
180125
180384
  key: "field:inspection_qty",
180126
180385
  type: FIELD_TYPE.INSPECTION_QTY,
180127
180386
  label: "送检数量",
@@ -180142,11 +180401,11 @@ var manifest$76 = {
180142
180401
  };
180143
180402
  //#endregion
180144
180403
  //#region src/suites/edhr/manifest/field/business/material-check-qty-manifest.ts
180145
- var material_check_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$75 });
180404
+ var material_check_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$76 });
180146
180405
  init_field_type();
180147
180406
  init_enum();
180148
180407
  init_basic();
180149
- var manifest$75 = {
180408
+ var manifest$76 = {
180150
180409
  key: "field:material_check_qty",
180151
180410
  type: FIELD_TYPE.MATERIAL_CHECK_QTY,
180152
180411
  label: "材料检验数量",
@@ -180167,10 +180426,10 @@ var manifest$75 = {
180167
180426
  };
180168
180427
  //#endregion
180169
180428
  //#region src/suites/edhr/manifest/field/business/not-good-group-manifest.ts
180170
- var not_good_group_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$74 });
180429
+ var not_good_group_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$75 });
180171
180430
  init_field_type();
180172
180431
  init_basic();
180173
- var manifest$74 = {
180432
+ var manifest$75 = {
180174
180433
  key: "field:not_good_group",
180175
180434
  type: FIELD_TYPE.NOT_GOOD_GROUP,
180176
180435
  label: "不良分类",
@@ -180195,11 +180454,11 @@ var manifest$74 = {
180195
180454
  };
180196
180455
  //#endregion
180197
180456
  //#region src/suites/edhr/manifest/field/business/not-good-qty-manifest.ts
180198
- var not_good_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$73 });
180457
+ var not_good_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$74 });
180199
180458
  init_field_type();
180200
180459
  init_enum();
180201
180460
  init_basic();
180202
- var manifest$73 = {
180461
+ var manifest$74 = {
180203
180462
  key: "field:not_good_qty",
180204
180463
  type: FIELD_TYPE.NOT_GOOD_QTY,
180205
180464
  label: "不良品数量",
@@ -180220,10 +180479,10 @@ var manifest$73 = {
180220
180479
  };
180221
180480
  //#endregion
180222
180481
  //#region src/suites/edhr/manifest/field/business/not-good-reason-manifest.ts
180223
- var not_good_reason_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$72 });
180482
+ var not_good_reason_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$73 });
180224
180483
  init_field_type();
180225
180484
  init_basic();
180226
- var manifest$72 = {
180485
+ var manifest$73 = {
180227
180486
  key: "field:not_good_reason",
180228
180487
  type: FIELD_TYPE.NOT_GOOD_REASON,
180229
180488
  label: "不良原因",
@@ -180248,11 +180507,11 @@ var manifest$72 = {
180248
180507
  };
180249
180508
  //#endregion
180250
180509
  //#region src/suites/edhr/manifest/field/business/of-inst-num-manifest.ts
180251
- var of_inst_num_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$71 });
180510
+ var of_inst_num_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$72 });
180252
180511
  init_field_type();
180253
180512
  init_enum();
180254
180513
  init_basic();
180255
- var manifest$71 = {
180514
+ var manifest$72 = {
180256
180515
  key: "field:of_inst_num",
180257
180516
  type: FIELD_TYPE.OF_INST_NUM,
180258
180517
  label: "表单实例数",
@@ -180275,10 +180534,10 @@ var manifest$71 = {
180275
180534
  };
180276
180535
  //#endregion
180277
180536
  //#region src/suites/edhr/manifest/field/business/operation-manifest.ts
180278
- var operation_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$70 });
180537
+ var operation_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$71 });
180279
180538
  init_field_type();
180280
180539
  init_basic();
180281
- var manifest$70 = {
180540
+ var manifest$71 = {
180282
180541
  key: "field:operation",
180283
180542
  type: FIELD_TYPE.OPERATION,
180284
180543
  label: "工序",
@@ -180308,11 +180567,11 @@ var manifest$70 = {
180308
180567
  };
180309
180568
  //#endregion
180310
180569
  //#region src/suites/edhr/manifest/field/business/operation-output-qty-manifest.ts
180311
- var operation_output_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$69 });
180570
+ var operation_output_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$70 });
180312
180571
  init_field_type();
180313
180572
  init_enum();
180314
180573
  init_basic();
180315
- var manifest$69 = {
180574
+ var manifest$70 = {
180316
180575
  key: "field:operation_output_qty",
180317
180576
  type: FIELD_TYPE.OPERATION_OUTPUT_QTY,
180318
180577
  label: "工序实际产出数量",
@@ -180333,11 +180592,11 @@ var manifest$69 = {
180333
180592
  };
180334
180593
  //#endregion
180335
180594
  //#region src/suites/edhr/manifest/field/business/operation-receive-qty-manifest.ts
180336
- var operation_receive_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$68 });
180595
+ var operation_receive_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$69 });
180337
180596
  init_field_type();
180338
180597
  init_enum();
180339
180598
  init_basic();
180340
- var manifest$68 = {
180599
+ var manifest$69 = {
180341
180600
  key: "field:operation_receive_qty",
180342
180601
  type: FIELD_TYPE.OPERATION_RECEIVE_QTY,
180343
180602
  label: "工序接收数量",
@@ -180362,11 +180621,11 @@ var manifest$68 = {
180362
180621
  };
180363
180622
  //#endregion
180364
180623
  //#region src/suites/edhr/manifest/field/business/product-check-qty-manifest.ts
180365
- var product_check_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$67 });
180624
+ var product_check_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$68 });
180366
180625
  init_field_type();
180367
180626
  init_enum();
180368
180627
  init_basic();
180369
- var manifest$67 = {
180628
+ var manifest$68 = {
180370
180629
  key: "field:product_check_qty",
180371
180630
  type: FIELD_TYPE.PRODUCT_CHECK_QTY,
180372
180631
  label: "产品检验数量",
@@ -180386,6 +180645,31 @@ var manifest$67 = {
180386
180645
  computed: { defaultValueRule: labelPriorityConfig }
180387
180646
  };
180388
180647
  //#endregion
180648
+ //#region src/suites/edhr/manifest/field/business/product-release-qty-manifest.ts
180649
+ var product_release_qty_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$67 });
180650
+ init_field_type();
180651
+ init_enum();
180652
+ init_basic();
180653
+ var manifest$67 = {
180654
+ key: "field:product_release_qty",
180655
+ type: FIELD_TYPE.PRODUCT_RELEASE_QTY,
180656
+ label: "放行数量",
180657
+ icon: "icon-xiaoshu",
180658
+ version: "v1",
180659
+ allowDrag: true,
180660
+ component: "fw:double",
180661
+ renderers: { ...commonDefaultRenderers },
180662
+ propsSchema: "schema:field-number",
180663
+ defaultProps: {
180664
+ ...commonDefaultProps,
180665
+ ...numberFieldDefaultProps,
180666
+ enableRangeValidate: true,
180667
+ minValidateMode: RangeValidateModeTypeConst.Fixed_Number,
180668
+ minValue: 0
180669
+ },
180670
+ computed: { defaultValueRule: labelPriorityConfig }
180671
+ };
180672
+ //#endregion
180389
180673
  //#region src/suites/edhr/manifest/field/business/production-date-manifest.ts
180390
180674
  var production_date_manifest_exports = /* @__PURE__ */ __exportAll({ manifest: () => manifest$66 });
180391
180675
  init_field_type();
@@ -181840,6 +182124,7 @@ function loadFieldManifestModules() {
181840
182124
  "./business/operation-output-qty-manifest.ts": operation_output_qty_manifest_exports,
181841
182125
  "./business/operation-receive-qty-manifest.ts": operation_receive_qty_manifest_exports,
181842
182126
  "./business/product-check-qty-manifest.ts": product_check_qty_manifest_exports,
182127
+ "./business/product-release-qty-manifest.ts": product_release_qty_manifest_exports,
181843
182128
  "./business/production-date-manifest.ts": production_date_manifest_exports,
181844
182129
  "./business/production-qty-manifest.ts": production_qty_manifest_exports,
181845
182130
  "./business/report-end-time-manifest.ts": report_end_time_manifest_exports,
@@ -186946,7 +187231,7 @@ init_base$2();
186946
187231
  init_table$1();
186947
187232
  init_core();
186948
187233
  init_types$5();
186949
- init_service$5();
187234
+ init_service$6();
186950
187235
  init__register_();
186951
187236
  init_field_type();
186952
187237
  var _hoisted_1$84 = { class: "panel-material-consume-table" };
@@ -196194,7 +196479,7 @@ var number_range_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_defaul
196194
196479
  //#endregion
196195
196480
  //#region src/suites/edhr/panel-config/field/number/field-number-config.vue?vue&type=script&setup=true&lang.ts
196196
196481
  init_field_type();
196197
- init_registry$5();
196482
+ init_registry$6();
196198
196483
  init_core();
196199
196484
  init__register_();
196200
196485
  init_enum();
@@ -200222,9 +200507,9 @@ init_model_field_runtime();
200222
200507
  init_field_manifest();
200223
200508
  init_paper_widget_manifest();
200224
200509
  init_component_registry();
200510
+ init_registry$4();
200225
200511
  init_registry$3();
200226
200512
  init_registry$2();
200227
- init_registry$1();
200228
200513
  var SUITE_KEY$1 = "edhr";
200229
200514
  function installEdhrSuite() {
200230
200515
  FieldEngine.bootstrap({
@@ -200287,9 +200572,9 @@ init_model_field_runtime();
200287
200572
  init_field_manifest();
200288
200573
  init_paper_widget_manifest();
200289
200574
  init_component_registry();
200575
+ init_registry$4();
200290
200576
  init_registry$3();
200291
200577
  init_registry$2();
200292
- init_registry$1();
200293
200578
  var SUITE_KEY = "eqm";
200294
200579
  /**
200295
200580
  * 复用 edhr 字段/组件能力;EQM 业务表面板在本套件注册。
@@ -200321,7 +200606,7 @@ var eqmSuitePlugin = {
200321
200606
  };
200322
200607
  //#endregion
200323
200608
  //#region src/sdk/plugins/register-panel-schemas.ts
200324
- init_registry$2();
200609
+ init_registry$3();
200325
200610
  /**
200326
200611
  * 向指定 suite 注册属性面板 schema
200327
200612
  * @param suiteKey 套件 key