xyvcard-itsmsys 0.0.2 → 0.0.4

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 (70) hide show
  1. package/dist/common-B2PCBCJ2.mjs +13 -0
  2. package/dist/edit-BhRXuYku.mjs +342 -0
  3. package/dist/edit-CIm8Y0Be.mjs +4 -0
  4. package/dist/edit-CWVYUzgf.mjs +369 -0
  5. package/dist/edit-CkaU_6vk.mjs +342 -0
  6. package/dist/edit-D82hX9if.mjs +4 -0
  7. package/dist/edit-DPM0jGQT.mjs +4 -0
  8. package/dist/edit-DZJU5ZPt.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
  11. package/dist/edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs +248 -0
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
  13. package/dist/index-BRupqW34.mjs +96 -0
  14. package/dist/index-B_cot8iN.mjs +439 -0
  15. package/dist/index-BkHGzL0R.mjs +358 -0
  16. package/dist/index-C6KvLUoL.mjs +4 -0
  17. package/dist/index-CEUyLrKg.mjs +404 -0
  18. package/dist/index-ChTssr8-.mjs +123 -0
  19. package/dist/index-ClU157bA.mjs +324 -0
  20. package/dist/index-CogdeN09.mjs +331 -0
  21. package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
  22. package/dist/index-i7X9N_rj.mjs +341 -0
  23. package/dist/index.mjs +2903 -70
  24. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
  25. package/dist/info-70H0sycC.mjs +187 -0
  26. package/dist/info-BWgVN2mJ.mjs +176 -0
  27. package/dist/info-CE-ZnFj5.mjs +179 -0
  28. package/dist/info-Kf11Ye-N.mjs +187 -0
  29. package/dist/info-MYJGcyMX.mjs +179 -0
  30. package/dist/info-Z5LuCRmr.mjs +187 -0
  31. package/dist/style.css +1 -1
  32. package/dts/src/api/dict.d.ts +9 -1
  33. package/dts/src/api/index.d.ts +8 -1
  34. package/dts/src/api/itsm-sys-org/index.d.ts +2 -0
  35. package/dts/src/api/itsm-sys-org/types.d.ts +14 -6
  36. package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
  37. package/dts/src/api/itsm-sys-user-ext/types.d.ts +91 -0
  38. package/dts/src/constant.d.ts +11 -0
  39. package/dts/src/index.d.ts +2 -0
  40. package/dts/src/lang/itsmsys/zh-cn.d.ts +87 -10
  41. package/dts/src/router/index.d.ts +8 -1
  42. package/dts/src/utils/common.d.ts +1 -0
  43. package/dts/src/utils/momentPlugin.d.ts +5 -0
  44. package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +1 -21
  45. package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
  46. package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
  47. package/dts/src/views/itsmsys/itsm-sys-org-invoice/index.vue.d.ts +2 -0
  48. package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
  49. package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
  50. package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
  51. package/dts/src/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +22 -0
  52. package/dts/src/views/itsmsys/itsm-sys-user-man/index.vue.d.ts +2 -0
  53. package/dts/src/views/itsmsys/itsm-sys-user-man/info.vue.d.ts +2 -0
  54. package/dts/src/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +22 -0
  55. package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
  56. package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
  57. package/dts/src/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +22 -0
  58. package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
  59. package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
  60. package/package.json +3 -3
  61. package/dist/edit-BKMLirl4.mjs +0 -602
  62. package/dist/edit-ccGk5679.mjs +0 -610
  63. package/dist/index-BGwm5W6z.mjs +0 -343
  64. package/dist/index-CSDhKMEP.mjs +0 -332
  65. package/dist/info-CSOdbuvm.mjs +0 -192
  66. package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
  67. package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
  68. package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
  69. package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
  70. package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
@@ -0,0 +1,439 @@
1
+ import { defineComponent as te, ref as O, reactive as R, resolveComponent as i, resolveDirective as le, openBlock as d, createElementBlock as h, createElementVNode as p, createVNode as n, withCtx as l, unref as a, withKeys as $, createTextVNode as y, toDisplayString as s, withDirectives as g, createBlock as f, isRef as P, createCommentVNode as k, vShow as J } from "vue";
2
+ import { useTableHooks as oe } from "jmash-core";
3
+ import { useI18n as ne } from "vue-i18n";
4
+ import { useRouter as ae } from "vue-router";
5
+ import { sysUserExtApi as se } from "./index.mjs";
6
+ import { _ as re } from "./edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs";
7
+ import { D as m } from "./index-ChTssr8-.mjs";
8
+ const ue = { class: "app-container" }, ie = { class: "search-container" }, de = { key: 0 }, me = ["onClick"], pe = ["onClick"], ye = ["onClick"], ke = /* @__PURE__ */ te({
9
+ __name: "index",
10
+ setup(be) {
11
+ const { t: U } = ne(), M = ae();
12
+ m.sysOutBizDict.useValues();
13
+ const r = O({
14
+ userType: "OUTSOURCE_OPS"
15
+ }), {
16
+ tableHooks: u,
17
+ multipleTableRef: z,
18
+ queryFormRef: q,
19
+ listLoading: K,
20
+ tableData: B,
21
+ total: C
22
+ } = oe(U, se, r);
23
+ let v = O([
24
+ {
25
+ label: "sysUserOps.realName",
26
+ prop: "realName",
27
+ width: "150",
28
+ isColumn: !0
29
+ },
30
+ {
31
+ label: "sysUserOps.gender",
32
+ prop: "gender",
33
+ width: "100",
34
+ isColumn: !0,
35
+ slotName: "gender",
36
+ columnType: "slot"
37
+ },
38
+ {
39
+ label: "sysUserOps.mobilePhone",
40
+ prop: "mobilePhone",
41
+ width: "150",
42
+ isColumn: !0,
43
+ slotName: "mobilePhone",
44
+ columnType: "slot"
45
+ },
46
+ {
47
+ label: "sysUserOps.email",
48
+ prop: "email",
49
+ isColumn: !0,
50
+ width: "200",
51
+ slotName: "email",
52
+ columnType: "slot"
53
+ },
54
+ {
55
+ label: "sysUserOps.orgIds",
56
+ prop: "orgId",
57
+ isColumn: !0,
58
+ width: "230",
59
+ slotName: "orgId",
60
+ columnType: "slot"
61
+ },
62
+ {
63
+ label: "sysUserOps.engineeType",
64
+ prop: "engineeType",
65
+ width: "120",
66
+ isColumn: !0,
67
+ slotName: "engineeType",
68
+ columnType: "slot"
69
+ },
70
+ {
71
+ label: "sysUserOps.engineeJobMode",
72
+ prop: "engineeJobMode",
73
+ width: "120",
74
+ isColumn: !0,
75
+ slotName: "engineeJobMode",
76
+ columnType: "slot"
77
+ },
78
+ {
79
+ label: "sysUserOps.jobStatus",
80
+ prop: "jobStatus",
81
+ width: "100",
82
+ isColumn: !0,
83
+ slotName: "jobStatus",
84
+ columnType: "slot"
85
+ },
86
+ {
87
+ label: "common.operate",
88
+ width: "200",
89
+ slotName: "operation",
90
+ columnType: "slot",
91
+ fixed: "right",
92
+ isColumn: !0
93
+ }
94
+ ]);
95
+ function I(o) {
96
+ o.showEncrypt = !o.showEncrypt;
97
+ }
98
+ const b = O({
99
+ title: U("common.edit"),
100
+ visible: !1
101
+ });
102
+ let E = R({});
103
+ function L() {
104
+ E = R({}), b.value.title = U("common.add"), b.value.visible = !0;
105
+ }
106
+ function Q(o) {
107
+ E.userId = o.userId, b.value.title = U("common.edit"), b.value.visible = !0;
108
+ }
109
+ function A(o) {
110
+ M.push({
111
+ path: "/rawitsmsys/itsm-sys-user-out/userOutInfo",
112
+ query: { userId: o.userId }
113
+ });
114
+ }
115
+ function F(o) {
116
+ u.selectionRows.value = o;
117
+ }
118
+ function H(o) {
119
+ u.handleSort(o.prop, o.order);
120
+ }
121
+ function G(o) {
122
+ o && u.getList();
123
+ }
124
+ return u.getList(), (o, t) => {
125
+ const j = i("jmash-select"), w = i("el-form-item"), c = i("el-col"), W = i("el-input"), V = i("el-button"), N = i("el-row"), X = i("el-form"), Y = i("jmash-column-select"), T = i("el-tag"), D = i("svg-icon"), Z = i("jmash-table"), x = i("jmash-pagination"), ee = i("el-card"), _ = le("hasPerm");
126
+ return d(), h("div", ue, [
127
+ p("div", ie, [
128
+ n(X, {
129
+ ref_key: "queryFormRef",
130
+ ref: q,
131
+ model: r.value,
132
+ inline: !0
133
+ }, {
134
+ default: l(() => [
135
+ n(N, null, {
136
+ default: l(() => [
137
+ n(c, { span: 6 }, {
138
+ default: l(() => [
139
+ n(w, {
140
+ label: o.$t("sysUserOps.orgIds"),
141
+ prop: "orgId"
142
+ }, {
143
+ default: l(() => [
144
+ n(j, {
145
+ modelValue: r.value.orgId,
146
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.orgId = e),
147
+ placeholder: o.$t("sysUserOps.orgIdRequired"),
148
+ data: a(m).sysOutBizDict.values,
149
+ clearable: "",
150
+ onKeyup: t[1] || (t[1] = $((e) => a(u).handleQuery(), ["enter"]))
151
+ }, null, 8, ["modelValue", "placeholder", "data"])
152
+ ]),
153
+ _: 1
154
+ }, 8, ["label"])
155
+ ]),
156
+ _: 1
157
+ }),
158
+ n(c, { span: 6 }, {
159
+ default: l(() => [
160
+ n(w, {
161
+ label: o.$t("sysUserOps.realName"),
162
+ prop: "likeUserName"
163
+ }, {
164
+ default: l(() => [
165
+ n(W, {
166
+ modelValue: r.value.likeUserName,
167
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeUserName = e),
168
+ placeholder: o.$t("sysUserOps.realNameRequired"),
169
+ onKeyup: t[3] || (t[3] = $((e) => a(u).handleQuery(), ["enter"])),
170
+ class: "!w-[203px]"
171
+ }, null, 8, ["modelValue", "placeholder"])
172
+ ]),
173
+ _: 1
174
+ }, 8, ["label"])
175
+ ]),
176
+ _: 1
177
+ }),
178
+ n(c, { span: 6 }, {
179
+ default: l(() => [
180
+ n(w, {
181
+ label: o.$t("sysUserOps.engineeJobMode"),
182
+ prop: "engineeJobMode"
183
+ }, {
184
+ default: l(() => [
185
+ n(j, {
186
+ modelValue: r.value.engineeJobMode,
187
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.engineeJobMode = e),
188
+ placeholder: o.$t("sysUserOps.engineeJobModeRequired"),
189
+ data: a(m).engineeJobModeDictEnum.values,
190
+ onKeyup: t[5] || (t[5] = $((e) => a(u).handleQuery(), ["enter"])),
191
+ clearable: ""
192
+ }, null, 8, ["modelValue", "placeholder", "data"])
193
+ ]),
194
+ _: 1
195
+ }, 8, ["label"])
196
+ ]),
197
+ _: 1
198
+ }),
199
+ n(c, { span: 6 }, {
200
+ default: l(() => [
201
+ n(w, {
202
+ label: o.$t("sysUserOps.jobStatus"),
203
+ prop: "jobStatus"
204
+ }, {
205
+ default: l(() => [
206
+ n(j, {
207
+ modelValue: r.value.jobStatus,
208
+ "onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.jobStatus = e),
209
+ placeholder: o.$t("sysUserOps.jobStatusRequired"),
210
+ data: a(m).jobStatusDictEnum.values,
211
+ onKeyup: t[7] || (t[7] = $((e) => a(u).handleQuery(), ["enter"])),
212
+ clearable: ""
213
+ }, null, 8, ["modelValue", "placeholder", "data"])
214
+ ]),
215
+ _: 1
216
+ }, 8, ["label"])
217
+ ]),
218
+ _: 1
219
+ }),
220
+ n(c, { span: 24 }, {
221
+ default: l(() => [
222
+ n(w, { class: "search-btn" }, {
223
+ default: l(() => [
224
+ n(V, {
225
+ type: "primary",
226
+ onClick: t[8] || (t[8] = (e) => a(u).handleQuery())
227
+ }, {
228
+ default: l(() => [
229
+ y(s(o.$t("common.search")), 1)
230
+ ]),
231
+ _: 1
232
+ }),
233
+ n(V, {
234
+ onClick: t[9] || (t[9] = (e) => a(u).resetQuery())
235
+ }, {
236
+ default: l(() => [
237
+ y(s(o.$t("common.reset")), 1)
238
+ ]),
239
+ _: 1
240
+ })
241
+ ]),
242
+ _: 1
243
+ })
244
+ ]),
245
+ _: 1
246
+ })
247
+ ]),
248
+ _: 1
249
+ })
250
+ ]),
251
+ _: 1
252
+ }, 8, ["model"]),
253
+ t[17] || (t[17] = p("div", { class: "clear" }, null, -1))
254
+ ]),
255
+ n(ee, {
256
+ shadow: "never",
257
+ class: "table-container"
258
+ }, {
259
+ header: l(() => [
260
+ n(N, null, {
261
+ default: l(() => [
262
+ n(c, { span: 17 }, {
263
+ default: l(() => [
264
+ g((d(), f(V, {
265
+ type: "primary",
266
+ onClick: L
267
+ }, {
268
+ default: l(() => [
269
+ y(s(o.$t("common.add")), 1)
270
+ ]),
271
+ _: 1
272
+ })), [
273
+ [_, ["itsmsys:sys_user_out:add"]]
274
+ ]),
275
+ g((d(), f(V, {
276
+ type: "primary",
277
+ onClick: t[10] || (t[10] = (e) => a(u).deleteRecords())
278
+ }, {
279
+ default: l(() => [
280
+ y(s(o.$t("common.batchDelete")), 1)
281
+ ]),
282
+ _: 1
283
+ })), [
284
+ [_, ["itsmsys:sys_user_out:delete"]]
285
+ ])
286
+ ]),
287
+ _: 1
288
+ }),
289
+ n(c, {
290
+ span: 7,
291
+ class: "container-float"
292
+ }, {
293
+ default: l(() => [
294
+ n(Y, {
295
+ modelValue: a(v),
296
+ "onUpdate:modelValue": t[11] || (t[11] = (e) => P(v) ? v.value = e : v = e),
297
+ "label-name": "itsmsys/itsm-sys-user-out"
298
+ }, null, 8, ["modelValue"])
299
+ ]),
300
+ _: 1
301
+ })
302
+ ]),
303
+ _: 1
304
+ })
305
+ ]),
306
+ footer: l(() => [
307
+ a(C) > 0 ? (d(), f(x, {
308
+ key: 0,
309
+ total: a(C),
310
+ "onUpdate:total": t[12] || (t[12] = (e) => P(C) ? C.value = e : null),
311
+ "current-page": r.value.curPage,
312
+ "onUpdate:currentPage": t[13] || (t[13] = (e) => r.value.curPage = e),
313
+ "page-size": r.value.pageSize,
314
+ "onUpdate:pageSize": t[14] || (t[14] = (e) => r.value.pageSize = e),
315
+ onPagination: t[15] || (t[15] = (e) => a(u).getList())
316
+ }, null, 8, ["total", "current-page", "page-size"])) : k("", !0)
317
+ ]),
318
+ default: l(() => [
319
+ n(Z, {
320
+ ref_key: "multipleTableRef",
321
+ ref: z,
322
+ "row-key": "userId",
323
+ "list-loading": a(K),
324
+ data: a(B),
325
+ "table-label": a(v),
326
+ onSelectionChange: F,
327
+ onSortChange: H
328
+ }, {
329
+ gender: l((e) => [
330
+ p("span", null, s(a(m).genderDict.getEnumValue(e.data.row.gender)), 1)
331
+ ]),
332
+ orgId: l((e) => [
333
+ p("span", null, s(a(m).sysOutBizDict.getValue(e.data.row.orgId)), 1)
334
+ ]),
335
+ mobilePhone: l((e) => [
336
+ p("span", null, s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
337
+ ]),
338
+ email: l((e) => [
339
+ p("span", null, s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
340
+ ]),
341
+ jobStatus: l((e) => [
342
+ p("span", null, [
343
+ e.data.row.jobStatus === "WORKING" ? (d(), f(T, {
344
+ key: 0,
345
+ type: "success",
346
+ size: "small"
347
+ }, {
348
+ default: l(() => [
349
+ y(s(a(m).jobStatusDictEnum.getEnumValue(
350
+ e.data.row.jobStatus
351
+ )), 1)
352
+ ]),
353
+ _: 2
354
+ }, 1024)) : k("", !0),
355
+ e.data.row.jobStatus === "LEAVE" ? (d(), f(T, {
356
+ key: 1,
357
+ type: "danger",
358
+ size: "small"
359
+ }, {
360
+ default: l(() => [
361
+ y(s(a(m).jobStatusDictEnum.getEnumValue(
362
+ e.data.row.jobStatus
363
+ )), 1)
364
+ ]),
365
+ _: 2
366
+ }, 1024)) : k("", !0)
367
+ ])
368
+ ]),
369
+ engineeType: l((e) => [
370
+ p("span", null, s(a(m).engineeTypeDictEnum.getEnumValue(
371
+ e.data.row.engineeType
372
+ )), 1)
373
+ ]),
374
+ engineeJobMode: l((e) => [
375
+ p("span", null, s(a(m).engineeJobModeDictEnum.getEnumValue(
376
+ e.data.row.engineeJobMode
377
+ )), 1)
378
+ ]),
379
+ operation: l((e) => [
380
+ e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), h("span", de, [
381
+ g(n(D, {
382
+ "icon-class": "close-eye",
383
+ onClick: (S) => I(e.data.row)
384
+ }, null, 8, ["onClick"]), [
385
+ [J, !e.data.row.showEncrypt]
386
+ ]),
387
+ g(n(D, {
388
+ "icon-class": "eye-open",
389
+ onClick: (S) => I(e.data.row)
390
+ }, null, 8, ["onClick"]), [
391
+ [J, e.data.row.showEncrypt]
392
+ ])
393
+ ])) : k("", !0),
394
+ g((d(), h("span", {
395
+ class: "el-button-color dropdown-left",
396
+ onClick: (S) => Q(e.data.row)
397
+ }, [
398
+ y(s(o.$t("common.edit")), 1)
399
+ ], 8, me)), [
400
+ [_, ["itsmsys:sys_user_out:update"]]
401
+ ]),
402
+ g((d(), h("span", {
403
+ class: "el-button-color dropdown-left",
404
+ onClick: (S) => a(u).deleteRecord(e.data.row)
405
+ }, [
406
+ y(s(o.$t("common.delete")), 1)
407
+ ], 8, pe)), [
408
+ [_, ["itsmsys:sys_user_out:delete"]]
409
+ ]),
410
+ g((d(), h("span", {
411
+ class: "el-button-color dropdown-left",
412
+ onClick: (S) => A(e.data.row)
413
+ }, [
414
+ y(s(o.$t("common.view")), 1)
415
+ ], 8, ye)), [
416
+ [_, ["itsmsys:sys_user_out:view"]]
417
+ ])
418
+ ]),
419
+ _: 1
420
+ }, 8, ["list-loading", "data", "table-label"])
421
+ ]),
422
+ _: 1
423
+ }),
424
+ b.value.visible ? (d(), f(re, {
425
+ key: 0,
426
+ modelValue: b.value.visible,
427
+ "onUpdate:modelValue": t[16] || (t[16] = (e) => b.value.visible = e),
428
+ title: b.value.title,
429
+ "entity-key": a(E),
430
+ onRefresh: G,
431
+ width: "900px"
432
+ }, null, 8, ["modelValue", "title", "entity-key"])) : k("", !0)
433
+ ]);
434
+ };
435
+ }
436
+ });
437
+ export {
438
+ ke as default
439
+ };