@ximatai/muyun-web-app 0.26.16 → 0.26.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BusinessActivityLogView-DVM_GB5y.js → BusinessActivityLogView-CNW817Sf.js} +2 -2
- package/dist/BusinessLogListDrawer-YiJxOlnD.js +864 -0
- package/dist/CodeConfigurationView-DU8tjPMt.js +1667 -0
- package/dist/{ConfigurationTranslationView-B0FosDyz.js → ConfigurationTranslationView-CbBt5s1q.js} +51 -51
- package/dist/{LoginAuditLogView-3tAozKlC.js → LoginAuditLogView-CZF1Jfq_.js} +2 -2
- package/dist/{ModuleActionManagementView-CJRNShGg.js → ModuleActionManagementView-CaiXH1l_.js} +208 -208
- package/dist/{ModuleGovernanceView-DsqR_Sj7.js → ModuleGovernanceView-CcwGyO3x.js} +4331 -4475
- package/dist/{RequestErrorLogView-C4yH-TSX.js → RequestErrorLogView-DpudZrC2.js} +2 -2
- package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +1435 -0
- package/dist/{RuntimeLogView-CoKKpJ39.js → RuntimeLogView-444BL_xs.js} +61 -61
- package/dist/WorkflowAdministrationView-C-VIjvwB.js +650 -0
- package/dist/WorkflowConfigurationView-DLFY2x7V.js +1110 -0
- package/dist/WorkflowWorkbenchView-Gr02dbBc.js +759 -0
- package/dist/codeConfiguration-ChJ6ktRR.js +208 -0
- package/dist/index.css +1 -1
- package/dist/index.js +624 -598
- package/dist/moduleMenuWorkspace-B8DKwC3L.js +626 -0
- package/dist/{platform-components-Cl5ZZiuU.js → platform-components-5AE0j2_3.js} +9579 -6839
- package/dist/{platform-workbench-CAHoriIf.js → platform-workbench-BhZPARiH.js} +6345 -6478
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +1 -1
- package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
- package/dist/types/app/useAssistantAvailability.d.ts +8 -0
- package/dist/types/app/useCurrentUserProfile.d.ts +12 -0
- package/dist/types/app/workbenchRouteSync.d.ts +2 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +9 -3
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +8 -8
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +214 -92
- package/dist/types/dynamic-page-runtime/assistantQueryCapabilities.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/composables/useManagedDetailRelationRuntime.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +4 -4
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -0
- package/dist/types/main.d.ts +0 -1
- package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
- package/dist/types/platform-components/BusinessContentGenerationPanel.vue.d.ts +22 -0
- package/dist/types/platform-components/BusinessContentQueryNotice.vue.d.ts +17 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +4 -4
- package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +1 -1
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +4 -4
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +2 -2
- package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordContentSourceField.vue.d.ts +22 -0
- package/dist/types/platform-components/RecordContentTranslationField.vue.d.ts +26 -0
- package/dist/types/platform-components/RecordDataExchangeSurface.vue.d.ts +26 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +3 -2
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +1 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +1 -1
- package/dist/types/{dynamic-page-runtime/ModuleDataExchangeSurface.vue.d.ts → platform-components/RecordQuerySortSelector.vue.d.ts} +5 -9
- package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordRelationValue.vue.d.ts +2 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +7 -2
- package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/WorkflowRecordPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/WorkflowTimeline.vue.d.ts +4 -0
- package/dist/types/platform-components/crudRecordListModel.d.ts +1 -0
- package/dist/types/platform-components/index.d.ts +3 -0
- package/dist/types/platform-components/loadExplorerRecords.d.ts +3 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
- package/dist/types/platform-components/recordDetailFieldModel.d.ts +2 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +6 -0
- package/dist/types/platform-components/recordQueryListQueryController.d.ts +2 -0
- package/dist/types/platform-components/recordSurfaceActivity.d.ts +3 -0
- package/dist/types/platform-components/recycleBinState.d.ts +1 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +6 -2
- package/dist/types/platform-components/scopedTreePickerModel.d.ts +4 -0
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +28 -0
- package/dist/types/platform-workbench/WorkbenchLanguageSettings.vue.d.ts +11 -0
- package/dist/types/platform-workbench/WorkbenchPageTitle.vue.d.ts +10 -0
- package/dist/types/platform-workbench/menuGroupLayout.d.ts +5 -0
- package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -2
- package/dist/types/platform-workbench/useAssistantConversation.d.ts +1 -1
- package/dist/types/platform-workbench/useAssistantConversationArchive.d.ts +1 -1
- package/dist/types/platform-workbench/useLanguagePreferenceSelection.d.ts +7 -0
- package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
- package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
- package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +4 -4
- package/dist/types/views/WorkflowSelectionFields.vue.d.ts +28 -0
- package/dist/types/views/codeConfiguration.d.ts +127 -0
- package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/views/metadataEditorSession.d.ts +4 -0
- package/dist/types/views/metadataOrchestrationState.d.ts +3 -0
- package/dist/types/views/metadataWorkspace.d.ts +8 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
- package/dist/types/vue-ui-antdv/components/UiDropdown.vue.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +9 -6
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
- package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
- package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/vue-ui-antdv/typography.d.ts +25 -0
- package/dist/types/web-contracts/index.d.ts +146 -1
- package/dist/types/web-contracts/workflow.d.ts +10 -0
- package/dist/types/web-core/assistantTurnClient.d.ts +2 -0
- package/dist/types/web-core/businessContent.d.ts +38 -0
- package/dist/types/web-core/businessContentLanguage.d.ts +18 -0
- package/dist/types/web-core/index.d.ts +5 -0
- package/dist/types/web-core/languagePreference.d.ts +2 -2
- package/dist/types/web-core/module/dataExchangeClient.d.ts +83 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +9 -3
- package/dist/types/web-core/presentationTexts.d.ts +5 -0
- package/dist/types/web-core/recordReadRefreshGuard.d.ts +7 -0
- package/dist/types/web-core/useBusinessContentGenerationBatch.d.ts +36 -0
- package/dist/types/web-core/useBusinessContentReading.d.ts +30 -0
- package/dist/types/web-core/workflow.d.ts +2 -1
- package/dist/{workspaceViews-BIYGPUAO.js → workspaceViews-DeBqozVb.js} +1062 -918
- package/package.json +4 -1
- package/dist/BusinessLogListDrawer-BciMLY9z.js +0 -864
- package/dist/RoleDetailWorkspaceView-BpOoGUwS.js +0 -1435
- package/dist/WorkflowAdministrationView-DmUV6vWS.js +0 -650
- package/dist/WorkflowConfigurationView-pghDbWEh.js +0 -975
- package/dist/WorkflowWorkbenchView-BwWxyDen.js +0 -747
- package/dist/moduleGovernanceWorkspaceView-DGEV3ZyT.js +0 -667
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
import { D as e, _ as t, a as n, y as r } from "./platform-workbench-BhZPARiH.js";
|
|
2
|
+
import { $n as i, At as ee, Ba as te, Fr as ne, Ia as a, Kn as re, Lt as ie, Mr as o, Nt as ae, Rr as oe, Sn as se, Xn as ce, Yn as le, Zt as s, bn as ue, c as de, d as fe, dt as pe, et as me, f as he, ma as ge, p as _e, sn as c, st as ve, tr as ye, va as be, xr as xe, yn as Se, yr as Ce } from "./platform-components-5AE0j2_3.js";
|
|
3
|
+
import { Fragment as we, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as Te, openBlock as _, ref as v, renderList as Ee, shallowRef as De, toDisplayString as y, unref as b, watch as x, withCtx as S } from "vue";
|
|
4
|
+
//#region src/views/WorkflowWorkbenchView.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields" }, Ae = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "workflow-field"
|
|
8
|
+
}, je = { class: "workflow-field" }, Me = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "workflow-field"
|
|
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
|
+
key: 0,
|
|
13
|
+
class: "workflow-field"
|
|
14
|
+
}, C = /*#__PURE__*/ ye(/* @__PURE__ */ g({
|
|
15
|
+
name: "WorkflowWorkbenchView",
|
|
16
|
+
__name: "WorkflowWorkbenchView",
|
|
17
|
+
setup(ye) {
|
|
18
|
+
let g = a();
|
|
19
|
+
function C(e) {
|
|
20
|
+
return he(e, g);
|
|
21
|
+
}
|
|
22
|
+
let We = ne(), w = r(), Ge = n(), T = v(w?.value?.system && typeof Ge.query.tenantId == "string" ? Ge.query.tenantId : void 0), E = l(() => T.value ? te(We.http, { "X-MuYun-Tenant-Id": T.value }) : We.http), Ke = l(() => _e(E.value)), D = l(() => xe(E.value)), qe = o({
|
|
23
|
+
http: We.http,
|
|
24
|
+
language: g,
|
|
25
|
+
moduleAlias: "iam.tenant",
|
|
26
|
+
runtimeAccess: "REFERENCE"
|
|
27
|
+
}), Je = l(() => !w?.value?.system || !!T.value), Ye = l(() => o({
|
|
28
|
+
http: E.value,
|
|
29
|
+
language: g,
|
|
30
|
+
moduleAlias: "iam.user",
|
|
31
|
+
runtimeAccess: "VIEW"
|
|
32
|
+
})), O = v("todo"), k = v(1), A = v(30), Xe = v(0), Ze = v(0), j = v([]), M = v(), N = v(!1), Qe = v(""), P = v(""), F = v({}), I = v({}), $e = v({}), et = l(() => ({
|
|
33
|
+
...$e.value,
|
|
34
|
+
...Object.fromEntries(Object.entries(I.value).map(([e, t]) => [e, be(t.title, t.titleText, g)]))
|
|
35
|
+
})), L = v({}), R = v(""), z = v(""), B = v(!1), tt = v(), nt = l(() => [
|
|
36
|
+
{
|
|
37
|
+
key: "todo",
|
|
38
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.my-pending-tasks", "待我办理")
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "done",
|
|
42
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.my-completed-tasks", "我已办理")
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "notice",
|
|
46
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.my-notices", "通知我的")
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: "tracking",
|
|
50
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.my-submissions", "我发起的")
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: "delegation",
|
|
54
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.delegated-tasks", "委托办理")
|
|
55
|
+
}
|
|
56
|
+
].map((e) => ({
|
|
57
|
+
...e,
|
|
58
|
+
title: e.title + (L.value[e.key] == null ? "" : ` (${L.value[e.key]})`)
|
|
59
|
+
}))), rt = l(() => Object.entries(et.value).map(([e, t]) => ({
|
|
60
|
+
value: e,
|
|
61
|
+
label: t
|
|
62
|
+
})));
|
|
63
|
+
function it(e, t) {
|
|
64
|
+
if (e.business?.readable === !1) return g.t("platform.screen.WorkflowWorkbenchView.restricted-business-record", "受限业务记录");
|
|
65
|
+
let n = typeof t == "string" ? t : e.business?.title;
|
|
66
|
+
return n == null ? g.t("platform.screen.WorkflowWorkbenchView.untitled-business-record", "未命名业务") : ge(n, e.business?.titleContentText, g) ?? n;
|
|
67
|
+
}
|
|
68
|
+
let at = l(() => j.value.map((e) => ({
|
|
69
|
+
...e,
|
|
70
|
+
id: e.taskId ?? e.instanceId,
|
|
71
|
+
nodeTitle: be(e.nodeTitle ?? "", e.nodeTitleText, g),
|
|
72
|
+
title: it(e),
|
|
73
|
+
moduleTitle: e.business?.moduleTitle == null ? et.value[e.moduleAlias] ?? g.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块") : be(e.business.moduleTitle, e.business.moduleTitleText, g),
|
|
74
|
+
status: C(e.taskStatus ?? e.instanceStatus),
|
|
75
|
+
received: lt(e.receivedAt),
|
|
76
|
+
completed: lt(e.completedAt),
|
|
77
|
+
assignees: e.currentAssigneeTitles.join("、"),
|
|
78
|
+
urgency: C(e.overtimeStatus)
|
|
79
|
+
}))), ot = l(() => [
|
|
80
|
+
{
|
|
81
|
+
key: "title",
|
|
82
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.business-item", "业务事项"),
|
|
83
|
+
dataIndex: "title",
|
|
84
|
+
width: 240
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: "moduleTitle",
|
|
88
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块"),
|
|
89
|
+
dataIndex: "moduleTitle",
|
|
90
|
+
width: 140
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "nodeTitle",
|
|
94
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.task-node", "办理节点"),
|
|
95
|
+
dataIndex: "nodeTitle",
|
|
96
|
+
width: 160
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "submitterUserTitle",
|
|
100
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.submitter", "发起人"),
|
|
101
|
+
dataIndex: "submitterUserTitle",
|
|
102
|
+
width: 110
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "status",
|
|
106
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.status", "状态"),
|
|
107
|
+
dataIndex: "status",
|
|
108
|
+
width: 100
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "assignees",
|
|
112
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
|
|
113
|
+
dataIndex: "assignees",
|
|
114
|
+
width: 130
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "received",
|
|
118
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.received-at", "接收时间"),
|
|
119
|
+
dataIndex: "received",
|
|
120
|
+
width: 170
|
|
121
|
+
},
|
|
122
|
+
...O.value === "done" ? [{
|
|
123
|
+
key: "completed",
|
|
124
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.processed-at", "办理时间"),
|
|
125
|
+
dataIndex: "completed",
|
|
126
|
+
width: 170
|
|
127
|
+
}] : [{
|
|
128
|
+
key: "urgency",
|
|
129
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.timeliness", "时效"),
|
|
130
|
+
dataIndex: "urgency",
|
|
131
|
+
width: 90
|
|
132
|
+
}]
|
|
133
|
+
]), V = De();
|
|
134
|
+
x([() => M.value?.moduleAlias, E], ([e, t]) => {
|
|
135
|
+
V.value = e ? o({
|
|
136
|
+
http: t,
|
|
137
|
+
language: g,
|
|
138
|
+
moduleAlias: e,
|
|
139
|
+
runtimeAccess: "VIEW"
|
|
140
|
+
}) : void 0;
|
|
141
|
+
}, { immediate: !0 });
|
|
142
|
+
let H = v(), st = v(/* @__PURE__ */ new Map()), U = v(!1), W = v(""), ct = l(() => {
|
|
143
|
+
let e = V.value ? ee(oe(V.value.runtime)?.uiDescriptor) : void 0;
|
|
144
|
+
return new Map([...st.value].map(([t, n]) => [t, e?.get(t) ?? n]));
|
|
145
|
+
});
|
|
146
|
+
function lt(e) {
|
|
147
|
+
return e ? new Date(e).toLocaleString("zh-CN", { hour12: !1 }) : "—";
|
|
148
|
+
}
|
|
149
|
+
function G(e) {
|
|
150
|
+
return e.title || e.username || e.id || "";
|
|
151
|
+
}
|
|
152
|
+
let K = 0, ut = 0, dt = 0;
|
|
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(I.value).some((e) => t.has(e));
|
|
155
|
+
if (!n && !r) return;
|
|
156
|
+
let i = ++dt, ee = K, te = T.value, ne = w?.value?.userId, a = V.value;
|
|
157
|
+
try {
|
|
158
|
+
let [e, r] = await Promise.all([
|
|
159
|
+
n ? D.value.workbenchPage(O.value, k.value, F.value, P.value, A.value) : void 0,
|
|
160
|
+
D.value.workbenchModules(),
|
|
161
|
+
a && t.has(a.moduleAlias) ? a.runtime.refreshTexts?.() : void 0
|
|
162
|
+
]);
|
|
163
|
+
if (i !== dt || K !== ee || T.value !== te || w?.value?.userId !== ne) return;
|
|
164
|
+
let re = (t) => e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId)?.nodeTitleText, ie = {
|
|
165
|
+
...r.modules,
|
|
166
|
+
...e?.navigation?.moduleTitles?.modules
|
|
167
|
+
}, o = { ...I.value };
|
|
168
|
+
for (let [e, t] of Object.entries(o)) {
|
|
169
|
+
let n = ie[e]?.titleText;
|
|
170
|
+
fe(t.titleText, n) && (o[e] = {
|
|
171
|
+
...t,
|
|
172
|
+
titleText: n
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
I.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 ?? ie[t.moduleAlias]?.titleText;
|
|
178
|
+
return {
|
|
179
|
+
...t,
|
|
180
|
+
...fe(t.nodeTitleText, n?.nodeTitleText) ? { nodeTitleText: n?.nodeTitleText } : {},
|
|
181
|
+
business: t.business && fe(t.business.moduleTitleText, r) ? {
|
|
182
|
+
...t.business,
|
|
183
|
+
moduleTitleText: r
|
|
184
|
+
} : t.business
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
if (j.value = j.value.map(ae), M.value) {
|
|
188
|
+
let e = re(M.value);
|
|
189
|
+
fe(M.value.nodeTitleText, e) && (M.value.nodeTitleText = e);
|
|
190
|
+
let t = ae(M.value);
|
|
191
|
+
t.business && (M.value.business = t.business);
|
|
192
|
+
}
|
|
193
|
+
} catch (e) {
|
|
194
|
+
c(e, {
|
|
195
|
+
source: "workflow-text-resources",
|
|
196
|
+
phase: "load"
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
async function ft() {
|
|
201
|
+
let e = ++K;
|
|
202
|
+
N.value = !0, Qe.value = "";
|
|
203
|
+
try {
|
|
204
|
+
let t = await D.value.workbenchPage(O.value, k.value, F.value, P.value, A.value);
|
|
205
|
+
if (e !== K) return;
|
|
206
|
+
j.value = t.records, Xe.value = t.total, Ze.value = t.pages, $e.value = {
|
|
207
|
+
...$e.value,
|
|
208
|
+
...t.navigation?.modules
|
|
209
|
+
}, I.value = {
|
|
210
|
+
...I.value,
|
|
211
|
+
...t.navigation?.moduleTitles?.modules
|
|
212
|
+
}, L.value[O.value] = t.total;
|
|
213
|
+
} catch (t) {
|
|
214
|
+
e === K && (j.value = [], Xe.value = 0, Ze.value = 0, delete L.value[O.value], Qe.value = g.t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks-retry", "任务加载失败,请重试。"), c(t, {
|
|
215
|
+
source: "workflow-workbench",
|
|
216
|
+
phase: "load"
|
|
217
|
+
}));
|
|
218
|
+
} finally {
|
|
219
|
+
e === K && (N.value = !1);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async function pt() {
|
|
223
|
+
let e = ++ut, t = M.value, n = V.value;
|
|
224
|
+
if (H.value = void 0, W.value = "", U.value = !1, t && n) {
|
|
225
|
+
if (t.business?.readable === !1) {
|
|
226
|
+
W.value = g.t("platform.screen.WorkflowWorkbenchView.you-can-view-the-task-status-but", "你可以查看任务状态,但尚无该业务记录的读取权限。请联系业务管理员。");
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
U.value = !0;
|
|
230
|
+
try {
|
|
231
|
+
let r = await n.runtime.ready, i = await n.crud.view(t.recordId);
|
|
232
|
+
if (e !== ut) return;
|
|
233
|
+
st.value = ee(r.uiDescriptor), H.value = i;
|
|
234
|
+
} catch (t) {
|
|
235
|
+
e === ut && (W.value = g.t("platform.screen.WorkflowWorkbenchView.unable-to-load-business-details-retry-or", "业务详情加载失败,请重试或检查业务读取权限。"), c(t, {
|
|
236
|
+
source: "workflow-workbench",
|
|
237
|
+
phase: "load"
|
|
238
|
+
}));
|
|
239
|
+
} finally {
|
|
240
|
+
e === ut && (U.value = !1);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
x([M, T], () => void pt()), x([
|
|
245
|
+
O,
|
|
246
|
+
k,
|
|
247
|
+
A,
|
|
248
|
+
T
|
|
249
|
+
], () => void ft(), { immediate: !0 }), x(T, () => {
|
|
250
|
+
M.value = void 0, F.value = {}, P.value = "", R.value = "", z.value = "", $e.value = {}, I.value = {}, L.value = {}, k.value = 1, ++Z, q.value = !1, J.value = !1, yt.value = [], $();
|
|
251
|
+
}, { flush: "sync" });
|
|
252
|
+
async function mt() {
|
|
253
|
+
return !B.value || await tt.value?.mayLeave() === !0;
|
|
254
|
+
}
|
|
255
|
+
async function ht() {
|
|
256
|
+
await mt() && (M.value = void 0);
|
|
257
|
+
}
|
|
258
|
+
function gt() {
|
|
259
|
+
B.value || (F.value.receivedFrom = R.value ? (/* @__PURE__ */ new Date(`${R.value}T00:00:00`)).toISOString() : void 0, F.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, k.value === 1 ? ft() : k.value = 1);
|
|
260
|
+
}
|
|
261
|
+
function _t() {
|
|
262
|
+
P.value = "", F.value = {}, R.value = "", z.value = "", gt();
|
|
263
|
+
}
|
|
264
|
+
async function vt() {
|
|
265
|
+
B.value = !1, M.value && t(M.value.moduleAlias), await ft(), await pt();
|
|
266
|
+
}
|
|
267
|
+
let yt = v([]), q = v(!1), J = v(!1), Y = v(""), X = v({
|
|
268
|
+
title: g.t("platform.workflow.delegation.default-title", "审批代办"),
|
|
269
|
+
moduleScopeType: "all",
|
|
270
|
+
moduleAliases: [],
|
|
271
|
+
principalCanProcess: !1
|
|
272
|
+
}), bt = v(""), xt = l(() => q.value && JSON.stringify(X.value) !== bt.value);
|
|
273
|
+
Ce(() => g.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
|
+
}
|
|
278
|
+
async function St() {
|
|
279
|
+
if (J.value || q.value || !Je.value) return;
|
|
280
|
+
let e = ++Z, t = T.value, n = D.value;
|
|
281
|
+
q.value = !0, J.value = !0, yt.value = [], $();
|
|
282
|
+
try {
|
|
283
|
+
let r = await n.workbenchModules();
|
|
284
|
+
if (!Q(e, t)) return;
|
|
285
|
+
I.value = {
|
|
286
|
+
...I.value,
|
|
287
|
+
...r.modules
|
|
288
|
+
}, await Ct();
|
|
289
|
+
} catch (n) {
|
|
290
|
+
Q(e, t) && c(n, {
|
|
291
|
+
source: "workflow-delegation",
|
|
292
|
+
phase: "load"
|
|
293
|
+
});
|
|
294
|
+
} finally {
|
|
295
|
+
Q(e, t) && (J.value = !1);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function $() {
|
|
299
|
+
X.value = {
|
|
300
|
+
title: g.t("platform.workflow.delegation.default-title", "审批代办"),
|
|
301
|
+
moduleScopeType: "all",
|
|
302
|
+
moduleAliases: [],
|
|
303
|
+
principalCanProcess: !1
|
|
304
|
+
}, bt.value = JSON.stringify(X.value), Y.value = "";
|
|
305
|
+
}
|
|
306
|
+
async function Ct() {
|
|
307
|
+
let e = Z, t = T.value, n = E.value;
|
|
308
|
+
try {
|
|
309
|
+
let r = await n.request({
|
|
310
|
+
method: "POST",
|
|
311
|
+
path: "/workflow/delegation/query",
|
|
312
|
+
body: { page: {
|
|
313
|
+
pageNum: 1,
|
|
314
|
+
pageSize: 200
|
|
315
|
+
} }
|
|
316
|
+
});
|
|
317
|
+
Q(e, t) && (yt.value = r.records);
|
|
318
|
+
} catch (n) {
|
|
319
|
+
Q(e, t) && c(n, {
|
|
320
|
+
source: "workflow-delegation",
|
|
321
|
+
phase: "load"
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
async function wt() {
|
|
326
|
+
await Et() && $();
|
|
327
|
+
}
|
|
328
|
+
async function Tt(e) {
|
|
329
|
+
await Et() && (X.value = JSON.parse(JSON.stringify(e)), bt.value = JSON.stringify(X.value), Y.value = "");
|
|
330
|
+
}
|
|
331
|
+
async function Et() {
|
|
332
|
+
if (J.value || !q.value) return !1;
|
|
333
|
+
let e = Z, t = T.value;
|
|
334
|
+
return (!xt.value || await ue({
|
|
335
|
+
title: g.t("platform.screen.WorkflowWorkbenchView.discard-delegation-changes", "放弃未保存的委托设置?"),
|
|
336
|
+
okText: g.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
|
|
337
|
+
danger: !0
|
|
338
|
+
}, g)) && Q(e, t);
|
|
339
|
+
}
|
|
340
|
+
async function Dt() {
|
|
341
|
+
if (J.value || !q.value) return;
|
|
342
|
+
let e = Z, t = T.value, n = E.value, r = X.value;
|
|
343
|
+
if (!r.title?.trim() || !r.delegateUserId || r.moduleScopeType === "include" && !r.moduleAliases?.length) {
|
|
344
|
+
Y.value = g.t("platform.screen.WorkflowWorkbenchView.delegation-fields-required", "请填写规则名称、代办人,并选择适用业务模块。");
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
J.value = !0;
|
|
348
|
+
try {
|
|
349
|
+
if (await n.request({
|
|
350
|
+
method: "POST",
|
|
351
|
+
path: r.id ? `/workflow/delegation/update/${r.id}` : "/workflow/delegation/insert",
|
|
352
|
+
body: {
|
|
353
|
+
...r,
|
|
354
|
+
enabled: r.enabled ?? !0,
|
|
355
|
+
orgScopeType: r.orgScopeType ?? "all",
|
|
356
|
+
moduleAliases: r.moduleScopeType === "all" ? [] : r.moduleAliases
|
|
357
|
+
}
|
|
358
|
+
}), !Q(e, t) || ($(), await Ct(), !Q(e, t))) return;
|
|
359
|
+
Se(g.t("platform.screen.WorkflowWorkbenchView.delegation-saved", "委托规则已保存,仅影响后续新任务"));
|
|
360
|
+
} catch (n) {
|
|
361
|
+
Q(e, t) && c(n, {
|
|
362
|
+
source: "workflow-delegation",
|
|
363
|
+
phase: "action"
|
|
364
|
+
});
|
|
365
|
+
} finally {
|
|
366
|
+
Q(e, t) && (J.value = !1);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
async function Ot(e) {
|
|
370
|
+
if (J.value || !q.value) return;
|
|
371
|
+
let t = Z, n = T.value, r = E.value;
|
|
372
|
+
J.value = !0;
|
|
373
|
+
try {
|
|
374
|
+
await r.request({
|
|
375
|
+
method: "POST",
|
|
376
|
+
path: `/workflow/delegation/${e.enabled ? "disable" : "enable"}/${e.id}`,
|
|
377
|
+
body: { version: e.version }
|
|
378
|
+
}), Q(t, n) && await Ct();
|
|
379
|
+
} catch (e) {
|
|
380
|
+
Q(t, n) && c(e, {
|
|
381
|
+
source: "workflow-delegation",
|
|
382
|
+
phase: "action"
|
|
383
|
+
});
|
|
384
|
+
} finally {
|
|
385
|
+
Q(t, n) && (J.value = !1);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
return (e, t) => (_(), f("section", Oe, [
|
|
389
|
+
h(b(ve), {
|
|
390
|
+
tabs: nt.value,
|
|
391
|
+
"active-key": O.value,
|
|
392
|
+
label: b(g).t("platform.screen.WorkflowWorkbenchView.approval-workbench-groups", "审批工作台分组"),
|
|
393
|
+
disabled: B.value,
|
|
394
|
+
"onUpdate:activeKey": t[0] ||= (e) => {
|
|
395
|
+
O.value = e, k.value = 1, M.value = void 0;
|
|
396
|
+
}
|
|
397
|
+
}, null, 8, [
|
|
398
|
+
"tabs",
|
|
399
|
+
"active-key",
|
|
400
|
+
"label",
|
|
401
|
+
"disabled"
|
|
402
|
+
]),
|
|
403
|
+
Qe.value ? (_(), u(b(se), {
|
|
404
|
+
key: 0,
|
|
405
|
+
title: b(g).t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks", "无法加载任务"),
|
|
406
|
+
message: Qe.value
|
|
407
|
+
}, null, 8, ["title", "message"])) : d("v-if", !0),
|
|
408
|
+
h(b(ie), {
|
|
409
|
+
title: nt.value.find((e) => e.key === O.value)?.title ?? b(g).t("platform.screen.WorkflowWorkbenchView.workflow-tasks", "审批任务"),
|
|
410
|
+
columns: ot.value,
|
|
411
|
+
rows: at.value,
|
|
412
|
+
"row-key": "id",
|
|
413
|
+
"clickable-rows": !0,
|
|
414
|
+
"selected-row-key": M.value?.taskId ?? M.value?.instanceId,
|
|
415
|
+
"quick-search-visible": !0,
|
|
416
|
+
"quick-search-value": P.value,
|
|
417
|
+
"quick-search-placeholder": b(g).t("platform.screen.WorkflowWorkbenchView.search-business-title", "搜索业务标题"),
|
|
418
|
+
"quick-search-disabled": B.value || N.value,
|
|
419
|
+
pageable: !0,
|
|
420
|
+
total: Xe.value,
|
|
421
|
+
pages: Ze.value,
|
|
422
|
+
"page-num": k.value,
|
|
423
|
+
"page-size": A.value,
|
|
424
|
+
"page-size-options": [
|
|
425
|
+
10,
|
|
426
|
+
20,
|
|
427
|
+
30,
|
|
428
|
+
50
|
|
429
|
+
],
|
|
430
|
+
"pagination-disabled": B.value || N.value,
|
|
431
|
+
"onUpdate:quickSearchValue": t[7] ||= (e) => P.value = e,
|
|
432
|
+
onQuickSearch: gt,
|
|
433
|
+
onPageChange: t[8] ||= (e) => k.value = e,
|
|
434
|
+
onPageSizeChange: t[9] ||= (e) => {
|
|
435
|
+
A.value = e, k.value = 1;
|
|
436
|
+
},
|
|
437
|
+
onRowClick: t[10] ||= (e) => !B.value && (M.value = j.value.find((t) => (t.taskId ?? t.instanceId) === e.id))
|
|
438
|
+
}, {
|
|
439
|
+
operations: S(() => [h(b(i), {
|
|
440
|
+
loading: N.value,
|
|
441
|
+
disabled: B.value,
|
|
442
|
+
onClick: ft
|
|
443
|
+
}, {
|
|
444
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.refresh-tasks", "刷新任务")), 1)]),
|
|
445
|
+
_: 1
|
|
446
|
+
}, 8, ["loading", "disabled"]), h(b(i), {
|
|
447
|
+
disabled: B.value || q.value || J.value || !Je.value,
|
|
448
|
+
onClick: St
|
|
449
|
+
}, {
|
|
450
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置")), 1)]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["disabled"])]),
|
|
453
|
+
conditions: S(() => [p("div", ke, [
|
|
454
|
+
b(w)?.system ? (_(), f("label", Ae, [h(b(s), null, {
|
|
455
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.business-tenant", "业务租户")), 1)]),
|
|
456
|
+
_: 1
|
|
457
|
+
}), h(b(me), {
|
|
458
|
+
value: T.value,
|
|
459
|
+
"onUpdate:value": t[1] ||= (e) => T.value = e,
|
|
460
|
+
disabled: B.value || q.value || J.value,
|
|
461
|
+
context: b(qe),
|
|
462
|
+
mode: "list",
|
|
463
|
+
"title-of": G
|
|
464
|
+
}, null, 8, [
|
|
465
|
+
"value",
|
|
466
|
+
"disabled",
|
|
467
|
+
"context"
|
|
468
|
+
])])) : d("v-if", !0),
|
|
469
|
+
p("label", je, [h(b(s), null, {
|
|
470
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1)]),
|
|
471
|
+
_: 1
|
|
472
|
+
}), h(b(le), {
|
|
473
|
+
value: F.value.moduleAlias,
|
|
474
|
+
"onUpdate:value": t[2] ||= (e) => F.value.moduleAlias = e,
|
|
475
|
+
options: rt.value,
|
|
476
|
+
disabled: B.value,
|
|
477
|
+
"show-search": "",
|
|
478
|
+
placeholder: b(g).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
|
|
479
|
+
}, null, 8, [
|
|
480
|
+
"value",
|
|
481
|
+
"options",
|
|
482
|
+
"disabled",
|
|
483
|
+
"placeholder"
|
|
484
|
+
])]),
|
|
485
|
+
Je.value ? (_(), f("label", Me, [h(b(s), null, {
|
|
486
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.submitter", "发起人")), 1)]),
|
|
487
|
+
_: 1
|
|
488
|
+
}), h(b(me), {
|
|
489
|
+
value: F.value.submitterUserId,
|
|
490
|
+
"onUpdate:value": t[3] ||= (e) => F.value.submitterUserId = e,
|
|
491
|
+
disabled: B.value,
|
|
492
|
+
context: Ye.value,
|
|
493
|
+
"load-options": Ke.value,
|
|
494
|
+
mode: "list",
|
|
495
|
+
"title-of": G
|
|
496
|
+
}, null, 8, [
|
|
497
|
+
"value",
|
|
498
|
+
"disabled",
|
|
499
|
+
"context",
|
|
500
|
+
"load-options"
|
|
501
|
+
])])) : d("v-if", !0),
|
|
502
|
+
p("label", Ne, [h(b(s), null, {
|
|
503
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.timeliness", "时效")), 1)]),
|
|
504
|
+
_: 1
|
|
505
|
+
}), h(b(le), {
|
|
506
|
+
value: F.value.overtimeStatus,
|
|
507
|
+
"onUpdate:value": t[4] ||= (e) => F.value.overtimeStatus = e,
|
|
508
|
+
disabled: B.value,
|
|
509
|
+
options: [
|
|
510
|
+
{
|
|
511
|
+
value: "normal",
|
|
512
|
+
label: C("normal")
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
value: "warned",
|
|
516
|
+
label: C("warned")
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
value: "overdue",
|
|
520
|
+
label: C("overdue")
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
placeholder: b(g).t("platform.screen.WorkflowWorkbenchView.all", "全部")
|
|
524
|
+
}, null, 8, [
|
|
525
|
+
"value",
|
|
526
|
+
"disabled",
|
|
527
|
+
"options",
|
|
528
|
+
"placeholder"
|
|
529
|
+
])]),
|
|
530
|
+
p("div", Pe, [p("label", Fe, [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.received-from", "接收开始日期")), 1), h(b(re), {
|
|
531
|
+
value: R.value,
|
|
532
|
+
"onUpdate:value": t[5] ||= (e) => R.value = e,
|
|
533
|
+
type: "date",
|
|
534
|
+
disabled: B.value
|
|
535
|
+
}, null, 8, ["value", "disabled"])]), p("label", Ie, [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.received-until", "接收结束日期")), 1), h(b(re), {
|
|
536
|
+
value: z.value,
|
|
537
|
+
"onUpdate:value": t[6] ||= (e) => z.value = e,
|
|
538
|
+
type: "date",
|
|
539
|
+
disabled: B.value
|
|
540
|
+
}, null, 8, ["value", "disabled"])])]),
|
|
541
|
+
p("div", Le, [h(b(i), {
|
|
542
|
+
disabled: B.value || N.value,
|
|
543
|
+
onClick: gt
|
|
544
|
+
}, {
|
|
545
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
|
|
546
|
+
_: 1
|
|
547
|
+
}, 8, ["disabled"]), h(b(i), {
|
|
548
|
+
disabled: B.value || N.value,
|
|
549
|
+
onClick: _t
|
|
550
|
+
}, {
|
|
551
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
552
|
+
_: 1
|
|
553
|
+
}, 8, ["disabled"])])
|
|
554
|
+
])]),
|
|
555
|
+
cell: S(({ column: e, record: t, value: n }) => [p("span", { class: Te({ "workflow-urgency": e.key === "urgency" && t.overtimeStatus === "overdue" }) }, y(n ?? "—"), 3)]),
|
|
556
|
+
_: 1
|
|
557
|
+
}, 8, [
|
|
558
|
+
"title",
|
|
559
|
+
"columns",
|
|
560
|
+
"rows",
|
|
561
|
+
"selected-row-key",
|
|
562
|
+
"quick-search-value",
|
|
563
|
+
"quick-search-placeholder",
|
|
564
|
+
"quick-search-disabled",
|
|
565
|
+
"total",
|
|
566
|
+
"pages",
|
|
567
|
+
"page-num",
|
|
568
|
+
"page-size",
|
|
569
|
+
"pagination-disabled"
|
|
570
|
+
]),
|
|
571
|
+
h(b(ae), {
|
|
572
|
+
open: !!M.value,
|
|
573
|
+
title: M.value ? it(M.value, H.value?.title) : b(g).t("platform.screen.WorkflowWorkbenchView.business-processing-details", "业务办理详情"),
|
|
574
|
+
width: "wide",
|
|
575
|
+
"before-close": mt,
|
|
576
|
+
onClose: t[12] ||= (e) => M.value = void 0
|
|
577
|
+
}, {
|
|
578
|
+
operation: S(() => [h(b(i), {
|
|
579
|
+
disabled: B.value,
|
|
580
|
+
onClick: ht
|
|
581
|
+
}, {
|
|
582
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.close-details", "关闭详情")), 1)]),
|
|
583
|
+
_: 1
|
|
584
|
+
}, 8, ["disabled"])]),
|
|
585
|
+
default: S(() => [
|
|
586
|
+
U.value ? (_(), f("p", Re, y(b(g).t("platform.screen.WorkflowWorkbenchView.loading-business-details", "加载业务详情…")), 1)) : d("v-if", !0),
|
|
587
|
+
W.value ? (_(), u(b(se), {
|
|
588
|
+
key: 1,
|
|
589
|
+
title: b(g).t("platform.screen.WorkflowWorkbenchView.unable-to-read-business-details", "无法读取业务详情"),
|
|
590
|
+
message: W.value
|
|
591
|
+
}, null, 8, ["title", "message"])) : d("v-if", !0),
|
|
592
|
+
W.value ? (_(), u(b(i), {
|
|
593
|
+
key: 2,
|
|
594
|
+
onClick: pt
|
|
595
|
+
}, {
|
|
596
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
|
|
597
|
+
_: 1
|
|
598
|
+
})) : d("v-if", !0),
|
|
599
|
+
H.value ? (_(), u(b(pe), {
|
|
600
|
+
key: 3,
|
|
601
|
+
record: H.value,
|
|
602
|
+
fields: ct.value,
|
|
603
|
+
"option-context": V.value
|
|
604
|
+
}, null, 8, [
|
|
605
|
+
"record",
|
|
606
|
+
"fields",
|
|
607
|
+
"option-context"
|
|
608
|
+
])) : d("v-if", !0),
|
|
609
|
+
M.value && V.value && H.value && !U.value && !W.value ? (_(), u(b(de), {
|
|
610
|
+
ref_key: "panel",
|
|
611
|
+
ref: tt,
|
|
612
|
+
key: M.value.instanceId,
|
|
613
|
+
context: V.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) => B.value = e,
|
|
618
|
+
onChanged: vt
|
|
619
|
+
}, null, 8, [
|
|
620
|
+
"context",
|
|
621
|
+
"record-id",
|
|
622
|
+
"instance-id",
|
|
623
|
+
"record-submission"
|
|
624
|
+
])) : d("v-if", !0)
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
}, 8, ["open", "title"]),
|
|
628
|
+
h(b(ae), {
|
|
629
|
+
open: q.value,
|
|
630
|
+
title: X.value.id ? b(g).t("platform.screen.WorkflowWorkbenchView.edit-personal-delegation", "编辑个人委托") : b(g).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置"),
|
|
631
|
+
"before-close": Et,
|
|
632
|
+
onClose: t[18] ||= (e) => q.value = !1
|
|
633
|
+
}, {
|
|
634
|
+
operation: S(() => [h(b(i), {
|
|
635
|
+
type: "primary",
|
|
636
|
+
loading: J.value,
|
|
637
|
+
onClick: Dt
|
|
638
|
+
}, {
|
|
639
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.save-delegation-rule", "保存委托规则")), 1)]),
|
|
640
|
+
_: 1
|
|
641
|
+
}, 8, ["loading"]), h(b(i), {
|
|
642
|
+
disabled: J.value,
|
|
643
|
+
onClick: wt
|
|
644
|
+
}, {
|
|
645
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.new-rule", "新建规则")), 1)]),
|
|
646
|
+
_: 1
|
|
647
|
+
}, 8, ["disabled"])]),
|
|
648
|
+
default: S(() => [
|
|
649
|
+
Y.value ? (_(), u(b(se), {
|
|
650
|
+
key: 0,
|
|
651
|
+
title: b(g).t("platform.screen.WorkflowWorkbenchView.complete-the-delegation-rule", "请完善委托规则"),
|
|
652
|
+
message: Y.value
|
|
653
|
+
}, null, 8, ["title", "message"])) : d("v-if", !0),
|
|
654
|
+
p("div", ze, [
|
|
655
|
+
p("label", Be, [h(b(s), { required: "" }, {
|
|
656
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.rule-name", "规则名称")), 1)]),
|
|
657
|
+
_: 1
|
|
658
|
+
}), h(b(re), {
|
|
659
|
+
value: X.value.title,
|
|
660
|
+
"onUpdate:value": t[13] ||= (e) => X.value.title = e,
|
|
661
|
+
disabled: J.value
|
|
662
|
+
}, null, 8, ["value", "disabled"])]),
|
|
663
|
+
p("label", Ve, [h(b(s), { required: "" }, {
|
|
664
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.delegate", "代办人")), 1)]),
|
|
665
|
+
_: 1
|
|
666
|
+
}), h(b(me), {
|
|
667
|
+
value: X.value.delegateUserId,
|
|
668
|
+
"onUpdate:value": t[14] ||= (e) => X.value.delegateUserId = e,
|
|
669
|
+
context: Ye.value,
|
|
670
|
+
"load-options": Ke.value,
|
|
671
|
+
mode: "list",
|
|
672
|
+
"title-of": G,
|
|
673
|
+
disabled: J.value
|
|
674
|
+
}, null, 8, [
|
|
675
|
+
"value",
|
|
676
|
+
"context",
|
|
677
|
+
"load-options",
|
|
678
|
+
"disabled"
|
|
679
|
+
])]),
|
|
680
|
+
p("label", He, [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.applicable-scope", "适用范围")), 1), h(b(le), {
|
|
681
|
+
value: X.value.moduleScopeType,
|
|
682
|
+
"onUpdate:value": t[15] ||= (e) => X.value.moduleScopeType = e,
|
|
683
|
+
disabled: J.value,
|
|
684
|
+
"allow-clear": !1,
|
|
685
|
+
options: [{
|
|
686
|
+
value: "all",
|
|
687
|
+
label: b(g).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
|
|
688
|
+
}, {
|
|
689
|
+
value: "include",
|
|
690
|
+
label: b(g).t("platform.screen.WorkflowWorkbenchView.specified-business-modules", "指定业务模块")
|
|
691
|
+
}]
|
|
692
|
+
}, null, 8, [
|
|
693
|
+
"value",
|
|
694
|
+
"disabled",
|
|
695
|
+
"options"
|
|
696
|
+
])]),
|
|
697
|
+
X.value.moduleScopeType === "include" ? (_(), f("label", Ue, [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1), h(b(le), {
|
|
698
|
+
value: X.value.moduleAliases,
|
|
699
|
+
"onUpdate:value": t[16] ||= (e) => X.value.moduleAliases = e,
|
|
700
|
+
disabled: J.value,
|
|
701
|
+
options: rt.value,
|
|
702
|
+
mode: "multiple",
|
|
703
|
+
"show-search": ""
|
|
704
|
+
}, null, 8, [
|
|
705
|
+
"value",
|
|
706
|
+
"disabled",
|
|
707
|
+
"options"
|
|
708
|
+
])])) : d("v-if", !0),
|
|
709
|
+
h(b(ce), {
|
|
710
|
+
checked: X.value.principalCanProcess,
|
|
711
|
+
"onUpdate:checked": t[17] ||= (e) => X.value.principalCanProcess = e,
|
|
712
|
+
disabled: J.value
|
|
713
|
+
}, {
|
|
714
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.retain-my-processing-permission", "保留本人办理权限")), 1)]),
|
|
715
|
+
_: 1
|
|
716
|
+
}, 8, ["checked", "disabled"])
|
|
717
|
+
]),
|
|
718
|
+
p("p", null, y(b(g).t("platform.screen.WorkflowWorkbenchView.rules-affect-new-tasks-assigned-tasks-retain", "规则仅影响后续新任务,已分派任务保留原人员与权限快照。")), 1),
|
|
719
|
+
p("h3", null, y(b(g).t("platform.screen.WorkflowWorkbenchView.existing-delegation-rules", "现有委托规则")), 1),
|
|
720
|
+
(_(!0), f(we, null, Ee(yt.value, (e) => (_(), f("div", {
|
|
721
|
+
key: e.id,
|
|
722
|
+
class: "policy-row"
|
|
723
|
+
}, [
|
|
724
|
+
p("strong", null, y(e.title) + " · " + y(e.enabled ? b(g).t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : b(g).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")), 1),
|
|
725
|
+
h(b(me), {
|
|
726
|
+
value: e.delegateUserId,
|
|
727
|
+
context: Ye.value,
|
|
728
|
+
"load-options": Ke.value,
|
|
729
|
+
mode: "list",
|
|
730
|
+
"title-of": G,
|
|
731
|
+
disabled: ""
|
|
732
|
+
}, null, 8, [
|
|
733
|
+
"value",
|
|
734
|
+
"context",
|
|
735
|
+
"load-options"
|
|
736
|
+
]),
|
|
737
|
+
p("span", null, y(e.moduleScopeType === "all" ? b(g).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块") : e.moduleAliases?.map((e) => et.value[e] ?? e).join("、")), 1),
|
|
738
|
+
p("div", null, [h(b(i), {
|
|
739
|
+
disabled: J.value,
|
|
740
|
+
onClick: (t) => Tt(e)
|
|
741
|
+
}, {
|
|
742
|
+
default: S(() => [m(y(b(g).t("platform.screen.WorkflowWorkbenchView.edit-rule", "编辑规则")), 1)]),
|
|
743
|
+
_: 1
|
|
744
|
+
}, 8, ["disabled", "onClick"]), h(b(i), {
|
|
745
|
+
disabled: J.value,
|
|
746
|
+
onClick: (t) => Ot(e)
|
|
747
|
+
}, {
|
|
748
|
+
default: S(() => [m(y(e.enabled ? b(g).t("platform.screen.WorkflowWorkbenchView.disable-rule", "停用规则") : b(g).t("platform.screen.WorkflowWorkbenchView.enable-rule", "启用规则")), 1)]),
|
|
749
|
+
_: 2
|
|
750
|
+
}, 1032, ["disabled", "onClick"])])
|
|
751
|
+
]))), 128))
|
|
752
|
+
]),
|
|
753
|
+
_: 1
|
|
754
|
+
}, 8, ["open", "title"])
|
|
755
|
+
]));
|
|
756
|
+
}
|
|
757
|
+
}), [["__scopeId", "data-v-1abc0f24"]]);
|
|
758
|
+
//#endregion
|
|
759
|
+
export { C as default };
|