xyvcard-itsmsys 0.0.2 → 0.0.3

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 (51) hide show
  1. package/dist/edit-BeMy_aOl.mjs +548 -0
  2. package/dist/edit-BhXrnHr7.mjs +520 -0
  3. package/dist/edit-BsLAy2-H.mjs +276 -0
  4. package/dist/edit-D7n1rZY2.mjs +240 -0
  5. package/dist/edit-l4-w6Psd.mjs +520 -0
  6. package/dist/index-B02UvpyC.mjs +334 -0
  7. package/dist/index-BRupqW34.mjs +96 -0
  8. package/dist/index-Bw3EuEs9.mjs +345 -0
  9. package/dist/index-COPul57Z.mjs +84 -0
  10. package/dist/index-CRlIL96y.mjs +334 -0
  11. package/dist/index-CUjT3FVb.mjs +351 -0
  12. package/dist/index-Cskg0LGf.mjs +341 -0
  13. package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
  14. package/dist/index.mjs +236 -42
  15. package/dist/info-7Rre3Mm0.mjs +198 -0
  16. package/dist/info-CYKiOMB6.mjs +198 -0
  17. package/dist/info-Dub2j7gN.mjs +198 -0
  18. package/dist/info-O3dKVGmT.mjs +10 -0
  19. package/dist/invoiceEdit-C5dQG8ZJ.mjs +253 -0
  20. package/dist/invoiceEdit-Chsj8_aC.mjs +253 -0
  21. package/dist/invoiceEdit-DuSCNiDz.mjs +253 -0
  22. package/dist/style.css +1 -1
  23. package/dts/src/api/dict.d.ts +6 -1
  24. package/dts/src/api/index.d.ts +5 -1
  25. package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
  26. package/dts/src/api/itsm-sys-org/types.d.ts +13 -5
  27. package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
  28. package/dts/src/api/itsm-sys-user-ext/types.d.ts +76 -0
  29. package/dts/src/constant.d.ts +4 -0
  30. package/dts/src/index.d.ts +2 -0
  31. package/dts/src/lang/itsmsys/zh-cn.d.ts +65 -4
  32. package/dts/src/router/index.d.ts +5 -0
  33. package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +1 -21
  34. package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
  35. package/dts/src/views/itsmsys/itsm-sys-gov/invoiceEdit.vue.d.ts +31 -0
  36. package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
  37. package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
  38. package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
  39. package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +31 -0
  40. package/dts/src/views/itsmsys-user/itsm-sys-user-man/edit.vue.d.ts +22 -0
  41. package/dts/src/views/itsmsys-user/itsm-sys-user-man/index.vue.d.ts +2 -0
  42. package/dts/src/views/itsmsys-user/itsm-sys-user-man/info.vue.d.ts +2 -0
  43. package/dts/src/views/itsmsys-user/itsm-sys-user-ops/edit.vue.d.ts +22 -0
  44. package/dts/src/views/itsmsys-user/itsm-sys-user-ops/index.vue.d.ts +2 -0
  45. package/package.json +2 -2
  46. package/dist/edit-BKMLirl4.mjs +0 -602
  47. package/dist/edit-ccGk5679.mjs +0 -610
  48. package/dist/index-BGwm5W6z.mjs +0 -343
  49. package/dist/index-CSDhKMEP.mjs +0 -332
  50. package/dist/info-CSOdbuvm.mjs +0 -192
  51. package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
@@ -0,0 +1,345 @@
1
+ import { defineComponent as Z, ref as V, reactive as D, resolveComponent as i, resolveDirective as x, openBlock as m, createElementBlock as C, createElementVNode as f, createVNode as n, withCtx as o, withKeys as S, unref as a, createTextVNode as y, toDisplayString as u, withDirectives as b, createBlock as k, isRef as T, createCommentVNode as j, vShow as M } from "vue";
2
+ import { useTableHooks as ee } from "jmash-core";
3
+ import { useI18n as le } from "vue-i18n";
4
+ import { sysUserExtApi as te } from "./index.mjs";
5
+ import oe from "./edit-D7n1rZY2.mjs";
6
+ import { D as N } from "./index-COPul57Z.mjs";
7
+ const ne = { class: "app-container" }, ae = { class: "search-container" }, se = { key: 0 }, re = ["onClick"], ie = ["onClick"], fe = /* @__PURE__ */ Z({
8
+ __name: "index",
9
+ setup(ue) {
10
+ const { t: v } = le(), s = V({
11
+ userType: "COMPANY_OPS"
12
+ }), {
13
+ tableHooks: r,
14
+ multipleTableRef: I,
15
+ queryFormRef: J,
16
+ listLoading: q,
17
+ tableData: z,
18
+ total: _
19
+ } = ee(v, te, s);
20
+ let c = V([
21
+ {
22
+ label: "sysUserOps.realName",
23
+ prop: "realName",
24
+ width: "150",
25
+ isColumn: !0
26
+ },
27
+ {
28
+ label: "sysUserOps.gender",
29
+ prop: "gender",
30
+ width: "100",
31
+ isColumn: !0,
32
+ slotName: "gender",
33
+ columnType: "slot"
34
+ },
35
+ {
36
+ label: "sysUserOps.mobilePhone",
37
+ prop: "mobilePhone",
38
+ width: "150",
39
+ isColumn: !0,
40
+ slotName: "mobilePhone",
41
+ columnType: "slot"
42
+ },
43
+ {
44
+ label: "sysUserMan.email",
45
+ prop: "email",
46
+ isColumn: !0,
47
+ slotName: "email",
48
+ columnType: "slot"
49
+ },
50
+ {
51
+ label: "sysUserOps.engineeType",
52
+ prop: "engineeType",
53
+ width: "150",
54
+ isColumn: !0
55
+ },
56
+ {
57
+ label: "sysUserOps.engineeJobMode",
58
+ prop: "engineeJobMode",
59
+ width: "150",
60
+ isColumn: !0
61
+ },
62
+ {
63
+ label: "sysUserOps.jobStatus",
64
+ prop: "jobStatus",
65
+ width: "150",
66
+ isColumn: !0
67
+ },
68
+ {
69
+ label: "common.operate",
70
+ width: "200",
71
+ slotName: "operation",
72
+ columnType: "slot",
73
+ fixed: "right",
74
+ isColumn: !0
75
+ }
76
+ ]);
77
+ function P(t) {
78
+ t.showEncrypt = !t.showEncrypt;
79
+ }
80
+ const d = V({
81
+ title: v("common.edit"),
82
+ visible: !1
83
+ });
84
+ let U = D({});
85
+ function K() {
86
+ U = D({}), d.value.title = v("common.add"), d.value.visible = !0;
87
+ }
88
+ function L(t) {
89
+ U.userId = t.userId, d.value.title = v("common.edit"), d.value.visible = !0;
90
+ }
91
+ function Q(t) {
92
+ r.selectionRows.value = t;
93
+ }
94
+ function A(t) {
95
+ r.handleSort(t.prop, t.order);
96
+ }
97
+ function B(t) {
98
+ t && r.getList();
99
+ }
100
+ return r.getList(), (t, l) => {
101
+ const F = i("el-input"), g = i("el-form-item"), p = i("el-col"), E = i("jmash-select"), w = i("el-button"), O = i("el-row"), H = i("el-form"), Y = i("jmash-column-select"), R = i("svg-icon"), G = i("jmash-table"), W = i("jmash-pagination"), X = i("el-card"), h = x("hasPerm");
102
+ return m(), C("div", ne, [
103
+ f("div", ae, [
104
+ n(H, {
105
+ ref_key: "queryFormRef",
106
+ ref: J,
107
+ model: s.value,
108
+ inline: !0
109
+ }, {
110
+ default: o(() => [
111
+ n(O, null, {
112
+ default: o(() => [
113
+ n(p, { span: 6 }, {
114
+ default: o(() => [
115
+ n(g, {
116
+ label: t.$t("sysUserOps.realName"),
117
+ prop: "realName"
118
+ }, {
119
+ default: o(() => [
120
+ n(F, {
121
+ modelValue: s.value.realName,
122
+ "onUpdate:modelValue": l[0] || (l[0] = (e) => s.value.realName = e),
123
+ placeholder: t.$t("sysUserOps.realNameRequired"),
124
+ onKeyup: l[1] || (l[1] = S((e) => a(r).handleQuery(), ["enter"])),
125
+ class: "!w-[203px]"
126
+ }, null, 8, ["modelValue", "placeholder"])
127
+ ]),
128
+ _: 1
129
+ }, 8, ["label"])
130
+ ]),
131
+ _: 1
132
+ }),
133
+ n(p, { span: 6 }, {
134
+ default: o(() => [
135
+ n(g, {
136
+ label: t.$t("sysUserOps.jobStatus"),
137
+ prop: "jobStatus"
138
+ }, {
139
+ default: o(() => [
140
+ n(E, {
141
+ modelValue: s.value.jobStatus,
142
+ "onUpdate:modelValue": l[2] || (l[2] = (e) => s.value.jobStatus = e),
143
+ placeholder: t.$t("sysUserOps.jobStatusRequired"),
144
+ data: a(N).jobStatusDictEnum.values,
145
+ onKeyup: l[3] || (l[3] = S((e) => a(r).handleQuery(), ["enter"])),
146
+ clearable: ""
147
+ }, null, 8, ["modelValue", "placeholder", "data"])
148
+ ]),
149
+ _: 1
150
+ }, 8, ["label"])
151
+ ]),
152
+ _: 1
153
+ }),
154
+ n(p, { span: 6 }, {
155
+ default: o(() => [
156
+ n(g, {
157
+ label: t.$t("sysUserOps.engineeJobMode"),
158
+ prop: "engineeJobMode"
159
+ }, {
160
+ default: o(() => [
161
+ n(E, {
162
+ modelValue: s.value.engineeJobMode,
163
+ "onUpdate:modelValue": l[4] || (l[4] = (e) => s.value.engineeJobMode = e),
164
+ placeholder: t.$t("sysUserOps.engineeJobModeRequired"),
165
+ data: a(N).engineeJobModeDictEnum.values,
166
+ onKeyup: l[5] || (l[5] = S((e) => a(r).handleQuery(), ["enter"])),
167
+ clearable: ""
168
+ }, null, 8, ["modelValue", "placeholder", "data"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ n(p, { span: 6 }, {
176
+ default: o(() => [
177
+ n(g, { class: "search-btn" }, {
178
+ default: o(() => [
179
+ n(w, {
180
+ type: "primary",
181
+ onClick: l[6] || (l[6] = (e) => a(r).handleQuery())
182
+ }, {
183
+ default: o(() => [
184
+ y(u(t.$t("common.search")), 1)
185
+ ]),
186
+ _: 1
187
+ }),
188
+ n(w, {
189
+ onClick: l[7] || (l[7] = (e) => a(r).resetQuery())
190
+ }, {
191
+ default: o(() => [
192
+ y(u(t.$t("common.reset")), 1)
193
+ ]),
194
+ _: 1
195
+ })
196
+ ]),
197
+ _: 1
198
+ })
199
+ ]),
200
+ _: 1
201
+ })
202
+ ]),
203
+ _: 1
204
+ })
205
+ ]),
206
+ _: 1
207
+ }, 8, ["model"]),
208
+ l[15] || (l[15] = f("div", { class: "clear" }, null, -1))
209
+ ]),
210
+ n(X, {
211
+ shadow: "never",
212
+ class: "table-container"
213
+ }, {
214
+ header: o(() => [
215
+ n(O, null, {
216
+ default: o(() => [
217
+ n(p, { span: 17 }, {
218
+ default: o(() => [
219
+ b((m(), k(w, {
220
+ type: "primary",
221
+ onClick: K
222
+ }, {
223
+ default: o(() => [
224
+ y(u(t.$t("common.add")), 1)
225
+ ]),
226
+ _: 1
227
+ })), [
228
+ [h, ["itsmsys:sys_user_ops:add"]]
229
+ ]),
230
+ b((m(), k(w, {
231
+ type: "primary",
232
+ onClick: l[8] || (l[8] = (e) => a(r).deleteRecords())
233
+ }, {
234
+ default: o(() => [
235
+ y(u(t.$t("common.batchDelete")), 1)
236
+ ]),
237
+ _: 1
238
+ })), [
239
+ [h, ["itsmsys:sys_user_ops:delete"]]
240
+ ])
241
+ ]),
242
+ _: 1
243
+ }),
244
+ n(p, {
245
+ span: 7,
246
+ class: "container-float"
247
+ }, {
248
+ default: o(() => [
249
+ n(Y, {
250
+ modelValue: a(c),
251
+ "onUpdate:modelValue": l[9] || (l[9] = (e) => T(c) ? c.value = e : c = e),
252
+ "label-name": "itsmsys/itsm-sys-user-ops"
253
+ }, null, 8, ["modelValue"])
254
+ ]),
255
+ _: 1
256
+ })
257
+ ]),
258
+ _: 1
259
+ })
260
+ ]),
261
+ footer: o(() => [
262
+ a(_) > 0 ? (m(), k(W, {
263
+ key: 0,
264
+ total: a(_),
265
+ "onUpdate:total": l[10] || (l[10] = (e) => T(_) ? _.value = e : null),
266
+ "current-page": s.value.curPage,
267
+ "onUpdate:currentPage": l[11] || (l[11] = (e) => s.value.curPage = e),
268
+ "page-size": s.value.pageSize,
269
+ "onUpdate:pageSize": l[12] || (l[12] = (e) => s.value.pageSize = e),
270
+ onPagination: l[13] || (l[13] = (e) => a(r).getList())
271
+ }, null, 8, ["total", "current-page", "page-size"])) : j("", !0)
272
+ ]),
273
+ default: o(() => [
274
+ n(G, {
275
+ ref_key: "multipleTableRef",
276
+ ref: I,
277
+ "row-key": "userId",
278
+ "list-loading": a(q),
279
+ data: a(z),
280
+ "table-label": a(c),
281
+ onSelectionChange: Q,
282
+ onSortChange: A
283
+ }, {
284
+ gender: o((e) => [
285
+ f("span", null, u(a(N).genderDict.getEnumValue(e.data.row.gender)), 1)
286
+ ]),
287
+ mobilePhone: o((e) => [
288
+ f("span", null, u(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
289
+ ]),
290
+ email: o((e) => [
291
+ f("span", null, u(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
292
+ ]),
293
+ operation: o((e) => [
294
+ e.data.row.mobilePhoneIns || e.data.row.emailIns ? (m(), C("span", se, [
295
+ b(n(R, {
296
+ "icon-class": "close-eye",
297
+ onClick: ($) => P(e.data.row)
298
+ }, null, 8, ["onClick"]), [
299
+ [M, !e.data.row.showEncrypt]
300
+ ]),
301
+ b(n(R, {
302
+ "icon-class": "eye-open",
303
+ onClick: ($) => P(e.data.row)
304
+ }, null, 8, ["onClick"]), [
305
+ [M, e.data.row.showEncrypt]
306
+ ])
307
+ ])) : j("", !0),
308
+ b((m(), C("span", {
309
+ class: "el-button-color",
310
+ onClick: ($) => L(e.data.row)
311
+ }, [
312
+ y(u(t.$t("common.edit")), 1)
313
+ ], 8, re)), [
314
+ [h, ["itsmsys:sys_user_ops:update"]]
315
+ ]),
316
+ b((m(), C("span", {
317
+ class: "el-button-color dropdown-left",
318
+ onClick: ($) => a(r).deleteRecord(e.data.row)
319
+ }, [
320
+ y(u(t.$t("common.delete")), 1)
321
+ ], 8, ie)), [
322
+ [h, ["itsmsys:sys_user_ops:delete"]]
323
+ ])
324
+ ]),
325
+ _: 1
326
+ }, 8, ["list-loading", "data", "table-label"])
327
+ ]),
328
+ _: 1
329
+ }),
330
+ d.value.visible ? (m(), k(oe, {
331
+ key: 0,
332
+ modelValue: d.value.visible,
333
+ "onUpdate:modelValue": l[14] || (l[14] = (e) => d.value.visible = e),
334
+ title: d.value.title,
335
+ "entity-key": a(U),
336
+ onRefresh: B,
337
+ width: "900px"
338
+ }, null, 8, ["modelValue", "title", "entity-key"])) : j("", !0)
339
+ ]);
340
+ };
341
+ }
342
+ });
343
+ export {
344
+ fe as default
345
+ };
@@ -0,0 +1,84 @@
1
+ var l = Object.defineProperty;
2
+ var S = (i, t, e) => t in i ? l(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var s = (i, t, e) => S(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { ref as _, reactive as h } from "vue";
5
+ import { BizLayDict as y, EnumDict as u } from "jmash-core";
6
+ import { sysOrgApi as c } from "./index.mjs";
7
+ class r {
8
+ }
9
+ //模块
10
+ s(r, "MODULE_RBAC", "rbac"), s(r, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
11
+ s(r, "HAS_STATUS", _([
12
+ { key: !0, value: "启用" },
13
+ { key: !1, value: "禁用" }
14
+ ])), // 公司发票类型
15
+ s(r, "ENUM_INVOICE_TYPE", "xyvcard.itsmsys.protobuf.InvoiceType"), // 管理人员工作状态
16
+ s(r, "ENUM_JOB_ATATUS", "xyvcard.itsmsys.protobuf.SysUserJobStatus"), // 运维人员工作模式
17
+ s(r, "ENUM_ENGINEE_JOB_MODE", "xyvcard.itsmsys.protobuf.SysUserJobMode"), // 人员性别
18
+ s(r, "ENUM_GENDER", "jmash.protobuf.Gender");
19
+ class M {
20
+ constructor(t, e) {
21
+ s(this, "values", h([]));
22
+ // 查询条件
23
+ s(this, "query");
24
+ this.values.length = 0, this.values.push(...t.value), this.query = e;
25
+ }
26
+ // 根据给定键获取业务数据项的值的方法
27
+ getValue(t) {
28
+ for (const e of this.values)
29
+ if (e.key == t)
30
+ return e.value;
31
+ return "";
32
+ }
33
+ }
34
+ class v extends y {
35
+ // 实现 useValues 方法
36
+ useValues() {
37
+ return new Promise((t, e) => {
38
+ if (typeof c.findList > "u") {
39
+ t(this.values);
40
+ return;
41
+ }
42
+ const o = { ...this.query };
43
+ c.findList(o).then(({ data: E }) => {
44
+ const n = E.results;
45
+ this.values.length = 0, this.values.push(...this.convertToLayEntryArray(n)), t(this.values);
46
+ }).catch(e);
47
+ });
48
+ }
49
+ convertToLayEntryArray(t) {
50
+ return t.map((e) => ({
51
+ value: e.orgId,
52
+ label: e.orgName,
53
+ parentId: e.parentId || "",
54
+ children: e.children ? this.convertToLayEntryArray(e.children) : []
55
+ }));
56
+ }
57
+ }
58
+ class a {
59
+ }
60
+ // 公司管理状态
61
+ s(a, "hasStatusDict", new M(r.HAS_STATUS, {})), // 公司发票类型
62
+ s(a, "invoiceTypeDictEnum", new u(
63
+ r.MODULE_ITSMSYS,
64
+ r.ENUM_INVOICE_TYPE
65
+ )), // 厅局管理父厅级单位
66
+ s(a, "parentIdBizDict", new v({
67
+ depth: "0",
68
+ orgType: "HALL"
69
+ })), // 管理人员工作状态
70
+ s(a, "jobStatusDictEnum", new u(
71
+ r.MODULE_ITSMSYS,
72
+ r.ENUM_JOB_ATATUS
73
+ )), // 运维人员工作模式
74
+ s(a, "engineeJobModeDictEnum", new u(
75
+ r.MODULE_ITSMSYS,
76
+ r.ENUM_ENGINEE_JOB_MODE
77
+ )), // 性别
78
+ s(a, "genderDict", new u(
79
+ r.MODULE_RBAC,
80
+ r.ENUM_GENDER
81
+ ));
82
+ export {
83
+ a as D
84
+ };