@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.
Files changed (25) hide show
  1. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.d.ts +4 -0
  2. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js +293 -154
  3. package/dist/components/Tools/ActionTracking/CreateAction/CreateActionForm.js.map +1 -1
  4. package/dist/components/Tools/ActionTracking/CreateAction/index.d.ts +2 -2
  5. package/dist/components/Tools/ActionTracking/CreateAction/types.d.ts +13 -0
  6. package/dist/components/Tools/Inbox/InboxBell/InboxBell.d.ts +2 -0
  7. package/dist/components/Tools/Inbox/InboxBell/InboxBell.js.map +1 -1
  8. package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.d.ts +7 -0
  9. package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js +60 -45
  10. package/dist/components/Tools/Inbox/InboxBell/inboxItemActions.js.map +1 -1
  11. package/dist/components/Tools/Inbox/InboxBell/index.d.ts +1 -1
  12. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js +134 -142
  13. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/MessageTemplateAdmin.js.map +1 -1
  14. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/PushRulesPanel/index.d.ts +6 -5
  15. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/PushRulesPanel/index.js +233 -194
  16. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/PushRulesPanel/index.js.map +1 -1
  17. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/index.d.ts +1 -1
  18. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.d.ts +24 -3
  19. package/dist/components/Tools/MessageCenter/MessageTemplateAdmin/types.js.map +1 -1
  20. package/dist/components/Tools/MessageCenter/index.d.ts +1 -1
  21. package/dist/components/Tools/MessageCenter/utils/audienceUserSelectOptions.d.ts +11 -5
  22. package/dist/components/Tools/MessageCenter/utils/audienceUserSelectOptions.js +15 -26
  23. package/dist/components/Tools/MessageCenter/utils/audienceUserSelectOptions.js.map +1 -1
  24. package/dist/components/Tools/index.d.ts +1 -1
  25. 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 X } from "react/jsx-runtime";
2
- import { useState as u, useRef as ye, useMemo as S, useCallback as pe, useEffect as F } from "react";
3
- import Se from "../../../Form/FormDataSync.js";
4
- import { message as b } from "antd";
5
- import w from "classnames";
6
- import J from "./PersonRoleCascaderField.js";
7
- import { SetFormFields as be } from "./SetFormFields.js";
8
- import p from "./CreateActionForm.module.scss.js";
9
- import { createPagedSuperSelectApi as Pe, pagedSuperSelectGetSearchProps as ve, pagedSuperSelectPagination as Fe } from "../../../Form/createPagedSuperSelectApi.js";
10
- import { Input as I, TextArea as Ie, DatePicker as Ce } from "../../../FormInfo/fields.js";
11
- import { SuperSelect as P } from "../../../Form/SuperSelect.js";
12
- import Ue from "../../../FormInfo/FormInfo.js";
13
- import { useFormApi as Ve } from "@kne/react-form";
14
- const C = 20, U = 15e3;
15
- function V(e, o) {
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
- e.then(
18
- (l) => ({ status: "fulfilled", value: l }),
19
- (l) => ({ status: "rejected", reason: l })
17
+ t.then(
18
+ (d) => ({ status: "fulfilled", value: d }),
19
+ (d) => ({ status: "rejected", reason: d })
20
20
  ),
21
- new Promise((l) => {
22
- setTimeout(() => l({ status: "rejected", reason: new Error("timeout") }), o);
21
+ new Promise((d) => {
22
+ setTimeout(() => d({ status: "rejected", reason: new Error("timeout") }), m);
23
23
  })
24
24
  ]);
25
25
  }
26
- function Ee(e) {
27
- return e == null || e === "" ? "" : Array.isArray(e) ? String(e[0] ?? "").trim() : typeof e == "object" ? String(e.value ?? "").trim() : String(e).trim();
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 qe(e, o) {
30
- return o ? /* @__PURE__ */ X("span", { className: p["assignee-option"], children: [
31
- /* @__PURE__ */ a("span", { className: p["assignee-option-name"], children: e }),
32
- /* @__PURE__ */ a("span", { className: p["assignee-option-org"], children: o })
33
- ] }) : e;
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 ze = ({
36
- scopeLock: e,
37
- varietyLabel: o,
38
- lockedContext: l,
39
- scopeMode: O = "form",
40
- titlePlaceholder: R,
41
- descriptionPlaceholder: k,
42
- metricPlaceholder: L,
43
- noneScopeHint: E,
44
- dimensionOptions: ee,
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: te = "暂无执行人",
47
- emptyAllocatorHint: re = "暂无分配人",
48
- allocatorPlaceholder: ae = "先选角色,再选分配人",
49
- assigneePlaceholder: le = "先选角色,再选执行人",
50
- allocatorDisabled: ne = !0,
51
- defaultAssigneeUserId: ie = "",
52
- onAssigneeOptionsReady: s,
53
- onAllocatorOptionsReady: m
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 q, z, H, W;
56
- const T = Ve(), [oe, D] = u([]), [ue, M] = u([]), [f, N] = u([]), [_, x] = u(!0), [A, j] = u(!1), [B, se] = u(""), [Y, G] = u(() => {
57
- var t;
58
- return ((t = e == null ? void 0 : e.factory) == null ? void 0 : t.trim()) || "";
59
- }), d = ye(((q = e == null ? void 0 : e.factory) == null ? void 0 : q.trim()) || ""), c = !!(l && l.length > 0), g = (c ? "locked" : O === "none" ? "none" : "form") === "none", $ = !!((z = e == null ? void 0 : e.factory) != null && z.trim()), h = !!((H = e == null ? void 0 : e.variety) != null && H.trim()), me = !!((W = e == null ? void 0 : e.metric) != null && W.trim()), y = typeof n.loadVarietyPage == "function", K = !!Y || h, fe = S(() => {
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 t = (r = e == null ? void 0 : e.factory) == null ? void 0 : r.trim();
62
- return !t || f.some((i) => i.value === t) ? f : [{ value: t, label: t }, ...f];
63
- }, [f, e == null ? void 0 : e.factory]), Q = S(() => {
64
- if (!y || !n.loadVarietyPage) return;
65
- const t = n.loadVarietyPage;
66
- return Pe({
67
- pageSize: C,
68
- loadPage: (r) => t({
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: d.current
88
+ factory: b.current
71
89
  }),
72
- onError: () => b.error("品种列表加载失败")
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
- }, [y, n.loadVarietyPage]), de = S(
75
- () => ve(C),
121
+ }, [f, S, n.loadAssigneeUsersPage, N]), qe = p(
122
+ () => Ie(J),
76
123
  []
77
- ), ce = S(
78
- () => Fe(C),
124
+ ), Ke = p(
125
+ () => Ee(J),
79
126
  []
80
- ), ge = pe(
81
- (t) => {
82
- if (c || g) return;
83
- const r = Ee(t.factory);
84
- if (r === d.current) return;
85
- const i = d.current;
86
- d.current = r, G(r), i && r !== i && y && !h && queueMicrotask(() => {
87
- T.openApi.setFieldValue({ name: "variety" }, "", { runValidate: !1 });
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
- [T.openApi, y, h, c, g]
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 t = ((r = e == null ? void 0 : e.factory) == null ? void 0 : r.trim()) || "";
95
- t && (d.current = t, G(t));
96
- }, [e == null ? void 0 : e.factory]), F(() => {
97
- let t = !1;
98
- return x(!0), Promise.all([
99
- V(n.loadAssigneeCatalog(), U),
100
- V(n.loadAllocatorCatalog(), U)
101
- ]).then(([r, i]) => {
102
- if (!t)
103
- if (r.status === "fulfilled" ? (D(r.value.cascadeOptions), s == null || s(r.value.options)) : (b.error("执行人列表加载失败"), D([]), s == null || s([])), i.status === "fulfilled") {
104
- M(i.value.cascadeOptions), m == null || m(i.value.options);
105
- const Z = n.pickDefaultAllocatorUserId;
106
- se(Z ? Z(i.value.options) : "");
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
- b.error("分配人列表加载失败"), M([]), m == null || m([]);
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
- t || x(!1);
202
+ e || ne(!1);
111
203
  }), () => {
112
- t = !0;
204
+ e = !0;
113
205
  };
114
206
  }, []), F(() => {
115
- if (c || g || !n.loadFactoryOptions) return;
116
- let t = !1;
117
- return j(!0), V(n.loadFactoryOptions(), U).then((r) => {
118
- t || (r.status === "fulfilled" ? N(r.value) : (b.error("分厂列表加载失败"), N([])));
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
- t || j(!1);
215
+ e || se(!1);
121
216
  }), () => {
122
- t = !0;
217
+ e = !0;
123
218
  };
124
219
  }, []);
125
- const he = c ? (l || []).map((t, r) => /* @__PURE__ */ a(
126
- I,
220
+ const We = C ? (d || []).map((e, r) => /* @__PURE__ */ a(
221
+ M,
127
222
  {
128
223
  name: `lockedContext_${r}`,
129
- label: t.label,
224
+ label: e.label,
130
225
  disabled: !0
131
226
  },
132
- `locked-${r}-${t.label}`
133
- )) : g ? [] : [
227
+ `locked-${r}-${e.label}`
228
+ )) : I ? [] : [
134
229
  /* @__PURE__ */ a(
135
- P,
230
+ v,
136
231
  {
137
232
  name: "factory",
138
233
  label: "分厂",
139
234
  single: !0,
140
- options: fe,
141
- placeholder: A ? "加载分厂…" : "选择分厂",
142
- disabled: A || $,
143
- allowClear: !$
235
+ options: Ye,
236
+ placeholder: ie ? "加载分厂…" : "选择分厂",
237
+ disabled: ie || fe,
238
+ allowClear: !fe
144
239
  },
145
240
  "factory"
146
241
  ),
147
- y && Q ? /* @__PURE__ */ a(
148
- P,
242
+ U && ge ? /* @__PURE__ */ a(
243
+ v,
149
244
  {
150
245
  name: "variety",
151
- label: o || "品种",
246
+ label: m || "品种",
152
247
  single: !0,
153
- api: Q,
154
- getSearchProps: de,
155
- pagination: ce,
156
- placeholder: K ? "选择品种" : "请先选择分厂",
157
- disabled: h || !K,
158
- allowClear: !h,
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-${Y || "none"}`
256
+ `variety-${ce || "none"}`
162
257
  ) : /* @__PURE__ */ a(
163
- P,
258
+ v,
164
259
  {
165
260
  name: "variety",
166
- label: o || "品种",
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
- I,
270
+ M,
176
271
  {
177
272
  name: "metric",
178
273
  label: "关联指标",
179
- placeholder: L || "可选",
274
+ placeholder: Ve || "可选",
180
275
  maxLength: 40,
181
- disabled: me
276
+ disabled: we
182
277
  },
183
278
  "metric"
184
279
  )
185
- ], v = String(ie || "").trim();
186
- return /* @__PURE__ */ X("div", { className: w("create-action-form", p["create-action-form"]), children: [
187
- /* @__PURE__ */ a(Se, { onChange: ge }),
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
- be,
284
+ He,
190
285
  {
191
286
  patch: {
192
- allocatorUserId: B,
193
- ...v ? { assigneeUserId: v } : {}
287
+ allocatorUserId: oe,
288
+ allocatorDisplay: je,
289
+ ...Q ? { assigneeUserId: Q } : {}
194
290
  }
195
291
  }
196
292
  ),
197
293
  /* @__PURE__ */ a(
198
- Ue,
294
+ ke,
199
295
  {
200
296
  column: 1,
201
297
  list: [
202
298
  /* @__PURE__ */ a(
203
- I,
299
+ M,
204
300
  {
205
301
  name: "title",
206
302
  label: "任务标题",
207
303
  rule: "REQ",
208
- placeholder: R || "请输入任务标题",
304
+ placeholder: Ae || "请输入任务标题",
209
305
  maxLength: 120
210
306
  },
211
307
  "title"
212
308
  ),
213
309
  /* @__PURE__ */ a(
214
- Ie,
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: k || "说明目前情况、问题与需改进点,便于执行人理解背景"
318
+ placeholder: De || "说明目前情况、问题与需改进点,便于执行人理解背景"
223
319
  },
224
320
  "description"
225
321
  ),
226
322
  /* @__PURE__ */ a(
227
- P,
323
+ v,
228
324
  {
229
325
  name: "dimension",
230
326
  label: "任务类型",
231
327
  rule: "REQ",
232
328
  single: !0,
233
- options: ee,
329
+ options: Ne,
234
330
  placeholder: "选择任务类型"
235
331
  },
236
332
  "dimension"
237
333
  ),
238
- /* @__PURE__ */ a(
239
- J,
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: ue,
244
- loading: _,
245
- disabled: ne,
246
- emptyHint: re,
247
- placeholder: ae,
248
- defaultUserId: B
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
- J,
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: oe,
258
- loading: _,
259
- emptyHint: te,
260
- placeholder: le,
261
- defaultUserId: v
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
- Ce,
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
- ...he
415
+ ...We
278
416
  ]
279
417
  }
280
418
  ),
281
- g && E ? /* @__PURE__ */ a("p", { className: w("create-action-none-hint", p["create-action-none-hint"]), children: E }) : null
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
- C as CREATE_ACTION_VARIETY_PAGE_SIZE,
286
- ze as default,
287
- qe as renderPersonOptionLabel
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