xyvcard-itsm-flow 0.0.26 → 0.0.28
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-FLjvLk81.mjs → FileSaver.min-Bst8M31G.mjs} +1 -1
- package/dist/{edit-D--QEJjt.mjs → edit-B5e6Z4D-.mjs} +1 -1
- package/dist/{edit-DE30a8nF.mjs → edit-B6x5LnXs.mjs} +1 -1
- package/dist/{edit-BoyxGI-j.mjs → edit-CDrqDH14.mjs} +1 -1
- package/dist/{edit-DVqIGzRC.mjs → edit-Cdqv3LYF.mjs} +2 -2
- package/dist/{edit-ChPw3-tf.mjs → edit-CtGnGMdI.mjs} +4 -4
- package/dist/{edit-Bj6O1CiV.mjs → edit-s6tpuJqi.mjs} +32 -33
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs → edit.vue_vue_type_script_setup_true_lang-Dlt4h5rH.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs → edit.vue_vue_type_script_setup_true_lang-Z6oOT8ZZ.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs → edit.vue_vue_type_script_setup_true_lang-mfIQLtr7.mjs} +1 -1
- package/dist/{index-8wrBAgqn.mjs → index-B343YUBs.mjs} +4 -4
- package/dist/{index-DgMfinzm.mjs → index-BHx7wTh8.mjs} +2 -2
- package/dist/{index-C2_qB4RV.mjs → index-BRS1J0_N.mjs} +1 -1
- package/dist/{index-DLKaq1KT.mjs → index-BpTgZ8S6.mjs} +3 -3
- package/dist/{index-DrUmzzLs.mjs → index-BryuNtvE.mjs} +4 -4
- package/dist/{index-Cv9EtBjj.mjs → index-Bv6L7pj-.mjs} +225 -234
- package/dist/{index-BPbEgv_g.mjs → index-Bvl7uSjW.mjs} +34 -34
- package/dist/{index-SilwoNEK.mjs → index-BzNd3aeo.mjs} +1402 -1420
- package/dist/{index-CcmelnG0.mjs → index-C3imt6Nt.mjs} +43 -43
- package/dist/{index-Cbd9gMMJ.mjs → index-C9XYUxJJ.mjs} +64 -64
- package/dist/{index-jG64vmFA.mjs → index-CND3lY5T.mjs} +130 -131
- package/dist/{index-BCm8GyNp.mjs → index-CVEflwbt.mjs} +1 -1
- package/dist/{index-DymW6iPU.mjs → index-CYgdVX3-.mjs} +3 -3
- package/dist/{index-DyhFuDLH.mjs → index-CaCAQvu3.mjs} +34 -35
- package/dist/{index-DvfEpZEP.mjs → index-Cd1wffPr.mjs} +61 -58
- package/dist/{index-DUeJgFzy.mjs → index-CeYdPqBa.mjs} +2 -2
- package/dist/{index-DCrOzptR.mjs → index-ChDJ7snw.mjs} +3 -3
- package/dist/{index-DeWL7kiw.mjs → index-Cp5FZJRb.mjs} +2 -2
- package/dist/{index-BnpWxtwn.mjs → index-DL0G-1We.mjs} +3 -3
- package/dist/index-DS5-j9pi.mjs +382 -0
- package/dist/{index-BKReblQ-.mjs → index-DVTVgX1p.mjs} +93 -93
- package/dist/{index-r4Tg0GX2.mjs → index-ETbLgbz7.mjs} +3 -3
- package/dist/{index-DWJG5OHB.mjs → index-MPqnkTdo.mjs} +1 -1
- package/dist/{index-CBlDGIOm.mjs → index-NEYEBifl.mjs} +19 -20
- package/dist/{index-xWvPJZ-m.mjs → index-_lw11aC1.mjs} +2 -2
- package/dist/{index-DyZhLpPq.mjs → index-j6FSzNWr.mjs} +15 -15
- package/dist/{index-C6lbS4Lo.mjs → index-oYL4MO3G.mjs} +2 -2
- package/dist/{index-BGUJBf1b.mjs → index-qXw5Aiao.mjs} +77 -77
- package/dist/{index-BVKYrCIy.mjs → index-v6aOPnu6.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-BWhsB1Ap.mjs → info-BBeI4Gu-.mjs} +1 -1
- package/dist/{info-CGUYIYny.mjs → info-BMDpWXun.mjs} +1 -1
- package/dist/{info-CbJJduEU.mjs → info-D8JhIxGy.mjs} +1 -1
- package/dist/{info-9EvTq-5p.mjs → info-Dcc0vKH3.mjs} +1 -1
- package/dist/info-Dmo9yYXs.mjs +4 -0
- package/dist/info-ghO6g5a7.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs → info.vue_vue_type_script_setup_true_lang-B_xQV4zS.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs → info.vue_vue_type_script_setup_true_lang-CcAaUZ-e.mjs} +14 -14
- package/dist/{info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs → info.vue_vue_type_script_setup_true_lang-CdlYnhVI.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs → info.vue_vue_type_script_setup_true_lang-Comh2IyD.mjs} +12 -12
- package/dist/{info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs → info.vue_vue_type_script_setup_true_lang-DVu1OSso.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs → info.vue_vue_type_script_setup_true_lang-DwW2WxUK.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-temporary/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-DwPAoK5U.mjs +0 -369
- package/dist/info-CtxVi70h.mjs +0 -4
- package/dist/info-ZeMWMgd3.mjs +0 -4
|
@@ -2,8 +2,8 @@ import { defineComponent as re, mergeModels as ie, ref as b, useModel as se, rea
|
|
|
2
2
|
import { useI18n as pe } from "vue-i18n";
|
|
3
3
|
import { useUserStoreHook as fe, fileApi as ce } from "jmash-core";
|
|
4
4
|
import "element-plus";
|
|
5
|
-
import { i as z } from "./index-
|
|
6
|
-
import { D as w, O as j, C as
|
|
5
|
+
import { i as z } from "./index-BzNd3aeo.mjs";
|
|
6
|
+
import { D as w, O as j, C as S, i as K } from "./index-MPqnkTdo.mjs";
|
|
7
7
|
import { sysUserExtApi as ve } from "xyvcard-itsmsys";
|
|
8
8
|
import { E as be } from "./el-message-BJAl6Gwu.mjs";
|
|
9
9
|
const ke = /* @__PURE__ */ re({
|
|
@@ -19,13 +19,13 @@ const ke = /* @__PURE__ */ re({
|
|
|
19
19
|
modelModifiers: {}
|
|
20
20
|
}),
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(O, { expose: H }) {
|
|
23
23
|
w.itemBizLayDict.useValues();
|
|
24
|
-
const { t: W } = pe(), U = b(), c = se(
|
|
24
|
+
const { t: W } = pe(), U = b(), c = se(O, "modelValue"), G = fe(), $ = new j({ orgType: S.HALL });
|
|
25
25
|
$.useValues();
|
|
26
|
-
const M = new j({ orgType:
|
|
26
|
+
const M = new j({ orgType: S.OUTSOURCE });
|
|
27
27
|
M.useValues(), w.userExtBizDict.useValues();
|
|
28
|
-
const V = b([]), i = b({}), R = b([]), F = b([]), q = b((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), T =
|
|
28
|
+
const V = b([]), i = b({}), R = b([]), F = b([]), q = b((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), T = O;
|
|
29
29
|
let p = A({
|
|
30
30
|
requestId: Math.random() * 10 + "",
|
|
31
31
|
files: [],
|
|
@@ -33,14 +33,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
33
33
|
temporaryId: T.task.businessKey
|
|
34
34
|
});
|
|
35
35
|
const L = ue(() => i.value.govOrgId ? w.itemBizLayDict.values.filter(
|
|
36
|
-
(
|
|
36
|
+
(e) => e.orgId === i.value.govOrgId
|
|
37
37
|
) : []), N = b([]);
|
|
38
|
-
ve.findList().then((
|
|
39
|
-
R.value =
|
|
38
|
+
ve.findList().then((l) => {
|
|
39
|
+
R.value = l.data.results;
|
|
40
40
|
}), E(
|
|
41
41
|
[R, () => i.value.userId],
|
|
42
|
-
([
|
|
43
|
-
|
|
42
|
+
([l, e]) => {
|
|
43
|
+
l && e && i.value.outOrgId && (N.value = l.filter(
|
|
44
44
|
(r) => r.orgId === i.value.outOrgId
|
|
45
45
|
));
|
|
46
46
|
},
|
|
@@ -55,29 +55,29 @@ const ke = /* @__PURE__ */ re({
|
|
|
55
55
|
}
|
|
56
56
|
]
|
|
57
57
|
});
|
|
58
|
-
K.findFilesList({ actionId: T.task.businessKey }).then((
|
|
59
|
-
F.value =
|
|
58
|
+
K.findFilesList({ actionId: T.task.businessKey }).then((l) => {
|
|
59
|
+
F.value = l.data.results;
|
|
60
60
|
});
|
|
61
61
|
function Q() {
|
|
62
62
|
var d;
|
|
63
|
-
const
|
|
63
|
+
const e = ((d = w.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : d.dictCode) || "";
|
|
64
64
|
let r = F.value.filter(
|
|
65
|
-
(s) => s.fileSort ===
|
|
65
|
+
(s) => s.fileSort === e
|
|
66
66
|
);
|
|
67
67
|
r.length === 0 && r.push({
|
|
68
68
|
fileSrc: "",
|
|
69
|
-
fileSort:
|
|
69
|
+
fileSort: e
|
|
70
70
|
}), V.value = r;
|
|
71
71
|
}
|
|
72
72
|
E(F, () => {
|
|
73
73
|
Q();
|
|
74
74
|
});
|
|
75
|
-
function X(
|
|
76
|
-
if (
|
|
75
|
+
function X(l) {
|
|
76
|
+
if (!l || l.length === 0) {
|
|
77
77
|
be.warning("请选择要上传的图片");
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const e = l.map((r) => {
|
|
81
81
|
var d;
|
|
82
82
|
return {
|
|
83
83
|
fileId: r.fileId,
|
|
@@ -86,29 +86,29 @@ const ke = /* @__PURE__ */ re({
|
|
|
86
86
|
fileSort: ((d = V.value[0]) == null ? void 0 : d.fileSort) || w.fileTypeDict.values.slice(3, 4)[0].dictCode
|
|
87
87
|
};
|
|
88
88
|
});
|
|
89
|
-
V.value = [...
|
|
89
|
+
V.value = [...e], p.files = [...e];
|
|
90
90
|
}
|
|
91
|
-
async function Z(
|
|
91
|
+
async function Z(l) {
|
|
92
92
|
try {
|
|
93
|
-
const
|
|
94
|
-
v.href = s, v.download =
|
|
93
|
+
const e = ce.fileUrl(l.fileSrc), d = await (await fetch(e)).blob(), s = window.URL.createObjectURL(d), v = document.createElement("a");
|
|
94
|
+
v.href = s, v.download = l.fileName || "download", document.body.appendChild(v), v.click();
|
|
95
95
|
} catch {
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
z.findById({ temporaryId: T.task.businessKey }).then(({ data:
|
|
99
|
-
i.value = { ...
|
|
100
|
-
i.value ? Object.assign(i.value,
|
|
98
|
+
z.findById({ temporaryId: T.task.businessKey }).then(({ data: l }) => {
|
|
99
|
+
i.value = { ...l }, de(() => {
|
|
100
|
+
i.value ? Object.assign(i.value, l) : i.value = { ...l }, x();
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
function x() {
|
|
104
|
-
K.findFilesList({ actionId: T.task.businessKey }).then(({ data:
|
|
105
|
-
|
|
104
|
+
K.findFilesList({ actionId: T.task.businessKey }).then(({ data: l }) => {
|
|
105
|
+
l.results && Array.isArray(l.results) && (p.files = l.results.map((e) => {
|
|
106
106
|
let r = "";
|
|
107
|
-
return
|
|
108
|
-
fileName:
|
|
109
|
-
fileId:
|
|
107
|
+
return e.fileName && (r = e.fileSort || e.type || ""), {
|
|
108
|
+
fileName: e.fileName || "",
|
|
109
|
+
fileId: e.fileId || "",
|
|
110
110
|
fileSort: r,
|
|
111
|
-
fileSrc:
|
|
111
|
+
fileSrc: e.fileSrc || e.filePath || ""
|
|
112
112
|
};
|
|
113
113
|
}));
|
|
114
114
|
});
|
|
@@ -120,20 +120,20 @@ const ke = /* @__PURE__ */ re({
|
|
|
120
120
|
return c.value && (c.value.selectActions = [
|
|
121
121
|
{ key: "true", value: "同意" },
|
|
122
122
|
{ key: "false", value: "不同意" }
|
|
123
|
-
], c.value.varName = "approved", c.value.module = "", c.value.module =
|
|
123
|
+
], c.value.varName = "approved", c.value.module = "", c.value.module = S.MODULE_ITSMFLOW), new Promise((l, e) => {
|
|
124
124
|
var r;
|
|
125
125
|
(r = U.value) == null || r.validate((d) => {
|
|
126
126
|
d ? (c.value && (c.value.comment = ""), p.requestId = Math.random() * 10 + "", z.finish(p).then((s) => {
|
|
127
|
-
s.status === 200 ?
|
|
128
|
-
})) :
|
|
127
|
+
s.status === 200 ? l(!0) : e(!1);
|
|
128
|
+
})) : e(!1);
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
return (
|
|
133
|
-
const r = n("el-col"), d = n("jmash-select"), s = n("el-form-item"), v = n("el-option"), C = n("el-select"), I = n("el-input"),
|
|
132
|
+
return (l, e) => {
|
|
133
|
+
const r = n("el-col"), d = n("jmash-select"), s = n("el-form-item"), v = n("el-option"), C = n("el-select"), I = n("el-input"), B = n("el-date-picker"), le = n("el-button"), ae = n("jmash-multi-image-upload"), te = n("el-row"), oe = n("el-form");
|
|
134
134
|
return u(), f(y, null, [
|
|
135
135
|
a(r, { span: 24 }, {
|
|
136
|
-
default: o(() =>
|
|
136
|
+
default: o(() => e[10] || (e[10] = [
|
|
137
137
|
D("div", { class: "title" }, "外部临时工单", -1)
|
|
138
138
|
])),
|
|
139
139
|
_: 1,
|
|
@@ -153,14 +153,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
153
153
|
a(r, { span: 24 }, {
|
|
154
154
|
default: o(() => [
|
|
155
155
|
a(s, {
|
|
156
|
-
label:
|
|
156
|
+
label: l.$t("itsmFlowSpareParts.govOrgId"),
|
|
157
157
|
prop: "govOrgId"
|
|
158
158
|
}, {
|
|
159
159
|
default: o(() => [
|
|
160
160
|
a(d, {
|
|
161
161
|
modelValue: i.value.govOrgId,
|
|
162
|
-
"onUpdate:modelValue":
|
|
163
|
-
placeholder:
|
|
162
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => i.value.govOrgId = t),
|
|
163
|
+
placeholder: l.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
164
164
|
data: m($).values,
|
|
165
165
|
clearable: "",
|
|
166
166
|
filterable: "",
|
|
@@ -176,14 +176,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
176
176
|
a(r, { span: 24 }, {
|
|
177
177
|
default: o(() => [
|
|
178
178
|
a(s, {
|
|
179
|
-
label:
|
|
179
|
+
label: l.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
180
180
|
prop: "itemId"
|
|
181
181
|
}, {
|
|
182
182
|
default: o(() => [
|
|
183
183
|
a(C, {
|
|
184
184
|
modelValue: i.value.itemId,
|
|
185
|
-
"onUpdate:modelValue":
|
|
186
|
-
placeholder:
|
|
185
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => i.value.itemId = t),
|
|
186
|
+
placeholder: l.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
187
187
|
data: L.value,
|
|
188
188
|
clearable: "",
|
|
189
189
|
filterable: "",
|
|
@@ -207,12 +207,12 @@ const ke = /* @__PURE__ */ re({
|
|
|
207
207
|
a(r, { span: 12 }, {
|
|
208
208
|
default: o(() => [
|
|
209
209
|
a(s, {
|
|
210
|
-
label:
|
|
210
|
+
label: l.$t("itsmFlowTemporary.createBy")
|
|
211
211
|
}, {
|
|
212
212
|
default: o(() => [
|
|
213
213
|
a(I, {
|
|
214
214
|
value: m(G).user.realName,
|
|
215
|
-
placeholder:
|
|
215
|
+
placeholder: l.$t("itsmFlowTemporary.createUserRequired"),
|
|
216
216
|
"show-word-limit": "",
|
|
217
217
|
clearable: "",
|
|
218
218
|
disabled: !0
|
|
@@ -226,15 +226,15 @@ const ke = /* @__PURE__ */ re({
|
|
|
226
226
|
a(r, { span: 12 }, {
|
|
227
227
|
default: o(() => [
|
|
228
228
|
a(s, {
|
|
229
|
-
label:
|
|
229
|
+
label: l.$t("itsmFlowTemporary.createTime"),
|
|
230
230
|
prop: "createTime"
|
|
231
231
|
}, {
|
|
232
232
|
default: o(() => [
|
|
233
|
-
a(
|
|
233
|
+
a(B, {
|
|
234
234
|
modelValue: q.value,
|
|
235
|
-
"onUpdate:modelValue":
|
|
235
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => q.value = t),
|
|
236
236
|
type: "date",
|
|
237
|
-
placeholder:
|
|
237
|
+
placeholder: l.$t("itsmFlowTemporary.createTimeRequired"),
|
|
238
238
|
format: "YYYY-MM-DD",
|
|
239
239
|
"value-format": "YYYY-MM-DD",
|
|
240
240
|
clearable: !1,
|
|
@@ -250,14 +250,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
250
250
|
a(r, { span: 24 }, {
|
|
251
251
|
default: o(() => [
|
|
252
252
|
a(s, {
|
|
253
|
-
label:
|
|
253
|
+
label: l.$t("itsmFlowTemporary.title"),
|
|
254
254
|
prop: "title"
|
|
255
255
|
}, {
|
|
256
256
|
default: o(() => [
|
|
257
257
|
a(I, {
|
|
258
258
|
modelValue: i.value.title,
|
|
259
|
-
"onUpdate:modelValue":
|
|
260
|
-
placeholder:
|
|
259
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => i.value.title = t),
|
|
260
|
+
placeholder: l.$t("itsmFlowTemporary.titleRequired"),
|
|
261
261
|
"show-word-limit": "",
|
|
262
262
|
clearable: "",
|
|
263
263
|
disabled: !0
|
|
@@ -271,14 +271,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
271
271
|
a(r, { span: 24 }, {
|
|
272
272
|
default: o(() => [
|
|
273
273
|
a(s, {
|
|
274
|
-
label:
|
|
274
|
+
label: l.$t("itsmFlowTemporary.content"),
|
|
275
275
|
prop: "content"
|
|
276
276
|
}, {
|
|
277
277
|
default: o(() => [
|
|
278
278
|
a(I, {
|
|
279
279
|
modelValue: i.value.content,
|
|
280
|
-
"onUpdate:modelValue":
|
|
281
|
-
placeholder:
|
|
280
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => i.value.content = t),
|
|
281
|
+
placeholder: l.$t("itsmFlowTemporary.contentRequired"),
|
|
282
282
|
"show-word-limit": "",
|
|
283
283
|
clearable: "",
|
|
284
284
|
disabled: !0
|
|
@@ -291,7 +291,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
291
291
|
}),
|
|
292
292
|
a(r, { span: 24 }, {
|
|
293
293
|
default: o(() => [
|
|
294
|
-
(u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(2, 3), (t,
|
|
294
|
+
(u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(2, 3), (t, P) => (u(), k(s, {
|
|
295
295
|
key: t.dictCode,
|
|
296
296
|
label: t.dictName
|
|
297
297
|
}, {
|
|
@@ -308,7 +308,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
308
308
|
class: "icon-right",
|
|
309
309
|
onClick: (Y) => Z(h)
|
|
310
310
|
}, {
|
|
311
|
-
default: o(() =>
|
|
311
|
+
default: o(() => e[11] || (e[11] = [
|
|
312
312
|
me(" 查看 ")
|
|
313
313
|
])),
|
|
314
314
|
_: 2,
|
|
@@ -324,14 +324,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
324
324
|
a(r, { span: 24 }, {
|
|
325
325
|
default: o(() => [
|
|
326
326
|
a(s, {
|
|
327
|
-
label:
|
|
327
|
+
label: l.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
328
328
|
prop: "outOrgId"
|
|
329
329
|
}, {
|
|
330
330
|
default: o(() => [
|
|
331
331
|
a(d, {
|
|
332
332
|
modelValue: i.value.outOrgId,
|
|
333
|
-
"onUpdate:modelValue":
|
|
334
|
-
placeholder:
|
|
333
|
+
"onUpdate:modelValue": e[5] || (e[5] = (t) => i.value.outOrgId = t),
|
|
334
|
+
placeholder: l.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
335
335
|
data: m(M).values,
|
|
336
336
|
clearable: "",
|
|
337
337
|
filterable: "",
|
|
@@ -347,14 +347,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
347
347
|
a(r, { span: 24 }, {
|
|
348
348
|
default: o(() => [
|
|
349
349
|
a(s, {
|
|
350
|
-
label:
|
|
350
|
+
label: l.$t("itsmFlowTemporary.userIdTemporary"),
|
|
351
351
|
prop: "userId"
|
|
352
352
|
}, {
|
|
353
353
|
default: o(() => [
|
|
354
354
|
a(C, {
|
|
355
355
|
modelValue: i.value.userId,
|
|
356
|
-
"onUpdate:modelValue":
|
|
357
|
-
placeholder:
|
|
356
|
+
"onUpdate:modelValue": e[6] || (e[6] = (t) => i.value.userId = t),
|
|
357
|
+
placeholder: l.$t("itsmFlowTemporary.userIdRequired"),
|
|
358
358
|
"show-word-limit": "",
|
|
359
359
|
clearable: "",
|
|
360
360
|
class: "w-full",
|
|
@@ -378,14 +378,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
378
378
|
a(r, { span: 12 }, {
|
|
379
379
|
default: o(() => [
|
|
380
380
|
a(s, {
|
|
381
|
-
label:
|
|
381
|
+
label: l.$t("itsmFlowTemporary.handlingPeriod"),
|
|
382
382
|
prop: "handlingPeriod"
|
|
383
383
|
}, {
|
|
384
384
|
default: o(() => [
|
|
385
385
|
a(I, {
|
|
386
386
|
modelValue: i.value.handlingPeriod,
|
|
387
|
-
"onUpdate:modelValue":
|
|
388
|
-
placeholder:
|
|
387
|
+
"onUpdate:modelValue": e[7] || (e[7] = (t) => i.value.handlingPeriod = t),
|
|
388
|
+
placeholder: l.$t("itsmFlowTemporary.handlingPeriodRequired"),
|
|
389
389
|
"show-word-limit": "",
|
|
390
390
|
clearable: "",
|
|
391
391
|
disabled: !0
|
|
@@ -399,15 +399,15 @@ const ke = /* @__PURE__ */ re({
|
|
|
399
399
|
a(r, { span: 12 }, {
|
|
400
400
|
default: o(() => [
|
|
401
401
|
a(s, {
|
|
402
|
-
label:
|
|
402
|
+
label: l.$t("itsmFlowTemporary.finishDate"),
|
|
403
403
|
prop: "finishDate"
|
|
404
404
|
}, {
|
|
405
405
|
default: o(() => [
|
|
406
|
-
a(
|
|
406
|
+
a(B, {
|
|
407
407
|
modelValue: m(p).finishDate,
|
|
408
|
-
"onUpdate:modelValue":
|
|
408
|
+
"onUpdate:modelValue": e[8] || (e[8] = (t) => m(p).finishDate = t),
|
|
409
409
|
type: "date",
|
|
410
|
-
placeholder:
|
|
410
|
+
placeholder: l.$t("itsmFlowTemporary.finishDateRequired"),
|
|
411
411
|
format: "YYYY-MM-DD",
|
|
412
412
|
disabled: !0
|
|
413
413
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -420,14 +420,14 @@ const ke = /* @__PURE__ */ re({
|
|
|
420
420
|
a(r, { span: 24 }, {
|
|
421
421
|
default: o(() => [
|
|
422
422
|
a(s, {
|
|
423
|
-
label:
|
|
423
|
+
label: l.$t("itsmFlowTemporary.completion"),
|
|
424
424
|
prop: "completion"
|
|
425
425
|
}, {
|
|
426
426
|
default: o(() => [
|
|
427
427
|
a(I, {
|
|
428
428
|
modelValue: m(p).completion,
|
|
429
|
-
"onUpdate:modelValue":
|
|
430
|
-
placeholder:
|
|
429
|
+
"onUpdate:modelValue": e[9] || (e[9] = (t) => m(p).completion = t),
|
|
430
|
+
placeholder: l.$t("itsmFlowTemporary.completionRequired"),
|
|
431
431
|
"show-word-limit": "",
|
|
432
432
|
clearable: ""
|
|
433
433
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -439,10 +439,10 @@ const ke = /* @__PURE__ */ re({
|
|
|
439
439
|
}),
|
|
440
440
|
a(r, { span: 24 }, {
|
|
441
441
|
default: o(() => [
|
|
442
|
-
(u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(3, 4), (t,
|
|
442
|
+
(u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(3, 4), (t, P) => (u(), k(s, {
|
|
443
443
|
key: t.dictCode,
|
|
444
444
|
label: t.dictName,
|
|
445
|
-
prop: "files." +
|
|
445
|
+
prop: "files." + P + ".fileSrc"
|
|
446
446
|
}, {
|
|
447
447
|
default: o(() => [
|
|
448
448
|
(u(!0), f(y, null, g(V.value, (h, _) => (u(), f("div", {
|
|
@@ -456,7 +456,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
456
456
|
"list-type": "picture-card",
|
|
457
457
|
onUploadFileList: X
|
|
458
458
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
459
|
-
|
|
459
|
+
e[12] || (e[12] = D("div", { class: "red-color" }, " 推荐尺寸:100 * 100或同比例图片,最大2MB ", -1))
|
|
460
460
|
]))), 128))
|
|
461
461
|
]),
|
|
462
462
|
_: 2
|
|
@@ -2,7 +2,7 @@ import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, rea
|
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
4
|
import { u as ce } from "./index-CvX2It1o.mjs";
|
|
5
|
-
import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-
|
|
5
|
+
import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-MPqnkTdo.mjs";
|
|
6
6
|
import { useUserStore as be } from "jmash-core";
|
|
7
7
|
import { E as S } from "./el-message-BJAl6Gwu.mjs";
|
|
8
8
|
const Ae = /* @__PURE__ */ ne({
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "jmash-core";
|
|
2
|
-
import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-
|
|
2
|
+
import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-BzNd3aeo.mjs";
|
|
3
3
|
import "jmash-flow";
|
|
4
4
|
export {
|
|
5
5
|
m as TaskItsmFlowAcceptance,
|
|
@@ -1,7 +1,7 @@
|
|
|
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 e, createVNode as t, createElementVNode as n, 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 { a as S } from "./index-
|
|
4
|
-
import { D as c, a as A } from "./index-
|
|
3
|
+
import { a as S } from "./index-BzNd3aeo.mjs";
|
|
4
|
+
import { D as c, a as A } from "./index-MPqnkTdo.mjs";
|
|
5
5
|
const R = { key: 0 }, q = { key: 1 }, L = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, mergeModels as K, useModel as z, ref as P, resolveComponent as m, createBlock as _, openBlock as f, withCtx as e, createVNode as l, createElementVNode as $, createCommentVNode as B, createTextVNode as r, toDisplayString as n, unref as c, createElementBlock as I, Fragment as C, renderList as N } from "vue";
|
|
2
|
-
import { D as b, i as R } from "./index-
|
|
3
|
-
import { i as j, a as q } from "./index-
|
|
2
|
+
import { D as b, i as R } from "./index-MPqnkTdo.mjs";
|
|
3
|
+
import { i as j, a as q } from "./index-BRS1J0_N.mjs";
|
|
4
4
|
import { fileApi as G } from "jmash-core";
|
|
5
5
|
import { rbacApi as H } from "jmash-rbac";
|
|
6
6
|
const Z = /* @__PURE__ */ U({
|
|
@@ -31,18 +31,18 @@ const Z = /* @__PURE__ */ U({
|
|
|
31
31
|
R.findFilesList({ actionId: g.entityKey.flowSpareId }).then((a) => {
|
|
32
32
|
k.value = a.data.results;
|
|
33
33
|
});
|
|
34
|
-
const
|
|
34
|
+
const L = (a) => {
|
|
35
35
|
var u;
|
|
36
36
|
return ((u = k.value) == null ? void 0 : u.filter((p) => p.fileSort === a)) || [];
|
|
37
37
|
};
|
|
38
|
-
async function
|
|
38
|
+
async function O(a) {
|
|
39
39
|
try {
|
|
40
|
-
const u = G.fileUrl(a.
|
|
40
|
+
const u = G.fileUrl(a.fileSrc), i = await (await fetch(u)).blob(), v = window.URL.createObjectURL(i), d = document.createElement("a");
|
|
41
41
|
d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function h() {
|
|
46
46
|
w.value && (w.value = !1);
|
|
47
47
|
}
|
|
48
48
|
return (a, u) => {
|
|
@@ -50,7 +50,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
50
50
|
return f(), _(T, {
|
|
51
51
|
modelValue: w.value,
|
|
52
52
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => w.value = o),
|
|
53
|
-
onClose:
|
|
53
|
+
onClose: h
|
|
54
54
|
}, {
|
|
55
55
|
default: e(() => [
|
|
56
56
|
l(p, { span: 24 }, {
|
|
@@ -68,7 +68,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
68
68
|
default: e(() => [
|
|
69
69
|
l(v, null, {
|
|
70
70
|
default: e(() => {
|
|
71
|
-
var o,
|
|
71
|
+
var o, S, y;
|
|
72
72
|
return [
|
|
73
73
|
l(p, { span: 12 }, {
|
|
74
74
|
default: e(() => [
|
|
@@ -158,7 +158,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
160
|
})) : B("", !0),
|
|
161
|
-
((
|
|
161
|
+
((S = s.value) == null ? void 0 : S.type) !== "BudgetOut" ? (f(), _(p, {
|
|
162
162
|
key: 1,
|
|
163
163
|
span: 12
|
|
164
164
|
}, {
|
|
@@ -205,9 +205,9 @@ const Z = /* @__PURE__ */ U({
|
|
|
205
205
|
prop: "createBy"
|
|
206
206
|
}, {
|
|
207
207
|
default: e(() => {
|
|
208
|
-
var t,
|
|
208
|
+
var t, F;
|
|
209
209
|
return [
|
|
210
|
-
r(n((t = s.value) != null && t.createBy ? (
|
|
210
|
+
r(n((t = s.value) != null && t.createBy ? (F = c(H).userInfo(s.value.createBy)) == null ? void 0 : F.realName : ""), 1)
|
|
211
211
|
];
|
|
212
212
|
}),
|
|
213
213
|
_: 1
|
|
@@ -327,12 +327,12 @@ const Z = /* @__PURE__ */ U({
|
|
|
327
327
|
class: "bordered-row"
|
|
328
328
|
}, {
|
|
329
329
|
default: e(() => [
|
|
330
|
-
(f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o,
|
|
330
|
+
(f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o, S) => (f(), _(i, {
|
|
331
331
|
key: o.dictCode,
|
|
332
332
|
label: o.dictName
|
|
333
333
|
}, {
|
|
334
334
|
default: e(() => [
|
|
335
|
-
(f(!0), I(C, null, N(
|
|
335
|
+
(f(!0), I(C, null, N(L(o.dictCode), (y, t) => (f(), I("div", {
|
|
336
336
|
key: t,
|
|
337
337
|
class: "files-list"
|
|
338
338
|
}, [
|
|
@@ -342,7 +342,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
342
342
|
link: "",
|
|
343
343
|
size: "small",
|
|
344
344
|
class: "icon-right",
|
|
345
|
-
onClick: (
|
|
345
|
+
onClick: (F) => O(y)
|
|
346
346
|
}, {
|
|
347
347
|
default: e(() => u[3] || (u[3] = [
|
|
348
348
|
r(" 查看 ")
|
|
@@ -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, a as q } from "./index-
|
|
4
|
+
import { D as w, a as q } from "./index-MPqnkTdo.mjs";
|
|
5
5
|
const T = { key: 0 }, G = { key: 1 }, H = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as L, mergeModels as P, useModel as z, getCurrentInstance as A, ref as T, resolveComponent as p, createBlock as V, openBlock as c, withCtx as l, createVNode as t, createTextVNode as i, toDisplayString as s, unref as m, createElementBlock as g, Fragment as B, renderList as D, createElementVNode as E } from "vue";
|
|
2
2
|
import { rbacApi as M } from "jmash-rbac";
|
|
3
|
-
import { i as U, D as f } from "./index-
|
|
3
|
+
import { i as U, D as f } from "./index-MPqnkTdo.mjs";
|
|
4
4
|
import { fileApi as K } from "jmash-core";
|
|
5
|
-
import { i as
|
|
6
|
-
const Q = /* @__PURE__ */
|
|
5
|
+
import { i as S } from "./index-BzNd3aeo.mjs";
|
|
6
|
+
const Q = /* @__PURE__ */ L({
|
|
7
7
|
__name: "info",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ P({
|
|
9
9
|
entityKey: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -18,17 +18,17 @@ const Q = /* @__PURE__ */ P({
|
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(w) {
|
|
20
20
|
var I;
|
|
21
|
-
const y = z(w, "modelValue"), { proxy:
|
|
22
|
-
(I = _.entityKey) != null && I.temporaryId &&
|
|
21
|
+
const y = z(w, "modelValue"), { proxy: $ } = A(), _ = w, n = T();
|
|
22
|
+
(I = _.entityKey) != null && I.temporaryId && S.findById({ temporaryId: _.entityKey.temporaryId }).then((o) => {
|
|
23
23
|
n.value = o.data;
|
|
24
24
|
});
|
|
25
25
|
const v = T([]);
|
|
26
26
|
U.findFilesList({ actionId: _.entityKey.temporaryId }).then((o) => {
|
|
27
27
|
v.value = o.data.results, console.log(o.data.results, "=> files");
|
|
28
28
|
});
|
|
29
|
-
async function
|
|
29
|
+
async function h(o) {
|
|
30
30
|
try {
|
|
31
|
-
const d = K.fileUrl(o.
|
|
31
|
+
const d = K.fileUrl(o.fileSrc), a = await (await fetch(d)).blob(), b = window.URL.createObjectURL(a), u = document.createElement("a");
|
|
32
32
|
u.href = b, u.download = o.fileName || "download", document.body.appendChild(u), u.click();
|
|
33
33
|
} catch {
|
|
34
34
|
}
|
|
@@ -112,7 +112,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
112
112
|
default: l(() => {
|
|
113
113
|
var e;
|
|
114
114
|
return [
|
|
115
|
-
i(s(m(
|
|
115
|
+
i(s(m($).$moment.formatDate(
|
|
116
116
|
(e = n.value) == null ? void 0 : e.createTime,
|
|
117
117
|
"YYYY-MM-DD HH:mm:ss"
|
|
118
118
|
)), 1)
|
|
@@ -162,7 +162,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
162
162
|
class: "bordered-row"
|
|
163
163
|
}, {
|
|
164
164
|
default: l(() => [
|
|
165
|
-
(c(!0), g(B, null, D(m(f).fileTypeDict.values.slice(2, 3), (e,
|
|
165
|
+
(c(!0), g(B, null, D(m(f).fileTypeDict.values.slice(2, 3), (e, Y) => (c(), V(r, {
|
|
166
166
|
key: e.dictCode,
|
|
167
167
|
label: e.dictName
|
|
168
168
|
}, {
|
|
@@ -177,7 +177,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
177
177
|
link: "",
|
|
178
178
|
size: "small",
|
|
179
179
|
class: "icon-right",
|
|
180
|
-
onClick: (
|
|
180
|
+
onClick: (R) => h(F)
|
|
181
181
|
}, {
|
|
182
182
|
default: l(() => d[1] || (d[1] = [
|
|
183
183
|
i(" 查看 ")
|