xyvcard-itsm-flow 0.0.7 → 0.0.9

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