@hkyhy/marsun-components-core 0.1.142 → 0.1.144
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/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +4 -0
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +293 -154
- package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
- package/dist/components/Tools/ActionTracking/CreateAction/index.d.ts +2 -2
- package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +13 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +2 -0
- package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -1
- package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.d.ts +7 -0
- package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js +60 -45
- package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js.map +1 -1
- package/dist/components/Tools/Inbox/InboxBell/index.d.ts +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js +134 -142
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js.map +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/PushRulesPanel/index.d.ts +6 -5
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/PushRulesPanel/index.js +233 -194
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/PushRulesPanel/index.js.map +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/index.d.ts +1 -1
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.d.ts +24 -3
- package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js.map +1 -1
- package/dist/components/Tools/MessageCenter/index.d.ts +1 -1
- package/dist/components/Tools/MessageCenter/utils/audienceUserSelectOptions.d.ts +11 -5
- package/dist/components/Tools/MessageCenter/utils/audienceUserSelectOptions.js +15 -26
- package/dist/components/Tools/MessageCenter/utils/audienceUserSelectOptions.js.map +1 -1
- package/dist/components/Tools/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { ActionPersonOption, CreateActionDimensionOption, CreateActionLoaders, CreateActionScopeLock, CreateActionScopeMode, LockedContextField } from './types';
|
|
3
3
|
/** 建单品种下拉页大小(服务端分页) */
|
|
4
4
|
export declare const CREATE_ACTION_VARIETY_PAGE_SIZE = 20;
|
|
5
|
+
/** 执行人按角色分页页大小 */
|
|
6
|
+
export declare const CREATE_ACTION_ASSIGNEE_PAGE_SIZE = 20;
|
|
5
7
|
export type CreateActionFormProps = {
|
|
6
8
|
scopeLock?: CreateActionScopeLock;
|
|
7
9
|
varietyLabel?: string;
|
|
@@ -32,6 +34,8 @@ export type CreateActionFormProps = {
|
|
|
32
34
|
allocatorDisabled?: boolean;
|
|
33
35
|
/** 编辑回填:执行人 userId(级联选项就绪后写入) */
|
|
34
36
|
defaultAssigneeUserId?: string;
|
|
37
|
+
/** 编辑回填:执行人展示名(联动选人时作 options 种子) */
|
|
38
|
+
defaultAssigneeLabel?: string;
|
|
35
39
|
onAssigneeOptionsReady?: (options: ActionPersonOption[]) => void;
|
|
36
40
|
onAllocatorOptionsReady?: (options: ActionPersonOption[]) => void;
|
|
37
41
|
};
|
|
@@ -1,169 +1,264 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
2
|
-
import { useState as u, useRef as
|
|
3
|
-
import
|
|
4
|
-
import { message as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { SetFormFields as
|
|
8
|
-
import
|
|
9
|
-
import { createPagedSuperSelectApi as
|
|
10
|
-
import { Input as
|
|
11
|
-
import { SuperSelect as
|
|
12
|
-
import
|
|
13
|
-
import { useFormApi as
|
|
14
|
-
const
|
|
15
|
-
function
|
|
1
|
+
import { jsx as a, jsxs as Ue } from "react/jsx-runtime";
|
|
2
|
+
import { useState as u, useRef as K, useCallback as Z, useMemo as p, useEffect as F } from "react";
|
|
3
|
+
import Xe from "../../../Form/FormDataSync.js";
|
|
4
|
+
import { message as y } from "antd";
|
|
5
|
+
import Pe from "classnames";
|
|
6
|
+
import be from "./PersonRoleCascaderField.js";
|
|
7
|
+
import { SetFormFields as He } from "./SetFormFields.js";
|
|
8
|
+
import A from "./CreateActionForm.module.scss.js";
|
|
9
|
+
import { createPagedSuperSelectApi as Ce, pagedSuperSelectGetSearchProps as Ie, pagedSuperSelectPagination as Ee } from "../../../Form/createPagedSuperSelectApi.js";
|
|
10
|
+
import { Input as M, TextArea as Oe, DatePicker as Re } from "../../../FormInfo/fields.js";
|
|
11
|
+
import { SuperSelect as v } from "../../../Form/SuperSelect.js";
|
|
12
|
+
import ke from "../../../FormInfo/FormInfo.js";
|
|
13
|
+
import { useFormApi as Le } from "@kne/react-form";
|
|
14
|
+
const W = 20, J = 20, _ = 15e3;
|
|
15
|
+
function x(t, m) {
|
|
16
16
|
return Promise.race([
|
|
17
|
-
|
|
18
|
-
(
|
|
19
|
-
(
|
|
17
|
+
t.then(
|
|
18
|
+
(d) => ({ status: "fulfilled", value: d }),
|
|
19
|
+
(d) => ({ status: "rejected", reason: d })
|
|
20
20
|
),
|
|
21
|
-
new Promise((
|
|
22
|
-
setTimeout(() =>
|
|
21
|
+
new Promise((d) => {
|
|
22
|
+
setTimeout(() => d({ status: "rejected", reason: new Error("timeout") }), m);
|
|
23
23
|
})
|
|
24
24
|
]);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return
|
|
26
|
+
function X(t) {
|
|
27
|
+
return t == null || t === "" ? "" : Array.isArray(t) ? String(t[0] ?? "").trim() : typeof t == "object" ? String(t.value ?? "").trim() : String(t).trim();
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return
|
|
31
|
-
/* @__PURE__ */ a("span", { className:
|
|
32
|
-
/* @__PURE__ */ a("span", { className:
|
|
33
|
-
] }) :
|
|
29
|
+
function gt(t, m) {
|
|
30
|
+
return m ? /* @__PURE__ */ Ue("span", { className: A["assignee-option"], children: [
|
|
31
|
+
/* @__PURE__ */ a("span", { className: A["assignee-option-name"], children: t }),
|
|
32
|
+
/* @__PURE__ */ a("span", { className: A["assignee-option-org"], children: m })
|
|
33
|
+
] }) : t;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
scopeLock:
|
|
37
|
-
varietyLabel:
|
|
38
|
-
lockedContext:
|
|
39
|
-
scopeMode:
|
|
40
|
-
titlePlaceholder:
|
|
41
|
-
descriptionPlaceholder:
|
|
42
|
-
metricPlaceholder:
|
|
43
|
-
noneScopeHint:
|
|
44
|
-
dimensionOptions:
|
|
35
|
+
const pt = ({
|
|
36
|
+
scopeLock: t,
|
|
37
|
+
varietyLabel: m,
|
|
38
|
+
lockedContext: d,
|
|
39
|
+
scopeMode: Fe = "form",
|
|
40
|
+
titlePlaceholder: Ae,
|
|
41
|
+
descriptionPlaceholder: De,
|
|
42
|
+
metricPlaceholder: Ve,
|
|
43
|
+
noneScopeHint: H,
|
|
44
|
+
dimensionOptions: Ne,
|
|
45
45
|
loaders: n,
|
|
46
|
-
emptyAssigneeHint:
|
|
47
|
-
emptyAllocatorHint:
|
|
48
|
-
allocatorPlaceholder:
|
|
49
|
-
assigneePlaceholder:
|
|
50
|
-
allocatorDisabled:
|
|
51
|
-
defaultAssigneeUserId:
|
|
52
|
-
|
|
53
|
-
|
|
46
|
+
emptyAssigneeHint: Te = "暂无执行人",
|
|
47
|
+
emptyAllocatorHint: D = "暂无分配人",
|
|
48
|
+
allocatorPlaceholder: Me = "先选角色,再选分配人",
|
|
49
|
+
assigneePlaceholder: O = "先选角色,再选执行人",
|
|
50
|
+
allocatorDisabled: R = !0,
|
|
51
|
+
defaultAssigneeUserId: V = "",
|
|
52
|
+
defaultAssigneeLabel: G = "",
|
|
53
|
+
onAssigneeOptionsReady: c,
|
|
54
|
+
onAllocatorOptionsReady: h
|
|
54
55
|
}) => {
|
|
55
|
-
var
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
var he, Se, ye, ve;
|
|
57
|
+
const $ = Le(), f = !!(n.loadAssigneeRoles && n.loadAssigneeUsersPage), [_e, k] = u([]), [L, ee] = u([]), [S, xe] = u(""), [B, Ge] = u(() => {
|
|
58
|
+
const e = String(V || "").trim();
|
|
59
|
+
if (!e) return [];
|
|
60
|
+
const r = String(G || e).trim() || e;
|
|
61
|
+
return [{ value: e, label: r }];
|
|
62
|
+
}), j = K(/* @__PURE__ */ new Map()), [$e, te] = u([]), [P, re] = u([]), [w, ae] = u(!0), [le, ne] = u(!1), [ie, se] = u(!1), [oe, Be] = u(""), [je, ue] = u(""), [ce, de] = u(() => {
|
|
63
|
+
var e;
|
|
64
|
+
return ((e = t == null ? void 0 : t.factory) == null ? void 0 : e.trim()) || "";
|
|
65
|
+
}), b = K(((he = t == null ? void 0 : t.factory) == null ? void 0 : he.trim()) || ""), Y = K(""), N = Z(() => {
|
|
66
|
+
c == null || c([...j.current.values()]);
|
|
67
|
+
}, [c]), T = Z(
|
|
68
|
+
(e, r) => {
|
|
69
|
+
const l = String(e || "").trim();
|
|
70
|
+
if (!l) return;
|
|
71
|
+
const i = String(r || l).trim() || l;
|
|
72
|
+
j.current.set(l, { value: l, displayName: i }), Ge(
|
|
73
|
+
(s) => s.some((o) => o.value === l) ? s : [{ value: l, label: i }, ...s]
|
|
74
|
+
), N();
|
|
75
|
+
},
|
|
76
|
+
[N]
|
|
77
|
+
), C = !!(d && d.length > 0), I = (C ? "locked" : Fe === "none" ? "none" : "form") === "none", fe = !!((Se = t == null ? void 0 : t.factory) != null && Se.trim()), E = !!((ye = t == null ? void 0 : t.variety) != null && ye.trim()), we = !!((ve = t == null ? void 0 : t.metric) != null && ve.trim()), U = typeof n.loadVarietyPage == "function", me = !!ce || E, Ye = p(() => {
|
|
60
78
|
var r;
|
|
61
|
-
const
|
|
62
|
-
return !
|
|
63
|
-
}, [
|
|
64
|
-
if (!
|
|
65
|
-
const
|
|
66
|
-
return
|
|
67
|
-
pageSize:
|
|
68
|
-
loadPage: (r) =>
|
|
79
|
+
const e = (r = t == null ? void 0 : t.factory) == null ? void 0 : r.trim();
|
|
80
|
+
return !e || P.some((l) => l.value === e) ? P : [{ value: e, label: e }, ...P];
|
|
81
|
+
}, [P, t == null ? void 0 : t.factory]), ge = p(() => {
|
|
82
|
+
if (!U || !n.loadVarietyPage) return;
|
|
83
|
+
const e = n.loadVarietyPage;
|
|
84
|
+
return Ce({
|
|
85
|
+
pageSize: W,
|
|
86
|
+
loadPage: (r) => e({
|
|
69
87
|
...r,
|
|
70
|
-
factory:
|
|
88
|
+
factory: b.current
|
|
71
89
|
}),
|
|
72
|
-
onError: () =>
|
|
90
|
+
onError: () => y.error("品种列表加载失败")
|
|
91
|
+
});
|
|
92
|
+
}, [U, n.loadVarietyPage]), Qe = p(
|
|
93
|
+
() => Ie(W),
|
|
94
|
+
[]
|
|
95
|
+
), ze = p(
|
|
96
|
+
() => Ee(W),
|
|
97
|
+
[]
|
|
98
|
+
), pe = p(() => {
|
|
99
|
+
if (!f || !S || !n.loadAssigneeUsersPage)
|
|
100
|
+
return;
|
|
101
|
+
const e = n.loadAssigneeUsersPage, r = S;
|
|
102
|
+
return Ce({
|
|
103
|
+
pageSize: J,
|
|
104
|
+
loadPage: async (l) => {
|
|
105
|
+
const i = await e({
|
|
106
|
+
...l,
|
|
107
|
+
roleCode: r
|
|
108
|
+
});
|
|
109
|
+
for (const s of i.pageData || []) {
|
|
110
|
+
const o = String(s.value || "").trim();
|
|
111
|
+
o && j.current.set(o, {
|
|
112
|
+
value: o,
|
|
113
|
+
displayName: String(s.label || o),
|
|
114
|
+
employeeId: String(s.employeeId || "").trim() || void 0
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
return N(), i;
|
|
118
|
+
},
|
|
119
|
+
onError: () => y.error("执行人列表加载失败")
|
|
73
120
|
});
|
|
74
|
-
}, [
|
|
75
|
-
() =>
|
|
121
|
+
}, [f, S, n.loadAssigneeUsersPage, N]), qe = p(
|
|
122
|
+
() => Ie(J),
|
|
76
123
|
[]
|
|
77
|
-
),
|
|
78
|
-
() =>
|
|
124
|
+
), Ke = p(
|
|
125
|
+
() => Ee(J),
|
|
79
126
|
[]
|
|
80
|
-
),
|
|
81
|
-
(
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
127
|
+
), Ze = Z(
|
|
128
|
+
(e) => {
|
|
129
|
+
if (f) {
|
|
130
|
+
const i = X(e.assigneeRoleCode);
|
|
131
|
+
if (i !== Y.current) {
|
|
132
|
+
const o = Y.current;
|
|
133
|
+
Y.current = i, xe(i), o && i !== o && queueMicrotask(() => {
|
|
134
|
+
$.openApi.setFieldValue({ name: "assigneeUserId" }, "", {
|
|
135
|
+
runValidate: !1
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
const s = X(e.assigneeUserId);
|
|
140
|
+
if (s) {
|
|
141
|
+
const o = B.find((g) => g.value === s);
|
|
142
|
+
o && T(s, String(o.label || s));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (C || I) return;
|
|
146
|
+
const r = X(e.factory);
|
|
147
|
+
if (r === b.current) return;
|
|
148
|
+
const l = b.current;
|
|
149
|
+
b.current = r, de(r), l && r !== l && U && !E && queueMicrotask(() => {
|
|
150
|
+
$.openApi.setFieldValue({ name: "variety" }, "", { runValidate: !1 });
|
|
88
151
|
});
|
|
89
152
|
},
|
|
90
|
-
[
|
|
153
|
+
[
|
|
154
|
+
$.openApi,
|
|
155
|
+
U,
|
|
156
|
+
E,
|
|
157
|
+
C,
|
|
158
|
+
I,
|
|
159
|
+
f,
|
|
160
|
+
B,
|
|
161
|
+
T
|
|
162
|
+
]
|
|
91
163
|
);
|
|
92
164
|
F(() => {
|
|
93
165
|
var r;
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
}, [
|
|
97
|
-
let
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
166
|
+
const e = ((r = t == null ? void 0 : t.factory) == null ? void 0 : r.trim()) || "";
|
|
167
|
+
e && (b.current = e, de(e));
|
|
168
|
+
}, [t == null ? void 0 : t.factory]), F(() => {
|
|
169
|
+
let e = !1;
|
|
170
|
+
ae(!0);
|
|
171
|
+
const r = f ? Promise.resolve({
|
|
172
|
+
status: "fulfilled",
|
|
173
|
+
value: {
|
|
174
|
+
cascadeOptions: [],
|
|
175
|
+
options: []
|
|
176
|
+
}
|
|
177
|
+
}) : x(n.loadAssigneeCatalog(), _);
|
|
178
|
+
return Promise.all([
|
|
179
|
+
r,
|
|
180
|
+
x(n.loadAllocatorCatalog(), _)
|
|
181
|
+
]).then(([l, i]) => {
|
|
182
|
+
if (!e)
|
|
183
|
+
if (f || (l.status === "fulfilled" ? (k(l.value.cascadeOptions), c == null || c(l.value.options)) : (y.error("执行人列表加载失败"), k([]), c == null || c([]))), i.status === "fulfilled") {
|
|
184
|
+
te(i.value.cascadeOptions), h == null || h(i.value.options);
|
|
185
|
+
const s = n.pickDefaultAllocatorUserId, o = s ? s(i.value.options) : "";
|
|
186
|
+
Be(o);
|
|
187
|
+
const g = i.value.options.find((Je) => Je.value === o), z = String((g == null ? void 0 : g.displayName) || "").trim(), q = String((g == null ? void 0 : g.employeeId) || "").trim();
|
|
188
|
+
ue(z && q ? `${z} · ${q}` : z || q || D);
|
|
107
189
|
} else
|
|
108
|
-
|
|
190
|
+
y.error("分配人列表加载失败"), te([]), h == null || h([]), ue(D);
|
|
191
|
+
}).finally(() => {
|
|
192
|
+
e || ae(!1);
|
|
193
|
+
}), () => {
|
|
194
|
+
e = !0;
|
|
195
|
+
};
|
|
196
|
+
}, []), F(() => {
|
|
197
|
+
if (!f || !n.loadAssigneeRoles) return;
|
|
198
|
+
let e = !1;
|
|
199
|
+
return ne(!0), x(n.loadAssigneeRoles(), _).then((r) => {
|
|
200
|
+
e || (r.status === "fulfilled" ? ee(r.value) : (y.error("执行人角色加载失败"), ee([])));
|
|
109
201
|
}).finally(() => {
|
|
110
|
-
|
|
202
|
+
e || ne(!1);
|
|
111
203
|
}), () => {
|
|
112
|
-
|
|
204
|
+
e = !0;
|
|
113
205
|
};
|
|
114
206
|
}, []), F(() => {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
207
|
+
const e = String(V || "").trim();
|
|
208
|
+
e && T(e, String(G || e));
|
|
209
|
+
}, [V, G, T]), F(() => {
|
|
210
|
+
if (C || I || !n.loadFactoryOptions) return;
|
|
211
|
+
let e = !1;
|
|
212
|
+
return se(!0), x(n.loadFactoryOptions(), _).then((r) => {
|
|
213
|
+
e || (r.status === "fulfilled" ? re(r.value) : (y.error("分厂列表加载失败"), re([])));
|
|
119
214
|
}).finally(() => {
|
|
120
|
-
|
|
215
|
+
e || se(!1);
|
|
121
216
|
}), () => {
|
|
122
|
-
|
|
217
|
+
e = !0;
|
|
123
218
|
};
|
|
124
219
|
}, []);
|
|
125
|
-
const
|
|
126
|
-
|
|
220
|
+
const We = C ? (d || []).map((e, r) => /* @__PURE__ */ a(
|
|
221
|
+
M,
|
|
127
222
|
{
|
|
128
223
|
name: `lockedContext_${r}`,
|
|
129
|
-
label:
|
|
224
|
+
label: e.label,
|
|
130
225
|
disabled: !0
|
|
131
226
|
},
|
|
132
|
-
`locked-${r}-${
|
|
133
|
-
)) :
|
|
227
|
+
`locked-${r}-${e.label}`
|
|
228
|
+
)) : I ? [] : [
|
|
134
229
|
/* @__PURE__ */ a(
|
|
135
|
-
|
|
230
|
+
v,
|
|
136
231
|
{
|
|
137
232
|
name: "factory",
|
|
138
233
|
label: "分厂",
|
|
139
234
|
single: !0,
|
|
140
|
-
options:
|
|
141
|
-
placeholder:
|
|
142
|
-
disabled:
|
|
143
|
-
allowClear:
|
|
235
|
+
options: Ye,
|
|
236
|
+
placeholder: ie ? "加载分厂…" : "选择分厂",
|
|
237
|
+
disabled: ie || fe,
|
|
238
|
+
allowClear: !fe
|
|
144
239
|
},
|
|
145
240
|
"factory"
|
|
146
241
|
),
|
|
147
|
-
|
|
148
|
-
|
|
242
|
+
U && ge ? /* @__PURE__ */ a(
|
|
243
|
+
v,
|
|
149
244
|
{
|
|
150
245
|
name: "variety",
|
|
151
|
-
label:
|
|
246
|
+
label: m || "品种",
|
|
152
247
|
single: !0,
|
|
153
|
-
api:
|
|
154
|
-
getSearchProps:
|
|
155
|
-
pagination:
|
|
156
|
-
placeholder:
|
|
157
|
-
disabled:
|
|
158
|
-
allowClear: !
|
|
248
|
+
api: ge,
|
|
249
|
+
getSearchProps: Qe,
|
|
250
|
+
pagination: ze,
|
|
251
|
+
placeholder: me ? "选择品种" : "请先选择分厂",
|
|
252
|
+
disabled: E || !me,
|
|
253
|
+
allowClear: !E,
|
|
159
254
|
searchPlaceholder: "搜索品种"
|
|
160
255
|
},
|
|
161
|
-
`variety-${
|
|
256
|
+
`variety-${ce || "none"}`
|
|
162
257
|
) : /* @__PURE__ */ a(
|
|
163
|
-
|
|
258
|
+
v,
|
|
164
259
|
{
|
|
165
260
|
name: "variety",
|
|
166
|
-
label:
|
|
261
|
+
label: m || "品种",
|
|
167
262
|
single: !0,
|
|
168
263
|
options: [],
|
|
169
264
|
placeholder: "App 未注入 loadVarietyPage",
|
|
@@ -172,46 +267,47 @@ const ze = ({
|
|
|
172
267
|
"variety"
|
|
173
268
|
),
|
|
174
269
|
/* @__PURE__ */ a(
|
|
175
|
-
|
|
270
|
+
M,
|
|
176
271
|
{
|
|
177
272
|
name: "metric",
|
|
178
273
|
label: "关联指标",
|
|
179
|
-
placeholder:
|
|
274
|
+
placeholder: Ve || "可选",
|
|
180
275
|
maxLength: 40,
|
|
181
|
-
disabled:
|
|
276
|
+
disabled: we
|
|
182
277
|
},
|
|
183
278
|
"metric"
|
|
184
279
|
)
|
|
185
|
-
],
|
|
186
|
-
return /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */ a(
|
|
280
|
+
], Q = String(V || "").trim();
|
|
281
|
+
return /* @__PURE__ */ Ue("div", { className: Pe("create-action-form", A["create-action-form"]), children: [
|
|
282
|
+
/* @__PURE__ */ a(Xe, { onChange: Ze }),
|
|
188
283
|
/* @__PURE__ */ a(
|
|
189
|
-
|
|
284
|
+
He,
|
|
190
285
|
{
|
|
191
286
|
patch: {
|
|
192
|
-
allocatorUserId:
|
|
193
|
-
|
|
287
|
+
allocatorUserId: oe,
|
|
288
|
+
allocatorDisplay: je,
|
|
289
|
+
...Q ? { assigneeUserId: Q } : {}
|
|
194
290
|
}
|
|
195
291
|
}
|
|
196
292
|
),
|
|
197
293
|
/* @__PURE__ */ a(
|
|
198
|
-
|
|
294
|
+
ke,
|
|
199
295
|
{
|
|
200
296
|
column: 1,
|
|
201
297
|
list: [
|
|
202
298
|
/* @__PURE__ */ a(
|
|
203
|
-
|
|
299
|
+
M,
|
|
204
300
|
{
|
|
205
301
|
name: "title",
|
|
206
302
|
label: "任务标题",
|
|
207
303
|
rule: "REQ",
|
|
208
|
-
placeholder:
|
|
304
|
+
placeholder: Ae || "请输入任务标题",
|
|
209
305
|
maxLength: 120
|
|
210
306
|
},
|
|
211
307
|
"title"
|
|
212
308
|
),
|
|
213
309
|
/* @__PURE__ */ a(
|
|
214
|
-
|
|
310
|
+
Oe,
|
|
215
311
|
{
|
|
216
312
|
name: "description",
|
|
217
313
|
label: "任务描述",
|
|
@@ -219,51 +315,93 @@ const ze = ({
|
|
|
219
315
|
rows: 5,
|
|
220
316
|
block: !0,
|
|
221
317
|
maxLength: 2e3,
|
|
222
|
-
placeholder:
|
|
318
|
+
placeholder: De || "说明目前情况、问题与需改进点,便于执行人理解背景"
|
|
223
319
|
},
|
|
224
320
|
"description"
|
|
225
321
|
),
|
|
226
322
|
/* @__PURE__ */ a(
|
|
227
|
-
|
|
323
|
+
v,
|
|
228
324
|
{
|
|
229
325
|
name: "dimension",
|
|
230
326
|
label: "任务类型",
|
|
231
327
|
rule: "REQ",
|
|
232
328
|
single: !0,
|
|
233
|
-
options:
|
|
329
|
+
options: Ne,
|
|
234
330
|
placeholder: "选择任务类型"
|
|
235
331
|
},
|
|
236
332
|
"dimension"
|
|
237
333
|
),
|
|
238
|
-
/* @__PURE__ */ a(
|
|
239
|
-
|
|
334
|
+
R ? /* @__PURE__ */ a(
|
|
335
|
+
M,
|
|
336
|
+
{
|
|
337
|
+
name: "allocatorDisplay",
|
|
338
|
+
label: "分配人",
|
|
339
|
+
disabled: !0,
|
|
340
|
+
placeholder: w ? "加载中…" : D
|
|
341
|
+
},
|
|
342
|
+
"allocatorDisplay"
|
|
343
|
+
) : /* @__PURE__ */ a(
|
|
344
|
+
be,
|
|
240
345
|
{
|
|
241
346
|
name: "allocatorUserId",
|
|
242
347
|
label: "分配人",
|
|
243
|
-
cascadeOptions:
|
|
244
|
-
loading:
|
|
245
|
-
disabled:
|
|
246
|
-
emptyHint:
|
|
247
|
-
placeholder:
|
|
248
|
-
defaultUserId:
|
|
348
|
+
cascadeOptions: $e,
|
|
349
|
+
loading: w,
|
|
350
|
+
disabled: R,
|
|
351
|
+
emptyHint: D,
|
|
352
|
+
placeholder: Me,
|
|
353
|
+
defaultUserId: oe
|
|
249
354
|
},
|
|
250
355
|
"allocatorUserId"
|
|
251
356
|
),
|
|
252
|
-
/* @__PURE__ */ a(
|
|
253
|
-
|
|
357
|
+
f ? /* @__PURE__ */ a(
|
|
358
|
+
v,
|
|
359
|
+
{
|
|
360
|
+
name: "assigneeRoleCode",
|
|
361
|
+
label: "执行人角色",
|
|
362
|
+
rule: "REQ",
|
|
363
|
+
single: !0,
|
|
364
|
+
options: L,
|
|
365
|
+
placeholder: le ? "加载角色…" : "先选择角色",
|
|
366
|
+
disabled: le || !L.length,
|
|
367
|
+
allowClear: !0,
|
|
368
|
+
searchPlaceholder: "搜索角色"
|
|
369
|
+
},
|
|
370
|
+
"assigneeRoleCode"
|
|
371
|
+
) : null,
|
|
372
|
+
f ? /* @__PURE__ */ a(
|
|
373
|
+
v,
|
|
374
|
+
{
|
|
375
|
+
name: "assigneeUserId",
|
|
376
|
+
label: "执行人",
|
|
377
|
+
rule: "REQ",
|
|
378
|
+
single: !0,
|
|
379
|
+
api: pe,
|
|
380
|
+
options: B,
|
|
381
|
+
getSearchProps: qe,
|
|
382
|
+
pagination: Ke,
|
|
383
|
+
placeholder: S ? O || "搜索姓名/工号选择执行人" : "请先选择角色",
|
|
384
|
+
disabled: !S || !pe,
|
|
385
|
+
allowClear: !0,
|
|
386
|
+
searchPlaceholder: "搜索姓名/工号",
|
|
387
|
+
overlayStyle: { zIndex: 2e3 }
|
|
388
|
+
},
|
|
389
|
+
`assigneeUserId-${S || "none"}`
|
|
390
|
+
) : /* @__PURE__ */ a(
|
|
391
|
+
be,
|
|
254
392
|
{
|
|
255
393
|
name: "assigneeUserId",
|
|
256
394
|
label: "执行人",
|
|
257
|
-
cascadeOptions:
|
|
258
|
-
loading:
|
|
259
|
-
emptyHint:
|
|
260
|
-
placeholder:
|
|
261
|
-
defaultUserId:
|
|
395
|
+
cascadeOptions: _e,
|
|
396
|
+
loading: w,
|
|
397
|
+
emptyHint: Te,
|
|
398
|
+
placeholder: O,
|
|
399
|
+
defaultUserId: Q
|
|
262
400
|
},
|
|
263
401
|
"assigneeUserId"
|
|
264
402
|
),
|
|
265
403
|
/* @__PURE__ */ a(
|
|
266
|
-
|
|
404
|
+
Re,
|
|
267
405
|
{
|
|
268
406
|
name: "dueDate",
|
|
269
407
|
label: "截止日期",
|
|
@@ -274,16 +412,17 @@ const ze = ({
|
|
|
274
412
|
},
|
|
275
413
|
"dueDate"
|
|
276
414
|
),
|
|
277
|
-
...
|
|
415
|
+
...We
|
|
278
416
|
]
|
|
279
417
|
}
|
|
280
418
|
),
|
|
281
|
-
|
|
419
|
+
I && H ? /* @__PURE__ */ a("p", { className: Pe("create-action-none-hint", A["create-action-none-hint"]), children: H }) : null
|
|
282
420
|
] });
|
|
283
421
|
};
|
|
284
422
|
export {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
423
|
+
J as CREATE_ACTION_ASSIGNEE_PAGE_SIZE,
|
|
424
|
+
W as CREATE_ACTION_VARIETY_PAGE_SIZE,
|
|
425
|
+
pt as default,
|
|
426
|
+
gt as renderPersonOptionLabel
|
|
288
427
|
};
|
|
289
428
|
//# sourceMappingURL=CreateActionForm.js.map
|