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
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import { defineComponent as re, mergeModels as ie, ref as b, useModel as se, reactive as A, computed as ue, watch as E, nextTick as de, resolveComponent as m, createElementBlock as f, openBlock as u, Fragment as y, createVNode as a, withCtx as o, createElementVNode as D, unref as p, renderList as g, createBlock as k, toDisplayString as ne, createTextVNode as me } from "vue";
|
|
2
|
+
import { useI18n as pe } from "vue-i18n";
|
|
3
|
+
import { useUserStoreHook as fe, fileApi as ce } from "jmash-core";
|
|
4
|
+
import "element-plus";
|
|
5
|
+
import { i as z } from "./index-o0oTSdUL.mjs";
|
|
6
|
+
import { D as w, O as j, C as O, i as K } from "./index-D7TvdZ0W.mjs";
|
|
7
|
+
import { sysUserExtApi as ve } from "xyvcard-itsmsys";
|
|
8
|
+
import { E as be } from "./el-message-BJAl6Gwu.mjs";
|
|
9
|
+
const ke = /* @__PURE__ */ re({
|
|
10
|
+
__name: "index",
|
|
11
|
+
props: /* @__PURE__ */ ie({
|
|
12
|
+
task: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
modelValue: {},
|
|
19
|
+
modelModifiers: {}
|
|
20
|
+
}),
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(S, { expose: H }) {
|
|
23
|
+
w.itemBizLayDict.useValues();
|
|
24
|
+
const { t: W } = pe(), U = b(), c = se(S, "modelValue"), G = fe(), $ = new j({ orgType: O.HALL });
|
|
25
|
+
$.useValues();
|
|
26
|
+
const M = new j({ orgType: O.OUTSOURCE });
|
|
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 = S;
|
|
29
|
+
let n = A({
|
|
30
|
+
requestId: Math.random() * 10 + "",
|
|
31
|
+
files: [],
|
|
32
|
+
finishDate: (/* @__PURE__ */ new Date()).toISOString().split("T")[0],
|
|
33
|
+
temporaryId: T.task.businessKey
|
|
34
|
+
});
|
|
35
|
+
const L = ue(() => n.govOrgId ? w.itemBizLayDict.values.filter(
|
|
36
|
+
(l) => l.orgId === n.govOrgId
|
|
37
|
+
) : []), N = b([]);
|
|
38
|
+
ve.findList().then((e) => {
|
|
39
|
+
R.value = e.data.results;
|
|
40
|
+
}), E(
|
|
41
|
+
[R, () => i.value.userId],
|
|
42
|
+
([e, l]) => {
|
|
43
|
+
e && l && i.value.outOrgId && (N.value = e.filter(
|
|
44
|
+
(r) => r.orgId === i.value.outOrgId
|
|
45
|
+
));
|
|
46
|
+
},
|
|
47
|
+
{ immediate: !0 }
|
|
48
|
+
);
|
|
49
|
+
const J = A({
|
|
50
|
+
completion: [
|
|
51
|
+
{
|
|
52
|
+
required: !0,
|
|
53
|
+
message: W("itsmFlowTemporary.completionRequired"),
|
|
54
|
+
trigger: "change"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
});
|
|
58
|
+
K.findFilesList({ actionId: T.task.businessKey }).then((e) => {
|
|
59
|
+
F.value = e.data.results, console.log(e.data.results, "=> files");
|
|
60
|
+
});
|
|
61
|
+
function Q() {
|
|
62
|
+
var d;
|
|
63
|
+
const l = ((d = w.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : d.dictCode) || "";
|
|
64
|
+
let r = F.value.filter(
|
|
65
|
+
(s) => s.fileSort === l
|
|
66
|
+
);
|
|
67
|
+
r.length === 0 && r.push({
|
|
68
|
+
fileSrc: "",
|
|
69
|
+
fileSort: l
|
|
70
|
+
}), V.value = r;
|
|
71
|
+
}
|
|
72
|
+
E(F, () => {
|
|
73
|
+
Q();
|
|
74
|
+
});
|
|
75
|
+
function X(e) {
|
|
76
|
+
if (console.log("上传的文件列表:", e), !e || e.length === 0) {
|
|
77
|
+
be.warning("请选择要上传的图片");
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const l = e.map((r) => {
|
|
81
|
+
var d;
|
|
82
|
+
return {
|
|
83
|
+
fileId: r.fileId,
|
|
84
|
+
fileName: r.fileName,
|
|
85
|
+
fileSrc: r.fileSrc,
|
|
86
|
+
fileSort: ((d = V.value[0]) == null ? void 0 : d.fileSort) || w.fileTypeDict.values.slice(3, 4)[0].dictCode
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
V.value = [...l], n.files = [...l];
|
|
90
|
+
}
|
|
91
|
+
async function Z(e) {
|
|
92
|
+
try {
|
|
93
|
+
const l = ce.fileUrl(e.filePath), d = await (await fetch(l)).blob(), s = window.URL.createObjectURL(d), v = document.createElement("a");
|
|
94
|
+
v.href = s, v.download = e.fileName || "download", document.body.appendChild(v), v.click();
|
|
95
|
+
} catch {
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
z.findById({ temporaryId: T.task.businessKey }).then(({ data: e }) => {
|
|
99
|
+
i.value = { ...e }, de(() => {
|
|
100
|
+
i.value ? Object.assign(i.value, e) : i.value = { ...e }, x();
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
function x() {
|
|
104
|
+
K.findFilesList({ actionId: T.task.businessKey }).then(({ data: e }) => {
|
|
105
|
+
e.results && Array.isArray(e.results) && (n.files = e.results.map((l) => {
|
|
106
|
+
let r = "";
|
|
107
|
+
return l.fileName && (r = l.fileSort || l.type || ""), {
|
|
108
|
+
fileName: l.fileName || "",
|
|
109
|
+
fileId: l.fileId || "",
|
|
110
|
+
fileSort: r,
|
|
111
|
+
fileSrc: l.fileSrc || l.filePath || ""
|
|
112
|
+
};
|
|
113
|
+
}));
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
H({
|
|
117
|
+
changeModel: () => ee()
|
|
118
|
+
});
|
|
119
|
+
function ee() {
|
|
120
|
+
return c.value && (c.value.selectActions = [
|
|
121
|
+
{ key: "true", value: "同意" },
|
|
122
|
+
{ key: "false", value: "不同意" }
|
|
123
|
+
], c.value.varName = "approved", c.value.module = "", c.value.module = O.MODULE_ITSMFLOW), new Promise((e, l) => {
|
|
124
|
+
var r;
|
|
125
|
+
(r = U.value) == null || r.validate((d) => {
|
|
126
|
+
d ? (c.value && (c.value.comment = ""), n.requestId = Math.random() * 10 + "", z.finish(n).then((s) => {
|
|
127
|
+
s.status === 200 ? e(!0) : l(!1);
|
|
128
|
+
})) : l(!1);
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
return (e, l) => {
|
|
133
|
+
const r = m("el-col"), d = m("jmash-select"), s = m("el-form-item"), v = m("el-option"), C = m("el-select"), I = m("el-input"), P = m("el-date-picker"), le = m("el-button"), ae = m("jmash-multi-image-upload"), te = m("el-row"), oe = m("el-form");
|
|
134
|
+
return u(), f(y, null, [
|
|
135
|
+
a(r, { span: 24 }, {
|
|
136
|
+
default: o(() => l[10] || (l[10] = [
|
|
137
|
+
D("div", { class: "title" }, "外部临时工单", -1)
|
|
138
|
+
])),
|
|
139
|
+
_: 1,
|
|
140
|
+
__: [10]
|
|
141
|
+
}),
|
|
142
|
+
a(oe, {
|
|
143
|
+
ref_key: "taskFormRef",
|
|
144
|
+
ref: U,
|
|
145
|
+
model: p(n),
|
|
146
|
+
"label-width": "150px",
|
|
147
|
+
rules: J,
|
|
148
|
+
class: "custom-table-form"
|
|
149
|
+
}, {
|
|
150
|
+
default: o(() => [
|
|
151
|
+
a(te, null, {
|
|
152
|
+
default: o(() => [
|
|
153
|
+
a(r, { span: 24 }, {
|
|
154
|
+
default: o(() => [
|
|
155
|
+
a(s, {
|
|
156
|
+
label: e.$t("itsmFlowSpareParts.govOrgId"),
|
|
157
|
+
prop: "govOrgId"
|
|
158
|
+
}, {
|
|
159
|
+
default: o(() => [
|
|
160
|
+
a(d, {
|
|
161
|
+
modelValue: i.value.govOrgId,
|
|
162
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => i.value.govOrgId = t),
|
|
163
|
+
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
164
|
+
data: p($).values,
|
|
165
|
+
clearable: "",
|
|
166
|
+
filterable: "",
|
|
167
|
+
class: "w-full",
|
|
168
|
+
disabled: !0
|
|
169
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}, 8, ["label"])
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
}),
|
|
176
|
+
a(r, { span: 24 }, {
|
|
177
|
+
default: o(() => [
|
|
178
|
+
a(s, {
|
|
179
|
+
label: e.$t("itsmFlowSpareParts.itemId"),
|
|
180
|
+
prop: "itemId"
|
|
181
|
+
}, {
|
|
182
|
+
default: o(() => [
|
|
183
|
+
a(C, {
|
|
184
|
+
modelValue: i.value.itemId,
|
|
185
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => i.value.itemId = t),
|
|
186
|
+
placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
187
|
+
data: L.value,
|
|
188
|
+
clearable: "",
|
|
189
|
+
filterable: "",
|
|
190
|
+
disabled: !0
|
|
191
|
+
}, {
|
|
192
|
+
default: o(() => [
|
|
193
|
+
(u(!0), f(y, null, g(L.value, (t) => (u(), k(v, {
|
|
194
|
+
key: t.key,
|
|
195
|
+
value: t.key,
|
|
196
|
+
label: t.value
|
|
197
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}, 8, ["modelValue", "placeholder", "data"])
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["label"])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}),
|
|
207
|
+
a(r, { span: 12 }, {
|
|
208
|
+
default: o(() => [
|
|
209
|
+
a(s, {
|
|
210
|
+
label: e.$t("itsmFlowTemporary.createUser")
|
|
211
|
+
}, {
|
|
212
|
+
default: o(() => [
|
|
213
|
+
a(I, {
|
|
214
|
+
value: p(G).user.realName,
|
|
215
|
+
placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
|
|
216
|
+
"show-word-limit": "",
|
|
217
|
+
clearable: "",
|
|
218
|
+
disabled: !0
|
|
219
|
+
}, null, 8, ["value", "placeholder"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}, 8, ["label"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
a(r, { span: 12 }, {
|
|
227
|
+
default: o(() => [
|
|
228
|
+
a(s, {
|
|
229
|
+
label: e.$t("itsmFlowTemporary.createTime"),
|
|
230
|
+
prop: "createTime"
|
|
231
|
+
}, {
|
|
232
|
+
default: o(() => [
|
|
233
|
+
a(P, {
|
|
234
|
+
modelValue: q.value,
|
|
235
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => q.value = t),
|
|
236
|
+
type: "date",
|
|
237
|
+
placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
|
|
238
|
+
format: "YYYY-MM-DD",
|
|
239
|
+
"value-format": "YYYY-MM-DD",
|
|
240
|
+
clearable: !1,
|
|
241
|
+
class: "w-full",
|
|
242
|
+
disabled: !0
|
|
243
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
244
|
+
]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["label"])
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
a(r, { span: 24 }, {
|
|
251
|
+
default: o(() => [
|
|
252
|
+
a(s, {
|
|
253
|
+
label: e.$t("itsmFlowTemporary.title"),
|
|
254
|
+
prop: "title"
|
|
255
|
+
}, {
|
|
256
|
+
default: o(() => [
|
|
257
|
+
a(I, {
|
|
258
|
+
modelValue: i.value.title,
|
|
259
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => i.value.title = t),
|
|
260
|
+
placeholder: e.$t("itsmFlowTemporary.titleRequired"),
|
|
261
|
+
"show-word-limit": "",
|
|
262
|
+
clearable: "",
|
|
263
|
+
disabled: !0
|
|
264
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
265
|
+
]),
|
|
266
|
+
_: 1
|
|
267
|
+
}, 8, ["label"])
|
|
268
|
+
]),
|
|
269
|
+
_: 1
|
|
270
|
+
}),
|
|
271
|
+
a(r, { span: 24 }, {
|
|
272
|
+
default: o(() => [
|
|
273
|
+
a(s, {
|
|
274
|
+
label: e.$t("itsmFlowTemporary.content"),
|
|
275
|
+
prop: "content"
|
|
276
|
+
}, {
|
|
277
|
+
default: o(() => [
|
|
278
|
+
a(I, {
|
|
279
|
+
modelValue: i.value.content,
|
|
280
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => i.value.content = t),
|
|
281
|
+
placeholder: e.$t("itsmFlowTemporary.contentRequired"),
|
|
282
|
+
"show-word-limit": "",
|
|
283
|
+
clearable: "",
|
|
284
|
+
disabled: !0
|
|
285
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}, 8, ["label"])
|
|
289
|
+
]),
|
|
290
|
+
_: 1
|
|
291
|
+
}),
|
|
292
|
+
a(r, { span: 24 }, {
|
|
293
|
+
default: o(() => [
|
|
294
|
+
(u(!0), f(y, null, g(p(w).fileTypeDict.values.slice(2, 3), (t, Y) => (u(), k(s, {
|
|
295
|
+
key: t.dictCode,
|
|
296
|
+
label: t.dictName
|
|
297
|
+
}, {
|
|
298
|
+
default: o(() => [
|
|
299
|
+
(u(!0), f(y, null, g(F.value, (h, _) => (u(), f("div", {
|
|
300
|
+
key: _,
|
|
301
|
+
class: "files-list"
|
|
302
|
+
}, [
|
|
303
|
+
D("span", null, ne(h.fileName), 1),
|
|
304
|
+
a(le, {
|
|
305
|
+
type: "primary",
|
|
306
|
+
link: "",
|
|
307
|
+
size: "small",
|
|
308
|
+
class: "icon-right",
|
|
309
|
+
onClick: (B) => Z(h)
|
|
310
|
+
}, {
|
|
311
|
+
default: o(() => l[11] || (l[11] = [
|
|
312
|
+
me(" 查看 ")
|
|
313
|
+
])),
|
|
314
|
+
_: 2,
|
|
315
|
+
__: [11]
|
|
316
|
+
}, 1032, ["onClick"])
|
|
317
|
+
]))), 128))
|
|
318
|
+
]),
|
|
319
|
+
_: 2
|
|
320
|
+
}, 1032, ["label"]))), 128))
|
|
321
|
+
]),
|
|
322
|
+
_: 1
|
|
323
|
+
}),
|
|
324
|
+
a(r, { span: 24 }, {
|
|
325
|
+
default: o(() => [
|
|
326
|
+
a(s, {
|
|
327
|
+
label: e.$t("itsmFlowTemporary.outOrgId"),
|
|
328
|
+
prop: "outOrgId"
|
|
329
|
+
}, {
|
|
330
|
+
default: o(() => [
|
|
331
|
+
a(d, {
|
|
332
|
+
modelValue: i.value.outOrgId,
|
|
333
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => i.value.outOrgId = t),
|
|
334
|
+
placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
335
|
+
data: p(M).values,
|
|
336
|
+
clearable: "",
|
|
337
|
+
filterable: "",
|
|
338
|
+
class: "w-full",
|
|
339
|
+
disabled: !0
|
|
340
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
341
|
+
]),
|
|
342
|
+
_: 1
|
|
343
|
+
}, 8, ["label"])
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
}),
|
|
347
|
+
a(r, { span: 24 }, {
|
|
348
|
+
default: o(() => [
|
|
349
|
+
a(s, {
|
|
350
|
+
label: e.$t("itsmFlowTemporary.userId"),
|
|
351
|
+
prop: "userId"
|
|
352
|
+
}, {
|
|
353
|
+
default: o(() => [
|
|
354
|
+
a(C, {
|
|
355
|
+
modelValue: i.value.userId,
|
|
356
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => i.value.userId = t),
|
|
357
|
+
placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
|
|
358
|
+
"show-word-limit": "",
|
|
359
|
+
clearable: "",
|
|
360
|
+
class: "w-full",
|
|
361
|
+
disabled: !0
|
|
362
|
+
}, {
|
|
363
|
+
default: o(() => [
|
|
364
|
+
(u(!0), f(y, null, g(N.value, (t) => (u(), k(v, {
|
|
365
|
+
key: t.userId,
|
|
366
|
+
value: t.userId,
|
|
367
|
+
label: t.realName
|
|
368
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
}, 8, ["modelValue", "placeholder"])
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
}, 8, ["label"])
|
|
375
|
+
]),
|
|
376
|
+
_: 1
|
|
377
|
+
}),
|
|
378
|
+
a(r, { span: 12 }, {
|
|
379
|
+
default: o(() => [
|
|
380
|
+
a(s, {
|
|
381
|
+
label: e.$t("itsmFlowTemporary.handlingPeriod"),
|
|
382
|
+
prop: "handlingPeriod"
|
|
383
|
+
}, {
|
|
384
|
+
default: o(() => [
|
|
385
|
+
a(I, {
|
|
386
|
+
modelValue: i.value.handlingPeriod,
|
|
387
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => i.value.handlingPeriod = t),
|
|
388
|
+
placeholder: e.$t("itsmFlowTemporary.handlingPeriodRequired"),
|
|
389
|
+
"show-word-limit": "",
|
|
390
|
+
clearable: "",
|
|
391
|
+
disabled: !0
|
|
392
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
393
|
+
]),
|
|
394
|
+
_: 1
|
|
395
|
+
}, 8, ["label"])
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}),
|
|
399
|
+
a(r, { span: 12 }, {
|
|
400
|
+
default: o(() => [
|
|
401
|
+
a(s, {
|
|
402
|
+
label: e.$t("itsmFlowTemporary.finishDate"),
|
|
403
|
+
prop: "finishDate"
|
|
404
|
+
}, {
|
|
405
|
+
default: o(() => [
|
|
406
|
+
a(P, {
|
|
407
|
+
modelValue: p(n).finishDate,
|
|
408
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => p(n).finishDate = t),
|
|
409
|
+
type: "date",
|
|
410
|
+
placeholder: e.$t("itsmFlowTemporary.finishDateRequired"),
|
|
411
|
+
format: "YYYY-MM-DD",
|
|
412
|
+
disabled: !0
|
|
413
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
414
|
+
]),
|
|
415
|
+
_: 1
|
|
416
|
+
}, 8, ["label"])
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
}),
|
|
420
|
+
a(r, { span: 24 }, {
|
|
421
|
+
default: o(() => [
|
|
422
|
+
a(s, {
|
|
423
|
+
label: e.$t("itsmFlowTemporary.completion"),
|
|
424
|
+
prop: "completion"
|
|
425
|
+
}, {
|
|
426
|
+
default: o(() => [
|
|
427
|
+
a(I, {
|
|
428
|
+
modelValue: p(n).completion,
|
|
429
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => p(n).completion = t),
|
|
430
|
+
placeholder: e.$t("itsmFlowTemporary.completionRequired"),
|
|
431
|
+
"show-word-limit": "",
|
|
432
|
+
clearable: ""
|
|
433
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
434
|
+
]),
|
|
435
|
+
_: 1
|
|
436
|
+
}, 8, ["label"])
|
|
437
|
+
]),
|
|
438
|
+
_: 1
|
|
439
|
+
}),
|
|
440
|
+
a(r, { span: 24 }, {
|
|
441
|
+
default: o(() => [
|
|
442
|
+
(u(!0), f(y, null, g(p(w).fileTypeDict.values.slice(3, 4), (t, Y) => (u(), k(s, {
|
|
443
|
+
key: t.dictCode,
|
|
444
|
+
label: t.dictName,
|
|
445
|
+
prop: "files." + Y + ".fileSrc"
|
|
446
|
+
}, {
|
|
447
|
+
default: o(() => [
|
|
448
|
+
(u(!0), f(y, null, g(V.value, (h, _) => (u(), f("div", {
|
|
449
|
+
key: _,
|
|
450
|
+
class: "files-list"
|
|
451
|
+
}, [
|
|
452
|
+
a(ae, {
|
|
453
|
+
modelValue: h.fileSrc,
|
|
454
|
+
"onUpdate:modelValue": (B) => h.fileSrc = B,
|
|
455
|
+
limit: 6,
|
|
456
|
+
"list-type": "picture-card",
|
|
457
|
+
onUploadFileList: X
|
|
458
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
459
|
+
l[12] || (l[12] = D("div", { class: "red-color" }, " 推荐尺寸:100 * 100或同比例图片,最大2MB ", -1))
|
|
460
|
+
]))), 128))
|
|
461
|
+
]),
|
|
462
|
+
_: 2
|
|
463
|
+
}, 1032, ["label", "prop"]))), 128))
|
|
464
|
+
]),
|
|
465
|
+
_: 1
|
|
466
|
+
})
|
|
467
|
+
]),
|
|
468
|
+
_: 1
|
|
469
|
+
})
|
|
470
|
+
]),
|
|
471
|
+
_: 1
|
|
472
|
+
}, 8, ["model", "rules"])
|
|
473
|
+
], 64);
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
export {
|
|
478
|
+
ke as default
|
|
479
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as W, ref as C, reactive as G, resolveComponent as i, resolveDirective as J, createElementBlock as S, openBlock as y, createElementVNode as b, createVNode as t, createBlock as U, createCommentVNode as D, withCtx as o, withKeys as d, unref as n, createTextVNode as k, toDisplayString as v, withDirectives as M, isRef as R } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
|
-
import { a as Z, D as p, O as x, C as ee } from "./index-
|
|
5
|
-
import { _ as le } from "./info.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as Z, D as p, O as x, C as ee } from "./index-D7TvdZ0W.mjs";
|
|
5
|
+
import { _ as le } from "./info.vue_vue_type_script_setup_true_lang-BHjv3DSd.mjs";
|
|
6
6
|
const te = { class: "app-container" }, oe = { class: "search-container" }, ae = ["onClick"], de = /* @__PURE__ */ W({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(ne) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as Z, mergeModels as ee, ref as m, useModel as le, resolveComponent as d, createElementBlock as A, openBlock as k, Fragment as O, createVNode as e, withCtx as l, createElementVNode as s, createTextVNode as u, toDisplayString as r, unref as b, createBlock as $, createCommentVNode as V, renderList as te } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as ae } from "./index-
|
|
4
|
-
import { D as F, i as I, C as y, a as oe } from "./index-
|
|
3
|
+
import { u as ae } from "./index-CvX2It1o.mjs";
|
|
4
|
+
import { D as F, i as I, C as y, a as oe } from "./index-D7TvdZ0W.mjs";
|
|
5
5
|
import { fileApi as ne } from "jmash-core";
|
|
6
6
|
import { useI18n as se } from "vue-i18n";
|
|
7
|
-
import { F as ue } from "./FileSaver.min-
|
|
8
|
-
import { E as j } from "./el-message-
|
|
7
|
+
import { F as ue } from "./FileSaver.min-X2_RihtX.mjs";
|
|
8
|
+
import { E as j } from "./el-message-BJAl6Gwu.mjs";
|
|
9
9
|
const be = /* @__PURE__ */ Z({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: /* @__PURE__ */ ee({
|