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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as
|
|
1
|
+
import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as y, createElementBlock as p, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as F, createTextVNode as r, toDisplayString as u, renderList as g, unref as w, createBlock as M } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { i as H } from "./index-
|
|
4
|
-
import { D as _, i as K, C as W } from "./index-
|
|
3
|
+
import { i as H } from "./index-B5KQp7b0.mjs";
|
|
4
|
+
import { D as _, i as K, C as W } from "./index-DwxrOrrB.mjs";
|
|
5
5
|
import { useUserStoreHook as q, fileApi as G } from "jmash-core";
|
|
6
6
|
import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
7
|
const Q = /* @__PURE__ */ P({
|
|
@@ -17,20 +17,20 @@ const Q = /* @__PURE__ */ P({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(h, { expose:
|
|
21
|
-
const { proxy:
|
|
20
|
+
setup(h, { expose: U }) {
|
|
21
|
+
const { proxy: V } = R(), x = q();
|
|
22
22
|
_.userExtBizDict.useValues();
|
|
23
|
-
const
|
|
24
|
-
K.findFilesList({ actionId:
|
|
25
|
-
var a,
|
|
26
|
-
|
|
27
|
-
const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
), C.value =
|
|
31
|
-
(
|
|
23
|
+
const L = v(), m = Y(h, "modelValue"), B = v({}), T = v([]), $ = v([]), C = v([]), n = v({}), I = h;
|
|
24
|
+
K.findFilesList({ actionId: I.task.businessKey }).then((t) => {
|
|
25
|
+
var a, f;
|
|
26
|
+
T.value = t.data.results;
|
|
27
|
+
const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((f = _.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : f.dictCode) || "";
|
|
28
|
+
$.value = T.value.filter(
|
|
29
|
+
(i) => i.fileSort === s
|
|
30
|
+
), C.value = T.value.filter(
|
|
31
|
+
(i) => i.fileSort === o
|
|
32
32
|
), console.log(C.value, "=>filesList2 ");
|
|
33
|
-
}), H.findById({ temporaryId:
|
|
33
|
+
}), H.findById({ temporaryId: I.task.businessKey }).then(({ data: t }) => {
|
|
34
34
|
n.value = t, n.value.outOrgId = t.outOrgId, j(() => {
|
|
35
35
|
Object.assign(n.value, t);
|
|
36
36
|
});
|
|
@@ -40,28 +40,28 @@ const Q = /* @__PURE__ */ P({
|
|
|
40
40
|
console.log(t, "=> item");
|
|
41
41
|
const s = G.fileUrl(t.fileSrc);
|
|
42
42
|
console.log(s, "=> fileUrl");
|
|
43
|
-
const a = await (await fetch(s)).blob(),
|
|
44
|
-
|
|
43
|
+
const a = await (await fetch(s)).blob(), f = window.URL.createObjectURL(a), i = document.createElement("a");
|
|
44
|
+
i.href = f, i.download = t.fileName || "download", document.body.appendChild(i), i.click();
|
|
45
45
|
} catch {
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
changeModel: () =>
|
|
48
|
+
U({
|
|
49
|
+
changeModel: () => O()
|
|
50
50
|
});
|
|
51
|
-
function
|
|
51
|
+
function O() {
|
|
52
52
|
return m.value && (m.value.selectActions = [
|
|
53
53
|
{ key: "true", value: "同意" },
|
|
54
54
|
{ key: "false", value: "不同意" }
|
|
55
55
|
], m.value.varName = "approved", m.value.module = "", m.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
|
|
56
56
|
var o;
|
|
57
|
-
(o =
|
|
57
|
+
(o = L.value) == null || o.validate((a) => {
|
|
58
58
|
a ? (m.value && (m.value.comment = ""), t(!0)) : s(!1);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
return (t, s) => {
|
|
63
|
-
const o =
|
|
64
|
-
return
|
|
63
|
+
const o = y("el-col"), a = y("el-form-item"), f = y("el-button"), i = y("el-row"), S = y("el-form");
|
|
64
|
+
return c(), p(k, null, [
|
|
65
65
|
l(o, { span: 24 }, {
|
|
66
66
|
default: e(() => s[0] || (s[0] = [
|
|
67
67
|
F("div", { class: "title" }, "内部临时工单", -1)
|
|
@@ -69,15 +69,15 @@ const Q = /* @__PURE__ */ P({
|
|
|
69
69
|
_: 1,
|
|
70
70
|
__: [0]
|
|
71
71
|
}),
|
|
72
|
-
l(
|
|
72
|
+
l(S, {
|
|
73
73
|
ref_key: "taskFormRef",
|
|
74
|
-
ref:
|
|
75
|
-
model:
|
|
74
|
+
ref: L,
|
|
75
|
+
model: B.value,
|
|
76
76
|
"label-width": "150px",
|
|
77
77
|
class: "custom-table-form custom-form"
|
|
78
78
|
}, {
|
|
79
79
|
default: e(() => [
|
|
80
|
-
l(
|
|
80
|
+
l(i, null, {
|
|
81
81
|
default: e(() => [
|
|
82
82
|
l(o, { span: 24 }, {
|
|
83
83
|
default: e(() => [
|
|
@@ -86,7 +86,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
86
86
|
prop: "title"
|
|
87
87
|
}, {
|
|
88
88
|
default: e(() => [
|
|
89
|
-
|
|
89
|
+
r(u(n.value.title), 1)
|
|
90
90
|
]),
|
|
91
91
|
_: 1
|
|
92
92
|
}, 8, ["label"])
|
|
@@ -100,7 +100,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
100
100
|
prop: "content"
|
|
101
101
|
}, {
|
|
102
102
|
default: e(() => [
|
|
103
|
-
|
|
103
|
+
r(u(n.value.content), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["label"])
|
|
@@ -109,25 +109,25 @@ const Q = /* @__PURE__ */ P({
|
|
|
109
109
|
}),
|
|
110
110
|
l(o, { span: 24 }, {
|
|
111
111
|
default: e(() => [
|
|
112
|
-
(
|
|
113
|
-
key:
|
|
114
|
-
label:
|
|
112
|
+
(c(!0), p(k, null, g(w(_).fileTypeDict.values.slice(2, 3), (d, E) => (c(), M(a, {
|
|
113
|
+
key: d.dictCode,
|
|
114
|
+
label: d.dictName
|
|
115
115
|
}, {
|
|
116
116
|
default: e(() => [
|
|
117
|
-
(
|
|
117
|
+
(c(!0), p(k, null, g($.value, (b, D) => (c(), p("div", {
|
|
118
118
|
key: D,
|
|
119
119
|
class: "files-list"
|
|
120
120
|
}, [
|
|
121
|
-
F("span", null, u(
|
|
122
|
-
l(
|
|
121
|
+
F("span", null, u(b.fileName), 1),
|
|
122
|
+
l(f, {
|
|
123
123
|
type: "primary",
|
|
124
124
|
link: "",
|
|
125
125
|
size: "small",
|
|
126
126
|
class: "icon-right",
|
|
127
|
-
onClick: (A) => N(
|
|
127
|
+
onClick: (A) => N(b)
|
|
128
128
|
}, {
|
|
129
129
|
default: e(() => s[1] || (s[1] = [
|
|
130
|
-
|
|
130
|
+
r(" 查看 ")
|
|
131
131
|
])),
|
|
132
132
|
_: 2,
|
|
133
133
|
__: [1]
|
|
@@ -145,7 +145,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
145
145
|
label: t.$t("itsmFlowTemporary.createBy")
|
|
146
146
|
}, {
|
|
147
147
|
default: e(() => [
|
|
148
|
-
|
|
148
|
+
r(u(w(x).user.realName), 1)
|
|
149
149
|
]),
|
|
150
150
|
_: 1
|
|
151
151
|
}, 8, ["label"])
|
|
@@ -159,10 +159,10 @@ const Q = /* @__PURE__ */ P({
|
|
|
159
159
|
prop: "createTime"
|
|
160
160
|
}, {
|
|
161
161
|
default: e(() => {
|
|
162
|
-
var
|
|
162
|
+
var d;
|
|
163
163
|
return [
|
|
164
|
-
|
|
165
|
-
(
|
|
164
|
+
r(u(w(V).$moment.formatDate(
|
|
165
|
+
(d = n.value) == null ? void 0 : d.createTime,
|
|
166
166
|
"YYYY-MM-DD HH:mm:ss"
|
|
167
167
|
)), 1)
|
|
168
168
|
];
|
|
@@ -175,11 +175,11 @@ const Q = /* @__PURE__ */ P({
|
|
|
175
175
|
l(o, { span: 24 }, {
|
|
176
176
|
default: e(() => [
|
|
177
177
|
l(a, {
|
|
178
|
-
label: t.$t("itsmFlowTemporary.
|
|
178
|
+
label: t.$t("itsmFlowTemporary.assignUser"),
|
|
179
179
|
prop: "userId"
|
|
180
180
|
}, {
|
|
181
181
|
default: e(() => [
|
|
182
|
-
|
|
182
|
+
r(u(w(_).userExtBizDict.getValue(n.value.userId)), 1)
|
|
183
183
|
]),
|
|
184
184
|
_: 1
|
|
185
185
|
}, 8, ["label"])
|
|
@@ -193,7 +193,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
193
193
|
prop: "handlingPeriod"
|
|
194
194
|
}, {
|
|
195
195
|
default: e(() => [
|
|
196
|
-
|
|
196
|
+
r(u(n.value.handlingPeriod), 1)
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
}, 8, ["label"])
|
|
@@ -207,7 +207,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
207
207
|
prop: "finishDate"
|
|
208
208
|
}, {
|
|
209
209
|
default: e(() => [
|
|
210
|
-
|
|
210
|
+
r(u(n.value.finishDate), 1)
|
|
211
211
|
]),
|
|
212
212
|
_: 1
|
|
213
213
|
}, 8, ["label"])
|
|
@@ -221,7 +221,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
221
221
|
prop: "completion"
|
|
222
222
|
}, {
|
|
223
223
|
default: e(() => [
|
|
224
|
-
|
|
224
|
+
r(u(n.value.completion), 1)
|
|
225
225
|
]),
|
|
226
226
|
_: 1
|
|
227
227
|
}, 8, ["label"])
|
|
@@ -230,25 +230,25 @@ const Q = /* @__PURE__ */ P({
|
|
|
230
230
|
}),
|
|
231
231
|
l(o, { span: 24 }, {
|
|
232
232
|
default: e(() => [
|
|
233
|
-
(
|
|
234
|
-
key:
|
|
235
|
-
label:
|
|
233
|
+
(c(!0), p(k, null, g(w(_).fileTypeDict.values.slice(3, 4), (d, E) => (c(), M(a, {
|
|
234
|
+
key: d.dictCode,
|
|
235
|
+
label: d.dictName
|
|
236
236
|
}, {
|
|
237
237
|
default: e(() => [
|
|
238
|
-
(
|
|
238
|
+
(c(!0), p(k, null, g(C.value, (b, D) => (c(), p("div", {
|
|
239
239
|
key: D,
|
|
240
240
|
class: "files-list"
|
|
241
241
|
}, [
|
|
242
|
-
F("span", null, u(
|
|
243
|
-
l(
|
|
242
|
+
F("span", null, u(b.fileName), 1),
|
|
243
|
+
l(f, {
|
|
244
244
|
type: "primary",
|
|
245
245
|
link: "",
|
|
246
246
|
size: "small",
|
|
247
247
|
class: "icon-right",
|
|
248
|
-
onClick: (A) => N(
|
|
248
|
+
onClick: (A) => N(b)
|
|
249
249
|
}, {
|
|
250
250
|
default: e(() => s[2] || (s[2] = [
|
|
251
|
-
|
|
251
|
+
r(" 查看 ")
|
|
252
252
|
])),
|
|
253
253
|
_: 2,
|
|
254
254
|
__: [2]
|
|
@@ -269,7 +269,7 @@ const Q = /* @__PURE__ */ P({
|
|
|
269
269
|
], 64);
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
-
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-
|
|
272
|
+
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-0b2c3fff"]]);
|
|
273
273
|
export {
|
|
274
274
|
ae as default
|
|
275
275
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as K, mergeModels as j, ref as _, useModel as q, watch as W, resolveComponent as b, createElementBlock as F, openBlock as m, Fragment as $, createVNode as t, withCtx as l, createElementVNode as f, createBlock as S, createCommentVNode as D, createTextVNode as n, toDisplayString as s, unref as v, renderList as C } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as G } from "vue-i18n";
|
|
4
|
-
import { D as d, C as H, i as J } from "./index-
|
|
5
|
-
import { i as Q, a as X } from "./index-
|
|
4
|
+
import { D as d, C as H, i as J } from "./index-DwxrOrrB.mjs";
|
|
5
|
+
import { i as Q, a as X } from "./index-DWAcpt7l.mjs";
|
|
6
6
|
import { fileApi as Y } from "jmash-core";
|
|
7
7
|
import { rbacApi as Z } from "jmash-rbac";
|
|
8
8
|
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ie, mergeModels as ue, ref as c, useModel as de, reactive as
|
|
1
|
+
import { defineComponent as ie, mergeModels as ue, ref as c, useModel as de, reactive as N, computed as B, watch as A, nextTick as ne, resolveComponent as d, createElementBlock as p, openBlock as n, Fragment as g, createVNode as o, withCtx as a, createElementVNode as me, unref as s, renderList as _, createBlock as h, createCommentVNode as pe, createTextVNode as P, toDisplayString as V } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as fe } from "vue-i18n";
|
|
4
|
-
import { i as Y } from "./index-
|
|
5
|
-
import { D as I, O as z, C as F, i as ce } from "./index-
|
|
4
|
+
import { i as Y } from "./index-B5KQp7b0.mjs";
|
|
5
|
+
import { D as I, O as z, C as F, i as ce } from "./index-DwxrOrrB.mjs";
|
|
6
6
|
import { u as ge } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { sysUserExtApi as ye } from "xyvcard-itsmsys";
|
|
8
8
|
import { useUserStoreHook as Ie } from "jmash-core";
|
|
@@ -20,48 +20,48 @@ const be = /* @__PURE__ */ ie({
|
|
|
20
20
|
modelModifiers: {}
|
|
21
21
|
}),
|
|
22
22
|
emits: ["update:modelValue"],
|
|
23
|
-
setup(
|
|
24
|
-
const j = Ie(), { t: f } = fe(),
|
|
23
|
+
setup(O, { expose: E }) {
|
|
24
|
+
const j = Ie(), { t: f } = fe(), k = c();
|
|
25
25
|
I.itemBizLayDict.useValues();
|
|
26
|
-
const m = de(
|
|
27
|
-
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
let
|
|
26
|
+
const m = de(O, "modelValue"), q = new z({ orgType: F.HALL });
|
|
27
|
+
q.useValues();
|
|
28
|
+
const R = new z({ orgType: F.OUTSOURCE });
|
|
29
|
+
R.useValues(), I.userExtBizDict.useValues();
|
|
30
|
+
const $ = c((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
|
|
31
|
+
let l = N({
|
|
32
32
|
requestId: Math.random() * 10 + "",
|
|
33
33
|
files: [],
|
|
34
34
|
temporaryType: F.External
|
|
35
35
|
});
|
|
36
|
-
const
|
|
37
|
-
(
|
|
36
|
+
const C = B(() => l.govOrgId ? I.itemBizLayDict.values.filter(
|
|
37
|
+
(t) => t.orgId === l.govOrgId
|
|
38
38
|
) : []);
|
|
39
39
|
function H(e) {
|
|
40
|
-
|
|
40
|
+
l.itemId = void 0;
|
|
41
41
|
}
|
|
42
42
|
const v = c([]), y = c([]);
|
|
43
43
|
ye.findList().then((e) => {
|
|
44
44
|
v.value = e.data.results;
|
|
45
|
-
}),
|
|
46
|
-
[v, () =>
|
|
47
|
-
([e,
|
|
48
|
-
e &&
|
|
49
|
-
(i) => i.orgId ===
|
|
45
|
+
}), A(
|
|
46
|
+
[v, () => l.userId],
|
|
47
|
+
([e, t]) => {
|
|
48
|
+
e && t && l.outOrgId && (y.value = e.filter(
|
|
49
|
+
(i) => i.orgId === l.outOrgId
|
|
50
50
|
));
|
|
51
51
|
},
|
|
52
52
|
{ immediate: !0 }
|
|
53
|
-
),
|
|
54
|
-
() =>
|
|
53
|
+
), A(
|
|
54
|
+
() => l.outOrgId,
|
|
55
55
|
(e) => {
|
|
56
56
|
e && Array.isArray(v.value) ? (y.value = v.value.filter(
|
|
57
|
-
(
|
|
58
|
-
),
|
|
59
|
-
(
|
|
60
|
-
) && (
|
|
57
|
+
(t) => t.orgId === e
|
|
58
|
+
), l.userId && !y.value.some(
|
|
59
|
+
(t) => t.userId === l.userId
|
|
60
|
+
) && (l.userId = "")) : (y.value = [], l.userId = "");
|
|
61
61
|
},
|
|
62
62
|
{ immediate: !0 }
|
|
63
63
|
);
|
|
64
|
-
const T = c(!1),
|
|
64
|
+
const T = c(!1), D = c(), K = N({
|
|
65
65
|
govOrgId: [
|
|
66
66
|
{
|
|
67
67
|
required: !0,
|
|
@@ -104,38 +104,38 @@ const be = /* @__PURE__ */ ie({
|
|
|
104
104
|
trigger: "change"
|
|
105
105
|
}
|
|
106
106
|
]
|
|
107
|
-
}),
|
|
107
|
+
}), U = O, W = B(() => {
|
|
108
108
|
const e = I.fileTypeDict.values.slice(2, 3)[0];
|
|
109
109
|
return e ? e.dictCode : "temporary_file";
|
|
110
110
|
});
|
|
111
111
|
function G() {
|
|
112
|
-
T.value = !0,
|
|
112
|
+
T.value = !0, D.value.clearFileList();
|
|
113
113
|
}
|
|
114
114
|
function J(e) {
|
|
115
|
-
const
|
|
115
|
+
const t = {
|
|
116
116
|
fileName: e.name,
|
|
117
117
|
fileId: e.response.fileId,
|
|
118
118
|
fileSort: W.value,
|
|
119
119
|
fileSrc: ""
|
|
120
120
|
};
|
|
121
|
-
|
|
121
|
+
l.files || (l.files = []), l.files.push(t), l.files = [...new Set(l.files)];
|
|
122
122
|
}
|
|
123
123
|
function Q(e) {
|
|
124
|
-
var
|
|
125
|
-
(
|
|
124
|
+
var t;
|
|
125
|
+
(t = l.files) == null || t.splice(e, 1);
|
|
126
126
|
}
|
|
127
|
-
Y.findById({ temporaryId:
|
|
128
|
-
|
|
129
|
-
Object.assign(
|
|
127
|
+
Y.findById({ temporaryId: U.task.businessKey }).then(({ data: e }) => {
|
|
128
|
+
l.outOrgId = e.outOrgId, ne(() => {
|
|
129
|
+
Object.assign(l, e), X();
|
|
130
130
|
});
|
|
131
131
|
});
|
|
132
132
|
function X() {
|
|
133
|
-
ce.findFilesList({ actionId:
|
|
134
|
-
e.results && Array.isArray(e.results) && (
|
|
133
|
+
ce.findFilesList({ actionId: U.task.businessKey }).then(({ data: e }) => {
|
|
134
|
+
console.log(e, "=> data22"), e.results && Array.isArray(e.results) && (l.files = e.results.map((t) => {
|
|
135
135
|
let i = "";
|
|
136
|
-
return
|
|
137
|
-
fileName:
|
|
138
|
-
fileId:
|
|
136
|
+
return t.fileName && (i = t.fileSort || t.type || ""), {
|
|
137
|
+
fileName: t.fileName || "",
|
|
138
|
+
fileId: t.fileId || "",
|
|
139
139
|
fileSort: i
|
|
140
140
|
};
|
|
141
141
|
}));
|
|
@@ -148,29 +148,29 @@ const be = /* @__PURE__ */ ie({
|
|
|
148
148
|
return m.value && (m.value.selectActions = [
|
|
149
149
|
{ key: "true", value: "同意" },
|
|
150
150
|
{ key: "false", value: "不同意" }
|
|
151
|
-
], m.value.varName = "approved", m.value.module = "", m.value.module = F.MODULE_ITSMFLOW), new Promise((e,
|
|
151
|
+
], m.value.varName = "approved", m.value.module = "", m.value.module = F.MODULE_ITSMFLOW), new Promise((e, t) => {
|
|
152
152
|
var i;
|
|
153
|
-
(i =
|
|
154
|
-
b ? (m.value && (m.value.comment = ""),
|
|
155
|
-
u.status === 200 ? e(!0) :
|
|
156
|
-
})) :
|
|
153
|
+
(i = k.value) == null || i.validate((b) => {
|
|
154
|
+
b ? (m.value && (m.value.comment = ""), l.requestId = Math.random() * 10 + "", Y.create(l).then((u) => {
|
|
155
|
+
u.status === 200 ? e(!0) : t(!1);
|
|
156
|
+
})) : t(!1);
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
return (e,
|
|
161
|
-
const i = d("el-col"), b = d("jmash-select"), u = d("el-form-item"),
|
|
160
|
+
return (e, t) => {
|
|
161
|
+
const i = d("el-col"), b = d("jmash-select"), u = d("el-form-item"), S = d("el-option"), L = d("el-select"), w = d("el-input"), x = d("el-date-picker"), ee = d("el-button"), le = d("CircleClose"), te = d("el-icon"), oe = d("el-row"), re = d("el-form"), ae = d("jmash-multi-upload");
|
|
162
162
|
return n(), p(g, null, [
|
|
163
163
|
o(i, { span: 24 }, {
|
|
164
|
-
default: a(() =>
|
|
165
|
-
me("div", { class: "title" }, "
|
|
164
|
+
default: a(() => t[9] || (t[9] = [
|
|
165
|
+
me("div", { class: "title" }, "外部临时工单", -1)
|
|
166
166
|
])),
|
|
167
167
|
_: 1,
|
|
168
168
|
__: [9]
|
|
169
169
|
}),
|
|
170
170
|
o(re, {
|
|
171
171
|
ref_key: "taskFormRef",
|
|
172
|
-
ref:
|
|
173
|
-
model: s(
|
|
172
|
+
ref: k,
|
|
173
|
+
model: s(l),
|
|
174
174
|
"label-width": "150px",
|
|
175
175
|
rules: K,
|
|
176
176
|
class: "custom-table-form custom-form"
|
|
@@ -186,10 +186,10 @@ const be = /* @__PURE__ */ ie({
|
|
|
186
186
|
}, {
|
|
187
187
|
default: a(() => [
|
|
188
188
|
o(b, {
|
|
189
|
-
modelValue: s(
|
|
190
|
-
"onUpdate:modelValue":
|
|
189
|
+
modelValue: s(l).govOrgId,
|
|
190
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => s(l).govOrgId = r),
|
|
191
191
|
placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
|
|
192
|
-
data: s(
|
|
192
|
+
data: s(q).values,
|
|
193
193
|
clearable: "",
|
|
194
194
|
filterable: "",
|
|
195
195
|
class: "w-full",
|
|
@@ -208,17 +208,17 @@ const be = /* @__PURE__ */ ie({
|
|
|
208
208
|
prop: "itemId"
|
|
209
209
|
}, {
|
|
210
210
|
default: a(() => [
|
|
211
|
-
o(
|
|
212
|
-
modelValue: s(
|
|
213
|
-
"onUpdate:modelValue":
|
|
211
|
+
o(L, {
|
|
212
|
+
modelValue: s(l).itemId,
|
|
213
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => s(l).itemId = r),
|
|
214
214
|
placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
|
|
215
|
-
data:
|
|
215
|
+
data: C.value,
|
|
216
216
|
clearable: "",
|
|
217
217
|
filterable: "",
|
|
218
|
-
disabled: !s(
|
|
218
|
+
disabled: !s(l).govOrgId
|
|
219
219
|
}, {
|
|
220
220
|
default: a(() => [
|
|
221
|
-
(n(!0), p(g, null, _(
|
|
221
|
+
(n(!0), p(g, null, _(C.value, (r) => (n(), h(S, {
|
|
222
222
|
key: r.key,
|
|
223
223
|
value: r.key,
|
|
224
224
|
label: r.value
|
|
@@ -259,8 +259,8 @@ const be = /* @__PURE__ */ ie({
|
|
|
259
259
|
}, {
|
|
260
260
|
default: a(() => [
|
|
261
261
|
o(x, {
|
|
262
|
-
modelValue:
|
|
263
|
-
"onUpdate:modelValue":
|
|
262
|
+
modelValue: $.value,
|
|
263
|
+
"onUpdate:modelValue": t[2] || (t[2] = (r) => $.value = r),
|
|
264
264
|
type: "date",
|
|
265
265
|
placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
|
|
266
266
|
format: "YYYY-MM-DD",
|
|
@@ -283,8 +283,8 @@ const be = /* @__PURE__ */ ie({
|
|
|
283
283
|
}, {
|
|
284
284
|
default: a(() => [
|
|
285
285
|
o(w, {
|
|
286
|
-
modelValue: s(
|
|
287
|
-
"onUpdate:modelValue":
|
|
286
|
+
modelValue: s(l).title,
|
|
287
|
+
"onUpdate:modelValue": t[3] || (t[3] = (r) => s(l).title = r),
|
|
288
288
|
placeholder: e.$t("itsmFlowTemporary.titleRequired"),
|
|
289
289
|
"show-word-limit": "",
|
|
290
290
|
clearable: ""
|
|
@@ -303,8 +303,8 @@ const be = /* @__PURE__ */ ie({
|
|
|
303
303
|
}, {
|
|
304
304
|
default: a(() => [
|
|
305
305
|
o(w, {
|
|
306
|
-
modelValue: s(
|
|
307
|
-
"onUpdate:modelValue":
|
|
306
|
+
modelValue: s(l).content,
|
|
307
|
+
"onUpdate:modelValue": t[4] || (t[4] = (r) => s(l).content = r),
|
|
308
308
|
placeholder: e.$t("itsmFlowTemporary.contentRequired"),
|
|
309
309
|
"show-word-limit": "",
|
|
310
310
|
clearable: ""
|
|
@@ -330,24 +330,24 @@ const be = /* @__PURE__ */ ie({
|
|
|
330
330
|
onClick: G
|
|
331
331
|
}, {
|
|
332
332
|
default: a(() => [
|
|
333
|
-
|
|
333
|
+
P(V(e.$t("common.uploadFiles")), 1)
|
|
334
334
|
]),
|
|
335
335
|
_: 1
|
|
336
336
|
}, 8, ["icon"])
|
|
337
337
|
]),
|
|
338
338
|
_: 2
|
|
339
339
|
}, 1032, ["label"]),
|
|
340
|
-
s(
|
|
340
|
+
s(l).files && s(l).files.length > 0 ? (n(), h(u, { key: 0 }, {
|
|
341
341
|
default: a(() => [
|
|
342
|
-
(n(!0), p(g, null, _(s(
|
|
343
|
-
key:
|
|
342
|
+
(n(!0), p(g, null, _(s(l).files, (se, M) => (n(), p("div", {
|
|
343
|
+
key: M,
|
|
344
344
|
class: "files-list"
|
|
345
345
|
}, [
|
|
346
|
-
|
|
346
|
+
P(V(s(l).files) + " " + V(se.fileName) + " ", 1),
|
|
347
347
|
o(te, {
|
|
348
348
|
size: "16",
|
|
349
349
|
class: "icon-right",
|
|
350
|
-
onClick: (_e) => Q(
|
|
350
|
+
onClick: (_e) => Q(M)
|
|
351
351
|
}, {
|
|
352
352
|
default: a(() => [
|
|
353
353
|
o(le)
|
|
@@ -370,10 +370,10 @@ const be = /* @__PURE__ */ ie({
|
|
|
370
370
|
}, {
|
|
371
371
|
default: a(() => [
|
|
372
372
|
o(b, {
|
|
373
|
-
modelValue: s(
|
|
374
|
-
"onUpdate:modelValue":
|
|
373
|
+
modelValue: s(l).outOrgId,
|
|
374
|
+
"onUpdate:modelValue": t[5] || (t[5] = (r) => s(l).outOrgId = r),
|
|
375
375
|
placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
|
|
376
|
-
data: s(
|
|
376
|
+
data: s(R).values,
|
|
377
377
|
clearable: "",
|
|
378
378
|
filterable: "",
|
|
379
379
|
class: "w-full"
|
|
@@ -391,16 +391,16 @@ const be = /* @__PURE__ */ ie({
|
|
|
391
391
|
prop: "userId"
|
|
392
392
|
}, {
|
|
393
393
|
default: a(() => [
|
|
394
|
-
o(
|
|
395
|
-
modelValue: s(
|
|
396
|
-
"onUpdate:modelValue":
|
|
394
|
+
o(L, {
|
|
395
|
+
modelValue: s(l).userId,
|
|
396
|
+
"onUpdate:modelValue": t[6] || (t[6] = (r) => s(l).userId = r),
|
|
397
397
|
placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
|
|
398
398
|
"show-word-limit": "",
|
|
399
399
|
clearable: "",
|
|
400
400
|
class: "w-full"
|
|
401
401
|
}, {
|
|
402
402
|
default: a(() => [
|
|
403
|
-
(n(!0), p(g, null, _(y.value, (r) => (n(), h(
|
|
403
|
+
(n(!0), p(g, null, _(y.value, (r) => (n(), h(S, {
|
|
404
404
|
key: r.userId,
|
|
405
405
|
value: r.userId,
|
|
406
406
|
label: r.realName
|
|
@@ -422,8 +422,8 @@ const be = /* @__PURE__ */ ie({
|
|
|
422
422
|
}, {
|
|
423
423
|
default: a(() => [
|
|
424
424
|
o(w, {
|
|
425
|
-
modelValue: s(
|
|
426
|
-
"onUpdate:modelValue":
|
|
425
|
+
modelValue: s(l).handlingPeriod,
|
|
426
|
+
"onUpdate:modelValue": t[7] || (t[7] = (r) => s(l).handlingPeriod = r),
|
|
427
427
|
placeholder: e.$t("itsmFlowTemporary.handlingPeriodRequired"),
|
|
428
428
|
"show-word-limit": "",
|
|
429
429
|
clearable: ""
|
|
@@ -442,15 +442,15 @@ const be = /* @__PURE__ */ ie({
|
|
|
442
442
|
}, 8, ["model", "rules"]),
|
|
443
443
|
o(ae, {
|
|
444
444
|
ref_key: "uploadRef",
|
|
445
|
-
ref:
|
|
445
|
+
ref: D,
|
|
446
446
|
modelValue: T.value,
|
|
447
|
-
"onUpdate:modelValue":
|
|
447
|
+
"onUpdate:modelValue": t[8] || (t[8] = (r) => T.value = r),
|
|
448
448
|
onUploadFileList: J
|
|
449
449
|
}, null, 8, ["modelValue"])
|
|
450
450
|
], 64);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
}), Ce = /* @__PURE__ */ ve(be, [["__scopeId", "data-v-
|
|
453
|
+
}), Ce = /* @__PURE__ */ ve(be, [["__scopeId", "data-v-54b42478"]]);
|
|
454
454
|
export {
|
|
455
455
|
Ce as default
|
|
456
456
|
};
|