@ximatai/muyun-web-app 0.26.29 → 0.26.31

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.
Files changed (42) hide show
  1. package/dist/{BusinessActivityLogView-fzxP3P68.js → BusinessActivityLogView-Dw_SjtBi.js} +2 -2
  2. package/dist/BusinessLogListDrawer-Bkws0k6G.js +868 -0
  3. package/dist/{CodeConfigurationView-DXrXp7kg.js → CodeConfigurationView-D-S2nX4C.js} +703 -703
  4. package/dist/{ConfigurationTranslationView-CNWJhB8C.js → ConfigurationTranslationView-CzLoZCo5.js} +21 -21
  5. package/dist/{LoginAuditLogView-D2q4WT8W.js → LoginAuditLogView-DxAlmQ9Q.js} +2 -2
  6. package/dist/ModuleActionManagementView-CfsGwDOn.js +780 -0
  7. package/dist/{ModuleGovernanceView-BFCfy5wB.js → ModuleGovernanceView-Bt2UhO-A.js} +2352 -2352
  8. package/dist/{RequestErrorLogView-C-dZhHvD.js → RequestErrorLogView--g3Uwvzx.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-Bv21G3CF.js +1435 -0
  10. package/dist/{RuntimeLogView-BuFuboQh.js → RuntimeLogView-CM47CKiD.js} +38 -38
  11. package/dist/WorkflowAdministrationView-CYq7bXS5.js +650 -0
  12. package/dist/{WorkflowConfigurationView-VLObweIg.js → WorkflowConfigurationView-D1ve8wHF.js} +189 -189
  13. package/dist/WorkflowWorkbenchView-CJXy2iRP.js +759 -0
  14. package/dist/{codeConfiguration-DbUEhnW7.js → codeConfiguration-Bls4mHm3.js} +28 -28
  15. package/dist/{configurationEditorNavigation-DZeBbg3z.js → configurationEditorNavigation-DteTknF3.js} +2 -2
  16. package/dist/index.css +1 -1
  17. package/dist/index.js +704 -646
  18. package/dist/{moduleMenuWorkspace-COanAuqc.js → moduleMenuWorkspace-CsYcDzfq.js} +197 -197
  19. package/dist/{platform-components-5joS6YaR.js → platform-components-CT5wnPa0.js} +2267 -2034
  20. package/dist/{platform-workbench-le7pFe4d.js → platform-workbench-CBLyxlvV.js} +5026 -5014
  21. package/dist/types/app/useLoginFailureFeedback.d.ts +8 -0
  22. package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +13 -0
  23. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +7 -29
  24. package/dist/types/platform-components/RecordPicker.vue.d.ts +7 -31
  25. package/dist/types/platform-components/RecordReferencePicker.vue.d.ts +24 -0
  26. package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
  27. package/dist/types/platform-components/ReferenceSelectionPanel.vue.d.ts +20 -0
  28. package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
  29. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -0
  30. package/dist/types/platform-components/recordReferencePickerProvider.d.ts +26 -0
  31. package/dist/types/platform-components/workflowAccountOptions.d.ts +3 -3
  32. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +2 -0
  33. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +13 -2
  34. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +8 -2
  35. package/dist/{useWorkflowConfigurationContext-B9GigSF8.js → useWorkflowConfigurationContext-DsuGHZ0U.js} +9 -9
  36. package/dist/{workspaceViews-8-LaaGxD.js → workspaceViews-BxEz6u5n.js} +523 -523
  37. package/package.json +1 -1
  38. package/dist/BusinessLogListDrawer-C7wb2R6q.js +0 -868
  39. package/dist/ModuleActionManagementView-Xd8uB3iR.js +0 -780
  40. package/dist/RoleDetailWorkspaceView-BmtEBE0r.js +0 -1435
  41. package/dist/WorkflowAdministrationView-Cb6RnlGU.js +0 -650
  42. package/dist/WorkflowWorkbenchView-CbZervUv.js +0 -759
@@ -1,11 +1,11 @@
1
1
  import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { ft as t, m as n, y as r } from "./platform-workbench-le7pFe4d.js";
3
- import { Aa as i, An as a, Ca as o, En as s, G as c, Gn as l, Gt as u, Ia as d, In as ee, Kt as te, Na as ne, Qr as re, Rn as ie, Rr as ae, Sa as oe, Sn as se, Ur as ce, Va as le, Wa as ue, Xn as f, Zi as p, _r as m, ao as de, at as fe, ba as h, br as g, ci as pe, dr as _, hr as me, ia as v, in as he, jn as ge, la as _e, lo as ve, mr as y, no as ye, nr as b, ot as be, pa as xe, qt as Se, r as Ce, rn as we, ti as Te, tr as Ee, ua as De, v as Oe, vr as x, yt as ke, zn as Ae } from "./platform-components-5joS6YaR.js";
4
- import { a as je, c as Me, d as Ne, f as Pe, g as Fe, i as Ie, l as Le, m as S, n as Re, o as ze, p as Be, r as Ve, s as He, t as Ue, u as We } from "./codeConfiguration-DbUEhnW7.js";
5
- import { t as Ge } from "./configurationEditorNavigation-DZeBbg3z.js";
6
- import { Fragment as Ke, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as qe, createTextVNode as O, createVNode as k, defineComponent as Je, inject as Ye, isRef as Xe, mergeModels as Ze, nextTick as Qe, normalizeClass as $e, onActivated as et, onBeforeUnmount as tt, onDeactivated as nt, onMounted as A, onUnmounted as j, openBlock as M, ref as N, renderList as rt, toDisplayString as P, toRaw as it, unref as F, useModel as at, vShow as ot, watch as st, withCtx as I, withDirectives as ct } from "vue";
2
+ import { ft as t, m as n, y as r } from "./platform-workbench-CBLyxlvV.js";
3
+ import { An as i, Ba as a, Fa as o, Fn as s, G as c, Gt as l, Hr as u, Kt as d, Ln as ee, Lr as te, Ma as ne, Rn as re, Sa as f, Tn as ie, Ua as ae, Wn as oe, Wt as p, Xi as m, Yn as se, Zr as ce, _r as h, ca as le, co as ue, ei as de, er as fe, fa as pe, gr as me, io as he, ka as ge, kn as _e, la as ve, mr as ye, nn as be, nt as xe, pr as g, r as Se, ra as _, rn as Ce, si as we, st as Te, to as v, tr as Ee, ur as y, v as De, vt as Oe, xa as ke, xn as Ae, ya as je, yr as Me } from "./platform-components-CT5wnPa0.js";
4
+ import { a as Ne, c as Pe, d as Fe, f as Ie, g as Le, i as Re, l as ze, m as b, n as Be, o as Ve, p as He, r as Ue, s as We, t as Ge, u as Ke } from "./codeConfiguration-Bls4mHm3.js";
5
+ import { t as qe } from "./configurationEditorNavigation-DteTknF3.js";
6
+ import { Fragment as Je, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Ye, createTextVNode as E, createVNode as D, defineComponent as Xe, inject as Ze, isRef as Qe, mergeModels as $e, nextTick as et, normalizeClass as tt, onActivated as O, onBeforeUnmount as nt, onDeactivated as rt, onMounted as k, onUnmounted as A, openBlock as j, ref as M, renderList as it, toDisplayString as N, toRaw as at, unref as P, useModel as ot, vShow as st, watch as ct, withCtx as F, withDirectives as lt } from "vue";
7
7
  //#region src/views/codeRuleSaveRecovery.ts
8
- function lt(e, t) {
8
+ function ut(e, t) {
9
9
  let n = `muyun.code-rule-save.${e}`, r = () => {
10
10
  let e = t.getItem(n);
11
11
  if (!e) return;
@@ -36,21 +36,21 @@ function lt(e, t) {
36
36
  }
37
37
  //#endregion
38
38
  //#region src/views/useCodeConfigurationSession.ts
39
- function ut(e) {
40
- let t = N(), n = N(""), r = N(!0), i = N(!1);
41
- et(() => {
39
+ function dt(e) {
40
+ let t = M(), n = M(""), r = M(!0), i = M(!1);
41
+ O(() => {
42
42
  r.value = !0;
43
- }), nt(() => {
43
+ }), rt(() => {
44
44
  r.value = !1;
45
- }), tt(() => {
45
+ }), nt(() => {
46
46
  r.value = !1;
47
47
  });
48
- let a = C(() => !!t.value && JSON.stringify(t.value) !== n.value);
48
+ let a = x(() => !!t.value && JSON.stringify(t.value) !== n.value);
49
49
  function o(e) {
50
50
  t.value = e ? JSON.parse(JSON.stringify(e)) : void 0, n.value = t.value ? JSON.stringify(t.value) : "";
51
51
  }
52
52
  function s(n, o, s) {
53
- if (!t.value) throw new v("请先打开编号规则");
53
+ if (!t.value) throw new _("请先打开编号规则");
54
54
  let c = JSON.stringify(t.value), l = JSON.parse(c), u = [
55
55
  "title",
56
56
  "mode",
@@ -59,20 +59,20 @@ function ut(e) {
59
59
  "segments",
60
60
  "sequencePolicy"
61
61
  ];
62
- if (!Object.keys(n).length || Object.keys(n).some((e) => !u.includes(e))) throw new v("只能调整规则名称、编号方式、格式与流水策略");
63
- if ("title" in n && (typeof n.title != "string" || n.title.length > 200)) throw new v("规则名称无效");
62
+ if (!Object.keys(n).length || Object.keys(n).some((e) => !u.includes(e))) throw new _("只能调整规则名称、编号方式、格式与流水策略");
63
+ if ("title" in n && (typeof n.title != "string" || n.title.length > 200)) throw new _("规则名称无效");
64
64
  if ("mode" in n && (typeof n.mode != "string" || ![
65
65
  "AUTO",
66
66
  "MANUAL",
67
67
  "AUTO_WITH_MANUAL_EDIT"
68
- ].includes(n.mode))) throw new v("编号方式无效");
69
- for (let e of ["linkedUpdate", "allowRecycle"]) if (e in n && typeof n[e] != "boolean") throw new v("策略必须为布尔值");
68
+ ].includes(n.mode))) throw new _("编号方式无效");
69
+ for (let e of ["linkedUpdate", "allowRecycle"]) if (e in n && typeof n[e] != "boolean") throw new _("策略必须为布尔值");
70
70
  function d(e, t) {
71
- if (!e || typeof e != "object" || Array.isArray(e) || Object.keys(e).some((e) => !t.includes(e))) throw new v("格式只能包含声明的配置字段,不能覆盖持久标识");
71
+ if (!e || typeof e != "object" || Array.isArray(e) || Object.keys(e).some((e) => !t.includes(e))) throw new _("格式只能包含声明的配置字段,不能覆盖持久标识");
72
72
  return e;
73
73
  }
74
74
  if ("segments" in n) {
75
- if (!Array.isArray(n.segments) || n.segments.length > 40) throw new v("编号片段最多40项");
75
+ if (!Array.isArray(n.segments) || n.segments.length > 40) throw new _("编号片段最多40项");
76
76
  for (let e of n.segments) {
77
77
  let t = d(e, [
78
78
  "segmentType",
@@ -98,8 +98,8 @@ function ut(e) {
98
98
  "SEQUENCE",
99
99
  "VALUE_MAPPING",
100
100
  "FORMULA"
101
- ].includes(t.segmentType)) throw new v("编号片段类型无效");
102
- if (!Array.isArray(t.mappings) || t.mappings.length > 100) throw new v("片段映射无效");
101
+ ].includes(t.segmentType)) throw new _("编号片段类型无效");
102
+ if (!Array.isArray(t.mappings) || t.mappings.length > 100) throw new _("片段映射无效");
103
103
  for (let e of t.mappings) {
104
104
  let t = d(e, [
105
105
  "sourceValue",
@@ -107,7 +107,7 @@ function ut(e) {
107
107
  "defaultMapping",
108
108
  "enabled"
109
109
  ]);
110
- if (typeof t.sourceValue != "string" || typeof t.targetValue != "string" || typeof t.defaultMapping != "boolean" || typeof t.enabled != "boolean") throw new v("映射值无效");
110
+ if (typeof t.sourceValue != "string" || typeof t.targetValue != "string" || typeof t.defaultMapping != "boolean" || typeof t.enabled != "boolean") throw new _("映射值无效");
111
111
  }
112
112
  for (let e of [
113
113
  "sourceRef",
@@ -119,8 +119,8 @@ function ut(e) {
119
119
  "separator",
120
120
  "nullPolicy",
121
121
  "truncatePolicy"
122
- ]) if (t[e] != null && typeof t[e] != "string") throw new v("片段文本无效");
123
- if (t.sequenceBasis != null && typeof t.sequenceBasis != "boolean") throw new v("计数依据无效");
122
+ ]) if (t[e] != null && typeof t[e] != "string") throw new _("片段文本无效");
123
+ if (t.sequenceBasis != null && typeof t.sequenceBasis != "boolean") throw new _("计数依据无效");
124
124
  }
125
125
  }
126
126
  if (n.sequencePolicy != null) {
@@ -137,13 +137,13 @@ function ut(e) {
137
137
  "DAY",
138
138
  "MONTH",
139
139
  "YEAR"
140
- ].includes(e.resetPolicy) || !["ERROR", "RESET"].includes(e.overflowPolicy)) throw new v("流水周期或溢出策略无效");
140
+ ].includes(e.resetPolicy) || !["ERROR", "RESET"].includes(e.overflowPolicy)) throw new _("流水周期或溢出策略无效");
141
141
  }
142
142
  let ee = new Set(o.sources.map((e) => e.fieldName));
143
- if (l.segments.some((e) => !Re(e, ee)) && ("segments" in n || "mode" in n && n.mode !== l.mode)) throw new v("当前格式含目录之外来源,请人工维护格式和编号方式");
144
- if (Object.assign(l, n), S(l, e), "segments" in n && l.segments.some((e) => !Re(e, ee))) throw new v("片段只能引用当前可见来源字段");
143
+ if (l.segments.some((e) => !Be(e, ee)) && ("segments" in n || "mode" in n && n.mode !== l.mode)) throw new _("当前格式含目录之外来源,请人工维护格式和编号方式");
144
+ if (Object.assign(l, n), b(l, e), "segments" in n && l.segments.some((e) => !Be(e, ee))) throw new _("片段只能引用当前可见来源字段");
145
145
  return () => {
146
- if (!s() || !r.value || i.value || JSON.stringify(t.value) !== c) throw new v("编码草稿已变化,请重新读取");
146
+ if (!s() || !r.value || i.value || JSON.stringify(t.value) !== c) throw new _("编码草稿已变化,请重新读取");
147
147
  return t.value = l, {
148
148
  changedFields: Object.keys(n),
149
149
  unsaved: a.value,
@@ -163,10 +163,10 @@ function ut(e) {
163
163
  }
164
164
  //#endregion
165
165
  //#region src/views/codeConfigurationAssistantSurface.ts
166
- function dt(e, t) {
166
+ function ft(e, t) {
167
167
  let n = () => {
168
168
  let t = e.state();
169
- if (!t.ready || !t.draft || !t.target) throw new v("请先打开已授权的编号规则");
169
+ if (!t.ready || !t.draft || !t.target) throw new _("请先打开已授权的编号规则");
170
170
  return {
171
171
  ...t,
172
172
  draft: t.draft,
@@ -177,13 +177,13 @@ function dt(e, t) {
177
177
  descriptor: {
178
178
  code: "code-rule.describe-draft",
179
179
  description: "读取当前人工编辑器的编号规则、字段声明和可见来源。未保存草稿不会影响发号。预览不预留号码。",
180
- inputSchema: _e()
180
+ inputSchema: le()
181
181
  },
182
- parseInput: De,
182
+ parseInput: ve,
183
183
  async execute() {
184
184
  let e = n(), t = new Set(e.target.sources.map((e) => e.fieldName)), r = {
185
185
  ...e.draft,
186
- segments: e.draft.segments.map((e) => Re(e, t) ? e : {
186
+ segments: e.draft.segments.map((e) => Be(e, t) ? e : {
187
187
  segmentType: e.segmentType,
188
188
  restricted: !0,
189
189
  message: "此片段含当前目录之外的来源,请人工维护;修改其他配置时保留。"
@@ -307,15 +307,15 @@ function dt(e, t) {
307
307
  }
308
308
  },
309
309
  parseInput(e) {
310
- if (!e || typeof e != "object" || Array.isArray(e) || JSON.stringify(e).length > 16e3) throw new v("编号草稿参数无效");
310
+ if (!e || typeof e != "object" || Array.isArray(e) || JSON.stringify(e).length > 16e3) throw new _("编号草稿参数无效");
311
311
  return e;
312
312
  },
313
313
  async execute(t, r) {
314
- if (!n().editable) throw new v("当前编号规则不可编辑");
314
+ if (!n().editable) throw new _("当前编号规则不可编辑");
315
315
  try {
316
316
  return r.applyEffect(e.prepare(t, r.isCurrent));
317
317
  } catch (e) {
318
- throw e instanceof v ? e : new v("编号候选格式不完整,请核对后重新准备");
318
+ throw e instanceof _ ? e : new _("编号候选格式不完整,请核对后重新准备");
319
319
  }
320
320
  },
321
321
  present() {
@@ -329,14 +329,14 @@ function dt(e, t) {
329
329
  descriptor: {
330
330
  code: "code-rule.preview-draft",
331
331
  description: "使用页面当前明确填写的样例与流水值调用后端同源试算;不分配流水、不占用号码。缺少样例时请用户在试算区补充。",
332
- inputSchema: _e()
332
+ inputSchema: le()
333
333
  },
334
- parseInput: De,
334
+ parseInput: ve,
335
335
  async execute(t, r) {
336
336
  let i = n();
337
- if (i.busy || i.recoveryRequired || i.previewable === !1) throw new v("请先完成当前操作或恢复核对");
337
+ if (i.busy || i.recoveryRequired || i.previewable === !1) throw new _("请先完成当前操作或恢复核对");
338
338
  let a = new Set(i.target.sources.map((e) => e.fieldName));
339
- if (i.draft.segments.some((e) => !Re(e, a))) throw new v("当前规则含目录之外来源,请在页面人工试算");
339
+ if (i.draft.segments.some((e) => !Be(e, a))) throw new _("当前规则含目录之外来源,请在页面人工试算");
340
340
  return {
341
341
  ...await e.trial(r.signal, r.isCurrent),
342
342
  reserved: !1,
@@ -367,8 +367,8 @@ function dt(e, t) {
367
367
  }
368
368
  //#endregion
369
369
  //#region src/views/useCodeConfigurationAssistant.ts
370
- function ft(e) {
371
- let t = xe(), n = N(!1), r = N(!1), i = N(!1), a = N(!1), o = 0, s, c;
370
+ function pt(e) {
371
+ let t = pe(), n = M(!1), r = M(!1), i = M(!1), a = M(!1), o = 0, s, c;
372
372
  function l() {
373
373
  o++, n.value = r.value = i.value = a.value = !1, s?.(), s = void 0;
374
374
  }
@@ -377,7 +377,7 @@ function ft(e) {
377
377
  let s = o, c = e.scope();
378
378
  a.value = !0;
379
379
  try {
380
- let t = await re({
380
+ let t = await ce({
381
381
  http: e.scopedHttp(),
382
382
  moduleAlias: "platform.code_rule",
383
383
  runtimeAccess: "VIEW"
@@ -415,80 +415,80 @@ function ft(e) {
415
415
  a.value
416
416
  ]),
417
417
  interactionRevision: e.revision,
418
- settle: (e) => Ge(() => !o.state().busy, e),
419
- surface: dt(o, p(e.http))
418
+ settle: (e) => qe(() => !o.state().busy, e),
419
+ surface: ft(o, m(e.http))
420
420
  });
421
421
  }
422
- st(e.scope, () => {
422
+ ct(e.scope, () => {
423
423
  l(), e.active() && u();
424
- }, { flush: "sync" }), A(() => {
424
+ }, { flush: "sync" }), k(() => {
425
425
  u();
426
- }), et(() => {
426
+ }), O(() => {
427
427
  u();
428
- }), nt(l), tt(l);
428
+ }), rt(l), nt(l);
429
429
  }
430
430
  //#endregion
431
431
  //#region src/views/CodeRuleFormatEditor.vue?vue&type=script&setup=true&lang.ts
432
- var pt = { class: "code-format" }, mt = {
432
+ var mt = { class: "code-format" }, ht = {
433
433
  class: "code-format__segments",
434
434
  role: "list"
435
- }, L = { class: "code-format__segment-heading" }, R = { class: "code-format__segment-number" }, ht = { class: "code-format__segment-actions" }, z = {
435
+ }, I = { class: "code-format__segment-heading" }, L = { class: "code-format__segment-number" }, gt = { class: "code-format__segment-actions" }, R = {
436
436
  key: 0,
437
437
  class: "code-format__grid"
438
- }, gt = {
438
+ }, _t = {
439
439
  key: 0,
440
440
  class: "code-format__field"
441
- }, B = {
441
+ }, z = {
442
442
  key: 1,
443
443
  class: "code-format__field"
444
- }, V = {
444
+ }, B = {
445
445
  key: 2,
446
446
  class: "code-format__field"
447
- }, _t = {
447
+ }, vt = {
448
448
  key: 3,
449
449
  class: "code-format__field"
450
- }, vt = {
450
+ }, yt = {
451
451
  key: 4,
452
452
  class: "code-format__field code-format__wide"
453
- }, H = {
453
+ }, V = {
454
454
  key: 5,
455
455
  class: "code-format__field"
456
- }, yt = { class: "code-format__advanced" }, U = { key: 0 }, bt = { class: "code-format__grid" }, xt = {
456
+ }, bt = { class: "code-format__advanced" }, H = { key: 0 }, xt = { class: "code-format__grid" }, St = {
457
457
  key: 0,
458
458
  class: "code-format__help code-format__wide"
459
- }, St = {
459
+ }, Ct = {
460
460
  key: 1,
461
461
  class: "code-format__field"
462
- }, W = {
462
+ }, U = {
463
463
  key: 2,
464
464
  class: "code-format__field"
465
- }, Ct = {
465
+ }, wt = {
466
466
  key: 3,
467
467
  class: "code-format__field"
468
- }, wt = {
468
+ }, Tt = {
469
469
  key: 4,
470
470
  class: "code-format__field"
471
- }, Tt = { class: "code-format__field" }, G = {
471
+ }, Et = { class: "code-format__field" }, W = {
472
472
  key: 5,
473
473
  class: "code-format__field"
474
- }, Et = {
474
+ }, Dt = {
475
475
  key: 6,
476
476
  class: "code-format__field"
477
- }, Dt = {
477
+ }, Ot = {
478
478
  key: 0,
479
479
  class: "code-format__help"
480
- }, Ot = {
480
+ }, kt = {
481
481
  key: 1,
482
482
  class: "code-format__mapping"
483
- }, K = {
483
+ }, G = {
484
484
  key: 0,
485
485
  class: "code-format__grid"
486
- }, kt = { class: "code-format__field" }, At = { class: "code-format__field" }, jt = { class: "code-format__sequence-advanced code-format__wide" }, Mt = { class: "code-format__grid" }, q = { class: "code-format__field" }, J = { class: "code-format__field" }, Nt = { class: "code-format__field" }, Pt = {
486
+ }, At = { class: "code-format__field" }, jt = { class: "code-format__field" }, K = { class: "code-format__sequence-advanced code-format__wide" }, Mt = { class: "code-format__grid" }, q = { class: "code-format__field" }, J = { class: "code-format__field" }, Nt = { class: "code-format__field" }, Pt = {
487
487
  key: 0,
488
488
  class: "code-format__help"
489
- }, Ft = { class: "code-format__field" }, It = /*#__PURE__*/ g(/* @__PURE__ */ Je({
489
+ }, Ft = { class: "code-format__field" }, It = /*#__PURE__*/ Me(/* @__PURE__ */ Xe({
490
490
  __name: "CodeRuleFormatEditor",
491
- props: /*@__PURE__*/ Ze({
491
+ props: /*@__PURE__*/ $e({
492
492
  sources: {},
493
493
  editable: { type: Boolean },
494
494
  trigger: {}
@@ -498,14 +498,14 @@ var pt = { class: "code-format" }, mt = {
498
498
  }),
499
499
  emits: ["update:rule"],
500
500
  setup(e) {
501
- let t = e, n = at(e, "rule"), r = de(), i = (e, t) => r.t(`platform.code.config.${e}`, t), a = C(() => t.sources.map((e) => ({
501
+ let t = e, n = ot(e, "rule"), r = he(), a = (e, t) => r.t(`platform.code.config.${e}`, t), o = x(() => t.sources.map((e) => ({
502
502
  value: e.fieldName,
503
- label: Ie(e, r)
504
- }))), o = C(() => t.sources.map((e) => ({
503
+ label: Re(e, r)
504
+ }))), s = x(() => t.sources.map((e) => ({
505
505
  name: e.fieldName,
506
- label: Ie(e, r),
506
+ label: Re(e, r),
507
507
  valueType: e.type
508
- }))), s = {
508
+ }))), c = {
509
509
  CONSTANT: "固定文字",
510
510
  FIELD_VALUE: "业务字段",
511
511
  CONTEXT_VAR: "动作上下文",
@@ -513,13 +513,13 @@ var pt = { class: "code-format" }, mt = {
513
513
  SEQUENCE: "流水号",
514
514
  VALUE_MAPPING: "值映射",
515
515
  FORMULA: "公式"
516
- }, c = C(() => Ve.map((e) => ({
516
+ }, l = x(() => Ue.map((e) => ({
517
517
  value: e,
518
- label: i(`segment.${e}`, s[e])
519
- }))), l = (e, t) => Object.entries(t).map(([t, n]) => ({
518
+ label: a(`segment.${e}`, c[e])
519
+ }))), u = (e, t) => Object.entries(t).map(([t, n]) => ({
520
520
  value: t,
521
- label: i(`enum.${e}.${t}`, n)
522
- })), u = [
521
+ label: a(`enum.${e}.${t}`, n)
522
+ })), ee = [
523
523
  "YY",
524
524
  "YYYY",
525
525
  "YYMM",
@@ -530,14 +530,14 @@ var pt = { class: "code-format" }, mt = {
530
530
  "YYYY_MM_DD",
531
531
  "YYYY_MM_DD_HH_MM_SS",
532
532
  "HHMMSS"
533
- ], d = /* @__PURE__ */ new WeakMap(), ee = 0, te = /* @__PURE__ */ new WeakMap(), ne = null;
534
- st(() => n.value, () => {
535
- ne = null;
533
+ ], te = /* @__PURE__ */ new WeakMap(), ne = 0, re = /* @__PURE__ */ new WeakMap(), f = null;
534
+ ct(() => n.value, () => {
535
+ f = null;
536
536
  });
537
- function re(e) {
538
- return e = it(e), d.has(e) || d.set(e, ++ee), d.get(e);
539
- }
540
537
  function ie(e) {
538
+ return e = at(e), te.has(e) || te.set(e, ++ne), te.get(e);
539
+ }
540
+ function ae(e) {
541
541
  return [
542
542
  "FIELD_VALUE",
543
543
  "CONTEXT_VAR",
@@ -545,75 +545,75 @@ var pt = { class: "code-format" }, mt = {
545
545
  "FORMULA"
546
546
  ].includes(e.segmentType);
547
547
  }
548
- function ae(e) {
548
+ function oe(e) {
549
549
  return !!n.value.sequencePolicy && !["CONSTANT", "SEQUENCE"].includes(e.segmentType);
550
550
  }
551
- let oe = C(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), se = C(() => {
551
+ let p = x(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), m = x(() => {
552
552
  let e = n.value.sequencePolicy?.sequenceLength;
553
553
  return e == null || !Number.isInteger(e) || e < 1 || e > 18 ? "" : r.t("platform.code.config.sequence-limit-hint", "按 {length} 位流水,最大 {maximum}", {
554
554
  length: e,
555
555
  maximum: "9".repeat(e)
556
556
  });
557
557
  });
558
- function ce(e) {
558
+ function se(e) {
559
559
  return e.length != null || !!e.separator || (e.padMode ?? "NONE") !== "NONE" || (e.truncatePolicy ?? "NONE") !== "NONE" || (e.nullPolicy ?? "ERROR") !== "ERROR" || !!e.sequenceBasis;
560
560
  }
561
- function le(e) {
562
- return e.segmentType === "SEQUENCE" && e.length != null ? r.t("platform.code.config.sequence-length-override-summary", "长度覆盖 {length} 位", { length: e.length }) : i("configured", "已配置");
561
+ function ce(e) {
562
+ return e.segmentType === "SEQUENCE" && e.length != null ? r.t("platform.code.config.sequence-length-override-summary", "长度覆盖 {length} 位", { length: e.length }) : a("configured", "已配置");
563
563
  }
564
- let ue = C(() => {
564
+ let le = x(() => {
565
565
  let e = n.value.sequencePolicy;
566
566
  if (!e) return "";
567
567
  let t = [
568
- e.startValue != null && e.startValue !== 1 ? `${i("start", "起始值")} ${e.startValue}` : "",
569
- e.stepValue != null && e.stepValue !== 1 ? `${i("step", "递增步长")} ${e.stepValue}` : "",
570
- e.maxValue == null ? "" : `${i("maximum", "流水上限")} ${e.maxValue}`,
571
- e.overflowPolicy === "RESET" ? i("enum.overflow.RESET", "从起点重新尝试") : ""
568
+ e.startValue != null && e.startValue !== 1 ? `${a("start", "起始值")} ${e.startValue}` : "",
569
+ e.stepValue != null && e.stepValue !== 1 ? `${a("step", "递增步长")} ${e.stepValue}` : "",
570
+ e.maxValue == null ? "" : `${a("maximum", "流水上限")} ${e.maxValue}`,
571
+ e.overflowPolicy === "RESET" ? a("enum.overflow.RESET", "从起点重新尝试") : ""
572
572
  ].filter(Boolean);
573
- return t.length ? t.join(" · ") : i("defaults", "默认设置");
573
+ return t.length ? t.join(" · ") : a("defaults", "默认设置");
574
574
  });
575
- function f(e) {
575
+ function ue(e) {
576
576
  return e === "" || e == null ? null : Number(e);
577
577
  }
578
- function p() {
579
- n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= ne ?? Ne() : (ne = n.value.sequencePolicy ?? ne, n.value.sequencePolicy = null));
578
+ function de() {
579
+ n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= f ?? Fe() : (f = n.value.sequencePolicy ?? f, n.value.sequencePolicy = null));
580
580
  }
581
- function m(e, t) {
581
+ function pe(e, t) {
582
582
  if (!n.value) return;
583
583
  let r = n.value.segments[e];
584
584
  if (r.segmentType === t) return;
585
- let i = te.get(it(r)) ?? /* @__PURE__ */ new Map();
585
+ let i = re.get(at(r)) ?? /* @__PURE__ */ new Map();
586
586
  i.set(r.segmentType, JSON.parse(JSON.stringify(r)));
587
587
  let a = {
588
- ...i.get(t) ?? We(t),
588
+ ...i.get(t) ?? Ke(t),
589
589
  id: r.id,
590
590
  version: r.version
591
591
  };
592
- d.set(a, re(r)), te.set(a, i), n.value.segments[e] = a, p();
592
+ te.set(a, ie(r)), re.set(a, i), n.value.segments[e] = a, de();
593
593
  }
594
- function fe() {
595
- n.value && (n.value.segments.push(We()), p());
594
+ function me() {
595
+ n.value && (n.value.segments.push(Ke()), de());
596
596
  }
597
- function h(e, t) {
597
+ function ge(e, t) {
598
598
  let r = n.value?.segments;
599
599
  if (!r || e + t < 0 || e + t >= r.length) return;
600
600
  let [i] = r.splice(e, 1);
601
601
  i && r.splice(e + t, 0, i);
602
602
  }
603
- function g(e) {
604
- n.value?.segments.splice(e, 1), p();
603
+ function _e(e) {
604
+ n.value?.segments.splice(e, 1), de();
605
605
  }
606
- return (r, s) => (M(), E("section", pt, [
607
- k(F(Se), { title: i("format", "编码格式") }, null, 8, ["title"]),
608
- D("ol", mt, [(M(!0), E(Ke, null, rt(n.value.segments, (r, d) => (M(), E("li", { key: re(r) }, [
609
- D("div", L, [
610
- D("span", R, P(d + 1), 1),
611
- k(F(y), {
612
- "aria-label": i("segment-type", "片段类型"),
606
+ return (r, c) => (j(), w("section", mt, [
607
+ D(P(d), { title: a("format", "编码格式") }, null, 8, ["title"]),
608
+ T("ol", ht, [(j(!0), w(Je, null, it(n.value.segments, (r, d) => (j(), w("li", { key: ie(r) }, [
609
+ T("div", I, [
610
+ T("span", L, N(d + 1), 1),
611
+ D(P(g), {
612
+ "aria-label": a("segment-type", "片段类型"),
613
613
  value: r.segmentType,
614
614
  disabled: !e.editable,
615
- options: c.value,
616
- "onUpdate:value": (e) => m(d, e)
615
+ options: l.value,
616
+ "onUpdate:value": (e) => pe(d, e)
617
617
  }, null, 8, [
618
618
  "aria-label",
619
619
  "value",
@@ -621,53 +621,53 @@ var pt = { class: "code-format" }, mt = {
621
621
  "options",
622
622
  "onUpdate:value"
623
623
  ]),
624
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (M(), w(F(Ee), {
624
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (j(), S(P(fe), {
625
625
  key: 0,
626
- label: i("bounded-help-title", "片段长度说明")
626
+ label: a("bounded-help-title", "片段长度说明")
627
627
  }, {
628
- default: I(() => [O(P(i("bounded-help", "为公式或外部上下文设置长度与截取方式,确保编码不超出目标字段长度。")), 1)]),
628
+ default: F(() => [E(N(a("bounded-help", "为公式或外部上下文设置长度与截取方式,确保编码不超出目标字段长度。")), 1)]),
629
629
  _: 1
630
- }, 8, ["label"])) : T("v-if", !0),
631
- D("div", ht, [
632
- k(F(x), {
630
+ }, 8, ["label"])) : C("v-if", !0),
631
+ T("div", gt, [
632
+ D(P(h), {
633
633
  type: "text",
634
634
  "icon-name": "up",
635
635
  "icon-only": "",
636
636
  size: "small",
637
- title: i("up", "上移"),
638
- "aria-label": i("up", "上移"),
637
+ title: a("up", "上移"),
638
+ "aria-label": a("up", "上移"),
639
639
  disabled: !e.editable || d === 0,
640
- onClick: (e) => h(d, -1)
640
+ onClick: (e) => ge(d, -1)
641
641
  }, null, 8, [
642
642
  "title",
643
643
  "aria-label",
644
644
  "disabled",
645
645
  "onClick"
646
646
  ]),
647
- k(F(x), {
647
+ D(P(h), {
648
648
  type: "text",
649
649
  "icon-name": "down",
650
650
  "icon-only": "",
651
651
  size: "small",
652
- title: i("down", "下移"),
653
- "aria-label": i("down", "下移"),
652
+ title: a("down", "下移"),
653
+ "aria-label": a("down", "下移"),
654
654
  disabled: !e.editable || d === n.value.segments.length - 1,
655
- onClick: (e) => h(d, 1)
655
+ onClick: (e) => ge(d, 1)
656
656
  }, null, 8, [
657
657
  "title",
658
658
  "aria-label",
659
659
  "disabled",
660
660
  "onClick"
661
661
  ]),
662
- k(F(x), {
662
+ D(P(h), {
663
663
  type: "text",
664
664
  "icon-name": "delete",
665
665
  "icon-only": "",
666
666
  size: "small",
667
- title: i("remove", "删除"),
668
- "aria-label": i("remove", "删除"),
667
+ title: a("remove", "删除"),
668
+ "aria-label": a("remove", "删除"),
669
669
  disabled: !e.editable,
670
- onClick: (e) => g(d)
670
+ onClick: (e) => _e(d)
671
671
  }, null, 8, [
672
672
  "title",
673
673
  "aria-label",
@@ -676,8 +676,8 @@ var pt = { class: "code-format" }, mt = {
676
676
  ])
677
677
  ])
678
678
  ]),
679
- r.segmentType === "SEQUENCE" ? T("v-if", !0) : (M(), E("div", z, [
680
- r.segmentType === "CONSTANT" ? (M(), E("label", gt, [O(P(i("constant", "固定文字")), 1), k(F(_), {
679
+ r.segmentType === "SEQUENCE" ? C("v-if", !0) : (j(), w("div", R, [
680
+ r.segmentType === "CONSTANT" ? (j(), w("label", _t, [E(N(a("constant", "固定文字")), 1), D(P(y), {
681
681
  value: r.fixedValue,
682
682
  "onUpdate:value": (e) => r.fixedValue = e,
683
683
  disabled: !e.editable
@@ -685,19 +685,19 @@ var pt = { class: "code-format" }, mt = {
685
685
  "value",
686
686
  "onUpdate:value",
687
687
  "disabled"
688
- ])])) : T("v-if", !0),
689
- ["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (M(), E("label", B, [O(P(i("source", "来源字段")), 1), k(F(y), {
688
+ ])])) : C("v-if", !0),
689
+ ["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (j(), w("label", z, [E(N(a("source", "来源字段")), 1), D(P(g), {
690
690
  value: r.sourceRef,
691
691
  "onUpdate:value": (e) => r.sourceRef = e,
692
692
  disabled: !e.editable,
693
- options: a.value
693
+ options: o.value
694
694
  }, null, 8, [
695
695
  "value",
696
696
  "onUpdate:value",
697
697
  "disabled",
698
698
  "options"
699
- ])])) : T("v-if", !0),
700
- r.segmentType === "CONTEXT_VAR" ? (M(), E("label", V, [O(P(i("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (M(), w(F(_), {
699
+ ])])) : C("v-if", !0),
700
+ r.segmentType === "CONTEXT_VAR" ? (j(), w("label", B, [E(N(a("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (j(), S(P(y), {
701
701
  key: 1,
702
702
  value: r.sourceRef,
703
703
  "onUpdate:value": (e) => r.sourceRef = e,
@@ -706,23 +706,23 @@ var pt = { class: "code-format" }, mt = {
706
706
  "value",
707
707
  "onUpdate:value",
708
708
  "disabled"
709
- ])) : (M(), w(F(y), {
709
+ ])) : (j(), S(P(g), {
710
710
  key: 0,
711
711
  value: r.sourceRef,
712
712
  "onUpdate:value": (e) => r.sourceRef = e,
713
713
  disabled: !e.editable,
714
- options: a.value
714
+ options: o.value
715
715
  }, null, 8, [
716
716
  "value",
717
717
  "onUpdate:value",
718
718
  "disabled",
719
719
  "options"
720
- ]))])) : T("v-if", !0),
721
- r.segmentType === "SYSTEM_TIME" ? (M(), E("label", _t, [O(P(i("date-format", "时间格式")), 1), k(F(y), {
720
+ ]))])) : C("v-if", !0),
721
+ r.segmentType === "SYSTEM_TIME" ? (j(), w("label", vt, [E(N(a("date-format", "时间格式")), 1), D(P(g), {
722
722
  value: r.dateFormat,
723
723
  "onUpdate:value": (e) => r.dateFormat = e,
724
724
  disabled: !e.editable,
725
- options: u.map((e) => ({
725
+ options: ee.map((e) => ({
726
726
  value: e,
727
727
  label: e
728
728
  }))
@@ -731,48 +731,48 @@ var pt = { class: "code-format" }, mt = {
731
731
  "onUpdate:value",
732
732
  "disabled",
733
733
  "options"
734
- ])])) : T("v-if", !0),
735
- r.segmentType === "FORMULA" ? (M(), E("label", vt, [O(P(i("formula", "返回编码片段的公式")), 1), k(F(ge), {
734
+ ])])) : C("v-if", !0),
735
+ r.segmentType === "FORMULA" ? (j(), w("label", yt, [E(N(a("formula", "返回编码片段的公式")), 1), D(P(i), {
736
736
  value: r.formulaExpr ?? "",
737
737
  "onUpdate:value": (e) => r.formulaExpr = e,
738
738
  disabled: !e.editable,
739
- fields: o.value
739
+ fields: s.value
740
740
  }, null, 8, [
741
741
  "value",
742
742
  "onUpdate:value",
743
743
  "disabled",
744
744
  "fields"
745
- ])])) : T("v-if", !0),
746
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (M(), E("label", H, [O(P(i("length", "片段长度")) + " ", 1), k(F(_), {
745
+ ])])) : C("v-if", !0),
746
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (j(), w("label", V, [E(N(a("length", "片段长度")) + " ", 1), D(P(y), {
747
747
  value: r.length ?? void 0,
748
748
  type: "number",
749
749
  disabled: !e.editable,
750
- "onUpdate:value": (e) => r.length = f(e)
750
+ "onUpdate:value": (e) => r.length = ue(e)
751
751
  }, null, 8, [
752
752
  "value",
753
753
  "disabled",
754
754
  "onUpdate:value"
755
- ])])) : T("v-if", !0)
755
+ ])])) : C("v-if", !0)
756
756
  ])),
757
- D("details", yt, [D("summary", null, [O(P(i("advanced-format", "高级设置")), 1), ce(r) ? (M(), E("span", U, " · " + P(le(r)), 1)) : T("v-if", !0)]), D("div", bt, [
758
- r.segmentType !== "SEQUENCE" && !r.length ? (M(), E("p", xt, P(i("length-dependent-hint", "设置片段长度后,补位与超长截取才会生效。")), 1)) : T("v-if", !0),
759
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? T("v-if", !0) : (M(), E("label", St, [O(P(r.segmentType === "SEQUENCE" ? i("sequence-length-override", "片段长度(覆盖流水长度)") : i("length", "片段长度")), 1), k(F(_), {
757
+ T("details", bt, [T("summary", null, [E(N(a("advanced-format", "高级设置")), 1), se(r) ? (j(), w("span", H, " · " + N(ce(r)), 1)) : C("v-if", !0)]), T("div", xt, [
758
+ r.segmentType !== "SEQUENCE" && !r.length ? (j(), w("p", St, N(a("length-dependent-hint", "设置片段长度后,补位与超长截取才会生效。")), 1)) : C("v-if", !0),
759
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? C("v-if", !0) : (j(), w("label", Ct, [E(N(r.segmentType === "SEQUENCE" ? a("sequence-length-override", "片段长度(覆盖流水长度)") : a("length", "片段长度")), 1), D(P(y), {
760
760
  value: r.length ?? void 0,
761
- placeholder: r.segmentType === "SEQUENCE" ? oe.value : void 0,
761
+ placeholder: r.segmentType === "SEQUENCE" ? p.value : void 0,
762
762
  type: "number",
763
763
  disabled: !e.editable,
764
- "onUpdate:value": (e) => r.length = f(e)
764
+ "onUpdate:value": (e) => r.length = ue(e)
765
765
  }, null, 8, [
766
766
  "value",
767
767
  "placeholder",
768
768
  "disabled",
769
769
  "onUpdate:value"
770
770
  ])])),
771
- r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (M(), E("label", W, [O(P(i("padding", "补位")), 1), k(F(y), {
771
+ r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (j(), w("label", U, [E(N(a("padding", "补位")), 1), D(P(g), {
772
772
  value: r.padMode,
773
773
  "onUpdate:value": (e) => r.padMode = e,
774
774
  disabled: !e.editable,
775
- options: l("padding", {
775
+ options: u("padding", {
776
776
  NONE: "不补位",
777
777
  LEFT: "左侧补位",
778
778
  RIGHT: "右侧补位"
@@ -782,8 +782,8 @@ var pt = { class: "code-format" }, mt = {
782
782
  "onUpdate:value",
783
783
  "disabled",
784
784
  "options"
785
- ])])) : T("v-if", !0),
786
- (r.padMode ?? "NONE") === "NONE" ? T("v-if", !0) : (M(), E("label", Ct, [O(P(i("pad-char", "补位字符")), 1), k(F(_), {
785
+ ])])) : C("v-if", !0),
786
+ (r.padMode ?? "NONE") === "NONE" ? C("v-if", !0) : (j(), w("label", wt, [E(N(a("pad-char", "补位字符")), 1), D(P(y), {
787
787
  value: r.padChar,
788
788
  "onUpdate:value": (e) => r.padChar = e,
789
789
  disabled: !e.editable
@@ -792,11 +792,11 @@ var pt = { class: "code-format" }, mt = {
792
792
  "onUpdate:value",
793
793
  "disabled"
794
794
  ])])),
795
- r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (M(), E("label", wt, [O(P(i("truncate", "超长截取")), 1), k(F(y), {
795
+ r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (j(), w("label", Tt, [E(N(a("truncate", "超长截取")), 1), D(P(g), {
796
796
  value: r.truncatePolicy,
797
797
  "onUpdate:value": (e) => r.truncatePolicy = e,
798
798
  disabled: !e.editable,
799
- options: l("truncate", {
799
+ options: u("truncate", {
800
800
  NONE: "保留原值",
801
801
  LEFT: "截去左侧",
802
802
  RIGHT: "截去右侧"
@@ -806,8 +806,8 @@ var pt = { class: "code-format" }, mt = {
806
806
  "onUpdate:value",
807
807
  "disabled",
808
808
  "options"
809
- ])])) : T("v-if", !0),
810
- D("label", Tt, [O(P(i("separator", "片段后分隔符")), 1), k(F(_), {
809
+ ])])) : C("v-if", !0),
810
+ T("label", Et, [E(N(a("separator", "片段后分隔符")), 1), D(P(y), {
811
811
  value: r.separator,
812
812
  "onUpdate:value": (e) => r.separator = e,
813
813
  disabled: !e.editable
@@ -816,27 +816,27 @@ var pt = { class: "code-format" }, mt = {
816
816
  "onUpdate:value",
817
817
  "disabled"
818
818
  ])]),
819
- ie(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (M(), E("label", G, [O(P(i("null-policy", "来源为空时")), 1), k(F(y), {
819
+ ae(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (j(), w("label", W, [E(N(a("null-policy", "来源为空时")), 1), D(P(g), {
820
820
  value: r.nullPolicy,
821
821
  "onUpdate:value": (e) => r.nullPolicy = e,
822
822
  disabled: !e.editable,
823
- options: l("null", {
823
+ options: u("null", {
824
824
  ERROR: "拒绝生成",
825
825
  SKIP_SEGMENT: "跳过该片段",
826
826
  USE_DEFAULT: "使用默认文字"
827
827
  }).map((e) => r.segmentType === "VALUE_MAPPING" && e.value === "USE_DEFAULT" ? {
828
828
  ...e,
829
- label: i("use-default-source", "使用来源默认值")
829
+ label: a("use-default-source", "使用来源默认值")
830
830
  } : e)
831
831
  }, null, 8, [
832
832
  "value",
833
833
  "onUpdate:value",
834
834
  "disabled",
835
835
  "options"
836
- ])])) : T("v-if", !0),
837
- r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (M(), E("label", Et, [
838
- O(P(r.segmentType === "VALUE_MAPPING" ? i("mapping-fallback", "来源默认值") : i("default-text", "默认文字")), 1),
839
- k(F(_), {
836
+ ])])) : C("v-if", !0),
837
+ r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (j(), w("label", Dt, [
838
+ E(N(r.segmentType === "VALUE_MAPPING" ? a("mapping-fallback", "来源默认值") : a("default-text", "默认文字")), 1),
839
+ D(P(y), {
840
840
  value: r.fixedValue,
841
841
  "onUpdate:value": (e) => r.fixedValue = e,
842
842
  disabled: !e.editable
@@ -845,32 +845,32 @@ var pt = { class: "code-format" }, mt = {
845
845
  "onUpdate:value",
846
846
  "disabled"
847
847
  ]),
848
- r.segmentType === "VALUE_MAPPING" ? (M(), E("span", Dt, P(i("mapping-fallback-hint", "默认值仍需匹配下方映射。")), 1)) : T("v-if", !0)
849
- ])) : T("v-if", !0),
850
- ae(r) || r.sequenceBasis ? (M(), w(F(me), {
848
+ r.segmentType === "VALUE_MAPPING" ? (j(), w("span", Ot, N(a("mapping-fallback-hint", "默认值仍需匹配下方映射。")), 1)) : C("v-if", !0)
849
+ ])) : C("v-if", !0),
850
+ oe(r) || r.sequenceBasis ? (j(), S(P(ye), {
851
851
  key: 7,
852
852
  class: "code-format__basis code-format__wide",
853
853
  checked: r.sequenceBasis,
854
854
  "onUpdate:checked": (e) => r.sequenceBasis = e,
855
855
  disabled: !e.editable
856
856
  }, {
857
- default: I(() => [O(P(i("basis", "按该片段分别计数")), 1)]),
857
+ default: F(() => [E(N(a("basis", "按该片段分别计数")), 1)]),
858
858
  _: 1
859
859
  }, 8, [
860
860
  "checked",
861
861
  "onUpdate:checked",
862
862
  "disabled"
863
- ])) : T("v-if", !0)
863
+ ])) : C("v-if", !0)
864
864
  ])]),
865
- r.segmentType === "VALUE_MAPPING" ? (M(), E("div", Ot, [(M(!0), E(Ke, null, rt(r.mappings, (t, n) => (M(), E("div", {
865
+ r.segmentType === "VALUE_MAPPING" ? (j(), w("div", kt, [(j(!0), w(Je, null, it(r.mappings, (t, n) => (j(), w("div", {
866
866
  key: n,
867
867
  class: "code-format__mapping-row"
868
868
  }, [
869
- k(F(_), {
869
+ D(P(y), {
870
870
  value: t.sourceValue,
871
871
  "onUpdate:value": (e) => t.sourceValue = e,
872
- placeholder: i("mapping-source", "原值"),
873
- "aria-label": i("mapping-source", "原值"),
872
+ placeholder: a("mapping-source", "原值"),
873
+ "aria-label": a("mapping-source", "原值"),
874
874
  disabled: !e.editable || t.defaultMapping
875
875
  }, null, 8, [
876
876
  "value",
@@ -879,12 +879,12 @@ var pt = { class: "code-format" }, mt = {
879
879
  "aria-label",
880
880
  "disabled"
881
881
  ]),
882
- s[6] ||= D("span", null, "→", -1),
883
- k(F(_), {
882
+ c[6] ||= T("span", null, "→", -1),
883
+ D(P(y), {
884
884
  value: t.targetValue,
885
885
  "onUpdate:value": (e) => t.targetValue = e,
886
- placeholder: i("mapping-target", "编码文字"),
887
- "aria-label": i("mapping-target", "编码文字"),
886
+ placeholder: a("mapping-target", "编码文字"),
887
+ "aria-label": a("mapping-target", "编码文字"),
888
888
  disabled: !e.editable
889
889
  }, null, 8, [
890
890
  "value",
@@ -893,28 +893,28 @@ var pt = { class: "code-format" }, mt = {
893
893
  "aria-label",
894
894
  "disabled"
895
895
  ]),
896
- k(F(me), {
896
+ D(P(ye), {
897
897
  class: "code-format__mapping-default",
898
898
  checked: t.defaultMapping,
899
899
  "onUpdate:checked": (e) => t.defaultMapping = e,
900
900
  disabled: !e.editable
901
901
  }, {
902
- default: I(() => [O(P(i("mapping-default", "其他值")), 1)]),
902
+ default: F(() => [E(N(a("mapping-default", "其他值")), 1)]),
903
903
  _: 1
904
904
  }, 8, [
905
905
  "checked",
906
906
  "onUpdate:checked",
907
907
  "disabled"
908
908
  ]),
909
- k(F(x), {
909
+ D(P(h), {
910
910
  class: "code-format__mapping-remove",
911
911
  disabled: !e.editable,
912
912
  onClick: (e) => r.mappings.splice(n, 1)
913
913
  }, {
914
- default: I(() => [O(P(i("remove", "删除")), 1)]),
914
+ default: F(() => [E(N(a("remove", "删除")), 1)]),
915
915
  _: 1
916
916
  }, 8, ["disabled", "onClick"])
917
- ]))), 128)), k(F(x), {
917
+ ]))), 128)), D(P(h), {
918
918
  disabled: !e.editable,
919
919
  onClick: (e) => r.mappings.push({
920
920
  sourceValue: "",
@@ -923,36 +923,36 @@ var pt = { class: "code-format" }, mt = {
923
923
  enabled: !0
924
924
  })
925
925
  }, {
926
- default: I(() => [O(P(i("add-mapping", "增加映射")), 1)]),
926
+ default: F(() => [E(N(a("add-mapping", "增加映射")), 1)]),
927
927
  _: 1
928
- }, 8, ["disabled", "onClick"])])) : T("v-if", !0)
928
+ }, 8, ["disabled", "onClick"])])) : C("v-if", !0)
929
929
  ]))), 128))]),
930
- k(F(x), {
930
+ D(P(h), {
931
931
  type: "dashed",
932
932
  "icon-name": "plus",
933
- "aria-label": i("add-segment", "增加片段"),
933
+ "aria-label": a("add-segment", "增加片段"),
934
934
  disabled: !e.editable,
935
- onClick: fe
935
+ onClick: me
936
936
  }, {
937
- default: I(() => [O(P(i("add-segment", "增加片段")), 1)]),
937
+ default: F(() => [E(N(a("add-segment", "增加片段")), 1)]),
938
938
  _: 1
939
939
  }, 8, ["aria-label", "disabled"]),
940
- n.value.sequencePolicy ? (M(), E("div", K, [
941
- k(F(Se), {
940
+ n.value.sequencePolicy ? (j(), w("div", G, [
941
+ D(P(d), {
942
942
  class: "code-format__wide",
943
- title: i("sequence", "流水策略")
943
+ title: a("sequence", "流水策略")
944
944
  }, null, 8, ["title"]),
945
- D("label", kt, [O(P(i("sequence-length", "流水长度")), 1), k(F(_), {
945
+ T("label", At, [E(N(a("sequence-length", "流水长度")), 1), D(P(y), {
946
946
  value: n.value.sequencePolicy.sequenceLength ?? void 0,
947
947
  type: "number",
948
948
  disabled: !e.editable,
949
- "onUpdate:value": s[0] ||= (e) => n.value.sequencePolicy.sequenceLength = f(e)
949
+ "onUpdate:value": c[0] ||= (e) => n.value.sequencePolicy.sequenceLength = ue(e)
950
950
  }, null, 8, ["value", "disabled"])]),
951
- D("label", At, [O(P(i("reset", "计数周期")), 1), k(F(y), {
951
+ T("label", jt, [E(N(a("reset", "计数周期")), 1), D(P(g), {
952
952
  value: n.value.sequencePolicy.resetPolicy,
953
- "onUpdate:value": s[1] ||= (e) => n.value.sequencePolicy.resetPolicy = e,
953
+ "onUpdate:value": c[1] ||= (e) => n.value.sequencePolicy.resetPolicy = e,
954
954
  disabled: !e.editable,
955
- options: l("reset", {
955
+ options: u("reset", {
956
956
  NONE: "持续计数",
957
957
  DAY: "每天重置",
958
958
  MONTH: "每月重置",
@@ -963,34 +963,34 @@ var pt = { class: "code-format" }, mt = {
963
963
  "disabled",
964
964
  "options"
965
965
  ])]),
966
- D("details", jt, [D("summary", null, [O(P(i("sequence-advanced", "流水高级设置")), 1), D("span", null, " · " + P(ue.value), 1)]), D("div", Mt, [
967
- D("label", q, [O(P(i("start", "起始值")), 1), k(F(_), {
966
+ T("details", K, [T("summary", null, [E(N(a("sequence-advanced", "流水高级设置")), 1), T("span", null, " · " + N(le.value), 1)]), T("div", Mt, [
967
+ T("label", q, [E(N(a("start", "起始值")), 1), D(P(y), {
968
968
  value: n.value.sequencePolicy.startValue ?? void 0,
969
969
  type: "number",
970
970
  disabled: !e.editable,
971
- "onUpdate:value": s[2] ||= (e) => n.value.sequencePolicy.startValue = f(e)
971
+ "onUpdate:value": c[2] ||= (e) => n.value.sequencePolicy.startValue = ue(e)
972
972
  }, null, 8, ["value", "disabled"])]),
973
- D("label", J, [O(P(i("step", "递增步长")), 1), k(F(_), {
973
+ T("label", J, [E(N(a("step", "递增步长")), 1), D(P(y), {
974
974
  value: n.value.sequencePolicy.stepValue ?? void 0,
975
975
  type: "number",
976
976
  disabled: !e.editable,
977
- "onUpdate:value": s[3] ||= (e) => n.value.sequencePolicy.stepValue = f(e)
977
+ "onUpdate:value": c[3] ||= (e) => n.value.sequencePolicy.stepValue = ue(e)
978
978
  }, null, 8, ["value", "disabled"])]),
979
- D("label", Nt, [
980
- O(P(i("maximum", "流水上限")), 1),
981
- k(F(_), {
979
+ T("label", Nt, [
980
+ E(N(a("maximum", "流水上限")), 1),
981
+ D(P(y), {
982
982
  value: n.value.sequencePolicy.maxValue ?? void 0,
983
983
  type: "number",
984
984
  disabled: !e.editable,
985
- "onUpdate:value": s[4] ||= (e) => n.value.sequencePolicy.maxValue = f(e)
985
+ "onUpdate:value": c[4] ||= (e) => n.value.sequencePolicy.maxValue = ue(e)
986
986
  }, null, 8, ["value", "disabled"]),
987
- se.value ? (M(), E("span", Pt, P(se.value), 1)) : T("v-if", !0)
987
+ m.value ? (j(), w("span", Pt, N(m.value), 1)) : C("v-if", !0)
988
988
  ]),
989
- D("label", Ft, [O(P(i("overflow", "达到上限后")), 1), k(F(y), {
989
+ T("label", Ft, [E(N(a("overflow", "达到上限后")), 1), D(P(g), {
990
990
  value: n.value.sequencePolicy.overflowPolicy,
991
- "onUpdate:value": s[5] ||= (e) => n.value.sequencePolicy.overflowPolicy = e,
991
+ "onUpdate:value": c[5] ||= (e) => n.value.sequencePolicy.overflowPolicy = e,
992
992
  disabled: !e.editable,
993
- options: l("overflow", {
993
+ options: u("overflow", {
994
994
  ERROR: "拒绝生成",
995
995
  RESET: "从起点重新尝试"
996
996
  })
@@ -1000,13 +1000,13 @@ var pt = { class: "code-format" }, mt = {
1000
1000
  "options"
1001
1001
  ])])
1002
1002
  ])])
1003
- ])) : T("v-if", !0)
1003
+ ])) : C("v-if", !0)
1004
1004
  ]));
1005
1005
  }
1006
1006
  }), [["__scopeId", "data-v-cccc510e"]]), Y = {
1007
1007
  role: "alert",
1008
1008
  class: "code-config__recovery"
1009
- }, X = { key: 0 }, Lt = { key: 0 }, Rt = { key: 1 }, zt = /* @__PURE__ */ Je({
1009
+ }, X = { key: 0 }, Lt = { key: 0 }, Rt = { key: 1 }, zt = /* @__PURE__ */ Xe({
1010
1010
  __name: "CodeRuleRecoveryPanel",
1011
1011
  props: {
1012
1012
  rule: {},
@@ -1022,37 +1022,37 @@ var pt = { class: "code-format" }, mt = {
1022
1022
  "adopt"
1023
1023
  ],
1024
1024
  setup(e) {
1025
- let t = e, n = de(), r = (e, t) => n.t(`platform.code.config.${e}`, t), i = C(() => t.rule ? JSON.parse(JSON.stringify(t.rule)) : void 0);
1026
- return (t, n) => (M(), E("div", Y, [
1027
- D("p", null, P(r("save-unknown", "原编号保存结果待核实。当前草稿保留;刷新只恢复查询引用,不恢复未保存草稿。")), 1),
1028
- k(F(x), {
1025
+ let t = e, n = he(), r = (e, t) => n.t(`platform.code.config.${e}`, t), i = x(() => t.rule ? JSON.parse(JSON.stringify(t.rule)) : void 0);
1026
+ return (t, n) => (j(), w("div", Y, [
1027
+ T("p", null, N(r("save-unknown", "原编号保存结果待核实。当前草稿保留;刷新只恢复查询引用,不恢复未保存草稿。")), 1),
1028
+ D(P(h), {
1029
1029
  disabled: e.busy,
1030
1030
  onClick: n[0] ||= (e) => t.$emit("check")
1031
1031
  }, {
1032
- default: I(() => [O(P(r("check-save", "核实原保存结果")), 1)]),
1032
+ default: F(() => [E(N(r("check-save", "核实原保存结果")), 1)]),
1033
1033
  _: 1
1034
1034
  }, 8, ["disabled"]),
1035
- k(F(x), {
1035
+ D(P(h), {
1036
1036
  disabled: e.busy || e.resolved,
1037
1037
  onClick: n[1] ||= (e) => t.$emit("abandon")
1038
1038
  }, {
1039
- default: I(() => [O(P(r("abandon-save", "终止原请求并核对")), 1)]),
1039
+ default: F(() => [E(N(r("abandon-save", "终止原请求并核对")), 1)]),
1040
1040
  _: 1
1041
1041
  }, 8, ["disabled"]),
1042
- D("p", null, P(r("abandon-help", "终止不会撤销已提交内容;尚未执行的请求将被阻止。")), 1),
1043
- k(F(x), {
1042
+ T("p", null, N(r("abandon-help", "终止不会撤销已提交内容;尚未执行的请求将被阻止。")), 1),
1043
+ D(P(h), {
1044
1044
  disabled: e.busy || !e.resolved,
1045
1045
  onClick: n[2] ||= (e) => t.$emit("adopt")
1046
1046
  }, {
1047
- default: I(() => [O(P(r("adopt-current", "采用当前规则并放弃本地候选")), 1)]),
1047
+ default: F(() => [E(N(r("adopt-current", "采用当前规则并放弃本地候选")), 1)]),
1048
1048
  _: 1
1049
1049
  }, 8, ["disabled"]),
1050
- i.value ? (M(), E("details", X, [
1051
- D("summary", null, P(i.value.title), 1),
1052
- D("p", null, P(i.value.mode === "MANUAL" ? r("manual", "手工编号") : i.value.mode === "AUTO" ? r("auto", "自动编号") : r("auto-manual", "自动生成后可修改")) + " · " + P(i.value.enabled ? r("enabled", "已启用") : r("disabled", "已停用")) + " · " + P(i.value.orgScopeType === "GLOBAL" ? r("all-orgs", "全部机构") : r("specific-org", "指定机构")) + " " + P(i.value.orgScopeId), 1),
1053
- D("p", null, P(i.value.effectiveFrom) + " — " + P(i.value.effectiveTo), 1),
1054
- D("p", null, P(r("linked-short", "来源变化时换号")) + ": " + P(i.value.linkedUpdate) + " · " + P(r("recycle-short", "旧号可复用")) + ": " + P(i.value.allowRecycle), 1),
1055
- k(It, {
1050
+ i.value ? (j(), w("details", X, [
1051
+ T("summary", null, N(i.value.title), 1),
1052
+ T("p", null, N(i.value.mode === "MANUAL" ? r("manual", "手工编号") : i.value.mode === "AUTO" ? r("auto", "自动编号") : r("auto-manual", "自动生成后可修改")) + " · " + N(i.value.enabled ? r("enabled", "已启用") : r("disabled", "已停用")) + " · " + N(i.value.orgScopeType === "GLOBAL" ? r("all-orgs", "全部机构") : r("specific-org", "指定机构")) + " " + N(i.value.orgScopeId), 1),
1053
+ T("p", null, N(i.value.effectiveFrom) + " — " + N(i.value.effectiveTo), 1),
1054
+ T("p", null, N(r("linked-short", "来源变化时换号")) + ": " + N(i.value.linkedUpdate) + " · " + N(r("recycle-short", "旧号可复用")) + ": " + N(i.value.allowRecycle), 1),
1055
+ D(It, {
1056
1056
  rule: i.value,
1057
1057
  sources: e.target?.sources ?? [],
1058
1058
  editable: !1,
@@ -1062,17 +1062,17 @@ var pt = { class: "code-format" }, mt = {
1062
1062
  "sources",
1063
1063
  "trigger"
1064
1064
  ]),
1065
- i.value.sequencePolicy ? (M(), E("p", Lt, P(r("start", "起始值")) + " " + P(i.value.sequencePolicy.startValue) + " · " + P(r("step", "递增步长")) + " " + P(i.value.sequencePolicy.stepValue) + " · " + P(r("sequence-length", "流水长度")) + " " + P(i.value.sequencePolicy.sequenceLength) + " · " + P(r("reset", "计数周期")) + " " + P(i.value.sequencePolicy.resetPolicy) + " · " + P(r("overflow", "溢出策略")) + " " + P(i.value.sequencePolicy.overflowPolicy), 1)) : T("v-if", !0)
1066
- ])) : T("v-if", !0),
1067
- e.feedback ? (M(), E("p", Rt, P(e.feedback), 1)) : T("v-if", !0),
1068
- e.error ? (M(), w(F(ie), {
1065
+ i.value.sequencePolicy ? (j(), w("p", Lt, N(r("start", "起始值")) + " " + N(i.value.sequencePolicy.startValue) + " · " + N(r("step", "递增步长")) + " " + N(i.value.sequencePolicy.stepValue) + " · " + N(r("sequence-length", "流水长度")) + " " + N(i.value.sequencePolicy.sequenceLength) + " · " + N(r("reset", "计数周期")) + " " + N(i.value.sequencePolicy.resetPolicy) + " · " + N(r("overflow", "溢出策略")) + " " + N(i.value.sequencePolicy.overflowPolicy), 1)) : C("v-if", !0)
1066
+ ])) : C("v-if", !0),
1067
+ e.feedback ? (j(), w("p", Rt, N(e.feedback), 1)) : C("v-if", !0),
1068
+ e.error ? (j(), S(P(ee), {
1069
1069
  key: 2,
1070
1070
  message: e.error
1071
- }, null, 8, ["message"])) : T("v-if", !0)
1071
+ }, null, 8, ["message"])) : C("v-if", !0)
1072
1072
  ]));
1073
1073
  }
1074
1074
  }), Bt = Symbol("module-runtime-activation-refresh");
1075
- function Vt(e, t = ye) {
1075
+ function Vt(e, t = v) {
1076
1076
  let n = e.status === "PENDING" || e.installedRevision !== e.desiredRevision;
1077
1077
  return { message: {
1078
1078
  text: e.status === "UNTRACKED" ? t.t("platform.screen.moduleRuntimeActivation.no-module-runtime-activation-has-been-recorded", "尚无模块运行配置生效记录") : e.status === "FAILED" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-activation-failed", "模块运行配置已保存,生效失败") : e.status === "PENDING" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-activation-is-in-progress", "模块运行配置已保存,正在生效") : e.installedRevision === e.desiredRevision ? e.status === "INACTIVE" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-activated-business-runtime-entry-points-are-disabled", "模块运行配置已生效,业务运行入口已停用") : t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-activated", "模块运行配置已生效") : t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-this-node-has-not-confirmed-activation", "模块运行配置已保存,当前节点尚未确认生效"),
@@ -1087,143 +1087,143 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1087
1087
  }, Z = { key: 2 }, Q = {
1088
1088
  key: 3,
1089
1089
  class: "module-runtime-activation__versions"
1090
- }, Zt = /*#__PURE__*/ g(/* @__PURE__ */ Je({
1090
+ }, Zt = /*#__PURE__*/ Me(/* @__PURE__ */ Xe({
1091
1091
  __name: "ModuleRuntimeActivationStatus",
1092
1092
  props: {
1093
1093
  moduleAlias: {},
1094
1094
  reloadKey: {}
1095
1095
  },
1096
1096
  setup(e, { expose: t }) {
1097
- let n = de(), r = e, i = Te({ moduleAlias: "platform.module" }), a = N(), s = N(!1), c = N(!1), l = N(!1), d = 0, ee = !0, te, ne = C(() => {
1097
+ let n = he(), r = e, i = de({ moduleAlias: "platform.module" }), a = M(), o = M(!1), s = M(!1), c = M(!1), l = 0, u = !0, d, ee = x(() => {
1098
1098
  let e = a.value;
1099
1099
  return !(!e || e.status === "UNTRACKED" || e.status === "FAILED" || e.status !== "PENDING" && e.installedRevision === e.desiredRevision);
1100
- }), re = C(() => l.value || a.value?.status === "FAILED" || ne.value), ie = C(() => l.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.unknown-status", "状态未知") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.activation-failed", "生效失败") : n.t("platform.screen.ModuleRuntimeActivationStatus.applying-changes", "正在应用修改")), ae = C(() => l.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), oe = C(() => l.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.cannot-check-the-status-right-now-try-again-later", "暂时无法查询,请稍后重试。") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.the-changes-were-saved-but-activation-failed", "修改已保存,但未能生效。") : n.t("platform.screen.ModuleRuntimeActivationStatus.this-notice-will-close-when-activation-completes", "完成后将自动关闭提示。")), ce = C(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
1101
- st(() => [r.moduleAlias, r.reloadKey], () => {
1102
- d++, a.value = void 0, c.value = !1, f();
1100
+ }), te = x(() => c.value || a.value?.status === "FAILED" || ee.value), ne = x(() => c.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.unknown-status", "状态未知") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.activation-failed", "生效失败") : n.t("platform.screen.ModuleRuntimeActivationStatus.applying-changes", "正在应用修改")), re = x(() => c.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), ie = x(() => c.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.cannot-check-the-status-right-now-try-again-later", "暂时无法查询,请稍后重试。") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.the-changes-were-saved-but-activation-failed", "修改已保存,但未能生效。") : n.t("platform.screen.ModuleRuntimeActivationStatus.this-notice-will-close-when-activation-completes", "完成后将自动关闭提示。")), ae = x(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
1101
+ ct(() => [r.moduleAlias, r.reloadKey], () => {
1102
+ l++, a.value = void 0, s.value = !1, se();
1103
1103
  }, { immediate: !0 });
1104
- function le() {
1105
- clearTimeout(te), te = void 0;
1104
+ function oe() {
1105
+ clearTimeout(d), d = void 0;
1106
1106
  }
1107
- function ue() {
1108
- le(), ee && ne.value && !l.value && (te = setTimeout(() => void f(), 2e3));
1107
+ function m() {
1108
+ oe(), u && ee.value && !c.value && (d = setTimeout(() => void se(), 2e3));
1109
1109
  }
1110
- nt(() => {
1111
- ee = !1, d++, le();
1112
- }), et(() => {
1113
- ee || (ee = !0, c.value = !1, f());
1114
- }), j(() => {
1115
- ee = !1, d++, le();
1110
+ rt(() => {
1111
+ u = !1, l++, oe();
1112
+ }), O(() => {
1113
+ u || (u = !0, s.value = !1, se());
1114
+ }), A(() => {
1115
+ u = !1, l++, oe();
1116
1116
  });
1117
- async function f() {
1118
- if (!ee || c.value) return;
1119
- le();
1120
- let e = ++d, t = r.moduleAlias;
1121
- l.value = !1, s.value = !0;
1117
+ async function se() {
1118
+ if (!u || s.value) return;
1119
+ oe();
1120
+ let e = ++l, t = r.moduleAlias;
1121
+ c.value = !1, o.value = !0;
1122
1122
  try {
1123
1123
  let r = await i.http.request({
1124
1124
  method: "GET",
1125
1125
  path: `/platform.module/${encodeURIComponent(t)}/runtime/activation`
1126
1126
  });
1127
- if (e === d) return a.value = r, Vt(r, n);
1127
+ if (e === l) return a.value = r, Vt(r, n);
1128
1128
  } catch {
1129
- if (e !== d) return;
1130
- l.value = !0;
1129
+ if (e !== l) return;
1130
+ c.value = !0;
1131
1131
  } finally {
1132
- e === d && (s.value = !1, ue());
1132
+ e === l && (o.value = !1, m());
1133
1133
  }
1134
1134
  }
1135
- async function p() {
1136
- if (!ce.value || c.value) return;
1137
- le();
1138
- let e = ++d, t = r.moduleAlias, s = a.value.desiredRevision;
1139
- c.value = !0;
1135
+ async function ce() {
1136
+ if (!ae.value || s.value) return;
1137
+ oe();
1138
+ let e = ++l, t = r.moduleAlias, o = a.value.desiredRevision;
1139
+ s.value = !0;
1140
1140
  try {
1141
1141
  let n = await i.http.request({
1142
1142
  method: "POST",
1143
- path: `/platform.module/${encodeURIComponent(t)}/runtime/activation/retry?expectedRevision=${s}`
1143
+ path: `/platform.module/${encodeURIComponent(t)}/runtime/activation/retry?expectedRevision=${o}`
1144
1144
  });
1145
- e === d && (a.value = o(n), l.value = !1);
1145
+ e === l && (a.value = f(n), c.value = !1);
1146
1146
  } catch (t) {
1147
- if (e !== d) return;
1148
- se(t, {
1147
+ if (e !== l) return;
1148
+ Ae(t, {
1149
1149
  language: n,
1150
1150
  source: "runtime-activation",
1151
1151
  phase: "action"
1152
- }), c.value = !1, await f();
1152
+ }), s.value = !1, await se();
1153
1153
  } finally {
1154
- e === d && (c.value = !1, ue());
1154
+ e === l && (s.value = !1, m());
1155
1155
  }
1156
1156
  }
1157
- return t({ refresh: f }), (t, r) => re.value ? (M(), E("section", {
1157
+ return t({ refresh: se }), (t, r) => te.value ? (j(), w("section", {
1158
1158
  key: 0,
1159
1159
  class: "module-runtime-activation",
1160
- "aria-label": F(n).t("platform.screen.ModuleRuntimeActivationStatus.module-runtime-configuration-activation-status", "模块运行配置生效状态"),
1160
+ "aria-label": P(n).t("platform.screen.ModuleRuntimeActivationStatus.module-runtime-configuration-activation-status", "模块运行配置生效状态"),
1161
1161
  "aria-live": "polite"
1162
- }, [D("div", Ut, [
1163
- D("span", Wt, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.runtime-configuration", "运行配置")), 1),
1164
- k(F(u), {
1162
+ }, [T("div", Ut, [
1163
+ T("span", Wt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.runtime-configuration", "运行配置")), 1),
1164
+ D(P(p), {
1165
1165
  enabled: !0,
1166
- "enabled-label": ie.value,
1167
- "enabled-tone": ae.value
1166
+ "enabled-label": ne.value,
1167
+ "enabled-tone": re.value
1168
1168
  }, null, 8, ["enabled-label", "enabled-tone"]),
1169
- D("span", Gt, P(oe.value), 1)
1170
- ]), D("div", Kt, [
1171
- ce.value ? (M(), w(F(m), {
1169
+ T("span", Gt, N(ie.value), 1)
1170
+ ]), T("div", Kt, [
1171
+ ae.value ? (j(), S(P(me), {
1172
1172
  key: 0,
1173
1173
  density: "compact",
1174
- disabled: s.value || c.value,
1175
- loading: c.value,
1176
- onClick: p
1174
+ disabled: o.value || s.value,
1175
+ loading: s.value,
1176
+ onClick: ce
1177
1177
  }, {
1178
- default: I(() => [O(P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.retry-activation", "重试生效")), 1)]),
1178
+ default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.retry-activation", "重试生效")), 1)]),
1179
1179
  _: 1
1180
- }, 8, ["disabled", "loading"])) : T("v-if", !0),
1181
- l.value ? (M(), w(F(m), {
1180
+ }, 8, ["disabled", "loading"])) : C("v-if", !0),
1181
+ c.value ? (j(), S(P(me), {
1182
1182
  key: 1,
1183
1183
  density: "compact",
1184
- disabled: s.value || c.value,
1184
+ disabled: o.value || s.value,
1185
1185
  "icon-name": "reload",
1186
- onClick: f
1186
+ onClick: se
1187
1187
  }, {
1188
- default: I(() => [O(P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.check-again", "重新查询")), 1)]),
1188
+ default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.check-again", "重新查询")), 1)]),
1189
1189
  _: 1
1190
- }, 8, ["disabled"])) : T("v-if", !0),
1191
- (M(), w(F(b), {
1190
+ }, 8, ["disabled"])) : C("v-if", !0),
1191
+ (j(), S(P(Ee), {
1192
1192
  key: e.moduleAlias,
1193
1193
  placement: "bottomRight"
1194
1194
  }, {
1195
- content: I(() => [D("div", qt, [
1196
- D("strong", null, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1),
1197
- D("p", Jt, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.activation-status-of-the-module-runtime-configuration", "模块运行配置的生效情况")), 1),
1198
- l.value ? (M(), E("p", Yt, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.failed-to-check-the-status-check-again", "状态查询失败,请重新查询。")), 1)) : a.value?.status === "FAILED" ? (M(), E("p", Xt, P(a.value.failureMessage || F(n).t("platform.screen.ModuleRuntimeActivationStatus.no-failure-reason-is-available-retry-or-contact-an-administrator", "暂未提供失败原因,请重试或联系管理员。")), 1)) : ne.value ? (M(), E("p", Z, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.the-service-is-loading-the-latest-configuration-the-status-will", "服务正在加载最新配置,状态将自动更新。")), 1)) : T("v-if", !0),
1199
- a.value ? (M(), E("dl", Q, [
1200
- D("dt", null, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.configuration-revision", "配置版本")), 1),
1201
- D("dd", null, P(a.value.desiredRevision ?? "—"), 1),
1202
- D("dt", null, P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.loaded-revision", "已加载版本")), 1),
1203
- D("dd", null, P(a.value.installedRevision ?? "—"), 1)
1204
- ])) : T("v-if", !0),
1205
- k(F(m), {
1195
+ content: F(() => [T("div", qt, [
1196
+ T("strong", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1),
1197
+ T("p", Jt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.activation-status-of-the-module-runtime-configuration", "模块运行配置的生效情况")), 1),
1198
+ c.value ? (j(), w("p", Yt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.failed-to-check-the-status-check-again", "状态查询失败,请重新查询。")), 1)) : a.value?.status === "FAILED" ? (j(), w("p", Xt, N(a.value.failureMessage || P(n).t("platform.screen.ModuleRuntimeActivationStatus.no-failure-reason-is-available-retry-or-contact-an-administrator", "暂未提供失败原因,请重试或联系管理员。")), 1)) : ee.value ? (j(), w("p", Z, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.the-service-is-loading-the-latest-configuration-the-status-will", "服务正在加载最新配置,状态将自动更新。")), 1)) : C("v-if", !0),
1199
+ a.value ? (j(), w("dl", Q, [
1200
+ T("dt", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.configuration-revision", "配置版本")), 1),
1201
+ T("dd", null, N(a.value.desiredRevision ?? "—"), 1),
1202
+ T("dt", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.loaded-revision", "已加载版本")), 1),
1203
+ T("dd", null, N(a.value.installedRevision ?? "—"), 1)
1204
+ ])) : C("v-if", !0),
1205
+ D(P(me), {
1206
1206
  density: "compact",
1207
1207
  emphasis: "quiet",
1208
1208
  "icon-name": "reload",
1209
- disabled: s.value || c.value,
1210
- onClick: f
1209
+ disabled: o.value || s.value,
1210
+ onClick: se
1211
1211
  }, {
1212
- default: I(() => [O(P(F(n).t("platform.screen.ModuleRuntimeActivationStatus.refresh-status", "刷新状态")), 1)]),
1212
+ default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.refresh-status", "刷新状态")), 1)]),
1213
1213
  _: 1
1214
1214
  }, 8, ["disabled"])
1215
1215
  ])]),
1216
- default: I(() => [k(F(m), {
1216
+ default: F(() => [D(P(me), {
1217
1217
  density: "compact",
1218
1218
  emphasis: "quiet",
1219
- title: F(n).t("platform.screen.WorkbenchAssistantPanel.show-diagnostics", "查看诊断信息")
1219
+ title: P(n).t("platform.screen.WorkbenchAssistantPanel.show-diagnostics", "查看诊断信息")
1220
1220
  }, {
1221
- default: I(() => [O(P(a.value?.status === "FAILED" ? F(n).t("platform.screen.ModuleRuntimeActivationStatus.view-reason", "查看原因") : F(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1)]),
1221
+ default: F(() => [E(N(a.value?.status === "FAILED" ? P(n).t("platform.screen.ModuleRuntimeActivationStatus.view-reason", "查看原因") : P(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1)]),
1222
1222
  _: 1
1223
1223
  }, 8, ["title"])]),
1224
1224
  _: 1
1225
1225
  }))
1226
- ])], 8, Ht)) : T("v-if", !0);
1226
+ ])], 8, Ht)) : C("v-if", !0);
1227
1227
  }
1228
1228
  }), [["__scopeId", "data-v-35af1777"]]), Qt = { class: "code-config" }, $t = {
1229
1229
  key: 1,
@@ -1280,7 +1280,7 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1280
1280
  }, Wn = {
1281
1281
  key: 1,
1282
1282
  class: "code-config__muted"
1283
- }, Gn = ["aria-label"], Kn = /*@__PURE__*/ Je({
1283
+ }, Gn = ["aria-label"], Kn = /*@__PURE__*/ Xe({
1284
1284
  name: "CodeConfigurationView",
1285
1285
  __name: "CodeConfigurationView",
1286
1286
  props: {
@@ -1289,78 +1289,78 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1289
1289
  embedded: { type: Boolean }
1290
1290
  },
1291
1291
  setup(e) {
1292
- let o = e, u = de(), p = (e, t) => u.t(`platform.code.config.${e}`, t);
1292
+ let i = e, f = he(), p = (e, t) => f.t(`platform.code.config.${e}`, t);
1293
1293
  function m(e) {
1294
- return e instanceof h ? oe(e, u) : d(ne(e), u);
1294
+ return e instanceof je ? ke(e, f) : o(ne(e), f);
1295
1295
  }
1296
- let g = Te({ moduleAlias: "platform.code_rule" }), v = n(), ge = N(), _e = C(() => {
1297
- switch (ge.value) {
1296
+ let le = de({ moduleAlias: "platform.code_rule" }), pe = n(), me = M(), ve = x(() => {
1297
+ switch (me.value) {
1298
1298
  case "no-model": return p("reason.no-model", "尚未关联业务数据模型,请先配置模型,再设置编号规则。");
1299
1299
  case "no-fields": return p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。");
1300
1300
  case "not-declared": return p("reason.not-declared", "该静态模块尚未声明可配置的编号字段,需由开发者在业务模型中声明。");
1301
- default: return o.moduleAlias ? p("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : p("no-modules", "没有可配置业务编码的模块。");
1301
+ default: return i.moduleAlias ? p("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : p("no-modules", "没有可配置业务编码的模块。");
1302
1302
  }
1303
1303
  });
1304
- function ye() {
1305
- let e = o.moduleAlias ?? j.value;
1306
- e && v?.openPage(t(Fe, {
1304
+ function _() {
1305
+ let e = i.moduleAlias ?? A.value;
1306
+ e && pe?.openPage(t(Le, {
1307
1307
  moduleAlias: e,
1308
- moduleTitle: o.moduleTitle ?? Y.value?.moduleTitle,
1308
+ moduleTitle: i.moduleTitle ?? Y.value?.moduleTitle,
1309
1309
  governanceTab: "metadata"
1310
1310
  }));
1311
1311
  }
1312
- let b = r(), xe = N(b?.value?.tenantId ?? ""), De = N(0), S = N(!1), Re = C(() => !!xe.value), Ve = C(() => xe.value && b?.value?.system ? ve(g.http, { "X-MuYun-Tenant-Id": xe.value }) : g.http), Ge = C(() => Me(Ve.value, u)), Je = C(() => b?.value?.system ? re({
1313
- http: g.http,
1314
- language: u,
1312
+ let v = r(), Ee = M(v?.value?.tenantId ?? ""), Me = M(0), b = M(!1), Be = x(() => !!Ee.value), Ue = x(() => Ee.value && v?.value?.system ? ue(le.http, { "X-MuYun-Tenant-Id": Ee.value }) : le.http), qe = x(() => Pe(Ue.value, f)), Xe = x(() => v?.value?.system ? ce({
1313
+ http: le.http,
1314
+ language: f,
1315
1315
  moduleAlias: "iam.tenant",
1316
1316
  runtimeAccess: "REFERENCE"
1317
- }) : void 0), Ze = C(() => Re.value ? re({
1318
- http: Ve.value,
1319
- language: u,
1317
+ }) : void 0), $e = x(() => Be.value ? ce({
1318
+ http: Ue.value,
1319
+ language: f,
1320
1320
  moduleAlias: "iam.organization",
1321
1321
  runtimeAccess: "REFERENCE"
1322
- }) : void 0), et = C(() => Re.value && g.can("saveTree") === !0), nt = C(() => g.can("configureBinding") === !0 && !B.value), A = N([]), j = N(o.moduleAlias ?? ""), it = N(""), at = C(() => {
1322
+ }) : void 0), O = x(() => Be.value && le.can("saveTree") === !0), rt = x(() => le.can("configureBinding") === !0 && !z.value), k = M([]), A = M(i.moduleAlias ?? ""), at = M(""), ot = x(() => {
1323
1323
  let e = /* @__PURE__ */ new Map();
1324
- for (let t of A.value) t.fields.length && (e.has(t.moduleAlias) || e.set(t.moduleAlias, {
1324
+ for (let t of k.value) t.fields.length && (e.has(t.moduleAlias) || e.set(t.moduleAlias, {
1325
1325
  id: t.moduleAlias,
1326
- title: le(t.moduleTitle || t.moduleAlias, t.moduleTitleText, u),
1326
+ title: a(t.moduleTitle || t.moduleAlias, t.moduleTitleText, f),
1327
1327
  code: t.moduleAlias
1328
1328
  }));
1329
1329
  return [...e.values()];
1330
- }), dt = C(() => Re.value && !o.moduleAlias), pt = C(() => A.value.filter((e) => e.moduleAlias === j.value)), mt = N(""), L = N(""), R = N([]), ht = ut(u), { draft: z, original: gt, recoveryRequired: B } = ht, V = N(), _t = N(), vt = N(!1), H = () => JSON.stringify([
1331
- b?.value?.userId,
1332
- b?.value?.tenantId,
1333
- b?.value?.organizationId,
1334
- b?.value?.system,
1335
- xe.value,
1336
- o.moduleAlias
1337
- ]), yt = () => lt(H(), window.sessionStorage), U = N(), bt = N(""), xt = N(!1), St = N(!1), W = N(!1), Ct = N(!1), wt = N(!1), Tt = N([]), G = N(""), Et = N(""), Dt = N(), Ot = N(), K = N("");
1338
- st(H, (e, t) => {
1339
- t !== void 0 && (W.value = !1);
1330
+ }), ft = x(() => Be.value && !i.moduleAlias), mt = x(() => k.value.filter((e) => e.moduleAlias === A.value)), ht = M(""), I = M(""), L = M([]), gt = dt(f), { draft: R, original: _t, recoveryRequired: z } = gt, B = M(), vt = M(), yt = M(!1), V = () => JSON.stringify([
1331
+ v?.value?.userId,
1332
+ v?.value?.tenantId,
1333
+ v?.value?.organizationId,
1334
+ v?.value?.system,
1335
+ Ee.value,
1336
+ i.moduleAlias
1337
+ ]), bt = () => ut(V(), window.sessionStorage), H = M(), xt = M(""), St = M(!1), Ct = M(!1), U = M(!1), wt = M(!1), Tt = M(!1), Et = M([]), W = M(""), Dt = M(""), Ot = M(), kt = M(), G = M("");
1338
+ ct(V, (e, t) => {
1339
+ t !== void 0 && (U.value = !1);
1340
1340
  try {
1341
- V.value = yt().restore(), B.value = !!V.value;
1341
+ B.value = bt().restore(), z.value = !!B.value;
1342
1342
  } catch (e) {
1343
- V.value = void 0, B.value = !0, G.value = m(e);
1343
+ B.value = void 0, z.value = !0, W.value = m(e);
1344
1344
  }
1345
- _t.value = void 0, vt.value = !1;
1345
+ vt.value = void 0, yt.value = !1;
1346
1346
  }, {
1347
1347
  immediate: !0,
1348
1348
  flush: "sync"
1349
1349
  });
1350
- let kt = N(), At = N(), jt = N({}), Mt = N(""), q = N("NORMAL"), J = N("SAVE"), Nt = N(), Pt = Ye(Bt, void 0), Ft = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = C(() => A.value.find((e) => Ft(e) === mt.value)), X = C(() => Y.value?.fields.find((e) => e.fieldName === L.value)), Lt = C(() => [p(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), p(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Rt = C(() => !!z.value && Ue(z.value)), Vt = C(() => [Rt.value && z.value?.linkedUpdate ? p("linked-short", "来源变化时换号") : "", z.value?.allowRecycle ? p("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Ht = C(() => R.value.filter((e) => e.fieldName === L.value)), Ut = C(() => Ht.value.map((e) => ({ ...e }))), Wt = N({}), Gt = 0;
1351
- st(() => [Ve.value, Ht.value.map((e) => e.orgScopeType === "ORG" ? e.orgScopeId : "").join(",")], async ([e]) => {
1350
+ let At = M(), jt = M(), K = M({}), Mt = M(""), q = M("NORMAL"), J = M("SAVE"), Nt = M(), Pt = Ze(Bt, void 0), Ft = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = x(() => k.value.find((e) => Ft(e) === ht.value)), X = x(() => Y.value?.fields.find((e) => e.fieldName === I.value)), Lt = x(() => [p(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), p(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Rt = x(() => !!R.value && Ge(R.value)), Vt = x(() => [Rt.value && R.value?.linkedUpdate ? p("linked-short", "来源变化时换号") : "", R.value?.allowRecycle ? p("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Ht = x(() => L.value.filter((e) => e.fieldName === I.value)), Ut = x(() => Ht.value.map((e) => ({ ...e }))), Wt = M({}), Gt = 0;
1351
+ ct(() => [Ue.value, Ht.value.map((e) => e.orgScopeType === "ORG" ? e.orgScopeId : "").join(",")], async ([e]) => {
1352
1352
  let t = ++Gt;
1353
1353
  Wt.value = {};
1354
1354
  let n = [...new Set(Ht.value.filter((e) => e.orgScopeType === "ORG").map((e) => e.orgScopeId).filter((e) => !!e))];
1355
- if (Re.value && n.length) try {
1356
- let r = await pe(e, { moduleAlias: "iam.organization" }).translate(n);
1357
- t === Gt && (Wt.value = Object.fromEntries(r.records.map((e) => [String(e.id), ue(e, "title", u) ?? p("specific-org", "指定机构")])));
1355
+ if (Be.value && n.length) try {
1356
+ let r = await we(e, { moduleAlias: "iam.organization" }).translate(n);
1357
+ t === Gt && (Wt.value = Object.fromEntries(r.records.map((e) => [String(e.id), ae(e, "title", f) ?? p("specific-org", "指定机构")])));
1358
1358
  } catch {}
1359
1359
  });
1360
1360
  function Kt(e) {
1361
1361
  return e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : Wt.value[e.orgScopeId ?? ""] ?? p("specific-org", "指定机构");
1362
1362
  }
1363
- let qt = C(() => [
1363
+ let qt = x(() => [
1364
1364
  {
1365
1365
  fieldName: "title",
1366
1366
  title: p("rule-title", "规则名称"),
@@ -1396,11 +1396,11 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1396
1396
  title: p("actions", "操作"),
1397
1397
  width: 112
1398
1398
  }
1399
- ]), Jt = C(() => U.value != null && JSON.stringify(U.value) !== bt.value), Yt = C(() => Y.value?.source === "DYNAMIC" && X.value?.role != null && (q.value !== X.value.role || J.value !== (X.value.trigger ?? "SAVE"))), Xt = C(() => Jt.value || Yt.value || z.value != null && JSON.stringify(z.value) !== gt.value), Z = C(() => xt.value || W.value);
1400
- ae(() => p("title", "业务编码"), () => Xt.value, () => Z.value);
1401
- let Q = C(() => et.value && !Z.value && !ht.recoveryRequired.value), Kn = C(() => Y.value ? He(Y.value, z.value) : []), qn = C(() => Y.value?.sources.filter((e) => !Kn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Jn = C(() => [...Kn.value, ...qn.value.filter((e) => Tt.value.includes(e.fieldName))]), Yn = 0, Xn, Zn, Qn = C(() => S.value && z.value?.mode !== "MANUAL" && !!z.value && !!Y.value && !Z.value && g.can("preview")), $n = C(() => {
1402
- if (!Qn.value || !z.value) return "";
1403
- let e = z.value;
1399
+ ]), Jt = x(() => H.value != null && JSON.stringify(H.value) !== xt.value), Yt = x(() => Y.value?.source === "DYNAMIC" && X.value?.role != null && (q.value !== X.value.role || J.value !== (X.value.trigger ?? "SAVE"))), Xt = x(() => Jt.value || Yt.value || R.value != null && JSON.stringify(R.value) !== _t.value), Z = x(() => St.value || U.value);
1400
+ te(() => p("title", "业务编码"), () => Xt.value, () => Z.value);
1401
+ let Q = x(() => O.value && !Z.value && !gt.recoveryRequired.value), Kn = x(() => Y.value ? We(Y.value, R.value) : []), qn = x(() => Y.value?.sources.filter((e) => !Kn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Jn = x(() => [...Kn.value, ...qn.value.filter((e) => Et.value.includes(e.fieldName))]), Yn = 0, Xn, Zn, Qn = x(() => b.value && R.value?.mode !== "MANUAL" && !!R.value && !!Y.value && !Z.value && le.can("preview")), $n = x(() => {
1402
+ if (!Qn.value || !R.value) return "";
1403
+ let e = R.value;
1404
1404
  return JSON.stringify([
1405
1405
  e.id,
1406
1406
  e.moduleAlias,
@@ -1416,58 +1416,58 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1416
1416
  Jn.value.map((e) => [
1417
1417
  e.fieldName,
1418
1418
  e.type,
1419
- jt.value[e.fieldName]
1419
+ K.value[e.fieldName]
1420
1420
  ]),
1421
1421
  Mt.value
1422
1422
  ]);
1423
1423
  });
1424
1424
  function er() {
1425
- Xn != null && clearTimeout(Xn), Xn = void 0, wt.value = !1, Zn?.abort(), Zn = void 0, Ct.value = !1, ++Yn;
1425
+ Xn != null && clearTimeout(Xn), Xn = void 0, Tt.value = !1, Zn?.abort(), Zn = void 0, wt.value = !1, ++Yn;
1426
1426
  }
1427
- st($n, (e) => {
1428
- er(), kt.value = void 0, Et.value = "", e && (wt.value = !0, Xn = setTimeout(() => {
1427
+ ct($n, (e) => {
1428
+ er(), At.value = void 0, Dt.value = "", e && (Tt.value = !0, Xn = setTimeout(() => {
1429
1429
  Or();
1430
1430
  }, 500));
1431
- }, { flush: "sync" }), tt(er);
1431
+ }, { flush: "sync" }), nt(er);
1432
1432
  let tr = () => JSON.stringify([
1433
- b?.value,
1434
- xe.value,
1435
- mt.value,
1436
- L.value
1433
+ v?.value,
1434
+ Ee.value,
1435
+ ht.value,
1436
+ I.value
1437
1437
  ]);
1438
- ft({
1439
- http: g.http,
1440
- scopedHttp: () => Ve.value,
1438
+ pt({
1439
+ http: le.http,
1440
+ scopedHttp: () => Ue.value,
1441
1441
  scope: tr,
1442
- active: () => ht.active.value,
1442
+ active: () => gt.active.value,
1443
1443
  revision: () => JSON.stringify([
1444
1444
  tr(),
1445
- S.value,
1446
- z.value,
1447
- U.value,
1445
+ b.value,
1446
+ R.value,
1447
+ H.value,
1448
1448
  q.value,
1449
1449
  J.value,
1450
- jt.value,
1450
+ K.value,
1451
1451
  Mt.value,
1452
1452
  Z.value,
1453
1453
  Q.value,
1454
- ht.recoveryRequired.value
1454
+ gt.recoveryRequired.value
1455
1455
  ]),
1456
1456
  adapter: {
1457
1457
  state: () => ({
1458
- ready: ht.active.value && S.value && !!z.value && !!Y.value && g.can("viewTree") === !0,
1459
- editable: Q.value && !Yt.value && !U.value,
1458
+ ready: gt.active.value && b.value && !!R.value && !!Y.value && le.can("viewTree") === !0,
1459
+ editable: Q.value && !Yt.value && !H.value,
1460
1460
  busy: Z.value,
1461
1461
  dirty: Xt.value,
1462
- recoveryRequired: ht.recoveryRequired.value,
1463
- draft: z.value,
1462
+ recoveryRequired: gt.recoveryRequired.value,
1463
+ draft: R.value,
1464
1464
  target: Y.value
1465
1465
  }),
1466
- prepare: (e, t) => ht.prepare(e, Y.value, () => t() && Q.value && S.value && !Yt.value && !U.value),
1466
+ prepare: (e, t) => gt.prepare(e, Y.value, () => t() && Q.value && b.value && !Yt.value && !H.value),
1467
1467
  trial: async (e, t) => {
1468
- if (!Qn.value || !z.value || !Y.value) throw new h("当前规则不可试算");
1469
- let n = await Ge.value.preview(z.value, je(Jn.value, jt.value, u), Mt.value.trim() === "" ? z.value.sequencePolicy?.startValue ?? 1 : Number(Mt.value), e);
1470
- if (!t()) throw new h("编码草稿或试算输入已变化,请重新试算");
1468
+ if (!Qn.value || !R.value || !Y.value) throw new je("当前规则不可试算");
1469
+ let n = await qe.value.preview(R.value, Ne(Jn.value, K.value, f), Mt.value.trim() === "" ? R.value.sequencePolicy?.startValue ?? 1 : Number(Mt.value), e);
1470
+ if (!t()) throw new je("编码草稿或试算输入已变化,请重新试算");
1471
1471
  return n;
1472
1472
  }
1473
1473
  }
@@ -1477,147 +1477,147 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1477
1477
  label: p(`enum.${e}`, t)
1478
1478
  })), rr = 0;
1479
1479
  function $(e) {
1480
- U.value = void 0, bt.value = "", Mt.value = "", e || (S.value = !1), ht.reset(e), X.value?.role || (q.value = e?.fieldRole ?? "NORMAL", J.value = e?.fieldTrigger ?? "SAVE"), gt.value = z.value == null ? "" : JSON.stringify(z.value);
1480
+ H.value = void 0, xt.value = "", Mt.value = "", e || (b.value = !1), gt.reset(e), X.value?.role || (q.value = e?.fieldRole ?? "NORMAL", J.value = e?.fieldTrigger ?? "SAVE"), _t.value = R.value == null ? "" : JSON.stringify(R.value);
1481
1481
  }
1482
- st([q, J], () => {
1483
- S.value && !X.value?.role && z.value && (z.value.fieldRole = q.value, z.value.fieldTrigger = J.value);
1482
+ ct([q, J], () => {
1483
+ b.value && !X.value?.role && R.value && (R.value.fieldRole = q.value, R.value.fieldTrigger = J.value);
1484
1484
  }, { flush: "sync" });
1485
1485
  function ir() {
1486
1486
  q.value = X.value?.role ?? "NORMAL", J.value = X.value?.trigger ?? "SAVE";
1487
1487
  }
1488
1488
  function ar() {
1489
- return B.value ? (G.value = p("recovery-needed", "请先核实原编号保存结果。"), !1) : Xt.value ? (G.value = p("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
1489
+ return z.value ? (W.value = p("recovery-needed", "请先核实原编号保存结果。"), !1) : Xt.value ? (W.value = p("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
1490
1490
  }
1491
1491
  function or(e) {
1492
- ar() && (L.value = e, jt.value = {}, Tt.value = [], ir(), $(Ht.value[0]), G.value = "", K.value = "");
1492
+ ar() && (I.value = e, K.value = {}, Et.value = [], ir(), $(Ht.value[0]), W.value = "", G.value = "");
1493
1493
  }
1494
1494
  async function sr(e) {
1495
- if (!ar() || !at.value.some((t) => t.id === e)) return;
1496
- j.value = e, it.value = "", K.value = "";
1497
- let t = pt.value.find((e) => e.fields.length) ?? pt.value[0];
1495
+ if (!ar() || !ot.value.some((t) => t.id === e)) return;
1496
+ A.value = e, at.value = "", G.value = "";
1497
+ let t = mt.value.find((e) => e.fields.length) ?? mt.value[0];
1498
1498
  await cr(t ? Ft(t) : "");
1499
1499
  }
1500
1500
  async function cr(e, t = !1) {
1501
1501
  if (!t && !ar()) return;
1502
1502
  let n = ++rr;
1503
- mt.value = e, jt.value = {}, Tt.value = [], L.value = "", R.value = [], $(), G.value = "", xt.value = !0;
1503
+ ht.value = e, K.value = {}, Et.value = [], I.value = "", L.value = [], $(), W.value = "", St.value = !0;
1504
1504
  try {
1505
1505
  let e = Y.value;
1506
1506
  if (!e) return;
1507
- let t = Re.value ? await Ge.value.rules(e) : [];
1507
+ let t = Be.value ? await qe.value.rules(e) : [];
1508
1508
  if (n !== rr) return;
1509
- R.value = t, L.value = V.value?.fieldName ?? e.fields.find((e) => e.role != null)?.fieldName ?? e.fields[0]?.fieldName ?? "", ir(), $(V.value?.ruleId ? Ht.value.find((e) => e.id === V.value?.ruleId) : Ht.value[0]);
1509
+ L.value = t, I.value = B.value?.fieldName ?? e.fields.find((e) => e.role != null)?.fieldName ?? e.fields[0]?.fieldName ?? "", ir(), $(B.value?.ruleId ? Ht.value.find((e) => e.id === B.value?.ruleId) : Ht.value[0]);
1510
1510
  } catch (e) {
1511
- n === rr && (G.value = m(e));
1511
+ n === rr && (W.value = m(e));
1512
1512
  } finally {
1513
- n === rr && (xt.value = !1);
1513
+ n === rr && (St.value = !1);
1514
1514
  }
1515
1515
  }
1516
1516
  async function lr() {
1517
1517
  let e = ++rr;
1518
- if (St.value = !1, !Re.value) {
1519
- xt.value = !1, G.value = "";
1518
+ if (Ct.value = !1, !Be.value) {
1519
+ St.value = !1, W.value = "";
1520
1520
  return;
1521
1521
  }
1522
- xt.value = !0, ge.value = void 0, G.value = "";
1522
+ St.value = !0, me.value = void 0, W.value = "";
1523
1523
  try {
1524
- V.value = yt().restore(), B.value = !!V.value;
1525
- let t = await Ge.value.targets(o.moduleAlias);
1524
+ B.value = bt().restore(), z.value = !!B.value;
1525
+ let t = await qe.value.targets(i.moduleAlias);
1526
1526
  if (e !== rr) return;
1527
- if (A.value = t, o.moduleAlias && !t.some((e) => e.fields.length)) {
1527
+ if (k.value = t, i.moduleAlias && !t.some((e) => e.fields.length)) {
1528
1528
  try {
1529
- let t = await Be(Ve.value, o.moduleAlias);
1529
+ let t = await He(Ue.value, i.moduleAlias);
1530
1530
  if (e !== rr) return;
1531
- ge.value = t.reason;
1531
+ me.value = t.reason;
1532
1532
  } catch {}
1533
1533
  if (e !== rr) return;
1534
1534
  }
1535
- xt.value = !1, V.value && (j.value = V.value.moduleAlias), at.value.some((e) => e.id === j.value) || (j.value = "");
1536
- let n = V.value ? pt.value.find((e) => e.entityAlias === V.value.entityAlias) : pt.value.find((e) => e.fields.length) ?? pt.value[0];
1537
- await cr(n ? Ft(n) : "", !!V.value);
1535
+ St.value = !1, B.value && (A.value = B.value.moduleAlias), ot.value.some((e) => e.id === A.value) || (A.value = "");
1536
+ let n = B.value ? mt.value.find((e) => e.entityAlias === B.value.entityAlias) : mt.value.find((e) => e.fields.length) ?? mt.value[0];
1537
+ await cr(n ? Ft(n) : "", !!B.value);
1538
1538
  } catch (t) {
1539
- e === rr && (G.value = m(t), St.value = !0);
1539
+ e === rr && (W.value = m(t), Ct.value = !0);
1540
1540
  } finally {
1541
- e === rr && (xt.value = !1);
1541
+ e === rr && (St.value = !1);
1542
1542
  }
1543
1543
  }
1544
- st(() => o.moduleAlias, () => {
1545
- j.value = o.moduleAlias ?? "", it.value = "", $(), L.value = "", mt.value = "", A.value = [], R.value = [], lr();
1546
- }, { immediate: !0 }), st(() => [
1547
- b?.value?.userId,
1548
- b?.value?.tenantId,
1549
- b?.value?.organizationId,
1550
- b?.value?.system
1544
+ ct(() => i.moduleAlias, () => {
1545
+ A.value = i.moduleAlias ?? "", at.value = "", $(), I.value = "", ht.value = "", k.value = [], L.value = [], lr();
1546
+ }, { immediate: !0 }), ct(() => [
1547
+ v?.value?.userId,
1548
+ v?.value?.tenantId,
1549
+ v?.value?.organizationId,
1550
+ v?.value?.system
1551
1551
  ], () => {
1552
- xe.value = b?.value?.tenantId ?? "", j.value = o.moduleAlias ?? "", it.value = "", $(), A.value = [], R.value = [], L.value = "", mt.value = "", lr();
1552
+ Ee.value = v?.value?.tenantId ?? "", A.value = i.moduleAlias ?? "", at.value = "", $(), k.value = [], L.value = [], I.value = "", ht.value = "", lr();
1553
1553
  });
1554
1554
  async function ur(e) {
1555
- ar() && (xe.value = e ?? "", j.value = o.moduleAlias ?? "", it.value = "", A.value = [], R.value = [], L.value = "", mt.value = "", $(), await lr());
1555
+ ar() && (Ee.value = e ?? "", A.value = i.moduleAlias ?? "", at.value = "", k.value = [], L.value = [], I.value = "", ht.value = "", $(), await lr());
1556
1556
  }
1557
1557
  function dr(e, t, n) {
1558
- t && n === 1 && e.length === 1 && !xe.value && ur(String(e[0].id));
1558
+ t && n === 1 && e.length === 1 && !Ee.value && ur(String(e[0].id));
1559
1559
  }
1560
1560
  async function fr() {
1561
- return Z.value || B.value ? !1 : !Xt.value || await ee({
1561
+ return Z.value || z.value ? !1 : !Xt.value || await s({
1562
1562
  title: p("discard-rule", "放弃未保存的编号规则修改?"),
1563
1563
  content: p("discard-rule-help", "当前修改尚未保存,放弃后将恢复已保存的规则。"),
1564
1564
  okText: p("discard", "放弃修改"),
1565
1565
  danger: !0
1566
- }, u);
1566
+ }, f);
1567
1567
  }
1568
1568
  function pr() {
1569
- B.value || Z.value || (gr(), S.value = !1);
1569
+ z.value || Z.value || (gr(), b.value = !1);
1570
1570
  }
1571
1571
  function mr(e) {
1572
- ar() && (ir(), $(e), S.value = !0, G.value = "", K.value = "");
1572
+ ar() && (ir(), $(e), b.value = !0, W.value = "", G.value = "");
1573
1573
  }
1574
1574
  function hr() {
1575
1575
  if (ar() && Y.value && X.value) {
1576
- let e = Le(Y.value, X.value);
1577
- e.fieldRole = q.value, e.fieldTrigger = J.value, $(e), S.value = !0, G.value = "", K.value = "";
1576
+ let e = ze(Y.value, X.value);
1577
+ e.fieldRole = q.value, e.fieldTrigger = J.value, $(e), b.value = !0, W.value = "", G.value = "";
1578
1578
  }
1579
1579
  }
1580
1580
  function gr() {
1581
- B.value || Z.value || (ir(), $(z.value?.id ? R.value.find((e) => e.id === z.value?.id) : void 0), G.value = "");
1581
+ z.value || Z.value || (ir(), $(R.value?.id ? L.value.find((e) => e.id === R.value?.id) : void 0), W.value = "");
1582
1582
  }
1583
1583
  function _r() {
1584
- B.value || Z.value || (ir(), G.value = "", K.value = "");
1584
+ z.value || Z.value || (ir(), W.value = "", G.value = "");
1585
1585
  }
1586
1586
  async function vr() {
1587
- if (!Y.value || !X.value || W.value || B.value) return;
1588
- let e = H();
1589
- W.value = !0, G.value = "", K.value = "";
1587
+ if (!Y.value || !X.value || U.value || z.value) return;
1588
+ let e = V();
1589
+ U.value = !0, W.value = "", G.value = "";
1590
1590
  try {
1591
- let t = await Ge.value.bind(Y.value, X.value, q.value, J.value);
1592
- if (H() !== e || (A.value = A.value.map((e) => Ft(e) === Ft(t) ? t : e), ir(), Pt ? await Pt(t.moduleAlias) : await Nt.value?.refresh(), H() !== e)) return;
1593
- K.value = p("binding-saved", "字段配置已保存,请查看运行态生效状态。");
1591
+ let t = await qe.value.bind(Y.value, X.value, q.value, J.value);
1592
+ if (V() !== e || (k.value = k.value.map((e) => Ft(e) === Ft(t) ? t : e), ir(), Pt ? await Pt(t.moduleAlias) : await Nt.value?.refresh(), V() !== e)) return;
1593
+ G.value = p("binding-saved", "字段配置已保存,请查看运行态生效状态。");
1594
1594
  } catch (t) {
1595
- if (H() !== e) return;
1596
- G.value = m(t), t instanceof h || se(t, {
1597
- language: u,
1595
+ if (V() !== e) return;
1596
+ W.value = m(t), t instanceof je || Ae(t, {
1597
+ language: f,
1598
1598
  source: "business-code",
1599
1599
  phase: "action"
1600
1600
  });
1601
1601
  } finally {
1602
- H() === e && (W.value = !1);
1602
+ V() === e && (U.value = !1);
1603
1603
  }
1604
1604
  }
1605
1605
  async function yr(e) {
1606
1606
  let t = Y.value?.source === "DYNAMIC" && !X.value?.role;
1607
- if (B.value) throw new h("请先核实原编号保存结果");
1608
- let n = Pe(e, u), r = {
1609
- requestId: ce(),
1607
+ if (z.value) throw new je("请先核实原编号保存结果");
1608
+ let n = Ie(e, f), r = {
1609
+ requestId: u(),
1610
1610
  moduleAlias: e.moduleAlias,
1611
1611
  entityAlias: e.entityAlias,
1612
1612
  fieldName: e.fieldName,
1613
1613
  ...e.id ? { ruleId: e.id } : {}
1614
- }, a = yt(), s = H(), c = Ge.value;
1615
- a.save(r), V.value = r;
1616
- let l;
1614
+ }, a = bt(), o = V(), s = qe.value;
1615
+ a.save(r), B.value = r;
1616
+ let c;
1617
1617
  try {
1618
- l = await c.save(n, r.requestId), a.clear(r.requestId);
1618
+ c = await s.save(n, r.requestId), a.clear(r.requestId);
1619
1619
  } catch (e) {
1620
- if (e instanceof i && [
1620
+ if (e instanceof ge && [
1621
1621
  400,
1622
1622
  401,
1623
1623
  403,
@@ -1627,77 +1627,77 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1627
1627
  try {
1628
1628
  a.clear(r.requestId);
1629
1629
  } catch (e) {
1630
- throw H() === s && (B.value = !0), e;
1630
+ throw V() === o && (z.value = !0), e;
1631
1631
  }
1632
- H() === s && (V.value = void 0);
1633
- } else H() === s && (B.value = !0);
1632
+ V() === o && (B.value = void 0);
1633
+ } else V() === o && (z.value = !0);
1634
1634
  throw e;
1635
1635
  }
1636
- if (H() !== s) throw new h("编号执行范围已变化,请重新读取");
1637
- if (V.value = void 0, R.value = [...R.value.filter((e) => e.id !== l.id), l], t && l.enabled) try {
1638
- let e = await c.targets(o.moduleAlias);
1639
- if (H() !== s) throw new h("编号执行范围已变化,请重新读取");
1640
- A.value = e, ir(), Pt ? await Pt(l.moduleAlias) : await Nt.value?.refresh();
1636
+ if (V() !== o) throw new je("编号执行范围已变化,请重新读取");
1637
+ if (B.value = void 0, L.value = [...L.value.filter((e) => e.id !== c.id), c], t && c.enabled) try {
1638
+ let e = await s.targets(i.moduleAlias);
1639
+ if (V() !== o) throw new je("编号执行范围已变化,请重新读取");
1640
+ k.value = e, ir(), Pt ? await Pt(c.moduleAlias) : await Nt.value?.refresh();
1641
1641
  } catch {
1642
- if (H() !== s) throw new h("编号执行范围已变化,请重新读取");
1643
- G.value = p("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
1642
+ if (V() !== o) throw new je("编号执行范围已变化,请重新读取");
1643
+ W.value = p("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
1644
1644
  }
1645
- if (H() !== s) throw new h("编号执行范围已变化,请重新读取");
1646
- return l;
1645
+ if (V() !== o) throw new je("编号执行范围已变化,请重新读取");
1646
+ return c;
1647
1647
  }
1648
1648
  async function br(e = !1) {
1649
- if (!V.value || Z.value) return;
1650
- let t = V.value, n = H(), r = Ge.value;
1651
- W.value = !0, vt.value = !1, _t.value = void 0;
1649
+ if (!B.value || Z.value) return;
1650
+ let t = B.value, n = V(), r = qe.value;
1651
+ U.value = !0, yt.value = !1, vt.value = void 0;
1652
1652
  try {
1653
1653
  let i = await (e ? r.abandon(t) : r.receipt(t));
1654
- if (n !== H()) return;
1654
+ if (n !== V()) return;
1655
1655
  let a = i.committed || i.cancelled, o = i.ruleId ?? t.ruleId, s = o && a ? await r.view(o) : void 0;
1656
- if (o && a && !s) throw new h("当前编号规则不可读取,请重新核实");
1657
- if (n !== H()) return;
1658
- _t.value = s || void 0, vt.value = a, K.value = i.committed ? "已确认原请求提交成功,请核对当前规则。" : i.cancelled ? "原请求已终止,迟到请求不会写入。" : "尚未查到回执,结果仍不确定;可稍后查询或显式终止原请求。";
1656
+ if (o && a && !s) throw new je("当前编号规则不可读取,请重新核实");
1657
+ if (n !== V()) return;
1658
+ vt.value = s || void 0, yt.value = a, G.value = i.committed ? "已确认原请求提交成功,请核对当前规则。" : i.cancelled ? "原请求已终止,迟到请求不会写入。" : "尚未查到回执,结果仍不确定;可稍后查询或显式终止原请求。";
1659
1659
  } catch (e) {
1660
- n === H() && (G.value = m(e));
1660
+ n === V() && (W.value = m(e));
1661
1661
  } finally {
1662
- n === H() && (W.value = !1);
1662
+ n === V() && (U.value = !1);
1663
1663
  }
1664
1664
  }
1665
1665
  function xr() {
1666
- if (!V.value || !vt.value || Z.value) return;
1666
+ if (!B.value || !yt.value || Z.value) return;
1667
1667
  try {
1668
- yt().clear(V.value.requestId);
1668
+ bt().clear(B.value.requestId);
1669
1669
  } catch (e) {
1670
- G.value = m(e);
1670
+ W.value = m(e);
1671
1671
  return;
1672
1672
  }
1673
- let e = _t.value;
1674
- V.value = void 0, B.value = !1, vt.value = !1, e && (R.value = [...R.value.filter((t) => t.id !== e.id), e]), $(e), S.value = !!e;
1673
+ let e = vt.value;
1674
+ B.value = void 0, z.value = !1, yt.value = !1, e && (L.value = [...L.value.filter((t) => t.id !== e.id), e]), $(e), b.value = !!e;
1675
1675
  }
1676
1676
  async function Sr() {
1677
- if (!z.value || W.value || B.value) return;
1678
- let e = H();
1679
- W.value = !0, G.value = "", K.value = "";
1677
+ if (!R.value || U.value || z.value) return;
1678
+ let e = V();
1679
+ U.value = !0, W.value = "", G.value = "";
1680
1680
  try {
1681
- let e = await yr(z.value);
1682
- $(e), K.value = e.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("saved-disabled", "规则已保存,可在规则列表中启用。");
1681
+ let e = await yr(R.value);
1682
+ $(e), G.value = e.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("saved-disabled", "规则已保存,可在规则列表中启用。");
1683
1683
  } catch (t) {
1684
- if (H() !== e) return;
1685
- G.value = m(t), t instanceof h || se(t, {
1686
- language: u,
1684
+ if (V() !== e) return;
1685
+ W.value = m(t), t instanceof je || Ae(t, {
1686
+ language: f,
1687
1687
  source: "business-code",
1688
1688
  phase: "action"
1689
1689
  });
1690
1690
  } finally {
1691
- H() === e && (W.value = !1), await Qe(), Ot.value?.scrollIntoView?.({
1691
+ V() === e && (U.value = !1), await et(), kt.value?.scrollIntoView?.({
1692
1692
  block: "nearest",
1693
1693
  behavior: "smooth"
1694
1694
  });
1695
1695
  }
1696
1696
  }
1697
1697
  async function Cr(e, t) {
1698
- if (U.value || !ar() || !et.value || t && !X.value?.role && !nt.value) return;
1699
- let n = H();
1700
- W.value = !0, G.value = "";
1698
+ if (H.value || !ar() || !O.value || t && !X.value?.role && !rt.value) return;
1699
+ let n = V();
1700
+ U.value = !0, W.value = "";
1701
1701
  try {
1702
1702
  let n = await yr({
1703
1703
  ...e,
@@ -1707,65 +1707,65 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1707
1707
  } : {},
1708
1708
  enabled: t
1709
1709
  });
1710
- z.value?.id === n.id && $(n), K.value = n.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("rule-stopped", "规则已停用,已有编码保持不变。");
1710
+ R.value?.id === n.id && $(n), G.value = n.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("rule-stopped", "规则已停用,已有编码保持不变。");
1711
1711
  } catch (e) {
1712
- if (H() !== n) return;
1713
- G.value = m(e);
1712
+ if (V() !== n) return;
1713
+ W.value = m(e);
1714
1714
  } finally {
1715
- H() === n && (W.value = !1);
1715
+ V() === n && (U.value = !1);
1716
1716
  }
1717
1717
  }
1718
1718
  function wr(e) {
1719
- ar() && ($(), U.value = JSON.parse(JSON.stringify(e)), bt.value = JSON.stringify(U.value), G.value = "", K.value = "");
1719
+ ar() && ($(), H.value = JSON.parse(JSON.stringify(e)), xt.value = JSON.stringify(H.value), W.value = "", G.value = "");
1720
1720
  }
1721
1721
  function Tr() {
1722
- U.value = void 0, bt.value = "", G.value = "";
1722
+ H.value = void 0, xt.value = "", W.value = "";
1723
1723
  }
1724
1724
  async function Er() {
1725
- if (!U.value || !et.value || Z.value) return;
1726
- let e = H();
1727
- W.value = !0, G.value = "", K.value = "";
1725
+ if (!H.value || !O.value || Z.value) return;
1726
+ let e = V();
1727
+ U.value = !0, W.value = "", G.value = "";
1728
1728
  try {
1729
- $(await yr(U.value)), K.value = p("usage-saved", "适用配置已保存。");
1729
+ $(await yr(H.value)), G.value = p("usage-saved", "适用配置已保存。");
1730
1730
  } catch (t) {
1731
- if (H() !== e) return;
1732
- G.value = m(t);
1731
+ if (V() !== e) return;
1732
+ W.value = m(t);
1733
1733
  } finally {
1734
- H() === e && (W.value = !1);
1734
+ V() === e && (U.value = !1);
1735
1735
  }
1736
1736
  }
1737
1737
  function Dr(e) {
1738
- z.value && (z.value.mode = e, e !== "MANUAL" && z.value.segments.length === 0 && (z.value.segments = [We(), We("SEQUENCE")], z.value.sequencePolicy = Ne()));
1738
+ R.value && (R.value.mode = e, e !== "MANUAL" && R.value.segments.length === 0 && (R.value.segments = [Ke(), Ke("SEQUENCE")], R.value.sequencePolicy = Fe()));
1739
1739
  }
1740
1740
  async function Or(e = !1) {
1741
- if (!z.value || !Y.value || !Qn.value) return;
1741
+ if (!R.value || !Y.value || !Qn.value) return;
1742
1742
  er();
1743
1743
  let t = ++Yn, n = new AbortController();
1744
- Zn = n, Ct.value = !0, Et.value = "", kt.value = void 0;
1744
+ Zn = n, wt.value = !0, Dt.value = "", At.value = void 0;
1745
1745
  try {
1746
- let r = await Ge.value.preview(z.value, je(Jn.value, jt.value, u), Mt.value.trim() === "" ? z.value.sequencePolicy?.startValue ?? 1 : Number(Mt.value), n.signal);
1747
- t === Yn && (kt.value = r, e && (await Qe(), t === Yn && At.value?.scrollIntoView?.({
1746
+ let r = await qe.value.preview(R.value, Ne(Jn.value, K.value, f), Mt.value.trim() === "" ? R.value.sequencePolicy?.startValue ?? 1 : Number(Mt.value), n.signal);
1747
+ t === Yn && (At.value = r, e && (await et(), t === Yn && jt.value?.scrollIntoView?.({
1748
1748
  block: "nearest",
1749
1749
  behavior: "smooth"
1750
1750
  })));
1751
1751
  } catch (r) {
1752
- t === Yn && !n.signal.aborted && (Et.value = m(r), e && (await Qe(), t === Yn && (Dt.value?.scrollIntoView?.({
1752
+ t === Yn && !n.signal.aborted && (Dt.value = m(r), e && (await et(), t === Yn && (Ot.value?.scrollIntoView?.({
1753
1753
  block: "nearest",
1754
1754
  behavior: "smooth"
1755
- }), Dt.value?.focus({ preventScroll: !0 }))));
1755
+ }), Ot.value?.focus({ preventScroll: !0 }))));
1756
1756
  } finally {
1757
- t === Yn && (Ct.value = !1, Zn = void 0);
1757
+ t === Yn && (wt.value = !1, Zn = void 0);
1758
1758
  }
1759
1759
  }
1760
- return (t, n) => (M(), E("section", Qt, [
1761
- F(B) && !S.value ? (M(), w(zt, {
1760
+ return (t, n) => (j(), w("section", Qt, [
1761
+ P(z) && !b.value ? (j(), S(zt, {
1762
1762
  key: 0,
1763
- rule: _t.value,
1763
+ rule: vt.value,
1764
1764
  target: Y.value,
1765
1765
  busy: Z.value,
1766
- resolved: vt.value,
1767
- feedback: K.value,
1768
- error: G.value,
1766
+ resolved: yt.value,
1767
+ feedback: G.value,
1768
+ error: W.value,
1769
1769
  onCheck: n[0] ||= (e) => br(),
1770
1770
  onAbandon: n[1] ||= (e) => br(!0),
1771
1771
  onAdopt: xr
@@ -1776,66 +1776,66 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1776
1776
  "resolved",
1777
1777
  "feedback",
1778
1778
  "error"
1779
- ])) : T("v-if", !0),
1780
- G.value && !S.value ? (M(), E("div", $t, [k(F(ie), {
1779
+ ])) : C("v-if", !0),
1780
+ W.value && !b.value ? (j(), w("div", $t, [D(P(ee), {
1781
1781
  title: p("request-failed", "操作未完成"),
1782
- message: G.value
1783
- }, null, 8, ["title", "message"]), St.value ? (M(), w(F(x), {
1782
+ message: W.value
1783
+ }, null, 8, ["title", "message"]), Ct.value ? (j(), S(P(h), {
1784
1784
  key: 0,
1785
1785
  disabled: Z.value,
1786
1786
  onClick: lr
1787
1787
  }, {
1788
- default: I(() => [O(P(p("retry", "重试加载")), 1)]),
1788
+ default: F(() => [E(N(p("retry", "重试加载")), 1)]),
1789
1789
  _: 1
1790
- }, 8, ["disabled"])) : T("v-if", !0)])) : T("v-if", !0),
1791
- K.value && !S.value ? (M(), E("p", en, P(K.value), 1)) : T("v-if", !0),
1792
- k(F(he), {
1790
+ }, 8, ["disabled"])) : C("v-if", !0)])) : C("v-if", !0),
1791
+ G.value && !b.value ? (j(), w("p", en, N(G.value), 1)) : C("v-if", !0),
1792
+ D(P(Ce), {
1793
1793
  class: "code-config__layout",
1794
- "explorer-count": (F(b)?.system && Je.value ? 1 : 0) + +!!dt.value,
1795
- editing: Z.value || Xt.value || !!U.value
1794
+ "explorer-count": (P(v)?.system && Xe.value ? 1 : 0) + +!!ft.value,
1795
+ editing: Z.value || Xt.value || !!H.value
1796
1796
  }, {
1797
- default: I(() => [
1798
- F(b)?.system && Je.value ? (M(), w(F(we), {
1797
+ default: F(() => [
1798
+ P(v)?.system && Xe.value ? (j(), S(P(be), {
1799
1799
  key: 0,
1800
1800
  collapsible: "",
1801
1801
  title: p("tenant-short", "租户"),
1802
- "has-selection": !!xe.value
1802
+ "has-selection": !!Ee.value
1803
1803
  }, {
1804
- default: I(() => [F(b)?.system && Je.value ? (M(), w(F(Ce), {
1804
+ default: F(() => [P(v)?.system && Xe.value ? (j(), S(P(Se), {
1805
1805
  key: 0,
1806
- context: Je.value,
1807
- "selected-id": xe.value || void 0,
1808
- "reload-key": De.value,
1806
+ context: Xe.value,
1807
+ "selected-id": Ee.value || void 0,
1808
+ "reload-key": Me.value,
1809
1809
  disabled: Z.value || Xt.value,
1810
1810
  onSelect: n[2] ||= (e) => ur(String(e.id)),
1811
1811
  onDeselect: n[3] ||= (e) => ur(),
1812
1812
  onLoaded: dr,
1813
- onRefresh: n[4] ||= (e) => De.value++
1813
+ onRefresh: n[4] ||= (e) => Me.value++
1814
1814
  }, null, 8, [
1815
1815
  "context",
1816
1816
  "selected-id",
1817
1817
  "reload-key",
1818
1818
  "disabled"
1819
- ])) : T("v-if", !0)]),
1819
+ ])) : C("v-if", !0)]),
1820
1820
  _: 1
1821
- }, 8, ["title", "has-selection"])) : T("v-if", !0),
1822
- dt.value ? (M(), w(F(we), {
1821
+ }, 8, ["title", "has-selection"])) : C("v-if", !0),
1822
+ ft.value ? (j(), S(P(be), {
1823
1823
  key: 1,
1824
1824
  collapsible: "",
1825
1825
  title: p("module", "所属模块"),
1826
- "has-selection": !!j.value
1826
+ "has-selection": !!A.value
1827
1827
  }, {
1828
- default: I(() => [k(F(fe), {
1828
+ default: F(() => [D(P(Te), {
1829
1829
  title: p("module", "所属模块"),
1830
1830
  "refresh-disabled": Z.value || Xt.value,
1831
- "search-keyword": it.value,
1831
+ "search-keyword": at.value,
1832
1832
  onRefresh: lr,
1833
- "onUpdate:searchKeyword": n[6] ||= (e) => it.value = e
1833
+ "onUpdate:searchKeyword": n[6] ||= (e) => at.value = e
1834
1834
  }, {
1835
- default: I(() => [k(F(s), {
1836
- records: at.value,
1837
- "selected-id": j.value || void 0,
1838
- keyword: it.value,
1835
+ default: F(() => [D(P(ie), {
1836
+ records: ot.value,
1837
+ "selected-id": A.value || void 0,
1838
+ keyword: at.value,
1839
1839
  "empty-description": p("no-modules", "没有可配置业务编码的模块。"),
1840
1840
  onSelect: n[5] ||= (e) => sr(String(e.id))
1841
1841
  }, null, 8, [
@@ -1851,44 +1851,44 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1851
1851
  "search-keyword"
1852
1852
  ])]),
1853
1853
  _: 1
1854
- }, 8, ["title", "has-selection"])) : T("v-if", !0),
1855
- D("div", tn, [Re.value ? xt.value ? (M(), w(F(Ae), {
1854
+ }, 8, ["title", "has-selection"])) : C("v-if", !0),
1855
+ T("div", tn, [Be.value ? St.value ? (j(), S(P(re), {
1856
1856
  key: 1,
1857
1857
  spinning: !0
1858
1858
  }, {
1859
- default: I(() => [D("p", null, P(p("loading", "正在读取编码配置…")), 1)]),
1859
+ default: F(() => [T("p", null, N(p("loading", "正在读取编码配置…")), 1)]),
1860
1860
  _: 1
1861
- })) : !G.value && at.value.length === 0 ? (M(), E("div", nn, [k(F(l), { description: _e.value }, null, 8, ["description"]), F(v) ? (M(), E("div", rn, [ge.value === "no-model" || ge.value === "no-fields" ? (M(), w(F(x), {
1861
+ })) : !W.value && ot.value.length === 0 ? (j(), w("div", nn, [D(P(oe), { description: ve.value }, null, 8, ["description"]), P(pe) ? (j(), w("div", rn, [me.value === "no-model" || me.value === "no-fields" ? (j(), S(P(h), {
1862
1862
  key: 0,
1863
1863
  type: "primary",
1864
- onClick: ye
1864
+ onClick: _
1865
1865
  }, {
1866
- default: I(() => [O(P(p("configure-model", "配置模型")), 1)]),
1866
+ default: F(() => [E(N(p("configure-model", "配置模型")), 1)]),
1867
1867
  _: 1
1868
- })) : T("v-if", !0), k(F(x), { onClick: n[7] ||= (e) => F(v).openRoute("/platform/module") }, {
1869
- default: I(() => [O(P(p("back-to-modules", "返回模块管理")), 1)]),
1868
+ })) : C("v-if", !0), D(P(h), { onClick: n[7] ||= (e) => P(pe).openRoute("/platform/module") }, {
1869
+ default: F(() => [E(N(p("back-to-modules", "返回模块管理")), 1)]),
1870
1870
  _: 1
1871
- })])) : T("v-if", !0)])) : !j.value && A.value.length ? (M(), w(F(l), {
1871
+ })])) : C("v-if", !0)])) : !A.value && k.value.length ? (j(), S(P(oe), {
1872
1872
  key: 3,
1873
1873
  description: p("select-module", "选择模块后,配置业务对象的编码规则。")
1874
- }, null, 8, ["description"])) : j.value && pt.value.length ? (M(), E("div", an, [k(F(fe), {
1874
+ }, null, 8, ["description"])) : A.value && mt.value.length ? (j(), w("div", an, [D(P(Te), {
1875
1875
  class: "code-config__directory",
1876
1876
  title: p("binding-title", "编码对象"),
1877
1877
  "refresh-disabled": Z.value || Xt.value,
1878
1878
  searchable: !1,
1879
1879
  onRefresh: lr
1880
1880
  }, {
1881
- actions: I(() => [!e.embedded && Y.value?.source === "DYNAMIC" ? (M(), w(Zt, {
1881
+ actions: F(() => [!e.embedded && Y.value?.source === "DYNAMIC" ? (j(), S(Zt, {
1882
1882
  key: 0,
1883
1883
  ref_key: "localActivation",
1884
1884
  ref: Nt,
1885
1885
  "module-alias": Y.value.moduleAlias
1886
- }, null, 8, ["module-alias"])) : T("v-if", !0)]),
1887
- default: I(() => [D("div", on, [
1888
- D("label", sn, [O(P(p("entity", "业务对象")), 1), k(F(y), {
1889
- value: mt.value,
1886
+ }, null, 8, ["module-alias"])) : C("v-if", !0)]),
1887
+ default: F(() => [T("div", on, [
1888
+ T("label", sn, [E(N(p("entity", "业务对象")), 1), D(P(g), {
1889
+ value: ht.value,
1890
1890
  disabled: Z.value,
1891
- options: pt.value.map((e) => ({
1891
+ options: mt.value.map((e) => ({
1892
1892
  value: Ft(e),
1893
1893
  label: e.title
1894
1894
  })),
@@ -1898,8 +1898,8 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1898
1898
  "disabled",
1899
1899
  "options"
1900
1900
  ])]),
1901
- Y.value?.fields.length ? (M(), E("label", cn, [O(P(p("field", "编码字段")), 1), k(F(y), {
1902
- value: L.value,
1901
+ Y.value?.fields.length ? (j(), w("label", cn, [E(N(p("field", "编码字段")), 1), D(P(g), {
1902
+ value: I.value,
1903
1903
  disabled: Z.value,
1904
1904
  options: Y.value?.fields.map((e) => ({
1905
1905
  value: e.fieldName,
@@ -1910,32 +1910,32 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1910
1910
  "value",
1911
1911
  "disabled",
1912
1912
  "options"
1913
- ])])) : T("v-if", !0),
1914
- Y.value && !X.value ? (M(), E(Ke, { key: 1 }, [k(F(l), { description: p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), F(v) && Y.value.source === "DYNAMIC" ? (M(), w(F(x), {
1913
+ ])])) : C("v-if", !0),
1914
+ Y.value && !X.value ? (j(), w(Je, { key: 1 }, [D(P(oe), { description: p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), P(pe) && Y.value.source === "DYNAMIC" ? (j(), S(P(h), {
1915
1915
  key: 0,
1916
- onClick: ye
1916
+ onClick: _
1917
1917
  }, {
1918
- default: I(() => [O(P(p("configure-model", "配置模型")), 1)]),
1918
+ default: F(() => [E(N(p("configure-model", "配置模型")), 1)]),
1919
1919
  _: 1
1920
- })) : T("v-if", !0)], 64)) : T("v-if", !0),
1921
- X.value ? (M(), E(Ke, { key: 2 }, [Y.value?.source === "STATIC" ? (M(), E("div", ln, [D("span", null, P(Lt.value), 1), k(F(Ee), { label: p("binding-info", "字段设置说明") }, {
1922
- default: I(() => [D("p", null, P(p("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), D("dl", un, [
1923
- D("dt", null, P(p("module", "所属模块")), 1),
1924
- D("dd", null, P(Y.value.moduleAlias), 1),
1925
- D("dt", null, P(p("entity", "业务对象")), 1),
1926
- D("dd", null, P(Y.value.entityAlias), 1),
1927
- D("dt", null, P(p("field", "编码字段")), 1),
1928
- D("dd", null, P(X.value.fieldName), 1)
1920
+ })) : C("v-if", !0)], 64)) : C("v-if", !0),
1921
+ X.value ? (j(), w(Je, { key: 2 }, [Y.value?.source === "STATIC" ? (j(), w("div", ln, [T("span", null, N(Lt.value), 1), D(P(fe), { label: p("binding-info", "字段设置说明") }, {
1922
+ default: F(() => [T("p", null, N(p("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), T("dl", un, [
1923
+ T("dt", null, N(p("module", "所属模块")), 1),
1924
+ T("dd", null, N(Y.value.moduleAlias), 1),
1925
+ T("dt", null, N(p("entity", "业务对象")), 1),
1926
+ T("dd", null, N(Y.value.entityAlias), 1),
1927
+ T("dt", null, N(p("field", "编码字段")), 1),
1928
+ T("dd", null, N(X.value.fieldName), 1)
1929
1929
  ])]),
1930
1930
  _: 1
1931
- }, 8, ["label"])])) : (M(), E("section", {
1932
- key: `${mt.value}/${L.value}`,
1931
+ }, 8, ["label"])])) : (j(), w("section", {
1932
+ key: `${ht.value}/${I.value}`,
1933
1933
  class: "code-config__binding"
1934
- }, [D("div", dn, [
1935
- D("label", fn, [O(P(p("role", "编码角色")), 1), k(F(y), {
1934
+ }, [T("div", dn, [
1935
+ T("label", fn, [E(N(p("role", "编码角色")), 1), D(P(g), {
1936
1936
  value: q.value,
1937
1937
  "onUpdate:value": n[10] ||= (e) => q.value = e,
1938
- disabled: Z.value || (X.value.role ? !nt.value : !et.value),
1938
+ disabled: Z.value || (X.value.role ? !rt.value : !O.value),
1939
1939
  options: nr({
1940
1940
  NORMAL: "业务编码",
1941
1941
  PRIMARY: "主编码"
@@ -1945,10 +1945,10 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1945
1945
  "disabled",
1946
1946
  "options"
1947
1947
  ])]),
1948
- D("label", pn, [O(P(p("trigger", "生成时机")), 1), k(F(y), {
1948
+ T("label", pn, [E(N(p("trigger", "生成时机")), 1), D(P(g), {
1949
1949
  value: J.value,
1950
1950
  "onUpdate:value": n[11] ||= (e) => J.value = e,
1951
- disabled: Z.value || (X.value.role ? !nt.value : !et.value),
1951
+ disabled: Z.value || (X.value.role ? !rt.value : !O.value),
1952
1952
  options: nr({
1953
1953
  SAVE: "首次保存",
1954
1954
  EXPLICIT: "业务操作时生成"
@@ -1958,54 +1958,54 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
1958
1958
  "disabled",
1959
1959
  "options"
1960
1960
  ])]),
1961
- X.value.role && Yt.value ? (M(), E("div", mn, [k(F(x), {
1962
- disabled: !nt.value || Z.value,
1961
+ X.value.role && Yt.value ? (j(), w("div", mn, [D(P(h), {
1962
+ disabled: !rt.value || Z.value,
1963
1963
  onClick: vr
1964
1964
  }, {
1965
- default: I(() => [O(P(p("save-binding", "保存字段配置")), 1)]),
1965
+ default: F(() => [E(N(p("save-binding", "保存字段配置")), 1)]),
1966
1966
  _: 1
1967
- }, 8, ["disabled"]), k(F(x), {
1967
+ }, 8, ["disabled"]), D(P(h), {
1968
1968
  disabled: Z.value,
1969
1969
  onClick: _r
1970
1970
  }, {
1971
- default: I(() => [O(P(p("cancel-settings", "取消修改")), 1)]),
1971
+ default: F(() => [E(N(p("cancel-settings", "取消修改")), 1)]),
1972
1972
  _: 1
1973
- }, 8, ["disabled"])])) : T("v-if", !0)
1974
- ])])), X.value ? (M(), w(F(ke), {
1973
+ }, 8, ["disabled"])])) : C("v-if", !0)
1974
+ ])])), X.value ? (j(), S(P(Oe), {
1975
1975
  key: 2,
1976
1976
  title: p("rules", "编号规则"),
1977
1977
  kind: "relation"
1978
1978
  }, {
1979
- actions: I(() => [k(F(c), {
1979
+ actions: F(() => [D(P(c), {
1980
1980
  "icon-name": "plus",
1981
1981
  title: p("new-rule", "新增规则"),
1982
1982
  "aria-label": p("new-rule", "新增规则"),
1983
- disabled: !et.value || Z.value,
1983
+ disabled: !O.value || Z.value,
1984
1984
  onClick: hr
1985
1985
  }, null, 8, [
1986
1986
  "title",
1987
1987
  "aria-label",
1988
1988
  "disabled"
1989
1989
  ])]),
1990
- default: I(() => [k(F(Oe), {
1990
+ default: F(() => [D(P(De), {
1991
1991
  class: "code-config__rules-table",
1992
1992
  columns: qt.value,
1993
1993
  rows: Ut.value,
1994
1994
  density: "compact"
1995
1995
  }, {
1996
- cell: I(({ row: e, column: t }) => [t.fieldName === "title" ? (M(), w(F(x), {
1996
+ cell: F(({ row: e, column: t }) => [t.fieldName === "title" ? (j(), S(P(h), {
1997
1997
  key: 0,
1998
1998
  type: "link",
1999
1999
  class: "code-config__rule-name",
2000
2000
  disabled: Z.value,
2001
2001
  onClick: (t) => mr(e)
2002
2002
  }, {
2003
- default: I(() => [O(P(e.title), 1)]),
2003
+ default: F(() => [E(N(e.title), 1)]),
2004
2004
  _: 2
2005
- }, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (M(), E(Ke, { key: 1 }, [U.value && U.value.id === e.id ? (M(), w(F(y), {
2005
+ }, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (j(), w(Je, { key: 1 }, [H.value && H.value.id === e.id ? (j(), S(P(g), {
2006
2006
  key: 0,
2007
- value: U.value.orgScopeType,
2008
- "onUpdate:value": n[12] ||= (e) => U.value.orgScopeType = e,
2007
+ value: H.value.orgScopeType,
2008
+ "onUpdate:value": n[12] ||= (e) => H.value.orgScopeType = e,
2009
2009
  "aria-label": p("scope", "适用范围"),
2010
2010
  disabled: !Q.value,
2011
2011
  options: nr({
@@ -2017,21 +2017,21 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2017
2017
  "aria-label",
2018
2018
  "disabled",
2019
2019
  "options"
2020
- ])) : (M(), E("span", hn, P(e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : p("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (M(), E(Ke, { key: 2 }, [U.value && U.value.id === e.id && U.value.orgScopeType === "ORG" ? (M(), E("label", gn, [D("span", _n, P(p("organization", "适用组织")), 1), Ze.value ? (M(), w(F(be), {
2020
+ ])) : (j(), w("span", hn, N(e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : p("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (j(), w(Je, { key: 2 }, [H.value && H.value.id === e.id && H.value.orgScopeType === "ORG" ? (j(), w("label", gn, [T("span", _n, N(p("organization", "适用组织")), 1), $e.value ? (j(), S(P(xe), {
2021
2021
  key: 0,
2022
- value: U.value.orgScopeId ?? void 0,
2023
- context: Ze.value,
2022
+ value: H.value.orgScopeId ?? void 0,
2023
+ context: $e.value,
2024
2024
  mode: "tree",
2025
2025
  disabled: !Q.value,
2026
- "onUpdate:value": n[13] ||= (e) => U.value.orgScopeId = e
2026
+ "onUpdate:value": n[13] ||= (e) => H.value.orgScopeId = e
2027
2027
  }, null, 8, [
2028
2028
  "value",
2029
2029
  "context",
2030
2030
  "disabled"
2031
- ])) : (M(), E("span", vn, P(p("tenant-required", "请使用租户身份选择组织。")), 1))])) : (M(), E("span", yn, P((U.value && U.value.id === e.id ? U.value.orgScopeType : e.orgScopeType) === "GLOBAL" ? "—" : Kt(e)), 1))], 64)) : t.fieldName === "effectiveFrom" || t.fieldName === "effectiveTo" ? (M(), E(Ke, { key: 3 }, [U.value && U.value.id === e.id ? (M(), w(F(_), {
2031
+ ])) : (j(), w("span", vn, N(p("tenant-required", "请使用租户身份选择组织。")), 1))])) : (j(), w("span", yn, N((H.value && H.value.id === e.id ? H.value.orgScopeType : e.orgScopeType) === "GLOBAL" ? "—" : Kt(e)), 1))], 64)) : t.fieldName === "effectiveFrom" || t.fieldName === "effectiveTo" ? (j(), w(Je, { key: 3 }, [H.value && H.value.id === e.id ? (j(), S(P(y), {
2032
2032
  key: 0,
2033
- value: U.value[t.fieldName],
2034
- "onUpdate:value": (e) => U.value[t.fieldName] = e,
2033
+ value: H.value[t.fieldName],
2034
+ "onUpdate:value": (e) => H.value[t.fieldName] = e,
2035
2035
  "aria-label": t.title,
2036
2036
  type: "datetime-local",
2037
2037
  step: 60,
@@ -2041,83 +2041,83 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2041
2041
  "onUpdate:value",
2042
2042
  "aria-label",
2043
2043
  "disabled"
2044
- ])) : (M(), E("span", bn, P(F(a)(e[t.fieldName], {
2045
- language: F(u),
2044
+ ])) : (j(), w("span", bn, N(P(_e)(e[t.fieldName], {
2045
+ language: P(f),
2046
2046
  precision: "minute",
2047
2047
  emptyText: p("unlimited", "不限")
2048
- }).text), 1))], 64)) : t.fieldName === "actions" ? (M(), E("div", xn, [U.value && U.value.id === e.id ? (M(), E(Ke, { key: 0 }, [k(F(x), {
2048
+ }).text), 1))], 64)) : t.fieldName === "actions" ? (j(), w("div", xn, [H.value && H.value.id === e.id ? (j(), w(Je, { key: 0 }, [D(P(h), {
2049
2049
  type: "link",
2050
- disabled: !et.value || Z.value || !Jt.value,
2050
+ disabled: !O.value || Z.value || !Jt.value,
2051
2051
  onClick: Er
2052
2052
  }, {
2053
- default: I(() => [O(P(p("save", "保存")), 1)]),
2053
+ default: F(() => [E(N(p("save", "保存")), 1)]),
2054
2054
  _: 1
2055
- }, 8, ["disabled"]), k(F(x), {
2055
+ }, 8, ["disabled"]), D(P(h), {
2056
2056
  type: "link",
2057
2057
  disabled: Z.value,
2058
2058
  onClick: Tr
2059
2059
  }, {
2060
- default: I(() => [O(P(p("cancel-settings", "取消修改")), 1)]),
2060
+ default: F(() => [E(N(p("cancel-settings", "取消修改")), 1)]),
2061
2061
  _: 1
2062
- }, 8, ["disabled"])], 64)) : (M(), w(F(x), {
2062
+ }, 8, ["disabled"])], 64)) : (j(), S(P(h), {
2063
2063
  key: 1,
2064
2064
  type: "link",
2065
2065
  class: "code-config__edit-usage",
2066
2066
  "aria-label": p("edit-usage", "编辑适用配置") + ":" + e.title,
2067
- disabled: !et.value || Z.value,
2067
+ disabled: !O.value || Z.value,
2068
2068
  onClick: (t) => wr(e)
2069
2069
  }, {
2070
- default: I(() => [O(P(p("edit", "编辑")), 1)]),
2070
+ default: F(() => [E(N(p("edit", "编辑")), 1)]),
2071
2071
  _: 1
2072
2072
  }, 8, [
2073
2073
  "aria-label",
2074
2074
  "disabled",
2075
2075
  "onClick"
2076
- ]))])) : t.fieldName === "enabled" ? (M(), w(F(f), {
2076
+ ]))])) : t.fieldName === "enabled" ? (j(), S(P(se), {
2077
2077
  key: 5,
2078
- "aria-label": F(u).t("platform.code.config.rule-switch", "启用规则:{name}", { name: e.title }),
2078
+ "aria-label": P(f).t("platform.code.config.rule-switch", "启用规则:{name}", { name: e.title }),
2079
2079
  checked: e.enabled,
2080
- disabled: !et.value || Z.value || Xt.value || !!U.value || !e.enabled && !X.value.role && !nt.value,
2080
+ disabled: !O.value || Z.value || Xt.value || !!H.value || !e.enabled && !X.value.role && !rt.value,
2081
2081
  onChange: (t) => Cr(e, t)
2082
2082
  }, null, 8, [
2083
2083
  "aria-label",
2084
2084
  "checked",
2085
2085
  "disabled",
2086
2086
  "onChange"
2087
- ])) : T("v-if", !0)]),
2088
- empty: I(() => [O(P(p("no-rules", "暂无编号规则")), 1)]),
2087
+ ])) : C("v-if", !0)]),
2088
+ empty: F(() => [E(N(p("no-rules", "暂无编号规则")), 1)]),
2089
2089
  _: 1
2090
2090
  }, 8, ["columns", "rows"])]),
2091
2091
  _: 1
2092
- }, 8, ["title"])) : T("v-if", !0)], 64)) : T("v-if", !0)
2092
+ }, 8, ["title"])) : C("v-if", !0)], 64)) : C("v-if", !0)
2093
2093
  ])]),
2094
2094
  _: 1
2095
- }, 8, ["title", "refresh-disabled"])])) : T("v-if", !0) : (M(), w(F(l), {
2095
+ }, 8, ["title", "refresh-disabled"])])) : C("v-if", !0) : (j(), S(P(oe), {
2096
2096
  key: 0,
2097
2097
  description: p("select-tenant", "选择规则所属租户后,可维护该租户的编号规则。")
2098
2098
  }, null, 8, ["description"]))])
2099
2099
  ]),
2100
2100
  _: 1
2101
2101
  }, 8, ["explorer-count", "editing"]),
2102
- S.value ? (M(), w(F(te), {
2102
+ b.value ? (j(), S(P(l), {
2103
2103
  key: 3,
2104
- open: S.value,
2104
+ open: b.value,
2105
2105
  width: "wide",
2106
2106
  "before-close": fr,
2107
2107
  onClose: pr,
2108
2108
  class: "code-config__editor",
2109
- title: F(z)?.id ? p("rules", "编号规则") : p("create-rule-title", "新增编号规则"),
2109
+ title: P(R)?.id ? p("rules", "编号规则") : p("create-rule-title", "新增编号规则"),
2110
2110
  subtitle: [Y.value?.title, X.value?.title].filter(Boolean).join(" · ")
2111
- }, qe({
2112
- default: I(() => [
2113
- F(B) ? (M(), w(zt, {
2111
+ }, Ye({
2112
+ default: F(() => [
2113
+ P(z) ? (j(), S(zt, {
2114
2114
  key: 0,
2115
- rule: _t.value,
2115
+ rule: vt.value,
2116
2116
  target: Y.value,
2117
2117
  busy: Z.value,
2118
- resolved: vt.value,
2119
- feedback: K.value,
2120
- error: G.value,
2118
+ resolved: yt.value,
2119
+ feedback: G.value,
2120
+ error: W.value,
2121
2121
  onCheck: n[14] ||= (e) => br(),
2122
2122
  onAbandon: n[15] ||= (e) => br(!0),
2123
2123
  onAdopt: xr
@@ -2128,23 +2128,23 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2128
2128
  "resolved",
2129
2129
  "feedback",
2130
2130
  "error"
2131
- ])) : T("v-if", !0),
2132
- G.value || K.value ? (M(), E("div", {
2131
+ ])) : C("v-if", !0),
2132
+ W.value || G.value ? (j(), w("div", {
2133
2133
  key: 1,
2134
2134
  ref_key: "editorFeedback",
2135
- ref: Ot
2136
- }, [G.value ? (M(), w(F(ie), {
2135
+ ref: kt
2136
+ }, [W.value ? (j(), S(P(ee), {
2137
2137
  key: 0,
2138
2138
  title: p("request-failed", "操作未完成"),
2139
- message: G.value
2140
- }, null, 8, ["title", "message"])) : T("v-if", !0), K.value ? (M(), E("p", Sn, P(K.value), 1)) : T("v-if", !0)], 512)) : T("v-if", !0),
2141
- F(z) ? (M(), E("div", Cn, [D("div", { class: $e(["code-config__editor-grid", { "code-config__editor-grid--manual": F(z).mode === "MANUAL" }]) }, [D("div", wn, [
2142
- D("div", Tn, [D("label", En, [O(P(p("rule-title", "规则名称")), 1), k(F(_), {
2143
- value: F(z).title,
2144
- "onUpdate:value": n[16] ||= (e) => F(z).title = e,
2139
+ message: W.value
2140
+ }, null, 8, ["title", "message"])) : C("v-if", !0), G.value ? (j(), w("p", Sn, N(G.value), 1)) : C("v-if", !0)], 512)) : C("v-if", !0),
2141
+ P(R) ? (j(), w("div", Cn, [T("div", { class: tt(["code-config__editor-grid", { "code-config__editor-grid--manual": P(R).mode === "MANUAL" }]) }, [T("div", wn, [
2142
+ T("div", Tn, [T("label", En, [E(N(p("rule-title", "规则名称")), 1), D(P(y), {
2143
+ value: P(R).title,
2144
+ "onUpdate:value": n[16] ||= (e) => P(R).title = e,
2145
2145
  disabled: !Q.value
2146
- }, null, 8, ["value", "disabled"])]), D("label", Dn, [O(P(p("mode", "编号方式")), 1), k(F(y), {
2147
- value: F(z).mode,
2146
+ }, null, 8, ["value", "disabled"])]), T("label", Dn, [E(N(p("mode", "编号方式")), 1), D(P(g), {
2147
+ value: P(R).mode,
2148
2148
  disabled: !Q.value,
2149
2149
  options: nr({
2150
2150
  AUTO: "自动编号",
@@ -2157,10 +2157,10 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2157
2157
  "disabled",
2158
2158
  "options"
2159
2159
  ])])]),
2160
- F(z).mode === "MANUAL" ? (M(), E("p", On, P(p("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : T("v-if", !0),
2161
- ct(k(It, {
2162
- rule: F(z),
2163
- "onUpdate:rule": n[18] ||= (e) => Xe(z) ? z.value = e : null,
2160
+ P(R).mode === "MANUAL" ? (j(), w("p", On, N(p("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : C("v-if", !0),
2161
+ lt(D(It, {
2162
+ rule: P(R),
2163
+ "onUpdate:rule": n[18] ||= (e) => Qe(R) ? R.value = e : null,
2164
2164
  sources: Y.value?.sources ?? [],
2165
2165
  trigger: X.value?.trigger ?? J.value,
2166
2166
  editable: Q.value
@@ -2169,90 +2169,90 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2169
2169
  "sources",
2170
2170
  "trigger",
2171
2171
  "editable"
2172
- ]), [[ot, F(z).mode !== "MANUAL"]]),
2173
- (M(), E("details", {
2174
- key: F(z).id ?? "new",
2172
+ ]), [[st, P(R).mode !== "MANUAL"]]),
2173
+ (j(), w("details", {
2174
+ key: P(R).id ?? "new",
2175
2175
  class: "code-config__policy"
2176
- }, [D("summary", null, [O(P(p("numbering-policy", "编号策略")), 1), Vt.value ? (M(), E("span", kn, " · " + P(Vt.value), 1)) : T("v-if", !0)]), D("div", An, [Rt.value ? (M(), E("div", jn, [k(F(me), {
2177
- checked: F(z).linkedUpdate,
2178
- "onUpdate:checked": n[19] ||= (e) => F(z).linkedUpdate = e,
2176
+ }, [T("summary", null, [E(N(p("numbering-policy", "编号策略")), 1), Vt.value ? (j(), w("span", kn, " · " + N(Vt.value), 1)) : C("v-if", !0)]), T("div", An, [Rt.value ? (j(), w("div", jn, [D(P(ye), {
2177
+ checked: P(R).linkedUpdate,
2178
+ "onUpdate:checked": n[19] ||= (e) => P(R).linkedUpdate = e,
2179
2179
  disabled: !Q.value
2180
2180
  }, {
2181
- default: I(() => [O(P(p("linked", "修改编号来源后自动换号")), 1)]),
2181
+ default: F(() => [E(N(p("linked", "修改编号来源后自动换号")), 1)]),
2182
2182
  _: 1
2183
- }, 8, ["checked", "disabled"]), k(F(Ee), { label: p("linked-help-title", "自动换号说明") }, {
2184
- default: I(() => [D("p", null, P(p("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), D("p", null, P(p("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
2183
+ }, 8, ["checked", "disabled"]), D(P(fe), { label: p("linked-help-title", "自动换号说明") }, {
2184
+ default: F(() => [T("p", null, N(p("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), T("p", null, N(p("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
2185
2185
  _: 1
2186
- }, 8, ["label"])])) : T("v-if", !0), D("div", Mn, [k(F(me), {
2187
- checked: F(z).allowRecycle,
2188
- "onUpdate:checked": n[20] ||= (e) => F(z).allowRecycle = e,
2186
+ }, 8, ["label"])])) : C("v-if", !0), T("div", Mn, [D(P(ye), {
2187
+ checked: P(R).allowRecycle,
2188
+ "onUpdate:checked": n[20] ||= (e) => P(R).allowRecycle = e,
2189
2189
  disabled: !Q.value
2190
2190
  }, {
2191
- default: I(() => [O(P(p("recycle-short-label", "允许复用旧号")), 1)]),
2191
+ default: F(() => [E(N(p("recycle-short-label", "允许复用旧号")), 1)]),
2192
2192
  _: 1
2193
- }, 8, ["checked", "disabled"]), k(F(Ee), { label: p("recycle-help-title", "旧号复用说明") }, {
2194
- default: I(() => [D("p", null, P(p("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
2193
+ }, 8, ["checked", "disabled"]), D(P(fe), { label: p("recycle-help-title", "旧号复用说明") }, {
2194
+ default: F(() => [T("p", null, N(p("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
2195
2195
  _: 1
2196
2196
  }, 8, ["label"])])])]))
2197
- ]), F(z).mode === "MANUAL" ? T("v-if", !0) : (M(), E("aside", {
2197
+ ]), P(R).mode === "MANUAL" ? C("v-if", !0) : (j(), w("aside", {
2198
2198
  key: 0,
2199
2199
  class: "code-config__trial",
2200
2200
  "aria-label": p("trial", "草稿试算")
2201
2201
  }, [
2202
- k(F(Se), { title: p("trial", "草稿试算") }, null, 8, ["title"]),
2203
- D("p", Pn, P(p("auto-trial-short", "自动试算,不占号")), 1),
2204
- D("div", Fn, [D("div", In, [D("span", null, P(p("trial-result", "试算结果")), 1), k(F(x), {
2202
+ D(P(d), { title: p("trial", "草稿试算") }, null, 8, ["title"]),
2203
+ T("p", Pn, N(p("auto-trial-short", "自动试算,不占号")), 1),
2204
+ T("div", Fn, [T("div", In, [T("span", null, N(p("trial-result", "试算结果")), 1), D(P(h), {
2205
2205
  type: "text",
2206
2206
  "icon-name": "reload",
2207
2207
  "icon-only": "",
2208
2208
  size: "small",
2209
2209
  title: p("refresh-trial", "刷新试算"),
2210
2210
  "aria-label": p("refresh-trial", "刷新试算"),
2211
- disabled: !Qn.value || Ct.value,
2212
- loading: Ct.value,
2211
+ disabled: !Qn.value || wt.value,
2212
+ loading: wt.value,
2213
2213
  onClick: n[21] ||= (e) => Or(!0)
2214
2214
  }, null, 8, [
2215
2215
  "title",
2216
2216
  "aria-label",
2217
2217
  "disabled",
2218
2218
  "loading"
2219
- ])]), Et.value ? (M(), E("div", {
2219
+ ])]), Dt.value ? (j(), w("div", {
2220
2220
  key: 0,
2221
2221
  ref_key: "trialErrorElement",
2222
- ref: Dt,
2222
+ ref: Ot,
2223
2223
  tabindex: "-1",
2224
2224
  class: "code-config__trial-error"
2225
- }, [k(F(ie), {
2225
+ }, [D(P(ee), {
2226
2226
  title: p("trial-failed", "试算未完成"),
2227
- message: Et.value
2228
- }, null, 8, ["title", "message"])], 512)) : kt.value ? (M(), E("output", {
2227
+ message: Dt.value
2228
+ }, null, 8, ["title", "message"])], 512)) : At.value ? (j(), w("output", {
2229
2229
  key: 1,
2230
2230
  ref_key: "previewElement",
2231
- ref: At,
2231
+ ref: jt,
2232
2232
  "aria-label": p("trial-result", "试算结果")
2233
- }, [D("strong", null, P(kt.value.value), 1)], 8, Ln)) : (M(), E("p", Rn, P(wt.value || Ct.value ? p("trial-updating", "正在更新…") : p("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
2234
- qn.value.length ? (M(), E("details", zn, [D("summary", null, P(p("trial-extra-short", "补充试算来源")), 1), D("label", Bn, [D("span", Vn, P(p("trial-extra-short", "补充试算来源")), 1), k(F(y), {
2235
- value: Tt.value,
2236
- "onUpdate:value": n[22] ||= (e) => Tt.value = e,
2233
+ }, [T("strong", null, N(At.value.value), 1)], 8, Ln)) : (j(), w("p", Rn, N(Tt.value || wt.value ? p("trial-updating", "正在更新…") : p("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
2234
+ qn.value.length ? (j(), w("details", zn, [T("summary", null, N(p("trial-extra-short", "补充试算来源")), 1), T("label", Bn, [T("span", Vn, N(p("trial-extra-short", "补充试算来源")), 1), D(P(g), {
2235
+ value: Et.value,
2236
+ "onUpdate:value": n[22] ||= (e) => Et.value = e,
2237
2237
  mode: "multiple",
2238
2238
  "show-search": "",
2239
2239
  disabled: Z.value,
2240
2240
  options: qn.value.map((e) => ({
2241
2241
  value: e.fieldName,
2242
- label: F(Ie)(e, F(u))
2242
+ label: P(Re)(e, P(f))
2243
2243
  }))
2244
2244
  }, null, 8, [
2245
2245
  "value",
2246
2246
  "disabled",
2247
2247
  "options"
2248
- ])])])) : T("v-if", !0),
2249
- D("div", Hn, [(M(!0), E(Ke, null, rt(Jn.value, (e) => (M(), E("label", {
2248
+ ])])])) : C("v-if", !0),
2249
+ T("div", Hn, [(j(!0), w(Je, null, it(Jn.value, (e) => (j(), w("label", {
2250
2250
  class: "code-config__field",
2251
2251
  key: e.fieldName
2252
- }, [O(P(F(Ie)(e, F(u))), 1), F(ze)(e) === "boolean" ? (M(), w(F(y), {
2252
+ }, [E(N(P(Re)(e, P(f))), 1), P(Ve)(e) === "boolean" ? (j(), S(P(g), {
2253
2253
  key: 0,
2254
- value: jt.value[e.fieldName],
2255
- "onUpdate:value": (t) => jt.value[e.fieldName] = t,
2254
+ value: K.value[e.fieldName],
2255
+ "onUpdate:value": (t) => K.value[e.fieldName] = t,
2256
2256
  "allow-clear": "",
2257
2257
  disabled: Z.value,
2258
2258
  options: [{
@@ -2267,12 +2267,12 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2267
2267
  "onUpdate:value",
2268
2268
  "disabled",
2269
2269
  "options"
2270
- ])) : (M(), w(F(_), {
2270
+ ])) : (j(), S(P(y), {
2271
2271
  key: 1,
2272
- value: jt.value[e.fieldName],
2273
- "onUpdate:value": (t) => jt.value[e.fieldName] = t,
2274
- step: F(ze)(e) === "number" ? "any" : void 0,
2275
- type: F(ze)(e) === "datetime" ? "datetime-local" : F(ze)(e) === "number" ? "number" : F(ze)(e) === "date" ? "date" : "text",
2272
+ value: K.value[e.fieldName],
2273
+ "onUpdate:value": (t) => K.value[e.fieldName] = t,
2274
+ step: P(Ve)(e) === "number" ? "any" : void 0,
2275
+ type: P(Ve)(e) === "datetime" ? "datetime-local" : P(Ve)(e) === "number" ? "number" : P(Ve)(e) === "date" ? "date" : "text",
2276
2276
  disabled: Z.value
2277
2277
  }, null, 8, [
2278
2278
  "value",
@@ -2280,44 +2280,44 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2280
2280
  "step",
2281
2281
  "type",
2282
2282
  "disabled"
2283
- ]))]))), 128)), F(z).sequencePolicy ? (M(), E("label", Un, [O(P(p("trial-sequence", "试算流水值")), 1), k(F(_), {
2283
+ ]))]))), 128)), P(R).sequencePolicy ? (j(), w("label", Un, [E(N(p("trial-sequence", "试算流水值")), 1), D(P(y), {
2284
2284
  value: Mt.value,
2285
2285
  "onUpdate:value": n[23] ||= (e) => Mt.value = e,
2286
2286
  type: "number",
2287
- placeholder: String(F(z).sequencePolicy?.startValue ?? 1),
2287
+ placeholder: String(P(R).sequencePolicy?.startValue ?? 1),
2288
2288
  disabled: Z.value
2289
2289
  }, null, 8, [
2290
2290
  "value",
2291
2291
  "placeholder",
2292
2292
  "disabled"
2293
- ])])) : T("v-if", !0)]),
2294
- kt.value?.segments.length ? (M(), E("p", Wn, P(p("segment-results", "片段结果(不含分隔符)")), 1)) : T("v-if", !0),
2295
- kt.value?.segments.length ? (M(), E("ol", {
2293
+ ])])) : C("v-if", !0)]),
2294
+ At.value?.segments.length ? (j(), w("p", Wn, N(p("segment-results", "片段结果(不含分隔符)")), 1)) : C("v-if", !0),
2295
+ At.value?.segments.length ? (j(), w("ol", {
2296
2296
  key: 2,
2297
2297
  class: "code-config__preview-segments",
2298
2298
  "aria-label": p("segment-results", "片段结果(不含分隔符)")
2299
- }, [(M(!0), E(Ke, null, rt(kt.value.segments, (e, t) => (M(), E("li", { key: t }, [D("span", null, P(p(`segment.${e.segmentType}`, e.segmentType)), 1), D("code", null, P(e.value), 1)]))), 128))], 8, Gn)) : T("v-if", !0)
2300
- ], 8, Nn))], 2)])) : (M(), w(F(l), {
2299
+ }, [(j(!0), w(Je, null, it(At.value.segments, (e, t) => (j(), w("li", { key: t }, [T("span", null, N(p(`segment.${e.segmentType}`, e.segmentType)), 1), T("code", null, N(e.value), 1)]))), 128))], 8, Gn)) : C("v-if", !0)
2300
+ ], 8, Nn))], 2)])) : (j(), S(P(oe), {
2301
2301
  key: 2,
2302
2302
  description: p("choose-rule", "选择或新增编号规则。")
2303
2303
  }, null, 8, ["description"]))
2304
2304
  ]),
2305
2305
  _: 2
2306
- }, [F(z) ? {
2306
+ }, [P(R) ? {
2307
2307
  name: "header-actions",
2308
- fn: I(() => [k(F(x), {
2309
- disabled: Z.value || F(B),
2308
+ fn: F(() => [D(P(h), {
2309
+ disabled: Z.value || P(z),
2310
2310
  onClick: pr
2311
2311
  }, {
2312
- default: I(() => [O(P(p("cancel", "取消修改")), 1)]),
2312
+ default: F(() => [E(N(p("cancel", "取消修改")), 1)]),
2313
2313
  _: 1
2314
- }, 8, ["disabled"]), k(F(x), {
2314
+ }, 8, ["disabled"]), D(P(h), {
2315
2315
  type: "primary",
2316
2316
  disabled: !Q.value || Yt.value,
2317
- loading: W.value,
2317
+ loading: U.value,
2318
2318
  onClick: Sr
2319
2319
  }, {
2320
- default: I(() => [O(P(p("save-rule", "保存规则")), 1)]),
2320
+ default: F(() => [E(N(p("save-rule", "保存规则")), 1)]),
2321
2321
  _: 1
2322
2322
  }, 8, ["disabled", "loading"])]),
2323
2323
  key: "0"
@@ -2325,9 +2325,9 @@ var Ht = ["aria-label"], Ut = { class: "module-runtime-activation__summary" }, W
2325
2325
  "open",
2326
2326
  "title",
2327
2327
  "subtitle"
2328
- ])) : T("v-if", !0)
2328
+ ])) : C("v-if", !0)
2329
2329
  ]));
2330
2330
  }
2331
- }), qn = /* @__PURE__ */ e({ default: () => Jn }), Jn = /*#__PURE__*/ g(Kn, [["__scopeId", "data-v-ebfc847c"]]);
2331
+ }), qn = /* @__PURE__ */ e({ default: () => Jn }), Jn = /*#__PURE__*/ Me(Kn, [["__scopeId", "data-v-ebfc847c"]]);
2332
2332
  //#endregion
2333
2333
  export { Bt as i, qn as n, Zt as r, Jn as t };