xyvcard-itsm-flow 0.0.16 → 0.0.17

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.
@@ -0,0 +1,419 @@
1
+ import { defineComponent as H, ref as V, reactive as W, resolveComponent as i, resolveDirective as G, createElementBlock as O, openBlock as y, createElementVNode as b, createVNode as t, createBlock as S, createCommentVNode as U, withCtx as o, withKeys as d, unref as n, createTextVNode as C, toDisplayString as c, withDirectives as J, isRef as R } from "vue";
2
+ import { useTableHooks as M } from "jmash-core";
3
+ import { useI18n as X } from "vue-i18n";
4
+ import { a as Y, D as p } from "./index-DVDOqO_3.mjs";
5
+ import { _ as Z } from "./info.vue_vue_type_script_setup_true_lang-CSn1JLZG.mjs";
6
+ const x = { class: "app-container" }, ee = { class: "search-container" }, le = ["onClick"], ue = /* @__PURE__ */ H({
7
+ __name: "index",
8
+ setup(te) {
9
+ const { t: N } = X(), r = V({}), {
10
+ tableHooks: s,
11
+ multipleTableRef: h,
12
+ queryFormRef: D,
13
+ listLoading: _,
14
+ tableData: q,
15
+ total: g
16
+ } = M(N, Y, r);
17
+ p.orgIdBizDict.useValues(), p.parentIdBizDict.useValues();
18
+ let f = V([
19
+ {
20
+ label: "itsmFlowEntrust.contractId",
21
+ prop: "contractName",
22
+ width: "150",
23
+ isColumn: !0
24
+ },
25
+ {
26
+ label: "itsmFlowEntrust.contractNo",
27
+ prop: "contractNo",
28
+ width: "120",
29
+ isColumn: !0
30
+ },
31
+ {
32
+ label: "itsmFlowEntrust.entrustName",
33
+ prop: "entrustName",
34
+ isColumn: !0,
35
+ slotName: "entrustName",
36
+ columnType: "slot",
37
+ minWidth: "150"
38
+ },
39
+ {
40
+ label: "itsmFlowEntrust.entrustItsmId",
41
+ prop: "entrustItsmName",
42
+ width: "150",
43
+ isColumn: !0
44
+ },
45
+ {
46
+ label: "itsmFlowEntrust.belongOrg",
47
+ prop: "belongOrgId",
48
+ width: "150",
49
+ isColumn: !0,
50
+ slotName: "belongOrgId",
51
+ columnType: "slot"
52
+ },
53
+ {
54
+ label: "itsmFlowEntrust.serviceContent",
55
+ prop: "serviceContent",
56
+ width: "85",
57
+ isColumn: !0,
58
+ slotName: "serviceContent",
59
+ columnType: "slot"
60
+ },
61
+ {
62
+ label: "itsmFlowEntrust.serviceOrg",
63
+ prop: "serviceOrg",
64
+ width: "150",
65
+ isColumn: !0,
66
+ slotName: "serviceOrg",
67
+ columnType: "slot"
68
+ },
69
+ {
70
+ label: "itsmFlowEntrust.orderNo",
71
+ prop: "orderNo",
72
+ width: "150",
73
+ isColumn: !0
74
+ },
75
+ {
76
+ label: "common.operate",
77
+ width: "80",
78
+ slotName: "operation",
79
+ columnType: "slot",
80
+ fixed: "right",
81
+ isColumn: !0
82
+ }
83
+ ]);
84
+ const w = V({
85
+ title: N("common.view"),
86
+ visible: !1
87
+ });
88
+ let k = W({});
89
+ function K(a) {
90
+ k = { ...a }, w.value.title = N("common.view"), w.value.visible = !0;
91
+ }
92
+ function Q(a) {
93
+ s.selectionRows.value = a;
94
+ }
95
+ function j(a) {
96
+ s.handleSort(a.prop, a.order);
97
+ }
98
+ return s.getList(), (a, e) => {
99
+ const v = i("el-input"), m = i("el-form-item"), u = i("el-col"), $ = i("jmash-select"), E = i("el-button"), F = i("el-row"), B = i("el-form"), z = i("jmash-column-select"), T = i("jmash-table"), P = i("jmash-pagination"), A = i("el-card"), L = G("hasPerm");
100
+ return y(), O("div", x, [
101
+ b("div", ee, [
102
+ t(B, {
103
+ ref_key: "queryFormRef",
104
+ ref: D,
105
+ model: r.value,
106
+ inline: !0
107
+ }, {
108
+ default: o(() => [
109
+ t(F, null, {
110
+ default: o(() => [
111
+ t(u, { span: 6 }, {
112
+ default: o(() => [
113
+ t(m, {
114
+ label: a.$t("itsmFlowEntrust.contractId"),
115
+ prop: "likeContractName"
116
+ }, {
117
+ default: o(() => [
118
+ t(v, {
119
+ modelValue: r.value.likeContractName,
120
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => r.value.likeContractName = l),
121
+ placeholder: a.$t("itsmFlowEntrust.contractNameRequired"),
122
+ onKeyup: e[1] || (e[1] = d((l) => n(s).handleQuery(), ["enter"])),
123
+ class: "!w-[203px]"
124
+ }, null, 8, ["modelValue", "placeholder"])
125
+ ]),
126
+ _: 1
127
+ }, 8, ["label"])
128
+ ]),
129
+ _: 1
130
+ }),
131
+ t(u, { span: 6 }, {
132
+ default: o(() => [
133
+ t(m, {
134
+ label: a.$t("itsmFlowEntrust.contractNo"),
135
+ prop: "likeContractNo"
136
+ }, {
137
+ default: o(() => [
138
+ t(v, {
139
+ modelValue: r.value.likeContractNo,
140
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => r.value.likeContractNo = l),
141
+ placeholder: a.$t("itsmFlowEntrust.contractNoRequired"),
142
+ onKeyup: e[3] || (e[3] = d((l) => n(s).handleQuery(), ["enter"])),
143
+ class: "!w-[203px]"
144
+ }, null, 8, ["modelValue", "placeholder"])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["label"])
148
+ ]),
149
+ _: 1
150
+ }),
151
+ t(u, { span: 6 }, {
152
+ default: o(() => [
153
+ t(m, {
154
+ label: a.$t("itsmFlowEntrust.serviceContent"),
155
+ prop: "serviceContent"
156
+ }, {
157
+ default: o(() => [
158
+ t($, {
159
+ modelValue: r.value.serviceContent,
160
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => r.value.serviceContent = l),
161
+ placeholder: a.$t("itsmFlowEntrust.serviceContentRequired"),
162
+ data: n(p).serviceContentEnum.values,
163
+ clearable: "",
164
+ filterable: "",
165
+ onKeyup: e[5] || (e[5] = d((l) => n(s).handleQuery(), ["enter"])),
166
+ class: "!w-[203px]"
167
+ }, null, 8, ["modelValue", "placeholder", "data"])
168
+ ]),
169
+ _: 1
170
+ }, 8, ["label"])
171
+ ]),
172
+ _: 1
173
+ }),
174
+ t(u, { span: 6 }, {
175
+ default: o(() => [
176
+ t(m, {
177
+ label: a.$t("itsmFlowEntrust.orderNo"),
178
+ prop: "orderNo"
179
+ }, {
180
+ default: o(() => [
181
+ t(v, {
182
+ modelValue: r.value.orderNo,
183
+ "onUpdate:modelValue": e[6] || (e[6] = (l) => r.value.orderNo = l),
184
+ placeholder: a.$t("itsmFlowEntrust.orderNoRequireds"),
185
+ onKeyup: e[7] || (e[7] = d((l) => n(s).handleQuery(), ["enter"])),
186
+ class: "!w-[203px]"
187
+ }, null, 8, ["modelValue", "placeholder"])
188
+ ]),
189
+ _: 1
190
+ }, 8, ["label"])
191
+ ]),
192
+ _: 1
193
+ }),
194
+ t(u, { span: 6 }, {
195
+ default: o(() => [
196
+ t(m, {
197
+ label: a.$t("itsmFlowAcceptance.userName"),
198
+ prop: "likeUserName"
199
+ }, {
200
+ default: o(() => [
201
+ t(v, {
202
+ modelValue: r.value.likeUserName,
203
+ "onUpdate:modelValue": e[8] || (e[8] = (l) => r.value.likeUserName = l),
204
+ placeholder: a.$t("itsmFlowAcceptance.userNameRequired"),
205
+ onKeyup: e[9] || (e[9] = d((l) => n(s).handleQuery(), ["enter"])),
206
+ class: "!w-[203px]"
207
+ }, null, 8, ["modelValue", "placeholder"])
208
+ ]),
209
+ _: 1
210
+ }, 8, ["label"])
211
+ ]),
212
+ _: 1
213
+ }),
214
+ t(u, { span: 6 }, {
215
+ default: o(() => [
216
+ t(m, {
217
+ label: a.$t("itsmFlowAcceptance.serviceOrg"),
218
+ prop: "likeServiceOrg"
219
+ }, {
220
+ default: o(() => [
221
+ t(v, {
222
+ modelValue: r.value.likeServiceOrg,
223
+ "onUpdate:modelValue": e[10] || (e[10] = (l) => r.value.likeServiceOrg = l),
224
+ placeholder: a.$t("itsmFlowAcceptance.serviceOrgRequired"),
225
+ onKeyup: e[11] || (e[11] = d((l) => n(s).handleQuery(), ["enter"])),
226
+ class: "!w-[203px]"
227
+ }, null, 8, ["modelValue", "placeholder"])
228
+ ]),
229
+ _: 1
230
+ }, 8, ["label"])
231
+ ]),
232
+ _: 1
233
+ }),
234
+ t(u, { span: 6 }, {
235
+ default: o(() => [
236
+ t(m, {
237
+ label: a.$t("itsmFlowEntrust.belongOrg"),
238
+ prop: "likeBelongOrgName"
239
+ }, {
240
+ default: o(() => [
241
+ t(v, {
242
+ modelValue: r.value.likeBelongOrgName,
243
+ "onUpdate:modelValue": e[12] || (e[12] = (l) => r.value.likeBelongOrgName = l),
244
+ placeholder: a.$t("itsmFlowEntrust.belongOrgRequireds"),
245
+ onKeyup: e[13] || (e[13] = d((l) => n(s).handleQuery(), ["enter"])),
246
+ class: "!w-[203px]"
247
+ }, null, 8, ["modelValue", "placeholder"])
248
+ ]),
249
+ _: 1
250
+ }, 8, ["label"])
251
+ ]),
252
+ _: 1
253
+ }),
254
+ t(u, { span: 6 }, {
255
+ default: o(() => [
256
+ t(m, {
257
+ label: a.$t("itsmFlowEntrust.entrustItsmId"),
258
+ prop: "likeEntrustItsmName"
259
+ }, {
260
+ default: o(() => [
261
+ t(v, {
262
+ modelValue: r.value.likeEntrustItsmName,
263
+ "onUpdate:modelValue": e[14] || (e[14] = (l) => r.value.likeEntrustItsmName = l),
264
+ placeholder: a.$t("itsmFlowEntrust.entrustItsmIdRequireds"),
265
+ onKeyup: e[15] || (e[15] = d((l) => n(s).handleQuery(), ["enter"])),
266
+ class: "!w-[203px]"
267
+ }, null, 8, ["modelValue", "placeholder"])
268
+ ]),
269
+ _: 1
270
+ }, 8, ["label"])
271
+ ]),
272
+ _: 1
273
+ }),
274
+ t(u, { span: 6 }, {
275
+ default: o(() => [
276
+ t(m, {
277
+ label: a.$t("itsmFlowAcceptance.applyStatus"),
278
+ prop: "applyStatus"
279
+ }, {
280
+ default: o(() => [
281
+ t($, {
282
+ modelValue: r.value.applyStatus,
283
+ "onUpdate:modelValue": e[16] || (e[16] = (l) => r.value.applyStatus = l),
284
+ placeholder: a.$t("itsmFlowAcceptance.applyStatusRequired"),
285
+ data: n(p).applyStatusEnum.values,
286
+ onKeyup: e[17] || (e[17] = d((l) => n(s).handleQuery(), ["enter"]))
287
+ }, null, 8, ["modelValue", "placeholder", "data"])
288
+ ]),
289
+ _: 1
290
+ }, 8, ["label"])
291
+ ]),
292
+ _: 1
293
+ }),
294
+ t(u, { span: 18 }, {
295
+ default: o(() => [
296
+ t(m, { class: "search-btn" }, {
297
+ default: o(() => [
298
+ t(E, {
299
+ type: "primary",
300
+ onClick: e[18] || (e[18] = (l) => n(s).handleQuery())
301
+ }, {
302
+ default: o(() => [
303
+ C(c(a.$t("common.search")), 1)
304
+ ]),
305
+ _: 1
306
+ }),
307
+ t(E, {
308
+ onClick: e[19] || (e[19] = (l) => n(s).resetQuery())
309
+ }, {
310
+ default: o(() => [
311
+ C(c(a.$t("common.reset")), 1)
312
+ ]),
313
+ _: 1
314
+ })
315
+ ]),
316
+ _: 1
317
+ })
318
+ ]),
319
+ _: 1
320
+ })
321
+ ]),
322
+ _: 1
323
+ })
324
+ ]),
325
+ _: 1
326
+ }, 8, ["model"])
327
+ ]),
328
+ t(A, {
329
+ shadow: "never",
330
+ class: "table-container"
331
+ }, {
332
+ header: o(() => [
333
+ t(F, null, {
334
+ default: o(() => [
335
+ t(u, { span: 17 }),
336
+ t(u, {
337
+ span: 7,
338
+ class: "container-float"
339
+ }, {
340
+ default: o(() => [
341
+ t(z, {
342
+ modelValue: n(f),
343
+ "onUpdate:modelValue": e[20] || (e[20] = (l) => R(f) ? f.value = l : f = l),
344
+ "label-name": "itsm-flow-entrust"
345
+ }, null, 8, ["modelValue"])
346
+ ]),
347
+ _: 1
348
+ })
349
+ ]),
350
+ _: 1
351
+ })
352
+ ]),
353
+ footer: o(() => [
354
+ n(g) > 0 ? (y(), S(P, {
355
+ key: 0,
356
+ total: n(g),
357
+ "onUpdate:total": e[21] || (e[21] = (l) => R(g) ? g.value = l : null),
358
+ "current-page": r.value.curPage,
359
+ "onUpdate:currentPage": e[22] || (e[22] = (l) => r.value.curPage = l),
360
+ "page-size": r.value.pageSize,
361
+ "onUpdate:pageSize": e[23] || (e[23] = (l) => r.value.pageSize = l),
362
+ onPagination: e[24] || (e[24] = (l) => n(s).getList())
363
+ }, null, 8, ["total", "current-page", "page-size"])) : U("", !0)
364
+ ]),
365
+ default: o(() => [
366
+ t(T, {
367
+ ref_key: "multipleTableRef",
368
+ ref: h,
369
+ "row-key": "entrustId",
370
+ "list-loading": n(_),
371
+ data: n(q),
372
+ "table-label": n(f),
373
+ onSelectionChange: Q,
374
+ onSortChange: j
375
+ }, {
376
+ entrustName: o((l) => [
377
+ b("span", null, c(n(p).projectNameDict.getDictValue(l.data.row.entrustName)), 1)
378
+ ]),
379
+ belongOrgId: o((l) => [
380
+ b("span", null, c(l.data.row.belongOrgId.split(",").map((I) => n(p).parentIdBizDict.getValue(I)).join(",")), 1)
381
+ ]),
382
+ serviceContent: o((l) => [
383
+ b("span", null, c(n(p).serviceContentEnum.getEnumValue(
384
+ l.data.row.serviceContent
385
+ )), 1)
386
+ ]),
387
+ serviceOrg: o((l) => [
388
+ b("span", null, c(n(p).orgIdBizDict.getValue(l.data.row.serviceOrg)), 1)
389
+ ]),
390
+ operation: o((l) => [
391
+ J((y(), O("span", {
392
+ class: "el-button-color",
393
+ onClick: (I) => K(l.data.row)
394
+ }, [
395
+ C(c(a.$t("common.view")), 1)
396
+ ], 8, le)), [
397
+ [L, ["itsmflow:itsm_flow_entrust:view"]]
398
+ ])
399
+ ]),
400
+ _: 1
401
+ }, 8, ["list-loading", "data", "table-label"])
402
+ ]),
403
+ _: 1
404
+ }),
405
+ w.value.visible ? (y(), S(Z, {
406
+ key: 0,
407
+ modelValue: w.value.visible,
408
+ "onUpdate:modelValue": e[25] || (e[25] = (l) => w.value.visible = l),
409
+ title: w.value.title,
410
+ "entity-key": n(k),
411
+ width: "900px"
412
+ }, null, 8, ["modelValue", "title", "entity-key"])) : U("", !0)
413
+ ]);
414
+ };
415
+ }
416
+ });
417
+ export {
418
+ ue as default
419
+ };