xyvcard-itsm-flow 0.0.37 → 0.0.39
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-CcRexVWs.mjs → FileSaver.min-BMRKyFh3.mjs} +1 -1
- package/dist/{edit-CYO8KzcD.mjs → edit-BFj-cJFf.mjs} +2 -2
- package/dist/{edit-mhTHPQB-.mjs → edit-BvUjc7UO.mjs} +1 -1
- package/dist/{edit-tabydyPH.mjs → edit-C0Cq_jUX.mjs} +29 -29
- package/dist/{edit-ndrtIw5g.mjs → edit-D5gwJVQO.mjs} +1 -1
- package/dist/{edit-BrYSwWm8.mjs → edit-DdqzI_Iq.mjs} +1 -1
- package/dist/{edit-B8FY8M6x.mjs → edit-_XNRhIfe.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BztTRMJP.mjs → edit.vue_vue_type_script_setup_true_lang--_knO1G4.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs → edit.vue_vue_type_script_setup_true_lang-7II7oUb_.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-bjVhQ_PJ.mjs → edit.vue_vue_type_script_setup_true_lang-BYIOm05z.mjs} +74 -70
- package/dist/{index-CKbI3tpx.mjs → index-B1x_AsUO.mjs} +4 -4
- package/dist/{index-DcgRM3T_.mjs → index-B59VK1az.mjs} +1 -1
- package/dist/{index-BcVc6IOP.mjs → index-B5KQp7b0.mjs} +1397 -1414
- package/dist/{index-BZCrZ2NM.mjs → index-BK3NeBLn.mjs} +3 -3
- package/dist/{index-seo1ROVp.mjs → index-BXVGgaak.mjs} +3 -3
- package/dist/{index-DqA8Hu3s.mjs → index-BYasxdX5.mjs} +96 -95
- package/dist/{index-DYF5Sb7s.mjs → index-B_TzXrea.mjs} +3 -3
- package/dist/{index-DDDjPU_6.mjs → index-CPHJcvoG.mjs} +1 -1
- package/dist/{index-hXWnm8E3.mjs → index-CPODIJ6K.mjs} +3 -3
- package/dist/{index-Ba5u8NXB.mjs → index-CQL-UkUY.mjs} +3 -3
- package/dist/{index-BAKUoBpo.mjs → index-CTvPaVzG.mjs} +72 -71
- package/dist/{index-DrQ7FvTu.mjs → index-CVonkny_.mjs} +3 -3
- package/dist/{index-BGtM6tx9.mjs → index-Cja8t3fR.mjs} +16 -16
- package/dist/{index-DO1JH6jO.mjs → index-CkGX7IFU.mjs} +2 -2
- package/dist/{index-Qnybzvhx.mjs → index-CoNeIE2w.mjs} +2 -2
- package/dist/{index-y58uESmU.mjs → index-CqIW6atk.mjs} +2 -2
- package/dist/{index-BbwdlA0W.mjs → index-CtUgoV4T.mjs} +4 -4
- package/dist/{index-Cm4MxGFZ.mjs → index-DK9cXze_.mjs} +4 -4
- package/dist/{index-BAnj1Koq.mjs → index-DLEEV11K.mjs} +55 -55
- package/dist/{index-BvoGbtCI.mjs → index-DNeSW0zf.mjs} +2 -2
- package/dist/{index-XHwUs18-.mjs → index-DOM5SeKc.mjs} +84 -84
- package/dist/{index-CzBjNiWz.mjs → index-DQjv9iQi.mjs} +12 -12
- package/dist/{index-Dn1b7GfK.mjs → index-DWAcpt7l.mjs} +1 -1
- package/dist/{index-Bmh2A5D0.mjs → index-DYbwtCeL.mjs} +2 -2
- package/dist/{index-C3a-IeXB.mjs → index-DaoE55n4.mjs} +3 -3
- package/dist/{index-CDYf1Lun.mjs → index-DjhLqSYC.mjs} +3 -3
- package/dist/{index-BBbYRQLd.mjs → index-Dp5NTPRt.mjs} +3 -3
- package/dist/{index-CoORscq-.mjs → index-DwxrOrrB.mjs} +20 -19
- package/dist/{index-FqOQHZLY.mjs → index-clGn5YjC.mjs} +2 -2
- package/dist/{index-60w9n0dT.mjs → index-m1fbkwSk.mjs} +2 -2
- package/dist/{index-BHufDvTp.mjs → index-soCKhzqO.mjs} +2 -2
- package/dist/{index-CIn70URA.mjs → index-wW4PUujK.mjs} +17 -17
- package/dist/{index-ByTfXvfu.mjs → index-yJ9WXclc.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{info-CHxS6e-5.mjs → info-B5uBfnYf.mjs} +1 -1
- package/dist/{info-CQu4kti_.mjs → info-BEWZzCVW.mjs} +1 -1
- package/dist/{info-CRbFsX7X.mjs → info-BULR864o.mjs} +1 -1
- package/dist/{info-B1nuQXGG.mjs → info-BaZXP7TI.mjs} +1 -1
- package/dist/info-CY0Une2D.mjs +4 -0
- package/dist/info-CsRGF3xk.mjs +4 -0
- package/dist/info-CxVGph6R.mjs +4 -0
- package/dist/info-D9nurmGm.mjs +4 -0
- package/dist/info-F4ootkog.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-JgJStqvz.mjs → info.vue_vue_type_script_setup_true_lang-B5uTH_2O.mjs} +28 -27
- package/dist/{info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs → info.vue_vue_type_script_setup_true_lang-BIXF9GEE.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-DnfgKcgP.mjs → info.vue_vue_type_script_setup_true_lang-Bi1mHnjh.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CIRdXvCE.mjs → info.vue_vue_type_script_setup_true_lang-CAwX89Kj.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-B6I27uus.mjs → info.vue_vue_type_script_setup_true_lang-CCZjqFA6.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-Ca_011gq.mjs → info.vue_vue_type_script_setup_true_lang-CE8Yg9AD.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-DA3rqMgU.mjs → info.vue_vue_type_script_setup_true_lang-CFUnSMzb.mjs} +11 -11
- package/dist/{info.vue_vue_type_script_setup_true_lang-CJKMJgJT.mjs → info.vue_vue_type_script_setup_true_lang-EUowm_f8.mjs} +51 -50
- package/dist/{info.vue_vue_type_script_setup_true_lang-CEuLYRI4.mjs → info.vue_vue_type_script_setup_true_lang-F83TFtID.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/constant.d.ts +1 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
- package/package.json +2 -2
- package/dist/info-D2SRN11N.mjs +0 -4
- package/dist/info-Dp-hn9ce.mjs +0 -4
- package/dist/info-M92gprUH.mjs +0 -4
- package/dist/info-XOKKyoyw.mjs +0 -4
- package/dist/info-mSFJ4xKX.mjs +0 -4
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as re, mergeModels as ie, ref as
|
|
1
|
+
import { defineComponent as re, mergeModels as ie, ref as y, useModel as se, reactive as A, computed as ue, watch as z, nextTick as de, resolveComponent as n, createElementBlock as f, openBlock as d, Fragment as w, createVNode as a, withCtx as o, createElementVNode as S, unref as p, renderList as g, createBlock as k, toDisplayString as ne, createTextVNode as me } from "vue";
|
|
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
|
|
6
|
-
import { D as
|
|
5
|
+
import { i as E } from "./index-B5KQp7b0.mjs";
|
|
6
|
+
import { D as c, O as j, C as D, i as K } from "./index-DwxrOrrB.mjs";
|
|
7
7
|
import { sysUserExtApi as ve } from "xyvcard-itsmsys";
|
|
8
|
-
|
|
9
|
-
const ke = /* @__PURE__ */ re({
|
|
8
|
+
const Fe = /* @__PURE__ */ re({
|
|
10
9
|
__name: "index",
|
|
11
10
|
props: /* @__PURE__ */ ie({
|
|
12
11
|
task: {
|
|
@@ -20,27 +19,27 @@ const ke = /* @__PURE__ */ re({
|
|
|
20
19
|
}),
|
|
21
20
|
emits: ["update:modelValue"],
|
|
22
21
|
setup(O, { expose: H }) {
|
|
23
|
-
|
|
24
|
-
const { t: W } = pe(), U =
|
|
22
|
+
c.itemBizLayDict.useValues();
|
|
23
|
+
const { t: W } = pe(), U = y(), v = se(O, "modelValue"), G = fe(), $ = new j({ orgType: D.HALL });
|
|
25
24
|
$.useValues();
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
let
|
|
25
|
+
const R = new j({ orgType: D.OUTSOURCE });
|
|
26
|
+
R.useValues(), c.userExtBizDict.useValues();
|
|
27
|
+
const I = y([]), i = y({}), q = y([]), F = y([]), C = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), T = O;
|
|
28
|
+
let m = A({
|
|
30
29
|
requestId: Math.random() * 10 + "",
|
|
31
30
|
files: [],
|
|
32
31
|
finishDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
33
32
|
temporaryId: T.task.businessKey
|
|
34
33
|
});
|
|
35
|
-
const L = ue(() => i.value.govOrgId ?
|
|
34
|
+
const L = ue(() => i.value.govOrgId ? c.itemBizLayDict.values.filter(
|
|
36
35
|
(e) => e.orgId === i.value.govOrgId
|
|
37
|
-
) : []),
|
|
36
|
+
) : []), M = y([]);
|
|
38
37
|
ve.findList().then((l) => {
|
|
39
|
-
|
|
40
|
-
}),
|
|
41
|
-
[
|
|
38
|
+
q.value = l.data.results;
|
|
39
|
+
}), z(
|
|
40
|
+
[q, () => i.value.userId],
|
|
42
41
|
([l, e]) => {
|
|
43
|
-
l && e && i.value.outOrgId && (
|
|
42
|
+
l && e && i.value.outOrgId && (M.value = l.filter(
|
|
44
43
|
(r) => r.orgId === i.value.outOrgId
|
|
45
44
|
));
|
|
46
45
|
},
|
|
@@ -59,50 +58,52 @@ const ke = /* @__PURE__ */ re({
|
|
|
59
58
|
F.value = l.data.results;
|
|
60
59
|
});
|
|
61
60
|
function Q() {
|
|
62
|
-
var
|
|
63
|
-
const e = ((
|
|
61
|
+
var u;
|
|
62
|
+
const e = ((u = c.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : u.dictCode) || "";
|
|
64
63
|
let r = F.value.filter(
|
|
65
64
|
(s) => s.fileSort === e
|
|
66
65
|
);
|
|
67
66
|
r.length === 0 && r.push({
|
|
68
67
|
fileSrc: "",
|
|
69
68
|
fileSort: e
|
|
70
|
-
}),
|
|
69
|
+
}), I.value = r;
|
|
71
70
|
}
|
|
72
|
-
|
|
71
|
+
z(F, () => {
|
|
73
72
|
Q();
|
|
74
73
|
});
|
|
75
74
|
function X(l) {
|
|
75
|
+
var r;
|
|
76
76
|
if (!l || l.length === 0) {
|
|
77
|
-
|
|
77
|
+
const u = ((r = c.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : r.dictCode) || "";
|
|
78
|
+
I.value = [{ fileSrc: "", fileSort: u }], m.files = [];
|
|
78
79
|
return;
|
|
79
80
|
}
|
|
80
|
-
const e = l.map((
|
|
81
|
-
var
|
|
81
|
+
const e = l.map((u) => {
|
|
82
|
+
var s;
|
|
82
83
|
return {
|
|
83
|
-
fileId:
|
|
84
|
-
fileName:
|
|
85
|
-
fileSrc:
|
|
86
|
-
fileSort: ((
|
|
84
|
+
fileId: u.fileId,
|
|
85
|
+
fileName: u.fileName,
|
|
86
|
+
fileSrc: u.fileSrc,
|
|
87
|
+
fileSort: ((s = I.value[0]) == null ? void 0 : s.fileSort) || c.fileTypeDict.values.slice(3, 4)[0].dictCode
|
|
87
88
|
};
|
|
88
89
|
});
|
|
89
|
-
|
|
90
|
+
I.value = [...e], m.files = [...e];
|
|
90
91
|
}
|
|
91
92
|
async function Z(l) {
|
|
92
93
|
try {
|
|
93
|
-
const e = ce.fileUrl(l.fileSrc),
|
|
94
|
-
|
|
94
|
+
const e = ce.fileUrl(l.fileSrc), u = await (await fetch(e)).blob(), s = window.URL.createObjectURL(u), b = document.createElement("a");
|
|
95
|
+
b.href = s, b.download = l.fileName || "download", document.body.appendChild(b), b.click();
|
|
95
96
|
} catch {
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
|
-
|
|
99
|
+
E.findById({ temporaryId: T.task.businessKey }).then(({ data: l }) => {
|
|
99
100
|
i.value = { ...l }, de(() => {
|
|
100
101
|
i.value ? Object.assign(i.value, l) : i.value = { ...l }, x();
|
|
101
102
|
});
|
|
102
103
|
});
|
|
103
104
|
function x() {
|
|
104
105
|
K.findFilesList({ actionId: T.task.businessKey }).then(({ data: l }) => {
|
|
105
|
-
l.results && Array.isArray(l.results) && (
|
|
106
|
+
l.results && Array.isArray(l.results) && (m.files = l.results.map((e) => {
|
|
106
107
|
let r = "";
|
|
107
108
|
return e.fileName && (r = e.fileSort || e.type || ""), {
|
|
108
109
|
fileName: e.fileName || "",
|
|
@@ -117,24 +118,24 @@ const ke = /* @__PURE__ */ re({
|
|
|
117
118
|
changeModel: () => ee()
|
|
118
119
|
});
|
|
119
120
|
function ee() {
|
|
120
|
-
return
|
|
121
|
+
return v.value && (v.value.selectActions = [
|
|
121
122
|
{ key: "true", value: "同意" },
|
|
122
123
|
{ key: "false", value: "不同意" }
|
|
123
|
-
],
|
|
124
|
+
], v.value.varName = "approved", v.value.module = "", v.value.module = D.MODULE_ITSMFLOW), new Promise((l, e) => {
|
|
124
125
|
var r;
|
|
125
|
-
(r = U.value) == null || r.validate((
|
|
126
|
-
|
|
126
|
+
(r = U.value) == null || r.validate((u) => {
|
|
127
|
+
u ? (v.value && (v.value.comment = ""), m.requestId = Math.random() * 10 + "", E.finish(m).then((s) => {
|
|
127
128
|
s.status === 200 ? l(!0) : e(!1);
|
|
128
129
|
})) : e(!1);
|
|
129
130
|
});
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
133
|
return (l, e) => {
|
|
133
|
-
const r = n("el-col"),
|
|
134
|
-
return
|
|
134
|
+
const r = n("el-col"), u = n("jmash-select"), s = n("el-form-item"), b = n("el-option"), N = n("el-select"), h = 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");
|
|
135
|
+
return d(), f(w, null, [
|
|
135
136
|
a(r, { span: 24 }, {
|
|
136
137
|
default: o(() => e[10] || (e[10] = [
|
|
137
|
-
|
|
138
|
+
S("div", { class: "title" }, "外部临时工单", -1)
|
|
138
139
|
])),
|
|
139
140
|
_: 1,
|
|
140
141
|
__: [10]
|
|
@@ -142,7 +143,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
142
143
|
a(oe, {
|
|
143
144
|
ref_key: "taskFormRef",
|
|
144
145
|
ref: U,
|
|
145
|
-
model: m
|
|
146
|
+
model: p(m),
|
|
146
147
|
"label-width": "150px",
|
|
147
148
|
rules: J,
|
|
148
149
|
class: "custom-table-form"
|
|
@@ -157,11 +158,11 @@ const ke = /* @__PURE__ */ re({
|
|
|
157
158
|
prop: "govOrgId"
|
|
158
159
|
}, {
|
|
159
160
|
default: o(() => [
|
|
160
|
-
a(
|
|
161
|
+
a(u, {
|
|
161
162
|
modelValue: i.value.govOrgId,
|
|
162
163
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => i.value.govOrgId = t),
|
|
163
164
|
placeholder: l.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
164
|
-
data:
|
|
165
|
+
data: p($).values,
|
|
165
166
|
clearable: "",
|
|
166
167
|
filterable: "",
|
|
167
168
|
class: "w-full",
|
|
@@ -180,7 +181,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
180
181
|
prop: "itemId"
|
|
181
182
|
}, {
|
|
182
183
|
default: o(() => [
|
|
183
|
-
a(
|
|
184
|
+
a(N, {
|
|
184
185
|
modelValue: i.value.itemId,
|
|
185
186
|
"onUpdate:modelValue": e[1] || (e[1] = (t) => i.value.itemId = t),
|
|
186
187
|
placeholder: l.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
@@ -190,7 +191,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
190
191
|
disabled: !0
|
|
191
192
|
}, {
|
|
192
193
|
default: o(() => [
|
|
193
|
-
(
|
|
194
|
+
(d(!0), f(w, null, g(L.value, (t) => (d(), k(b, {
|
|
194
195
|
key: t.key,
|
|
195
196
|
value: t.key,
|
|
196
197
|
label: t.value
|
|
@@ -210,8 +211,8 @@ const ke = /* @__PURE__ */ re({
|
|
|
210
211
|
label: l.$t("itsmFlowTemporary.createBy")
|
|
211
212
|
}, {
|
|
212
213
|
default: o(() => [
|
|
213
|
-
a(
|
|
214
|
-
value:
|
|
214
|
+
a(h, {
|
|
215
|
+
value: p(G).user.realName,
|
|
215
216
|
placeholder: l.$t("itsmFlowTemporary.createUserRequired"),
|
|
216
217
|
"show-word-limit": "",
|
|
217
218
|
clearable: "",
|
|
@@ -231,8 +232,8 @@ const ke = /* @__PURE__ */ re({
|
|
|
231
232
|
}, {
|
|
232
233
|
default: o(() => [
|
|
233
234
|
a(B, {
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue": e[2] || (e[2] = (t) =>
|
|
235
|
+
modelValue: C.value,
|
|
236
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => C.value = t),
|
|
236
237
|
type: "date",
|
|
237
238
|
placeholder: l.$t("itsmFlowTemporary.createTimeRequired"),
|
|
238
239
|
format: "YYYY-MM-DD",
|
|
@@ -254,7 +255,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
254
255
|
prop: "title"
|
|
255
256
|
}, {
|
|
256
257
|
default: o(() => [
|
|
257
|
-
a(
|
|
258
|
+
a(h, {
|
|
258
259
|
modelValue: i.value.title,
|
|
259
260
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => i.value.title = t),
|
|
260
261
|
placeholder: l.$t("itsmFlowTemporary.titleRequired"),
|
|
@@ -275,7 +276,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
275
276
|
prop: "content"
|
|
276
277
|
}, {
|
|
277
278
|
default: o(() => [
|
|
278
|
-
a(
|
|
279
|
+
a(h, {
|
|
279
280
|
modelValue: i.value.content,
|
|
280
281
|
"onUpdate:modelValue": e[4] || (e[4] = (t) => i.value.content = t),
|
|
281
282
|
placeholder: l.$t("itsmFlowTemporary.contentRequired"),
|
|
@@ -291,22 +292,22 @@ const ke = /* @__PURE__ */ re({
|
|
|
291
292
|
}),
|
|
292
293
|
a(r, { span: 24 }, {
|
|
293
294
|
default: o(() => [
|
|
294
|
-
(
|
|
295
|
+
(d(!0), f(w, null, g(p(c).fileTypeDict.values.slice(2, 3), (t, P) => (d(), k(s, {
|
|
295
296
|
key: t.dictCode,
|
|
296
297
|
label: t.dictName
|
|
297
298
|
}, {
|
|
298
299
|
default: o(() => [
|
|
299
|
-
(
|
|
300
|
+
(d(!0), f(w, null, g(F.value, (V, _) => (d(), f("div", {
|
|
300
301
|
key: _,
|
|
301
302
|
class: "files-list"
|
|
302
303
|
}, [
|
|
303
|
-
|
|
304
|
+
S("span", null, ne(V.fileName), 1),
|
|
304
305
|
a(le, {
|
|
305
306
|
type: "primary",
|
|
306
307
|
link: "",
|
|
307
308
|
size: "small",
|
|
308
309
|
class: "icon-right",
|
|
309
|
-
onClick: (Y) => Z(
|
|
310
|
+
onClick: (Y) => Z(V)
|
|
310
311
|
}, {
|
|
311
312
|
default: o(() => e[11] || (e[11] = [
|
|
312
313
|
me(" 查看 ")
|
|
@@ -328,11 +329,11 @@ const ke = /* @__PURE__ */ re({
|
|
|
328
329
|
prop: "outOrgId"
|
|
329
330
|
}, {
|
|
330
331
|
default: o(() => [
|
|
331
|
-
a(
|
|
332
|
+
a(u, {
|
|
332
333
|
modelValue: i.value.outOrgId,
|
|
333
334
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => i.value.outOrgId = t),
|
|
334
335
|
placeholder: l.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
335
|
-
data:
|
|
336
|
+
data: p(R).values,
|
|
336
337
|
clearable: "",
|
|
337
338
|
filterable: "",
|
|
338
339
|
class: "w-full",
|
|
@@ -351,7 +352,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
351
352
|
prop: "userId"
|
|
352
353
|
}, {
|
|
353
354
|
default: o(() => [
|
|
354
|
-
a(
|
|
355
|
+
a(N, {
|
|
355
356
|
modelValue: i.value.userId,
|
|
356
357
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => i.value.userId = t),
|
|
357
358
|
placeholder: l.$t("itsmFlowTemporary.userIdRequired"),
|
|
@@ -361,7 +362,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
361
362
|
disabled: !0
|
|
362
363
|
}, {
|
|
363
364
|
default: o(() => [
|
|
364
|
-
(
|
|
365
|
+
(d(!0), f(w, null, g(M.value, (t) => (d(), k(b, {
|
|
365
366
|
key: t.userId,
|
|
366
367
|
value: t.userId,
|
|
367
368
|
label: t.realName
|
|
@@ -382,7 +383,7 @@ const ke = /* @__PURE__ */ re({
|
|
|
382
383
|
prop: "handlingPeriod"
|
|
383
384
|
}, {
|
|
384
385
|
default: o(() => [
|
|
385
|
-
a(
|
|
386
|
+
a(h, {
|
|
386
387
|
modelValue: i.value.handlingPeriod,
|
|
387
388
|
"onUpdate:modelValue": e[7] || (e[7] = (t) => i.value.handlingPeriod = t),
|
|
388
389
|
placeholder: l.$t("itsmFlowTemporary.handlingPeriodRequired"),
|
|
@@ -404,8 +405,8 @@ const ke = /* @__PURE__ */ re({
|
|
|
404
405
|
}, {
|
|
405
406
|
default: o(() => [
|
|
406
407
|
a(B, {
|
|
407
|
-
modelValue: m
|
|
408
|
-
"onUpdate:modelValue": e[8] || (e[8] = (t) => m
|
|
408
|
+
modelValue: p(m).finishDate,
|
|
409
|
+
"onUpdate:modelValue": e[8] || (e[8] = (t) => p(m).finishDate = t),
|
|
409
410
|
type: "date",
|
|
410
411
|
placeholder: l.$t("itsmFlowTemporary.finishDateRequired"),
|
|
411
412
|
format: "YYYY-MM-DD",
|
|
@@ -424,9 +425,9 @@ const ke = /* @__PURE__ */ re({
|
|
|
424
425
|
prop: "completion"
|
|
425
426
|
}, {
|
|
426
427
|
default: o(() => [
|
|
427
|
-
a(
|
|
428
|
-
modelValue: m
|
|
429
|
-
"onUpdate:modelValue": e[9] || (e[9] = (t) => m
|
|
428
|
+
a(h, {
|
|
429
|
+
modelValue: p(m).completion,
|
|
430
|
+
"onUpdate:modelValue": e[9] || (e[9] = (t) => p(m).completion = t),
|
|
430
431
|
placeholder: l.$t("itsmFlowTemporary.completionRequired"),
|
|
431
432
|
"show-word-limit": "",
|
|
432
433
|
clearable: ""
|
|
@@ -439,24 +440,24 @@ const ke = /* @__PURE__ */ re({
|
|
|
439
440
|
}),
|
|
440
441
|
a(r, { span: 24 }, {
|
|
441
442
|
default: o(() => [
|
|
442
|
-
(
|
|
443
|
+
(d(!0), f(w, null, g(p(c).fileTypeDict.values.slice(3, 4), (t, P) => (d(), k(s, {
|
|
443
444
|
key: t.dictCode,
|
|
444
445
|
label: t.dictName,
|
|
445
446
|
prop: "files." + P + ".fileSrc"
|
|
446
447
|
}, {
|
|
447
448
|
default: o(() => [
|
|
448
|
-
(
|
|
449
|
+
(d(!0), f(w, null, g(I.value, (V, _) => (d(), f("div", {
|
|
449
450
|
key: _,
|
|
450
451
|
class: "files-list"
|
|
451
452
|
}, [
|
|
452
453
|
a(ae, {
|
|
453
|
-
modelValue:
|
|
454
|
-
"onUpdate:modelValue": (Y) =>
|
|
454
|
+
modelValue: V.fileSrc,
|
|
455
|
+
"onUpdate:modelValue": (Y) => V.fileSrc = Y,
|
|
455
456
|
limit: 6,
|
|
456
457
|
"list-type": "picture-card",
|
|
457
458
|
onUploadFileList: X
|
|
458
459
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
459
|
-
e[12] || (e[12] =
|
|
460
|
+
e[12] || (e[12] = S("div", { class: "red-color" }, " 推荐尺寸:100 * 100或同比例图片,最大2MB ", -1))
|
|
460
461
|
]))), 128))
|
|
461
462
|
]),
|
|
462
463
|
_: 2
|
|
@@ -475,5 +476,5 @@ const ke = /* @__PURE__ */ re({
|
|
|
475
476
|
}
|
|
476
477
|
});
|
|
477
478
|
export {
|
|
478
|
-
|
|
479
|
+
Fe as default
|
|
479
480
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as Y, getCurrentInstance as x, ref as _, reactive as M, onActivated as W, resolveComponent as i, resolveDirective as G, createElementBlock as g, openBlock as y, createElementVNode as T, createVNode as o, createBlock as D, createCommentVNode as V, withCtx as l, unref as r, withKeys as S, createTextVNode as b, toDisplayString as u, withDirectives as J, isRef as B } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
|
-
import { i as ee } from "./index-
|
|
5
|
-
import { _ as te } from "./info.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { D as p, O as le, C as oe } from "./index-
|
|
4
|
+
import { i as ee } from "./index-B5KQp7b0.mjs";
|
|
5
|
+
import { _ as te } from "./info.vue_vue_type_script_setup_true_lang-EUowm_f8.mjs";
|
|
6
|
+
import { D as p, O as le, C as oe } from "./index-DwxrOrrB.mjs";
|
|
7
7
|
import { rbacApi as ae } from "jmash-rbac";
|
|
8
8
|
const re = { class: "app-container" }, ne = { class: "search-container" }, ie = { key: 0 }, se = ["onClick"], _e = /* @__PURE__ */ Y({
|
|
9
9
|
__name: "index",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as A, mergeModels as
|
|
1
|
+
import { defineComponent as A, mergeModels as U, getCurrentInstance as E, ref as f, useModel as P, resolveComponent as c, createElementBlock as _, openBlock as p, Fragment as y, createVNode as t, withCtx as l, createElementVNode as T, createTextVNode as u, toDisplayString as m, renderList as C, unref as b, createBlock as x } from "vue";
|
|
2
2
|
import { rbacApi as O } from "jmash-rbac";
|
|
3
|
-
import { i as R, C as Y, D } from "./index-
|
|
3
|
+
import { i as R, C as Y, D } from "./index-DwxrOrrB.mjs";
|
|
4
4
|
import { fileApi as S } from "jmash-core";
|
|
5
|
-
import { i as j } from "./index-
|
|
5
|
+
import { i as j } from "./index-B5KQp7b0.mjs";
|
|
6
6
|
const Q = /* @__PURE__ */ A({
|
|
7
7
|
__name: "index",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ U({
|
|
9
9
|
task: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -16,14 +16,14 @@ const Q = /* @__PURE__ */ A({
|
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(w, { expose:
|
|
20
|
-
const { proxy:
|
|
19
|
+
setup(w, { expose: M }) {
|
|
20
|
+
const { proxy: B } = E(), k = f(), I = f({}), s = P(w, "modelValue"), F = w, i = f();
|
|
21
21
|
j.findById({ temporaryId: F.task.businessKey }).then((a) => {
|
|
22
22
|
i.value = a.data;
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const g = f([]);
|
|
25
25
|
R.findFilesList({ actionId: F.task.businessKey }).then((a) => {
|
|
26
|
-
|
|
26
|
+
g.value = a.data.results, console.log(a.data.results, "=> files");
|
|
27
27
|
});
|
|
28
28
|
async function N(a) {
|
|
29
29
|
try {
|
|
@@ -32,7 +32,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
M({
|
|
36
36
|
changeModel: () => $()
|
|
37
37
|
});
|
|
38
38
|
function $() {
|
|
@@ -51,7 +51,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
51
51
|
return p(), _(y, null, [
|
|
52
52
|
t(o, { span: 24 }, {
|
|
53
53
|
default: l(() => n[0] || (n[0] = [
|
|
54
|
-
|
|
54
|
+
T("div", { class: "title" }, "内部临时工单", -1)
|
|
55
55
|
])),
|
|
56
56
|
_: 1,
|
|
57
57
|
__: [0]
|
|
@@ -59,7 +59,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
59
59
|
t(L, {
|
|
60
60
|
ref_key: "taskFormRef",
|
|
61
61
|
ref: k,
|
|
62
|
-
model:
|
|
62
|
+
model: I.value,
|
|
63
63
|
"label-width": "150px",
|
|
64
64
|
class: "custom-table-form custom-form"
|
|
65
65
|
}, {
|
|
@@ -110,17 +110,17 @@ const Q = /* @__PURE__ */ A({
|
|
|
110
110
|
label: e.dictName
|
|
111
111
|
}, {
|
|
112
112
|
default: l(() => [
|
|
113
|
-
(p(!0), _(y, null, C(
|
|
113
|
+
(p(!0), _(y, null, C(g.value, (h, V) => (p(), _("div", {
|
|
114
114
|
key: V,
|
|
115
115
|
class: "files-list"
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
T("span", null, m(h.fileName), 1),
|
|
118
118
|
t(v, {
|
|
119
119
|
type: "primary",
|
|
120
120
|
link: "",
|
|
121
121
|
size: "small",
|
|
122
122
|
class: "icon-right",
|
|
123
|
-
onClick: (H) => N(
|
|
123
|
+
onClick: (H) => N(h)
|
|
124
124
|
}, {
|
|
125
125
|
default: l(() => n[1] || (n[1] = [
|
|
126
126
|
u(" 查看 ")
|
|
@@ -161,7 +161,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
161
161
|
default: l(() => {
|
|
162
162
|
var e;
|
|
163
163
|
return [
|
|
164
|
-
u(m(b(
|
|
164
|
+
u(m(b(B).$moment.formatDate(
|
|
165
165
|
(e = i.value) == null ? void 0 : e.createTime,
|
|
166
166
|
"YYYY-MM-DD HH:mm:ss"
|
|
167
167
|
)), 1)
|
|
@@ -175,7 +175,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
175
175
|
t(o, { span: 24 }, {
|
|
176
176
|
default: l(() => [
|
|
177
177
|
t(r, {
|
|
178
|
-
label: a.$t("itsmFlowTemporary.
|
|
178
|
+
label: a.$t("itsmFlowTemporary.assignUser"),
|
|
179
179
|
prop: "userId"
|
|
180
180
|
}, {
|
|
181
181
|
default: l(() => {
|
|
@@ -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-DWAcpt7l.mjs";
|
|
7
|
+
import { D as h, i as qe, C as ke } from "./index-DwxrOrrB.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";
|
|
@@ -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-DwxrOrrB.mjs";
|
|
6
|
+
import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-F83TFtID.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,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as X, getCurrentInstance as Z, ref as h, onMounted as ee, resolveComponent as s, resolveDirective as te, createElementBlock as C, openBlock as _, createElementVNode as k, createVNode as r, withCtx as l, withKeys as $, unref as n, createTextVNode as c, toDisplayString as p, createCommentVNode as V, createBlock as M, isRef as N, withDirectives as ae } from "vue";
|
|
2
2
|
import { useUserStore as T, clearEmpty as I, request as B, useTableHooks as le } from "jmash-core";
|
|
3
3
|
import { useI18n as oe } from "vue-i18n";
|
|
4
|
-
import { q as re } from "./index-
|
|
4
|
+
import { q as re } from "./index-B5KQp7b0.mjs";
|
|
5
5
|
import { rbacApi as ne } from "jmash-rbac";
|
|
6
|
-
import { D as R } from "./index-
|
|
6
|
+
import { D as R } from "./index-DwxrOrrB.mjs";
|
|
7
7
|
class se {
|
|
8
8
|
getKey(m) {
|
|
9
9
|
return {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as te, getCurrentInstance as le, ref as w, reactive as R, onActivated as oe, resolveComponent as s, resolveDirective as ae, createElementBlock as _, openBlock as u, createElementVNode as v, createVNode as a, createBlock as V, createCommentVNode as C, withCtx as l, unref as r, withKeys as re, createTextVNode as p, toDisplayString as n, withDirectives as F, isRef as U } from "vue";
|
|
2
2
|
import { useTableHooks as ie } from "jmash-core";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
|
-
import { i as se } from "./index-
|
|
5
|
-
import me from "./edit-
|
|
6
|
-
import { _ as ue } from "./info.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { D as T, O as j, C as $ } from "./index-
|
|
4
|
+
import { i as se } from "./index-B5KQp7b0.mjs";
|
|
5
|
+
import me from "./edit-_XNRhIfe.mjs";
|
|
6
|
+
import { _ as ue } from "./info.vue_vue_type_script_setup_true_lang-CE8Yg9AD.mjs";
|
|
7
|
+
import { D as T, O as j, C as $ } from "./index-DwxrOrrB.mjs";
|
|
8
8
|
import { rbacApi as de } from "jmash-rbac";
|
|
9
9
|
const pe = { class: "app-container" }, ce = { class: "search-container" }, ye = { key: 0 }, fe = ["onClick"], ve = ["onClick"], ge = ["onClick"], Fe = /* @__PURE__ */ te({
|
|
10
10
|
__name: "index",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as X, getCurrentInstance as Z, ref as k, reactive as z, onActivated as ee, resolveComponent as i, resolveDirective as te, createElementBlock as w, openBlock as m, createElementVNode as $, createVNode as a, createBlock as h, createCommentVNode as C, withCtx as o, unref as r, withKeys as le, createTextVNode as p, toDisplayString as u, withDirectives as V, isRef as R } from "vue";
|
|
2
2
|
import { useTableHooks as oe } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
|
-
import { i as re } from "./index-
|
|
5
|
-
import ie from "./edit-
|
|
6
|
-
import { _ as ne } from "./info.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { D as _, O as se, C as P } from "./index-
|
|
4
|
+
import { i as re } from "./index-B5KQp7b0.mjs";
|
|
5
|
+
import ie from "./edit-C0Cq_jUX.mjs";
|
|
6
|
+
import { _ as ne } from "./info.vue_vue_type_script_setup_true_lang-CFUnSMzb.mjs";
|
|
7
|
+
import { D as _, O as se, C as P } from "./index-DwxrOrrB.mjs";
|
|
8
8
|
import { rbacApi as me } from "jmash-rbac";
|
|
9
9
|
const ue = { class: "app-container" }, de = { class: "search-container" }, pe = { key: 0 }, ce = ["onClick"], fe = ["onClick"], ye = ["onClick"], Ie = /* @__PURE__ */ X({
|
|
10
10
|
__name: "index",
|