@gct-paas/word 0.2.14 → 0.2.15

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.14 */
1
+ /*! @gct-paas/word v0.2.15 */
2
2
  import { Fragment, Suspense, Teleport, Transition, TransitionGroup, cloneVNode, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, getCurrentInstance, getCurrentScope, guardReactiveProps, h, inject, isRef, isVNode, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeMount, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, openBlock, provide, reactive, readonly, ref, render, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, toValue, unref, useAttrs, useCssVars, useModel, useSlots, vModelRadio, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
3
3
  import Gt, { PopperWrapper } from "floating-vue";
4
4
  import VueKonva from "vue-konva";
@@ -3287,11 +3287,11 @@ var init_Message_vue_vue_type_script_setup_true_lang = __esmMin((() => {
3287
3287
  onMouseenter: ($event) => pause(item),
3288
3288
  onMouseleave: ($event) => resume(item)
3289
3289
  }, [
3290
- createElementVNode("i", { class: normalizeClass(["message-icon icon iconfont", iconMap[item.type]]) }, null, 2),
3290
+ createElementVNode("i", { class: normalizeClass(["message-icon iconfont", iconMap[item.type]]) }, null, 2),
3291
3291
  createElementVNode("div", _hoisted_3$80, toDisplayString(item.message), 1),
3292
3292
  item.closeable ? (openBlock(), createElementBlock("i", {
3293
3293
  key: 0,
3294
- class: "message-close icon iconfont icon-guanbi",
3294
+ class: "message-close iconfont icon-guanbi",
3295
3295
  onClick: ($event) => remove(item.id)
3296
3296
  }, null, 8, _hoisted_4$62)) : createCommentVNode("", true)
3297
3297
  ], 42, _hoisted_2$110);
@@ -3303,17 +3303,17 @@ var init_Message_vue_vue_type_script_setup_true_lang = __esmMin((() => {
3303
3303
  });
3304
3304
  }));
3305
3305
  //#endregion
3306
- //#region src/base/message/src/Message.vue?vue&type=style&index=0&scoped=284e47b1&lang.css
3307
- var init_Message_vue_vue_type_style_index_0_scoped_284e47b1_lang = __esmMin((() => {}));
3306
+ //#region src/base/message/src/Message.vue?vue&type=style&index=0&scoped=70a961d6&lang.css
3307
+ var init_Message_vue_vue_type_style_index_0_scoped_70a961d6_lang = __esmMin((() => {}));
3308
3308
  //#endregion
3309
3309
  //#region src/base/message/src/Message.vue
3310
3310
  var Message_default;
3311
3311
  var init_Message = __esmMin((() => {
3312
3312
  init_Message_vue_vue_type_script_setup_true_lang();
3313
3313
  init_Message_vue_vue_type_script_setup_true_lang();
3314
- init_Message_vue_vue_type_style_index_0_scoped_284e47b1_lang();
3314
+ init_Message_vue_vue_type_style_index_0_scoped_70a961d6_lang();
3315
3315
  init__plugin_vue_export_helper();
3316
- Message_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Message_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-284e47b1"]]);
3316
+ Message_default = /*#__PURE__*/ _plugin_vue_export_helper_default(Message_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-70a961d6"]]);
3317
3317
  }));
3318
3318
  //#endregion
3319
3319
  //#region src/base/message/src/message.ts
@@ -5164,6 +5164,10 @@ var init_basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_
5164
5164
  noArrow: { type: Boolean },
5165
5165
  multipleArrow: { type: Boolean },
5166
5166
  multipleClearOnHover: { type: Boolean },
5167
+ multipleClearable: {
5168
+ type: Boolean,
5169
+ default: true
5170
+ },
5167
5171
  showCheck: {
5168
5172
  type: Boolean,
5169
5173
  default: false
@@ -5555,7 +5559,7 @@ var init_basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_
5555
5559
  color: "#6b6b6b",
5556
5560
  version: "v2"
5557
5561
  })) : createCommentVNode("", true),
5558
- __props.multiple && selectedOptions.value.length && !__props.noArrow && (__props.multipleClearOnHover ? isHovered.value && !__props.disabled && !__props.readonly : !__props.searchable || isVisible.value || isHovered.value) ? (openBlock(), createBlock(unref(icon_default), {
5562
+ __props.multiple && __props.multipleClearable && selectedOptions.value.length && !__props.noArrow && (__props.multipleClearOnHover ? isHovered.value && !__props.disabled && !__props.readonly : !__props.searchable || isVisible.value || isHovered.value) ? (openBlock(), createBlock(unref(icon_default), {
5559
5563
  key: 7,
5560
5564
  class: "close-all-icon",
5561
5565
  icon: "icon-cuowu2",
@@ -5571,17 +5575,17 @@ var init_basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_
5571
5575
  });
5572
5576
  }));
5573
5577
  //#endregion
5574
- //#region src/base/select/src/basic-select.vue?vue&type=style&index=0&scoped=f64c5462&lang.less
5575
- var init_basic_select_vue_vue_type_style_index_0_scoped_f64c5462_lang = __esmMin((() => {}));
5578
+ //#region src/base/select/src/basic-select.vue?vue&type=style&index=0&scoped=f5f1dfd3&lang.less
5579
+ var init_basic_select_vue_vue_type_style_index_0_scoped_f5f1dfd3_lang = __esmMin((() => {}));
5576
5580
  //#endregion
5577
5581
  //#region src/base/select/src/basic-select.vue
5578
5582
  var basic_select_default;
5579
5583
  var init_basic_select = __esmMin((() => {
5580
5584
  init_basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_lang();
5581
5585
  init_basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_lang();
5582
- init_basic_select_vue_vue_type_style_index_0_scoped_f64c5462_lang();
5586
+ init_basic_select_vue_vue_type_style_index_0_scoped_f5f1dfd3_lang();
5583
5587
  init__plugin_vue_export_helper();
5584
- basic_select_default = /*#__PURE__*/ _plugin_vue_export_helper_default(basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_lang_default, [["__scopeId", "data-v-f64c5462"]]);
5588
+ basic_select_default = /*#__PURE__*/ _plugin_vue_export_helper_default(basic_select_vue_vue_type_script_setup_true_name_dropdown_basic_select_lang_default, [["__scopeId", "data-v-f5f1dfd3"]]);
5585
5589
  }));
5586
5590
  //#endregion
5587
5591
  //#region src/base/select/src/searchable-select.vue?vue&type=script&setup=true&lang.ts
@@ -103167,6 +103171,56 @@ var init_production_identification_scan_api = __esmMin((() => {
103167
103171
  };
103168
103172
  }));
103169
103173
  //#endregion
103174
+ //#region src/domain/table/business/warehouse/shared/inventory-scan-columns.ts
103175
+ function text(value) {
103176
+ if (typeof value === "string") return value.trim();
103177
+ if (typeof value === "number") return String(value);
103178
+ return "";
103179
+ }
103180
+ function labelText(value) {
103181
+ const parsed = typeof value === "string" ? safeParseJson(value, value) : value;
103182
+ return Array.isArray(parsed) ? parsed.map(text).filter(Boolean).join(",") : text(parsed);
103183
+ }
103184
+ /** 名称字段 → 关联标签 → 字典;缺失时不展示原始 ID。 */
103185
+ function referenceColumn(field, title, minWidth, displayField) {
103186
+ return {
103187
+ field,
103188
+ title,
103189
+ minWidth,
103190
+ showOverflow: "tooltip",
103191
+ formatter: ({ row }) => {
103192
+ var _dict$field;
103193
+ const dict = row._DICT;
103194
+ return text(row[displayField]) || labelText(row[`${field}_lb_`]) || labelText(dict === null || dict === void 0 || (_dict$field = dict[field]) === null || _dict$field === void 0 ? void 0 : _dict$field[String(row[field] ?? "")]) || "—";
103195
+ }
103196
+ };
103197
+ }
103198
+ /** 每次创建独立配置;radio 列由公共弹窗添加。 */
103199
+ function createInventoryScanColumns() {
103200
+ return [
103201
+ {
103202
+ field: "materialName",
103203
+ title: "物料名称",
103204
+ minWidth: 140,
103205
+ showOverflow: "tooltip",
103206
+ formatter: ({ row }) => text(row.materialName) || text(row.productId) || "—"
103207
+ },
103208
+ {
103209
+ field: "materialNo",
103210
+ title: "物料批次",
103211
+ minWidth: 160,
103212
+ showOverflow: "tooltip"
103213
+ },
103214
+ referenceColumn("warehouse_id_", "仓库", 140, "warehouse_name_"),
103215
+ referenceColumn("location_id_", "库位", 140, "location_name_"),
103216
+ referenceColumn("mfg_order_id_", "指定工单", 180, "mfg_order_code_"),
103217
+ referenceColumn("lot_sn_id_", "指定批次", 160, "lot_sn_name_")
103218
+ ];
103219
+ }
103220
+ var init_inventory_scan_columns = __esmMin((() => {
103221
+ init_core$1();
103222
+ }));
103223
+ //#endregion
103170
103224
  //#region src/domain/table/business/warehouse/shared/inventory-scan-api.ts
103171
103225
  /** 物料批号、唯一码至少有一个非空 */
103172
103226
  function hasLotOrUniqueCode(parsed) {
@@ -103194,14 +103248,18 @@ async function matchInventoryScanRecords(parsed, warehouseId) {
103194
103248
  if (isBizServiceFailure(result)) return null;
103195
103249
  return unwrapBizServiceList(result);
103196
103250
  }
103197
- /** 多条候选 → 公共多选弹框 */
103251
+ /** 多条库存候选 → 带库存维度列的单选弹框 */
103198
103252
  async function pickInventoryScanRecord(records) {
103253
+ if (!records.length) return void 0;
103199
103254
  if (records.length === 1) return records[0];
103200
- const { success, result } = await Cf("SCAN_MULTI_ROWS_MODAL", { rows: records.map((record) => ({
103201
- ...record,
103202
- productId: record.product_id_name_ ?? record.product_id_code_,
103203
- materialNo: record.material_no_ ?? record.name_
103204
- })) });
103255
+ const { success, result } = await Cf("SCAN_MULTI_ROWS_MODAL", {
103256
+ rows: records.map((record) => ({
103257
+ ...record,
103258
+ productId: record.product_id_name_ ?? record.product_id_code_,
103259
+ materialNo: record.material_no_ ?? record.name_
103260
+ })),
103261
+ columns: createInventoryScanColumns()
103262
+ });
103205
103263
  if (!success || !result) return void 0;
103206
103264
  return result;
103207
103265
  }
@@ -103217,6 +103275,7 @@ var SCAN_NOT_FOUND_MSG$2, SCAN_LOT_OR_UNIQUE_REQUIRED_MSG, INVENTORY_PRODUCTION_
103217
103275
  var init_inventory_scan_api = __esmMin((() => {
103218
103276
  init_biz_service_api();
103219
103277
  init_index_es();
103278
+ init_inventory_scan_columns();
103220
103279
  SCAN_NOT_FOUND_MSG$2 = "扫描的物料不存在";
103221
103280
  SCAN_LOT_OR_UNIQUE_REQUIRED_MSG = "条码中未解析到物料批号或唯一码";
103222
103281
  INVENTORY_PRODUCTION_IDENTIFICATION_SCAN_API = {
@@ -124764,51 +124823,63 @@ function resolveRuntimeValuePathByModelId(doc, modelId) {
124764
124823
  var init_layout = __esmMin((() => {}));
124765
124824
  //#endregion
124766
124825
  //#region src/runtime/validation/merge.ts
124767
- /** 仅含 manual 规则的字段在填值后清除必填批注 */
124768
- function clearResolvedManualErrors(map, resolvePayload) {
124769
- if (!map) return map;
124770
- const next = { ...map };
124771
- for (const path of Object.keys(next)) {
124772
- const payload = resolvePayload(path);
124773
- if (!payload) continue;
124774
- const hasManual = filterRulesByTrigger(payload.rules, "manual").length > 0;
124775
- const hasLive = filterRulesByTrigger(payload.rules, "change").length > 0;
124776
- if (hasManual && !hasLive && !isEmptyValue$1(payload.value)) delete next[path];
124826
+ /** manual 与业务结果独立追加;实时结果优先于展示快照,字段顺序由画布决定。 */
124827
+ function mergeValidationResults(interactive, display, business, manual = null, orderedPaths) {
124828
+ const paths = orderedPaths ?? [.../* @__PURE__ */ new Set([
124829
+ ...Object.keys(manual ?? {}),
124830
+ ...Object.keys(display ?? {}),
124831
+ ...Object.keys(interactive ?? {}),
124832
+ ...Object.keys(business ?? {})
124833
+ ])];
124834
+ const next = {};
124835
+ for (const path of paths) {
124836
+ const errors = [
124837
+ ...(manual === null || manual === void 0 ? void 0 : manual[path]) ?? [],
124838
+ ...(interactive === null || interactive === void 0 ? void 0 : interactive[path]) ?? (display === null || display === void 0 ? void 0 : display[path]) ?? [],
124839
+ ...(business === null || business === void 0 ? void 0 : business[path]) ?? []
124840
+ ];
124841
+ if (errors.length) next[path] = errors;
124777
124842
  }
124778
124843
  return Object.keys(next).length ? next : null;
124779
124844
  }
124780
- /**
124781
- * 编辑时合并:更新 change/blur 规则结果,保留未修复的 manual 批注。
124782
- *
124783
- * blur/change 不会跑 manual(必填)。上下限等对空值会直接通过,
124784
- * 此时不能整路径 delete,否则会把必填批注清掉。
124785
- */
124786
- function mergeLiveValidation(doc, liveResult, livePaths, resolvePayload) {
124787
- const current = doc.interactionManager.get("validationCommentMap");
124788
- const base = current && Object.keys(current).length ? { ...current } : {};
124789
- for (const path of livePaths) {
124790
- var _base$path;
124791
- if (liveResult === null || liveResult === void 0 ? void 0 : liveResult[path]) {
124792
- base[path] = liveResult[path];
124793
- continue;
124794
- }
124795
- const payload = resolvePayload(path);
124796
- if (!(!!payload && filterRulesByTrigger(payload.rules, "manual").length > 0 && isEmptyValue$1(payload.value) && !!((_base$path = base[path]) === null || _base$path === void 0 ? void 0 : _base$path.length))) delete base[path];
124797
- }
124798
- return clearResolvedManualErrors(Object.keys(base).length ? base : liveResult, resolvePayload);
124799
- }
124800
- var init_merge = __esmMin((() => {
124801
- init_core$1();
124802
- init_createValidateFactory();
124803
- }));
124845
+ var init_merge = __esmMin((() => {}));
124804
124846
  //#endregion
124805
124847
  //#region src/runtime/validation/state.ts
124806
- /** 移除布局中已不存在字段的批注(子表删行等场景) */
124807
- function pruneStaleValidationComments(doc, map) {
124848
+ function getValidationState(doc) {
124849
+ let state = statesByDoc.get(doc);
124850
+ if (!state) {
124851
+ state = {
124852
+ results: {
124853
+ interactive: null,
124854
+ manual: null,
124855
+ business: null,
124856
+ display: null
124857
+ },
124858
+ revisions: {
124859
+ interactive: 0,
124860
+ manual: 0,
124861
+ business: 0,
124862
+ display: 0
124863
+ }
124864
+ };
124865
+ statesByDoc.set(doc, state);
124866
+ }
124867
+ return state;
124868
+ }
124869
+ /** 等待 settle 的任务也属于当前会话,重置后不能重新创建旧结果。 */
124870
+ function captureValidationSession(doc) {
124871
+ const state = getValidationState(doc);
124872
+ return () => statesByDoc.get(doc) === state;
124873
+ }
124874
+ /** 分来源控制异步写回;输入只更新实时结果,不取消提交的 manual / 业务结果。 */
124875
+ function beginValidationRun(doc, sources) {
124876
+ const state = getValidationState(doc);
124877
+ const revisions = new Map(sources.map((source) => [source, ++state.revisions[source]]));
124878
+ return { isCurrent: (source) => statesByDoc.get(doc) === state && revisions.has(source) && state.revisions[source] === revisions.get(source) };
124879
+ }
124880
+ function retainPaths(map, paths) {
124808
124881
  if (!map) return null;
124809
- const validPaths = new Set(listWidgetValuePaths(doc));
124810
- const next = {};
124811
- for (const [path, errors] of Object.entries(map)) if (validPaths.has(path)) next[path] = errors;
124882
+ const next = Object.fromEntries(Object.entries(map).filter(([path]) => paths.has(path)));
124812
124883
  return Object.keys(next).length ? next : null;
124813
124884
  }
124814
124885
  function clearFocusIfStale(doc, map) {
@@ -124818,15 +124889,65 @@ function clearFocusIfStale(doc, map) {
124818
124889
  if (map && (((_map$focus = map[focus]) === null || _map$focus === void 0 ? void 0 : _map$focus.length) || findValidationCommentKey(map, focus))) return;
124819
124890
  doc.eventManager.dispatchCustom("inter:focus-validation", "");
124820
124891
  }
124821
- /** 更新校验批注(字段标红数据源) */
124822
- function showValidationComments(doc, map) {
124823
- const next = pruneStaleValidationComments(doc, map);
124892
+ /** 所有结果只在这里合成,并按画布字段顺序发布。 */
124893
+ function publishValidationComments(doc) {
124894
+ const state = getValidationState(doc);
124895
+ const paths = listWidgetValuePaths(doc);
124896
+ const validPaths = new Set(paths);
124897
+ for (const source of Object.keys(state.results)) state.results[source] = retainPaths(state.results[source], validPaths);
124898
+ const { interactive, display, business, manual } = state.results;
124899
+ const next = mergeValidationResults(interactive, display, business, manual, paths);
124824
124900
  doc.eventManager.dispatchCustom("inter:show-validation-comment", next);
124825
124901
  clearFocusIfStale(doc, next);
124826
124902
  }
124827
- /** 仅清理失效批注并刷新(子表删行等) */
124903
+ /** 只更新本轮拥有的来源和实际执行规则的字段。 */
124904
+ function applyValidationResults(doc, run, update) {
124905
+ var _update$validatedPath;
124906
+ const state = getValidationState(doc);
124907
+ const accepted = {};
124908
+ let changed = false;
124909
+ for (const source of [
124910
+ "interactive",
124911
+ "manual",
124912
+ "business",
124913
+ "display"
124914
+ ]) {
124915
+ if (!(source in update) || !run.isCurrent(source)) continue;
124916
+ let next = update[source] ?? null;
124917
+ if (source === "interactive" && !update.replaceInteractive) {
124918
+ const merged = { ...state.results.interactive };
124919
+ for (const path of update.validatedPaths ?? []) if (next === null || next === void 0 ? void 0 : next[path]) merged[path] = next[path];
124920
+ else delete merged[path];
124921
+ next = Object.keys(merged).length ? merged : null;
124922
+ }
124923
+ if (source === "interactive" && update.eligiblePaths) next = retainPaths(next, new Set(update.eligiblePaths));
124924
+ if (source === "manual" && update.unresolvedManualPaths) next = retainPaths(next, new Set(update.unresolvedManualPaths));
124925
+ state.results[source] = next;
124926
+ accepted[source] = next;
124927
+ changed = true;
124928
+ }
124929
+ if (run.isCurrent("interactive") && update.unresolvedManualPaths) state.results.manual = retainPaths(state.results.manual, new Set(update.unresolvedManualPaths));
124930
+ if (run.isCurrent("interactive") && state.results.display && ((_update$validatedPath = update.validatedPaths) === null || _update$validatedPath === void 0 ? void 0 : _update$validatedPath.length)) {
124931
+ const next = { ...state.results.display };
124932
+ for (const path of update.validatedPaths) delete next[path];
124933
+ state.results.display = Object.keys(next).length ? next : null;
124934
+ }
124935
+ if (changed) publishValidationComments(doc);
124936
+ return mergeValidationResults(accepted.interactive ?? null, null, accepted.business ?? null, accepted.manual ?? null, listWidgetValuePaths(doc));
124937
+ }
124938
+ /** 数据变化清理旧业务快照,不取消业务校验自身写回数据后的在途结果。 */
124939
+ function clearBusinessValidationComments(doc) {
124940
+ const state = getValidationState(doc);
124941
+ if (!state.results.business) return;
124942
+ state.results.business = null;
124943
+ publishValidationComments(doc);
124944
+ }
124945
+ function resetValidationState(doc) {
124946
+ statesByDoc.delete(doc);
124947
+ publishValidationComments(doc);
124948
+ }
124828
124949
  function pruneValidationComments(doc) {
124829
- showValidationComments(doc, doc.interactionManager.get("validationCommentMap"));
124950
+ publishValidationComments(doc);
124830
124951
  }
124831
124952
  /** 按 runtimeValuePath 查找批注 map 的 key(兼容 message 内嵌 path) */
124832
124953
  function findValidationCommentKey(map, runtimeValuePath) {
@@ -124858,9 +124979,12 @@ function focusFirstValidationComment(doc, map) {
124858
124979
  });
124859
124980
  doc.eventManager.dispatchCustom("inter:focus-validation", firstKey || "");
124860
124981
  }
124982
+ var statesByDoc;
124861
124983
  var init_state = __esmMin((() => {
124862
124984
  init_core$1();
124863
124985
  init_layout();
124986
+ init_merge();
124987
+ statesByDoc = /* @__PURE__ */ new WeakMap();
124864
124988
  }));
124865
124989
  //#endregion
124866
124990
  //#region ../../node_modules/.pnpm/async-validator@4.2.5/node_modules/async-validator/dist-web/index.js
@@ -128595,11 +128719,6 @@ function pickObjectFieldKeys(subFields, belongingObject) {
128595
128719
  qtyFieldName: qtyField === null || qtyField === void 0 ? void 0 : qtyField.name
128596
128720
  };
128597
128721
  }
128598
- /** 物料消耗对象中参与提交数量校验的上料数量字段。 */
128599
- function getObjectBomQtyFieldKeys(objectFieldList) {
128600
- if (!(objectFieldList === null || objectFieldList === void 0 ? void 0 : objectFieldList.length)) return [];
128601
- return objectFieldList.map((obj) => pickObjectFieldKeys(obj.subFields).qtyKey).filter((key) => Boolean(key));
128602
- }
128603
128722
  function hasRequiredQtyValue(value) {
128604
128723
  return value !== null && value !== void 0 && value !== "";
128605
128724
  }
@@ -128973,14 +129092,8 @@ var init_material_consume_object = __esmMin((() => {
128973
129092
  }));
128974
129093
  //#endregion
128975
129094
  //#region src/runtime/validation/useFormValidator.ts
128976
- function clearMaterialValidation(doc) {
128977
- materialValidationDocs.delete(doc);
128978
- }
128979
- function isMaterialComment(errors) {
128980
- return errors.some((error) => {
128981
- var _safeParseJson;
128982
- return ((_safeParseJson = safeParseJson(error.message)) === null || _safeParseJson === void 0 ? void 0 : _safeParseJson.validationSource) === "material-consume";
128983
- });
129095
+ function clearBusinessValidation(doc) {
129096
+ clearBusinessValidationComments(doc);
128984
129097
  }
128985
129098
  function createValidateAll() {
128986
129099
  return async (rulesMap, formData) => {
@@ -129077,21 +129190,38 @@ function resolveActiveRules(mode, payload) {
129077
129190
  if (mode === "display") return payload.blocked ? payload.rules : filterRulesByTrigger(payload.rules, "change");
129078
129191
  return filterRulesByTrigger(payload.rules, mode);
129079
129192
  }
129080
- async function runValidation(doc, mode, showComments = true) {
129193
+ function collectUnresolvedManualPaths(doc) {
129194
+ return listWidgetNodes(doc).flatMap(({ widget }) => {
129195
+ const payload = buildWidgetValidationPayload(doc, widget, "change");
129196
+ return payload && isEmptyValue$1(payload.value) && filterRulesByTrigger(payload.rules, "manual").length ? [payload.runtimeValuePath] : [];
129197
+ });
129198
+ }
129199
+ async function runValidation(doc, mode, showComments = true, isSessionCurrent = () => true) {
129081
129200
  if (doc.isInEditMode()) {
129082
- showValidationComments(doc, null);
129201
+ if (isSessionCurrent()) resetValidationState(doc);
129083
129202
  return null;
129084
129203
  }
129085
129204
  const formState = {};
129205
+ const run = isSessionCurrent() && (mode !== "all" || showComments) ? beginValidationRun(doc, mode === "all" ? [
129206
+ "interactive",
129207
+ "manual",
129208
+ "business"
129209
+ ] : [mode === "display" ? "display" : mode === "manual" ? "manual" : "interactive"]) : null;
129086
129210
  const formRules = {};
129211
+ const manualRules = {};
129087
129212
  const commentLivePaths = [];
129088
- const payloadByPath = /* @__PURE__ */ new Map();
129213
+ const eligiblePaths = [];
129089
129214
  for (const { widget } of listWidgetNodes(doc)) {
129090
129215
  const payload = buildWidgetValidationPayload(doc, widget, mode);
129091
129216
  if (!payload) continue;
129092
- const activeRules = resolveActiveRules(mode, payload);
129217
+ eligiblePaths.push(payload.runtimeValuePath);
129218
+ const manual = filterRulesByTrigger(payload.rules, "manual");
129219
+ const activeRules = mode === "all" ? payload.rules.filter((rule) => rule.trigger !== "manual") : mode === "manual" ? [] : resolveActiveRules(mode, payload);
129220
+ if ((mode === "all" || mode === "manual") && manual.length) {
129221
+ manualRules[payload.runtimeValuePath] = manual;
129222
+ formState[payload.runtimeValuePath] = payload.value;
129223
+ }
129093
129224
  if (!activeRules.length) continue;
129094
- payloadByPath.set(payload.runtimeValuePath, payload);
129095
129225
  formState[payload.runtimeValuePath] = payload.value;
129096
129226
  formRules[payload.runtimeValuePath] = activeRules;
129097
129227
  if (mode !== "all" && mode !== "display") commentLivePaths.push(payload.runtimeValuePath);
@@ -129104,20 +129234,25 @@ async function runValidation(doc, mode, showComments = true) {
129104
129234
  const materialResult = await (formTmplBomController === null || formTmplBomController === void 0 ? void 0 : formTmplBomController.submitValidate());
129105
129235
  if (materialResult && !materialResult.isValid) {
129106
129236
  const materialErrors = materialResult.fields ?? {};
129107
- if (showComments && Object.keys(materialErrors).length) {
129108
- materialValidationDocs.add(doc);
129109
- showValidationComments(doc, materialErrors);
129110
- focusFirstValidationComment(doc, materialErrors);
129237
+ if (run && Object.keys(materialErrors).length) {
129238
+ const committed = applyValidationResults(doc, run, {
129239
+ interactive: null,
129240
+ manual: null,
129241
+ business: materialErrors,
129242
+ replaceInteractive: true
129243
+ });
129244
+ if (run.isCurrent("business")) focusFirstValidationComment(doc, committed);
129111
129245
  }
129112
129246
  return materialErrors;
129113
129247
  }
129114
129248
  }
129115
- result = await validateAll(formRules, formState);
129116
- let objectBomQtyPaths = [];
129249
+ const [fieldResult, manualResult] = await Promise.all([validateAll(formRules, formState), mode === "all" || mode === "manual" ? validateAll(manualRules, formState) : Promise.resolve(null)]);
129250
+ const fields = mergeValidationResults(fieldResult, null, null, manualResult, listWidgetNodes(doc).map(({ runtimeValuePath }) => runtimeValuePath));
129251
+ result = fields;
129252
+ let businessResult = null;
129117
129253
  if (mode === "all") {
129118
129254
  var _doc$model, _window$TMPL_BOM_CONT2;
129119
129255
  const objectFieldList = (_doc$model = doc.model) === null || _doc$model === void 0 || (_doc$model = _doc$model.document) === null || _doc$model === void 0 || (_doc$model = _doc$model.config) === null || _doc$model === void 0 || (_doc$model = _doc$model.dataInit) === null || _doc$model === void 0 ? void 0 : _doc$model.objectInitialValues;
129120
- objectBomQtyPaths = getObjectBomQtyFieldKeys(objectFieldList).map(toRootRuntimeValuePath);
129121
129256
  const formTmplBomController = (_window$TMPL_BOM_CONT2 = window[TMPL_BOM_CONTROLLER]) === null || _window$TMPL_BOM_CONT2 === void 0 ? void 0 : _window$TMPL_BOM_CONT2.value;
129122
129257
  const objectBomError = await validateObjectBomQtyOnSubmit({
129123
129258
  formState: doc.dataManager.getRawData(),
@@ -129126,45 +129261,42 @@ async function runValidation(doc, mode, showComments = true) {
129126
129261
  });
129127
129262
  if (objectBomError) {
129128
129263
  const runtimeValuePath = toRootRuntimeValuePath(objectBomError.field);
129264
+ businessResult = { [runtimeValuePath]: [{
129265
+ ...objectBomError,
129266
+ field: runtimeValuePath,
129267
+ fieldValue: doc.dataManager.get(runtimeValuePath)
129268
+ }] };
129129
129269
  result = {
129130
- ...result ?? {},
129131
- [runtimeValuePath]: [...(result === null || result === void 0 ? void 0 : result[runtimeValuePath]) ?? [], {
129132
- ...objectBomError,
129133
- field: runtimeValuePath,
129134
- fieldValue: doc.dataManager.get(runtimeValuePath)
129135
- }]
129270
+ ...fields ?? {},
129271
+ [runtimeValuePath]: [...(fields === null || fields === void 0 ? void 0 : fields[runtimeValuePath]) ?? [], ...businessResult[runtimeValuePath]]
129136
129272
  };
129137
129273
  }
129138
129274
  }
129139
129275
  if (mode === "all") {
129140
- const current = doc.interactionManager.get("validationCommentMap");
129141
- const next = Object.fromEntries(Object.entries(current ?? {}).filter(([, errors]) => !isMaterialComment(errors)));
129142
- for (const path of /* @__PURE__ */ new Set([...Object.keys(formRules), ...objectBomQtyPaths])) if (result === null || result === void 0 ? void 0 : result[path]) next[path] = result[path];
129143
- else delete next[path];
129144
- const merged = Object.keys(next).length ? next : null;
129145
- if (showComments) {
129146
- materialValidationDocs.delete(doc);
129147
- showValidationComments(doc, merged);
129148
- focusFirstValidationComment(doc, result);
129276
+ if (run) {
129277
+ const committed = applyValidationResults(doc, run, {
129278
+ interactive: fieldResult,
129279
+ manual: manualResult,
129280
+ business: businessResult,
129281
+ replaceInteractive: true,
129282
+ validatedPaths: [...Object.keys(formRules), ...Object.keys(manualRules)],
129283
+ unresolvedManualPaths: collectUnresolvedManualPaths(doc)
129284
+ });
129285
+ if (run.isCurrent("manual") || run.isCurrent("interactive") || run.isCurrent("business")) focusFirstValidationComment(doc, committed);
129149
129286
  }
129150
129287
  } else if (mode === "display") {
129151
- const current = doc.interactionManager.get("validationCommentMap");
129152
- const materialComments = materialValidationDocs.has(doc) ? Object.fromEntries(Object.entries(current ?? {}).filter(([, errors]) => isMaterialComment(errors))) : {};
129153
- showValidationComments(doc, {
129154
- ...result ?? {},
129155
- ...materialComments
129156
- });
129157
- } else {
129158
- const live = mergeLiveValidation(doc, result, commentLivePaths, (path) => payloadByPath.get(path) ?? null);
129159
- if (materialValidationDocs.has(doc)) {
129160
- const current = doc.interactionManager.get("validationCommentMap");
129161
- const materialComments = Object.fromEntries(Object.entries(current ?? {}).filter(([, errors]) => isMaterialComment(errors)));
129162
- showValidationComments(doc, {
129163
- ...live ?? {},
129164
- ...materialComments
129165
- });
129166
- } else showValidationComments(doc, live);
129167
- }
129288
+ if (run) applyValidationResults(doc, run, { display: result });
129289
+ } else if (mode === "manual") {
129290
+ if (run) applyValidationResults(doc, run, {
129291
+ manual: manualResult,
129292
+ unresolvedManualPaths: collectUnresolvedManualPaths(doc)
129293
+ });
129294
+ } else if (run) applyValidationResults(doc, run, {
129295
+ interactive: result,
129296
+ validatedPaths: commentLivePaths,
129297
+ eligiblePaths,
129298
+ unresolvedManualPaths: collectUnresolvedManualPaths(doc)
129299
+ });
129168
129300
  return result;
129169
129301
  }
129170
129302
  async function executeValidation(doc, trigger) {
@@ -129174,12 +129306,14 @@ async function executeValidation(doc, trigger) {
129174
129306
  return;
129175
129307
  }
129176
129308
  scheduler.running = true;
129309
+ const isSessionCurrent = captureValidationSession(doc);
129177
129310
  try {
129178
129311
  await waitForDataManagerSettle(doc);
129179
- await runValidation(doc, trigger);
129312
+ if (schedulersByDocId.get(doc.id) !== scheduler) return;
129313
+ await runValidation(doc, trigger, true, isSessionCurrent);
129180
129314
  const pending = scheduler.pendingTrigger;
129181
129315
  scheduler.pendingTrigger = "change";
129182
- if (pending !== trigger) await runValidation(doc, pending);
129316
+ if (pending !== trigger && schedulersByDocId.get(doc.id) === scheduler) await runValidation(doc, pending, true, isSessionCurrent);
129183
129317
  } finally {
129184
129318
  scheduler.running = false;
129185
129319
  }
@@ -129205,8 +129339,9 @@ function requestFullValidation(doc, options = {}) {
129205
129339
  }
129206
129340
  function disposeDocValidationScheduler(doc) {
129207
129341
  clearScheduler(doc);
129342
+ resetValidationState(doc);
129208
129343
  }
129209
- var toRootRuntimeValuePath, materialValidationDocs, DEBOUNCE_MS$1, schedulersByDocId, validateAllFields, validateDisplayFields;
129344
+ var toRootRuntimeValuePath, DEBOUNCE_MS$1, schedulersByDocId, validateAllFields, validateDisplayFields;
129210
129345
  var init_useFormValidator = __esmMin((() => {
129211
129346
  init_dist_web();
129212
129347
  init_form_value();
@@ -129222,16 +129357,17 @@ var init_useFormValidator = __esmMin((() => {
129222
129357
  init_wait_for_data_settle();
129223
129358
  init_material_consume_object();
129224
129359
  toRootRuntimeValuePath = (fieldKey) => fieldKey.startsWith("$.") ? fieldKey : `$.${fieldKey}`;
129225
- materialValidationDocs = /* @__PURE__ */ new WeakSet();
129226
129360
  DEBOUNCE_MS$1 = 300;
129227
129361
  schedulersByDocId = /* @__PURE__ */ new Map();
129228
129362
  validateAllFields = async (doc, options = {}) => {
129363
+ const isSessionCurrent = captureValidationSession(doc);
129229
129364
  await waitForDataManagerSettle(doc);
129230
- return runValidation(doc, "all", options.showComments ?? true);
129365
+ return runValidation(doc, "all", options.showComments ?? true, isSessionCurrent);
129231
129366
  };
129232
129367
  validateDisplayFields = async (doc, options = {}) => {
129368
+ const isSessionCurrent = captureValidationSession(doc);
129233
129369
  if (options.settle !== false) await waitForDataManagerSettle(doc);
129234
- return runValidation(doc, "display");
129370
+ return runValidation(doc, "display", true, isSessionCurrent);
129235
129371
  };
129236
129372
  }));
129237
129373
  //#endregion
@@ -141605,7 +141741,7 @@ function useTableDropdown(props, searchFilters) {
141605
141741
  });
141606
141742
  /**
141607
141743
  * 搜索字段以设计端配置为准。
141608
- * SOP、工单号、工序清空后不补回默认项。
141744
+ * 显式空数组表示主动关闭搜索,仅缺少配置时补默认项。
141609
141745
  */
141610
141746
  const quickSearchFields = computed(() => {
141611
141747
  var _fieldMeta$value12, _fieldMeta$value13;
@@ -141613,7 +141749,7 @@ function useTableDropdown(props, searchFilters) {
141613
141749
  if (isInventoryProductField.value) return INVENTORY_QUICK_SEARCH_FIELDS;
141614
141750
  if (((_fieldMeta$value12 = fieldMeta.value) === null || _fieldMeta$value12 === void 0 ? void 0 : _fieldMeta$value12.fieldType) === FIELD_TYPE.STERILIZATION_CONTAINER) return ["name_.iLike"];
141615
141751
  const configured = widgetProps.value.searchField;
141616
- if (Array.isArray(configured) && configured.length) return configured;
141752
+ if (Array.isArray(configured)) return configured;
141617
141753
  const fieldType = (_fieldMeta$value13 = fieldMeta.value) === null || _fieldMeta$value13 === void 0 ? void 0 : _fieldMeta$value13.fieldType;
141618
141754
  if (fieldType === FIELD_TYPE.PRODUCT || fieldType === FIELD_TYPE.SCRAP_MATERIAL) return SEARCHABLE_FIELD_DEFAULT_FIELDS_MAP.material;
141619
141755
  if (isWarehouseFamilyField.value) return SEARCHABLE_FIELD_DEFAULT_FIELDS_MAP.warehouse;
@@ -142572,7 +142708,7 @@ var init_base_upload_file_vue_vue_type_script_setup_true_name_base_upload_image_
142572
142708
  _hoisted_2$89 = { class: "upload-dragger" };
142573
142709
  _hoisted_3$60 = ["multiple", "accept"];
142574
142710
  _hoisted_4$46 = { class: "upload-content" };
142575
- _hoisted_5$36 = { class: "icon" };
142711
+ _hoisted_5$36 = { class: "gct-word-upload-file-icon" };
142576
142712
  _hoisted_6$26 = {
142577
142713
  key: 0,
142578
142714
  class: "file-box"
@@ -142822,17 +142958,17 @@ var init_base_upload_file_vue_vue_type_script_setup_true_name_base_upload_image_
142822
142958
  });
142823
142959
  }));
142824
142960
  //#endregion
142825
- //#region src/runtime/renderer/dialogs/upload-file/base-upload-file.vue?vue&type=style&index=0&scoped=5e5c9c43&lang.less
142826
- var init_base_upload_file_vue_vue_type_style_index_0_scoped_5e5c9c43_lang = __esmMin((() => {}));
142961
+ //#region src/runtime/renderer/dialogs/upload-file/base-upload-file.vue?vue&type=style&index=0&scoped=694b6e27&lang.less
142962
+ var init_base_upload_file_vue_vue_type_style_index_0_scoped_694b6e27_lang = __esmMin((() => {}));
142827
142963
  //#endregion
142828
142964
  //#region src/runtime/renderer/dialogs/upload-file/base-upload-file.vue
142829
142965
  var base_upload_file_default;
142830
142966
  var init_base_upload_file = __esmMin((() => {
142831
142967
  init_base_upload_file_vue_vue_type_script_setup_true_name_base_upload_image_lang();
142832
142968
  init_base_upload_file_vue_vue_type_script_setup_true_name_base_upload_image_lang();
142833
- init_base_upload_file_vue_vue_type_style_index_0_scoped_5e5c9c43_lang();
142969
+ init_base_upload_file_vue_vue_type_style_index_0_scoped_694b6e27_lang();
142834
142970
  init__plugin_vue_export_helper();
142835
- base_upload_file_default = /*#__PURE__*/ _plugin_vue_export_helper_default(base_upload_file_vue_vue_type_script_setup_true_name_base_upload_image_lang_default, [["__scopeId", "data-v-5e5c9c43"]]);
142971
+ base_upload_file_default = /*#__PURE__*/ _plugin_vue_export_helper_default(base_upload_file_vue_vue_type_script_setup_true_name_base_upload_image_lang_default, [["__scopeId", "data-v-694b6e27"]]);
142836
142972
  }));
142837
142973
  //#endregion
142838
142974
  //#region src/runtime/renderer/dialogs/upload-file/upload-file-dialog.vue?vue&type=script&setup=true&lang.ts
@@ -142925,7 +143061,7 @@ var init_base_upload_image_vue_vue_type_script_setup_true_name_base_upload_image
142925
143061
  _hoisted_2$88 = { class: "upload-dragger" };
142926
143062
  _hoisted_3$59 = ["multiple", "accept"];
142927
143063
  _hoisted_4$45 = { class: "upload-content" };
142928
- _hoisted_5$35 = { class: "icon" };
143064
+ _hoisted_5$35 = { class: "gct-word-upload-image-icon" };
142929
143065
  _hoisted_6$25 = {
142930
143066
  key: 0,
142931
143067
  class: "img-box"
@@ -143154,17 +143290,17 @@ var init_base_upload_image_vue_vue_type_script_setup_true_name_base_upload_image
143154
143290
  });
143155
143291
  }));
143156
143292
  //#endregion
143157
- //#region src/runtime/renderer/dialogs/upload-image/base-upload-image.vue?vue&type=style&index=0&scoped=c88c950f&lang.less
143158
- var init_base_upload_image_vue_vue_type_style_index_0_scoped_c88c950f_lang = __esmMin((() => {}));
143293
+ //#region src/runtime/renderer/dialogs/upload-image/base-upload-image.vue?vue&type=style&index=0&scoped=facc66ff&lang.less
143294
+ var init_base_upload_image_vue_vue_type_style_index_0_scoped_facc66ff_lang = __esmMin((() => {}));
143159
143295
  //#endregion
143160
143296
  //#region src/runtime/renderer/dialogs/upload-image/base-upload-image.vue
143161
143297
  var base_upload_image_default;
143162
143298
  var init_base_upload_image = __esmMin((() => {
143163
143299
  init_base_upload_image_vue_vue_type_script_setup_true_name_base_upload_image_lang();
143164
143300
  init_base_upload_image_vue_vue_type_script_setup_true_name_base_upload_image_lang();
143165
- init_base_upload_image_vue_vue_type_style_index_0_scoped_c88c950f_lang();
143301
+ init_base_upload_image_vue_vue_type_style_index_0_scoped_facc66ff_lang();
143166
143302
  init__plugin_vue_export_helper();
143167
- base_upload_image_default = /*#__PURE__*/ _plugin_vue_export_helper_default(base_upload_image_vue_vue_type_script_setup_true_name_base_upload_image_lang_default, [["__scopeId", "data-v-c88c950f"]]);
143303
+ base_upload_image_default = /*#__PURE__*/ _plugin_vue_export_helper_default(base_upload_image_vue_vue_type_script_setup_true_name_base_upload_image_lang_default, [["__scopeId", "data-v-facc66ff"]]);
143168
143304
  }));
143169
143305
  //#endregion
143170
143306
  //#region src/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue?vue&type=script&setup=true&lang.ts
@@ -150930,6 +151066,7 @@ function useValidationFullSync(factory, options) {
150930
151066
  let stopWatchSuppressSignal = null;
150931
151067
  let knownWidgetPaths = /* @__PURE__ */ new Set();
150932
151068
  let boundDoc = null;
151069
+ let bindingRevision = 0;
150933
151070
  const DISPLAY_DEBOUNCE_MS = 320;
150934
151071
  function isSuppressed() {
150935
151072
  var _options$suppressSign;
@@ -150951,8 +151088,10 @@ function useValidationFullSync(factory, options) {
150951
151088
  function requestDisplay(doc, immediate = false) {
150952
151089
  if (doc.isInEditMode()) return;
150953
151090
  clearDisplayDebounce();
151091
+ const revision = bindingRevision;
150954
151092
  const run = () => {
150955
151093
  displayDebounceTimer = null;
151094
+ if (revision !== bindingRevision || boundDoc !== doc || isSuppressed() || doc.isInEditMode()) return;
150956
151095
  validateDisplayFields(doc);
150957
151096
  };
150958
151097
  if (immediate) {
@@ -150962,6 +151101,7 @@ function useValidationFullSync(factory, options) {
150962
151101
  displayDebounceTimer = setTimeout(run, DISPLAY_DEBOUNCE_MS);
150963
151102
  }
150964
151103
  function disposeSubscriptions() {
151104
+ bindingRevision++;
150965
151105
  unsubscribeData === null || unsubscribeData === void 0 || unsubscribeData();
150966
151106
  unsubscribeData = null;
150967
151107
  stopWatchTick === null || stopWatchTick === void 0 || stopWatchTick();
@@ -150990,7 +151130,7 @@ function useValidationFullSync(factory, options) {
150990
151130
  unsubscribeData = doc.dataManager.subscribe("$", () => {
150991
151131
  const currentDoc = boundDoc;
150992
151132
  if (!currentDoc || isSuppressed() || currentDoc.isInEditMode()) return;
150993
- clearMaterialValidation(currentDoc);
151133
+ clearBusinessValidation(currentDoc);
150994
151134
  if (currentDoc.isInFillMode()) requestFullValidation(currentDoc, { trigger: "change" });
150995
151135
  if (currentDoc.isInFillMode() || currentDoc.isInPrintMode()) requestDisplay(currentDoc);
150996
151136
  });
@@ -151011,8 +151151,17 @@ function useValidationFullSync(factory, options) {
151011
151151
  if (!currentDoc || isSuppressed()) return;
151012
151152
  if (mode === prevMode) return;
151013
151153
  if (!currentDoc.isInEditMode()) runInitialValidation();
151154
+ else {
151155
+ clearDisplayDebounce();
151156
+ disposeDocValidationScheduler(currentDoc);
151157
+ }
151014
151158
  });
151015
151159
  if (options === null || options === void 0 ? void 0 : options.suppressSignal) stopWatchSuppressSignal = watch(options.suppressSignal, (refreshing, wasRefreshing) => {
151160
+ if (refreshing) {
151161
+ clearDisplayDebounce();
151162
+ disposeDocValidationScheduler(doc);
151163
+ return;
151164
+ }
151016
151165
  if (wasRefreshing && !refreshing && !suppress) runInitialValidation();
151017
151166
  });
151018
151167
  }
@@ -151025,14 +151174,19 @@ function useValidationFullSync(factory, options) {
151025
151174
  return;
151026
151175
  }
151027
151176
  initialValidationRunning = true;
151177
+ const revision = bindingRevision;
151178
+ resetValidationState(doc);
151028
151179
  try {
151029
151180
  await waitForDataManagerSettle(doc);
151181
+ if (revision !== bindingRevision || boundDoc !== doc || isSuppressed()) return;
151030
151182
  await validateDisplayFields(doc, { settle: false });
151031
151183
  } finally {
151032
- initialValidationRunning = false;
151033
- if (pendingInitialValidation) {
151034
- pendingInitialValidation = false;
151035
- await runInitialValidation();
151184
+ if (revision === bindingRevision) {
151185
+ initialValidationRunning = false;
151186
+ if (pendingInitialValidation) {
151187
+ pendingInitialValidation = false;
151188
+ await runInitialValidation();
151189
+ }
151036
151190
  }
151037
151191
  }
151038
151192
  }
@@ -152525,7 +152679,7 @@ var sub_table_form_modal_vue_vue_type_script_setup_true_lang_default = /*@__PURE
152525
152679
  //#endregion
152526
152680
  //#region src/runtime/designer/ribbon/components/sub-table-form-modal.vue
152527
152681
  init__plugin_vue_export_helper();
152528
- var sub_table_form_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(sub_table_form_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-469bf064"]]);
152682
+ var sub_table_form_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(sub_table_form_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-613b9fb0"]]);
152529
152683
  //#endregion
152530
152684
  //#region src/runtime/designer/ribbon/components/set-table-header-form-modal.vue?vue&type=script&setup=true&lang.ts
152531
152685
  init_base$2();
@@ -155020,7 +155174,7 @@ var table_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
155020
155174
  class: "menu-item",
155021
155175
  onClick: _cache[2] || (_cache[2] = ($event) => handleAction("add-col", "before"))
155022
155176
  }, [
155023
- _cache[18] || (_cache[18] = createElementVNode("i", { class: "item-icon icon iconfont icon-zuocecharulie" }, null, -1)),
155177
+ _cache[18] || (_cache[18] = createElementVNode("i", { class: "item-icon iconfont icon-zuocecharulie" }, null, -1)),
155024
155178
  _cache[19] || (_cache[19] = createElementVNode("span", { class: "item-name" }, "在左侧插入列", -1)),
155025
155179
  createElementVNode("div", _hoisted_1$112, [createVNode(unref(input_number_default), {
155026
155180
  min: 1,
@@ -155033,7 +155187,7 @@ var table_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
155033
155187
  class: "menu-item",
155034
155188
  onClick: _cache[5] || (_cache[5] = ($event) => handleAction("add-col", "after"))
155035
155189
  }, [
155036
- _cache[20] || (_cache[20] = createElementVNode("i", { class: "item-icon icon iconfont icon-youcecharulie" }, null, -1)),
155190
+ _cache[20] || (_cache[20] = createElementVNode("i", { class: "item-icon iconfont icon-youcecharulie" }, null, -1)),
155037
155191
  _cache[21] || (_cache[21] = createElementVNode("span", { class: "item-name" }, "在右侧插入列", -1)),
155038
155192
  createElementVNode("div", _hoisted_2$69, [createVNode(unref(input_number_default), {
155039
155193
  min: 1,
@@ -155045,12 +155199,12 @@ var table_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
155045
155199
  createElementVNode("div", {
155046
155200
  class: "menu-item",
155047
155201
  onClick: _cache[6] || (_cache[6] = ($event) => handleAction("delete-col"))
155048
- }, [..._cache[22] || (_cache[22] = [createElementVNode("i", { class: "item-icon icon iconfont icon-shanchulie" }, null, -1), createElementVNode("span", { class: "item-name" }, "删除列", -1)])]),
155202
+ }, [..._cache[22] || (_cache[22] = [createElementVNode("i", { class: "item-icon iconfont icon-shanchulie" }, null, -1), createElementVNode("span", { class: "item-name" }, "删除列", -1)])]),
155049
155203
  createElementVNode("div", {
155050
155204
  class: "menu-item",
155051
155205
  onClick: _cache[9] || (_cache[9] = ($event) => handleAction("add-row", "before"))
155052
155206
  }, [
155053
- _cache[23] || (_cache[23] = createElementVNode("i", { class: "item-icon icon iconfont icon-a-shangcharuhang1" }, null, -1)),
155207
+ _cache[23] || (_cache[23] = createElementVNode("i", { class: "item-icon iconfont icon-a-shangcharuhang1" }, null, -1)),
155054
155208
  _cache[24] || (_cache[24] = createElementVNode("span", { class: "item-name" }, "在上方插入行", -1)),
155055
155209
  createElementVNode("div", _hoisted_3$44, [createVNode(unref(input_number_default), {
155056
155210
  min: 1,
@@ -155063,7 +155217,7 @@ var table_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
155063
155217
  class: "menu-item",
155064
155218
  onClick: _cache[12] || (_cache[12] = ($event) => handleAction("add-row", "after"))
155065
155219
  }, [
155066
- _cache[25] || (_cache[25] = createElementVNode("i", { class: "item-icon icon iconfont icon-a-xiacharuhang1" }, null, -1)),
155220
+ _cache[25] || (_cache[25] = createElementVNode("i", { class: "item-icon iconfont icon-a-xiacharuhang1" }, null, -1)),
155067
155221
  _cache[26] || (_cache[26] = createElementVNode("span", { class: "item-name" }, "在下方插入行", -1)),
155068
155222
  createElementVNode("div", _hoisted_4$34, [createVNode(unref(input_number_default), {
155069
155223
  min: 1,
@@ -155075,23 +155229,23 @@ var table_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
155075
155229
  createElementVNode("div", {
155076
155230
  class: "menu-item",
155077
155231
  onClick: _cache[13] || (_cache[13] = ($event) => handleAction("delete-row"))
155078
- }, [..._cache[27] || (_cache[27] = [createElementVNode("i", { class: "item-icon icon iconfont icon-shanchuhang" }, null, -1), createElementVNode("span", { class: "item-name" }, "删除行", -1)])]),
155232
+ }, [..._cache[27] || (_cache[27] = [createElementVNode("i", { class: "item-icon iconfont icon-shanchuhang" }, null, -1), createElementVNode("span", { class: "item-name" }, "删除行", -1)])]),
155079
155233
  createElementVNode("div", {
155080
155234
  class: "menu-item",
155081
155235
  onClick: _cache[14] || (_cache[14] = ($event) => handleAction("data-group"))
155082
- }, [..._cache[28] || (_cache[28] = [createElementVNode("i", { class: "item-icon icon iconfont icon-shujufenzu" }, null, -1), createElementVNode("span", { class: "item-name" }, "数据分组", -1)])]),
155236
+ }, [..._cache[28] || (_cache[28] = [createElementVNode("i", { class: "item-icon iconfont icon-shujufenzu" }, null, -1), createElementVNode("span", { class: "item-name" }, "数据分组", -1)])]),
155083
155237
  createElementVNode("div", {
155084
155238
  class: "menu-item",
155085
155239
  onClick: _cache[15] || (_cache[15] = ($event) => handleAction("data-group-2d"))
155086
- }, [..._cache[29] || (_cache[29] = [createElementVNode("i", { class: "item-icon icon iconfont icon-dongtaiguanlian" }, null, -1), createElementVNode("span", { class: "item-name" }, "动态关联", -1)])]),
155240
+ }, [..._cache[29] || (_cache[29] = [createElementVNode("i", { class: "item-icon iconfont icon-dongtaiguanlian" }, null, -1), createElementVNode("span", { class: "item-name" }, "动态关联", -1)])]),
155087
155241
  createElementVNode("div", {
155088
155242
  class: "menu-item",
155089
155243
  onClick: _cache[16] || (_cache[16] = ($event) => handleAction("merge"))
155090
- }, [..._cache[30] || (_cache[30] = [createElementVNode("i", { class: "item-icon icon iconfont icon-hebingdanyuange_merge-cells" }, null, -1), createElementVNode("span", { class: "item-name" }, "合并单元格", -1)])]),
155244
+ }, [..._cache[30] || (_cache[30] = [createElementVNode("i", { class: "item-icon iconfont icon-hebingdanyuange_merge-cells" }, null, -1), createElementVNode("span", { class: "item-name" }, "合并单元格", -1)])]),
155091
155245
  createElementVNode("div", {
155092
155246
  class: "menu-item",
155093
155247
  onClick: _cache[17] || (_cache[17] = ($event) => handleAction("table-header"))
155094
- }, [..._cache[31] || (_cache[31] = [createElementVNode("i", { class: "item-icon icon iconfont icon-biaotou" }, null, -1), createElementVNode("span", { class: "item-name" }, "设置表头", -1)])])
155248
+ }, [..._cache[31] || (_cache[31] = [createElementVNode("i", { class: "item-icon iconfont icon-biaotou" }, null, -1), createElementVNode("span", { class: "item-name" }, "设置表头", -1)])])
155095
155249
  ], 64);
155096
155250
  };
155097
155251
  }
@@ -155099,7 +155253,7 @@ var table_menu_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
155099
155253
  //#endregion
155100
155254
  //#region src/runtime/canvas/__common__/context-menu/table-menu.vue
155101
155255
  init__plugin_vue_export_helper();
155102
- var table_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_menu_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-243eee50"]]);
155256
+ var table_menu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_menu_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-1146bb4b"]]);
155103
155257
  //#endregion
155104
155258
  //#region src/runtime/canvas/__common__/context-menu/index.vue?vue&type=script&setup=true&lang.ts
155105
155259
  var OFFSET = 4;
@@ -162559,18 +162713,18 @@ var table_setting_module_vue_vue_type_script_setup_true_name_table_setting_modul
162559
162713
  onClick: ($event) => _ctx.$emit("active", item)
162560
162714
  }, [
162561
162715
  (item === null || item === void 0 ? void 0 : item.thead) ? (openBlock(), createElementBlock("div", _hoisted_3$40, [createElementVNode("span", _hoisted_4$30, toDisplayString(item.thead.name || "[表头]"), 1), createVNode(unref(icon_default), {
162562
- class: "icon",
162716
+ class: "gct-word-table-setting-icon",
162563
162717
  icon: "icon-shanchu2",
162564
162718
  color: "#797a7d",
162565
162719
  onClick: withModifiers(($event) => _ctx.$emit("delete-thead", item), ["stop"])
162566
162720
  }, null, 8, ["onClick"])])) : createCommentVNode("", true),
162567
162721
  __props.type !== "table-header" && (item === null || item === void 0 ? void 0 : item.thead) ? (openBlock(), createElementBlock("div", _hoisted_5$23, [createVNode(unref(icon_default), {
162568
- class: "icon",
162722
+ class: "gct-word-table-setting-icon",
162569
162723
  icon: "icon-lianjie2",
162570
162724
  color: "#797a7d"
162571
162725
  })])) : createCommentVNode("", true),
162572
162726
  item ? (openBlock(), createElementBlock("div", _hoisted_6$15, [createElementVNode("span", _hoisted_7$10, toDisplayString(item.name || "[空]"), 1), createVNode(unref(icon_default), {
162573
- class: "icon",
162727
+ class: "gct-word-table-setting-icon",
162574
162728
  icon: "icon-shanchu2",
162575
162729
  color: "#797a7d",
162576
162730
  onClick: withModifiers(($event) => _ctx.$emit("delete", item), ["stop"])
@@ -162583,7 +162737,7 @@ var table_setting_module_vue_vue_type_script_setup_true_name_table_setting_modul
162583
162737
  //#endregion
162584
162738
  //#region src/suites/shared/panel/modules/table-setting-module.vue
162585
162739
  init__plugin_vue_export_helper();
162586
- var table_setting_module_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_setting_module_vue_vue_type_script_setup_true_name_table_setting_module_lang_default, [["__scopeId", "data-v-0c37b821"]]);
162740
+ var table_setting_module_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_setting_module_vue_vue_type_script_setup_true_name_table_setting_module_lang_default, [["__scopeId", "data-v-36a70e6f"]]);
162587
162741
  //#endregion
162588
162742
  //#region src/suites/edhr/panel-schema/paper/modules/table-setting-config.vue?vue&type=script&setup=true&lang.ts
162589
162743
  init_core();
@@ -163645,7 +163799,7 @@ var barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barco
163645
163799
  }, {
163646
163800
  popper: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" 根据配置的参数物料批次或唯一码先从收料或者库存中查询数据 ", -1)])]),
163647
163801
  default: withCtx(() => [createVNode(unref(icon_default), {
163648
- class: "icon",
163802
+ class: "gct-word-barcode-parsing-tip-icon",
163649
163803
  icon: "icon-assist"
163650
163804
  })]),
163651
163805
  _: 1
@@ -163663,7 +163817,7 @@ var barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barco
163663
163817
  //#endregion
163664
163818
  //#region src/suites/shared/panel/config/editor/qrcode-parse-editor/barcode-parsing-rules-group-editor.vue
163665
163819
  init__plugin_vue_export_helper();
163666
- var barcode_parsing_rules_group_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barcode_parsing_rules_group_editor_lang_default, [["__scopeId", "data-v-d7f2e6ed"]]);
163820
+ var barcode_parsing_rules_group_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(barcode_parsing_rules_group_editor_vue_vue_type_script_setup_true_name_barcode_parsing_rules_group_editor_lang_default, [["__scopeId", "data-v-d2baa699"]]);
163667
163821
  //#endregion
163668
163822
  //#region src/suites/shared/panel/modules/sub-table-basic-info.vue?vue&type=script&setup=true&lang.ts
163669
163823
  init_base$2();
@@ -163982,7 +164136,7 @@ var confirm_before_delete_config_vue_vue_type_script_setup_true_lang_default = /
163982
164136
  }, {
163983
164137
  popper: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode("按钮点击时,提示操作用户先进行确认", -1)])]),
163984
164138
  default: withCtx(() => [createVNode(unref(icon_default), {
163985
- class: "icon",
164139
+ class: "gct-word-delete-confirm-tip-icon",
163986
164140
  icon: "icon-assist"
163987
164141
  })]),
163988
164142
  _: 1
@@ -164013,7 +164167,7 @@ var confirm_before_delete_config_vue_vue_type_script_setup_true_lang_default = /
164013
164167
  //#endregion
164014
164168
  //#region src/suites/shared/panel/modules/confirm-before-delete-config.vue
164015
164169
  init__plugin_vue_export_helper();
164016
- var confirm_before_delete_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(confirm_before_delete_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-26bb6d71"]]);
164170
+ var confirm_before_delete_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(confirm_before_delete_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-db373e7d"]]);
164017
164171
  //#endregion
164018
164172
  //#region src/suites/shared/panel/modules/quick-fill-config.vue?vue&type=script&setup=true&lang.ts
164019
164173
  init_base$2();
@@ -164034,7 +164188,7 @@ var quick_fill_config_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
164034
164188
  }, {
164035
164189
  popper: withCtx(() => [createTextVNode(" 开启后可在弹窗中快速新增" + toDisplayString(__props.typeLabel) + "数据 ", 1)]),
164036
164190
  default: withCtx(() => [createVNode(unref(icon_default), {
164037
- class: "icon",
164191
+ class: "gct-word-quick-fill-tip-icon",
164038
164192
  icon: "icon-assist"
164039
164193
  })]),
164040
164194
  _: 1
@@ -164052,7 +164206,7 @@ var quick_fill_config_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
164052
164206
  //#endregion
164053
164207
  //#region src/suites/shared/panel/modules/quick-fill-config.vue
164054
164208
  init__plugin_vue_export_helper();
164055
- var quick_fill_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(quick_fill_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-02fe46c5"]]);
164209
+ var quick_fill_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(quick_fill_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-daed50f4"]]);
164056
164210
  //#endregion
164057
164211
  //#region src/suites/edhr/panel-schema/_shared/RepeatingSubTablePanel.vue?vue&type=script&setup=true&lang.ts
164058
164212
  init_base$2();
@@ -164187,7 +164341,7 @@ var RepeatingSubTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PU
164187
164341
  }, toDisplayString(item.label) + ":" + toDisplayString(item.tip), 1);
164188
164342
  }), 128))]),
164189
164343
  default: withCtx(() => [createVNode(unref(icon_default), {
164190
- class: "icon",
164344
+ class: "gct-word-repeating-table-tip-icon",
164191
164345
  icon: "icon-assist"
164192
164346
  })]),
164193
164347
  _: 1
@@ -164209,7 +164363,7 @@ var RepeatingSubTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PU
164209
164363
  //#endregion
164210
164364
  //#region src/suites/edhr/panel-schema/_shared/RepeatingSubTablePanel.vue
164211
164365
  init__plugin_vue_export_helper();
164212
- var RepeatingSubTablePanel_default = /*#__PURE__*/ _plugin_vue_export_helper_default(RepeatingSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-74bc858e"]]);
164366
+ var RepeatingSubTablePanel_default = /*#__PURE__*/ _plugin_vue_export_helper_default(RepeatingSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d0b5696e"]]);
164213
164367
  //#endregion
164214
164368
  //#region src/suites/edhr/panel-schema/_shared/create-table-panel-schema.ts
164215
164369
  init_table$1();
@@ -164407,7 +164561,7 @@ var _2DSubTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
164407
164561
  init__plugin_vue_export_helper();
164408
164562
  //#endregion
164409
164563
  //#region src/suites/edhr/panel-schema/2d-table/2d-table.basic.ts
164410
- var schema$15 = createTablePanelSchema("2d-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(_2DSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-12ebeb6f"]]));
164564
+ var schema$15 = createTablePanelSchema("2d-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(_2DSubTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e6976515"]]));
164411
164565
  //#endregion
164412
164566
  //#region src/suites/edhr/panel-schema/material-consume-table/parse-rule-add-btn.vue?vue&type=script&setup=true&name=parse-rule-add-btn&lang.ts
164413
164567
  init_base$2();
@@ -164841,7 +164995,7 @@ var MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default = /*@_
164841
164995
  }, {
164842
164996
  popper: withCtx(() => [..._cache[11] || (_cache[11] = [createTextVNode(" 根据配置的参数物料批次或唯一码先从收料或者库存中查询数据 ", -1)])]),
164843
164997
  default: withCtx(() => [createVNode(unref(icon_default), {
164844
- class: "icon",
164998
+ class: "gct-word-material-consume-tip-icon",
164845
164999
  icon: "icon-assist"
164846
165000
  })]),
164847
165001
  _: 1
@@ -164925,7 +165079,7 @@ var MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default = /*@_
164925
165079
  init__plugin_vue_export_helper();
164926
165080
  //#endregion
164927
165081
  //#region src/suites/edhr/panel-schema/material-consume-table/material-consume-table.basic.ts
164928
- var schema$14 = createTablePanelSchema("material-consume-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-10fcc011"]]));
165082
+ var schema$14 = createTablePanelSchema("material-consume-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(MaterialConsumeTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7339546c"]]));
164929
165083
  //#endregion
164930
165084
  //#region src/suites/edhr/panel-schema/_shared/BoundedSubTablePanel.vue?vue&type=script&setup=true&lang.ts
164931
165085
  init_table$1();
@@ -165165,7 +165319,7 @@ var CheckTablePanel_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/
165165
165319
  init__plugin_vue_export_helper();
165166
165320
  //#endregion
165167
165321
  //#region src/suites/edhr/panel-schema/check-table/check-table.basic.ts
165168
- var schema$12 = createTablePanelSchema("check-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(CheckTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ff555ae9"]]));
165322
+ var schema$12 = createTablePanelSchema("check-table.basic", /* @__PURE__ */ _plugin_vue_export_helper_default(CheckTablePanel_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0b1ffca4"]]));
165169
165323
  //#endregion
165170
165324
  //#region src/suites/edhr/panel-schema/data-group/DataGroupPanel.vue?vue&type=script&setup=true&lang.ts
165171
165325
  init_base$2();
@@ -169604,7 +169758,7 @@ var field_dependency_modal_vue_vue_type_script_setup_true_lang_default = /*@__PU
169604
169758
  return (_ctx, _cache) => {
169605
169759
  return openBlock(), createElementBlock("div", _hoisted_1$65, [
169606
169760
  createElementVNode("div", _hoisted_2$31, [_cache[9] || (_cache[9] = createElementVNode("div", { class: "label" }, "当前组件", -1)), createElementVNode("div", _hoisted_3$18, [createElementVNode("div", _hoisted_4$13, [createVNode(unref(icon_default), {
169607
- class: "icon",
169761
+ class: "gct-word-field-dependency-icon",
169608
169762
  icon: __props.fieldIdentity.icon,
169609
169763
  version: __props.fieldIdentity.version,
169610
169764
  color: "#026ac8",
@@ -169704,7 +169858,7 @@ var field_dependency_modal_vue_vue_type_script_setup_true_lang_default = /*@__PU
169704
169858
  //#endregion
169705
169859
  //#region src/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue
169706
169860
  init__plugin_vue_export_helper();
169707
- var field_dependency_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(field_dependency_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f50fbc4b"]]);
169861
+ var field_dependency_modal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(field_dependency_modal_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-181d9390"]]);
169708
169862
  //#endregion
169709
169863
  //#region src/suites/shared/panel/modules/field-formula-module/formula-field-options.ts
169710
169864
  var buildChildrenFromModel = (model) => {
@@ -172235,7 +172389,19 @@ var online_form_tmpl_select_default = /* @__PURE__ */ defineComponent({
172235
172389
  //#endregion
172236
172390
  //#region src/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.ts
172237
172391
  init_field_type();
172238
- function getDefaultDisplayFieldConfig(_type) {
172392
+ /** 物料字段的设计端默认显示列。 */
172393
+ var DEFAULT_DISPLAY_FIELDS_MAP = { material: [
172394
+ "code_",
172395
+ "name_",
172396
+ "spec_",
172397
+ "uom_id_",
172398
+ "description_"
172399
+ ] };
172400
+ function getDefaultDisplayFieldConfig(type) {
172401
+ if ([FIELD_TYPE.PRODUCT, FIELD_TYPE.SCRAP_MATERIAL].includes(type)) return {
172402
+ keys: DEFAULT_DISPLAY_FIELDS_MAP.material,
172403
+ unremovableKeys: ["code_"]
172404
+ };
172239
172405
  return {
172240
172406
  keys: [],
172241
172407
  unremovableKeys: []
@@ -172276,9 +172442,10 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
172276
172442
  const { isRefer } = useDocPubApiContext();
172277
172443
  const props = __props;
172278
172444
  const emit = __emit;
172445
+ const defaultConfig = computed(() => getDefaultDisplayFieldConfig(resolveFieldManifestType(props.fieldMeta)));
172279
172446
  const showDisplayFields = computed(() => !props.hideConfig && showDisplayAndSearchConfig(props.fieldMeta));
172280
172447
  const unremovableValues = computed(() => {
172281
- const keys = getDefaultDisplayFieldConfig(resolveFieldManifestType(props.fieldMeta)).unremovableKeys;
172448
+ const keys = defaultConfig.value.unremovableKeys;
172282
172449
  return (props.displayFields || []).filter((field) => field._dfUnremovable || keys.includes(field.key)).map((field) => field._dfValue);
172283
172450
  });
172284
172451
  const selectorInfo = computed(() => {
@@ -172301,23 +172468,25 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
172301
172468
  triggerUtil.handle("OPEN_DISPLAY_FIELDS_TRANSFER_MODAL", {
172302
172469
  modelKey: props.fieldMeta.bindInfo,
172303
172470
  displayFields: props.displayFields || [],
172304
- readonly: isRefer.value
172471
+ readonly: isRefer.value,
172472
+ disabledFieldKey: defaultConfig.value.unremovableKeys
172305
172473
  }).then(({ objFieldList }) => {
172306
172474
  if (isRefer.value) return;
172307
- const { unremovableKeys } = getDefaultDisplayFieldConfig(resolveFieldManifestType(props.fieldMeta));
172475
+ const { unremovableKeys } = defaultConfig.value;
172308
172476
  const fields = (objFieldList || []).map((f) => ({
172309
172477
  ...f,
172310
172478
  _dfLabel: f.name,
172311
172479
  _dfValue: f.id,
172312
172480
  _dfUnremovable: unremovableKeys.includes(f.key)
172313
172481
  }));
172314
- emit("update:displayFields", fields);
172482
+ const locked = (props.displayFields || []).filter((field) => defaultConfig.value.unremovableKeys.includes(field.key) && !fields.some((item) => item.key === field.key));
172483
+ emit("update:displayFields", [...locked, ...fields]);
172315
172484
  });
172316
172485
  };
172317
172486
  const handleSelectChange = (remainingKeys) => {
172318
172487
  if (isRefer.value) return;
172319
172488
  const options = (props.displayFields || []).filter((o) => {
172320
- return o._dfUnremovable ? true : remainingKeys.includes(o._dfValue);
172489
+ return unremovableValues.value.includes(o._dfValue) || remainingKeys.includes(o._dfValue);
172321
172490
  });
172322
172491
  emit("update:displayFields", options);
172323
172492
  };
@@ -172327,13 +172496,12 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
172327
172496
  if (displayFields !== void 0) return;
172328
172497
  const { bindInfo } = fieldMeta;
172329
172498
  if (!bindInfo) return;
172330
- const type = resolveFieldManifestType(fieldMeta);
172331
- if (!(retainsLegacyDisplayFields(type) || fieldMeta.key.split("$").pop() === "part_id_")) {
172499
+ if (!(retainsLegacyDisplayFields(resolveFieldManifestType(fieldMeta)) || fieldMeta.key.split("$").pop() === "part_id_") && !defaultConfig.value.keys.length) {
172332
172500
  emit("update:displayFields", []);
172333
172501
  return;
172334
172502
  }
172335
- const { unremovableKeys } = getDefaultDisplayFieldConfig(type);
172336
- const keys = Array.from(new Set((props.legacySearchFields || []).map((key) => key.split(".")[0])));
172503
+ const { keys: defaultKeys, unremovableKeys } = defaultConfig.value;
172504
+ const keys = Array.from(new Set(defaultKeys.length ? defaultKeys : (props.legacySearchFields || []).map((key) => key.split(".")[0])));
172337
172505
  if (!keys.length) return;
172338
172506
  const fields = await loadFieldList(bindInfo) || [];
172339
172507
  if (props.displayFields !== void 0 || props.fieldMeta.bindInfo !== bindInfo) return;
@@ -172353,7 +172521,8 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
172353
172521
  inline: false
172354
172522
  }, {
172355
172523
  default: withCtx(() => [createElementVNode("div", { title: selectorInfo.value.displayTitle }, [createVNode(unref(basic_select_default), {
172356
- allowClear: "",
172524
+ allowClear: !defaultConfig.value.unremovableKeys.length,
172525
+ "multiple-clearable": !defaultConfig.value.unremovableKeys.length,
172357
172526
  picker: "",
172358
172527
  multipleArrow: "",
172359
172528
  multipleClearOnHover: "",
@@ -172368,6 +172537,8 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
172368
172537
  onClick: handleOpenModal,
172369
172538
  onChange: _cache[1] || (_cache[1] = (keys) => handleSelectChange(keys))
172370
172539
  }, null, 8, [
172540
+ "allowClear",
172541
+ "multiple-clearable",
172371
172542
  "options",
172372
172543
  "unremovable-values",
172373
172544
  "modelValue",
@@ -172381,7 +172552,7 @@ var display_fields_editor_vue_vue_type_script_setup_true_lang_default = /*@__PUR
172381
172552
  //#endregion
172382
172553
  //#region src/suites/shared/panel/config/editor/display-fields-editor/display-fields-editor.vue
172383
172554
  init__plugin_vue_export_helper();
172384
- var display_fields_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(display_fields_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3490c1e6"]]);
172555
+ var display_fields_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(display_fields_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c4b171d3"]]);
172385
172556
  //#endregion
172386
172557
  //#region src/suites/shared/panel/config/editor/quick-search-editor/quick-search-editor.vue?vue&type=script&setup=true&name=quick-search-editor&lang.ts
172387
172558
  init_base$2();
@@ -175256,7 +175427,7 @@ var field_sign_config_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
175256
175427
  }, {
175257
175428
  popper: withCtx(() => [..._cache[14] || (_cache[14] = [createTextVNode(" 个人无上传/手写签名素材时,密码校验通过后展示的兜底签名样式 ", -1)])]),
175258
175429
  default: withCtx(() => [createVNode(unref(icon_default), {
175259
- class: "icon",
175430
+ class: "gct-word-sign-config-tip-icon",
175260
175431
  icon: "icon-assist"
175261
175432
  })]),
175262
175433
  _: 1
@@ -175305,7 +175476,7 @@ var field_sign_config_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*
175305
175476
  //#region src/suites/edhr/panel-config/field/sign/field-sign-config.vue
175306
175477
  var field_sign_config_exports = /* @__PURE__ */ __exportAll({ default: () => field_sign_config_default });
175307
175478
  init__plugin_vue_export_helper();
175308
- var field_sign_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(field_sign_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c6230206"]]);
175479
+ var field_sign_config_default = /*#__PURE__*/ _plugin_vue_export_helper_default(field_sign_config_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-673608d1"]]);
175309
175480
  //#endregion
175310
175481
  //#region src/suites/edhr/panel-config/field/sign/field-sign-style.vue?vue&type=script&setup=true&lang.ts
175311
175482
  var _hoisted_1$21 = { class: "panel-field-sign-style" };
@@ -176834,7 +177005,7 @@ var single_drop_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
176834
177005
  };
176835
177006
  return (_ctx, _cache) => {
176836
177007
  return openBlock(), createElementBlock("div", _hoisted_1$11, [!__props.data ? (openBlock(), createElementBlock("div", _hoisted_2$6, toDisplayString(__props.dragText), 1)) : (openBlock(), createElementBlock("div", _hoisted_3$2, [createElementVNode("div", _hoisted_4$2, [createVNode(unref(icon_default), {
176837
- class: "icon",
177008
+ class: "gct-word-single-drop-field-icon",
176838
177009
  icon: __props.data.fieldIdentity.icon,
176839
177010
  version: __props.data.fieldIdentity.version,
176840
177011
  color: "#026ac8",
@@ -176851,7 +177022,7 @@ var single_drop_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
176851
177022
  //#endregion
176852
177023
  //#region src/suites/shared/panel/config/editor/single-field-editor/single-drop.vue
176853
177024
  init__plugin_vue_export_helper();
176854
- var single_drop_default = /*#__PURE__*/ _plugin_vue_export_helper_default(single_drop_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7300ddde"]]);
177025
+ var single_drop_default = /*#__PURE__*/ _plugin_vue_export_helper_default(single_drop_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0635a358"]]);
176855
177026
  //#endregion
176856
177027
  //#region src/suites/shared/panel/config/editor/single-field-editor/single-field-editor.vue?vue&type=script&setup=true&lang.ts
176857
177028
  init_base$2();