xyvcard-itsm-flow 0.0.27 → 0.0.29
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-DDqwfEMu.mjs → FileSaver.min-BJJnPj5_.mjs} +1 -1
- package/dist/{edit-BpAjiLxu.mjs → edit-7a3pU3gM.mjs} +32 -33
- package/dist/{edit-CkGTDSiH.mjs → edit-B766NO49.mjs} +1 -1
- package/dist/{edit-DIyC972n.mjs → edit-BlU9fwRY.mjs} +2 -2
- package/dist/{edit-BWaFYsWY.mjs → edit-Cr-eJzsu.mjs} +2 -2
- package/dist/{edit-BH_qEChy.mjs → edit-DoewXVPj.mjs} +1 -1
- package/dist/{edit-D0-xQV59.mjs → edit-OIcnLUiZ.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.mjs → edit.vue_vue_type_script_setup_true_lang-B1O92nnS.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs → edit.vue_vue_type_script_setup_true_lang-BTZqpf-h.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs → edit.vue_vue_type_script_setup_true_lang-CTEuDDac.mjs} +1 -1
- package/dist/{index-Chh_9yED.mjs → index-B0EdAsac.mjs} +64 -64
- package/dist/{index-BkqkF7bW.mjs → index-BYjL5oUb.mjs} +1 -1
- package/dist/{index-Cd9CTAUb.mjs → index-BeiFftoz.mjs} +43 -43
- package/dist/{index-rHARbj0G.mjs → index-BokqyNKm.mjs} +3 -3
- package/dist/{index-Bjjyjlwd.mjs → index-BxTUhmxb.mjs} +1 -1
- package/dist/{index-n6pwVFlo.mjs → index-C-5DyRAf.mjs} +1 -1
- package/dist/{index-CillImY_.mjs → index-C0SUKE_b.mjs} +130 -131
- package/dist/{index-qvWMlGg9.mjs → index-CS4lbGVv.mjs} +2 -2
- package/dist/{index-CGDEQO2p.mjs → index-CTHETI78.mjs} +2 -2
- package/dist/{index-DfptoNZ3.mjs → index-ClSfPsAZ.mjs} +225 -234
- package/dist/{index-YBHgdjIk.mjs → index-CloP-imd.mjs} +77 -77
- package/dist/{index-WpTFFCXY.mjs → index-CvRKy1Zt.mjs} +3 -3
- package/dist/{index-DBRVK73O.mjs → index-DD73FsFR.mjs} +2 -2
- package/dist/{index-QPdQNctc.mjs → index-D_YsAUB5.mjs} +4 -4
- package/dist/{index-DjZysfQB.mjs → index-DdN_VfEA.mjs} +19 -20
- package/dist/{index-DY5EGkfi.mjs → index-DhIucH1l.mjs} +3 -3
- package/dist/{index-DxoX_XqQ.mjs → index-Dhi872WO.mjs} +54 -56
- package/dist/{index-D6Poyzq3.mjs → index-Dt4hyivI.mjs} +2 -2
- package/dist/index-FYXSfSRw.mjs +336 -0
- package/dist/{index-CXOeg2so.mjs → index-H9iJHz8H.mjs} +408 -378
- package/dist/{index-BKveaoi_.mjs → index-SHY9mfQ4.mjs} +15 -15
- package/dist/{index-CI9FMMKr.mjs → index-TwUCIPb2.mjs} +34 -35
- package/dist/{index-CjYlJigX.mjs → index-WI518CIo.mjs} +4 -4
- package/dist/{index-B20ya3NZ.mjs → index-ZWDwP27X.mjs} +93 -93
- package/dist/{index-CQ9elIv7.mjs → index-a9yfLGkF.mjs} +2 -2
- package/dist/{index-BKQGui3N.mjs → index-gz_fPNLU.mjs} +3 -3
- package/dist/{index-C3zQQDPa.mjs → index-nKA8vf-F.mjs} +3 -3
- package/dist/{index-DcDzU5zK.mjs → index-oOdJR6IJ.mjs} +61 -58
- package/dist/{index-CV6uWLV9.mjs → index-uxxOPESF.mjs} +33 -33
- package/dist/{index-DTY8LR57.mjs → index-yF5goVnK.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{info-BmfgBiif.mjs → info-B3IFH6JM.mjs} +1 -1
- package/dist/{info-C1J_4HDK.mjs → info-BPzoFpre.mjs} +1 -1
- package/dist/{info-DTZck-Y6.mjs → info-DDUOzO6P.mjs} +1 -1
- package/dist/{info-0Dcd8VrX.mjs → info-DeCyo-9t.mjs} +1 -1
- package/dist/info-DgdSwOpG.mjs +4 -0
- package/dist/info-mG4uiy17.mjs +4 -0
- package/dist/{info.vue_vue_type_script_setup_true_lang-CzLGZ50z.mjs → info.vue_vue_type_script_setup_true_lang-Bp7DYLNW.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs → info.vue_vue_type_script_setup_true_lang-BsVcXTOa.mjs} +2 -2
- package/dist/{info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs → info.vue_vue_type_script_setup_true_lang-DRu-ikYO.mjs} +14 -14
- package/dist/{info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs → info.vue_vue_type_script_setup_true_lang-DVV5aOiA.mjs} +10 -10
- package/dist/{info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs → info.vue_vue_type_script_setup_true_lang-DqrV1bD4.mjs} +1 -1
- package/dist/{info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs → info.vue_vue_type_script_setup_true_lang-QbYDyzuO.mjs} +12 -12
- package/dist/style.css +1 -1
- package/dts/api/itsm-flow-spare-parts-demand-data/index.d.ts +8 -0
- package/dts/api/itsm-flow-spare-parts-demand-data/types.d.ts +44 -0
- package/dts/api/itsm-flow-temporary/types.d.ts +1 -1
- package/dts/lang/itsm-flow/zh-cn.d.ts +29 -0
- package/dts/views/itsm-flow-spare-parts-demand-data/index.vue.d.ts +2 -0
- package/package.json +1 -1
- package/dist/info-DjtHpeoT.mjs +0 -4
- package/dist/info-qIG0jebP.mjs +0 -4
|
@@ -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-H9iJHz8H.mjs";
|
|
5
|
+
import { D as F, i as I, C as y } from "./index-yF5goVnK.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-BJJnPj5_.mjs";
|
|
9
9
|
import { E as j } from "./el-message-BJAl6Gwu.mjs";
|
|
10
10
|
const ke = /* @__PURE__ */ Z({
|
|
11
11
|
__name: "index",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as b, createElementBlock as f, openBlock as d, Fragment as k, createVNode as l, withCtx as e, createElementVNode as F, createTextVNode as i, toDisplayString as u, renderList as T, unref as w, createBlock as M } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { i as H } from "./index-
|
|
4
|
-
import { D as
|
|
3
|
+
import { i as H } from "./index-H9iJHz8H.mjs";
|
|
4
|
+
import { D as _, i as K, C as W } from "./index-yF5goVnK.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
|
-
const Q = /* @__PURE__ */
|
|
7
|
+
const Q = /* @__PURE__ */ P({
|
|
8
8
|
__name: "index",
|
|
9
9
|
props: /* @__PURE__ */ z({
|
|
10
10
|
task: {
|
|
@@ -17,64 +17,67 @@ const Q = /* @__PURE__ */ A({
|
|
|
17
17
|
modelModifiers: {}
|
|
18
18
|
}),
|
|
19
19
|
emits: ["update:modelValue"],
|
|
20
|
-
setup(
|
|
20
|
+
setup(h, { expose: V }) {
|
|
21
21
|
const { proxy: x } = R(), B = q();
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
var a,
|
|
26
|
-
g.value = t.data.results
|
|
27
|
-
const s = ((a =
|
|
28
|
-
|
|
29
|
-
(
|
|
30
|
-
),
|
|
31
|
-
(
|
|
32
|
-
);
|
|
33
|
-
}), H.findById({ temporaryId:
|
|
22
|
+
_.userExtBizDict.useValues();
|
|
23
|
+
const I = v(), m = Y(h, "modelValue"), O = v({}), g = v([]), L = v([]), C = v([]), n = v({}), $ = h;
|
|
24
|
+
K.findFilesList({ actionId: $.task.businessKey }).then((t) => {
|
|
25
|
+
var a, p;
|
|
26
|
+
g.value = t.data.results;
|
|
27
|
+
const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((p = _.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : p.dictCode) || "";
|
|
28
|
+
L.value = g.value.filter(
|
|
29
|
+
(r) => r.fileSort === s
|
|
30
|
+
), C.value = g.value.filter(
|
|
31
|
+
(r) => r.fileSort === o
|
|
32
|
+
), console.log(C.value, "=>filesList2 ");
|
|
33
|
+
}), H.findById({ temporaryId: $.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
|
});
|
|
37
37
|
});
|
|
38
38
|
async function N(t) {
|
|
39
39
|
try {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
console.log(t, "=> item");
|
|
41
|
+
const s = G.fileUrl(t.fileSrc);
|
|
42
|
+
console.log(s, "=> fileUrl");
|
|
43
|
+
const a = await (await fetch(s)).blob(), p = window.URL.createObjectURL(a), r = document.createElement("a");
|
|
44
|
+
r.href = p, r.download = t.fileName || "download", document.body.appendChild(r), r.click();
|
|
42
45
|
} catch {
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
V({
|
|
46
|
-
changeModel: () =>
|
|
49
|
+
changeModel: () => S()
|
|
47
50
|
});
|
|
48
|
-
function
|
|
49
|
-
return
|
|
51
|
+
function S() {
|
|
52
|
+
return m.value && (m.value.selectActions = [
|
|
50
53
|
{ key: "true", value: "同意" },
|
|
51
54
|
{ key: "false", value: "不同意" }
|
|
52
|
-
],
|
|
55
|
+
], m.value.varName = "approved", m.value.module = "", m.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
|
|
53
56
|
var o;
|
|
54
|
-
(o =
|
|
55
|
-
a ? (
|
|
57
|
+
(o = I.value) == null || o.validate((a) => {
|
|
58
|
+
a ? (m.value && (m.value.comment = ""), t(!0)) : s(!1);
|
|
56
59
|
});
|
|
57
60
|
});
|
|
58
61
|
}
|
|
59
62
|
return (t, s) => {
|
|
60
|
-
const o = b("el-col"), a = b("el-form-item"),
|
|
61
|
-
return
|
|
63
|
+
const o = b("el-col"), a = b("el-form-item"), p = b("el-button"), r = b("el-row"), U = b("el-form");
|
|
64
|
+
return d(), f(k, null, [
|
|
62
65
|
l(o, { span: 24 }, {
|
|
63
66
|
default: e(() => s[0] || (s[0] = [
|
|
64
|
-
|
|
67
|
+
F("div", { class: "title" }, "内部临时工单", -1)
|
|
65
68
|
])),
|
|
66
69
|
_: 1,
|
|
67
70
|
__: [0]
|
|
68
71
|
}),
|
|
69
|
-
l(
|
|
72
|
+
l(U, {
|
|
70
73
|
ref_key: "taskFormRef",
|
|
71
|
-
ref:
|
|
74
|
+
ref: I,
|
|
72
75
|
model: O.value,
|
|
73
76
|
"label-width": "150px",
|
|
74
77
|
class: "custom-table-form custom-form"
|
|
75
78
|
}, {
|
|
76
79
|
default: e(() => [
|
|
77
|
-
l(
|
|
80
|
+
l(r, null, {
|
|
78
81
|
default: e(() => [
|
|
79
82
|
l(o, { span: 24 }, {
|
|
80
83
|
default: e(() => [
|
|
@@ -83,7 +86,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
83
86
|
prop: "title"
|
|
84
87
|
}, {
|
|
85
88
|
default: e(() => [
|
|
86
|
-
|
|
89
|
+
i(u(n.value.title), 1)
|
|
87
90
|
]),
|
|
88
91
|
_: 1
|
|
89
92
|
}, 8, ["label"])
|
|
@@ -97,7 +100,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
97
100
|
prop: "content"
|
|
98
101
|
}, {
|
|
99
102
|
default: e(() => [
|
|
100
|
-
|
|
103
|
+
i(u(n.value.content), 1)
|
|
101
104
|
]),
|
|
102
105
|
_: 1
|
|
103
106
|
}, 8, ["label"])
|
|
@@ -106,25 +109,25 @@ const Q = /* @__PURE__ */ A({
|
|
|
106
109
|
}),
|
|
107
110
|
l(o, { span: 24 }, {
|
|
108
111
|
default: e(() => [
|
|
109
|
-
(
|
|
110
|
-
key:
|
|
111
|
-
label:
|
|
112
|
+
(d(!0), f(k, null, T(w(_).fileTypeDict.values.slice(2, 3), (c, E) => (d(), M(a, {
|
|
113
|
+
key: c.dictCode,
|
|
114
|
+
label: c.dictName
|
|
112
115
|
}, {
|
|
113
116
|
default: e(() => [
|
|
114
|
-
(
|
|
117
|
+
(d(!0), f(k, null, T(L.value, (y, D) => (d(), f("div", {
|
|
115
118
|
key: D,
|
|
116
119
|
class: "files-list"
|
|
117
120
|
}, [
|
|
118
|
-
|
|
119
|
-
l(
|
|
121
|
+
F("span", null, u(y.fileName), 1),
|
|
122
|
+
l(p, {
|
|
120
123
|
type: "primary",
|
|
121
124
|
link: "",
|
|
122
125
|
size: "small",
|
|
123
126
|
class: "icon-right",
|
|
124
|
-
onClick: (
|
|
127
|
+
onClick: (A) => N(y)
|
|
125
128
|
}, {
|
|
126
129
|
default: e(() => s[1] || (s[1] = [
|
|
127
|
-
|
|
130
|
+
i(" 查看 ")
|
|
128
131
|
])),
|
|
129
132
|
_: 2,
|
|
130
133
|
__: [1]
|
|
@@ -142,7 +145,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
142
145
|
label: t.$t("itsmFlowTemporary.createBy")
|
|
143
146
|
}, {
|
|
144
147
|
default: e(() => [
|
|
145
|
-
|
|
148
|
+
i(u(w(B).user.realName), 1)
|
|
146
149
|
]),
|
|
147
150
|
_: 1
|
|
148
151
|
}, 8, ["label"])
|
|
@@ -156,10 +159,10 @@ const Q = /* @__PURE__ */ A({
|
|
|
156
159
|
prop: "createTime"
|
|
157
160
|
}, {
|
|
158
161
|
default: e(() => {
|
|
159
|
-
var
|
|
162
|
+
var c;
|
|
160
163
|
return [
|
|
161
|
-
|
|
162
|
-
(
|
|
164
|
+
i(u(w(x).$moment.formatDate(
|
|
165
|
+
(c = n.value) == null ? void 0 : c.createTime,
|
|
163
166
|
"YYYY-MM-DD HH:mm:ss"
|
|
164
167
|
)), 1)
|
|
165
168
|
];
|
|
@@ -176,7 +179,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
176
179
|
prop: "userId"
|
|
177
180
|
}, {
|
|
178
181
|
default: e(() => [
|
|
179
|
-
|
|
182
|
+
i(u(w(_).userExtBizDict.getValue(n.value.userId)), 1)
|
|
180
183
|
]),
|
|
181
184
|
_: 1
|
|
182
185
|
}, 8, ["label"])
|
|
@@ -190,7 +193,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
190
193
|
prop: "handlingPeriod"
|
|
191
194
|
}, {
|
|
192
195
|
default: e(() => [
|
|
193
|
-
|
|
196
|
+
i(u(n.value.handlingPeriod), 1)
|
|
194
197
|
]),
|
|
195
198
|
_: 1
|
|
196
199
|
}, 8, ["label"])
|
|
@@ -204,7 +207,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
204
207
|
prop: "finishDate"
|
|
205
208
|
}, {
|
|
206
209
|
default: e(() => [
|
|
207
|
-
|
|
210
|
+
i(u(n.value.finishDate), 1)
|
|
208
211
|
]),
|
|
209
212
|
_: 1
|
|
210
213
|
}, 8, ["label"])
|
|
@@ -218,7 +221,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
218
221
|
prop: "completion"
|
|
219
222
|
}, {
|
|
220
223
|
default: e(() => [
|
|
221
|
-
|
|
224
|
+
i(u(n.value.completion), 1)
|
|
222
225
|
]),
|
|
223
226
|
_: 1
|
|
224
227
|
}, 8, ["label"])
|
|
@@ -227,25 +230,25 @@ const Q = /* @__PURE__ */ A({
|
|
|
227
230
|
}),
|
|
228
231
|
l(o, { span: 24 }, {
|
|
229
232
|
default: e(() => [
|
|
230
|
-
(
|
|
231
|
-
key:
|
|
232
|
-
label:
|
|
233
|
+
(d(!0), f(k, null, T(w(_).fileTypeDict.values.slice(3, 4), (c, E) => (d(), M(a, {
|
|
234
|
+
key: c.dictCode,
|
|
235
|
+
label: c.dictName
|
|
233
236
|
}, {
|
|
234
237
|
default: e(() => [
|
|
235
|
-
(
|
|
238
|
+
(d(!0), f(k, null, T(C.value, (y, D) => (d(), f("div", {
|
|
236
239
|
key: D,
|
|
237
240
|
class: "files-list"
|
|
238
241
|
}, [
|
|
239
|
-
|
|
240
|
-
l(
|
|
242
|
+
F("span", null, u(y.fileName), 1),
|
|
243
|
+
l(p, {
|
|
241
244
|
type: "primary",
|
|
242
245
|
link: "",
|
|
243
246
|
size: "small",
|
|
244
247
|
class: "icon-right",
|
|
245
|
-
onClick: (
|
|
248
|
+
onClick: (A) => N(y)
|
|
246
249
|
}, {
|
|
247
250
|
default: e(() => s[2] || (s[2] = [
|
|
248
|
-
|
|
251
|
+
i(" 查看 ")
|
|
249
252
|
])),
|
|
250
253
|
_: 2,
|
|
251
254
|
__: [2]
|
|
@@ -266,7 +269,7 @@ const Q = /* @__PURE__ */ A({
|
|
|
266
269
|
], 64);
|
|
267
270
|
};
|
|
268
271
|
}
|
|
269
|
-
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-
|
|
272
|
+
}), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-c6d4eacd"]]);
|
|
270
273
|
export {
|
|
271
274
|
ae as default
|
|
272
275
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as b, createElementBlock as v, openBlock as m, Fragment as
|
|
1
|
+
import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as b, createElementBlock as v, openBlock as m, Fragment as D, createVNode as t, withCtx as e, createElementVNode as F, createBlock as g, createCommentVNode as k, createTextVNode as n, toDisplayString as s, unref as y, renderList as M } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
import { useI18n as q } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import { i as H, a as J } from "./index-
|
|
4
|
+
import { D as f, i as G, C as N } from "./index-yF5goVnK.mjs";
|
|
5
|
+
import { i as H, a as J } from "./index-BxTUhmxb.mjs";
|
|
6
6
|
import { fileApi as Q } from "jmash-core";
|
|
7
7
|
import { rbacApi as X } from "jmash-rbac";
|
|
8
8
|
const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
@@ -19,27 +19,27 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
19
19
|
}),
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(I, { expose: O }) {
|
|
22
|
-
const { t: Z } = q(),
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
H.findById({ flowSpareId:
|
|
22
|
+
const { t: Z } = q(), h = w(), A = w({}), c = W(I, "modelValue");
|
|
23
|
+
f.orgIdBizDict.useValues(), f.budgetTypeDict.useValues(), f.itemBizLayDict.useValues();
|
|
24
|
+
const P = I, u = w();
|
|
25
|
+
H.findById({ flowSpareId: P.task.businessKey }).then(({ data: a }) => {
|
|
26
26
|
u.value = a;
|
|
27
27
|
});
|
|
28
|
+
const V = w([]);
|
|
29
|
+
J.findList({ flowSpareId: P.task.businessKey }).then((a) => {
|
|
30
|
+
V.value = a.data.results;
|
|
31
|
+
});
|
|
28
32
|
const C = w([]);
|
|
29
|
-
|
|
33
|
+
G.findFilesList({ actionId: P.task.businessKey }).then((a) => {
|
|
30
34
|
C.value = a.data.results;
|
|
31
35
|
});
|
|
32
|
-
const L = w([]);
|
|
33
|
-
G.findFilesList({ actionId: k.task.businessKey }).then((a) => {
|
|
34
|
-
L.value = a.data.results;
|
|
35
|
-
});
|
|
36
36
|
const E = (a) => {
|
|
37
37
|
var p;
|
|
38
|
-
return ((p =
|
|
38
|
+
return ((p = C.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
|
|
39
39
|
};
|
|
40
40
|
async function T(a) {
|
|
41
41
|
try {
|
|
42
|
-
const p = Q.fileUrl(a.
|
|
42
|
+
const p = Q.fileUrl(a.fileSrc), i = await (await fetch(p)).blob(), S = window.URL.createObjectURL(i), d = document.createElement("a");
|
|
43
43
|
d.href = S, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
|
|
44
44
|
} catch {
|
|
45
45
|
}
|
|
@@ -51,16 +51,16 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
51
51
|
return c.value && (c.value.selectActions = [
|
|
52
52
|
{ key: "true", value: "同意" },
|
|
53
53
|
{ key: "false", value: "不同意" }
|
|
54
|
-
], c.value.varName = "approved", c.value.module = "", c.value.module =
|
|
54
|
+
], c.value.varName = "approved", c.value.module = "", c.value.module = N.MODULE_ITSMFLOW), new Promise((a, p) => {
|
|
55
55
|
var r;
|
|
56
|
-
(r =
|
|
56
|
+
(r = h.value) == null || r.validate((i) => {
|
|
57
57
|
i ? (c.value && (c.value.comment = ""), a(!0)) : p(!1);
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
return (a, p) => {
|
|
62
|
-
const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"),
|
|
63
|
-
return m(), v(
|
|
62
|
+
const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"), L = b("el-form");
|
|
63
|
+
return m(), v(D, null, [
|
|
64
64
|
t(r, { span: 24 }, {
|
|
65
65
|
default: e(() => p[0] || (p[0] = [
|
|
66
66
|
F("div", { class: "title" }, "备品备件申请领用确认单", -1)
|
|
@@ -68,15 +68,15 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
68
68
|
_: 1,
|
|
69
69
|
__: [0]
|
|
70
70
|
}),
|
|
71
|
-
t(
|
|
71
|
+
t(L, {
|
|
72
72
|
ref_key: "taskFormRef",
|
|
73
|
-
ref:
|
|
73
|
+
ref: h,
|
|
74
74
|
model: A.value,
|
|
75
75
|
"label-width": "150px",
|
|
76
76
|
class: "custom-table-form"
|
|
77
77
|
}, {
|
|
78
78
|
default: e(() => [
|
|
79
|
-
t(
|
|
79
|
+
t(L, {
|
|
80
80
|
ref: "itsmFlowEntrustFormRef",
|
|
81
81
|
"label-width": "150px",
|
|
82
82
|
class: "custom-table-form custom-form"
|
|
@@ -84,7 +84,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
84
84
|
default: e(() => [
|
|
85
85
|
t(S, null, {
|
|
86
86
|
default: e(() => {
|
|
87
|
-
var o,
|
|
87
|
+
var o, $, _;
|
|
88
88
|
return [
|
|
89
89
|
t(r, { span: 12 }, {
|
|
90
90
|
default: e(() => [
|
|
@@ -173,8 +173,8 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
173
173
|
}, 8, ["label"])
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
|
-
})) :
|
|
177
|
-
((
|
|
176
|
+
})) : k("", !0),
|
|
177
|
+
(($ = u.value) == null ? void 0 : $.type) !== "BudgetOut" ? (m(), g(r, {
|
|
178
178
|
key: 1,
|
|
179
179
|
span: 12
|
|
180
180
|
}, {
|
|
@@ -193,7 +193,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
193
193
|
}, 8, ["label"])
|
|
194
194
|
]),
|
|
195
195
|
_: 1
|
|
196
|
-
})) :
|
|
196
|
+
})) : k("", !0),
|
|
197
197
|
((_ = u.value) == null ? void 0 : _.type) !== "BudgetOut" ? (m(), g(r, {
|
|
198
198
|
key: 2,
|
|
199
199
|
span: 12
|
|
@@ -213,7 +213,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
213
213
|
}, 8, ["label"])
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
|
-
})) :
|
|
216
|
+
})) : k("", !0),
|
|
217
217
|
t(r, { span: 12 }, {
|
|
218
218
|
default: e(() => [
|
|
219
219
|
t(i, {
|
|
@@ -221,9 +221,9 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
221
221
|
prop: "createBy"
|
|
222
222
|
}, {
|
|
223
223
|
default: e(() => {
|
|
224
|
-
var l,
|
|
224
|
+
var l, B;
|
|
225
225
|
return [
|
|
226
|
-
n(s((l = u.value) != null && l.createBy ? (
|
|
226
|
+
n(s((l = u.value) != null && l.createBy ? (B = y(X).userInfo(u.value.createBy)) == null ? void 0 : B.realName : ""), 1)
|
|
227
227
|
];
|
|
228
228
|
}),
|
|
229
229
|
_: 1
|
|
@@ -266,7 +266,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
266
266
|
t(R, {
|
|
267
267
|
stripe: "",
|
|
268
268
|
style: { width: "100%" },
|
|
269
|
-
data:
|
|
269
|
+
data: V.value
|
|
270
270
|
}, {
|
|
271
271
|
default: e(() => [
|
|
272
272
|
t(d, {
|
|
@@ -337,7 +337,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
337
337
|
label: a.$t("itsmFlowSpareParts.applyStatus ")
|
|
338
338
|
}, {
|
|
339
339
|
default: e((o) => [
|
|
340
|
-
o.row.applyStatus === y(
|
|
340
|
+
o.row.applyStatus === y(N).applyStatus.finished ? (m(), v("span", Y, "已领用 ")) : k("", !0)
|
|
341
341
|
]),
|
|
342
342
|
_: 1
|
|
343
343
|
}, 8, ["label"])
|
|
@@ -352,12 +352,12 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
352
352
|
class: "bordered-row"
|
|
353
353
|
}, {
|
|
354
354
|
default: e(() => [
|
|
355
|
-
(m(!0), v(
|
|
355
|
+
(m(!0), v(D, null, M(y(f).fileTypeDict.values.slice(0, 2), (o, $) => (m(), g(i, {
|
|
356
356
|
key: o.dictCode,
|
|
357
357
|
label: o.dictName
|
|
358
358
|
}, {
|
|
359
359
|
default: e(() => [
|
|
360
|
-
(m(!0), v(
|
|
360
|
+
(m(!0), v(D, null, M(E(o.dictCode), (_, l) => (m(), v("div", {
|
|
361
361
|
key: l,
|
|
362
362
|
class: "files-list"
|
|
363
363
|
}, [
|
|
@@ -367,7 +367,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
|
|
|
367
367
|
link: "",
|
|
368
368
|
size: "small",
|
|
369
369
|
class: "icon-right",
|
|
370
|
-
onClick: (
|
|
370
|
+
onClick: (B) => T(_)
|
|
371
371
|
}, {
|
|
372
372
|
default: e(() => p[2] || (p[2] = [
|
|
373
373
|
n(" 查看 ")
|
|
@@ -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-H9iJHz8H.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 {
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "jmash-core";
|
|
2
|
-
import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-
|
|
2
|
+
import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-H9iJHz8H.mjs";
|
|
3
3
|
import "jmash-flow";
|
|
4
4
|
export {
|
|
5
5
|
m as TaskItsmFlowAcceptance,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as I, mergeModels as h, ref as N, useModel as B, resolveComponent as p, createBlock as O, openBlock as U, withCtx as e, createVNode as l, createElementVNode as a, createTextVNode as u, toDisplayString as i, unref as v } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { D as m, i as F } from "./index-
|
|
3
|
+
import { D as m, i as F } from "./index-yF5goVnK.mjs";
|
|
4
4
|
import { fileApi as j } from "jmash-core";
|
|
5
5
|
const M = /* @__PURE__ */ I({
|
|
6
6
|
__name: "info",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as h, mergeModels as K, ref as F, useModel as j, resolveComponent as p, createBlock as z, openBlock as v, withCtx as e, createVNode as t, createElementVNode as n, createTextVNode as r, toDisplayString as a, unref as w, createElementBlock as y, createCommentVNode as M, withDirectives as C, vShow as V } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { a as S } from "./index-
|
|
4
|
-
import { D as c, a as A } from "./index-
|
|
3
|
+
import { a as S } from "./index-H9iJHz8H.mjs";
|
|
4
|
+
import { D as c, a as A } from "./index-yF5goVnK.mjs";
|
|
5
5
|
const R = { key: 0 }, q = { key: 1 }, L = {
|
|
6
6
|
key: 2,
|
|
7
7
|
class: "distance-left"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as U, mergeModels as K, useModel as z, ref as P, resolveComponent as m, createBlock as _, openBlock as f, withCtx as e, createVNode as l, createElementVNode as $, createCommentVNode as B, createTextVNode as r, toDisplayString as n, unref as c, createElementBlock as I, Fragment as C, renderList as N } from "vue";
|
|
2
|
-
import { D as b, i as R } from "./index-
|
|
3
|
-
import { i as j, a as q } from "./index-
|
|
2
|
+
import { D as b, i as R } from "./index-yF5goVnK.mjs";
|
|
3
|
+
import { i as j, a as q } from "./index-BxTUhmxb.mjs";
|
|
4
4
|
import { fileApi as G } from "jmash-core";
|
|
5
5
|
import { rbacApi as H } from "jmash-rbac";
|
|
6
6
|
const Z = /* @__PURE__ */ U({
|
|
@@ -31,18 +31,18 @@ const Z = /* @__PURE__ */ U({
|
|
|
31
31
|
R.findFilesList({ actionId: g.entityKey.flowSpareId }).then((a) => {
|
|
32
32
|
k.value = a.data.results;
|
|
33
33
|
});
|
|
34
|
-
const
|
|
34
|
+
const L = (a) => {
|
|
35
35
|
var u;
|
|
36
36
|
return ((u = k.value) == null ? void 0 : u.filter((p) => p.fileSort === a)) || [];
|
|
37
37
|
};
|
|
38
|
-
async function
|
|
38
|
+
async function O(a) {
|
|
39
39
|
try {
|
|
40
|
-
const u = G.fileUrl(a.
|
|
40
|
+
const u = G.fileUrl(a.fileSrc), i = await (await fetch(u)).blob(), v = window.URL.createObjectURL(i), d = document.createElement("a");
|
|
41
41
|
d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function h() {
|
|
46
46
|
w.value && (w.value = !1);
|
|
47
47
|
}
|
|
48
48
|
return (a, u) => {
|
|
@@ -50,7 +50,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
50
50
|
return f(), _(T, {
|
|
51
51
|
modelValue: w.value,
|
|
52
52
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => w.value = o),
|
|
53
|
-
onClose:
|
|
53
|
+
onClose: h
|
|
54
54
|
}, {
|
|
55
55
|
default: e(() => [
|
|
56
56
|
l(p, { span: 24 }, {
|
|
@@ -68,7 +68,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
68
68
|
default: e(() => [
|
|
69
69
|
l(v, null, {
|
|
70
70
|
default: e(() => {
|
|
71
|
-
var o,
|
|
71
|
+
var o, S, y;
|
|
72
72
|
return [
|
|
73
73
|
l(p, { span: 12 }, {
|
|
74
74
|
default: e(() => [
|
|
@@ -158,7 +158,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
160
|
})) : B("", !0),
|
|
161
|
-
((
|
|
161
|
+
((S = s.value) == null ? void 0 : S.type) !== "BudgetOut" ? (f(), _(p, {
|
|
162
162
|
key: 1,
|
|
163
163
|
span: 12
|
|
164
164
|
}, {
|
|
@@ -205,9 +205,9 @@ const Z = /* @__PURE__ */ U({
|
|
|
205
205
|
prop: "createBy"
|
|
206
206
|
}, {
|
|
207
207
|
default: e(() => {
|
|
208
|
-
var t,
|
|
208
|
+
var t, F;
|
|
209
209
|
return [
|
|
210
|
-
r(n((t = s.value) != null && t.createBy ? (
|
|
210
|
+
r(n((t = s.value) != null && t.createBy ? (F = c(H).userInfo(s.value.createBy)) == null ? void 0 : F.realName : ""), 1)
|
|
211
211
|
];
|
|
212
212
|
}),
|
|
213
213
|
_: 1
|
|
@@ -327,12 +327,12 @@ const Z = /* @__PURE__ */ U({
|
|
|
327
327
|
class: "bordered-row"
|
|
328
328
|
}, {
|
|
329
329
|
default: e(() => [
|
|
330
|
-
(f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o,
|
|
330
|
+
(f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o, S) => (f(), _(i, {
|
|
331
331
|
key: o.dictCode,
|
|
332
332
|
label: o.dictName
|
|
333
333
|
}, {
|
|
334
334
|
default: e(() => [
|
|
335
|
-
(f(!0), I(C, null, N(
|
|
335
|
+
(f(!0), I(C, null, N(L(o.dictCode), (y, t) => (f(), I("div", {
|
|
336
336
|
key: t,
|
|
337
337
|
class: "files-list"
|
|
338
338
|
}, [
|
|
@@ -342,7 +342,7 @@ const Z = /* @__PURE__ */ U({
|
|
|
342
342
|
link: "",
|
|
343
343
|
size: "small",
|
|
344
344
|
class: "icon-right",
|
|
345
|
-
onClick: (
|
|
345
|
+
onClick: (F) => O(y)
|
|
346
346
|
}, {
|
|
347
347
|
default: e(() => u[3] || (u[3] = [
|
|
348
348
|
r(" 查看 ")
|