@ximatai/muyun-web-app 0.26.3 → 0.26.4

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 (137) hide show
  1. package/dist/{EmployeeDetailWorkspaceView-mtdcsqgF.js → EmployeeDetailWorkspaceView-BySbWjCV.js} +1 -1
  2. package/dist/{EmployeeManagementView-CKKvQZaC.js → EmployeeManagementView-DvmDPxzN.js} +205 -205
  3. package/dist/{MetadataOrchestrationView-CprWBocy.js → MetadataOrchestrationView-2JxJkFEC.js} +194 -194
  4. package/dist/{ModuleActionManagementView-DNuAQUPE.js → ModuleActionManagementView-DRtYMXOK.js} +122 -122
  5. package/dist/{RoleAuthorizationView-CQtSAJoJ.js → RoleAuthorizationView-CK6Vfdup.js} +52 -52
  6. package/dist/{RoleDetailWorkspaceView-Dh8DXpyS.js → RoleDetailWorkspaceView-BPZcZy-r.js} +1 -1
  7. package/dist/{RoleManagementView-BrqaFV7y.js → RoleManagementView-B7TzzVOm.js} +204 -204
  8. package/dist/{SystemUserDetailWorkspaceView-N-kvycAu.js → SystemUserDetailWorkspaceView-BtEDyU-k.js} +1 -1
  9. package/dist/SystemUserManagementView-TKqj92zG.js +761 -0
  10. package/dist/{UserDetailWorkspaceView-Iek6xwix.js → UserDetailWorkspaceView-B6fGrnQ7.js} +1 -1
  11. package/dist/UserManagementView-4IJeDSQS.js +965 -0
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +1054 -1054
  14. package/dist/{pageRealtime-sRtDYlQP.js → pageRealtime-CJriNmzP.js} +12 -12
  15. package/dist/{platform-components-bC1gwhic.js → platform-components-CgMBopmF.js} +1107 -1377
  16. package/dist/types/app/LoginView.vue.d.ts +2 -2
  17. package/dist/types/app/appWorkbenchStartup.d.ts +1 -1
  18. package/dist/types/app/platformMessage.d.ts +1 -1
  19. package/dist/types/app/query.d.ts +1 -1
  20. package/dist/types/app/workbenchStartup.d.ts +3 -3
  21. package/dist/types/consumer/PlatformAdminOutlet.vue.d.ts +1 -1
  22. package/dist/types/dynamic-page-runtime/DynamicModuleHost.vue.d.ts +1 -1
  23. package/dist/types/dynamic-page-runtime/DynamicModulePage.vue.d.ts +1 -1
  24. package/dist/types/dynamic-page-runtime/actionReactions.d.ts +1 -1
  25. package/dist/types/dynamic-page-runtime/mockDescriptor.d.ts +1 -1
  26. package/dist/types/main.d.ts +1 -1
  27. package/dist/types/platform-admin-runtime/PlatformAdminOutlet.vue.d.ts +1 -1
  28. package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +1 -1
  29. package/dist/types/platform-admin-runtime/WorkspaceViewOutlet.vue.d.ts +1 -1
  30. package/dist/types/platform-admin-runtime/backendHttp.d.ts +1 -1
  31. package/dist/types/platform-admin-runtime/currentUserContext.d.ts +1 -1
  32. package/dist/types/platform-admin-runtime/moduleOpenApi.d.ts +2 -2
  33. package/dist/types/platform-admin-runtime/pageRealtime.d.ts +1 -1
  34. package/dist/types/platform-admin-runtime/platformAdminRoutes.d.ts +1 -1
  35. package/dist/types/platform-admin-runtime/realtime.d.ts +4 -4
  36. package/dist/types/platform-admin-runtime/sessionRecovery.d.ts +1 -1
  37. package/dist/types/platform-admin-runtime/useWorkspaceViewPromotion.d.ts +1 -1
  38. package/dist/types/platform-admin-runtime/workspaceViewContract.d.ts +1 -1
  39. package/dist/types/platform-admin-runtime/workspaceViews.d.ts +1 -1
  40. package/dist/types/platform-components/ApplicationScopeSwitcher.vue.d.ts +1 -1
  41. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +2 -2
  42. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +2 -2
  43. package/dist/types/platform-components/RecordActionBar.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -1
  45. package/dist/types/platform-components/RecordFormFields.vue.d.ts +1 -1
  46. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +1 -1
  47. package/dist/types/platform-components/RecordMetaSection.vue.d.ts +1 -1
  48. package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +1 -1
  49. package/dist/types/platform-components/RecordPicker.vue.d.ts +1 -1
  50. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  51. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +2 -2
  52. package/dist/types/platform-components/UserSessionExpandedSubtable.vue.d.ts +1 -1
  53. package/dist/types/platform-components/actionConfirmation.d.ts +1 -1
  54. package/dist/types/platform-components/index.d.ts +1 -0
  55. package/dist/types/platform-components/optionFieldOptions.d.ts +1 -1
  56. package/dist/types/platform-components/pageLayoutContext.d.ts +1 -1
  57. package/dist/types/platform-components/platformActionResultReactions.d.ts +1 -1
  58. package/dist/types/platform-components/platformErrorFeedback.d.ts +1 -1
  59. package/dist/types/platform-components/recordActionBarModel.d.ts +2 -2
  60. package/dist/types/platform-components/recordEditorSessionState.d.ts +1 -1
  61. package/dist/types/platform-components/recordExplorerItemModel.d.ts +1 -1
  62. package/dist/types/platform-components/recordFormFieldModel.d.ts +2 -2
  63. package/dist/types/platform-components/recycleBinState.d.ts +2 -2
  64. package/dist/types/platform-components/scopedResourceTreeModuleContext.d.ts +1 -1
  65. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +1 -1
  66. package/dist/types/platform-components/softDeletedConflictHandler.d.ts +1 -1
  67. package/dist/types/platform-components/staticCrudManagementState.d.ts +2 -2
  68. package/dist/types/platform-components/staticFormActionFlow.d.ts +1 -1
  69. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +1 -1
  70. package/dist/types/platform-components/treeRecordModel.d.ts +1 -1
  71. package/dist/types/platform-components/useRecycleBinExplorerMode.d.ts +1 -1
  72. package/dist/types/platform-components/userSessionPresentation.d.ts +1 -1
  73. package/dist/types/platform-workbench/Workbench.vue.d.ts +1 -1
  74. package/dist/types/platform-workbench/WorkbenchMenu.vue.d.ts +1 -1
  75. package/dist/types/platform-workbench/WorkbenchMenuTree.vue.d.ts +1 -1
  76. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +1 -1
  77. package/dist/types/platform-workbench/hosts/BusinessRouteHost.vue.d.ts +1 -1
  78. package/dist/types/platform-workbench/hosts/ExternalPageHost.vue.d.ts +1 -1
  79. package/dist/types/platform-workbench/hosts/PlatformRouteHost.vue.d.ts +1 -1
  80. package/dist/types/platform-workbench/menuNavigation.d.ts +1 -1
  81. package/dist/types/platform-workbench/menuTreeModel.d.ts +1 -1
  82. package/dist/types/platform-workbench/pageHostRegistry.d.ts +1 -1
  83. package/dist/types/platform-workbench/workbenchNavigation.d.ts +1 -1
  84. package/dist/types/views/EmployeeDetailContent.vue.d.ts +3 -3
  85. package/dist/types/views/EmployeeEmploymentDrawer.vue.d.ts +1 -1
  86. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +1 -1
  87. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +2 -2
  88. package/dist/types/views/RoleDetailWorkspaceView.vue.d.ts +1 -1
  89. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +2 -2
  90. package/dist/types/views/RoleGroupMemberSelector.vue.d.ts +1 -1
  91. package/dist/types/views/RoleManagementView.vue.d.ts +1 -1
  92. package/dist/types/views/UserDetailContent.vue.d.ts +2 -2
  93. package/dist/types/views/applicationManagementState.d.ts +3 -3
  94. package/dist/types/views/departmentManagementState.d.ts +3 -3
  95. package/dist/types/views/dictionaryManagementState.d.ts +4 -4
  96. package/dist/types/views/employeeDetailWorkspaceSession.d.ts +1 -1
  97. package/dist/types/views/fieldSpecManagementState.d.ts +3 -3
  98. package/dist/types/views/fieldUiControlManagementState.d.ts +3 -3
  99. package/dist/types/views/menuManagementState.d.ts +7 -7
  100. package/dist/types/views/metadataOrchestrationState.d.ts +1 -1
  101. package/dist/types/views/moduleManagementState.d.ts +5 -5
  102. package/dist/types/views/organizationManagementState.d.ts +4 -4
  103. package/dist/types/views/positionManagementState.d.ts +4 -4
  104. package/dist/types/views/roleAuthorizationWorkspaceSession.d.ts +1 -1
  105. package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -1
  106. package/dist/types/views/roleDetailWorkspaceView.d.ts +1 -1
  107. package/dist/types/views/roleGrantClient.d.ts +2 -2
  108. package/dist/types/views/systemUserDetailWorkspaceSession.d.ts +1 -1
  109. package/dist/types/views/tenantManagementState.d.ts +3 -3
  110. package/dist/types/views/useEmployeeEmploymentRows.d.ts +2 -2
  111. package/dist/types/views/useUserSessionRows.d.ts +3 -3
  112. package/dist/types/views/userDetailWorkspaceSession.d.ts +1 -1
  113. package/dist/types/vue-ui-antdv/components/ActionBar.vue.d.ts +1 -1
  114. package/dist/types/vue-ui-antdv/components/DictionarySelect.vue.d.ts +1 -1
  115. package/dist/types/vue-ui-antdv/components/ReferenceSelect.vue.d.ts +1 -1
  116. package/dist/types/vue-ui-antdv/components/UiForm.vue.d.ts +1 -1
  117. package/dist/types/vue-ui-antdv/components/UiInput.vue.d.ts +1 -1
  118. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +1 -1
  119. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -1
  120. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  121. package/dist/types/vue-ui-antdv/dictionaries.d.ts +1 -1
  122. package/dist/types/vue-ui-antdv/references.d.ts +1 -1
  123. package/dist/types/vue-ui-antdv/registry.d.ts +1 -1
  124. package/dist/types/web-core/actionResult.d.ts +1 -2
  125. package/dist/types/web-core/clients.d.ts +1 -1
  126. package/dist/types/web-core/dataChanges.d.ts +1 -1
  127. package/dist/types/web-core/errors.d.ts +1 -1
  128. package/dist/types/web-core/http.d.ts +1 -1
  129. package/dist/types/web-core/mock.d.ts +1 -1
  130. package/dist/types/web-core/module/runtimeContext.d.ts +1 -1
  131. package/dist/types/web-core/module/staticModuleClient.d.ts +1 -1
  132. package/dist/types/web-core/realtime.d.ts +1 -1
  133. package/dist/{useUserSessionRows-CLM0ZvAF.js → useUserSessionRows-DHsyr2Vy.js} +2 -2
  134. package/dist/{workspaceViewSessions-WsJU3OS7.js → workspaceViewSessions-BMbyO9O4.js} +403 -410
  135. package/package.json +1 -1
  136. package/dist/SystemUserManagementView-BVS5moV5.js +0 -761
  137. package/dist/UserManagementView-BR_Jz8O-.js +0 -965
@@ -1,6 +1,6 @@
1
- import { $ as e, Bt as t, C as n, Dt as r, Et as i, G as a, It as o, K as s, Kn as ee, L as te, Lt as ne, M as c, Pt as re, R as ie, S as ae, Vt as oe, W as se, X as ce, Yt as l, Z as u, _t as le, a as d, cn as f, cr as p, d as ue, en as m, et as de, f as fe, i as pe, it as me, m as he, rt as ge, tn as h, tt as g, u as _e, v as ve, w as ye, y as be } from "./platform-components-bC1gwhic.js";
2
- import { g as xe, i as Se, n as Ce, p as we, r as Te, t as _ } from "./workspaceViewSessions-WsJU3OS7.js";
3
- import { a as Ee, i as De, r as Oe } from "./pageRealtime-sRtDYlQP.js";
1
+ import { $ as e, $t as t, Bt as n, C as r, Dt as i, Et as a, G as o, It as s, Jt as c, K as l, L as ee, Lt as te, M as u, Pt as ne, Qt as d, R as re, S as f, Vt as ie, W as ae, Wn as oe, X as p, Z as se, _t as ce, a as m, d as le, et as ue, f as de, i as fe, it as pe, m as me, on as h, or as he, rt as ge, tt as g, u as _e, v as ve, w as ye, y as be } from "./platform-components-CgMBopmF.js";
2
+ import { g as xe, i as Se, n as Ce, p as we, r as Te, t as _ } from "./workspaceViewSessions-BMbyO9O4.js";
3
+ import { a as Ee, i as De, r as Oe } from "./pageRealtime-CJriNmzP.js";
4
4
  import { Fragment as ke, computed as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, defineComponent as T, normalizeClass as Ae, onBeforeUnmount as je, onMounted as Me, openBlock as E, ref as D, renderList as Ne, toDisplayString as O, unref as k, watch as Pe, withCtx as A, withModifiers as j } from "vue";
5
5
  //#region src/views/employeeDetailStateModel.ts
6
6
  function Fe(e) {
@@ -33,7 +33,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
33
33
  }, B = {
34
34
  key: 3,
35
35
  class: "employment-empty"
36
- }, Ve = /*#__PURE__*/ h(/* @__PURE__ */ T({
36
+ }, Ve = /*#__PURE__*/ t(/* @__PURE__ */ T({
37
37
  name: "EmployeeEmploymentDrawer",
38
38
  __name: "EmployeeEmploymentDrawer",
39
39
  props: {
@@ -41,8 +41,8 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
41
41
  employee: {}
42
42
  },
43
43
  emits: ["close", "saved"],
44
- setup(e, { emit: n }) {
45
- let a = e, s = n, ee = f({ moduleAlias: "iam.employee" }), te = f({ moduleAlias: "iam.organization" }), ie = f({ moduleAlias: "iam.department" }), ae = f({ moduleAlias: "iam.position" }), se = D([]), ce = D(!1), l = D(!1), u = D(!1), d = D(!1), p = D(ge()), ue = [
44
+ setup(e, { emit: t }) {
45
+ let r = e, o = t, c = h({ moduleAlias: "iam.employee" }), l = h({ moduleAlias: "iam.organization" }), ee = h({ moduleAlias: "iam.department" }), re = h({ moduleAlias: "iam.position" }), f = D([]), ae = D(!1), oe = D(!1), p = D(!1), se = D(!1), m = D(he()), le = [
46
46
  {
47
47
  key: "position",
48
48
  title: "岗位",
@@ -63,84 +63,84 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
63
63
  title: "主岗位",
64
64
  width: 80
65
65
  }
66
- ], fe = v(() => `任职管理 - ${h(a.employee)}`), pe = v(() => se.value), me = v(() => _e(ie, {
66
+ ], de = v(() => `任职管理 - ${ge(r.employee)}`), fe = v(() => f.value), pe = v(() => _e(ee, {
67
67
  scopeFieldName: "organizationId",
68
- scopeValue: p.value.organizationId,
68
+ scopeValue: m.value.organizationId,
69
69
  treePath: "/iam.department/tree",
70
70
  sortPath: "/iam.department/sort"
71
- })), he = v(() => {
72
- let e = a.employee;
73
- return !!(e?.organizationId && e?.departmentId && e.organizationId === p.value.organizationId && e.departmentId === p.value.departmentId);
71
+ })), me = v(() => {
72
+ let e = r.employee;
73
+ return !!(e?.organizationId && e?.departmentId && e.organizationId === m.value.organizationId && e.departmentId === m.value.departmentId);
74
74
  });
75
- Pe(() => [a.open, a.employee?.id], ([e]) => {
75
+ Pe(() => [r.open, r.employee?.id], ([e]) => {
76
76
  e ? g() : ve();
77
77
  }, { immediate: !0 });
78
- function ge() {
78
+ function he() {
79
79
  return {
80
80
  primaryPosition: !1,
81
81
  enabled: !0
82
82
  };
83
83
  }
84
- function h(e) {
84
+ function ge(e) {
85
85
  return String(e?.title ?? e?.employeeNo ?? e?.id ?? "职员");
86
86
  }
87
87
  async function g() {
88
- let e = a.employee?.id;
88
+ let e = r.employee?.id;
89
89
  if (e) {
90
- ce.value = !0, l.value = !1;
90
+ ae.value = !0, oe.value = !1;
91
91
  try {
92
- se.value = (await ee.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/employment-view` })).records;
92
+ f.value = (await c.http.request({ path: `/iam.employee/${encodeURIComponent(e)}/employment-view` })).records;
93
93
  } catch (e) {
94
- l.value = !0, i(e, {
94
+ oe.value = !0, a(e, {
95
95
  source: "employee-employment",
96
96
  phase: "load"
97
97
  });
98
98
  } finally {
99
- ce.value = !1;
99
+ ae.value = !1;
100
100
  }
101
101
  }
102
102
  }
103
103
  function ve() {
104
- d.value = !1, p.value = ge();
104
+ se.value = !1, m.value = he();
105
105
  }
106
106
  function be() {
107
- p.value = {
108
- organizationId: a.employee?.organizationId,
109
- departmentId: a.employee?.departmentId,
107
+ m.value = {
108
+ organizationId: r.employee?.organizationId,
109
+ departmentId: r.employee?.departmentId,
110
110
  primaryPosition: !1,
111
111
  enabled: !0
112
- }, d.value = !0;
112
+ }, se.value = !0;
113
113
  }
114
114
  function xe(e) {
115
- p.value = { ...e }, d.value = !0;
115
+ m.value = { ...e }, se.value = !0;
116
116
  }
117
117
  function Se(e) {
118
- let t = e !== p.value.organizationId;
119
- p.value = {
120
- ...p.value,
118
+ let t = e !== m.value.organizationId;
119
+ m.value = {
120
+ ...m.value,
121
121
  organizationId: e,
122
- departmentId: t ? void 0 : p.value.departmentId,
123
- primaryPosition: t ? !1 : p.value.primaryPosition
122
+ departmentId: t ? void 0 : m.value.departmentId,
123
+ primaryPosition: t ? !1 : m.value.primaryPosition
124
124
  };
125
125
  }
126
126
  function Ce(e) {
127
- let t = !!(p.value.primaryPosition && a.employee?.organizationId === p.value.organizationId && a.employee?.departmentId === e);
128
- p.value = {
129
- ...p.value,
127
+ let t = !!(m.value.primaryPosition && r.employee?.organizationId === m.value.organizationId && r.employee?.departmentId === e);
128
+ m.value = {
129
+ ...m.value,
130
130
  departmentId: e,
131
131
  primaryPosition: t
132
132
  };
133
133
  }
134
134
  function we(e) {
135
- if (e && !he.value) {
136
- r("主岗必须与职员主机构、主部门一致", {
135
+ if (e && !me.value) {
136
+ i("主岗必须与职员主机构、主部门一致", {
137
137
  source: "employee-employment",
138
138
  phase: "validation"
139
139
  });
140
140
  return;
141
141
  }
142
- p.value = {
143
- ...p.value,
142
+ m.value = {
143
+ ...m.value,
144
144
  primaryPosition: e
145
145
  };
146
146
  }
@@ -172,25 +172,25 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
172
172
  (t === "primary" || t === "enable" || t === "disable" || t === "delete") && ke(e, t);
173
173
  }
174
174
  async function Oe() {
175
- let e = a.employee?.id;
176
- if (!e || !p.value.organizationId || !p.value.departmentId || !p.value.positionId) {
177
- r("请选择机构、部门和岗位", {
175
+ let e = r.employee?.id;
176
+ if (!e || !m.value.organizationId || !m.value.departmentId || !m.value.positionId) {
177
+ i("请选择机构、部门和岗位", {
178
178
  source: "employee-employment",
179
179
  phase: "validation"
180
180
  });
181
181
  return;
182
182
  }
183
- u.value = !0;
183
+ p.value = !0;
184
184
  try {
185
- let t = p.value.id;
186
- await ee.http.request({
185
+ let t = m.value.id;
186
+ await c.http.request({
187
187
  method: "POST",
188
188
  path: t ? `/iam.employee/${encodeURIComponent(e)}/positions/${encodeURIComponent(t)}/update` : `/iam.employee/${encodeURIComponent(e)}/positions`,
189
189
  body: {
190
- ...p.value,
190
+ ...m.value,
191
191
  employeeId: e
192
192
  }
193
- }), ve(), await g(), s("saved", e), await le({
193
+ }), ve(), await g(), o("saved", e), await ce({
194
194
  success: !0,
195
195
  message: "任职已保存"
196
196
  }, {
@@ -198,73 +198,73 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
198
198
  phase: "action"
199
199
  });
200
200
  } catch (e) {
201
- i(e, {
201
+ a(e, {
202
202
  source: "employee-employment",
203
203
  phase: "action"
204
204
  });
205
205
  } finally {
206
- u.value = !1;
206
+ p.value = !1;
207
207
  }
208
208
  }
209
209
  async function ke(e, t) {
210
- let n = a.employee?.id;
211
- if (n && !(t === "delete" && !await re({
210
+ let n = r.employee?.id;
211
+ if (n && !(t === "delete" && !await ne({
212
212
  title: "删除任职",
213
213
  content: "确认删除该任职?",
214
214
  okText: "删除",
215
215
  danger: !0
216
216
  }))) {
217
- u.value = !0;
217
+ p.value = !0;
218
218
  try {
219
- await ee.http.request({
219
+ await c.http.request({
220
220
  method: "POST",
221
221
  path: `/iam.employee/${encodeURIComponent(n)}/positions/${encodeURIComponent(e.id)}/${t}`
222
- }), await g(), s("saved", n);
222
+ }), await g(), o("saved", n);
223
223
  } catch (e) {
224
- i(e, {
224
+ a(e, {
225
225
  source: "employee-employment",
226
226
  phase: "action"
227
227
  });
228
228
  } finally {
229
- u.value = !1;
229
+ p.value = !1;
230
230
  }
231
231
  }
232
232
  }
233
- return (n, r) => (E(), y(k(de), {
233
+ return (t, r) => (E(), y(k(ue), {
234
234
  open: e.open,
235
- title: fe.value,
236
- onClose: r[4] ||= (e) => s("close")
235
+ title: de.value,
236
+ onClose: r[4] ||= (e) => o("close")
237
237
  }, {
238
- operation: A(() => [w(k(m), {
238
+ operation: A(() => [w(k(d), {
239
239
  type: "text",
240
240
  "icon-name": "reload",
241
- disabled: ce.value || u.value,
241
+ disabled: ae.value || p.value,
242
242
  onClick: g
243
243
  }, {
244
244
  default: A(() => [...r[5] ||= [C(" 刷新 ", -1)]]),
245
245
  _: 1
246
246
  }, 8, ["disabled"])]),
247
247
  default: A(() => [S("div", N, [
248
- S("div", P, [r[7] ||= S("div", null, [S("strong", null, "任职信息"), S("span", null, "角色授权按具体任职生效")], -1), w(k(m), {
248
+ S("div", P, [r[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: u.value,
251
+ disabled: p.value,
252
252
  onClick: be
253
253
  }, {
254
254
  default: A(() => [...r[6] ||= [C("新增任职", -1)]]),
255
255
  _: 1
256
256
  }, 8, ["disabled"])]),
257
- d.value ? (E(), x("form", {
257
+ se.value ? (E(), x("form", {
258
258
  key: 0,
259
259
  class: "employment-editor",
260
260
  onSubmit: j(Oe, ["prevent"])
261
261
  }, [
262
262
  S("label", null, [r[8] ||= S("span", null, "机构", -1), w(k(ye), {
263
- value: p.value.organizationId,
264
- context: k(te),
263
+ value: m.value.organizationId,
264
+ context: k(l),
265
265
  placeholder: "请选择机构",
266
- constraints: [k(c)()],
267
- disabled: u.value,
266
+ constraints: [k(u)()],
267
+ disabled: p.value,
268
268
  "onUpdate:value": Se
269
269
  }, null, 8, [
270
270
  "value",
@@ -273,11 +273,11 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
273
273
  "disabled"
274
274
  ])]),
275
275
  S("label", null, [r[9] ||= S("span", null, "部门", -1), w(k(ye), {
276
- value: p.value.departmentId,
277
- context: me.value,
276
+ value: m.value.departmentId,
277
+ context: pe.value,
278
278
  placeholder: "请选择部门",
279
- constraints: [k(c)()],
280
- disabled: u.value || !p.value.organizationId,
279
+ constraints: [k(u)()],
280
+ disabled: p.value || !m.value.organizationId,
281
281
  "onUpdate:value": Ce
282
282
  }, null, 8, [
283
283
  "value",
@@ -286,13 +286,13 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
286
286
  "disabled"
287
287
  ])]),
288
288
  S("label", null, [r[10] ||= S("span", null, "岗位", -1), w(k(ye), {
289
- value: p.value.positionId,
290
- context: k(ae),
289
+ value: m.value.positionId,
290
+ context: k(re),
291
291
  mode: "list",
292
292
  placeholder: "请选择岗位",
293
- constraints: [k(c)()],
294
- disabled: u.value,
295
- "onUpdate:value": r[0] ||= (e) => p.value.positionId = e ? String(e) : void 0
293
+ constraints: [k(u)()],
294
+ disabled: p.value,
295
+ "onUpdate:value": r[0] ||= (e) => m.value.positionId = e ? String(e) : void 0
296
296
  }, null, 8, [
297
297
  "value",
298
298
  "context",
@@ -303,46 +303,46 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
303
303
  r[12] ||= S("span", null, "主岗位", -1),
304
304
  S("span", null, [S("input", {
305
305
  type: "checkbox",
306
- checked: p.value.primaryPosition === !0,
307
- disabled: u.value || !he.value,
306
+ checked: m.value.primaryPosition === !0,
307
+ disabled: p.value || !me.value,
308
308
  onChange: r[1] ||= (e) => we(e.target.checked)
309
309
  }, null, 40, I), r[11] ||= C(" 设为主岗 ", -1)]),
310
- he.value ? b("v-if", !0) : (E(), x("small", L, "主岗必须与职员主机构、主部门一致"))
310
+ me.value ? b("v-if", !0) : (E(), x("small", L, "主岗必须与职员主机构、主部门一致"))
311
311
  ]),
312
- S("div", R, [w(k(m), {
313
- disabled: u.value,
312
+ S("div", R, [w(k(d), {
313
+ disabled: p.value,
314
314
  onClick: ve
315
315
  }, {
316
316
  default: A(() => [...r[13] ||= [C("取消", -1)]]),
317
317
  _: 1
318
- }, 8, ["disabled"]), w(k(m), {
318
+ }, 8, ["disabled"]), w(k(d), {
319
319
  type: "primary",
320
320
  "html-type": "submit",
321
- loading: u.value
321
+ loading: p.value
322
322
  }, {
323
323
  default: A(() => [...r[14] ||= [C("保存任职", -1)]]),
324
324
  _: 1
325
325
  }, 8, ["loading"])])
326
326
  ], 32)) : b("v-if", !0),
327
- ce.value ? (E(), y(k(ne), {
327
+ ae.value ? (E(), y(k(te), {
328
328
  key: 1,
329
329
  class: "employment-state",
330
330
  tip: "加载任职"
331
- })) : l.value ? (E(), x("div", z, [w(k(o), {
331
+ })) : oe.value ? (E(), x("div", z, [w(k(s), {
332
332
  title: "任职信息加载失败",
333
333
  message: "无法加载任职信息,请重试"
334
- }), w(k(m), {
334
+ }), w(k(d), {
335
335
  type: "primary",
336
336
  "icon-name": "reload",
337
337
  onClick: g
338
338
  }, {
339
339
  default: A(() => [...r[15] ||= [C("重试", -1)]]),
340
340
  _: 1
341
- })])) : se.value.length === 0 ? (E(), x("p", B, "暂无任职信息")) : (E(), y(k(oe), {
341
+ })])) : f.value.length === 0 ? (E(), x("p", B, "暂无任职信息")) : (E(), y(k(ie), {
342
342
  key: 4,
343
343
  class: "employment-table",
344
- columns: ue,
345
- rows: pe.value,
344
+ columns: le,
345
+ rows: fe.value,
346
346
  "row-key": "id",
347
347
  pagination: !1,
348
348
  "horizontal-scroll": "",
@@ -355,24 +355,24 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
355
355
  class: "employment-table-row-actions",
356
356
  onClick: r[2] ||= j(() => {}, ["stop"]),
357
357
  onDblclick: r[3] ||= j(() => {}, ["stop"])
358
- }, [w(k(m), {
358
+ }, [w(k(d), {
359
359
  type: "text",
360
- disabled: u.value,
360
+ disabled: p.value,
361
361
  onClick: (t) => xe(e)
362
362
  }, {
363
363
  default: A(() => [...r[16] ||= [C(" 编辑 ", -1)]]),
364
364
  _: 1
365
- }, 8, ["disabled", "onClick"]), w(k(t), {
365
+ }, 8, ["disabled", "onClick"]), w(k(n), {
366
366
  items: Ee(e),
367
367
  trigger: "hover",
368
368
  onSelect: (t) => De(e, t)
369
369
  }, {
370
- default: A(() => [w(k(m), {
370
+ default: A(() => [w(k(d), {
371
371
  type: "text",
372
372
  "icon-name": "down",
373
373
  title: "更多",
374
374
  "aria-label": "更多",
375
- disabled: u.value
375
+ disabled: p.value
376
376
  }, null, 8, ["disabled"])]),
377
377
  _: 1
378
378
  }, 8, ["items", "onSelect"])], 32)]),
@@ -397,7 +397,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
397
397
  }, K = { class: "employee-account-status" }, q = { key: 0 }, We = { class: "employee-form-label" }, Ge = {
398
398
  key: 0,
399
399
  "aria-hidden": "true"
400
- }, Ke = /*#__PURE__*/ h(/* @__PURE__ */ T({
400
+ }, Ke = /*#__PURE__*/ t(/* @__PURE__ */ T({
401
401
  name: "EmployeeDetailContent",
402
402
  __name: "EmployeeDetailContent",
403
403
  props: {
@@ -444,24 +444,24 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
444
444
  "removeAccount",
445
445
  "updateAccountProvisionField"
446
446
  ],
447
- setup(t, { emit: r }) {
448
- let i = t, a = r;
449
- return (t, r) => i.loading ? (E(), y(k(ne), {
447
+ setup(t, { emit: n }) {
448
+ let i = t, a = n;
449
+ return (t, n) => i.loading ? (E(), y(k(te), {
450
450
  key: 0,
451
451
  class: "employee-detail-state",
452
452
  tip: "加载职员详情"
453
- })) : i.loadFailed ? (E(), x("div", V, [w(k(o), {
453
+ })) : i.loadFailed ? (E(), x("div", V, [w(k(s), {
454
454
  title: "详情加载失败",
455
455
  message: "无法加载职员详情,请重试"
456
- }), w(k(m), {
456
+ }), w(k(d), {
457
457
  type: "primary",
458
458
  "icon-name": "reload",
459
- onClick: r[0] ||= (e) => a("retry")
459
+ onClick: n[0] ||= (e) => a("retry")
460
460
  }, {
461
- default: A(() => [...r[12] ||= [C("重试", -1)]]),
461
+ default: A(() => [...n[12] ||= [C("重试", -1)]]),
462
462
  _: 1
463
463
  })])) : i.showContent ? (E(), x(ke, { key: 2 }, [i.mode === "view" ? (E(), x(ke, { key: 0 }, [
464
- w(k(s), {
464
+ w(k(l), {
465
465
  record: i.draft,
466
466
  fields: i.fields,
467
467
  fallback: i.fallback,
@@ -474,90 +474,90 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
474
474
  "picker-configs",
475
475
  "display-of"
476
476
  ]),
477
- S("section", H, [S("div", He, [r[14] ||= S("strong", null, "登录账号", -1), !i.account && !i.showAccountProvisionForm ? (E(), y(k(m), {
477
+ S("section", H, [S("div", He, [n[14] ||= S("strong", null, "登录账号", -1), !i.account && !i.showAccountProvisionForm ? (E(), y(k(d), {
478
478
  key: 0,
479
479
  type: "primary",
480
480
  "icon-name": "plus",
481
481
  disabled: !i.canManageAccounts,
482
- onClick: r[1] ||= (e) => a("startAccountProvision")
482
+ onClick: n[1] ||= (e) => a("startAccountProvision")
483
483
  }, {
484
- default: A(() => [...r[13] ||= [C(" 设置账号 ", -1)]]),
484
+ default: A(() => [...n[13] ||= [C(" 设置账号 ", -1)]]),
485
485
  _: 1
486
- }, 8, ["disabled"])) : b("v-if", !0)]), i.loadingAccounts ? (E(), y(k(ne), {
486
+ }, 8, ["disabled"])) : b("v-if", !0)]), i.loadingAccounts ? (E(), y(k(te), {
487
487
  key: 0,
488
488
  class: "employee-account-state",
489
489
  tip: "加载账号绑定"
490
- })) : i.accountsLoadFailed ? (E(), x("div", Ue, [w(k(o), {
490
+ })) : i.accountsLoadFailed ? (E(), x("div", Ue, [w(k(s), {
491
491
  title: "账号绑定加载失败",
492
492
  message: "无法加载职员账号绑定,请重试"
493
- }), w(k(m), {
493
+ }), w(k(d), {
494
494
  "icon-name": "reload",
495
- onClick: r[2] ||= (e) => a("retryAccounts")
495
+ onClick: n[2] ||= (e) => a("retryAccounts")
496
496
  }, {
497
- default: A(() => [...r[15] ||= [C("重试", -1)]]),
497
+ default: A(() => [...n[15] ||= [C("重试", -1)]]),
498
498
  _: 1
499
499
  })])) : i.showAccountProvisionForm ? (E(), x("form", {
500
500
  key: 2,
501
501
  class: "employee-account-form",
502
- onSubmit: r[6] ||= j((e) => a("provisionAccount"), ["prevent"])
502
+ onSubmit: n[6] ||= j((e) => a("provisionAccount"), ["prevent"])
503
503
  }, [
504
- S("label", null, [r[16] ||= S("span", null, "账号", -1), w(k(l), {
504
+ S("label", null, [n[16] ||= S("span", null, "账号", -1), w(k(c), {
505
505
  value: i.accountProvisionDraft.username,
506
506
  placeholder: "请输入登录账号",
507
507
  disabled: i.savingAccount,
508
- "onUpdate:value": r[3] ||= (e) => a("updateAccountProvisionField", "username", e)
508
+ "onUpdate:value": n[3] ||= (e) => a("updateAccountProvisionField", "username", e)
509
509
  }, null, 8, ["value", "disabled"])]),
510
- S("label", null, [r[17] ||= S("span", null, "初始密码", -1), w(k(l), {
510
+ S("label", null, [n[17] ||= S("span", null, "初始密码", -1), w(k(c), {
511
511
  value: i.accountProvisionDraft.password,
512
512
  type: "password",
513
513
  placeholder: "请输入初始密码",
514
514
  disabled: i.savingAccount,
515
- "onUpdate:value": r[4] ||= (e) => a("updateAccountProvisionField", "password", e)
515
+ "onUpdate:value": n[4] ||= (e) => a("updateAccountProvisionField", "password", e)
516
516
  }, null, 8, ["value", "disabled"])]),
517
- S("div", U, [w(k(m), {
517
+ S("div", U, [w(k(d), {
518
518
  disabled: i.savingAccount,
519
- onClick: r[5] ||= (e) => a("cancelAccountProvision")
519
+ onClick: n[5] ||= (e) => a("cancelAccountProvision")
520
520
  }, {
521
- default: A(() => [...r[18] ||= [C("取消", -1)]]),
521
+ default: A(() => [...n[18] ||= [C("取消", -1)]]),
522
522
  _: 1
523
- }, 8, ["disabled"]), w(k(m), {
523
+ }, 8, ["disabled"]), w(k(d), {
524
524
  type: "primary",
525
525
  "html-type": "submit",
526
526
  "icon-name": "plus",
527
527
  loading: i.savingAccount,
528
528
  disabled: !i.canManageAccounts
529
529
  }, {
530
- default: A(() => [...r[19] ||= [C(" 创建账号并绑定 ", -1)]]),
530
+ default: A(() => [...n[19] ||= [C(" 创建账号并绑定 ", -1)]]),
531
531
  _: 1
532
532
  }, 8, ["loading", "disabled"])])
533
533
  ], 32)) : i.account ? (E(), x("div", G, [
534
534
  S("div", null, [S("strong", null, O(i.accountUserTitle), 1), S("span", null, O(i.accountUserDescription), 1)]),
535
535
  S("span", K, O(i.accountStatusTitle), 1),
536
- w(k(m), {
536
+ w(k(d), {
537
537
  danger: "",
538
538
  "icon-name": "delete",
539
539
  disabled: i.savingAccount || !i.canManageAccounts,
540
- onClick: r[7] ||= (e) => a("removeAccount")
540
+ onClick: n[7] ||= (e) => a("removeAccount")
541
541
  }, {
542
- default: A(() => [...r[21] ||= [C(" 移除账户 ", -1)]]),
542
+ default: A(() => [...n[21] ||= [C(" 移除账户 ", -1)]]),
543
543
  _: 1
544
544
  }, 8, ["disabled"])
545
- ])) : (E(), x("div", W, [...r[20] ||= [S("span", null, "未设置登录账号", -1), S("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
546
- w(k(ae), {
545
+ ])) : (E(), x("div", W, [...n[20] ||= [S("span", null, "未设置登录账号", -1), S("small", null, "可从职员档案生成账号并自动完成一对一绑定。", -1)]]))]),
546
+ w(k(f), {
547
547
  record: i.draft,
548
548
  "show-sort-order": ""
549
549
  }, null, 8, ["record"])
550
550
  ], 64)) : (E(), x(ke, { key: 1 }, [i.externallyChanged ? (E(), y(k(e), {
551
551
  key: 0,
552
- onReload: r[8] ||= (e) => a("reloadExternal"),
553
- onDismiss: r[9] ||= (e) => a("dismissExternal")
552
+ onReload: n[8] ||= (e) => a("reloadExternal"),
553
+ onDismiss: n[9] ||= (e) => a("dismissExternal")
554
554
  })) : b("v-if", !0), S("form", {
555
555
  class: "employee-form",
556
- onSubmit: r[11] ||= j((e) => a("save"), ["prevent"])
557
- }, [i.visibleOf("organizationId") ? (E(), x("label", q, [S("span", We, [C(O(i.labelOf("organizationId")) + " ", 1), i.requiredOf("organizationId") ? (E(), x("strong", Ge, "*")) : b("v-if", !0)]), w(k(l), {
556
+ onSubmit: n[11] ||= j((e) => a("save"), ["prevent"])
557
+ }, [i.visibleOf("organizationId") ? (E(), x("label", q, [S("span", We, [C(O(i.labelOf("organizationId")) + " ", 1), i.requiredOf("organizationId") ? (E(), x("strong", Ge, "*")) : b("v-if", !0)]), w(k(c), {
558
558
  value: i.selectedOrganization?.title ?? i.selectedOrganization?.id ?? "-",
559
559
  disabled: ""
560
- }, null, 8, ["value"])])) : b("v-if", !0), w(k(n), {
560
+ }, null, 8, ["value"])])) : b("v-if", !0), w(k(r), {
561
561
  record: i.draft,
562
562
  fields: i.fields,
563
563
  "exclude-field-names": ["organizationId"],
@@ -565,7 +565,7 @@ var N = { class: "employment-drawer" }, P = { class: "employment-drawer-header"
565
565
  "picker-configs": i.pickerConfigs,
566
566
  disabled: i.formDisabled,
567
567
  "option-context": i.optionContext,
568
- "onUpdate:field": r[10] ||= (e, t) => a("updateField", e, t)
568
+ "onUpdate:field": n[10] ||= (e, t) => a("updateField", e, t)
569
569
  }, null, 8, [
570
570
  "record",
571
571
  "fields",
@@ -614,7 +614,7 @@ function Xe(e) {
614
614
  error: void 0
615
615
  });
616
616
  } catch (n) {
617
- let r = i(n, {
617
+ let r = a(n, {
618
618
  source: `${e.source}-employment-rows`,
619
619
  phase: "load"
620
620
  });
@@ -626,7 +626,7 @@ function Xe(e) {
626
626
  }
627
627
  }
628
628
  }
629
- function a(e, n) {
629
+ function i(e, n) {
630
630
  let i = String(e.id ?? "");
631
631
  i && (t.value = n ? Array.from(new Set([...t.value, i])) : t.value.filter((e) => e !== i), n && o(i).records.length === 0 && r(i));
632
632
  }
@@ -645,15 +645,15 @@ function Xe(e) {
645
645
  [e]: t
646
646
  };
647
647
  }
648
- function ee() {
648
+ function c() {
649
649
  t.value = [], n.value = {};
650
650
  }
651
651
  return {
652
652
  expandedEmployeeKeys: t,
653
653
  employmentRowState: o,
654
- handleEmployeeRowExpand: a,
654
+ handleEmployeeRowExpand: i,
655
655
  loadEmployeeEmploymentRows: r,
656
- resetEmployeeEmploymentRows: ee
656
+ resetEmployeeEmploymentRows: c
657
657
  };
658
658
  }
659
659
  //#endregion
@@ -661,7 +661,7 @@ function Xe(e) {
661
661
  var Ze = { key: 0 }, Qe = {
662
662
  key: 1,
663
663
  class: "employee-row-employment-list"
664
- }, $e = /*#__PURE__*/ h(/* @__PURE__ */ T({
664
+ }, $e = /*#__PURE__*/ t(/* @__PURE__ */ T({
665
665
  name: "EmployeeManagementView",
666
666
  __name: "EmployeeManagementView",
667
667
  props: {
@@ -673,13 +673,13 @@ var Ze = { key: 0 }, Qe = {
673
673
  "departmentId",
674
674
  "employeeNo",
675
675
  "title"
676
- ], o = xe(), s = f({ moduleAlias: "iam.organization" }), ne = f({ moduleAlias: "iam.department" }), c = f({ moduleAlias: "iam.employee" }), ae = f({ moduleAlias: "iam.user" }), oe = D(u(void 0)), l = v(() => !!t.recordId), h = v(() => l.value && o?.presentation === "drawer"), ye = v(() => !l.value || h.value), Ce = D(""), Te = 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 = ve({
677
- context: () => c,
676
+ ], r = xe(), s = h({ moduleAlias: "iam.organization" }), c = h({ moduleAlias: "iam.department" }), l = h({ moduleAlias: "iam.employee" }), te = h({ moduleAlias: "iam.user" }), u = D(se(void 0)), f = v(() => !!t.recordId), ie = v(() => f.value && r?.presentation === "drawer"), ye = v(() => !f.value || ie.value), Ce = D(""), Te = 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 = ve({
677
+ context: () => l,
678
678
  listReloadKey: _,
679
679
  canChange: X,
680
680
  resetSelection: Ft
681
681
  }), { expandedEmployeeKeys: Ge, employmentRowState: $e, handleEmployeeRowExpand: et, loadEmployeeEmploymentRows: tt, resetEmployeeEmploymentRows: nt } = Xe({
682
- context: c,
682
+ context: l,
683
683
  source: "employee-management",
684
684
  pathOf: (e) => We.active.value ? `/iam.employee/recycle-bin/${encodeURIComponent(e)}/employment-view` : `/iam.employee/${encodeURIComponent(e)}/employment-view`
685
685
  }), J = De({
@@ -705,7 +705,7 @@ var Ze = { key: 0 }, Qe = {
705
705
  rt.enqueue(n.length > 0 ? n : "__collection__");
706
706
  }
707
707
  });
708
- let it = v(() => c), Y = v(() => T.value?.id), at = v(() => _e(ne, {
708
+ let it = v(() => l), Y = v(() => T.value?.id), at = v(() => _e(c, {
709
709
  scopeFieldName: "organizationId",
710
710
  scopeValue: Y.value,
711
711
  treePath: "/iam.department/tree",
@@ -731,7 +731,7 @@ var Ze = { key: 0 }, Qe = {
731
731
  loadingDetail: F.value,
732
732
  loadFailed: I.value,
733
733
  selectedEmployeeId: M.value?.id
734
- })), ft = v(() => F.value ? !1 : P.value === "create" ? !!Y.value && c.can("create") === !0 : !!M.value?.id && c.can("update") === !0), pt = v(() => F.value || !M.value?.id ? !1 : c.can(hn(M.value)) === !0), mt = v(() => !M.value?.id || F.value || L.value ? !1 : c.can("employeeAccounts", M.value.id) !== !1), ht = v(() => P.value === "view" ? M.value?.id ? [{
734
+ })), ft = v(() => F.value ? !1 : P.value === "create" ? !!Y.value && l.can("create") === !0 : !!M.value?.id && l.can("update") === !0), pt = v(() => F.value || !M.value?.id ? !1 : l.can(hn(M.value)) === !0), mt = v(() => !M.value?.id || F.value || L.value ? !1 : l.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: "编辑",
@@ -804,13 +804,13 @@ var Ze = { key: 0 }, Qe = {
804
804
  onPromoted: Wt
805
805
  });
806
806
  Pe(M, (e) => {
807
- !l.value || !e || o?.setTitle(pn(e));
807
+ !f.value || !e || r?.setTitle(pn(e));
808
808
  }, { immediate: !0 });
809
809
  let yt;
810
810
  Me(() => {
811
811
  if (xt(), !t.recordId) return;
812
812
  let e = { recordId: t.recordId };
813
- h.value || (yt = Je(e, bt));
813
+ ie.value || (yt = Je(e, bt));
814
814
  let n = Ye(e);
815
815
  if (n) {
816
816
  an(n);
@@ -823,17 +823,17 @@ var Ze = { key: 0 }, Qe = {
823
823
  }
824
824
  async function xt() {
825
825
  try {
826
- oe.value = u((await c.runtime.ready).uiDescriptor);
826
+ u.value = se((await l.runtime.ready).uiDescriptor);
827
827
  } catch (e) {
828
- i(e, {
828
+ a(e, {
829
829
  source: "employee-management",
830
830
  phase: "load"
831
831
  });
832
832
  }
833
833
  }
834
834
  function St(e) {
835
- return ce(e, {
836
- fields: oe.value,
835
+ return p(e, {
836
+ fields: u.value,
837
837
  fallback: En
838
838
  });
839
839
  }
@@ -917,15 +917,15 @@ var Ze = { key: 0 }, Qe = {
917
917
  actionCode: "employeePositions",
918
918
  title: "任职",
919
919
  after: "edit",
920
- visible: !!e.id && c.can("employeePositions", String(e.id)) !== !1
920
+ visible: !!e.id && l.can("employeePositions", String(e.id)) !== !1
921
921
  }];
922
922
  }
923
923
  async function zt(e) {
924
924
  let t = String(e.id ?? "");
925
925
  if (t) try {
926
- Ue.value = await c.crud.view(t), He.value = !0;
926
+ Ue.value = await l.crud.view(t), He.value = !0;
927
927
  } catch (e) {
928
- i(e, {
928
+ a(e, {
929
929
  source: "employee-management",
930
930
  phase: "load"
931
931
  });
@@ -943,14 +943,14 @@ var Ze = { key: 0 }, Qe = {
943
943
  function Ut() {
944
944
  if (X()) {
945
945
  if (!Y.value) {
946
- r("请先选择机构", { phase: "validation" });
946
+ i("请先选择机构", { phase: "validation" });
947
947
  return;
948
948
  }
949
949
  z.value = Qt(Y.value), M.value = void 0, j.value = void 0, J.clearExternalChanged(), P.value = "create", F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !0;
950
950
  }
951
951
  }
952
952
  function Wt() {
953
- L.value || (R.value += 1, F.value = !1, I.value = !1, N.value = !1, P.value = "view", B.value = void 0, J.clearExternalChanged(), $(), z.value = M.value ? en(M.value) : Qt(Y.value), h.value && o?.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), ie.value && r?.dismiss());
954
954
  }
955
955
  function Gt() {
956
956
  if (!L.value) {
@@ -969,27 +969,27 @@ var Ze = { key: 0 }, Qe = {
969
969
  let n = String(e.id ?? "");
970
970
  if (!n) return;
971
971
  j.value = n, J.clearExternalChanged(), N.value = !0, P.value = t, M.value = void 0, z.value = en(e), B.value = void 0, $(), F.value = !0, I.value = !1;
972
- let a = R.value + 1;
973
- R.value = a;
972
+ let r = R.value + 1;
973
+ R.value = r;
974
974
  let o = () => Ie({
975
975
  activeRequestSeq: R.value,
976
- requestSeq: a,
976
+ requestSeq: r,
977
977
  selectedEmployeeKey: j.value,
978
978
  recordId: n
979
979
  });
980
980
  try {
981
- let e = await c.crud.view(n);
981
+ let e = await l.crud.view(n);
982
982
  if (!o()) return;
983
983
  if (!e?.id) {
984
- I.value = !0, r("未找到指定职员", {
984
+ I.value = !0, i("未找到指定职员", {
985
985
  source: "employee-management",
986
986
  phase: "load"
987
987
  });
988
988
  return;
989
989
  }
990
- M.value = e, z.value = en(e), I.value = !1, await sn(e, a), await on(e, a), cn(e, a);
990
+ M.value = e, z.value = en(e), I.value = !1, await sn(e, r), await on(e, r), cn(e, r);
991
991
  } catch (e) {
992
- o() && (I.value = !0, i(e, {
992
+ o() && (I.value = !0, a(e, {
993
993
  source: "employee-management",
994
994
  phase: "load"
995
995
  }));
@@ -1033,7 +1033,7 @@ var Ze = { key: 0 }, Qe = {
1033
1033
  }, "edit"));
1034
1034
  }
1035
1035
  async function Yt() {
1036
- await pe({
1036
+ await fe({
1037
1037
  loading: L,
1038
1038
  mode: P.value === "edit" ? "edit" : "create",
1039
1039
  source: "employee-management",
@@ -1042,12 +1042,12 @@ var Ze = { key: 0 }, Qe = {
1042
1042
  deniedMessage: "当前用户无权保存职员",
1043
1043
  createRecord: () => tn(z.value, Y.value ?? ""),
1044
1044
  validateRecord: nn,
1045
- save: (e, t) => t === "edit" && M.value?.id ? c.crud.update(M.value.id, e) : c.crud.insert(e),
1046
- actionErrorHandlers: [he({
1045
+ save: (e, t) => t === "edit" && M.value?.id ? l.crud.update(M.value.id, e) : l.crud.insert(e),
1046
+ actionErrorHandlers: [me({
1047
1047
  resourceLabel: "职员",
1048
1048
  onNavigateToRecycleBin: () => Pt("recycleBin")
1049
1049
  }), {
1050
- code: p.conflictVersion,
1050
+ code: he.conflictVersion,
1051
1051
  handle: (e, { mode: t, record: n }) => t === "edit" && J.markExternalRecordChanged(n.id)
1052
1052
  }],
1053
1053
  onSaved: ({ record: e }) => {
@@ -1057,33 +1057,33 @@ var Ze = { key: 0 }, Qe = {
1057
1057
  });
1058
1058
  }
1059
1059
  async function Xt() {
1060
- await d({
1060
+ await m({
1061
1061
  loading: L,
1062
1062
  source: "employee-management",
1063
1063
  record: () => M.value && M.value.id ? M.value : void 0,
1064
1064
  canExecute: () => pt.value,
1065
1065
  deniedMessage: "当前用户无权变更职员启停状态",
1066
- execute: (e) => e.enabled === !1 ? c.crud.enable(e.id, { version: e.version }) : c.crud.disable(e.id, { version: e.version }),
1066
+ execute: (e) => e.enabled === !1 ? l.crud.enable(e.id, { version: e.version }) : l.crud.disable(e.id, { version: e.version }),
1067
1067
  onExecuted: async (e, t) => {
1068
- let n = await c.crud.view(t.id);
1068
+ let n = await l.crud.view(t.id);
1069
1069
  await on(n, rn(n)), _.value += 1;
1070
1070
  }
1071
1071
  });
1072
1072
  }
1073
1073
  async function Zt(e) {
1074
- await d({
1074
+ await m({
1075
1075
  loading: L,
1076
1076
  source: "employee-management",
1077
1077
  record: () => e?.id ? e : void 0,
1078
- canExecute: () => c.can("delete") === !0,
1078
+ canExecute: () => l.can("delete") === !0,
1079
1079
  deniedMessage: "当前用户无权删除职员",
1080
- confirm: (e) => re({
1080
+ confirm: (e) => ne({
1081
1081
  title: "删除职员",
1082
1082
  content: `确认删除职员「${fn(e)}」?`,
1083
1083
  okText: "删除",
1084
1084
  danger: !0
1085
1085
  }),
1086
- execute: (e) => c.crud.delete(String(e.id), { version: e.version }),
1086
+ execute: (e) => l.crud.delete(String(e.id), { version: e.version }),
1087
1087
  onExecuted: (e, t) => {
1088
1088
  let n = String(t.id);
1089
1089
  j.value === n && (j.value = void 0, M.value = void 0, z.value = Qt(Y.value), J.clearExternalChanged(), F.value = !1, I.value = !1, R.value += 1, B.value = void 0, $(), N.value = !1, P.value = "view"), _.value += 1;
@@ -1108,7 +1108,7 @@ var Ze = { key: 0 }, Qe = {
1108
1108
  return { ...e };
1109
1109
  }
1110
1110
  function tn(e, t) {
1111
- return ue(e, {
1111
+ return le(e, {
1112
1112
  organizationId: t,
1113
1113
  departmentId: e.departmentId?.trim(),
1114
1114
  employeeNo: e.employeeNo?.trim(),
@@ -1151,10 +1151,10 @@ var Ze = { key: 0 }, Qe = {
1151
1151
  B.value = void 0;
1152
1152
  let n = e.id, r = e.departmentId;
1153
1153
  if (r) try {
1154
- let e = await ne.crud.view(r);
1154
+ let e = await c.crud.view(r);
1155
1155
  Q(n, t) && (B.value = e);
1156
1156
  } catch (e) {
1157
- Q(n, t) && i(e, {
1157
+ Q(n, t) && a(e, {
1158
1158
  source: "employee-management",
1159
1159
  phase: "load"
1160
1160
  });
@@ -1166,7 +1166,7 @@ var Ze = { key: 0 }, Qe = {
1166
1166
  let e = await s.crud.view(r);
1167
1167
  Q(n, t) && (T.value = e);
1168
1168
  } catch (e) {
1169
- Q(n, t) && i(e, {
1169
+ Q(n, t) && a(e, {
1170
1170
  source: "employee-management",
1171
1171
  phase: "load"
1172
1172
  });
@@ -1180,11 +1180,11 @@ var Ze = { key: 0 }, Qe = {
1180
1180
  }
1181
1181
  U.value = !0, G.value = !1;
1182
1182
  try {
1183
- let e = await c.http.request({ path: `/iam.employee/${encodeURIComponent(n)}/account` });
1183
+ let e = await l.http.request({ path: `/iam.employee/${encodeURIComponent(n)}/account` });
1184
1184
  if (!Q(n, t)) return;
1185
1185
  V.value = e, await ln(e, n, t);
1186
1186
  } catch (e) {
1187
- Q(n, t) && (G.value = !0, i(e, {
1187
+ Q(n, t) && (G.value = !0, a(e, {
1188
1188
  source: "employee-management",
1189
1189
  phase: "load"
1190
1190
  }));
@@ -1198,26 +1198,26 @@ var Ze = { key: 0 }, Qe = {
1198
1198
  Q(t, n) && (H.value = void 0);
1199
1199
  return;
1200
1200
  }
1201
- let a;
1201
+ let i;
1202
1202
  try {
1203
- a = await ae.crud.view(r);
1203
+ i = await te.crud.view(r);
1204
1204
  } catch (e) {
1205
- i(e, {
1205
+ a(e, {
1206
1206
  source: "employee-management",
1207
1207
  phase: "load"
1208
- }), a = {
1208
+ }), i = {
1209
1209
  id: r,
1210
1210
  username: r
1211
1211
  };
1212
1212
  }
1213
- Q(t, n) && (H.value = a);
1213
+ Q(t, n) && (H.value = i);
1214
1214
  }
1215
1215
  async function un() {
1216
1216
  let e = M.value, t = Sn(q.value);
1217
1217
  if (!e?.id || !mt.value) return;
1218
1218
  let n = Cn(t);
1219
1219
  if (n) {
1220
- r(n, {
1220
+ i(n, {
1221
1221
  source: "employee-management",
1222
1222
  phase: "validation"
1223
1223
  });
@@ -1225,17 +1225,17 @@ var Ze = { key: 0 }, Qe = {
1225
1225
  }
1226
1226
  W.value = !0;
1227
1227
  try {
1228
- let n = await c.http.request({
1228
+ let n = await l.http.request({
1229
1229
  method: "POST",
1230
1230
  path: `/iam.employee/${encodeURIComponent(e.id)}/account/provision`,
1231
1231
  body: t
1232
- }), r = ee(n);
1233
- V.value = r.binding, H.value = r.user, K.value = !1, q.value = $t(e), await le(n, {
1232
+ }), r = oe(n);
1233
+ V.value = r.binding, H.value = r.user, K.value = !1, q.value = $t(e), await ce(n, {
1234
1234
  source: "employee-management",
1235
1235
  phase: "action"
1236
1236
  });
1237
1237
  } catch (e) {
1238
- i(e, {
1238
+ a(e, {
1239
1239
  source: "employee-management",
1240
1240
  phase: "action"
1241
1241
  });
@@ -1245,7 +1245,7 @@ var Ze = { key: 0 }, Qe = {
1245
1245
  }
1246
1246
  async function dn() {
1247
1247
  let e = M.value;
1248
- if (!(!e?.id || !V.value?.id || !mt.value) && await re({
1248
+ if (!(!e?.id || !V.value?.id || !mt.value) && await ne({
1249
1249
  title: "移除账户",
1250
1250
  content: `确认移除账户「${gn()}」?该用户账号会同步删除。`,
1251
1251
  okText: "移除",
@@ -1253,16 +1253,16 @@ var Ze = { key: 0 }, Qe = {
1253
1253
  })) {
1254
1254
  W.value = !0;
1255
1255
  try {
1256
- let t = await c.http.request({
1256
+ let t = await l.http.request({
1257
1257
  method: "POST",
1258
1258
  path: `/iam.employee/${encodeURIComponent(e.id)}/account/delete`
1259
1259
  });
1260
- await cn(e, R.value), await le(t, {
1260
+ await cn(e, R.value), await ce(t, {
1261
1261
  source: "employee-management",
1262
1262
  phase: "action"
1263
1263
  });
1264
1264
  } catch (e) {
1265
- i(e, {
1265
+ a(e, {
1266
1266
  source: "employee-management",
1267
1267
  phase: "action"
1268
1268
  });
@@ -1386,13 +1386,13 @@ var Ze = { key: 0 }, Qe = {
1386
1386
  controlType: "enabledStatus"
1387
1387
  }
1388
1388
  };
1389
- return (e, t) => !l.value || h.value ? (E(), y(k(me), {
1389
+ return (e, t) => !f.value || ie.value ? (E(), y(k(pe), {
1390
1390
  key: 0,
1391
1391
  class: "employee-management-page"
1392
1392
  }, {
1393
1393
  default: A(() => [
1394
1394
  w(k(ge), null, {
1395
- default: A(() => [w(k(ie), {
1395
+ default: A(() => [w(k(re), {
1396
1396
  class: "employee-scope-panel",
1397
1397
  title: "机构树",
1398
1398
  "refresh-title": "刷新机构树",
@@ -1401,7 +1401,7 @@ var Ze = { key: 0 }, Qe = {
1401
1401
  onRefresh: jt,
1402
1402
  "onUpdate:searchKeyword": t[0] ||= (e) => Ce.value = e
1403
1403
  }, {
1404
- default: A(() => [w(k(fe), {
1404
+ default: A(() => [w(k(de), {
1405
1405
  context: k(s),
1406
1406
  "selected-id": T.value?.id,
1407
1407
  "reload-key": Te.value,
@@ -1449,14 +1449,14 @@ var Ze = { key: 0 }, Qe = {
1449
1449
  onModeChange: Pt,
1450
1450
  onRestored: It
1451
1451
  }, {
1452
- expandedRow: A(({ record: e }) => [w(k(se), {
1452
+ expandedRow: A(({ record: e }) => [w(k(ae), {
1453
1453
  title: "任职信息",
1454
1454
  loading: k($e)(String(e.id ?? "")).loading,
1455
1455
  error: k($e)(String(e.id ?? "")).error,
1456
1456
  "loading-tip": "加载任职信息",
1457
1457
  "error-title": "任职信息加载失败"
1458
1458
  }, {
1459
- actions: A(() => [w(k(m), {
1459
+ actions: A(() => [w(k(d), {
1460
1460
  type: "text",
1461
1461
  "icon-name": "reload",
1462
1462
  disabled: k($e)(String(e.id ?? "")).loading,
@@ -1493,7 +1493,7 @@ var Ze = { key: 0 }, Qe = {
1493
1493
  "external-query-values",
1494
1494
  "onRowExpand"
1495
1495
  ]),
1496
- ye.value ? (E(), y(k(de), {
1496
+ ye.value ? (E(), y(k(ue), {
1497
1497
  key: 0,
1498
1498
  open: N.value,
1499
1499
  title: ct.value,
@@ -1502,7 +1502,7 @@ var Ze = { key: 0 }, Qe = {
1502
1502
  promotion: k(vt),
1503
1503
  onClose: Wt
1504
1504
  }, {
1505
- status: A(() => [P.value === "view" && M.value ? (E(), y(k(te), {
1505
+ status: A(() => [P.value === "view" && M.value ? (E(), y(k(ee), {
1506
1506
  key: 0,
1507
1507
  enabled: M.value.enabled !== !1,
1508
1508
  disabled: L.value || !pt.value,
@@ -1529,7 +1529,7 @@ var Ze = { key: 0 }, Qe = {
1529
1529
  "load-failed": I.value,
1530
1530
  "form-disabled": ut.value,
1531
1531
  "show-content": dt.value,
1532
- fields: oe.value,
1532
+ fields: u.value,
1533
1533
  fallback: En,
1534
1534
  "picker-configs": ot.value,
1535
1535
  "display-of": Ot,
@@ -1548,7 +1548,7 @@ var Ze = { key: 0 }, Qe = {
1548
1548
  "account-user-title": gn(),
1549
1549
  "account-user-description": _n(),
1550
1550
  "account-status-title": vn(),
1551
- "option-context": k(c),
1551
+ "option-context": k(l),
1552
1552
  onRetry: qt,
1553
1553
  onSave: Yt,
1554
1554
  onReloadExternal: Jt,
@@ -1603,12 +1603,12 @@ var Ze = { key: 0 }, Qe = {
1603
1603
  }, null, 8, ["open", "employee"])
1604
1604
  ]),
1605
1605
  _: 1
1606
- })) : (E(), y(k(a), {
1606
+ })) : (E(), y(k(o), {
1607
1607
  key: 1,
1608
1608
  title: ct.value,
1609
1609
  subtitle: lt.value
1610
1610
  }, {
1611
- status: A(() => [P.value === "view" && M.value ? (E(), y(k(te), {
1611
+ status: A(() => [P.value === "view" && M.value ? (E(), y(k(ee), {
1612
1612
  key: 0,
1613
1613
  enabled: M.value.enabled !== !1,
1614
1614
  disabled: L.value || !pt.value,
@@ -1621,7 +1621,7 @@ var Ze = { key: 0 }, Qe = {
1621
1621
  "loading"
1622
1622
  ])) : b("v-if", !0)]),
1623
1623
  operation: A(() => [w(k(g), {
1624
- context: k(c),
1624
+ context: k(l),
1625
1625
  actions: _t.value,
1626
1626
  "record-id": M.value?.id,
1627
1627
  onAction: Kt
@@ -1640,7 +1640,7 @@ var Ze = { key: 0 }, Qe = {
1640
1640
  "load-failed": I.value,
1641
1641
  "form-disabled": ut.value,
1642
1642
  "show-content": dt.value,
1643
- fields: oe.value,
1643
+ fields: u.value,
1644
1644
  fallback: En,
1645
1645
  "picker-configs": ot.value,
1646
1646
  "display-of": Ot,
@@ -1659,7 +1659,7 @@ var Ze = { key: 0 }, Qe = {
1659
1659
  "account-user-title": gn(),
1660
1660
  "account-user-description": _n(),
1661
1661
  "account-status-title": vn(),
1662
- "option-context": k(c),
1662
+ "option-context": k(l),
1663
1663
  onRetry: qt,
1664
1664
  onSave: Yt,
1665
1665
  onReloadExternal: Jt,