xyvcard-itsm-flow 0.0.7 → 0.0.9

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 (51) hide show
  1. package/dist/FileSaver.min-BeKvLuyk.mjs +73 -0
  2. package/dist/common-Cwl5jzlM.mjs +85 -0
  3. package/dist/{edit-BZbho2xr.mjs → edit-BatVtQjM.mjs} +1 -1
  4. package/dist/{edit-DA920KWc.mjs → edit-CJKi69Ya.mjs} +1 -1
  5. package/dist/{edit-DxK8SrUd.mjs → edit-RNcc8UYn.mjs} +1 -1
  6. package/dist/edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs +550 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs +566 -0
  8. package/dist/edit.vue_vue_type_script_setup_true_lang-DlfhAjvW.mjs +670 -0
  9. package/dist/{el-message-D28AReoi.mjs → el-message-9Nit-6wb.mjs} +26 -26
  10. package/dist/{index-CXarOLFt.mjs → index-2vkMhoSW.mjs} +119 -124
  11. package/dist/index-BkB6hpAN.mjs +482 -0
  12. package/dist/{index-BwhWFAEK.mjs → index-BqZwYXr_.mjs} +75 -89
  13. package/dist/index-CitJdS-N.mjs +589 -0
  14. package/dist/index-Ckl3mXfI.mjs +493 -0
  15. package/dist/index-CpSpS_gR.mjs +486 -0
  16. package/dist/index-DmttwKtY.mjs +501 -0
  17. package/dist/index-ay0TMqjH.mjs +339 -0
  18. package/dist/index-tnwVLRVb.mjs +624 -0
  19. package/dist/index-w_RSrZed.mjs +529 -0
  20. package/dist/index.mjs +767 -772
  21. package/dist/style.css +1 -1
  22. package/dts/api/dict.d.ts +9 -0
  23. package/dts/api/index.d.ts +4 -1
  24. package/dts/api/itsm-flow-acceptance/index.d.ts +8 -10
  25. package/dts/api/itsm-flow-acceptance/types.d.ts +42 -35
  26. package/dts/api/itsm-flow-entrust/types.d.ts +2 -2
  27. package/dts/api/itsm-flow-entrust-user/types.d.ts +1 -3
  28. package/dts/api/itsm-flow-reckoning/index.d.ts +4 -10
  29. package/dts/api/itsm-flow-reckoning/types.d.ts +19 -31
  30. package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +28 -0
  31. package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +28 -0
  32. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +28 -0
  33. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +28 -0
  34. package/dts/index.d.ts +4 -0
  35. package/dts/lang/itsm-flow/zh-cn.d.ts +3 -17
  36. package/dts/utils/common.d.ts +2 -2
  37. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +4 -4
  38. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +4 -4
  39. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +4 -4
  40. package/package.json +1 -1
  41. package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
  42. package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +0 -589
  43. package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +0 -688
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +0 -656
  45. package/dist/index-BZGkoyv9.mjs +0 -68
  46. package/dist/index-CMOEnYG7.mjs +0 -21
  47. package/dist/index-Clg5YSzX.mjs +0 -598
  48. package/dist/index-CwnMo6nD.mjs +0 -1651
  49. package/dist/index-DDwNGNtf.mjs +0 -558
  50. package/dist/index-Dimzx0Lh.mjs +0 -344
  51. package/dist/index-qOQQkVw8.mjs +0 -345
@@ -0,0 +1,339 @@
1
+ import { defineComponent as M, ref as _, reactive as R, resolveComponent as s, resolveDirective as W, openBlock as p, createElementBlock as V, createElementVNode as N, createVNode as o, withCtx as l, withKeys as A, unref as n, createTextVNode as f, toDisplayString as u, withDirectives as F, createBlock as $, isRef as S, createCommentVNode as T } from "vue";
2
+ import { useTableHooks as X } from "jmash-core";
3
+ import { useI18n as Y } from "vue-i18n";
4
+ import { D as g, C as Z, i as x } from "./index-CitJdS-N.mjs";
5
+ import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs";
6
+ const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ae = ["onClick"], me = /* @__PURE__ */ M({
7
+ __name: "index",
8
+ setup(ne) {
9
+ g.orgIdBizDict.useValues();
10
+ const { t: w } = Y(), r = _({
11
+ applyStatus: Z.applyStatus.draft
12
+ }), {
13
+ tableHooks: i,
14
+ multipleTableRef: U,
15
+ queryFormRef: j,
16
+ listLoading: z,
17
+ tableData: P,
18
+ total: v
19
+ } = X(w, x, r);
20
+ let d = _([
21
+ {
22
+ label: "itsmFlowAcceptance.contractName",
23
+ prop: "contractName",
24
+ width: "150",
25
+ isColumn: !0
26
+ },
27
+ {
28
+ label: "itsmFlowAcceptance.contractNo",
29
+ prop: "contractNo",
30
+ width: "150",
31
+ isColumn: !0
32
+ },
33
+ {
34
+ label: "itsmFlowAcceptance.entrustName",
35
+ prop: "entrustName",
36
+ width: "150",
37
+ isColumn: !0,
38
+ slotName: "entrustName",
39
+ columnType: "slot"
40
+ },
41
+ {
42
+ label: "itsmFlowAcceptance.serviceOrg",
43
+ prop: "serviceOrg",
44
+ width: "150",
45
+ isColumn: !0,
46
+ slotName: "serviceOrg",
47
+ columnType: "slot"
48
+ },
49
+ {
50
+ label: "itsmFlowAcceptance.stage",
51
+ prop: "stage",
52
+ width: "120",
53
+ isColumn: !0
54
+ },
55
+ {
56
+ label: "itsmFlowAcceptance.headman",
57
+ prop: "headmanName",
58
+ width: "120",
59
+ isColumn: !0
60
+ },
61
+ {
62
+ label: "itsmFlowAcceptance.members",
63
+ prop: "membersName",
64
+ width: "150",
65
+ isColumn: !0
66
+ },
67
+ {
68
+ label: "itsmFlowAcceptance.serviceContent",
69
+ prop: "serviceContent",
70
+ width: "150",
71
+ isColumn: !0
72
+ },
73
+ {
74
+ label: "itsmFlowAcceptance.acceptanceNo",
75
+ prop: "acceptanceNo",
76
+ width: "150",
77
+ isColumn: !0
78
+ },
79
+ {
80
+ label: "itsmFlowAcceptance.result",
81
+ prop: "result",
82
+ width: "150",
83
+ isColumn: !0,
84
+ slotName: "result",
85
+ columnType: "slot"
86
+ },
87
+ {
88
+ label: "itsmFlowAcceptance.evaluate",
89
+ prop: "evaluate",
90
+ isColumn: !0
91
+ },
92
+ {
93
+ label: "common.operate",
94
+ width: "150",
95
+ slotName: "operation",
96
+ columnType: "slot",
97
+ fixed: "right",
98
+ isColumn: !0
99
+ }
100
+ ]);
101
+ const c = _({
102
+ title: w("common.edit"),
103
+ visible: !1
104
+ });
105
+ _(!1);
106
+ let C = R({});
107
+ function q() {
108
+ C = R({}), c.value.title = w("common.add"), c.value.visible = !0;
109
+ }
110
+ function B(a) {
111
+ C = { ...a }, c.value.title = w("common.edit"), c.value.visible = !0;
112
+ }
113
+ function K(a) {
114
+ i.selectionRows.value = a;
115
+ }
116
+ function L(a) {
117
+ i.handleSort(a.prop, a.order);
118
+ }
119
+ function O(a) {
120
+ a && i.getList();
121
+ }
122
+ return i.getList(), (a, t) => {
123
+ const y = s("el-input"), b = s("el-form-item"), m = s("el-col"), h = s("el-button"), D = s("el-row"), Q = s("el-form"), I = s("jmash-column-select"), E = s("jmash-table"), H = s("jmash-pagination"), G = s("el-card"), k = W("hasPerm");
124
+ return p(), V("div", te, [
125
+ N("div", le, [
126
+ o(Q, {
127
+ ref_key: "queryFormRef",
128
+ ref: j,
129
+ model: r.value,
130
+ inline: !0
131
+ }, {
132
+ default: l(() => [
133
+ o(D, null, {
134
+ default: l(() => [
135
+ o(m, { span: 6 }, {
136
+ default: l(() => [
137
+ o(b, {
138
+ label: a.$t("itsmFlowAcceptance.contractName"),
139
+ prop: "likeContractName"
140
+ }, {
141
+ default: l(() => [
142
+ o(y, {
143
+ modelValue: r.value.likeContractName,
144
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.likeContractName = e),
145
+ placeholder: a.$t("itsmFlowAcceptance.contractNameRequired"),
146
+ onKeyup: t[1] || (t[1] = A((e) => n(i).handleQuery(), ["enter"])),
147
+ class: "!w-[203px]"
148
+ }, null, 8, ["modelValue", "placeholder"])
149
+ ]),
150
+ _: 1
151
+ }, 8, ["label"])
152
+ ]),
153
+ _: 1
154
+ }),
155
+ o(m, { span: 6 }, {
156
+ default: l(() => [
157
+ o(b, {
158
+ label: a.$t("itsmFlowAcceptance.contractNo"),
159
+ prop: "likeContractNo"
160
+ }, {
161
+ default: l(() => [
162
+ o(y, {
163
+ modelValue: r.value.likeContractNo,
164
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.likeContractNo = e),
165
+ placeholder: a.$t("itsmFlowAcceptance.contractNoRequired"),
166
+ onKeyup: t[3] || (t[3] = A((e) => n(i).handleQuery(), ["enter"])),
167
+ class: "!w-[203px]"
168
+ }, null, 8, ["modelValue", "placeholder"])
169
+ ]),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ o(m, { span: 6 }, {
176
+ default: l(() => [
177
+ o(b, {
178
+ label: a.$t("itsmFlowAcceptance.acceptanceNo"),
179
+ prop: "acceptanceNo"
180
+ }, {
181
+ default: l(() => [
182
+ o(y, {
183
+ modelValue: r.value.acceptanceNo,
184
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.acceptanceNo = e),
185
+ placeholder: a.$t("itsmFlowAcceptance.acceptanceNoRequired"),
186
+ onKeyup: t[5] || (t[5] = A((e) => n(i).handleQuery(), ["enter"])),
187
+ class: "!w-[203px]"
188
+ }, null, 8, ["modelValue", "placeholder"])
189
+ ]),
190
+ _: 1
191
+ }, 8, ["label"])
192
+ ]),
193
+ _: 1
194
+ }),
195
+ o(m, { span: 6 }, {
196
+ default: l(() => [
197
+ o(b, { class: "search-btn" }, {
198
+ default: l(() => [
199
+ o(h, {
200
+ type: "primary",
201
+ onClick: t[6] || (t[6] = (e) => n(i).handleQuery())
202
+ }, {
203
+ default: l(() => [
204
+ f(u(a.$t("common.search")), 1)
205
+ ]),
206
+ _: 1
207
+ }),
208
+ o(h, {
209
+ onClick: t[7] || (t[7] = (e) => n(i).resetQuery())
210
+ }, {
211
+ default: l(() => [
212
+ f(u(a.$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
+ ]),
229
+ o(G, {
230
+ shadow: "never",
231
+ class: "table-container"
232
+ }, {
233
+ header: l(() => [
234
+ o(D, null, {
235
+ default: l(() => [
236
+ o(m, { span: 17 }, {
237
+ default: l(() => [
238
+ F((p(), $(h, {
239
+ type: "primary",
240
+ onClick: q
241
+ }, {
242
+ default: l(() => [
243
+ f(u(a.$t("common.add")), 1)
244
+ ]),
245
+ _: 1
246
+ })), [
247
+ [k, ["itsmflow:itsm_flow_acceptance:add"]]
248
+ ])
249
+ ]),
250
+ _: 1
251
+ }),
252
+ o(m, {
253
+ span: 7,
254
+ class: "container-float"
255
+ }, {
256
+ default: l(() => [
257
+ o(I, {
258
+ modelValue: n(d),
259
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => S(d) ? d.value = e : d = e),
260
+ "label-name": "itsm-flow-acceptance"
261
+ }, null, 8, ["modelValue"])
262
+ ]),
263
+ _: 1
264
+ })
265
+ ]),
266
+ _: 1
267
+ })
268
+ ]),
269
+ footer: l(() => [
270
+ n(v) > 0 ? (p(), $(H, {
271
+ key: 0,
272
+ total: n(v),
273
+ "onUpdate:total": t[9] || (t[9] = (e) => S(v) ? v.value = e : null),
274
+ "current-page": r.value.curPage,
275
+ "onUpdate:currentPage": t[10] || (t[10] = (e) => r.value.curPage = e),
276
+ "page-size": r.value.pageSize,
277
+ "onUpdate:pageSize": t[11] || (t[11] = (e) => r.value.pageSize = e),
278
+ onPagination: t[12] || (t[12] = (e) => n(i).getList())
279
+ }, null, 8, ["total", "current-page", "page-size"])) : T("", !0)
280
+ ]),
281
+ default: l(() => [
282
+ o(E, {
283
+ ref_key: "multipleTableRef",
284
+ ref: U,
285
+ "row-key": "acceptanceId",
286
+ "list-loading": n(z),
287
+ data: n(P),
288
+ "table-label": n(d),
289
+ onSelectionChange: K,
290
+ onSortChange: L
291
+ }, {
292
+ entrustName: l((e) => [
293
+ N("span", null, u(n(g).projectNameDict.getDictValue(e.data.row.entrustName)), 1)
294
+ ]),
295
+ serviceOrg: l((e) => [
296
+ N("span", null, u(n(g).orgIdBizDict.getValue(e.data.row.serviceOrg)), 1)
297
+ ]),
298
+ result: l((e) => [
299
+ N("span", null, u(n(g).isValuesDict.getValue(e.data.row.result)), 1)
300
+ ]),
301
+ operation: l((e) => [
302
+ F((p(), V("span", {
303
+ class: "el-button-color",
304
+ onClick: (J) => B(e.data.row)
305
+ }, [
306
+ f(u(a.$t("common.edit")), 1)
307
+ ], 8, oe)), [
308
+ [k, ["itsmflow:itsm_flow_acceptance:update"]]
309
+ ]),
310
+ F((p(), V("span", {
311
+ class: "el-button-color dropdown-left",
312
+ onClick: (J) => n(i).deleteRecord(e.data.row)
313
+ }, [
314
+ f(u(a.$t("common.delete")), 1)
315
+ ], 8, ae)), [
316
+ [k, ["itsmflow:itsm_flow_acceptance:delete"]]
317
+ ])
318
+ ]),
319
+ _: 1
320
+ }, 8, ["list-loading", "data", "table-label"])
321
+ ]),
322
+ _: 1
323
+ }),
324
+ c.value.visible ? (p(), $(ee, {
325
+ key: 0,
326
+ modelValue: c.value.visible,
327
+ "onUpdate:modelValue": t[13] || (t[13] = (e) => c.value.visible = e),
328
+ title: c.value.title,
329
+ "entity-key": n(C),
330
+ onRefresh: O,
331
+ width: "900px"
332
+ }, null, 8, ["modelValue", "title", "entity-key"])) : T("", !0)
333
+ ]);
334
+ };
335
+ }
336
+ });
337
+ export {
338
+ me as default
339
+ };