@ximatai/muyun-web-app 0.26.4 → 0.26.6
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/{EmployeeDetailWorkspaceView-BySbWjCV.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
- package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-BfGb_ssB.js} +336 -336
- package/dist/MetadataOrchestrationView-BLxigKBh.js +655 -0
- package/dist/{ModuleActionManagementView-DRtYMXOK.js → ModuleActionManagementView-ByJzNkQs.js} +102 -102
- package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-DJSWY3fu.js} +62 -62
- package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
- package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-D0e9nLwW.js} +295 -295
- package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
- package/dist/{SystemUserManagementView-TKqj92zG.js → SystemUserManagementView-DNKRvmDk.js} +198 -198
- package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
- package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-aY2AeeWK.js} +287 -287
- package/dist/index.css +1 -1
- package/dist/index.js +2384 -2410
- package/dist/pageRealtime-Be2xkeKK.js +225 -0
- package/dist/{platform-components-CgMBopmF.js → platform-components-DuAohqJO.js} +2732 -1546
- package/dist/types/app/workbenchRouteSync.d.ts +13 -0
- package/dist/types/consumer/index.d.ts +10 -2
- package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
- package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
- package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
- package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
- package/dist/types/platform-admin-runtime/index.d.ts +3 -0
- package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
- package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
- package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
- package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
- package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +15 -0
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
- package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
- package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
- package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
- package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
- package/dist/types/platform-components/index.d.ts +14 -1
- package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
- package/dist/types/platform-components/platformFileSize.d.ts +10 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
- package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
- package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
- package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
- package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
- package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
- package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
- package/dist/types/platform-workbench/index.d.ts +7 -0
- package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
- package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
- package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
- package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
- package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
- package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
- package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/types.d.ts +3 -9
- package/dist/types/web-contracts/index.d.ts +111 -1
- package/dist/types/web-core/clients.d.ts +6 -1
- package/dist/types/web-core/http.d.ts +12 -1
- package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
- package/dist/{useUserSessionRows-DHsyr2Vy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
- package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
- package/package.json +1 -1
- package/dist/MetadataOrchestrationView-2JxJkFEC.js +0 -655
- package/dist/pageRealtime-CJriNmzP.js +0 -140
- package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import {
|
|
3
|
-
import { a as Ee, i as De, r as Oe } from "./pageRealtime-
|
|
1
|
+
import { $ as e, A as t, C as n, Et as r, F as i, Fn as a, I as o, J as s, L as ee, M as te, N as ne, Nt as c, O as re, P as l, R as ie, S as u, T as ae, Tt as d, _ as f, at as oe, b as se, c as ce, ct as le, d as ue, ft as p, i as de, l as fe, m as pe, p as me, pt as he, r as ge, s as _e, st as m, tt as ve, v as h, vn as ye, xt as g, y as be } from "./platform-components-DuAohqJO.js";
|
|
2
|
+
import { i as xe, n as Se, r as Ce, t as _, u as we, x as Te } from "./workspaceViewSessions-C3GP1UGp.js";
|
|
3
|
+
import { a as Ee, i as De, r as Oe } from "./pageRealtime-Be2xkeKK.js";
|
|
4
4
|
import { Fragment as ke, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, normalizeClass as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as E, ref as D, renderList as Ne, toDisplayString as O, unref as k, watch as Pe, withCtx as A, withModifiers as j } from "vue";
|
|
5
5
|
//#region src/views/employeeDetailStateModel.ts
|
|
6
6
|
function Fe(e) {
|
|
@@ -33,7 +33,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
33
33
|
}, B = {
|
|
34
34
|
key: 3,
|
|
35
35
|
class: "employment-empty"
|
|
36
|
-
}, Ve = /*#__PURE__*/
|
|
36
|
+
}, Ve = /*#__PURE__*/ r(/* @__PURE__ */ T({
|
|
37
37
|
name: "EmployeeEmploymentDrawer",
|
|
38
38
|
__name: "EmployeeEmploymentDrawer",
|
|
39
39
|
props: {
|
|
@@ -41,8 +41,8 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
41
41
|
employee: {}
|
|
42
42
|
},
|
|
43
43
|
emits: ["close", "saved"],
|
|
44
|
-
setup(
|
|
45
|
-
let r =
|
|
44
|
+
setup(t, { emit: n }) {
|
|
45
|
+
let r = t, a = n, o = c({ moduleAlias: "iam.employee" }), ee = c({ moduleAlias: "iam.organization" }), te = c({ moduleAlias: "iam.department" }), ne = c({ moduleAlias: "iam.position" }), re = D([]), l = D(!1), ie = D(!1), u = D(!1), ae = D(!1), f = D(me()), ce = [
|
|
46
46
|
{
|
|
47
47
|
key: "position",
|
|
48
48
|
title: "岗位",
|
|
@@ -63,19 +63,19 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
63
63
|
title: "主岗位",
|
|
64
64
|
width: 80
|
|
65
65
|
}
|
|
66
|
-
],
|
|
66
|
+
], ue = v(() => `任职管理 - ${ge(r.employee)}`), de = v(() => re.value), fe = v(() => _e(te, {
|
|
67
67
|
scopeFieldName: "organizationId",
|
|
68
|
-
scopeValue:
|
|
68
|
+
scopeValue: f.value.organizationId,
|
|
69
69
|
treePath: "/iam.department/tree",
|
|
70
70
|
sortPath: "/iam.department/sort"
|
|
71
|
-
})),
|
|
71
|
+
})), pe = v(() => {
|
|
72
72
|
let e = r.employee;
|
|
73
|
-
return !!(e?.organizationId && e?.departmentId && e.organizationId ===
|
|
73
|
+
return !!(e?.organizationId && e?.departmentId && e.organizationId === f.value.organizationId && e.departmentId === f.value.departmentId);
|
|
74
74
|
});
|
|
75
75
|
Pe(() => [r.open, r.employee?.id], ([e]) => {
|
|
76
|
-
e ?
|
|
76
|
+
e ? h() : ye();
|
|
77
77
|
}, { immediate: !0 });
|
|
78
|
-
function
|
|
78
|
+
function me() {
|
|
79
79
|
return {
|
|
80
80
|
primaryPosition: !1,
|
|
81
81
|
enabled: !0
|
|
@@ -84,71 +84,71 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
84
84
|
function ge(e) {
|
|
85
85
|
return String(e?.title ?? e?.employeeNo ?? e?.id ?? "职员");
|
|
86
86
|
}
|
|
87
|
-
async function
|
|
88
|
-
let
|
|
89
|
-
if (
|
|
90
|
-
|
|
87
|
+
async function h() {
|
|
88
|
+
let t = r.employee?.id;
|
|
89
|
+
if (t) {
|
|
90
|
+
l.value = !0, ie.value = !1;
|
|
91
91
|
try {
|
|
92
|
-
|
|
93
|
-
} catch (
|
|
94
|
-
|
|
92
|
+
re.value = (await o.http.request({ path: `/iam.employee/${encodeURIComponent(t)}/employment-view` })).records;
|
|
93
|
+
} catch (t) {
|
|
94
|
+
ie.value = !0, e(t, {
|
|
95
95
|
source: "employee-employment",
|
|
96
96
|
phase: "load"
|
|
97
97
|
});
|
|
98
98
|
} finally {
|
|
99
|
-
|
|
99
|
+
l.value = !1;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
103
|
+
function ye() {
|
|
104
|
+
ae.value = !1, f.value = me();
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
106
|
+
function g() {
|
|
107
|
+
f.value = {
|
|
108
108
|
organizationId: r.employee?.organizationId,
|
|
109
109
|
departmentId: r.employee?.departmentId,
|
|
110
110
|
primaryPosition: !1,
|
|
111
111
|
enabled: !0
|
|
112
|
-
},
|
|
112
|
+
}, ae.value = !0;
|
|
113
113
|
}
|
|
114
114
|
function xe(e) {
|
|
115
|
-
|
|
115
|
+
f.value = { ...e }, ae.value = !0;
|
|
116
116
|
}
|
|
117
117
|
function Se(e) {
|
|
118
|
-
let t = e !==
|
|
119
|
-
|
|
120
|
-
...
|
|
118
|
+
let t = e !== f.value.organizationId;
|
|
119
|
+
f.value = {
|
|
120
|
+
...f.value,
|
|
121
121
|
organizationId: e,
|
|
122
|
-
departmentId: t ? void 0 :
|
|
123
|
-
primaryPosition: t ? !1 :
|
|
122
|
+
departmentId: t ? void 0 : f.value.departmentId,
|
|
123
|
+
primaryPosition: t ? !1 : f.value.primaryPosition
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function Ce(e) {
|
|
127
|
-
let t = !!(
|
|
128
|
-
|
|
129
|
-
...
|
|
127
|
+
let t = !!(f.value.primaryPosition && r.employee?.organizationId === f.value.organizationId && r.employee?.departmentId === e);
|
|
128
|
+
f.value = {
|
|
129
|
+
...f.value,
|
|
130
130
|
departmentId: e,
|
|
131
131
|
primaryPosition: t
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
if (e && !
|
|
136
|
-
|
|
134
|
+
function _(e) {
|
|
135
|
+
if (e && !pe.value) {
|
|
136
|
+
ve("主岗必须与职员主机构、主部门一致", {
|
|
137
137
|
source: "employee-employment",
|
|
138
138
|
phase: "validation"
|
|
139
139
|
});
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
...
|
|
142
|
+
f.value = {
|
|
143
|
+
...f.value,
|
|
144
144
|
primaryPosition: e
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function we(e, t) {
|
|
148
148
|
let n = t;
|
|
149
149
|
return e.key === "position" ? n.positionTitle ?? n.positionId : e.key === "organization" ? n.organizationTitle ?? n.organizationId : e.key === "department" ? n.departmentTitle ?? n.departmentId : e.key === "primaryPosition" ? n.primaryPosition ? "是" : "否" : "";
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Te(e) {
|
|
152
152
|
return e.enabled === !1;
|
|
153
153
|
}
|
|
154
154
|
function Ee(e) {
|
|
@@ -172,99 +172,99 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
172
172
|
(t === "primary" || t === "enable" || t === "disable" || t === "delete") && ke(e, t);
|
|
173
173
|
}
|
|
174
174
|
async function Oe() {
|
|
175
|
-
let
|
|
176
|
-
if (!
|
|
177
|
-
|
|
175
|
+
let t = r.employee?.id;
|
|
176
|
+
if (!t || !f.value.organizationId || !f.value.departmentId || !f.value.positionId) {
|
|
177
|
+
ve("请选择机构、部门和岗位", {
|
|
178
178
|
source: "employee-employment",
|
|
179
179
|
phase: "validation"
|
|
180
180
|
});
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
u.value = !0;
|
|
184
184
|
try {
|
|
185
|
-
let
|
|
186
|
-
await
|
|
185
|
+
let e = f.value.id;
|
|
186
|
+
await o.http.request({
|
|
187
187
|
method: "POST",
|
|
188
|
-
path:
|
|
188
|
+
path: e ? `/iam.employee/${encodeURIComponent(t)}/positions/${encodeURIComponent(e)}/update` : `/iam.employee/${encodeURIComponent(t)}/positions`,
|
|
189
189
|
body: {
|
|
190
|
-
...
|
|
191
|
-
employeeId:
|
|
190
|
+
...f.value,
|
|
191
|
+
employeeId: t
|
|
192
192
|
}
|
|
193
|
-
}),
|
|
193
|
+
}), ye(), await h(), a("saved", t), await s({
|
|
194
194
|
success: !0,
|
|
195
195
|
message: "任职已保存"
|
|
196
196
|
}, {
|
|
197
197
|
source: "employee-employment",
|
|
198
198
|
phase: "action"
|
|
199
199
|
});
|
|
200
|
-
} catch (
|
|
201
|
-
|
|
200
|
+
} catch (t) {
|
|
201
|
+
e(t, {
|
|
202
202
|
source: "employee-employment",
|
|
203
203
|
phase: "action"
|
|
204
204
|
});
|
|
205
205
|
} finally {
|
|
206
|
-
|
|
206
|
+
u.value = !1;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
async function ke(
|
|
210
|
-
let
|
|
211
|
-
if (
|
|
209
|
+
async function ke(t, n) {
|
|
210
|
+
let i = r.employee?.id;
|
|
211
|
+
if (i && !(n === "delete" && !await oe({
|
|
212
212
|
title: "删除任职",
|
|
213
213
|
content: "确认删除该任职?",
|
|
214
214
|
okText: "删除",
|
|
215
215
|
danger: !0
|
|
216
216
|
}))) {
|
|
217
|
-
|
|
217
|
+
u.value = !0;
|
|
218
218
|
try {
|
|
219
|
-
await
|
|
219
|
+
await o.http.request({
|
|
220
220
|
method: "POST",
|
|
221
|
-
path: `/iam.employee/${encodeURIComponent(
|
|
222
|
-
}), await
|
|
223
|
-
} catch (
|
|
224
|
-
|
|
221
|
+
path: `/iam.employee/${encodeURIComponent(i)}/positions/${encodeURIComponent(t.id)}/${n}`
|
|
222
|
+
}), await h(), a("saved", i);
|
|
223
|
+
} catch (t) {
|
|
224
|
+
e(t, {
|
|
225
225
|
source: "employee-employment",
|
|
226
226
|
phase: "action"
|
|
227
227
|
});
|
|
228
228
|
} finally {
|
|
229
|
-
|
|
229
|
+
u.value = !1;
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
return (
|
|
234
|
-
open:
|
|
235
|
-
title:
|
|
236
|
-
onClose:
|
|
233
|
+
return (e, n) => (E(), y(k(i), {
|
|
234
|
+
open: t.open,
|
|
235
|
+
title: ue.value,
|
|
236
|
+
onClose: n[4] ||= (e) => a("close")
|
|
237
237
|
}, {
|
|
238
238
|
operation: A(() => [w(k(d), {
|
|
239
239
|
type: "text",
|
|
240
240
|
"icon-name": "reload",
|
|
241
|
-
disabled:
|
|
242
|
-
onClick:
|
|
241
|
+
disabled: l.value || u.value,
|
|
242
|
+
onClick: h
|
|
243
243
|
}, {
|
|
244
|
-
default: A(() => [...
|
|
244
|
+
default: A(() => [...n[5] ||= [C(" 刷新 ", -1)]]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["disabled"])]),
|
|
247
247
|
default: A(() => [S("div", N, [
|
|
248
|
-
S("div", P, [
|
|
248
|
+
S("div", P, [n[7] ||= S("div", null, [S("strong", null, "任职信息"), S("span", null, "角色授权按具体任职生效")], -1), w(k(d), {
|
|
249
249
|
type: "primary",
|
|
250
250
|
"icon-name": "plus",
|
|
251
|
-
disabled:
|
|
252
|
-
onClick:
|
|
251
|
+
disabled: u.value,
|
|
252
|
+
onClick: g
|
|
253
253
|
}, {
|
|
254
|
-
default: A(() => [...
|
|
254
|
+
default: A(() => [...n[6] ||= [C("新增任职", -1)]]),
|
|
255
255
|
_: 1
|
|
256
256
|
}, 8, ["disabled"])]),
|
|
257
|
-
|
|
257
|
+
ae.value ? (E(), x("form", {
|
|
258
258
|
key: 0,
|
|
259
259
|
class: "employment-editor",
|
|
260
260
|
onSubmit: j(Oe, ["prevent"])
|
|
261
261
|
}, [
|
|
262
|
-
S("label", null, [
|
|
263
|
-
value:
|
|
264
|
-
context: k(
|
|
262
|
+
S("label", null, [n[8] ||= S("span", null, "机构", -1), w(k(be), {
|
|
263
|
+
value: f.value.organizationId,
|
|
264
|
+
context: k(ee),
|
|
265
265
|
placeholder: "请选择机构",
|
|
266
|
-
constraints: [k(
|
|
267
|
-
disabled:
|
|
266
|
+
constraints: [k(se)()],
|
|
267
|
+
disabled: u.value,
|
|
268
268
|
"onUpdate:value": Se
|
|
269
269
|
}, null, 8, [
|
|
270
270
|
"value",
|
|
@@ -272,12 +272,12 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
272
272
|
"constraints",
|
|
273
273
|
"disabled"
|
|
274
274
|
])]),
|
|
275
|
-
S("label", null, [
|
|
276
|
-
value:
|
|
277
|
-
context:
|
|
275
|
+
S("label", null, [n[9] ||= S("span", null, "部门", -1), w(k(be), {
|
|
276
|
+
value: f.value.departmentId,
|
|
277
|
+
context: fe.value,
|
|
278
278
|
placeholder: "请选择部门",
|
|
279
|
-
constraints: [k(
|
|
280
|
-
disabled:
|
|
279
|
+
constraints: [k(se)()],
|
|
280
|
+
disabled: u.value || !f.value.organizationId,
|
|
281
281
|
"onUpdate:value": Ce
|
|
282
282
|
}, null, 8, [
|
|
283
283
|
"value",
|
|
@@ -285,14 +285,14 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
285
285
|
"constraints",
|
|
286
286
|
"disabled"
|
|
287
287
|
])]),
|
|
288
|
-
S("label", null, [
|
|
289
|
-
value:
|
|
290
|
-
context: k(
|
|
288
|
+
S("label", null, [n[10] ||= S("span", null, "岗位", -1), w(k(be), {
|
|
289
|
+
value: f.value.positionId,
|
|
290
|
+
context: k(ne),
|
|
291
291
|
mode: "list",
|
|
292
292
|
placeholder: "请选择岗位",
|
|
293
|
-
constraints: [k(
|
|
294
|
-
disabled:
|
|
295
|
-
"onUpdate:value":
|
|
293
|
+
constraints: [k(se)()],
|
|
294
|
+
disabled: u.value,
|
|
295
|
+
"onUpdate:value": n[0] ||= (e) => f.value.positionId = e ? String(e) : void 0
|
|
296
296
|
}, null, 8, [
|
|
297
297
|
"value",
|
|
298
298
|
"context",
|
|
@@ -300,69 +300,69 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
300
300
|
"disabled"
|
|
301
301
|
])]),
|
|
302
302
|
S("label", F, [
|
|
303
|
-
|
|
303
|
+
n[12] ||= S("span", null, "主岗位", -1),
|
|
304
304
|
S("span", null, [S("input", {
|
|
305
305
|
type: "checkbox",
|
|
306
|
-
checked:
|
|
307
|
-
disabled:
|
|
308
|
-
onChange:
|
|
309
|
-
}, null, 40, I),
|
|
310
|
-
|
|
306
|
+
checked: f.value.primaryPosition === !0,
|
|
307
|
+
disabled: u.value || !pe.value,
|
|
308
|
+
onChange: n[1] ||= (e) => _(e.target.checked)
|
|
309
|
+
}, null, 40, I), n[11] ||= C(" 设为主岗 ", -1)]),
|
|
310
|
+
pe.value ? b("v-if", !0) : (E(), x("small", L, "主岗必须与职员主机构、主部门一致"))
|
|
311
311
|
]),
|
|
312
312
|
S("div", R, [w(k(d), {
|
|
313
|
-
disabled:
|
|
314
|
-
onClick:
|
|
313
|
+
disabled: u.value,
|
|
314
|
+
onClick: ye
|
|
315
315
|
}, {
|
|
316
|
-
default: A(() => [...
|
|
316
|
+
default: A(() => [...n[13] ||= [C("取消", -1)]]),
|
|
317
317
|
_: 1
|
|
318
318
|
}, 8, ["disabled"]), w(k(d), {
|
|
319
319
|
type: "primary",
|
|
320
320
|
"html-type": "submit",
|
|
321
|
-
loading:
|
|
321
|
+
loading: u.value
|
|
322
322
|
}, {
|
|
323
|
-
default: A(() => [...
|
|
323
|
+
default: A(() => [...n[14] ||= [C("保存任职", -1)]]),
|
|
324
324
|
_: 1
|
|
325
325
|
}, 8, ["loading"])])
|
|
326
326
|
], 32)) : b("v-if", !0),
|
|
327
|
-
|
|
327
|
+
l.value ? (E(), y(k(le), {
|
|
328
328
|
key: 1,
|
|
329
329
|
class: "employment-state",
|
|
330
330
|
tip: "加载任职"
|
|
331
|
-
})) :
|
|
331
|
+
})) : ie.value ? (E(), x("div", z, [w(k(m), {
|
|
332
332
|
title: "任职信息加载失败",
|
|
333
333
|
message: "无法加载任职信息,请重试"
|
|
334
334
|
}), w(k(d), {
|
|
335
335
|
type: "primary",
|
|
336
336
|
"icon-name": "reload",
|
|
337
|
-
onClick:
|
|
337
|
+
onClick: h
|
|
338
338
|
}, {
|
|
339
|
-
default: A(() => [...
|
|
339
|
+
default: A(() => [...n[15] ||= [C("重试", -1)]]),
|
|
340
340
|
_: 1
|
|
341
|
-
})])) :
|
|
341
|
+
})])) : re.value.length === 0 ? (E(), x("p", B, "暂无任职信息")) : (E(), y(k(he), {
|
|
342
342
|
key: 4,
|
|
343
343
|
class: "employment-table",
|
|
344
|
-
columns:
|
|
345
|
-
rows:
|
|
344
|
+
columns: ce,
|
|
345
|
+
rows: de.value,
|
|
346
346
|
"row-key": "id",
|
|
347
347
|
pagination: !1,
|
|
348
348
|
"horizontal-scroll": "",
|
|
349
349
|
"show-action-column": "",
|
|
350
350
|
"action-column-width": "92",
|
|
351
|
-
"row-muted":
|
|
351
|
+
"row-muted": Te
|
|
352
352
|
}, {
|
|
353
|
-
cell: A(({ column: e, record: t }) => [C(O(
|
|
353
|
+
cell: A(({ column: e, record: t }) => [C(O(we(e, t)), 1)]),
|
|
354
354
|
rowActions: A(({ record: e }) => [S("div", {
|
|
355
355
|
class: "employment-table-row-actions",
|
|
356
|
-
onClick:
|
|
357
|
-
onDblclick:
|
|
356
|
+
onClick: n[2] ||= j(() => {}, ["stop"]),
|
|
357
|
+
onDblclick: n[3] ||= j(() => {}, ["stop"])
|
|
358
358
|
}, [w(k(d), {
|
|
359
359
|
type: "text",
|
|
360
|
-
disabled:
|
|
360
|
+
disabled: u.value,
|
|
361
361
|
onClick: (t) => xe(e)
|
|
362
362
|
}, {
|
|
363
|
-
default: A(() => [...
|
|
363
|
+
default: A(() => [...n[16] ||= [C(" 编辑 ", -1)]]),
|
|
364
364
|
_: 1
|
|
365
|
-
}, 8, ["disabled", "onClick"]), w(k(
|
|
365
|
+
}, 8, ["disabled", "onClick"]), w(k(p), {
|
|
366
366
|
items: Ee(e),
|
|
367
367
|
trigger: "hover",
|
|
368
368
|
onSelect: (t) => De(e, t)
|
|
@@ -372,7 +372,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
372
372
|
"icon-name": "down",
|
|
373
373
|
title: "更多",
|
|
374
374
|
"aria-label": "更多",
|
|
375
|
-
disabled:
|
|
375
|
+
disabled: u.value
|
|
376
376
|
}, null, 8, ["disabled"])]),
|
|
377
377
|
_: 1
|
|
378
378
|
}, 8, ["items", "onSelect"])], 32)]),
|
|
@@ -397,7 +397,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
397
397
|
}, K = { class: "employee-account-status" }, q = { key: 0 }, We = { class: "employee-form-label" }, Ge = {
|
|
398
398
|
key: 0,
|
|
399
399
|
"aria-hidden": "true"
|
|
400
|
-
}, Ke = /*#__PURE__*/
|
|
400
|
+
}, Ke = /*#__PURE__*/ r(/* @__PURE__ */ T({
|
|
401
401
|
name: "EmployeeDetailContent",
|
|
402
402
|
__name: "EmployeeDetailContent",
|
|
403
403
|
props: {
|
|
@@ -444,29 +444,29 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
444
444
|
"removeAccount",
|
|
445
445
|
"updateAccountProvisionField"
|
|
446
446
|
],
|
|
447
|
-
setup(
|
|
448
|
-
let
|
|
449
|
-
return (
|
|
447
|
+
setup(e, { emit: n }) {
|
|
448
|
+
let r = e, i = n;
|
|
449
|
+
return (e, n) => r.loading ? (E(), y(k(le), {
|
|
450
450
|
key: 0,
|
|
451
451
|
class: "employee-detail-state",
|
|
452
452
|
tip: "加载职员详情"
|
|
453
|
-
})) :
|
|
453
|
+
})) : r.loadFailed ? (E(), x("div", V, [w(k(m), {
|
|
454
454
|
title: "详情加载失败",
|
|
455
455
|
message: "无法加载职员详情,请重试"
|
|
456
456
|
}), w(k(d), {
|
|
457
457
|
type: "primary",
|
|
458
458
|
"icon-name": "reload",
|
|
459
|
-
onClick: n[0] ||= (e) =>
|
|
459
|
+
onClick: n[0] ||= (e) => i("retry")
|
|
460
460
|
}, {
|
|
461
461
|
default: A(() => [...n[12] ||= [C("重试", -1)]]),
|
|
462
462
|
_: 1
|
|
463
|
-
})])) :
|
|
464
|
-
w(k(
|
|
465
|
-
record:
|
|
466
|
-
fields:
|
|
467
|
-
fallback:
|
|
468
|
-
"picker-configs":
|
|
469
|
-
"display-of":
|
|
463
|
+
})])) : r.showContent ? (E(), x(ke, { key: 2 }, [r.mode === "view" ? (E(), x(ke, { key: 0 }, [
|
|
464
|
+
w(k(t), {
|
|
465
|
+
record: r.draft,
|
|
466
|
+
fields: r.fields,
|
|
467
|
+
fallback: r.fallback,
|
|
468
|
+
"picker-configs": r.pickerConfigs,
|
|
469
|
+
"display-of": r.displayOf
|
|
470
470
|
}, null, 8, [
|
|
471
471
|
"record",
|
|
472
472
|
"fields",
|
|
@@ -474,49 +474,49 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
474
474
|
"picker-configs",
|
|
475
475
|
"display-of"
|
|
476
476
|
]),
|
|
477
|
-
S("section", H, [S("div", He, [n[14] ||= S("strong", null, "登录账号", -1), !
|
|
477
|
+
S("section", H, [S("div", He, [n[14] ||= S("strong", null, "登录账号", -1), !r.account && !r.showAccountProvisionForm ? (E(), y(k(d), {
|
|
478
478
|
key: 0,
|
|
479
479
|
type: "primary",
|
|
480
480
|
"icon-name": "plus",
|
|
481
|
-
disabled: !
|
|
482
|
-
onClick: n[1] ||= (e) =>
|
|
481
|
+
disabled: !r.canManageAccounts,
|
|
482
|
+
onClick: n[1] ||= (e) => i("startAccountProvision")
|
|
483
483
|
}, {
|
|
484
484
|
default: A(() => [...n[13] ||= [C(" 设置账号 ", -1)]]),
|
|
485
485
|
_: 1
|
|
486
|
-
}, 8, ["disabled"])) : b("v-if", !0)]),
|
|
486
|
+
}, 8, ["disabled"])) : b("v-if", !0)]), r.loadingAccounts ? (E(), y(k(le), {
|
|
487
487
|
key: 0,
|
|
488
488
|
class: "employee-account-state",
|
|
489
489
|
tip: "加载账号绑定"
|
|
490
|
-
})) :
|
|
490
|
+
})) : r.accountsLoadFailed ? (E(), x("div", Ue, [w(k(m), {
|
|
491
491
|
title: "账号绑定加载失败",
|
|
492
492
|
message: "无法加载职员账号绑定,请重试"
|
|
493
493
|
}), w(k(d), {
|
|
494
494
|
"icon-name": "reload",
|
|
495
|
-
onClick: n[2] ||= (e) =>
|
|
495
|
+
onClick: n[2] ||= (e) => i("retryAccounts")
|
|
496
496
|
}, {
|
|
497
497
|
default: A(() => [...n[15] ||= [C("重试", -1)]]),
|
|
498
498
|
_: 1
|
|
499
|
-
})])) :
|
|
499
|
+
})])) : r.showAccountProvisionForm ? (E(), x("form", {
|
|
500
500
|
key: 2,
|
|
501
501
|
class: "employee-account-form",
|
|
502
|
-
onSubmit: n[6] ||= j((e) =>
|
|
502
|
+
onSubmit: n[6] ||= j((e) => i("provisionAccount"), ["prevent"])
|
|
503
503
|
}, [
|
|
504
|
-
S("label", null, [n[16] ||= S("span", null, "账号", -1), w(k(
|
|
505
|
-
value:
|
|
504
|
+
S("label", null, [n[16] ||= S("span", null, "账号", -1), w(k(g), {
|
|
505
|
+
value: r.accountProvisionDraft.username,
|
|
506
506
|
placeholder: "请输入登录账号",
|
|
507
|
-
disabled:
|
|
508
|
-
"onUpdate:value": n[3] ||= (e) =>
|
|
507
|
+
disabled: r.savingAccount,
|
|
508
|
+
"onUpdate:value": n[3] ||= (e) => i("updateAccountProvisionField", "username", e)
|
|
509
509
|
}, null, 8, ["value", "disabled"])]),
|
|
510
|
-
S("label", null, [n[17] ||= S("span", null, "初始密码", -1), w(k(
|
|
511
|
-
value:
|
|
510
|
+
S("label", null, [n[17] ||= S("span", null, "初始密码", -1), w(k(g), {
|
|
511
|
+
value: r.accountProvisionDraft.password,
|
|
512
512
|
type: "password",
|
|
513
513
|
placeholder: "请输入初始密码",
|
|
514
|
-
disabled:
|
|
515
|
-
"onUpdate:value": n[4] ||= (e) =>
|
|
514
|
+
disabled: r.savingAccount,
|
|
515
|
+
"onUpdate:value": n[4] ||= (e) => i("updateAccountProvisionField", "password", e)
|
|
516
516
|
}, null, 8, ["value", "disabled"])]),
|
|
517
517
|
S("div", U, [w(k(d), {
|
|
518
|
-
disabled:
|
|
519
|
-
onClick: n[5] ||= (e) =>
|
|
518
|
+
disabled: r.savingAccount,
|
|
519
|
+
onClick: n[5] ||= (e) => i("cancelAccountProvision")
|
|
520
520
|
}, {
|
|
521
521
|
default: A(() => [...n[18] ||= [C("取消", -1)]]),
|
|
522
522
|
_: 1
|
|
@@ -524,48 +524,48 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
|
|
|
524
524
|
type: "primary",
|
|
525
525
|
"html-type": "submit",
|
|
526
526
|
"icon-name": "plus",
|
|
527
|
-
loading:
|
|
528
|
-
disabled: !
|
|
527
|
+
loading: r.savingAccount,
|
|
528
|
+
disabled: !r.canManageAccounts
|
|
529
529
|
}, {
|
|
530
530
|
default: A(() => [...n[19] ||= [C(" 创建账号并绑定 ", -1)]]),
|
|
531
531
|
_: 1
|
|
532
532
|
}, 8, ["loading", "disabled"])])
|
|
533
|
-
], 32)) :
|
|
534
|
-
S("div", null, [S("strong", null, O(
|
|
535
|
-
S("span", K, O(
|
|
533
|
+
], 32)) : r.account ? (E(), x("div", G, [
|
|
534
|
+
S("div", null, [S("strong", null, O(r.accountUserTitle), 1), S("span", null, O(r.accountUserDescription), 1)]),
|
|
535
|
+
S("span", K, O(r.accountStatusTitle), 1),
|
|
536
536
|
w(k(d), {
|
|
537
537
|
danger: "",
|
|
538
538
|
"icon-name": "delete",
|
|
539
|
-
disabled:
|
|
540
|
-
onClick: n[7] ||= (e) =>
|
|
539
|
+
disabled: r.savingAccount || !r.canManageAccounts,
|
|
540
|
+
onClick: n[7] ||= (e) => i("removeAccount")
|
|
541
541
|
}, {
|
|
542
542
|
default: A(() => [...n[21] ||= [C(" 移除账户 ", -1)]]),
|
|
543
543
|
_: 1
|
|
544
544
|
}, 8, ["disabled"])
|
|
545
545
|
])) : (E(), x("div", W, [...n[20] ||= [S("span", null, "未设置登录账号", -1), S("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
|
|
546
546
|
w(k(f), {
|
|
547
|
-
record:
|
|
547
|
+
record: r.draft,
|
|
548
548
|
"show-sort-order": ""
|
|
549
549
|
}, null, 8, ["record"])
|
|
550
|
-
], 64)) : (E(), x(ke, { key: 1 }, [
|
|
550
|
+
], 64)) : (E(), x(ke, { key: 1 }, [r.externallyChanged ? (E(), y(k(l), {
|
|
551
551
|
key: 0,
|
|
552
|
-
onReload: n[8] ||= (e) =>
|
|
553
|
-
onDismiss: n[9] ||= (e) =>
|
|
552
|
+
onReload: n[8] ||= (e) => i("reloadExternal"),
|
|
553
|
+
onDismiss: n[9] ||= (e) => i("dismissExternal")
|
|
554
554
|
})) : b("v-if", !0), S("form", {
|
|
555
555
|
class: "employee-form",
|
|
556
|
-
onSubmit: n[11] ||= j((e) =>
|
|
557
|
-
}, [
|
|
558
|
-
value:
|
|
556
|
+
onSubmit: n[11] ||= j((e) => i("save"), ["prevent"])
|
|
557
|
+
}, [r.visibleOf("organizationId") ? (E(), x("label", q, [S("span", We, [C(O(r.labelOf("organizationId")) + " ", 1), r.requiredOf("organizationId") ? (E(), x("strong", Ge, "*")) : b("v-if", !0)]), w(k(g), {
|
|
558
|
+
value: r.selectedOrganization?.title ?? r.selectedOrganization?.id ?? "-",
|
|
559
559
|
disabled: ""
|
|
560
|
-
}, null, 8, ["value"])])) : b("v-if", !0), w(k(
|
|
561
|
-
record:
|
|
562
|
-
fields:
|
|
560
|
+
}, null, 8, ["value"])])) : b("v-if", !0), w(k(h), {
|
|
561
|
+
record: r.draft,
|
|
562
|
+
fields: r.fields,
|
|
563
563
|
"exclude-field-names": ["organizationId"],
|
|
564
|
-
fallback:
|
|
565
|
-
"picker-configs":
|
|
566
|
-
disabled:
|
|
567
|
-
"option-context":
|
|
568
|
-
"onUpdate:field": n[10] ||= (e, t) =>
|
|
564
|
+
fallback: r.fallback,
|
|
565
|
+
"picker-configs": r.pickerConfigs,
|
|
566
|
+
disabled: r.formDisabled,
|
|
567
|
+
"option-context": r.optionContext,
|
|
568
|
+
"onUpdate:field": n[10] ||= (e, t) => i("updateField", e, t)
|
|
569
569
|
}, null, 8, [
|
|
570
570
|
"record",
|
|
571
571
|
"fields",
|
|
@@ -591,47 +591,47 @@ function qe(e, t) {
|
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
function Je(e, t) {
|
|
594
|
-
return
|
|
594
|
+
return Se(we, e, t);
|
|
595
595
|
}
|
|
596
596
|
function Ye(e) {
|
|
597
|
-
return
|
|
597
|
+
return Ce(we, e);
|
|
598
598
|
}
|
|
599
599
|
//#endregion
|
|
600
600
|
//#region src/views/useEmployeeEmploymentRows.ts
|
|
601
|
-
function Xe(
|
|
602
|
-
let
|
|
603
|
-
async function
|
|
604
|
-
if (!(!
|
|
605
|
-
s(
|
|
606
|
-
...o(
|
|
601
|
+
function Xe(t) {
|
|
602
|
+
let n = D([]), r = D({});
|
|
603
|
+
async function i(n) {
|
|
604
|
+
if (!(!n || t.context.can("employeePositions", n) === !1)) {
|
|
605
|
+
s(n, {
|
|
606
|
+
...o(n),
|
|
607
607
|
loading: !0,
|
|
608
608
|
error: void 0
|
|
609
609
|
});
|
|
610
610
|
try {
|
|
611
|
-
s(
|
|
612
|
-
records: (await
|
|
611
|
+
s(n, {
|
|
612
|
+
records: (await t.context.http.request({ path: t.pathOf?.(n) ?? `/iam.employee/${encodeURIComponent(n)}/employment-view` })).records,
|
|
613
613
|
loading: !1,
|
|
614
614
|
error: void 0
|
|
615
615
|
});
|
|
616
|
-
} catch (
|
|
617
|
-
let
|
|
618
|
-
source: `${
|
|
616
|
+
} catch (r) {
|
|
617
|
+
let i = e(r, {
|
|
618
|
+
source: `${t.source}-employment-rows`,
|
|
619
619
|
phase: "load"
|
|
620
620
|
});
|
|
621
|
-
s(
|
|
622
|
-
...o(
|
|
621
|
+
s(n, {
|
|
622
|
+
...o(n),
|
|
623
623
|
loading: !1,
|
|
624
|
-
error:
|
|
624
|
+
error: i.message
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
let
|
|
631
|
-
|
|
629
|
+
function a(e, t) {
|
|
630
|
+
let r = String(e.id ?? "");
|
|
631
|
+
r && (n.value = t ? Array.from(new Set([...n.value, r])) : n.value.filter((e) => e !== r), t && o(r).records.length === 0 && i(r));
|
|
632
632
|
}
|
|
633
633
|
function o(e) {
|
|
634
|
-
return e ?
|
|
634
|
+
return e ? r.value[e] ?? {
|
|
635
635
|
records: [],
|
|
636
636
|
loading: !1
|
|
637
637
|
} : {
|
|
@@ -640,20 +640,20 @@ function Xe(e) {
|
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
642
|
function s(e, t) {
|
|
643
|
-
|
|
644
|
-
...
|
|
643
|
+
r.value = {
|
|
644
|
+
...r.value,
|
|
645
645
|
[e]: t
|
|
646
646
|
};
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
|
|
648
|
+
function ee() {
|
|
649
|
+
n.value = [], r.value = {};
|
|
650
650
|
}
|
|
651
651
|
return {
|
|
652
|
-
expandedEmployeeKeys:
|
|
652
|
+
expandedEmployeeKeys: n,
|
|
653
653
|
employmentRowState: o,
|
|
654
|
-
handleEmployeeRowExpand:
|
|
655
|
-
loadEmployeeEmploymentRows:
|
|
656
|
-
resetEmployeeEmploymentRows:
|
|
654
|
+
handleEmployeeRowExpand: a,
|
|
655
|
+
loadEmployeeEmploymentRows: i,
|
|
656
|
+
resetEmployeeEmploymentRows: ee
|
|
657
657
|
};
|
|
658
658
|
}
|
|
659
659
|
//#endregion
|
|
@@ -661,25 +661,25 @@ function Xe(e) {
|
|
|
661
661
|
var Ze = { key: 0 }, Qe = {
|
|
662
662
|
key: 1,
|
|
663
663
|
class: "employee-row-employment-list"
|
|
664
|
-
}, $e = /*#__PURE__*/
|
|
664
|
+
}, $e = /*#__PURE__*/ r(/* @__PURE__ */ T({
|
|
665
665
|
name: "EmployeeManagementView",
|
|
666
666
|
__name: "EmployeeManagementView",
|
|
667
667
|
props: {
|
|
668
668
|
recordId: {},
|
|
669
669
|
mode: {}
|
|
670
670
|
},
|
|
671
|
-
setup(
|
|
672
|
-
let
|
|
671
|
+
setup(t) {
|
|
672
|
+
let r = t, l = [
|
|
673
673
|
"departmentId",
|
|
674
674
|
"employeeNo",
|
|
675
675
|
"title"
|
|
676
|
-
],
|
|
677
|
-
context: () =>
|
|
676
|
+
], f = Te(), se = c({ moduleAlias: "iam.organization" }), le = c({ moduleAlias: "iam.department" }), p = c({ moduleAlias: "iam.employee" }), he = c({ moduleAlias: "iam.user" }), m = D(ne(void 0)), h = v(() => !!r.recordId), g = v(() => h.value && f?.presentation === "drawer"), be = v(() => !h.value || g.value), Se = D(""), Ce = D(0), _ = D(0), T = D(), j = D(), M = D(), N = D(!1), P = D("view"), F = D(!1), I = D(!1), L = D(!1), R = D(0), z = D(Qt(void 0)), B = D(), V = D(), H = D(), He = D(!1), Ue = D(), U = D(!1), W = D(!1), G = D(!1), K = D(!1), q = D($t(void 0)), We = me({
|
|
677
|
+
context: () => p,
|
|
678
678
|
listReloadKey: _,
|
|
679
679
|
canChange: X,
|
|
680
680
|
resetSelection: Ft
|
|
681
681
|
}), { expandedEmployeeKeys: Ge, employmentRowState: $e, handleEmployeeRowExpand: et, loadEmployeeEmploymentRows: tt, resetEmployeeEmploymentRows: nt } = Xe({
|
|
682
|
-
context:
|
|
682
|
+
context: p,
|
|
683
683
|
source: "employee-management",
|
|
684
684
|
pathOf: (e) => We.active.value ? `/iam.employee/recycle-bin/${encodeURIComponent(e)}/employment-view` : `/iam.employee/${encodeURIComponent(e)}/employment-view`
|
|
685
685
|
}), J = De({
|
|
@@ -705,14 +705,14 @@ var Ze = { key: 0 }, Qe = {
|
|
|
705
705
|
rt.enqueue(n.length > 0 ? n : "__collection__");
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
|
-
let it = v(() =>
|
|
708
|
+
let it = v(() => p), Y = v(() => T.value?.id), at = v(() => _e(le, {
|
|
709
709
|
scopeFieldName: "organizationId",
|
|
710
710
|
scopeValue: Y.value,
|
|
711
711
|
treePath: "/iam.department/tree",
|
|
712
712
|
sortPath: "/iam.department/sort"
|
|
713
713
|
})), ot = v(() => ({ departmentId: {
|
|
714
714
|
context: at.value,
|
|
715
|
-
reloadKey:
|
|
715
|
+
reloadKey: Ce.value,
|
|
716
716
|
placeholder: "请选择部门",
|
|
717
717
|
titleOf: (e) => wn(e)
|
|
718
718
|
} })), st = v(() => {
|
|
@@ -731,7 +731,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
731
731
|
loadingDetail: F.value,
|
|
732
732
|
loadFailed: I.value,
|
|
733
733
|
selectedEmployeeId: M.value?.id
|
|
734
|
-
})), ft = v(() => F.value ? !1 : P.value === "create" ? !!Y.value &&
|
|
734
|
+
})), ft = v(() => F.value ? !1 : P.value === "create" ? !!Y.value && p.can("create") === !0 : !!M.value?.id && p.can("update") === !0), pt = v(() => F.value || !M.value?.id ? !1 : p.can(hn(M.value)) === !0), mt = v(() => !M.value?.id || F.value || L.value ? !1 : p.can("employeeAccounts", M.value.id) !== !1), ht = v(() => P.value === "view" ? M.value?.id ? [{
|
|
735
735
|
key: "edit",
|
|
736
736
|
actionCode: "update",
|
|
737
737
|
title: "编辑",
|
|
@@ -776,7 +776,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
776
776
|
primary: !0,
|
|
777
777
|
loading: L.value,
|
|
778
778
|
disabled: !ft.value
|
|
779
|
-
}] : []), vt =
|
|
779
|
+
}] : []), vt = xe({
|
|
780
780
|
view: we,
|
|
781
781
|
input: v(() => {
|
|
782
782
|
let e = M.value?.id, t = P.value;
|
|
@@ -804,36 +804,36 @@ var Ze = { key: 0 }, Qe = {
|
|
|
804
804
|
onPromoted: Wt
|
|
805
805
|
});
|
|
806
806
|
Pe(M, (e) => {
|
|
807
|
-
!
|
|
807
|
+
!h.value || !e || f?.setTitle(pn(e));
|
|
808
808
|
}, { immediate: !0 });
|
|
809
809
|
let yt;
|
|
810
810
|
Me(() => {
|
|
811
|
-
if (xt(), !
|
|
812
|
-
let e = { recordId:
|
|
813
|
-
|
|
814
|
-
let
|
|
815
|
-
if (
|
|
816
|
-
an(
|
|
811
|
+
if (xt(), !r.recordId) return;
|
|
812
|
+
let e = { recordId: r.recordId };
|
|
813
|
+
g.value || (yt = Je(e, bt));
|
|
814
|
+
let t = Ye(e);
|
|
815
|
+
if (t) {
|
|
816
|
+
an(t);
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
|
-
Z({ id:
|
|
819
|
+
Z({ id: r.recordId }, r.mode ?? "view");
|
|
820
820
|
}), je(() => yt?.());
|
|
821
821
|
function bt(e) {
|
|
822
822
|
return P.value !== "view" || K.value ? !1 : (an(e), !0);
|
|
823
823
|
}
|
|
824
824
|
async function xt() {
|
|
825
825
|
try {
|
|
826
|
-
|
|
827
|
-
} catch (
|
|
828
|
-
|
|
826
|
+
m.value = ne((await p.runtime.ready).uiDescriptor);
|
|
827
|
+
} catch (t) {
|
|
828
|
+
e(t, {
|
|
829
829
|
source: "employee-management",
|
|
830
830
|
phase: "load"
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
function St(e) {
|
|
835
|
-
return
|
|
836
|
-
fields:
|
|
835
|
+
return te(e, {
|
|
836
|
+
fields: m.value,
|
|
837
837
|
fallback: En
|
|
838
838
|
});
|
|
839
839
|
}
|
|
@@ -875,7 +875,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
875
875
|
X() && (T.value = e, j.value = void 0, M.value = void 0, J.clearExternalChanged(), F.value = !1, I.value = !1, B.value = void 0, $(), nt(), Wt());
|
|
876
876
|
}
|
|
877
877
|
function jt() {
|
|
878
|
-
|
|
878
|
+
Ce.value += 1;
|
|
879
879
|
}
|
|
880
880
|
function Mt(e) {
|
|
881
881
|
if (!X()) return;
|
|
@@ -917,15 +917,15 @@ var Ze = { key: 0 }, Qe = {
|
|
|
917
917
|
actionCode: "employeePositions",
|
|
918
918
|
title: "任职",
|
|
919
919
|
after: "edit",
|
|
920
|
-
visible: !!e.id &&
|
|
920
|
+
visible: !!e.id && p.can("employeePositions", String(e.id)) !== !1
|
|
921
921
|
}];
|
|
922
922
|
}
|
|
923
|
-
async function zt(
|
|
924
|
-
let
|
|
925
|
-
if (
|
|
926
|
-
Ue.value = await
|
|
927
|
-
} catch (
|
|
928
|
-
|
|
923
|
+
async function zt(t) {
|
|
924
|
+
let n = String(t.id ?? "");
|
|
925
|
+
if (n) try {
|
|
926
|
+
Ue.value = await p.crud.view(n), He.value = !0;
|
|
927
|
+
} catch (t) {
|
|
928
|
+
e(t, {
|
|
929
929
|
source: "employee-management",
|
|
930
930
|
phase: "load"
|
|
931
931
|
});
|
|
@@ -943,14 +943,14 @@ var Ze = { key: 0 }, Qe = {
|
|
|
943
943
|
function Ut() {
|
|
944
944
|
if (X()) {
|
|
945
945
|
if (!Y.value) {
|
|
946
|
-
|
|
946
|
+
ve("请先选择机构", { phase: "validation" });
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
949
|
z.value = Qt(Y.value), M.value = void 0, j.value = void 0, J.clearExternalChanged(), P.value = "create", F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !0;
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
function Wt() {
|
|
953
|
-
L.value || (R.value += 1, F.value = !1, I.value = !1, N.value = !1, P.value = "view", B.value = void 0, J.clearExternalChanged(), $(), z.value = M.value ? en(M.value) : Qt(Y.value),
|
|
953
|
+
L.value || (R.value += 1, F.value = !1, I.value = !1, N.value = !1, P.value = "view", B.value = void 0, J.clearExternalChanged(), $(), z.value = M.value ? en(M.value) : Qt(Y.value), g.value && f?.dismiss());
|
|
954
954
|
}
|
|
955
955
|
function Gt() {
|
|
956
956
|
if (!L.value) {
|
|
@@ -964,37 +964,37 @@ var Ze = { key: 0 }, Qe = {
|
|
|
964
964
|
z.value = en(M.value), J.clearExternalChanged(), P.value = "view", F.value = !1, I.value = !1;
|
|
965
965
|
}
|
|
966
966
|
}
|
|
967
|
-
async function Z(
|
|
967
|
+
async function Z(t, n) {
|
|
968
968
|
if (!X()) return;
|
|
969
|
-
let
|
|
970
|
-
if (!
|
|
971
|
-
j.value =
|
|
972
|
-
let
|
|
973
|
-
R.value =
|
|
974
|
-
let
|
|
969
|
+
let r = String(t.id ?? "");
|
|
970
|
+
if (!r) return;
|
|
971
|
+
j.value = r, J.clearExternalChanged(), N.value = !0, P.value = n, M.value = void 0, z.value = en(t), B.value = void 0, $(), F.value = !0, I.value = !1;
|
|
972
|
+
let i = R.value + 1;
|
|
973
|
+
R.value = i;
|
|
974
|
+
let a = () => Ie({
|
|
975
975
|
activeRequestSeq: R.value,
|
|
976
|
-
requestSeq:
|
|
976
|
+
requestSeq: i,
|
|
977
977
|
selectedEmployeeKey: j.value,
|
|
978
|
-
recordId:
|
|
978
|
+
recordId: r
|
|
979
979
|
});
|
|
980
980
|
try {
|
|
981
|
-
let e = await
|
|
982
|
-
if (!
|
|
981
|
+
let e = await p.crud.view(r);
|
|
982
|
+
if (!a()) return;
|
|
983
983
|
if (!e?.id) {
|
|
984
|
-
I.value = !0,
|
|
984
|
+
I.value = !0, ve("未找到指定职员", {
|
|
985
985
|
source: "employee-management",
|
|
986
986
|
phase: "load"
|
|
987
987
|
});
|
|
988
988
|
return;
|
|
989
989
|
}
|
|
990
|
-
M.value = e, z.value = en(e), I.value = !1, await sn(e,
|
|
991
|
-
} catch (
|
|
992
|
-
|
|
990
|
+
M.value = e, z.value = en(e), I.value = !1, await sn(e, i), await on(e, i), cn(e, i);
|
|
991
|
+
} catch (t) {
|
|
992
|
+
a() && (I.value = !0, e(t, {
|
|
993
993
|
source: "employee-management",
|
|
994
994
|
phase: "load"
|
|
995
995
|
}));
|
|
996
996
|
} finally {
|
|
997
|
-
|
|
997
|
+
a() && (F.value = !1);
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
1000
|
function Kt(e) {
|
|
@@ -1033,7 +1033,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1033
1033
|
}, "edit"));
|
|
1034
1034
|
}
|
|
1035
1035
|
async function Yt() {
|
|
1036
|
-
await
|
|
1036
|
+
await ge({
|
|
1037
1037
|
loading: L,
|
|
1038
1038
|
mode: P.value === "edit" ? "edit" : "create",
|
|
1039
1039
|
source: "employee-management",
|
|
@@ -1042,12 +1042,12 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1042
1042
|
deniedMessage: "当前用户无权保存职员",
|
|
1043
1043
|
createRecord: () => tn(z.value, Y.value ?? ""),
|
|
1044
1044
|
validateRecord: nn,
|
|
1045
|
-
save: (e, t) => t === "edit" && M.value?.id ?
|
|
1046
|
-
actionErrorHandlers: [
|
|
1045
|
+
save: (e, t) => t === "edit" && M.value?.id ? p.crud.update(M.value.id, e) : p.crud.insert(e),
|
|
1046
|
+
actionErrorHandlers: [ue({
|
|
1047
1047
|
resourceLabel: "职员",
|
|
1048
1048
|
onNavigateToRecycleBin: () => Pt("recycleBin")
|
|
1049
1049
|
}), {
|
|
1050
|
-
code:
|
|
1050
|
+
code: a.conflictVersion,
|
|
1051
1051
|
handle: (e, { mode: t, record: n }) => t === "edit" && J.markExternalRecordChanged(n.id)
|
|
1052
1052
|
}],
|
|
1053
1053
|
onSaved: ({ record: e }) => {
|
|
@@ -1057,33 +1057,33 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1057
1057
|
});
|
|
1058
1058
|
}
|
|
1059
1059
|
async function Xt() {
|
|
1060
|
-
await
|
|
1060
|
+
await de({
|
|
1061
1061
|
loading: L,
|
|
1062
1062
|
source: "employee-management",
|
|
1063
1063
|
record: () => M.value && M.value.id ? M.value : void 0,
|
|
1064
1064
|
canExecute: () => pt.value,
|
|
1065
1065
|
deniedMessage: "当前用户无权变更职员启停状态",
|
|
1066
|
-
execute: (e) => e.enabled === !1 ?
|
|
1066
|
+
execute: (e) => e.enabled === !1 ? p.crud.enable(e.id, { version: e.version }) : p.crud.disable(e.id, { version: e.version }),
|
|
1067
1067
|
onExecuted: async (e, t) => {
|
|
1068
|
-
let n = await
|
|
1068
|
+
let n = await p.crud.view(t.id);
|
|
1069
1069
|
await on(n, rn(n)), _.value += 1;
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
async function Zt(e) {
|
|
1074
|
-
await
|
|
1074
|
+
await de({
|
|
1075
1075
|
loading: L,
|
|
1076
1076
|
source: "employee-management",
|
|
1077
1077
|
record: () => e?.id ? e : void 0,
|
|
1078
|
-
canExecute: () =>
|
|
1078
|
+
canExecute: () => p.can("delete") === !0,
|
|
1079
1079
|
deniedMessage: "当前用户无权删除职员",
|
|
1080
|
-
confirm: (e) =>
|
|
1080
|
+
confirm: (e) => oe({
|
|
1081
1081
|
title: "删除职员",
|
|
1082
1082
|
content: `确认删除职员「${fn(e)}」?`,
|
|
1083
1083
|
okText: "删除",
|
|
1084
1084
|
danger: !0
|
|
1085
1085
|
}),
|
|
1086
|
-
execute: (e) =>
|
|
1086
|
+
execute: (e) => p.crud.delete(String(e.id), { version: e.version }),
|
|
1087
1087
|
onExecuted: (e, t) => {
|
|
1088
1088
|
let n = String(t.id);
|
|
1089
1089
|
j.value === n && (j.value = void 0, M.value = void 0, z.value = Qt(Y.value), J.clearExternalChanged(), F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !1, P.value = "view"), _.value += 1;
|
|
@@ -1108,7 +1108,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1108
1108
|
return { ...e };
|
|
1109
1109
|
}
|
|
1110
1110
|
function tn(e, t) {
|
|
1111
|
-
return
|
|
1111
|
+
return ce(e, {
|
|
1112
1112
|
organizationId: t,
|
|
1113
1113
|
departmentId: e.departmentId?.trim(),
|
|
1114
1114
|
employeeNo: e.employeeNo?.trim(),
|
|
@@ -1120,7 +1120,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1120
1120
|
});
|
|
1121
1121
|
}
|
|
1122
1122
|
function nn(e) {
|
|
1123
|
-
return Be(
|
|
1123
|
+
return Be(l.map((t) => {
|
|
1124
1124
|
let n = St(t);
|
|
1125
1125
|
return {
|
|
1126
1126
|
fieldName: t,
|
|
@@ -1147,77 +1147,77 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1147
1147
|
recordId: e ?? ""
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
|
-
async function on(
|
|
1150
|
+
async function on(t, n = R.value) {
|
|
1151
1151
|
B.value = void 0;
|
|
1152
|
-
let
|
|
1153
|
-
if (
|
|
1154
|
-
let e = await
|
|
1155
|
-
Q(
|
|
1156
|
-
} catch (
|
|
1157
|
-
Q(
|
|
1152
|
+
let r = t.id, i = t.departmentId;
|
|
1153
|
+
if (i) try {
|
|
1154
|
+
let e = await le.crud.view(i);
|
|
1155
|
+
Q(r, n) && (B.value = e);
|
|
1156
|
+
} catch (t) {
|
|
1157
|
+
Q(r, n) && e(t, {
|
|
1158
1158
|
source: "employee-management",
|
|
1159
1159
|
phase: "load"
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
1163
|
-
async function sn(
|
|
1164
|
-
let
|
|
1165
|
-
if (
|
|
1166
|
-
let e = await
|
|
1167
|
-
Q(
|
|
1168
|
-
} catch (
|
|
1169
|
-
Q(
|
|
1163
|
+
async function sn(t, n = R.value) {
|
|
1164
|
+
let r = t.id, i = t.organizationId;
|
|
1165
|
+
if (i) try {
|
|
1166
|
+
let e = await se.crud.view(i);
|
|
1167
|
+
Q(r, n) && (T.value = e);
|
|
1168
|
+
} catch (t) {
|
|
1169
|
+
Q(r, n) && e(t, {
|
|
1170
1170
|
source: "employee-management",
|
|
1171
1171
|
phase: "load"
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
async function cn(
|
|
1176
|
-
let
|
|
1177
|
-
if (!
|
|
1175
|
+
async function cn(t = M.value ?? z.value, n = R.value) {
|
|
1176
|
+
let r = t.id;
|
|
1177
|
+
if (!r) {
|
|
1178
1178
|
$();
|
|
1179
1179
|
return;
|
|
1180
1180
|
}
|
|
1181
1181
|
U.value = !0, G.value = !1;
|
|
1182
1182
|
try {
|
|
1183
|
-
let e = await
|
|
1184
|
-
if (!Q(
|
|
1185
|
-
V.value = e, await ln(e,
|
|
1186
|
-
} catch (
|
|
1187
|
-
Q(
|
|
1183
|
+
let e = await p.http.request({ path: `/iam.employee/${encodeURIComponent(r)}/account` });
|
|
1184
|
+
if (!Q(r, n)) return;
|
|
1185
|
+
V.value = e, await ln(e, r, n);
|
|
1186
|
+
} catch (t) {
|
|
1187
|
+
Q(r, n) && (G.value = !0, e(t, {
|
|
1188
1188
|
source: "employee-management",
|
|
1189
1189
|
phase: "load"
|
|
1190
1190
|
}));
|
|
1191
1191
|
} finally {
|
|
1192
|
-
Q(
|
|
1192
|
+
Q(r, n) && (U.value = !1);
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
async function ln(
|
|
1196
|
-
let
|
|
1197
|
-
if (!
|
|
1198
|
-
Q(
|
|
1195
|
+
async function ln(t, n, r) {
|
|
1196
|
+
let i = t?.userId;
|
|
1197
|
+
if (!i) {
|
|
1198
|
+
Q(n, r) && (H.value = void 0);
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
|
-
let
|
|
1201
|
+
let a;
|
|
1202
1202
|
try {
|
|
1203
|
-
|
|
1204
|
-
} catch (
|
|
1205
|
-
|
|
1203
|
+
a = await he.crud.view(i);
|
|
1204
|
+
} catch (t) {
|
|
1205
|
+
e(t, {
|
|
1206
1206
|
source: "employee-management",
|
|
1207
1207
|
phase: "load"
|
|
1208
|
-
}),
|
|
1209
|
-
id:
|
|
1210
|
-
username:
|
|
1208
|
+
}), a = {
|
|
1209
|
+
id: i,
|
|
1210
|
+
username: i
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
|
-
Q(
|
|
1213
|
+
Q(n, r) && (H.value = a);
|
|
1214
1214
|
}
|
|
1215
1215
|
async function un() {
|
|
1216
|
-
let
|
|
1217
|
-
if (!
|
|
1218
|
-
let
|
|
1219
|
-
if (
|
|
1220
|
-
|
|
1216
|
+
let t = M.value, n = Sn(q.value);
|
|
1217
|
+
if (!t?.id || !mt.value) return;
|
|
1218
|
+
let r = Cn(n);
|
|
1219
|
+
if (r) {
|
|
1220
|
+
ve(r, {
|
|
1221
1221
|
source: "employee-management",
|
|
1222
1222
|
phase: "validation"
|
|
1223
1223
|
});
|
|
@@ -1225,17 +1225,17 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
W.value = !0;
|
|
1227
1227
|
try {
|
|
1228
|
-
let
|
|
1228
|
+
let e = await p.http.request({
|
|
1229
1229
|
method: "POST",
|
|
1230
|
-
path: `/iam.employee/${encodeURIComponent(
|
|
1231
|
-
body:
|
|
1232
|
-
}), r =
|
|
1233
|
-
V.value = r.binding, H.value = r.user, K.value = !1, q.value = $t(
|
|
1230
|
+
path: `/iam.employee/${encodeURIComponent(t.id)}/account/provision`,
|
|
1231
|
+
body: n
|
|
1232
|
+
}), r = ye(e);
|
|
1233
|
+
V.value = r.binding, H.value = r.user, K.value = !1, q.value = $t(t), await s(e, {
|
|
1234
1234
|
source: "employee-management",
|
|
1235
1235
|
phase: "action"
|
|
1236
1236
|
});
|
|
1237
|
-
} catch (
|
|
1238
|
-
|
|
1237
|
+
} catch (t) {
|
|
1238
|
+
e(t, {
|
|
1239
1239
|
source: "employee-management",
|
|
1240
1240
|
phase: "action"
|
|
1241
1241
|
});
|
|
@@ -1244,8 +1244,8 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
async function dn() {
|
|
1247
|
-
let
|
|
1248
|
-
if (!(!
|
|
1247
|
+
let t = M.value;
|
|
1248
|
+
if (!(!t?.id || !V.value?.id || !mt.value) && await oe({
|
|
1249
1249
|
title: "移除账户",
|
|
1250
1250
|
content: `确认移除账户「${gn()}」?该用户账号会同步删除。`,
|
|
1251
1251
|
okText: "移除",
|
|
@@ -1253,16 +1253,16 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1253
1253
|
})) {
|
|
1254
1254
|
W.value = !0;
|
|
1255
1255
|
try {
|
|
1256
|
-
let
|
|
1256
|
+
let e = await p.http.request({
|
|
1257
1257
|
method: "POST",
|
|
1258
|
-
path: `/iam.employee/${encodeURIComponent(
|
|
1258
|
+
path: `/iam.employee/${encodeURIComponent(t.id)}/account/delete`
|
|
1259
1259
|
});
|
|
1260
|
-
await cn(
|
|
1260
|
+
await cn(t, R.value), await s(e, {
|
|
1261
1261
|
source: "employee-management",
|
|
1262
1262
|
phase: "action"
|
|
1263
1263
|
});
|
|
1264
|
-
} catch (
|
|
1265
|
-
|
|
1264
|
+
} catch (t) {
|
|
1265
|
+
e(t, {
|
|
1266
1266
|
source: "employee-management",
|
|
1267
1267
|
phase: "action"
|
|
1268
1268
|
});
|
|
@@ -1386,26 +1386,26 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1386
1386
|
controlType: "enabledStatus"
|
|
1387
1387
|
}
|
|
1388
1388
|
};
|
|
1389
|
-
return (e, t) => !
|
|
1389
|
+
return (e, t) => !h.value || g.value ? (E(), y(k(ie), {
|
|
1390
1390
|
key: 0,
|
|
1391
1391
|
class: "employee-management-page"
|
|
1392
1392
|
}, {
|
|
1393
1393
|
default: A(() => [
|
|
1394
|
-
w(k(
|
|
1395
|
-
default: A(() => [w(k(
|
|
1394
|
+
w(k(ee), null, {
|
|
1395
|
+
default: A(() => [w(k(n), {
|
|
1396
1396
|
class: "employee-scope-panel",
|
|
1397
1397
|
title: "机构树",
|
|
1398
1398
|
"refresh-title": "刷新机构树",
|
|
1399
|
-
"search-keyword":
|
|
1399
|
+
"search-keyword": Se.value,
|
|
1400
1400
|
"search-placeholder": "搜索机构名称、编码或 ID",
|
|
1401
1401
|
onRefresh: jt,
|
|
1402
|
-
"onUpdate:searchKeyword": t[0] ||= (e) =>
|
|
1402
|
+
"onUpdate:searchKeyword": t[0] ||= (e) => Se.value = e
|
|
1403
1403
|
}, {
|
|
1404
|
-
default: A(() => [w(k(
|
|
1405
|
-
context: k(
|
|
1404
|
+
default: A(() => [w(k(fe), {
|
|
1405
|
+
context: k(se),
|
|
1406
1406
|
"selected-id": T.value?.id,
|
|
1407
|
-
"reload-key":
|
|
1408
|
-
keyword:
|
|
1407
|
+
"reload-key": Ce.value,
|
|
1408
|
+
keyword: Se.value,
|
|
1409
1409
|
"search-mode": "none",
|
|
1410
1410
|
"search-trigger": "external",
|
|
1411
1411
|
"empty-description": "暂无机构",
|
|
@@ -1425,7 +1425,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1425
1425
|
}, 8, ["search-keyword"])]),
|
|
1426
1426
|
_: 1
|
|
1427
1427
|
}),
|
|
1428
|
-
w(k(
|
|
1428
|
+
w(k(pe), {
|
|
1429
1429
|
class: "employee-list-panel",
|
|
1430
1430
|
context: it.value,
|
|
1431
1431
|
title: k(We).active.value ? "职员回收站" : "职员列表",
|
|
@@ -1493,7 +1493,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1493
1493
|
"external-query-values",
|
|
1494
1494
|
"onRowExpand"
|
|
1495
1495
|
]),
|
|
1496
|
-
|
|
1496
|
+
be.value ? (E(), y(k(i), {
|
|
1497
1497
|
key: 0,
|
|
1498
1498
|
open: N.value,
|
|
1499
1499
|
title: ct.value,
|
|
@@ -1502,7 +1502,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1502
1502
|
promotion: k(vt),
|
|
1503
1503
|
onClose: Wt
|
|
1504
1504
|
}, {
|
|
1505
|
-
status: A(() => [P.value === "view" && M.value ? (E(), y(k(
|
|
1505
|
+
status: A(() => [P.value === "view" && M.value ? (E(), y(k(u), {
|
|
1506
1506
|
key: 0,
|
|
1507
1507
|
enabled: M.value.enabled !== !1,
|
|
1508
1508
|
disabled: L.value || !pt.value,
|
|
@@ -1514,7 +1514,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1514
1514
|
"disabled",
|
|
1515
1515
|
"loading"
|
|
1516
1516
|
])) : b("v-if", !0)]),
|
|
1517
|
-
operation: A(() => [w(k(
|
|
1517
|
+
operation: A(() => [w(k(o), {
|
|
1518
1518
|
context: it.value,
|
|
1519
1519
|
actions: gt.value,
|
|
1520
1520
|
onAction: Kt
|
|
@@ -1529,7 +1529,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1529
1529
|
"load-failed": I.value,
|
|
1530
1530
|
"form-disabled": ut.value,
|
|
1531
1531
|
"show-content": dt.value,
|
|
1532
|
-
fields:
|
|
1532
|
+
fields: m.value,
|
|
1533
1533
|
fallback: En,
|
|
1534
1534
|
"picker-configs": ot.value,
|
|
1535
1535
|
"display-of": Ot,
|
|
@@ -1548,7 +1548,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1548
1548
|
"account-user-title": gn(),
|
|
1549
1549
|
"account-user-description": _n(),
|
|
1550
1550
|
"account-status-title": vn(),
|
|
1551
|
-
"option-context": k(
|
|
1551
|
+
"option-context": k(p),
|
|
1552
1552
|
onRetry: qt,
|
|
1553
1553
|
onSave: Yt,
|
|
1554
1554
|
onReloadExternal: Jt,
|
|
@@ -1603,12 +1603,12 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1603
1603
|
}, null, 8, ["open", "employee"])
|
|
1604
1604
|
]),
|
|
1605
1605
|
_: 1
|
|
1606
|
-
})) : (E(), y(k(
|
|
1606
|
+
})) : (E(), y(k(re), {
|
|
1607
1607
|
key: 1,
|
|
1608
1608
|
title: ct.value,
|
|
1609
1609
|
subtitle: lt.value
|
|
1610
1610
|
}, {
|
|
1611
|
-
status: A(() => [P.value === "view" && M.value ? (E(), y(k(
|
|
1611
|
+
status: A(() => [P.value === "view" && M.value ? (E(), y(k(u), {
|
|
1612
1612
|
key: 0,
|
|
1613
1613
|
enabled: M.value.enabled !== !1,
|
|
1614
1614
|
disabled: L.value || !pt.value,
|
|
@@ -1620,8 +1620,8 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1620
1620
|
"disabled",
|
|
1621
1621
|
"loading"
|
|
1622
1622
|
])) : b("v-if", !0)]),
|
|
1623
|
-
operation: A(() => [w(k(
|
|
1624
|
-
context: k(
|
|
1623
|
+
operation: A(() => [w(k(o), {
|
|
1624
|
+
context: k(p),
|
|
1625
1625
|
actions: _t.value,
|
|
1626
1626
|
"record-id": M.value?.id,
|
|
1627
1627
|
onAction: Kt
|
|
@@ -1640,7 +1640,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1640
1640
|
"load-failed": I.value,
|
|
1641
1641
|
"form-disabled": ut.value,
|
|
1642
1642
|
"show-content": dt.value,
|
|
1643
|
-
fields:
|
|
1643
|
+
fields: m.value,
|
|
1644
1644
|
fallback: En,
|
|
1645
1645
|
"picker-configs": ot.value,
|
|
1646
1646
|
"display-of": Ot,
|
|
@@ -1659,7 +1659,7 @@ var Ze = { key: 0 }, Qe = {
|
|
|
1659
1659
|
"account-user-title": gn(),
|
|
1660
1660
|
"account-user-description": _n(),
|
|
1661
1661
|
"account-status-title": vn(),
|
|
1662
|
-
"option-context": k(
|
|
1662
|
+
"option-context": k(p),
|
|
1663
1663
|
onRetry: qt,
|
|
1664
1664
|
onSave: Yt,
|
|
1665
1665
|
onReloadExternal: Jt,
|