@ximatai/muyun-web-app 0.26.17 → 0.26.19

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 (87) hide show
  1. package/dist/{BusinessActivityLogView-9RrW-RKb.js → BusinessActivityLogView-DudCmeKP.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-DYVx9tiQ.js → BusinessLogListDrawer-CVUvUG48.js} +193 -193
  3. package/dist/CodeConfigurationView-ZjVgaZkD.js +1667 -0
  4. package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-Dl757QMl.js} +38 -38
  5. package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-Cj3PMvN5.js} +2 -2
  6. package/dist/ModuleActionManagementView-BuhQrVA3.js +755 -0
  7. package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-C3RxdgQN.js} +3736 -3880
  8. package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-tmjMOeLE.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-OhpBChaT.js +1435 -0
  10. package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-BkkgHcF0.js} +69 -69
  11. package/dist/WorkflowAdministrationView-DOhA_5-M.js +650 -0
  12. package/dist/WorkflowConfigurationView-Bnjdrkdx.js +980 -0
  13. package/dist/{WorkflowWorkbenchView-DGpNDt5V.js → WorkflowWorkbenchView-Cf6yiofx.js} +263 -263
  14. package/dist/codeConfiguration-DERwCY-U.js +208 -0
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +472 -471
  17. package/dist/moduleMenuWorkspace-DPmYGkS_.js +626 -0
  18. package/dist/platform-components-wRXbnwMr.js +30434 -0
  19. package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-Cm_0kmTT.js} +5570 -5592
  20. package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
  21. package/dist/types/app/executeBusinessNotificationRecordAction.d.ts +7 -0
  22. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
  23. package/dist/types/consumer/index.d.ts +2 -1
  24. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
  25. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +1 -0
  26. package/dist/types/dynamic-page-runtime/modulePageEnhancementState.d.ts +5 -0
  27. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +6 -2
  28. package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
  29. package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
  30. package/dist/types/platform-admin-runtime/workflow/ModuleWorkflowDrawer.vue.d.ts +7 -0
  31. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +5 -3
  32. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +5 -0
  33. package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +28 -0
  34. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
  35. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +4 -0
  36. package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
  37. package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
  38. package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +2 -0
  39. package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +2 -6
  40. package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +32 -1
  41. package/dist/types/platform-components/formulaExpressionTokens.d.ts +2 -0
  42. package/dist/types/platform-components/formulaExpressionTools.d.ts +6 -0
  43. package/dist/types/platform-components/index.d.ts +5 -0
  44. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
  45. package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
  46. package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
  47. package/dist/types/platform-components/useWorkflowDesignHistory.d.ts +14 -0
  48. package/dist/types/platform-components/useWorkspaceDetailSurface.d.ts +3 -0
  49. package/dist/types/platform-components/workflowDesignClipboard.d.ts +7 -0
  50. package/dist/types/platform-components/workflowPresentation.d.ts +4 -0
  51. package/dist/types/platform-workbench/Workbench.vue.d.ts +6 -2
  52. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
  53. package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
  54. package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
  55. package/dist/types/views/WorkflowConfigurationView.vue.d.ts +1 -0
  56. package/dist/types/views/WorkflowDefinitionSettings.vue.d.ts +35 -0
  57. package/dist/types/views/WorkflowSelectionFields.vue.d.ts +2 -4
  58. package/dist/types/views/codeConfiguration.d.ts +127 -0
  59. package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
  60. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
  61. package/dist/types/views/useWorkflowConfigurationContext.d.ts +49 -0
  62. package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +2 -0
  63. package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
  64. package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
  65. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  66. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
  67. package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +4 -0
  68. package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +5 -0
  69. package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
  70. package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
  71. package/dist/types/vue-ui-antdv/index.d.ts +4 -0
  72. package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
  73. package/dist/types/vue-ui-antdv/overlayLayers.d.ts +5 -0
  74. package/dist/types/vue-ui-antdv/types.d.ts +2 -0
  75. package/dist/types/web-contracts/index.d.ts +18 -0
  76. package/dist/types/web-contracts/workflow.d.ts +16 -8
  77. package/dist/types/web-core/businessNotifications.d.ts +3 -1
  78. package/dist/types/web-core/workflow.d.ts +13 -1
  79. package/dist/useWorkflowConfigurationContext-BE_UjKgk.js +66 -0
  80. package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-D37OpJ7g.js} +1608 -884
  81. package/package.json +4 -1
  82. package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
  83. package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
  84. package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
  85. package/dist/WorkflowConfigurationView-A0m5tBX9.js +0 -1097
  86. package/dist/moduleGovernanceWorkspaceView-DNKzYX0x.js +0 -667
  87. package/dist/platform-components-BBfyINHa.js +0 -29912
@@ -1,5 +1,5 @@
1
- import { D as e, _ as t, a as n, y as r } from "./platform-workbench-C1hmkOUD.js";
2
- import { Ar as ee, Dr as te, Fa as ne, Ft as re, Gn as ie, Jn as i, Nr as ae, Ot as a, Q as o, Un as oe, Wn as se, Xn as ce, Yt as s, _n as le, an as c, at as ue, bn as de, d as fe, f as pe, gr as me, ja as he, jt as ge, la as _e, lt as ve, mr as ye, pa as be, s as xe, u as l, vn as Se } from "./platform-components-BBfyINHa.js";
1
+ import { D as e, _ as t, a as n, y as r } from "./platform-workbench-Cm_0kmTT.js";
2
+ import { $n as i, Cn as ee, Cr as te, Ft as ne, Ha as re, Hr as ie, Ir as a, Ka as o, Mt as ae, Sn as oe, Tn as se, Tr as ce, Xn as le, ar as ue, ba as de, en as s, er as fe, h as pe, lt as me, m as he, nt as ge, p as _e, pt as ve, rr as c, u as ye, un as l, wa as be, zr as xe, zt as Se } from "./platform-components-wRXbnwMr.js";
3
3
  import { Fragment as Ce, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as we, openBlock as v, ref as y, renderList as Te, shallowRef as Ee, toDisplayString as b, unref as x, watch as De, withCtx as S } from "vue";
4
4
  //#region src/views/WorkflowWorkbenchView.vue?vue&type=script&setup=true&lang.ts
5
5
  var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields" }, Ae = {
@@ -11,28 +11,28 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
11
11
  }, Ne = { class: "workflow-field" }, Pe = { class: "date-filters" }, Fe = { class: "workflow-field" }, Ie = { class: "workflow-field" }, Le = { class: "workflow-query-controls" }, Re = { key: 0 }, ze = { class: "policy-form" }, Be = { class: "workflow-field" }, Ve = { class: "workflow-field" }, He = { class: "workflow-field" }, Ue = {
12
12
  key: 0,
13
13
  class: "workflow-field"
14
- }, C = /*#__PURE__*/ ce(/* @__PURE__ */ _({
14
+ }, C = /*#__PURE__*/ ue(/* @__PURE__ */ _({
15
15
  name: "WorkflowWorkbenchView",
16
16
  __name: "WorkflowWorkbenchView",
17
- setup(ce) {
18
- let _ = he();
17
+ setup(ue) {
18
+ let _ = re();
19
19
  function C(e) {
20
- return fe(e, _);
20
+ return he(e, _);
21
21
  }
22
- let We = ee(), w = r(), Ge = n(), T = y(w?.value?.system && typeof Ge.query.tenantId == "string" ? Ge.query.tenantId : void 0), E = u(() => T.value ? ne(We.http, { "X-MuYun-Tenant-Id": T.value }) : We.http), Ke = u(() => pe(E.value)), D = u(() => me(E.value)), qe = te({
22
+ let We = xe(), w = r(), Ge = n(), T = y(w?.value?.system && typeof Ge.query.tenantId == "string" ? Ge.query.tenantId : void 0), E = u(() => T.value ? o(We.http, { "X-MuYun-Tenant-Id": T.value }) : We.http), Ke = u(() => pe(E.value)), qe = u(() => ce(E.value)), Je = a({
23
23
  http: We.http,
24
24
  language: _,
25
25
  moduleAlias: "iam.tenant",
26
26
  runtimeAccess: "REFERENCE"
27
- }), Je = u(() => !w?.value?.system || !!T.value), Ye = u(() => te({
27
+ }), Ye = u(() => !w?.value?.system || !!T.value), Xe = u(() => a({
28
28
  http: E.value,
29
29
  language: _,
30
30
  moduleAlias: "iam.user",
31
31
  runtimeAccess: "VIEW"
32
- })), O = y("todo"), k = y(1), A = y(30), Xe = y(0), Ze = y(0), j = y([]), M = y(), N = y(!1), P = y(""), F = y(""), I = y({}), L = y({}), R = y({}), Qe = u(() => ({
33
- ...R.value,
34
- ...Object.fromEntries(Object.entries(L.value).map(([e, t]) => [e, be(t.title, t.titleText, _)]))
35
- })), z = y({}), B = y(""), V = y(""), H = y(!1), $e = y(), et = u(() => [
32
+ })), D = y("todo"), O = y(1), k = y(30), Ze = y(0), Qe = y(0), A = y([]), j = y(), M = y(!1), $e = y(""), N = y(""), P = y({}), F = y({}), I = y({}), et = u(() => ({
33
+ ...I.value,
34
+ ...Object.fromEntries(Object.entries(F.value).map(([e, t]) => [e, be(t.title, t.titleText, _)]))
35
+ })), L = y({}), R = y(""), z = y(""), B = y(!1), tt = y(), nt = u(() => [
36
36
  {
37
37
  key: "todo",
38
38
  title: _.t("platform.screen.WorkflowWorkbenchView.my-pending-tasks", "待我办理")
@@ -55,28 +55,28 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
55
55
  }
56
56
  ].map((e) => ({
57
57
  ...e,
58
- title: e.title + (z.value[e.key] == null ? "" : ` (${z.value[e.key]})`)
59
- }))), tt = u(() => Object.entries(Qe.value).map(([e, t]) => ({
58
+ title: e.title + (L.value[e.key] == null ? "" : ` (${L.value[e.key]})`)
59
+ }))), rt = u(() => Object.entries(et.value).map(([e, t]) => ({
60
60
  value: e,
61
61
  label: t
62
62
  })));
63
- function nt(e, t) {
63
+ function it(e, t) {
64
64
  if (e.business?.readable === !1) return _.t("platform.screen.WorkflowWorkbenchView.restricted-business-record", "受限业务记录");
65
65
  let n = typeof t == "string" ? t : e.business?.title;
66
- return n == null ? _.t("platform.screen.WorkflowWorkbenchView.untitled-business-record", "未命名业务") : _e(n, e.business?.titleContentText, _) ?? n;
66
+ return n == null ? _.t("platform.screen.WorkflowWorkbenchView.untitled-business-record", "未命名业务") : de(n, e.business?.titleContentText, _) ?? n;
67
67
  }
68
- let rt = u(() => j.value.map((e) => ({
68
+ let at = u(() => A.value.map((e) => ({
69
69
  ...e,
70
70
  id: e.taskId ?? e.instanceId,
71
71
  nodeTitle: be(e.nodeTitle ?? "", e.nodeTitleText, _),
72
- title: nt(e),
73
- moduleTitle: e.business?.moduleTitle == null ? Qe.value[e.moduleAlias] ?? _.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块") : be(e.business.moduleTitle, e.business.moduleTitleText, _),
72
+ title: it(e),
73
+ moduleTitle: e.business?.moduleTitle == null ? et.value[e.moduleAlias] ?? _.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块") : be(e.business.moduleTitle, e.business.moduleTitleText, _),
74
74
  status: C(e.taskStatus ?? e.instanceStatus),
75
- received: st(e.receivedAt),
76
- completed: st(e.completedAt),
75
+ received: lt(e.receivedAt),
76
+ completed: lt(e.completedAt),
77
77
  assignees: e.currentAssigneeTitles.join("、"),
78
78
  urgency: C(e.overtimeStatus)
79
- }))), it = u(() => [
79
+ }))), ot = u(() => [
80
80
  {
81
81
  key: "title",
82
82
  title: _.t("platform.screen.WorkflowWorkbenchView.business-item", "业务事项"),
@@ -119,7 +119,7 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
119
119
  dataIndex: "received",
120
120
  width: 170
121
121
  },
122
- ...O.value === "done" ? [{
122
+ ...D.value === "done" ? [{
123
123
  key: "completed",
124
124
  title: _.t("platform.screen.WorkflowWorkbenchView.processed-at", "办理时间"),
125
125
  dataIndex: "completed",
@@ -130,181 +130,181 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
130
130
  dataIndex: "urgency",
131
131
  width: 90
132
132
  }]
133
- ]), U = Ee();
134
- De([() => M.value?.moduleAlias, E], ([e, t]) => {
135
- U.value = e ? te({
133
+ ]), V = Ee();
134
+ De([() => j.value?.moduleAlias, E], ([e, t]) => {
135
+ V.value = e ? a({
136
136
  http: t,
137
137
  language: _,
138
138
  moduleAlias: e,
139
139
  runtimeAccess: "VIEW"
140
140
  }) : void 0;
141
141
  }, { immediate: !0 });
142
- let W = y(), at = y(/* @__PURE__ */ new Map()), G = y(!1), K = y(""), ot = u(() => {
143
- let e = U.value ? a(ae(U.value.runtime)?.uiDescriptor) : void 0;
144
- return new Map([...at.value].map(([t, n]) => [t, e?.get(t) ?? n]));
142
+ let H = y(), st = y(/* @__PURE__ */ new Map()), U = y(!1), W = y(""), ct = u(() => {
143
+ let e = V.value ? ae(ie(V.value.runtime)?.uiDescriptor) : void 0;
144
+ return new Map([...st.value].map(([t, n]) => [t, e?.get(t) ?? n]));
145
145
  });
146
- function st(e) {
146
+ function lt(e) {
147
147
  return e ? new Date(e).toLocaleString("zh-CN", { hour12: !1 }) : "—";
148
148
  }
149
- function ct(e) {
149
+ function G(e) {
150
150
  return e.title || e.username || e.id || "";
151
151
  }
152
- let q = 0, lt = 0, ut = 0;
152
+ let K = 0, ut = 0, dt = 0;
153
153
  e(async (e) => {
154
- let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = j.value.some((e) => t.has(e.moduleAlias)), r = Object.keys(L.value).some((e) => t.has(e));
154
+ let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = A.value.some((e) => t.has(e.moduleAlias)), r = Object.keys(F.value).some((e) => t.has(e));
155
155
  if (!n && !r) return;
156
- let ee = ++ut, te = q, ne = T.value, re = w?.value?.userId, ie = U.value;
156
+ let i = ++dt, ee = K, te = T.value, ne = w?.value?.userId, re = V.value;
157
157
  try {
158
158
  let [e, r] = await Promise.all([
159
- n ? D.value.workbenchPage(O.value, k.value, I.value, F.value, A.value) : void 0,
160
- D.value.workbenchModules(),
161
- ie && t.has(ie.moduleAlias) ? ie.runtime.refreshTexts?.() : void 0
159
+ n ? qe.value.workbenchPage(D.value, O.value, P.value, N.value, k.value) : void 0,
160
+ qe.value.workbenchModules(),
161
+ re && t.has(re.moduleAlias) ? re.runtime.refreshTexts?.() : void 0
162
162
  ]);
163
- if (ee !== ut || q !== te || T.value !== ne || w?.value?.userId !== re) return;
164
- let i = (t) => e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId)?.nodeTitleText, ae = {
163
+ if (i !== dt || K !== ee || T.value !== te || w?.value?.userId !== ne) return;
164
+ let ie = (t) => e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId)?.nodeTitleText, a = {
165
165
  ...r.modules,
166
166
  ...e?.navigation?.moduleTitles?.modules
167
- }, a = { ...L.value };
168
- for (let [e, t] of Object.entries(a)) {
169
- let n = ae[e]?.titleText;
170
- l(t.titleText, n) && (a[e] = {
167
+ }, o = { ...F.value };
168
+ for (let [e, t] of Object.entries(o)) {
169
+ let n = a[e]?.titleText;
170
+ _e(t.titleText, n) && (o[e] = {
171
171
  ...t,
172
172
  titleText: n
173
173
  });
174
174
  }
175
- L.value = a;
176
- let o = (t) => {
177
- let n = e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId), r = n?.business?.moduleTitleText ?? ae[t.moduleAlias]?.titleText;
175
+ F.value = o;
176
+ let ae = (t) => {
177
+ let n = e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId), r = n?.business?.moduleTitleText ?? a[t.moduleAlias]?.titleText;
178
178
  return {
179
179
  ...t,
180
- ...l(t.nodeTitleText, n?.nodeTitleText) ? { nodeTitleText: n?.nodeTitleText } : {},
181
- business: t.business && l(t.business.moduleTitleText, r) ? {
180
+ ..._e(t.nodeTitleText, n?.nodeTitleText) ? { nodeTitleText: n?.nodeTitleText } : {},
181
+ business: t.business && _e(t.business.moduleTitleText, r) ? {
182
182
  ...t.business,
183
183
  moduleTitleText: r
184
184
  } : t.business
185
185
  };
186
186
  };
187
- if (j.value = j.value.map(o), M.value) {
188
- let e = i(M.value);
189
- l(M.value.nodeTitleText, e) && (M.value.nodeTitleText = e);
190
- let t = o(M.value);
191
- t.business && (M.value.business = t.business);
187
+ if (A.value = A.value.map(ae), j.value) {
188
+ let e = ie(j.value);
189
+ _e(j.value.nodeTitleText, e) && (j.value.nodeTitleText = e);
190
+ let t = ae(j.value);
191
+ t.business && (j.value.business = t.business);
192
192
  }
193
193
  } catch (e) {
194
- c(e, {
194
+ l(e, {
195
195
  source: "workflow-text-resources",
196
196
  phase: "load"
197
197
  });
198
198
  }
199
199
  });
200
- async function dt() {
201
- let e = ++q;
202
- N.value = !0, P.value = "";
200
+ async function ft() {
201
+ let e = ++K;
202
+ M.value = !0, $e.value = "";
203
203
  try {
204
- let t = await D.value.workbenchPage(O.value, k.value, I.value, F.value, A.value);
205
- if (e !== q) return;
206
- j.value = t.records, Xe.value = t.total, Ze.value = t.pages, R.value = {
207
- ...R.value,
204
+ let t = await qe.value.workbenchPage(D.value, O.value, P.value, N.value, k.value);
205
+ if (e !== K) return;
206
+ A.value = t.records, Ze.value = t.total, Qe.value = t.pages, I.value = {
207
+ ...I.value,
208
208
  ...t.navigation?.modules
209
- }, L.value = {
210
- ...L.value,
209
+ }, F.value = {
210
+ ...F.value,
211
211
  ...t.navigation?.moduleTitles?.modules
212
- }, z.value[O.value] = t.total;
212
+ }, L.value[D.value] = t.total;
213
213
  } catch (t) {
214
- e === q && (j.value = [], Xe.value = 0, Ze.value = 0, delete z.value[O.value], P.value = _.t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks-retry", "任务加载失败,请重试。"), c(t, {
214
+ e === K && (A.value = [], Ze.value = 0, Qe.value = 0, delete L.value[D.value], $e.value = _.t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks-retry", "任务加载失败,请重试。"), l(t, {
215
215
  source: "workflow-workbench",
216
216
  phase: "load"
217
217
  }));
218
218
  } finally {
219
- e === q && (N.value = !1);
219
+ e === K && (M.value = !1);
220
220
  }
221
221
  }
222
- async function ft() {
223
- let e = ++lt, t = M.value, n = U.value;
224
- if (W.value = void 0, K.value = "", G.value = !1, t && n) {
222
+ async function pt() {
223
+ let e = ++ut, t = j.value, n = V.value;
224
+ if (H.value = void 0, W.value = "", U.value = !1, t && n) {
225
225
  if (t.business?.readable === !1) {
226
- K.value = _.t("platform.screen.WorkflowWorkbenchView.you-can-view-the-task-status-but", "你可以查看任务状态,但尚无该业务记录的读取权限。请联系业务管理员。");
226
+ W.value = _.t("platform.screen.WorkflowWorkbenchView.you-can-view-the-task-status-but", "你可以查看任务状态,但尚无该业务记录的读取权限。请联系业务管理员。");
227
227
  return;
228
228
  }
229
- G.value = !0;
229
+ U.value = !0;
230
230
  try {
231
- let r = await n.runtime.ready, ee = await n.crud.view(t.recordId);
232
- if (e !== lt) return;
233
- at.value = a(r.uiDescriptor), W.value = ee;
231
+ let r = await n.runtime.ready, i = await n.crud.view(t.recordId);
232
+ if (e !== ut) return;
233
+ st.value = ae(r.uiDescriptor), H.value = i;
234
234
  } catch (t) {
235
- e === lt && (K.value = _.t("platform.screen.WorkflowWorkbenchView.unable-to-load-business-details-retry-or", "业务详情加载失败,请重试或检查业务读取权限。"), c(t, {
235
+ e === ut && (W.value = _.t("platform.screen.WorkflowWorkbenchView.unable-to-load-business-details-retry-or", "业务详情加载失败,请重试或检查业务读取权限。"), l(t, {
236
236
  source: "workflow-workbench",
237
237
  phase: "load"
238
238
  }));
239
239
  } finally {
240
- e === lt && (G.value = !1);
240
+ e === ut && (U.value = !1);
241
241
  }
242
242
  }
243
243
  }
244
- De([M, T], () => void ft()), De([
244
+ De([j, T], () => void pt()), De([
245
+ D,
245
246
  O,
246
247
  k,
247
- A,
248
248
  T
249
- ], () => void dt(), { immediate: !0 }), De(T, () => {
250
- M.value = void 0, I.value = {}, F.value = "", B.value = "", V.value = "", R.value = {}, L.value = {}, z.value = {}, k.value = 1, ++Q, J.value = !1, Y.value = !1, vt.value = [], St();
249
+ ], () => void ft(), { immediate: !0 }), De(T, () => {
250
+ j.value = void 0, P.value = {}, N.value = "", R.value = "", z.value = "", I.value = {}, F.value = {}, L.value = {}, O.value = 1, ++Z, q.value = !1, J.value = !1, yt.value = [], $();
251
251
  }, { flush: "sync" });
252
- async function pt() {
253
- return !H.value || await $e.value?.mayLeave() === !0;
254
- }
255
252
  async function mt() {
256
- await pt() && (M.value = void 0);
253
+ return !B.value || await tt.value?.mayLeave() === !0;
257
254
  }
258
- function ht() {
259
- H.value || (I.value.receivedFrom = B.value ? (/* @__PURE__ */ new Date(`${B.value}T00:00:00`)).toISOString() : void 0, I.value.receivedTo = V.value ? new Date((/* @__PURE__ */ new Date(`${V.value}T00:00:00`)).setDate((/* @__PURE__ */ new Date(`${V.value}T00:00:00`)).getDate() + 1)).toISOString() : void 0, k.value === 1 ? dt() : k.value = 1);
255
+ async function ht() {
256
+ await mt() && (j.value = void 0);
260
257
  }
261
258
  function gt() {
262
- F.value = "", I.value = {}, B.value = "", V.value = "", ht();
259
+ B.value || (P.value.receivedFrom = R.value ? (/* @__PURE__ */ new Date(`${R.value}T00:00:00`)).toISOString() : void 0, P.value.receivedTo = z.value ? new Date((/* @__PURE__ */ new Date(`${z.value}T00:00:00`)).setDate((/* @__PURE__ */ new Date(`${z.value}T00:00:00`)).getDate() + 1)).toISOString() : void 0, O.value === 1 ? ft() : O.value = 1);
260
+ }
261
+ function _t() {
262
+ N.value = "", P.value = {}, R.value = "", z.value = "", gt();
263
263
  }
264
- async function _t() {
265
- H.value = !1, M.value && t(M.value.moduleAlias), await dt(), await ft();
264
+ async function vt() {
265
+ B.value = !1, j.value && t(j.value.moduleAlias), await ft(), await pt();
266
266
  }
267
- let vt = y([]), J = y(!1), Y = y(!1), X = y(""), Z = y({
267
+ let yt = y([]), q = y(!1), J = y(!1), Y = y(""), X = y({
268
268
  title: _.t("platform.workflow.delegation.default-title", "审批代办"),
269
269
  moduleScopeType: "all",
270
270
  moduleAliases: [],
271
271
  principalCanProcess: !1
272
- }), yt = y(""), bt = u(() => J.value && JSON.stringify(Z.value) !== yt.value);
273
- ye(() => _.t("platform.unsaved-source.WorkflowWorkbenchView", "个人委托"), () => bt.value, () => Y.value);
274
- let Q = 0;
275
- function $(e, t) {
276
- return e === Q && t === T.value && J.value;
272
+ }), bt = y(""), xt = u(() => q.value && JSON.stringify(X.value) !== bt.value);
273
+ te(() => _.t("platform.unsaved-source.WorkflowWorkbenchView", "个人委托"), () => xt.value, () => J.value);
274
+ let Z = 0;
275
+ function Q(e, t) {
276
+ return e === Z && t === T.value && q.value;
277
277
  }
278
- async function xt() {
279
- if (Y.value || J.value || !Je.value) return;
280
- let e = ++Q, t = T.value, n = D.value;
281
- J.value = !0, Y.value = !0, vt.value = [], St();
278
+ async function St() {
279
+ if (J.value || q.value || !Ye.value) return;
280
+ let e = ++Z, t = T.value, n = qe.value;
281
+ q.value = !0, J.value = !0, yt.value = [], $();
282
282
  try {
283
283
  let r = await n.workbenchModules();
284
- if (!$(e, t)) return;
285
- L.value = {
286
- ...L.value,
284
+ if (!Q(e, t)) return;
285
+ F.value = {
286
+ ...F.value,
287
287
  ...r.modules
288
288
  }, await Ct();
289
289
  } catch (n) {
290
- $(e, t) && c(n, {
290
+ Q(e, t) && l(n, {
291
291
  source: "workflow-delegation",
292
292
  phase: "load"
293
293
  });
294
294
  } finally {
295
- $(e, t) && (Y.value = !1);
295
+ Q(e, t) && (J.value = !1);
296
296
  }
297
297
  }
298
- function St() {
299
- Z.value = {
298
+ function $() {
299
+ X.value = {
300
300
  title: _.t("platform.workflow.delegation.default-title", "审批代办"),
301
301
  moduleScopeType: "all",
302
302
  moduleAliases: [],
303
303
  principalCanProcess: !1
304
- }, yt.value = JSON.stringify(Z.value), X.value = "";
304
+ }, bt.value = JSON.stringify(X.value), Y.value = "";
305
305
  }
306
306
  async function Ct() {
307
- let e = Q, t = T.value, n = E.value;
307
+ let e = Z, t = T.value, n = E.value;
308
308
  try {
309
309
  let r = await n.request({
310
310
  method: "POST",
@@ -314,37 +314,37 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
314
314
  pageSize: 200
315
315
  } }
316
316
  });
317
- $(e, t) && (vt.value = r.records);
317
+ Q(e, t) && (yt.value = r.records);
318
318
  } catch (n) {
319
- $(e, t) && c(n, {
319
+ Q(e, t) && l(n, {
320
320
  source: "workflow-delegation",
321
321
  phase: "load"
322
322
  });
323
323
  }
324
324
  }
325
325
  async function wt() {
326
- await Et() && St();
326
+ await Et() && $();
327
327
  }
328
328
  async function Tt(e) {
329
- await Et() && (Z.value = JSON.parse(JSON.stringify(e)), yt.value = JSON.stringify(Z.value), X.value = "");
329
+ await Et() && (X.value = JSON.parse(JSON.stringify(e)), bt.value = JSON.stringify(X.value), Y.value = "");
330
330
  }
331
331
  async function Et() {
332
- if (Y.value || !J.value) return !1;
333
- let e = Q, t = T.value;
334
- return (!bt.value || await Se({
332
+ if (J.value || !q.value) return !1;
333
+ let e = Z, t = T.value;
334
+ return (!xt.value || await ee({
335
335
  title: _.t("platform.screen.WorkflowWorkbenchView.discard-delegation-changes", "放弃未保存的委托设置?"),
336
336
  okText: _.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
337
337
  danger: !0
338
- }, _)) && $(e, t);
338
+ }, _)) && Q(e, t);
339
339
  }
340
340
  async function Dt() {
341
- if (Y.value || !J.value) return;
342
- let e = Q, t = T.value, n = E.value, r = Z.value;
341
+ if (J.value || !q.value) return;
342
+ let e = Z, t = T.value, n = E.value, r = X.value;
343
343
  if (!r.title?.trim() || !r.delegateUserId || r.moduleScopeType === "include" && !r.moduleAliases?.length) {
344
- X.value = _.t("platform.screen.WorkflowWorkbenchView.delegation-fields-required", "请填写规则名称、代办人,并选择适用业务模块。");
344
+ Y.value = _.t("platform.screen.WorkflowWorkbenchView.delegation-fields-required", "请填写规则名称、代办人,并选择适用业务模块。");
345
345
  return;
346
346
  }
347
- Y.value = !0;
347
+ J.value = !0;
348
348
  try {
349
349
  if (await n.request({
350
350
  method: "POST",
@@ -355,44 +355,44 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
355
355
  orgScopeType: r.orgScopeType ?? "all",
356
356
  moduleAliases: r.moduleScopeType === "all" ? [] : r.moduleAliases
357
357
  }
358
- }), !$(e, t) || (St(), await Ct(), !$(e, t))) return;
359
- le(_.t("platform.screen.WorkflowWorkbenchView.delegation-saved", "委托规则已保存,仅影响后续新任务"));
358
+ }), !Q(e, t) || ($(), await Ct(), !Q(e, t))) return;
359
+ oe(_.t("platform.screen.WorkflowWorkbenchView.delegation-saved", "委托规则已保存,仅影响后续新任务"));
360
360
  } catch (n) {
361
- $(e, t) && c(n, {
361
+ Q(e, t) && l(n, {
362
362
  source: "workflow-delegation",
363
363
  phase: "action"
364
364
  });
365
365
  } finally {
366
- $(e, t) && (Y.value = !1);
366
+ Q(e, t) && (J.value = !1);
367
367
  }
368
368
  }
369
369
  async function Ot(e) {
370
- if (Y.value || !J.value) return;
371
- let t = Q, n = T.value, r = E.value;
372
- Y.value = !0;
370
+ if (J.value || !q.value) return;
371
+ let t = Z, n = T.value, r = E.value;
372
+ J.value = !0;
373
373
  try {
374
374
  await r.request({
375
375
  method: "POST",
376
376
  path: `/workflow/delegation/${e.enabled ? "disable" : "enable"}/${e.id}`,
377
377
  body: { version: e.version }
378
- }), $(t, n) && await Ct();
378
+ }), Q(t, n) && await Ct();
379
379
  } catch (e) {
380
- $(t, n) && c(e, {
380
+ Q(t, n) && l(e, {
381
381
  source: "workflow-delegation",
382
382
  phase: "action"
383
383
  });
384
384
  } finally {
385
- $(t, n) && (Y.value = !1);
385
+ Q(t, n) && (J.value = !1);
386
386
  }
387
387
  }
388
388
  return (e, t) => (v(), p("section", Oe, [
389
- g(x(ue), {
390
- tabs: et.value,
391
- "active-key": O.value,
389
+ g(x(me), {
390
+ tabs: nt.value,
391
+ "active-key": D.value,
392
392
  label: x(_).t("platform.screen.WorkflowWorkbenchView.approval-workbench-groups", "审批工作台分组"),
393
- disabled: H.value,
393
+ disabled: B.value,
394
394
  "onUpdate:activeKey": t[0] ||= (e) => {
395
- O.value = e, k.value = 1, M.value = void 0;
395
+ D.value = e, O.value = 1, j.value = void 0;
396
396
  }
397
397
  }, null, 8, [
398
398
  "tabs",
@@ -400,52 +400,52 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
400
400
  "label",
401
401
  "disabled"
402
402
  ]),
403
- P.value ? (v(), d(x(de), {
403
+ $e.value ? (v(), d(x(se), {
404
404
  key: 0,
405
405
  title: x(_).t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks", "无法加载任务"),
406
- message: P.value
406
+ message: $e.value
407
407
  }, null, 8, ["title", "message"])) : f("v-if", !0),
408
- g(x(re), {
409
- title: et.value.find((e) => e.key === O.value)?.title ?? x(_).t("platform.screen.WorkflowWorkbenchView.workflow-tasks", "审批任务"),
410
- columns: it.value,
411
- rows: rt.value,
408
+ g(x(Se), {
409
+ title: nt.value.find((e) => e.key === D.value)?.title ?? x(_).t("platform.screen.WorkflowWorkbenchView.workflow-tasks", "审批任务"),
410
+ columns: ot.value,
411
+ rows: at.value,
412
412
  "row-key": "id",
413
413
  "clickable-rows": !0,
414
- "selected-row-key": M.value?.taskId ?? M.value?.instanceId,
414
+ "selected-row-key": j.value?.taskId ?? j.value?.instanceId,
415
415
  "quick-search-visible": !0,
416
- "quick-search-value": F.value,
416
+ "quick-search-value": N.value,
417
417
  "quick-search-placeholder": x(_).t("platform.screen.WorkflowWorkbenchView.search-business-title", "搜索业务标题"),
418
- "quick-search-disabled": H.value || N.value,
418
+ "quick-search-disabled": B.value || M.value,
419
419
  pageable: !0,
420
- total: Xe.value,
421
- pages: Ze.value,
422
- "page-num": k.value,
423
- "page-size": A.value,
420
+ total: Ze.value,
421
+ pages: Qe.value,
422
+ "page-num": O.value,
423
+ "page-size": k.value,
424
424
  "page-size-options": [
425
425
  10,
426
426
  20,
427
427
  30,
428
428
  50
429
429
  ],
430
- "pagination-disabled": H.value || N.value,
431
- "onUpdate:quickSearchValue": t[7] ||= (e) => F.value = e,
432
- onQuickSearch: ht,
433
- onPageChange: t[8] ||= (e) => k.value = e,
430
+ "pagination-disabled": B.value || M.value,
431
+ "onUpdate:quickSearchValue": t[7] ||= (e) => N.value = e,
432
+ onQuickSearch: gt,
433
+ onPageChange: t[8] ||= (e) => O.value = e,
434
434
  onPageSizeChange: t[9] ||= (e) => {
435
- A.value = e, k.value = 1;
435
+ k.value = e, O.value = 1;
436
436
  },
437
- onRowClick: t[10] ||= (e) => !H.value && (M.value = j.value.find((t) => (t.taskId ?? t.instanceId) === e.id))
437
+ onRowClick: t[10] ||= (e) => !B.value && (j.value = A.value.find((t) => (t.taskId ?? t.instanceId) === e.id))
438
438
  }, {
439
- operations: S(() => [g(x(i), {
440
- loading: N.value,
441
- disabled: H.value,
442
- onClick: dt
439
+ operations: S(() => [g(x(c), {
440
+ loading: M.value,
441
+ disabled: B.value,
442
+ onClick: ft
443
443
  }, {
444
444
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.refresh-tasks", "刷新任务")), 1)]),
445
445
  _: 1
446
- }, 8, ["loading", "disabled"]), g(x(i), {
447
- disabled: H.value || J.value || Y.value || !Je.value,
448
- onClick: xt
446
+ }, 8, ["loading", "disabled"]), g(x(c), {
447
+ disabled: B.value || q.value || J.value || !Ye.value,
448
+ onClick: St
449
449
  }, {
450
450
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置")), 1)]),
451
451
  _: 1
@@ -454,13 +454,13 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
454
454
  x(w)?.system ? (v(), p("label", Ae, [g(x(s), null, {
455
455
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-tenant", "业务租户")), 1)]),
456
456
  _: 1
457
- }), g(x(o), {
457
+ }), g(x(ge), {
458
458
  value: T.value,
459
459
  "onUpdate:value": t[1] ||= (e) => T.value = e,
460
- disabled: H.value || J.value || Y.value,
461
- context: x(qe),
460
+ disabled: B.value || q.value || J.value,
461
+ context: x(Je),
462
462
  mode: "list",
463
- "title-of": ct
463
+ "title-of": G
464
464
  }, null, 8, [
465
465
  "value",
466
466
  "disabled",
@@ -469,11 +469,11 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
469
469
  m("label", je, [g(x(s), null, {
470
470
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1)]),
471
471
  _: 1
472
- }), g(x(se), {
473
- value: I.value.moduleAlias,
474
- "onUpdate:value": t[2] ||= (e) => I.value.moduleAlias = e,
475
- options: tt.value,
476
- disabled: H.value,
472
+ }), g(x(i), {
473
+ value: P.value.moduleAlias,
474
+ "onUpdate:value": t[2] ||= (e) => P.value.moduleAlias = e,
475
+ options: rt.value,
476
+ disabled: B.value,
477
477
  "show-search": "",
478
478
  placeholder: x(_).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
479
479
  }, null, 8, [
@@ -482,17 +482,17 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
482
482
  "disabled",
483
483
  "placeholder"
484
484
  ])]),
485
- Je.value ? (v(), p("label", Me, [g(x(s), null, {
485
+ Ye.value ? (v(), p("label", Me, [g(x(s), null, {
486
486
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.submitter", "发起人")), 1)]),
487
487
  _: 1
488
- }), g(x(o), {
489
- value: I.value.submitterUserId,
490
- "onUpdate:value": t[3] ||= (e) => I.value.submitterUserId = e,
491
- disabled: H.value,
492
- context: Ye.value,
488
+ }), g(x(ge), {
489
+ value: P.value.submitterUserId,
490
+ "onUpdate:value": t[3] ||= (e) => P.value.submitterUserId = e,
491
+ disabled: B.value,
492
+ context: Xe.value,
493
493
  "load-options": Ke.value,
494
494
  mode: "list",
495
- "title-of": ct
495
+ "title-of": G
496
496
  }, null, 8, [
497
497
  "value",
498
498
  "disabled",
@@ -502,10 +502,10 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
502
502
  m("label", Ne, [g(x(s), null, {
503
503
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.timeliness", "时效")), 1)]),
504
504
  _: 1
505
- }), g(x(se), {
506
- value: I.value.overtimeStatus,
507
- "onUpdate:value": t[4] ||= (e) => I.value.overtimeStatus = e,
508
- disabled: H.value,
505
+ }), g(x(i), {
506
+ value: P.value.overtimeStatus,
507
+ "onUpdate:value": t[4] ||= (e) => P.value.overtimeStatus = e,
508
+ disabled: B.value,
509
509
  options: [
510
510
  {
511
511
  value: "normal",
@@ -527,26 +527,26 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
527
527
  "options",
528
528
  "placeholder"
529
529
  ])]),
530
- m("div", Pe, [m("label", Fe, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-from", "接收开始日期")), 1), g(x(oe), {
531
- value: B.value,
532
- "onUpdate:value": t[5] ||= (e) => B.value = e,
530
+ m("div", Pe, [m("label", Fe, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-from", "接收开始日期")), 1), g(x(le), {
531
+ value: R.value,
532
+ "onUpdate:value": t[5] ||= (e) => R.value = e,
533
533
  type: "date",
534
- disabled: H.value
535
- }, null, 8, ["value", "disabled"])]), m("label", Ie, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-until", "接收结束日期")), 1), g(x(oe), {
536
- value: V.value,
537
- "onUpdate:value": t[6] ||= (e) => V.value = e,
534
+ disabled: B.value
535
+ }, null, 8, ["value", "disabled"])]), m("label", Ie, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-until", "接收结束日期")), 1), g(x(le), {
536
+ value: z.value,
537
+ "onUpdate:value": t[6] ||= (e) => z.value = e,
538
538
  type: "date",
539
- disabled: H.value
539
+ disabled: B.value
540
540
  }, null, 8, ["value", "disabled"])])]),
541
- m("div", Le, [g(x(i), {
542
- disabled: H.value || N.value,
543
- onClick: ht
541
+ m("div", Le, [g(x(c), {
542
+ disabled: B.value || M.value,
543
+ onClick: gt
544
544
  }, {
545
545
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
546
546
  _: 1
547
- }, 8, ["disabled"]), g(x(i), {
548
- disabled: H.value || N.value,
549
- onClick: gt
547
+ }, 8, ["disabled"]), g(x(c), {
548
+ disabled: B.value || M.value,
549
+ onClick: _t
550
550
  }, {
551
551
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
552
552
  _: 1
@@ -568,54 +568,54 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
568
568
  "page-size",
569
569
  "pagination-disabled"
570
570
  ]),
571
- g(x(ge), {
572
- open: !!M.value,
573
- title: M.value ? nt(M.value, W.value?.title) : x(_).t("platform.screen.WorkflowWorkbenchView.business-processing-details", "业务办理详情"),
571
+ g(x(ne), {
572
+ open: !!j.value,
573
+ title: j.value ? it(j.value, H.value?.title) : x(_).t("platform.screen.WorkflowWorkbenchView.business-processing-details", "业务办理详情"),
574
574
  width: "wide",
575
- "before-close": pt,
576
- onClose: t[12] ||= (e) => M.value = void 0
575
+ "before-close": mt,
576
+ onClose: t[12] ||= (e) => j.value = void 0
577
577
  }, {
578
- operation: S(() => [g(x(i), {
579
- disabled: H.value,
580
- onClick: mt
578
+ operation: S(() => [g(x(c), {
579
+ disabled: B.value,
580
+ onClick: ht
581
581
  }, {
582
582
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.close-details", "关闭详情")), 1)]),
583
583
  _: 1
584
584
  }, 8, ["disabled"])]),
585
585
  default: S(() => [
586
- G.value ? (v(), p("p", Re, b(x(_).t("platform.screen.WorkflowWorkbenchView.loading-business-details", "加载业务详情…")), 1)) : f("v-if", !0),
587
- K.value ? (v(), d(x(de), {
586
+ U.value ? (v(), p("p", Re, b(x(_).t("platform.screen.WorkflowWorkbenchView.loading-business-details", "加载业务详情…")), 1)) : f("v-if", !0),
587
+ W.value ? (v(), d(x(se), {
588
588
  key: 1,
589
589
  title: x(_).t("platform.screen.WorkflowWorkbenchView.unable-to-read-business-details", "无法读取业务详情"),
590
- message: K.value
590
+ message: W.value
591
591
  }, null, 8, ["title", "message"])) : f("v-if", !0),
592
- K.value ? (v(), d(x(i), {
592
+ W.value ? (v(), d(x(c), {
593
593
  key: 2,
594
- onClick: ft
594
+ onClick: pt
595
595
  }, {
596
596
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
597
597
  _: 1
598
598
  })) : f("v-if", !0),
599
- W.value ? (v(), d(x(ve), {
599
+ H.value ? (v(), d(x(ve), {
600
600
  key: 3,
601
- record: W.value,
602
- fields: ot.value,
603
- "option-context": U.value
601
+ record: H.value,
602
+ fields: ct.value,
603
+ "option-context": V.value
604
604
  }, null, 8, [
605
605
  "record",
606
606
  "fields",
607
607
  "option-context"
608
608
  ])) : f("v-if", !0),
609
- M.value && U.value && W.value && !G.value && !K.value ? (v(), d(x(xe), {
609
+ j.value && V.value && H.value && !U.value && !W.value ? (v(), d(x(ye), {
610
610
  ref_key: "panel",
611
- ref: $e,
612
- key: M.value.instanceId,
613
- context: U.value,
614
- "record-id": M.value.recordId,
615
- "instance-id": M.value.instanceId,
616
- "record-submission": M.value.taskKind === "resubmit" && M.value.taskStatus === "todo",
617
- onEditingChange: t[11] ||= (e) => H.value = e,
618
- onChanged: _t
611
+ ref: tt,
612
+ key: j.value.instanceId,
613
+ context: V.value,
614
+ "record-id": j.value.recordId,
615
+ "instance-id": j.value.instanceId,
616
+ "record-submission": j.value.taskKind === "resubmit" && j.value.taskStatus === "todo",
617
+ onEditingChange: t[11] ||= (e) => B.value = e,
618
+ onChanged: vt
619
619
  }, null, 8, [
620
620
  "context",
621
621
  "record-id",
@@ -625,62 +625,62 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
625
625
  ]),
626
626
  _: 1
627
627
  }, 8, ["open", "title"]),
628
- g(x(ge), {
629
- open: J.value,
630
- title: Z.value.id ? x(_).t("platform.screen.WorkflowWorkbenchView.edit-personal-delegation", "编辑个人委托") : x(_).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置"),
628
+ g(x(ne), {
629
+ open: q.value,
630
+ title: X.value.id ? x(_).t("platform.screen.WorkflowWorkbenchView.edit-personal-delegation", "编辑个人委托") : x(_).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置"),
631
631
  "before-close": Et,
632
- onClose: t[18] ||= (e) => J.value = !1
632
+ onClose: t[18] ||= (e) => q.value = !1
633
633
  }, {
634
- operation: S(() => [g(x(i), {
634
+ operation: S(() => [g(x(c), {
635
635
  type: "primary",
636
- loading: Y.value,
636
+ loading: J.value,
637
637
  onClick: Dt
638
638
  }, {
639
639
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.save-delegation-rule", "保存委托规则")), 1)]),
640
640
  _: 1
641
- }, 8, ["loading"]), g(x(i), {
642
- disabled: Y.value,
641
+ }, 8, ["loading"]), g(x(c), {
642
+ disabled: J.value,
643
643
  onClick: wt
644
644
  }, {
645
645
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.new-rule", "新建规则")), 1)]),
646
646
  _: 1
647
647
  }, 8, ["disabled"])]),
648
648
  default: S(() => [
649
- X.value ? (v(), d(x(de), {
649
+ Y.value ? (v(), d(x(se), {
650
650
  key: 0,
651
651
  title: x(_).t("platform.screen.WorkflowWorkbenchView.complete-the-delegation-rule", "请完善委托规则"),
652
- message: X.value
652
+ message: Y.value
653
653
  }, null, 8, ["title", "message"])) : f("v-if", !0),
654
654
  m("div", ze, [
655
655
  m("label", Be, [g(x(s), { required: "" }, {
656
656
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.rule-name", "规则名称")), 1)]),
657
657
  _: 1
658
- }), g(x(oe), {
659
- value: Z.value.title,
660
- "onUpdate:value": t[13] ||= (e) => Z.value.title = e,
661
- disabled: Y.value
658
+ }), g(x(le), {
659
+ value: X.value.title,
660
+ "onUpdate:value": t[13] ||= (e) => X.value.title = e,
661
+ disabled: J.value
662
662
  }, null, 8, ["value", "disabled"])]),
663
663
  m("label", Ve, [g(x(s), { required: "" }, {
664
664
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.delegate", "代办人")), 1)]),
665
665
  _: 1
666
- }), g(x(o), {
667
- value: Z.value.delegateUserId,
668
- "onUpdate:value": t[14] ||= (e) => Z.value.delegateUserId = e,
669
- context: Ye.value,
666
+ }), g(x(ge), {
667
+ value: X.value.delegateUserId,
668
+ "onUpdate:value": t[14] ||= (e) => X.value.delegateUserId = e,
669
+ context: Xe.value,
670
670
  "load-options": Ke.value,
671
671
  mode: "list",
672
- "title-of": ct,
673
- disabled: Y.value
672
+ "title-of": G,
673
+ disabled: J.value
674
674
  }, null, 8, [
675
675
  "value",
676
676
  "context",
677
677
  "load-options",
678
678
  "disabled"
679
679
  ])]),
680
- m("label", He, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.applicable-scope", "适用范围")), 1), g(x(se), {
681
- value: Z.value.moduleScopeType,
682
- "onUpdate:value": t[15] ||= (e) => Z.value.moduleScopeType = e,
683
- disabled: Y.value,
680
+ m("label", He, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.applicable-scope", "适用范围")), 1), g(x(i), {
681
+ value: X.value.moduleScopeType,
682
+ "onUpdate:value": t[15] ||= (e) => X.value.moduleScopeType = e,
683
+ disabled: J.value,
684
684
  "allow-clear": !1,
685
685
  options: [{
686
686
  value: "all",
@@ -694,11 +694,11 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
694
694
  "disabled",
695
695
  "options"
696
696
  ])]),
697
- Z.value.moduleScopeType === "include" ? (v(), p("label", Ue, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1), g(x(se), {
698
- value: Z.value.moduleAliases,
699
- "onUpdate:value": t[16] ||= (e) => Z.value.moduleAliases = e,
700
- disabled: Y.value,
701
- options: tt.value,
697
+ X.value.moduleScopeType === "include" ? (v(), p("label", Ue, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1), g(x(i), {
698
+ value: X.value.moduleAliases,
699
+ "onUpdate:value": t[16] ||= (e) => X.value.moduleAliases = e,
700
+ disabled: J.value,
701
+ options: rt.value,
702
702
  mode: "multiple",
703
703
  "show-search": ""
704
704
  }, null, 8, [
@@ -706,10 +706,10 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
706
706
  "disabled",
707
707
  "options"
708
708
  ])])) : f("v-if", !0),
709
- g(x(ie), {
710
- checked: Z.value.principalCanProcess,
711
- "onUpdate:checked": t[17] ||= (e) => Z.value.principalCanProcess = e,
712
- disabled: Y.value
709
+ g(x(fe), {
710
+ checked: X.value.principalCanProcess,
711
+ "onUpdate:checked": t[17] ||= (e) => X.value.principalCanProcess = e,
712
+ disabled: J.value
713
713
  }, {
714
714
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.retain-my-processing-permission", "保留本人办理权限")), 1)]),
715
715
  _: 1
@@ -717,32 +717,32 @@ var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields"
717
717
  ]),
718
718
  m("p", null, b(x(_).t("platform.screen.WorkflowWorkbenchView.rules-affect-new-tasks-assigned-tasks-retain", "规则仅影响后续新任务,已分派任务保留原人员与权限快照。")), 1),
719
719
  m("h3", null, b(x(_).t("platform.screen.WorkflowWorkbenchView.existing-delegation-rules", "现有委托规则")), 1),
720
- (v(!0), p(Ce, null, Te(vt.value, (e) => (v(), p("div", {
720
+ (v(!0), p(Ce, null, Te(yt.value, (e) => (v(), p("div", {
721
721
  key: e.id,
722
722
  class: "policy-row"
723
723
  }, [
724
724
  m("strong", null, b(e.title) + " · " + b(e.enabled ? x(_).t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : x(_).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")), 1),
725
- g(x(o), {
725
+ g(x(ge), {
726
726
  value: e.delegateUserId,
727
- context: Ye.value,
727
+ context: Xe.value,
728
728
  "load-options": Ke.value,
729
729
  mode: "list",
730
- "title-of": ct,
730
+ "title-of": G,
731
731
  disabled: ""
732
732
  }, null, 8, [
733
733
  "value",
734
734
  "context",
735
735
  "load-options"
736
736
  ]),
737
- m("span", null, b(e.moduleScopeType === "all" ? x(_).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块") : e.moduleAliases?.map((e) => Qe.value[e] ?? e).join("、")), 1),
738
- m("div", null, [g(x(i), {
739
- disabled: Y.value,
737
+ m("span", null, b(e.moduleScopeType === "all" ? x(_).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块") : e.moduleAliases?.map((e) => et.value[e] ?? e).join("、")), 1),
738
+ m("div", null, [g(x(c), {
739
+ disabled: J.value,
740
740
  onClick: (t) => Tt(e)
741
741
  }, {
742
742
  default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.edit-rule", "编辑规则")), 1)]),
743
743
  _: 1
744
- }, 8, ["disabled", "onClick"]), g(x(i), {
745
- disabled: Y.value,
744
+ }, 8, ["disabled", "onClick"]), g(x(c), {
745
+ disabled: J.value,
746
746
  onClick: (t) => Ot(e)
747
747
  }, {
748
748
  default: S(() => [h(b(e.enabled ? x(_).t("platform.screen.WorkflowWorkbenchView.disable-rule", "停用规则") : x(_).t("platform.screen.WorkflowWorkbenchView.enable-rule", "启用规则")), 1)]),