xyvcard-itsm-flow 0.0.26 → 0.0.28
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-FLjvLk81.mjs → FileSaver.min-Bst8M31G.mjs} +1 -1
- package/dist/{edit-D--QEJjt.mjs → edit-B5e6Z4D-.mjs} +1 -1
- package/dist/{edit-DE30a8nF.mjs → edit-B6x5LnXs.mjs} +1 -1
- package/dist/{edit-BoyxGI-j.mjs → edit-CDrqDH14.mjs} +1 -1
- package/dist/{edit-DVqIGzRC.mjs → edit-Cdqv3LYF.mjs} +2 -2
- package/dist/{edit-ChPw3-tf.mjs → edit-CtGnGMdI.mjs} +4 -4
- package/dist/{edit-Bj6O1CiV.mjs → edit-s6tpuJqi.mjs} +32 -33
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs → edit.vue_vue_type_script_setup_true_lang-Dlt4h5rH.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs → edit.vue_vue_type_script_setup_true_lang-Z6oOT8ZZ.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs → edit.vue_vue_type_script_setup_true_lang-mfIQLtr7.mjs} +1 -1
- package/dist/{index-8wrBAgqn.mjs → index-B343YUBs.mjs} +4 -4
- package/dist/{index-DgMfinzm.mjs → index-BHx7wTh8.mjs} +2 -2
- package/dist/{index-C2_qB4RV.mjs → index-BRS1J0_N.mjs} +1 -1
- package/dist/{index-DLKaq1KT.mjs → index-BpTgZ8S6.mjs} +3 -3
- package/dist/{index-DrUmzzLs.mjs → index-BryuNtvE.mjs} +4 -4
- package/dist/{index-Cv9EtBjj.mjs → index-Bv6L7pj-.mjs} +225 -234
- package/dist/{index-BPbEgv_g.mjs → index-Bvl7uSjW.mjs} +34 -34
- package/dist/{index-SilwoNEK.mjs → index-BzNd3aeo.mjs} +1402 -1420
- package/dist/{index-CcmelnG0.mjs → index-C3imt6Nt.mjs} +43 -43
- package/dist/{index-Cbd9gMMJ.mjs → index-C9XYUxJJ.mjs} +64 -64
- package/dist/{index-jG64vmFA.mjs → index-CND3lY5T.mjs} +130 -131
- package/dist/{index-BCm8GyNp.mjs → index-CVEflwbt.mjs} +1 -1
- package/dist/{index-DymW6iPU.mjs → index-CYgdVX3-.mjs} +3 -3
- package/dist/{index-DyhFuDLH.mjs → index-CaCAQvu3.mjs} +34 -35
- package/dist/{index-DvfEpZEP.mjs → index-Cd1wffPr.mjs} +61 -58
- package/dist/{index-DUeJgFzy.mjs → index-CeYdPqBa.mjs} +2 -2
- package/dist/{index-DCrOzptR.mjs → index-ChDJ7snw.mjs} +3 -3
- package/dist/{index-DeWL7kiw.mjs → index-Cp5FZJRb.mjs} +2 -2
- package/dist/{index-BnpWxtwn.mjs → index-DL0G-1We.mjs} +3 -3
- package/dist/index-DS5-j9pi.mjs +382 -0
- package/dist/{index-BKReblQ-.mjs → index-DVTVgX1p.mjs} +93 -93
- package/dist/{index-r4Tg0GX2.mjs → index-ETbLgbz7.mjs} +3 -3
- package/dist/{index-DWJG5OHB.mjs → index-MPqnkTdo.mjs} +1 -1
- package/dist/{index-CBlDGIOm.mjs → index-NEYEBifl.mjs} +19 -20
- package/dist/{index-xWvPJZ-m.mjs → index-_lw11aC1.mjs} +2 -2
- package/dist/{index-DyZhLpPq.mjs → index-j6FSzNWr.mjs} +15 -15
- package/dist/{index-C6lbS4Lo.mjs → index-oYL4MO3G.mjs} +2 -2
- package/dist/{index-BGUJBf1b.mjs → index-qXw5Aiao.mjs} +77 -77
- package/dist/{index-BVKYrCIy.mjs → index-v6aOPnu6.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-BWhsB1Ap.mjs → info-BBeI4Gu-.mjs} +1 -1
- package/dist/{info-CGUYIYny.mjs → info-BMDpWXun.mjs} +1 -1
- package/dist/{info-CbJJduEU.mjs → info-D8JhIxGy.mjs} +1 -1
- package/dist/{info-9EvTq-5p.mjs → info-Dcc0vKH3.mjs} +1 -1
- package/dist/info-Dmo9yYXs.mjs +4 -0
- package/dist/info-ghO6g5a7.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs → info.vue_vue_type_script_setup_true_lang-B_xQV4zS.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs → info.vue_vue_type_script_setup_true_lang-CcAaUZ-e.mjs} +14 -14
- package/dist/{info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs → info.vue_vue_type_script_setup_true_lang-CdlYnhVI.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs → info.vue_vue_type_script_setup_true_lang-Comh2IyD.mjs} +12 -12
- package/dist/{info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs → info.vue_vue_type_script_setup_true_lang-DVu1OSso.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs → info.vue_vue_type_script_setup_true_lang-DwW2WxUK.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-temporary/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-DwPAoK5U.mjs +0 -369
- package/dist/info-CtxVi70h.mjs +0 -4
- package/dist/info-ZeMWMgd3.mjs +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as B, nextTick as G, resolveComponent as m, createElementBlock as y, openBlock as _, Fragment as I, createVNode as
|
|
1
|
+
import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as B, nextTick as G, resolveComponent as m, createElementBlock as y, openBlock as _, Fragment as I, createVNode as e, withCtx as l, createElementVNode as O, unref as d, createTextVNode as s, toDisplayString as n, renderList as $, createBlock as J } from "vue";
|
|
2
2
|
import { useUserStoreHook as Q, fileApi as k } from "jmash-core";
|
|
3
3
|
import "element-plus";
|
|
4
|
-
import { i as X } from "./index-
|
|
5
|
-
import { D as u, i as N, C as Y } from "./index-
|
|
4
|
+
import { i as X } from "./index-BzNd3aeo.mjs";
|
|
5
|
+
import { D as u, i as N, C as Y } from "./index-MPqnkTdo.mjs";
|
|
6
6
|
const ae = /* @__PURE__ */ K({
|
|
7
7
|
__name: "index",
|
|
8
8
|
props: /* @__PURE__ */ q({
|
|
@@ -18,12 +18,12 @@ const ae = /* @__PURE__ */ K({
|
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(h, { expose: L }) {
|
|
20
20
|
u.orgIdBizDict.useValues();
|
|
21
|
-
const D = v(), p = H(h, "modelValue"),
|
|
21
|
+
const D = v(), p = H(h, "modelValue"), z = Q();
|
|
22
22
|
u.itemBizLayDict.useValues(), u.userExtBizDict.useValues(), v([]);
|
|
23
|
-
const i = v({}), b = v([]),
|
|
23
|
+
const i = v({}), b = v([]), P = v((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = h;
|
|
24
24
|
let S = W({});
|
|
25
|
-
N.findFilesList({ actionId: g.task.businessKey }).then((
|
|
26
|
-
b.value =
|
|
25
|
+
N.findFilesList({ actionId: g.task.businessKey }).then((t) => {
|
|
26
|
+
b.value = t.data.results;
|
|
27
27
|
});
|
|
28
28
|
const C = B(() => {
|
|
29
29
|
var a;
|
|
@@ -31,24 +31,24 @@ const ae = /* @__PURE__ */ K({
|
|
|
31
31
|
return b.value.filter((r) => r.fileSort === o);
|
|
32
32
|
}), U = B(() => {
|
|
33
33
|
var o;
|
|
34
|
-
const
|
|
35
|
-
return b.value.filter((a) => a.fileSort ===
|
|
34
|
+
const t = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
|
|
35
|
+
return b.value.filter((a) => a.fileSort === t);
|
|
36
36
|
});
|
|
37
|
-
async function A(
|
|
37
|
+
async function A(t) {
|
|
38
38
|
try {
|
|
39
|
-
const o = k.fileUrl(
|
|
40
|
-
c.href = w, c.download =
|
|
39
|
+
const o = k.fileUrl(t.fileSrc), r = await (await fetch(o)).blob(), w = window.URL.createObjectURL(r), c = document.createElement("a");
|
|
40
|
+
c.href = w, c.download = t.fileName || "download", document.body.appendChild(c), c.click();
|
|
41
41
|
} catch {
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
X.findById({ temporaryId: g.task.businessKey }).then(({ data:
|
|
45
|
-
i.value = { ...
|
|
46
|
-
i.value ? Object.assign(i.value,
|
|
44
|
+
X.findById({ temporaryId: g.task.businessKey }).then(({ data: t }) => {
|
|
45
|
+
i.value = { ...t }, G(() => {
|
|
46
|
+
i.value ? Object.assign(i.value, t) : i.value = { ...t }, M();
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
function M() {
|
|
50
|
-
N.findFilesList({ actionId: g.task.businessKey }).then(({ data:
|
|
51
|
-
|
|
50
|
+
N.findFilesList({ actionId: g.task.businessKey }).then(({ data: t }) => {
|
|
51
|
+
t.results && Array.isArray(t.results) && (S.files = t.results.map((o) => {
|
|
52
52
|
let a = "";
|
|
53
53
|
return o.fileName && (a = o.fileSort || o.type || ""), {
|
|
54
54
|
fileName: o.fileName || "",
|
|
@@ -66,40 +66,40 @@ const ae = /* @__PURE__ */ K({
|
|
|
66
66
|
return p.value && (p.value.selectActions = [
|
|
67
67
|
{ key: "true", value: "同意" },
|
|
68
68
|
{ key: "false", value: "不同意" }
|
|
69
|
-
], p.value.varName = "approved", p.value.module = "", p.value.module = Y.MODULE_ITSMFLOW), new Promise((
|
|
69
|
+
], p.value.varName = "approved", p.value.module = "", p.value.module = Y.MODULE_ITSMFLOW), new Promise((t, o) => {
|
|
70
70
|
var a;
|
|
71
71
|
(a = D.value) == null || a.validate((r) => {
|
|
72
|
-
r ? (p.value && (p.value.comment = ""),
|
|
72
|
+
r ? (p.value && (p.value.comment = ""), t(!0)) : o(!1);
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
return (
|
|
76
|
+
return (t, o) => {
|
|
77
77
|
const a = m("el-col"), r = m("el-form-item"), w = m("el-button"), c = m("el-image"), R = m("el-row"), j = m("el-form");
|
|
78
78
|
return _(), y(I, null, [
|
|
79
|
-
|
|
80
|
-
default:
|
|
79
|
+
e(a, { span: 24 }, {
|
|
80
|
+
default: l(() => o[0] || (o[0] = [
|
|
81
81
|
O("div", { class: "title" }, "外部临时工单", -1)
|
|
82
82
|
])),
|
|
83
83
|
_: 1,
|
|
84
84
|
__: [0]
|
|
85
85
|
}),
|
|
86
|
-
|
|
86
|
+
e(j, {
|
|
87
87
|
ref_key: "taskFormRef",
|
|
88
88
|
ref: D,
|
|
89
89
|
model: d(S),
|
|
90
90
|
"label-width": "150px",
|
|
91
91
|
class: "custom-table-form"
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
95
|
-
default:
|
|
96
|
-
|
|
97
|
-
default:
|
|
98
|
-
|
|
99
|
-
label:
|
|
93
|
+
default: l(() => [
|
|
94
|
+
e(R, null, {
|
|
95
|
+
default: l(() => [
|
|
96
|
+
e(a, { span: 24 }, {
|
|
97
|
+
default: l(() => [
|
|
98
|
+
e(r, {
|
|
99
|
+
label: t.$t("itsmFlowSpareParts.govOrgId"),
|
|
100
100
|
prop: "govOrgId"
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
102
|
+
default: l(() => [
|
|
103
103
|
s(n(d(u).orgIdBizDict.getValue(i.value.govOrgId)), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
@@ -107,13 +107,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
|
-
|
|
111
|
-
default:
|
|
112
|
-
|
|
113
|
-
label:
|
|
110
|
+
e(a, { span: 24 }, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
e(r, {
|
|
113
|
+
label: t.$t("itsmFlowSpareParts.itsmFlowItemId"),
|
|
114
114
|
prop: "itemId"
|
|
115
115
|
}, {
|
|
116
|
-
default:
|
|
116
|
+
default: l(() => [
|
|
117
117
|
s(n(d(u).itemBizLayDict.getValue(i.value.itemId)), 1)
|
|
118
118
|
]),
|
|
119
119
|
_: 1
|
|
@@ -121,40 +121,40 @@ const ae = /* @__PURE__ */ K({
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}),
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
label:
|
|
124
|
+
e(a, { span: 12 }, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
e(r, {
|
|
127
|
+
label: t.$t("itsmFlowTemporary.createBy")
|
|
128
128
|
}, {
|
|
129
|
-
default:
|
|
130
|
-
s(n(d(
|
|
129
|
+
default: l(() => [
|
|
130
|
+
s(n(d(z).user.realName), 1)
|
|
131
131
|
]),
|
|
132
132
|
_: 1
|
|
133
133
|
}, 8, ["label"])
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
}),
|
|
137
|
-
|
|
138
|
-
default:
|
|
139
|
-
|
|
140
|
-
label:
|
|
137
|
+
e(a, { span: 12 }, {
|
|
138
|
+
default: l(() => [
|
|
139
|
+
e(r, {
|
|
140
|
+
label: t.$t("itsmFlowTemporary.createTime"),
|
|
141
141
|
prop: "createTime"
|
|
142
142
|
}, {
|
|
143
|
-
default:
|
|
144
|
-
s(n(
|
|
143
|
+
default: l(() => [
|
|
144
|
+
s(n(P.value), 1)
|
|
145
145
|
]),
|
|
146
146
|
_: 1
|
|
147
147
|
}, 8, ["label"])
|
|
148
148
|
]),
|
|
149
149
|
_: 1
|
|
150
150
|
}),
|
|
151
|
-
|
|
152
|
-
default:
|
|
153
|
-
|
|
154
|
-
label:
|
|
151
|
+
e(a, { span: 24 }, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
e(r, {
|
|
154
|
+
label: t.$t("itsmFlowTemporary.title"),
|
|
155
155
|
prop: "title"
|
|
156
156
|
}, {
|
|
157
|
-
default:
|
|
157
|
+
default: l(() => [
|
|
158
158
|
s(n(i.value.title), 1)
|
|
159
159
|
]),
|
|
160
160
|
_: 1
|
|
@@ -162,13 +162,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
164
|
}),
|
|
165
|
-
|
|
166
|
-
default:
|
|
167
|
-
|
|
168
|
-
label:
|
|
165
|
+
e(a, { span: 24 }, {
|
|
166
|
+
default: l(() => [
|
|
167
|
+
e(r, {
|
|
168
|
+
label: t.$t("itsmFlowTemporary.content"),
|
|
169
169
|
prop: "content"
|
|
170
170
|
}, {
|
|
171
|
-
default:
|
|
171
|
+
default: l(() => [
|
|
172
172
|
s(n(i.value.content), 1)
|
|
173
173
|
]),
|
|
174
174
|
_: 1
|
|
@@ -176,23 +176,23 @@ const ae = /* @__PURE__ */ K({
|
|
|
176
176
|
]),
|
|
177
177
|
_: 1
|
|
178
178
|
}),
|
|
179
|
-
|
|
180
|
-
default:
|
|
181
|
-
|
|
182
|
-
default:
|
|
179
|
+
e(a, { span: 24 }, {
|
|
180
|
+
default: l(() => [
|
|
181
|
+
e(r, { label: "附件" }, {
|
|
182
|
+
default: l(() => [
|
|
183
183
|
(_(!0), y(I, null, $(U.value, (f, F) => (_(), y("div", {
|
|
184
184
|
key: F,
|
|
185
185
|
class: "files-list"
|
|
186
186
|
}, [
|
|
187
187
|
O("span", null, n(f.fileName), 1),
|
|
188
|
-
|
|
188
|
+
e(w, {
|
|
189
189
|
type: "primary",
|
|
190
190
|
link: "",
|
|
191
191
|
size: "small",
|
|
192
192
|
class: "icon-right",
|
|
193
193
|
onClick: (T) => A(f)
|
|
194
194
|
}, {
|
|
195
|
-
default:
|
|
195
|
+
default: l(() => o[1] || (o[1] = [
|
|
196
196
|
s(" 查看 ")
|
|
197
197
|
])),
|
|
198
198
|
_: 2,
|
|
@@ -205,13 +205,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
207
|
}),
|
|
208
|
-
|
|
209
|
-
default:
|
|
210
|
-
|
|
211
|
-
label:
|
|
208
|
+
e(a, { span: 24 }, {
|
|
209
|
+
default: l(() => [
|
|
210
|
+
e(r, {
|
|
211
|
+
label: t.$t("itsmFlowTemporary.outOrgIdTemporary"),
|
|
212
212
|
prop: "outOrgId"
|
|
213
213
|
}, {
|
|
214
|
-
default:
|
|
214
|
+
default: l(() => [
|
|
215
215
|
s(n(d(u).orgIdBizDict.getValue(i.value.outOrgId)), 1)
|
|
216
216
|
]),
|
|
217
217
|
_: 1
|
|
@@ -219,13 +219,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
219
219
|
]),
|
|
220
220
|
_: 1
|
|
221
221
|
}),
|
|
222
|
-
|
|
223
|
-
default:
|
|
224
|
-
|
|
225
|
-
label:
|
|
222
|
+
e(a, { span: 24 }, {
|
|
223
|
+
default: l(() => [
|
|
224
|
+
e(r, {
|
|
225
|
+
label: t.$t("itsmFlowTemporary.userIdTemporary"),
|
|
226
226
|
prop: "userId"
|
|
227
227
|
}, {
|
|
228
|
-
default:
|
|
228
|
+
default: l(() => [
|
|
229
229
|
s(n(d(u).userExtBizDict.getValue(i.value.userId)), 1)
|
|
230
230
|
]),
|
|
231
231
|
_: 1
|
|
@@ -233,13 +233,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
233
233
|
]),
|
|
234
234
|
_: 1
|
|
235
235
|
}),
|
|
236
|
-
|
|
237
|
-
default:
|
|
238
|
-
|
|
239
|
-
label:
|
|
236
|
+
e(a, { span: 12 }, {
|
|
237
|
+
default: l(() => [
|
|
238
|
+
e(r, {
|
|
239
|
+
label: t.$t("itsmFlowTemporary.handlingPeriod"),
|
|
240
240
|
prop: "handlingPeriod"
|
|
241
241
|
}, {
|
|
242
|
-
default:
|
|
242
|
+
default: l(() => [
|
|
243
243
|
s(n(i.value.handlingPeriod), 1)
|
|
244
244
|
]),
|
|
245
245
|
_: 1
|
|
@@ -247,13 +247,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
247
247
|
]),
|
|
248
248
|
_: 1
|
|
249
249
|
}),
|
|
250
|
-
|
|
251
|
-
default:
|
|
252
|
-
|
|
253
|
-
label:
|
|
250
|
+
e(a, { span: 12 }, {
|
|
251
|
+
default: l(() => [
|
|
252
|
+
e(r, {
|
|
253
|
+
label: t.$t("itsmFlowTemporary.finishDate"),
|
|
254
254
|
prop: "finishDate"
|
|
255
255
|
}, {
|
|
256
|
-
default:
|
|
256
|
+
default: l(() => [
|
|
257
257
|
s(n(i.value.finishDate), 1)
|
|
258
258
|
]),
|
|
259
259
|
_: 1
|
|
@@ -261,13 +261,13 @@ const ae = /* @__PURE__ */ K({
|
|
|
261
261
|
]),
|
|
262
262
|
_: 1
|
|
263
263
|
}),
|
|
264
|
-
|
|
265
|
-
default:
|
|
266
|
-
|
|
267
|
-
label:
|
|
264
|
+
e(a, { span: 24 }, {
|
|
265
|
+
default: l(() => [
|
|
266
|
+
e(r, {
|
|
267
|
+
label: t.$t("itsmFlowTemporary.completion"),
|
|
268
268
|
prop: "completion"
|
|
269
269
|
}, {
|
|
270
|
-
default:
|
|
270
|
+
default: l(() => [
|
|
271
271
|
s(n(i.value.completion), 1)
|
|
272
272
|
]),
|
|
273
273
|
_: 1
|
|
@@ -275,17 +275,17 @@ const ae = /* @__PURE__ */ K({
|
|
|
275
275
|
]),
|
|
276
276
|
_: 1
|
|
277
277
|
}),
|
|
278
|
-
|
|
279
|
-
default:
|
|
278
|
+
e(a, { span: 24 }, {
|
|
279
|
+
default: l(() => [
|
|
280
280
|
(_(!0), y(I, null, $(d(u).fileTypeDict.values.slice(3, 4), (f, F) => (_(), J(r, {
|
|
281
281
|
key: f.dictCode,
|
|
282
282
|
label: f.dictName,
|
|
283
283
|
prop: "files." + F + ".fileSrc"
|
|
284
284
|
}, {
|
|
285
|
-
default:
|
|
285
|
+
default: l(() => {
|
|
286
286
|
var T, V;
|
|
287
287
|
return [
|
|
288
|
-
|
|
288
|
+
e(c, {
|
|
289
289
|
src: d(k).imageUrl((T = C.value[0]) == null ? void 0 : T.fileSrc, 100, 100),
|
|
290
290
|
"preview-src-list": [
|
|
291
291
|
d(k).imageUrl((V = C.value[0]) == null ? void 0 : V.fileSrc)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as Z, mergeModels as ee, ref as m, useModel as le, resolveComponent as d, createElementBlock as A, openBlock as k, Fragment as O, createVNode as e, withCtx as l, createElementVNode as s, createTextVNode as u, toDisplayString as r, unref as b, createBlock as $, createCommentVNode as V, renderList as te } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { u as ae } from "./index-CvX2It1o.mjs";
|
|
4
|
-
import { a as oe } from "./index-
|
|
5
|
-
import { D as F, i as I, C as y } from "./index-
|
|
4
|
+
import { a as oe } from "./index-BzNd3aeo.mjs";
|
|
5
|
+
import { D as F, i as I, C as y } from "./index-MPqnkTdo.mjs";
|
|
6
6
|
import { fileApi as ne } from "jmash-core";
|
|
7
7
|
import { useI18n as se } from "vue-i18n";
|
|
8
|
-
import { F as ue } from "./FileSaver.min-
|
|
8
|
+
import { F as ue } from "./FileSaver.min-Bst8M31G.mjs";
|
|
9
9
|
import { E as j } from "./el-message-BJAl6Gwu.mjs";
|
|
10
10
|
const ke = /* @__PURE__ */ Z({
|
|
11
11
|
__name: "index",
|
|
@@ -4,7 +4,7 @@ var r = (n, t, s) => E(n, typeof t != "symbol" ? t + "" : t, s);
|
|
|
4
4
|
import { useUserStore as p, clearEmpty as o, request as l, BizDict as d, BizLayDict as N, CustomBizDict as g, EnumDict as m } from "jmash-core";
|
|
5
5
|
import { contractApi as v, itemApi as _, contractUserApi as y } from "xyvcard-itsm";
|
|
6
6
|
import { sysUserExtApi as A, sysOrgApi as h } from "xyvcard-itsmsys";
|
|
7
|
-
import { a as T } from "./index-
|
|
7
|
+
import { a as T } from "./index-BzNd3aeo.mjs";
|
|
8
8
|
import { ref as U } from "vue";
|
|
9
9
|
import { EntryDict as I, EntryBizLayDict as L } from "jmash-dict";
|
|
10
10
|
class O {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as J, ref as
|
|
1
|
+
import { defineComponent as J, ref as I, 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-BRS1J0_N.mjs";
|
|
5
|
+
import ae from "./edit-CtGnGMdI.mjs";
|
|
6
|
+
import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-CcAaUZ-e.mjs";
|
|
7
|
+
import { D as p, C as re } from "./index-MPqnkTdo.mjs";
|
|
8
8
|
import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
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();
|
|
13
|
-
const { t: f } = te(), n =
|
|
13
|
+
const { t: f } = te(), n = I({
|
|
14
14
|
applyStatus: re.applyStatus.draft
|
|
15
15
|
}), {
|
|
16
16
|
tableHooks: u,
|
|
@@ -18,9 +18,9 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
18
18
|
queryFormRef: U,
|
|
19
19
|
listLoading: E,
|
|
20
20
|
tableData: N,
|
|
21
|
-
total:
|
|
21
|
+
total: S
|
|
22
22
|
} = ee(f, le, n);
|
|
23
|
-
let w =
|
|
23
|
+
let w = I([
|
|
24
24
|
{
|
|
25
25
|
label: "itsmFlowSpareParts.applyStatus",
|
|
26
26
|
prop: "applyStatus",
|
|
@@ -101,11 +101,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
101
101
|
isColumn: !0
|
|
102
102
|
}
|
|
103
103
|
]);
|
|
104
|
-
const m =
|
|
104
|
+
const m = I({
|
|
105
105
|
title: f("common.edit"),
|
|
106
106
|
visible: !1
|
|
107
107
|
});
|
|
108
|
-
S(!1);
|
|
109
108
|
let _ = R({});
|
|
110
109
|
function j() {
|
|
111
110
|
_ = R({}), m.value.title = f("common.add"), m.value.visible = !0;
|
|
@@ -113,7 +112,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
113
112
|
function L(a) {
|
|
114
113
|
_.flowSpareId = a.flowSpareId, m.value.title = f("common.edit"), m.value.visible = !0;
|
|
115
114
|
}
|
|
116
|
-
const v =
|
|
115
|
+
const v = I({
|
|
117
116
|
title: f("common.view"),
|
|
118
117
|
visible: !1
|
|
119
118
|
});
|
|
@@ -132,7 +131,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
132
131
|
return X(() => {
|
|
133
132
|
u.getList();
|
|
134
133
|
}), (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"),
|
|
134
|
+
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"), V = Z("hasPerm");
|
|
136
135
|
return d(), P("div", se, [
|
|
137
136
|
b("div", ie, [
|
|
138
137
|
o(Q, {
|
|
@@ -288,7 +287,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
288
287
|
]),
|
|
289
288
|
_: 1
|
|
290
289
|
})), [
|
|
291
|
-
[
|
|
290
|
+
[V, ["reports:itsm_flow_spare_parts:add"]]
|
|
292
291
|
])
|
|
293
292
|
]),
|
|
294
293
|
_: 1
|
|
@@ -311,10 +310,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
311
310
|
})
|
|
312
311
|
]),
|
|
313
312
|
footer: l(() => [
|
|
314
|
-
r(
|
|
313
|
+
r(S) > 0 ? (d(), h(W, {
|
|
315
314
|
key: 0,
|
|
316
|
-
total: r(
|
|
317
|
-
"onUpdate:total": t[8] || (t[8] = (e) => z(
|
|
315
|
+
total: r(S),
|
|
316
|
+
"onUpdate:total": t[8] || (t[8] = (e) => z(S) ? S.value = e : null),
|
|
318
317
|
"current-page": n.value.curPage,
|
|
319
318
|
"onUpdate:currentPage": t[9] || (t[9] = (e) => n.value.curPage = e),
|
|
320
319
|
"page-size": n.value.pageSize,
|
|
@@ -352,7 +351,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
352
351
|
}, [
|
|
353
352
|
y(i(a.$t("common.edit")), 1)
|
|
354
353
|
], 8, ue)), [
|
|
355
|
-
[
|
|
354
|
+
[V, ["reports:itsm_flow_spare_parts:update"]]
|
|
356
355
|
]),
|
|
357
356
|
C((d(), P("span", {
|
|
358
357
|
class: "el-button-color dropdown-left",
|
|
@@ -360,7 +359,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
360
359
|
}, [
|
|
361
360
|
y(i(a.$t("common.delete")), 1)
|
|
362
361
|
], 8, pe)), [
|
|
363
|
-
[
|
|
362
|
+
[V, ["reports:itsm_flow_spare_parts:delete"]]
|
|
364
363
|
]),
|
|
365
364
|
C((d(), P("span", {
|
|
366
365
|
class: "el-button-color dropdown-left",
|
|
@@ -368,7 +367,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
368
367
|
}, [
|
|
369
368
|
y(i(a.$t("common.view")), 1)
|
|
370
369
|
], 8, me)), [
|
|
371
|
-
[
|
|
370
|
+
[V, ["itsmflow:itsm_flow_entrust:view"]]
|
|
372
371
|
])
|
|
373
372
|
]),
|
|
374
373
|
_: 1
|
|
@@ -396,7 +395,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
|
|
|
396
395
|
]);
|
|
397
396
|
};
|
|
398
397
|
}
|
|
399
|
-
}), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-
|
|
398
|
+
}), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-d524d7e3"]]);
|
|
400
399
|
export {
|
|
401
400
|
Ve as default
|
|
402
401
|
};
|
|
@@ -2,8 +2,8 @@ import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, r
|
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
4
|
import { i as Z } from "./common-Cwl5jzlM.mjs";
|
|
5
|
-
import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { C as ee, D as h } from "./index-
|
|
5
|
+
import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-mfIQLtr7.mjs";
|
|
6
|
+
import { C as ee, D as h } from "./index-MPqnkTdo.mjs";
|
|
7
7
|
const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ae) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as A, mergeModels as
|
|
1
|
+
import { defineComponent as A, mergeModels as E, getCurrentInstance as P, ref as f, useModel as U, resolveComponent as c, createElementBlock as _, openBlock as p, Fragment as y, createVNode as t, withCtx as l, createElementVNode as h, createTextVNode as u, toDisplayString as m, renderList as C, unref as b, createBlock as x } from "vue";
|
|
2
2
|
import { rbacApi as O } from "jmash-rbac";
|
|
3
|
-
import { i as R, C as Y, D } from "./index-
|
|
4
|
-
import { fileApi as
|
|
5
|
-
import { i as
|
|
3
|
+
import { i as R, C as Y, D } from "./index-MPqnkTdo.mjs";
|
|
4
|
+
import { fileApi as S } from "jmash-core";
|
|
5
|
+
import { i as j } from "./index-BzNd3aeo.mjs";
|
|
6
6
|
const Q = /* @__PURE__ */ A({
|
|
7
7
|
__name: "index",
|
|
8
|
-
props: /* @__PURE__ */
|
|
8
|
+
props: /* @__PURE__ */ E({
|
|
9
9
|
task: {
|
|
10
10
|
type: Object,
|
|
11
11
|
default: () => {
|
|
@@ -17,17 +17,17 @@ const Q = /* @__PURE__ */ A({
|
|
|
17
17
|
}),
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(w, { expose: I }) {
|
|
20
|
-
const { proxy: M } =
|
|
21
|
-
|
|
20
|
+
const { proxy: M } = P(), k = f(), B = f({}), s = U(w, "modelValue"), F = w, i = f();
|
|
21
|
+
j.findById({ temporaryId: F.task.businessKey }).then((a) => {
|
|
22
22
|
i.value = a.data;
|
|
23
23
|
});
|
|
24
|
-
const
|
|
24
|
+
const T = f([]);
|
|
25
25
|
R.findFilesList({ actionId: F.task.businessKey }).then((a) => {
|
|
26
|
-
|
|
26
|
+
T.value = a.data.results, console.log(a.data.results, "=> files");
|
|
27
27
|
});
|
|
28
28
|
async function N(a) {
|
|
29
29
|
try {
|
|
30
|
-
const n =
|
|
30
|
+
const n = S.fileUrl(a.fileSrc), r = await (await fetch(n)).blob(), v = window.URL.createObjectURL(r), d = document.createElement("a");
|
|
31
31
|
d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
|
|
32
32
|
} catch {
|
|
33
33
|
}
|
|
@@ -51,7 +51,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
51
51
|
return p(), _(y, null, [
|
|
52
52
|
t(o, { span: 24 }, {
|
|
53
53
|
default: l(() => n[0] || (n[0] = [
|
|
54
|
-
|
|
54
|
+
h("div", { class: "title" }, "内部临时工单", -1)
|
|
55
55
|
])),
|
|
56
56
|
_: 1,
|
|
57
57
|
__: [0]
|
|
@@ -105,22 +105,22 @@ const Q = /* @__PURE__ */ A({
|
|
|
105
105
|
class: "bordered-row"
|
|
106
106
|
}, {
|
|
107
107
|
default: l(() => [
|
|
108
|
-
(p(!0), _(y, null, C(b(D).fileTypeDict.values.slice(2, 3), (e,
|
|
108
|
+
(p(!0), _(y, null, C(b(D).fileTypeDict.values.slice(2, 3), (e, z) => (p(), x(r, {
|
|
109
109
|
key: e.dictCode,
|
|
110
110
|
label: e.dictName
|
|
111
111
|
}, {
|
|
112
112
|
default: l(() => [
|
|
113
|
-
(p(!0), _(y, null, C(
|
|
113
|
+
(p(!0), _(y, null, C(T.value, (g, V) => (p(), _("div", {
|
|
114
114
|
key: V,
|
|
115
115
|
class: "files-list"
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
h("span", null, m(g.fileName), 1),
|
|
118
118
|
t(v, {
|
|
119
119
|
type: "primary",
|
|
120
120
|
link: "",
|
|
121
121
|
size: "small",
|
|
122
122
|
class: "icon-right",
|
|
123
|
-
onClick: (
|
|
123
|
+
onClick: (H) => N(g)
|
|
124
124
|
}, {
|
|
125
125
|
default: l(() => n[1] || (n[1] = [
|
|
126
126
|
u(" 查看 ")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as M, ref as k, reactive as R, resolveComponent as s, resolveDirective as W, createElementBlock as V, openBlock as p, createElementVNode as _, createVNode as o, createBlock as A, createCommentVNode as S, withCtx as l, withKeys as F, unref as n, createTextVNode as f, toDisplayString as u, withDirectives as $, isRef as T } from "vue";
|
|
2
2
|
import { useTableHooks as X } from "jmash-core";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
|
-
import { D as N, C as Z, i as x } from "./index-
|
|
5
|
-
import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { D as N, C as Z, i as x } from "./index-MPqnkTdo.mjs";
|
|
5
|
+
import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-Z6oOT8ZZ.mjs";
|
|
6
6
|
const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ae = ["onClick"], me = /* @__PURE__ */ M({
|
|
7
7
|
__name: "index",
|
|
8
8
|
setup(ne) {
|