xyvcard-itsm-flow 0.0.20 → 0.0.21
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-5d27MsC6.mjs → FileSaver.min-X2_RihtX.mjs} +29 -28
- package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/{edit-DIh0NEYf.mjs → edit-AAIDp3Ys.mjs} +1 -1
- package/dist/edit-BC3HBHna.mjs +378 -0
- package/dist/{edit-DdzFTqhg.mjs → edit-CWx9fJF7.mjs} +1 -1
- package/dist/edit-CuL-MqiW.mjs +794 -0
- package/dist/{edit-Vw2XQ1u6.mjs → edit-XWSh98dW.mjs} +1 -1
- package/dist/edit-zRQs9w8y.mjs +492 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-BCVm7-Ex.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-BHgx58mh.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-Rs79eFoT.mjs} +2 -2
- package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
- package/dist/{index-g0KiWDPW.mjs → index--gw38QeR.mjs} +3 -3
- package/dist/index-3BgV8fss.mjs +396 -0
- package/dist/index-BDh2WCIf.mjs +316 -0
- package/dist/{index-CxyHtsq2.mjs → index-BFtKB0qe.mjs} +2 -2
- package/dist/{index-DaSMRndr.mjs → index-BLHnAUcn.mjs} +2 -2
- package/dist/index-BSRU0wyQ.mjs +479 -0
- package/dist/{index-54evOMFJ.mjs → index-BYbmB9DD.mjs} +2 -2
- package/dist/{index-BI1uXq1f.mjs → index-Bom-5z91.mjs} +4 -4
- package/dist/index-BtiMpwj2.mjs +457 -0
- package/dist/{index-tnTugnqa.mjs → index-C-HQUPPS.mjs} +3 -3
- package/dist/{index-DyOibT57.mjs → index-C5pj6umx.mjs} +2 -2
- package/dist/{index-C7_kMdm5.mjs → index-CDKSx5IH.mjs} +2 -2
- package/dist/{index-Dooa5UH_.mjs → index-CLZfBnlo.mjs} +4 -4
- package/dist/index-COvZrTZl.mjs +278 -0
- package/dist/index-CXAtR6Vv.mjs +366 -0
- package/dist/index-CYJvDaI_.mjs +1371 -0
- package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
- package/dist/index-D2AIn13F.mjs +339 -0
- package/dist/{index-Cgbv4Ijf.mjs → index-D7TvdZ0W.mjs} +180 -160
- package/dist/{index-7_pEehBt.mjs → index-DBRvKb1w.mjs} +2 -2
- package/dist/{index-CITy8Hqm.mjs → index-DFj2i4Kf.mjs} +4 -4
- package/dist/index-DNsy9Enp.mjs +272 -0
- package/dist/index-DQOGU1Vs.mjs +402 -0
- package/dist/index-D_PiZ_6x.mjs +749 -0
- package/dist/index-DesY4um_.mjs +330 -0
- package/dist/{index-v18knD_f.mjs → index-DkPqpjkA.mjs} +2 -2
- package/dist/index-Sm592CoC.mjs +273 -0
- package/dist/index-cjJjrvPP.mjs +390 -0
- package/dist/index-enjFe_Qb.mjs +400 -0
- package/dist/index-gWMTJ0gB.mjs +221 -0
- package/dist/index-o0oTSdUL.mjs +149 -0
- package/dist/index.mjs +1357 -1229
- package/dist/{info-8NydJYfB.mjs → info-06y0zz8D.mjs} +1 -1
- package/dist/{info-BbMCDfFR.mjs → info-BQh86EaI.mjs} +1 -1
- package/dist/{info-l0eP5Tw1.mjs → info-CYY7U06K.mjs} +1 -1
- package/dist/info-ClUXgnK1.mjs +4 -0
- package/dist/info-DJvahDDF.mjs +4 -0
- package/dist/info-nzbmqI2A.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-7L5RJMrf.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BHjv3DSd.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-D5eF48hb.mjs} +1 -1
- package/dist/info.vue_vue_type_script_setup_true_lang-DxArle2x.mjs +260 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-hwan7iwm.mjs +209 -0
- package/dist/info.vue_vue_type_script_setup_true_lang-y8F2Xg5z.mjs +374 -0
- package/dist/style.css +1 -1
- package/dts/api/index.d.ts +5 -1
- package/dts/api/itsm-flow-spare-parts/index.d.ts +20 -0
- package/dts/api/itsm-flow-spare-parts/types.d.ts +113 -0
- package/dts/api/itsm-flow-spare-parts-details/index.d.ts +20 -0
- package/dts/api/itsm-flow-spare-parts-details/types.d.ts +77 -0
- package/dts/api/itsm-flow-temporary/index.d.ts +21 -0
- package/dts/api/itsm-flow-temporary/types.d.ts +115 -0
- package/dts/components/ImageUpload/ImageUpload.vue.d.ts +36 -0
- package/dts/components/TaskItsmFlowImOrderInterior/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImOrderInteriorEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImOrderInteriorImplement/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImOrderInteriorView/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareParts/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSparePartsEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSparePartsUse/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporary/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporaryEdit/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporaryImplement/index.vue.d.ts +28 -0
- package/dts/components/TaskItsmFlowImSpareTemporaryView/index.vue.d.ts +28 -0
- package/dts/constant.d.ts +8 -0
- package/dts/index.d.ts +11 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +81 -0
- package/dts/views/item-flow-orders-interior/edit.vue.d.ts +28 -0
- package/dts/views/item-flow-orders-interior/index.vue.d.ts +2 -0
- package/dts/views/item-flow-orders-interior/info.vue.d.ts +26 -0
- package/dts/views/itsm-flow-spare-parts/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-spare-parts/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-spare-parts/info.vue.d.ts +26 -0
- package/dts/views/itsm-flow-temporary/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-temporary/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-temporary/info.vue.d.ts +26 -0
- package/package.json +63 -63
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, mergeModels as h, ref as N, useModel as B, resolveComponent as p, createBlock as O, openBlock as U, withCtx as e, createVNode as l, createElementVNode as a, createTextVNode as u, toDisplayString as i, unref as v } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { D as m, i as F } from "./index-
|
|
3
|
+
import { D as m, i as F } from "./index-D7TvdZ0W.mjs";
|
|
4
4
|
import { fileApi as j } from "jmash-core";
|
|
5
5
|
const M = /* @__PURE__ */ I({
|
|
6
6
|
__name: "info",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, mergeModels as K, ref as F, useModel as j, resolveComponent as p, createBlock as z, openBlock as v, withCtx as t, createVNode as e, createElementVNode as o, createTextVNode as r, toDisplayString as a, unref as w, createElementBlock as y, createCommentVNode as M, withDirectives as C, vShow as V } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { D as c, a as S, b as A } from "./index-
|
|
3
|
+
import { D as c, a as S, b as A } from "./index-D7TvdZ0W.mjs";
|
|
4
4
|
const R = { key: 0 }, q = { key: 1 }, L = {
|
|
5
5
|
key: 2,
|
|
6
6
|
class: "distance-left"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as K, mergeModels as O, ref as F, useModel as A, computed as P, resolveComponent as p, createBlock as j, openBlock as b, withCtx as t, createVNode as e, createElementVNode as n, createTextVNode as a, toDisplayString as s, unref as v, createElementBlock as g, createCommentVNode as M, withDirectives as I, vShow as $ } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { i as z, t as L, a as S } from "./common-Cwl5jzlM.mjs";
|
|
4
|
-
import { D as w, b as q } from "./index-
|
|
4
|
+
import { D as w, b as q } from "./index-D7TvdZ0W.mjs";
|
|
5
5
|
const T = { key: 0 }, G = { key: 1 }, H = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { defineComponent as P, mergeModels as L, useModel as z, getCurrentInstance as A, ref as V, resolveComponent as p, createBlock as B, openBlock as c, withCtx as l, createVNode as t, createTextVNode as i, toDisplayString as s, unref as m, createElementBlock as g, Fragment as D, renderList as T, createElementVNode as E } from "vue";
|
|
2
|
+
import { rbacApi as M } from "jmash-rbac";
|
|
3
|
+
import { i as U, D as f } from "./index-D7TvdZ0W.mjs";
|
|
4
|
+
import { fileApi as K } from "jmash-core";
|
|
5
|
+
import { i as Y } from "./index-o0oTSdUL.mjs";
|
|
6
|
+
const Q = /* @__PURE__ */ P({
|
|
7
|
+
__name: "info",
|
|
8
|
+
props: /* @__PURE__ */ L({
|
|
9
|
+
entityKey: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { type: Boolean },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(v) {
|
|
20
|
+
var I;
|
|
21
|
+
const _ = z(v, "modelValue"), { proxy: h } = A(), y = v, n = V();
|
|
22
|
+
(I = y.entityKey) != null && I.temporaryId && Y.findById({ temporaryId: y.entityKey.temporaryId }).then((o) => {
|
|
23
|
+
n.value = o.data;
|
|
24
|
+
});
|
|
25
|
+
const w = V([]);
|
|
26
|
+
U.findFilesList({ actionId: y.entityKey.temporaryId }).then((o) => {
|
|
27
|
+
w.value = o.data.results, console.log(o.data.results, "=> files");
|
|
28
|
+
});
|
|
29
|
+
async function $(o) {
|
|
30
|
+
try {
|
|
31
|
+
const d = K.fileUrl(o.filePath), a = await (await fetch(d)).blob(), b = window.URL.createObjectURL(a), u = document.createElement("a");
|
|
32
|
+
u.href = b, u.download = o.fileName || "download", document.body.appendChild(u), u.click();
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function k() {
|
|
37
|
+
_.value && (_.value = !1);
|
|
38
|
+
}
|
|
39
|
+
return (o, d) => {
|
|
40
|
+
const r = p("el-form-item"), a = p("el-col"), b = p("el-button"), u = p("el-row"), C = p("el-form"), O = p("el-dialog");
|
|
41
|
+
return c(), B(O, {
|
|
42
|
+
modelValue: _.value,
|
|
43
|
+
"onUpdate:modelValue": d[0] || (d[0] = (e) => _.value = e),
|
|
44
|
+
onClose: k
|
|
45
|
+
}, {
|
|
46
|
+
default: l(() => [
|
|
47
|
+
t(C, {
|
|
48
|
+
ref: "itsmFlowEntrustFormRef",
|
|
49
|
+
"label-width": "150px",
|
|
50
|
+
class: "custom-table-form custom-form"
|
|
51
|
+
}, {
|
|
52
|
+
default: l(() => [
|
|
53
|
+
t(u, null, {
|
|
54
|
+
default: l(() => [
|
|
55
|
+
t(a, { span: 24 }, {
|
|
56
|
+
default: l(() => [
|
|
57
|
+
t(r, {
|
|
58
|
+
label: o.$t("itsmFlowSpareParts.govOrgId"),
|
|
59
|
+
prop: "govOrgId"
|
|
60
|
+
}, {
|
|
61
|
+
default: l(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return [
|
|
64
|
+
i(s(m(f).orgIdBizDict.getValue((e = n.value) == null ? void 0 : e.govOrgId)), 1)
|
|
65
|
+
];
|
|
66
|
+
}),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["label"])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
t(a, { span: 24 }, {
|
|
73
|
+
default: l(() => [
|
|
74
|
+
t(r, {
|
|
75
|
+
label: o.$t("itsmFlowSpareParts.itemId"),
|
|
76
|
+
prop: "itemId"
|
|
77
|
+
}, {
|
|
78
|
+
default: l(() => {
|
|
79
|
+
var e;
|
|
80
|
+
return [
|
|
81
|
+
i(s(m(f).itemBizLayDict.getValue((e = n.value) == null ? void 0 : e.itemId)), 1)
|
|
82
|
+
];
|
|
83
|
+
}),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["label"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
t(a, { span: 12 }, {
|
|
90
|
+
default: l(() => [
|
|
91
|
+
t(r, {
|
|
92
|
+
label: o.$t("itsmFlowTemporary.createBy"),
|
|
93
|
+
prop: "createBy"
|
|
94
|
+
}, {
|
|
95
|
+
default: l(() => {
|
|
96
|
+
var e;
|
|
97
|
+
return [
|
|
98
|
+
i(s(m(M).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
|
|
99
|
+
];
|
|
100
|
+
}),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 8, ["label"])
|
|
103
|
+
]),
|
|
104
|
+
_: 1
|
|
105
|
+
}),
|
|
106
|
+
t(a, { span: 12 }, {
|
|
107
|
+
default: l(() => [
|
|
108
|
+
t(r, {
|
|
109
|
+
label: o.$t("itsmFlowTemporary.createTime"),
|
|
110
|
+
prop: "createTime"
|
|
111
|
+
}, {
|
|
112
|
+
default: l(() => {
|
|
113
|
+
var e;
|
|
114
|
+
return [
|
|
115
|
+
i(s(m(h).$moment.formatDate(
|
|
116
|
+
(e = n.value) == null ? void 0 : e.createTime,
|
|
117
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
118
|
+
)), 1)
|
|
119
|
+
];
|
|
120
|
+
}),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 8, ["label"])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}),
|
|
126
|
+
t(a, { span: 24 }, {
|
|
127
|
+
default: l(() => [
|
|
128
|
+
t(r, {
|
|
129
|
+
label: o.$t("itsmFlowTemporary.title"),
|
|
130
|
+
prop: "title"
|
|
131
|
+
}, {
|
|
132
|
+
default: l(() => {
|
|
133
|
+
var e;
|
|
134
|
+
return [
|
|
135
|
+
i(s((e = n.value) == null ? void 0 : e.title), 1)
|
|
136
|
+
];
|
|
137
|
+
}),
|
|
138
|
+
_: 1
|
|
139
|
+
}, 8, ["label"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}),
|
|
143
|
+
t(a, { span: 24 }, {
|
|
144
|
+
default: l(() => [
|
|
145
|
+
t(r, {
|
|
146
|
+
label: o.$t("itsmFlowTemporary.content"),
|
|
147
|
+
prop: "content"
|
|
148
|
+
}, {
|
|
149
|
+
default: l(() => {
|
|
150
|
+
var e;
|
|
151
|
+
return [
|
|
152
|
+
i(s((e = n.value) == null ? void 0 : e.content), 1)
|
|
153
|
+
];
|
|
154
|
+
}),
|
|
155
|
+
_: 1
|
|
156
|
+
}, 8, ["label"])
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
}),
|
|
160
|
+
t(a, {
|
|
161
|
+
span: 24,
|
|
162
|
+
class: "bordered-row"
|
|
163
|
+
}, {
|
|
164
|
+
default: l(() => [
|
|
165
|
+
(c(!0), g(D, null, T(m(f).fileTypeDict.values.slice(2, 3), (e, R) => (c(), B(r, {
|
|
166
|
+
key: e.dictCode,
|
|
167
|
+
label: e.dictName
|
|
168
|
+
}, {
|
|
169
|
+
default: l(() => [
|
|
170
|
+
(c(!0), g(D, null, T(w.value, (F, N) => (c(), g("div", {
|
|
171
|
+
key: N,
|
|
172
|
+
class: "files-list"
|
|
173
|
+
}, [
|
|
174
|
+
E("span", null, s(F.fileName), 1),
|
|
175
|
+
t(b, {
|
|
176
|
+
type: "primary",
|
|
177
|
+
link: "",
|
|
178
|
+
size: "small",
|
|
179
|
+
class: "icon-right",
|
|
180
|
+
onClick: (S) => $(F)
|
|
181
|
+
}, {
|
|
182
|
+
default: l(() => d[1] || (d[1] = [
|
|
183
|
+
i(" 查看 ")
|
|
184
|
+
])),
|
|
185
|
+
_: 2,
|
|
186
|
+
__: [1]
|
|
187
|
+
}, 1032, ["onClick"])
|
|
188
|
+
]))), 128))
|
|
189
|
+
]),
|
|
190
|
+
_: 2
|
|
191
|
+
}, 1032, ["label"]))), 128))
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
t(a, { span: 24 }, {
|
|
196
|
+
default: l(() => [
|
|
197
|
+
t(r, {
|
|
198
|
+
label: o.$t("itsmFlowTemporary.outOrgId"),
|
|
199
|
+
prop: "outOrgId"
|
|
200
|
+
}, {
|
|
201
|
+
default: l(() => {
|
|
202
|
+
var e;
|
|
203
|
+
return [
|
|
204
|
+
i(s(m(f).orgIdBizDict.getValue((e = n.value) == null ? void 0 : e.outOrgId)), 1)
|
|
205
|
+
];
|
|
206
|
+
}),
|
|
207
|
+
_: 1
|
|
208
|
+
}, 8, ["label"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
}),
|
|
212
|
+
t(a, { span: 24 }, {
|
|
213
|
+
default: l(() => [
|
|
214
|
+
t(r, {
|
|
215
|
+
label: o.$t("itsmFlowTemporary.userId"),
|
|
216
|
+
prop: "userId"
|
|
217
|
+
}, {
|
|
218
|
+
default: l(() => {
|
|
219
|
+
var e;
|
|
220
|
+
return [
|
|
221
|
+
i(s(m(f).userExtBizDict.getValue((e = n.value) == null ? void 0 : e.userId)), 1)
|
|
222
|
+
];
|
|
223
|
+
}),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["label"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}),
|
|
229
|
+
t(a, { span: 24 }, {
|
|
230
|
+
default: l(() => [
|
|
231
|
+
t(r, {
|
|
232
|
+
label: o.$t("itsmFlowTemporary.handlingPeriod"),
|
|
233
|
+
prop: "handlingPeriod"
|
|
234
|
+
}, {
|
|
235
|
+
default: l(() => {
|
|
236
|
+
var e;
|
|
237
|
+
return [
|
|
238
|
+
i(s((e = n.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
239
|
+
];
|
|
240
|
+
}),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["label"])
|
|
243
|
+
]),
|
|
244
|
+
_: 1
|
|
245
|
+
})
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
})
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 512)
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["modelValue"]);
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
export {
|
|
259
|
+
Q as _
|
|
260
|
+
};
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { defineComponent as E, mergeModels as L, useModel as M, getCurrentInstance as P, ref as h, resolveComponent as u, createBlock as I, openBlock as c, withCtx as l, createVNode as t, createTextVNode as s, toDisplayString as d, createElementBlock as b, Fragment as T, renderList as k, unref as f, createElementVNode as U } from "vue";
|
|
2
|
+
import { rbacApi as K } from "jmash-rbac";
|
|
3
|
+
import { i as Y, D as V } from "./index-D7TvdZ0W.mjs";
|
|
4
|
+
import { fileApi as R } from "jmash-core";
|
|
5
|
+
import { i as j } from "./index-o0oTSdUL.mjs";
|
|
6
|
+
const J = /* @__PURE__ */ E({
|
|
7
|
+
__name: "info",
|
|
8
|
+
props: /* @__PURE__ */ L({
|
|
9
|
+
entityKey: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: { type: Boolean },
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(w) {
|
|
20
|
+
var g;
|
|
21
|
+
const p = M(w, "modelValue"), { proxy: B } = P(), y = w, n = h();
|
|
22
|
+
(g = y.entityKey) != null && g.temporaryId && j.findById({ temporaryId: y.entityKey.temporaryId }).then((o) => {
|
|
23
|
+
n.value = o.data;
|
|
24
|
+
});
|
|
25
|
+
const v = h([]);
|
|
26
|
+
Y.findFilesList({ actionId: y.entityKey.temporaryId }).then((o) => {
|
|
27
|
+
v.value = o.data.results, console.log(o.data.results, "=> files");
|
|
28
|
+
});
|
|
29
|
+
async function C(o) {
|
|
30
|
+
try {
|
|
31
|
+
const i = R.fileUrl(o.filePath), a = await (await fetch(i)).blob(), _ = window.URL.createObjectURL(a), m = document.createElement("a");
|
|
32
|
+
m.href = _, m.download = o.fileName || "download", document.body.appendChild(m), m.click();
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function D() {
|
|
37
|
+
p.value && (p.value = !1);
|
|
38
|
+
}
|
|
39
|
+
return (o, i) => {
|
|
40
|
+
const r = u("el-form-item"), a = u("el-col"), _ = u("el-button"), m = u("el-row"), $ = u("el-form"), N = u("el-dialog");
|
|
41
|
+
return c(), I(N, {
|
|
42
|
+
modelValue: p.value,
|
|
43
|
+
"onUpdate:modelValue": i[0] || (i[0] = (e) => p.value = e),
|
|
44
|
+
onClose: D
|
|
45
|
+
}, {
|
|
46
|
+
default: l(() => [
|
|
47
|
+
t($, {
|
|
48
|
+
ref: "itsmFlowEntrustFormRef",
|
|
49
|
+
"label-width": "150px",
|
|
50
|
+
class: "custom-table-form custom-form"
|
|
51
|
+
}, {
|
|
52
|
+
default: l(() => [
|
|
53
|
+
t(m, null, {
|
|
54
|
+
default: l(() => [
|
|
55
|
+
t(a, { span: 24 }, {
|
|
56
|
+
default: l(() => [
|
|
57
|
+
t(r, {
|
|
58
|
+
label: o.$t("itsmFlowTemporary.title"),
|
|
59
|
+
prop: "title"
|
|
60
|
+
}, {
|
|
61
|
+
default: l(() => {
|
|
62
|
+
var e;
|
|
63
|
+
return [
|
|
64
|
+
s(d((e = n.value) == null ? void 0 : e.title), 1)
|
|
65
|
+
];
|
|
66
|
+
}),
|
|
67
|
+
_: 1
|
|
68
|
+
}, 8, ["label"])
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}),
|
|
72
|
+
t(a, { span: 24 }, {
|
|
73
|
+
default: l(() => [
|
|
74
|
+
t(r, {
|
|
75
|
+
label: o.$t("itsmFlowTemporary.content"),
|
|
76
|
+
prop: "content"
|
|
77
|
+
}, {
|
|
78
|
+
default: l(() => {
|
|
79
|
+
var e;
|
|
80
|
+
return [
|
|
81
|
+
s(d((e = n.value) == null ? void 0 : e.content), 1)
|
|
82
|
+
];
|
|
83
|
+
}),
|
|
84
|
+
_: 1
|
|
85
|
+
}, 8, ["label"])
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}),
|
|
89
|
+
t(a, {
|
|
90
|
+
span: 24,
|
|
91
|
+
class: "bordered-row"
|
|
92
|
+
}, {
|
|
93
|
+
default: l(() => [
|
|
94
|
+
(c(!0), b(T, null, k(f(V).fileTypeDict.values.slice(2, 3), (e, x) => (c(), I(r, {
|
|
95
|
+
key: e.dictCode,
|
|
96
|
+
label: e.dictName
|
|
97
|
+
}, {
|
|
98
|
+
default: l(() => [
|
|
99
|
+
(c(!0), b(T, null, k(v.value, (F, A) => (c(), b("div", {
|
|
100
|
+
key: A,
|
|
101
|
+
class: "files-list"
|
|
102
|
+
}, [
|
|
103
|
+
U("span", null, d(F.fileName), 1),
|
|
104
|
+
t(_, {
|
|
105
|
+
type: "primary",
|
|
106
|
+
link: "",
|
|
107
|
+
size: "small",
|
|
108
|
+
class: "icon-right",
|
|
109
|
+
onClick: (z) => C(F)
|
|
110
|
+
}, {
|
|
111
|
+
default: l(() => i[1] || (i[1] = [
|
|
112
|
+
s(" 查看 ")
|
|
113
|
+
])),
|
|
114
|
+
_: 2,
|
|
115
|
+
__: [1]
|
|
116
|
+
}, 1032, ["onClick"])
|
|
117
|
+
]))), 128))
|
|
118
|
+
]),
|
|
119
|
+
_: 2
|
|
120
|
+
}, 1032, ["label"]))), 128))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
t(a, { span: 12 }, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
t(r, {
|
|
127
|
+
label: o.$t("itsmFlowTemporary.createBy"),
|
|
128
|
+
prop: "createBy"
|
|
129
|
+
}, {
|
|
130
|
+
default: l(() => {
|
|
131
|
+
var e;
|
|
132
|
+
return [
|
|
133
|
+
s(d(f(K).userInfo((e = n.value) == null ? void 0 : e.createBy).realName), 1)
|
|
134
|
+
];
|
|
135
|
+
}),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 8, ["label"])
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
}),
|
|
141
|
+
t(a, { span: 12 }, {
|
|
142
|
+
default: l(() => [
|
|
143
|
+
t(r, {
|
|
144
|
+
label: o.$t("itsmFlowTemporary.createTime"),
|
|
145
|
+
prop: "createTime"
|
|
146
|
+
}, {
|
|
147
|
+
default: l(() => {
|
|
148
|
+
var e;
|
|
149
|
+
return [
|
|
150
|
+
s(d(f(B).$moment.formatDate(
|
|
151
|
+
(e = n.value) == null ? void 0 : e.createTime,
|
|
152
|
+
"YYYY-MM-DD HH:mm:ss"
|
|
153
|
+
)), 1)
|
|
154
|
+
];
|
|
155
|
+
}),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, ["label"])
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
}),
|
|
161
|
+
t(a, { span: 24 }, {
|
|
162
|
+
default: l(() => [
|
|
163
|
+
t(r, {
|
|
164
|
+
label: o.$t("itsmFlowTemporary.userId"),
|
|
165
|
+
prop: "userId"
|
|
166
|
+
}, {
|
|
167
|
+
default: l(() => {
|
|
168
|
+
var e;
|
|
169
|
+
return [
|
|
170
|
+
s(d(f(V).userExtBizDict.getValue((e = n.value) == null ? void 0 : e.userId)), 1)
|
|
171
|
+
];
|
|
172
|
+
}),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["label"])
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
}),
|
|
178
|
+
t(a, { span: 24 }, {
|
|
179
|
+
default: l(() => [
|
|
180
|
+
t(r, {
|
|
181
|
+
label: o.$t("itsmFlowTemporary.handlingPeriod"),
|
|
182
|
+
prop: "handlingPeriod"
|
|
183
|
+
}, {
|
|
184
|
+
default: l(() => {
|
|
185
|
+
var e;
|
|
186
|
+
return [
|
|
187
|
+
s(d((e = n.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
188
|
+
];
|
|
189
|
+
}),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["label"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 512)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["modelValue"]);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
export {
|
|
208
|
+
J as _
|
|
209
|
+
};
|