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
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { c } from "./_commonjsHelpers-BVfed4GL.mjs";
|
|
2
|
+
var E = { exports: {} };
|
|
3
|
+
(function(h, j) {
|
|
4
|
+
(function(p, i) {
|
|
5
|
+
i();
|
|
6
|
+
})(c, function() {
|
|
6
7
|
function p(e, t) {
|
|
7
8
|
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
+
function i(e, t, r) {
|
|
10
11
|
var n = new XMLHttpRequest();
|
|
11
12
|
n.open("GET", e), n.responseType = "blob", n.onload = function() {
|
|
12
|
-
|
|
13
|
+
u(n.response, t, r);
|
|
13
14
|
}, n.onerror = function() {
|
|
14
15
|
console.error("could not download file");
|
|
15
16
|
}, n.send();
|
|
@@ -23,7 +24,7 @@ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
23
24
|
}
|
|
24
25
|
return 200 <= t.status && 299 >= t.status;
|
|
25
26
|
}
|
|
26
|
-
function
|
|
27
|
+
function l(e) {
|
|
27
28
|
try {
|
|
28
29
|
e.dispatchEvent(new MouseEvent("click"));
|
|
29
30
|
} catch {
|
|
@@ -31,32 +32,32 @@ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
31
32
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof
|
|
35
|
-
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t,
|
|
35
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof c == "object" && c.global === c ? c : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), u = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
36
|
+
} : "download" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {
|
|
36
37
|
var n = a.URL || a.webkitURL, o = document.createElement("a");
|
|
37
|
-
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ?
|
|
38
|
+
t = t || e.name || "download", o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin === location.origin ? l(o) : v(o.href) ? i(e, t, r) : l(o, o.target = "_blank")) : (o.href = n.createObjectURL(e), setTimeout(function() {
|
|
38
39
|
n.revokeObjectURL(o.href);
|
|
39
40
|
}, 4e4), setTimeout(function() {
|
|
40
|
-
|
|
41
|
+
l(o);
|
|
41
42
|
}, 0));
|
|
42
|
-
} : "msSaveOrOpenBlob" in navigator ? function(e, t,
|
|
43
|
-
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e,
|
|
44
|
-
else if (v(e))
|
|
43
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
44
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(p(e, r), t);
|
|
45
|
+
else if (v(e)) i(e, t, r);
|
|
45
46
|
else {
|
|
46
47
|
var n = document.createElement("a");
|
|
47
48
|
n.href = e, n.target = "_blank", setTimeout(function() {
|
|
48
|
-
|
|
49
|
+
l(n);
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
|
-
} : function(e, t,
|
|
52
|
-
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return
|
|
53
|
-
var o = e.type === "application/octet-stream",
|
|
54
|
-
if ((m || o &&
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
var s =
|
|
52
|
+
} : function(e, t, r, n) {
|
|
53
|
+
if (n = n || open("", "_blank"), n && (n.document.title = n.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
54
|
+
var o = e.type === "application/octet-stream", b = /constructor/i.test(a.HTMLElement) || a.safari, m = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
55
|
+
if ((m || o && b || w) && typeof FileReader < "u") {
|
|
56
|
+
var f = new FileReader();
|
|
57
|
+
f.onloadend = function() {
|
|
58
|
+
var s = f.result;
|
|
58
59
|
s = m ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), n ? n.location.href = s : location = s, n = null;
|
|
59
|
-
},
|
|
60
|
+
}, f.readAsDataURL(e);
|
|
60
61
|
} else {
|
|
61
62
|
var y = a.URL || a.webkitURL, d = y.createObjectURL(e);
|
|
62
63
|
n ? n.location = d : location.href = d, n = null, setTimeout(function() {
|
|
@@ -64,10 +65,10 @@ var l = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
64
65
|
}, 4e4);
|
|
65
66
|
}
|
|
66
67
|
});
|
|
67
|
-
a.saveAs =
|
|
68
|
+
a.saveAs = u.saveAs = u, h.exports = u;
|
|
68
69
|
});
|
|
69
|
-
})(
|
|
70
|
-
var
|
|
70
|
+
})(E);
|
|
71
|
+
var R = E.exports;
|
|
71
72
|
export {
|
|
72
|
-
|
|
73
|
+
R as F
|
|
73
74
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
+
function f(e) {
|
|
3
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
+
}
|
|
5
|
+
function l(e) {
|
|
6
|
+
if (e.__esModule) return e;
|
|
7
|
+
var r = e.default;
|
|
8
|
+
if (typeof r == "function") {
|
|
9
|
+
var t = function o() {
|
|
10
|
+
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
t.prototype = r.prototype;
|
|
13
|
+
} else t = {};
|
|
14
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
15
|
+
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
16
|
+
Object.defineProperty(t, o, n.get ? n : {
|
|
17
|
+
enumerable: !0,
|
|
18
|
+
get: function() {
|
|
19
|
+
return e[o];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}), t;
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
f as a,
|
|
26
|
+
u as c,
|
|
27
|
+
l as g
|
|
28
|
+
};
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
import { defineComponent as re, mergeModels as U, ref as f, reactive as S, useModel as ae, computed as se, nextTick as ie, resolveComponent as i, createBlock as N, openBlock as c, withCtx as o, createVNode as t, unref as s, createElementBlock as w, Fragment as b, renderList as M, createCommentVNode as ne, createTextVNode as y, toDisplayString as g, createElementVNode as ue } from "vue";
|
|
2
|
+
import { ElMessage as O } from "element-plus";
|
|
3
|
+
import { useI18n as me } from "vue-i18n";
|
|
4
|
+
import { i as V } from "./index-o0oTSdUL.mjs";
|
|
5
|
+
import { U as de, C as Y, D as I, i as pe } from "./index-D7TvdZ0W.mjs";
|
|
6
|
+
import { u as ce } from "./index-CvX2It1o.mjs";
|
|
7
|
+
import { useUserStoreHook as fe } from "jmash-core";
|
|
8
|
+
import { _ as ye } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const ge = { class: "title" }, _e = /* @__PURE__ */ re({
|
|
10
|
+
__name: "edit",
|
|
11
|
+
props: /* @__PURE__ */ U({
|
|
12
|
+
entityKey: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => {
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}, {
|
|
18
|
+
modelValue: { type: Boolean },
|
|
19
|
+
modelModifiers: {}
|
|
20
|
+
}),
|
|
21
|
+
emits: /* @__PURE__ */ U(["refresh"], ["update:modelValue"]),
|
|
22
|
+
setup(q, { emit: j }) {
|
|
23
|
+
const A = fe(), { t: u } = me(), F = new de({ userType: Y.COMPANY_MANAGER });
|
|
24
|
+
F.useValues(), console.log("userIdList values:", F.values);
|
|
25
|
+
const T = f(), C = f((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
26
|
+
let r = S({
|
|
27
|
+
requestId: Math.random() * 10 + "",
|
|
28
|
+
files: [],
|
|
29
|
+
temporaryType: Y.Internal
|
|
30
|
+
});
|
|
31
|
+
const h = f(!1), k = f(), E = S({
|
|
32
|
+
govOrgId: [
|
|
33
|
+
{
|
|
34
|
+
required: !0,
|
|
35
|
+
message: u("itsmFlowTemporary.govOrgIdRequired"),
|
|
36
|
+
trigger: "change"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
itemId: [
|
|
40
|
+
{
|
|
41
|
+
required: !0,
|
|
42
|
+
message: u("itsmFlowTemporary.itemIdRequired"),
|
|
43
|
+
trigger: "change"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
title: [
|
|
47
|
+
{
|
|
48
|
+
required: !0,
|
|
49
|
+
message: u("itsmFlowTemporary.titleRequired"),
|
|
50
|
+
trigger: "change"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
temporaryType: [
|
|
54
|
+
{
|
|
55
|
+
required: !0,
|
|
56
|
+
message: u("itsmFlowTemporary.temporaryTypeRequired"),
|
|
57
|
+
trigger: "change"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
outOrgId: [
|
|
61
|
+
{
|
|
62
|
+
required: !0,
|
|
63
|
+
message: u("itsmFlowTemporary.outOrgIdRequired"),
|
|
64
|
+
trigger: "change"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
userId: [
|
|
68
|
+
{
|
|
69
|
+
required: !0,
|
|
70
|
+
message: u("itsmFlowTemporary.userIdRequired"),
|
|
71
|
+
trigger: "change"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}), p = ae(q, "modelValue"), v = q, L = se(() => {
|
|
75
|
+
const e = I.fileTypeDict.values.slice(2, 3)[0];
|
|
76
|
+
return e ? e.dictCode : "temporary_file";
|
|
77
|
+
});
|
|
78
|
+
function B() {
|
|
79
|
+
h.value = !0, k.value.clearFileList();
|
|
80
|
+
}
|
|
81
|
+
function P(e) {
|
|
82
|
+
const l = {
|
|
83
|
+
fileName: e.name,
|
|
84
|
+
fileId: e.response.fileId,
|
|
85
|
+
fileSort: L.value,
|
|
86
|
+
fileSrc: ""
|
|
87
|
+
};
|
|
88
|
+
r.files || (r.files = []), r.files.push(l), r.files = [...new Set(r.files)];
|
|
89
|
+
}
|
|
90
|
+
console.log(I.fileTypeDict.values.slice(2, 3)[0], "=>fileTypeDict ");
|
|
91
|
+
function K(e) {
|
|
92
|
+
var l;
|
|
93
|
+
(l = r.files) == null || l.splice(e, 1);
|
|
94
|
+
}
|
|
95
|
+
const R = j, z = Object.keys(v.entityKey);
|
|
96
|
+
f(z.length >= 1).value && V.findById(v.entityKey).then(({ data: e }) => {
|
|
97
|
+
r.outOrgId = e.outOrgId, ie(() => {
|
|
98
|
+
Object.assign(r, e), G();
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
function G() {
|
|
102
|
+
pe.findFilesList({ actionId: v.entityKey.temporaryId }).then(({ data: e }) => {
|
|
103
|
+
e.results && Array.isArray(e.results) && (r.files = e.results.map((l) => {
|
|
104
|
+
let n = "";
|
|
105
|
+
return l.fileName && (n = l.fileSort || l.type || ""), {
|
|
106
|
+
fileName: l.fileName || "",
|
|
107
|
+
fileId: l.fileId || "",
|
|
108
|
+
fileSort: n,
|
|
109
|
+
fileSrc: l.fileSrc || ""
|
|
110
|
+
};
|
|
111
|
+
}));
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const H = async () => {
|
|
115
|
+
var e;
|
|
116
|
+
await ((e = T.value) == null ? void 0 : e.validate(async (l) => {
|
|
117
|
+
l && V.create(r).then((n) => {
|
|
118
|
+
n.status === 200 && (O({
|
|
119
|
+
message: u("common.submitSuccess"),
|
|
120
|
+
type: "success"
|
|
121
|
+
}), p.value = !1, R("refresh", !0));
|
|
122
|
+
});
|
|
123
|
+
}));
|
|
124
|
+
}, J = async () => {
|
|
125
|
+
var e;
|
|
126
|
+
await ((e = T.value) == null ? void 0 : e.validate(async (l) => {
|
|
127
|
+
l && V.submit(r).then((n) => {
|
|
128
|
+
n.status === 200 && (O({
|
|
129
|
+
message: u("common.submitSuccess"),
|
|
130
|
+
type: "success"
|
|
131
|
+
}), p.value = !1, R("refresh", !0));
|
|
132
|
+
});
|
|
133
|
+
}));
|
|
134
|
+
};
|
|
135
|
+
function $() {
|
|
136
|
+
p.value && (p.value = !1);
|
|
137
|
+
}
|
|
138
|
+
return (e, l) => {
|
|
139
|
+
const n = i("el-input"), m = i("el-form-item"), d = i("el-col"), _ = i("el-button"), Q = i("CircleClose"), W = i("el-icon"), X = i("el-date-picker"), Z = i("jmash-select"), x = i("el-row"), ee = i("el-form"), le = i("jmash-multi-upload"), te = i("el-dialog");
|
|
140
|
+
return c(), N(te, {
|
|
141
|
+
modelValue: p.value,
|
|
142
|
+
"onUpdate:modelValue": l[6] || (l[6] = (a) => p.value = a),
|
|
143
|
+
onClose: $
|
|
144
|
+
}, {
|
|
145
|
+
footer: o(() => [
|
|
146
|
+
ue("div", ge, [
|
|
147
|
+
t(_, { onClick: $ }, {
|
|
148
|
+
default: o(() => [
|
|
149
|
+
y(g(e.$t("common.cancel")), 1)
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}),
|
|
153
|
+
t(_, {
|
|
154
|
+
type: "primary",
|
|
155
|
+
onClick: H
|
|
156
|
+
}, {
|
|
157
|
+
default: o(() => [
|
|
158
|
+
y(g(e.$t("itsmFlowEntrustUser.save")), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 1
|
|
161
|
+
}),
|
|
162
|
+
t(_, {
|
|
163
|
+
type: "primary",
|
|
164
|
+
onClick: J
|
|
165
|
+
}, {
|
|
166
|
+
default: o(() => [
|
|
167
|
+
y(g(e.$t("itsmFlowEntrustUser.submit")), 1)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
])
|
|
172
|
+
]),
|
|
173
|
+
default: o(() => [
|
|
174
|
+
t(ee, {
|
|
175
|
+
ref_key: "itsmFlowTemporaryFormRef",
|
|
176
|
+
ref: T,
|
|
177
|
+
model: s(r),
|
|
178
|
+
"label-width": "150px",
|
|
179
|
+
rules: E,
|
|
180
|
+
class: "custom-table-form custom-form"
|
|
181
|
+
}, {
|
|
182
|
+
default: o(() => [
|
|
183
|
+
t(x, null, {
|
|
184
|
+
default: o(() => [
|
|
185
|
+
t(d, { span: 24 }, {
|
|
186
|
+
default: o(() => [
|
|
187
|
+
t(m, {
|
|
188
|
+
label: e.$t("itsmFlowTemporary.title"),
|
|
189
|
+
prop: "title"
|
|
190
|
+
}, {
|
|
191
|
+
default: o(() => [
|
|
192
|
+
t(n, {
|
|
193
|
+
modelValue: s(r).title,
|
|
194
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => s(r).title = a),
|
|
195
|
+
placeholder: e.$t("itsmFlowTemporary.titleRequired"),
|
|
196
|
+
"show-word-limit": "",
|
|
197
|
+
clearable: ""
|
|
198
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}, 8, ["label"])
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}),
|
|
205
|
+
t(d, { span: 24 }, {
|
|
206
|
+
default: o(() => [
|
|
207
|
+
t(m, {
|
|
208
|
+
label: e.$t("itsmFlowTemporary.content"),
|
|
209
|
+
prop: "content"
|
|
210
|
+
}, {
|
|
211
|
+
default: o(() => [
|
|
212
|
+
t(n, {
|
|
213
|
+
modelValue: s(r).content,
|
|
214
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => s(r).content = a),
|
|
215
|
+
placeholder: e.$t("itsmFlowTemporary.contentRequired"),
|
|
216
|
+
"show-word-limit": "",
|
|
217
|
+
clearable: ""
|
|
218
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
219
|
+
]),
|
|
220
|
+
_: 1
|
|
221
|
+
}, 8, ["label"])
|
|
222
|
+
]),
|
|
223
|
+
_: 1
|
|
224
|
+
}),
|
|
225
|
+
t(d, { span: 24 }, {
|
|
226
|
+
default: o(() => [
|
|
227
|
+
(c(!0), w(b, null, M(s(I).fileTypeDict.values.slice(2, 3), (a, Fe) => (c(), w(b, {
|
|
228
|
+
key: a.dictCode
|
|
229
|
+
}, [
|
|
230
|
+
t(m, {
|
|
231
|
+
label: a.dictName
|
|
232
|
+
}, {
|
|
233
|
+
default: o(() => [
|
|
234
|
+
t(_, {
|
|
235
|
+
type: "primary",
|
|
236
|
+
icon: s(ce),
|
|
237
|
+
onClick: B
|
|
238
|
+
}, {
|
|
239
|
+
default: o(() => [
|
|
240
|
+
y(g(e.$t("common.uploadFiles")), 1)
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["icon"])
|
|
244
|
+
]),
|
|
245
|
+
_: 2
|
|
246
|
+
}, 1032, ["label"]),
|
|
247
|
+
s(r).files && s(r).files.length > 0 ? (c(), N(m, { key: 0 }, {
|
|
248
|
+
default: o(() => [
|
|
249
|
+
(c(!0), w(b, null, M(s(r).files, (oe, D) => (c(), w("div", {
|
|
250
|
+
key: D,
|
|
251
|
+
class: "files-list"
|
|
252
|
+
}, [
|
|
253
|
+
y(g(oe.fileName) + " ", 1),
|
|
254
|
+
t(W, {
|
|
255
|
+
size: "16",
|
|
256
|
+
class: "icon-right",
|
|
257
|
+
onClick: (Te) => K(D)
|
|
258
|
+
}, {
|
|
259
|
+
default: o(() => [
|
|
260
|
+
t(Q)
|
|
261
|
+
]),
|
|
262
|
+
_: 2
|
|
263
|
+
}, 1032, ["onClick"])
|
|
264
|
+
]))), 128))
|
|
265
|
+
]),
|
|
266
|
+
_: 2
|
|
267
|
+
}, 1024)) : ne("", !0)
|
|
268
|
+
], 64))), 128))
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
}),
|
|
272
|
+
t(d, { span: 12 }, {
|
|
273
|
+
default: o(() => [
|
|
274
|
+
t(m, {
|
|
275
|
+
label: e.$t("itsmFlowTemporary.createUser")
|
|
276
|
+
}, {
|
|
277
|
+
default: o(() => [
|
|
278
|
+
t(n, {
|
|
279
|
+
value: s(A).user.realName,
|
|
280
|
+
placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
|
|
281
|
+
"show-word-limit": "",
|
|
282
|
+
clearable: "",
|
|
283
|
+
disabled: !0
|
|
284
|
+
}, null, 8, ["value", "placeholder"])
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
}, 8, ["label"])
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
}),
|
|
291
|
+
t(d, { span: 12 }, {
|
|
292
|
+
default: o(() => [
|
|
293
|
+
t(m, {
|
|
294
|
+
label: e.$t("itsmFlowTemporary.createTime"),
|
|
295
|
+
prop: "createTime"
|
|
296
|
+
}, {
|
|
297
|
+
default: o(() => [
|
|
298
|
+
t(X, {
|
|
299
|
+
modelValue: C.value,
|
|
300
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => C.value = a),
|
|
301
|
+
type: "date",
|
|
302
|
+
placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
|
|
303
|
+
format: "YYYY-MM-DD",
|
|
304
|
+
"value-format": "YYYY-MM-DD",
|
|
305
|
+
clearable: !1,
|
|
306
|
+
class: "w-full",
|
|
307
|
+
disabled: !0
|
|
308
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
}, 8, ["label"])
|
|
312
|
+
]),
|
|
313
|
+
_: 1
|
|
314
|
+
}),
|
|
315
|
+
t(d, { span: 24 }, {
|
|
316
|
+
default: o(() => [
|
|
317
|
+
t(m, {
|
|
318
|
+
label: e.$t("itsmFlowTemporary.userId"),
|
|
319
|
+
prop: "userId"
|
|
320
|
+
}, {
|
|
321
|
+
default: o(() => [
|
|
322
|
+
t(Z, {
|
|
323
|
+
modelValue: s(r).userId,
|
|
324
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => s(r).userId = a),
|
|
325
|
+
data: s(F).values,
|
|
326
|
+
placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
|
|
327
|
+
"show-word-limit": "",
|
|
328
|
+
clearable: "",
|
|
329
|
+
class: "w-full"
|
|
330
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["label"])
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
}),
|
|
337
|
+
t(d, { span: 24 }, {
|
|
338
|
+
default: o(() => [
|
|
339
|
+
t(m, {
|
|
340
|
+
label: e.$t("itsmFlowTemporary.handlingPeriod"),
|
|
341
|
+
prop: "handlingPeriod"
|
|
342
|
+
}, {
|
|
343
|
+
default: o(() => [
|
|
344
|
+
t(n, {
|
|
345
|
+
modelValue: s(r).handlingPeriod,
|
|
346
|
+
"onUpdate:modelValue": l[4] || (l[4] = (a) => s(r).handlingPeriod = a),
|
|
347
|
+
placeholder: e.$t("itsmFlowTemporary.handlingPeriodRequired"),
|
|
348
|
+
"show-word-limit": "",
|
|
349
|
+
clearable: ""
|
|
350
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
351
|
+
]),
|
|
352
|
+
_: 1
|
|
353
|
+
}, 8, ["label"])
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
})
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
})
|
|
360
|
+
]),
|
|
361
|
+
_: 1
|
|
362
|
+
}, 8, ["model", "rules"]),
|
|
363
|
+
t(le, {
|
|
364
|
+
ref_key: "uploadRef",
|
|
365
|
+
ref: k,
|
|
366
|
+
modelValue: h.value,
|
|
367
|
+
"onUpdate:modelValue": l[5] || (l[5] = (a) => h.value = a),
|
|
368
|
+
onUploadFileList: P
|
|
369
|
+
}, null, 8, ["modelValue"])
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
}, 8, ["modelValue"]);
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
}), Re = /* @__PURE__ */ ye(_e, [["__scopeId", "data-v-3185250c"]]);
|
|
376
|
+
export {
|
|
377
|
+
Re as default
|
|
378
|
+
};
|