xyvcard-itsmsys 0.0.10 → 0.0.12

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 (53) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-DG_Iw1-J.mjs → edit-BSgQ7aTw.mjs} +1 -1
  3. package/dist/{edit-DdUUCXSa.mjs → edit-BSllWdRO.mjs} +1 -1
  4. package/dist/{edit-RSO388mB.mjs → edit-C-Ddf0UV.mjs} +115 -115
  5. package/dist/{edit-BNe0hNw4.mjs → edit-CNw8JPUb.mjs} +108 -108
  6. package/dist/{edit-BqPZHwxi.mjs → edit-Cd4dWFsH.mjs} +1 -1
  7. package/dist/{edit-CyM6IuLb.mjs → edit-aqBMKpoJ.mjs} +118 -118
  8. package/dist/{edit-CwV1OVfe.mjs → edit-q5TFAMBm.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs +463 -0
  11. package/dist/edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs +482 -0
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs → edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs} +79 -56
  13. package/dist/import-upload-BIT504-g.mjs +4 -0
  14. package/dist/import-upload-pZG8yku3.mjs +4 -0
  15. package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +162 -0
  16. package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +162 -0
  17. package/dist/index-B2xwBTw-.mjs +20 -0
  18. package/dist/{index-NugT80P7.mjs → index-BY5Djw_C.mjs} +7 -7
  19. package/dist/{index-CI8Z4rNf.mjs → index-BaixQptZ.mjs} +7 -7
  20. package/dist/index-CoMhbtrg.mjs +449 -0
  21. package/dist/{index-DirPUdCN.mjs → index-Cz9Xj4Mn.mjs} +1 -1
  22. package/dist/{index-CNGaGeE7.mjs → index-DPz8be3T.mjs} +32 -32
  23. package/dist/index-Dno_3GpX.mjs +145 -0
  24. package/dist/{index-CMBtB1kH.mjs → index-DrBtW9Aj.mjs} +185 -134
  25. package/dist/{index-DxILUznW.mjs → index-LOMCvxtf.mjs} +1 -1
  26. package/dist/index.mjs +654 -623
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs → index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs} +41 -34
  28. package/dist/{info-BFZTqoY3.mjs → info-BUDmirQy.mjs} +1 -1
  29. package/dist/{info-DReeRuaA.mjs → info-BivxW-qV.mjs} +1 -1
  30. package/dist/{info-Dilg-bji.mjs → info-Bn-BseIm.mjs} +1 -1
  31. package/dist/{info-C0OHjgoS.mjs → info-C-ga_8K9.mjs} +11 -11
  32. package/dist/{info-DvYUiSRY.mjs → info-C3knY6l_.mjs} +58 -47
  33. package/dist/{info-CXx2899k.mjs → info-D0Pwnmsu.mjs} +71 -60
  34. package/dist/style.css +1 -1
  35. package/dts/api/dict.d.ts +0 -6
  36. package/dts/api/index.d.ts +4 -2
  37. package/dts/api/itsm-sys-org/types.d.ts +0 -2
  38. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -1
  39. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  40. package/dts/api/itsm-sys-user-ext/types.d.ts +15 -2
  41. package/dts/constant.d.ts +14 -0
  42. package/dts/index.d.ts +1 -1
  43. package/dts/lang/itsmsys/zh-cn.d.ts +22 -11
  44. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  45. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  46. package/package.json +4 -4
  47. package/dist/common-B2PCBCJ2.mjs +0 -13
  48. package/dist/edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs +0 -440
  49. package/dist/edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs +0 -438
  50. package/dist/edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs +0 -440
  51. package/dist/index-BRupqW34.mjs +0 -96
  52. package/dist/index-CQ5Bo5a2.mjs +0 -135
  53. package/dist/index-w2SWNZRB.mjs +0 -397
@@ -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 o, 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-Dno_3GpX.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 r = 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, 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();
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(r, l);
100
+ });
101
+ const D = async () => {
102
+ var l;
103
+ await ((l = R.value) == null ? void 0 : l.validate((a) => {
104
+ a && (b.value ? w.update(r).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(r).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 J() {
118
+ r.userPassword = H();
119
+ }
120
+ function _() {
121
+ p.value && (p.value = !1);
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");
125
+ return U(), V(F, {
126
+ modelValue: p.value,
127
+ "onUpdate:modelValue": a[13] || (a[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: D
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: o(r),
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: o(r).orgId,
169
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => o(r).orgId = t),
170
+ placeholder: l.$t("sysUserOps.orgIdRequired"),
171
+ data: o(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: o(r).loginName,
193
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => o(r).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: o(r).realName,
214
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => o(r).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(k, {
234
+ modelValue: o(r).gender,
235
+ "onUpdate:modelValue": a[3] || (a[3] = (t) => o(r).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: o(r).mobilePhone,
256
+ "onUpdate:modelValue": a[4] || (a[4] = (t) => o(r).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: o(r).email,
277
+ "onUpdate:modelValue": a[5] || (a[5] = (t) => o(r).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: o(r).idNo,
298
+ "onUpdate:modelValue": a[6] || (a[6] = (t) => o(r).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: 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,
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: 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,
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: 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,
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: o(r).jobStatus,
383
+ "onUpdate:modelValue": a[10] || (a[10] = (t) => o(r).jobStatus = t),
384
+ data: o(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: o(r).userPassword,
404
+ "onUpdate:modelValue": a[11] || (a[11] = (t) => o(r).userPassword = t),
405
+ clearable: "",
406
+ type: "password",
407
+ "show-password": "",
408
+ placeholder: l.$t("sysUserOps.userPasswordRequired")
409
+ }, {
410
+ append: s(() => [
411
+ e(c, { onClick: J }, {
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: o(r).engineeSpecialty,
435
+ "onUpdate:modelValue": a[12] || (a[12] = (t) => o(r).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
+ };