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