xyvcard-itsm-flow 0.0.6 → 0.0.8

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