xyvcard-itsmsys 0.0.4 → 0.0.6

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 (37) hide show
  1. package/dist/{edit-CkaU_6vk.mjs → edit-BNe0hNw4.mjs} +11 -10
  2. package/dist/{edit-D82hX9if.mjs → edit-BqPZHwxi.mjs} +1 -1
  3. package/dist/{edit-CIm8Y0Be.mjs → edit-CwV1OVfe.mjs} +1 -1
  4. package/dist/{edit-BhRXuYku.mjs → edit-CyM6IuLb.mjs} +30 -29
  5. package/dist/{edit-DPM0jGQT.mjs → edit-DG_Iw1-J.mjs} +1 -1
  6. package/dist/{edit-DZJU5ZPt.mjs → edit-DdUUCXSa.mjs} +1 -1
  7. package/dist/{edit-CWVYUzgf.mjs → edit-RSO388mB.mjs} +10 -9
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs → edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs} +13 -12
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs → edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs} +36 -35
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs → edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs → edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs} +21 -20
  12. package/dist/index-B6vJj_z6.mjs +74 -0
  13. package/dist/{index-CogdeN09.mjs → index-CI8Z4rNf.mjs} +101 -122
  14. package/dist/{index-B_cot8iN.mjs → index-CMBtB1kH.mjs} +126 -133
  15. package/dist/{index-BkHGzL0R.mjs → index-CNGaGeE7.mjs} +130 -137
  16. package/dist/{index-ChTssr8-.mjs → index-CQ5Bo5a2.mjs} +30 -18
  17. package/dist/{index-C6KvLUoL.mjs → index-DirPUdCN.mjs} +1 -1
  18. package/dist/{index-ClU157bA.mjs → index-DxILUznW.mjs} +113 -127
  19. package/dist/index-NugT80P7.mjs +364 -0
  20. package/dist/{index-CEUyLrKg.mjs → index-w2SWNZRB.mjs} +101 -108
  21. package/dist/index.mjs +20 -20
  22. package/dist/index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs +191 -0
  23. package/dist/{info-Z5LuCRmr.mjs → info-BFZTqoY3.mjs} +2 -2
  24. package/dist/{info-BWgVN2mJ.mjs → info-C0OHjgoS.mjs} +1 -1
  25. package/dist/{info-MYJGcyMX.mjs → info-CXx2899k.mjs} +1 -1
  26. package/dist/{info-Kf11Ye-N.mjs → info-DReeRuaA.mjs} +2 -2
  27. package/dist/{info-70H0sycC.mjs → info-Dilg-bji.mjs} +2 -2
  28. package/dist/{info-CE-ZnFj5.mjs → info-DvYUiSRY.mjs} +1 -1
  29. package/dts/src/api/itsm-sys-org/index.d.ts +1 -1
  30. package/dts/src/api/itsm-sys-org/types.d.ts +0 -3
  31. package/dts/src/api/itsm-sys-org-invoice/index.d.ts +1 -0
  32. package/dts/src/api/itsm-sys-org-invoice/types.d.ts +5 -1
  33. package/dts/src/constant.d.ts +9 -1
  34. package/package.json +1 -1
  35. package/dist/index-DOXuGEyW.mjs +0 -62
  36. package/dist/index-i7X9N_rj.mjs +0 -341
  37. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +0 -180
@@ -0,0 +1,364 @@
1
+ import { defineComponent as ee, ref as D, resolveComponent as s, resolveDirective as oe, openBlock as p, createElementBlock as g, createElementVNode as E, createVNode as n, withCtx as l, withKeys as N, unref as m, createTextVNode as c, toDisplayString as d, withDirectives as b, createBlock as R, isRef as te } from "vue";
2
+ import { useTableHooks as ne } from "jmash-core";
3
+ import { ElMessageBox as I, ElMessage as T } from "element-plus";
4
+ import { useI18n as le } from "vue-i18n";
5
+ import { C as se, D as ae } from "./index-CQ5Bo5a2.mjs";
6
+ import { sysOrgApi as w } from "./index.mjs";
7
+ import { useRouter as re } from "vue-router";
8
+ const me = { class: "app-container" }, ie = { class: "search-container" }, ce = ["onClick"], de = ["onClick"], ue = ["onClick"], we = /* @__PURE__ */ ee({
9
+ __name: "index",
10
+ setup(pe) {
11
+ const { t: a } = le(), C = re(), u = D({
12
+ orgType: se.orgType.hall
13
+ }), { tableHooks: r, multipleTableRef: P, queryFormRef: G, listLoading: M, tableData: S } = ne(a, w, u);
14
+ let y = D([
15
+ {
16
+ label: "sysGov.orgName",
17
+ prop: "orgName",
18
+ width: "270",
19
+ isColumn: !0
20
+ },
21
+ {
22
+ label: "sysGov.contactPerson",
23
+ prop: "contactPerson",
24
+ width: "150",
25
+ isColumn: !0
26
+ },
27
+ {
28
+ label: "sysOrg.contactPersonMobile",
29
+ prop: "contactPersonMobile",
30
+ width: "150",
31
+ isColumn: !0,
32
+ slotName: "contactPersonMobile",
33
+ columnType: "slot"
34
+ },
35
+ {
36
+ label: "sysGov.contactPersonTel",
37
+ prop: "contactPersonTel",
38
+ width: "150",
39
+ isColumn: !0
40
+ },
41
+ {
42
+ label: "sysGov.address",
43
+ prop: "address",
44
+ width: "350",
45
+ isColumn: !0
46
+ },
47
+ {
48
+ label: "sysGov.status",
49
+ prop: "status",
50
+ width: "100",
51
+ isColumn: !0,
52
+ slotName: "status",
53
+ columnType: "slot"
54
+ },
55
+ {
56
+ label: "sysGov.orderBy",
57
+ prop: "orderBy",
58
+ width: "100",
59
+ isColumn: !0,
60
+ slotName: "orderBy",
61
+ columnType: "slot"
62
+ },
63
+ {
64
+ label: "common.operate",
65
+ width: "200",
66
+ slotName: "operation",
67
+ columnType: "slot",
68
+ fixed: "right",
69
+ isColumn: !0
70
+ }
71
+ ]);
72
+ function j(o) {
73
+ o.mobileEncrypt = !o.mobileEncrypt;
74
+ }
75
+ function q() {
76
+ C.push({ path: "/rawitsmsys/itsm-sys-gov/edit" });
77
+ }
78
+ function L(o) {
79
+ C.push({
80
+ path: "/rawitsmsys/itsm-sys-gov/edit",
81
+ query: { entityKey: o.orgId }
82
+ });
83
+ }
84
+ function K(o) {
85
+ C.push({
86
+ path: "/rawitsmsys/itsm-sys-gov/govInfo",
87
+ query: { orgId: o.orgId }
88
+ });
89
+ }
90
+ function O(o) {
91
+ r.selectionRows.value = o;
92
+ }
93
+ function U(o) {
94
+ r.handleSort(o.prop, o.order);
95
+ }
96
+ function z(o) {
97
+ I.confirm(a("common.confirmDelete"), a("common.delete"), {
98
+ cancelButtonText: a("common.cancel"),
99
+ confirmButtonText: a("common.confirm"),
100
+ type: "warning"
101
+ }).then(() => {
102
+ w.delete(o).then((t) => {
103
+ t.status === 200 && (T({
104
+ message: a("common.deleteSuccess"),
105
+ type: "success"
106
+ }), r.findList());
107
+ });
108
+ }).catch(() => {
109
+ });
110
+ }
111
+ function A() {
112
+ if (r.selectionRows.value.length === 0) {
113
+ T({
114
+ message: a("common.chooseDelete"),
115
+ type: "warning"
116
+ });
117
+ return;
118
+ }
119
+ const o = r.selectionRows.value.map(
120
+ (t) => w.getKey(t)
121
+ );
122
+ I.confirm(a("common.confirmBatchDelete"), a("common.delete"), {
123
+ cancelButtonText: a("common.cancel"),
124
+ confirmButtonText: a("common.confirm"),
125
+ type: "warning"
126
+ }).then(() => {
127
+ w.batchDelete(o).then((t) => {
128
+ var h;
129
+ t.status === 200 && (T({
130
+ message: a("common.successDelete") + t.data + a("common.stripData"),
131
+ type: "success"
132
+ }), r.findList(), (h = P.value) == null || h.clearSelection());
133
+ });
134
+ }).catch(() => {
135
+ });
136
+ }
137
+ function k() {
138
+ r.findList();
139
+ }
140
+ return r.findList(), (o, t) => {
141
+ const h = s("el-input"), $ = s("el-form-item"), f = s("el-col"), F = s("jmash-select"), v = s("el-button"), V = s("el-row"), H = s("el-form"), Q = s("jmash-column-select"), x = s("jmash-mobileIns-component"), J = s("Bottom"), B = s("el-icon"), W = s("Top"), X = s("el-switch"), Y = s("jmash-table"), Z = s("el-card"), _ = oe("hasPerm");
142
+ return p(), g("div", me, [
143
+ E("div", ie, [
144
+ n(H, {
145
+ ref_key: "queryFormRef",
146
+ ref: G,
147
+ model: u.value,
148
+ inline: !0
149
+ }, {
150
+ default: l(() => [
151
+ n(V, null, {
152
+ default: l(() => [
153
+ n(f, { span: 6 }, {
154
+ default: l(() => [
155
+ n($, {
156
+ label: o.$t("sysGov.orgName"),
157
+ prop: "likeOrgName"
158
+ }, {
159
+ default: l(() => [
160
+ n(h, {
161
+ modelValue: u.value.likeOrgName,
162
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeOrgName = e),
163
+ placeholder: o.$t("sysGov.orgNameRequired"),
164
+ onKeyup: t[1] || (t[1] = N((e) => k(), ["enter"])),
165
+ class: "!w-[203px]",
166
+ clearable: ""
167
+ }, null, 8, ["modelValue", "placeholder"])
168
+ ]),
169
+ _: 1
170
+ }, 8, ["label"])
171
+ ]),
172
+ _: 1
173
+ }),
174
+ n(f, { span: 6 }, {
175
+ default: l(() => [
176
+ n($, {
177
+ label: o.$t("sysGov.status"),
178
+ prop: "status"
179
+ }, {
180
+ default: l(() => [
181
+ n(F, {
182
+ modelValue: u.value.status,
183
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
184
+ placeholder: o.$t("sysGov.statusRequired"),
185
+ data: m(ae).hasStatusDict.values,
186
+ clearable: "",
187
+ onKeyup: t[3] || (t[3] = N((e) => k(), ["enter"]))
188
+ }, null, 8, ["modelValue", "placeholder", "data"])
189
+ ]),
190
+ _: 1
191
+ }, 8, ["label"])
192
+ ]),
193
+ _: 1
194
+ }),
195
+ n(f, { span: 12 }, {
196
+ default: l(() => [
197
+ n($, { class: "search-btn" }, {
198
+ default: l(() => [
199
+ n(v, {
200
+ type: "primary",
201
+ onClick: t[4] || (t[4] = (e) => k())
202
+ }, {
203
+ default: l(() => [
204
+ c(d(o.$t("common.search")), 1)
205
+ ]),
206
+ _: 1
207
+ }),
208
+ n(v, {
209
+ onClick: t[5] || (t[5] = (e) => m(r).resetQuery())
210
+ }, {
211
+ default: l(() => [
212
+ c(d(o.$t("common.reset")), 1)
213
+ ]),
214
+ _: 1
215
+ })
216
+ ]),
217
+ _: 1
218
+ })
219
+ ]),
220
+ _: 1
221
+ })
222
+ ]),
223
+ _: 1
224
+ })
225
+ ]),
226
+ _: 1
227
+ }, 8, ["model"]),
228
+ t[8] || (t[8] = E("div", { class: "clear" }, null, -1))
229
+ ]),
230
+ n(Z, {
231
+ shadow: "never",
232
+ class: "table-container"
233
+ }, {
234
+ header: l(() => [
235
+ n(V, null, {
236
+ default: l(() => [
237
+ n(f, { span: 17 }, {
238
+ default: l(() => [
239
+ b((p(), R(v, {
240
+ type: "primary",
241
+ onClick: q
242
+ }, {
243
+ default: l(() => [
244
+ c(d(o.$t("common.add")), 1)
245
+ ]),
246
+ _: 1
247
+ })), [
248
+ [_, ["itsmsys:sys_gov:add"]]
249
+ ]),
250
+ b((p(), R(v, {
251
+ type: "primary",
252
+ onClick: t[6] || (t[6] = (e) => A())
253
+ }, {
254
+ default: l(() => [
255
+ c(d(o.$t("common.batchDelete")), 1)
256
+ ]),
257
+ _: 1
258
+ })), [
259
+ [_, ["itsmsys:sys_gov:delete"]]
260
+ ])
261
+ ]),
262
+ _: 1
263
+ }),
264
+ n(f, {
265
+ span: 7,
266
+ class: "container-float"
267
+ }, {
268
+ default: l(() => [
269
+ n(Q, {
270
+ modelValue: m(y),
271
+ "onUpdate:modelValue": t[7] || (t[7] = (e) => te(y) ? y.value = e : y = e),
272
+ "label-name": "itsmsys/itsm-sys-gov"
273
+ }, null, 8, ["modelValue"])
274
+ ]),
275
+ _: 1
276
+ })
277
+ ]),
278
+ _: 1
279
+ })
280
+ ]),
281
+ default: l(() => [
282
+ n(Y, {
283
+ ref_key: "multipleTableRef",
284
+ ref: P,
285
+ "row-key": "orgId",
286
+ "list-loading": m(M),
287
+ data: m(S),
288
+ "table-label": m(y),
289
+ onSelectionChange: O,
290
+ onSortChange: U
291
+ }, {
292
+ contactPersonMobile: l((e) => [
293
+ n(x, {
294
+ mobilePhoneIns: e.data.row.contactPersonMobileIns,
295
+ mobilePhone: e.data.row.contactPersonMobile,
296
+ mobileEncrypt: e.data.row.mobileEncrypt,
297
+ onToggleEncrypt: (i) => j(e.data.row)
298
+ }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
299
+ ]),
300
+ orderBy: l((e) => [
301
+ n(B, {
302
+ size: "16",
303
+ onClick: (i) => m(r).handleMove(e.data.row, !1)
304
+ }, {
305
+ default: l(() => [
306
+ n(J)
307
+ ]),
308
+ _: 2
309
+ }, 1032, ["onClick"]),
310
+ n(B, {
311
+ size: "16",
312
+ onClick: (i) => m(r).handleMove(e.data.row, !0)
313
+ }, {
314
+ default: l(() => [
315
+ n(W)
316
+ ]),
317
+ _: 2
318
+ }, 1032, ["onClick"])
319
+ ]),
320
+ status: l((e) => [
321
+ n(X, {
322
+ modelValue: e.data.row.status,
323
+ "onUpdate:modelValue": (i) => e.data.row.status = i,
324
+ onChange: (i) => m(r).enableRecord(e.data.row, e.data.row.status)
325
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
326
+ ]),
327
+ operation: l((e) => [
328
+ b((p(), g("span", {
329
+ class: "el-button-color",
330
+ onClick: (i) => L(e.data.row)
331
+ }, [
332
+ c(d(o.$t("common.edit")), 1)
333
+ ], 8, ce)), [
334
+ [_, ["itsmsys:sys_gov:update"]]
335
+ ]),
336
+ b((p(), g("span", {
337
+ class: "el-button-color dropdown-left",
338
+ onClick: (i) => z(e.data.row)
339
+ }, [
340
+ c(d(o.$t("common.delete")), 1)
341
+ ], 8, de)), [
342
+ [_, ["itsmsys:sys_gov:delete"]]
343
+ ]),
344
+ b((p(), g("span", {
345
+ class: "el-button-color dropdown-left",
346
+ onClick: (i) => K(e.data.row)
347
+ }, [
348
+ c(d(o.$t("common.view")), 1)
349
+ ], 8, ue)), [
350
+ [_, ["itsmsys:sys_gov:view"]]
351
+ ])
352
+ ]),
353
+ _: 1
354
+ }, 8, ["list-loading", "data", "table-label"])
355
+ ]),
356
+ _: 1
357
+ })
358
+ ]);
359
+ };
360
+ }
361
+ });
362
+ export {
363
+ we as default
364
+ };