xyvcard-itsm-flow 0.0.36 → 0.0.38
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-ClNkVClN.mjs → FileSaver.min-C-3rxI72.mjs} +1 -1
- package/dist/{edit-CKextQDx.mjs → edit-3YacNQ0m.mjs} +2 -2
- package/dist/{edit-CM7ZEDiX.mjs → edit-BuyO4D5o.mjs} +2 -2
- package/dist/{edit-DdAC6cfV.mjs → edit-CxJiWVp8.mjs} +1 -1
- package/dist/{edit-DBbtD7fG.mjs → edit-DGswtck8.mjs} +29 -29
- package/dist/{edit-BEdr_8PJ.mjs → edit-Ds_Iif35.mjs} +1 -1
- package/dist/{edit-x5wciLgT.mjs → edit-FrMPD4Q8.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BleGu-Ls.mjs → edit.vue_vue_type_script_setup_true_lang-B0H9i6ss.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-h8mpKFR4.mjs → edit.vue_vue_type_script_setup_true_lang-D8jDSSFA.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BAf8q7CN.mjs → edit.vue_vue_type_script_setup_true_lang-DYt_vHYp.mjs} +1 -1
- package/dist/{index-BplQVJ9-.mjs → index-B6VcbMkg.mjs} +1 -1
- package/dist/{index-CIIwH5CM.mjs → index-BK-_l_X-.mjs} +3 -3
- package/dist/{index-DZz2iF4d.mjs → index-BPnMz825.mjs} +4 -4
- package/dist/{index-CakK31Rp.mjs → index-BZgbmfjz.mjs} +72 -71
- package/dist/{index-BIu8ak2p.mjs → index-B_HeEcEI.mjs} +3 -3
- package/dist/{index-D993kfeg.mjs → index-BvewKE7L.mjs} +4 -4
- package/dist/{index-LxX80FPC.mjs → index-Bzz32n0z.mjs} +2 -2
- package/dist/{index-CMO-1BoO.mjs → index-C2mvyDNS.mjs} +16 -16
- package/dist/{index-S9BLyA2n.mjs → index-C8OzBTVT.mjs} +4 -4
- package/dist/{index-BECzf4l_.mjs → index-CZltgONr.mjs} +4 -4
- package/dist/{index-nW76ObDz.mjs → index-CcLbblVp.mjs} +3 -3
- package/dist/{index-yEXkk-Jd.mjs → index-CgU6trlJ.mjs} +6 -6
- package/dist/{index-BSGtDp12.mjs → index-Cmn2lxO_.mjs} +1 -1
- package/dist/{index-F9dxfOkY.mjs → index-Cogrwku9.mjs} +24 -24
- package/dist/{index-CVQgcLRH.mjs → index-D1SasUNc.mjs} +1415 -1396
- package/dist/index-DA3MfjHf.mjs +317 -0
- package/dist/{index-BOgdU813.mjs → index-DD-VdvMt.mjs} +2 -2
- package/dist/{index-8zrIyQWX.mjs → index-DFBJG6cI.mjs} +55 -55
- package/dist/{index-Bzv1T2rE.mjs → index-DSPo1jK_.mjs} +2 -2
- package/dist/{index-BM5T4IKm.mjs → index-DWjlJOfX.mjs} +2 -2
- package/dist/{index-BvcE9kx0.mjs → index-D_avlTrt.mjs} +2 -2
- package/dist/{index-C1TIJpBX.mjs → index-DbGGQp4Z.mjs} +2 -2
- package/dist/{index-tdS-iw08.mjs → index-DgMMgRkD.mjs} +13 -13
- package/dist/{index-C50GEcoN.mjs → index-Dh1Vp2x-.mjs} +2 -2
- package/dist/{index-qRMBTq3z.mjs → index-DjEr5bDE.mjs} +2 -2
- package/dist/{index-DGZ_lllw.mjs → index-Dp0ddiVO.mjs} +1 -1
- package/dist/{index-CTC_D8-A.mjs → index-DyLEMHeP.mjs} +19 -19
- package/dist/{index-DaFFNgmK.mjs → index-QfJMh7gj.mjs} +17 -17
- package/dist/{index-C8VALc-x.mjs → index-qEBDruQw.mjs} +1 -1
- package/dist/{index-CyInqmhb.mjs → index-rULCHGu0.mjs} +3 -3
- package/dist/{index-D9Wi_j9h.mjs → index-tYL79USI.mjs} +12 -12
- package/dist/{index-0uHuIS0s.mjs → index-tyZIu7Pu.mjs} +3 -3
- package/dist/{index-DSftvy63.mjs → index-xS9vmw1f.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/dist/{info-BZbUpYKc.mjs → info-2yqOgs3g.mjs} +1 -1
- package/dist/{info-BeyeJ52O.mjs → info-5b0MsAVP.mjs} +1 -1
- package/dist/{info-DBab8bvh.mjs → info-B0a03DPy.mjs} +1 -1
- package/dist/{info-B5VZK_Jj.mjs → info-D4SI5dEl.mjs} +1 -1
- package/dist/info-D8pJ4cqt.mjs +4 -0
- package/dist/info-DL-3XM_F.mjs +4 -0
- package/dist/info-Dauh_znj.mjs +4 -0
- package/dist/info-DqJrwwrx.mjs +4 -0
- package/dist/info-vZkqfj4d.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-e7laeTRw.mjs → info.vue_vue_type_script_setup_true_lang-BNqS_vNl.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CcoLQKWP.mjs → info.vue_vue_type_script_setup_true_lang-BP1NoBBM.mjs} +51 -50
- package/dist/{info.vue_vue_type_script_setup_true_lang-DgCsBUKD.mjs → info.vue_vue_type_script_setup_true_lang-CLHSx_HM.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-C9jHBNnr.mjs → info.vue_vue_type_script_setup_true_lang-CkiWEbLP.mjs} +28 -27
- package/dist/{info.vue_vue_type_script_setup_true_lang-Cg4p0Ii9.mjs → info.vue_vue_type_script_setup_true_lang-D0llCWuF.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CdC1rr1N.mjs → info.vue_vue_type_script_setup_true_lang-DDZO6qCX.mjs} +11 -11
- package/dist/{info.vue_vue_type_script_setup_true_lang-CCFoSbcQ.mjs → info.vue_vue_type_script_setup_true_lang-DjqfjKao.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-4OIr_eeU.mjs → info.vue_vue_type_script_setup_true_lang-IQSZ0nn1.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-C6DieIN8.mjs → info.vue_vue_type_script_setup_true_lang-ipuXshVV.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
- package/package.json +2 -2
- package/dist/index-BKffbxRi.mjs +0 -316
- package/dist/info-DD_FUSc5.mjs +0 -4
- package/dist/info-DIuxgoOh.mjs +0 -4
- package/dist/info-DixdvVdw.mjs +0 -4
- package/dist/info-DkYsYIN0.mjs +0 -4
- package/dist/info-iChisiU3.mjs +0 -4
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { defineComponent as q, mergeModels as H, ref as y, useModel as W, reactive as G, computed as B, nextTick as J, resolveComponent as m, createElementBlock as _, openBlock as f, Fragment as I, createVNode as t, withCtx as e, createElementVNode as N, unref as d, createTextVNode as s, toDisplayString as n, renderList as O, createBlock as $, createCommentVNode as Q } from "vue";
|
|
2
|
+
import { useUserStoreHook as X, fileApi as h } from "jmash-core";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
import { i as Y } from "./index-D1SasUNc.mjs";
|
|
5
|
+
import { D as u, i as L, C as Z } from "./index-B6VcbMkg.mjs";
|
|
6
|
+
const oe = /* @__PURE__ */ q({
|
|
7
|
+
__name: "index",
|
|
8
|
+
props: /* @__PURE__ */ H({
|
|
9
|
+
task: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: () => {
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
modelValue: {},
|
|
16
|
+
modelModifiers: {}
|
|
17
|
+
}),
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(D, { expose: z }) {
|
|
20
|
+
u.orgIdBizDict.useValues();
|
|
21
|
+
const S = y(), p = W(D, "modelValue"), P = X();
|
|
22
|
+
u.itemBizLayDict.useValues(), u.userExtBizDict.useValues();
|
|
23
|
+
const i = y({}), b = y([]), U = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = D;
|
|
24
|
+
let C = G({});
|
|
25
|
+
L.findFilesList({ actionId: g.task.businessKey }).then((l) => {
|
|
26
|
+
b.value = l.data.results;
|
|
27
|
+
});
|
|
28
|
+
const w = B(() => {
|
|
29
|
+
var a;
|
|
30
|
+
const o = ((a = u.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : a.dictCode) || "";
|
|
31
|
+
return b.value.filter((r) => r.fileSort === o);
|
|
32
|
+
}), A = B(() => {
|
|
33
|
+
var o;
|
|
34
|
+
const l = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
|
|
35
|
+
return b.value.filter((a) => a.fileSort === l);
|
|
36
|
+
});
|
|
37
|
+
async function M(l) {
|
|
38
|
+
try {
|
|
39
|
+
const o = h.fileUrl(l.fileSrc), r = await (await fetch(o)).blob(), F = window.URL.createObjectURL(r), c = document.createElement("a");
|
|
40
|
+
c.href = F, c.download = l.fileName || "download", document.body.appendChild(c), c.click();
|
|
41
|
+
} catch {
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
Y.findById({ temporaryId: g.task.businessKey }).then(({ data: l }) => {
|
|
45
|
+
i.value = { ...l }, J(() => {
|
|
46
|
+
i.value ? Object.assign(i.value, l) : i.value = { ...l }, E();
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
function E() {
|
|
50
|
+
L.findFilesList({ actionId: g.task.businessKey }).then(({ data: l }) => {
|
|
51
|
+
l.results && Array.isArray(l.results) && (C.files = l.results.map((o) => {
|
|
52
|
+
let a = "";
|
|
53
|
+
return o.fileName && (a = o.fileSort || o.type || ""), {
|
|
54
|
+
fileName: o.fileName || "",
|
|
55
|
+
fileId: o.fileId || "",
|
|
56
|
+
fileSort: a,
|
|
57
|
+
fileSrc: o.fileSrc || o.filePath || ""
|
|
58
|
+
};
|
|
59
|
+
}));
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
z({
|
|
63
|
+
changeModel: () => R()
|
|
64
|
+
});
|
|
65
|
+
function R() {
|
|
66
|
+
return p.value && (p.value.selectActions = [
|
|
67
|
+
{ key: "true", value: "同意" },
|
|
68
|
+
{ key: "false", value: "不同意" }
|
|
69
|
+
], p.value.varName = "approved", p.value.module = "", p.value.module = Z.MODULE_ITSMFLOW), new Promise((l, o) => {
|
|
70
|
+
var a;
|
|
71
|
+
(a = S.value) == null || a.validate((r) => {
|
|
72
|
+
r ? (p.value && (p.value.comment = ""), l(!0)) : o(!1);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return (l, o) => {
|
|
77
|
+
const a = m("el-col"), r = m("el-form-item"), F = m("el-button"), c = m("el-image"), j = m("el-row"), K = m("el-form");
|
|
78
|
+
return f(), _(I, null, [
|
|
79
|
+
t(a, { span: 24 }, {
|
|
80
|
+
default: e(() => o[0] || (o[0] = [
|
|
81
|
+
N("div", { class: "title" }, "外部临时工单", -1)
|
|
82
|
+
])),
|
|
83
|
+
_: 1,
|
|
84
|
+
__: [0]
|
|
85
|
+
}),
|
|
86
|
+
t(K, {
|
|
87
|
+
ref_key: "taskFormRef",
|
|
88
|
+
ref: S,
|
|
89
|
+
model: d(C),
|
|
90
|
+
"label-width": "150px",
|
|
91
|
+
class: "custom-table-form"
|
|
92
|
+
}, {
|
|
93
|
+
default: e(() => [
|
|
94
|
+
t(j, null, {
|
|
95
|
+
default: e(() => [
|
|
96
|
+
t(a, { span: 24 }, {
|
|
97
|
+
default: e(() => [
|
|
98
|
+
t(r, {
|
|
99
|
+
label: l.$t("itsmFlowSpareParts.govOrgId"),
|
|
100
|
+
prop: "govOrgId"
|
|
101
|
+
}, {
|
|
102
|
+
default: e(() => [
|
|
103
|
+
s(n(d(u).orgIdBizDict.getValue(i.value.govOrgId)), 1)
|
|
104
|
+
]),
|
|
105
|
+
_: 1
|
|
106
|
+
}, 8, ["label"])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}),
|
|
110
|
+
t(a, { span: 24 }, {
|
|
111
|
+
default: e(() => [
|
|
112
|
+
t(r, {
|
|
113
|
+
label: l.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
114
|
+
prop: "itemId"
|
|
115
|
+
}, {
|
|
116
|
+
default: e(() => [
|
|
117
|
+
s(n(d(u).itemBizLayDict.getValue(i.value.itemId)), 1)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}, 8, ["label"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}),
|
|
124
|
+
t(a, { span: 12 }, {
|
|
125
|
+
default: e(() => [
|
|
126
|
+
t(r, {
|
|
127
|
+
label: l.$t("itsmFlowTemporary.createBy")
|
|
128
|
+
}, {
|
|
129
|
+
default: e(() => [
|
|
130
|
+
s(n(d(P).user.realName), 1)
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}, 8, ["label"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}),
|
|
137
|
+
t(a, { span: 12 }, {
|
|
138
|
+
default: e(() => [
|
|
139
|
+
t(r, {
|
|
140
|
+
label: l.$t("itsmFlowTemporary.createTime"),
|
|
141
|
+
prop: "createTime"
|
|
142
|
+
}, {
|
|
143
|
+
default: e(() => [
|
|
144
|
+
s(n(U.value), 1)
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["label"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}),
|
|
151
|
+
t(a, { span: 24 }, {
|
|
152
|
+
default: e(() => [
|
|
153
|
+
t(r, {
|
|
154
|
+
label: l.$t("itsmFlowTemporary.title"),
|
|
155
|
+
prop: "title"
|
|
156
|
+
}, {
|
|
157
|
+
default: e(() => [
|
|
158
|
+
s(n(i.value.title), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}, 8, ["label"])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}),
|
|
165
|
+
t(a, { span: 24 }, {
|
|
166
|
+
default: e(() => [
|
|
167
|
+
t(r, {
|
|
168
|
+
label: l.$t("itsmFlowTemporary.content"),
|
|
169
|
+
prop: "content"
|
|
170
|
+
}, {
|
|
171
|
+
default: e(() => [
|
|
172
|
+
s(n(i.value.content), 1)
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}, 8, ["label"])
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
}),
|
|
179
|
+
t(a, { span: 24 }, {
|
|
180
|
+
default: e(() => [
|
|
181
|
+
t(r, { label: "附件" }, {
|
|
182
|
+
default: e(() => [
|
|
183
|
+
(f(!0), _(I, null, O(A.value, (v, T) => (f(), _("div", {
|
|
184
|
+
key: T,
|
|
185
|
+
class: "files-list"
|
|
186
|
+
}, [
|
|
187
|
+
N("span", null, n(v.fileName), 1),
|
|
188
|
+
t(F, {
|
|
189
|
+
type: "primary",
|
|
190
|
+
link: "",
|
|
191
|
+
size: "small",
|
|
192
|
+
class: "icon-right",
|
|
193
|
+
onClick: (k) => M(v)
|
|
194
|
+
}, {
|
|
195
|
+
default: e(() => o[1] || (o[1] = [
|
|
196
|
+
s(" 查看 ")
|
|
197
|
+
])),
|
|
198
|
+
_: 2,
|
|
199
|
+
__: [1]
|
|
200
|
+
}, 1032, ["onClick"])
|
|
201
|
+
]))), 128))
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
})
|
|
205
|
+
]),
|
|
206
|
+
_: 1
|
|
207
|
+
}),
|
|
208
|
+
t(a, { span: 24 }, {
|
|
209
|
+
default: e(() => [
|
|
210
|
+
t(r, {
|
|
211
|
+
label: l.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
212
|
+
prop: "outOrgId"
|
|
213
|
+
}, {
|
|
214
|
+
default: e(() => [
|
|
215
|
+
s(n(d(u).orgIdBizDict.getValue(i.value.outOrgId)), 1)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["label"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}),
|
|
222
|
+
t(a, { span: 24 }, {
|
|
223
|
+
default: e(() => [
|
|
224
|
+
t(r, {
|
|
225
|
+
label: l.$t("itsmFlowTemporary.userIdTemporary"),
|
|
226
|
+
prop: "userId"
|
|
227
|
+
}, {
|
|
228
|
+
default: e(() => [
|
|
229
|
+
s(n(d(u).userExtBizDict.getValue(i.value.userId)), 1)
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
}, 8, ["label"])
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}),
|
|
236
|
+
t(a, { span: 12 }, {
|
|
237
|
+
default: e(() => [
|
|
238
|
+
t(r, {
|
|
239
|
+
label: l.$t("itsmFlowTemporary.handlingPeriod"),
|
|
240
|
+
prop: "handlingPeriod"
|
|
241
|
+
}, {
|
|
242
|
+
default: e(() => [
|
|
243
|
+
s(n(i.value.handlingPeriod), 1)
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["label"])
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
t(a, { span: 12 }, {
|
|
251
|
+
default: e(() => [
|
|
252
|
+
t(r, {
|
|
253
|
+
label: l.$t("itsmFlowTemporary.finishDate"),
|
|
254
|
+
prop: "finishDate"
|
|
255
|
+
}, {
|
|
256
|
+
default: e(() => [
|
|
257
|
+
s(n(i.value.finishDate), 1)
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["label"])
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}),
|
|
264
|
+
t(a, { span: 24 }, {
|
|
265
|
+
default: e(() => [
|
|
266
|
+
t(r, {
|
|
267
|
+
label: l.$t("itsmFlowTemporary.completion"),
|
|
268
|
+
prop: "completion"
|
|
269
|
+
}, {
|
|
270
|
+
default: e(() => [
|
|
271
|
+
s(n(i.value.completion), 1)
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["label"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}),
|
|
278
|
+
t(a, { span: 24 }, {
|
|
279
|
+
default: e(() => [
|
|
280
|
+
(f(!0), _(I, null, O(d(u).fileTypeDict.values.slice(3, 4), (v, T) => (f(), $(r, {
|
|
281
|
+
key: v.dictCode,
|
|
282
|
+
label: v.dictName,
|
|
283
|
+
prop: "files." + T + ".fileSrc"
|
|
284
|
+
}, {
|
|
285
|
+
default: e(() => {
|
|
286
|
+
var k, V;
|
|
287
|
+
return [
|
|
288
|
+
w.value[0] ? (f(), $(c, {
|
|
289
|
+
key: 0,
|
|
290
|
+
src: d(h).imageUrl((k = w.value[0]) == null ? void 0 : k.fileSrc, 100, 100),
|
|
291
|
+
"preview-src-list": [
|
|
292
|
+
d(h).imageUrl((V = w.value[0]) == null ? void 0 : V.fileSrc)
|
|
293
|
+
],
|
|
294
|
+
"preview-teleported": "",
|
|
295
|
+
"hide-on-click-modal": "",
|
|
296
|
+
fit: "cover"
|
|
297
|
+
}, null, 8, ["src", "preview-src-list"])) : Q("", !0)
|
|
298
|
+
];
|
|
299
|
+
}),
|
|
300
|
+
_: 2
|
|
301
|
+
}, 1032, ["label", "prop"]))), 128))
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
})
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
})
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, ["model"])
|
|
311
|
+
], 64);
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
export {
|
|
316
|
+
oe as default
|
|
317
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, ref as k, reactive as R, resolveComponent as s, resolveDirective as W, createElementBlock as V, openBlock as p, createElementVNode as _, createVNode as o, createBlock as A, createCommentVNode as S, withCtx as l, withKeys as F, unref as n, createTextVNode as f, toDisplayString as u, withDirectives as $, isRef as T } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
|
-
import { D as N, C as Z, i as x } from "./index-
|
|
5
|
-
import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as N, C as Z, i as x } from "./index-B6VcbMkg.mjs";
|
|
5
|
+
import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-DYt_vHYp.mjs";
|
|
6
6
|
const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ae = ["onClick"], me = /* @__PURE__ */ M({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(ne) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as
|
|
1
|
+
import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as y, createElementBlock as p, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as F, createTextVNode as r, toDisplayString as u, renderList as g, unref as w, createBlock as M } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { i as H } from "./index-
|
|
4
|
-
import { D as _, i as K, C as W } from "./index-
|
|
3
|
+
import { i as H } from "./index-D1SasUNc.mjs";
|
|
4
|
+
import { D as _, i as K, C as W } from "./index-B6VcbMkg.mjs";
|
|
5
5
|
import { useUserStoreHook as q, fileApi as G } from "jmash-core";
|
|
6
6
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const Q = /* @__PURE__ */ P({
|
|
@@ -17,20 +17,20 @@ const Q = /* @__PURE__ */ P({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(h, { expose:
|
|
21
|
-
const { proxy:
|
|
20
|
+
setup(h, { expose: U }) {
|
|
21
|
+
const { proxy: V } = R(), x = q();
|
|
22
22
|
_.userExtBizDict.useValues();
|
|
23
|
-
const
|
|
24
|
-
K.findFilesList({ actionId:
|
|
25
|
-
var a,
|
|
26
|
-
|
|
27
|
-
const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
), C.value =
|
|
31
|
-
(
|
|
23
|
+
const L = v(), m = Y(h, "modelValue"), B = v({}), T = v([]), $ = v([]), C = v([]), n = v({}), I = h;
|
|
24
|
+
K.findFilesList({ actionId: I.task.businessKey }).then((t) => {
|
|
25
|
+
var a, f;
|
|
26
|
+
T.value = t.data.results;
|
|
27
|
+
const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((f = _.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : f.dictCode) || "";
|
|
28
|
+
$.value = T.value.filter(
|
|
29
|
+
(i) => i.fileSort === s
|
|
30
|
+
), C.value = T.value.filter(
|
|
31
|
+
(i) => i.fileSort === o
|
|
32
32
|
), console.log(C.value, "=>filesList2 ");
|
|
33
|
-
}), H.findById({ temporaryId:
|
|
33
|
+
}), H.findById({ temporaryId: I.task.businessKey }).then(({ data: t }) => {
|
|
34
34
|
n.value = t, n.value.outOrgId = t.outOrgId, j(() => {
|
|
35
35
|
Object.assign(n.value, t);
|
|
36
36
|
});
|
|
@@ -40,28 +40,28 @@ const Q = /* @__PURE__ */ P({
|
|
|
40
40
|
console.log(t, "=> item");
|
|
41
41
|
const s = G.fileUrl(t.fileSrc);
|
|
42
42
|
console.log(s, "=> fileUrl");
|
|
43
|
-
const a = await (await fetch(s)).blob(),
|
|
44
|
-
|
|
43
|
+
const a = await (await fetch(s)).blob(), f = window.URL.createObjectURL(a), i = document.createElement("a");
|
|
44
|
+
i.href = f, i.download = t.fileName || "download", document.body.appendChild(i), i.click();
|
|
45
45
|
} catch {
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
changeModel: () =>
|
|
48
|
+
U({
|
|
49
|
+
changeModel: () => O()
|
|
50
50
|
});
|
|
51
|
-
function
|
|
51
|
+
function O() {
|
|
52
52
|
return m.value && (m.value.selectActions = [
|
|
53
53
|
{ key: "true", value: "同意" },
|
|
54
54
|
{ key: "false", value: "不同意" }
|
|
55
55
|
], m.value.varName = "approved", m.value.module = "", m.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
|
|
56
56
|
var o;
|
|
57
|
-
(o =
|
|
57
|
+
(o = L.value) == null || o.validate((a) => {
|
|
58
58
|
a ? (m.value && (m.value.comment = ""), t(!0)) : s(!1);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
return (t, s) => {
|
|
63
|
-
const o =
|
|
64
|
-
return
|
|
63
|
+
const o = y("el-col"), a = y("el-form-item"), f = y("el-button"), i = y("el-row"), S = y("el-form");
|
|
64
|
+
return c(), p(k, null, [
|
|
65
65
|
l(o, { span: 24 }, {
|
|
66
66
|
default: e(() => s[0] || (s[0] = [
|
|
67
67
|
F("div", { class: "title" }, "内部临时工单", -1)
|
|
@@ -69,15 +69,15 @@ const Q = /* @__PURE__ */ P({
|
|
|
69
69
|
_: 1,
|
|
70
70
|
__: [0]
|
|
71
71
|
}),
|
|
72
|
-
l(
|
|
72
|
+
l(S, {
|
|
73
73
|
ref_key: "taskFormRef",
|
|
74
|
-
ref:
|
|
75
|
-
model:
|
|
74
|
+
ref: L,
|
|
75
|
+
model: B.value,
|
|
76
76
|
"label-width": "150px",
|
|
77
77
|
class: "custom-table-form custom-form"
|
|
78
78
|
}, {
|
|
79
79
|
default: e(() => [
|
|
80
|
-
l(
|
|
80
|
+
l(i, null, {
|
|
81
81
|
default: e(() => [
|
|
82
82
|
l(o, { span: 24 }, {
|
|
83
83
|
default: e(() => [
|
|
@@ -86,7 +86,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
86
86
|
prop: "title"
|
|
87
87
|
}, {
|
|
88
88
|
default: e(() => [
|
|
89
|
-
|
|
89
|
+
r(u(n.value.title), 1)
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
92
|
}, 8, ["label"])
|
|
@@ -100,7 +100,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
100
100
|
prop: "content"
|
|
101
101
|
}, {
|
|
102
102
|
default: e(() => [
|
|
103
|
-
|
|
103
|
+
r(u(n.value.content), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["label"])
|
|
@@ -109,25 +109,25 @@ const Q = /* @__PURE__ */ P({
|
|
|
109
109
|
}),
|
|
110
110
|
l(o, { span: 24 }, {
|
|
111
111
|
default: e(() => [
|
|
112
|
-
(
|
|
113
|
-
key:
|
|
114
|
-
label:
|
|
112
|
+
(c(!0), p(k, null, g(w(_).fileTypeDict.values.slice(2, 3), (d, E) => (c(), M(a, {
|
|
113
|
+
key: d.dictCode,
|
|
114
|
+
label: d.dictName
|
|
115
115
|
}, {
|
|
116
116
|
default: e(() => [
|
|
117
|
-
(
|
|
117
|
+
(c(!0), p(k, null, g($.value, (b, D) => (c(), p("div", {
|
|
118
118
|
key: D,
|
|
119
119
|
class: "files-list"
|
|
120
120
|
}, [
|
|
121
|
-
F("span", null, u(
|
|
122
|
-
l(
|
|
121
|
+
F("span", null, u(b.fileName), 1),
|
|
122
|
+
l(f, {
|
|
123
123
|
type: "primary",
|
|
124
124
|
link: "",
|
|
125
125
|
size: "small",
|
|
126
126
|
class: "icon-right",
|
|
127
|
-
onClick: (A) => N(
|
|
127
|
+
onClick: (A) => N(b)
|
|
128
128
|
}, {
|
|
129
129
|
default: e(() => s[1] || (s[1] = [
|
|
130
|
-
|
|
130
|
+
r(" 查看 ")
|
|
131
131
|
])),
|
|
132
132
|
_: 2,
|
|
133
133
|
__: [1]
|
|
@@ -145,7 +145,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
145
145
|
label: t.$t("itsmFlowTemporary.createBy")
|
|
146
146
|
}, {
|
|
147
147
|
default: e(() => [
|
|
148
|
-
|
|
148
|
+
r(u(w(x).user.realName), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
}, 8, ["label"])
|
|
@@ -159,10 +159,10 @@ const Q = /* @__PURE__ */ P({
|
|
|
159
159
|
prop: "createTime"
|
|
160
160
|
}, {
|
|
161
161
|
default: e(() => {
|
|
162
|
-
var
|
|
162
|
+
var d;
|
|
163
163
|
return [
|
|
164
|
-
|
|
165
|
-
(
|
|
164
|
+
r(u(w(V).$moment.formatDate(
|
|
165
|
+
(d = n.value) == null ? void 0 : d.createTime,
|
|
166
166
|
"YYYY-MM-DD HH:mm:ss"
|
|
167
167
|
)), 1)
|
|
168
168
|
];
|
|
@@ -175,11 +175,11 @@ const Q = /* @__PURE__ */ P({
|
|
|
175
175
|
l(o, { span: 24 }, {
|
|
176
176
|
default: e(() => [
|
|
177
177
|
l(a, {
|
|
178
|
-
label: t.$t("itsmFlowTemporary.
|
|
178
|
+
label: t.$t("itsmFlowTemporary.assignUser"),
|
|
179
179
|
prop: "userId"
|
|
180
180
|
}, {
|
|
181
181
|
default: e(() => [
|
|
182
|
-
|
|
182
|
+
r(u(w(_).userExtBizDict.getValue(n.value.userId)), 1)
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["label"])
|
|
@@ -193,7 +193,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
193
193
|
prop: "handlingPeriod"
|
|
194
194
|
}, {
|
|
195
195
|
default: e(() => [
|
|
196
|
-
|
|
196
|
+
r(u(n.value.handlingPeriod), 1)
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}, 8, ["label"])
|
|
@@ -207,7 +207,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
207
207
|
prop: "finishDate"
|
|
208
208
|
}, {
|
|
209
209
|
default: e(() => [
|
|
210
|
-
|
|
210
|
+
r(u(n.value.finishDate), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
}, 8, ["label"])
|
|
@@ -221,7 +221,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
221
221
|
prop: "completion"
|
|
222
222
|
}, {
|
|
223
223
|
default: e(() => [
|
|
224
|
-
|
|
224
|
+
r(u(n.value.completion), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
}, 8, ["label"])
|
|
@@ -230,25 +230,25 @@ const Q = /* @__PURE__ */ P({
|
|
|
230
230
|
}),
|
|
231
231
|
l(o, { span: 24 }, {
|
|
232
232
|
default: e(() => [
|
|
233
|
-
(
|
|
234
|
-
key:
|
|
235
|
-
label:
|
|
233
|
+
(c(!0), p(k, null, g(w(_).fileTypeDict.values.slice(3, 4), (d, E) => (c(), M(a, {
|
|
234
|
+
key: d.dictCode,
|
|
235
|
+
label: d.dictName
|
|
236
236
|
}, {
|
|
237
237
|
default: e(() => [
|
|
238
|
-
(
|
|
238
|
+
(c(!0), p(k, null, g(C.value, (b, D) => (c(), p("div", {
|
|
239
239
|
key: D,
|
|
240
240
|
class: "files-list"
|
|
241
241
|
}, [
|
|
242
|
-
F("span", null, u(
|
|
243
|
-
l(
|
|
242
|
+
F("span", null, u(b.fileName), 1),
|
|
243
|
+
l(f, {
|
|
244
244
|
type: "primary",
|
|
245
245
|
link: "",
|
|
246
246
|
size: "small",
|
|
247
247
|
class: "icon-right",
|
|
248
|
-
onClick: (A) => N(
|
|
248
|
+
onClick: (A) => N(b)
|
|
249
249
|
}, {
|
|
250
250
|
default: e(() => s[2] || (s[2] = [
|
|
251
|
-
|
|
251
|
+
r(" 查看 ")
|
|
252
252
|
])),
|
|
253
253
|
_: 2,
|
|
254
254
|
__: [2]
|
|
@@ -269,7 +269,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
269
269
|
], 64);
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-
|
|
272
|
+
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-0b2c3fff"]]);
|
|
273
273
|
export {
|
|
274
274
|
ae as default
|
|
275
275
|
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent as H, ref as N, reactive as W, resolveComponent as u, r
|
|
|
2
2
|
import { useTableHooks as M } from "jmash-core";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
4
|
import { i as Y } from "./common-Cwl5jzlM.mjs";
|
|
5
|
-
import { D as k, O as Z, C as x } from "./index-
|
|
6
|
-
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { D as k, O as Z, C as x } from "./index-B6VcbMkg.mjs";
|
|
6
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-ipuXshVV.mjs";
|
|
7
7
|
const le = { class: "app-container" }, oe = { class: "search-container" }, te = ["onClick"], de = /* @__PURE__ */ H({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ne) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as U, mergeModels as K, ref as w, useModel as j, resolveComponent as b, createElementBlock as g, openBlock as m, Fragment as $, createVNode as t, withCtx as e, createElementVNode as v, createBlock as S, createCommentVNode as D, createTextVNode as n, toDisplayString as s, unref as y, renderList as M } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as W } from "vue-i18n";
|
|
4
|
-
import { D as f, i as q, C as G } from "./index-
|
|
5
|
-
import { i as H, a as J } from "./index-
|
|
4
|
+
import { D as f, i as q, C as G } from "./index-B6VcbMkg.mjs";
|
|
5
|
+
import { i as H, a as J } from "./index-Cmn2lxO_.mjs";
|
|
6
6
|
import { fileApi as Q } from "jmash-core";
|
|
7
7
|
import { rbacApi as X } from "jmash-rbac";
|
|
8
8
|
const re = /* @__PURE__ */ U({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as H, ref as V, reactive as W, resolveComponent as u, resolveDirective as G, createElementBlock as h, openBlock as g, createElementVNode as y, createVNode as t, createBlock as S, createCommentVNode as D, withCtx as a, withKeys as c, unref as n, createTextVNode as k, toDisplayString as d, withDirectives as J, isRef as U } from "vue";
|
|
2
2
|
import { useTableHooks as M } from "jmash-core";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
|
-
import { D as w, O as Y, C as Z, i as x } from "./index-
|
|
5
|
-
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as w, O as Y, C as Z, i as x } from "./index-B6VcbMkg.mjs";
|
|
5
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-DjqfjKao.mjs";
|
|
6
6
|
const le = { class: "app-container" }, te = { class: "search-container" }, ae = ["onClick"], me = /* @__PURE__ */ H({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(oe) {
|
|
@@ -3,8 +3,8 @@ import { ElMessage as q } from "element-plus";
|
|
|
3
3
|
import { d as Ve, p as Se, u as _e, c as Pe } from "./index-CvX2It1o.mjs";
|
|
4
4
|
import "jmash-rbac";
|
|
5
5
|
import { useI18n as Ie } from "vue-i18n";
|
|
6
|
-
import { i as G, a as $e } from "./index-
|
|
7
|
-
import { D as h, i as qe, C as ke } from "./index-
|
|
6
|
+
import { i as G, a as $e } from "./index-Cmn2lxO_.mjs";
|
|
7
|
+
import { D as h, i as qe, C as ke } from "./index-B6VcbMkg.mjs";
|
|
8
8
|
import { itemBudgetApi as J } from "xyvcard-itsm";
|
|
9
9
|
import { useUserStoreHook as Me } from "jmash-core";
|
|
10
10
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|