xyvcard-itsmsys 0.0.11 → 0.0.13

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 (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -0,0 +1,463 @@
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
+ import { ElMessage as C } from "element-plus";
3
+ import { useI18n as X } from "vue-i18n";
4
+ import { sysUserExtApi as w } from "./index.mjs";
5
+ import { generateRandomKey as H } from "jmash-core";
6
+ import { D as f, C as y } from "./index-B4M6ZC7N.mjs";
7
+ const Q = { class: "dialog-footer" }, ae = /* @__PURE__ */ G({
8
+ __name: "edit",
9
+ props: /* @__PURE__ */ v({
10
+ entityKey: {
11
+ type: Object,
12
+ default: () => {
13
+ }
14
+ }
15
+ }, {
16
+ modelValue: { type: Boolean },
17
+ modelModifiers: {}
18
+ }),
19
+ emits: /* @__PURE__ */ v(["refresh"], ["update:modelValue"]),
20
+ setup(q, { emit: S }) {
21
+ const { t: i } = X(), R = j(), p = Z(q, "modelValue"), $ = S;
22
+ f.sysOrgBizDict.useValues();
23
+ let a = M({
24
+ requestId: Math.random() * 10 + "",
25
+ updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty,engineeCertificate",
26
+ userType: y.userType.companyOps,
27
+ jobStatus: y.jobStatus.working,
28
+ engineeType: y.engineeType.ease_test,
29
+ engineeJobMode: y.engineeJobMode.resident
30
+ });
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
+ }, E = M({
34
+ realName: [
35
+ {
36
+ required: !0,
37
+ message: i("sysUserOps.realNameRequired"),
38
+ trigger: "blur"
39
+ }
40
+ ],
41
+ mobilePhone: [
42
+ {
43
+ required: !0,
44
+ trigger: "blur",
45
+ validator: T
46
+ }
47
+ ],
48
+ email: [
49
+ {
50
+ pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
51
+ message: i("sysUserOps.emailRequireds"),
52
+ trigger: "blur"
53
+ }
54
+ ],
55
+ idNo: [
56
+ {
57
+ 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)$/,
58
+ message: i("sysUserOps.idNoLengthRequired"),
59
+ trigger: "blur"
60
+ }
61
+ ],
62
+ engineeType: [
63
+ {
64
+ required: !0,
65
+ message: i("sysUserOps.engineeTypeRequired"),
66
+ trigger: "change"
67
+ }
68
+ ],
69
+ engineeJobMode: [
70
+ {
71
+ required: !0,
72
+ message: i("sysUserOps.engineeJobModeRequired"),
73
+ trigger: "change"
74
+ }
75
+ ],
76
+ orgId: [
77
+ {
78
+ required: !0,
79
+ message: i("sysUserOps.orgIdRequired"),
80
+ trigger: "change"
81
+ }
82
+ ],
83
+ userPassword: [
84
+ {
85
+ required: !0,
86
+ message: i("sysUserOps.userPasswordRequired"),
87
+ trigger: "blur"
88
+ }
89
+ ],
90
+ loginName: [
91
+ {
92
+ required: !0,
93
+ message: i("sysUserOps.loginNameRequired"),
94
+ trigger: "blur"
95
+ }
96
+ ]
97
+ }), N = q, I = Object.keys(N.entityKey), b = j(I.length >= 1);
98
+ b.value && w.findById(N.entityKey).then(({ data: l }) => {
99
+ Object.assign(a, l), a.gender === "unknown" && (a.gender = "");
100
+ });
101
+ const k = async () => {
102
+ var l;
103
+ await ((l = R.value) == null ? void 0 : l.validate((o) => {
104
+ o && (b.value ? w.update(a).then((n) => {
105
+ console.log(n), n.status === 200 && (C({
106
+ message: i("common.submitSuccess"),
107
+ type: "success"
108
+ }), p.value && (p.value = !1), $("refresh", n.status === 200));
109
+ }) : w.create(a).then((n) => {
110
+ console.log(n), n.status === 200 && (C({
111
+ message: i("common.submitSuccess"),
112
+ type: "success"
113
+ }), p.value && (p.value = !1), $("refresh", n.status === 200));
114
+ }));
115
+ }));
116
+ };
117
+ function D() {
118
+ a.userPassword = H();
119
+ }
120
+ function _() {
121
+ p.value && (p.value = !1);
122
+ }
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
+ return U(), V(F, {
126
+ modelValue: p.value,
127
+ "onUpdate:modelValue": o[13] || (o[13] = (t) => p.value = t),
128
+ onClose: _
129
+ }, {
130
+ footer: s(() => [
131
+ L("div", Q, [
132
+ e(c, { onClick: _ }, {
133
+ default: s(() => [
134
+ h(O(l.$t("common.cancel")), 1)
135
+ ]),
136
+ _: 1
137
+ }),
138
+ e(c, {
139
+ type: "primary",
140
+ onClick: k
141
+ }, {
142
+ default: s(() => [
143
+ h(O(l.$t("common.confirm")), 1)
144
+ ]),
145
+ _: 1
146
+ })
147
+ ])
148
+ ]),
149
+ default: s(() => [
150
+ e(K, {
151
+ ref_key: "sysUserExtFormRef",
152
+ ref: R,
153
+ model: r(a),
154
+ "label-width": "100px",
155
+ rules: E
156
+ }, {
157
+ default: s(() => [
158
+ e(A, null, {
159
+ default: s(() => [
160
+ e(u, { span: 12 }, {
161
+ default: s(() => [
162
+ e(d, {
163
+ label: l.$t("sysUserOps.orgId"),
164
+ prop: "orgId"
165
+ }, {
166
+ default: s(() => [
167
+ e(n, {
168
+ modelValue: r(a).orgId,
169
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => r(a).orgId = t),
170
+ placeholder: l.$t("sysUserOps.orgIdRequired"),
171
+ data: r(f).sysOrgBizDict.values,
172
+ clearable: "",
173
+ class: "w-full"
174
+ }, null, 8, ["modelValue", "placeholder", "data"])
175
+ ]),
176
+ _: 1
177
+ }, 8, ["label"])
178
+ ]),
179
+ _: 1
180
+ }),
181
+ b.value ? P("", !0) : (U(), V(u, {
182
+ key: 0,
183
+ span: 12
184
+ }, {
185
+ default: s(() => [
186
+ e(d, {
187
+ label: l.$t("sysUserOps.loginName"),
188
+ prop: "loginName"
189
+ }, {
190
+ default: s(() => [
191
+ e(g, {
192
+ modelValue: r(a).loginName,
193
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => r(a).loginName = t),
194
+ clearable: "",
195
+ placeholder: l.$t("sysUserOps.loginNameRequired"),
196
+ maxlength: "30",
197
+ "show-word-limit": ""
198
+ }, null, 8, ["modelValue", "placeholder"])
199
+ ]),
200
+ _: 1
201
+ }, 8, ["label"])
202
+ ]),
203
+ _: 1
204
+ })),
205
+ e(u, { span: 12 }, {
206
+ default: s(() => [
207
+ e(d, {
208
+ label: l.$t("sysUserOps.realName"),
209
+ prop: "realName"
210
+ }, {
211
+ default: s(() => [
212
+ e(g, {
213
+ modelValue: r(a).realName,
214
+ "onUpdate:modelValue": o[2] || (o[2] = (t) => r(a).realName = t),
215
+ placeholder: l.$t("sysUserOps.realNameRequired"),
216
+ maxlength: "8",
217
+ "show-word-limit": "",
218
+ clearable: ""
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ }),
226
+ e(u, { span: 12 }, {
227
+ default: s(() => [
228
+ e(d, {
229
+ label: l.$t("sysUserOps.gender"),
230
+ prop: "gender"
231
+ }, {
232
+ default: s(() => [
233
+ e(J, {
234
+ modelValue: r(a).gender,
235
+ "onUpdate:modelValue": o[3] || (o[3] = (t) => r(a).gender = t),
236
+ clearable: "",
237
+ placeholder: l.$t("sysUserOps.genderRequired"),
238
+ "enum-type": "jmash.protobuf.Gender",
239
+ class: "w-full"
240
+ }, null, 8, ["modelValue", "placeholder"])
241
+ ]),
242
+ _: 1
243
+ }, 8, ["label"])
244
+ ]),
245
+ _: 1
246
+ }),
247
+ e(u, { span: 12 }, {
248
+ default: s(() => [
249
+ e(d, {
250
+ label: l.$t("sysUserOps.mobilePhone"),
251
+ prop: "mobilePhone"
252
+ }, {
253
+ default: s(() => [
254
+ e(g, {
255
+ modelValue: r(a).mobilePhone,
256
+ "onUpdate:modelValue": o[4] || (o[4] = (t) => r(a).mobilePhone = t),
257
+ placeholder: l.$t("sysUserOps.mobilePhoneRequired"),
258
+ maxlength: "11",
259
+ "show-word-limit": "",
260
+ clearable: ""
261
+ }, null, 8, ["modelValue", "placeholder"])
262
+ ]),
263
+ _: 1
264
+ }, 8, ["label"])
265
+ ]),
266
+ _: 1
267
+ }),
268
+ e(u, { span: 12 }, {
269
+ default: s(() => [
270
+ e(d, {
271
+ label: l.$t("sysUserOps.email"),
272
+ prop: "email"
273
+ }, {
274
+ default: s(() => [
275
+ e(g, {
276
+ modelValue: r(a).email,
277
+ "onUpdate:modelValue": o[5] || (o[5] = (t) => r(a).email = t),
278
+ placeholder: l.$t("sysUserOps.emailRequired"),
279
+ maxlength: "30",
280
+ "show-word-limit": "",
281
+ clearable: ""
282
+ }, null, 8, ["modelValue", "placeholder"])
283
+ ]),
284
+ _: 1
285
+ }, 8, ["label"])
286
+ ]),
287
+ _: 1
288
+ }),
289
+ e(u, { span: 12 }, {
290
+ default: s(() => [
291
+ e(d, {
292
+ label: l.$t("sysUserOps.idNo"),
293
+ prop: "idNo"
294
+ }, {
295
+ default: s(() => [
296
+ e(g, {
297
+ modelValue: r(a).idNo,
298
+ "onUpdate:modelValue": o[6] || (o[6] = (t) => r(a).idNo = t),
299
+ placeholder: l.$t("sysUserOps.idNoRequired"),
300
+ maxlength: "18",
301
+ "show-word-limit": "",
302
+ clearable: ""
303
+ }, null, 8, ["modelValue", "placeholder"])
304
+ ]),
305
+ _: 1
306
+ }, 8, ["label"])
307
+ ]),
308
+ _: 1
309
+ }),
310
+ e(u, { span: 12 }, {
311
+ default: s(() => [
312
+ e(d, {
313
+ label: l.$t("sysUserOps.engineeType"),
314
+ prop: "engineeType"
315
+ }, {
316
+ default: s(() => [
317
+ e(n, {
318
+ modelValue: r(a).engineeType,
319
+ "onUpdate:modelValue": o[7] || (o[7] = (t) => r(a).engineeType = t),
320
+ placeholder: l.$t("sysUserOps.engineeTypeRequired"),
321
+ data: r(f).engineeTypeDictEnum.values,
322
+ clearable: "",
323
+ class: "w-full"
324
+ }, null, 8, ["modelValue", "placeholder", "data"])
325
+ ]),
326
+ _: 1
327
+ }, 8, ["label"])
328
+ ]),
329
+ _: 1
330
+ }),
331
+ e(u, { span: 12 }, {
332
+ default: s(() => [
333
+ e(d, {
334
+ label: l.$t("sysUserOps.engineeCertificate"),
335
+ prop: "engineeCertificate"
336
+ }, {
337
+ default: s(() => [
338
+ e(z, {
339
+ modelValue: r(a).engineeCertificate,
340
+ "onUpdate:modelValue": o[8] || (o[8] = (t) => r(a).engineeCertificate = t),
341
+ placeholder: l.$t("sysUserOps.engineeCertificateRequired"),
342
+ "type-code": r(y).DICT_ENGINEE_GRADE,
343
+ clearable: "",
344
+ filterable: "",
345
+ class: "w-full"
346
+ }, null, 8, ["modelValue", "placeholder", "type-code"])
347
+ ]),
348
+ _: 1
349
+ }, 8, ["label"])
350
+ ]),
351
+ _: 1
352
+ }),
353
+ e(u, { span: 12 }, {
354
+ default: s(() => [
355
+ e(d, {
356
+ label: l.$t("sysUserOps.engineeJobMode"),
357
+ prop: "engineeJobMode"
358
+ }, {
359
+ default: s(() => [
360
+ e(n, {
361
+ modelValue: r(a).engineeJobMode,
362
+ "onUpdate:modelValue": o[9] || (o[9] = (t) => r(a).engineeJobMode = t),
363
+ placeholder: l.$t("sysUserOps.engineeJobModeRequired"),
364
+ data: r(f).engineeJobModeDictEnum.values,
365
+ clearable: "",
366
+ class: "w-full"
367
+ }, null, 8, ["modelValue", "placeholder", "data"])
368
+ ]),
369
+ _: 1
370
+ }, 8, ["label"])
371
+ ]),
372
+ _: 1
373
+ }),
374
+ e(u, { span: 12 }, {
375
+ default: s(() => [
376
+ e(d, {
377
+ label: l.$t("sysUserOps.jobStatus"),
378
+ prop: "jobStatus"
379
+ }, {
380
+ default: s(() => [
381
+ e(B, {
382
+ modelValue: r(a).jobStatus,
383
+ "onUpdate:modelValue": o[10] || (o[10] = (t) => r(a).jobStatus = t),
384
+ data: r(f).jobStatusDictEnum.values
385
+ }, null, 8, ["modelValue", "data"])
386
+ ]),
387
+ _: 1
388
+ }, 8, ["label"])
389
+ ]),
390
+ _: 1
391
+ }),
392
+ b.value ? P("", !0) : (U(), V(u, {
393
+ key: 1,
394
+ span: 12
395
+ }, {
396
+ default: s(() => [
397
+ e(d, {
398
+ label: l.$t("sysUserOps.userPassword"),
399
+ prop: "userPassword"
400
+ }, {
401
+ default: s(() => [
402
+ e(g, {
403
+ modelValue: r(a).userPassword,
404
+ "onUpdate:modelValue": o[11] || (o[11] = (t) => r(a).userPassword = t),
405
+ clearable: "",
406
+ type: "password",
407
+ "show-password": "",
408
+ placeholder: l.$t("sysUserOps.userPasswordRequired")
409
+ }, {
410
+ append: s(() => [
411
+ e(c, { onClick: D }, {
412
+ default: s(() => [
413
+ h(O(l.$t("sysUserOps.randomPwd")), 1)
414
+ ]),
415
+ _: 1
416
+ })
417
+ ]),
418
+ _: 1
419
+ }, 8, ["modelValue", "placeholder"])
420
+ ]),
421
+ _: 1
422
+ }, 8, ["label"])
423
+ ]),
424
+ _: 1
425
+ })),
426
+ e(u, { span: 24 }, {
427
+ default: s(() => [
428
+ e(d, {
429
+ label: l.$t("sysUserOps.engineeSpecialty"),
430
+ prop: "engineeSpecialty"
431
+ }, {
432
+ default: s(() => [
433
+ e(g, {
434
+ modelValue: r(a).engineeSpecialty,
435
+ "onUpdate:modelValue": o[12] || (o[12] = (t) => r(a).engineeSpecialty = t),
436
+ placeholder: l.$t("sysUserOps.engineeSpecialtyRequired"),
437
+ type: "textarea",
438
+ autosize: { minRows: 2 },
439
+ maxlength: "200",
440
+ "show-word-limit": "",
441
+ clearable: ""
442
+ }, null, 8, ["modelValue", "placeholder"])
443
+ ]),
444
+ _: 1
445
+ }, 8, ["label"])
446
+ ]),
447
+ _: 1
448
+ })
449
+ ]),
450
+ _: 1
451
+ })
452
+ ]),
453
+ _: 1
454
+ }, 8, ["model", "rules"])
455
+ ]),
456
+ _: 1
457
+ }, 8, ["modelValue"]);
458
+ };
459
+ }
460
+ });
461
+ export {
462
+ ae as _
463
+ };