xyvcard-itsm-flow 0.0.9 → 0.0.11
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/README.md +51 -51
- package/dist/{FileSaver.min-BeKvLuyk.mjs → FileSaver.min-5d27MsC6.mjs} +12 -12
- package/dist/{edit-BatVtQjM.mjs → edit-B6eDlOpi.mjs} +1 -1
- package/dist/{edit-CJKi69Ya.mjs → edit-Cfo0JZSs.mjs} +1 -1
- package/dist/{edit-RNcc8UYn.mjs → edit-RoD8ie-7.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs → edit.vue_vue_type_script_setup_true_lang-IEXBlCBV.mjs} +28 -26
- package/dist/{edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs → edit.vue_vue_type_script_setup_true_lang-e_oZRaYA.mjs} +164 -157
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DlfhAjvW.mjs → edit.vue_vue_type_script_setup_true_lang-iiu5w8LK.mjs} +222 -214
- package/dist/{el-message-9Nit-6wb.mjs → el-message-So7u3ZRi.mjs} +357 -366
- package/dist/{index-CitJdS-N.mjs → index-C7wI2ALv.mjs} +65 -69
- package/dist/{index-Ckl3mXfI.mjs → index-C96hiFIm.mjs} +178 -157
- package/dist/{index-2vkMhoSW.mjs → index-CC7B9YOg.mjs} +12 -12
- package/dist/index-CMbZtOBo.mjs +633 -0
- package/dist/{index-CpSpS_gR.mjs → index-CNIFtVcB.mjs} +135 -133
- package/dist/{index-ay0TMqjH.mjs → index-CzSzBtpb.mjs} +15 -15
- package/dist/{index-BkB6hpAN.mjs → index-D5ZcRr4h.mjs} +109 -106
- package/dist/{index-DmttwKtY.mjs → index-DWuCzfFj.mjs} +69 -67
- package/dist/{index-w_RSrZed.mjs → index-m-ohs_8-.mjs} +87 -88
- package/dist/{index-BqZwYXr_.mjs → index-nSm5Jecq.mjs} +12 -12
- package/dist/index.mjs +60 -59
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-acceptance/index.d.ts +1 -3
- package/dts/api/itsm-flow-acceptance/types.d.ts +1 -6
- package/dts/api/itsm-flow-entrust/types.d.ts +3 -1
- package/dts/api/itsm-flow-entrust-user/types.d.ts +3 -1
- package/dts/api/itsm-flow-reckoning/types.d.ts +1 -1
- package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +2 -2
- package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +2 -2
- package/dts/components/TaskItsmFlowEntrust/index.vue.d.ts +2 -2
- package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +2 -2
- package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +2 -2
- package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +2 -2
- package/dts/constant.d.ts +3 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
- package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +2 -2
- package/dts/views/itsm-flow-acceptance/index.vue.d.ts +1 -1
- package/dts/views/itsm-flow-entrust/edit.vue.d.ts +2 -2
- package/dts/views/itsm-flow-entrust/index.vue.d.ts +1 -1
- package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +2 -2
- package/dts/views/itsm-flow-reckoning/index.vue.d.ts +1 -1
- package/package.json +63 -63
- package/dist/index-tnwVLRVb.mjs +0 -624
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as te, mergeModels as oe, computed as ne, ref as f, useModel as ae, resolveComponent as p, createElementBlock as b, openBlock as _, Fragment as S, createVNode as e, withCtx as l, createElementVNode as a, createTextVNode as u, toDisplayString as r, unref as y, createCommentVNode as I, withDirectives as L, vShow as P, createBlock as A, renderList as se } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as B, t as me, a as fe } from "./common-Cwl5jzlM.mjs";
|
|
3
|
+
import { D as C, C as ue, u as re, a as ie, e as ce } from "./index-C7wI2ALv.mjs";
|
|
4
|
+
import { i as B, t as de, a as pe } from "./common-Cwl5jzlM.mjs";
|
|
6
5
|
import "jmash-core";
|
|
7
|
-
import { useI18n as
|
|
8
|
-
import { F as
|
|
9
|
-
import { E as O } from "./el-message-
|
|
10
|
-
const
|
|
6
|
+
import { useI18n as me } from "vue-i18n";
|
|
7
|
+
import { F as fe } from "./FileSaver.min-5d27MsC6.mjs";
|
|
8
|
+
import { E as O } from "./el-message-So7u3ZRi.mjs";
|
|
9
|
+
const _e = { key: 0 }, ve = { key: 1 }, be = {
|
|
11
10
|
key: 2,
|
|
12
11
|
class: "distance-left"
|
|
13
|
-
},
|
|
12
|
+
}, $e = /* @__PURE__ */ te({
|
|
14
13
|
__name: "index",
|
|
15
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ oe({
|
|
16
15
|
task: {
|
|
17
16
|
type: Object,
|
|
18
17
|
default: () => {
|
|
@@ -24,44 +23,44 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
24
23
|
}),
|
|
25
24
|
emits: ["update:modelValue"],
|
|
26
25
|
setup($, { expose: j }) {
|
|
27
|
-
const { t: N } =
|
|
26
|
+
const { t: N } = me(), q = ne(() => (i.value.entrustUser || []).map((t) => ({
|
|
28
27
|
cost: typeof t.cost == "number" ? t.cost : 0,
|
|
29
28
|
duration: typeof t.duration == "number" ? t.duration : 0
|
|
30
29
|
}))), K = () => {
|
|
31
30
|
B.exportFilePdf({
|
|
32
|
-
reckoningId:
|
|
31
|
+
reckoningId: g.value.reckoningId
|
|
33
32
|
}).then((t) => {
|
|
34
33
|
const n = new Blob([t.data], {
|
|
35
34
|
type: "application/octet-stream"
|
|
36
35
|
});
|
|
37
|
-
|
|
36
|
+
fe.saveAs(n, N("itsmFlowReckoning.name") + ".pdf");
|
|
38
37
|
});
|
|
39
38
|
};
|
|
40
39
|
C.orgIdBizDict.useValues();
|
|
41
|
-
const
|
|
42
|
-
reckoningId:
|
|
43
|
-
}), i = f({}),
|
|
44
|
-
function
|
|
45
|
-
E.value = !0,
|
|
40
|
+
const k = $, g = f({
|
|
41
|
+
reckoningId: k.task.businessKey
|
|
42
|
+
}), i = f({}), v = ae($, "modelValue"), h = f(), T = f({}), E = f(!1), U = f(), m = f([]), R = f();
|
|
43
|
+
function z() {
|
|
44
|
+
E.value = !0, U.value.clearFileList();
|
|
46
45
|
}
|
|
47
|
-
function
|
|
46
|
+
function W(t) {
|
|
48
47
|
m == null || m.value.splice(t, 1);
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function G(t) {
|
|
51
50
|
const n = {
|
|
52
51
|
fileName: t.name,
|
|
53
52
|
fileId: t.response.fileId
|
|
54
53
|
};
|
|
55
|
-
m == null || m.value.push(n), m.value = [...new Set(m.value)],
|
|
54
|
+
m == null || m.value.push(n), m.value = [...new Set(m.value)], R.value = {
|
|
56
55
|
requestId: Math.random() * 10 + "",
|
|
57
56
|
taskId: k.task.id,
|
|
58
57
|
name: t.name,
|
|
59
58
|
type: t.response.contentType,
|
|
60
59
|
url: t.response.fileSrc
|
|
61
|
-
},
|
|
60
|
+
}, H();
|
|
62
61
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
62
|
+
function H() {
|
|
63
|
+
ie.uploadFile(R.value).then(() => {
|
|
65
64
|
O.success(N("common.uploadSuccess"));
|
|
66
65
|
}).catch(() => {
|
|
67
66
|
O.error(N("common.uploadError"));
|
|
@@ -70,48 +69,49 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
70
69
|
function V(t) {
|
|
71
70
|
t.mobileEncrypt = !t.mobileEncrypt;
|
|
72
71
|
}
|
|
73
|
-
k.task.businessKey &&
|
|
74
|
-
changeModel: () =>
|
|
72
|
+
k.task.businessKey && Q(), j({
|
|
73
|
+
changeModel: () => X()
|
|
75
74
|
});
|
|
76
|
-
function
|
|
77
|
-
|
|
75
|
+
function J() {
|
|
76
|
+
ce.findList({ actionId: g.value.reckoningId }).then(({ data: t }) => {
|
|
78
77
|
i.value.entrustUser = [], t.results.forEach((n) => {
|
|
79
|
-
n.actionId ==
|
|
78
|
+
n.actionId == g.value.reckoningId && i.value.entrustUser.push({
|
|
80
79
|
...n,
|
|
81
80
|
duration: typeof n.duration == "string" ? parseFloat(n.duration.trim()) : 0
|
|
82
81
|
});
|
|
83
82
|
});
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
|
-
function
|
|
87
|
-
|
|
88
|
-
i.value = Object.assign(i.value, t),
|
|
85
|
+
function Q() {
|
|
86
|
+
B.findById({ reckoningId: g.value.reckoningId }).then(({ data: t }) => {
|
|
87
|
+
i.value = Object.assign(i.value, t), J();
|
|
89
88
|
});
|
|
90
89
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
90
|
+
function X() {
|
|
91
|
+
return v.value && (v.value.selectActions = [
|
|
93
92
|
{ key: "true", value: "同意" },
|
|
94
93
|
{ key: "false", value: "不同意" }
|
|
95
|
-
],
|
|
94
|
+
], v.value.varName = "approved", v.value.module = "", v.value.module = ue.MODULE_ITSMFLOW), new Promise((t, n) => {
|
|
96
95
|
var s;
|
|
97
96
|
(s = h.value) == null || s.validate((c) => {
|
|
98
|
-
c ? (
|
|
97
|
+
c ? (v.value && (v.value.comment = ""), t(!0)) : n(!1);
|
|
99
98
|
});
|
|
100
99
|
});
|
|
101
100
|
}
|
|
102
101
|
return (t, n) => {
|
|
103
|
-
const s = p("el-col"), c = p("el-form-item"), d = p("el-row"),
|
|
104
|
-
return
|
|
102
|
+
const s = p("el-col"), c = p("el-form-item"), d = p("el-row"), w = p("el-table-column"), D = p("svg-icon"), Y = p("el-table"), M = p("el-button"), Z = p("CircleClose"), x = p("el-icon"), ee = p("el-form"), le = p("jmash-multi-upload");
|
|
103
|
+
return _(), b(S, null, [
|
|
105
104
|
e(s, { span: 24 }, {
|
|
106
105
|
default: l(() => n[1] || (n[1] = [
|
|
107
106
|
a("div", { class: "title" }, "委托服务合同结算清单", -1)
|
|
108
107
|
])),
|
|
109
|
-
_: 1
|
|
108
|
+
_: 1,
|
|
109
|
+
__: [1]
|
|
110
110
|
}),
|
|
111
|
-
e(
|
|
111
|
+
e(ee, {
|
|
112
112
|
ref_key: "taskFormRef",
|
|
113
113
|
ref: h,
|
|
114
|
-
model:
|
|
114
|
+
model: T.value,
|
|
115
115
|
"label-width": "150px",
|
|
116
116
|
class: "custom-table-form"
|
|
117
117
|
}, {
|
|
@@ -163,7 +163,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
163
163
|
prop: "entrustName"
|
|
164
164
|
}, {
|
|
165
165
|
default: l(() => [
|
|
166
|
-
u(r(
|
|
166
|
+
u(r(y(C).projectNameDict.getDictValue(i.value.entrustName)), 1)
|
|
167
167
|
]),
|
|
168
168
|
_: 1
|
|
169
169
|
}, 8, ["label"])
|
|
@@ -182,7 +182,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
182
182
|
prop: "serviceOrg"
|
|
183
183
|
}, {
|
|
184
184
|
default: l(() => [
|
|
185
|
-
u(r(
|
|
185
|
+
u(r(y(C).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
|
|
186
186
|
]),
|
|
187
187
|
_: 1
|
|
188
188
|
}, 8, ["label"])
|
|
@@ -272,13 +272,13 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
272
272
|
default: l(() => [
|
|
273
273
|
e(s, { span: 24 }, {
|
|
274
274
|
default: l(() => [
|
|
275
|
-
e(
|
|
275
|
+
e(Y, {
|
|
276
276
|
stripe: "",
|
|
277
277
|
data: i.value.entrustUser,
|
|
278
278
|
style: { width: "100%" }
|
|
279
279
|
}, {
|
|
280
280
|
default: l(() => [
|
|
281
|
-
e(
|
|
281
|
+
e(w, {
|
|
282
282
|
prop: "userId",
|
|
283
283
|
label: t.$t("itsmFlowEntrustUser.userId")
|
|
284
284
|
}, {
|
|
@@ -287,13 +287,13 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
287
287
|
]),
|
|
288
288
|
_: 1
|
|
289
289
|
}, 8, ["label"]),
|
|
290
|
-
e(
|
|
290
|
+
e(w, {
|
|
291
291
|
prop: "idNo",
|
|
292
292
|
label: t.$t("itsmFlowEntrustUser.idNo")
|
|
293
293
|
}, {
|
|
294
294
|
default: l((o) => [
|
|
295
|
-
o.row.mobileEncrypt ? (
|
|
296
|
-
o.row.idNoIns ? (
|
|
295
|
+
o.row.mobileEncrypt ? (_(), b("span", ve, r(o.row.idNo), 1)) : (_(), b("span", _e, r(o.row.idNoIns), 1)),
|
|
296
|
+
o.row.idNoIns ? (_(), b("span", be, [
|
|
297
297
|
L(e(D, {
|
|
298
298
|
"icon-class": "close-eye",
|
|
299
299
|
onClick: (F) => V(o.row)
|
|
@@ -310,7 +310,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
310
310
|
]),
|
|
311
311
|
_: 1
|
|
312
312
|
}, 8, ["label"]),
|
|
313
|
-
e(
|
|
313
|
+
e(w, {
|
|
314
314
|
prop: "cost",
|
|
315
315
|
label: t.$t("itsmFlowEntrustUser.cost")
|
|
316
316
|
}, {
|
|
@@ -319,7 +319,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
}, 8, ["label"]),
|
|
322
|
-
e(
|
|
322
|
+
e(w, {
|
|
323
323
|
prop: "duration",
|
|
324
324
|
label: t.$t("itsmFlowEntrustUser.duration")
|
|
325
325
|
}, {
|
|
@@ -328,12 +328,12 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
328
328
|
]),
|
|
329
329
|
_: 1
|
|
330
330
|
}, 8, ["label"]),
|
|
331
|
-
e(
|
|
331
|
+
e(w, {
|
|
332
332
|
prop: "totalAmount",
|
|
333
333
|
label: t.$t("itsmFlowReckoning.totalAmount")
|
|
334
334
|
}, {
|
|
335
335
|
default: l((o) => [
|
|
336
|
-
u(r(
|
|
336
|
+
u(r(y(de)(o.row.cost, o.row.duration)), 1)
|
|
337
337
|
]),
|
|
338
338
|
_: 1
|
|
339
339
|
}, 8, ["label"])
|
|
@@ -355,7 +355,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
355
355
|
label: t.$t("itsmFlowReckoning.totalPrice")
|
|
356
356
|
}, {
|
|
357
357
|
default: l(() => [
|
|
358
|
-
u(r(
|
|
358
|
+
u(r(y(pe)(q.value)) + "元 ", 1)
|
|
359
359
|
]),
|
|
360
360
|
_: 1
|
|
361
361
|
}, 8, ["label"])
|
|
@@ -380,7 +380,8 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
380
380
|
])
|
|
381
381
|
], -1)
|
|
382
382
|
])),
|
|
383
|
-
_: 1
|
|
383
|
+
_: 1,
|
|
384
|
+
__: [2]
|
|
384
385
|
}),
|
|
385
386
|
e(s, {
|
|
386
387
|
span: 12,
|
|
@@ -401,14 +402,15 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
401
402
|
])
|
|
402
403
|
], -1)
|
|
403
404
|
])),
|
|
404
|
-
_: 1
|
|
405
|
+
_: 1,
|
|
406
|
+
__: [3]
|
|
405
407
|
})
|
|
406
408
|
]),
|
|
407
409
|
_: 1
|
|
408
410
|
}),
|
|
409
411
|
e(d, null, {
|
|
410
412
|
default: l(() => [
|
|
411
|
-
k.task.taskDefinitionKey === "UploadScanFile" ? (
|
|
413
|
+
k.task.taskDefinitionKey === "UploadScanFile" ? (_(), A(s, {
|
|
412
414
|
key: 0,
|
|
413
415
|
span: 12
|
|
414
416
|
}, {
|
|
@@ -419,8 +421,8 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
419
421
|
default: l(() => [
|
|
420
422
|
e(M, {
|
|
421
423
|
type: "primary",
|
|
422
|
-
icon:
|
|
423
|
-
onClick:
|
|
424
|
+
icon: y(re),
|
|
425
|
+
onClick: z
|
|
424
426
|
}, {
|
|
425
427
|
default: l(() => [
|
|
426
428
|
u(r(t.$t("common.uploadFiles")), 1)
|
|
@@ -432,18 +434,18 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
432
434
|
}, 8, ["label"]),
|
|
433
435
|
e(c, null, {
|
|
434
436
|
default: l(() => [
|
|
435
|
-
(
|
|
437
|
+
(_(!0), b(S, null, se(m.value, (o, F) => (_(), b("div", {
|
|
436
438
|
key: F,
|
|
437
439
|
class: "files-list"
|
|
438
440
|
}, [
|
|
439
441
|
u(r(o.fileName) + " ", 1),
|
|
440
|
-
e(
|
|
442
|
+
e(x, {
|
|
441
443
|
size: "16",
|
|
442
444
|
class: "icon-right",
|
|
443
|
-
onClick: (
|
|
445
|
+
onClick: (ke) => W(F)
|
|
444
446
|
}, {
|
|
445
447
|
default: l(() => [
|
|
446
|
-
e(
|
|
448
|
+
e(Z)
|
|
447
449
|
]),
|
|
448
450
|
_: 2
|
|
449
451
|
}, 1032, ["onClick"])
|
|
@@ -454,7 +456,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
454
456
|
]),
|
|
455
457
|
_: 1
|
|
456
458
|
})) : I("", !0),
|
|
457
|
-
k.task.taskDefinitionKey === "UploadScanFile" ? (
|
|
459
|
+
k.task.taskDefinitionKey === "UploadScanFile" ? (_(), A(s, {
|
|
458
460
|
key: 1,
|
|
459
461
|
span: 12
|
|
460
462
|
}, {
|
|
@@ -485,17 +487,17 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
|
|
|
485
487
|
]),
|
|
486
488
|
_: 1
|
|
487
489
|
}, 8, ["model"]),
|
|
488
|
-
e(
|
|
490
|
+
e(le, {
|
|
489
491
|
ref_key: "uploadRef",
|
|
490
|
-
ref:
|
|
492
|
+
ref: U,
|
|
491
493
|
modelValue: E.value,
|
|
492
494
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => E.value = o),
|
|
493
|
-
onUploadFileList:
|
|
495
|
+
onUploadFileList: G
|
|
494
496
|
}, null, 8, ["modelValue"])
|
|
495
497
|
], 64);
|
|
496
498
|
};
|
|
497
499
|
}
|
|
498
500
|
});
|
|
499
501
|
export {
|
|
500
|
-
|
|
502
|
+
$e as default
|
|
501
503
|
};
|