@ximatai/muyun-web-app 0.26.5 → 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.
Files changed (92) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-rm9ujeiQ.js → EmployeeDetailWorkspaceView-DHZ4arBj.js} +1 -1
  2. package/dist/{EmployeeManagementView-DyYMWQ64.js → EmployeeManagementView-BfGb_ssB.js} +573 -573
  3. package/dist/{MetadataOrchestrationView-DaPNQML7.js → MetadataOrchestrationView-BLxigKBh.js} +198 -198
  4. package/dist/ModuleActionManagementView-ByJzNkQs.js +597 -0
  5. package/dist/{RoleAuthorizationView-qQvn7M75.js → RoleAuthorizationView-DJSWY3fu.js} +76 -76
  6. package/dist/{RoleDetailWorkspaceView-C-vaKeZM.js → RoleDetailWorkspaceView-Dfdigf04.js} +1 -1
  7. package/dist/{RoleManagementView-C3nxfub2.js → RoleManagementView-D0e9nLwW.js} +504 -504
  8. package/dist/{SystemUserDetailWorkspaceView-FIbfff00.js → SystemUserDetailWorkspaceView-D-UPhCmD.js} +1 -1
  9. package/dist/{SystemUserManagementView-m6vwJDxI.js → SystemUserManagementView-DNKRvmDk.js} +251 -251
  10. package/dist/{UserDetailWorkspaceView-M--ndn6x.js → UserDetailWorkspaceView-BCSCLNSz.js} +1 -1
  11. package/dist/UserManagementView-aY2AeeWK.js +965 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +2187 -2213
  14. package/dist/pageRealtime-Be2xkeKK.js +225 -0
  15. package/dist/{platform-components-_3KlZZf5.js → platform-components-DuAohqJO.js} +2716 -1528
  16. package/dist/types/app/workbenchRouteSync.d.ts +13 -0
  17. package/dist/types/consumer/index.d.ts +10 -1
  18. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +8 -1
  19. package/dist/types/dynamic-page-runtime/index.d.ts +5 -0
  20. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +126 -0
  21. package/dist/types/dynamic-page-runtime/modulePageListRefresh.d.ts +12 -0
  22. package/dist/types/dynamic-page-runtime/modulePageNavigation.d.ts +11 -0
  23. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -0
  24. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  25. package/dist/types/platform-admin-runtime/index.d.ts +3 -0
  26. package/dist/types/platform-admin-runtime/realtime.d.ts +9 -5
  27. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -36
  28. package/dist/types/platform-admin-runtime/workspaceViewHost.d.ts +2 -10
  29. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -17
  30. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  31. package/dist/types/platform-components/DateTimeText.vue.d.ts +1 -1
  32. package/dist/types/platform-components/FileSizeText.vue.d.ts +10 -0
  33. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +51 -0
  34. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +16 -0
  35. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +1 -1
  36. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +19 -0
  37. package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -0
  38. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +2 -2
  39. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -0
  40. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +33 -0
  41. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +33 -0
  42. package/dist/types/platform-components/RecordPanelState.vue.d.ts +11 -0
  43. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +47 -2
  45. package/dist/types/platform-components/RecordStatusTag.vue.d.ts +6 -1
  46. package/dist/types/platform-components/RecordTagList.vue.d.ts +7 -0
  47. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  48. package/dist/types/platform-components/fileReferenceTransfer.d.ts +17 -0
  49. package/dist/types/platform-components/fileTransferUpload.d.ts +43 -0
  50. package/dist/types/platform-components/index.d.ts +14 -1
  51. package/dist/types/platform-components/platformErrorFeedback.d.ts +2 -0
  52. package/dist/types/platform-components/platformFileSize.d.ts +10 -0
  53. package/dist/types/platform-components/recordActionBarModel.d.ts +6 -1
  54. package/dist/types/platform-components/recordFormFieldModel.d.ts +21 -3
  55. package/dist/types/platform-workbench/Workbench.vue.d.ts +2 -2
  56. package/dist/types/platform-workbench/WorkbenchBrandControl.vue.d.ts +21 -0
  57. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +15 -1
  58. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +2 -0
  59. package/dist/types/platform-workbench/WorkspaceViewOutlet.vue.d.ts +7 -0
  60. package/dist/types/platform-workbench/index.d.ts +7 -0
  61. package/dist/types/platform-workbench/menuPointerAim.d.ts +11 -0
  62. package/dist/types/platform-workbench/workbenchLayout.d.ts +1 -0
  63. package/dist/types/platform-workbench/workspaceViewContract.d.ts +20 -0
  64. package/dist/types/platform-workbench/workspaceViewHost.d.ts +8 -0
  65. package/dist/types/platform-workbench/workspaceViews.d.ts +21 -0
  66. package/dist/types/views/employeeDetailWorkspaceView.d.ts +1 -1
  67. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +1 -1
  68. package/dist/types/views/moduleActionManagementWorkspaceView.d.ts +1 -1
  69. package/dist/types/views/roleAuthorizationWorkspaceView.d.ts +1 -1
  70. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  71. package/dist/types/views/systemUserDetailWorkspaceView.d.ts +1 -1
  72. package/dist/types/views/userDetailWorkspaceView.d.ts +1 -1
  73. package/dist/types/vue-ui-antdv/components/UiColorPicker.vue.d.ts +14 -0
  74. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  75. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +3 -3
  76. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  77. package/dist/types/vue-ui-antdv/components/UiTagList.vue.d.ts +17 -0
  78. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +3 -3
  79. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  80. package/dist/types/vue-ui-antdv/index.d.ts +3 -0
  81. package/dist/types/vue-ui-antdv/types.d.ts +3 -9
  82. package/dist/types/web-contracts/index.d.ts +111 -1
  83. package/dist/types/web-core/clients.d.ts +6 -1
  84. package/dist/types/web-core/http.d.ts +12 -1
  85. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -0
  86. package/dist/{useUserSessionRows-iAqK_cUy.js → useUserSessionRows-DX9qYU5r.js} +2 -2
  87. package/dist/workspaceViewSessions-C3GP1UGp.js +2639 -0
  88. package/package.json +1 -1
  89. package/dist/ModuleActionManagementView-BFoPGqzC.js +0 -597
  90. package/dist/UserManagementView-MSXf4fno.js +0 -965
  91. package/dist/pageRealtime-4LXXvVW7.js +0 -140
  92. package/dist/workspaceViewSessions-DW0wbyQ_.js +0 -1448
@@ -1,39 +1,39 @@
1
- import { $ as e, A as t, C as n, D as r, E as i, F as a, K as o, M as ee, N as te, P as ne, Q as re, S as ie, Sn as ae, St as s, T as oe, V as se, X as ce, _ as c, b as le, c as l, d as ue, ht as u, i as de, j as d, k as fe, l as pe, m as me, mt as f, nt as he, on as ge, p as _e, q as ve, r as p, rt as ye, s as be, ut as m, v as h, y as xe } from "./platform-components-_3KlZZf5.js";
2
- import { g as Se, i as Ce, n as we, p as Te, r as Ee, t as g } from "./workspaceViewSessions-DW0wbyQ_.js";
3
- import { a as De, i as Oe, r as ke } from "./pageRealtime-4LXXvVW7.js";
4
- import { Fragment as Ae, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createTextVNode as S, createVNode as C, defineComponent as w, normalizeClass as je, onBeforeUnmount as Me, onMounted as Ne, openBlock as T, ref as E, renderList as Pe, toDisplayString as D, unref as O, watch as Fe, withCtx as k, withModifiers as A } from "vue";
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
+ 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
- function Ie(e) {
6
+ function Fe(e) {
7
7
  return e.mode === "view" || e.loadingDetail || e.saving ? !0 : e.mode === "edit" && !e.selectedEmployeeId;
8
8
  }
9
- function Le(e) {
9
+ function Ie(e) {
10
10
  return e.activeRequestSeq === e.requestSeq && e.selectedEmployeeKey === e.recordId;
11
11
  }
12
- function Re(e) {
12
+ function Le(e) {
13
13
  return e.mode === "create" ? !0 : !e.loadingDetail && !e.loadFailed && !!e.selectedEmployeeId;
14
14
  }
15
- function ze(e) {
15
+ function Re(e) {
16
16
  return !e.saving;
17
17
  }
18
- function Be(e) {
18
+ function ze(e) {
19
19
  return e.mode !== "edit" || !e.selectedEmployeeId;
20
20
  }
21
- function Ve(e) {
22
- let t = e.filter((e) => e.visible && e.required && !j(e.value)).map((e) => e.label);
21
+ function Be(e) {
22
+ let t = e.filter((e) => e.visible && e.required && !M(e.value)).map((e) => e.label);
23
23
  return t.length > 0 ? `请填写${t.join("、")}` : void 0;
24
24
  }
25
- function j(e) {
25
+ function M(e) {
26
26
  return typeof e == "string" ? e.trim().length > 0 : e != null;
27
27
  }
28
28
  //#endregion
29
29
  //#region src/views/EmployeeEmploymentDrawer.vue?vue&type=script&setup=true&lang.ts
30
- var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header" }, P = { class: "employment-primary-field" }, F = ["checked", "disabled"], I = { key: 0 }, L = { class: "employment-editor-actions" }, R = {
30
+ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header" }, F = { class: "employment-primary-field" }, I = ["checked", "disabled"], L = { key: 0 }, R = { class: "employment-editor-actions" }, z = {
31
31
  key: 2,
32
32
  class: "employment-state"
33
- }, z = {
33
+ }, B = {
34
34
  key: 3,
35
35
  class: "employment-empty"
36
- }, He = /*#__PURE__*/ u(/* @__PURE__ */ w({
36
+ }, Ve = /*#__PURE__*/ r(/* @__PURE__ */ T({
37
37
  name: "EmployeeEmploymentDrawer",
38
38
  __name: "EmployeeEmploymentDrawer",
39
39
  props: {
@@ -42,7 +42,7 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
42
42
  },
43
43
  emits: ["close", "saved"],
44
44
  setup(t, { emit: n }) {
45
- let r = t, i = n, a = s({ moduleAlias: "iam.employee" }), te = s({ moduleAlias: "iam.organization" }), ne = s({ moduleAlias: "iam.department" }), ie = s({ moduleAlias: "iam.position" }), ae = E([]), oe = E(!1), c = E(!1), l = E(!1), ue = E(!1), u = E(ge()), de = [
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,95 +63,95 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
63
63
  title: "主岗位",
64
64
  width: 80
65
65
  }
66
- ], d = _(() => `任职管理 - ${_e(r.employee)}`), fe = _(() => ae.value), pe = _(() => be(ne, {
66
+ ], ue = v(() => `任职管理 - ${ge(r.employee)}`), de = v(() => re.value), fe = v(() => _e(te, {
67
67
  scopeFieldName: "organizationId",
68
- scopeValue: u.value.organizationId,
68
+ scopeValue: f.value.organizationId,
69
69
  treePath: "/iam.department/tree",
70
70
  sortPath: "/iam.department/sort"
71
- })), me = _(() => {
71
+ })), pe = v(() => {
72
72
  let e = r.employee;
73
- return !!(e?.organizationId && e?.departmentId && e.organizationId === u.value.organizationId && e.departmentId === u.value.departmentId);
73
+ return !!(e?.organizationId && e?.departmentId && e.organizationId === f.value.organizationId && e.departmentId === f.value.departmentId);
74
74
  });
75
- Fe(() => [r.open, r.employee?.id], ([e]) => {
76
- e ? p() : m();
75
+ Pe(() => [r.open, r.employee?.id], ([e]) => {
76
+ e ? h() : ye();
77
77
  }, { immediate: !0 });
78
- function ge() {
78
+ function me() {
79
79
  return {
80
80
  primaryPosition: !1,
81
81
  enabled: !0
82
82
  };
83
83
  }
84
- function _e(e) {
84
+ function ge(e) {
85
85
  return String(e?.title ?? e?.employeeNo ?? e?.id ?? "职员");
86
86
  }
87
- async function p() {
88
- let e = r.employee?.id;
89
- if (e) {
90
- oe.value = !0, c.value = !1;
87
+ async function h() {
88
+ let t = r.employee?.id;
89
+ if (t) {
90
+ l.value = !0, ie.value = !1;
91
91
  try {
92
- ae.value = (await a.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/employment-view` })).records;
93
- } catch (e) {
94
- c.value = !0, o(e, {
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
- oe.value = !1;
99
+ l.value = !1;
100
100
  }
101
101
  }
102
102
  }
103
- function m() {
104
- ue.value = !1, u.value = ge();
103
+ function ye() {
104
+ ae.value = !1, f.value = me();
105
105
  }
106
- function h() {
107
- u.value = {
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
- }, ue.value = !0;
112
+ }, ae.value = !0;
113
113
  }
114
- function Se(e) {
115
- u.value = { ...e }, ue.value = !0;
114
+ function xe(e) {
115
+ f.value = { ...e }, ae.value = !0;
116
116
  }
117
- function Ce(e) {
118
- let t = e !== u.value.organizationId;
119
- u.value = {
120
- ...u.value,
117
+ function Se(e) {
118
+ let t = e !== f.value.organizationId;
119
+ f.value = {
120
+ ...f.value,
121
121
  organizationId: e,
122
- departmentId: t ? void 0 : u.value.departmentId,
123
- primaryPosition: t ? !1 : u.value.primaryPosition
122
+ departmentId: t ? void 0 : f.value.departmentId,
123
+ primaryPosition: t ? !1 : f.value.primaryPosition
124
124
  };
125
125
  }
126
- function we(e) {
127
- let t = !!(u.value.primaryPosition && r.employee?.organizationId === u.value.organizationId && r.employee?.departmentId === e);
128
- u.value = {
129
- ...u.value,
126
+ function Ce(e) {
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 Te(e) {
135
- if (e && !me.value) {
134
+ function _(e) {
135
+ if (e && !pe.value) {
136
136
  ve("主岗必须与职员主机构、主部门一致", {
137
137
  source: "employee-employment",
138
138
  phase: "validation"
139
139
  });
140
140
  return;
141
141
  }
142
- u.value = {
143
- ...u.value,
142
+ f.value = {
143
+ ...f.value,
144
144
  primaryPosition: e
145
145
  };
146
146
  }
147
- function Ee(e, t) {
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 g(e) {
151
+ function Te(e) {
152
152
  return e.enabled === !1;
153
153
  }
154
- function De(e) {
154
+ function Ee(e) {
155
155
  return [
156
156
  ...e.primaryPosition ? [] : [{
157
157
  key: "primary",
@@ -168,211 +168,211 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
168
168
  }
169
169
  ];
170
170
  }
171
- function Oe(e, t) {
172
- (t === "primary" || t === "enable" || t === "disable" || t === "delete") && Ae(e, t);
171
+ function De(e, t) {
172
+ (t === "primary" || t === "enable" || t === "disable" || t === "delete") && ke(e, t);
173
173
  }
174
- async function ke() {
175
- let e = r.employee?.id;
176
- if (!e || !u.value.organizationId || !u.value.departmentId || !u.value.positionId) {
174
+ async function Oe() {
175
+ let t = r.employee?.id;
176
+ if (!t || !f.value.organizationId || !f.value.departmentId || !f.value.positionId) {
177
177
  ve("请选择机构、部门和岗位", {
178
178
  source: "employee-employment",
179
179
  phase: "validation"
180
180
  });
181
181
  return;
182
182
  }
183
- l.value = !0;
183
+ u.value = !0;
184
184
  try {
185
- let t = u.value.id;
186
- await a.http.request({
185
+ let e = f.value.id;
186
+ await o.http.request({
187
187
  method: "POST",
188
- path: t ? `/iam.employee/${encodeURIComponent(e)}/positions/${encodeURIComponent(t)}/update` : `/iam.employee/${encodeURIComponent(e)}/positions`,
188
+ path: e ? `/iam.employee/${encodeURIComponent(t)}/positions/${encodeURIComponent(e)}/update` : `/iam.employee/${encodeURIComponent(t)}/positions`,
189
189
  body: {
190
- ...u.value,
191
- employeeId: e
190
+ ...f.value,
191
+ employeeId: t
192
192
  }
193
- }), m(), await p(), i("saved", e), await se({
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 (e) {
201
- o(e, {
200
+ } catch (t) {
201
+ e(t, {
202
202
  source: "employee-employment",
203
203
  phase: "action"
204
204
  });
205
205
  } finally {
206
- l.value = !1;
206
+ u.value = !1;
207
207
  }
208
208
  }
209
- async function Ae(e, t) {
210
- let n = r.employee?.id;
211
- if (n && !(t === "delete" && !await ce({
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
- l.value = !0;
217
+ u.value = !0;
218
218
  try {
219
- await a.http.request({
219
+ await o.http.request({
220
220
  method: "POST",
221
- path: `/iam.employee/${encodeURIComponent(n)}/positions/${encodeURIComponent(e.id)}/${t}`
222
- }), await p(), i("saved", n);
223
- } catch (e) {
224
- o(e, {
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
- l.value = !1;
229
+ u.value = !1;
230
230
  }
231
231
  }
232
232
  }
233
- return (n, r) => (T(), v(O(ee), {
233
+ return (e, n) => (E(), y(k(i), {
234
234
  open: t.open,
235
- title: d.value,
236
- onClose: r[4] ||= (e) => i("close")
235
+ title: ue.value,
236
+ onClose: n[4] ||= (e) => a("close")
237
237
  }, {
238
- operation: k(() => [C(O(f), {
238
+ operation: A(() => [w(k(d), {
239
239
  type: "text",
240
240
  "icon-name": "reload",
241
- disabled: oe.value || l.value,
242
- onClick: p
241
+ disabled: l.value || u.value,
242
+ onClick: h
243
243
  }, {
244
- default: k(() => [...r[5] ||= [S(" 刷新 ", -1)]]),
244
+ default: A(() => [...n[5] ||= [C(" 刷新 ", -1)]]),
245
245
  _: 1
246
246
  }, 8, ["disabled"])]),
247
- default: k(() => [x("div", M, [
248
- x("div", N, [r[7] ||= x("div", null, [x("strong", null, "任职信息"), x("span", null, "角色授权按具体任职生效")], -1), C(O(f), {
247
+ default: A(() => [S("div", N, [
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: l.value,
252
- onClick: h
251
+ disabled: u.value,
252
+ onClick: g
253
253
  }, {
254
- default: k(() => [...r[6] ||= [S("新增任职", -1)]]),
254
+ default: A(() => [...n[6] ||= [C("新增任职", -1)]]),
255
255
  _: 1
256
256
  }, 8, ["disabled"])]),
257
- ue.value ? (T(), b("form", {
257
+ ae.value ? (E(), x("form", {
258
258
  key: 0,
259
259
  class: "employment-editor",
260
- onSubmit: A(ke, ["prevent"])
260
+ onSubmit: j(Oe, ["prevent"])
261
261
  }, [
262
- x("label", null, [r[8] ||= x("span", null, "机构", -1), C(O(xe), {
263
- value: u.value.organizationId,
264
- context: O(te),
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: [O(le)()],
267
- disabled: l.value,
268
- "onUpdate:value": Ce
266
+ constraints: [k(se)()],
267
+ disabled: u.value,
268
+ "onUpdate:value": Se
269
269
  }, null, 8, [
270
270
  "value",
271
271
  "context",
272
272
  "constraints",
273
273
  "disabled"
274
274
  ])]),
275
- x("label", null, [r[9] ||= x("span", null, "部门", -1), C(O(xe), {
276
- value: u.value.departmentId,
277
- context: pe.value,
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: [O(le)()],
280
- disabled: l.value || !u.value.organizationId,
281
- "onUpdate:value": we
279
+ constraints: [k(se)()],
280
+ disabled: u.value || !f.value.organizationId,
281
+ "onUpdate:value": Ce
282
282
  }, null, 8, [
283
283
  "value",
284
284
  "context",
285
285
  "constraints",
286
286
  "disabled"
287
287
  ])]),
288
- x("label", null, [r[10] ||= x("span", null, "岗位", -1), C(O(xe), {
289
- value: u.value.positionId,
290
- context: O(ie),
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: [O(le)()],
294
- disabled: l.value,
295
- "onUpdate:value": r[0] ||= (e) => u.value.positionId = e ? String(e) : void 0
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",
299
299
  "constraints",
300
300
  "disabled"
301
301
  ])]),
302
- x("label", P, [
303
- r[12] ||= x("span", null, "主岗位", -1),
304
- x("span", null, [x("input", {
302
+ S("label", F, [
303
+ n[12] ||= S("span", null, "主岗位", -1),
304
+ S("span", null, [S("input", {
305
305
  type: "checkbox",
306
- checked: u.value.primaryPosition === !0,
307
- disabled: l.value || !me.value,
308
- onChange: r[1] ||= (e) => Te(e.target.checked)
309
- }, null, 40, F), r[11] ||= S(" 设为主岗 ", -1)]),
310
- me.value ? y("v-if", !0) : (T(), b("small", I, "主岗必须与职员主机构、主部门一致"))
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
- x("div", L, [C(O(f), {
313
- disabled: l.value,
314
- onClick: m
312
+ S("div", R, [w(k(d), {
313
+ disabled: u.value,
314
+ onClick: ye
315
315
  }, {
316
- default: k(() => [...r[13] ||= [S("取消", -1)]]),
316
+ default: A(() => [...n[13] ||= [C("取消", -1)]]),
317
317
  _: 1
318
- }, 8, ["disabled"]), C(O(f), {
318
+ }, 8, ["disabled"]), w(k(d), {
319
319
  type: "primary",
320
320
  "html-type": "submit",
321
- loading: l.value
321
+ loading: u.value
322
322
  }, {
323
- default: k(() => [...r[14] ||= [S("保存任职", -1)]]),
323
+ default: A(() => [...n[14] ||= [C("保存任职", -1)]]),
324
324
  _: 1
325
325
  }, 8, ["loading"])])
326
- ], 32)) : y("v-if", !0),
327
- oe.value ? (T(), v(O(e), {
326
+ ], 32)) : b("v-if", !0),
327
+ l.value ? (E(), y(k(le), {
328
328
  key: 1,
329
329
  class: "employment-state",
330
330
  tip: "加载任职"
331
- })) : c.value ? (T(), b("div", R, [C(O(re), {
331
+ })) : ie.value ? (E(), x("div", z, [w(k(m), {
332
332
  title: "任职信息加载失败",
333
333
  message: "无法加载任职信息,请重试"
334
- }), C(O(f), {
334
+ }), w(k(d), {
335
335
  type: "primary",
336
336
  "icon-name": "reload",
337
- onClick: p
337
+ onClick: h
338
338
  }, {
339
- default: k(() => [...r[15] ||= [S("重试", -1)]]),
339
+ default: A(() => [...n[15] ||= [C("重试", -1)]]),
340
340
  _: 1
341
- })])) : ae.value.length === 0 ? (T(), b("p", z, "暂无任职信息")) : (T(), v(O(ye), {
341
+ })])) : re.value.length === 0 ? (E(), x("p", B, "暂无任职信息")) : (E(), y(k(he), {
342
342
  key: 4,
343
343
  class: "employment-table",
344
- columns: de,
345
- rows: fe.value,
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": g
351
+ "row-muted": Te
352
352
  }, {
353
- cell: k(({ column: e, record: t }) => [S(D(Ee(e, t)), 1)]),
354
- rowActions: k(({ record: e }) => [x("div", {
353
+ cell: A(({ column: e, record: t }) => [C(O(we(e, t)), 1)]),
354
+ rowActions: A(({ record: e }) => [S("div", {
355
355
  class: "employment-table-row-actions",
356
- onClick: r[2] ||= A(() => {}, ["stop"]),
357
- onDblclick: r[3] ||= A(() => {}, ["stop"])
358
- }, [C(O(f), {
356
+ onClick: n[2] ||= j(() => {}, ["stop"]),
357
+ onDblclick: n[3] ||= j(() => {}, ["stop"])
358
+ }, [w(k(d), {
359
359
  type: "text",
360
- disabled: l.value,
361
- onClick: (t) => Se(e)
360
+ disabled: u.value,
361
+ onClick: (t) => xe(e)
362
362
  }, {
363
- default: k(() => [...r[16] ||= [S(" 编辑 ", -1)]]),
363
+ default: A(() => [...n[16] ||= [C(" 编辑 ", -1)]]),
364
364
  _: 1
365
- }, 8, ["disabled", "onClick"]), C(O(he), {
366
- items: De(e),
365
+ }, 8, ["disabled", "onClick"]), w(k(p), {
366
+ items: Ee(e),
367
367
  trigger: "hover",
368
- onSelect: (t) => Oe(e, t)
368
+ onSelect: (t) => De(e, t)
369
369
  }, {
370
- default: k(() => [C(O(f), {
370
+ default: A(() => [w(k(d), {
371
371
  type: "text",
372
372
  "icon-name": "down",
373
373
  title: "更多",
374
374
  "aria-label": "更多",
375
- disabled: l.value
375
+ disabled: u.value
376
376
  }, null, 8, ["disabled"])]),
377
377
  _: 1
378
378
  }, 8, ["items", "onSelect"])], 32)]),
@@ -382,22 +382,22 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
382
382
  _: 1
383
383
  }, 8, ["open", "title"]));
384
384
  }
385
- }), [["__scopeId", "data-v-fd7522f0"]]), B = {
385
+ }), [["__scopeId", "data-v-fd7522f0"]]), V = {
386
386
  key: 1,
387
387
  class: "employee-detail-state"
388
- }, V = { class: "employee-account-section" }, Ue = { class: "employee-account-header" }, We = {
388
+ }, H = { class: "employee-account-section" }, He = { class: "employee-account-header" }, Ue = {
389
389
  key: 1,
390
390
  class: "employee-account-state"
391
- }, H = { class: "employee-account-form-actions" }, U = {
391
+ }, U = { class: "employee-account-form-actions" }, W = {
392
392
  key: 3,
393
393
  class: "employee-account-empty"
394
- }, W = {
394
+ }, G = {
395
395
  key: 4,
396
396
  class: "employee-account-card"
397
- }, G = { class: "employee-account-status" }, K = { key: 0 }, q = { class: "employee-form-label" }, Ge = {
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__*/ u(/* @__PURE__ */ w({
400
+ }, Ke = /*#__PURE__*/ r(/* @__PURE__ */ T({
401
401
  name: "EmployeeDetailContent",
402
402
  __name: "EmployeeDetailContent",
403
403
  props: {
@@ -444,29 +444,29 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
444
444
  "removeAccount",
445
445
  "updateAccountProvisionField"
446
446
  ],
447
- setup(t, { emit: n }) {
448
- let i = t, a = n;
449
- return (t, n) => i.loading ? (T(), v(O(e), {
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
- })) : i.loadFailed ? (T(), b("div", B, [C(O(re), {
453
+ })) : r.loadFailed ? (E(), x("div", V, [w(k(m), {
454
454
  title: "详情加载失败",
455
455
  message: "无法加载职员详情,请重试"
456
- }), C(O(f), {
456
+ }), w(k(d), {
457
457
  type: "primary",
458
458
  "icon-name": "reload",
459
- onClick: n[0] ||= (e) => a("retry")
459
+ onClick: n[0] ||= (e) => i("retry")
460
460
  }, {
461
- default: k(() => [...n[12] ||= [S("重试", -1)]]),
461
+ default: A(() => [...n[12] ||= [C("重试", -1)]]),
462
462
  _: 1
463
- })])) : i.showContent ? (T(), b(Ae, { key: 2 }, [i.mode === "view" ? (T(), b(Ae, { key: 0 }, [
464
- C(O(r), {
465
- record: i.draft,
466
- fields: i.fields,
467
- fallback: i.fallback,
468
- "picker-configs": i.pickerConfigs,
469
- "display-of": i.displayOf
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,98 +474,98 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
474
474
  "picker-configs",
475
475
  "display-of"
476
476
  ]),
477
- x("section", V, [x("div", Ue, [n[14] ||= x("strong", null, "登录账号", -1), !i.account && !i.showAccountProvisionForm ? (T(), v(O(f), {
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: !i.canManageAccounts,
482
- onClick: n[1] ||= (e) => a("startAccountProvision")
481
+ disabled: !r.canManageAccounts,
482
+ onClick: n[1] ||= (e) => i("startAccountProvision")
483
483
  }, {
484
- default: k(() => [...n[13] ||= [S(" 设置账号 ", -1)]]),
484
+ default: A(() => [...n[13] ||= [C(" 设置账号 ", -1)]]),
485
485
  _: 1
486
- }, 8, ["disabled"])) : y("v-if", !0)]), i.loadingAccounts ? (T(), v(O(e), {
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
- })) : i.accountsLoadFailed ? (T(), b("div", We, [C(O(re), {
490
+ })) : r.accountsLoadFailed ? (E(), x("div", Ue, [w(k(m), {
491
491
  title: "账号绑定加载失败",
492
492
  message: "无法加载职员账号绑定,请重试"
493
- }), C(O(f), {
493
+ }), w(k(d), {
494
494
  "icon-name": "reload",
495
- onClick: n[2] ||= (e) => a("retryAccounts")
495
+ onClick: n[2] ||= (e) => i("retryAccounts")
496
496
  }, {
497
- default: k(() => [...n[15] ||= [S("重试", -1)]]),
497
+ default: A(() => [...n[15] ||= [C("重试", -1)]]),
498
498
  _: 1
499
- })])) : i.showAccountProvisionForm ? (T(), b("form", {
499
+ })])) : r.showAccountProvisionForm ? (E(), x("form", {
500
500
  key: 2,
501
501
  class: "employee-account-form",
502
- onSubmit: n[6] ||= A((e) => a("provisionAccount"), ["prevent"])
502
+ onSubmit: n[6] ||= j((e) => i("provisionAccount"), ["prevent"])
503
503
  }, [
504
- x("label", null, [n[16] ||= x("span", null, "账号", -1), C(O(m), {
505
- value: i.accountProvisionDraft.username,
504
+ S("label", null, [n[16] ||= S("span", null, "账号", -1), w(k(g), {
505
+ value: r.accountProvisionDraft.username,
506
506
  placeholder: "请输入登录账号",
507
- disabled: i.savingAccount,
508
- "onUpdate:value": n[3] ||= (e) => a("updateAccountProvisionField", "username", e)
507
+ disabled: r.savingAccount,
508
+ "onUpdate:value": n[3] ||= (e) => i("updateAccountProvisionField", "username", e)
509
509
  }, null, 8, ["value", "disabled"])]),
510
- x("label", null, [n[17] ||= x("span", null, "初始密码", -1), C(O(m), {
511
- value: i.accountProvisionDraft.password,
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: i.savingAccount,
515
- "onUpdate:value": n[4] ||= (e) => a("updateAccountProvisionField", "password", e)
514
+ disabled: r.savingAccount,
515
+ "onUpdate:value": n[4] ||= (e) => i("updateAccountProvisionField", "password", e)
516
516
  }, null, 8, ["value", "disabled"])]),
517
- x("div", H, [C(O(f), {
518
- disabled: i.savingAccount,
519
- onClick: n[5] ||= (e) => a("cancelAccountProvision")
517
+ S("div", U, [w(k(d), {
518
+ disabled: r.savingAccount,
519
+ onClick: n[5] ||= (e) => i("cancelAccountProvision")
520
520
  }, {
521
- default: k(() => [...n[18] ||= [S("取消", -1)]]),
521
+ default: A(() => [...n[18] ||= [C("取消", -1)]]),
522
522
  _: 1
523
- }, 8, ["disabled"]), C(O(f), {
523
+ }, 8, ["disabled"]), w(k(d), {
524
524
  type: "primary",
525
525
  "html-type": "submit",
526
526
  "icon-name": "plus",
527
- loading: i.savingAccount,
528
- disabled: !i.canManageAccounts
527
+ loading: r.savingAccount,
528
+ disabled: !r.canManageAccounts
529
529
  }, {
530
- default: k(() => [...n[19] ||= [S(" 创建账号并绑定 ", -1)]]),
530
+ default: A(() => [...n[19] ||= [C(" 创建账号并绑定 ", -1)]]),
531
531
  _: 1
532
532
  }, 8, ["loading", "disabled"])])
533
- ], 32)) : i.account ? (T(), b("div", W, [
534
- x("div", null, [x("strong", null, D(i.accountUserTitle), 1), x("span", null, D(i.accountUserDescription), 1)]),
535
- x("span", G, D(i.accountStatusTitle), 1),
536
- C(O(f), {
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
+ w(k(d), {
537
537
  danger: "",
538
538
  "icon-name": "delete",
539
- disabled: i.savingAccount || !i.canManageAccounts,
540
- onClick: n[7] ||= (e) => a("removeAccount")
539
+ disabled: r.savingAccount || !r.canManageAccounts,
540
+ onClick: n[7] ||= (e) => i("removeAccount")
541
541
  }, {
542
- default: k(() => [...n[21] ||= [S(" 移除账户 ", -1)]]),
542
+ default: A(() => [...n[21] ||= [C(" 移除账户 ", -1)]]),
543
543
  _: 1
544
544
  }, 8, ["disabled"])
545
- ])) : (T(), b("div", U, [...n[20] ||= [x("span", null, "未设置登录账号", -1), x("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
546
- C(O(c), {
547
- record: i.draft,
545
+ ])) : (E(), x("div", W, [...n[20] ||= [S("span", null, "未设置登录账号", -1), S("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
546
+ w(k(f), {
547
+ record: r.draft,
548
548
  "show-sort-order": ""
549
549
  }, null, 8, ["record"])
550
- ], 64)) : (T(), b(Ae, { key: 1 }, [i.externallyChanged ? (T(), v(O(d), {
550
+ ], 64)) : (E(), x(ke, { key: 1 }, [r.externallyChanged ? (E(), y(k(l), {
551
551
  key: 0,
552
- onReload: n[8] ||= (e) => a("reloadExternal"),
553
- onDismiss: n[9] ||= (e) => a("dismissExternal")
554
- })) : y("v-if", !0), x("form", {
552
+ onReload: n[8] ||= (e) => i("reloadExternal"),
553
+ onDismiss: n[9] ||= (e) => i("dismissExternal")
554
+ })) : b("v-if", !0), S("form", {
555
555
  class: "employee-form",
556
- onSubmit: n[11] ||= A((e) => a("save"), ["prevent"])
557
- }, [i.visibleOf("organizationId") ? (T(), b("label", K, [x("span", q, [S(D(i.labelOf("organizationId")) + " ", 1), i.requiredOf("organizationId") ? (T(), b("strong", Ge, "*")) : y("v-if", !0)]), C(O(m), {
558
- value: i.selectedOrganization?.title ?? i.selectedOrganization?.id ?? "-",
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"])])) : y("v-if", !0), C(O(h), {
561
- record: i.draft,
562
- fields: i.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: i.fallback,
565
- "picker-configs": i.pickerConfigs,
566
- disabled: i.formDisabled,
567
- "option-context": i.optionContext,
568
- "onUpdate:field": n[10] ||= (e, t) => a("updateField", 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",
@@ -573,13 +573,13 @@ var M = { class: "employment-drawer" }, N = { class: "employment-drawer-header"
573
573
  "picker-configs",
574
574
  "disabled",
575
575
  "option-context"
576
- ])], 32)], 64))], 64)) : y("v-if", !0);
576
+ ])], 32)], 64))], 64)) : b("v-if", !0);
577
577
  }
578
578
  }), [["__scopeId", "data-v-1e08bd36"]]);
579
579
  //#endregion
580
580
  //#region src/views/employeeDetailWorkspaceSession.ts
581
581
  function qe(e, t) {
582
- return g(Te, e, {
582
+ return _(we, e, {
583
583
  ...t,
584
584
  selectedEmployee: { ...t.selectedEmployee },
585
585
  draft: { ...t.draft },
@@ -591,47 +591,47 @@ function qe(e, t) {
591
591
  });
592
592
  }
593
593
  function Je(e, t) {
594
- return we(Te, e, t);
594
+ return Se(we, e, t);
595
595
  }
596
596
  function Ye(e) {
597
- return Ee(Te, e);
597
+ return Ce(we, e);
598
598
  }
599
599
  //#endregion
600
600
  //#region src/views/useEmployeeEmploymentRows.ts
601
- function Xe(e) {
602
- let t = E([]), n = E({});
603
- async function r(t) {
604
- if (!(!t || e.context.can("employeePositions", t) === !1)) {
605
- ee(t, {
606
- ...a(t),
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
- ee(t, {
612
- records: (await e.context.http.request({ path: e.pathOf?.(t) ?? `/iam.employee/${encodeURIComponent(t)}/employment-view` })).records,
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 (n) {
617
- let r = o(n, {
618
- source: `${e.source}-employment-rows`,
616
+ } catch (r) {
617
+ let i = e(r, {
618
+ source: `${t.source}-employment-rows`,
619
619
  phase: "load"
620
620
  });
621
- ee(t, {
622
- ...a(t),
621
+ s(n, {
622
+ ...o(n),
623
623
  loading: !1,
624
- error: r.message
624
+ error: i.message
625
625
  });
626
626
  }
627
627
  }
628
628
  }
629
- function i(e, n) {
630
- let i = String(e.id ?? "");
631
- i && (t.value = n ? Array.from(new Set([...t.value, i])) : t.value.filter((e) => e !== i), n && a(i).records.length === 0 && r(i));
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
- function a(e) {
634
- return e ? n.value[e] ?? {
633
+ function o(e) {
634
+ return e ? r.value[e] ?? {
635
635
  records: [],
636
636
  loading: !1
637
637
  } : {
@@ -639,21 +639,21 @@ function Xe(e) {
639
639
  loading: !1
640
640
  };
641
641
  }
642
- function ee(e, t) {
643
- n.value = {
644
- ...n.value,
642
+ function s(e, t) {
643
+ r.value = {
644
+ ...r.value,
645
645
  [e]: t
646
646
  };
647
647
  }
648
- function te() {
649
- t.value = [], n.value = {};
648
+ function ee() {
649
+ n.value = [], r.value = {};
650
650
  }
651
651
  return {
652
- expandedEmployeeKeys: t,
653
- employmentRowState: a,
654
- handleEmployeeRowExpand: i,
655
- loadEmployeeEmploymentRows: r,
656
- resetEmployeeEmploymentRows: te
652
+ expandedEmployeeKeys: n,
653
+ employmentRowState: o,
654
+ handleEmployeeRowExpand: a,
655
+ loadEmployeeEmploymentRows: i,
656
+ resetEmployeeEmploymentRows: ee
657
657
  };
658
658
  }
659
659
  //#endregion
@@ -661,179 +661,179 @@ function Xe(e) {
661
661
  var Ze = { key: 0 }, Qe = {
662
662
  key: 1,
663
663
  class: "employee-row-employment-list"
664
- }, $e = /*#__PURE__*/ u(/* @__PURE__ */ w({
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(e) {
672
- let r = e, re = [
671
+ setup(t) {
672
+ let r = t, l = [
673
673
  "departmentId",
674
674
  "employeeNo",
675
675
  "title"
676
- ], c = Se(), le = s({ moduleAlias: "iam.organization" }), u = s({ moduleAlias: "iam.department" }), d = s({ moduleAlias: "iam.employee" }), he = s({ moduleAlias: "iam.user" }), ye = E(t(void 0)), m = _(() => !!r.recordId), h = _(() => m.value && c?.presentation === "drawer"), xe = _(() => !m.value || h.value), we = E(""), Ee = E(0), g = E(0), w = E(), A = E(), j = E(), M = E(!1), N = E("view"), P = E(!1), F = E(!1), I = E(!1), L = E(0), R = E(Qt(void 0)), z = E(), B = E(), V = E(), Ue = E(!1), We = E(), H = E(!1), U = E(!1), W = E(!1), G = E(!1), K = E($t(void 0)), q = _e({
677
- context: () => d,
678
- listReloadKey: g,
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
+ listReloadKey: _,
679
679
  canChange: X,
680
680
  resetSelection: Ft
681
681
  }), { expandedEmployeeKeys: Ge, employmentRowState: $e, handleEmployeeRowExpand: et, loadEmployeeEmploymentRows: tt, resetEmployeeEmploymentRows: nt } = Xe({
682
- context: d,
682
+ context: p,
683
683
  source: "employee-management",
684
- pathOf: (e) => q.active.value ? `/iam.employee/recycle-bin/${encodeURIComponent(e)}/employment-view` : `/iam.employee/${encodeURIComponent(e)}/employment-view`
685
- }), J = Oe({
684
+ pathOf: (e) => We.active.value ? `/iam.employee/recycle-bin/${encodeURIComponent(e)}/employment-view` : `/iam.employee/${encodeURIComponent(e)}/employment-view`
685
+ }), J = De({
686
686
  moduleAlias: "iam.employee",
687
- recordId: () => j.value?.id,
688
- editing: () => N.value === "edit",
689
- saving: () => I.value
690
- }), rt = De({
687
+ recordId: () => M.value?.id,
688
+ editing: () => P.value === "edit",
689
+ saving: () => L.value
690
+ }), rt = Ee({
691
691
  delay: 80,
692
692
  load: async (e) => {
693
- g.value += 1;
694
- let t = j.value?.id;
695
- M.value && N.value === "view" && t && e.keys.includes(t) && await Z({
696
- ...R.value,
693
+ _.value += 1;
694
+ let t = M.value?.id;
695
+ N.value && P.value === "view" && t && e.keys.includes(t) && await Z({
696
+ ...z.value,
697
697
  id: t
698
698
  }, "view");
699
699
  }
700
700
  });
701
- ke({
701
+ Oe({
702
702
  moduleAlias: "iam.employee",
703
703
  handler: (e, t) => {
704
704
  let n = t.map((e) => e.recordId).filter((e) => !!e);
705
705
  rt.enqueue(n.length > 0 ? n : "__collection__");
706
706
  }
707
707
  });
708
- let it = _(() => d), Y = _(() => w.value?.id), at = _(() => be(u, {
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
- })), ot = _(() => ({ departmentId: {
713
+ })), ot = v(() => ({ departmentId: {
714
714
  context: at.value,
715
- reloadKey: Ee.value,
715
+ reloadKey: Ce.value,
716
716
  placeholder: "请选择部门",
717
717
  titleOf: (e) => wn(e)
718
- } })), st = _(() => {
718
+ } })), st = v(() => {
719
719
  let e = Y.value;
720
720
  if (e) return { departmentScope: {
721
721
  organizationId: e,
722
722
  includeChildren: !0
723
723
  } };
724
- }), ct = _(() => N.value === "create" ? "新建职员" : pn(j.value ?? R.value)), lt = _(() => N.value === "create" ? void 0 : mn(j.value ?? R.value)), ut = _(() => Ie({
725
- mode: N.value,
726
- loadingDetail: P.value,
727
- saving: I.value,
728
- selectedEmployeeId: j.value?.id
729
- })), dt = _(() => Re({
730
- mode: N.value,
731
- loadingDetail: P.value,
732
- loadFailed: F.value,
733
- selectedEmployeeId: j.value?.id
734
- })), ft = _(() => P.value ? !1 : N.value === "create" ? !!Y.value && d.can("create") === !0 : !!j.value?.id && d.can("update") === !0), pt = _(() => P.value || !j.value?.id ? !1 : d.can(hn(j.value)) === !0), mt = _(() => !j.value?.id || P.value || I.value ? !1 : d.can("employeeAccounts", j.value.id) !== !1), ht = _(() => N.value === "view" ? j.value?.id ? [{
724
+ }), ct = v(() => P.value === "create" ? "新建职员" : pn(M.value ?? z.value)), lt = v(() => P.value === "create" ? void 0 : mn(M.value ?? z.value)), ut = v(() => Fe({
725
+ mode: P.value,
726
+ loadingDetail: F.value,
727
+ saving: L.value,
728
+ selectedEmployeeId: M.value?.id
729
+ })), dt = v(() => Le({
730
+ mode: P.value,
731
+ loadingDetail: F.value,
732
+ loadFailed: I.value,
733
+ selectedEmployeeId: M.value?.id
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: "编辑",
738
738
  iconName: "edit",
739
- disabled: I.value
739
+ disabled: L.value
740
740
  }, {
741
741
  key: "delete",
742
742
  actionCode: "delete",
743
743
  title: "删除",
744
744
  iconName: "delete",
745
745
  danger: !0,
746
- disabled: I.value
746
+ disabled: L.value
747
747
  }] : [] : [{
748
748
  key: "cancel",
749
749
  title: "取消",
750
750
  iconName: "close",
751
- disabled: I.value
751
+ disabled: L.value
752
752
  }, {
753
753
  key: "save",
754
- actionCode: N.value === "create" ? "create" : "update",
754
+ actionCode: P.value === "create" ? "create" : "update",
755
755
  title: "保存",
756
756
  iconName: "save",
757
757
  primary: !0,
758
758
  disabled: !ft.value,
759
- loading: I.value
760
- }]), gt = _(() => ht.value), _t = _(() => N.value === "view" ? j.value?.id ? [{
759
+ loading: L.value
760
+ }]), gt = v(() => ht.value), _t = v(() => P.value === "view" ? M.value?.id ? [{
761
761
  key: "edit",
762
762
  actionCode: "update",
763
763
  title: "编辑",
764
764
  iconName: "edit",
765
- disabled: I.value
766
- }] : [] : N.value === "edit" ? [{
765
+ disabled: L.value
766
+ }] : [] : P.value === "edit" ? [{
767
767
  key: "cancel",
768
768
  title: "取消",
769
769
  iconName: "close",
770
- disabled: I.value
770
+ disabled: L.value
771
771
  }, {
772
772
  key: "save",
773
773
  actionCode: "update",
774
774
  title: "保存",
775
775
  iconName: "save",
776
776
  primary: !0,
777
- loading: I.value,
777
+ loading: L.value,
778
778
  disabled: !ft.value
779
- }] : []), vt = Ce({
780
- view: Te,
781
- input: _(() => {
782
- let e = j.value?.id, t = N.value;
779
+ }] : []), vt = xe({
780
+ view: we,
781
+ input: v(() => {
782
+ let e = M.value?.id, t = P.value;
783
783
  return e && (t === "view" || t === "edit") ? { recordId: e } : void 0;
784
784
  }),
785
- title: _(() => pn(j.value)),
786
- eligibility: _(() => ({
787
- hasStableIdentity: !!j.value?.id && !P.value,
788
- busy: I.value || U.value || H.value
785
+ title: v(() => pn(M.value)),
786
+ eligibility: v(() => ({
787
+ hasStableIdentity: !!M.value?.id && !F.value,
788
+ busy: L.value || W.value || U.value
789
789
  })),
790
790
  beforePromote: async (e) => {
791
- let t = j.value;
791
+ let t = M.value;
792
792
  if (t) return await qe(e, {
793
793
  selectedEmployee: t,
794
- draft: R.value,
795
- organization: w.value,
796
- department: z.value,
797
- account: B.value,
798
- accountUser: V.value,
799
- showAccountProvisionForm: G.value,
800
- accountProvisionDraft: K.value,
801
- mode: N.value === "edit" ? "edit" : "view"
794
+ draft: z.value,
795
+ organization: T.value,
796
+ department: B.value,
797
+ account: V.value,
798
+ accountUser: H.value,
799
+ showAccountProvisionForm: K.value,
800
+ accountProvisionDraft: q.value,
801
+ mode: P.value === "edit" ? "edit" : "view"
802
802
  }) === "accepted";
803
803
  },
804
804
  onPromoted: Wt
805
805
  });
806
- Fe(j, (e) => {
807
- !m.value || !e || c?.setTitle(pn(e));
806
+ Pe(M, (e) => {
807
+ !h.value || !e || f?.setTitle(pn(e));
808
808
  }, { immediate: !0 });
809
809
  let yt;
810
- Ne(() => {
810
+ Me(() => {
811
811
  if (xt(), !r.recordId) return;
812
812
  let e = { recordId: r.recordId };
813
- h.value || (yt = Je(e, bt));
813
+ g.value || (yt = Je(e, bt));
814
814
  let t = Ye(e);
815
815
  if (t) {
816
816
  an(t);
817
817
  return;
818
818
  }
819
819
  Z({ id: r.recordId }, r.mode ?? "view");
820
- }), Me(() => yt?.());
820
+ }), je(() => yt?.());
821
821
  function bt(e) {
822
- return N.value !== "view" || G.value ? !1 : (an(e), !0);
822
+ return P.value !== "view" || K.value ? !1 : (an(e), !0);
823
823
  }
824
824
  async function xt() {
825
825
  try {
826
- ye.value = t((await d.runtime.ready).uiDescriptor);
827
- } catch (e) {
828
- o(e, {
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 fe(e, {
836
- fields: ye.value,
835
+ return te(e, {
836
+ fields: m.value,
837
837
  fallback: En
838
838
  });
839
839
  }
@@ -847,52 +847,52 @@ var Ze = { key: 0 }, Qe = {
847
847
  return St(e).visible;
848
848
  }
849
849
  function X() {
850
- return ze({ saving: I.value });
850
+ return Re({ saving: L.value });
851
851
  }
852
852
  function Et(e, t) {
853
- R.value = {
854
- ...R.value,
853
+ z.value = {
854
+ ...z.value,
855
855
  [e]: t
856
856
  };
857
857
  }
858
858
  function Dt(e, t) {
859
- K.value = {
860
- ...K.value,
859
+ q.value = {
860
+ ...q.value,
861
861
  [e]: t
862
862
  };
863
863
  }
864
864
  function Ot(e, t) {
865
- if (e === "organizationId") return w.value?.title ?? w.value?.id ?? String(t ?? "");
865
+ if (e === "organizationId") return T.value?.title ?? T.value?.id ?? String(t ?? "");
866
866
  if (e === "departmentId") {
867
- let e = z.value;
867
+ let e = B.value;
868
868
  return e && e.id === t ? wn(e) : void 0;
869
869
  }
870
870
  }
871
871
  function kt(e) {
872
- !w.value && e.length > 0 && (w.value = e[0]);
872
+ !T.value && e.length > 0 && (T.value = e[0]);
873
873
  }
874
874
  function At(e) {
875
- X() && (w.value = e, A.value = void 0, j.value = void 0, J.clearExternalChanged(), P.value = !1, F.value = !1, z.value = void 0, $(), nt(), Wt());
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
- Ee.value += 1;
878
+ Ce.value += 1;
879
879
  }
880
880
  function Mt(e) {
881
881
  if (!X()) return;
882
- let t = String(e.id ?? ""), n = String(j.value?.id ?? R.value.id ?? "");
883
- A.value = t, M.value && n !== t && (L.value += 1, P.value = !1, F.value = !1, z.value = void 0, $(), j.value = void 0, R.value = Qt(Y.value), J.clearExternalChanged(), M.value = !1, N.value = "view");
882
+ let t = String(e.id ?? ""), n = String(M.value?.id ?? z.value.id ?? "");
883
+ j.value = t, N.value && n !== t && (R.value += 1, F.value = !1, I.value = !1, B.value = void 0, $(), M.value = void 0, z.value = Qt(Y.value), J.clearExternalChanged(), N.value = !1, P.value = "view");
884
884
  }
885
885
  function Nt(e) {
886
886
  X() && e.key === "create" && Ut();
887
887
  }
888
888
  function Pt(e) {
889
- e === "recycleBin" ? q.enter() : q.leave();
889
+ e === "recycleBin" ? We.enter() : We.leave();
890
890
  }
891
891
  function Ft() {
892
- nt(), A.value = void 0, j.value = void 0, Wt();
892
+ nt(), j.value = void 0, M.value = void 0, Wt();
893
893
  }
894
894
  function It() {
895
- g.value += 1;
895
+ _.value += 1;
896
896
  }
897
897
  function Lt(e, t) {
898
898
  if (X()) {
@@ -917,22 +917,22 @@ var Ze = { key: 0 }, Qe = {
917
917
  actionCode: "employeePositions",
918
918
  title: "任职",
919
919
  after: "edit",
920
- visible: !!e.id && d.can("employeePositions", String(e.id)) !== !1
920
+ visible: !!e.id && p.can("employeePositions", String(e.id)) !== !1
921
921
  }];
922
922
  }
923
- async function zt(e) {
924
- let t = String(e.id ?? "");
925
- if (t) try {
926
- We.value = await d.crud.view(t), Ue.value = !0;
927
- } catch (e) {
928
- o(e, {
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
  });
932
932
  }
933
933
  }
934
934
  function Bt() {
935
- Ue.value = !1;
935
+ He.value = !1;
936
936
  }
937
937
  function Vt(e) {
938
938
  Ge.value.includes(e) && tt(e);
@@ -946,55 +946,55 @@ var Ze = { key: 0 }, Qe = {
946
946
  ve("请先选择机构", { phase: "validation" });
947
947
  return;
948
948
  }
949
- R.value = Qt(Y.value), j.value = void 0, A.value = void 0, J.clearExternalChanged(), N.value = "create", P.value = !1, F.value = !1, L.value += 1, z.value = void 0, $(), M.value = !0;
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
- I.value || (L.value += 1, P.value = !1, F.value = !1, M.value = !1, N.value = "view", z.value = void 0, J.clearExternalChanged(), $(), R.value = j.value ? en(j.value) : Qt(Y.value), h.value && c?.dismiss());
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
- if (!I.value) {
957
- if (Be({
958
- mode: N.value,
959
- selectedEmployeeId: j.value?.id
956
+ if (!L.value) {
957
+ if (ze({
958
+ mode: P.value,
959
+ selectedEmployeeId: M.value?.id
960
960
  })) {
961
961
  Wt();
962
962
  return;
963
963
  }
964
- R.value = en(j.value), J.clearExternalChanged(), N.value = "view", P.value = !1, F.value = !1;
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(e, t) {
967
+ async function Z(t, n) {
968
968
  if (!X()) return;
969
- let n = String(e.id ?? "");
970
- if (!n) return;
971
- A.value = n, J.clearExternalChanged(), M.value = !0, N.value = t, j.value = void 0, R.value = en(e), z.value = void 0, $(), P.value = !0, F.value = !1;
972
- let r = L.value + 1;
973
- L.value = r;
974
- let i = () => Le({
975
- activeRequestSeq: L.value,
976
- requestSeq: r,
977
- selectedEmployeeKey: A.value,
978
- recordId: n
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
+ activeRequestSeq: R.value,
976
+ requestSeq: i,
977
+ selectedEmployeeKey: j.value,
978
+ recordId: r
979
979
  });
980
980
  try {
981
- let e = await d.crud.view(n);
982
- if (!i()) return;
981
+ let e = await p.crud.view(r);
982
+ if (!a()) return;
983
983
  if (!e?.id) {
984
- F.value = !0, ve("未找到指定职员", {
984
+ I.value = !0, ve("未找到指定职员", {
985
985
  source: "employee-management",
986
986
  phase: "load"
987
987
  });
988
988
  return;
989
989
  }
990
- j.value = e, R.value = en(e), F.value = !1, await sn(e, r), await on(e, r), cn(e, r);
991
- } catch (e) {
992
- i() && (F.value = !0, o(e, {
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
- i() && (P.value = !1);
997
+ a() && (F.value = !1);
998
998
  }
999
999
  }
1000
1000
  function Kt(e) {
@@ -1008,85 +1008,85 @@ var Ze = { key: 0 }, Qe = {
1008
1008
  }
1009
1009
  if (X()) {
1010
1010
  if (e.key === "edit") {
1011
- if (!j.value || P.value) return;
1012
- R.value = en(j.value), J.clearExternalChanged(), N.value = "edit";
1011
+ if (!M.value || F.value) return;
1012
+ z.value = en(M.value), J.clearExternalChanged(), P.value = "edit";
1013
1013
  return;
1014
1014
  }
1015
- e.key === "delete" && Zt(j.value);
1015
+ e.key === "delete" && Zt(M.value);
1016
1016
  }
1017
1017
  }
1018
1018
  function qt() {
1019
1019
  if (!X()) return;
1020
- let e = String(R.value.id ?? A.value ?? "");
1020
+ let e = String(z.value.id ?? j.value ?? "");
1021
1021
  if (!e) return;
1022
- let t = N.value === "create" ? "view" : N.value;
1022
+ let t = P.value === "create" ? "view" : P.value;
1023
1023
  Z({
1024
- ...R.value,
1024
+ ...z.value,
1025
1025
  id: e
1026
1026
  }, t);
1027
1027
  }
1028
1028
  function Jt() {
1029
- let e = String(J.externalChangedRecordId.value ?? R.value.id ?? A.value ?? "");
1029
+ let e = String(J.externalChangedRecordId.value ?? z.value.id ?? j.value ?? "");
1030
1030
  e && (J.clearExternalChanged(), Z({
1031
- ...R.value,
1031
+ ...z.value,
1032
1032
  id: e
1033
1033
  }, "edit"));
1034
1034
  }
1035
1035
  async function Yt() {
1036
- await p({
1037
- loading: I,
1038
- mode: N.value === "edit" ? "edit" : "create",
1036
+ await ge({
1037
+ loading: L,
1038
+ mode: P.value === "edit" ? "edit" : "create",
1039
1039
  source: "employee-management",
1040
1040
  validateContext: () => Y.value ? void 0 : "请先选择机构",
1041
1041
  canSave: () => ft.value,
1042
1042
  deniedMessage: "当前用户无权保存职员",
1043
- createRecord: () => tn(R.value, Y.value ?? ""),
1043
+ createRecord: () => tn(z.value, Y.value ?? ""),
1044
1044
  validateRecord: nn,
1045
- save: (e, t) => t === "edit" && j.value?.id ? d.crud.update(j.value.id, e) : d.crud.insert(e),
1045
+ save: (e, t) => t === "edit" && M.value?.id ? p.crud.update(M.value.id, e) : p.crud.insert(e),
1046
1046
  actionErrorHandlers: [ue({
1047
1047
  resourceLabel: "职员",
1048
1048
  onNavigateToRecycleBin: () => Pt("recycleBin")
1049
1049
  }), {
1050
- code: ae.conflictVersion,
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 }) => {
1054
1054
  let t = rn(e);
1055
- g.value += 1, on(e, t);
1055
+ _.value += 1, on(e, t);
1056
1056
  }
1057
1057
  });
1058
1058
  }
1059
1059
  async function Xt() {
1060
1060
  await de({
1061
- loading: I,
1061
+ loading: L,
1062
1062
  source: "employee-management",
1063
- record: () => j.value && j.value.id ? j.value : void 0,
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 ? d.crud.enable(e.id, { version: e.version }) : d.crud.disable(e.id, { version: e.version }),
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 d.crud.view(t.id);
1069
- await on(n, rn(n)), g.value += 1;
1068
+ let n = await p.crud.view(t.id);
1069
+ await on(n, rn(n)), _.value += 1;
1070
1070
  }
1071
1071
  });
1072
1072
  }
1073
1073
  async function Zt(e) {
1074
1074
  await de({
1075
- loading: I,
1075
+ loading: L,
1076
1076
  source: "employee-management",
1077
1077
  record: () => e?.id ? e : void 0,
1078
- canExecute: () => d.can("delete") === !0,
1078
+ canExecute: () => p.can("delete") === !0,
1079
1079
  deniedMessage: "当前用户无权删除职员",
1080
- confirm: (e) => ce({
1080
+ confirm: (e) => oe({
1081
1081
  title: "删除职员",
1082
1082
  content: `确认删除职员「${fn(e)}」?`,
1083
1083
  okText: "删除",
1084
1084
  danger: !0
1085
1085
  }),
1086
- execute: (e) => d.crud.delete(String(e.id), { version: e.version }),
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
- A.value === n && (A.value = void 0, j.value = void 0, R.value = Qt(Y.value), J.clearExternalChanged(), P.value = !1, F.value = !1, L.value += 1, z.value = void 0, $(), M.value = !1, N.value = "view"), g.value += 1;
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;
1090
1090
  }
1091
1091
  });
1092
1092
  }
@@ -1108,7 +1108,7 @@ var Ze = { key: 0 }, Qe = {
1108
1108
  return { ...e };
1109
1109
  }
1110
1110
  function tn(e, t) {
1111
- return l(e, {
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 Ve(re.map((t) => {
1123
+ return Be(l.map((t) => {
1124
1124
  let n = St(t);
1125
1125
  return {
1126
1126
  fieldName: t,
@@ -1132,147 +1132,147 @@ var Ze = { key: 0 }, Qe = {
1132
1132
  }));
1133
1133
  }
1134
1134
  function rn(e) {
1135
- j.value = e, R.value = en(e), A.value = e.id, N.value = "view", J.clearExternalChanged(), M.value = !0, P.value = !1, F.value = !1;
1136
- let t = L.value + 1;
1137
- return L.value = t, t;
1135
+ M.value = e, z.value = en(e), j.value = e.id, P.value = "view", J.clearExternalChanged(), N.value = !0, F.value = !1, I.value = !1;
1136
+ let t = R.value + 1;
1137
+ return R.value = t, t;
1138
1138
  }
1139
1139
  function an(e) {
1140
- j.value = e.selectedEmployee, A.value = e.selectedEmployee.id, w.value = e.organization, z.value = e.department, R.value = e.draft, N.value = e.mode, B.value = e.account, V.value = e.accountUser, G.value = e.showAccountProvisionForm, K.value = e.accountProvisionDraft, M.value = !0, P.value = !1, F.value = !1, W.value = !1, L.value += 1;
1140
+ M.value = e.selectedEmployee, j.value = e.selectedEmployee.id, T.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;
1141
1141
  }
1142
1142
  function Q(e, t) {
1143
- return !!e && Le({
1144
- activeRequestSeq: L.value,
1143
+ return !!e && Ie({
1144
+ activeRequestSeq: R.value,
1145
1145
  requestSeq: t,
1146
- selectedEmployeeKey: A.value,
1146
+ selectedEmployeeKey: j.value,
1147
1147
  recordId: e ?? ""
1148
1148
  });
1149
1149
  }
1150
- async function on(e, t = L.value) {
1151
- z.value = void 0;
1152
- let n = e.id, r = e.departmentId;
1153
- if (r) try {
1154
- let e = await u.crud.view(r);
1155
- Q(n, t) && (z.value = e);
1156
- } catch (e) {
1157
- Q(n, t) && o(e, {
1150
+ async function on(t, n = R.value) {
1151
+ B.value = void 0;
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(e, t = L.value) {
1164
- let n = e.id, r = e.organizationId;
1165
- if (r) try {
1166
- let e = await le.crud.view(r);
1167
- Q(n, t) && (w.value = e);
1168
- } catch (e) {
1169
- Q(n, t) && o(e, {
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(e = j.value ?? R.value, t = L.value) {
1176
- let n = e.id;
1177
- if (!n) {
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
- H.value = !0, W.value = !1;
1181
+ U.value = !0, G.value = !1;
1182
1182
  try {
1183
- let e = await d.http.request({ path: `/iam.employee/${encodeURIComponent(n)}/account` });
1184
- if (!Q(n, t)) return;
1185
- B.value = e, await ln(e, n, t);
1186
- } catch (e) {
1187
- Q(n, t) && (W.value = !0, o(e, {
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(n, t) && (H.value = !1);
1192
+ Q(r, n) && (U.value = !1);
1193
1193
  }
1194
1194
  }
1195
- async function ln(e, t, n) {
1196
- let r = e?.userId;
1197
- if (!r) {
1198
- Q(t, n) && (V.value = void 0);
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 i;
1201
+ let a;
1202
1202
  try {
1203
- i = await he.crud.view(r);
1204
- } catch (e) {
1205
- o(e, {
1203
+ a = await he.crud.view(i);
1204
+ } catch (t) {
1205
+ e(t, {
1206
1206
  source: "employee-management",
1207
1207
  phase: "load"
1208
- }), i = {
1209
- id: r,
1210
- username: r
1208
+ }), a = {
1209
+ id: i,
1210
+ username: i
1211
1211
  };
1212
1212
  }
1213
- Q(t, n) && (V.value = i);
1213
+ Q(n, r) && (H.value = a);
1214
1214
  }
1215
1215
  async function un() {
1216
- let e = j.value, t = Sn(K.value);
1217
- if (!e?.id || !mt.value) return;
1218
- let n = Cn(t);
1219
- if (n) {
1220
- ve(n, {
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
  });
1224
1224
  return;
1225
1225
  }
1226
- U.value = !0;
1226
+ W.value = !0;
1227
1227
  try {
1228
- let n = await d.http.request({
1228
+ let e = await p.http.request({
1229
1229
  method: "POST",
1230
- path: `/iam.employee/${encodeURIComponent(e.id)}/account/provision`,
1231
- body: t
1232
- }), r = ge(n);
1233
- B.value = r.binding, V.value = r.user, G.value = !1, K.value = $t(e), await se(n, {
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 (e) {
1238
- o(e, {
1237
+ } catch (t) {
1238
+ e(t, {
1239
1239
  source: "employee-management",
1240
1240
  phase: "action"
1241
1241
  });
1242
1242
  } finally {
1243
- U.value = !1;
1243
+ W.value = !1;
1244
1244
  }
1245
1245
  }
1246
1246
  async function dn() {
1247
- let e = j.value;
1248
- if (!(!e?.id || !B.value?.id || !mt.value) && await ce({
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: "移除",
1252
1252
  danger: !0
1253
1253
  })) {
1254
- U.value = !0;
1254
+ W.value = !0;
1255
1255
  try {
1256
- let t = await d.http.request({
1256
+ let e = await p.http.request({
1257
1257
  method: "POST",
1258
- path: `/iam.employee/${encodeURIComponent(e.id)}/account/delete`
1258
+ path: `/iam.employee/${encodeURIComponent(t.id)}/account/delete`
1259
1259
  });
1260
- await cn(e, L.value), await se(t, {
1260
+ await cn(t, R.value), await s(e, {
1261
1261
  source: "employee-management",
1262
1262
  phase: "action"
1263
1263
  });
1264
- } catch (e) {
1265
- o(e, {
1264
+ } catch (t) {
1265
+ e(t, {
1266
1266
  source: "employee-management",
1267
1267
  phase: "action"
1268
1268
  });
1269
1269
  } finally {
1270
- U.value = !1;
1270
+ W.value = !1;
1271
1271
  }
1272
1272
  }
1273
1273
  }
1274
1274
  function $() {
1275
- B.value = void 0, V.value = void 0, H.value = !1, U.value = !1, W.value = !1, G.value = !1, K.value = $t(j.value ?? R.value);
1275
+ V.value = void 0, H.value = void 0, U.value = !1, W.value = !1, G.value = !1, K.value = !1, q.value = $t(M.value ?? z.value);
1276
1276
  }
1277
1277
  function fn(e) {
1278
1278
  return String(e?.title ?? e?.employeeNo ?? e?.id ?? "职员档案");
@@ -1288,24 +1288,24 @@ var Ze = { key: 0 }, Qe = {
1288
1288
  return e.enabled === !1 ? "enable" : "disable";
1289
1289
  }
1290
1290
  function gn() {
1291
- let e = B.value, t = V.value;
1291
+ let e = V.value, t = H.value;
1292
1292
  return String(t?.username ?? e?.userId ?? "未设置账号");
1293
1293
  }
1294
1294
  function _n() {
1295
- let e = V.value;
1295
+ let e = H.value;
1296
1296
  return e?.id ? `账号ID ${e.id}` : "-";
1297
1297
  }
1298
1298
  function vn() {
1299
- return V.value?.enabled === !1 ? "停用" : "启用";
1299
+ return H.value?.enabled === !1 ? "停用" : "启用";
1300
1300
  }
1301
1301
  function yn(e) {
1302
1302
  return String(e?.employeeNo ?? e?.mobile ?? "").trim().toLowerCase();
1303
1303
  }
1304
1304
  function bn() {
1305
- K.value = $t(j.value ?? R.value), G.value = !0;
1305
+ q.value = $t(M.value ?? z.value), K.value = !0;
1306
1306
  }
1307
1307
  function xn() {
1308
- G.value = !1, K.value = $t(j.value ?? R.value);
1308
+ K.value = !1, q.value = $t(M.value ?? z.value);
1309
1309
  }
1310
1310
  function Sn(e) {
1311
1311
  return {
@@ -1386,26 +1386,26 @@ var Ze = { key: 0 }, Qe = {
1386
1386
  controlType: "enabledStatus"
1387
1387
  }
1388
1388
  };
1389
- return (e, t) => !m.value || h.value ? (T(), v(O(a), {
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
- default: k(() => [
1394
- C(O(ne), null, {
1395
- default: k(() => [C(O(n), {
1393
+ default: A(() => [
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": we.value,
1399
+ "search-keyword": Se.value,
1400
1400
  "search-placeholder": "搜索机构名称、编码或 ID",
1401
1401
  onRefresh: jt,
1402
- "onUpdate:searchKeyword": t[0] ||= (e) => we.value = e
1402
+ "onUpdate:searchKeyword": t[0] ||= (e) => Se.value = e
1403
1403
  }, {
1404
- default: k(() => [C(O(pe), {
1405
- context: O(le),
1406
- "selected-id": w.value?.id,
1407
- "reload-key": Ee.value,
1408
- keyword: we.value,
1404
+ default: A(() => [w(k(fe), {
1405
+ context: k(se),
1406
+ "selected-id": T.value?.id,
1407
+ "reload-key": Ce.value,
1408
+ keyword: Se.value,
1409
1409
  "search-mode": "none",
1410
1410
  "search-trigger": "external",
1411
1411
  "empty-description": "暂无机构",
@@ -1425,18 +1425,18 @@ var Ze = { key: 0 }, Qe = {
1425
1425
  }, 8, ["search-keyword"])]),
1426
1426
  _: 1
1427
1427
  }),
1428
- C(O(me), {
1428
+ w(k(pe), {
1429
1429
  class: "employee-list-panel",
1430
1430
  context: it.value,
1431
- title: O(q).active.value ? "职员回收站" : "职员列表",
1432
- mode: O(q).mode.value,
1431
+ title: k(We).active.value ? "职员回收站" : "职员列表",
1432
+ mode: k(We).mode.value,
1433
1433
  "standard-crud-actions": "",
1434
1434
  "standard-crud-row-actions": "",
1435
1435
  "extra-row-actions-of": Rt,
1436
- "selected-key": A.value,
1437
- "expanded-row-keys": O(Ge),
1438
- "reload-key": g.value,
1439
- ready: !!w.value?.id,
1436
+ "selected-key": j.value,
1437
+ "expanded-row-keys": k(Ge),
1438
+ "reload-key": _.value,
1439
+ ready: !!T.value?.id,
1440
1440
  "external-query-values": st.value,
1441
1441
  "quick-search-placeholder": "搜索编号、姓名、手机号或邮箱",
1442
1442
  "empty-description": "当前机构暂无职员",
@@ -1444,40 +1444,40 @@ var Ze = { key: 0 }, Qe = {
1444
1444
  onAction: Nt,
1445
1445
  onRowAction: Lt,
1446
1446
  onRowDblclick: Ht,
1447
- onRowExpand: O(et),
1447
+ onRowExpand: k(et),
1448
1448
  onSelect: Mt,
1449
1449
  onModeChange: Pt,
1450
1450
  onRestored: It
1451
1451
  }, {
1452
- expandedRow: k(({ record: e }) => [C(O(oe), {
1452
+ expandedRow: A(({ record: e }) => [w(k(ae), {
1453
1453
  title: "任职信息",
1454
- loading: O($e)(String(e.id ?? "")).loading,
1455
- error: O($e)(String(e.id ?? "")).error,
1454
+ loading: k($e)(String(e.id ?? "")).loading,
1455
+ error: k($e)(String(e.id ?? "")).error,
1456
1456
  "loading-tip": "加载任职信息",
1457
1457
  "error-title": "任职信息加载失败"
1458
1458
  }, {
1459
- actions: k(() => [C(O(f), {
1459
+ actions: A(() => [w(k(d), {
1460
1460
  type: "text",
1461
1461
  "icon-name": "reload",
1462
- disabled: O($e)(String(e.id ?? "")).loading,
1463
- onClick: (t) => O(tt)(String(e.id ?? ""))
1462
+ disabled: k($e)(String(e.id ?? "")).loading,
1463
+ onClick: (t) => k(tt)(String(e.id ?? ""))
1464
1464
  }, {
1465
- default: k(() => [...t[3] ||= [S(" 刷新 ", -1)]]),
1465
+ default: A(() => [...t[3] ||= [C(" 刷新 ", -1)]]),
1466
1466
  _: 1
1467
1467
  }, 8, ["disabled", "onClick"])]),
1468
- default: k(() => [O($e)(String(e.id ?? "")).records.length === 0 ? (T(), b("p", Ze, "暂无任职信息")) : (T(), b("div", Qe, [t[4] ||= x("header", { class: "employee-row-employment-table-header" }, [
1469
- x("span", null, "岗位"),
1470
- x("span", null, "机构"),
1471
- x("span", null, "部门"),
1472
- x("span", null, "主岗位")
1473
- ], -1), (T(!0), b(Ae, null, Pe(O($e)(String(e.id ?? "")).records, (e) => (T(), b("article", {
1468
+ default: A(() => [k($e)(String(e.id ?? "")).records.length === 0 ? (E(), x("p", Ze, "暂无任职信息")) : (E(), x("div", Qe, [t[4] ||= S("header", { class: "employee-row-employment-table-header" }, [
1469
+ S("span", null, "岗位"),
1470
+ S("span", null, "机构"),
1471
+ S("span", null, "部门"),
1472
+ S("span", null, "主岗位")
1473
+ ], -1), (E(!0), x(ke, null, Ne(k($e)(String(e.id ?? "")).records, (e) => (E(), x("article", {
1474
1474
  key: e.id,
1475
- class: je({ "is-disabled": e.enabled === !1 })
1475
+ class: Ae({ "is-disabled": e.enabled === !1 })
1476
1476
  }, [
1477
- x("strong", null, D(e.positionTitle ?? e.positionId), 1),
1478
- x("span", null, D(e.organizationTitle ?? e.organizationId), 1),
1479
- x("span", null, D(e.departmentTitle ?? e.departmentId), 1),
1480
- x("span", null, D(e.primaryPosition ? "是" : "否"), 1)
1477
+ S("strong", null, O(e.positionTitle ?? e.positionId), 1),
1478
+ S("span", null, O(e.organizationTitle ?? e.organizationId), 1),
1479
+ S("span", null, O(e.departmentTitle ?? e.departmentId), 1),
1480
+ S("span", null, O(e.primaryPosition ? "是" : "否"), 1)
1481
1481
  ], 2))), 128))]))]),
1482
1482
  _: 2
1483
1483
  }, 1032, ["loading", "error"])]),
@@ -1493,66 +1493,66 @@ var Ze = { key: 0 }, Qe = {
1493
1493
  "external-query-values",
1494
1494
  "onRowExpand"
1495
1495
  ]),
1496
- xe.value ? (T(), v(O(ee), {
1496
+ be.value ? (E(), y(k(i), {
1497
1497
  key: 0,
1498
- open: M.value,
1498
+ open: N.value,
1499
1499
  title: ct.value,
1500
1500
  subtitle: lt.value,
1501
- "close-on-outside": N.value === "view",
1502
- promotion: O(vt),
1501
+ "close-on-outside": P.value === "view",
1502
+ promotion: k(vt),
1503
1503
  onClose: Wt
1504
1504
  }, {
1505
- status: k(() => [N.value === "view" && j.value ? (T(), v(O(ie), {
1505
+ status: A(() => [P.value === "view" && M.value ? (E(), y(k(u), {
1506
1506
  key: 0,
1507
- enabled: j.value.enabled !== !1,
1508
- disabled: I.value || !pt.value,
1509
- loading: I.value,
1507
+ enabled: M.value.enabled !== !1,
1508
+ disabled: L.value || !pt.value,
1509
+ loading: L.value,
1510
1510
  "show-label": !1,
1511
1511
  onChange: Xt
1512
1512
  }, null, 8, [
1513
1513
  "enabled",
1514
1514
  "disabled",
1515
1515
  "loading"
1516
- ])) : y("v-if", !0)]),
1517
- operation: k(() => [C(O(te), {
1516
+ ])) : b("v-if", !0)]),
1517
+ operation: A(() => [w(k(o), {
1518
1518
  context: it.value,
1519
1519
  actions: gt.value,
1520
1520
  onAction: Kt
1521
1521
  }, null, 8, ["context", "actions"])]),
1522
- default: k(() => [C(Ke, {
1523
- mode: N.value,
1524
- draft: R.value,
1525
- "selected-employee": j.value,
1526
- "selected-organization": w.value,
1527
- "detail-department": z.value,
1528
- loading: P.value,
1529
- "load-failed": F.value,
1522
+ default: A(() => [w(Ke, {
1523
+ mode: P.value,
1524
+ draft: z.value,
1525
+ "selected-employee": M.value,
1526
+ "selected-organization": T.value,
1527
+ "detail-department": B.value,
1528
+ loading: F.value,
1529
+ "load-failed": I.value,
1530
1530
  "form-disabled": ut.value,
1531
1531
  "show-content": dt.value,
1532
- fields: ye.value,
1532
+ fields: m.value,
1533
1533
  fallback: En,
1534
1534
  "picker-configs": ot.value,
1535
1535
  "display-of": Ot,
1536
1536
  "visible-of": Tt,
1537
1537
  "label-of": Ct,
1538
1538
  "required-of": wt,
1539
- "externally-changed": O(J).externallyChanged.value,
1540
- account: B.value,
1541
- "account-user": V.value,
1542
- "loading-accounts": H.value,
1543
- "accounts-load-failed": W.value,
1544
- "saving-account": U.value,
1539
+ "externally-changed": k(J).externallyChanged.value,
1540
+ account: V.value,
1541
+ "account-user": H.value,
1542
+ "loading-accounts": U.value,
1543
+ "accounts-load-failed": G.value,
1544
+ "saving-account": W.value,
1545
1545
  "can-manage-accounts": mt.value,
1546
- "show-account-provision-form": G.value,
1547
- "account-provision-draft": K.value,
1546
+ "show-account-provision-form": K.value,
1547
+ "account-provision-draft": q.value,
1548
1548
  "account-user-title": gn(),
1549
1549
  "account-user-description": _n(),
1550
1550
  "account-status-title": vn(),
1551
- "option-context": O(d),
1551
+ "option-context": k(p),
1552
1552
  onRetry: qt,
1553
1553
  onSave: Yt,
1554
1554
  onReloadExternal: Jt,
1555
- onDismissExternal: O(J).clearExternalChanged,
1555
+ onDismissExternal: k(J).clearExternalChanged,
1556
1556
  onUpdateField: Et,
1557
1557
  onRetryAccounts: t[1] ||= (e) => cn(),
1558
1558
  onStartAccountProvision: bn,
@@ -1594,76 +1594,76 @@ var Ze = { key: 0 }, Qe = {
1594
1594
  "subtitle",
1595
1595
  "close-on-outside",
1596
1596
  "promotion"
1597
- ])) : y("v-if", !0),
1598
- C(He, {
1599
- open: Ue.value,
1600
- employee: We.value,
1597
+ ])) : b("v-if", !0),
1598
+ w(Ve, {
1599
+ open: He.value,
1600
+ employee: Ue.value,
1601
1601
  onClose: Bt,
1602
1602
  onSaved: Vt
1603
1603
  }, null, 8, ["open", "employee"])
1604
1604
  ]),
1605
1605
  _: 1
1606
- })) : (T(), v(O(i), {
1606
+ })) : (E(), y(k(re), {
1607
1607
  key: 1,
1608
1608
  title: ct.value,
1609
1609
  subtitle: lt.value
1610
1610
  }, {
1611
- status: k(() => [N.value === "view" && j.value ? (T(), v(O(ie), {
1611
+ status: A(() => [P.value === "view" && M.value ? (E(), y(k(u), {
1612
1612
  key: 0,
1613
- enabled: j.value.enabled !== !1,
1614
- disabled: I.value || !pt.value,
1615
- loading: I.value,
1613
+ enabled: M.value.enabled !== !1,
1614
+ disabled: L.value || !pt.value,
1615
+ loading: L.value,
1616
1616
  "show-label": !1,
1617
1617
  onChange: Xt
1618
1618
  }, null, 8, [
1619
1619
  "enabled",
1620
1620
  "disabled",
1621
1621
  "loading"
1622
- ])) : y("v-if", !0)]),
1623
- operation: k(() => [C(O(te), {
1624
- context: O(d),
1622
+ ])) : b("v-if", !0)]),
1623
+ operation: A(() => [w(k(o), {
1624
+ context: k(p),
1625
1625
  actions: _t.value,
1626
- "record-id": j.value?.id,
1626
+ "record-id": M.value?.id,
1627
1627
  onAction: Kt
1628
1628
  }, null, 8, [
1629
1629
  "context",
1630
1630
  "actions",
1631
1631
  "record-id"
1632
1632
  ])]),
1633
- default: k(() => [C(Ke, {
1634
- mode: N.value,
1635
- draft: R.value,
1636
- "selected-employee": j.value,
1637
- "selected-organization": w.value,
1638
- "detail-department": z.value,
1639
- loading: P.value,
1640
- "load-failed": F.value,
1633
+ default: A(() => [w(Ke, {
1634
+ mode: P.value,
1635
+ draft: z.value,
1636
+ "selected-employee": M.value,
1637
+ "selected-organization": T.value,
1638
+ "detail-department": B.value,
1639
+ loading: F.value,
1640
+ "load-failed": I.value,
1641
1641
  "form-disabled": ut.value,
1642
1642
  "show-content": dt.value,
1643
- fields: ye.value,
1643
+ fields: m.value,
1644
1644
  fallback: En,
1645
1645
  "picker-configs": ot.value,
1646
1646
  "display-of": Ot,
1647
1647
  "visible-of": Tt,
1648
1648
  "label-of": Ct,
1649
1649
  "required-of": wt,
1650
- "externally-changed": O(J).externallyChanged.value,
1651
- account: B.value,
1652
- "account-user": V.value,
1653
- "loading-accounts": H.value,
1654
- "accounts-load-failed": W.value,
1655
- "saving-account": U.value,
1650
+ "externally-changed": k(J).externallyChanged.value,
1651
+ account: V.value,
1652
+ "account-user": H.value,
1653
+ "loading-accounts": U.value,
1654
+ "accounts-load-failed": G.value,
1655
+ "saving-account": W.value,
1656
1656
  "can-manage-accounts": mt.value,
1657
- "show-account-provision-form": G.value,
1658
- "account-provision-draft": K.value,
1657
+ "show-account-provision-form": K.value,
1658
+ "account-provision-draft": q.value,
1659
1659
  "account-user-title": gn(),
1660
1660
  "account-user-description": _n(),
1661
1661
  "account-status-title": vn(),
1662
- "option-context": O(d),
1662
+ "option-context": k(p),
1663
1663
  onRetry: qt,
1664
1664
  onSave: Yt,
1665
1665
  onReloadExternal: Jt,
1666
- onDismissExternal: O(J).clearExternalChanged,
1666
+ onDismissExternal: k(J).clearExternalChanged,
1667
1667
  onUpdateField: Et,
1668
1668
  onRetryAccounts: t[2] ||= (e) => cn(),
1669
1669
  onStartAccountProvision: bn,