@ximatai/muyun-web-app 0.26.7 → 0.26.8

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 (87) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-DYJLlkSz.js → EmployeeDetailWorkspaceView-DswEDSxH.js} +1 -1
  2. package/dist/{EmployeeManagementView-taxWUa7g.js → EmployeeManagementView-C9STtw08.js} +385 -386
  3. package/dist/{MetadataOrchestrationView-B-CPudJl.js → MetadataOrchestrationView-DKYVGMzy.js} +95 -95
  4. package/dist/{ModuleActionManagementView-CmVj0e0C.js → ModuleActionManagementView-DiVzuPdu.js} +72 -72
  5. package/dist/{RoleAuthorizationView-q_6CsBYq.js → RoleAuthorizationView-C0s4Bog7.js} +47 -47
  6. package/dist/{RoleDetailWorkspaceView-DmJlJgAj.js → RoleDetailWorkspaceView-dqHxKVfd.js} +1 -1
  7. package/dist/{RoleManagementView-HCa9rH0f.js → RoleManagementView-D43pUCxi.js} +468 -469
  8. package/dist/{SystemUserDetailWorkspaceView-U6Ij0US1.js → SystemUserDetailWorkspaceView-CQ9WeLrR.js} +1 -1
  9. package/dist/SystemUserManagementView-D75_ylYk.js +758 -0
  10. package/dist/{UserDetailWorkspaceView-OPYvD6mH.js → UserDetailWorkspaceView-BCST01d2.js} +1 -1
  11. package/dist/UserManagementView-CcdvDo_y.js +964 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2278 -4726
  14. package/dist/{pageRealtime-CzJlr9hs.js → pageRealtime-EAiGWKEo.js} +87 -85
  15. package/dist/{platform-components-DKKWbNrz.js → platform-components-CFU_zR7-.js} +2145 -1866
  16. package/dist/types/app/workbenchStartup.d.ts +6 -2
  17. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +2 -2
  18. package/dist/types/consumer/index.d.ts +4 -3
  19. package/dist/types/dynamic-page-runtime/DynamicModuleWorkspaceDetailView.vue.d.ts +10 -0
  20. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +38 -0
  21. package/dist/types/dynamic-page-runtime/NavigatorManagementEditor.vue.d.ts +25 -0
  22. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +43 -0
  23. package/dist/types/dynamic-page-runtime/detailSurfacePreference.d.ts +10 -0
  24. package/dist/types/dynamic-page-runtime/index.d.ts +2 -1
  25. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +38 -0
  26. package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +1 -1
  27. package/dist/types/dynamic-page-runtime/pageContextRuntime.d.ts +6 -0
  28. package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +27 -0
  29. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  30. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +5 -0
  31. package/dist/types/platform-admin-runtime/realtime.d.ts +2 -1
  32. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +12 -0
  33. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +6 -0
  34. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  35. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +8 -2
  36. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  37. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +4 -1
  38. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +8 -6
  39. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +7 -5
  40. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +4 -1
  41. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +1 -1
  42. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +2 -0
  43. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +9 -2
  45. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -0
  46. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +13 -7
  47. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +3 -0
  48. package/dist/types/platform-components/index.d.ts +4 -2
  49. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  50. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -2
  51. package/dist/types/platform-components/recycleBinState.d.ts +2 -0
  52. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +11 -0
  53. package/dist/types/platform-workbench/index.d.ts +1 -0
  54. package/dist/types/platform-workbench/menuNavigation.d.ts +3 -0
  55. package/dist/types/platform-workbench/modulePageWorkspaceViews.d.ts +7 -0
  56. package/dist/types/platform-workbench/workbenchLayout.d.ts +36 -0
  57. package/dist/types/platform-workbench/workbenchNavigation.d.ts +2 -0
  58. package/dist/types/platform-workbench/workspaceViewHost.d.ts +2 -0
  59. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +1 -1
  60. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +1 -1
  61. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  62. package/dist/types/vue-ui-antdv/components/UiModal.vue.d.ts +1 -1
  63. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  64. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +7 -1
  65. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  66. package/dist/types/web-contracts/index.d.ts +110 -17
  67. package/dist/types/web-core/businessNotifications.d.ts +3 -0
  68. package/dist/types/web-core/index.d.ts +1 -0
  69. package/dist/types/web-core/module/moduleContext.d.ts +1 -0
  70. package/dist/types/web-core/module/runtimeContext.d.ts +3 -1
  71. package/dist/types/web-core/module/staticModuleClient.d.ts +8 -1
  72. package/dist/types/web-core/realtime.d.ts +5 -1
  73. package/dist/{useUserSessionRows-CBHEzRFQ.js → useUserSessionRows-DCpUZCzN.js} +2 -2
  74. package/dist/workspaceViewSessions-Dj1LjdG1.js +4984 -0
  75. package/package.json +1 -1
  76. package/dist/SystemUserManagementView-C1CkKivH.js +0 -758
  77. package/dist/UserManagementView-gbCL9SnC.js +0 -965
  78. package/dist/currentUserContext-B1lj1WgF.js +0 -11
  79. package/dist/types/views/ApplicationManagementView.vue.d.ts +0 -3
  80. package/dist/types/views/DepartmentManagementView.vue.d.ts +0 -3
  81. package/dist/types/views/FieldSpecManagementView.vue.d.ts +0 -3
  82. package/dist/types/views/OrganizationManagementView.vue.d.ts +0 -3
  83. package/dist/types/views/applicationManagementState.d.ts +0 -64
  84. package/dist/types/views/departmentManagementState.d.ts +0 -137
  85. package/dist/types/views/fieldSpecManagementState.d.ts +0 -80
  86. package/dist/types/views/organizationManagementState.d.ts +0 -64
  87. package/dist/workspaceViewSessions-DkB9myrq.js +0 -3252
@@ -1,40 +1,39 @@
1
- import { A as e, C as t, Dn as n, Dt as r, F as i, I as a, L as ee, M as te, Mt as ne, N as re, O as ie, P as o, R as s, S as ae, T as c, Wn as oe, X as se, Y as ce, _ as le, b as ue, c as de, d as fe, ht as l, i as pe, jt as u, l as me, lt as he, m as ge, mt as _e, p as ve, r as ye, rt as be, s as xe, st as Se, tt as d, ut as f, v as Ce, y as p, zt as m } from "./platform-components-DKKWbNrz.js";
2
- import { i as we, n as Te, r as Ee, t as De, u as Oe, x as ke } from "./workspaceViewSessions-DkB9myrq.js";
3
- import { n as Ae } from "./currentUserContext-B1lj1WgF.js";
4
- import { a as je, i as Me, r as Ne } from "./pageRealtime-CzJlr9hs.js";
5
- import { Fragment as Pe, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, normalizeClass as Fe, onBeforeUnmount as Ie, onMounted as Le, openBlock as C, ref as w, renderList as Re, toDisplayString as T, unref as E, watch as ze, withCtx as D, withModifiers as O } from "vue";
1
+ import { C as e, E as t, F as n, Ft as r, I as i, L as a, M as o, N as ee, Nt as s, P as c, Pn as te, R as ne, Vt as l, X as re, Z as ie, Zn as u, b as ae, c as oe, ct as se, dt as ce, f as le, gt as ue, h as d, ht as de, i as fe, it as pe, j as f, k as me, kt as he, l as ge, m as _e, nt as p, r as ve, u as ye, ut as be, v as m, w as xe, x as h, y as Se } from "./platform-components-CFU_zR7-.js";
2
+ import { S as Ce, i as we, j as Te, n as Ee, r as De, t as Oe, u as ke } from "./workspaceViewSessions-Dj1LjdG1.js";
3
+ import { a as Ae, i as je, r as Me } from "./pageRealtime-EAiGWKEo.js";
4
+ import { Fragment as Ne, computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, normalizeClass as Pe, onBeforeUnmount as Fe, onMounted as Ie, openBlock as w, ref as T, renderList as Le, toDisplayString as E, unref as D, watch as Re, withCtx as O, withModifiers as k } from "vue";
6
5
  //#region src/views/employeeDetailStateModel.ts
7
- function Be(e) {
6
+ function ze(e) {
8
7
  return e.mode === "view" || e.loadingDetail || e.saving ? !0 : e.mode === "edit" && !e.selectedEmployeeId;
9
8
  }
10
- function Ve(e) {
9
+ function Be(e) {
11
10
  return e.activeRequestSeq === e.requestSeq && e.selectedEmployeeKey === e.recordId;
12
11
  }
13
- function He(e) {
12
+ function Ve(e) {
14
13
  return e.mode === "create" ? !0 : !e.loadingDetail && !e.loadFailed && !!e.selectedEmployeeId;
15
14
  }
16
- function Ue(e) {
15
+ function He(e) {
17
16
  return !e.saving;
18
17
  }
19
- function We(e) {
18
+ function Ue(e) {
20
19
  return e.mode !== "edit" || !e.selectedEmployeeId;
21
20
  }
22
- function Ge(e) {
23
- let t = e.filter((e) => e.visible && e.required && !Ke(e.value)).map((e) => e.label);
21
+ function We(e) {
22
+ let t = e.filter((e) => e.visible && e.required && !Ge(e.value)).map((e) => e.label);
24
23
  return t.length > 0 ? `请填写${t.join("、")}` : void 0;
25
24
  }
26
- function Ke(e) {
25
+ function Ge(e) {
27
26
  return typeof e == "string" ? e.trim().length > 0 : e != null;
28
27
  }
29
28
  //#endregion
30
29
  //#region src/views/EmployeeEmploymentDrawer.vue?vue&type=script&setup=true&lang.ts
31
- var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header" }, A = { class: "employment-primary-field" }, j = ["checked", "disabled"], M = { key: 0 }, N = { class: "employment-editor-actions" }, P = {
30
+ var Ke = { class: "employment-drawer" }, qe = { class: "employment-drawer-header" }, A = { class: "employment-primary-field" }, j = ["checked", "disabled"], M = { key: 0 }, N = { class: "employment-editor-actions" }, P = {
32
31
  key: 2,
33
32
  class: "employment-state"
34
33
  }, F = {
35
34
  key: 3,
36
35
  class: "employment-empty"
37
- }, Je = /*#__PURE__*/ ne(/* @__PURE__ */ S({
36
+ }, Je = /*#__PURE__*/ r(/* @__PURE__ */ C({
38
37
  name: "EmployeeEmploymentDrawer",
39
38
  __name: "EmployeeEmploymentDrawer",
40
39
  props: {
@@ -43,7 +42,7 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
43
42
  },
44
43
  emits: ["close", "saved"],
45
44
  setup(e, { emit: t }) {
46
- let n = e, r = t, a = m({ moduleAlias: "iam.employee" }), ee = m({ moduleAlias: "iam.organization" }), te = m({ moduleAlias: "iam.department" }), ne = m({ moduleAlias: "iam.position" }), re = w([]), ie = w(!1), o = w(!1), s = w(!1), ae = w(!1), c = w(pe()), oe = [
45
+ let r = e, i = t, a = l({ moduleAlias: "iam.employee" }), o = l({ moduleAlias: "iam.organization" }), ee = l({ moduleAlias: "iam.department" }), c = l({ moduleAlias: "iam.position" }), te = T([]), ne = T(!1), re = T(!1), u = T(!1), le = T(!1), d = T(_e()), fe = [
47
46
  {
48
47
  key: "position",
49
48
  title: "岗位",
@@ -64,95 +63,95 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
64
63
  title: "主岗位",
65
64
  width: 80
66
65
  }
67
- ], ce = h(() => `任职管理 - ${me(n.employee)}`), le = h(() => re.value), de = h(() => xe(te, {
66
+ ], f = g(() => `任职管理 - ${ve(r.employee)}`), me = g(() => te.value), he = g(() => oe(ee, {
68
67
  scopeFieldName: "organizationId",
69
- scopeValue: c.value.organizationId,
68
+ scopeValue: d.value.organizationId,
70
69
  treePath: "/iam.department/tree",
71
70
  sortPath: "/iam.department/sort"
72
- })), fe = h(() => {
73
- let e = n.employee;
74
- return !!(e?.organizationId && e?.departmentId && e.organizationId === c.value.organizationId && e.departmentId === c.value.departmentId);
71
+ })), ge = g(() => {
72
+ let e = r.employee;
73
+ return !!(e?.organizationId && e?.departmentId && e.organizationId === d.value.organizationId && e.departmentId === d.value.departmentId);
75
74
  });
76
- ze(() => [n.open, n.employee?.id], ([e]) => {
77
- e ? ge() : ve();
75
+ Re(() => [r.open, r.employee?.id], ([e]) => {
76
+ e ? ye() : m();
78
77
  }, { immediate: !0 });
79
- function pe() {
78
+ function _e() {
80
79
  return {
81
80
  primaryPosition: !1,
82
81
  enabled: !0
83
82
  };
84
83
  }
85
- function me(e) {
84
+ function ve(e) {
86
85
  return String(e?.title ?? e?.employeeNo ?? e?.id ?? "职员");
87
86
  }
88
- async function ge() {
89
- let e = n.employee?.id;
87
+ async function ye() {
88
+ let e = r.employee?.id;
90
89
  if (e) {
91
- ie.value = !0, o.value = !1;
90
+ ne.value = !0, re.value = !1;
92
91
  try {
93
- re.value = (await a.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/employment-view` })).records;
92
+ te.value = (await a.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/employment-view` })).records;
94
93
  } catch (e) {
95
- o.value = !0, d(e, {
94
+ re.value = !0, p(e, {
96
95
  source: "employee-employment",
97
96
  phase: "load"
98
97
  });
99
98
  } finally {
100
- ie.value = !1;
99
+ ne.value = !1;
101
100
  }
102
101
  }
103
102
  }
104
- function ve() {
105
- ae.value = !1, c.value = pe();
103
+ function m() {
104
+ le.value = !1, d.value = _e();
106
105
  }
107
- function ye() {
108
- c.value = {
109
- organizationId: n.employee?.organizationId,
110
- departmentId: n.employee?.departmentId,
106
+ function xe() {
107
+ d.value = {
108
+ organizationId: r.employee?.organizationId,
109
+ departmentId: r.employee?.departmentId,
111
110
  primaryPosition: !1,
112
111
  enabled: !0
113
- }, ae.value = !0;
112
+ }, le.value = !0;
114
113
  }
115
- function Ce(e) {
116
- c.value = { ...e }, ae.value = !0;
114
+ function Se(e) {
115
+ d.value = { ...e }, le.value = !0;
117
116
  }
118
- function we(e) {
119
- let t = e !== c.value.organizationId;
120
- c.value = {
121
- ...c.value,
117
+ function Ce(e) {
118
+ let t = e !== d.value.organizationId;
119
+ d.value = {
120
+ ...d.value,
122
121
  organizationId: e,
123
- departmentId: t ? void 0 : c.value.departmentId,
124
- primaryPosition: t ? !1 : c.value.primaryPosition
122
+ departmentId: t ? void 0 : d.value.departmentId,
123
+ primaryPosition: t ? !1 : d.value.primaryPosition
125
124
  };
126
125
  }
127
- function Te(e) {
128
- let t = !!(c.value.primaryPosition && n.employee?.organizationId === c.value.organizationId && n.employee?.departmentId === e);
129
- c.value = {
130
- ...c.value,
126
+ function we(e) {
127
+ let t = !!(d.value.primaryPosition && r.employee?.organizationId === d.value.organizationId && r.employee?.departmentId === e);
128
+ d.value = {
129
+ ...d.value,
131
130
  departmentId: e,
132
131
  primaryPosition: t
133
132
  };
134
133
  }
135
- function Ee(e) {
136
- if (e && !fe.value) {
137
- be("主岗必须与职员主机构、主部门一致", {
134
+ function Te(e) {
135
+ if (e && !ge.value) {
136
+ pe("主岗必须与职员主机构、主部门一致", {
138
137
  source: "employee-employment",
139
138
  phase: "validation"
140
139
  });
141
140
  return;
142
141
  }
143
- c.value = {
144
- ...c.value,
142
+ d.value = {
143
+ ...d.value,
145
144
  primaryPosition: e
146
145
  };
147
146
  }
148
- function De(e, t) {
147
+ function Ee(e, t) {
149
148
  let n = t;
150
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 ? "是" : "否" : "";
151
150
  }
152
- function Oe(e) {
151
+ function De(e) {
153
152
  return e.enabled === !1;
154
153
  }
155
- function ke(e) {
154
+ function Oe(e) {
156
155
  return [
157
156
  ...e.primaryPosition ? [] : [{
158
157
  key: "primary",
@@ -169,29 +168,29 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
169
168
  }
170
169
  ];
171
170
  }
172
- function Ae(e, t) {
173
- (t === "primary" || t === "enable" || t === "disable" || t === "delete") && Me(e, t);
171
+ function ke(e, t) {
172
+ (t === "primary" || t === "enable" || t === "disable" || t === "delete") && je(e, t);
174
173
  }
175
- async function je() {
176
- let e = n.employee?.id;
177
- if (!e || !c.value.organizationId || !c.value.departmentId || !c.value.positionId) {
178
- be("请选择机构、部门和岗位", {
174
+ async function Ae() {
175
+ let e = r.employee?.id;
176
+ if (!e || !d.value.organizationId || !d.value.departmentId || !d.value.positionId) {
177
+ pe("请选择机构、部门和岗位", {
179
178
  source: "employee-employment",
180
179
  phase: "validation"
181
180
  });
182
181
  return;
183
182
  }
184
- s.value = !0;
183
+ u.value = !0;
185
184
  try {
186
- let t = c.value.id;
185
+ let t = d.value.id;
187
186
  await a.http.request({
188
187
  method: "POST",
189
188
  path: t ? `/iam.employee/${encodeURIComponent(e)}/positions/${encodeURIComponent(t)}/update` : `/iam.employee/${encodeURIComponent(e)}/positions`,
190
189
  body: {
191
- ...c.value,
190
+ ...d.value,
192
191
  employeeId: e
193
192
  }
194
- }), ve(), await ge(), r("saved", e), await se({
193
+ }), m(), await ye(), i("saved", e), await ie({
195
194
  success: !0,
196
195
  message: "任职已保存"
197
196
  }, {
@@ -199,181 +198,181 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
199
198
  phase: "action"
200
199
  });
201
200
  } catch (e) {
202
- d(e, {
201
+ p(e, {
203
202
  source: "employee-employment",
204
203
  phase: "action"
205
204
  });
206
205
  } finally {
207
- s.value = !1;
206
+ u.value = !1;
208
207
  }
209
208
  }
210
- async function Me(e, t) {
211
- let i = n.employee?.id;
212
- if (i && !(t === "delete" && !await Se({
209
+ async function je(e, t) {
210
+ let n = r.employee?.id;
211
+ if (n && !(t === "delete" && !await se({
213
212
  title: "删除任职",
214
213
  content: "确认删除该任职?",
215
214
  okText: "删除",
216
215
  danger: !0
217
216
  }))) {
218
- s.value = !0;
217
+ u.value = !0;
219
218
  try {
220
219
  await a.http.request({
221
220
  method: "POST",
222
- path: `/iam.employee/${encodeURIComponent(i)}/positions/${encodeURIComponent(e.id)}/${t}`
223
- }), await ge(), r("saved", i);
221
+ path: `/iam.employee/${encodeURIComponent(n)}/positions/${encodeURIComponent(e.id)}/${t}`
222
+ }), await ye(), i("saved", n);
224
223
  } catch (e) {
225
- d(e, {
224
+ p(e, {
226
225
  source: "employee-employment",
227
226
  phase: "action"
228
227
  });
229
228
  } finally {
230
- s.value = !1;
229
+ u.value = !1;
231
230
  }
232
231
  }
233
232
  }
234
- return (t, n) => (C(), g(E(i), {
233
+ return (t, r) => (w(), _(D(n), {
235
234
  open: e.open,
236
- title: ce.value,
237
- onClose: n[4] ||= (e) => r("close")
235
+ title: f.value,
236
+ onClose: r[4] ||= (e) => i("close")
238
237
  }, {
239
- operation: D(() => [x(E(u), {
238
+ operation: O(() => [S(D(s), {
240
239
  type: "text",
241
240
  "icon-name": "reload",
242
- disabled: ie.value || s.value,
243
- onClick: ge
241
+ disabled: ne.value || u.value,
242
+ onClick: ye
244
243
  }, {
245
- default: D(() => [...n[5] ||= [b(" 刷新 ", -1)]]),
244
+ default: O(() => [...r[5] ||= [x(" 刷新 ", -1)]]),
246
245
  _: 1
247
246
  }, 8, ["disabled"])]),
248
- default: D(() => [y("div", qe, [
249
- y("div", k, [n[7] ||= y("div", null, [y("strong", null, "任职信息"), y("span", null, "角色授权按具体任职生效")], -1), x(E(u), {
247
+ default: O(() => [b("div", Ke, [
248
+ b("div", qe, [r[7] ||= b("div", null, [b("strong", null, "任职信息"), b("span", null, "角色授权按具体任职生效")], -1), S(D(s), {
250
249
  type: "primary",
251
250
  "icon-name": "plus",
252
- disabled: s.value,
253
- onClick: ye
251
+ disabled: u.value,
252
+ onClick: xe
254
253
  }, {
255
- default: D(() => [...n[6] ||= [b("新增任职", -1)]]),
254
+ default: O(() => [...r[6] ||= [x("新增任职", -1)]]),
256
255
  _: 1
257
256
  }, 8, ["disabled"])]),
258
- ae.value ? (C(), v("form", {
257
+ le.value ? (w(), y("form", {
259
258
  key: 0,
260
259
  class: "employment-editor",
261
- onSubmit: O(je, ["prevent"])
260
+ onSubmit: k(Ae, ["prevent"])
262
261
  }, [
263
- y("label", null, [n[8] ||= y("span", null, "机构", -1), x(E(p), {
264
- value: c.value.organizationId,
265
- context: E(ee),
262
+ b("label", null, [r[8] ||= b("span", null, "机构", -1), S(D(ae), {
263
+ value: d.value.organizationId,
264
+ context: D(o),
266
265
  placeholder: "请选择机构",
267
- constraints: [E(ue)()],
268
- disabled: s.value,
269
- "onUpdate:value": we
266
+ constraints: [D(h)()],
267
+ disabled: u.value,
268
+ "onUpdate:value": Ce
270
269
  }, null, 8, [
271
270
  "value",
272
271
  "context",
273
272
  "constraints",
274
273
  "disabled"
275
274
  ])]),
276
- y("label", null, [n[9] ||= y("span", null, "部门", -1), x(E(p), {
277
- value: c.value.departmentId,
278
- context: de.value,
275
+ b("label", null, [r[9] ||= b("span", null, "部门", -1), S(D(ae), {
276
+ value: d.value.departmentId,
277
+ context: he.value,
279
278
  placeholder: "请选择部门",
280
- constraints: [E(ue)()],
281
- disabled: s.value || !c.value.organizationId,
282
- "onUpdate:value": Te
279
+ constraints: [D(h)()],
280
+ disabled: u.value || !d.value.organizationId,
281
+ "onUpdate:value": we
283
282
  }, null, 8, [
284
283
  "value",
285
284
  "context",
286
285
  "constraints",
287
286
  "disabled"
288
287
  ])]),
289
- y("label", null, [n[10] ||= y("span", null, "岗位", -1), x(E(p), {
290
- value: c.value.positionId,
291
- context: E(ne),
288
+ b("label", null, [r[10] ||= b("span", null, "岗位", -1), S(D(ae), {
289
+ value: d.value.positionId,
290
+ context: D(c),
292
291
  mode: "list",
293
292
  placeholder: "请选择岗位",
294
- constraints: [E(ue)()],
295
- disabled: s.value,
296
- "onUpdate:value": n[0] ||= (e) => c.value.positionId = e ? String(e) : void 0
293
+ constraints: [D(h)()],
294
+ disabled: u.value,
295
+ "onUpdate:value": r[0] ||= (e) => d.value.positionId = e ? String(e) : void 0
297
296
  }, null, 8, [
298
297
  "value",
299
298
  "context",
300
299
  "constraints",
301
300
  "disabled"
302
301
  ])]),
303
- y("label", A, [
304
- n[12] ||= y("span", null, "主岗位", -1),
305
- y("span", null, [y("input", {
302
+ b("label", A, [
303
+ r[12] ||= b("span", null, "主岗位", -1),
304
+ b("span", null, [b("input", {
306
305
  type: "checkbox",
307
- checked: c.value.primaryPosition === !0,
308
- disabled: s.value || !fe.value,
309
- onChange: n[1] ||= (e) => Ee(e.target.checked)
310
- }, null, 40, j), n[11] ||= b(" 设为主岗 ", -1)]),
311
- fe.value ? _("v-if", !0) : (C(), v("small", M, "主岗必须与职员主机构、主部门一致"))
306
+ checked: d.value.primaryPosition === !0,
307
+ disabled: u.value || !ge.value,
308
+ onChange: r[1] ||= (e) => Te(e.target.checked)
309
+ }, null, 40, j), r[11] ||= x(" 设为主岗 ", -1)]),
310
+ ge.value ? v("v-if", !0) : (w(), y("small", M, "主岗必须与职员主机构、主部门一致"))
312
311
  ]),
313
- y("div", N, [x(E(u), {
314
- disabled: s.value,
315
- onClick: ve
312
+ b("div", N, [S(D(s), {
313
+ disabled: u.value,
314
+ onClick: m
316
315
  }, {
317
- default: D(() => [...n[13] ||= [b("取消", -1)]]),
316
+ default: O(() => [...r[13] ||= [x("取消", -1)]]),
318
317
  _: 1
319
- }, 8, ["disabled"]), x(E(u), {
318
+ }, 8, ["disabled"]), S(D(s), {
320
319
  type: "primary",
321
320
  "html-type": "submit",
322
- loading: s.value
321
+ loading: u.value
323
322
  }, {
324
- default: D(() => [...n[14] ||= [b("保存任职", -1)]]),
323
+ default: O(() => [...r[14] ||= [x("保存任职", -1)]]),
325
324
  _: 1
326
325
  }, 8, ["loading"])])
327
- ], 32)) : _("v-if", !0),
328
- ie.value ? (C(), g(E(f), {
326
+ ], 32)) : v("v-if", !0),
327
+ ne.value ? (w(), _(D(ce), {
329
328
  key: 1,
330
329
  class: "employment-state",
331
330
  tip: "加载任职"
332
- })) : o.value ? (C(), v("div", P, [x(E(he), {
331
+ })) : re.value ? (w(), y("div", P, [S(D(be), {
333
332
  title: "任职信息加载失败",
334
333
  message: "无法加载任职信息,请重试"
335
- }), x(E(u), {
334
+ }), S(D(s), {
336
335
  type: "primary",
337
336
  "icon-name": "reload",
338
- onClick: ge
337
+ onClick: ye
339
338
  }, {
340
- default: D(() => [...n[15] ||= [b("重试", -1)]]),
339
+ default: O(() => [...r[15] ||= [x("重试", -1)]]),
341
340
  _: 1
342
- })])) : re.value.length === 0 ? (C(), v("p", F, "暂无任职信息")) : (C(), g(E(l), {
341
+ })])) : te.value.length === 0 ? (w(), y("p", F, "暂无任职信息")) : (w(), _(D(ue), {
343
342
  key: 4,
344
343
  class: "employment-table",
345
- columns: oe,
346
- rows: le.value,
344
+ columns: fe,
345
+ rows: me.value,
347
346
  "row-key": "id",
348
347
  pagination: !1,
349
348
  "horizontal-scroll": "",
350
349
  "show-action-column": "",
351
350
  "action-column-width": "92",
352
- "row-muted": Oe
351
+ "row-muted": De
353
352
  }, {
354
- cell: D(({ column: e, record: t }) => [b(T(De(e, t)), 1)]),
355
- rowActions: D(({ record: e }) => [y("div", {
353
+ cell: O(({ column: e, record: t }) => [x(E(Ee(e, t)), 1)]),
354
+ rowActions: O(({ record: e }) => [b("div", {
356
355
  class: "employment-table-row-actions",
357
- onClick: n[2] ||= O(() => {}, ["stop"]),
358
- onDblclick: n[3] ||= O(() => {}, ["stop"])
359
- }, [x(E(u), {
356
+ onClick: r[2] ||= k(() => {}, ["stop"]),
357
+ onDblclick: r[3] ||= k(() => {}, ["stop"])
358
+ }, [S(D(s), {
360
359
  type: "text",
361
- disabled: s.value,
362
- onClick: (t) => Ce(e)
360
+ disabled: u.value,
361
+ onClick: (t) => Se(e)
363
362
  }, {
364
- default: D(() => [...n[16] ||= [b(" 编辑 ", -1)]]),
363
+ default: O(() => [...r[16] ||= [x(" 编辑 ", -1)]]),
365
364
  _: 1
366
- }, 8, ["disabled", "onClick"]), x(E(_e), {
367
- items: ke(e),
365
+ }, 8, ["disabled", "onClick"]), S(D(de), {
366
+ items: Oe(e),
368
367
  trigger: "hover",
369
- onSelect: (t) => Ae(e, t)
368
+ onSelect: (t) => ke(e, t)
370
369
  }, {
371
- default: D(() => [x(E(u), {
370
+ default: O(() => [S(D(s), {
372
371
  type: "text",
373
372
  "icon-name": "down",
374
373
  title: "更多",
375
374
  "aria-label": "更多",
376
- disabled: s.value
375
+ disabled: u.value
377
376
  }, null, 8, ["disabled"])]),
378
377
  _: 1
379
378
  }, 8, ["items", "onSelect"])], 32)]),
@@ -398,7 +397,7 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
398
397
  }, Ye = { class: "employee-account-status" }, Xe = { key: 0 }, U = { class: "employee-form-label" }, W = {
399
398
  key: 0,
400
399
  "aria-hidden": "true"
401
- }, Ze = /*#__PURE__*/ ne(/* @__PURE__ */ S({
400
+ }, Ze = /*#__PURE__*/ r(/* @__PURE__ */ C({
402
401
  name: "EmployeeDetailContent",
403
402
  __name: "EmployeeDetailContent",
404
403
  props: {
@@ -445,29 +444,29 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
445
444
  "removeAccount",
446
445
  "updateAccountProvisionField"
447
446
  ],
448
- setup(t, { emit: n }) {
449
- let i = t, a = n;
450
- return (t, n) => i.loading ? (C(), g(E(f), {
447
+ setup(e, { emit: t }) {
448
+ let n = e, r = t;
449
+ return (e, t) => n.loading ? (w(), _(D(ce), {
451
450
  key: 0,
452
451
  class: "employee-detail-state",
453
452
  tip: "加载职员详情"
454
- })) : i.loadFailed ? (C(), v("div", I, [x(E(he), {
453
+ })) : n.loadFailed ? (w(), y("div", I, [S(D(be), {
455
454
  title: "详情加载失败",
456
455
  message: "无法加载职员详情,请重试"
457
- }), x(E(u), {
456
+ }), S(D(s), {
458
457
  type: "primary",
459
458
  "icon-name": "reload",
460
- onClick: n[0] ||= (e) => a("retry")
459
+ onClick: t[0] ||= (e) => r("retry")
461
460
  }, {
462
- default: D(() => [...n[12] ||= [b("重试", -1)]]),
461
+ default: O(() => [...t[12] ||= [x("重试", -1)]]),
463
462
  _: 1
464
- })])) : i.showContent ? (C(), v(Pe, { key: 2 }, [i.mode === "view" ? (C(), v(Pe, { key: 0 }, [
465
- x(E(e), {
466
- record: i.draft,
467
- fields: i.fields,
468
- fallback: i.fallback,
469
- "picker-configs": i.pickerConfigs,
470
- "display-of": i.displayOf
463
+ })])) : n.showContent ? (w(), y(Ne, { key: 2 }, [n.mode === "view" ? (w(), y(Ne, { key: 0 }, [
464
+ S(D(f), {
465
+ record: n.draft,
466
+ fields: n.fields,
467
+ fallback: n.fallback,
468
+ "picker-configs": n.pickerConfigs,
469
+ "display-of": n.displayOf
471
470
  }, null, 8, [
472
471
  "record",
473
472
  "fields",
@@ -475,98 +474,98 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
475
474
  "picker-configs",
476
475
  "display-of"
477
476
  ]),
478
- y("section", L, [y("div", R, [n[14] ||= y("strong", null, "登录账号", -1), !i.account && !i.showAccountProvisionForm ? (C(), g(E(u), {
477
+ b("section", L, [b("div", R, [t[14] ||= b("strong", null, "登录账号", -1), !n.account && !n.showAccountProvisionForm ? (w(), _(D(s), {
479
478
  key: 0,
480
479
  type: "primary",
481
480
  "icon-name": "plus",
482
- disabled: !i.canManageAccounts,
483
- onClick: n[1] ||= (e) => a("startAccountProvision")
481
+ disabled: !n.canManageAccounts,
482
+ onClick: t[1] ||= (e) => r("startAccountProvision")
484
483
  }, {
485
- default: D(() => [...n[13] ||= [b(" 设置账号 ", -1)]]),
484
+ default: O(() => [...t[13] ||= [x(" 设置账号 ", -1)]]),
486
485
  _: 1
487
- }, 8, ["disabled"])) : _("v-if", !0)]), i.loadingAccounts ? (C(), g(E(f), {
486
+ }, 8, ["disabled"])) : v("v-if", !0)]), n.loadingAccounts ? (w(), _(D(ce), {
488
487
  key: 0,
489
488
  class: "employee-account-state",
490
489
  tip: "加载账号绑定"
491
- })) : i.accountsLoadFailed ? (C(), v("div", z, [x(E(he), {
490
+ })) : n.accountsLoadFailed ? (w(), y("div", z, [S(D(be), {
492
491
  title: "账号绑定加载失败",
493
492
  message: "无法加载职员账号绑定,请重试"
494
- }), x(E(u), {
493
+ }), S(D(s), {
495
494
  "icon-name": "reload",
496
- onClick: n[2] ||= (e) => a("retryAccounts")
495
+ onClick: t[2] ||= (e) => r("retryAccounts")
497
496
  }, {
498
- default: D(() => [...n[15] ||= [b("重试", -1)]]),
497
+ default: O(() => [...t[15] ||= [x("重试", -1)]]),
499
498
  _: 1
500
- })])) : i.showAccountProvisionForm ? (C(), v("form", {
499
+ })])) : n.showAccountProvisionForm ? (w(), y("form", {
501
500
  key: 2,
502
501
  class: "employee-account-form",
503
- onSubmit: n[6] ||= O((e) => a("provisionAccount"), ["prevent"])
502
+ onSubmit: t[6] ||= k((e) => r("provisionAccount"), ["prevent"])
504
503
  }, [
505
- y("label", null, [n[16] ||= y("span", null, "账号", -1), x(E(r), {
506
- value: i.accountProvisionDraft.username,
504
+ b("label", null, [t[16] ||= b("span", null, "账号", -1), S(D(he), {
505
+ value: n.accountProvisionDraft.username,
507
506
  placeholder: "请输入登录账号",
508
- disabled: i.savingAccount,
509
- "onUpdate:value": n[3] ||= (e) => a("updateAccountProvisionField", "username", e)
507
+ disabled: n.savingAccount,
508
+ "onUpdate:value": t[3] ||= (e) => r("updateAccountProvisionField", "username", e)
510
509
  }, null, 8, ["value", "disabled"])]),
511
- y("label", null, [n[17] ||= y("span", null, "初始密码", -1), x(E(r), {
512
- value: i.accountProvisionDraft.password,
510
+ b("label", null, [t[17] ||= b("span", null, "初始密码", -1), S(D(he), {
511
+ value: n.accountProvisionDraft.password,
513
512
  type: "password",
514
513
  placeholder: "请输入初始密码",
515
- disabled: i.savingAccount,
516
- "onUpdate:value": n[4] ||= (e) => a("updateAccountProvisionField", "password", e)
514
+ disabled: n.savingAccount,
515
+ "onUpdate:value": t[4] ||= (e) => r("updateAccountProvisionField", "password", e)
517
516
  }, null, 8, ["value", "disabled"])]),
518
- y("div", B, [x(E(u), {
519
- disabled: i.savingAccount,
520
- onClick: n[5] ||= (e) => a("cancelAccountProvision")
517
+ b("div", B, [S(D(s), {
518
+ disabled: n.savingAccount,
519
+ onClick: t[5] ||= (e) => r("cancelAccountProvision")
521
520
  }, {
522
- default: D(() => [...n[18] ||= [b("取消", -1)]]),
521
+ default: O(() => [...t[18] ||= [x("取消", -1)]]),
523
522
  _: 1
524
- }, 8, ["disabled"]), x(E(u), {
523
+ }, 8, ["disabled"]), S(D(s), {
525
524
  type: "primary",
526
525
  "html-type": "submit",
527
526
  "icon-name": "plus",
528
- loading: i.savingAccount,
529
- disabled: !i.canManageAccounts
527
+ loading: n.savingAccount,
528
+ disabled: !n.canManageAccounts
530
529
  }, {
531
- default: D(() => [...n[19] ||= [b(" 创建账号并绑定 ", -1)]]),
530
+ default: O(() => [...t[19] ||= [x(" 创建账号并绑定 ", -1)]]),
532
531
  _: 1
533
532
  }, 8, ["loading", "disabled"])])
534
- ], 32)) : i.account ? (C(), v("div", H, [
535
- y("div", null, [y("strong", null, T(i.accountUserTitle), 1), y("span", null, T(i.accountUserDescription), 1)]),
536
- y("span", Ye, T(i.accountStatusTitle), 1),
537
- x(E(u), {
533
+ ], 32)) : n.account ? (w(), y("div", H, [
534
+ b("div", null, [b("strong", null, E(n.accountUserTitle), 1), b("span", null, E(n.accountUserDescription), 1)]),
535
+ b("span", Ye, E(n.accountStatusTitle), 1),
536
+ S(D(s), {
538
537
  danger: "",
539
538
  "icon-name": "delete",
540
- disabled: i.savingAccount || !i.canManageAccounts,
541
- onClick: n[7] ||= (e) => a("removeAccount")
539
+ disabled: n.savingAccount || !n.canManageAccounts,
540
+ onClick: t[7] ||= (e) => r("removeAccount")
542
541
  }, {
543
- default: D(() => [...n[21] ||= [b(" 移除账户 ", -1)]]),
542
+ default: O(() => [...t[21] ||= [x(" 移除账户 ", -1)]]),
544
543
  _: 1
545
544
  }, 8, ["disabled"])
546
- ])) : (C(), v("div", V, [...n[20] ||= [y("span", null, "未设置登录账号", -1), y("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
547
- x(E(le), {
548
- record: i.draft,
545
+ ])) : (w(), y("div", V, [...t[20] ||= [b("span", null, "未设置登录账号", -1), b("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
546
+ S(D(m), {
547
+ record: n.draft,
549
548
  "show-sort-order": ""
550
549
  }, null, 8, ["record"])
551
- ], 64)) : (C(), v(Pe, { key: 1 }, [i.externallyChanged ? (C(), g(E(o), {
550
+ ], 64)) : (w(), y(Ne, { key: 1 }, [n.externallyChanged ? (w(), _(D(c), {
552
551
  key: 0,
553
- onReload: n[8] ||= (e) => a("reloadExternal"),
554
- onDismiss: n[9] ||= (e) => a("dismissExternal")
555
- })) : _("v-if", !0), y("form", {
552
+ onReload: t[8] ||= (e) => r("reloadExternal"),
553
+ onDismiss: t[9] ||= (e) => r("dismissExternal")
554
+ })) : v("v-if", !0), b("form", {
556
555
  class: "employee-form",
557
- onSubmit: n[11] ||= O((e) => a("save"), ["prevent"])
558
- }, [i.visibleOf("organizationId") ? (C(), v("label", Xe, [y("span", U, [b(T(i.labelOf("organizationId")) + " ", 1), i.requiredOf("organizationId") ? (C(), v("strong", W, "*")) : _("v-if", !0)]), x(E(r), {
559
- value: i.selectedOrganization?.title ?? i.selectedOrganization?.id ?? "-",
556
+ onSubmit: t[11] ||= k((e) => r("save"), ["prevent"])
557
+ }, [n.visibleOf("organizationId") ? (w(), y("label", Xe, [b("span", U, [x(E(n.labelOf("organizationId")) + " ", 1), n.requiredOf("organizationId") ? (w(), y("strong", W, "*")) : v("v-if", !0)]), S(D(he), {
558
+ value: n.selectedOrganization?.title ?? n.selectedOrganization?.id ?? "-",
560
559
  disabled: ""
561
- }, null, 8, ["value"])])) : _("v-if", !0), x(E(Ce), {
562
- record: i.draft,
563
- fields: i.fields,
560
+ }, null, 8, ["value"])])) : v("v-if", !0), S(D(Se), {
561
+ record: n.draft,
562
+ fields: n.fields,
564
563
  "exclude-field-names": ["organizationId"],
565
- fallback: i.fallback,
566
- "picker-configs": i.pickerConfigs,
567
- disabled: i.formDisabled,
568
- "option-context": i.optionContext,
569
- "onUpdate:field": n[10] ||= (e, t) => a("updateField", e, t)
564
+ fallback: n.fallback,
565
+ "picker-configs": n.pickerConfigs,
566
+ disabled: n.formDisabled,
567
+ "option-context": n.optionContext,
568
+ "onUpdate:field": t[10] ||= (e, t) => r("updateField", e, t)
570
569
  }, null, 8, [
571
570
  "record",
572
571
  "fields",
@@ -574,13 +573,13 @@ var qe = { class: "employment-drawer" }, k = { class: "employment-drawer-header"
574
573
  "picker-configs",
575
574
  "disabled",
576
575
  "option-context"
577
- ])], 32)], 64))], 64)) : _("v-if", !0);
576
+ ])], 32)], 64))], 64)) : v("v-if", !0);
578
577
  }
579
578
  }), [["__scopeId", "data-v-9c433254"]]);
580
579
  //#endregion
581
580
  //#region src/views/employeeDetailWorkspaceSession.ts
582
581
  function Qe(e, t) {
583
- return De(Oe, e, {
582
+ return Oe(ke, e, {
584
583
  ...t,
585
584
  selectedEmployee: { ...t.selectedEmployee },
586
585
  draft: { ...t.draft },
@@ -592,34 +591,34 @@ function Qe(e, t) {
592
591
  });
593
592
  }
594
593
  function $e(e, t) {
595
- return Te(Oe, e, t);
594
+ return Ee(ke, e, t);
596
595
  }
597
596
  function et(e) {
598
- return Ee(Oe, e);
597
+ return De(ke, e);
599
598
  }
600
599
  //#endregion
601
600
  //#region src/views/useEmployeeEmploymentRows.ts
602
601
  function tt(e) {
603
- let t = w([]), n = w({});
602
+ let t = T([]), n = T({});
604
603
  async function r(t) {
605
604
  if (!(!t || e.context.can("employeePositions", t) === !1)) {
606
- ee(t, {
605
+ o(t, {
607
606
  ...a(t),
608
607
  loading: !0,
609
608
  error: void 0
610
609
  });
611
610
  try {
612
- ee(t, {
611
+ o(t, {
613
612
  records: (await e.context.http.request({ path: e.pathOf?.(t) ?? `/iam.employee/${encodeURIComponent(t)}/employment-view` })).records,
614
613
  loading: !1,
615
614
  error: void 0
616
615
  });
617
616
  } catch (n) {
618
- let r = d(n, {
617
+ let r = p(n, {
619
618
  source: `${e.source}-employment-rows`,
620
619
  phase: "load"
621
620
  });
622
- ee(t, {
621
+ o(t, {
623
622
  ...a(t),
624
623
  loading: !1,
625
624
  error: r.message
@@ -640,13 +639,13 @@ function tt(e) {
640
639
  loading: !1
641
640
  };
642
641
  }
643
- function ee(e, t) {
642
+ function o(e, t) {
644
643
  n.value = {
645
644
  ...n.value,
646
645
  [e]: t
647
646
  };
648
647
  }
649
- function te() {
648
+ function ee() {
650
649
  t.value = [], n.value = {};
651
650
  }
652
651
  return {
@@ -654,7 +653,7 @@ function tt(e) {
654
653
  employmentRowState: a,
655
654
  handleEmployeeRowExpand: i,
656
655
  loadEmployeeEmploymentRows: r,
657
- resetEmployeeEmploymentRows: te
656
+ resetEmployeeEmploymentRows: ee
658
657
  };
659
658
  }
660
659
  //#endregion
@@ -662,36 +661,36 @@ function tt(e) {
662
661
  var nt = { key: 0 }, rt = {
663
662
  key: 1,
664
663
  class: "employee-row-employment-list"
665
- }, G = /*#__PURE__*/ ne(/* @__PURE__ */ S({
664
+ }, G = /*#__PURE__*/ r(/* @__PURE__ */ C({
666
665
  name: "EmployeeManagementView",
667
666
  __name: "EmployeeManagementView",
668
667
  props: {
669
668
  recordId: {},
670
669
  mode: {}
671
670
  },
672
- setup(e) {
673
- let r = e, ne = [
671
+ setup(r) {
672
+ let c = r, ae = [
674
673
  "departmentId",
675
674
  "employeeNo",
676
675
  "title"
677
- ], o = ke(), le = m({ moduleAlias: "iam.organization" }), ue = m({ moduleAlias: "iam.department" }), l = m({ moduleAlias: "iam.employee" }), he = m({ moduleAlias: "iam.user" }), _e = m({ moduleAlias: "iam.tenant" }), f = Ae(), Ce = w(re(void 0)), p = h(() => !!r.recordId), Te = h(() => p.value && o?.presentation === "drawer"), Ee = h(() => !p.value || Te.value), De = w(""), S = w(0), O = w(0), Ke = w(""), qe = w(0), k = w(), A = w(), j = w(), M = w(), N = w(!1), P = w("view"), F = w(!1), I = w(!1), L = w(!1), R = w(0), z = w(pn(void 0)), B = w(), V = w(), H = w(), Ye = w(!1), Xe = w(), U = w(!1), W = w(!1), G = w(!1), K = w(!1), q = w(mn(void 0)), it = ve({
678
- context: () => l,
679
- listReloadKey: O,
676
+ ], ce = Ce(), ue = l({ moduleAlias: "iam.organization" }), de = l({ moduleAlias: "iam.department" }), f = l({ moduleAlias: "iam.employee" }), he = l({ moduleAlias: "iam.user" }), be = l({ moduleAlias: "iam.tenant" }), m = Te(), h = T(ee(void 0)), Se = g(() => !!c.recordId), Ee = g(() => Se.value && ce?.presentation === "drawer"), De = g(() => !Se.value || Ee.value), Oe = T(""), C = T(0), k = T(0), Ge = T(""), Ke = T(0), qe = T(), A = T(), j = T(), M = T(), N = T(!1), P = T("view"), F = T(!1), I = T(!1), L = T(!1), R = T(0), z = T(pn(void 0)), B = T(), V = T(), H = T(), Ye = T(!1), Xe = T(), U = T(!1), W = T(!1), G = T(!1), K = T(!1), q = T(mn(void 0)), it = _e({
677
+ context: () => f,
678
+ listReloadKey: k,
680
679
  canChange: X,
681
680
  resetSelection: Yt
682
681
  }), { expandedEmployeeKeys: at, employmentRowState: ot, handleEmployeeRowExpand: st, loadEmployeeEmploymentRows: ct, resetEmployeeEmploymentRows: lt } = tt({
683
- context: l,
682
+ context: f,
684
683
  source: "employee-management",
685
684
  pathOf: (e) => it.active.value ? `/iam.employee/recycle-bin/${encodeURIComponent(e)}/employment-view` : `/iam.employee/${encodeURIComponent(e)}/employment-view`
686
- }), J = Me({
685
+ }), J = je({
687
686
  moduleAlias: "iam.employee",
688
687
  recordId: () => M.value?.id,
689
688
  editing: () => P.value === "edit",
690
689
  saving: () => L.value
691
- }), ut = je({
690
+ }), ut = Ae({
692
691
  delay: 80,
693
692
  load: async (e) => {
694
- O.value += 1;
693
+ k.value += 1;
695
694
  let t = M.value?.id;
696
695
  N.value && P.value === "view" && t && e.keys.includes(t) && await Z({
697
696
  ...z.value,
@@ -699,44 +698,44 @@ var nt = { key: 0 }, rt = {
699
698
  }, "view");
700
699
  }
701
700
  });
702
- Ne({
701
+ Me({
703
702
  moduleAlias: "iam.employee",
704
703
  handler: (e, t) => {
705
704
  let n = t.map((e) => e.recordId).filter((e) => !!e);
706
705
  ut.enqueue(n.length > 0 ? n : "__collection__");
707
706
  }
708
707
  });
709
- let dt = h(() => Ht(l, k.value)), ft = h(() => f?.value?.system === !0), pt = h(() => k.value?.id), mt = h(() => xe(le, {
708
+ let dt = g(() => Ht(f, qe.value)), ft = g(() => m?.value?.system === !0), pt = g(() => qe.value?.id), mt = g(() => oe(ue, {
710
709
  scopeFieldName: "tenantId",
711
710
  scopeValue: pt.value,
712
711
  treePath: "/iam.organization/tree"
713
- })), Y = h(() => A.value?.id), ht = h(() => xe(ue, {
712
+ })), Y = g(() => A.value?.id), ht = g(() => oe(de, {
714
713
  scopeFieldName: "organizationId",
715
714
  scopeValue: Y.value,
716
715
  treePath: "/iam.department/tree",
717
716
  sortPath: "/iam.department/sort"
718
- })), gt = h(() => ({ departmentId: {
717
+ })), gt = g(() => ({ departmentId: {
719
718
  context: ht.value,
720
- reloadKey: S.value,
719
+ reloadKey: C.value,
721
720
  placeholder: "请选择部门",
722
721
  titleOf: (e) => Rn(e)
723
- } })), _t = h(() => {
722
+ } })), _t = g(() => {
724
723
  let e = Y.value;
725
724
  if (e) return { departmentScope: {
726
725
  organizationId: e,
727
726
  includeChildren: !0
728
727
  } };
729
- }), vt = h(() => P.value === "create" ? "新建职员" : Dn(M.value ?? z.value)), yt = h(() => P.value === "create" ? void 0 : On(M.value ?? z.value)), bt = h(() => Be({
728
+ }), vt = g(() => P.value === "create" ? "新建职员" : Dn(M.value ?? z.value)), yt = g(() => P.value === "create" ? void 0 : On(M.value ?? z.value)), bt = g(() => ze({
730
729
  mode: P.value,
731
730
  loadingDetail: F.value,
732
731
  saving: L.value,
733
732
  selectedEmployeeId: M.value?.id
734
- })), xt = h(() => He({
733
+ })), xt = g(() => Ve({
735
734
  mode: P.value,
736
735
  loadingDetail: F.value,
737
736
  loadFailed: I.value,
738
737
  selectedEmployeeId: M.value?.id
739
- })), St = h(() => F.value ? !1 : P.value === "create" ? !!Y.value && l.can("create") === !0 : !!M.value?.id && l.can("update") === !0), Ct = h(() => F.value || !M.value?.id ? !1 : l.can(kn(M.value)) === !0), wt = h(() => !M.value?.id || F.value || L.value ? !1 : l.can("employeeAccounts", M.value.id) !== !1), Tt = h(() => P.value === "view" ? M.value?.id ? [{
738
+ })), St = g(() => F.value ? !1 : P.value === "create" ? !!Y.value && f.can("create") === !0 : !!M.value?.id && f.can("update") === !0), Ct = g(() => F.value || !M.value?.id ? !1 : f.can(kn(M.value)) === !0), wt = g(() => !M.value?.id || F.value || L.value ? !1 : f.can("employeeAccounts", M.value.id) !== !1), Tt = g(() => P.value === "view" ? M.value?.id ? [{
740
739
  key: "edit",
741
740
  actionCode: "update",
742
741
  title: "编辑",
@@ -762,7 +761,7 @@ var nt = { key: 0 }, rt = {
762
761
  primary: !0,
763
762
  disabled: !St.value,
764
763
  loading: L.value
765
- }]), Et = h(() => Tt.value), Dt = h(() => P.value === "view" ? M.value?.id ? [{
764
+ }]), Et = g(() => Tt.value), Dt = g(() => P.value === "view" ? M.value?.id ? [{
766
765
  key: "edit",
767
766
  actionCode: "update",
768
767
  title: "编辑",
@@ -782,13 +781,13 @@ var nt = { key: 0 }, rt = {
782
781
  loading: L.value,
783
782
  disabled: !St.value
784
783
  }] : []), Ot = we({
785
- view: Oe,
786
- input: h(() => {
784
+ view: ke,
785
+ input: g(() => {
787
786
  let e = M.value?.id, t = P.value;
788
787
  return e && (t === "view" || t === "edit") ? { recordId: e } : void 0;
789
788
  }),
790
- title: h(() => Dn(M.value)),
791
- eligibility: h(() => ({
789
+ title: g(() => Dn(M.value)),
790
+ eligibility: g(() => ({
792
791
  hasStableIdentity: !!M.value?.id && !F.value,
793
792
  busy: L.value || W.value || U.value
794
793
  })),
@@ -808,42 +807,42 @@ var nt = { key: 0 }, rt = {
808
807
  },
809
808
  onPromoted: an
810
809
  });
811
- ze(M, (e) => {
812
- !p.value || !e || o?.setTitle(Dn(e));
810
+ Re(M, (e) => {
811
+ !Se.value || !e || ce?.setTitle(Dn(e));
813
812
  }, { immediate: !0 });
814
813
  let kt;
815
- Le(() => {
816
- if (jt(), !ft.value && f?.value?.tenantId && (k.value = {
817
- id: f.value.tenantId,
818
- title: f.value.tenantId
819
- }), !r.recordId) return;
820
- let e = { recordId: r.recordId };
821
- Te.value || (kt = $e(e, At));
814
+ Ie(() => {
815
+ if (jt(), !ft.value && m?.value?.tenantId && (qe.value = {
816
+ id: m.value.tenantId,
817
+ title: m.value.tenantId
818
+ }), !c.recordId) return;
819
+ let e = { recordId: c.recordId };
820
+ Ee.value || (kt = $e(e, At));
822
821
  let t = et(e);
823
822
  if (t) {
824
823
  yn(t);
825
824
  return;
826
825
  }
827
- Z({ id: r.recordId }, r.mode ?? "view");
828
- }), ze(pt, () => {
829
- A.value = void 0, Yt(), S.value += 1;
830
- }), Ie(() => kt?.());
826
+ Z({ id: c.recordId }, c.mode ?? "view");
827
+ }), Re(pt, () => {
828
+ A.value = void 0, Yt(), C.value += 1;
829
+ }), Fe(() => kt?.());
831
830
  function At(e) {
832
831
  return P.value !== "view" || K.value ? !1 : (yn(e), !0);
833
832
  }
834
833
  async function jt() {
835
834
  try {
836
- Ce.value = re((await l.runtime.ready).uiDescriptor);
835
+ h.value = ee((await f.runtime.ready).uiDescriptor);
837
836
  } catch (e) {
838
- d(e, {
837
+ p(e, {
839
838
  source: "employee-management",
840
839
  phase: "load"
841
840
  });
842
841
  }
843
842
  }
844
843
  function Mt(e) {
845
- return te(e, {
846
- fields: Ce.value,
844
+ return o(e, {
845
+ fields: h.value,
847
846
  fallback: Bn
848
847
  });
849
848
  }
@@ -857,7 +856,7 @@ var nt = { key: 0 }, rt = {
857
856
  return Mt(e).visible;
858
857
  }
859
858
  function X() {
860
- return Ue({ saving: L.value });
859
+ return He({ saving: L.value });
861
860
  }
862
861
  function It(e, t) {
863
862
  z.value = {
@@ -882,7 +881,7 @@ var nt = { key: 0 }, rt = {
882
881
  pt.value && !A.value && e.length > 0 && (A.value = e[0]);
883
882
  }
884
883
  function Bt(e) {
885
- X() && (k.value = e);
884
+ X() && (qe.value = e);
886
885
  }
887
886
  function Vt(e) {
888
887
  return {
@@ -915,7 +914,7 @@ var nt = { key: 0 }, rt = {
915
914
  X() && (A.value = e, j.value = void 0, M.value = void 0, J.clearExternalChanged(), F.value = !1, I.value = !1, B.value = void 0, $(), lt(), an());
916
915
  }
917
916
  function Gt() {
918
- S.value += 1;
917
+ C.value += 1;
919
918
  }
920
919
  function Kt(e) {
921
920
  if (!X()) return;
@@ -932,7 +931,7 @@ var nt = { key: 0 }, rt = {
932
931
  lt(), j.value = void 0, M.value = void 0, an();
933
932
  }
934
933
  function Xt() {
935
- O.value += 1;
934
+ k.value += 1;
936
935
  }
937
936
  function Zt(e, t) {
938
937
  if (X()) {
@@ -957,15 +956,15 @@ var nt = { key: 0 }, rt = {
957
956
  actionCode: "employeePositions",
958
957
  title: "任职",
959
958
  after: "edit",
960
- visible: !!e.id && l.can("employeePositions", String(e.id)) !== !1
959
+ visible: !!e.id && f.can("employeePositions", String(e.id)) !== !1
961
960
  }];
962
961
  }
963
962
  async function $t(e) {
964
963
  let t = String(e.id ?? "");
965
964
  if (t) try {
966
- Xe.value = await l.crud.view(t), Ye.value = !0;
965
+ Xe.value = await f.crud.view(t), Ye.value = !0;
967
966
  } catch (e) {
968
- d(e, {
967
+ p(e, {
969
968
  source: "employee-management",
970
969
  phase: "load"
971
970
  });
@@ -983,18 +982,18 @@ var nt = { key: 0 }, rt = {
983
982
  function rn() {
984
983
  if (X()) {
985
984
  if (!Y.value) {
986
- be("请先选择机构", { phase: "validation" });
985
+ pe("请先选择机构", { phase: "validation" });
987
986
  return;
988
987
  }
989
988
  z.value = pn(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;
990
989
  }
991
990
  }
992
991
  function an() {
993
- 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 ? hn(M.value) : pn(Y.value), Te.value && o?.dismiss());
992
+ 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 ? hn(M.value) : pn(Y.value), Ee.value && ce?.dismiss());
994
993
  }
995
994
  function on() {
996
995
  if (!L.value) {
997
- if (We({
996
+ if (Ue({
998
997
  mode: P.value,
999
998
  selectedEmployeeId: M.value?.id
1000
999
  })) {
@@ -1011,17 +1010,17 @@ var nt = { key: 0 }, rt = {
1011
1010
  j.value = n, J.clearExternalChanged(), N.value = !0, P.value = t, M.value = void 0, z.value = hn(e), B.value = void 0, $(), F.value = !0, I.value = !1;
1012
1011
  let r = R.value + 1;
1013
1012
  R.value = r;
1014
- let i = () => Ve({
1013
+ let i = () => Be({
1015
1014
  activeRequestSeq: R.value,
1016
1015
  requestSeq: r,
1017
1016
  selectedEmployeeKey: j.value,
1018
1017
  recordId: n
1019
1018
  });
1020
1019
  try {
1021
- let e = await l.crud.view(n);
1020
+ let e = await f.crud.view(n);
1022
1021
  if (!i()) return;
1023
1022
  if (!e?.id) {
1024
- I.value = !0, be("未找到指定职员", {
1023
+ I.value = !0, pe("未找到指定职员", {
1025
1024
  source: "employee-management",
1026
1025
  phase: "load"
1027
1026
  });
@@ -1029,7 +1028,7 @@ var nt = { key: 0 }, rt = {
1029
1028
  }
1030
1029
  M.value = e, z.value = hn(e), I.value = !1, await xn(e, r), await bn(e, r), Sn(e, r);
1031
1030
  } catch (e) {
1032
- i() && (I.value = !0, d(e, {
1031
+ i() && (I.value = !0, p(e, {
1033
1032
  source: "employee-management",
1034
1033
  phase: "load"
1035
1034
  }));
@@ -1073,7 +1072,7 @@ var nt = { key: 0 }, rt = {
1073
1072
  }, "edit"));
1074
1073
  }
1075
1074
  async function un() {
1076
- await ye({
1075
+ await ve({
1077
1076
  loading: L,
1078
1077
  mode: P.value === "edit" ? "edit" : "create",
1079
1078
  source: "employee-management",
@@ -1082,51 +1081,51 @@ var nt = { key: 0 }, rt = {
1082
1081
  deniedMessage: "当前用户无权保存职员",
1083
1082
  createRecord: () => gn(z.value, Y.value ?? ""),
1084
1083
  validateRecord: _n,
1085
- save: (e, t) => t === "edit" && M.value?.id ? l.crud.update(M.value.id, e) : l.crud.insert(e),
1086
- actionErrorHandlers: [fe({
1084
+ save: (e, t) => t === "edit" && M.value?.id ? f.crud.update(M.value.id, e) : f.crud.insert(e),
1085
+ actionErrorHandlers: [le({
1087
1086
  resourceLabel: "职员",
1088
1087
  onNavigateToRecycleBin: () => Jt("recycleBin")
1089
1088
  }), {
1090
- code: oe.conflictVersion,
1089
+ code: u.conflictVersion,
1091
1090
  handle: (e, { mode: t, record: n }) => t === "edit" && J.markExternalRecordChanged(n.id)
1092
1091
  }],
1093
1092
  onSaved: ({ record: e }) => {
1094
1093
  let t = vn(e);
1095
- O.value += 1, bn(e, t);
1094
+ k.value += 1, bn(e, t);
1096
1095
  }
1097
1096
  });
1098
1097
  }
1099
1098
  async function dn() {
1100
- await pe({
1099
+ await fe({
1101
1100
  loading: L,
1102
1101
  source: "employee-management",
1103
1102
  record: () => M.value && M.value.id ? M.value : void 0,
1104
1103
  canExecute: () => Ct.value,
1105
1104
  deniedMessage: "当前用户无权变更职员启停状态",
1106
- execute: (e) => e.enabled === !1 ? l.crud.enable(e.id, { version: e.version }) : l.crud.disable(e.id, { version: e.version }),
1105
+ execute: (e) => e.enabled === !1 ? f.crud.enable(e.id, { version: e.version }) : f.crud.disable(e.id, { version: e.version }),
1107
1106
  onExecuted: async (e, t) => {
1108
- let n = await l.crud.view(t.id);
1109
- await bn(n, vn(n)), O.value += 1;
1107
+ let n = await f.crud.view(t.id);
1108
+ await bn(n, vn(n)), k.value += 1;
1110
1109
  }
1111
1110
  });
1112
1111
  }
1113
1112
  async function fn(e) {
1114
- await pe({
1113
+ await fe({
1115
1114
  loading: L,
1116
1115
  source: "employee-management",
1117
1116
  record: () => e?.id ? e : void 0,
1118
- canExecute: () => l.can("delete") === !0,
1117
+ canExecute: () => f.can("delete") === !0,
1119
1118
  deniedMessage: "当前用户无权删除职员",
1120
- confirm: (e) => Se({
1119
+ confirm: (e) => se({
1121
1120
  title: "删除职员",
1122
1121
  content: `确认删除职员「${En(e)}」?`,
1123
1122
  okText: "删除",
1124
1123
  danger: !0
1125
1124
  }),
1126
- execute: (e) => l.crud.delete(String(e.id), { version: e.version }),
1125
+ execute: (e) => f.crud.delete(String(e.id), { version: e.version }),
1127
1126
  onExecuted: (e, t) => {
1128
1127
  let n = String(t.id);
1129
- j.value === n && (j.value = void 0, M.value = void 0, z.value = pn(Y.value), J.clearExternalChanged(), F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !1, P.value = "view"), O.value += 1;
1128
+ j.value === n && (j.value = void 0, M.value = void 0, z.value = pn(Y.value), J.clearExternalChanged(), F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !1, P.value = "view"), k.value += 1;
1130
1129
  }
1131
1130
  });
1132
1131
  }
@@ -1148,7 +1147,7 @@ var nt = { key: 0 }, rt = {
1148
1147
  return { ...e };
1149
1148
  }
1150
1149
  function gn(e, t) {
1151
- return de(e, {
1150
+ return ge(e, {
1152
1151
  organizationId: t,
1153
1152
  departmentId: e.departmentId?.trim(),
1154
1153
  employeeNo: e.employeeNo?.trim(),
@@ -1160,7 +1159,7 @@ var nt = { key: 0 }, rt = {
1160
1159
  });
1161
1160
  }
1162
1161
  function _n(e) {
1163
- return Ge(ne.map((t) => {
1162
+ return We(ae.map((t) => {
1164
1163
  let n = Mt(t);
1165
1164
  return {
1166
1165
  fieldName: t,
@@ -1180,7 +1179,7 @@ var nt = { key: 0 }, rt = {
1180
1179
  M.value = e.selectedEmployee, j.value = e.selectedEmployee.id, A.value = e.organization, B.value = e.department, z.value = e.draft, P.value = e.mode, V.value = e.account, H.value = e.accountUser, K.value = e.showAccountProvisionForm, q.value = e.accountProvisionDraft, N.value = !0, F.value = !1, I.value = !1, G.value = !1, R.value += 1;
1181
1180
  }
1182
1181
  function Q(e, t) {
1183
- return !!e && Ve({
1182
+ return !!e && Be({
1184
1183
  activeRequestSeq: R.value,
1185
1184
  requestSeq: t,
1186
1185
  selectedEmployeeKey: j.value,
@@ -1191,10 +1190,10 @@ var nt = { key: 0 }, rt = {
1191
1190
  B.value = void 0;
1192
1191
  let n = e.id, r = e.departmentId;
1193
1192
  if (r) try {
1194
- let e = await ue.crud.view(r);
1193
+ let e = await de.crud.view(r);
1195
1194
  Q(n, t) && (B.value = e);
1196
1195
  } catch (e) {
1197
- Q(n, t) && d(e, {
1196
+ Q(n, t) && p(e, {
1198
1197
  source: "employee-management",
1199
1198
  phase: "load"
1200
1199
  });
@@ -1203,10 +1202,10 @@ var nt = { key: 0 }, rt = {
1203
1202
  async function xn(e, t = R.value) {
1204
1203
  let n = e.id, r = e.organizationId;
1205
1204
  if (r) try {
1206
- let e = await le.crud.view(r);
1205
+ let e = await ue.crud.view(r);
1207
1206
  Q(n, t) && (A.value = e);
1208
1207
  } catch (e) {
1209
- Q(n, t) && d(e, {
1208
+ Q(n, t) && p(e, {
1210
1209
  source: "employee-management",
1211
1210
  phase: "load"
1212
1211
  });
@@ -1220,11 +1219,11 @@ var nt = { key: 0 }, rt = {
1220
1219
  }
1221
1220
  U.value = !0, G.value = !1;
1222
1221
  try {
1223
- let e = await l.http.request({ path: `/iam.employee/${encodeURIComponent(n)}/account` });
1222
+ let e = await f.http.request({ path: `/iam.employee/${encodeURIComponent(n)}/account` });
1224
1223
  if (!Q(n, t)) return;
1225
1224
  V.value = e, await Cn(e, n, t);
1226
1225
  } catch (e) {
1227
- Q(n, t) && (G.value = !0, d(e, {
1226
+ Q(n, t) && (G.value = !0, p(e, {
1228
1227
  source: "employee-management",
1229
1228
  phase: "load"
1230
1229
  }));
@@ -1242,7 +1241,7 @@ var nt = { key: 0 }, rt = {
1242
1241
  try {
1243
1242
  i = await he.crud.view(r);
1244
1243
  } catch (e) {
1245
- d(e, {
1244
+ p(e, {
1246
1245
  source: "employee-management",
1247
1246
  phase: "load"
1248
1247
  }), i = {
@@ -1255,9 +1254,9 @@ var nt = { key: 0 }, rt = {
1255
1254
  async function wn() {
1256
1255
  let e = M.value, t = In(q.value);
1257
1256
  if (!e?.id || !wt.value) return;
1258
- let r = Ln(t);
1259
- if (r) {
1260
- be(r, {
1257
+ let n = Ln(t);
1258
+ if (n) {
1259
+ pe(n, {
1261
1260
  source: "employee-management",
1262
1261
  phase: "validation"
1263
1262
  });
@@ -1265,17 +1264,17 @@ var nt = { key: 0 }, rt = {
1265
1264
  }
1266
1265
  W.value = !0;
1267
1266
  try {
1268
- let r = await l.http.request({
1267
+ let n = await f.http.request({
1269
1268
  method: "POST",
1270
1269
  path: `/iam.employee/${encodeURIComponent(e.id)}/account/provision`,
1271
1270
  body: t
1272
- }), i = n(r);
1273
- V.value = i.binding, H.value = i.user, K.value = !1, q.value = mn(e), await se(r, {
1271
+ }), r = te(n);
1272
+ V.value = r.binding, H.value = r.user, K.value = !1, q.value = mn(e), await ie(n, {
1274
1273
  source: "employee-management",
1275
1274
  phase: "action"
1276
1275
  });
1277
1276
  } catch (e) {
1278
- d(e, {
1277
+ p(e, {
1279
1278
  source: "employee-management",
1280
1279
  phase: "action"
1281
1280
  });
@@ -1285,7 +1284,7 @@ var nt = { key: 0 }, rt = {
1285
1284
  }
1286
1285
  async function Tn() {
1287
1286
  let e = M.value;
1288
- if (!(!e?.id || !V.value?.id || !wt.value) && await Se({
1287
+ if (!(!e?.id || !V.value?.id || !wt.value) && await se({
1289
1288
  title: "移除账户",
1290
1289
  content: `确认移除账户「${An()}」?该用户账号会同步删除。`,
1291
1290
  okText: "移除",
@@ -1293,16 +1292,16 @@ var nt = { key: 0 }, rt = {
1293
1292
  })) {
1294
1293
  W.value = !0;
1295
1294
  try {
1296
- let t = await l.http.request({
1295
+ let t = await f.http.request({
1297
1296
  method: "POST",
1298
1297
  path: `/iam.employee/${encodeURIComponent(e.id)}/account/delete`
1299
1298
  });
1300
- await Sn(e, R.value), await se(t, {
1299
+ await Sn(e, R.value), await ie(t, {
1301
1300
  source: "employee-management",
1302
1301
  phase: "action"
1303
1302
  });
1304
1303
  } catch (e) {
1305
- d(e, {
1304
+ p(e, {
1306
1305
  source: "employee-management",
1307
1306
  phase: "action"
1308
1307
  });
@@ -1426,30 +1425,30 @@ var nt = { key: 0 }, rt = {
1426
1425
  controlType: "enabledStatus"
1427
1426
  }
1428
1427
  };
1429
- return (e, n) => !p.value || Te.value ? (C(), g(E(s), {
1428
+ return (r, o) => !Se.value || Ee.value ? (w(), _(D(ne), {
1430
1429
  key: 0,
1431
1430
  class: "employee-management-page",
1432
1431
  "explorer-count": ft.value ? 2 : 1
1433
1432
  }, {
1434
- default: D(() => [
1435
- ft.value ? (C(), g(E(ee), { key: 0 }, {
1436
- default: D(() => [x(E(t), {
1437
- "search-keyword": Ke.value,
1438
- "onUpdate:searchKeyword": n[1] ||= (e) => Ke.value = e,
1433
+ default: O(() => [
1434
+ ft.value ? (w(), _(D(a), { key: 0 }, {
1435
+ default: O(() => [S(D(xe), {
1436
+ "search-keyword": Ge.value,
1437
+ "onUpdate:searchKeyword": o[1] ||= (e) => Ge.value = e,
1439
1438
  title: "租户",
1440
1439
  "search-placeholder": "搜索租户",
1441
- onRefresh: n[2] ||= (e) => qe.value += 1
1440
+ onRefresh: o[2] ||= (e) => Ke.value += 1
1442
1441
  }, {
1443
- default: D(() => [x(E(ce), {
1444
- context: E(_e),
1445
- "selected-id": k.value?.id,
1446
- "reload-key": qe.value,
1447
- keyword: Ke.value,
1442
+ default: O(() => [S(D(re), {
1443
+ context: D(be),
1444
+ "selected-id": qe.value?.id,
1445
+ "reload-key": Ke.value,
1446
+ keyword: Ge.value,
1448
1447
  "empty-description": "暂无租户",
1449
1448
  "loading-tip": "加载租户",
1450
1449
  "fallback-title": "未命名租户",
1451
1450
  "item-of": (e) => Vt(e),
1452
- onSelect: n[0] ||= (e) => Bt(e)
1451
+ onSelect: o[0] ||= (e) => Bt(e)
1453
1452
  }, null, 8, [
1454
1453
  "context",
1455
1454
  "selected-id",
@@ -1460,22 +1459,22 @@ var nt = { key: 0 }, rt = {
1460
1459
  _: 1
1461
1460
  }, 8, ["search-keyword"])]),
1462
1461
  _: 1
1463
- })) : _("v-if", !0),
1464
- x(E(ee), null, {
1465
- default: D(() => [x(E(t), {
1462
+ })) : v("v-if", !0),
1463
+ S(D(a), null, {
1464
+ default: O(() => [S(D(xe), {
1466
1465
  class: "employee-scope-panel",
1467
1466
  title: "机构树",
1468
1467
  "refresh-title": "刷新机构树",
1469
- "search-keyword": De.value,
1468
+ "search-keyword": Oe.value,
1470
1469
  "search-placeholder": "搜索机构名称、编码或 ID",
1471
1470
  onRefresh: Gt,
1472
- "onUpdate:searchKeyword": n[3] ||= (e) => De.value = e
1471
+ "onUpdate:searchKeyword": o[3] ||= (e) => Oe.value = e
1473
1472
  }, {
1474
- default: D(() => [x(E(me), {
1473
+ default: O(() => [S(D(ye), {
1475
1474
  context: mt.value,
1476
1475
  "selected-id": A.value?.id,
1477
- "reload-key": S.value,
1478
- keyword: De.value,
1476
+ "reload-key": C.value,
1477
+ keyword: Oe.value,
1479
1478
  "search-mode": "none",
1480
1479
  "search-trigger": "external",
1481
1480
  "empty-description": pt.value ? "暂无机构" : "请选择租户",
@@ -1497,17 +1496,17 @@ var nt = { key: 0 }, rt = {
1497
1496
  }, 8, ["search-keyword"])]),
1498
1497
  _: 1
1499
1498
  }),
1500
- x(E(ge), {
1499
+ S(D(d), {
1501
1500
  class: "employee-list-panel",
1502
1501
  context: dt.value,
1503
- title: E(it).active.value ? "职员回收站" : "职员列表",
1504
- mode: E(it).mode.value,
1502
+ title: D(it).active.value ? "职员回收站" : "职员列表",
1503
+ mode: D(it).mode.value,
1505
1504
  "standard-crud-actions": "",
1506
1505
  "standard-crud-row-actions": "",
1507
1506
  "extra-row-actions-of": Qt,
1508
1507
  "selected-key": j.value,
1509
- "expanded-row-keys": E(at),
1510
- "reload-key": O.value,
1508
+ "expanded-row-keys": D(at),
1509
+ "reload-key": k.value,
1511
1510
  ready: !!A.value?.id,
1512
1511
  "external-query-values": _t.value,
1513
1512
  "quick-search-placeholder": "搜索编号、姓名、手机号或邮箱",
@@ -1516,40 +1515,40 @@ var nt = { key: 0 }, rt = {
1516
1515
  onAction: qt,
1517
1516
  onRowAction: Zt,
1518
1517
  onRowDblclick: nn,
1519
- onRowExpand: E(st),
1518
+ onRowExpand: D(st),
1520
1519
  onSelect: Kt,
1521
1520
  onModeChange: Jt,
1522
1521
  onRestored: Xt
1523
1522
  }, {
1524
- expandedRow: D(({ record: e }) => [x(E(c), {
1523
+ expandedRow: O(({ record: e }) => [S(D(t), {
1525
1524
  title: "任职信息",
1526
- loading: E(ot)(String(e.id ?? "")).loading,
1527
- error: E(ot)(String(e.id ?? "")).error,
1525
+ loading: D(ot)(String(e.id ?? "")).loading,
1526
+ error: D(ot)(String(e.id ?? "")).error,
1528
1527
  "loading-tip": "加载任职信息",
1529
1528
  "error-title": "任职信息加载失败"
1530
1529
  }, {
1531
- actions: D(() => [x(E(u), {
1530
+ actions: O(() => [S(D(s), {
1532
1531
  type: "text",
1533
1532
  "icon-name": "reload",
1534
- disabled: E(ot)(String(e.id ?? "")).loading,
1535
- onClick: (t) => E(ct)(String(e.id ?? ""))
1533
+ disabled: D(ot)(String(e.id ?? "")).loading,
1534
+ onClick: (t) => D(ct)(String(e.id ?? ""))
1536
1535
  }, {
1537
- default: D(() => [...n[6] ||= [b(" 刷新 ", -1)]]),
1536
+ default: O(() => [...o[6] ||= [x(" 刷新 ", -1)]]),
1538
1537
  _: 1
1539
1538
  }, 8, ["disabled", "onClick"])]),
1540
- default: D(() => [E(ot)(String(e.id ?? "")).records.length === 0 ? (C(), v("p", nt, "暂无任职信息")) : (C(), v("div", rt, [n[7] ||= y("header", { class: "employee-row-employment-table-header" }, [
1541
- y("span", null, "岗位"),
1542
- y("span", null, "机构"),
1543
- y("span", null, "部门"),
1544
- y("span", null, "主岗位")
1545
- ], -1), (C(!0), v(Pe, null, Re(E(ot)(String(e.id ?? "")).records, (e) => (C(), v("article", {
1539
+ default: O(() => [D(ot)(String(e.id ?? "")).records.length === 0 ? (w(), y("p", nt, "暂无任职信息")) : (w(), y("div", rt, [o[7] ||= b("header", { class: "employee-row-employment-table-header" }, [
1540
+ b("span", null, "岗位"),
1541
+ b("span", null, "机构"),
1542
+ b("span", null, "部门"),
1543
+ b("span", null, "主岗位")
1544
+ ], -1), (w(!0), y(Ne, null, Le(D(ot)(String(e.id ?? "")).records, (e) => (w(), y("article", {
1546
1545
  key: e.id,
1547
- class: Fe({ "is-disabled": e.enabled === !1 })
1546
+ class: Pe({ "is-disabled": e.enabled === !1 })
1548
1547
  }, [
1549
- y("strong", null, T(e.positionTitle ?? e.positionId), 1),
1550
- y("span", null, T(e.organizationTitle ?? e.organizationId), 1),
1551
- y("span", null, T(e.departmentTitle ?? e.departmentId), 1),
1552
- y("span", null, T(e.primaryPosition ? "是" : "否"), 1)
1548
+ b("strong", null, E(e.positionTitle ?? e.positionId), 1),
1549
+ b("span", null, E(e.organizationTitle ?? e.organizationId), 1),
1550
+ b("span", null, E(e.departmentTitle ?? e.departmentId), 1),
1551
+ b("span", null, E(e.primaryPosition ? "是" : "否"), 1)
1553
1552
  ], 2))), 128))]))]),
1554
1553
  _: 2
1555
1554
  }, 1032, ["loading", "error"])]),
@@ -1565,16 +1564,16 @@ var nt = { key: 0 }, rt = {
1565
1564
  "external-query-values",
1566
1565
  "onRowExpand"
1567
1566
  ]),
1568
- Ee.value ? (C(), g(E(i), {
1567
+ De.value ? (w(), _(D(n), {
1569
1568
  key: 1,
1570
1569
  open: N.value,
1571
1570
  title: vt.value,
1572
1571
  subtitle: yt.value,
1573
1572
  "close-on-outside": P.value === "view",
1574
- promotion: E(Ot),
1573
+ promotion: D(Ot),
1575
1574
  onClose: an
1576
1575
  }, {
1577
- status: D(() => [P.value === "view" && M.value ? (C(), g(E(ae), {
1576
+ status: O(() => [P.value === "view" && M.value ? (w(), _(D(e), {
1578
1577
  key: 0,
1579
1578
  enabled: M.value.enabled !== !1,
1580
1579
  disabled: L.value || !Ct.value,
@@ -1585,13 +1584,13 @@ var nt = { key: 0 }, rt = {
1585
1584
  "enabled",
1586
1585
  "disabled",
1587
1586
  "loading"
1588
- ])) : _("v-if", !0)]),
1589
- operation: D(() => [x(E(a), {
1587
+ ])) : v("v-if", !0)]),
1588
+ operation: O(() => [S(D(i), {
1590
1589
  context: dt.value,
1591
1590
  actions: Et.value,
1592
1591
  onAction: sn
1593
1592
  }, null, 8, ["context", "actions"])]),
1594
- default: D(() => [x(Ze, {
1593
+ default: O(() => [S(Ze, {
1595
1594
  mode: P.value,
1596
1595
  draft: z.value,
1597
1596
  "selected-employee": M.value,
@@ -1601,14 +1600,14 @@ var nt = { key: 0 }, rt = {
1601
1600
  "load-failed": I.value,
1602
1601
  "form-disabled": bt.value,
1603
1602
  "show-content": xt.value,
1604
- fields: Ce.value,
1603
+ fields: h.value,
1605
1604
  fallback: Bn,
1606
1605
  "picker-configs": gt.value,
1607
1606
  "display-of": Rt,
1608
1607
  "visible-of": Ft,
1609
1608
  "label-of": Nt,
1610
1609
  "required-of": Pt,
1611
- "externally-changed": E(J).externallyChanged.value,
1610
+ "externally-changed": D(J).externallyChanged.value,
1612
1611
  account: V.value,
1613
1612
  "account-user": H.value,
1614
1613
  "loading-accounts": U.value,
@@ -1620,13 +1619,13 @@ var nt = { key: 0 }, rt = {
1620
1619
  "account-user-title": An(),
1621
1620
  "account-user-description": jn(),
1622
1621
  "account-status-title": Mn(),
1623
- "option-context": E(l),
1622
+ "option-context": D(f),
1624
1623
  onRetry: cn,
1625
1624
  onSave: un,
1626
1625
  onReloadExternal: ln,
1627
- onDismissExternal: E(J).clearExternalChanged,
1626
+ onDismissExternal: D(J).clearExternalChanged,
1628
1627
  onUpdateField: It,
1629
- onRetryAccounts: n[4] ||= (e) => Sn(),
1628
+ onRetryAccounts: o[4] ||= (e) => Sn(),
1630
1629
  onStartAccountProvision: Pn,
1631
1630
  onCancelAccountProvision: Fn,
1632
1631
  onProvisionAccount: wn,
@@ -1666,8 +1665,8 @@ var nt = { key: 0 }, rt = {
1666
1665
  "subtitle",
1667
1666
  "close-on-outside",
1668
1667
  "promotion"
1669
- ])) : _("v-if", !0),
1670
- x(Je, {
1668
+ ])) : v("v-if", !0),
1669
+ S(Je, {
1671
1670
  open: Ye.value,
1672
1671
  employee: Xe.value,
1673
1672
  onClose: en,
@@ -1675,12 +1674,12 @@ var nt = { key: 0 }, rt = {
1675
1674
  }, null, 8, ["open", "employee"])
1676
1675
  ]),
1677
1676
  _: 1
1678
- }, 8, ["explorer-count"])) : (C(), g(E(ie), {
1677
+ }, 8, ["explorer-count"])) : (w(), _(D(me), {
1679
1678
  key: 1,
1680
1679
  title: vt.value,
1681
1680
  subtitle: yt.value
1682
1681
  }, {
1683
- status: D(() => [P.value === "view" && M.value ? (C(), g(E(ae), {
1682
+ status: O(() => [P.value === "view" && M.value ? (w(), _(D(e), {
1684
1683
  key: 0,
1685
1684
  enabled: M.value.enabled !== !1,
1686
1685
  disabled: L.value || !Ct.value,
@@ -1691,9 +1690,9 @@ var nt = { key: 0 }, rt = {
1691
1690
  "enabled",
1692
1691
  "disabled",
1693
1692
  "loading"
1694
- ])) : _("v-if", !0)]),
1695
- operation: D(() => [x(E(a), {
1696
- context: E(l),
1693
+ ])) : v("v-if", !0)]),
1694
+ operation: O(() => [S(D(i), {
1695
+ context: D(f),
1697
1696
  actions: Dt.value,
1698
1697
  "record-id": M.value?.id,
1699
1698
  onAction: sn
@@ -1702,7 +1701,7 @@ var nt = { key: 0 }, rt = {
1702
1701
  "actions",
1703
1702
  "record-id"
1704
1703
  ])]),
1705
- default: D(() => [x(Ze, {
1704
+ default: O(() => [S(Ze, {
1706
1705
  mode: P.value,
1707
1706
  draft: z.value,
1708
1707
  "selected-employee": M.value,
@@ -1712,14 +1711,14 @@ var nt = { key: 0 }, rt = {
1712
1711
  "load-failed": I.value,
1713
1712
  "form-disabled": bt.value,
1714
1713
  "show-content": xt.value,
1715
- fields: Ce.value,
1714
+ fields: h.value,
1716
1715
  fallback: Bn,
1717
1716
  "picker-configs": gt.value,
1718
1717
  "display-of": Rt,
1719
1718
  "visible-of": Ft,
1720
1719
  "label-of": Nt,
1721
1720
  "required-of": Pt,
1722
- "externally-changed": E(J).externallyChanged.value,
1721
+ "externally-changed": D(J).externallyChanged.value,
1723
1722
  account: V.value,
1724
1723
  "account-user": H.value,
1725
1724
  "loading-accounts": U.value,
@@ -1731,13 +1730,13 @@ var nt = { key: 0 }, rt = {
1731
1730
  "account-user-title": An(),
1732
1731
  "account-user-description": jn(),
1733
1732
  "account-status-title": Mn(),
1734
- "option-context": E(l),
1733
+ "option-context": D(f),
1735
1734
  onRetry: cn,
1736
1735
  onSave: un,
1737
1736
  onReloadExternal: ln,
1738
- onDismissExternal: E(J).clearExternalChanged,
1737
+ onDismissExternal: D(J).clearExternalChanged,
1739
1738
  onUpdateField: It,
1740
- onRetryAccounts: n[5] ||= (e) => Sn(),
1739
+ onRetryAccounts: o[5] ||= (e) => Sn(),
1741
1740
  onStartAccountProvision: Pn,
1742
1741
  onCancelAccountProvision: Fn,
1743
1742
  onProvisionAccount: wn,