xyvcard-itsmsys 0.0.3 → 0.0.5

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-D82hX9if.mjs +4 -0
  6. package/dist/edit-DLAiwJjs.mjs +342 -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/{invoiceEdit-Chsj8_aC.mjs → edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs} +58 -63
  12. package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
  13. package/dist/{index-CUjT3FVb.mjs → index-BQRtMgmZ.mjs} +106 -117
  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-B02UvpyC.mjs → index-ClU157bA.mjs} +103 -113
  20. package/dist/{index-Cskg0LGf.mjs → index-CogdeN09.mjs} +101 -111
  21. package/dist/index.mjs +2765 -126
  22. package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
  23. package/dist/info-70H0sycC.mjs +187 -0
  24. package/dist/info-BWgVN2mJ.mjs +176 -0
  25. package/dist/info-CE-ZnFj5.mjs +179 -0
  26. package/dist/info-Kf11Ye-N.mjs +187 -0
  27. package/dist/info-MYJGcyMX.mjs +179 -0
  28. package/dist/info-Z5LuCRmr.mjs +187 -0
  29. package/dist/style.css +1 -1
  30. package/dts/src/api/dict.d.ts +4 -1
  31. package/dts/src/api/index.d.ts +4 -1
  32. package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
  33. package/dts/src/api/itsm-sys-org/types.d.ts +2 -2
  34. package/dts/src/api/itsm-sys-user-ext/types.d.ts +18 -3
  35. package/dts/src/constant.d.ts +7 -0
  36. package/dts/src/lang/itsmsys/zh-cn.d.ts +27 -11
  37. package/dts/src/router/index.d.ts +6 -4
  38. package/dts/src/utils/common.d.ts +1 -0
  39. package/dts/src/utils/momentPlugin.d.ts +5 -0
  40. package/dts/src/views/itsmsys/{itsm-sys-gov/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
  41. package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
  42. package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
  43. package/dts/src/views/itsmsys/{itsm-sys-org/invoiceEdit.vue.d.ts → itsm-sys-user-out/edit.vue.d.ts} +6 -15
  44. package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
  45. package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
  46. package/package.json +3 -3
  47. package/dist/edit-BeMy_aOl.mjs +0 -548
  48. package/dist/edit-BhXrnHr7.mjs +0 -520
  49. package/dist/edit-BsLAy2-H.mjs +0 -276
  50. package/dist/edit-D7n1rZY2.mjs +0 -240
  51. package/dist/edit-l4-w6Psd.mjs +0 -520
  52. package/dist/index-Bw3EuEs9.mjs +0 -345
  53. package/dist/index-COPul57Z.mjs +0 -84
  54. package/dist/index-CRlIL96y.mjs +0 -334
  55. package/dist/info-7Rre3Mm0.mjs +0 -198
  56. package/dist/info-CYKiOMB6.mjs +0 -198
  57. package/dist/info-Dub2j7gN.mjs +0 -198
  58. package/dist/info-O3dKVGmT.mjs +0 -10
  59. package/dist/invoiceEdit-C5dQG8ZJ.mjs +0 -253
  60. package/dist/invoiceEdit-DuSCNiDz.mjs +0 -253
  61. package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
  62. package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
  63. package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
  64. package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
  65. package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +0 -31
  66. /package/dts/src/views/{itsmsys-user/itsm-sys-user-man → itsmsys/itsm-sys-org-invoice}/index.vue.d.ts +0 -0
  67. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/edit.vue.d.ts +0 -0
  68. /package/dts/src/views/{itsmsys-user/itsm-sys-user-ops → itsmsys/itsm-sys-user-man}/index.vue.d.ts +0 -0
  69. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-man/info.vue.d.ts +0 -0
  70. /package/dts/src/views/{itsmsys-user → itsmsys}/itsm-sys-user-ops/edit.vue.d.ts +0 -0
@@ -1,26 +1,23 @@
1
- import { defineComponent as X, ref as O, resolveComponent as s, resolveDirective as Y, openBlock as d, createElementBlock as c, createElementVNode as R, createVNode as l, withCtx as n, withKeys as C, unref as a, createTextVNode as p, toDisplayString as u, withDirectives as y, createBlock as P, isRef as M, createCommentVNode as I, vShow as S } from "vue";
2
- import { useTableHooks as Z } from "jmash-core";
3
- import { useI18n as x } from "vue-i18n";
4
- import { sysOrgApi as ee } from "./index.mjs";
5
- import { useRouter as te } from "vue-router";
6
- import { D as oe } from "./index-COPul57Z.mjs";
7
- const le = { class: "app-container" }, ne = { class: "search-container" }, ae = { key: 0 }, se = { key: 1 }, re = {
8
- key: 2,
9
- class: "distance-left"
10
- }, ie = ["onClick"], de = ["onClick"], ue = ["onClick"], _e = /* @__PURE__ */ X({
1
+ import { defineComponent as J, ref as V, resolveComponent as s, resolveDirective as W, openBlock as u, createElementBlock as h, createElementVNode as O, createVNode as l, withCtx as n, withKeys as C, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as b, createBlock as P, isRef as N, createCommentVNode as X } from "vue";
2
+ import { useTableHooks as Y } from "jmash-core";
3
+ import { useI18n as Z } from "vue-i18n";
4
+ import { C as x, D as ee } from "./index-ChTssr8-.mjs";
5
+ import { sysOrgApi as te } from "./index.mjs";
6
+ import { useRouter as oe } from "vue-router";
7
+ const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], ge = /* @__PURE__ */ J({
11
8
  __name: "index",
12
- setup(me) {
13
- const { t: E } = x(), h = te(), r = O({
14
- orgType: "CLOUD"
9
+ setup(ie) {
10
+ const { t: R } = Z(), w = oe(), r = V({
11
+ orgType: x.orgType.cloud
15
12
  }), {
16
13
  tableHooks: i,
17
14
  multipleTableRef: T,
18
- queryFormRef: U,
19
- listLoading: D,
15
+ queryFormRef: E,
16
+ listLoading: I,
20
17
  tableData: j,
21
- total: _
22
- } = Z(E, ee, r);
23
- let f = O([
18
+ total: f
19
+ } = Y(R, te, r);
20
+ let y = V([
24
21
  {
25
22
  label: "sysOrg.orgName",
26
23
  prop: "orgName",
@@ -63,56 +60,57 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
63
60
  isColumn: !0
64
61
  }
65
62
  ]);
66
- function k(o) {
67
- o.contactPersonMobileEncrypt = !o.contactPersonMobileEncrypt;
63
+ function S(o) {
64
+ o.mobileEncrypt = !o.mobileEncrypt;
68
65
  }
69
- function q() {
70
- h.push({ path: "/itsmsys/itsm-sys-org/editInfo" });
66
+ function U() {
67
+ w.push({ path: "/rawitsmsys/itsm-sys-org/edit" });
71
68
  }
72
- function z(o) {
73
- h.push({
74
- path: "/itsmsys/itsm-sys-org/editInfo",
69
+ function q(o) {
70
+ w.push({
71
+ path: "/rawitsmsys/itsm-sys-org/edit",
75
72
  query: { entityKey: o.orgId }
76
73
  });
77
74
  }
78
- function K(o) {
79
- h.push({
80
- path: "/itsmsys/itsm-sys-org/orgInfo",
75
+ function D(o) {
76
+ w.push({
77
+ path: "/rawitsmsys/itsm-sys-org/orgInfo",
81
78
  query: { orgId: o.orgId }
82
79
  });
83
80
  }
84
- function L(o) {
81
+ function M(o) {
85
82
  i.selectionRows.value = o;
86
83
  }
87
- function Q(o) {
84
+ function z(o) {
88
85
  i.handleSort(o.prop, o.order);
89
86
  }
90
87
  return i.getList(), (o, t) => {
91
- const $ = s("el-input"), v = s("el-form-item"), g = s("el-col"), B = s("jmash-select"), w = s("el-button"), V = s("el-row"), A = s("el-form"), F = s("jmash-column-select"), N = s("svg-icon"), H = s("el-switch"), G = s("jmash-table"), J = s("jmash-pagination"), W = s("el-card"), b = Y("hasPerm");
92
- return d(), c("div", le, [
93
- R("div", ne, [
94
- l(A, {
88
+ const $ = s("el-input"), _ = s("el-form-item"), p = s("el-col"), K = s("jmash-select"), v = s("el-button"), k = s("el-row"), Q = s("el-form"), L = s("jmash-column-select"), B = s("jmash-mobileIns-component"), A = s("el-switch"), F = s("jmash-table"), H = s("jmash-pagination"), G = s("el-card"), g = W("hasPerm");
89
+ return u(), h("div", le, [
90
+ O("div", ne, [
91
+ l(Q, {
95
92
  ref_key: "queryFormRef",
96
- ref: U,
93
+ ref: E,
97
94
  model: r.value,
98
95
  inline: !0
99
96
  }, {
100
97
  default: n(() => [
101
- l(V, null, {
98
+ l(k, null, {
102
99
  default: n(() => [
103
- l(g, { span: 6 }, {
100
+ l(p, { span: 6 }, {
104
101
  default: n(() => [
105
- l(v, {
102
+ l(_, {
106
103
  label: o.$t("sysOrg.orgName"),
107
- prop: "orgName"
104
+ prop: "likeOrgName"
108
105
  }, {
109
106
  default: n(() => [
110
107
  l($, {
111
- modelValue: r.value.orgName,
112
- "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.orgName = e),
108
+ modelValue: r.value.likeOrgName,
109
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeOrgName = e),
113
110
  placeholder: o.$t("sysOrg.orgNameRequired"),
114
111
  onKeyup: t[1] || (t[1] = C((e) => a(i).handleQuery(), ["enter"])),
115
- class: "!w-[203px]"
112
+ class: "!w-[203px]",
113
+ clearable: ""
116
114
  }, null, 8, ["modelValue", "placeholder"])
117
115
  ]),
118
116
  _: 1
@@ -120,9 +118,9 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
120
118
  ]),
121
119
  _: 1
122
120
  }),
123
- l(g, { span: 6 }, {
121
+ l(p, { span: 6 }, {
124
122
  default: n(() => [
125
- l(v, {
123
+ l(_, {
126
124
  label: o.$t("sysOrg.contactPerson"),
127
125
  prop: "contactPerson"
128
126
  }, {
@@ -132,7 +130,8 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
132
130
  "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.contactPerson = e),
133
131
  placeholder: o.$t("sysOrg.contactPersonRequired"),
134
132
  onKeyup: t[3] || (t[3] = C((e) => a(i).handleQuery(), ["enter"])),
135
- class: "!w-[203px]"
133
+ class: "!w-[203px]",
134
+ clearable: ""
136
135
  }, null, 8, ["modelValue", "placeholder"])
137
136
  ]),
138
137
  _: 1
@@ -140,18 +139,18 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
140
139
  ]),
141
140
  _: 1
142
141
  }),
143
- l(g, { span: 6 }, {
142
+ l(p, { span: 6 }, {
144
143
  default: n(() => [
145
- l(v, {
144
+ l(_, {
146
145
  label: o.$t("sysOrg.status"),
147
146
  prop: "status"
148
147
  }, {
149
148
  default: n(() => [
150
- l(B, {
149
+ l(K, {
151
150
  modelValue: r.value.status,
152
151
  "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.status = e),
153
152
  placeholder: o.$t("sysOrg.statusRequired"),
154
- data: a(oe).hasStatusDict.values,
153
+ data: a(ee).hasStatusDict.values,
155
154
  clearable: "",
156
155
  onKeyup: t[5] || (t[5] = C((e) => a(i).handleQuery(), ["enter"]))
157
156
  }, null, 8, ["modelValue", "placeholder", "data"])
@@ -161,24 +160,24 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
161
160
  ]),
162
161
  _: 1
163
162
  }),
164
- l(g, { span: 6 }, {
163
+ l(p, { span: 6 }, {
165
164
  default: n(() => [
166
- l(v, { class: "search-btn" }, {
165
+ l(_, { class: "search-btn" }, {
167
166
  default: n(() => [
168
- l(w, {
167
+ l(v, {
169
168
  type: "primary",
170
169
  onClick: t[6] || (t[6] = (e) => a(i).handleQuery())
171
170
  }, {
172
171
  default: n(() => [
173
- p(u(o.$t("common.search")), 1)
172
+ m(d(o.$t("common.search")), 1)
174
173
  ]),
175
174
  _: 1
176
175
  }),
177
- l(w, {
176
+ l(v, {
178
177
  onClick: t[7] || (t[7] = (e) => a(i).resetQuery())
179
178
  }, {
180
179
  default: n(() => [
181
- p(u(o.$t("common.reset")), 1)
180
+ m(d(o.$t("common.reset")), 1)
182
181
  ]),
183
182
  _: 1
184
183
  })
@@ -194,50 +193,50 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
194
193
  ]),
195
194
  _: 1
196
195
  }, 8, ["model"]),
197
- t[14] || (t[14] = R("div", { class: "clear" }, null, -1))
196
+ t[14] || (t[14] = O("div", { class: "clear" }, null, -1))
198
197
  ]),
199
- l(W, {
198
+ l(G, {
200
199
  shadow: "never",
201
200
  class: "table-container"
202
201
  }, {
203
202
  header: n(() => [
204
- l(V, null, {
203
+ l(k, null, {
205
204
  default: n(() => [
206
- l(g, { span: 17 }, {
205
+ l(p, { span: 17 }, {
207
206
  default: n(() => [
208
- y((d(), P(w, {
207
+ b((u(), P(v, {
209
208
  type: "primary",
210
- onClick: q
209
+ onClick: U
211
210
  }, {
212
211
  default: n(() => [
213
- p(u(o.$t("common.add")), 1)
212
+ m(d(o.$t("common.add")), 1)
214
213
  ]),
215
214
  _: 1
216
215
  })), [
217
- [b, ["itsmsys:sys_org:add"]]
216
+ [g, ["itsmsys:sys_org:add"]]
218
217
  ]),
219
- y((d(), P(w, {
218
+ b((u(), P(v, {
220
219
  type: "primary",
221
220
  onClick: t[8] || (t[8] = (e) => a(i).deleteRecords())
222
221
  }, {
223
222
  default: n(() => [
224
- p(u(o.$t("common.batchDelete")), 1)
223
+ m(d(o.$t("common.batchDelete")), 1)
225
224
  ]),
226
225
  _: 1
227
226
  })), [
228
- [b, ["itsmsys:sys_org:delete"]]
227
+ [g, ["itsmsys:sys_org:delete"]]
229
228
  ])
230
229
  ]),
231
230
  _: 1
232
231
  }),
233
- l(g, {
232
+ l(p, {
234
233
  span: 7,
235
234
  class: "container-float"
236
235
  }, {
237
236
  default: n(() => [
238
- l(F, {
239
- modelValue: a(f),
240
- "onUpdate:modelValue": t[9] || (t[9] = (e) => M(f) ? f.value = e : f = e),
237
+ l(L, {
238
+ modelValue: a(y),
239
+ "onUpdate:modelValue": t[9] || (t[9] = (e) => N(y) ? y.value = e : y = e),
241
240
  "label-name": "itsmsys/itsm-sys-org"
242
241
  }, null, 8, ["modelValue"])
243
242
  ]),
@@ -248,76 +247,67 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
248
247
  })
249
248
  ]),
250
249
  footer: n(() => [
251
- a(_) > 0 ? (d(), P(J, {
250
+ a(f) > 0 ? (u(), P(H, {
252
251
  key: 0,
253
- total: a(_),
254
- "onUpdate:total": t[10] || (t[10] = (e) => M(_) ? _.value = e : null),
252
+ total: a(f),
253
+ "onUpdate:total": t[10] || (t[10] = (e) => N(f) ? f.value = e : null),
255
254
  "current-page": r.value.curPage,
256
255
  "onUpdate:currentPage": t[11] || (t[11] = (e) => r.value.curPage = e),
257
256
  "page-size": r.value.pageSize,
258
257
  "onUpdate:pageSize": t[12] || (t[12] = (e) => r.value.pageSize = e),
259
258
  onPagination: t[13] || (t[13] = (e) => a(i).getList())
260
- }, null, 8, ["total", "current-page", "page-size"])) : I("", !0)
259
+ }, null, 8, ["total", "current-page", "page-size"])) : X("", !0)
261
260
  ]),
262
261
  default: n(() => [
263
- l(G, {
262
+ l(F, {
264
263
  ref_key: "multipleTableRef",
265
264
  ref: T,
266
265
  "row-key": "orgId",
267
- "list-loading": a(D),
266
+ "list-loading": a(I),
268
267
  data: a(j),
269
- "table-label": a(f),
270
- onSelectionChange: L,
271
- onSortChange: Q
268
+ "table-label": a(y),
269
+ onSelectionChange: M,
270
+ onSortChange: z
272
271
  }, {
273
272
  contactPersonMobile: n((e) => [
274
- e.data.row.contactPersonMobileEncrypt ? (d(), c("span", se, u(e.data.row.contactPersonMobile), 1)) : (d(), c("span", ae, u(e.data.row.contactPersonMobileIns), 1)),
275
- e.data.row.contactPersonMobileIns ? (d(), c("span", re, [
276
- y(l(N, {
277
- "icon-class": "close-eye",
278
- onClick: (m) => k(e.data.row)
279
- }, null, 8, ["onClick"]), [
280
- [S, !e.data.row.contactPersonMobileEncrypt]
281
- ]),
282
- y(l(N, {
283
- "icon-class": "eye-open",
284
- onClick: (m) => k(e.data.row)
285
- }, null, 8, ["onClick"]), [
286
- [S, e.data.row.contactPersonMobileEncrypt]
287
- ])
288
- ])) : I("", !0)
273
+ l(B, {
274
+ mobilePhoneIns: e.data.row.contactPersonMobileIns,
275
+ mobilePhone: e.data.row.contactPersonMobile,
276
+ mobileEncrypt: e.data.row.mobileEncrypt,
277
+ onToggleEncrypt: (c) => S(e.data.row)
278
+ }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
289
279
  ]),
290
280
  status: n((e) => [
291
- l(H, {
281
+ l(A, {
292
282
  modelValue: e.data.row.status,
293
- "onUpdate:modelValue": (m) => e.data.row.status = m,
294
- onChange: (m) => a(i).enableRecord(e.data.row, e.data.row.status)
283
+ "onUpdate:modelValue": (c) => e.data.row.status = c,
284
+ onChange: (c) => a(i).enableRecord(e.data.row, e.data.row.status)
295
285
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
296
286
  ]),
297
287
  operation: n((e) => [
298
- y((d(), c("span", {
288
+ b((u(), h("span", {
299
289
  class: "el-button-color",
300
- onClick: (m) => z(e.data.row)
290
+ onClick: (c) => q(e.data.row)
301
291
  }, [
302
- p(u(o.$t("common.edit")), 1)
303
- ], 8, ie)), [
304
- [b, ["itsmsys:sys_org:update"]]
292
+ m(d(o.$t("common.edit")), 1)
293
+ ], 8, ae)), [
294
+ [g, ["itsmsys:sys_org:update"]]
305
295
  ]),
306
- y((d(), c("span", {
296
+ b((u(), h("span", {
307
297
  class: "el-button-color dropdown-left",
308
- onClick: (m) => a(i).deleteRecord(e.data.row)
298
+ onClick: (c) => a(i).deleteRecord(e.data.row)
309
299
  }, [
310
- p(u(o.$t("common.delete")), 1)
311
- ], 8, de)), [
312
- [b, ["itsmsys:sys_org:delete"]]
300
+ m(d(o.$t("common.delete")), 1)
301
+ ], 8, se)), [
302
+ [g, ["itsmsys:sys_org:delete"]]
313
303
  ]),
314
- y((d(), c("span", {
304
+ b((u(), h("span", {
315
305
  class: "el-button-color dropdown-left",
316
- onClick: (m) => K(e.data.row)
306
+ onClick: (c) => D(e.data.row)
317
307
  }, [
318
- p(u(o.$t("common.view")), 1)
319
- ], 8, ue)), [
320
- [b, ["itsmsys:sys_org:view"]]
308
+ m(d(o.$t("common.view")), 1)
309
+ ], 8, re)), [
310
+ [g, ["itsmsys:sys_org:view"]]
321
311
  ])
322
312
  ]),
323
313
  _: 1
@@ -330,5 +320,5 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
330
320
  }
331
321
  });
332
322
  export {
333
- _e as default
323
+ ge as default
334
324
  };