xyvcard-itsm-flow 0.0.9 → 0.0.11

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 (42) hide show
  1. package/README.md +51 -51
  2. package/dist/{FileSaver.min-BeKvLuyk.mjs → FileSaver.min-5d27MsC6.mjs} +12 -12
  3. package/dist/{edit-BatVtQjM.mjs → edit-B6eDlOpi.mjs} +1 -1
  4. package/dist/{edit-CJKi69Ya.mjs → edit-Cfo0JZSs.mjs} +1 -1
  5. package/dist/{edit-RNcc8UYn.mjs → edit-RoD8ie-7.mjs} +1 -1
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-D9fa466K.mjs → edit.vue_vue_type_script_setup_true_lang-IEXBlCBV.mjs} +28 -26
  7. package/dist/{edit.vue_vue_type_script_setup_true_lang-4mAArGdW.mjs → edit.vue_vue_type_script_setup_true_lang-e_oZRaYA.mjs} +164 -157
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DlfhAjvW.mjs → edit.vue_vue_type_script_setup_true_lang-iiu5w8LK.mjs} +222 -214
  9. package/dist/{el-message-9Nit-6wb.mjs → el-message-So7u3ZRi.mjs} +357 -366
  10. package/dist/{index-CitJdS-N.mjs → index-C7wI2ALv.mjs} +65 -69
  11. package/dist/{index-Ckl3mXfI.mjs → index-C96hiFIm.mjs} +178 -157
  12. package/dist/{index-2vkMhoSW.mjs → index-CC7B9YOg.mjs} +12 -12
  13. package/dist/index-CMbZtOBo.mjs +633 -0
  14. package/dist/{index-CpSpS_gR.mjs → index-CNIFtVcB.mjs} +135 -133
  15. package/dist/{index-ay0TMqjH.mjs → index-CzSzBtpb.mjs} +15 -15
  16. package/dist/{index-BkB6hpAN.mjs → index-D5ZcRr4h.mjs} +109 -106
  17. package/dist/{index-DmttwKtY.mjs → index-DWuCzfFj.mjs} +69 -67
  18. package/dist/{index-w_RSrZed.mjs → index-m-ohs_8-.mjs} +87 -88
  19. package/dist/{index-BqZwYXr_.mjs → index-nSm5Jecq.mjs} +12 -12
  20. package/dist/index.mjs +60 -59
  21. package/dist/style.css +1 -1
  22. package/dts/api/itsm-flow-acceptance/index.d.ts +1 -3
  23. package/dts/api/itsm-flow-acceptance/types.d.ts +1 -6
  24. package/dts/api/itsm-flow-entrust/types.d.ts +3 -1
  25. package/dts/api/itsm-flow-entrust-user/types.d.ts +3 -1
  26. package/dts/api/itsm-flow-reckoning/types.d.ts +1 -1
  27. package/dts/components/TaskItsmFlowAcceptance/index.vue.d.ts +2 -2
  28. package/dts/components/TaskItsmFlowAcceptanceEdit/index.vue.d.ts +2 -2
  29. package/dts/components/TaskItsmFlowEntrust/index.vue.d.ts +2 -2
  30. package/dts/components/TaskItsmFlowEntrustEdit/index.vue.d.ts +2 -2
  31. package/dts/components/TaskItsmFlowReckoning/index.vue.d.ts +2 -2
  32. package/dts/components/TaskItsmFlowReckoningEdit/index.vue.d.ts +2 -2
  33. package/dts/constant.d.ts +3 -0
  34. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
  35. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +2 -2
  36. package/dts/views/itsm-flow-acceptance/index.vue.d.ts +1 -1
  37. package/dts/views/itsm-flow-entrust/edit.vue.d.ts +2 -2
  38. package/dts/views/itsm-flow-entrust/index.vue.d.ts +1 -1
  39. package/dts/views/itsm-flow-reckoning/edit.vue.d.ts +2 -2
  40. package/dts/views/itsm-flow-reckoning/index.vue.d.ts +1 -1
  41. package/package.json +63 -63
  42. package/dist/index-tnwVLRVb.mjs +0 -624
@@ -1,18 +1,17 @@
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";
1
+ import { defineComponent as te, mergeModels as oe, computed as ne, ref as f, useModel as ae, resolveComponent as p, createElementBlock as b, openBlock as _, Fragment as S, createVNode as e, withCtx as l, createElementVNode as a, createTextVNode as u, toDisplayString as r, unref as y, createCommentVNode as I, withDirectives as L, vShow as P, createBlock as A, renderList as se } from "vue";
2
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-CitJdS-N.mjs";
5
- import { i as B, t as me, a as fe } from "./common-Cwl5jzlM.mjs";
3
+ import { D as C, C as ue, u as re, a as ie, e as ce } from "./index-C7wI2ALv.mjs";
4
+ import { i as B, t as de, a as pe } from "./common-Cwl5jzlM.mjs";
6
5
  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-9Nit-6wb.mjs";
10
- const be = { key: 0 }, ke = { key: 1 }, we = {
6
+ import { useI18n as me } from "vue-i18n";
7
+ import { F as fe } from "./FileSaver.min-5d27MsC6.mjs";
8
+ import { E as O } from "./el-message-So7u3ZRi.mjs";
9
+ const _e = { key: 0 }, ve = { key: 1 }, be = {
11
10
  key: 2,
12
11
  class: "distance-left"
13
- }, Ue = /* @__PURE__ */ oe({
12
+ }, $e = /* @__PURE__ */ te({
14
13
  __name: "index",
15
- props: /* @__PURE__ */ ne({
14
+ props: /* @__PURE__ */ oe({
16
15
  task: {
17
16
  type: Object,
18
17
  default: () => {
@@ -24,44 +23,44 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
24
23
  }),
25
24
  emits: ["update:modelValue"],
26
25
  setup($, { expose: j }) {
27
- const { t: N } = ve(), q = ae(() => (i.value.entrustUser || []).map((t) => ({
26
+ const { t: N } = me(), q = ne(() => (i.value.entrustUser || []).map((t) => ({
28
27
  cost: typeof t.cost == "number" ? t.cost : 0,
29
28
  duration: typeof t.duration == "number" ? t.duration : 0
30
29
  }))), K = () => {
31
30
  B.exportFilePdf({
32
- reckoningId: w.value.reckoningId
31
+ reckoningId: g.value.reckoningId
33
32
  }).then((t) => {
34
33
  const n = new Blob([t.data], {
35
34
  type: "application/octet-stream"
36
35
  });
37
- _e.saveAs(n, N("itsmFlowReckoning.name") + ".pdf");
36
+ fe.saveAs(n, N("itsmFlowReckoning.name") + ".pdf");
38
37
  });
39
38
  };
40
39
  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();
40
+ const k = $, g = f({
41
+ reckoningId: k.task.businessKey
42
+ }), i = f({}), v = ae($, "modelValue"), h = f(), T = f({}), E = f(!1), U = f(), m = f([]), R = f();
43
+ function z() {
44
+ E.value = !0, U.value.clearFileList();
46
45
  }
47
- function G(t) {
46
+ function W(t) {
48
47
  m == null || m.value.splice(t, 1);
49
48
  }
50
- function H(t) {
49
+ function G(t) {
51
50
  const n = {
52
51
  fileName: t.name,
53
52
  fileId: t.response.fileId
54
53
  };
55
- m == null || m.value.push(n), m.value = [...new Set(m.value)], U.value = {
54
+ m == null || m.value.push(n), m.value = [...new Set(m.value)], R.value = {
56
55
  requestId: Math.random() * 10 + "",
57
56
  taskId: k.task.id,
58
57
  name: t.name,
59
58
  type: t.response.contentType,
60
59
  url: t.response.fileSrc
61
- }, J();
60
+ }, H();
62
61
  }
63
- function J() {
64
- de.uploadFile(U.value).then(() => {
62
+ function H() {
63
+ ie.uploadFile(R.value).then(() => {
65
64
  O.success(N("common.uploadSuccess"));
66
65
  }).catch(() => {
67
66
  O.error(N("common.uploadError"));
@@ -70,48 +69,49 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
70
69
  function V(t) {
71
70
  t.mobileEncrypt = !t.mobileEncrypt;
72
71
  }
73
- k.task.businessKey && X(), j({
74
- changeModel: () => Y()
72
+ k.task.businessKey && Q(), j({
73
+ changeModel: () => X()
75
74
  });
76
- function Q() {
77
- pe.findList({ actionId: w.value.reckoningId }).then(({ data: t }) => {
75
+ function J() {
76
+ ce.findList({ actionId: g.value.reckoningId }).then(({ data: t }) => {
78
77
  i.value.entrustUser = [], t.results.forEach((n) => {
79
- n.actionId == w.value.reckoningId && i.value.entrustUser.push({
78
+ n.actionId == g.value.reckoningId && i.value.entrustUser.push({
80
79
  ...n,
81
80
  duration: typeof n.duration == "string" ? parseFloat(n.duration.trim()) : 0
82
81
  });
83
82
  });
84
83
  });
85
84
  }
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();
85
+ function Q() {
86
+ B.findById({ reckoningId: g.value.reckoningId }).then(({ data: t }) => {
87
+ i.value = Object.assign(i.value, t), J();
89
88
  });
90
89
  }
91
- function Y() {
92
- return _.value && (_.value.selectActions = [
90
+ function X() {
91
+ return v.value && (v.value.selectActions = [
93
92
  { key: "true", value: "同意" },
94
93
  { key: "false", value: "不同意" }
95
- ], _.value.varName = "approved", _.value.module = "", _.value.module = ie.MODULE_ITSMFLOW), new Promise((t, n) => {
94
+ ], v.value.varName = "approved", v.value.module = "", v.value.module = ue.MODULE_ITSMFLOW), new Promise((t, n) => {
96
95
  var s;
97
96
  (s = h.value) == null || s.validate((c) => {
98
- c ? (_.value && (_.value.comment = ""), t(!0)) : n(!1);
97
+ c ? (v.value && (v.value.comment = ""), t(!0)) : n(!1);
99
98
  });
100
99
  });
101
100
  }
102
101
  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, [
102
+ const s = p("el-col"), c = p("el-form-item"), d = p("el-row"), w = p("el-table-column"), D = p("svg-icon"), Y = p("el-table"), M = p("el-button"), Z = p("CircleClose"), x = p("el-icon"), ee = p("el-form"), le = p("jmash-multi-upload");
103
+ return _(), b(S, null, [
105
104
  e(s, { span: 24 }, {
106
105
  default: l(() => n[1] || (n[1] = [
107
106
  a("div", { class: "title" }, "委托服务合同结算清单", -1)
108
107
  ])),
109
- _: 1
108
+ _: 1,
109
+ __: [1]
110
110
  }),
111
- e(le, {
111
+ e(ee, {
112
112
  ref_key: "taskFormRef",
113
113
  ref: h,
114
- model: z.value,
114
+ model: T.value,
115
115
  "label-width": "150px",
116
116
  class: "custom-table-form"
117
117
  }, {
@@ -163,7 +163,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
163
163
  prop: "entrustName"
164
164
  }, {
165
165
  default: l(() => [
166
- u(r(g(C).projectNameDict.getDictValue(i.value.entrustName)), 1)
166
+ u(r(y(C).projectNameDict.getDictValue(i.value.entrustName)), 1)
167
167
  ]),
168
168
  _: 1
169
169
  }, 8, ["label"])
@@ -182,7 +182,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
182
182
  prop: "serviceOrg"
183
183
  }, {
184
184
  default: l(() => [
185
- u(r(g(C).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
185
+ u(r(y(C).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
186
186
  ]),
187
187
  _: 1
188
188
  }, 8, ["label"])
@@ -272,13 +272,13 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
272
272
  default: l(() => [
273
273
  e(s, { span: 24 }, {
274
274
  default: l(() => [
275
- e(Z, {
275
+ e(Y, {
276
276
  stripe: "",
277
277
  data: i.value.entrustUser,
278
278
  style: { width: "100%" }
279
279
  }, {
280
280
  default: l(() => [
281
- e(y, {
281
+ e(w, {
282
282
  prop: "userId",
283
283
  label: t.$t("itsmFlowEntrustUser.userId")
284
284
  }, {
@@ -287,13 +287,13 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
287
287
  ]),
288
288
  _: 1
289
289
  }, 8, ["label"]),
290
- e(y, {
290
+ e(w, {
291
291
  prop: "idNo",
292
292
  label: t.$t("itsmFlowEntrustUser.idNo")
293
293
  }, {
294
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, [
295
+ o.row.mobileEncrypt ? (_(), b("span", ve, r(o.row.idNo), 1)) : (_(), b("span", _e, r(o.row.idNoIns), 1)),
296
+ o.row.idNoIns ? (_(), b("span", be, [
297
297
  L(e(D, {
298
298
  "icon-class": "close-eye",
299
299
  onClick: (F) => V(o.row)
@@ -310,7 +310,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
310
310
  ]),
311
311
  _: 1
312
312
  }, 8, ["label"]),
313
- e(y, {
313
+ e(w, {
314
314
  prop: "cost",
315
315
  label: t.$t("itsmFlowEntrustUser.cost")
316
316
  }, {
@@ -319,7 +319,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
319
319
  ]),
320
320
  _: 1
321
321
  }, 8, ["label"]),
322
- e(y, {
322
+ e(w, {
323
323
  prop: "duration",
324
324
  label: t.$t("itsmFlowEntrustUser.duration")
325
325
  }, {
@@ -328,12 +328,12 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
328
328
  ]),
329
329
  _: 1
330
330
  }, 8, ["label"]),
331
- e(y, {
331
+ e(w, {
332
332
  prop: "totalAmount",
333
333
  label: t.$t("itsmFlowReckoning.totalAmount")
334
334
  }, {
335
335
  default: l((o) => [
336
- u(r(g(me)(o.row.cost, o.row.duration)), 1)
336
+ u(r(y(de)(o.row.cost, o.row.duration)), 1)
337
337
  ]),
338
338
  _: 1
339
339
  }, 8, ["label"])
@@ -355,7 +355,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
355
355
  label: t.$t("itsmFlowReckoning.totalPrice")
356
356
  }, {
357
357
  default: l(() => [
358
- u(r(g(fe)(q.value)) + "元 ", 1)
358
+ u(r(y(pe)(q.value)) + "元 ", 1)
359
359
  ]),
360
360
  _: 1
361
361
  }, 8, ["label"])
@@ -380,7 +380,8 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
380
380
  ])
381
381
  ], -1)
382
382
  ])),
383
- _: 1
383
+ _: 1,
384
+ __: [2]
384
385
  }),
385
386
  e(s, {
386
387
  span: 12,
@@ -401,14 +402,15 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
401
402
  ])
402
403
  ], -1)
403
404
  ])),
404
- _: 1
405
+ _: 1,
406
+ __: [3]
405
407
  })
406
408
  ]),
407
409
  _: 1
408
410
  }),
409
411
  e(d, null, {
410
412
  default: l(() => [
411
- k.task.taskDefinitionKey === "UploadScanFile" ? (v(), A(s, {
413
+ k.task.taskDefinitionKey === "UploadScanFile" ? (_(), A(s, {
412
414
  key: 0,
413
415
  span: 12
414
416
  }, {
@@ -419,8 +421,8 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
419
421
  default: l(() => [
420
422
  e(M, {
421
423
  type: "primary",
422
- icon: g(ce),
423
- onClick: W
424
+ icon: y(re),
425
+ onClick: z
424
426
  }, {
425
427
  default: l(() => [
426
428
  u(r(t.$t("common.uploadFiles")), 1)
@@ -432,18 +434,18 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
432
434
  }, 8, ["label"]),
433
435
  e(c, null, {
434
436
  default: l(() => [
435
- (v(!0), b(S, null, ue(m.value, (o, F) => (v(), b("div", {
437
+ (_(!0), b(S, null, se(m.value, (o, F) => (_(), b("div", {
436
438
  key: F,
437
439
  class: "files-list"
438
440
  }, [
439
441
  u(r(o.fileName) + " ", 1),
440
- e(ee, {
442
+ e(x, {
441
443
  size: "16",
442
444
  class: "icon-right",
443
- onClick: (ye) => G(F)
445
+ onClick: (ke) => W(F)
444
446
  }, {
445
447
  default: l(() => [
446
- e(x)
448
+ e(Z)
447
449
  ]),
448
450
  _: 2
449
451
  }, 1032, ["onClick"])
@@ -454,7 +456,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
454
456
  ]),
455
457
  _: 1
456
458
  })) : I("", !0),
457
- k.task.taskDefinitionKey === "UploadScanFile" ? (v(), A(s, {
459
+ k.task.taskDefinitionKey === "UploadScanFile" ? (_(), A(s, {
458
460
  key: 1,
459
461
  span: 12
460
462
  }, {
@@ -485,17 +487,17 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
485
487
  ]),
486
488
  _: 1
487
489
  }, 8, ["model"]),
488
- e(te, {
490
+ e(le, {
489
491
  ref_key: "uploadRef",
490
- ref: R,
492
+ ref: U,
491
493
  modelValue: E.value,
492
494
  "onUpdate:modelValue": n[0] || (n[0] = (o) => E.value = o),
493
- onUploadFileList: H
495
+ onUploadFileList: G
494
496
  }, null, 8, ["modelValue"])
495
497
  ], 64);
496
498
  };
497
499
  }
498
500
  });
499
501
  export {
500
- Ue as default
502
+ $e as default
501
503
  };