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.
Files changed (39) hide show
  1. package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
  2. package/dist/{edit-CWxy8_xc.mjs → edit-BZbho2xr.mjs} +1 -1
  3. package/dist/edit-DA920KWc.mjs +4 -0
  4. package/dist/edit-DxK8SrUd.mjs +4 -0
  5. package/dist/edit.vue_vue_type_script_setup_true_lang-CApSv9W3.mjs +589 -0
  6. package/dist/edit.vue_vue_type_script_setup_true_lang-CVKTwRZs.mjs +688 -0
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-DlKz97iK.mjs +656 -0
  8. package/dist/el-message-D28AReoi.mjs +1238 -0
  9. package/dist/index-BZGkoyv9.mjs +68 -0
  10. package/dist/{index-C_jhIPZS.mjs → index-BwhWFAEK.mjs} +13 -12
  11. package/dist/index-CMOEnYG7.mjs +21 -0
  12. package/dist/index-CXarOLFt.mjs +361 -0
  13. package/dist/index-Clg5YSzX.mjs +598 -0
  14. package/dist/index-CwnMo6nD.mjs +1651 -0
  15. package/dist/index-DDwNGNtf.mjs +558 -0
  16. package/dist/index-Dimzx0Lh.mjs +344 -0
  17. package/dist/index-qOQQkVw8.mjs +345 -0
  18. package/dist/index.mjs +753 -727
  19. package/dist/style.css +1 -1
  20. package/dts/api/dict.d.ts +6 -0
  21. package/dts/api/index.d.ts +3 -1
  22. package/dts/api/itsm-flow-acceptance/index.d.ts +20 -0
  23. package/dts/api/itsm-flow-acceptance/types.d.ts +104 -0
  24. package/dts/api/itsm-flow-entrust/index.d.ts +3 -2
  25. package/dts/api/itsm-flow-entrust/types.d.ts +24 -3
  26. package/dts/api/itsm-flow-reckoning/index.d.ts +20 -0
  27. package/dts/api/itsm-flow-reckoning/types.d.ts +93 -0
  28. package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +28 -0
  29. package/dts/constant.d.ts +8 -0
  30. package/dts/index.d.ts +1 -0
  31. package/dts/lang/itsm-flow/zh-cn.d.ts +38 -14
  32. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +28 -0
  33. package/dts/views/itsm-flow-acceptance/index.vue.d.ts +2 -0
  34. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +28 -0
  35. package/dts/views/itsm-flow-reckoning/index.vue.d.ts +2 -0
  36. package/package.json +4 -4
  37. package/dist/edit.vue_vue_type_script_setup_true_lang-Dxn9JNKd.mjs +0 -619
  38. package/dist/index-DKtAcP6b.mjs +0 -1582
  39. package/dist/index-DdDM4ocv.mjs +0 -327
@@ -0,0 +1,558 @@
1
+ import { defineComponent as le, mergeModels as ae, ref as F, useModel as se, resolveComponent as y, openBlock as h, createElementBlock as C, Fragment as H, createVNode as e, withCtx as t, createElementVNode as u, createTextVNode as m, toDisplayString as f, unref as $, withDirectives as K, vShow as P, createCommentVNode as B, createBlock as W, renderList as re } from "vue";
2
+ import "element-plus";
3
+ import { useRoute as ue } from "vue-router";
4
+ import { i as T, u as ie } from "./index-qOQQkVw8.mjs";
5
+ import { D as N, C as de } from "./index-BZGkoyv9.mjs";
6
+ import { i as ce } from "./index-CMOEnYG7.mjs";
7
+ import "jmash-core";
8
+ import { useI18n as pe } from "vue-i18n";
9
+ import { c as O } from "./_commonjsHelpers-BVfed4GL.mjs";
10
+ import { E as G } from "./el-message-D28AReoi.mjs";
11
+ var X = { exports: {} };
12
+ (function(R, x) {
13
+ (function(U, I) {
14
+ I();
15
+ })(O, function() {
16
+ function U(n, l) {
17
+ return typeof l > "u" ? l = { autoBom: !1 } : typeof l != "object" && (console.warn("Deprecated: Expected third argument to be a object"), l = { autoBom: !l }), l.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type) ? new Blob(["\uFEFF", n], { type: n.type }) : n;
18
+ }
19
+ function I(n, l, v) {
20
+ var a = new XMLHttpRequest();
21
+ a.open("GET", n), a.responseType = "blob", a.onload = function() {
22
+ w(a.response, l, v);
23
+ }, a.onerror = function() {
24
+ console.error("could not download file");
25
+ }, a.send();
26
+ }
27
+ function V(n) {
28
+ var l = new XMLHttpRequest();
29
+ l.open("HEAD", n, !1);
30
+ try {
31
+ l.send();
32
+ } catch {
33
+ }
34
+ return 200 <= l.status && 299 >= l.status;
35
+ }
36
+ function E(n) {
37
+ try {
38
+ n.dispatchEvent(new MouseEvent("click"));
39
+ } catch {
40
+ var l = document.createEvent("MouseEvents");
41
+ l.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), n.dispatchEvent(l);
42
+ }
43
+ }
44
+ var d = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof O == "object" && O.global === O ? O : void 0, c = d.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), w = d.saveAs || (typeof window != "object" || window !== d ? function() {
45
+ } : "download" in HTMLAnchorElement.prototype && !c ? function(n, l, v) {
46
+ var a = d.URL || d.webkitURL, r = document.createElement("a");
47
+ l = l || n.name || "download", r.download = l, r.rel = "noopener", typeof n == "string" ? (r.href = n, r.origin === location.origin ? E(r) : V(r.href) ? I(n, l, v) : E(r, r.target = "_blank")) : (r.href = a.createObjectURL(n), setTimeout(function() {
48
+ a.revokeObjectURL(r.href);
49
+ }, 4e4), setTimeout(function() {
50
+ E(r);
51
+ }, 0));
52
+ } : "msSaveOrOpenBlob" in navigator ? function(n, l, v) {
53
+ if (l = l || n.name || "download", typeof n != "string") navigator.msSaveOrOpenBlob(U(n, v), l);
54
+ else if (V(n)) I(n, l, v);
55
+ else {
56
+ var a = document.createElement("a");
57
+ a.href = n, a.target = "_blank", setTimeout(function() {
58
+ E(a);
59
+ });
60
+ }
61
+ } : function(n, l, v, a) {
62
+ if (a = a || open("", "_blank"), a && (a.document.title = a.document.body.innerText = "downloading..."), typeof n == "string") return I(n, l, v);
63
+ var r = n.type === "application/octet-stream", D = /constructor/i.test(d.HTMLElement) || d.safari, M = /CriOS\/[\d]+/.test(navigator.userAgent);
64
+ if ((M || r && D || c) && typeof FileReader < "u") {
65
+ var j = new FileReader();
66
+ j.onloadend = function() {
67
+ var k = j.result;
68
+ k = M ? k : k.replace(/^data:[^;]*;/, "data:attachment/file;"), a ? a.location.href = k : location = k, a = null;
69
+ }, j.readAsDataURL(n);
70
+ } else {
71
+ var S = d.URL || d.webkitURL, L = S.createObjectURL(n);
72
+ a ? a.location = L : location.href = L, a = null, setTimeout(function() {
73
+ S.revokeObjectURL(L);
74
+ }, 4e4);
75
+ }
76
+ });
77
+ d.saveAs = w.saveAs = w, R.exports = w;
78
+ });
79
+ })(X);
80
+ var me = X.exports;
81
+ const fe = { key: 0 }, ve = { key: 1 }, be = {
82
+ key: 2,
83
+ class: "distance-left"
84
+ }, Ue = /* @__PURE__ */ le({
85
+ __name: "index",
86
+ props: /* @__PURE__ */ ae({
87
+ task: {
88
+ type: Object,
89
+ default: () => {
90
+ }
91
+ }
92
+ }, {
93
+ modelValue: {},
94
+ modelModifiers: {}
95
+ }),
96
+ emits: ["update:modelValue"],
97
+ setup(R, { expose: x }) {
98
+ const { t: U } = pe(), I = () => {
99
+ T.exportFilePdf({ entrustId: d.value.entrustId }).then((o) => {
100
+ const p = new Blob([o.data], {
101
+ type: "application/octet-stream"
102
+ });
103
+ me.saveAs(p, d.value.entrustId + ".pdf");
104
+ });
105
+ };
106
+ N.parentIdBizDict.useValues(), N.orgIdBizDict.useValues();
107
+ const V = ue(), E = R, d = F({
108
+ entrustId: V.query.applyId
109
+ }), c = F({}), w = se(R, "modelValue"), n = F(), l = F({}), v = F(!1), a = F(), r = F([]), D = F();
110
+ function M() {
111
+ v.value = !0, a.value.clearFileList();
112
+ }
113
+ function j(o) {
114
+ r == null || r.value.splice(o, 1);
115
+ }
116
+ function S(o) {
117
+ const p = {
118
+ fileName: o.name,
119
+ fileId: o.response.fileId
120
+ };
121
+ r == null || r.value.push(p), r.value = [...new Set(r.value)], D.value = {
122
+ requestId: Math.random() * 10 + "",
123
+ taskId: E.task.id,
124
+ name: o.name,
125
+ type: o.response.contentType,
126
+ url: o.response.fileSrc
127
+ }, L();
128
+ }
129
+ function L() {
130
+ T.uploadFile(D.value).then(() => {
131
+ G.success(U("common.uploadSuccess"));
132
+ }).catch(() => {
133
+ G.error(U("common.uploadError"));
134
+ });
135
+ }
136
+ function k(o) {
137
+ o.mobileEncrypt = !o.mobileEncrypt;
138
+ }
139
+ E.task.businessKey && Q(), x({
140
+ changeModel: () => Y()
141
+ });
142
+ function J() {
143
+ ce.findList({ actionId: d.value.entrustId }).then(({ data: o }) => {
144
+ c.value.entrustUser = [], o.results.forEach((p) => {
145
+ p.actionId == d.value.entrustId && c.value.entrustUser.push({
146
+ ...p
147
+ });
148
+ });
149
+ });
150
+ }
151
+ function Q() {
152
+ d.value.entrustId = E.task.businessKey, T.findById({ entrustId: d.value.entrustId }).then(({ data: o }) => {
153
+ c.value = Object.assign(c.value, o), J();
154
+ });
155
+ }
156
+ function Y() {
157
+ return w.value && (w.value.selectActions = [
158
+ { key: "true", value: "同意" },
159
+ { key: "false", value: "不同意" }
160
+ ], w.value.varName = "approved", w.value.module = "", w.value.module = de.MODULE_ITSMFLOW), new Promise((o, p) => {
161
+ var i;
162
+ (i = n.value) == null || i.validate((b) => {
163
+ b ? (w.value && (w.value.comment = ""), o(!0)) : p(!1);
164
+ });
165
+ });
166
+ }
167
+ return (o, p) => {
168
+ const i = y("el-col"), b = y("el-form-item"), _ = y("el-row"), A = y("el-table-column"), q = y("svg-icon"), Z = y("el-table"), z = y("el-button"), ee = y("CircleClose"), te = y("el-icon"), oe = y("el-form"), ne = y("jmash-multi-upload");
169
+ return h(), C(H, null, [
170
+ e(i, { span: 24 }, {
171
+ default: t(() => p[1] || (p[1] = [
172
+ u("div", { class: "title" }, "委托服务订单", -1)
173
+ ])),
174
+ _: 1
175
+ }),
176
+ e(oe, {
177
+ ref_key: "taskFormRef",
178
+ ref: n,
179
+ model: l.value,
180
+ "label-width": "130px",
181
+ class: "custom-table-form"
182
+ }, {
183
+ default: t(() => [
184
+ e(_, null, {
185
+ default: t(() => [
186
+ e(i, { span: 24 }, {
187
+ default: t(() => [
188
+ e(b, {
189
+ label: o.$t("itsmFlowEntrust.contractId"),
190
+ prop: "contractName"
191
+ }, {
192
+ default: t(() => [
193
+ m(f(c.value.contractName), 1)
194
+ ]),
195
+ _: 1
196
+ }, 8, ["label"])
197
+ ]),
198
+ _: 1
199
+ })
200
+ ]),
201
+ _: 1
202
+ }),
203
+ e(_, null, {
204
+ default: t(() => [
205
+ e(i, { span: 24 }, {
206
+ default: t(() => [
207
+ e(b, {
208
+ label: o.$t("itsmFlowEntrust.contractNo"),
209
+ prop: "contractNo"
210
+ }, {
211
+ default: t(() => [
212
+ m(f(c.value.contractNo), 1)
213
+ ]),
214
+ _: 1
215
+ }, 8, ["label"])
216
+ ]),
217
+ _: 1
218
+ })
219
+ ]),
220
+ _: 1
221
+ }),
222
+ e(_, null, {
223
+ default: t(() => [
224
+ e(i, { span: 24 }, {
225
+ default: t(() => [
226
+ e(b, {
227
+ label: o.$t("itsmFlowEntrust.entrustName"),
228
+ prop: "entrustName"
229
+ }, {
230
+ default: t(() => [
231
+ m(f($(N).projectNameDict.getDictValue(c.value.entrustName)), 1)
232
+ ]),
233
+ _: 1
234
+ }, 8, ["label"])
235
+ ]),
236
+ _: 1
237
+ })
238
+ ]),
239
+ _: 1
240
+ }),
241
+ e(_, null, {
242
+ default: t(() => [
243
+ e(i, { span: 24 }, {
244
+ default: t(() => [
245
+ e(b, {
246
+ label: o.$t("itsmFlowEntrust.entrustItsmId"),
247
+ prop: "entrustItsmId"
248
+ }, {
249
+ default: t(() => [
250
+ m(f(c.value.entrustItsmName), 1)
251
+ ]),
252
+ _: 1
253
+ }, 8, ["label"])
254
+ ]),
255
+ _: 1
256
+ })
257
+ ]),
258
+ _: 1
259
+ }),
260
+ e(_, null, {
261
+ default: t(() => [
262
+ e(i, { span: 24 }, {
263
+ default: t(() => [
264
+ e(b, {
265
+ label: o.$t("itsmFlowEntrust.belongOrg"),
266
+ prop: "belongOrg"
267
+ }, {
268
+ default: t(() => {
269
+ var s;
270
+ return [
271
+ m(f((((s = c.value.belongOrgId) == null ? void 0 : s.split(",")) || []).map((g) => $(N).parentIdBizDict.getValue(g)).join(",")), 1)
272
+ ];
273
+ }),
274
+ _: 1
275
+ }, 8, ["label"])
276
+ ]),
277
+ _: 1
278
+ })
279
+ ]),
280
+ _: 1
281
+ }),
282
+ e(_, null, {
283
+ default: t(() => [
284
+ e(i, { span: 12 }, {
285
+ default: t(() => [
286
+ e(b, {
287
+ label: o.$t("itsmFlowEntrust.serviceContent"),
288
+ prop: "serviceContent"
289
+ }, {
290
+ default: t(() => [
291
+ m(f($(N).serviceContentEnum.getEnumValue(c.value.serviceContent)), 1)
292
+ ]),
293
+ _: 1
294
+ }, 8, ["label"])
295
+ ]),
296
+ _: 1
297
+ }),
298
+ e(i, { span: 12 }, {
299
+ default: t(() => [
300
+ e(b, {
301
+ label: o.$t("itsmFlowEntrust.serviceOrg"),
302
+ prop: "serviceOrg"
303
+ }, {
304
+ default: t(() => [
305
+ m(f($(N).orgIdBizDict.getValue(c.value.serviceOrg)), 1)
306
+ ]),
307
+ _: 1
308
+ }, 8, ["label"])
309
+ ]),
310
+ _: 1
311
+ })
312
+ ]),
313
+ _: 1
314
+ }),
315
+ e(_, null, {
316
+ default: t(() => [
317
+ e(i, { span: 24 }, {
318
+ default: t(() => [
319
+ e(b, {
320
+ label: o.$t("itsmFlowEntrust.orderNo"),
321
+ prop: "orderNo"
322
+ }, {
323
+ default: t(() => [
324
+ m(f(c.value.orderNo), 1)
325
+ ]),
326
+ _: 1
327
+ }, 8, ["label"])
328
+ ]),
329
+ _: 1
330
+ })
331
+ ]),
332
+ _: 1
333
+ }),
334
+ e(_, null, {
335
+ default: t(() => [
336
+ e(i, { span: 24 }, {
337
+ default: t(() => [
338
+ e(b, {
339
+ label: o.$t("itsmFlowEntrust.workContent"),
340
+ prop: "workContent"
341
+ }, {
342
+ default: t(() => [
343
+ m(f(c.value.workContent), 1)
344
+ ]),
345
+ _: 1
346
+ }, 8, ["label"])
347
+ ]),
348
+ _: 1
349
+ })
350
+ ]),
351
+ _: 1
352
+ }),
353
+ e(_, null, {
354
+ default: t(() => [
355
+ e(i, { span: 24 }, {
356
+ default: t(() => [
357
+ e(Z, {
358
+ stripe: "",
359
+ data: c.value.entrustUser,
360
+ style: { width: "100%" }
361
+ }, {
362
+ default: t(() => [
363
+ e(A, {
364
+ prop: "userId",
365
+ label: o.$t("itsmFlowEntrustUser.userId")
366
+ }, {
367
+ default: t((s) => [
368
+ m(f(s.row.userName), 1)
369
+ ]),
370
+ _: 1
371
+ }, 8, ["label"]),
372
+ e(A, {
373
+ prop: "idNo",
374
+ label: o.$t("itsmFlowEntrustUser.idNo")
375
+ }, {
376
+ default: t((s) => [
377
+ s.row.mobileEncrypt ? (h(), C("span", ve, f(s.row.idNo), 1)) : (h(), C("span", fe, f(s.row.idNoIns), 1)),
378
+ s.row.idNoIns ? (h(), C("span", be, [
379
+ K(e(q, {
380
+ "icon-class": "close-eye",
381
+ onClick: (g) => k(s.row)
382
+ }, null, 8, ["onClick"]), [
383
+ [P, !s.row.mobileEncrypt]
384
+ ]),
385
+ K(e(q, {
386
+ "icon-class": "eye-open",
387
+ onClick: (g) => k(s.row)
388
+ }, null, 8, ["onClick"]), [
389
+ [P, s.row.mobileEncrypt]
390
+ ])
391
+ ])) : B("", !0)
392
+ ]),
393
+ _: 1
394
+ }, 8, ["label"]),
395
+ e(A, {
396
+ prop: "cost",
397
+ label: o.$t("itsmFlowEntrustUser.cost")
398
+ }, {
399
+ default: t((s) => [
400
+ m(f(s.row.cost), 1)
401
+ ]),
402
+ _: 1
403
+ }, 8, ["label"]),
404
+ e(A, {
405
+ prop: "duration",
406
+ label: o.$t("itsmFlowEntrustUser.duration")
407
+ }, {
408
+ default: t((s) => [
409
+ m(f(s.row.duration && typeof s.row.duration == "string" ? s.row.duration.split(",").join("~") : s.row.duration), 1)
410
+ ]),
411
+ _: 1
412
+ }, 8, ["label"])
413
+ ]),
414
+ _: 1
415
+ }, 8, ["data"])
416
+ ]),
417
+ _: 1
418
+ })
419
+ ]),
420
+ _: 1
421
+ }),
422
+ e(_, { class: "bordered-row" }, {
423
+ default: t(() => [
424
+ e(i, { span: 12 }, {
425
+ default: t(() => p[2] || (p[2] = [
426
+ u("div", { class: "content-box" }, [
427
+ u("div", { class: "content-box-top" }, [
428
+ u("div", null, "甲方单位(盖章)"),
429
+ u("div", null, "负责人(签字):"),
430
+ u("div", null, "或授权代理人(签字):")
431
+ ]),
432
+ u("div", { class: "content-box-bottom" }, [
433
+ m(" 日期: "),
434
+ u("span", null, "年"),
435
+ u("span", null, "月"),
436
+ u("span", null, "日")
437
+ ])
438
+ ], -1)
439
+ ])),
440
+ _: 1
441
+ }),
442
+ e(i, {
443
+ span: 12,
444
+ class: "with-divider"
445
+ }, {
446
+ default: t(() => p[3] || (p[3] = [
447
+ u("div", { class: "content-box" }, [
448
+ u("div", { class: "content-box-top" }, [
449
+ u("div", null, "服务人员所属单位(盖章)"),
450
+ u("div", null, "法定代表人(签字):"),
451
+ u("div", null, "或授权代理人(签字):")
452
+ ]),
453
+ u("div", { class: "content-box-bottom" }, [
454
+ m(" 日期: "),
455
+ u("span", null, "年"),
456
+ u("span", null, "月"),
457
+ u("span", null, "日")
458
+ ])
459
+ ], -1)
460
+ ])),
461
+ _: 1
462
+ })
463
+ ]),
464
+ _: 1
465
+ }),
466
+ e(_, null, {
467
+ default: t(() => [
468
+ E.task.taskDefinitionKey === "UploadScanFile" ? (h(), W(i, {
469
+ key: 0,
470
+ span: 12
471
+ }, {
472
+ default: t(() => [
473
+ e(b, {
474
+ label: o.$t("itsmFlowEntrust.scannedCopy")
475
+ }, {
476
+ default: t(() => [
477
+ e(z, {
478
+ type: "primary",
479
+ icon: $(ie),
480
+ onClick: M
481
+ }, {
482
+ default: t(() => [
483
+ m(f(o.$t("common.uploadFiles")), 1)
484
+ ]),
485
+ _: 1
486
+ }, 8, ["icon"])
487
+ ]),
488
+ _: 1
489
+ }, 8, ["label"]),
490
+ e(b, null, {
491
+ default: t(() => [
492
+ (h(!0), C(H, null, re(r.value, (s, g) => (h(), C("div", {
493
+ key: g,
494
+ class: "files-list"
495
+ }, [
496
+ m(f(s.fileName) + " ", 1),
497
+ e(te, {
498
+ size: "16",
499
+ class: "icon-right",
500
+ onClick: (we) => j(g)
501
+ }, {
502
+ default: t(() => [
503
+ e(ee)
504
+ ]),
505
+ _: 2
506
+ }, 1032, ["onClick"])
507
+ ]))), 128))
508
+ ]),
509
+ _: 1
510
+ })
511
+ ]),
512
+ _: 1
513
+ })) : B("", !0),
514
+ E.task.taskDefinitionKey === "UploadScanFile" ? (h(), W(i, {
515
+ key: 1,
516
+ span: 12
517
+ }, {
518
+ default: t(() => [
519
+ e(b, {
520
+ label: o.$t("itsmFlowEntrust.export")
521
+ }, {
522
+ default: t(() => [
523
+ e(z, {
524
+ plain: "",
525
+ type: "primary",
526
+ onClick: I
527
+ }, {
528
+ default: t(() => [
529
+ m(f(o.$t("itsmFlowEntrust.export")), 1)
530
+ ]),
531
+ _: 1
532
+ })
533
+ ]),
534
+ _: 1
535
+ }, 8, ["label"])
536
+ ]),
537
+ _: 1
538
+ })) : B("", !0)
539
+ ]),
540
+ _: 1
541
+ })
542
+ ]),
543
+ _: 1
544
+ }, 8, ["model"]),
545
+ e(ne, {
546
+ ref_key: "uploadRef",
547
+ ref: a,
548
+ modelValue: v.value,
549
+ "onUpdate:modelValue": p[0] || (p[0] = (s) => v.value = s),
550
+ onUploadFileList: S
551
+ }, null, 8, ["modelValue"])
552
+ ], 64);
553
+ };
554
+ }
555
+ });
556
+ export {
557
+ Ue as default
558
+ };