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
@@ -1,440 +0,0 @@
1
- import { defineComponent as H, mergeModels as M, ref as V, useModel as G, reactive as S, resolveComponent as i, openBlock as b, createBlock as c, withCtx as l, createElementVNode as j, createVNode as e, createTextVNode as h, toDisplayString as O, unref as r, createCommentVNode as L } from "vue";
2
- import { ElMessage as I } from "element-plus";
3
- import { useI18n as X } from "vue-i18n";
4
- import { sysUserExtApi as w } from "./index.mjs";
5
- import { g as Q } from "./common-B2PCBCJ2.mjs";
6
- import { D as f, C as W } from "./index-CQ5Bo5a2.mjs";
7
- const Y = { class: "dialog-footer" }, re = /* @__PURE__ */ H({
8
- __name: "edit",
9
- props: /* @__PURE__ */ M({
10
- entityKey: {
11
- type: Object,
12
- default: () => {
13
- }
14
- }
15
- }, {
16
- modelValue: { type: Boolean },
17
- modelModifiers: {}
18
- }),
19
- emits: /* @__PURE__ */ M(["refresh"], ["update:modelValue"]),
20
- setup(q, { emit: T }) {
21
- const { t: n } = X(), R = V(), m = G(q, "modelValue"), $ = T, y = V(!1);
22
- f.sysOutBizDict.useValues();
23
- let o = S({
24
- requestId: Math.random() * 10 + "",
25
- updateMask: "orgId,realName,gender,mobilePhone,email,idNo,jobStatus,engineeType,engineeJobMode,engineeSpecialty",
26
- userType: W.userType.outsourceOps
27
- });
28
- const k = (s, a, d) => {
29
- a === void 0 && d(new Error(n("sysUserOps.mobilePhoneRequired"))), /^1[3|4|5|6|7|8|9][0-9]\d{8}$/.test(a) || d(new Error(n("sysUserOps.mobilePhoneRequireds"))), d();
30
- }, C = S({
31
- realName: [
32
- {
33
- required: !0,
34
- message: n("sysUserOps.realNameRequired"),
35
- trigger: "blur"
36
- }
37
- ],
38
- gender: [
39
- {
40
- required: !0,
41
- message: n("sysUserOps.genderRequired"),
42
- trigger: "change"
43
- }
44
- ],
45
- mobilePhone: [
46
- {
47
- required: !0,
48
- trigger: "blur",
49
- validator: k
50
- }
51
- ],
52
- email: [
53
- {
54
- pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
55
- message: n("sysUserOps.emailRequireds"),
56
- trigger: "blur"
57
- }
58
- ],
59
- idNo: [
60
- {
61
- 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)$/,
62
- message: n("sysUserOps.idNoLengthRequired"),
63
- trigger: "blur"
64
- }
65
- ],
66
- jobStatus: [
67
- {
68
- required: !0,
69
- message: n("sysUserOps.jobStatusRequired"),
70
- trigger: "change"
71
- }
72
- ],
73
- engineeType: [
74
- {
75
- required: !0,
76
- message: n("sysUserOps.engineeTypeRequired"),
77
- trigger: "change"
78
- }
79
- ],
80
- engineeJobMode: [
81
- {
82
- required: !0,
83
- message: n("sysUserOps.engineeJobModeRequired"),
84
- trigger: "change"
85
- }
86
- ],
87
- orgId: [
88
- {
89
- required: !0,
90
- message: n("sysUserOps.orgIdRequired"),
91
- trigger: "change"
92
- }
93
- ],
94
- userPassword: [
95
- {
96
- required: !0,
97
- message: n("sysUserOps.userPasswordRequired"),
98
- trigger: "blur"
99
- }
100
- ]
101
- }), _ = q, E = Object.keys(_.entityKey), v = V(E.length >= 1);
102
- v.value && w.findById(_.entityKey).then(({ data: s }) => {
103
- Object.assign(o, s);
104
- });
105
- const D = async () => {
106
- var s;
107
- await ((s = R.value) == null ? void 0 : s.validate((a) => {
108
- a && (v.value ? w.update(o).then((d) => {
109
- console.log(d), d.status === 200 && (I({
110
- message: n("common.submitSuccess"),
111
- type: "success"
112
- }), m.value && (m.value = !1), $("refresh", d.status === 200));
113
- }) : w.create(o).then((d) => {
114
- console.log(d), d.status === 200 && (I({
115
- message: n("common.submitSuccess"),
116
- type: "success"
117
- }), m.value && (m.value = !1), $("refresh", d.status === 200));
118
- }));
119
- }));
120
- };
121
- function J() {
122
- o.userPassword = Q();
123
- }
124
- function N() {
125
- m.value && (m.value = !1);
126
- }
127
- return (s, a) => {
128
- const d = i("jmash-select"), u = i("el-form-item"), p = i("el-col"), g = i("el-input"), z = i("jmash-enum-select"), U = i("el-button"), B = i("View"), P = i("el-icon"), A = i("Hide"), K = i("el-row"), F = i("el-form"), Z = i("el-dialog");
129
- return b(), c(Z, {
130
- modelValue: m.value,
131
- "onUpdate:modelValue": a[12] || (a[12] = (t) => m.value = t),
132
- onClose: N
133
- }, {
134
- footer: l(() => [
135
- j("div", Y, [
136
- e(U, { onClick: N }, {
137
- default: l(() => [
138
- h(O(s.$t("common.cancel")), 1)
139
- ]),
140
- _: 1
141
- }),
142
- e(U, {
143
- type: "primary",
144
- onClick: D
145
- }, {
146
- default: l(() => [
147
- h(O(s.$t("common.confirm")), 1)
148
- ]),
149
- _: 1
150
- })
151
- ])
152
- ]),
153
- default: l(() => [
154
- e(F, {
155
- ref_key: "sysUserExtFormRef",
156
- ref: R,
157
- model: r(o),
158
- "label-width": "100px",
159
- rules: C
160
- }, {
161
- default: l(() => [
162
- e(K, null, {
163
- default: l(() => [
164
- e(p, { span: 12 }, {
165
- default: l(() => [
166
- e(u, {
167
- label: s.$t("sysUserOps.orgId"),
168
- prop: "orgId"
169
- }, {
170
- default: l(() => [
171
- e(d, {
172
- modelValue: r(o).orgId,
173
- "onUpdate:modelValue": a[0] || (a[0] = (t) => r(o).orgId = t),
174
- placeholder: s.$t("sysUserOps.orgIdRequired"),
175
- data: r(f).sysOutBizDict.values,
176
- clearable: "",
177
- class: "w-full"
178
- }, null, 8, ["modelValue", "placeholder", "data"])
179
- ]),
180
- _: 1
181
- }, 8, ["label"])
182
- ]),
183
- _: 1
184
- }),
185
- e(p, { span: 12 }, {
186
- default: l(() => [
187
- e(u, {
188
- label: s.$t("sysUserOps.realName"),
189
- prop: "realName"
190
- }, {
191
- default: l(() => [
192
- e(g, {
193
- modelValue: r(o).realName,
194
- "onUpdate:modelValue": a[1] || (a[1] = (t) => r(o).realName = t),
195
- placeholder: s.$t("sysUserOps.realNameRequired"),
196
- maxlength: "8",
197
- "show-word-limit": "",
198
- clearable: ""
199
- }, null, 8, ["modelValue", "placeholder"])
200
- ]),
201
- _: 1
202
- }, 8, ["label"])
203
- ]),
204
- _: 1
205
- }),
206
- e(p, { span: 12 }, {
207
- default: l(() => [
208
- e(u, {
209
- label: s.$t("sysUserOps.gender"),
210
- prop: "gender"
211
- }, {
212
- default: l(() => [
213
- e(z, {
214
- modelValue: r(o).gender,
215
- "onUpdate:modelValue": a[2] || (a[2] = (t) => r(o).gender = t),
216
- clearable: "",
217
- placeholder: s.$t("sysUserOps.genderRequired"),
218
- "enum-type": "jmash.protobuf.Gender",
219
- class: "w-full"
220
- }, null, 8, ["modelValue", "placeholder"])
221
- ]),
222
- _: 1
223
- }, 8, ["label"])
224
- ]),
225
- _: 1
226
- }),
227
- e(p, { span: 12 }, {
228
- default: l(() => [
229
- e(u, {
230
- label: s.$t("sysUserOps.mobilePhone"),
231
- prop: "mobilePhone"
232
- }, {
233
- default: l(() => [
234
- e(g, {
235
- modelValue: r(o).mobilePhone,
236
- "onUpdate:modelValue": a[3] || (a[3] = (t) => r(o).mobilePhone = t),
237
- placeholder: s.$t("sysUserOps.mobilePhoneRequired"),
238
- maxlength: "11",
239
- "show-word-limit": "",
240
- clearable: ""
241
- }, null, 8, ["modelValue", "placeholder"])
242
- ]),
243
- _: 1
244
- }, 8, ["label"])
245
- ]),
246
- _: 1
247
- }),
248
- e(p, { span: 12 }, {
249
- default: l(() => [
250
- e(u, {
251
- label: s.$t("sysUserOps.email"),
252
- prop: "email"
253
- }, {
254
- default: l(() => [
255
- e(g, {
256
- modelValue: r(o).email,
257
- "onUpdate:modelValue": a[4] || (a[4] = (t) => r(o).email = t),
258
- placeholder: s.$t("sysUserOps.emailRequired"),
259
- maxlength: "30",
260
- "show-word-limit": "",
261
- clearable: ""
262
- }, null, 8, ["modelValue", "placeholder"])
263
- ]),
264
- _: 1
265
- }, 8, ["label"])
266
- ]),
267
- _: 1
268
- }),
269
- e(p, { span: 12 }, {
270
- default: l(() => [
271
- e(u, {
272
- label: s.$t("sysUserOps.idNo"),
273
- prop: "idNo"
274
- }, {
275
- default: l(() => [
276
- e(g, {
277
- modelValue: r(o).idNo,
278
- "onUpdate:modelValue": a[5] || (a[5] = (t) => r(o).idNo = t),
279
- placeholder: s.$t("sysUserOps.idNoRequired"),
280
- maxlength: "18",
281
- "show-word-limit": "",
282
- clearable: ""
283
- }, null, 8, ["modelValue", "placeholder"])
284
- ]),
285
- _: 1
286
- }, 8, ["label"])
287
- ]),
288
- _: 1
289
- }),
290
- e(p, { span: 12 }, {
291
- default: l(() => [
292
- e(u, {
293
- label: s.$t("sysUserOps.engineeType"),
294
- prop: "engineeType"
295
- }, {
296
- default: l(() => [
297
- e(d, {
298
- modelValue: r(o).engineeType,
299
- "onUpdate:modelValue": a[6] || (a[6] = (t) => r(o).engineeType = t),
300
- placeholder: s.$t("sysUserOps.engineeTypeRequired"),
301
- data: r(f).engineeTypeDictEnum.values,
302
- clearable: "",
303
- class: "w-full"
304
- }, null, 8, ["modelValue", "placeholder", "data"])
305
- ]),
306
- _: 1
307
- }, 8, ["label"])
308
- ]),
309
- _: 1
310
- }),
311
- e(p, { span: 12 }, {
312
- default: l(() => [
313
- e(u, {
314
- label: s.$t("sysUserOps.engineeJobMode"),
315
- prop: "engineeJobMode"
316
- }, {
317
- default: l(() => [
318
- e(d, {
319
- modelValue: r(o).engineeJobMode,
320
- "onUpdate:modelValue": a[7] || (a[7] = (t) => r(o).engineeJobMode = t),
321
- placeholder: s.$t("sysUserOps.engineeJobModeRequired"),
322
- data: r(f).engineeJobModeDictEnum.values,
323
- clearable: "",
324
- class: "w-full"
325
- }, null, 8, ["modelValue", "placeholder", "data"])
326
- ]),
327
- _: 1
328
- }, 8, ["label"])
329
- ]),
330
- _: 1
331
- }),
332
- e(p, { span: 12 }, {
333
- default: l(() => [
334
- e(u, {
335
- label: s.$t("sysUserOps.jobStatus"),
336
- prop: "jobStatus"
337
- }, {
338
- default: l(() => [
339
- e(d, {
340
- modelValue: r(o).jobStatus,
341
- "onUpdate:modelValue": a[8] || (a[8] = (t) => r(o).jobStatus = t),
342
- placeholder: s.$t("sysUserOps.jobStatusRequired"),
343
- data: r(f).jobStatusDictEnum.values,
344
- clearable: "",
345
- class: "w-full"
346
- }, null, 8, ["modelValue", "placeholder", "data"])
347
- ]),
348
- _: 1
349
- }, 8, ["label"])
350
- ]),
351
- _: 1
352
- }),
353
- r(o).userId ? L("", !0) : (b(), c(p, {
354
- key: 0,
355
- span: 12
356
- }, {
357
- default: l(() => [
358
- e(u, {
359
- label: s.$t("sysUserOps.userPassword"),
360
- prop: "userPassword"
361
- }, {
362
- default: l(() => [
363
- e(g, {
364
- modelValue: r(o).userPassword,
365
- "onUpdate:modelValue": a[10] || (a[10] = (t) => r(o).userPassword = t),
366
- clearable: "",
367
- type: y.value ? "text" : "password",
368
- placeholder: s.$t("sysUserOps.userPasswordRequired")
369
- }, {
370
- append: l(() => [
371
- e(U, { onClick: J }, {
372
- default: l(() => [
373
- h(O(s.$t("sysUserOps.randomPwd")), 1)
374
- ]),
375
- _: 1
376
- })
377
- ]),
378
- suffix: l(() => [
379
- j("span", {
380
- onClick: a[9] || (a[9] = (t) => y.value = !y.value)
381
- }, [
382
- y.value ? (b(), c(P, { key: 0 }, {
383
- default: l(() => [
384
- e(B)
385
- ]),
386
- _: 1
387
- })) : (b(), c(P, { key: 1 }, {
388
- default: l(() => [
389
- e(A)
390
- ]),
391
- _: 1
392
- }))
393
- ])
394
- ]),
395
- _: 1
396
- }, 8, ["modelValue", "type", "placeholder"])
397
- ]),
398
- _: 1
399
- }, 8, ["label"])
400
- ]),
401
- _: 1
402
- })),
403
- e(p, { span: 24 }, {
404
- default: l(() => [
405
- e(u, {
406
- label: s.$t("sysUserOps.engineeSpecialty"),
407
- prop: "engineeSpecialty"
408
- }, {
409
- default: l(() => [
410
- e(g, {
411
- modelValue: r(o).engineeSpecialty,
412
- "onUpdate:modelValue": a[11] || (a[11] = (t) => r(o).engineeSpecialty = t),
413
- placeholder: s.$t("sysUserOps.engineeSpecialtyRequired"),
414
- type: "textarea",
415
- autosize: { minRows: 2 },
416
- maxlength: "200",
417
- "show-word-limit": "",
418
- clearable: ""
419
- }, null, 8, ["modelValue", "placeholder"])
420
- ]),
421
- _: 1
422
- }, 8, ["label"])
423
- ]),
424
- _: 1
425
- })
426
- ]),
427
- _: 1
428
- })
429
- ]),
430
- _: 1
431
- }, 8, ["model", "rules"])
432
- ]),
433
- _: 1
434
- }, 8, ["modelValue"]);
435
- };
436
- }
437
- });
438
- export {
439
- re as _
440
- };