xyvcard-itsm-flow 0.0.12 → 0.0.13
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/{edit-CnakOAD-.mjs → edit-C5EkvsBj.mjs} +1 -1
- package/dist/{edit-D3-wS-p6.mjs → edit-CF3xSSyv.mjs} +1 -1
- package/dist/{edit-DQMyPUX8.mjs → edit-Rj9Uz_7E.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CQVLZd-n.mjs → edit.vue_vue_type_script_setup_true_lang-CMBByn6f.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CkrOBeOD.mjs → edit.vue_vue_type_script_setup_true_lang-CXXUyaL0.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-VE9Mh9aa.mjs → edit.vue_vue_type_script_setup_true_lang-D1aLFtH6.mjs} +131 -124
- package/dist/{el-message-CDs_oXSE.mjs → el-message-DweX1k3E.mjs} +1 -1
- package/dist/{index-DNIaYp-o.mjs → index-1bFZ2FEX.mjs} +89 -67
- package/dist/{index-B80qPhYo.mjs → index-CMpeLVvR.mjs} +88 -82
- package/dist/{index-CKoTtfru.mjs → index-CWrGwJD5.mjs} +61 -58
- package/dist/{index-JNNDVNJY.mjs → index-D8N9GIjm.mjs} +25 -26
- package/dist/{index-DpW0lTlN.mjs → index-DkosMJpy.mjs} +2 -2
- package/dist/{index-kApGKfsk.mjs → index-DukVUjy5.mjs} +2 -2
- package/dist/{index-GS9GloHa.mjs → index-VuC-5Jb_.mjs} +91 -91
- package/dist/{index-tB0z_CCe.mjs → index-_KUj3xRY.mjs} +94 -94
- package/dist/{index-yHpZct-P.mjs → index-ciUtLvg7.mjs} +2 -2
- package/dist/{index-C7hbVzPq.mjs → index-tRvxeQdk.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dts/constant.d.ts +4 -0
- package/package.json +63 -63
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as le, mergeModels as oe, ref as f, useModel as ne, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as j, createVNode as e, withCtx as t, createElementVNode as n, createTextVNode as r, toDisplayString as s, unref as b, createCommentVNode as g, withDirectives as L, vShow as q, createBlock as z, renderList as ae } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as y, a as h, C as $, u as se, e as ue } from "./index-CMpeLVvR.mjs";
|
|
4
4
|
import "jmash-core";
|
|
5
5
|
import { useI18n as re } from "vue-i18n";
|
|
6
6
|
import { F as ie } from "./FileSaver.min-5d27MsC6.mjs";
|
|
7
|
-
import { E as
|
|
7
|
+
import { E as A } from "./el-message-DweX1k3E.mjs";
|
|
8
8
|
const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
9
9
|
key: 2,
|
|
10
10
|
class: "distance-left"
|
|
11
|
-
}, Ee = /* @__PURE__ */
|
|
11
|
+
}, Ee = /* @__PURE__ */ le({
|
|
12
12
|
__name: "index",
|
|
13
|
-
props: /* @__PURE__ */
|
|
13
|
+
props: /* @__PURE__ */ oe({
|
|
14
14
|
task: {
|
|
15
15
|
type: Object,
|
|
16
16
|
default: () => {
|
|
@@ -21,8 +21,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
21
21
|
modelModifiers: {}
|
|
22
22
|
}),
|
|
23
23
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(
|
|
25
|
-
const { t: C } = re(),
|
|
24
|
+
setup(V, { expose: K }) {
|
|
25
|
+
const { t: C } = re(), P = () => {
|
|
26
26
|
h.exportFilePdf({ entrustId: F.value.entrustId }).then((l) => {
|
|
27
27
|
const u = new Blob([l.data], {
|
|
28
28
|
type: "application/octet-stream"
|
|
@@ -30,43 +30,43 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
30
30
|
ie.saveAs(u, C("itsmFlowEntrust.name") + ".pdf");
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
entrustId:
|
|
36
|
-
}), i = f({}), v = ne(
|
|
37
|
-
function
|
|
33
|
+
y.parentIdBizDict.useValues(), y.orgIdBizDict.useValues();
|
|
34
|
+
const E = V, F = f({
|
|
35
|
+
entrustId: E.task.businessKey
|
|
36
|
+
}), i = f({}), v = ne(V, "modelValue"), D = f(), R = f({}), N = f(!1), U = f(), m = f([]), O = f();
|
|
37
|
+
function T() {
|
|
38
38
|
N.value = !0, U.value.clearFileList();
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function W(l) {
|
|
41
41
|
m == null || m.value.splice(l, 1);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function x(l) {
|
|
44
44
|
const u = {
|
|
45
45
|
fileName: l.name,
|
|
46
46
|
fileId: l.response.fileId
|
|
47
47
|
};
|
|
48
|
-
m == null || m.value.push(u), m.value = [...new Set(m.value)],
|
|
48
|
+
m == null || m.value.push(u), m.value = [...new Set(m.value)], O.value = {
|
|
49
49
|
requestId: Math.random() * 10 + "",
|
|
50
|
-
taskId:
|
|
50
|
+
taskId: E.task.id,
|
|
51
51
|
name: l.name,
|
|
52
52
|
type: l.response.contentType,
|
|
53
53
|
url: l.response.fileSrc
|
|
54
|
-
},
|
|
54
|
+
}, G();
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
h.uploadFile(
|
|
58
|
-
|
|
56
|
+
function G() {
|
|
57
|
+
h.uploadFile(O.value).then(() => {
|
|
58
|
+
A.success(C("common.uploadSuccess"));
|
|
59
59
|
}).catch(() => {
|
|
60
|
-
|
|
60
|
+
A.error(C("common.uploadError"));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function B(l) {
|
|
64
64
|
l.mobileEncrypt = !l.mobileEncrypt;
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
changeModel: () =>
|
|
66
|
+
E.task.businessKey && J(), K({
|
|
67
|
+
changeModel: () => Q()
|
|
68
68
|
});
|
|
69
|
-
function
|
|
69
|
+
function H() {
|
|
70
70
|
ue.findList({ actionId: F.value.entrustId }).then(({ data: l }) => {
|
|
71
71
|
i.value.entrustUser = [], l.results.forEach((u) => {
|
|
72
72
|
u.actionId == F.value.entrustId && i.value.entrustUser.push({
|
|
@@ -75,36 +75,36 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function J() {
|
|
79
79
|
h.findById({ entrustId: F.value.entrustId }).then(({ data: l }) => {
|
|
80
|
-
i.value = Object.assign(i.value, l),
|
|
80
|
+
i.value = Object.assign(i.value, l), H();
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Q() {
|
|
84
84
|
return v.value && (v.value.selectActions = [
|
|
85
85
|
{ key: "true", value: "同意" },
|
|
86
86
|
{ key: "false", value: "不同意" }
|
|
87
|
-
], v.value.varName = "approved", v.value.module = "", v.value.module =
|
|
87
|
+
], v.value.varName = "approved", v.value.module = "", v.value.module = $.MODULE_ITSMFLOW), new Promise((l, u) => {
|
|
88
88
|
var a;
|
|
89
|
-
(a =
|
|
89
|
+
(a = D.value) == null || a.validate((d) => {
|
|
90
90
|
d ? (v.value && (v.value.comment = ""), l(!0)) : u(!1);
|
|
91
91
|
});
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
return (l, u) => {
|
|
95
|
-
const a = p("el-col"), d = p("el-form-item"), c = p("el-row"), I = p("el-table-column"),
|
|
96
|
-
return _(),
|
|
95
|
+
const a = p("el-col"), d = p("el-form-item"), c = p("el-row"), I = p("el-table-column"), M = p("svg-icon"), X = p("el-table"), S = p("el-button"), Y = p("CircleClose"), Z = p("el-icon"), ee = p("el-form"), te = p("jmash-multi-upload");
|
|
96
|
+
return _(), k(j, null, [
|
|
97
97
|
e(a, { span: 24 }, {
|
|
98
98
|
default: t(() => u[1] || (u[1] = [
|
|
99
|
-
|
|
99
|
+
n("div", { class: "title" }, "委托服务订单", -1)
|
|
100
100
|
])),
|
|
101
101
|
_: 1,
|
|
102
102
|
__: [1]
|
|
103
103
|
}),
|
|
104
|
-
e(
|
|
104
|
+
e(ee, {
|
|
105
105
|
ref_key: "taskFormRef",
|
|
106
|
-
ref:
|
|
107
|
-
model:
|
|
106
|
+
ref: D,
|
|
107
|
+
model: R.value,
|
|
108
108
|
"label-width": "150px",
|
|
109
109
|
class: "custom-table-form"
|
|
110
110
|
}, {
|
|
@@ -156,7 +156,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
156
156
|
prop: "entrustName"
|
|
157
157
|
}, {
|
|
158
158
|
default: t(() => [
|
|
159
|
-
r(s(
|
|
159
|
+
r(s(b(y).projectNameDict.getDictValue(i.value.entrustName)), 1)
|
|
160
160
|
]),
|
|
161
161
|
_: 1
|
|
162
162
|
}, 8, ["label"])
|
|
@@ -194,9 +194,9 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
194
194
|
prop: "belongOrg"
|
|
195
195
|
}, {
|
|
196
196
|
default: t(() => {
|
|
197
|
-
var
|
|
197
|
+
var o;
|
|
198
198
|
return [
|
|
199
|
-
r(s((((
|
|
199
|
+
r(s((((o = i.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((w) => b(y).parentIdBizDict.getValue(w)).join(",")), 1)
|
|
200
200
|
];
|
|
201
201
|
}),
|
|
202
202
|
_: 1
|
|
@@ -216,7 +216,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
216
216
|
prop: "serviceContent"
|
|
217
217
|
}, {
|
|
218
218
|
default: t(() => [
|
|
219
|
-
r(s(
|
|
219
|
+
r(s(b(y).serviceContentEnum.getEnumValue(i.value.serviceContent)), 1)
|
|
220
220
|
]),
|
|
221
221
|
_: 1
|
|
222
222
|
}, 8, ["label"])
|
|
@@ -230,7 +230,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
230
230
|
prop: "serviceOrg"
|
|
231
231
|
}, {
|
|
232
232
|
default: t(() => [
|
|
233
|
-
r(s(
|
|
233
|
+
r(s(b(y).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
236
|
}, 8, ["label"])
|
|
@@ -282,7 +282,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
282
282
|
default: t(() => [
|
|
283
283
|
e(a, { span: 24 }, {
|
|
284
284
|
default: t(() => [
|
|
285
|
-
e(
|
|
285
|
+
e(X, {
|
|
286
286
|
stripe: "",
|
|
287
287
|
data: i.value.entrustUser,
|
|
288
288
|
style: { width: "100%" }
|
|
@@ -292,8 +292,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
292
292
|
prop: "userId",
|
|
293
293
|
label: l.$t("itsmFlowEntrustUser.userId")
|
|
294
294
|
}, {
|
|
295
|
-
default: t((
|
|
296
|
-
r(s(
|
|
295
|
+
default: t((o) => [
|
|
296
|
+
r(s(o.row.userName), 1)
|
|
297
297
|
]),
|
|
298
298
|
_: 1
|
|
299
299
|
}, 8, ["label"]),
|
|
@@ -301,20 +301,20 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
301
301
|
prop: "idNo",
|
|
302
302
|
label: l.$t("itsmFlowEntrustUser.idNo")
|
|
303
303
|
}, {
|
|
304
|
-
default: t((
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
304
|
+
default: t((o) => [
|
|
305
|
+
o.row.mobileEncrypt ? (_(), k("span", ce, s(o.row.idNo), 1)) : (_(), k("span", de, s(o.row.idNoIns), 1)),
|
|
306
|
+
o.row.idNoIns ? (_(), k("span", pe, [
|
|
307
|
+
L(e(M, {
|
|
308
308
|
"icon-class": "close-eye",
|
|
309
|
-
onClick: (
|
|
309
|
+
onClick: (w) => B(o.row)
|
|
310
310
|
}, null, 8, ["onClick"]), [
|
|
311
|
-
[
|
|
311
|
+
[q, !o.row.mobileEncrypt]
|
|
312
312
|
]),
|
|
313
|
-
|
|
313
|
+
L(e(M, {
|
|
314
314
|
"icon-class": "eye-open",
|
|
315
|
-
onClick: (
|
|
315
|
+
onClick: (w) => B(o.row)
|
|
316
316
|
}, null, 8, ["onClick"]), [
|
|
317
|
-
[
|
|
317
|
+
[q, o.row.mobileEncrypt]
|
|
318
318
|
])
|
|
319
319
|
])) : g("", !0)
|
|
320
320
|
]),
|
|
@@ -324,8 +324,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
324
324
|
prop: "cost",
|
|
325
325
|
label: l.$t("itsmFlowEntrustUser.cost")
|
|
326
326
|
}, {
|
|
327
|
-
default: t((
|
|
328
|
-
r(s(
|
|
327
|
+
default: t((o) => [
|
|
328
|
+
r(s(o.row.cost), 1)
|
|
329
329
|
]),
|
|
330
330
|
_: 1
|
|
331
331
|
}, 8, ["label"]),
|
|
@@ -333,8 +333,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
333
333
|
prop: "duration",
|
|
334
334
|
label: l.$t("itsmFlowEntrustUser.duration")
|
|
335
335
|
}, {
|
|
336
|
-
default: t((
|
|
337
|
-
r(s(
|
|
336
|
+
default: t((o) => [
|
|
337
|
+
r(s(o.row.durationStart) + "~" + s(o.row.durationEnd), 1)
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
}, 8, ["label"])
|
|
@@ -351,17 +351,17 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
351
351
|
default: t(() => [
|
|
352
352
|
e(a, { span: 12 }, {
|
|
353
353
|
default: t(() => u[2] || (u[2] = [
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
354
|
+
n("div", { class: "content-box" }, [
|
|
355
|
+
n("div", { class: "content-box-top" }, [
|
|
356
|
+
n("div", null, "甲方单位(盖章)"),
|
|
357
|
+
n("div", null, "负责人(签字):"),
|
|
358
|
+
n("div", null, "或授权代理人(签字):")
|
|
359
359
|
]),
|
|
360
|
-
|
|
360
|
+
n("div", { class: "content-box-bottom" }, [
|
|
361
361
|
r(" 日期: "),
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
362
|
+
n("span", null, "年"),
|
|
363
|
+
n("span", null, "月"),
|
|
364
|
+
n("span", null, "日")
|
|
365
365
|
])
|
|
366
366
|
], -1)
|
|
367
367
|
])),
|
|
@@ -373,17 +373,17 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
373
373
|
class: "with-divider"
|
|
374
374
|
}, {
|
|
375
375
|
default: t(() => u[3] || (u[3] = [
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
376
|
+
n("div", { class: "content-box" }, [
|
|
377
|
+
n("div", { class: "content-box-top" }, [
|
|
378
|
+
n("div", null, "服务人员所属单位(盖章)"),
|
|
379
|
+
n("div", null, "法定代表人(签字):"),
|
|
380
|
+
n("div", null, "或授权代理人(签字):")
|
|
381
381
|
]),
|
|
382
|
-
|
|
382
|
+
n("div", { class: "content-box-bottom" }, [
|
|
383
383
|
r(" 日期: "),
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
n("span", null, "年"),
|
|
385
|
+
n("span", null, "月"),
|
|
386
|
+
n("span", null, "日")
|
|
387
387
|
])
|
|
388
388
|
], -1)
|
|
389
389
|
])),
|
|
@@ -395,7 +395,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
395
395
|
}),
|
|
396
396
|
e(c, null, {
|
|
397
397
|
default: t(() => [
|
|
398
|
-
|
|
398
|
+
E.task.taskDefinitionKey === b($).node.upload ? (_(), z(a, {
|
|
399
399
|
key: 0,
|
|
400
400
|
span: 12
|
|
401
401
|
}, {
|
|
@@ -404,10 +404,10 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
404
404
|
label: l.$t("itsmFlowEntrust.scannedCopy")
|
|
405
405
|
}, {
|
|
406
406
|
default: t(() => [
|
|
407
|
-
e(
|
|
407
|
+
e(S, {
|
|
408
408
|
type: "primary",
|
|
409
|
-
icon:
|
|
410
|
-
onClick:
|
|
409
|
+
icon: b(se),
|
|
410
|
+
onClick: T
|
|
411
411
|
}, {
|
|
412
412
|
default: t(() => [
|
|
413
413
|
r(s(l.$t("common.uploadFiles")), 1)
|
|
@@ -419,18 +419,18 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
419
419
|
}, 8, ["label"]),
|
|
420
420
|
e(d, null, {
|
|
421
421
|
default: t(() => [
|
|
422
|
-
(_(!0),
|
|
423
|
-
key:
|
|
422
|
+
(_(!0), k(j, null, ae(m.value, (o, w) => (_(), k("div", {
|
|
423
|
+
key: w,
|
|
424
424
|
class: "files-list"
|
|
425
425
|
}, [
|
|
426
|
-
r(s(
|
|
427
|
-
e(
|
|
426
|
+
r(s(o.fileName) + " ", 1),
|
|
427
|
+
e(Z, {
|
|
428
428
|
size: "16",
|
|
429
429
|
class: "icon-right",
|
|
430
|
-
onClick: (me) =>
|
|
430
|
+
onClick: (me) => W(w)
|
|
431
431
|
}, {
|
|
432
432
|
default: t(() => [
|
|
433
|
-
e(
|
|
433
|
+
e(Y)
|
|
434
434
|
]),
|
|
435
435
|
_: 2
|
|
436
436
|
}, 1032, ["onClick"])
|
|
@@ -441,7 +441,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
443
443
|
})) : g("", !0),
|
|
444
|
-
|
|
444
|
+
E.task.taskDefinitionKey === b($).node.upload ? (_(), z(a, {
|
|
445
445
|
key: 1,
|
|
446
446
|
span: 12
|
|
447
447
|
}, {
|
|
@@ -450,10 +450,10 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
450
450
|
label: l.$t("itsmFlowEntrust.export")
|
|
451
451
|
}, {
|
|
452
452
|
default: t(() => [
|
|
453
|
-
e(
|
|
453
|
+
e(S, {
|
|
454
454
|
plain: "",
|
|
455
455
|
type: "primary",
|
|
456
|
-
onClick:
|
|
456
|
+
onClick: P
|
|
457
457
|
}, {
|
|
458
458
|
default: t(() => [
|
|
459
459
|
r(s(l.$t("itsmFlowEntrust.export")), 1)
|
|
@@ -472,12 +472,12 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
|
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
474
474
|
}, 8, ["model"]),
|
|
475
|
-
e(
|
|
475
|
+
e(te, {
|
|
476
476
|
ref_key: "uploadRef",
|
|
477
477
|
ref: U,
|
|
478
478
|
modelValue: N.value,
|
|
479
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
480
|
-
onUploadFileList:
|
|
479
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => N.value = o),
|
|
480
|
+
onUploadFileList: x
|
|
481
481
|
}, null, 8, ["modelValue"])
|
|
482
482
|
], 64);
|
|
483
483
|
};
|