xyvcard-itsm-flow 0.0.8 → 0.0.10
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/{common--K4gGsNT.mjs → common-Cwl5jzlM.mjs} +1 -1
- package/dist/{edit-B621RtNS.mjs → edit-BnJnxvY6.mjs} +1 -1
- package/dist/{edit-CoRzQ2SK.mjs → edit-D8J1Znw_.mjs} +1 -1
- package/dist/{edit-Czk64Yon.mjs → edit-har-8Y54.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs → edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs} +94 -96
- package/dist/{edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs → edit.vue_vue_type_script_setup_true_lang-QsTI3qOD.mjs} +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-TXBAzoPS.mjs +553 -0
- package/dist/{el-message-FfNjxLv_.mjs → el-message-CIdVBT5R.mjs} +1 -1
- package/dist/{index-BCP5cBN6.mjs → index-BAHlhmvh.mjs} +60 -61
- package/dist/{index-DX1PURJy.mjs → index-BjBTIknS.mjs} +115 -114
- package/dist/{index-B5vmtcUk.mjs → index-C6XFHtva.mjs} +92 -95
- package/dist/{index-CVbpEq7V.mjs → index-CF0oM0UA.mjs} +139 -100
- package/dist/{index-CdzhLCkX.mjs → index-Cp3csR1g.mjs} +3 -3
- package/dist/{index-Dld6YbIV.mjs → index-DBIF93AC.mjs} +177 -150
- package/dist/{index-BlBkHqXR.mjs → index-DKIrRXT5.mjs} +2 -2
- package/dist/{index-CRHpl0qA.mjs → index-DnFWLmFk.mjs} +58 -59
- package/dist/{index-DY7ZV5kq.mjs → index-DugZK_BS.mjs} +96 -78
- package/dist/{index-BJl7xHYx.mjs → index-bMREgnhp.mjs} +14 -14
- package/dist/index.mjs +63 -60
- package/dts/api/itsm-flow-acceptance/index.d.ts +3 -1
- package/dts/api/itsm-flow-acceptance/types.d.ts +24 -1
- package/dts/api/itsm-flow-entrust/index.d.ts +0 -3
- package/dts/constant.d.ts +3 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +3 -0
- package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +4 -4
- package/package.json +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +0 -523
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as te, mergeModels as le, ref as f, useModel as oe, resolveComponent as p, openBlock as v, createElementBlock as w, Fragment as S, createVNode as e, withCtx as t, createElementVNode as n, createTextVNode as u, toDisplayString as r, unref as E, withDirectives as j, vShow as L, createCommentVNode as N, createBlock as q, renderList as ne } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import {
|
|
4
|
-
import { D as y, a as h, C as ue, u as re, e as ie } from "./index-DY7ZV5kq.mjs";
|
|
3
|
+
import { D as y, a as h, C as ae, u as se, e as ue } from "./index-DugZK_BS.mjs";
|
|
5
4
|
import "jmash-core";
|
|
6
|
-
import { useI18n as
|
|
7
|
-
import { F as
|
|
8
|
-
import { E as z } from "./el-message-
|
|
9
|
-
const
|
|
5
|
+
import { useI18n as re } from "vue-i18n";
|
|
6
|
+
import { F as ie } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
7
|
+
import { E as z } from "./el-message-CIdVBT5R.mjs";
|
|
8
|
+
const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
10
9
|
key: 2,
|
|
11
10
|
class: "distance-left"
|
|
12
|
-
},
|
|
11
|
+
}, Ee = /* @__PURE__ */ te({
|
|
13
12
|
__name: "index",
|
|
14
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ le({
|
|
15
14
|
task: {
|
|
16
15
|
type: Object,
|
|
17
16
|
default: () => {
|
|
@@ -22,26 +21,26 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
22
21
|
modelModifiers: {}
|
|
23
22
|
}),
|
|
24
23
|
emits: ["update:modelValue"],
|
|
25
|
-
setup($, { expose:
|
|
26
|
-
const { t: g } =
|
|
27
|
-
h.exportFilePdf({ entrustId:
|
|
24
|
+
setup($, { expose: A }) {
|
|
25
|
+
const { t: g } = re(), K = () => {
|
|
26
|
+
h.exportFilePdf({ entrustId: F.value.entrustId }).then((l) => {
|
|
28
27
|
const s = new Blob([l.data], {
|
|
29
28
|
type: "application/octet-stream"
|
|
30
29
|
});
|
|
31
|
-
|
|
30
|
+
ie.saveAs(s, g("itsmFlowEntrust.name") + ".pdf");
|
|
32
31
|
});
|
|
33
32
|
};
|
|
34
33
|
y.parentIdBizDict.useValues(), y.orgIdBizDict.useValues();
|
|
35
|
-
const
|
|
36
|
-
entrustId:
|
|
37
|
-
}), i = f({}), _ =
|
|
38
|
-
function
|
|
34
|
+
const k = $, F = f({
|
|
35
|
+
entrustId: k.task.businessKey
|
|
36
|
+
}), i = f({}), _ = oe($, "modelValue"), V = f(), P = f({}), C = f(!1), U = f(), m = f([]), D = f();
|
|
37
|
+
function R() {
|
|
39
38
|
C.value = !0, U.value.clearFileList();
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function T(l) {
|
|
42
41
|
m == null || m.value.splice(l, 1);
|
|
43
42
|
}
|
|
44
|
-
function
|
|
43
|
+
function W(l) {
|
|
45
44
|
const s = {
|
|
46
45
|
fileName: l.name,
|
|
47
46
|
fileId: l.response.fileId
|
|
@@ -52,9 +51,9 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
52
51
|
name: l.name,
|
|
53
52
|
type: l.response.contentType,
|
|
54
53
|
url: l.response.fileSrc
|
|
55
|
-
},
|
|
54
|
+
}, x();
|
|
56
55
|
}
|
|
57
|
-
function
|
|
56
|
+
function x() {
|
|
58
57
|
h.uploadFile(D.value).then(() => {
|
|
59
58
|
z.success(g("common.uploadSuccess"));
|
|
60
59
|
}).catch(() => {
|
|
@@ -64,28 +63,28 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
64
63
|
function O(l) {
|
|
65
64
|
l.mobileEncrypt = !l.mobileEncrypt;
|
|
66
65
|
}
|
|
67
|
-
k.task.businessKey &&
|
|
68
|
-
changeModel: () =>
|
|
66
|
+
k.task.businessKey && H(), A({
|
|
67
|
+
changeModel: () => J()
|
|
69
68
|
});
|
|
70
|
-
function
|
|
71
|
-
|
|
69
|
+
function G() {
|
|
70
|
+
ue.findList({ actionId: F.value.entrustId }).then(({ data: l }) => {
|
|
72
71
|
i.value.entrustUser = [], l.results.forEach((s) => {
|
|
73
|
-
s.actionId ==
|
|
72
|
+
s.actionId == F.value.entrustId && i.value.entrustUser.push({
|
|
74
73
|
...s
|
|
75
74
|
});
|
|
76
75
|
});
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
81
|
-
i.value = Object.assign(i.value, l),
|
|
78
|
+
function H() {
|
|
79
|
+
h.findById({ entrustId: F.value.entrustId }).then(({ data: l }) => {
|
|
80
|
+
i.value = Object.assign(i.value, l), G();
|
|
82
81
|
});
|
|
83
82
|
}
|
|
84
|
-
function
|
|
83
|
+
function J() {
|
|
85
84
|
return _.value && (_.value.selectActions = [
|
|
86
85
|
{ key: "true", value: "同意" },
|
|
87
86
|
{ key: "false", value: "不同意" }
|
|
88
|
-
], _.value.varName = "approved", _.value.module = "", _.value.module =
|
|
87
|
+
], _.value.varName = "approved", _.value.module = "", _.value.module = ae.MODULE_ITSMFLOW), new Promise((l, s) => {
|
|
89
88
|
var a;
|
|
90
89
|
(a = V.value) == null || a.validate((d) => {
|
|
91
90
|
d ? (_.value && (_.value.comment = ""), l(!0)) : s(!1);
|
|
@@ -93,7 +92,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
93
92
|
});
|
|
94
93
|
}
|
|
95
94
|
return (l, s) => {
|
|
96
|
-
const a =
|
|
95
|
+
const a = p("el-col"), d = p("el-form-item"), c = p("el-row"), I = p("el-table-column"), B = p("svg-icon"), Q = p("el-table"), M = p("el-button"), X = p("CircleClose"), Y = p("el-icon"), Z = p("el-form"), ee = p("jmash-multi-upload");
|
|
97
96
|
return v(), w(S, null, [
|
|
98
97
|
e(a, { span: 24 }, {
|
|
99
98
|
default: t(() => s[1] || (s[1] = [
|
|
@@ -101,7 +100,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
101
100
|
])),
|
|
102
101
|
_: 1
|
|
103
102
|
}),
|
|
104
|
-
e(
|
|
103
|
+
e(Z, {
|
|
105
104
|
ref_key: "taskFormRef",
|
|
106
105
|
ref: V,
|
|
107
106
|
model: P.value,
|
|
@@ -109,7 +108,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
109
108
|
class: "custom-table-form"
|
|
110
109
|
}, {
|
|
111
110
|
default: t(() => [
|
|
112
|
-
e(
|
|
111
|
+
e(c, null, {
|
|
113
112
|
default: t(() => [
|
|
114
113
|
e(a, { span: 24 }, {
|
|
115
114
|
default: t(() => [
|
|
@@ -128,7 +127,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
128
127
|
]),
|
|
129
128
|
_: 1
|
|
130
129
|
}),
|
|
131
|
-
e(
|
|
130
|
+
e(c, null, {
|
|
132
131
|
default: t(() => [
|
|
133
132
|
e(a, { span: 24 }, {
|
|
134
133
|
default: t(() => [
|
|
@@ -147,7 +146,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
147
146
|
]),
|
|
148
147
|
_: 1
|
|
149
148
|
}),
|
|
150
|
-
e(
|
|
149
|
+
e(c, null, {
|
|
151
150
|
default: t(() => [
|
|
152
151
|
e(a, { span: 24 }, {
|
|
153
152
|
default: t(() => [
|
|
@@ -156,7 +155,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
156
155
|
prop: "entrustName"
|
|
157
156
|
}, {
|
|
158
157
|
default: t(() => [
|
|
159
|
-
u(r(
|
|
158
|
+
u(r(E(y).projectNameDict.getDictValue(i.value.entrustName)), 1)
|
|
160
159
|
]),
|
|
161
160
|
_: 1
|
|
162
161
|
}, 8, ["label"])
|
|
@@ -166,7 +165,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
166
165
|
]),
|
|
167
166
|
_: 1
|
|
168
167
|
}),
|
|
169
|
-
e(
|
|
168
|
+
e(c, null, {
|
|
170
169
|
default: t(() => [
|
|
171
170
|
e(a, { span: 24 }, {
|
|
172
171
|
default: t(() => [
|
|
@@ -185,7 +184,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
185
184
|
]),
|
|
186
185
|
_: 1
|
|
187
186
|
}),
|
|
188
|
-
e(
|
|
187
|
+
e(c, null, {
|
|
189
188
|
default: t(() => [
|
|
190
189
|
e(a, { span: 24 }, {
|
|
191
190
|
default: t(() => [
|
|
@@ -196,7 +195,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
196
195
|
default: t(() => {
|
|
197
196
|
var o;
|
|
198
197
|
return [
|
|
199
|
-
u(r((((o = i.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((b) =>
|
|
198
|
+
u(r((((o = i.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((b) => E(y).parentIdBizDict.getValue(b)).join(",")), 1)
|
|
200
199
|
];
|
|
201
200
|
}),
|
|
202
201
|
_: 1
|
|
@@ -207,7 +206,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
207
206
|
]),
|
|
208
207
|
_: 1
|
|
209
208
|
}),
|
|
210
|
-
e(
|
|
209
|
+
e(c, null, {
|
|
211
210
|
default: t(() => [
|
|
212
211
|
e(a, { span: 12 }, {
|
|
213
212
|
default: t(() => [
|
|
@@ -216,7 +215,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
216
215
|
prop: "serviceContent"
|
|
217
216
|
}, {
|
|
218
217
|
default: t(() => [
|
|
219
|
-
u(r(
|
|
218
|
+
u(r(E(y).serviceContentEnum.getEnumValue(i.value.serviceContent)), 1)
|
|
220
219
|
]),
|
|
221
220
|
_: 1
|
|
222
221
|
}, 8, ["label"])
|
|
@@ -230,7 +229,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
230
229
|
prop: "serviceOrg"
|
|
231
230
|
}, {
|
|
232
231
|
default: t(() => [
|
|
233
|
-
u(r(
|
|
232
|
+
u(r(E(y).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
|
|
234
233
|
]),
|
|
235
234
|
_: 1
|
|
236
235
|
}, 8, ["label"])
|
|
@@ -240,7 +239,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
240
239
|
]),
|
|
241
240
|
_: 1
|
|
242
241
|
}),
|
|
243
|
-
e(
|
|
242
|
+
e(c, null, {
|
|
244
243
|
default: t(() => [
|
|
245
244
|
e(a, { span: 24 }, {
|
|
246
245
|
default: t(() => [
|
|
@@ -259,7 +258,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
259
258
|
]),
|
|
260
259
|
_: 1
|
|
261
260
|
}),
|
|
262
|
-
e(
|
|
261
|
+
e(c, null, {
|
|
263
262
|
default: t(() => [
|
|
264
263
|
e(a, { span: 24 }, {
|
|
265
264
|
default: t(() => [
|
|
@@ -278,11 +277,11 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
278
277
|
]),
|
|
279
278
|
_: 1
|
|
280
279
|
}),
|
|
281
|
-
e(
|
|
280
|
+
e(c, null, {
|
|
282
281
|
default: t(() => [
|
|
283
282
|
e(a, { span: 24 }, {
|
|
284
283
|
default: t(() => [
|
|
285
|
-
e(
|
|
284
|
+
e(Q, {
|
|
286
285
|
stripe: "",
|
|
287
286
|
data: i.value.entrustUser,
|
|
288
287
|
style: { width: "100%" }
|
|
@@ -302,8 +301,8 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
302
301
|
label: l.$t("itsmFlowEntrustUser.idNo")
|
|
303
302
|
}, {
|
|
304
303
|
default: t((o) => [
|
|
305
|
-
o.row.mobileEncrypt ? (v(), w("span",
|
|
306
|
-
o.row.idNoIns ? (v(), w("span",
|
|
304
|
+
o.row.mobileEncrypt ? (v(), w("span", ce, r(o.row.idNo), 1)) : (v(), w("span", de, r(o.row.idNoIns), 1)),
|
|
305
|
+
o.row.idNoIns ? (v(), w("span", pe, [
|
|
307
306
|
j(e(B, {
|
|
308
307
|
"icon-class": "close-eye",
|
|
309
308
|
onClick: (b) => O(o.row)
|
|
@@ -347,7 +346,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
347
346
|
]),
|
|
348
347
|
_: 1
|
|
349
348
|
}),
|
|
350
|
-
e(
|
|
349
|
+
e(c, { class: "bordered-row" }, {
|
|
351
350
|
default: t(() => [
|
|
352
351
|
e(a, { span: 12 }, {
|
|
353
352
|
default: t(() => s[2] || (s[2] = [
|
|
@@ -391,7 +390,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
391
390
|
]),
|
|
392
391
|
_: 1
|
|
393
392
|
}),
|
|
394
|
-
e(
|
|
393
|
+
e(c, null, {
|
|
395
394
|
default: t(() => [
|
|
396
395
|
k.task.taskDefinitionKey === "UploadScanFile" ? (v(), q(a, {
|
|
397
396
|
key: 0,
|
|
@@ -404,8 +403,8 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
404
403
|
default: t(() => [
|
|
405
404
|
e(M, {
|
|
406
405
|
type: "primary",
|
|
407
|
-
icon:
|
|
408
|
-
onClick:
|
|
406
|
+
icon: E(se),
|
|
407
|
+
onClick: R
|
|
409
408
|
}, {
|
|
410
409
|
default: t(() => [
|
|
411
410
|
u(r(l.$t("common.uploadFiles")), 1)
|
|
@@ -417,18 +416,18 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
417
416
|
}, 8, ["label"]),
|
|
418
417
|
e(d, null, {
|
|
419
418
|
default: t(() => [
|
|
420
|
-
(v(!0), w(S, null,
|
|
419
|
+
(v(!0), w(S, null, ne(m.value, (o, b) => (v(), w("div", {
|
|
421
420
|
key: b,
|
|
422
421
|
class: "files-list"
|
|
423
422
|
}, [
|
|
424
423
|
u(r(o.fileName) + " ", 1),
|
|
425
|
-
e(
|
|
424
|
+
e(Y, {
|
|
426
425
|
size: "16",
|
|
427
426
|
class: "icon-right",
|
|
428
|
-
onClick: (
|
|
427
|
+
onClick: (me) => T(b)
|
|
429
428
|
}, {
|
|
430
429
|
default: t(() => [
|
|
431
|
-
e(
|
|
430
|
+
e(X)
|
|
432
431
|
]),
|
|
433
432
|
_: 2
|
|
434
433
|
}, 1032, ["onClick"])
|
|
@@ -451,7 +450,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
451
450
|
e(M, {
|
|
452
451
|
plain: "",
|
|
453
452
|
type: "primary",
|
|
454
|
-
onClick:
|
|
453
|
+
onClick: K
|
|
455
454
|
}, {
|
|
456
455
|
default: t(() => [
|
|
457
456
|
u(r(l.$t("itsmFlowEntrust.export")), 1)
|
|
@@ -470,17 +469,17 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
|
|
|
470
469
|
]),
|
|
471
470
|
_: 1
|
|
472
471
|
}, 8, ["model"]),
|
|
473
|
-
e(
|
|
472
|
+
e(ee, {
|
|
474
473
|
ref_key: "uploadRef",
|
|
475
474
|
ref: U,
|
|
476
475
|
modelValue: C.value,
|
|
477
476
|
"onUpdate:modelValue": s[0] || (s[0] = (o) => C.value = o),
|
|
478
|
-
onUploadFileList:
|
|
477
|
+
onUploadFileList: W
|
|
479
478
|
}, null, 8, ["modelValue"])
|
|
480
479
|
], 64);
|
|
481
480
|
};
|
|
482
481
|
}
|
|
483
482
|
});
|
|
484
483
|
export {
|
|
485
|
-
|
|
484
|
+
Ee as default
|
|
486
485
|
};
|