xyvcard-itsm-flow 0.0.6 → 0.0.7
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/_commonjsHelpers-BVfed4GL.mjs +28 -0
- package/dist/{edit-CWxy8_xc.mjs → edit-BZbho2xr.mjs} +1 -1
- package/dist/edit-DA920KWc.mjs +4 -0
- package/dist/edit-DxK8SrUd.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +589 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +688 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +656 -0
- package/dist/el-message-D28AReoi.mjs +1238 -0
- package/dist/index-BZGkoyv9.mjs +68 -0
- package/dist/{index-C_jhIPZS.mjs → index-BwhWFAEK.mjs} +13 -12
- package/dist/index-CMOEnYG7.mjs +21 -0
- package/dist/index-CXarOLFt.mjs +361 -0
- package/dist/index-Clg5YSzX.mjs +598 -0
- package/dist/index-CwnMo6nD.mjs +1651 -0
- package/dist/index-DDwNGNtf.mjs +558 -0
- package/dist/index-Dimzx0Lh.mjs +344 -0
- package/dist/index-qOQQkVw8.mjs +345 -0
- package/dist/index.mjs +753 -727
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +6 -0
- package/dts/api/index.d.ts +3 -1
- package/dts/api/itsm-flow-acceptance/index.d.ts +20 -0
- package/dts/api/itsm-flow-acceptance/types.d.ts +104 -0
- package/dts/api/itsm-flow-entrust/index.d.ts +3 -2
- package/dts/api/itsm-flow-entrust/types.d.ts +24 -3
- package/dts/api/itsm-flow-reckoning/index.d.ts +20 -0
- package/dts/api/itsm-flow-reckoning/types.d.ts +93 -0
- package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +28 -0
- package/dts/constant.d.ts +8 -0
- package/dts/index.d.ts +1 -0
- package/dts/lang/itsm-flow/zh-cn.d.ts +38 -14
- package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-acceptance/index.vue.d.ts +2 -0
- package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +28 -0
- package/dts/views/itsm-flow-reckoning/index.vue.d.ts +2 -0
- package/package.json +4 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +0 -619
- package/dist/index-DKtAcP6b.mjs +0 -1582
- package/dist/index-DdDM4ocv.mjs +0 -327
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { defineComponent as M, ref as C, reactive as D, resolveComponent as c, resolveDirective as W, openBlock as u, createElementBlock as V, createElementVNode as A, createVNode as a, withCtx as l, withKeys as F, unref as n, createTextVNode as d, toDisplayString as m, withDirectives as y, createBlock as N, isRef as S, createCommentVNode as P } from "vue";
|
|
2
|
+
import { useTableHooks as X } from "jmash-core";
|
|
3
|
+
import { useI18n as Y } from "vue-i18n";
|
|
4
|
+
import { i as Z, _ as x } from "./edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs";
|
|
5
|
+
import { D as $ } from "./index-BZGkoyv9.mjs";
|
|
6
|
+
const ee = { class: "app-container" }, te = { class: "search-container" }, le = ["onClick"], oe = ["onClick"], me = /* @__PURE__ */ M({
|
|
7
|
+
__name: "index",
|
|
8
|
+
setup(ae) {
|
|
9
|
+
$.orgIdBizDict.useValues();
|
|
10
|
+
const { t: f } = Y(), i = C({}), {
|
|
11
|
+
tableHooks: r,
|
|
12
|
+
multipleTableRef: U,
|
|
13
|
+
queryFormRef: z,
|
|
14
|
+
listLoading: T,
|
|
15
|
+
tableData: j,
|
|
16
|
+
total: v
|
|
17
|
+
} = X(f, Z, i);
|
|
18
|
+
let w = C([
|
|
19
|
+
{
|
|
20
|
+
label: "itsmFlowAcceptance.contractName",
|
|
21
|
+
prop: "contractName",
|
|
22
|
+
width: "150",
|
|
23
|
+
isColumn: !0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: "itsmFlowAcceptance.contractNo",
|
|
27
|
+
prop: "contractNo",
|
|
28
|
+
width: "150",
|
|
29
|
+
isColumn: !0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
label: "itsmFlowAcceptance.entrustName",
|
|
33
|
+
prop: "entrustName",
|
|
34
|
+
isColumn: !0
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "itsmFlowAcceptance.serviceOrg",
|
|
38
|
+
prop: "serviceOrg",
|
|
39
|
+
width: "150",
|
|
40
|
+
isColumn: !0,
|
|
41
|
+
slotName: "serviceOrg",
|
|
42
|
+
columnType: "slot"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "itsmFlowAcceptance.stage",
|
|
46
|
+
prop: "stage",
|
|
47
|
+
width: "120",
|
|
48
|
+
isColumn: !0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "itsmFlowAcceptance.headman",
|
|
52
|
+
prop: "headmanName",
|
|
53
|
+
width: "120",
|
|
54
|
+
isColumn: !0
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: "itsmFlowAcceptance.members",
|
|
58
|
+
prop: "membersName",
|
|
59
|
+
width: "150",
|
|
60
|
+
isColumn: !0
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "itsmFlowAcceptance.serviceContent",
|
|
64
|
+
prop: "serviceContent",
|
|
65
|
+
width: "150",
|
|
66
|
+
isColumn: !0
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: "itsmFlowAcceptance.acceptanceNo",
|
|
70
|
+
prop: "acceptanceNo",
|
|
71
|
+
width: "150",
|
|
72
|
+
isColumn: !0
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: "itsmFlowAcceptance.result",
|
|
76
|
+
prop: "result",
|
|
77
|
+
width: "150",
|
|
78
|
+
isColumn: !0,
|
|
79
|
+
slotName: "result",
|
|
80
|
+
columnType: "slot"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
label: "itsmFlowAcceptance.evaluate",
|
|
84
|
+
prop: "evaluate",
|
|
85
|
+
width: "150",
|
|
86
|
+
isColumn: !0
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
label: "common.operate",
|
|
90
|
+
width: "200",
|
|
91
|
+
slotName: "operation",
|
|
92
|
+
columnType: "slot",
|
|
93
|
+
fixed: "right",
|
|
94
|
+
isColumn: !0
|
|
95
|
+
}
|
|
96
|
+
]);
|
|
97
|
+
const s = C({
|
|
98
|
+
title: f("common.edit"),
|
|
99
|
+
visible: !1
|
|
100
|
+
});
|
|
101
|
+
C(!1);
|
|
102
|
+
let k = D({});
|
|
103
|
+
function q() {
|
|
104
|
+
k = D({}), s.value.title = f("common.add"), s.value.visible = !0;
|
|
105
|
+
}
|
|
106
|
+
function I(o) {
|
|
107
|
+
k.acceptanceId = o.acceptanceId, s.value.title = f("common.edit"), s.value.visible = !0;
|
|
108
|
+
}
|
|
109
|
+
function B(o) {
|
|
110
|
+
r.selectionRows.value = o;
|
|
111
|
+
}
|
|
112
|
+
function K(o) {
|
|
113
|
+
r.handleSort(o.prop, o.order);
|
|
114
|
+
}
|
|
115
|
+
function L(o) {
|
|
116
|
+
o && r.getList();
|
|
117
|
+
}
|
|
118
|
+
return r.getList(), (o, e) => {
|
|
119
|
+
const h = c("el-input"), b = c("el-form-item"), p = c("el-col"), _ = c("el-button"), R = c("el-row"), O = c("el-form"), Q = c("jmash-column-select"), E = c("jmash-table"), H = c("jmash-pagination"), G = c("el-card"), g = W("hasPerm");
|
|
120
|
+
return u(), V("div", ee, [
|
|
121
|
+
A("div", te, [
|
|
122
|
+
a(O, {
|
|
123
|
+
ref_key: "queryFormRef",
|
|
124
|
+
ref: z,
|
|
125
|
+
model: i.value,
|
|
126
|
+
inline: !0
|
|
127
|
+
}, {
|
|
128
|
+
default: l(() => [
|
|
129
|
+
a(R, null, {
|
|
130
|
+
default: l(() => [
|
|
131
|
+
a(p, { span: 6 }, {
|
|
132
|
+
default: l(() => [
|
|
133
|
+
a(b, {
|
|
134
|
+
label: o.$t("itsmFlowAcceptance.contractName"),
|
|
135
|
+
prop: "likeContractName"
|
|
136
|
+
}, {
|
|
137
|
+
default: l(() => [
|
|
138
|
+
a(h, {
|
|
139
|
+
modelValue: i.value.likeContractName,
|
|
140
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => i.value.likeContractName = t),
|
|
141
|
+
placeholder: o.$t("itsmFlowAcceptance.contractNameRequired"),
|
|
142
|
+
onKeyup: e[1] || (e[1] = F((t) => n(r).handleQuery(), ["enter"])),
|
|
143
|
+
class: "!w-[203px]"
|
|
144
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["label"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}),
|
|
151
|
+
a(p, { span: 6 }, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
a(b, {
|
|
154
|
+
label: o.$t("itsmFlowAcceptance.contractNo"),
|
|
155
|
+
prop: "likeContractNo"
|
|
156
|
+
}, {
|
|
157
|
+
default: l(() => [
|
|
158
|
+
a(h, {
|
|
159
|
+
modelValue: i.value.likeContractNo,
|
|
160
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => i.value.likeContractNo = t),
|
|
161
|
+
placeholder: o.$t("itsmFlowAcceptance.contractNoRequired"),
|
|
162
|
+
onKeyup: e[3] || (e[3] = F((t) => n(r).handleQuery(), ["enter"])),
|
|
163
|
+
class: "!w-[203px]"
|
|
164
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["label"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}),
|
|
171
|
+
a(p, { span: 6 }, {
|
|
172
|
+
default: l(() => [
|
|
173
|
+
a(b, {
|
|
174
|
+
label: o.$t("itsmFlowAcceptance.acceptanceNo"),
|
|
175
|
+
prop: "acceptanceNo"
|
|
176
|
+
}, {
|
|
177
|
+
default: l(() => [
|
|
178
|
+
a(h, {
|
|
179
|
+
modelValue: i.value.acceptanceNo,
|
|
180
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => i.value.acceptanceNo = t),
|
|
181
|
+
placeholder: o.$t("itsmFlowAcceptance.acceptanceNoRequired"),
|
|
182
|
+
onKeyup: e[5] || (e[5] = F((t) => n(r).handleQuery(), ["enter"])),
|
|
183
|
+
class: "!w-[203px]"
|
|
184
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}, 8, ["label"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
}),
|
|
191
|
+
a(p, { span: 6 }, {
|
|
192
|
+
default: l(() => [
|
|
193
|
+
a(b, { class: "search-btn" }, {
|
|
194
|
+
default: l(() => [
|
|
195
|
+
a(_, {
|
|
196
|
+
type: "primary",
|
|
197
|
+
onClick: e[6] || (e[6] = (t) => n(r).handleQuery())
|
|
198
|
+
}, {
|
|
199
|
+
default: l(() => [
|
|
200
|
+
d(m(o.$t("common.search")), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
}),
|
|
204
|
+
a(_, {
|
|
205
|
+
onClick: e[7] || (e[7] = (t) => n(r).resetQuery())
|
|
206
|
+
}, {
|
|
207
|
+
default: l(() => [
|
|
208
|
+
d(m(o.$t("common.reset")), 1)
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
})
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["model"])
|
|
224
|
+
]),
|
|
225
|
+
a(G, {
|
|
226
|
+
shadow: "never",
|
|
227
|
+
class: "table-container"
|
|
228
|
+
}, {
|
|
229
|
+
header: l(() => [
|
|
230
|
+
a(R, null, {
|
|
231
|
+
default: l(() => [
|
|
232
|
+
a(p, { span: 17 }, {
|
|
233
|
+
default: l(() => [
|
|
234
|
+
y((u(), N(_, {
|
|
235
|
+
type: "primary",
|
|
236
|
+
onClick: q
|
|
237
|
+
}, {
|
|
238
|
+
default: l(() => [
|
|
239
|
+
d(m(o.$t("common.add")), 1)
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
})), [
|
|
243
|
+
[g, ["itsmflow:itsm_flow_acceptance:add"]]
|
|
244
|
+
])
|
|
245
|
+
]),
|
|
246
|
+
_: 1
|
|
247
|
+
}),
|
|
248
|
+
a(p, {
|
|
249
|
+
span: 7,
|
|
250
|
+
class: "container-float"
|
|
251
|
+
}, {
|
|
252
|
+
default: l(() => [
|
|
253
|
+
y((u(), N(_, {
|
|
254
|
+
plain: "",
|
|
255
|
+
type: "primary",
|
|
256
|
+
onClick: e[8] || (e[8] = (t) => n(r).handleExportPdf(n(f)("itsmFlowAcceptance.name")))
|
|
257
|
+
}, {
|
|
258
|
+
default: l(() => [
|
|
259
|
+
d(m(o.$t("common.print")), 1)
|
|
260
|
+
]),
|
|
261
|
+
_: 1
|
|
262
|
+
})), [
|
|
263
|
+
[g, ["itsmflow:itsm_flow_acceptance:print"]]
|
|
264
|
+
]),
|
|
265
|
+
a(Q, {
|
|
266
|
+
modelValue: n(w),
|
|
267
|
+
"onUpdate:modelValue": e[9] || (e[9] = (t) => S(w) ? w.value = t : w = t),
|
|
268
|
+
"label-name": "itsm-flow-acceptance"
|
|
269
|
+
}, null, 8, ["modelValue"])
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
})
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
})
|
|
276
|
+
]),
|
|
277
|
+
footer: l(() => [
|
|
278
|
+
n(v) > 0 ? (u(), N(H, {
|
|
279
|
+
key: 0,
|
|
280
|
+
total: n(v),
|
|
281
|
+
"onUpdate:total": e[10] || (e[10] = (t) => S(v) ? v.value = t : null),
|
|
282
|
+
"current-page": i.value.curPage,
|
|
283
|
+
"onUpdate:currentPage": e[11] || (e[11] = (t) => i.value.curPage = t),
|
|
284
|
+
"page-size": i.value.pageSize,
|
|
285
|
+
"onUpdate:pageSize": e[12] || (e[12] = (t) => i.value.pageSize = t),
|
|
286
|
+
onPagination: e[13] || (e[13] = (t) => n(r).getList())
|
|
287
|
+
}, null, 8, ["total", "current-page", "page-size"])) : P("", !0)
|
|
288
|
+
]),
|
|
289
|
+
default: l(() => [
|
|
290
|
+
a(E, {
|
|
291
|
+
ref_key: "multipleTableRef",
|
|
292
|
+
ref: U,
|
|
293
|
+
"row-key": "acceptanceId",
|
|
294
|
+
"list-loading": n(T),
|
|
295
|
+
data: n(j),
|
|
296
|
+
"table-label": n(w),
|
|
297
|
+
onSelectionChange: B,
|
|
298
|
+
onSortChange: K
|
|
299
|
+
}, {
|
|
300
|
+
serviceOrg: l((t) => [
|
|
301
|
+
A("span", null, m(n($).orgIdBizDict.getValue(t.data.row.serviceOrg)), 1)
|
|
302
|
+
]),
|
|
303
|
+
result: l((t) => [
|
|
304
|
+
A("span", null, m(n($).isValuesDict.getValue(t.data.row.result)), 1)
|
|
305
|
+
]),
|
|
306
|
+
operation: l((t) => [
|
|
307
|
+
y((u(), V("span", {
|
|
308
|
+
class: "el-button-color",
|
|
309
|
+
onClick: (J) => I(t.data.row)
|
|
310
|
+
}, [
|
|
311
|
+
d(m(o.$t("common.edit")), 1)
|
|
312
|
+
], 8, le)), [
|
|
313
|
+
[g, ["itsmflow:itsm_flow_acceptance:update"]]
|
|
314
|
+
]),
|
|
315
|
+
y((u(), V("span", {
|
|
316
|
+
class: "el-button-color dropdown-left",
|
|
317
|
+
onClick: (J) => n(r).deleteRecord(t.data.row)
|
|
318
|
+
}, [
|
|
319
|
+
d(m(o.$t("common.delete")), 1)
|
|
320
|
+
], 8, oe)), [
|
|
321
|
+
[g, ["itsmflow:itsm_flow_acceptance:delete"]]
|
|
322
|
+
])
|
|
323
|
+
]),
|
|
324
|
+
_: 1
|
|
325
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}),
|
|
329
|
+
s.value.visible ? (u(), N(x, {
|
|
330
|
+
key: 0,
|
|
331
|
+
modelValue: s.value.visible,
|
|
332
|
+
"onUpdate:modelValue": e[14] || (e[14] = (t) => s.value.visible = t),
|
|
333
|
+
title: s.value.title,
|
|
334
|
+
"entity-key": n(k),
|
|
335
|
+
onRefresh: L,
|
|
336
|
+
width: "900px"
|
|
337
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : P("", !0)
|
|
338
|
+
]);
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
});
|
|
342
|
+
export {
|
|
343
|
+
me as default
|
|
344
|
+
};
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { useUserStore as n, clearEmpty as u, request as o, BizDict as d, BizLayDict as m } from "jmash-core";
|
|
2
|
+
import { contractApi as f, contractUserApi as w, itemApi as g } from "xyvcard-itsm";
|
|
3
|
+
import { sysOrgApi as h, sysUserExtApi as x } from "xyvcard-itsmsys";
|
|
4
|
+
import { defineComponent as i, openBlock as c, createElementBlock as _, createElementVNode as p } from "vue";
|
|
5
|
+
class I {
|
|
6
|
+
getKey(e) {
|
|
7
|
+
return {
|
|
8
|
+
entrustId: e.entrustId
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
// 查询翻页信息委托流程表
|
|
12
|
+
findPage(e) {
|
|
13
|
+
const t = n().user.tenant;
|
|
14
|
+
return e && (e.hasServiceContent = e.serviceContent != null), u(e), o({
|
|
15
|
+
url: "/v1/itsmflow/itsm_flow_entrust/mypage/" + t,
|
|
16
|
+
method: "get",
|
|
17
|
+
params: e
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
// 查询列表信息委托流程表
|
|
21
|
+
findList(e) {
|
|
22
|
+
const t = n().user.tenant;
|
|
23
|
+
return e && (e.hasApplyStatus = e.applyStatus != null), u(e), o({
|
|
24
|
+
url: "/v1/itsmflow/itsm_flow_entrust/mylist/" + t,
|
|
25
|
+
method: "get",
|
|
26
|
+
params: e
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// 查询委托流程表
|
|
30
|
+
findById(e) {
|
|
31
|
+
const t = n().user.tenant;
|
|
32
|
+
return u(e), o({
|
|
33
|
+
url: "/v1/itsmflow/itsm_flow_entrust/id/" + t + "/" + e.entrustId,
|
|
34
|
+
method: "get"
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
// 保存草稿委托流程表
|
|
38
|
+
save(e) {
|
|
39
|
+
return e.tenant = n().user.tenant, u(e), o({
|
|
40
|
+
url: "/v1/itsmflow/itsm_flow_entrust",
|
|
41
|
+
method: "post",
|
|
42
|
+
data: e
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// 提交委托流程表
|
|
46
|
+
submit(e) {
|
|
47
|
+
return e.tenant = n().user.tenant, u(e), o({
|
|
48
|
+
url: "/v1/itsmflow/itsm_flow_entrust/submit",
|
|
49
|
+
method: "post",
|
|
50
|
+
data: e
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
// 删除委托流程表
|
|
54
|
+
delete(e) {
|
|
55
|
+
return e.tenant = n().user.tenant, u(e), o({
|
|
56
|
+
url: "/v1/itsmflow/itsm_flow_entrust/id",
|
|
57
|
+
method: "delete",
|
|
58
|
+
params: e
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// 打印委托流程表PDF文件
|
|
62
|
+
exportFilePdf(e) {
|
|
63
|
+
const t = n().user.tenant;
|
|
64
|
+
return u(e), o({
|
|
65
|
+
// url:
|
|
66
|
+
// "/v1/itsmflow/itsm_flow_entrust/" +
|
|
67
|
+
// tenant +
|
|
68
|
+
// "/itsm_flow_entrusts.pdf?" +
|
|
69
|
+
// query,
|
|
70
|
+
url: `/v1/itsmflow/itsm_flow_entrust/${t}/itsm_flow_entrusts.pdf?entrustId=` + e.entrustId,
|
|
71
|
+
method: "get",
|
|
72
|
+
responseType: "blob"
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
// 上传任务附件
|
|
76
|
+
uploadFile(e) {
|
|
77
|
+
return e.tenant = n().user.tenant, u(e), o({
|
|
78
|
+
url: "/v1/flow/task/attachment",
|
|
79
|
+
method: "post",
|
|
80
|
+
data: e
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const y = new I();
|
|
85
|
+
class U extends d {
|
|
86
|
+
// 实现 useValues 方法
|
|
87
|
+
useValues() {
|
|
88
|
+
return new Promise((e, t) => {
|
|
89
|
+
f.findList(this.query).then(({ data: a }) => {
|
|
90
|
+
const l = a.results;
|
|
91
|
+
this.values.length = 0, this.values.push(
|
|
92
|
+
...l.map(
|
|
93
|
+
(s) => ({
|
|
94
|
+
key: s.contractId,
|
|
95
|
+
value: s.contractName,
|
|
96
|
+
contractNumber: s.contractNumber,
|
|
97
|
+
orgId: s.orgId,
|
|
98
|
+
mgrUserId: s.mgrUserId
|
|
99
|
+
})
|
|
100
|
+
)
|
|
101
|
+
), e(this.values);
|
|
102
|
+
}).catch(t);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
class b extends d {
|
|
107
|
+
// 实现 useValues 方法
|
|
108
|
+
useValues() {
|
|
109
|
+
return new Promise((e, t) => {
|
|
110
|
+
h.findOutSourceList(this.query).then(({ data: a }) => {
|
|
111
|
+
const l = a.results;
|
|
112
|
+
this.values.length = 0, this.values.push(
|
|
113
|
+
...l.map(
|
|
114
|
+
(s) => ({
|
|
115
|
+
key: s.orgId,
|
|
116
|
+
value: s.orgName
|
|
117
|
+
})
|
|
118
|
+
)
|
|
119
|
+
), e(this.values);
|
|
120
|
+
}).catch(t);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
class M extends d {
|
|
125
|
+
// 实现 useValues 方法
|
|
126
|
+
useValues() {
|
|
127
|
+
return new Promise((e, t) => {
|
|
128
|
+
w.findList(this.query).then(({ data: a }) => {
|
|
129
|
+
const l = a.results;
|
|
130
|
+
this.values.length = 0, this.values.push(
|
|
131
|
+
...l.map(
|
|
132
|
+
(s) => ({
|
|
133
|
+
key: s.userId,
|
|
134
|
+
value: s.realName,
|
|
135
|
+
idNo: s.idNo,
|
|
136
|
+
cost: s.cost
|
|
137
|
+
})
|
|
138
|
+
)
|
|
139
|
+
), e(this.values);
|
|
140
|
+
}).catch(t);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class E extends m {
|
|
145
|
+
// 实现 useValues 方法
|
|
146
|
+
useValues(e) {
|
|
147
|
+
return new Promise((t, a) => {
|
|
148
|
+
if (typeof h.findList > "u") {
|
|
149
|
+
t(this.values);
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
const l = { ...this.query, excludeOrgId: e };
|
|
153
|
+
h.findList(l).then(({ data: s }) => {
|
|
154
|
+
const v = s.results;
|
|
155
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(v)), t(this.values);
|
|
156
|
+
}).catch(a);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
convertToLayEntryArray(e) {
|
|
160
|
+
return e.map((t) => ({
|
|
161
|
+
value: t.orgId,
|
|
162
|
+
label: t.orgName,
|
|
163
|
+
parentId: t.parentId || "",
|
|
164
|
+
children: t.children ? this.convertToLayEntryArray(t.children) : []
|
|
165
|
+
}));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class O extends d {
|
|
169
|
+
// 实现 useValues 方法
|
|
170
|
+
useValues() {
|
|
171
|
+
return new Promise((e, t) => {
|
|
172
|
+
g.findList(this.query).then(({ data: a }) => {
|
|
173
|
+
const l = a.results;
|
|
174
|
+
this.values.length = 0, this.values.push(
|
|
175
|
+
...l.map(
|
|
176
|
+
(s) => ({
|
|
177
|
+
key: s.itemId,
|
|
178
|
+
value: s.name,
|
|
179
|
+
orgId: s.orgId,
|
|
180
|
+
status: s.status
|
|
181
|
+
})
|
|
182
|
+
)
|
|
183
|
+
), e(this.values);
|
|
184
|
+
}).catch(t);
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
class S extends d {
|
|
189
|
+
// 实现 useValues 方法
|
|
190
|
+
useValues() {
|
|
191
|
+
return new Promise((e, t) => {
|
|
192
|
+
y.findList(this.query).then(({ data: a }) => {
|
|
193
|
+
const l = a.results;
|
|
194
|
+
this.values.length = 0, this.values.push(
|
|
195
|
+
...l.map(
|
|
196
|
+
(s) => ({
|
|
197
|
+
key: s.orderNo,
|
|
198
|
+
value: s.orderNo,
|
|
199
|
+
contractName: s.contractName,
|
|
200
|
+
contractNo: s.contractNo,
|
|
201
|
+
entrustName: s.entrustName,
|
|
202
|
+
serviceOrg: s.serviceOrg,
|
|
203
|
+
workContent: s.workContent
|
|
204
|
+
})
|
|
205
|
+
)
|
|
206
|
+
), e(this.values);
|
|
207
|
+
}).catch(t);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
class T extends d {
|
|
212
|
+
// 实现 useValues 方法
|
|
213
|
+
useValues() {
|
|
214
|
+
return new Promise((e, t) => {
|
|
215
|
+
x.findList(this.query).then(({ data: a }) => {
|
|
216
|
+
const l = a.results;
|
|
217
|
+
this.values.length = 0, this.values.push(
|
|
218
|
+
...l.map(
|
|
219
|
+
(s) => ({
|
|
220
|
+
key: s.userId,
|
|
221
|
+
value: s.realName
|
|
222
|
+
})
|
|
223
|
+
)
|
|
224
|
+
), e(this.values);
|
|
225
|
+
}).catch(t);
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
/*! Element Plus Icons Vue v2.3.1 */
|
|
230
|
+
var B = /* @__PURE__ */ i({
|
|
231
|
+
name: "CircleCloseFilled",
|
|
232
|
+
__name: "circle-close-filled",
|
|
233
|
+
setup(r) {
|
|
234
|
+
return (e, t) => (c(), _("svg", {
|
|
235
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
236
|
+
viewBox: "0 0 1024 1024"
|
|
237
|
+
}, [
|
|
238
|
+
p("path", {
|
|
239
|
+
fill: "currentColor",
|
|
240
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
241
|
+
})
|
|
242
|
+
]));
|
|
243
|
+
}
|
|
244
|
+
}), H = B, C = /* @__PURE__ */ i({
|
|
245
|
+
name: "Close",
|
|
246
|
+
__name: "close",
|
|
247
|
+
setup(r) {
|
|
248
|
+
return (e, t) => (c(), _("svg", {
|
|
249
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
250
|
+
viewBox: "0 0 1024 1024"
|
|
251
|
+
}, [
|
|
252
|
+
p("path", {
|
|
253
|
+
fill: "currentColor",
|
|
254
|
+
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
255
|
+
})
|
|
256
|
+
]));
|
|
257
|
+
}
|
|
258
|
+
}), K = C, L = /* @__PURE__ */ i({
|
|
259
|
+
name: "InfoFilled",
|
|
260
|
+
__name: "info-filled",
|
|
261
|
+
setup(r) {
|
|
262
|
+
return (e, t) => (c(), _("svg", {
|
|
263
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
264
|
+
viewBox: "0 0 1024 1024"
|
|
265
|
+
}, [
|
|
266
|
+
p("path", {
|
|
267
|
+
fill: "currentColor",
|
|
268
|
+
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
269
|
+
})
|
|
270
|
+
]));
|
|
271
|
+
}
|
|
272
|
+
}), W = L, N = /* @__PURE__ */ i({
|
|
273
|
+
name: "Plus",
|
|
274
|
+
__name: "plus",
|
|
275
|
+
setup(r) {
|
|
276
|
+
return (e, t) => (c(), _("svg", {
|
|
277
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
278
|
+
viewBox: "0 0 1024 1024"
|
|
279
|
+
}, [
|
|
280
|
+
p("path", {
|
|
281
|
+
fill: "currentColor",
|
|
282
|
+
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
283
|
+
})
|
|
284
|
+
]));
|
|
285
|
+
}
|
|
286
|
+
}), $ = N, z = /* @__PURE__ */ i({
|
|
287
|
+
name: "SuccessFilled",
|
|
288
|
+
__name: "success-filled",
|
|
289
|
+
setup(r) {
|
|
290
|
+
return (e, t) => (c(), _("svg", {
|
|
291
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
292
|
+
viewBox: "0 0 1024 1024"
|
|
293
|
+
}, [
|
|
294
|
+
p("path", {
|
|
295
|
+
fill: "currentColor",
|
|
296
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
297
|
+
})
|
|
298
|
+
]));
|
|
299
|
+
}
|
|
300
|
+
}), j = z, A = /* @__PURE__ */ i({
|
|
301
|
+
name: "Upload",
|
|
302
|
+
__name: "upload",
|
|
303
|
+
setup(r) {
|
|
304
|
+
return (e, t) => (c(), _("svg", {
|
|
305
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
306
|
+
viewBox: "0 0 1024 1024"
|
|
307
|
+
}, [
|
|
308
|
+
p("path", {
|
|
309
|
+
fill: "currentColor",
|
|
310
|
+
d: "M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"
|
|
311
|
+
})
|
|
312
|
+
]));
|
|
313
|
+
}
|
|
314
|
+
}), G = A, P = /* @__PURE__ */ i({
|
|
315
|
+
name: "WarningFilled",
|
|
316
|
+
__name: "warning-filled",
|
|
317
|
+
setup(r) {
|
|
318
|
+
return (e, t) => (c(), _("svg", {
|
|
319
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
320
|
+
viewBox: "0 0 1024 1024"
|
|
321
|
+
}, [
|
|
322
|
+
p("path", {
|
|
323
|
+
fill: "currentColor",
|
|
324
|
+
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
325
|
+
})
|
|
326
|
+
]));
|
|
327
|
+
}
|
|
328
|
+
}), J = P;
|
|
329
|
+
export {
|
|
330
|
+
M as C,
|
|
331
|
+
S as I,
|
|
332
|
+
b as O,
|
|
333
|
+
E as P,
|
|
334
|
+
T as U,
|
|
335
|
+
U as a,
|
|
336
|
+
O as b,
|
|
337
|
+
H as c,
|
|
338
|
+
W as d,
|
|
339
|
+
K as e,
|
|
340
|
+
y as i,
|
|
341
|
+
$ as p,
|
|
342
|
+
j as s,
|
|
343
|
+
G as u,
|
|
344
|
+
J as w
|
|
345
|
+
};
|