xyvcard-itsmsys 0.0.25 → 0.0.27

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 (39) hide show
  1. package/dist/{FileSaver.min-BeKvLuyk.mjs → FileSaver.min-5d27MsC6.mjs} +12 -12
  2. package/dist/assets/7f3e996112b4923f.png +0 -0
  3. package/dist/{edit-CfbonHOl.mjs → edit-4Z-ZnpFy.mjs} +1 -1
  4. package/dist/{edit-DybO5r3p.mjs → edit-8-gDtIOz.mjs} +1 -1
  5. package/dist/{edit-BrHOGUbU.mjs → edit-BlkaYTGl.mjs} +1 -1
  6. package/dist/{edit-C82n7Lq0.mjs → edit-CEYAvHd3.mjs} +1 -1
  7. package/dist/{edit-CNEVornb.mjs → edit-QJ7ZmxX_.mjs} +131 -135
  8. package/dist/{edit-DYqAdRsK.mjs → edit-diNsokNw.mjs} +3 -3
  9. package/dist/edit-oJm1rfX1.mjs +410 -0
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs → edit.vue_vue_type_script_setup_true_lang-CFG4x85k.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs → edit.vue_vue_type_script_setup_true_lang-DeduEUOD.mjs} +100 -96
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-BfQVspxd.mjs → edit.vue_vue_type_script_setup_true_lang-T6aiep4s.mjs} +74 -72
  13. package/dist/{edit.vue_vue_type_script_setup_true_lang-Cg1uyqed.mjs → edit.vue_vue_type_script_setup_true_lang-g81nThyI.mjs} +7 -7
  14. package/dist/{import-upload-CC1Ho43e.mjs → import-upload-BxVBkr7-.mjs} +2 -2
  15. package/dist/{import-upload-BaJGVcNb.mjs → import-upload-CtJh5u39.mjs} +2 -2
  16. package/dist/index-3An-8Hfg.mjs +343 -0
  17. package/dist/{index-CAzxJ_Vp.mjs → index-BsrMxEM8.mjs} +146 -116
  18. package/dist/{index-igV06vtf.mjs → index-C2od41K0.mjs} +161 -153
  19. package/dist/{index-cpyRUYdS.mjs → index-CR3fzc4o.mjs} +79 -73
  20. package/dist/{index-Di1yx94g.mjs → index-Cgq1M4Qb.mjs} +120 -112
  21. package/dist/{index-B2xwBTw-.mjs → index-RF4VErgF.mjs} +8 -8
  22. package/dist/{index-IpHv0Vzi.mjs → index-Trc70jRt.mjs} +1 -1
  23. package/dist/{index-cKI_mzoF.mjs → index-XMaINj6l.mjs} +188 -179
  24. package/dist/index.mjs +488 -484
  25. package/dist/index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs +199 -0
  26. package/dist/{info-G1z1-aeX.mjs → info-0SKOqQd1.mjs} +2 -2
  27. package/dist/{info-BUKhtcuu.mjs → info-BVo8clC4.mjs} +2 -2
  28. package/dist/{info-EodyqiPm.mjs → info-CSazWjOe.mjs} +2 -2
  29. package/dist/{info-6E3wqxd6.mjs → info-DzQiIFfX.mjs} +35 -35
  30. package/dist/{info-DttXGxP3.mjs → info-Ju_uuO8i.mjs} +3 -3
  31. package/dist/{info-AE3ch4Zw.mjs → info-n4JaFgZW.mjs} +3 -3
  32. package/dist/style.css +1 -1
  33. package/dts/api/itsm-sys-org/types.d.ts +3 -0
  34. package/dts/lang/itsmsys/zh-cn.d.ts +17 -13
  35. package/package.json +8 -7
  36. package/dist/avatar-DFToerb2.mjs +0 -4
  37. package/dist/edit-COKceKzl.mjs +0 -358
  38. package/dist/index-BV5uRZXE.mjs +0 -313
  39. package/dist/index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs +0 -198
@@ -0,0 +1,343 @@
1
+ import { defineComponent as Z, getCurrentInstance as x, ref as P, onActivated as ee, resolveComponent as s, resolveDirective as V, createElementBlock as v, openBlock as m, createElementVNode as te, createVNode as a, withCtx as l, withKeys as N, unref as n, createTextVNode as i, toDisplayString as d, withDirectives as y, createBlock as w, createCommentVNode as oe, isRef as O } from "vue";
2
+ import { useTableHooks as le } from "jmash-core";
3
+ import { useI18n as ae } from "vue-i18n";
4
+ import { useRouter as ne } from "vue-router";
5
+ import { C as k, D as se } from "./index-dIcRC4jE.mjs";
6
+ import { sysOrgApi as re } from "./index.mjs";
7
+ const ue = { class: "app-container" }, me = { class: "search-container" }, ie = ["onClick"], de = ["onClick"], pe = ["onClick"], ve = /* @__PURE__ */ Z({
8
+ __name: "index",
9
+ setup(ce) {
10
+ const { t: I } = ae(), C = ne(), { proxy: R } = x(), r = P({
11
+ orgType: k.orgType.outsource,
12
+ orderName: k.orderBy.orderName,
13
+ orderAsc: k.orderBy.orderAsc,
14
+ annual: R.$moment.formatDate(/* @__PURE__ */ new Date(), "YYYY")
15
+ }), {
16
+ tableHooks: u,
17
+ multipleTableRef: T,
18
+ queryFormRef: E,
19
+ listLoading: Y,
20
+ tableData: j,
21
+ total: f
22
+ } = le(I, re, r);
23
+ let b = P([
24
+ {
25
+ label: "sysOut.orgName",
26
+ prop: "orgName",
27
+ width: "200",
28
+ sortable: "custom",
29
+ isColumn: !0
30
+ },
31
+ {
32
+ label: "sysOut.contactPerson",
33
+ prop: "contactPerson",
34
+ width: "150",
35
+ sortable: "custom",
36
+ isColumn: !0
37
+ },
38
+ {
39
+ label: "sysOut.contactPersonMobile",
40
+ prop: "contactPersonMobile",
41
+ width: "120",
42
+ isColumn: !0,
43
+ sortable: "custom",
44
+ slotName: "contactPersonMobile",
45
+ columnType: "slot"
46
+ },
47
+ {
48
+ label: "sysOut.contactPersonTel",
49
+ prop: "contactPersonTel",
50
+ width: "120",
51
+ sortable: "custom",
52
+ isColumn: !0
53
+ },
54
+ {
55
+ label: "sysOut.address",
56
+ prop: "address",
57
+ minWidth: "150",
58
+ sortable: "custom",
59
+ isColumn: !0
60
+ },
61
+ {
62
+ label: "sysOut.status",
63
+ prop: "status",
64
+ isColumn: !0,
65
+ slotName: "status",
66
+ width: "70",
67
+ columnType: "slot"
68
+ },
69
+ {
70
+ label: "common.operate",
71
+ width: "200",
72
+ slotName: "operation",
73
+ columnType: "slot",
74
+ fixed: "right",
75
+ isColumn: !0
76
+ }
77
+ ]);
78
+ function D(o) {
79
+ o.mobileEncrypt = !o.mobileEncrypt;
80
+ }
81
+ function S() {
82
+ C.push({ path: "/rawitsmsys/itsm-sys-out/edit" });
83
+ }
84
+ function U(o) {
85
+ C.push({
86
+ path: "/rawitsmsys/itsm-sys-out/edit",
87
+ query: { entityKey: o.orgId }
88
+ });
89
+ }
90
+ function q(o) {
91
+ C.push({
92
+ path: "/rawitsmsys/itsm-sys-out/outInfo",
93
+ query: { orgId: o.orgId }
94
+ });
95
+ }
96
+ function M(o) {
97
+ u.selectionRows.value = o;
98
+ }
99
+ function z(o) {
100
+ u.handleSort(o.prop, o.order);
101
+ }
102
+ return ee(() => {
103
+ u.getList();
104
+ }), (o, t) => {
105
+ const A = s("el-date-picker"), g = s("el-form-item"), p = s("el-col"), B = s("el-input"), K = s("jmash-select"), h = s("el-button"), $ = s("el-row"), L = s("el-form"), Q = s("jmash-column-select"), F = s("jmash-mobileIns-component"), H = s("el-switch"), W = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), _ = V("hasPerm"), X = V("loading");
106
+ return m(), v("div", ue, [
107
+ te("div", me, [
108
+ a(L, {
109
+ ref_key: "queryFormRef",
110
+ ref: E,
111
+ model: r.value,
112
+ inline: !0
113
+ }, {
114
+ default: l(() => [
115
+ a($, null, {
116
+ default: l(() => [
117
+ a(p, { span: 6 }, {
118
+ default: l(() => [
119
+ a(g, {
120
+ label: o.$t("sysOut.annual"),
121
+ prop: "annual"
122
+ }, {
123
+ default: l(() => [
124
+ a(A, {
125
+ modelValue: r.value.annual,
126
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.annual = e),
127
+ type: "year",
128
+ placeholder: o.$t("sysOut.annualRequired"),
129
+ format: "YYYY",
130
+ "value-format": "YYYY",
131
+ clearable: !1,
132
+ class: "!w-[203px]"
133
+ }, null, 8, ["modelValue", "placeholder"])
134
+ ]),
135
+ _: 1
136
+ }, 8, ["label"])
137
+ ]),
138
+ _: 1
139
+ }),
140
+ a(p, { span: 6 }, {
141
+ default: l(() => [
142
+ a(g, {
143
+ label: o.$t("sysOut.orgName"),
144
+ prop: "likeOrgName"
145
+ }, {
146
+ default: l(() => [
147
+ a(B, {
148
+ modelValue: r.value.likeOrgName,
149
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => r.value.likeOrgName = e),
150
+ placeholder: o.$t("sysOut.orgNameRequired"),
151
+ onKeyup: t[2] || (t[2] = N((e) => n(u).handleQuery(), ["enter"])),
152
+ class: "!w-[203px]",
153
+ clearable: ""
154
+ }, null, 8, ["modelValue", "placeholder"])
155
+ ]),
156
+ _: 1
157
+ }, 8, ["label"])
158
+ ]),
159
+ _: 1
160
+ }),
161
+ a(p, { span: 6 }, {
162
+ default: l(() => [
163
+ a(g, {
164
+ label: o.$t("sysOut.status"),
165
+ prop: "status"
166
+ }, {
167
+ default: l(() => [
168
+ a(K, {
169
+ modelValue: r.value.status,
170
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => r.value.status = e),
171
+ placeholder: o.$t("sysOut.statusRequired"),
172
+ data: n(se).hasStatusDict.values,
173
+ clearable: "",
174
+ onKeyup: t[4] || (t[4] = N((e) => n(u).handleQuery(), ["enter"]))
175
+ }, null, 8, ["modelValue", "placeholder", "data"])
176
+ ]),
177
+ _: 1
178
+ }, 8, ["label"])
179
+ ]),
180
+ _: 1
181
+ }),
182
+ a(p, { span: 6 }, {
183
+ default: l(() => [
184
+ a(g, { class: "search-btn" }, {
185
+ default: l(() => [
186
+ a(h, {
187
+ type: "primary",
188
+ onClick: t[5] || (t[5] = (e) => n(u).handleQuery())
189
+ }, {
190
+ default: l(() => [
191
+ i(d(o.$t("common.search")), 1)
192
+ ]),
193
+ _: 1
194
+ }),
195
+ a(h, {
196
+ onClick: t[6] || (t[6] = (e) => n(u).resetQuery())
197
+ }, {
198
+ default: l(() => [
199
+ i(d(o.$t("common.reset")), 1)
200
+ ]),
201
+ _: 1
202
+ })
203
+ ]),
204
+ _: 1
205
+ })
206
+ ]),
207
+ _: 1
208
+ })
209
+ ]),
210
+ _: 1
211
+ })
212
+ ]),
213
+ _: 1
214
+ }, 8, ["model"])
215
+ ]),
216
+ a(J, {
217
+ shadow: "never",
218
+ class: "table-container"
219
+ }, {
220
+ header: l(() => [
221
+ a($, null, {
222
+ default: l(() => [
223
+ a(p, { span: 17 }, {
224
+ default: l(() => [
225
+ y((m(), w(h, {
226
+ type: "primary",
227
+ onClick: S
228
+ }, {
229
+ default: l(() => [
230
+ i(d(o.$t("common.add")), 1)
231
+ ]),
232
+ _: 1
233
+ })), [
234
+ [_, ["itsmsys:sys_org_out:add"]]
235
+ ]),
236
+ y((m(), w(h, {
237
+ type: "primary",
238
+ onClick: t[7] || (t[7] = (e) => n(u).deleteRecords())
239
+ }, {
240
+ default: l(() => [
241
+ i(d(o.$t("common.batchDelete")), 1)
242
+ ]),
243
+ _: 1
244
+ })), [
245
+ [_, ["itsmsys:sys_org_out:delete"]]
246
+ ])
247
+ ]),
248
+ _: 1
249
+ }),
250
+ a(p, {
251
+ span: 7,
252
+ class: "container-float"
253
+ }, {
254
+ default: l(() => [
255
+ a(Q, {
256
+ modelValue: n(b),
257
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => O(b) ? b.value = e : b = e),
258
+ "label-name": "itsmsys/itsm-sys-org"
259
+ }, null, 8, ["modelValue"])
260
+ ]),
261
+ _: 1
262
+ })
263
+ ]),
264
+ _: 1
265
+ })
266
+ ]),
267
+ footer: l(() => [
268
+ n(f) > 0 ? (m(), w(G, {
269
+ key: 0,
270
+ total: n(f),
271
+ "onUpdate:total": t[9] || (t[9] = (e) => O(f) ? f.value = e : null),
272
+ "current-page": r.value.curPage,
273
+ "onUpdate:currentPage": t[10] || (t[10] = (e) => r.value.curPage = e),
274
+ "page-size": r.value.pageSize,
275
+ "onUpdate:pageSize": t[11] || (t[11] = (e) => r.value.pageSize = e),
276
+ onPagination: t[12] || (t[12] = (e) => n(u).getList())
277
+ }, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
278
+ ]),
279
+ default: l(() => [
280
+ y((m(), w(W, {
281
+ ref_key: "multipleTableRef",
282
+ ref: T,
283
+ "row-key": "orgId",
284
+ data: n(j),
285
+ "table-label": n(b),
286
+ onSelectionChange: M,
287
+ onSortChange: z
288
+ }, {
289
+ contactPersonMobile: l((e) => [
290
+ a(F, {
291
+ mobilePhoneIns: e.data.row.contactPersonMobileIns,
292
+ mobilePhone: e.data.row.contactPersonMobile,
293
+ mobileEncrypt: e.data.row.mobileEncrypt,
294
+ onToggleEncrypt: (c) => D(e.data.row)
295
+ }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
296
+ ]),
297
+ status: l((e) => [
298
+ a(H, {
299
+ modelValue: e.data.row.status,
300
+ "onUpdate:modelValue": (c) => e.data.row.status = c,
301
+ onChange: (c) => n(u).enableRecord(e.data.row, e.data.row.status)
302
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
303
+ ]),
304
+ operation: l((e) => [
305
+ y((m(), v("span", {
306
+ class: "el-button-color",
307
+ onClick: (c) => U(e.data.row)
308
+ }, [
309
+ i(d(o.$t("common.edit")), 1)
310
+ ], 8, ie)), [
311
+ [_, ["itsmsys:sys_org_out:update"]]
312
+ ]),
313
+ y((m(), v("span", {
314
+ class: "el-button-color",
315
+ onClick: (c) => n(u).deleteRecord(e.data.row)
316
+ }, [
317
+ i(d(o.$t("common.delete")), 1)
318
+ ], 8, de)), [
319
+ [_, ["itsmsys:sys_org_out:delete"]]
320
+ ]),
321
+ y((m(), v("span", {
322
+ class: "el-button-color",
323
+ onClick: (c) => q(e.data.row)
324
+ }, [
325
+ i(d(o.$t("common.view")), 1)
326
+ ], 8, pe)), [
327
+ [_, ["itsmsys:sys_org_out:view"]]
328
+ ])
329
+ ]),
330
+ _: 1
331
+ }, 8, ["data", "table-label"])), [
332
+ [X, n(Y)]
333
+ ])
334
+ ]),
335
+ _: 1
336
+ })
337
+ ]);
338
+ };
339
+ }
340
+ });
341
+ export {
342
+ ve as default
343
+ };