xyvcard-itsmsys 0.0.12 → 0.0.14

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/dist/{edit-BSgQ7aTw.mjs → edit-BKRcHRhe.mjs} +1 -1
  2. package/dist/{edit-C-Ddf0UV.mjs → edit-BOYD0hK4.mjs} +103 -87
  3. package/dist/{edit-BSllWdRO.mjs → edit-CHMLN0tR.mjs} +1 -1
  4. package/dist/{edit-Cd4dWFsH.mjs → edit-DNMyksDd.mjs} +1 -1
  5. package/dist/{edit-q5TFAMBm.mjs → edit-W7Cqo-_d.mjs} +1 -1
  6. package/dist/{edit-CNw8JPUb.mjs → edit-b2ih9M1u.mjs} +89 -74
  7. package/dist/{edit-aqBMKpoJ.mjs → edit-mVmM-PRk.mjs} +97 -82
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs → edit.vue_vue_type_script_setup_true_lang-CAq_h6E3.mjs} +44 -37
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs → edit.vue_vue_type_script_setup_true_lang-D31iEutB.mjs} +73 -73
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs → edit.vue_vue_type_script_setup_true_lang-DCq50Piw.mjs} +74 -74
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs → edit.vue_vue_type_script_setup_true_lang-hotcXxq3.mjs} +73 -73
  12. package/dist/import-upload-DBaTv04c.mjs +161 -0
  13. package/dist/import-upload-DZJ0GptW.mjs +161 -0
  14. package/dist/index-Cd5F5D4a.mjs +423 -0
  15. package/dist/{index-BaixQptZ.mjs → index-CvZlFuc4.mjs} +63 -61
  16. package/dist/{index-BY5Djw_C.mjs → index-Cy9iOhxs.mjs} +138 -127
  17. package/dist/index-Cz0VExll.mjs +196 -0
  18. package/dist/index-D8h0lcNy.mjs +504 -0
  19. package/dist/{index-LOMCvxtf.mjs → index-XoL9Os_9.mjs} +57 -55
  20. package/dist/{index-Cz9Xj4Mn.mjs → index-qfyel9S8.mjs} +1 -1
  21. package/dist/{index-DrBtW9Aj.mjs → index-uqlBd_1I.mjs} +163 -176
  22. package/dist/index.mjs +128 -124
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs → index.vue_vue_type_script_setup_true_lang-MCS-o6Sy.mjs} +2 -2
  24. package/dist/{info-C3knY6l_.mjs → info-C821AMSV.mjs} +21 -21
  25. package/dist/info-CU4nIMVM.mjs +186 -0
  26. package/dist/{info-BUDmirQy.mjs → info-CXCnXNu4.mjs} +80 -58
  27. package/dist/info-CYDV3va6.mjs +209 -0
  28. package/dist/info-DPIIgRG8.mjs +209 -0
  29. package/dist/{info-D0Pwnmsu.mjs → info-DcUASS45.mjs} +13 -13
  30. package/dist/style.css +1 -1
  31. package/dts/api/dict.d.ts +7 -1
  32. package/dts/api/index.d.ts +6 -4
  33. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  34. package/dts/api/itsm-sys-user-ext/types.d.ts +18 -14
  35. package/dts/constant.d.ts +13 -5
  36. package/dts/lang/itsmsys/en.d.ts +2 -2
  37. package/dts/lang/itsmsys/zh-cn.d.ts +12 -8
  38. package/package.json +1 -1
  39. package/dist/import-upload-BIT504-g.mjs +0 -4
  40. package/dist/import-upload-pZG8yku3.mjs +0 -4
  41. package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +0 -162
  42. package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +0 -162
  43. package/dist/index-CoMhbtrg.mjs +0 -449
  44. package/dist/index-DPz8be3T.mjs +0 -351
  45. package/dist/index-Dno_3GpX.mjs +0 -145
  46. package/dist/info-BivxW-qV.mjs +0 -187
  47. package/dist/info-Bn-BseIm.mjs +0 -187
  48. package/dist/info-C-ga_8K9.mjs +0 -176
@@ -1,9 +1,9 @@
1
- import { defineComponent as G, mergeModels as v, ref as j, useModel as Z, reactive as M, resolveComponent as m, openBlock as U, createBlock as V, withCtx as s, createElementVNode as L, createVNode as e, createTextVNode as h, toDisplayString as O, unref as o, createCommentVNode as P } from "vue";
1
+ import { defineComponent as G, mergeModels as v, ref as j, useModel as Z, reactive as M, resolveComponent as m, openBlock as U, createBlock as V, withCtx as s, createElementVNode as L, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as P } from "vue";
2
2
  import { ElMessage as C } from "element-plus";
3
3
  import { useI18n as X } from "vue-i18n";
4
4
  import { sysUserExtApi as w } from "./index.mjs";
5
5
  import { generateRandomKey as H } from "jmash-core";
6
- import { D as f, C as y } from "./index-Dno_3GpX.mjs";
6
+ import { D as f, C as y } from "./index-Cz0VExll.mjs";
7
7
  const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
8
8
  __name: "edit",
9
9
  props: /* @__PURE__ */ v({
@@ -17,19 +17,19 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
17
17
  modelModifiers: {}
18
18
  }),
19
19
  emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
20
- setup(q, { emit: S }) {
21
- const { t: i } = X(), R = j(), p = Z(q, "modelValue"), $ = S;
20
+ setup(R, { emit: S }) {
21
+ const { t: i } = X(), q = j(), p = Z(R, "modelValue"), $ = S;
22
22
  f.sysOutBizDict.useValues();
23
- let r = M({
23
+ let a = M({
24
24
  requestId: Math.random() * 10 + "",
25
- updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty,engineeCertificate",
25
+ updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineerType,engineerJobMode,engineerSpecialty,engineerCertificate",
26
26
  userType: y.userType.outsourceOps,
27
27
  jobStatus: y.jobStatus.working,
28
- engineeType: y.engineeType.ease_test,
29
- engineeJobMode: y.engineeJobMode.resident
28
+ engineerType: y.engineerType.ease_test,
29
+ engineerJobMode: y.engineerJobMode.resident
30
30
  });
31
- const T = (l, a, n) => {
32
- a === void 0 && n(new Error(i("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || n(new Error(i("sysUserOps.mobilePhoneRequireds"))), n();
31
+ const T = (l, o, n) => {
32
+ o === void 0 && n(new Error(i("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(o) || n(new Error(i("sysUserOps.mobilePhoneRequireds"))), n();
33
33
  }, E = M({
34
34
  realName: [
35
35
  {
@@ -59,17 +59,17 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
59
59
  trigger: "blur"
60
60
  }
61
61
  ],
62
- engineeType: [
62
+ engineerType: [
63
63
  {
64
64
  required: !0,
65
- message: i("sysUserOps.engineeTypeRequired"),
65
+ message: i("sysUserOps.engineerTypeRequired"),
66
66
  trigger: "change"
67
67
  }
68
68
  ],
69
- engineeJobMode: [
69
+ engineerJobMode: [
70
70
  {
71
71
  required: !0,
72
- message: i("sysUserOps.engineeJobModeRequired"),
72
+ message: i("sysUserOps.engineerJobModeRequired"),
73
73
  trigger: "change"
74
74
  }
75
75
  ],
@@ -94,19 +94,19 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
94
94
  trigger: "blur"
95
95
  }
96
96
  ]
97
- }), N = q, I = Object.keys(N.entityKey), b = j(I.length >= 1);
97
+ }), N = R, I = Object.keys(N.entityKey), b = j(I.length >= 1);
98
98
  b.value && w.findById(N.entityKey).then(({ data: l }) => {
99
- Object.assign(r, l);
99
+ Object.assign(a, l), a.gender === "unknown" && (a.gender = "");
100
100
  });
101
- const D = async () => {
101
+ const k = async () => {
102
102
  var l;
103
- await ((l = R.value) == null ? void 0 : l.validate((a) => {
104
- a && (b.value ? w.update(r).then((n) => {
103
+ await ((l = q.value) == null ? void 0 : l.validate((o) => {
104
+ o && (b.value ? w.update(a).then((n) => {
105
105
  console.log(n), n.status === 200 && (C({
106
106
  message: i("common.submitSuccess"),
107
107
  type: "success"
108
108
  }), p.value && (p.value = !1), $("refresh", n.status === 200));
109
- }) : w.create(r).then((n) => {
109
+ }) : w.create(a).then((n) => {
110
110
  console.log(n), n.status === 200 && (C({
111
111
  message: i("common.submitSuccess"),
112
112
  type: "success"
@@ -114,17 +114,17 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
114
114
  }));
115
115
  }));
116
116
  };
117
- function J() {
118
- r.userPassword = H();
117
+ function D() {
118
+ a.userPassword = H();
119
119
  }
120
120
  function _() {
121
121
  p.value && (p.value = !1);
122
122
  }
123
- return (l, a) => {
124
- const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), g = m("el-input"), k = m("jmash-enum-select"), z = m("jmash-dict-select"), B = m("jmash-enum-radio"), c = m("el-button"), A = m("el-row"), K = m("el-form"), F = m("el-dialog");
123
+ return (l, o) => {
124
+ const n = m("jmash-select"), d = m("el-form-item"), u = m("el-col"), g = m("el-input"), J = m("jmash-enum-select"), z = m("jmash-dict-select"), B = m("jmash-enum-radio"), c = m("el-button"), A = m("el-row"), K = m("el-form"), F = m("el-dialog");
125
125
  return U(), V(F, {
126
126
  modelValue: p.value,
127
- "onUpdate:modelValue": a[13] || (a[13] = (t) => p.value = t),
127
+ "onUpdate:modelValue": o[13] || (o[13] = (t) => p.value = t),
128
128
  onClose: _
129
129
  }, {
130
130
  footer: s(() => [
@@ -137,7 +137,7 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
137
137
  }),
138
138
  e(c, {
139
139
  type: "primary",
140
- onClick: D
140
+ onClick: k
141
141
  }, {
142
142
  default: s(() => [
143
143
  h(O(l.$t("common.confirm")), 1)
@@ -149,8 +149,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
149
149
  default: s(() => [
150
150
  e(K, {
151
151
  ref_key: "sysUserExtFormRef",
152
- ref: R,
153
- model: o(r),
152
+ ref: q,
153
+ model: r(a),
154
154
  "label-width": "100px",
155
155
  rules: E
156
156
  }, {
@@ -165,10 +165,10 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
165
165
  }, {
166
166
  default: s(() => [
167
167
  e(n, {
168
- modelValue: o(r).orgId,
169
- "onUpdate:modelValue": a[0] || (a[0] = (t) => o(r).orgId = t),
168
+ modelValue: r(a).orgId,
169
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => r(a).orgId = t),
170
170
  placeholder: l.$t("sysUserOps.orgIdRequired"),
171
- data: o(f).sysOutBizDict.values,
171
+ data: r(f).sysOutBizDict.values,
172
172
  clearable: "",
173
173
  class: "w-full"
174
174
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -189,8 +189,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
189
189
  }, {
190
190
  default: s(() => [
191
191
  e(g, {
192
- modelValue: o(r).loginName,
193
- "onUpdate:modelValue": a[1] || (a[1] = (t) => o(r).loginName = t),
192
+ modelValue: r(a).loginName,
193
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => r(a).loginName = t),
194
194
  clearable: "",
195
195
  placeholder: l.$t("sysUserOps.loginNameRequired"),
196
196
  maxlength: "30",
@@ -210,8 +210,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
210
210
  }, {
211
211
  default: s(() => [
212
212
  e(g, {
213
- modelValue: o(r).realName,
214
- "onUpdate:modelValue": a[2] || (a[2] = (t) => o(r).realName = t),
213
+ modelValue: r(a).realName,
214
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => r(a).realName = t),
215
215
  placeholder: l.$t("sysUserOps.realNameRequired"),
216
216
  maxlength: "8",
217
217
  "show-word-limit": "",
@@ -230,9 +230,9 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
230
230
  prop: "gender"
231
231
  }, {
232
232
  default: s(() => [
233
- e(k, {
234
- modelValue: o(r).gender,
235
- "onUpdate:modelValue": a[3] || (a[3] = (t) => o(r).gender = t),
233
+ e(J, {
234
+ modelValue: r(a).gender,
235
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => r(a).gender = t),
236
236
  clearable: "",
237
237
  placeholder: l.$t("sysUserOps.genderRequired"),
238
238
  "enum-type": "jmash.protobuf.Gender",
@@ -252,8 +252,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
252
252
  }, {
253
253
  default: s(() => [
254
254
  e(g, {
255
- modelValue: o(r).mobilePhone,
256
- "onUpdate:modelValue": a[4] || (a[4] = (t) => o(r).mobilePhone = t),
255
+ modelValue: r(a).mobilePhone,
256
+ "onUpdate:modelValue": o[4] || (o[4] = (t) => r(a).mobilePhone = t),
257
257
  placeholder: l.$t("sysUserOps.mobilePhoneRequired"),
258
258
  maxlength: "11",
259
259
  "show-word-limit": "",
@@ -273,8 +273,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
273
273
  }, {
274
274
  default: s(() => [
275
275
  e(g, {
276
- modelValue: o(r).email,
277
- "onUpdate:modelValue": a[5] || (a[5] = (t) => o(r).email = t),
276
+ modelValue: r(a).email,
277
+ "onUpdate:modelValue": o[5] || (o[5] = (t) => r(a).email = t),
278
278
  placeholder: l.$t("sysUserOps.emailRequired"),
279
279
  maxlength: "30",
280
280
  "show-word-limit": "",
@@ -294,8 +294,8 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
294
294
  }, {
295
295
  default: s(() => [
296
296
  e(g, {
297
- modelValue: o(r).idNo,
298
- "onUpdate:modelValue": a[6] || (a[6] = (t) => o(r).idNo = t),
297
+ modelValue: r(a).idNo,
298
+ "onUpdate:modelValue": o[6] || (o[6] = (t) => r(a).idNo = t),
299
299
  placeholder: l.$t("sysUserOps.idNoRequired"),
300
300
  maxlength: "18",
301
301
  "show-word-limit": "",
@@ -310,15 +310,15 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
310
310
  e(u, { span: 12 }, {
311
311
  default: s(() => [
312
312
  e(d, {
313
- label: l.$t("sysUserOps.engineeType"),
314
- prop: "engineeType"
313
+ label: l.$t("sysUserOps.engineerType"),
314
+ prop: "engineerType"
315
315
  }, {
316
316
  default: s(() => [
317
317
  e(n, {
318
- modelValue: o(r).engineeType,
319
- "onUpdate:modelValue": a[7] || (a[7] = (t) => o(r).engineeType = t),
320
- placeholder: l.$t("sysUserOps.engineeTypeRequired"),
321
- data: o(f).engineeTypeDictEnum.values,
318
+ modelValue: r(a).engineerType,
319
+ "onUpdate:modelValue": o[7] || (o[7] = (t) => r(a).engineerType = t),
320
+ placeholder: l.$t("sysUserOps.engineerTypeRequired"),
321
+ data: r(f).engineerTypeDictEnum.values,
322
322
  clearable: "",
323
323
  class: "w-full"
324
324
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -331,15 +331,15 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
331
331
  e(u, { span: 12 }, {
332
332
  default: s(() => [
333
333
  e(d, {
334
- label: l.$t("sysUserOps.engineeCertificate"),
335
- prop: "engineeCertificate"
334
+ label: l.$t("sysUserOps.engineerCertificate"),
335
+ prop: "engineerCertificate"
336
336
  }, {
337
337
  default: s(() => [
338
338
  e(z, {
339
- modelValue: o(r).engineeCertificate,
340
- "onUpdate:modelValue": a[8] || (a[8] = (t) => o(r).engineeCertificate = t),
341
- placeholder: l.$t("sysUserOps.engineeCertificateRequired"),
342
- "type-code": o(y).DICT_ENGINEE_GRADE,
339
+ modelValue: r(a).engineerCertificate,
340
+ "onUpdate:modelValue": o[8] || (o[8] = (t) => r(a).engineerCertificate = t),
341
+ placeholder: l.$t("sysUserOps.engineerCertificateRequired"),
342
+ "type-code": r(y).DICT_ENGINEER_GRADE,
343
343
  clearable: "",
344
344
  filterable: "",
345
345
  class: "w-full"
@@ -353,15 +353,15 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
353
353
  e(u, { span: 12 }, {
354
354
  default: s(() => [
355
355
  e(d, {
356
- label: l.$t("sysUserOps.engineeJobMode"),
357
- prop: "engineeJobMode"
356
+ label: l.$t("sysUserOps.engineerJobMode"),
357
+ prop: "engineerJobMode"
358
358
  }, {
359
359
  default: s(() => [
360
360
  e(n, {
361
- modelValue: o(r).engineeJobMode,
362
- "onUpdate:modelValue": a[9] || (a[9] = (t) => o(r).engineeJobMode = t),
363
- placeholder: l.$t("sysUserOps.engineeJobModeRequired"),
364
- data: o(f).engineeJobModeDictEnum.values,
361
+ modelValue: r(a).engineerJobMode,
362
+ "onUpdate:modelValue": o[9] || (o[9] = (t) => r(a).engineerJobMode = t),
363
+ placeholder: l.$t("sysUserOps.engineerJobModeRequired"),
364
+ data: r(f).engineerJobModeDictEnum.values,
365
365
  clearable: "",
366
366
  class: "w-full"
367
367
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -379,9 +379,9 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
379
379
  }, {
380
380
  default: s(() => [
381
381
  e(B, {
382
- modelValue: o(r).jobStatus,
383
- "onUpdate:modelValue": a[10] || (a[10] = (t) => o(r).jobStatus = t),
384
- data: o(f).jobStatusDictEnum.values
382
+ modelValue: r(a).jobStatus,
383
+ "onUpdate:modelValue": o[10] || (o[10] = (t) => r(a).jobStatus = t),
384
+ data: r(f).jobStatusDictEnum.values
385
385
  }, null, 8, ["modelValue", "data"])
386
386
  ]),
387
387
  _: 1
@@ -400,15 +400,15 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
400
400
  }, {
401
401
  default: s(() => [
402
402
  e(g, {
403
- modelValue: o(r).userPassword,
404
- "onUpdate:modelValue": a[11] || (a[11] = (t) => o(r).userPassword = t),
403
+ modelValue: r(a).userPassword,
404
+ "onUpdate:modelValue": o[11] || (o[11] = (t) => r(a).userPassword = t),
405
405
  clearable: "",
406
406
  type: "password",
407
407
  "show-password": "",
408
408
  placeholder: l.$t("sysUserOps.userPasswordRequired")
409
409
  }, {
410
410
  append: s(() => [
411
- e(c, { onClick: J }, {
411
+ e(c, { onClick: D }, {
412
412
  default: s(() => [
413
413
  h(O(l.$t("sysUserOps.randomPwd")), 1)
414
414
  ]),
@@ -426,14 +426,14 @@ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
426
426
  e(u, { span: 24 }, {
427
427
  default: s(() => [
428
428
  e(d, {
429
- label: l.$t("sysUserOps.engineeSpecialty"),
430
- prop: "engineeSpecialty"
429
+ label: l.$t("sysUserOps.engineerSpecialty"),
430
+ prop: "engineerSpecialty"
431
431
  }, {
432
432
  default: s(() => [
433
433
  e(g, {
434
- modelValue: o(r).engineeSpecialty,
435
- "onUpdate:modelValue": a[12] || (a[12] = (t) => o(r).engineeSpecialty = t),
436
- placeholder: l.$t("sysUserOps.engineeSpecialtyRequired"),
434
+ modelValue: r(a).engineerSpecialty,
435
+ "onUpdate:modelValue": o[12] || (o[12] = (t) => r(a).engineerSpecialty = t),
436
+ placeholder: l.$t("sysUserOps.engineerSpecialtyRequired"),
437
437
  type: "textarea",
438
438
  autosize: { minRows: 2 },
439
439
  maxlength: "200",