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,358 @@
1
+ import { defineComponent as te, ref as U, reactive as I, resolveComponent as s, resolveDirective as le, openBlock as i, createElementBlock as w, createElementVNode as y, createVNode as a, withCtx as o, withKeys as D, unref as n, createTextVNode as d, toDisplayString as r, withDirectives as c, createBlock as b, isRef as M, createCommentVNode as g, vShow as T } from "vue";
2
+ import { useTableHooks as oe } from "jmash-core";
3
+ import { useI18n as ae } from "vue-i18n";
4
+ import { useRouter as ne } from "vue-router";
5
+ import { sysUserExtApi as se } from "./index.mjs";
6
+ import { _ as re } from "./edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs";
7
+ import { D as j } from "./index-ChTssr8-.mjs";
8
+ const ue = { class: "app-container" }, ie = { class: "search-container" }, me = { key: 0 }, de = ["onClick"], pe = ["onClick"], ce = ["onClick"], ke = /* @__PURE__ */ te({
9
+ __name: "index",
10
+ setup(ye) {
11
+ const { t: h } = ae(), z = ne(), m = U({
12
+ userType: "COMPANY_MANAGER"
13
+ }), {
14
+ tableHooks: u,
15
+ multipleTableRef: q,
16
+ queryFormRef: A,
17
+ listLoading: L,
18
+ tableData: K,
19
+ total: k
20
+ } = oe(h, se, m);
21
+ let f = U([
22
+ {
23
+ label: "sysUserMan.realName",
24
+ prop: "realName",
25
+ width: "200",
26
+ isColumn: !0
27
+ },
28
+ {
29
+ label: "sysUserMan.gender",
30
+ prop: "gender",
31
+ width: "100",
32
+ isColumn: !0,
33
+ slotName: "gender",
34
+ columnType: "slot"
35
+ },
36
+ {
37
+ label: "sysUserMan.mobilePhone",
38
+ prop: "mobilePhone",
39
+ width: "150",
40
+ isColumn: !0,
41
+ slotName: "mobilePhone",
42
+ columnType: "slot"
43
+ },
44
+ {
45
+ label: "sysUserMan.email",
46
+ prop: "email",
47
+ isColumn: !0,
48
+ slotName: "email",
49
+ columnType: "slot"
50
+ },
51
+ {
52
+ label: "sysUserMan.jobStatus",
53
+ prop: "jobStatus",
54
+ width: "150",
55
+ isColumn: !0,
56
+ slotName: "jobStatus",
57
+ columnType: "slot"
58
+ },
59
+ {
60
+ label: "common.operate",
61
+ width: "200",
62
+ slotName: "operation",
63
+ columnType: "slot",
64
+ fixed: "right",
65
+ isColumn: !0
66
+ }
67
+ ]);
68
+ function V(l) {
69
+ l.showEncrypt = !l.showEncrypt;
70
+ }
71
+ const p = U({
72
+ title: h("common.edit"),
73
+ visible: !1
74
+ });
75
+ let $ = I({});
76
+ function Q() {
77
+ $ = I({}), p.value.title = h("common.add"), p.value.visible = !0;
78
+ }
79
+ function B(l) {
80
+ $.userId = l.userId, p.value.title = h("common.edit"), p.value.visible = !0;
81
+ }
82
+ function F(l) {
83
+ z.push({
84
+ path: "/rawitsmsys/itsm-sys-user-man/userManInfo",
85
+ query: { userId: l.userId }
86
+ });
87
+ }
88
+ function G(l) {
89
+ u.selectionRows.value = l;
90
+ }
91
+ function H(l) {
92
+ u.handleSort(l.prop, l.order);
93
+ }
94
+ function O(l) {
95
+ l && u.getList();
96
+ }
97
+ return u.getList(), (l, t) => {
98
+ const W = s("el-input"), E = s("el-form-item"), _ = s("el-col"), Y = s("jmash-select"), C = s("el-button"), N = s("el-row"), J = s("el-form"), X = s("jmash-column-select"), P = s("el-tag"), R = s("svg-icon"), Z = s("jmash-table"), x = s("jmash-pagination"), ee = s("el-card"), v = le("hasPerm");
99
+ return i(), w("div", ue, [
100
+ y("div", ie, [
101
+ a(J, {
102
+ ref_key: "queryFormRef",
103
+ ref: A,
104
+ model: m.value,
105
+ inline: !0
106
+ }, {
107
+ default: o(() => [
108
+ a(N, null, {
109
+ default: o(() => [
110
+ a(_, { span: 6 }, {
111
+ default: o(() => [
112
+ a(E, {
113
+ label: l.$t("sysUserMan.realName"),
114
+ prop: "likeUserName"
115
+ }, {
116
+ default: o(() => [
117
+ a(W, {
118
+ modelValue: m.value.likeUserName,
119
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.likeUserName = e),
120
+ placeholder: l.$t("sysUserMan.realNameRequired"),
121
+ onKeyup: t[1] || (t[1] = D((e) => n(u).handleQuery(), ["enter"])),
122
+ class: "!w-[203px]",
123
+ clearable: ""
124
+ }, null, 8, ["modelValue", "placeholder"])
125
+ ]),
126
+ _: 1
127
+ }, 8, ["label"])
128
+ ]),
129
+ _: 1
130
+ }),
131
+ a(_, { span: 6 }, {
132
+ default: o(() => [
133
+ a(E, {
134
+ label: l.$t("sysUserMan.jobStatus"),
135
+ prop: "jobStatus"
136
+ }, {
137
+ default: o(() => [
138
+ a(Y, {
139
+ modelValue: m.value.jobStatus,
140
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => m.value.jobStatus = e),
141
+ placeholder: l.$t("sysUserMan.jobStatusRequired"),
142
+ data: n(j).jobStatusDictEnum.values,
143
+ onKeyup: t[3] || (t[3] = D((e) => n(u).handleQuery(), ["enter"])),
144
+ clearable: ""
145
+ }, null, 8, ["modelValue", "placeholder", "data"])
146
+ ]),
147
+ _: 1
148
+ }, 8, ["label"])
149
+ ]),
150
+ _: 1
151
+ }),
152
+ a(_, { span: 12 }, {
153
+ default: o(() => [
154
+ a(E, { class: "search-btn" }, {
155
+ default: o(() => [
156
+ a(C, {
157
+ type: "primary",
158
+ onClick: t[4] || (t[4] = (e) => n(u).handleQuery())
159
+ }, {
160
+ default: o(() => [
161
+ d(r(l.$t("common.search")), 1)
162
+ ]),
163
+ _: 1
164
+ }),
165
+ a(C, {
166
+ onClick: t[5] || (t[5] = (e) => n(u).resetQuery())
167
+ }, {
168
+ default: o(() => [
169
+ d(r(l.$t("common.reset")), 1)
170
+ ]),
171
+ _: 1
172
+ })
173
+ ]),
174
+ _: 1
175
+ })
176
+ ]),
177
+ _: 1
178
+ })
179
+ ]),
180
+ _: 1
181
+ })
182
+ ]),
183
+ _: 1
184
+ }, 8, ["model"]),
185
+ t[13] || (t[13] = y("div", { class: "clear" }, null, -1))
186
+ ]),
187
+ a(ee, {
188
+ shadow: "never",
189
+ class: "table-container"
190
+ }, {
191
+ header: o(() => [
192
+ a(N, null, {
193
+ default: o(() => [
194
+ a(_, { span: 17 }, {
195
+ default: o(() => [
196
+ c((i(), b(C, {
197
+ type: "primary",
198
+ onClick: Q
199
+ }, {
200
+ default: o(() => [
201
+ d(r(l.$t("common.add")), 1)
202
+ ]),
203
+ _: 1
204
+ })), [
205
+ [v, ["itsmsys:sys_user_man:add"]]
206
+ ]),
207
+ c((i(), b(C, {
208
+ type: "primary",
209
+ onClick: t[6] || (t[6] = (e) => n(u).deleteRecords())
210
+ }, {
211
+ default: o(() => [
212
+ d(r(l.$t("common.batchDelete")), 1)
213
+ ]),
214
+ _: 1
215
+ })), [
216
+ [v, ["itsmsys:sys_user_man:delete"]]
217
+ ])
218
+ ]),
219
+ _: 1
220
+ }),
221
+ a(_, {
222
+ span: 7,
223
+ class: "container-float"
224
+ }, {
225
+ default: o(() => [
226
+ a(X, {
227
+ modelValue: n(f),
228
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => M(f) ? f.value = e : f = e),
229
+ "label-name": "itsmsys/itsm-sys-user-man"
230
+ }, null, 8, ["modelValue"])
231
+ ]),
232
+ _: 1
233
+ })
234
+ ]),
235
+ _: 1
236
+ })
237
+ ]),
238
+ footer: o(() => [
239
+ n(k) > 0 ? (i(), b(x, {
240
+ key: 0,
241
+ total: n(k),
242
+ "onUpdate:total": t[8] || (t[8] = (e) => M(k) ? k.value = e : null),
243
+ "current-page": m.value.curPage,
244
+ "onUpdate:currentPage": t[9] || (t[9] = (e) => m.value.curPage = e),
245
+ "page-size": m.value.pageSize,
246
+ "onUpdate:pageSize": t[10] || (t[10] = (e) => m.value.pageSize = e),
247
+ onPagination: t[11] || (t[11] = (e) => n(u).getList())
248
+ }, null, 8, ["total", "current-page", "page-size"])) : g("", !0)
249
+ ]),
250
+ default: o(() => [
251
+ a(Z, {
252
+ ref_key: "multipleTableRef",
253
+ ref: q,
254
+ "row-key": "userId",
255
+ "list-loading": n(L),
256
+ data: n(K),
257
+ "table-label": n(f),
258
+ onSelectionChange: G,
259
+ onSortChange: H
260
+ }, {
261
+ gender: o((e) => [
262
+ y("span", null, r(n(j).genderDict.getEnumValue(e.data.row.gender)), 1)
263
+ ]),
264
+ mobilePhone: o((e) => [
265
+ y("span", null, r(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
266
+ ]),
267
+ email: o((e) => [
268
+ y("span", null, r(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
269
+ ]),
270
+ jobStatus: o((e) => [
271
+ y("span", null, [
272
+ e.data.row.jobStatus === "WORKING" ? (i(), b(P, {
273
+ key: 0,
274
+ type: "success",
275
+ size: "small"
276
+ }, {
277
+ default: o(() => [
278
+ d(r(n(j).jobStatusDictEnum.getEnumValue(
279
+ e.data.row.jobStatus
280
+ )), 1)
281
+ ]),
282
+ _: 2
283
+ }, 1024)) : g("", !0),
284
+ e.data.row.jobStatus === "LEAVE" ? (i(), b(P, {
285
+ key: 1,
286
+ type: "danger",
287
+ size: "small"
288
+ }, {
289
+ default: o(() => [
290
+ d(r(n(j).jobStatusDictEnum.getEnumValue(
291
+ e.data.row.jobStatus
292
+ )), 1)
293
+ ]),
294
+ _: 2
295
+ }, 1024)) : g("", !0)
296
+ ])
297
+ ]),
298
+ operation: o((e) => [
299
+ e.data.row.mobilePhoneIns || e.data.row.emailIns ? (i(), w("span", me, [
300
+ c(a(R, {
301
+ "icon-class": "close-eye",
302
+ onClick: (S) => V(e.data.row)
303
+ }, null, 8, ["onClick"]), [
304
+ [T, !e.data.row.showEncrypt]
305
+ ]),
306
+ c(a(R, {
307
+ "icon-class": "eye-open",
308
+ onClick: (S) => V(e.data.row)
309
+ }, null, 8, ["onClick"]), [
310
+ [T, e.data.row.showEncrypt]
311
+ ])
312
+ ])) : g("", !0),
313
+ c((i(), w("span", {
314
+ class: "el-button-color dropdown-left",
315
+ onClick: (S) => B(e.data.row)
316
+ }, [
317
+ d(r(l.$t("common.edit")), 1)
318
+ ], 8, de)), [
319
+ [v, ["itsmsys:sys_user_man:update"]]
320
+ ]),
321
+ c((i(), w("span", {
322
+ class: "el-button-color dropdown-left",
323
+ onClick: (S) => n(u).deleteRecord(e.data.row)
324
+ }, [
325
+ d(r(l.$t("common.delete")), 1)
326
+ ], 8, pe)), [
327
+ [v, ["itsmsys:sys_user_man:delete"]]
328
+ ]),
329
+ c((i(), w("span", {
330
+ class: "el-button-color dropdown-left",
331
+ onClick: (S) => F(e.data.row)
332
+ }, [
333
+ d(r(l.$t("common.view")), 1)
334
+ ], 8, ce)), [
335
+ [v, ["itsmsys:sys_user_man:view"]]
336
+ ])
337
+ ]),
338
+ _: 1
339
+ }, 8, ["list-loading", "data", "table-label"])
340
+ ]),
341
+ _: 1
342
+ }),
343
+ p.value.visible ? (i(), b(re, {
344
+ key: 0,
345
+ modelValue: p.value.visible,
346
+ "onUpdate:modelValue": t[12] || (t[12] = (e) => p.value.visible = e),
347
+ title: p.value.title,
348
+ "entity-key": n($),
349
+ onRefresh: O,
350
+ width: "900px"
351
+ }, null, 8, ["modelValue", "title", "entity-key"])) : g("", !0)
352
+ ]);
353
+ };
354
+ }
355
+ });
356
+ export {
357
+ ke as default
358
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs";
2
+ export {
3
+ f as default
4
+ };