xyvcard-itsm-flow 0.0.8 → 0.0.10

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 (27) hide show
  1. package/dist/{common--K4gGsNT.mjs → common-Cwl5jzlM.mjs} +1 -1
  2. package/dist/{edit-B621RtNS.mjs → edit-BnJnxvY6.mjs} +1 -1
  3. package/dist/{edit-CoRzQ2SK.mjs → edit-D8J1Znw_.mjs} +1 -1
  4. package/dist/{edit-Czk64Yon.mjs → edit-har-8Y54.mjs} +1 -1
  5. package/dist/{edit.vue_vue_type_script_setup_true_lang-D-UzvXtU.mjs → edit.vue_vue_type_script_setup_true_lang-BZ-prpPo.mjs} +94 -96
  6. package/dist/{edit.vue_vue_type_script_setup_true_lang-AhC28_ys.mjs → edit.vue_vue_type_script_setup_true_lang-QsTI3qOD.mjs} +1 -1
  7. package/dist/edit.vue_vue_type_script_setup_true_lang-TXBAzoPS.mjs +553 -0
  8. package/dist/{el-message-FfNjxLv_.mjs → el-message-CIdVBT5R.mjs} +1 -1
  9. package/dist/{index-BCP5cBN6.mjs → index-BAHlhmvh.mjs} +60 -61
  10. package/dist/{index-DX1PURJy.mjs → index-BjBTIknS.mjs} +115 -114
  11. package/dist/{index-B5vmtcUk.mjs → index-C6XFHtva.mjs} +92 -95
  12. package/dist/{index-CVbpEq7V.mjs → index-CF0oM0UA.mjs} +139 -100
  13. package/dist/{index-CdzhLCkX.mjs → index-Cp3csR1g.mjs} +3 -3
  14. package/dist/{index-Dld6YbIV.mjs → index-DBIF93AC.mjs} +177 -150
  15. package/dist/{index-BlBkHqXR.mjs → index-DKIrRXT5.mjs} +2 -2
  16. package/dist/{index-CRHpl0qA.mjs → index-DnFWLmFk.mjs} +58 -59
  17. package/dist/{index-DY7ZV5kq.mjs → index-DugZK_BS.mjs} +96 -78
  18. package/dist/{index-BJl7xHYx.mjs → index-bMREgnhp.mjs} +14 -14
  19. package/dist/index.mjs +63 -60
  20. package/dts/api/itsm-flow-acceptance/index.d.ts +3 -1
  21. package/dts/api/itsm-flow-acceptance/types.d.ts +24 -1
  22. package/dts/api/itsm-flow-entrust/index.d.ts +0 -3
  23. package/dts/constant.d.ts +3 -0
  24. package/dts/lang/itsm-flow/zh-cn.d.ts +3 -0
  25. package/dts/views/itsm-flow-acceptance/edit.vue.d.ts +4 -4
  26. package/package.json +1 -1
  27. package/dist/edit.vue_vue_type_script_setup_true_lang-BYz7O3Xi.mjs +0 -523
@@ -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, 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 y, withDirectives as L, vShow as P, createCommentVNode as I, 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-DY7ZV5kq.mjs";
5
- import { i as B, t as me, a as fe } from "./common--K4gGsNT.mjs";
3
+ import { D as C, C as ue, u as re, a as ie, e as ce } from "./index-DugZK_BS.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-FfNjxLv_.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-BeKvLuyk.mjs";
8
+ import { E as O } from "./el-message-CIdVBT5R.mjs";
9
+ const ve = { key: 0 }, _e = { 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({}), _ = 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,29 +69,29 @@ 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() {
90
+ function X() {
92
91
  return _.value && (_.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
+ ], _.value.varName = "approved", _.value.module = "", _.value.module = ue.MODULE_ITSMFLOW), new Promise((t, n) => {
96
95
  var s;
97
96
  (s = h.value) == null || s.validate((c) => {
98
97
  c ? (_.value && (_.value.comment = ""), t(!0)) : n(!1);
@@ -100,7 +99,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
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");
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");
104
103
  return v(), b(S, null, [
105
104
  e(s, { span: 24 }, {
106
105
  default: l(() => n[1] || (n[1] = [
@@ -108,10 +107,10 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
108
107
  ])),
109
108
  _: 1
110
109
  }),
111
- e(le, {
110
+ e(ee, {
112
111
  ref_key: "taskFormRef",
113
112
  ref: h,
114
- model: z.value,
113
+ model: T.value,
115
114
  "label-width": "150px",
116
115
  class: "custom-table-form"
117
116
  }, {
@@ -163,7 +162,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
163
162
  prop: "entrustName"
164
163
  }, {
165
164
  default: l(() => [
166
- u(r(g(C).projectNameDict.getDictValue(i.value.entrustName)), 1)
165
+ u(r(y(C).projectNameDict.getDictValue(i.value.entrustName)), 1)
167
166
  ]),
168
167
  _: 1
169
168
  }, 8, ["label"])
@@ -182,7 +181,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
182
181
  prop: "serviceOrg"
183
182
  }, {
184
183
  default: l(() => [
185
- u(r(g(C).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
184
+ u(r(y(C).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
186
185
  ]),
187
186
  _: 1
188
187
  }, 8, ["label"])
@@ -272,13 +271,13 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
272
271
  default: l(() => [
273
272
  e(s, { span: 24 }, {
274
273
  default: l(() => [
275
- e(Z, {
274
+ e(Y, {
276
275
  stripe: "",
277
276
  data: i.value.entrustUser,
278
277
  style: { width: "100%" }
279
278
  }, {
280
279
  default: l(() => [
281
- e(y, {
280
+ e(w, {
282
281
  prop: "userId",
283
282
  label: t.$t("itsmFlowEntrustUser.userId")
284
283
  }, {
@@ -287,13 +286,13 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
287
286
  ]),
288
287
  _: 1
289
288
  }, 8, ["label"]),
290
- e(y, {
289
+ e(w, {
291
290
  prop: "idNo",
292
291
  label: t.$t("itsmFlowEntrustUser.idNo")
293
292
  }, {
294
293
  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, [
294
+ o.row.mobileEncrypt ? (v(), b("span", _e, r(o.row.idNo), 1)) : (v(), b("span", ve, r(o.row.idNoIns), 1)),
295
+ o.row.idNoIns ? (v(), b("span", be, [
297
296
  L(e(D, {
298
297
  "icon-class": "close-eye",
299
298
  onClick: (F) => V(o.row)
@@ -310,7 +309,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
310
309
  ]),
311
310
  _: 1
312
311
  }, 8, ["label"]),
313
- e(y, {
312
+ e(w, {
314
313
  prop: "cost",
315
314
  label: t.$t("itsmFlowEntrustUser.cost")
316
315
  }, {
@@ -319,7 +318,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
319
318
  ]),
320
319
  _: 1
321
320
  }, 8, ["label"]),
322
- e(y, {
321
+ e(w, {
323
322
  prop: "duration",
324
323
  label: t.$t("itsmFlowEntrustUser.duration")
325
324
  }, {
@@ -328,12 +327,12 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
328
327
  ]),
329
328
  _: 1
330
329
  }, 8, ["label"]),
331
- e(y, {
330
+ e(w, {
332
331
  prop: "totalAmount",
333
332
  label: t.$t("itsmFlowReckoning.totalAmount")
334
333
  }, {
335
334
  default: l((o) => [
336
- u(r(g(me)(o.row.cost, o.row.duration)), 1)
335
+ u(r(y(de)(o.row.cost, o.row.duration)), 1)
337
336
  ]),
338
337
  _: 1
339
338
  }, 8, ["label"])
@@ -355,7 +354,7 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
355
354
  label: t.$t("itsmFlowReckoning.totalPrice")
356
355
  }, {
357
356
  default: l(() => [
358
- u(r(g(fe)(q.value)) + "元 ", 1)
357
+ u(r(y(pe)(q.value)) + "元 ", 1)
359
358
  ]),
360
359
  _: 1
361
360
  }, 8, ["label"])
@@ -419,8 +418,8 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
419
418
  default: l(() => [
420
419
  e(M, {
421
420
  type: "primary",
422
- icon: g(ce),
423
- onClick: W
421
+ icon: y(re),
422
+ onClick: z
424
423
  }, {
425
424
  default: l(() => [
426
425
  u(r(t.$t("common.uploadFiles")), 1)
@@ -432,18 +431,18 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
432
431
  }, 8, ["label"]),
433
432
  e(c, null, {
434
433
  default: l(() => [
435
- (v(!0), b(S, null, ue(m.value, (o, F) => (v(), b("div", {
434
+ (v(!0), b(S, null, se(m.value, (o, F) => (v(), b("div", {
436
435
  key: F,
437
436
  class: "files-list"
438
437
  }, [
439
438
  u(r(o.fileName) + " ", 1),
440
- e(ee, {
439
+ e(x, {
441
440
  size: "16",
442
441
  class: "icon-right",
443
- onClick: (ye) => G(F)
442
+ onClick: (ke) => W(F)
444
443
  }, {
445
444
  default: l(() => [
446
- e(x)
445
+ e(Z)
447
446
  ]),
448
447
  _: 2
449
448
  }, 1032, ["onClick"])
@@ -485,17 +484,17 @@ const be = { key: 0 }, ke = { key: 1 }, we = {
485
484
  ]),
486
485
  _: 1
487
486
  }, 8, ["model"]),
488
- e(te, {
487
+ e(le, {
489
488
  ref_key: "uploadRef",
490
- ref: R,
489
+ ref: U,
491
490
  modelValue: E.value,
492
491
  "onUpdate:modelValue": n[0] || (n[0] = (o) => E.value = o),
493
- onUploadFileList: H
492
+ onUploadFileList: G
494
493
  }, null, 8, ["modelValue"])
495
494
  ], 64);
496
495
  };
497
496
  }
498
497
  });
499
498
  export {
500
- Ue as default
499
+ $e as default
501
500
  };