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,17 +1,16 @@
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";
1
+ import { defineComponent as te, mergeModels as le, ref as f, useModel as oe, resolveComponent as p, 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 E, withDirectives as j, vShow as L, createCommentVNode as N, createBlock as q, renderList as ne } from "vue";
2
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-DY7ZV5kq.mjs";
3
+ import { D as y, a as h, C as ae, u as se, e as ue } from "./index-DugZK_BS.mjs";
5
4
  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-FfNjxLv_.mjs";
9
- const ce = { key: 0 }, me = { key: 1 }, fe = {
5
+ import { useI18n as re } from "vue-i18n";
6
+ import { F as ie } from "./FileSaver.min-BeKvLuyk.mjs";
7
+ import { E as z } from "./el-message-CIdVBT5R.mjs";
8
+ const de = { key: 0 }, ce = { key: 1 }, pe = {
10
9
  key: 2,
11
10
  class: "distance-left"
12
- }, ge = /* @__PURE__ */ le({
11
+ }, Ee = /* @__PURE__ */ te({
13
12
  __name: "index",
14
- props: /* @__PURE__ */ oe({
13
+ props: /* @__PURE__ */ le({
15
14
  task: {
16
15
  type: Object,
17
16
  default: () => {
@@ -22,26 +21,26 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
22
21
  modelModifiers: {}
23
22
  }),
24
23
  emits: ["update:modelValue"],
25
- setup($, { expose: R }) {
26
- const { t: g } = de(), A = () => {
27
- h.exportFilePdf({ entrustId: E.value.entrustId }).then((l) => {
24
+ setup($, { expose: A }) {
25
+ const { t: g } = re(), K = () => {
26
+ h.exportFilePdf({ entrustId: F.value.entrustId }).then((l) => {
28
27
  const s = new Blob([l.data], {
29
28
  type: "application/octet-stream"
30
29
  });
31
- pe.saveAs(s, g("itsmFlowEntrust.name") + ".pdf");
30
+ ie.saveAs(s, g("itsmFlowEntrust.name") + ".pdf");
32
31
  });
33
32
  };
34
33
  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() {
34
+ const k = $, F = f({
35
+ entrustId: k.task.businessKey
36
+ }), i = f({}), _ = oe($, "modelValue"), V = f(), P = f({}), C = f(!1), U = f(), m = f([]), D = f();
37
+ function R() {
39
38
  C.value = !0, U.value.clearFileList();
40
39
  }
41
- function W(l) {
40
+ function T(l) {
42
41
  m == null || m.value.splice(l, 1);
43
42
  }
44
- function x(l) {
43
+ function W(l) {
45
44
  const s = {
46
45
  fileName: l.name,
47
46
  fileId: l.response.fileId
@@ -52,9 +51,9 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
52
51
  name: l.name,
53
52
  type: l.response.contentType,
54
53
  url: l.response.fileSrc
55
- }, G();
54
+ }, x();
56
55
  }
57
- function G() {
56
+ function x() {
58
57
  h.uploadFile(D.value).then(() => {
59
58
  z.success(g("common.uploadSuccess"));
60
59
  }).catch(() => {
@@ -64,28 +63,28 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
64
63
  function O(l) {
65
64
  l.mobileEncrypt = !l.mobileEncrypt;
66
65
  }
67
- k.task.businessKey && J(), R({
68
- changeModel: () => Q()
66
+ k.task.businessKey && H(), A({
67
+ changeModel: () => J()
69
68
  });
70
- function H() {
71
- ie.findList({ actionId: E.value.entrustId }).then(({ data: l }) => {
69
+ function G() {
70
+ ue.findList({ actionId: F.value.entrustId }).then(({ data: l }) => {
72
71
  i.value.entrustUser = [], l.results.forEach((s) => {
73
- s.actionId == E.value.entrustId && i.value.entrustUser.push({
72
+ s.actionId == F.value.entrustId && i.value.entrustUser.push({
74
73
  ...s
75
74
  });
76
75
  });
77
76
  });
78
77
  }
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();
78
+ function H() {
79
+ h.findById({ entrustId: F.value.entrustId }).then(({ data: l }) => {
80
+ i.value = Object.assign(i.value, l), G();
82
81
  });
83
82
  }
84
- function Q() {
83
+ function J() {
85
84
  return _.value && (_.value.selectActions = [
86
85
  { key: "true", value: "同意" },
87
86
  { key: "false", value: "不同意" }
88
- ], _.value.varName = "approved", _.value.module = "", _.value.module = ue.MODULE_ITSMFLOW), new Promise((l, s) => {
87
+ ], _.value.varName = "approved", _.value.module = "", _.value.module = ae.MODULE_ITSMFLOW), new Promise((l, s) => {
89
88
  var a;
90
89
  (a = V.value) == null || a.validate((d) => {
91
90
  d ? (_.value && (_.value.comment = ""), l(!0)) : s(!1);
@@ -93,7 +92,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
93
92
  });
94
93
  }
95
94
  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");
95
+ const a = p("el-col"), d = p("el-form-item"), c = p("el-row"), I = p("el-table-column"), B = p("svg-icon"), Q = p("el-table"), M = p("el-button"), X = p("CircleClose"), Y = p("el-icon"), Z = p("el-form"), ee = p("jmash-multi-upload");
97
96
  return v(), w(S, null, [
98
97
  e(a, { span: 24 }, {
99
98
  default: t(() => s[1] || (s[1] = [
@@ -101,7 +100,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
101
100
  ])),
102
101
  _: 1
103
102
  }),
104
- e(ee, {
103
+ e(Z, {
105
104
  ref_key: "taskFormRef",
106
105
  ref: V,
107
106
  model: P.value,
@@ -109,7 +108,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
109
108
  class: "custom-table-form"
110
109
  }, {
111
110
  default: t(() => [
112
- e(p, null, {
111
+ e(c, null, {
113
112
  default: t(() => [
114
113
  e(a, { span: 24 }, {
115
114
  default: t(() => [
@@ -128,7 +127,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
128
127
  ]),
129
128
  _: 1
130
129
  }),
131
- e(p, null, {
130
+ e(c, null, {
132
131
  default: t(() => [
133
132
  e(a, { span: 24 }, {
134
133
  default: t(() => [
@@ -147,7 +146,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
147
146
  ]),
148
147
  _: 1
149
148
  }),
150
- e(p, null, {
149
+ e(c, null, {
151
150
  default: t(() => [
152
151
  e(a, { span: 24 }, {
153
152
  default: t(() => [
@@ -156,7 +155,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
156
155
  prop: "entrustName"
157
156
  }, {
158
157
  default: t(() => [
159
- u(r(F(y).projectNameDict.getDictValue(i.value.entrustName)), 1)
158
+ u(r(E(y).projectNameDict.getDictValue(i.value.entrustName)), 1)
160
159
  ]),
161
160
  _: 1
162
161
  }, 8, ["label"])
@@ -166,7 +165,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
166
165
  ]),
167
166
  _: 1
168
167
  }),
169
- e(p, null, {
168
+ e(c, null, {
170
169
  default: t(() => [
171
170
  e(a, { span: 24 }, {
172
171
  default: t(() => [
@@ -185,7 +184,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
185
184
  ]),
186
185
  _: 1
187
186
  }),
188
- e(p, null, {
187
+ e(c, null, {
189
188
  default: t(() => [
190
189
  e(a, { span: 24 }, {
191
190
  default: t(() => [
@@ -196,7 +195,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
196
195
  default: t(() => {
197
196
  var o;
198
197
  return [
199
- u(r((((o = i.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((b) => F(y).parentIdBizDict.getValue(b)).join(",")), 1)
198
+ u(r((((o = i.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((b) => E(y).parentIdBizDict.getValue(b)).join(",")), 1)
200
199
  ];
201
200
  }),
202
201
  _: 1
@@ -207,7 +206,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
207
206
  ]),
208
207
  _: 1
209
208
  }),
210
- e(p, null, {
209
+ e(c, null, {
211
210
  default: t(() => [
212
211
  e(a, { span: 12 }, {
213
212
  default: t(() => [
@@ -216,7 +215,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
216
215
  prop: "serviceContent"
217
216
  }, {
218
217
  default: t(() => [
219
- u(r(F(y).serviceContentEnum.getEnumValue(i.value.serviceContent)), 1)
218
+ u(r(E(y).serviceContentEnum.getEnumValue(i.value.serviceContent)), 1)
220
219
  ]),
221
220
  _: 1
222
221
  }, 8, ["label"])
@@ -230,7 +229,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
230
229
  prop: "serviceOrg"
231
230
  }, {
232
231
  default: t(() => [
233
- u(r(F(y).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
232
+ u(r(E(y).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
234
233
  ]),
235
234
  _: 1
236
235
  }, 8, ["label"])
@@ -240,7 +239,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
240
239
  ]),
241
240
  _: 1
242
241
  }),
243
- e(p, null, {
242
+ e(c, null, {
244
243
  default: t(() => [
245
244
  e(a, { span: 24 }, {
246
245
  default: t(() => [
@@ -259,7 +258,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
259
258
  ]),
260
259
  _: 1
261
260
  }),
262
- e(p, null, {
261
+ e(c, null, {
263
262
  default: t(() => [
264
263
  e(a, { span: 24 }, {
265
264
  default: t(() => [
@@ -278,11 +277,11 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
278
277
  ]),
279
278
  _: 1
280
279
  }),
281
- e(p, null, {
280
+ e(c, null, {
282
281
  default: t(() => [
283
282
  e(a, { span: 24 }, {
284
283
  default: t(() => [
285
- e(X, {
284
+ e(Q, {
286
285
  stripe: "",
287
286
  data: i.value.entrustUser,
288
287
  style: { width: "100%" }
@@ -302,8 +301,8 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
302
301
  label: l.$t("itsmFlowEntrustUser.idNo")
303
302
  }, {
304
303
  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, [
304
+ o.row.mobileEncrypt ? (v(), w("span", ce, r(o.row.idNo), 1)) : (v(), w("span", de, r(o.row.idNoIns), 1)),
305
+ o.row.idNoIns ? (v(), w("span", pe, [
307
306
  j(e(B, {
308
307
  "icon-class": "close-eye",
309
308
  onClick: (b) => O(o.row)
@@ -347,7 +346,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
347
346
  ]),
348
347
  _: 1
349
348
  }),
350
- e(p, { class: "bordered-row" }, {
349
+ e(c, { class: "bordered-row" }, {
351
350
  default: t(() => [
352
351
  e(a, { span: 12 }, {
353
352
  default: t(() => s[2] || (s[2] = [
@@ -391,7 +390,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
391
390
  ]),
392
391
  _: 1
393
392
  }),
394
- e(p, null, {
393
+ e(c, null, {
395
394
  default: t(() => [
396
395
  k.task.taskDefinitionKey === "UploadScanFile" ? (v(), q(a, {
397
396
  key: 0,
@@ -404,8 +403,8 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
404
403
  default: t(() => [
405
404
  e(M, {
406
405
  type: "primary",
407
- icon: F(re),
408
- onClick: T
406
+ icon: E(se),
407
+ onClick: R
409
408
  }, {
410
409
  default: t(() => [
411
410
  u(r(l.$t("common.uploadFiles")), 1)
@@ -417,18 +416,18 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
417
416
  }, 8, ["label"]),
418
417
  e(d, null, {
419
418
  default: t(() => [
420
- (v(!0), w(S, null, ae(m.value, (o, b) => (v(), w("div", {
419
+ (v(!0), w(S, null, ne(m.value, (o, b) => (v(), w("div", {
421
420
  key: b,
422
421
  class: "files-list"
423
422
  }, [
424
423
  u(r(o.fileName) + " ", 1),
425
- e(Z, {
424
+ e(Y, {
426
425
  size: "16",
427
426
  class: "icon-right",
428
- onClick: (ve) => W(b)
427
+ onClick: (me) => T(b)
429
428
  }, {
430
429
  default: t(() => [
431
- e(Y)
430
+ e(X)
432
431
  ]),
433
432
  _: 2
434
433
  }, 1032, ["onClick"])
@@ -451,7 +450,7 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
451
450
  e(M, {
452
451
  plain: "",
453
452
  type: "primary",
454
- onClick: A
453
+ onClick: K
455
454
  }, {
456
455
  default: t(() => [
457
456
  u(r(l.$t("itsmFlowEntrust.export")), 1)
@@ -470,17 +469,17 @@ const ce = { key: 0 }, me = { key: 1 }, fe = {
470
469
  ]),
471
470
  _: 1
472
471
  }, 8, ["model"]),
473
- e(te, {
472
+ e(ee, {
474
473
  ref_key: "uploadRef",
475
474
  ref: U,
476
475
  modelValue: C.value,
477
476
  "onUpdate:modelValue": s[0] || (s[0] = (o) => C.value = o),
478
- onUploadFileList: x
477
+ onUploadFileList: W
479
478
  }, null, 8, ["modelValue"])
480
479
  ], 64);
481
480
  };
482
481
  }
483
482
  });
484
483
  export {
485
- ge as default
484
+ Ee as default
486
485
  };