xyvcard-itsmsys 0.0.11 → 0.0.13

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 (52) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/{edit-Dxs-2AFY.mjs → edit-B7N9QLYv.mjs} +104 -87
  3. package/dist/{edit-BSIP_9Mq.mjs → edit-CBnnqc6q.mjs} +104 -86
  4. package/dist/{edit-CiCHPkRg.mjs → edit-CuD0yKla.mjs} +1 -1
  5. package/dist/{edit-BcE5qrWo.mjs → edit-D2lhB7lU.mjs} +1 -1
  6. package/dist/{edit-BsUWSNnA.mjs → edit-DQ04LbhC.mjs} +96 -79
  7. package/dist/{edit-znznl9Td.mjs → edit-IRLCMnWT.mjs} +1 -1
  8. package/dist/{edit-CW0kqOpj.mjs → edit-g4L03h6h.mjs} +1 -1
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-CEzM2X-C.mjs +463 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-DD9BucLK.mjs +463 -0
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-Daxe3FpV.mjs} +98 -68
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-SzJApeB-.mjs +482 -0
  13. package/dist/import-upload-Bsl-7w0B.mjs +161 -0
  14. package/dist/import-upload-COLdGpcs.mjs +161 -0
  15. package/dist/index-B4M6ZC7N.mjs +196 -0
  16. package/dist/{index-BV3Je3Rq.mjs → index-BBPQd1dS.mjs} +139 -128
  17. package/dist/{index-BIvJ7rs4.mjs → index-BxX1lrD5.mjs} +64 -62
  18. package/dist/{index-CzE5REdf.mjs → index-CzVhcXfx.mjs} +57 -55
  19. package/dist/index-DNpEXtyQ.mjs +423 -0
  20. package/dist/index-Dh_kNwqv.mjs +470 -0
  21. package/dist/{index-CNRO77Xg.mjs → index-Dih4mOx4.mjs} +1 -1
  22. package/dist/{index-4qnVgDwe.mjs → index-n4FekcLF.mjs} +210 -138
  23. package/dist/index.mjs +293 -256
  24. package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-D0pyunau.mjs} +41 -34
  25. package/dist/info-BHylKqOX.mjs +186 -0
  26. package/dist/info-BZOWTNSd.mjs +209 -0
  27. package/dist/{info-BP7wPWFZ.mjs → info-CDtqpKVD.mjs} +80 -58
  28. package/dist/{info-DRYPl2T-.mjs → info-XDDe5ve6.mjs} +58 -47
  29. package/dist/{info-DCRqBi8M.mjs → info-bwhmPzeG.mjs} +71 -60
  30. package/dist/info-dBqoxL-p.mjs +209 -0
  31. package/dist/style.css +1 -1
  32. package/dts/api/dict.d.ts +7 -7
  33. package/dts/api/index.d.ts +6 -2
  34. package/dts/api/itsm-sys-org/types.d.ts +1 -0
  35. package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
  36. package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
  37. package/dts/api/itsm-sys-user-ext/types.d.ts +19 -1
  38. package/dts/constant.d.ts +9 -0
  39. package/dts/index.d.ts +1 -0
  40. package/dts/lang/itsmsys/zh-cn.d.ts +17 -0
  41. package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
  42. package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
  43. package/package.json +3 -3
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs +0 -404
  47. package/dist/index-BTO0NHK6.mjs +0 -397
  48. package/dist/index-Hh4b5GAI.mjs +0 -351
  49. package/dist/index-cBbN-uY2.mjs +0 -155
  50. package/dist/info-BCPme1g5.mjs +0 -187
  51. package/dist/info-CtGMbfQJ.mjs +0 -187
  52. package/dist/info-Dk3RzCIp.mjs +0 -176
@@ -1,17 +1,17 @@
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-cBbN-uY2.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({
1
+ import { defineComponent as te, ref as N, resolveComponent as s, resolveDirective as ne, openBlock as y, createElementBlock as k, createElementVNode as R, createVNode as n, withCtx as l, withKeys as I, unref as _, createTextVNode as c, toDisplayString as d, withDirectives as g, createBlock as G, isRef as le } from "vue";
2
+ import { useTableHooks as se } from "jmash-core";
3
+ import { ElMessageBox as j, ElMessage as T } from "element-plus";
4
+ import { useI18n as ae } from "vue-i18n";
5
+ import { C as re, D as ie } from "./index-B4M6ZC7N.mjs";
6
+ import { sysOrgApi as u } from "./index.mjs";
7
+ import { useRouter as me } from "vue-router";
8
+ const ce = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], fe = ["onClick"], ke = /* @__PURE__ */ te({
9
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([
10
+ setup(ye) {
11
+ const { t: a } = ae(), $ = me(), p = N({
12
+ orgType: re.orgType.hall
13
+ }), { tableHooks: r, multipleTableRef: P, queryFormRef: V, listLoading: M, tableData: S } = se(a, u, p);
14
+ let b = N([
15
15
  {
16
16
  label: "sysGov.orgName",
17
17
  prop: "orgName",
@@ -69,37 +69,45 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
69
69
  isColumn: !0
70
70
  }
71
71
  ]);
72
- function j(o) {
73
- o.mobileEncrypt = !o.mobileEncrypt;
72
+ function q(e) {
73
+ e.mobileEncrypt = !e.mobileEncrypt;
74
74
  }
75
- function q() {
76
- C.push({ path: "/rawitsmsys/itsm-sys-gov/edit" });
75
+ function L() {
76
+ $.push({ path: "/rawitsmsys/itsm-sys-gov/edit" });
77
77
  }
78
- function L(o) {
79
- C.push({
78
+ function K(e) {
79
+ $.push({
80
80
  path: "/rawitsmsys/itsm-sys-gov/edit",
81
- query: { entityKey: o.orgId }
81
+ query: { entityKey: e.orgId }
82
82
  });
83
83
  }
84
- function K(o) {
85
- C.push({
84
+ function O(e) {
85
+ $.push({
86
86
  path: "/rawitsmsys/itsm-sys-gov/govInfo",
87
- query: { orgId: o.orgId }
87
+ query: { orgId: e.orgId }
88
88
  });
89
89
  }
90
- function O(o) {
91
- r.selectionRows.value = o;
90
+ function U(e) {
91
+ r.selectionRows.value = e;
92
92
  }
93
- function U(o) {
94
- r.handleSort(o.prop, o.order);
93
+ function F(e) {
94
+ r.handleSort(e.prop, e.order);
95
95
  }
96
- function z(o) {
97
- I.confirm(a("common.confirmDelete"), a("common.delete"), {
96
+ function B(e, t) {
97
+ if (typeof u.move > "u")
98
+ return;
99
+ const f = u.getKey(e);
100
+ u.move(f, t).then((m) => {
101
+ !m || typeof m != "object" || m.status === 200 && r.findList();
102
+ });
103
+ }
104
+ function z(e) {
105
+ j.confirm(a("common.confirmDelete"), a("common.delete"), {
98
106
  cancelButtonText: a("common.cancel"),
99
107
  confirmButtonText: a("common.confirm"),
100
108
  type: "warning"
101
109
  }).then(() => {
102
- w.delete(o).then((t) => {
110
+ u.delete(e).then((t) => {
103
111
  t.status === 200 && (T({
104
112
  message: a("common.deleteSuccess"),
105
113
  type: "success"
@@ -116,52 +124,55 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
116
124
  });
117
125
  return;
118
126
  }
119
- const o = r.selectionRows.value.map(
120
- (t) => w.getKey(t)
127
+ const e = r.selectionRows.value.map(
128
+ (t) => u.getKey(t)
121
129
  );
122
- I.confirm(a("common.confirmBatchDelete"), a("common.delete"), {
130
+ j.confirm(a("common.confirmBatchDelete"), a("common.delete"), {
123
131
  cancelButtonText: a("common.cancel"),
124
132
  confirmButtonText: a("common.confirm"),
125
133
  type: "warning"
126
134
  }).then(() => {
127
- w.batchDelete(o).then((t) => {
128
- var h;
135
+ u.batchDelete(e).then((t) => {
136
+ var f;
129
137
  t.status === 200 && (T({
130
138
  message: a("common.successDelete") + t.data + a("common.stripData"),
131
139
  type: "success"
132
- }), r.findList(), (h = P.value) == null || h.clearSelection());
140
+ }), r.findList(), (f = P.value) == null || f.clearSelection());
133
141
  });
134
142
  }).catch(() => {
135
143
  });
136
144
  }
137
- function k() {
145
+ function w() {
138
146
  r.findList();
139
147
  }
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, {
148
+ function H() {
149
+ V.value.resetFields(), w();
150
+ }
151
+ return r.findList(), (e, t) => {
152
+ const f = s("el-input"), m = s("el-form-item"), v = s("el-col"), Q = s("jmash-select"), C = s("el-button"), D = s("el-row"), x = s("el-form"), J = s("jmash-column-select"), W = s("jmash-mobileIns-component"), X = s("Bottom"), E = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"), h = ne("hasPerm");
153
+ return y(), k("div", ce, [
154
+ R("div", de, [
155
+ n(x, {
145
156
  ref_key: "queryFormRef",
146
- ref: G,
147
- model: u.value,
157
+ ref: V,
158
+ model: p.value,
148
159
  inline: !0
149
160
  }, {
150
161
  default: l(() => [
151
- n(V, null, {
162
+ n(D, null, {
152
163
  default: l(() => [
153
- n(f, { span: 6 }, {
164
+ n(v, { span: 6 }, {
154
165
  default: l(() => [
155
- n($, {
156
- label: o.$t("sysGov.orgName"),
166
+ n(m, {
167
+ label: e.$t("sysGov.orgName"),
157
168
  prop: "likeOrgName"
158
169
  }, {
159
170
  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"])),
171
+ n(f, {
172
+ modelValue: p.value.likeOrgName,
173
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => p.value.likeOrgName = o),
174
+ placeholder: e.$t("sysGov.orgNameRequired"),
175
+ onKeyup: t[1] || (t[1] = I((o) => w(), ["enter"])),
165
176
  class: "!w-[203px]",
166
177
  clearable: ""
167
178
  }, null, 8, ["modelValue", "placeholder"])
@@ -171,20 +182,20 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
171
182
  ]),
172
183
  _: 1
173
184
  }),
174
- n(f, { span: 6 }, {
185
+ n(v, { span: 6 }, {
175
186
  default: l(() => [
176
- n($, {
177
- label: o.$t("sysGov.status"),
187
+ n(m, {
188
+ label: e.$t("sysGov.status"),
178
189
  prop: "status"
179
190
  }, {
180
191
  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,
192
+ n(Q, {
193
+ modelValue: p.value.status,
194
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => p.value.status = o),
195
+ placeholder: e.$t("sysGov.statusRequired"),
196
+ data: _(ie).hasStatusDict.values,
186
197
  clearable: "",
187
- onKeyup: t[3] || (t[3] = N((e) => k(), ["enter"]))
198
+ onKeyup: t[3] || (t[3] = I((o) => w(), ["enter"]))
188
199
  }, null, 8, ["modelValue", "placeholder", "data"])
189
200
  ]),
190
201
  _: 1
@@ -192,24 +203,24 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
192
203
  ]),
193
204
  _: 1
194
205
  }),
195
- n(f, { span: 12 }, {
206
+ n(v, { span: 12 }, {
196
207
  default: l(() => [
197
- n($, { class: "search-btn" }, {
208
+ n(m, { class: "search-btn" }, {
198
209
  default: l(() => [
199
- n(v, {
210
+ n(C, {
200
211
  type: "primary",
201
- onClick: t[4] || (t[4] = (e) => k())
212
+ onClick: t[4] || (t[4] = (o) => w())
202
213
  }, {
203
214
  default: l(() => [
204
- c(d(o.$t("common.search")), 1)
215
+ c(d(e.$t("common.search")), 1)
205
216
  ]),
206
217
  _: 1
207
218
  }),
208
- n(v, {
209
- onClick: t[5] || (t[5] = (e) => m(r).resetQuery())
219
+ n(C, {
220
+ onClick: t[5] || (t[5] = (o) => H())
210
221
  }, {
211
222
  default: l(() => [
212
- c(d(o.$t("common.reset")), 1)
223
+ c(d(e.$t("common.reset")), 1)
213
224
  ]),
214
225
  _: 1
215
226
  })
@@ -225,51 +236,51 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
225
236
  ]),
226
237
  _: 1
227
238
  }, 8, ["model"]),
228
- t[8] || (t[8] = E("div", { class: "clear" }, null, -1))
239
+ t[8] || (t[8] = R("div", { class: "clear" }, null, -1))
229
240
  ]),
230
- n(Z, {
241
+ n(oe, {
231
242
  shadow: "never",
232
243
  class: "table-container"
233
244
  }, {
234
245
  header: l(() => [
235
- n(V, null, {
246
+ n(D, null, {
236
247
  default: l(() => [
237
- n(f, { span: 17 }, {
248
+ n(v, { span: 17 }, {
238
249
  default: l(() => [
239
- b((p(), R(v, {
250
+ g((y(), G(C, {
240
251
  type: "primary",
241
- onClick: q
252
+ onClick: L
242
253
  }, {
243
254
  default: l(() => [
244
- c(d(o.$t("common.add")), 1)
255
+ c(d(e.$t("common.add")), 1)
245
256
  ]),
246
257
  _: 1
247
258
  })), [
248
- [_, ["itsmsys:sys_gov:add"]]
259
+ [h, ["itsmsys:sys_org_gov:add"]]
249
260
  ]),
250
- b((p(), R(v, {
261
+ g((y(), G(C, {
251
262
  type: "primary",
252
- onClick: t[6] || (t[6] = (e) => A())
263
+ onClick: t[6] || (t[6] = (o) => A())
253
264
  }, {
254
265
  default: l(() => [
255
- c(d(o.$t("common.batchDelete")), 1)
266
+ c(d(e.$t("common.batchDelete")), 1)
256
267
  ]),
257
268
  _: 1
258
269
  })), [
259
- [_, ["itsmsys:sys_gov:delete"]]
270
+ [h, ["itsmsys:sys_org_gov:delete"]]
260
271
  ])
261
272
  ]),
262
273
  _: 1
263
274
  }),
264
- n(f, {
275
+ n(v, {
265
276
  span: 7,
266
277
  class: "container-float"
267
278
  }, {
268
279
  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"
280
+ n(J, {
281
+ modelValue: _(b),
282
+ "onUpdate:modelValue": t[7] || (t[7] = (o) => le(b) ? b.value = o : b = o),
283
+ "label-name": "itsmsys/itsm-sys-org"
273
284
  }, null, 8, ["modelValue"])
274
285
  ]),
275
286
  _: 1
@@ -279,75 +290,75 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
279
290
  })
280
291
  ]),
281
292
  default: l(() => [
282
- n(Y, {
293
+ n(ee, {
283
294
  ref_key: "multipleTableRef",
284
295
  ref: P,
285
296
  "row-key": "orgId",
286
- "list-loading": m(M),
287
- data: m(S),
288
- "table-label": m(y),
289
- onSelectionChange: O,
290
- onSortChange: U
297
+ "list-loading": _(M),
298
+ data: _(S),
299
+ "table-label": _(b),
300
+ onSelectionChange: U,
301
+ onSortChange: F
291
302
  }, {
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)
303
+ contactPersonMobile: l((o) => [
304
+ n(W, {
305
+ mobilePhoneIns: o.data.row.contactPersonMobileIns,
306
+ mobilePhone: o.data.row.contactPersonMobile,
307
+ mobileEncrypt: o.data.row.mobileEncrypt,
308
+ onToggleEncrypt: (i) => q(o.data.row)
298
309
  }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
299
310
  ]),
300
- orderBy: l((e) => [
301
- n(B, {
311
+ orderBy: l((o) => [
312
+ n(E, {
302
313
  size: "16",
303
- onClick: (i) => m(r).handleMove(e.data.row, !1)
314
+ onClick: (i) => B(o.data.row, !1)
304
315
  }, {
305
316
  default: l(() => [
306
- n(J)
317
+ n(X)
307
318
  ]),
308
319
  _: 2
309
320
  }, 1032, ["onClick"]),
310
- n(B, {
321
+ n(E, {
311
322
  size: "16",
312
- onClick: (i) => m(r).handleMove(e.data.row, !0)
323
+ onClick: (i) => B(o.data.row, !0)
313
324
  }, {
314
325
  default: l(() => [
315
- n(W)
326
+ n(Y)
316
327
  ]),
317
328
  _: 2
318
329
  }, 1032, ["onClick"])
319
330
  ]),
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)
331
+ status: l((o) => [
332
+ n(Z, {
333
+ modelValue: o.data.row.status,
334
+ "onUpdate:modelValue": (i) => o.data.row.status = i,
335
+ onChange: (i) => _(r).enableRecord(o.data.row, o.data.row.status)
325
336
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
326
337
  ]),
327
- operation: l((e) => [
328
- b((p(), g("span", {
338
+ operation: l((o) => [
339
+ g((y(), k("span", {
329
340
  class: "el-button-color",
330
- onClick: (i) => L(e.data.row)
341
+ onClick: (i) => K(o.data.row)
331
342
  }, [
332
- c(d(o.$t("common.edit")), 1)
333
- ], 8, ce)), [
334
- [_, ["itsmsys:sys_gov:update"]]
343
+ c(d(e.$t("common.edit")), 1)
344
+ ], 8, ue)), [
345
+ [h, ["itsmsys:sys_org_gov:update"]]
335
346
  ]),
336
- b((p(), g("span", {
347
+ g((y(), k("span", {
337
348
  class: "el-button-color dropdown-left",
338
- onClick: (i) => z(e.data.row)
349
+ onClick: (i) => z(o.data.row)
339
350
  }, [
340
- c(d(o.$t("common.delete")), 1)
341
- ], 8, de)), [
342
- [_, ["itsmsys:sys_gov:delete"]]
351
+ c(d(e.$t("common.delete")), 1)
352
+ ], 8, pe)), [
353
+ [h, ["itsmsys:sys_org_gov:delete"]]
343
354
  ]),
344
- b((p(), g("span", {
355
+ g((y(), k("span", {
345
356
  class: "el-button-color dropdown-left",
346
- onClick: (i) => K(e.data.row)
357
+ onClick: (i) => O(o.data.row)
347
358
  }, [
348
- c(d(o.$t("common.view")), 1)
349
- ], 8, ue)), [
350
- [_, ["itsmsys:sys_gov:view"]]
359
+ c(d(e.$t("common.view")), 1)
360
+ ], 8, fe)), [
361
+ [h, ["itsmsys:sys_org_gov:view"]]
351
362
  ])
352
363
  ]),
353
364
  _: 1
@@ -360,5 +371,5 @@ const me = { class: "app-container" }, ie = { class: "search-container" }, ce =
360
371
  }
361
372
  });
362
373
  export {
363
- we as default
374
+ ke as default
364
375
  };