xyvcard-itsm-flow 0.0.24 → 0.0.26
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-X2_RihtX.mjs → FileSaver.min-FLjvLk81.mjs} +1 -1
- package/dist/{edit-fNZ8seSE.mjs → edit-Bj6O1CiV.mjs} +36 -36
- package/dist/{edit-Crp2NJw2.mjs → edit-BoyxGI-j.mjs} +1 -1
- package/dist/{edit-C4uQUyxR.mjs → edit-ChPw3-tf.mjs} +52 -50
- package/dist/{edit-Da4XYqIW.mjs → edit-D--QEJjt.mjs} +1 -1
- package/dist/{edit-B4N5cmbv.mjs → edit-DE30a8nF.mjs} +1 -1
- package/dist/{edit-DSzeVnep.mjs → edit-DVqIGzRC.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs → edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs → edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs → edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs} +1 -1
- package/dist/{index-CPwNJkJK.mjs → index-8wrBAgqn.mjs} +5 -5
- package/dist/{index-B5OVt83d.mjs → index-BCm8GyNp.mjs} +1 -1
- package/dist/{index-C9LdNu0a.mjs → index-BGUJBf1b.mjs} +27 -27
- package/dist/{index-BePwvZ9m.mjs → index-BKReblQ-.mjs} +56 -56
- package/dist/{index-D5jF4kAT.mjs → index-BPbEgv_g.mjs} +114 -114
- package/dist/{index-DNFVieqg.mjs → index-BVKYrCIy.mjs} +1 -1
- package/dist/{index-B0J0xma8.mjs → index-BnpWxtwn.mjs} +3 -3
- package/dist/{index-COvZrTZl.mjs → index-C2_qB4RV.mjs} +1 -1
- package/dist/{index-Dxfj5xxz.mjs → index-C6lbS4Lo.mjs} +2 -2
- package/dist/{index-DnIYE76A.mjs → index-CBlDGIOm.mjs} +37 -37
- package/dist/{index-jzk2C9cj.mjs → index-Cbd9gMMJ.mjs} +21 -21
- package/dist/{index-Dx0mdENP.mjs → index-CcmelnG0.mjs} +32 -32
- package/dist/{index-tcsDF6U0.mjs → index-Cv9EtBjj.mjs} +153 -145
- package/dist/{index-Bmev8P7I.mjs → index-DCrOzptR.mjs} +3 -3
- package/dist/{index-CCnjfMtC.mjs → index-DLKaq1KT.mjs} +3 -3
- package/dist/{index-COT8mjWU.mjs → index-DUeJgFzy.mjs} +2 -2
- package/dist/{index-5rQmXXAD.mjs → index-DWJG5OHB.mjs} +1 -1
- package/dist/{index-sjkYgg27.mjs → index-DeWL7kiw.mjs} +2 -2
- package/dist/{index-CBowEKcR.mjs → index-DgMfinzm.mjs} +2 -2
- package/dist/{index-p1DDr7xl.mjs → index-DrUmzzLs.mjs} +13 -13
- package/dist/{index-k6cvISUf.mjs → index-DvfEpZEP.mjs} +44 -44
- package/dist/{index-CIG303fh.mjs → index-DwPAoK5U.mjs} +121 -118
- package/dist/{index-CWrb0ryZ.mjs → index-DyZhLpPq.mjs} +18 -18
- package/dist/{index-KUs-CZ9C.mjs → index-DyhFuDLH.mjs} +9 -9
- package/dist/{index-BYazmSpv.mjs → index-DymW6iPU.mjs} +3 -3
- package/dist/index-SilwoNEK.mjs +4487 -0
- package/dist/{index-D47Eql1L.mjs → index-jG64vmFA.mjs} +130 -130
- package/dist/{index-DPqaoK4-.mjs → index-r4Tg0GX2.mjs} +3 -3
- package/dist/{index-DVyAUAgy.mjs → index-xWvPJZ-m.mjs} +2 -2
- package/dist/index.mjs +23 -2921
- package/dist/{info-B6nfKr37.mjs → info-9EvTq-5p.mjs} +1 -1
- package/dist/{info-Cd4n1Hxk.mjs → info-BWhsB1Ap.mjs} +1 -1
- package/dist/{info-D90oJO1z.mjs → info-CGUYIYny.mjs} +1 -1
- package/dist/{info-6YpNb7VF.mjs → info-CbJJduEU.mjs} +1 -1
- package/dist/info-CtxVi70h.mjs +4 -0
- package/dist/info-ZeMWMgd3.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs → info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BWMDxwv-.mjs → info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs} +13 -13
- package/dist/{info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs → info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-BM-bddTj.mjs → info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs} +8 -8
- package/dist/{info.vue_vue_type_script_setup_true_lang-CZa5y_q9.mjs → info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs → info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-temporary/index.d.ts +2 -1
- package/dts/api/itsm-flow-temporary/types.d.ts +13 -0
- package/dts/index.d.ts +2 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +6 -6
- package/package.json +1 -1
- package/dist/_commonjsHelpers-BVfed4GL.mjs +0 -28
- package/dist/index-CYJvDaI_.mjs +0 -1371
- package/dist/index-o0oTSdUL.mjs +0 -149
- package/dist/info-XskyQapE.mjs +0 -4
- package/dist/info-a4HMapKP.mjs +0 -4
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as
|
|
1
|
+
import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as P, openBlock as d, createElementVNode as b, createVNode as o, createBlock as h, createCommentVNode as D, withCtx as l, unref as r, withKeys as x, createTextVNode as y, toDisplayString as i, withDirectives as C, isRef as z } from "vue";
|
|
2
2
|
import { useTableHooks as ee } from "jmash-core";
|
|
3
3
|
import { useI18n as te } from "vue-i18n";
|
|
4
|
-
import { i as le } from "./index-
|
|
5
|
-
import ae from "./edit-
|
|
6
|
-
import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { D as p, C as re } from "./index-
|
|
4
|
+
import { i as le } from "./index-C2_qB4RV.mjs";
|
|
5
|
+
import ae from "./edit-ChPw3-tf.mjs";
|
|
6
|
+
import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs";
|
|
7
|
+
import { D as p, C as re } from "./index-DWJG5OHB.mjs";
|
|
8
8
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
-
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"],
|
|
9
|
+
const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], me = ["onClick"], de = /* @__PURE__ */ J({
|
|
10
10
|
__name: "index",
|
|
11
11
|
setup(ce) {
|
|
12
12
|
p.itemBizLayDict.useValues(), p.orgIdBizDict.useValues();
|
|
@@ -14,8 +14,8 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
14
14
|
applyStatus: re.applyStatus.draft
|
|
15
15
|
}), {
|
|
16
16
|
tableHooks: u,
|
|
17
|
-
multipleTableRef:
|
|
18
|
-
queryFormRef:
|
|
17
|
+
multipleTableRef: B,
|
|
18
|
+
queryFormRef: U,
|
|
19
19
|
listLoading: E,
|
|
20
20
|
tableData: N,
|
|
21
21
|
total: V
|
|
@@ -40,7 +40,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
40
40
|
isColumn: !0
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
label: "itsmFlowSpareParts.
|
|
43
|
+
label: "itsmFlowSpareParts.itsmFlowItemId",
|
|
44
44
|
prop: "itemId",
|
|
45
45
|
width: "150",
|
|
46
46
|
sortable: "custom",
|
|
@@ -56,7 +56,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
56
56
|
isColumn: !0
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
label: "itsmFlowSpareParts.
|
|
59
|
+
label: "itsmFlowSpareParts.itsmtype",
|
|
60
60
|
prop: "type",
|
|
61
61
|
width: "105",
|
|
62
62
|
sortable: "custom",
|
|
@@ -72,7 +72,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
72
72
|
isColumn: !0
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
label: "itsmFlowSpareParts.
|
|
75
|
+
label: "itsmFlowSpareParts.itsmFlowBudgetType",
|
|
76
76
|
prop: "budgetType",
|
|
77
77
|
width: "105",
|
|
78
78
|
sortable: "custom",
|
|
@@ -101,17 +101,17 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
101
101
|
isColumn: !0
|
|
102
102
|
}
|
|
103
103
|
]);
|
|
104
|
-
const
|
|
104
|
+
const m = S({
|
|
105
105
|
title: f("common.edit"),
|
|
106
106
|
visible: !1
|
|
107
107
|
});
|
|
108
108
|
S(!1);
|
|
109
109
|
let _ = R({});
|
|
110
110
|
function j() {
|
|
111
|
-
_ = R({}),
|
|
111
|
+
_ = R({}), m.value.title = f("common.add"), m.value.visible = !0;
|
|
112
112
|
}
|
|
113
113
|
function L(a) {
|
|
114
|
-
_.flowSpareId = a.flowSpareId,
|
|
114
|
+
_.flowSpareId = a.flowSpareId, m.value.title = f("common.edit"), m.value.visible = !0;
|
|
115
115
|
}
|
|
116
116
|
const v = S({
|
|
117
117
|
title: f("common.view"),
|
|
@@ -132,12 +132,12 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
132
132
|
return X(() => {
|
|
133
133
|
u.getList();
|
|
134
134
|
}), (a, t) => {
|
|
135
|
-
const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"),
|
|
136
|
-
return
|
|
135
|
+
const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), I = Z("hasPerm");
|
|
136
|
+
return d(), P("div", se, [
|
|
137
137
|
b("div", ie, [
|
|
138
138
|
o(Q, {
|
|
139
139
|
ref_key: "queryFormRef",
|
|
140
|
-
ref:
|
|
140
|
+
ref: U,
|
|
141
141
|
model: n.value,
|
|
142
142
|
inline: !0
|
|
143
143
|
}, {
|
|
@@ -168,7 +168,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
168
168
|
o(c, { span: 6 }, {
|
|
169
169
|
default: l(() => [
|
|
170
170
|
o(g, {
|
|
171
|
-
label: a.$t("itsmFlowSpareParts.
|
|
171
|
+
label: a.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
172
172
|
prop: "itemId"
|
|
173
173
|
}, {
|
|
174
174
|
default: l(() => [
|
|
@@ -212,14 +212,14 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
212
212
|
o(c, { span: 6 }, {
|
|
213
213
|
default: l(() => [
|
|
214
214
|
o(g, {
|
|
215
|
-
label: a.$t("itsmFlowSpareParts.
|
|
215
|
+
label: a.$t("itsmFlowSpareParts.itsmtype"),
|
|
216
216
|
prop: "type"
|
|
217
217
|
}, {
|
|
218
218
|
default: l(() => [
|
|
219
219
|
o(k, {
|
|
220
220
|
modelValue: n.value.type,
|
|
221
221
|
"onUpdate:modelValue": t[3] || (t[3] = (e) => n.value.type = e),
|
|
222
|
-
placeholder: a.$t("itsmFlowSpareParts.
|
|
222
|
+
placeholder: a.$t("itsmFlowSpareParts.itsmtypeRequired"),
|
|
223
223
|
data: r(p).purchaseTypeEnum.values,
|
|
224
224
|
onKeyup: t[4] || (t[4] = x((e) => r(u).handleQuery(), ["enter"])),
|
|
225
225
|
clearable: ""
|
|
@@ -279,7 +279,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
279
279
|
default: l(() => [
|
|
280
280
|
o(c, { span: 17 }, {
|
|
281
281
|
default: l(() => [
|
|
282
|
-
C((
|
|
282
|
+
C((d(), h($, {
|
|
283
283
|
type: "primary",
|
|
284
284
|
onClick: j
|
|
285
285
|
}, {
|
|
@@ -288,7 +288,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
290
|
})), [
|
|
291
|
-
[
|
|
291
|
+
[I, ["reports:itsm_flow_spare_parts:add"]]
|
|
292
292
|
])
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
@@ -311,7 +311,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
311
311
|
})
|
|
312
312
|
]),
|
|
313
313
|
footer: l(() => [
|
|
314
|
-
r(V) > 0 ? (
|
|
314
|
+
r(V) > 0 ? (d(), h(W, {
|
|
315
315
|
key: 0,
|
|
316
316
|
total: r(V),
|
|
317
317
|
"onUpdate:total": t[8] || (t[8] = (e) => z(V) ? V.value = e : null),
|
|
@@ -325,7 +325,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
325
325
|
default: l(() => [
|
|
326
326
|
o(M, {
|
|
327
327
|
ref_key: "multipleTableRef",
|
|
328
|
-
ref:
|
|
328
|
+
ref: B,
|
|
329
329
|
"row-key": "flowSpareId",
|
|
330
330
|
"v-loading": r(E),
|
|
331
331
|
data: r(N),
|
|
@@ -346,29 +346,29 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
346
346
|
b("span", null, i(r(p).itemBizLayDict.getValue(e.data.row.itemId)), 1)
|
|
347
347
|
]),
|
|
348
348
|
operation: l((e) => [
|
|
349
|
-
C((
|
|
349
|
+
C((d(), P("span", {
|
|
350
350
|
class: "el-button-color",
|
|
351
351
|
onClick: (T) => L(e.data.row)
|
|
352
352
|
}, [
|
|
353
353
|
y(i(a.$t("common.edit")), 1)
|
|
354
354
|
], 8, ue)), [
|
|
355
|
-
[
|
|
355
|
+
[I, ["reports:itsm_flow_spare_parts:update"]]
|
|
356
356
|
]),
|
|
357
|
-
C((
|
|
357
|
+
C((d(), P("span", {
|
|
358
358
|
class: "el-button-color dropdown-left",
|
|
359
359
|
onClick: (T) => r(u).deleteRecord(e.data.row)
|
|
360
360
|
}, [
|
|
361
361
|
y(i(a.$t("common.delete")), 1)
|
|
362
362
|
], 8, pe)), [
|
|
363
|
-
[
|
|
363
|
+
[I, ["reports:itsm_flow_spare_parts:delete"]]
|
|
364
364
|
]),
|
|
365
|
-
C((
|
|
365
|
+
C((d(), P("span", {
|
|
366
366
|
class: "el-button-color dropdown-left",
|
|
367
367
|
onClick: (T) => Y(e.data.row)
|
|
368
368
|
}, [
|
|
369
369
|
y(i(a.$t("common.view")), 1)
|
|
370
|
-
], 8,
|
|
371
|
-
[
|
|
370
|
+
], 8, me)), [
|
|
371
|
+
[I, ["itsmflow:itsm_flow_entrust:view"]]
|
|
372
372
|
])
|
|
373
373
|
]),
|
|
374
374
|
_: 1
|
|
@@ -376,16 +376,16 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
376
376
|
]),
|
|
377
377
|
_: 1
|
|
378
378
|
}),
|
|
379
|
-
|
|
379
|
+
m.value.visible ? (d(), h(ae, {
|
|
380
380
|
key: 0,
|
|
381
|
-
modelValue:
|
|
382
|
-
"onUpdate:modelValue": t[12] || (t[12] = (e) =>
|
|
383
|
-
title:
|
|
381
|
+
modelValue: m.value.visible,
|
|
382
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => m.value.visible = e),
|
|
383
|
+
title: m.value.title,
|
|
384
384
|
"entity-key": r(_),
|
|
385
385
|
onRefresh: A,
|
|
386
386
|
width: "1200px"
|
|
387
387
|
}, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0),
|
|
388
|
-
v.value.visible ? (
|
|
388
|
+
v.value.visible ? (d(), h(oe, {
|
|
389
389
|
key: 1,
|
|
390
390
|
modelValue: v.value.visible,
|
|
391
391
|
"onUpdate:modelValue": t[13] || (t[13] = (e) => v.value.visible = e),
|
|
@@ -396,7 +396,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
396
396
|
]);
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
}), Ve = /* @__PURE__ */ ne(
|
|
399
|
+
}), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-2ee5a7d4"]]);
|
|
400
400
|
export {
|
|
401
401
|
Ve as default
|
|
402
402
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as le, mergeModels as oe, ref as _, useModel as te, reactive as ae, computed as Y, nextTick as ie, resolveComponent as p, createElementBlock as y, openBlock as
|
|
1
|
+
import { defineComponent as le, mergeModels as oe, ref as _, useModel as te, reactive as ae, computed as Y, nextTick as ie, resolveComponent as p, createElementBlock as y, openBlock as c, Fragment as h, createVNode as l, withCtx as t, createElementVNode as L, unref as d, renderList as k, createBlock as A, toDisplayString as S, createTextVNode as g, createCommentVNode as se } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as re } from "vue-i18n";
|
|
4
|
-
import { i as q } from "./index-
|
|
5
|
-
import { U as ne, C as O, D as b, i as de } from "./index-
|
|
4
|
+
import { i as q } from "./index-SilwoNEK.mjs";
|
|
5
|
+
import { U as ne, C as O, D as b, i as de } from "./index-DWJG5OHB.mjs";
|
|
6
6
|
import { u as ue } from "./index-CvX2It1o.mjs";
|
|
7
7
|
import { useUserStoreHook as me, fileApi as pe } from "jmash-core";
|
|
8
|
-
import { _ as
|
|
9
|
-
const
|
|
8
|
+
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
+
const fe = /* @__PURE__ */ le({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: /* @__PURE__ */ oe({
|
|
12
12
|
task: {
|
|
@@ -63,7 +63,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
63
63
|
de.findFilesList({ actionId: C.task.businessKey }).then(({ data: e }) => {
|
|
64
64
|
var o, i;
|
|
65
65
|
if (e.results && Array.isArray(e.results)) {
|
|
66
|
-
const u = [], r = [],
|
|
66
|
+
const u = [], r = [], f = ((o = b.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : o.dictCode) || "", T = ((i = b.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : i.dictCode) || "";
|
|
67
67
|
e.results.forEach((n) => {
|
|
68
68
|
const w = {
|
|
69
69
|
fileName: n.fileName || "",
|
|
@@ -71,7 +71,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
71
71
|
fileSort: n.fileSort || n.type || "",
|
|
72
72
|
fileSrc: n.fileSrc || n.filePath || ""
|
|
73
73
|
};
|
|
74
|
-
w.fileSort ===
|
|
74
|
+
w.fileSort === f ? u.push(w) : w.fileSort === T && r.push(w);
|
|
75
75
|
}), N.value = u, s.files = r.map((n) => ({
|
|
76
76
|
fileName: n.fileName ?? "",
|
|
77
77
|
fileId: n.fileId ?? "",
|
|
@@ -84,8 +84,8 @@ const ce = /* @__PURE__ */ le({
|
|
|
84
84
|
}
|
|
85
85
|
async function H(e) {
|
|
86
86
|
try {
|
|
87
|
-
const o = pe.fileUrl(e.filePath), u = await (await fetch(o)).blob(), r = window.URL.createObjectURL(u),
|
|
88
|
-
|
|
87
|
+
const o = pe.fileUrl(e.filePath), u = await (await fetch(o)).blob(), r = window.URL.createObjectURL(u), f = document.createElement("a");
|
|
88
|
+
f.href = r, f.download = e.fileName || "download", document.body.appendChild(f), f.click();
|
|
89
89
|
} catch {
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -106,8 +106,8 @@ const ce = /* @__PURE__ */ le({
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
return (e, o) => {
|
|
109
|
-
const i = p("el-col"), u = p("el-input"), r = p("el-form-item"),
|
|
110
|
-
return
|
|
109
|
+
const i = p("el-col"), u = p("el-input"), r = p("el-form-item"), f = p("el-button"), T = p("el-date-picker"), n = p("jmash-select"), w = p("CircleClose"), J = p("el-icon"), Q = p("el-row"), X = p("el-form"), Z = p("jmash-multi-upload");
|
|
110
|
+
return c(), y(h, null, [
|
|
111
111
|
l(i, { span: 24 }, {
|
|
112
112
|
default: t(() => o[8] || (o[8] = [
|
|
113
113
|
L("div", { class: "title" }, "内部临时工单", -1)
|
|
@@ -169,17 +169,17 @@ const ce = /* @__PURE__ */ le({
|
|
|
169
169
|
}),
|
|
170
170
|
l(i, { span: 24 }, {
|
|
171
171
|
default: t(() => [
|
|
172
|
-
(
|
|
172
|
+
(c(!0), y(h, null, k(d(b).fileTypeDict.values.slice(2, 3), (a, x) => (c(), A(r, {
|
|
173
173
|
key: a.dictCode,
|
|
174
174
|
label: a.dictName
|
|
175
175
|
}, {
|
|
176
176
|
default: t(() => [
|
|
177
|
-
(
|
|
177
|
+
(c(!0), y(h, null, k(N.value, (F, V) => (c(), y("div", {
|
|
178
178
|
key: V,
|
|
179
179
|
class: "files-list"
|
|
180
180
|
}, [
|
|
181
181
|
L("span", null, S(F.fileName), 1),
|
|
182
|
-
l(
|
|
182
|
+
l(f, {
|
|
183
183
|
type: "primary",
|
|
184
184
|
link: "",
|
|
185
185
|
size: "small",
|
|
@@ -202,7 +202,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
202
202
|
l(i, { span: 12 }, {
|
|
203
203
|
default: t(() => [
|
|
204
204
|
l(r, {
|
|
205
|
-
label: e.$t("itsmFlowTemporary.
|
|
205
|
+
label: e.$t("itsmFlowTemporary.createBy")
|
|
206
206
|
}, {
|
|
207
207
|
default: t(() => [
|
|
208
208
|
l(u, {
|
|
@@ -245,7 +245,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
245
245
|
l(i, { span: 24 }, {
|
|
246
246
|
default: t(() => [
|
|
247
247
|
l(r, {
|
|
248
|
-
label: e.$t("itsmFlowTemporary.
|
|
248
|
+
label: e.$t("itsmFlowTemporary.userIdTemporary"),
|
|
249
249
|
prop: "userId"
|
|
250
250
|
}, {
|
|
251
251
|
default: t(() => [
|
|
@@ -329,14 +329,14 @@ const ce = /* @__PURE__ */ le({
|
|
|
329
329
|
}),
|
|
330
330
|
l(i, { span: 24 }, {
|
|
331
331
|
default: t(() => [
|
|
332
|
-
(
|
|
332
|
+
(c(!0), y(h, null, k(d(b).fileTypeDict.values.slice(3, 4), (a, x) => (c(), y(h, {
|
|
333
333
|
key: a.dictCode
|
|
334
334
|
}, [
|
|
335
335
|
l(r, {
|
|
336
336
|
label: a.dictName
|
|
337
337
|
}, {
|
|
338
338
|
default: t(() => [
|
|
339
|
-
l(
|
|
339
|
+
l(f, {
|
|
340
340
|
type: "primary",
|
|
341
341
|
icon: d(ue),
|
|
342
342
|
onClick: B
|
|
@@ -349,9 +349,9 @@ const ce = /* @__PURE__ */ le({
|
|
|
349
349
|
]),
|
|
350
350
|
_: 2
|
|
351
351
|
}, 1032, ["label"]),
|
|
352
|
-
d(s).files && d(s).files.length > 0 ? (
|
|
352
|
+
d(s).files && d(s).files.length > 0 ? (c(), A(r, { key: 0 }, {
|
|
353
353
|
default: t(() => [
|
|
354
|
-
(
|
|
354
|
+
(c(!0), y(h, null, k(d(s).files, (F, V) => (c(), y("div", {
|
|
355
355
|
key: V,
|
|
356
356
|
class: "files-list"
|
|
357
357
|
}, [
|
|
@@ -390,7 +390,7 @@ const ce = /* @__PURE__ */ le({
|
|
|
390
390
|
], 64);
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
}), ke = /* @__PURE__ */ fe
|
|
393
|
+
}), ke = /* @__PURE__ */ ce(fe, [["__scopeId", "data-v-9bc97e24"]]);
|
|
394
394
|
export {
|
|
395
395
|
ke as default
|
|
396
396
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as M, mergeModels as N, ref as _, useModel as P, getCurrentInstance as A, resolveComponent as f, createElementBlock as b, openBlock as v, Fragment as g, createVNode as t, withCtx as l, createElementVNode as F, createTextVNode as
|
|
1
|
+
import { defineComponent as M, mergeModels as N, ref as _, useModel as P, getCurrentInstance as A, resolveComponent as f, createElementBlock as b, openBlock as v, Fragment as g, createVNode as t, withCtx as l, createElementVNode as F, createTextVNode as i, toDisplayString as n, unref as c, renderList as T, createBlock as E } from "vue";
|
|
2
2
|
import { rbacApi as U } from "jmash-rbac";
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as u, i as R, C as S } from "./index-DWJG5OHB.mjs";
|
|
4
4
|
import { fileApi as Y } from "jmash-core";
|
|
5
|
-
import { i as j } from "./index-
|
|
5
|
+
import { i as j } from "./index-SilwoNEK.mjs";
|
|
6
6
|
const Q = /* @__PURE__ */ M({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: /* @__PURE__ */ N({
|
|
@@ -16,9 +16,9 @@ const Q = /* @__PURE__ */ M({
|
|
|
16
16
|
modelModifiers: {}
|
|
17
17
|
}),
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
|
-
setup(w, { expose:
|
|
20
|
-
|
|
21
|
-
const I = _(),
|
|
19
|
+
setup(w, { expose: h }) {
|
|
20
|
+
u.itemBizLayDict.useValues(), u.orgIdBizDict.useValues(), u.userExtBizDict.useValues(), console.log(u.itemBizLayDict.values, "=> itemBizLayDict"), console.log(u.orgIdBizDict.values, "=> itemBizLayDict");
|
|
21
|
+
const I = _(), V = _({}), m = P(w, "modelValue"), { proxy: z } = A(), k = w, s = _();
|
|
22
22
|
j.findById({ temporaryId: k.task.businessKey }).then((a) => {
|
|
23
23
|
s.value = a.data;
|
|
24
24
|
});
|
|
@@ -26,32 +26,32 @@ const Q = /* @__PURE__ */ M({
|
|
|
26
26
|
R.findFilesList({ actionId: k.task.businessKey }).then((a) => {
|
|
27
27
|
D.value = a.data.results, console.log(a.data.results, "=> files");
|
|
28
28
|
});
|
|
29
|
-
async function
|
|
29
|
+
async function L(a) {
|
|
30
30
|
try {
|
|
31
|
-
const
|
|
31
|
+
const d = Y.fileUrl(a.filePath), r = await (await fetch(d)).blob(), y = window.URL.createObjectURL(r), p = document.createElement("a");
|
|
32
32
|
p.href = y, p.download = a.fileName || "download", document.body.appendChild(p), p.click();
|
|
33
33
|
} catch {
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
h({
|
|
37
37
|
changeModel: () => $()
|
|
38
38
|
});
|
|
39
39
|
function $() {
|
|
40
40
|
return m.value && (m.value.selectActions = [
|
|
41
41
|
{ key: "true", value: "同意" },
|
|
42
42
|
{ key: "false", value: "不同意" }
|
|
43
|
-
], m.value.varName = "approved", m.value.module = "", m.value.module = S.MODULE_ITSMFLOW), new Promise((a,
|
|
43
|
+
], m.value.varName = "approved", m.value.module = "", m.value.module = S.MODULE_ITSMFLOW), new Promise((a, d) => {
|
|
44
44
|
var o;
|
|
45
45
|
(o = I.value) == null || o.validate((r) => {
|
|
46
|
-
r ? (m.value && (m.value.comment = ""), a(!0)) :
|
|
46
|
+
r ? (m.value && (m.value.comment = ""), a(!0)) : d(!1);
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
return (a,
|
|
50
|
+
return (a, d) => {
|
|
51
51
|
const o = f("el-col"), r = f("el-form-item"), y = f("el-button"), p = f("el-row"), C = f("el-form");
|
|
52
52
|
return v(), b(g, null, [
|
|
53
53
|
t(o, { span: 24 }, {
|
|
54
|
-
default: l(() =>
|
|
54
|
+
default: l(() => d[0] || (d[0] = [
|
|
55
55
|
F("div", { class: "title" }, "外部临时工单临时工单", -1)
|
|
56
56
|
])),
|
|
57
57
|
_: 1,
|
|
@@ -60,7 +60,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
60
60
|
t(C, {
|
|
61
61
|
ref_key: "taskFormRef",
|
|
62
62
|
ref: I,
|
|
63
|
-
model:
|
|
63
|
+
model: V.value,
|
|
64
64
|
"label-width": "150px",
|
|
65
65
|
class: "custom-table-form custom-form"
|
|
66
66
|
}, {
|
|
@@ -76,7 +76,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
76
76
|
default: l(() => {
|
|
77
77
|
var e;
|
|
78
78
|
return [
|
|
79
|
-
n(
|
|
79
|
+
i(n(c(u).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.govOrgId)), 1)
|
|
80
80
|
];
|
|
81
81
|
}),
|
|
82
82
|
_: 1
|
|
@@ -87,13 +87,13 @@ const Q = /* @__PURE__ */ M({
|
|
|
87
87
|
t(o, { span: 24 }, {
|
|
88
88
|
default: l(() => [
|
|
89
89
|
t(r, {
|
|
90
|
-
label: a.$t("itsmFlowSpareParts.
|
|
90
|
+
label: a.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
91
91
|
prop: "itemId"
|
|
92
92
|
}, {
|
|
93
93
|
default: l(() => {
|
|
94
94
|
var e;
|
|
95
95
|
return [
|
|
96
|
-
n(
|
|
96
|
+
i(n(c(u).itemBizLayDict.getValue((e = s.value) == null ? void 0 : e.itemId)), 1)
|
|
97
97
|
];
|
|
98
98
|
}),
|
|
99
99
|
_: 1
|
|
@@ -110,7 +110,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
110
110
|
default: l(() => {
|
|
111
111
|
var e;
|
|
112
112
|
return [
|
|
113
|
-
n(
|
|
113
|
+
i(n(c(U).userInfo((e = s.value) == null ? void 0 : e.createBy).realName), 1)
|
|
114
114
|
];
|
|
115
115
|
}),
|
|
116
116
|
_: 1
|
|
@@ -127,7 +127,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
127
127
|
default: l(() => {
|
|
128
128
|
var e;
|
|
129
129
|
return [
|
|
130
|
-
n(
|
|
130
|
+
i(n(c(z).$moment.formatDate(
|
|
131
131
|
(e = s.value) == null ? void 0 : e.createTime,
|
|
132
132
|
"YYYY-MM-DD HH:mm:ss"
|
|
133
133
|
)), 1)
|
|
@@ -147,7 +147,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
147
147
|
default: l(() => {
|
|
148
148
|
var e;
|
|
149
149
|
return [
|
|
150
|
-
n(
|
|
150
|
+
i(n((e = s.value) == null ? void 0 : e.title), 1)
|
|
151
151
|
];
|
|
152
152
|
}),
|
|
153
153
|
_: 1
|
|
@@ -164,7 +164,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
164
164
|
default: l(() => {
|
|
165
165
|
var e;
|
|
166
166
|
return [
|
|
167
|
-
n(
|
|
167
|
+
i(n((e = s.value) == null ? void 0 : e.content), 1)
|
|
168
168
|
];
|
|
169
169
|
}),
|
|
170
170
|
_: 1
|
|
@@ -177,25 +177,25 @@ const Q = /* @__PURE__ */ M({
|
|
|
177
177
|
class: "bordered-row"
|
|
178
178
|
}, {
|
|
179
179
|
default: l(() => [
|
|
180
|
-
(v(!0), b(g, null,
|
|
180
|
+
(v(!0), b(g, null, T(c(u).fileTypeDict.values.slice(2, 3), (e, x) => (v(), E(r, {
|
|
181
181
|
key: e.dictCode,
|
|
182
182
|
label: e.dictName
|
|
183
183
|
}, {
|
|
184
184
|
default: l(() => [
|
|
185
|
-
(v(!0), b(g, null,
|
|
185
|
+
(v(!0), b(g, null, T(D.value, (B, O) => (v(), b("div", {
|
|
186
186
|
key: O,
|
|
187
187
|
class: "files-list"
|
|
188
188
|
}, [
|
|
189
|
-
F("span", null,
|
|
189
|
+
F("span", null, n(B.fileName), 1),
|
|
190
190
|
t(y, {
|
|
191
191
|
type: "primary",
|
|
192
192
|
link: "",
|
|
193
193
|
size: "small",
|
|
194
194
|
class: "icon-right",
|
|
195
|
-
onClick: (
|
|
195
|
+
onClick: (H) => L(B)
|
|
196
196
|
}, {
|
|
197
|
-
default: l(() =>
|
|
198
|
-
|
|
197
|
+
default: l(() => d[1] || (d[1] = [
|
|
198
|
+
i(" 查看 ")
|
|
199
199
|
])),
|
|
200
200
|
_: 2,
|
|
201
201
|
__: [1]
|
|
@@ -210,13 +210,13 @@ const Q = /* @__PURE__ */ M({
|
|
|
210
210
|
t(o, { span: 24 }, {
|
|
211
211
|
default: l(() => [
|
|
212
212
|
t(r, {
|
|
213
|
-
label: a.$t("itsmFlowTemporary.
|
|
213
|
+
label: a.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
214
214
|
prop: "outOrgId"
|
|
215
215
|
}, {
|
|
216
216
|
default: l(() => {
|
|
217
217
|
var e;
|
|
218
218
|
return [
|
|
219
|
-
n(
|
|
219
|
+
i(n(c(u).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.outOrgId)), 1)
|
|
220
220
|
];
|
|
221
221
|
}),
|
|
222
222
|
_: 1
|
|
@@ -227,13 +227,13 @@ const Q = /* @__PURE__ */ M({
|
|
|
227
227
|
t(o, { span: 24 }, {
|
|
228
228
|
default: l(() => [
|
|
229
229
|
t(r, {
|
|
230
|
-
label: a.$t("itsmFlowTemporary.
|
|
230
|
+
label: a.$t("itsmFlowTemporary.userIdTemporary"),
|
|
231
231
|
prop: "userId"
|
|
232
232
|
}, {
|
|
233
233
|
default: l(() => {
|
|
234
234
|
var e;
|
|
235
235
|
return [
|
|
236
|
-
n(
|
|
236
|
+
i(n(c(u).userExtBizDict.getValue((e = s.value) == null ? void 0 : e.userId)), 1)
|
|
237
237
|
];
|
|
238
238
|
}),
|
|
239
239
|
_: 1
|
|
@@ -250,7 +250,7 @@ const Q = /* @__PURE__ */ M({
|
|
|
250
250
|
default: l(() => {
|
|
251
251
|
var e;
|
|
252
252
|
return [
|
|
253
|
-
n(
|
|
253
|
+
i(n((e = s.value) == null ? void 0 : e.handlingPeriod), 1)
|
|
254
254
|
];
|
|
255
255
|
}),
|
|
256
256
|
_: 1
|