xyvcard-itsmsys 0.0.17 → 0.0.19

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 (48) hide show
  1. package/README.md +51 -51
  2. package/dist/{edit-BAH_6b13.mjs → edit-BrHOGUbU.mjs} +1 -1
  3. package/dist/{edit-DgxHpvC6.mjs → edit-CNEVornb.mjs} +100 -100
  4. package/dist/{edit-CJKLiFvj.mjs → edit-COKceKzl.mjs} +87 -87
  5. package/dist/{edit-a4L0fy11.mjs → edit-Czi-Vkbf.mjs} +1 -1
  6. package/dist/{edit-DdBemEtp.mjs → edit-DYqAdRsK.mjs} +99 -99
  7. package/dist/{edit-CfJWdgBx.mjs → edit-DybO5r3p.mjs} +1 -1
  8. package/dist/{edit-pCyaGLeW.mjs → edit-_QJnKCdq.mjs} +1 -1
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-Bs8-z-IO.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +173 -174
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-ygCvblxi.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
  13. package/dist/{import-upload-TERPQdeq.mjs → import-upload-BvY7RZa-.mjs} +2 -2
  14. package/dist/{import-upload-BISlCHWj.mjs → import-upload-DBk1lPqR.mjs} +5 -5
  15. package/dist/{index-BxdZzcjP.mjs → index-BHcHN6PY.mjs} +25 -25
  16. package/dist/{index-DRzFGqnW.mjs → index-Cow_4AlE.mjs} +22 -22
  17. package/dist/{index-rAUwvtcF.mjs → index-CuBZptA_.mjs} +1 -1
  18. package/dist/{index-ekie5iUI.mjs → index-D__UxnZG.mjs} +13 -15
  19. package/dist/{index-DGX9vRbo.mjs → index-IpHv0Vzi.mjs} +1 -1
  20. package/dist/{index-byYol6y6.mjs → index-cpyRUYdS.mjs} +57 -55
  21. package/dist/{index-C57850Qg.mjs → index-dIcRC4jE.mjs} +23 -29
  22. package/dist/{index-B8RLzH1x.mjs → index-p50UkFiJ.mjs} +28 -28
  23. package/dist/index.mjs +1021 -936
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-CFepWDIx.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
  25. package/dist/{info-DHxVt25p.mjs → info-BUKhtcuu.mjs} +2 -2
  26. package/dist/{info-BqQdA6b-.mjs → info-Bn5mhJtq.mjs} +2 -2
  27. package/dist/{info-to4iDhQX.mjs → info-Dx5fzSIP.mjs} +2 -2
  28. package/dist/{info-BraECWiO.mjs → info-EodyqiPm.mjs} +2 -2
  29. package/dist/{info-Cjx0ceNM.mjs → info-G1z1-aeX.mjs} +2 -2
  30. package/dist/{info-BNw5IiGi.mjs → info-bYWisCey.mjs} +2 -2
  31. package/dist/style.css +1 -1
  32. package/dts/api/itsm-sys-org/index.d.ts +5 -0
  33. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +9 -0
  35. package/dts/constant.d.ts +0 -4
  36. package/dts/index.d.ts +0 -1
  37. package/dts/lang/itsmsys/en.d.ts +130 -49
  38. package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
  39. package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
  40. package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
  41. package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
  42. package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
  43. package/package.json +18 -20
  44. package/dist/import-upload-CzXWmSM6.mjs +0 -161
  45. package/dts/components/TMaps/index.vue.d.ts +0 -20
  46. package/dts/utils/TMap.d.ts +0 -1
  47. package/dts/utils/common.d.ts +0 -1
  48. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +0 -31
@@ -1,11 +1,12 @@
1
- import { defineComponent as B, mergeModels as R, ref as $, useModel as A, reactive as q, resolveComponent as u, openBlock as F, createBlock as G, withCtx as s, createElementVNode as K, createVNode as e, createTextVNode as v, toDisplayString as N, unref as r } from "vue";
1
+ import { defineComponent as z, mergeModels as q, ref as N, useModel as F, reactive as R, resolveComponent as m, openBlock as K, createBlock as A, withCtx as s, createElementVNode as G, createVNode as e, createTextVNode as $, toDisplayString as E, unref as o } from "vue";
2
2
  import { ElMessage as j } from "element-plus";
3
- import { useI18n as Z } from "vue-i18n";
3
+ import { useI18n as L } from "vue-i18n";
4
+ import { validatePhoneNumber as H, validateEmail as Q, validateIDCard as W } from "jmash-core";
5
+ import { D as g, C as y } from "./index-dIcRC4jE.mjs";
4
6
  import { sysUserExtApi as b } from "./index.mjs";
5
- import { D as f, C as y } from "./index-C57850Qg.mjs";
6
- const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
7
+ const X = { class: "dialog-footer" }, oe = /* @__PURE__ */ z({
7
8
  __name: "edit",
8
- props: /* @__PURE__ */ R({
9
+ props: /* @__PURE__ */ q({
9
10
  entityKey: {
10
11
  type: Object,
11
12
  default: () => {
@@ -15,11 +16,11 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
15
16
  modelValue: { type: Boolean },
16
17
  modelModifiers: {}
17
18
  }),
18
- emits: /* @__PURE__ */ R(["refresh"], ["update:modelValue"]),
19
- setup(c, { emit: M }) {
20
- const { t: m } = Z(), U = $(), p = A(c, "modelValue"), V = M;
21
- f.sysOrgBizDict.useValues();
22
- let o = q({
19
+ emits: /* @__PURE__ */ q(["refresh"], ["update:modelValue"]),
20
+ setup(c, { emit: C }) {
21
+ const { t: u } = L(), U = N(), p = F(c, "modelValue"), V = C;
22
+ g.sysOrgBizDict.useValues();
23
+ let r = R({
23
24
  requestId: Math.random() * 10 + "",
24
25
  updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineerType,engineerJobMode,engineerSpecialty,engineerCertificate",
25
26
  userType: y.userType.companyOps,
@@ -27,102 +28,104 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
27
28
  engineerType: y.engineerType.ease_test,
28
29
  engineerJobMode: y.engineerJobMode.resident
29
30
  });
30
- const S = (l, a, n) => {
31
- a === void 0 && n(new Error(m("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || n(new Error(m("sysUserOps.mobilePhoneRequireds"))), n();
32
- }, C = q({
31
+ const M = (a, l, n) => {
32
+ l && (Q(l) || n(new Error(u("sysUserOps.emailRequireds")))), n();
33
+ }, S = (a, l, n) => {
34
+ l && (W(l) || n(new Error(u("sysUserOps.idNoLengthRequired")))), n();
35
+ }, I = R({
33
36
  realName: [
34
37
  {
35
38
  required: !0,
36
- message: m("sysUserOps.realNameRequired"),
39
+ message: u("sysUserOps.realNameRequired"),
37
40
  trigger: "blur"
38
41
  }
39
42
  ],
40
43
  mobilePhone: [
41
44
  {
42
45
  required: !0,
43
- trigger: "blur",
44
- validator: S
46
+ validator: (a, l, n) => {
47
+ l ? H(l) ? n() : n(new Error(u("sysUserOps.mobilePhoneRequireds"))) : n(new Error(u("sysUserOps.mobilePhoneRequired")));
48
+ },
49
+ trigger: "blur"
45
50
  }
46
51
  ],
47
52
  email: [
48
53
  {
49
- pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
50
- message: m("sysUserOps.emailRequireds"),
54
+ validator: M,
51
55
  trigger: "blur"
52
56
  }
53
57
  ],
54
58
  idNo: [
55
59
  {
56
- pattern: /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[1-2]\d|3[0-1])\d{3}(\d|X)$/,
57
- message: m("sysUserOps.idNoLengthRequired"),
60
+ validator: S,
58
61
  trigger: "blur"
59
62
  }
60
63
  ],
61
64
  engineerType: [
62
65
  {
63
66
  required: !0,
64
- message: m("sysUserOps.engineerTypeRequired"),
67
+ message: u("sysUserOps.engineerTypeRequired"),
65
68
  trigger: "change"
66
69
  }
67
70
  ],
68
71
  engineerJobMode: [
69
72
  {
70
73
  required: !0,
71
- message: m("sysUserOps.engineerJobModeRequired"),
74
+ message: u("sysUserOps.engineerJobModeRequired"),
72
75
  trigger: "change"
73
76
  }
74
77
  ],
75
78
  orgId: [
76
79
  {
77
80
  required: !0,
78
- message: m("sysUserOps.orgIdRequired"),
81
+ message: u("sysUserOps.orgIdRequired"),
79
82
  trigger: "change"
80
83
  }
81
84
  ]
82
- }), h = c, T = Object.keys(h.entityKey), O = $(T.length >= 1);
83
- O.value && b.findById(h.entityKey).then(({ data: l }) => {
84
- Object.assign(o, l), o.gender === "unknown" && (o.gender = "");
85
+ }), h = c, T = Object.keys(h.entityKey), O = N(T.length >= 1);
86
+ O.value && b.findById(h.entityKey).then(({ data: a }) => {
87
+ Object.assign(r, a), r.gender === "unknown" && (r.gender = "");
85
88
  });
86
- const E = async () => {
87
- var l;
88
- await ((l = U.value) == null ? void 0 : l.validate((a) => {
89
- a && (O.value ? b.update(o).then((n) => {
89
+ const D = async () => {
90
+ var a;
91
+ await ((a = U.value) == null ? void 0 : a.validate((l) => {
92
+ l && (O.value ? b.update(r).then((n) => {
90
93
  n.status === 200 && (j({
91
- message: m("common.submitSuccess"),
94
+ message: u("common.submitSuccess"),
92
95
  type: "success"
93
96
  }), p.value && (p.value = !1), V("refresh", n.status === 200));
94
- }) : b.create(o).then((n) => {
97
+ }) : b.create(r).then((n) => {
95
98
  n.status === 200 && (j({
96
- message: m("common.submitSuccess"),
99
+ message: u("common.submitSuccess"),
97
100
  type: "success"
98
101
  }), p.value && (p.value = !1), V("refresh", n.status === 200));
99
102
  }));
100
103
  }));
101
104
  };
102
- function _() {
105
+ function w() {
103
106
  p.value && (p.value = !1);
104
107
  }
105
- return (l, a) => {
106
- const n = u("jmash-select"), d = u("el-form-item"), i = u("el-col"), g = u("el-input"), I = u("jmash-enum-select"), D = u("jmash-dict-select"), J = u("jmash-enum-radio"), P = u("el-row"), k = u("el-form"), w = u("el-button"), z = u("el-dialog");
107
- return F(), G(z, {
108
+ return (a, l) => {
109
+ const n = m("jmash-select"), d = m("el-form-item"), i = m("el-col"), f = m("el-input"), v = m("jmash-enum-radio"), J = m("jmash-dict-select"), P = m("el-row"), k = m("el-form"), _ = m("el-button"), B = m("el-dialog");
110
+ return K(), A(B, {
108
111
  modelValue: p.value,
109
- "onUpdate:modelValue": a[11] || (a[11] = (t) => p.value = t),
110
- onClose: _
112
+ "onUpdate:modelValue": l[11] || (l[11] = (t) => p.value = t),
113
+ onClose: w
111
114
  }, {
112
115
  footer: s(() => [
113
- K("div", L, [
114
- e(w, { onClick: _ }, {
116
+ G("div", X, [
117
+ e(_, { onClick: w }, {
115
118
  default: s(() => [
116
- v(N(l.$t("common.cancel")), 1)
119
+ $(E(a.$t("common.cancel")), 1)
117
120
  ]),
118
121
  _: 1
119
122
  }),
120
- e(w, {
123
+ e(_, {
121
124
  type: "primary",
122
- onClick: E
125
+ onClick: D
123
126
  }, {
124
127
  default: s(() => [
125
- v(N(l.$t("common.confirm")), 1)
128
+ $(E(a.$t("common.confirm")), 1)
126
129
  ]),
127
130
  _: 1
128
131
  })
@@ -132,9 +135,9 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
132
135
  e(k, {
133
136
  ref_key: "sysUserExtFormRef",
134
137
  ref: U,
135
- model: r(o),
138
+ model: o(r),
136
139
  "label-width": "100px",
137
- rules: C
140
+ rules: I
138
141
  }, {
139
142
  default: s(() => [
140
143
  e(P, null, {
@@ -142,15 +145,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
142
145
  e(i, { span: 12 }, {
143
146
  default: s(() => [
144
147
  e(d, {
145
- label: l.$t("sysUserOps.orgId"),
148
+ label: a.$t("sysUserOps.orgId"),
146
149
  prop: "orgId"
147
150
  }, {
148
151
  default: s(() => [
149
152
  e(n, {
150
- modelValue: r(o).orgId,
151
- "onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
152
- placeholder: l.$t("sysUserOps.orgIdRequired"),
153
- data: r(f).sysOrgBizDict.values,
153
+ modelValue: o(r).orgId,
154
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => o(r).orgId = t),
155
+ placeholder: a.$t("sysUserOps.orgIdRequired"),
156
+ data: o(g).sysOrgBizDict.values,
154
157
  clearable: "",
155
158
  class: "w-full"
156
159
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -163,14 +166,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
163
166
  e(i, { span: 12 }, {
164
167
  default: s(() => [
165
168
  e(d, {
166
- label: l.$t("sysUserOps.realName"),
169
+ label: a.$t("sysUserOps.realName"),
167
170
  prop: "realName"
168
171
  }, {
169
172
  default: s(() => [
170
- e(g, {
171
- modelValue: r(o).realName,
172
- "onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
173
- placeholder: l.$t("sysUserOps.realNameRequired"),
173
+ e(f, {
174
+ modelValue: o(r).realName,
175
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => o(r).realName = t),
176
+ placeholder: a.$t("sysUserOps.realNameRequired"),
174
177
  maxlength: "8",
175
178
  "show-word-limit": "",
176
179
  clearable: ""
@@ -184,18 +187,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
184
187
  e(i, { span: 12 }, {
185
188
  default: s(() => [
186
189
  e(d, {
187
- label: l.$t("sysUserOps.gender"),
190
+ label: a.$t("sysUserOps.gender"),
188
191
  prop: "gender"
189
192
  }, {
190
193
  default: s(() => [
191
- e(I, {
192
- modelValue: r(o).gender,
193
- "onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
194
- clearable: "",
195
- placeholder: l.$t("sysUserOps.genderRequired"),
196
- "enum-type": "jmash.protobuf.Gender",
197
- class: "w-full"
198
- }, null, 8, ["modelValue", "placeholder"])
194
+ e(v, {
195
+ modelValue: o(r).gender,
196
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => o(r).gender = t),
197
+ data: o(g).genderDict.values
198
+ }, null, 8, ["modelValue", "data"])
199
199
  ]),
200
200
  _: 1
201
201
  }, 8, ["label"])
@@ -205,14 +205,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
205
205
  e(i, { span: 12 }, {
206
206
  default: s(() => [
207
207
  e(d, {
208
- label: l.$t("sysUserOps.mobilePhone"),
208
+ label: a.$t("sysUserOps.mobilePhone"),
209
209
  prop: "mobilePhone"
210
210
  }, {
211
211
  default: s(() => [
212
- e(g, {
213
- modelValue: r(o).mobilePhone,
214
- "onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
215
- placeholder: l.$t("sysUserOps.mobilePhoneRequired"),
212
+ e(f, {
213
+ modelValue: o(r).mobilePhone,
214
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => o(r).mobilePhone = t),
215
+ placeholder: a.$t("sysUserOps.mobilePhoneRequired"),
216
216
  maxlength: "11",
217
217
  "show-word-limit": "",
218
218
  clearable: ""
@@ -226,14 +226,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
226
226
  e(i, { span: 12 }, {
227
227
  default: s(() => [
228
228
  e(d, {
229
- label: l.$t("sysUserOps.email"),
229
+ label: a.$t("sysUserOps.email"),
230
230
  prop: "email"
231
231
  }, {
232
232
  default: s(() => [
233
- e(g, {
234
- modelValue: r(o).email,
235
- "onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
236
- placeholder: l.$t("sysUserOps.emailRequired"),
233
+ e(f, {
234
+ modelValue: o(r).email,
235
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => o(r).email = t),
236
+ placeholder: a.$t("sysUserOps.emailRequired"),
237
237
  maxlength: "30",
238
238
  "show-word-limit": "",
239
239
  clearable: ""
@@ -247,14 +247,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
247
247
  e(i, { span: 12 }, {
248
248
  default: s(() => [
249
249
  e(d, {
250
- label: l.$t("sysUserOps.idNo"),
250
+ label: a.$t("sysUserOps.idNo"),
251
251
  prop: "idNo"
252
252
  }, {
253
253
  default: s(() => [
254
- e(g, {
255
- modelValue: r(o).idNo,
256
- "onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
257
- placeholder: l.$t("sysUserOps.idNoRequired"),
254
+ e(f, {
255
+ modelValue: o(r).idNo,
256
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => o(r).idNo = t),
257
+ placeholder: a.$t("sysUserOps.idNoRequired"),
258
258
  maxlength: "18",
259
259
  "show-word-limit": "",
260
260
  clearable: ""
@@ -268,15 +268,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
268
268
  e(i, { span: 12 }, {
269
269
  default: s(() => [
270
270
  e(d, {
271
- label: l.$t("sysUserOps.engineerType"),
271
+ label: a.$t("sysUserOps.engineerType"),
272
272
  prop: "engineerType"
273
273
  }, {
274
274
  default: s(() => [
275
275
  e(n, {
276
- modelValue: r(o).engineerType,
277
- "onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineerType = t),
278
- placeholder: l.$t("sysUserOps.engineerTypeRequired"),
279
- data: r(f).engineerTypeDictEnum.values,
276
+ modelValue: o(r).engineerType,
277
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => o(r).engineerType = t),
278
+ placeholder: a.$t("sysUserOps.engineerTypeRequired"),
279
+ data: o(g).engineerTypeDictEnum.values,
280
280
  clearable: "",
281
281
  class: "w-full"
282
282
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -289,15 +289,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
289
289
  e(i, { span: 12 }, {
290
290
  default: s(() => [
291
291
  e(d, {
292
- label: l.$t("sysUserOps.engineerCertificate"),
292
+ label: a.$t("sysUserOps.engineerCertificate"),
293
293
  prop: "engineerCertificate"
294
294
  }, {
295
295
  default: s(() => [
296
- e(D, {
297
- modelValue: r(o).engineerCertificate,
298
- "onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineerCertificate = t),
299
- placeholder: l.$t("sysUserOps.engineerCertificateRequired"),
300
- "type-code": r(y).DICT_ENGINEER_GRADE,
296
+ e(J, {
297
+ modelValue: o(r).engineerCertificate,
298
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => o(r).engineerCertificate = t),
299
+ placeholder: a.$t("sysUserOps.engineerCertificateRequired"),
300
+ "type-code": o(y).DICT_ENGINEER_GRADE,
301
301
  clearable: "",
302
302
  filterable: "",
303
303
  class: "w-full"
@@ -311,15 +311,15 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
311
311
  e(i, { span: 12 }, {
312
312
  default: s(() => [
313
313
  e(d, {
314
- label: l.$t("sysUserOps.engineerJobMode"),
314
+ label: a.$t("sysUserOps.engineerJobMode"),
315
315
  prop: "engineerJobMode"
316
316
  }, {
317
317
  default: s(() => [
318
318
  e(n, {
319
- modelValue: r(o).engineerJobMode,
320
- "onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).engineerJobMode = t),
321
- placeholder: l.$t("sysUserOps.engineerJobModeRequired"),
322
- data: r(f).engineerJobModeDictEnum.values,
319
+ modelValue: o(r).engineerJobMode,
320
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => o(r).engineerJobMode = t),
321
+ placeholder: a.$t("sysUserOps.engineerJobModeRequired"),
322
+ data: o(g).engineerJobModeDictEnum.values,
323
323
  clearable: "",
324
324
  class: "w-full"
325
325
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -332,14 +332,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
332
332
  e(i, { span: 12 }, {
333
333
  default: s(() => [
334
334
  e(d, {
335
- label: l.$t("sysUserOps.jobStatus"),
335
+ label: a.$t("sysUserOps.jobStatus"),
336
336
  prop: "jobStatus"
337
337
  }, {
338
338
  default: s(() => [
339
- e(J, {
340
- modelValue: r(o).jobStatus,
341
- "onUpdate:modelValue": a[9] || (a[9] = (t) => r(o).jobStatus = t),
342
- data: r(f).jobStatusDictEnum.values
339
+ e(v, {
340
+ modelValue: o(r).jobStatus,
341
+ "onUpdate:modelValue": l[9] || (l[9] = (t) => o(r).jobStatus = t),
342
+ data: o(g).jobStatusDictEnum.values
343
343
  }, null, 8, ["modelValue", "data"])
344
344
  ]),
345
345
  _: 1
@@ -350,14 +350,14 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
350
350
  e(i, { span: 24 }, {
351
351
  default: s(() => [
352
352
  e(d, {
353
- label: l.$t("sysUserOps.engineerSpecialty"),
353
+ label: a.$t("sysUserOps.engineerSpecialty"),
354
354
  prop: "engineerSpecialty"
355
355
  }, {
356
356
  default: s(() => [
357
- e(g, {
358
- modelValue: r(o).engineerSpecialty,
359
- "onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).engineerSpecialty = t),
360
- placeholder: l.$t("sysUserOps.engineerSpecialtyRequired"),
357
+ e(f, {
358
+ modelValue: o(r).engineerSpecialty,
359
+ "onUpdate:modelValue": l[10] || (l[10] = (t) => o(r).engineerSpecialty = t),
360
+ placeholder: a.$t("sysUserOps.engineerSpecialtyRequired"),
361
361
  type: "textarea",
362
362
  autosize: { minRows: 2 },
363
363
  maxlength: "200",
@@ -383,5 +383,5 @@ const L = { class: "dialog-footer" }, x = /* @__PURE__ */ B({
383
383
  }
384
384
  });
385
385
  export {
386
- x as _
386
+ oe as _
387
387
  };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { ElMessage as f } from "element-plus";
4
4
  import { fileApi as w, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-C57850Qg.mjs";
5
+ import { D as I } from "./index-dIcRC4jE.mjs";
6
6
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
8
  __name: "import-upload",
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
155
155
  }, 8, ["modelValue", "title"]);
156
156
  };
157
157
  }
158
- }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-3072267a"]]);
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-f070dd9d"]]);
159
159
  export {
160
160
  se as default
161
161
  };
@@ -2,7 +2,7 @@ import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComp
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { ElMessage as f } from "element-plus";
4
4
  import { fileApi as w, useUserStore as D } from "jmash-core";
5
- import { D as I } from "./index-C57850Qg.mjs";
5
+ import { D as I } from "./index-dIcRC4jE.mjs";
6
6
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
7
  const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
8
8
  __name: "import-upload",
@@ -18,7 +18,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
18
18
  },
19
19
  emits: ["templateDown", "importEvents", "uploadClosed"],
20
20
  setup(_, { emit: U }) {
21
- const { t: g } = L(), b = i(w.uploadUrl()), k = i(w.authHeader()), $ = C({
21
+ const { t: g } = L(), k = i(w.uploadUrl()), b = i(w.authHeader()), $ = C({
22
22
  tenant: D().user.tenant
23
23
  }), E = i(), d = C({
24
24
  tenant: D().user.tenant,
@@ -120,8 +120,8 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
120
120
  ref_key: "uploadRef",
121
121
  ref: E,
122
122
  drag: "",
123
- action: b.value,
124
- headers: k.value,
123
+ action: k.value,
124
+ headers: b.value,
125
125
  data: $,
126
126
  limit: 1,
127
127
  "on-success": q,
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
155
155
  }, 8, ["modelValue", "title"]);
156
156
  };
157
157
  }
158
- }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-bbd878f7"]]);
158
+ }), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-402ba96e"]]);
159
159
  export {
160
160
  se as default
161
161
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as re, ref as U, reactive as z, resolveComponent as i, resolveDirective as ue, openBlock as d, createElementBlock as k, createElementVNode as b, createVNode as a, withCtx as o, withKeys as V, unref as n, createTextVNode as m, toDisplayString as s, withDirectives as c, createBlock as f, isRef as B, createCommentVNode as S, vShow as q } from "vue";
1
+ import { defineComponent as re, ref as U, reactive as B, resolveComponent as i, resolveDirective as ue, openBlock as d, createElementBlock as k, createElementVNode as b, createVNode as a, withCtx as o, withKeys as V, unref as n, createTextVNode as m, toDisplayString as s, withDirectives as c, createBlock as f, isRef as q, createCommentVNode as S, vShow as K } from "vue";
2
2
  import { useTableHooks as ie } from "jmash-core";
3
3
  import { useI18n as de } from "vue-i18n";
4
4
  import { useRouter as me } from "vue-router";
5
- import { D as p, C as K } from "./index-C57850Qg.mjs";
5
+ import { D as p, C as N } from "./index-dIcRC4jE.mjs";
6
6
  import { sysUserExtApi as Q } from "./index.mjs";
7
- import { _ as pe } from "./edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs";
7
+ import { _ as pe } from "./edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs";
8
8
  import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
9
- import be from "./import-upload-CzXWmSM6.mjs";
9
+ import be from "./import-upload-DBk1lPqR.mjs";
10
10
  const ce = { class: "app-container" }, fe = { class: "search-container" }, ve = { key: 0 }, we = ["onClick"], ge = ["onClick"], _e = ["onClick"], De = /* @__PURE__ */ re({
11
11
  __name: "index",
12
12
  setup(je) {
13
13
  const { t: g } = de(), L = me();
14
14
  p.deptBizDict.useValues(), p.jobBizDict.useValues();
15
15
  const r = U({
16
- userType: K.userType.companyManager
16
+ userType: N.userType.companyManager
17
17
  }), {
18
18
  tableHooks: u,
19
19
  multipleTableRef: x,
@@ -91,16 +91,16 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
91
91
  isColumn: !0
92
92
  }
93
93
  ]);
94
- function M(l) {
94
+ function T(l) {
95
95
  l.showEncrypt = !l.showEncrypt;
96
96
  }
97
97
  const y = U({
98
98
  title: g("common.edit"),
99
99
  visible: !1
100
100
  });
101
- let E = z({});
101
+ let E = B({});
102
102
  function O() {
103
- E = z({}), y.value.title = g("common.add"), y.value.visible = !0;
103
+ E = B({}), y.value.title = g("common.add"), y.value.visible = !0;
104
104
  }
105
105
  function G(l) {
106
106
  E.userId = l.userId, y.value.title = g("common.edit"), y.value.visible = !0;
@@ -124,7 +124,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
124
124
  });
125
125
  }
126
126
  function Y(l) {
127
- l.updateMask = "", u.importExcel(l).then(() => {
127
+ l.updateMask = "", l.userType = N.userType.companyManager, u.importExcel(l).then(() => {
128
128
  j.value = !1;
129
129
  });
130
130
  }
@@ -138,7 +138,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
138
138
  l && u.getList();
139
139
  }
140
140
  return u.getList(), (l, t) => {
141
- const D = i("el-input"), h = i("el-form-item"), v = i("el-col"), N = i("jmash-select"), C = i("el-button"), T = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), P = i("el-tag"), R = i("svg-icon"), ae = i("jmash-table"), ne = i("jmash-pagination"), se = i("el-card"), w = ue("hasPerm");
141
+ const D = i("el-input"), h = i("el-form-item"), v = i("el-col"), M = i("jmash-select"), C = i("el-button"), P = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), R = i("el-tag"), z = i("svg-icon"), ae = i("jmash-table"), ne = i("jmash-pagination"), se = i("el-card"), w = ue("hasPerm");
142
142
  return d(), k("div", ce, [
143
143
  b("div", fe, [
144
144
  a(le, {
@@ -148,7 +148,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
148
148
  inline: !0
149
149
  }, {
150
150
  default: o(() => [
151
- a(T, null, {
151
+ a(P, null, {
152
152
  default: o(() => [
153
153
  a(v, { span: 6 }, {
154
154
  default: o(() => [
@@ -178,7 +178,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
178
178
  prop: "deptId"
179
179
  }, {
180
180
  default: o(() => [
181
- a(N, {
181
+ a(M, {
182
182
  modelValue: r.value.deptId,
183
183
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.deptId = e),
184
184
  placeholder: l.$t("sysUserMan.deptIdRequired"),
@@ -199,7 +199,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
199
199
  prop: "jobId"
200
200
  }, {
201
201
  default: o(() => [
202
- a(N, {
202
+ a(M, {
203
203
  modelValue: r.value.jobId,
204
204
  "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.jobId = e),
205
205
  placeholder: l.$t("sysUserMan.jobIdRequired"),
@@ -220,7 +220,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
220
220
  prop: "jobStatus"
221
221
  }, {
222
222
  default: o(() => [
223
- a(N, {
223
+ a(M, {
224
224
  modelValue: r.value.jobStatus,
225
225
  "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.jobStatus = e),
226
226
  placeholder: l.$t("sysUserMan.jobStatusRequired"),
@@ -274,7 +274,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
274
274
  class: "table-container"
275
275
  }, {
276
276
  header: o(() => [
277
- a(T, null, {
277
+ a(P, null, {
278
278
  default: o(() => [
279
279
  a(v, { span: 17 }, {
280
280
  default: o(() => [
@@ -322,7 +322,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
322
322
  ]),
323
323
  a(oe, {
324
324
  modelValue: n(_),
325
- "onUpdate:modelValue": t[12] || (t[12] = (e) => B(_) ? _.value = e : _ = e),
325
+ "onUpdate:modelValue": t[12] || (t[12] = (e) => q(_) ? _.value = e : _ = e),
326
326
  "label-name": "itsmsys/itsm-sys-user-ext"
327
327
  }, null, 8, ["modelValue"])
328
328
  ]),
@@ -336,7 +336,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
336
336
  n(I) > 0 ? (d(), f(ne, {
337
337
  key: 0,
338
338
  total: n(I),
339
- "onUpdate:total": t[13] || (t[13] = (e) => B(I) ? I.value = e : null),
339
+ "onUpdate:total": t[13] || (t[13] = (e) => q(I) ? I.value = e : null),
340
340
  "current-page": r.value.curPage,
341
341
  "onUpdate:currentPage": t[14] || (t[14] = (e) => r.value.curPage = e),
342
342
  "page-size": r.value.pageSize,
@@ -372,7 +372,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
372
372
  ]),
373
373
  jobStatus: o((e) => [
374
374
  b("span", null, [
375
- e.data.row.jobStatus === n(K).jobStatus.working ? (d(), f(P, {
375
+ e.data.row.jobStatus === n(N).jobStatus.working ? (d(), f(R, {
376
376
  key: 0,
377
377
  type: "primary"
378
378
  }, {
@@ -380,7 +380,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
380
380
  m(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
381
381
  ]),
382
382
  _: 2
383
- }, 1024)) : (d(), f(P, {
383
+ }, 1024)) : (d(), f(R, {
384
384
  key: 1,
385
385
  type: "danger"
386
386
  }, {
@@ -393,17 +393,17 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
393
393
  ]),
394
394
  operation: o((e) => [
395
395
  e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), k("span", ve, [
396
- c(a(R, {
396
+ c(a(z, {
397
397
  "icon-class": "close-eye",
398
- onClick: ($) => M(e.data.row)
398
+ onClick: ($) => T(e.data.row)
399
399
  }, null, 8, ["onClick"]), [
400
- [q, !e.data.row.showEncrypt]
400
+ [K, !e.data.row.showEncrypt]
401
401
  ]),
402
- c(a(R, {
402
+ c(a(z, {
403
403
  "icon-class": "eye-open",
404
- onClick: ($) => M(e.data.row)
404
+ onClick: ($) => T(e.data.row)
405
405
  }, null, 8, ["onClick"]), [
406
- [q, e.data.row.showEncrypt]
406
+ [K, e.data.row.showEncrypt]
407
407
  ])
408
408
  ])) : S("", !0),
409
409
  c((d(), k("span", {