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