xyvcard-itsm-flow 0.0.19 → 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-DeerMT0Q.mjs → index-BYbmB9DD.mjs} +31 -29
- 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-DB-P0VX0.mjs → index-C5pj6umx.mjs} +23 -22
- 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-Cqw8Rz4q.mjs → index-DkPqpjkA.mjs} +26 -24
- 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,492 @@
|
|
|
1
|
+
import { defineComponent as fe, mergeModels as j, ref as c, reactive as Y, computed as z, watch as K, useModel as ge, nextTick as ye, resolveComponent as i, createBlock as h, openBlock as m, withCtx as a, createVNode as o, unref as s, createElementBlock as y, Fragment as I, renderList as V, createCommentVNode as ve, createTextVNode as w, toDisplayString as b, createElementVNode as Ie } from "vue";
|
|
2
|
+
import { ElMessage as H } from "element-plus";
|
|
3
|
+
import { useI18n as we } from "vue-i18n";
|
|
4
|
+
import { i as C } from "./index-o0oTSdUL.mjs";
|
|
5
|
+
import { D as v, O as G, C as $, i as be } from "./index-D7TvdZ0W.mjs";
|
|
6
|
+
import { u as _e } from "./index-CvX2It1o.mjs";
|
|
7
|
+
import { sysUserExtApi as Fe } from "xyvcard-itsmsys";
|
|
8
|
+
import { useUserStoreHook as Te } from "jmash-core";
|
|
9
|
+
import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
10
|
+
const Ve = { class: "title" }, Oe = /* @__PURE__ */ fe({
|
|
11
|
+
__name: "edit",
|
|
12
|
+
props: /* @__PURE__ */ j({
|
|
13
|
+
entityKey: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: { type: Boolean },
|
|
20
|
+
modelModifiers: {}
|
|
21
|
+
}),
|
|
22
|
+
emits: /* @__PURE__ */ j(["refresh"], ["update:modelValue"]),
|
|
23
|
+
setup(U, { emit: J }) {
|
|
24
|
+
const Q = Te(), { t: p } = we(), O = c();
|
|
25
|
+
v.itemBizLayDict.useValues();
|
|
26
|
+
const D = new G({ orgType: $.HALL });
|
|
27
|
+
D.useValues();
|
|
28
|
+
const R = new G({ orgType: $.OUTSOURCE });
|
|
29
|
+
R.useValues(), v.userExtBizDict.useValues();
|
|
30
|
+
const S = c((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
31
|
+
let t = Y({
|
|
32
|
+
requestId: Math.random() * 10 + "",
|
|
33
|
+
files: [],
|
|
34
|
+
temporaryType: $.External
|
|
35
|
+
});
|
|
36
|
+
const L = z(() => t.govOrgId ? v.itemBizLayDict.values.filter(
|
|
37
|
+
(l) => l.orgId === t.govOrgId
|
|
38
|
+
) : []);
|
|
39
|
+
function W(e) {
|
|
40
|
+
t.itemId = void 0;
|
|
41
|
+
}
|
|
42
|
+
const _ = c([]), f = c([]);
|
|
43
|
+
Fe.findList().then((e) => {
|
|
44
|
+
_.value = e.data.results;
|
|
45
|
+
}), K(
|
|
46
|
+
[_, () => t.userId],
|
|
47
|
+
([e, l]) => {
|
|
48
|
+
e && l && t.outOrgId && (f.value = e.filter(
|
|
49
|
+
(u) => u.orgId === t.outOrgId
|
|
50
|
+
));
|
|
51
|
+
},
|
|
52
|
+
{ immediate: !0 }
|
|
53
|
+
), K(
|
|
54
|
+
() => t.outOrgId,
|
|
55
|
+
(e) => {
|
|
56
|
+
e && Array.isArray(_.value) ? (f.value = _.value.filter(
|
|
57
|
+
(l) => l.orgId === e
|
|
58
|
+
), console.log("filteredUserList:", f.value), t.userId && !f.value.some((l) => l.userId === t.userId) && (t.userId = "")) : (f.value = [], t.userId = "");
|
|
59
|
+
},
|
|
60
|
+
{ immediate: !0 }
|
|
61
|
+
);
|
|
62
|
+
const k = c(!1), N = c(), X = Y({
|
|
63
|
+
govOrgId: [
|
|
64
|
+
{
|
|
65
|
+
required: !0,
|
|
66
|
+
message: p("itsmFlowTemporary.govOrgIdRequired"),
|
|
67
|
+
trigger: "change"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
itemId: [
|
|
71
|
+
{
|
|
72
|
+
required: !0,
|
|
73
|
+
message: p("itsmFlowTemporary.itemIdRequired"),
|
|
74
|
+
trigger: "change"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
title: [
|
|
78
|
+
{
|
|
79
|
+
required: !0,
|
|
80
|
+
message: p("itsmFlowTemporary.titleRequired"),
|
|
81
|
+
trigger: "change"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
temporaryType: [
|
|
85
|
+
{
|
|
86
|
+
required: !0,
|
|
87
|
+
message: p("itsmFlowTemporary.temporaryTypeRequired"),
|
|
88
|
+
trigger: "change"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
outOrgId: [
|
|
92
|
+
{
|
|
93
|
+
required: !0,
|
|
94
|
+
message: p("itsmFlowTemporary.outOrgIdRequired"),
|
|
95
|
+
trigger: "change"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
userId: [
|
|
99
|
+
{
|
|
100
|
+
required: !0,
|
|
101
|
+
message: p("itsmFlowTemporary.userIdRequired"),
|
|
102
|
+
trigger: "change"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}), g = ge(U, "modelValue"), q = U, Z = z(() => {
|
|
106
|
+
const e = v.fileTypeDict.values.slice(2, 3)[0];
|
|
107
|
+
return e ? e.dictCode : "temporary_file";
|
|
108
|
+
});
|
|
109
|
+
function x() {
|
|
110
|
+
k.value = !0, N.value.clearFileList();
|
|
111
|
+
}
|
|
112
|
+
function ee(e) {
|
|
113
|
+
const l = {
|
|
114
|
+
fileName: e.name,
|
|
115
|
+
fileId: e.response.fileId,
|
|
116
|
+
fileSort: Z.value,
|
|
117
|
+
fileSrc: ""
|
|
118
|
+
};
|
|
119
|
+
t.files || (t.files = []), t.files.push(l), t.files = [...new Set(t.files)];
|
|
120
|
+
}
|
|
121
|
+
console.log(v.fileTypeDict.values.slice(2, 3)[0], "=>fileTypeDict ");
|
|
122
|
+
function le(e) {
|
|
123
|
+
var l;
|
|
124
|
+
(l = t.files) == null || l.splice(e, 1);
|
|
125
|
+
}
|
|
126
|
+
const B = J, te = Object.keys(q.entityKey);
|
|
127
|
+
c(te.length >= 1).value && C.findById(q.entityKey).then(({ data: e }) => {
|
|
128
|
+
t.outOrgId = e.outOrgId, ye(() => {
|
|
129
|
+
Object.assign(t, e), oe();
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
function oe() {
|
|
133
|
+
be.findFilesList({ actionId: q.entityKey.temporaryId }).then(({ data: e }) => {
|
|
134
|
+
e.results && Array.isArray(e.results) && (t.files = e.results.map((l) => {
|
|
135
|
+
let u = "";
|
|
136
|
+
return l.fileName && (u = l.fileSort || l.type || ""), {
|
|
137
|
+
fileName: l.fileName || "",
|
|
138
|
+
fileId: l.fileId || "",
|
|
139
|
+
fileSort: u
|
|
140
|
+
};
|
|
141
|
+
}));
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
const ae = async () => {
|
|
145
|
+
var e;
|
|
146
|
+
await ((e = O.value) == null ? void 0 : e.validate(async (l) => {
|
|
147
|
+
l && C.create(t).then((u) => {
|
|
148
|
+
u.status === 200 && (H({
|
|
149
|
+
message: p("common.submitSuccess"),
|
|
150
|
+
type: "success"
|
|
151
|
+
}), g.value = !1, B("refresh", !0));
|
|
152
|
+
});
|
|
153
|
+
}));
|
|
154
|
+
}, re = async () => {
|
|
155
|
+
var e;
|
|
156
|
+
await ((e = O.value) == null ? void 0 : e.validate(async (l) => {
|
|
157
|
+
l && C.submit(t).then((u) => {
|
|
158
|
+
u.status === 200 && (H({
|
|
159
|
+
message: p("common.submitSuccess"),
|
|
160
|
+
type: "success"
|
|
161
|
+
}), g.value = !1, B("refresh", !0));
|
|
162
|
+
});
|
|
163
|
+
}));
|
|
164
|
+
};
|
|
165
|
+
function E() {
|
|
166
|
+
g.value && (g.value = !1);
|
|
167
|
+
}
|
|
168
|
+
return (e, l) => {
|
|
169
|
+
const u = i("jmash-select"), d = i("el-form-item"), n = i("el-col"), A = i("el-option"), M = i("el-select"), F = i("el-input"), se = i("el-date-picker"), T = i("el-button"), ie = i("CircleClose"), ue = i("el-icon"), de = i("el-row"), ne = i("el-form"), me = i("jmash-multi-upload"), pe = i("el-dialog");
|
|
170
|
+
return m(), h(pe, {
|
|
171
|
+
modelValue: g.value,
|
|
172
|
+
"onUpdate:modelValue": l[9] || (l[9] = (r) => g.value = r),
|
|
173
|
+
onClose: E
|
|
174
|
+
}, {
|
|
175
|
+
footer: a(() => [
|
|
176
|
+
Ie("div", Ve, [
|
|
177
|
+
o(T, { onClick: E }, {
|
|
178
|
+
default: a(() => [
|
|
179
|
+
w(b(e.$t("common.cancel")), 1)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}),
|
|
183
|
+
o(T, {
|
|
184
|
+
type: "primary",
|
|
185
|
+
onClick: ae
|
|
186
|
+
}, {
|
|
187
|
+
default: a(() => [
|
|
188
|
+
w(b(e.$t("itsmFlowEntrustUser.save")), 1)
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}),
|
|
192
|
+
o(T, {
|
|
193
|
+
type: "primary",
|
|
194
|
+
onClick: re
|
|
195
|
+
}, {
|
|
196
|
+
default: a(() => [
|
|
197
|
+
w(b(e.$t("itsmFlowEntrustUser.submit")), 1)
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
})
|
|
201
|
+
])
|
|
202
|
+
]),
|
|
203
|
+
default: a(() => [
|
|
204
|
+
o(ne, {
|
|
205
|
+
ref_key: "itsmFlowTemporaryFormRef",
|
|
206
|
+
ref: O,
|
|
207
|
+
model: s(t),
|
|
208
|
+
"label-width": "150px",
|
|
209
|
+
rules: X,
|
|
210
|
+
class: "custom-table-form custom-form"
|
|
211
|
+
}, {
|
|
212
|
+
default: a(() => [
|
|
213
|
+
o(de, null, {
|
|
214
|
+
default: a(() => [
|
|
215
|
+
o(n, { span: 24 }, {
|
|
216
|
+
default: a(() => [
|
|
217
|
+
o(d, {
|
|
218
|
+
label: e.$t("itsmFlowSpareParts.govOrgId"),
|
|
219
|
+
prop: "govOrgId"
|
|
220
|
+
}, {
|
|
221
|
+
default: a(() => [
|
|
222
|
+
o(u, {
|
|
223
|
+
modelValue: s(t).govOrgId,
|
|
224
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => s(t).govOrgId = r),
|
|
225
|
+
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
226
|
+
data: s(D).values,
|
|
227
|
+
clearable: "",
|
|
228
|
+
filterable: "",
|
|
229
|
+
class: "w-full",
|
|
230
|
+
onChange: W
|
|
231
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 8, ["label"])
|
|
235
|
+
]),
|
|
236
|
+
_: 1
|
|
237
|
+
}),
|
|
238
|
+
o(n, { span: 24 }, {
|
|
239
|
+
default: a(() => [
|
|
240
|
+
o(d, {
|
|
241
|
+
label: e.$t("itsmFlowSpareParts.itemId"),
|
|
242
|
+
prop: "itemId"
|
|
243
|
+
}, {
|
|
244
|
+
default: a(() => [
|
|
245
|
+
o(M, {
|
|
246
|
+
modelValue: s(t).itemId,
|
|
247
|
+
"onUpdate:modelValue": l[1] || (l[1] = (r) => s(t).itemId = r),
|
|
248
|
+
placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
249
|
+
data: L.value,
|
|
250
|
+
clearable: "",
|
|
251
|
+
filterable: "",
|
|
252
|
+
disabled: !s(t).govOrgId
|
|
253
|
+
}, {
|
|
254
|
+
default: a(() => [
|
|
255
|
+
(m(!0), y(I, null, V(L.value, (r) => (m(), h(A, {
|
|
256
|
+
key: r.key,
|
|
257
|
+
value: r.key,
|
|
258
|
+
label: r.value
|
|
259
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
}, 8, ["modelValue", "placeholder", "data", "disabled"])
|
|
263
|
+
]),
|
|
264
|
+
_: 1
|
|
265
|
+
}, 8, ["label"])
|
|
266
|
+
]),
|
|
267
|
+
_: 1
|
|
268
|
+
}),
|
|
269
|
+
o(n, { span: 12 }, {
|
|
270
|
+
default: a(() => [
|
|
271
|
+
o(d, {
|
|
272
|
+
label: e.$t("itsmFlowTemporary.createUser")
|
|
273
|
+
}, {
|
|
274
|
+
default: a(() => [
|
|
275
|
+
o(F, {
|
|
276
|
+
value: s(Q).user.realName,
|
|
277
|
+
placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
|
|
278
|
+
"show-word-limit": "",
|
|
279
|
+
clearable: "",
|
|
280
|
+
disabled: !0
|
|
281
|
+
}, null, 8, ["value", "placeholder"])
|
|
282
|
+
]),
|
|
283
|
+
_: 1
|
|
284
|
+
}, 8, ["label"])
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
}),
|
|
288
|
+
o(n, { span: 12 }, {
|
|
289
|
+
default: a(() => [
|
|
290
|
+
o(d, {
|
|
291
|
+
label: e.$t("itsmFlowTemporary.createTime"),
|
|
292
|
+
prop: "createTime"
|
|
293
|
+
}, {
|
|
294
|
+
default: a(() => [
|
|
295
|
+
o(se, {
|
|
296
|
+
modelValue: S.value,
|
|
297
|
+
"onUpdate:modelValue": l[2] || (l[2] = (r) => S.value = r),
|
|
298
|
+
type: "date",
|
|
299
|
+
placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
|
|
300
|
+
format: "YYYY-MM-DD",
|
|
301
|
+
"value-format": "YYYY-MM-DD",
|
|
302
|
+
clearable: !1,
|
|
303
|
+
class: "w-full",
|
|
304
|
+
disabled: !0
|
|
305
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}, 8, ["label"])
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
}),
|
|
312
|
+
o(n, { span: 24 }, {
|
|
313
|
+
default: a(() => [
|
|
314
|
+
o(d, {
|
|
315
|
+
label: e.$t("itsmFlowTemporary.title"),
|
|
316
|
+
prop: "title"
|
|
317
|
+
}, {
|
|
318
|
+
default: a(() => [
|
|
319
|
+
o(F, {
|
|
320
|
+
modelValue: s(t).title,
|
|
321
|
+
"onUpdate:modelValue": l[3] || (l[3] = (r) => s(t).title = r),
|
|
322
|
+
placeholder: e.$t("itsmFlowTemporary.titleRequired"),
|
|
323
|
+
"show-word-limit": "",
|
|
324
|
+
clearable: ""
|
|
325
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}, 8, ["label"])
|
|
329
|
+
]),
|
|
330
|
+
_: 1
|
|
331
|
+
}),
|
|
332
|
+
o(n, { span: 24 }, {
|
|
333
|
+
default: a(() => [
|
|
334
|
+
o(d, {
|
|
335
|
+
label: e.$t("itsmFlowTemporary.content"),
|
|
336
|
+
prop: "content"
|
|
337
|
+
}, {
|
|
338
|
+
default: a(() => [
|
|
339
|
+
o(F, {
|
|
340
|
+
modelValue: s(t).content,
|
|
341
|
+
"onUpdate:modelValue": l[4] || (l[4] = (r) => s(t).content = r),
|
|
342
|
+
placeholder: e.$t("itsmFlowTemporary.contentRequired"),
|
|
343
|
+
"show-word-limit": "",
|
|
344
|
+
clearable: ""
|
|
345
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["label"])
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
o(n, { span: 24 }, {
|
|
353
|
+
default: a(() => [
|
|
354
|
+
(m(!0), y(I, null, V(s(v).fileTypeDict.values.slice(2, 3), (r, qe) => (m(), y(I, {
|
|
355
|
+
key: r.dictCode
|
|
356
|
+
}, [
|
|
357
|
+
o(d, {
|
|
358
|
+
label: r.dictName
|
|
359
|
+
}, {
|
|
360
|
+
default: a(() => [
|
|
361
|
+
o(T, {
|
|
362
|
+
type: "primary",
|
|
363
|
+
icon: s(_e),
|
|
364
|
+
onClick: x
|
|
365
|
+
}, {
|
|
366
|
+
default: a(() => [
|
|
367
|
+
w(b(e.$t("common.uploadFiles")), 1)
|
|
368
|
+
]),
|
|
369
|
+
_: 1
|
|
370
|
+
}, 8, ["icon"])
|
|
371
|
+
]),
|
|
372
|
+
_: 2
|
|
373
|
+
}, 1032, ["label"]),
|
|
374
|
+
s(t).files && s(t).files.length > 0 ? (m(), h(d, { key: 0 }, {
|
|
375
|
+
default: a(() => [
|
|
376
|
+
(m(!0), y(I, null, V(s(t).files, (ce, P) => (m(), y("div", {
|
|
377
|
+
key: P,
|
|
378
|
+
class: "files-list"
|
|
379
|
+
}, [
|
|
380
|
+
w(b(ce.fileName) + " ", 1),
|
|
381
|
+
o(ue, {
|
|
382
|
+
size: "16",
|
|
383
|
+
class: "icon-right",
|
|
384
|
+
onClick: (Ce) => le(P)
|
|
385
|
+
}, {
|
|
386
|
+
default: a(() => [
|
|
387
|
+
o(ie)
|
|
388
|
+
]),
|
|
389
|
+
_: 2
|
|
390
|
+
}, 1032, ["onClick"])
|
|
391
|
+
]))), 128))
|
|
392
|
+
]),
|
|
393
|
+
_: 2
|
|
394
|
+
}, 1024)) : ve("", !0)
|
|
395
|
+
], 64))), 128))
|
|
396
|
+
]),
|
|
397
|
+
_: 1
|
|
398
|
+
}),
|
|
399
|
+
o(n, { span: 24 }, {
|
|
400
|
+
default: a(() => [
|
|
401
|
+
o(d, {
|
|
402
|
+
label: e.$t("itsmFlowTemporary.outOrgId"),
|
|
403
|
+
prop: "outOrgId"
|
|
404
|
+
}, {
|
|
405
|
+
default: a(() => [
|
|
406
|
+
o(u, {
|
|
407
|
+
modelValue: s(t).outOrgId,
|
|
408
|
+
"onUpdate:modelValue": l[5] || (l[5] = (r) => s(t).outOrgId = r),
|
|
409
|
+
placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
410
|
+
data: s(R).values,
|
|
411
|
+
clearable: "",
|
|
412
|
+
filterable: "",
|
|
413
|
+
class: "w-full"
|
|
414
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
}, 8, ["label"])
|
|
418
|
+
]),
|
|
419
|
+
_: 1
|
|
420
|
+
}),
|
|
421
|
+
o(n, { span: 24 }, {
|
|
422
|
+
default: a(() => [
|
|
423
|
+
o(d, {
|
|
424
|
+
label: e.$t("itsmFlowTemporary.userId"),
|
|
425
|
+
prop: "userId"
|
|
426
|
+
}, {
|
|
427
|
+
default: a(() => [
|
|
428
|
+
o(M, {
|
|
429
|
+
modelValue: s(t).userId,
|
|
430
|
+
"onUpdate:modelValue": l[6] || (l[6] = (r) => s(t).userId = r),
|
|
431
|
+
placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
|
|
432
|
+
"show-word-limit": "",
|
|
433
|
+
clearable: "",
|
|
434
|
+
class: "w-full"
|
|
435
|
+
}, {
|
|
436
|
+
default: a(() => [
|
|
437
|
+
(m(!0), y(I, null, V(f.value, (r) => (m(), h(A, {
|
|
438
|
+
key: r.userId,
|
|
439
|
+
value: r.userId,
|
|
440
|
+
label: r.realName
|
|
441
|
+
}, null, 8, ["value", "label"]))), 128))
|
|
442
|
+
]),
|
|
443
|
+
_: 1
|
|
444
|
+
}, 8, ["modelValue", "placeholder"])
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}, 8, ["label"])
|
|
448
|
+
]),
|
|
449
|
+
_: 1
|
|
450
|
+
}),
|
|
451
|
+
o(n, { span: 24 }, {
|
|
452
|
+
default: a(() => [
|
|
453
|
+
o(d, {
|
|
454
|
+
label: e.$t("itsmFlowTemporary.handlingPeriod"),
|
|
455
|
+
prop: "handlingPeriod"
|
|
456
|
+
}, {
|
|
457
|
+
default: a(() => [
|
|
458
|
+
o(F, {
|
|
459
|
+
modelValue: s(t).handlingPeriod,
|
|
460
|
+
"onUpdate:modelValue": l[7] || (l[7] = (r) => s(t).handlingPeriod = r),
|
|
461
|
+
placeholder: e.$t("itsmFlowTemporary.handlingPeriodRequired"),
|
|
462
|
+
"show-word-limit": "",
|
|
463
|
+
clearable: ""
|
|
464
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
465
|
+
]),
|
|
466
|
+
_: 1
|
|
467
|
+
}, 8, ["label"])
|
|
468
|
+
]),
|
|
469
|
+
_: 1
|
|
470
|
+
})
|
|
471
|
+
]),
|
|
472
|
+
_: 1
|
|
473
|
+
})
|
|
474
|
+
]),
|
|
475
|
+
_: 1
|
|
476
|
+
}, 8, ["model", "rules"]),
|
|
477
|
+
o(me, {
|
|
478
|
+
ref_key: "uploadRef",
|
|
479
|
+
ref: N,
|
|
480
|
+
modelValue: k.value,
|
|
481
|
+
"onUpdate:modelValue": l[8] || (l[8] = (r) => k.value = r),
|
|
482
|
+
onUploadFileList: ee
|
|
483
|
+
}, null, 8, ["modelValue"])
|
|
484
|
+
]),
|
|
485
|
+
_: 1
|
|
486
|
+
}, 8, ["modelValue"]);
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
}), Ae = /* @__PURE__ */ he(Oe, [["__scopeId", "data-v-644f76d1"]]);
|
|
490
|
+
export {
|
|
491
|
+
Ae as default
|
|
492
|
+
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent as se, mergeModels as z, ref as k, useModel as de, reac
|
|
|
2
2
|
import { ElMessage as S } from "element-plus";
|
|
3
3
|
import { useI18n as pe } from "vue-i18n";
|
|
4
4
|
import { i as I, t as fe, a as be } from "./common-Cwl5jzlM.mjs";
|
|
5
|
-
import { p as ve } from "./index-
|
|
6
|
-
import { g as ge, C as Ne, D as $, h as ke, b as _e } from "./index-
|
|
5
|
+
import { p as ve } from "./index-CvX2It1o.mjs";
|
|
6
|
+
import { g as ge, C as Ne, D as $, h as ke, b as _e } from "./index-D7TvdZ0W.mjs";
|
|
7
7
|
const he = { class: "title" }, $e = /* @__PURE__ */ se({
|
|
8
8
|
__name: "edit",
|
|
9
9
|
props: /* @__PURE__ */ z({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as ve, mergeModels as L, ref as f, useModel as be, reactive as T, resolveComponent as u, createBlock as H, openBlock as y, withCtx as o, createVNode as t, createElementVNode as r, unref as d, createElementBlock as R, Fragment as G, renderList as J, createTextVNode as b, toDisplayString as F } from "vue";
|
|
2
2
|
import { ElMessage as N } from "element-plus";
|
|
3
3
|
import { useI18n as we } from "vue-i18n";
|
|
4
|
-
import { I as ge, C as j, U as he, D as A, i as V } from "./index-
|
|
5
|
-
import { u as ye } from "./index-
|
|
4
|
+
import { I as ge, C as j, U as he, D as A, i as V } from "./index-D7TvdZ0W.mjs";
|
|
5
|
+
import { u as ye } from "./index-CvX2It1o.mjs";
|
|
6
6
|
import { useUserStore as Fe } from "jmash-core";
|
|
7
7
|
const Ne = { class: "title" }, qe = /* @__PURE__ */ ve({
|
|
8
8
|
__name: "edit",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as Ee, mergeModels as Q, ref as f, useModel as _e, reactive as W, resolveComponent as d, createBlock as k, openBlock as E, withCtx as o, createVNode as l, createElementVNode as u, unref as s, createElementBlock as X, Fragment as Y, renderList as Z, toDisplayString as U, createCommentVNode as Ve, createTextVNode as _ } from "vue";
|
|
2
2
|
import { ElMessage as O } from "element-plus";
|
|
3
3
|
import { useI18n as Fe } from "vue-i18n";
|
|
4
|
-
import { p as Ue } from "./index-
|
|
5
|
-
import { c as Ne, C as g, d as Ce, e as $e, D as V, a as A, b as ke, f as x } from "./index-
|
|
4
|
+
import { p as Ue } from "./index-CvX2It1o.mjs";
|
|
5
|
+
import { c as Ne, C as g, d as Ce, e as $e, D as V, a as A, b as ke, f as x } from "./index-D7TvdZ0W.mjs";
|
|
6
6
|
import "xyvcard-itsm";
|
|
7
7
|
const Oe = { class: "title" }, Ae = /* @__PURE__ */ Ee({
|
|
8
8
|
__name: "edit",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance as z, inject as j, ref as _, computed as d, unref as l, readonly as yt, getCurrentScope as vt, onScopeDispose as ht, onMounted as Be, nextTick as Le, watch as Y, isRef as bt, warn as _t, provide as Ct, defineComponent as P, createElementBlock as J, openBlock as T, mergeProps as Ot, renderSlot as k, normalizeClass as N, createVNode as se, Transition as ke, withCtx as U, withDirectives as Ve, createElementVNode as re, normalizeStyle as Ke, createTextVNode as wt, toDisplayString as Re, vShow as He, shallowReactive as St, createBlock as B, createCommentVNode as G, resolveDynamicComponent as Tt, Fragment as Nt, withModifiers as Et, isVNode as Ge, render as he } from "vue";
|
|
2
|
-
import { i as be,
|
|
2
|
+
import { i as be, a as It, w as xt, s as Pt, b as $t } from "./index-CvX2It1o.mjs";
|
|
3
3
|
const Ue = Symbol(), Z = "el", jt = "is-", E = (e, t, n, o, r) => {
|
|
4
4
|
let s = `${e}-${t}`;
|
|
5
5
|
return n && (s += `-${n}`), o && (s += `__${o}`), r && (s += `--${r}`), s;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as M, resolveComponent as i, createElementBlock as C, openBlock as g, Fragment as O, createVNode as l, createElementVNode as r, withCtx as t, unref as s, createBlock as re, createCommentVNode as ue, createTextVNode as V, toDisplayString as L, renderList as ie } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as me } from "vue-i18n";
|
|
4
|
-
import { u as ce } from "./index-
|
|
5
|
-
import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-
|
|
4
|
+
import { u as ce } from "./index-CvX2It1o.mjs";
|
|
5
|
+
import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-D7TvdZ0W.mjs";
|
|
6
6
|
import { useUserStore as be } from "jmash-core";
|
|
7
|
-
import { E as S } from "./el-message-
|
|
7
|
+
import { E as S } from "./el-message-BJAl6Gwu.mjs";
|
|
8
8
|
const Ae = /* @__PURE__ */ ne({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: /* @__PURE__ */ se({
|