xyvcard-itsmsys 0.0.26 → 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.
@@ -1,25 +1,26 @@
1
- import { defineComponent as X, ref as $, onActivated as Y, resolveComponent as s, resolveDirective as V, createElementBlock as h, openBlock as i, createElementVNode as Z, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as c, createBlock as v, createCommentVNode as x, isRef as O } from "vue";
2
- import { useTableHooks as ee } from "jmash-core";
3
- import { useI18n as te } from "vue-i18n";
4
- import { useRouter as oe } from "vue-router";
5
- import { C as k, D as le } from "./index-dIcRC4jE.mjs";
6
- import { sysOrgApi as ne } from "./index.mjs";
7
- const ae = { class: "app-container" }, se = { class: "search-container" }, re = ["onClick"], ue = ["onClick"], ie = ["onClick"], fe = /* @__PURE__ */ X({
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
8
  __name: "index",
9
- setup(me) {
10
- const { t: T } = te(), w = oe(), u = $({
9
+ setup(ce) {
10
+ const { t: I } = ae(), C = ne(), { proxy: R } = x(), r = P({
11
11
  orgType: k.orgType.outsource,
12
12
  orderName: k.orderBy.orderName,
13
- orderAsc: k.orderBy.orderAsc
13
+ orderAsc: k.orderBy.orderAsc,
14
+ annual: R.$moment.formatDate(/* @__PURE__ */ new Date(), "YYYY")
14
15
  }), {
15
- tableHooks: r,
16
- multipleTableRef: E,
17
- queryFormRef: I,
18
- listLoading: R,
16
+ tableHooks: u,
17
+ multipleTableRef: T,
18
+ queryFormRef: E,
19
+ listLoading: Y,
19
20
  tableData: j,
20
21
  total: f
21
- } = ee(T, ne, u);
22
- let y = $([
22
+ } = le(I, re, r);
23
+ let b = P([
23
24
  {
24
25
  label: "sysOut.orgName",
25
26
  prop: "orgName",
@@ -74,57 +75,80 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
74
75
  isColumn: !0
75
76
  }
76
77
  ]);
77
- function S(o) {
78
+ function D(o) {
78
79
  o.mobileEncrypt = !o.mobileEncrypt;
79
80
  }
80
- function D() {
81
- w.push({ path: "/rawitsmsys/itsm-sys-out/edit" });
81
+ function S() {
82
+ C.push({ path: "/rawitsmsys/itsm-sys-out/edit" });
82
83
  }
83
84
  function U(o) {
84
- w.push({
85
+ C.push({
85
86
  path: "/rawitsmsys/itsm-sys-out/edit",
86
87
  query: { entityKey: o.orgId }
87
88
  });
88
89
  }
89
90
  function q(o) {
90
- w.push({
91
+ C.push({
91
92
  path: "/rawitsmsys/itsm-sys-out/outInfo",
92
93
  query: { orgId: o.orgId }
93
94
  });
94
95
  }
95
96
  function M(o) {
96
- r.selectionRows.value = o;
97
+ u.selectionRows.value = o;
97
98
  }
98
99
  function z(o) {
99
- r.handleSort(o.prop, o.order);
100
+ u.handleSort(o.prop, o.order);
100
101
  }
101
- return Y(() => {
102
- r.getList();
102
+ return ee(() => {
103
+ u.getList();
103
104
  }), (o, t) => {
104
- const A = s("el-input"), C = s("el-form-item"), b = s("el-col"), B = s("jmash-select"), g = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), _ = V("hasPerm"), J = V("loading");
105
- return i(), h("div", ae, [
106
- Z("div", se, [
107
- n(K, {
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, {
108
109
  ref_key: "queryFormRef",
109
- ref: I,
110
- model: u.value,
110
+ ref: E,
111
+ model: r.value,
111
112
  inline: !0
112
113
  }, {
113
114
  default: l(() => [
114
- n(P, null, {
115
+ a($, null, {
115
116
  default: l(() => [
116
- n(b, { span: 6 }, {
117
+ a(p, { span: 6 }, {
117
118
  default: l(() => [
118
- n(C, {
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, {
119
143
  label: o.$t("sysOut.orgName"),
120
144
  prop: "likeOrgName"
121
145
  }, {
122
146
  default: l(() => [
123
- n(A, {
124
- modelValue: u.value.likeOrgName,
125
- "onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeOrgName = e),
147
+ a(B, {
148
+ modelValue: r.value.likeOrgName,
149
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => r.value.likeOrgName = e),
126
150
  placeholder: o.$t("sysOut.orgNameRequired"),
127
- onKeyup: t[1] || (t[1] = N((e) => a(r).handleQuery(), ["enter"])),
151
+ onKeyup: t[2] || (t[2] = N((e) => n(u).handleQuery(), ["enter"])),
128
152
  class: "!w-[203px]",
129
153
  clearable: ""
130
154
  }, null, 8, ["modelValue", "placeholder"])
@@ -134,20 +158,20 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
134
158
  ]),
135
159
  _: 1
136
160
  }),
137
- n(b, { span: 6 }, {
161
+ a(p, { span: 6 }, {
138
162
  default: l(() => [
139
- n(C, {
163
+ a(g, {
140
164
  label: o.$t("sysOut.status"),
141
165
  prop: "status"
142
166
  }, {
143
167
  default: l(() => [
144
- n(B, {
145
- modelValue: u.value.status,
146
- "onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
168
+ a(K, {
169
+ modelValue: r.value.status,
170
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => r.value.status = e),
147
171
  placeholder: o.$t("sysOut.statusRequired"),
148
- data: a(le).hasStatusDict.values,
172
+ data: n(se).hasStatusDict.values,
149
173
  clearable: "",
150
- onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
174
+ onKeyup: t[4] || (t[4] = N((e) => n(u).handleQuery(), ["enter"]))
151
175
  }, null, 8, ["modelValue", "placeholder", "data"])
152
176
  ]),
153
177
  _: 1
@@ -155,24 +179,24 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
155
179
  ]),
156
180
  _: 1
157
181
  }),
158
- n(b, { span: 12 }, {
182
+ a(p, { span: 6 }, {
159
183
  default: l(() => [
160
- n(C, { class: "search-btn" }, {
184
+ a(g, { class: "search-btn" }, {
161
185
  default: l(() => [
162
- n(g, {
186
+ a(h, {
163
187
  type: "primary",
164
- onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
188
+ onClick: t[5] || (t[5] = (e) => n(u).handleQuery())
165
189
  }, {
166
190
  default: l(() => [
167
- m(d(o.$t("common.search")), 1)
191
+ i(d(o.$t("common.search")), 1)
168
192
  ]),
169
193
  _: 1
170
194
  }),
171
- n(g, {
172
- onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
195
+ a(h, {
196
+ onClick: t[6] || (t[6] = (e) => n(u).resetQuery())
173
197
  }, {
174
198
  default: l(() => [
175
- m(d(o.$t("common.reset")), 1)
199
+ i(d(o.$t("common.reset")), 1)
176
200
  ]),
177
201
  _: 1
178
202
  })
@@ -189,32 +213,32 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
189
213
  _: 1
190
214
  }, 8, ["model"])
191
215
  ]),
192
- n(G, {
216
+ a(J, {
193
217
  shadow: "never",
194
218
  class: "table-container"
195
219
  }, {
196
220
  header: l(() => [
197
- n(P, null, {
221
+ a($, null, {
198
222
  default: l(() => [
199
- n(b, { span: 17 }, {
223
+ a(p, { span: 17 }, {
200
224
  default: l(() => [
201
- c((i(), v(g, {
225
+ y((m(), w(h, {
202
226
  type: "primary",
203
- onClick: D
227
+ onClick: S
204
228
  }, {
205
229
  default: l(() => [
206
- m(d(o.$t("common.add")), 1)
230
+ i(d(o.$t("common.add")), 1)
207
231
  ]),
208
232
  _: 1
209
233
  })), [
210
234
  [_, ["itsmsys:sys_org_out:add"]]
211
235
  ]),
212
- c((i(), v(g, {
236
+ y((m(), w(h, {
213
237
  type: "primary",
214
- onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
238
+ onClick: t[7] || (t[7] = (e) => n(u).deleteRecords())
215
239
  }, {
216
240
  default: l(() => [
217
- m(d(o.$t("common.batchDelete")), 1)
241
+ i(d(o.$t("common.batchDelete")), 1)
218
242
  ]),
219
243
  _: 1
220
244
  })), [
@@ -223,14 +247,14 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
223
247
  ]),
224
248
  _: 1
225
249
  }),
226
- n(b, {
250
+ a(p, {
227
251
  span: 7,
228
252
  class: "container-float"
229
253
  }, {
230
254
  default: l(() => [
231
- n(L, {
232
- modelValue: a(y),
233
- "onUpdate:modelValue": t[7] || (t[7] = (e) => O(y) ? y.value = e : y = e),
255
+ a(Q, {
256
+ modelValue: n(b),
257
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => O(b) ? b.value = e : b = e),
234
258
  "label-name": "itsmsys/itsm-sys-org"
235
259
  }, null, 8, ["modelValue"])
236
260
  ]),
@@ -241,71 +265,71 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
241
265
  })
242
266
  ]),
243
267
  footer: l(() => [
244
- a(f) > 0 ? (i(), v(W, {
268
+ n(f) > 0 ? (m(), w(G, {
245
269
  key: 0,
246
- total: a(f),
247
- "onUpdate:total": t[8] || (t[8] = (e) => O(f) ? f.value = e : null),
248
- "current-page": u.value.curPage,
249
- "onUpdate:currentPage": t[9] || (t[9] = (e) => u.value.curPage = e),
250
- "page-size": u.value.pageSize,
251
- "onUpdate:pageSize": t[10] || (t[10] = (e) => u.value.pageSize = e),
252
- onPagination: t[11] || (t[11] = (e) => a(r).getList())
253
- }, null, 8, ["total", "current-page", "page-size"])) : x("", !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)
254
278
  ]),
255
279
  default: l(() => [
256
- c((i(), v(H, {
280
+ y((m(), w(W, {
257
281
  ref_key: "multipleTableRef",
258
- ref: E,
282
+ ref: T,
259
283
  "row-key": "orgId",
260
- data: a(j),
261
- "table-label": a(y),
284
+ data: n(j),
285
+ "table-label": n(b),
262
286
  onSelectionChange: M,
263
287
  onSortChange: z
264
288
  }, {
265
289
  contactPersonMobile: l((e) => [
266
- n(Q, {
290
+ a(F, {
267
291
  mobilePhoneIns: e.data.row.contactPersonMobileIns,
268
292
  mobilePhone: e.data.row.contactPersonMobile,
269
293
  mobileEncrypt: e.data.row.mobileEncrypt,
270
- onToggleEncrypt: (p) => S(e.data.row)
294
+ onToggleEncrypt: (c) => D(e.data.row)
271
295
  }, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
272
296
  ]),
273
297
  status: l((e) => [
274
- n(F, {
298
+ a(H, {
275
299
  modelValue: e.data.row.status,
276
- "onUpdate:modelValue": (p) => e.data.row.status = p,
277
- onChange: (p) => a(r).enableRecord(e.data.row, 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)
278
302
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
279
303
  ]),
280
304
  operation: l((e) => [
281
- c((i(), h("span", {
305
+ y((m(), v("span", {
282
306
  class: "el-button-color",
283
- onClick: (p) => U(e.data.row)
307
+ onClick: (c) => U(e.data.row)
284
308
  }, [
285
- m(d(o.$t("common.edit")), 1)
286
- ], 8, re)), [
309
+ i(d(o.$t("common.edit")), 1)
310
+ ], 8, ie)), [
287
311
  [_, ["itsmsys:sys_org_out:update"]]
288
312
  ]),
289
- c((i(), h("span", {
313
+ y((m(), v("span", {
290
314
  class: "el-button-color",
291
- onClick: (p) => a(r).deleteRecord(e.data.row)
315
+ onClick: (c) => n(u).deleteRecord(e.data.row)
292
316
  }, [
293
- m(d(o.$t("common.delete")), 1)
294
- ], 8, ue)), [
317
+ i(d(o.$t("common.delete")), 1)
318
+ ], 8, de)), [
295
319
  [_, ["itsmsys:sys_org_out:delete"]]
296
320
  ]),
297
- c((i(), h("span", {
321
+ y((m(), v("span", {
298
322
  class: "el-button-color",
299
- onClick: (p) => q(e.data.row)
323
+ onClick: (c) => q(e.data.row)
300
324
  }, [
301
- m(d(o.$t("common.view")), 1)
302
- ], 8, ie)), [
325
+ i(d(o.$t("common.view")), 1)
326
+ ], 8, pe)), [
303
327
  [_, ["itsmsys:sys_org_out:view"]]
304
328
  ])
305
329
  ]),
306
330
  _: 1
307
331
  }, 8, ["data", "table-label"])), [
308
- [J, a(R)]
332
+ [X, n(Y)]
309
333
  ])
310
334
  ]),
311
335
  _: 1
@@ -315,5 +339,5 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
315
339
  }
316
340
  });
317
341
  export {
318
- fe as default
342
+ ve as default
319
343
  };