@vef-framework-react/approval 2.24.0 → 2.24.1
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/cjs/components/action-dialog/index.cjs +1 -0
- package/dist/cjs/components/detail/action-modals.cjs +1 -1
- package/dist/cjs/pages/admin-page/tasks.cjs +1 -1
- package/dist/es/api/admin-api.js +1 -1
- package/dist/es/api/category-api.js +1 -1
- package/dist/es/api/delegation-api.js +1 -1
- package/dist/es/api/flow-api.js +1 -1
- package/dist/es/api/index.js +1 -1
- package/dist/es/api/instance-api.js +1 -1
- package/dist/es/api/my-api.js +1 -1
- package/dist/es/api/query.js +1 -1
- package/dist/es/components/action-dialog/index.js +60 -0
- package/dist/es/components/detail/action-modals.js +264 -233
- package/dist/es/components/detail/admin.js +1 -1
- package/dist/es/components/detail/drawer.js +1 -1
- package/dist/es/components/detail/index.js +1 -1
- package/dist/es/components/flow-graph/index.js +1 -1
- package/dist/es/components/flow-graph/node.js +1 -1
- package/dist/es/components/flow-graph/people-overlay.js +1 -1
- package/dist/es/components/flow-graph/people.js +1 -1
- package/dist/es/components/form-panel/index.js +1 -1
- package/dist/es/components/format.js +1 -1
- package/dist/es/components/icon.js +1 -1
- package/dist/es/components/index.js +1 -1
- package/dist/es/components/principal/index.js +1 -1
- package/dist/es/components/status/colors.js +1 -1
- package/dist/es/components/status/index.js +1 -1
- package/dist/es/components/status/labels.js +1 -1
- package/dist/es/components/timeline/index.js +1 -1
- package/dist/es/components/user/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/pages/admin-page/index.js +1 -1
- package/dist/es/pages/admin-page/instances.js +1 -1
- package/dist/es/pages/admin-page/metrics.js +1 -1
- package/dist/es/pages/admin-page/projections.js +1 -1
- package/dist/es/pages/admin-page/tasks.js +66 -70
- package/dist/es/pages/category-page/columns.js +1 -1
- package/dist/es/pages/category-page/form.js +1 -1
- package/dist/es/pages/category-page/index.js +1 -1
- package/dist/es/pages/delegation-page/columns.js +1 -1
- package/dist/es/pages/delegation-page/form.js +1 -1
- package/dist/es/pages/delegation-page/index.js +1 -1
- package/dist/es/pages/flow-page/columns.js +1 -1
- package/dist/es/pages/flow-page/designer/basic-step.js +1 -1
- package/dist/es/pages/flow-page/designer/flow-step.js +1 -1
- package/dist/es/pages/flow-page/designer/form-step.js +1 -1
- package/dist/es/pages/flow-page/designer/index.js +1 -1
- package/dist/es/pages/flow-page/designer/review-step.js +1 -1
- package/dist/es/pages/flow-page/designer/types.js +1 -1
- package/dist/es/pages/flow-page/index.js +1 -1
- package/dist/es/pages/flow-page/search.js +1 -1
- package/dist/es/pages/flow-page/versions.js +1 -1
- package/dist/es/pages/index.js +1 -1
- package/dist/es/pages/initiate-page/index.js +1 -1
- package/dist/es/pages/initiate-page/start-drawer.js +1 -1
- package/dist/es/pages/my-instances-page/index.js +1 -1
- package/dist/es/pages/task-center-page/index.js +1 -1
- package/dist/es/pages/task-center-page/search.js +1 -1
- package/dist/es/permissions.js +1 -1
- package/dist/es/plugins/index.js +1 -1
- package/dist/es/types/enums.js +1 -1
- package/dist/es/types/index.js +1 -1
- package/dist/types/components/action-dialog/index.d.ts +44 -0
- package/package.json +7 -7
|
@@ -1,280 +1,311 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { TASK_STATUS_LABELS as e } from "../status/labels.js";
|
|
3
3
|
import { isTaskStatus as t } from "../status/index.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { ActionDialog as n, ActionFooter as r, useConfirm as i } from "../action-dialog/index.js";
|
|
5
|
+
import { PrincipalSelect as a } from "../principal/index.js";
|
|
6
|
+
import { useState as o } from "react";
|
|
7
|
+
import { Input as s, Labeled as c, Radio as l, Select as u, Stack as d } from "@vef-framework-react/components";
|
|
8
|
+
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
8
9
|
//#region src/components/detail/action-modals.tsx
|
|
9
|
-
var
|
|
10
|
+
var h = {
|
|
10
11
|
before: "前加签(先于我处理)",
|
|
11
12
|
after: "后加签(我处理后接续)",
|
|
12
13
|
parallel: "并行加签(与我同时处理)"
|
|
13
14
|
};
|
|
14
|
-
function
|
|
15
|
-
let [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
15
|
+
function g({ onClose: e, onConfirm: t }) {
|
|
16
|
+
let [n, l] = o([]), [u, h] = o(""), { submitting: g, run: _ } = i(e), v = n[0];
|
|
17
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(d, {
|
|
18
|
+
gap: 12,
|
|
19
|
+
style: { paddingBlock: 8 },
|
|
20
|
+
children: [/* @__PURE__ */ p(c, {
|
|
21
|
+
label: "转办给",
|
|
22
|
+
children: /* @__PURE__ */ p(a, {
|
|
23
|
+
kind: "user",
|
|
24
|
+
maxCount: 1,
|
|
25
|
+
value: n,
|
|
26
|
+
onChange: l
|
|
27
|
+
})
|
|
28
|
+
}), /* @__PURE__ */ p(c, {
|
|
29
|
+
label: "转办说明",
|
|
30
|
+
children: /* @__PURE__ */ p(s.TextArea, {
|
|
31
|
+
maxLength: 2e3,
|
|
32
|
+
placeholder: "请输入转办说明(可选)",
|
|
33
|
+
rows: 3,
|
|
34
|
+
value: u,
|
|
35
|
+
onChange: (e) => h(e.target.value)
|
|
36
|
+
})
|
|
37
|
+
})]
|
|
38
|
+
}), /* @__PURE__ */ p(r, {
|
|
39
|
+
disabled: v === void 0,
|
|
38
40
|
okText: "转办",
|
|
41
|
+
submitting: g,
|
|
42
|
+
onCancel: e,
|
|
43
|
+
onOk: () => v !== void 0 && void _(() => t(v, u))
|
|
44
|
+
})] });
|
|
45
|
+
}
|
|
46
|
+
function _({ open: e, onClose: t, onConfirm: r }) {
|
|
47
|
+
return /* @__PURE__ */ p(n, {
|
|
39
48
|
open: e,
|
|
40
49
|
title: "转办",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
style: { paddingBlock: 8 },
|
|
46
|
-
children: [/* @__PURE__ */ d(o, {
|
|
47
|
-
label: "转办给",
|
|
48
|
-
children: /* @__PURE__ */ d(n, {
|
|
49
|
-
kind: "user",
|
|
50
|
-
maxCount: 1,
|
|
51
|
-
value: l,
|
|
52
|
-
onChange: p
|
|
53
|
-
})
|
|
54
|
-
}), /* @__PURE__ */ d(o, {
|
|
55
|
-
label: "转办说明",
|
|
56
|
-
children: /* @__PURE__ */ d(a.TextArea, {
|
|
57
|
-
maxLength: 2e3,
|
|
58
|
-
placeholder: "请输入转办说明(可选)",
|
|
59
|
-
rows: 3,
|
|
60
|
-
value: h,
|
|
61
|
-
onChange: (e) => g(e.target.value)
|
|
62
|
-
})
|
|
63
|
-
})]
|
|
50
|
+
onClose: t,
|
|
51
|
+
children: /* @__PURE__ */ p(g, {
|
|
52
|
+
onClose: t,
|
|
53
|
+
onConfirm: r
|
|
64
54
|
})
|
|
65
55
|
});
|
|
66
56
|
}
|
|
67
|
-
function
|
|
68
|
-
let [
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
57
|
+
function v({ targets: e, onClose: t, onConfirm: n }) {
|
|
58
|
+
let [a, l] = o(() => e.length === 1 ? e[0]?.nodeId : void 0), [h, g] = o(""), { submitting: _, run: v } = i(t);
|
|
59
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(d, {
|
|
60
|
+
gap: 12,
|
|
61
|
+
style: { paddingBlock: 8 },
|
|
62
|
+
children: [/* @__PURE__ */ p(c, {
|
|
63
|
+
label: "回退至",
|
|
64
|
+
children: /* @__PURE__ */ p(u, {
|
|
65
|
+
placeholder: "选择回退节点",
|
|
66
|
+
style: { width: "100%" },
|
|
67
|
+
value: a,
|
|
68
|
+
options: e.map((e) => ({
|
|
69
|
+
label: e.name,
|
|
70
|
+
value: e.nodeId
|
|
71
|
+
})),
|
|
72
|
+
onChange: l
|
|
73
|
+
})
|
|
74
|
+
}), /* @__PURE__ */ p(c, {
|
|
75
|
+
label: "回退说明",
|
|
76
|
+
children: /* @__PURE__ */ p(s.TextArea, {
|
|
77
|
+
maxLength: 2e3,
|
|
78
|
+
placeholder: "请输入回退说明(可选)",
|
|
79
|
+
rows: 3,
|
|
80
|
+
value: h,
|
|
81
|
+
onChange: (e) => g(e.target.value)
|
|
82
|
+
})
|
|
83
|
+
})]
|
|
84
|
+
}), /* @__PURE__ */ p(r, {
|
|
85
|
+
disabled: a === void 0,
|
|
74
86
|
okText: "回退",
|
|
87
|
+
submitting: _,
|
|
88
|
+
onCancel: t,
|
|
89
|
+
onOk: () => a !== void 0 && void v(() => n(a, h))
|
|
90
|
+
})] });
|
|
91
|
+
}
|
|
92
|
+
function y({ open: e, onClose: t, targets: r, onConfirm: i }) {
|
|
93
|
+
return /* @__PURE__ */ p(n, {
|
|
75
94
|
open: e,
|
|
76
95
|
title: "回退",
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: [/* @__PURE__ */ d(o, {
|
|
83
|
-
label: "回退至",
|
|
84
|
-
children: /* @__PURE__ */ d(l, {
|
|
85
|
-
placeholder: "选择回退节点",
|
|
86
|
-
style: { width: "100%" },
|
|
87
|
-
value: p,
|
|
88
|
-
options: n.map((e) => ({
|
|
89
|
-
label: e.name,
|
|
90
|
-
value: e.nodeId
|
|
91
|
-
})),
|
|
92
|
-
onChange: h
|
|
93
|
-
})
|
|
94
|
-
}), /* @__PURE__ */ d(o, {
|
|
95
|
-
label: "回退说明",
|
|
96
|
-
children: /* @__PURE__ */ d(a.TextArea, {
|
|
97
|
-
maxLength: 2e3,
|
|
98
|
-
placeholder: "请输入回退说明(可选)",
|
|
99
|
-
rows: 3,
|
|
100
|
-
value: g,
|
|
101
|
-
onChange: (e) => _(e.target.value)
|
|
102
|
-
})
|
|
103
|
-
})]
|
|
96
|
+
onClose: t,
|
|
97
|
+
children: /* @__PURE__ */ p(v, {
|
|
98
|
+
targets: r,
|
|
99
|
+
onClose: t,
|
|
100
|
+
onConfirm: i
|
|
104
101
|
})
|
|
105
102
|
});
|
|
106
103
|
}
|
|
107
|
-
function
|
|
108
|
-
let [
|
|
109
|
-
return
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
function b({ allowedTypes: e, onClose: t, onConfirm: n }) {
|
|
105
|
+
let [s, u] = o([]), [g, _] = o(() => e.length === 1 ? e[0] : void 0), { submitting: v, run: y } = i(t);
|
|
106
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(d, {
|
|
107
|
+
gap: 12,
|
|
108
|
+
style: { paddingBlock: 8 },
|
|
109
|
+
children: [/* @__PURE__ */ p(c, {
|
|
110
|
+
label: "加签人员",
|
|
111
|
+
children: /* @__PURE__ */ p(a, {
|
|
112
|
+
kind: "user",
|
|
113
|
+
maxCount: 50,
|
|
114
|
+
value: s,
|
|
115
|
+
onChange: u
|
|
116
|
+
})
|
|
117
|
+
}), /* @__PURE__ */ p(c, {
|
|
118
|
+
label: "加签方式",
|
|
119
|
+
children: /* @__PURE__ */ p(l.Group, {
|
|
120
|
+
value: g,
|
|
121
|
+
options: e.map((e) => ({
|
|
122
|
+
label: h[e],
|
|
123
|
+
value: e
|
|
124
|
+
})),
|
|
125
|
+
onChange: (e) => {
|
|
126
|
+
let t = e.target.value;
|
|
127
|
+
(t === "before" || t === "after" || t === "parallel") && _(t);
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
})]
|
|
131
|
+
}), /* @__PURE__ */ p(r, {
|
|
132
|
+
disabled: s.length === 0 || g === void 0,
|
|
114
133
|
okText: "加签",
|
|
115
|
-
|
|
116
|
-
title: "加签",
|
|
134
|
+
submitting: v,
|
|
117
135
|
onCancel: t,
|
|
118
136
|
onOk: () => {
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}), /* @__PURE__ */ d(o, {
|
|
133
|
-
label: "加签方式",
|
|
134
|
-
children: /* @__PURE__ */ d(c.Group, {
|
|
135
|
-
value: _,
|
|
136
|
-
options: a.map((e) => ({
|
|
137
|
-
label: p[e],
|
|
138
|
-
value: e
|
|
139
|
-
})),
|
|
140
|
-
onChange: (e) => {
|
|
141
|
-
let t = e.target.value;
|
|
142
|
-
(t === "before" || t === "after" || t === "parallel") && v(t);
|
|
143
|
-
}
|
|
144
|
-
})
|
|
145
|
-
})]
|
|
137
|
+
s.length > 0 && g !== void 0 && y(() => n(s, g));
|
|
138
|
+
}
|
|
139
|
+
})] });
|
|
140
|
+
}
|
|
141
|
+
function x({ open: e, onClose: t, allowedTypes: r, onConfirm: i }) {
|
|
142
|
+
return /* @__PURE__ */ p(n, {
|
|
143
|
+
open: e,
|
|
144
|
+
title: "加签",
|
|
145
|
+
onClose: t,
|
|
146
|
+
children: /* @__PURE__ */ p(b, {
|
|
147
|
+
allowedTypes: r,
|
|
148
|
+
onClose: t,
|
|
149
|
+
onConfirm: i
|
|
146
150
|
})
|
|
147
151
|
});
|
|
148
152
|
}
|
|
149
|
-
function
|
|
150
|
-
let [
|
|
151
|
-
return
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
function S({ targets: n, onClose: a, onConfirm: s }) {
|
|
154
|
+
let [l, h] = o(() => n.length === 1 ? n[0]?.taskId : void 0), { submitting: g, run: _ } = i(a);
|
|
155
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(d, {
|
|
156
|
+
gap: 12,
|
|
157
|
+
style: { paddingBlock: 8 },
|
|
158
|
+
children: /* @__PURE__ */ p(c, {
|
|
159
|
+
hint: "移除后该审批人不再参与本节点审批。",
|
|
160
|
+
label: "移除审批人",
|
|
161
|
+
children: /* @__PURE__ */ p(u, {
|
|
162
|
+
placeholder: "选择要移除的审批人",
|
|
163
|
+
style: { width: "100%" },
|
|
164
|
+
value: l,
|
|
165
|
+
options: n.map((n) => {
|
|
166
|
+
let r = t(n.status) ? e[n.status] : n.status;
|
|
167
|
+
return {
|
|
168
|
+
label: `${n.assignee.name || n.assignee.id}(${r})`,
|
|
169
|
+
value: n.taskId
|
|
170
|
+
};
|
|
171
|
+
}),
|
|
172
|
+
onChange: h
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
}), /* @__PURE__ */ p(r, {
|
|
176
|
+
danger: !0,
|
|
177
|
+
disabled: l === void 0,
|
|
159
178
|
okText: "减签",
|
|
160
|
-
|
|
161
|
-
title: "减签",
|
|
179
|
+
submitting: g,
|
|
162
180
|
onCancel: a,
|
|
163
|
-
onOk: () =>
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
let r = t(n.status) ? e[n.status] : n.status;
|
|
176
|
-
return {
|
|
177
|
-
label: `${n.assignee.name || n.assignee.id}(${r})`,
|
|
178
|
-
value: n.taskId
|
|
179
|
-
};
|
|
180
|
-
}),
|
|
181
|
-
onChange: h
|
|
182
|
-
})
|
|
183
|
-
})
|
|
181
|
+
onOk: () => l !== void 0 && void _(() => s(l))
|
|
182
|
+
})] });
|
|
183
|
+
}
|
|
184
|
+
function C({ open: e, onClose: t, targets: r, onConfirm: i }) {
|
|
185
|
+
return /* @__PURE__ */ p(n, {
|
|
186
|
+
open: e,
|
|
187
|
+
title: "减签",
|
|
188
|
+
onClose: t,
|
|
189
|
+
children: /* @__PURE__ */ p(S, {
|
|
190
|
+
targets: r,
|
|
191
|
+
onClose: t,
|
|
192
|
+
onConfirm: i
|
|
184
193
|
})
|
|
185
194
|
});
|
|
186
195
|
}
|
|
187
|
-
function
|
|
188
|
-
let [
|
|
189
|
-
return
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
function w({ onClose: e, onConfirm: t }) {
|
|
197
|
+
let [n, s] = o([]), { submitting: l, run: u } = i(e);
|
|
198
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(d, {
|
|
199
|
+
gap: 4,
|
|
200
|
+
style: { paddingBlock: 8 },
|
|
201
|
+
children: /* @__PURE__ */ p(c, {
|
|
202
|
+
label: "抄送给",
|
|
203
|
+
children: /* @__PURE__ */ p(a, {
|
|
204
|
+
kind: "user",
|
|
205
|
+
maxCount: 50,
|
|
206
|
+
value: n,
|
|
207
|
+
onChange: s
|
|
208
|
+
})
|
|
209
|
+
})
|
|
210
|
+
}), /* @__PURE__ */ p(r, {
|
|
211
|
+
disabled: n.length === 0,
|
|
194
212
|
okText: "抄送",
|
|
213
|
+
submitting: l,
|
|
214
|
+
onCancel: e,
|
|
215
|
+
onOk: () => n.length > 0 && void u(() => t(n))
|
|
216
|
+
})] });
|
|
217
|
+
}
|
|
218
|
+
function T({ open: e, onClose: t, onConfirm: r }) {
|
|
219
|
+
return /* @__PURE__ */ p(n, {
|
|
195
220
|
open: e,
|
|
196
221
|
title: "抄送",
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
style: { paddingBlock: 8 },
|
|
202
|
-
children: /* @__PURE__ */ d(o, {
|
|
203
|
-
label: "抄送给",
|
|
204
|
-
children: /* @__PURE__ */ d(n, {
|
|
205
|
-
kind: "user",
|
|
206
|
-
maxCount: 50,
|
|
207
|
-
value: c,
|
|
208
|
-
onChange: l
|
|
209
|
-
})
|
|
210
|
-
})
|
|
222
|
+
onClose: t,
|
|
223
|
+
children: /* @__PURE__ */ p(w, {
|
|
224
|
+
onClose: t,
|
|
225
|
+
onConfirm: r
|
|
211
226
|
})
|
|
212
227
|
});
|
|
213
228
|
}
|
|
214
|
-
function
|
|
215
|
-
let [
|
|
216
|
-
return
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
229
|
+
function E({ targets: e, onClose: t, onConfirm: n }) {
|
|
230
|
+
let [a, l] = o(() => e.length === 1 ? e[0]?.taskId : void 0), [h, g] = o(""), { submitting: _, run: v } = i(t);
|
|
231
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(d, {
|
|
232
|
+
gap: 12,
|
|
233
|
+
style: { paddingBlock: 8 },
|
|
234
|
+
children: [/* @__PURE__ */ p(c, {
|
|
235
|
+
label: "催办对象",
|
|
236
|
+
children: /* @__PURE__ */ p(u, {
|
|
237
|
+
placeholder: "选择待处理任务",
|
|
238
|
+
style: { width: "100%" },
|
|
239
|
+
value: a,
|
|
240
|
+
options: e.map((e) => ({
|
|
241
|
+
label: `${e.assigneeName}(${e.nodeName})`,
|
|
242
|
+
value: e.taskId
|
|
243
|
+
})),
|
|
244
|
+
onChange: l
|
|
245
|
+
})
|
|
246
|
+
}), /* @__PURE__ */ p(c, {
|
|
247
|
+
label: "催办消息",
|
|
248
|
+
children: /* @__PURE__ */ p(s.TextArea, {
|
|
249
|
+
maxLength: 500,
|
|
250
|
+
placeholder: "请输入催办消息(可选)",
|
|
251
|
+
rows: 3,
|
|
252
|
+
value: h,
|
|
253
|
+
onChange: (e) => g(e.target.value)
|
|
254
|
+
})
|
|
255
|
+
})]
|
|
256
|
+
}), /* @__PURE__ */ p(r, {
|
|
257
|
+
disabled: a === void 0,
|
|
221
258
|
okText: "催办",
|
|
259
|
+
submitting: _,
|
|
260
|
+
onCancel: t,
|
|
261
|
+
onOk: () => a !== void 0 && void v(() => n(a, h))
|
|
262
|
+
})] });
|
|
263
|
+
}
|
|
264
|
+
function D({ open: e, onClose: t, targets: r, onConfirm: i }) {
|
|
265
|
+
return /* @__PURE__ */ p(n, {
|
|
222
266
|
open: e,
|
|
223
267
|
title: "催办",
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
children: [/* @__PURE__ */ d(o, {
|
|
230
|
-
label: "催办对象",
|
|
231
|
-
children: /* @__PURE__ */ d(l, {
|
|
232
|
-
placeholder: "选择待处理任务",
|
|
233
|
-
style: { width: "100%" },
|
|
234
|
-
value: p,
|
|
235
|
-
options: n.map((e) => ({
|
|
236
|
-
label: `${e.assigneeName}(${e.nodeName})`,
|
|
237
|
-
value: e.taskId
|
|
238
|
-
})),
|
|
239
|
-
onChange: h
|
|
240
|
-
})
|
|
241
|
-
}), /* @__PURE__ */ d(o, {
|
|
242
|
-
label: "催办消息",
|
|
243
|
-
children: /* @__PURE__ */ d(a.TextArea, {
|
|
244
|
-
maxLength: 500,
|
|
245
|
-
placeholder: "请输入催办消息(可选)",
|
|
246
|
-
rows: 3,
|
|
247
|
-
value: g,
|
|
248
|
-
onChange: (e) => _(e.target.value)
|
|
249
|
-
})
|
|
250
|
-
})]
|
|
268
|
+
onClose: t,
|
|
269
|
+
children: /* @__PURE__ */ p(E, {
|
|
270
|
+
targets: r,
|
|
271
|
+
onClose: t,
|
|
272
|
+
onConfirm: i
|
|
251
273
|
})
|
|
252
274
|
});
|
|
253
275
|
}
|
|
254
|
-
function
|
|
255
|
-
let [
|
|
256
|
-
return
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
276
|
+
function O({ okText: e, danger: t, placeholder: n, onClose: a, onConfirm: c }) {
|
|
277
|
+
let [l, u] = o(""), { submitting: h, run: g } = i(a);
|
|
278
|
+
return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(d, {
|
|
279
|
+
gap: 4,
|
|
280
|
+
style: { paddingBlock: 8 },
|
|
281
|
+
children: /* @__PURE__ */ p(s.TextArea, {
|
|
282
|
+
maxLength: 2e3,
|
|
283
|
+
placeholder: n ?? "请输入原因(可选)",
|
|
284
|
+
rows: 3,
|
|
285
|
+
value: l,
|
|
286
|
+
onChange: (e) => u(e.target.value)
|
|
287
|
+
})
|
|
288
|
+
}), /* @__PURE__ */ p(r, {
|
|
289
|
+
danger: t,
|
|
290
|
+
okText: e,
|
|
291
|
+
submitting: h,
|
|
292
|
+
onCancel: a,
|
|
293
|
+
onOk: () => void g(() => c(l))
|
|
294
|
+
})] });
|
|
295
|
+
}
|
|
296
|
+
function k({ open: e, onClose: t, title: r, okText: i, danger: a, placeholder: o, onConfirm: s }) {
|
|
297
|
+
return /* @__PURE__ */ p(n, {
|
|
262
298
|
open: e,
|
|
263
|
-
title:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
placeholder: l ?? "请输入原因(可选)",
|
|
272
|
-
rows: 3,
|
|
273
|
-
value: p,
|
|
274
|
-
onChange: (e) => h(e.target.value)
|
|
275
|
-
})
|
|
299
|
+
title: r,
|
|
300
|
+
onClose: t,
|
|
301
|
+
children: /* @__PURE__ */ p(O, {
|
|
302
|
+
danger: a,
|
|
303
|
+
okText: i,
|
|
304
|
+
placeholder: o,
|
|
305
|
+
onClose: t,
|
|
306
|
+
onConfirm: s
|
|
276
307
|
})
|
|
277
308
|
});
|
|
278
309
|
}
|
|
279
310
|
//#endregion
|
|
280
|
-
export {
|
|
311
|
+
export { x as AddAssigneeModal, T as CCModal, k as ReasonModal, C as RemoveAssigneeModal, y as RollbackModal, _ as TransferModal, D as UrgeModal };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { useAdminApprovalApi as e } from "../../api/admin-api.js";
|
|
3
3
|
import { formatTimestamp as t } from "../format.js";
|
|
4
4
|
import { ACTIVITY_ACTION_LABELS as n } from "../status/labels.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { InstanceDetailPanel as e } from "./index.js";
|
|
3
3
|
import { Drawer as t } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { useInstanceApi as e } from "../../api/instance-api.js";
|
|
3
3
|
import { useMyApprovalApi as t } from "../../api/my-api.js";
|
|
4
4
|
import { useApprovalPlugins as n } from "../../plugins/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { ViewerNode as e } from "./node.js";
|
|
3
3
|
import { useMemo as t } from "react";
|
|
4
4
|
import { globalCssVars as n } from "@vef-framework-react/components";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { formatTimestamp as e } from "../format.js";
|
|
3
3
|
import { NODE_PROGRESS_LABELS as t } from "../status/labels.js";
|
|
4
4
|
import { collectNodePeople as n } from "./people.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { formatTimestamp as e } from "../format.js";
|
|
3
3
|
import { ACTIVITY_ACTION_LABELS as t } from "../status/labels.js";
|
|
4
4
|
import { personTone as n } from "./people.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { useApprovalPlugins as e } from "../../plugins/index.js";
|
|
3
3
|
import { Empty as t } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { DynamicIcon as e } from "@vef-framework-react/components";
|
|
3
3
|
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
4
|
//#region src/components/icon.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { formatDurationSeconds as e, formatTimestamp as t } from "./format.js";
|
|
3
3
|
import { ACTIVITY_ACTION_LABELS as n, BINDING_PROJECTION_STATUS_LABELS as r, BINDING_PROJECTION_STATUS_OPTIONS as i, INSTANCE_STATUS_LABELS as a, INSTANCE_STATUS_OPTIONS as o, NODE_PROGRESS_LABELS as s, PROCESS_TASK_ACTION_LABELS as c, TASK_STATUS_LABELS as l, TASK_STATUS_OPTIONS as u, VERSION_STATUS_LABELS as d } from "./status/labels.js";
|
|
4
4
|
import { BINDING_PROJECTION_STATUS_COLORS as f, INSTANCE_STATUS_COLORS as p, NODE_PROGRESS_COLORS as m, TASK_STATUS_COLORS as h, VERSION_STATUS_COLORS as g } from "./status/colors.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { useApprovalPlugins as e } from "../../plugins/index.js";
|
|
3
3
|
import { Select as t } from "@vef-framework-react/components";
|
|
4
4
|
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @vef-framework-react/approval v2.24.
|
|
1
|
+
/*! @vef-framework-react/approval v2.24.1 made by Venus | 2026-09-28T10:44:14.388Z */
|
|
2
2
|
import { BINDING_PROJECTION_STATUS_LABELS as e, INSTANCE_STATUS_LABELS as t, NODE_PROGRESS_LABELS as n, TASK_STATUS_LABELS as r, VERSION_STATUS_LABELS as i } from "./labels.js";
|
|
3
3
|
import { BINDING_PROJECTION_STATUS_COLORS as a, INSTANCE_STATUS_COLORS as o, NODE_PROGRESS_COLORS as s, TASK_STATUS_COLORS as c, VERSION_STATUS_COLORS as l } from "./colors.js";
|
|
4
4
|
import { Tag as u } from "@vef-framework-react/components";
|