xyvcard-itsm-flow 0.0.12 → 0.0.13

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.
@@ -1,16 +1,16 @@
1
- import { defineComponent as te, mergeModels as le, ref as f, useModel as ne, resolveComponent as p, createElementBlock as w, openBlock as _, Fragment as M, createVNode as e, withCtx as t, createElementVNode as o, createTextVNode as r, toDisplayString as s, unref as E, createCommentVNode as g, withDirectives as j, vShow as L, createBlock as q, renderList as oe } from "vue";
1
+ import { defineComponent as le, mergeModels as oe, ref as f, useModel as ne, resolveComponent as p, createElementBlock as k, openBlock as _, Fragment as j, createVNode as e, withCtx as t, createElementVNode as n, createTextVNode as r, toDisplayString as s, unref as b, createCommentVNode as g, withDirectives as L, vShow as q, createBlock as z, renderList as ae } from "vue";
2
2
  import "element-plus";
3
- import { D as k, a as h, C as ae, u as se, e as ue } from "./index-B80qPhYo.mjs";
3
+ import { D as y, a as h, C as $, u as se, e as ue } from "./index-CMpeLVvR.mjs";
4
4
  import "jmash-core";
5
5
  import { useI18n as re } from "vue-i18n";
6
6
  import { F as ie } from "./FileSaver.min-5d27MsC6.mjs";
7
- import { E as z } from "./el-message-CDs_oXSE.mjs";
7
+ import { E as A } from "./el-message-DweX1k3E.mjs";
8
8
  const de = { key: 0 }, ce = { key: 1 }, pe = {
9
9
  key: 2,
10
10
  class: "distance-left"
11
- }, Ee = /* @__PURE__ */ te({
11
+ }, Ee = /* @__PURE__ */ le({
12
12
  __name: "index",
13
- props: /* @__PURE__ */ le({
13
+ props: /* @__PURE__ */ oe({
14
14
  task: {
15
15
  type: Object,
16
16
  default: () => {
@@ -21,8 +21,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
21
21
  modelModifiers: {}
22
22
  }),
23
23
  emits: ["update:modelValue"],
24
- setup($, { expose: A }) {
25
- const { t: C } = re(), K = () => {
24
+ setup(V, { expose: K }) {
25
+ const { t: C } = re(), P = () => {
26
26
  h.exportFilePdf({ entrustId: F.value.entrustId }).then((l) => {
27
27
  const u = new Blob([l.data], {
28
28
  type: "application/octet-stream"
@@ -30,43 +30,43 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
30
30
  ie.saveAs(u, C("itsmFlowEntrust.name") + ".pdf");
31
31
  });
32
32
  };
33
- k.parentIdBizDict.useValues(), k.orgIdBizDict.useValues();
34
- const y = $, F = f({
35
- entrustId: y.task.businessKey
36
- }), i = f({}), v = ne($, "modelValue"), V = f(), P = f({}), N = f(!1), U = f(), m = f([]), D = f();
37
- function R() {
33
+ y.parentIdBizDict.useValues(), y.orgIdBizDict.useValues();
34
+ const E = V, F = f({
35
+ entrustId: E.task.businessKey
36
+ }), i = f({}), v = ne(V, "modelValue"), D = f(), R = f({}), N = f(!1), U = f(), m = f([]), O = f();
37
+ function T() {
38
38
  N.value = !0, U.value.clearFileList();
39
39
  }
40
- function T(l) {
40
+ function W(l) {
41
41
  m == null || m.value.splice(l, 1);
42
42
  }
43
- function W(l) {
43
+ function x(l) {
44
44
  const u = {
45
45
  fileName: l.name,
46
46
  fileId: l.response.fileId
47
47
  };
48
- m == null || m.value.push(u), m.value = [...new Set(m.value)], D.value = {
48
+ m == null || m.value.push(u), m.value = [...new Set(m.value)], O.value = {
49
49
  requestId: Math.random() * 10 + "",
50
- taskId: y.task.id,
50
+ taskId: E.task.id,
51
51
  name: l.name,
52
52
  type: l.response.contentType,
53
53
  url: l.response.fileSrc
54
- }, x();
54
+ }, G();
55
55
  }
56
- function x() {
57
- h.uploadFile(D.value).then(() => {
58
- z.success(C("common.uploadSuccess"));
56
+ function G() {
57
+ h.uploadFile(O.value).then(() => {
58
+ A.success(C("common.uploadSuccess"));
59
59
  }).catch(() => {
60
- z.error(C("common.uploadError"));
60
+ A.error(C("common.uploadError"));
61
61
  });
62
62
  }
63
- function O(l) {
63
+ function B(l) {
64
64
  l.mobileEncrypt = !l.mobileEncrypt;
65
65
  }
66
- y.task.businessKey && H(), A({
67
- changeModel: () => J()
66
+ E.task.businessKey && J(), K({
67
+ changeModel: () => Q()
68
68
  });
69
- function G() {
69
+ function H() {
70
70
  ue.findList({ actionId: F.value.entrustId }).then(({ data: l }) => {
71
71
  i.value.entrustUser = [], l.results.forEach((u) => {
72
72
  u.actionId == F.value.entrustId && i.value.entrustUser.push({
@@ -75,36 +75,36 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
75
75
  });
76
76
  });
77
77
  }
78
- function H() {
78
+ function J() {
79
79
  h.findById({ entrustId: F.value.entrustId }).then(({ data: l }) => {
80
- i.value = Object.assign(i.value, l), G();
80
+ i.value = Object.assign(i.value, l), H();
81
81
  });
82
82
  }
83
- function J() {
83
+ function Q() {
84
84
  return v.value && (v.value.selectActions = [
85
85
  { key: "true", value: "同意" },
86
86
  { key: "false", value: "不同意" }
87
- ], v.value.varName = "approved", v.value.module = "", v.value.module = ae.MODULE_ITSMFLOW), new Promise((l, u) => {
87
+ ], v.value.varName = "approved", v.value.module = "", v.value.module = $.MODULE_ITSMFLOW), new Promise((l, u) => {
88
88
  var a;
89
- (a = V.value) == null || a.validate((d) => {
89
+ (a = D.value) == null || a.validate((d) => {
90
90
  d ? (v.value && (v.value.comment = ""), l(!0)) : u(!1);
91
91
  });
92
92
  });
93
93
  }
94
94
  return (l, u) => {
95
- const a = p("el-col"), d = p("el-form-item"), c = p("el-row"), I = p("el-table-column"), S = p("svg-icon"), Q = p("el-table"), B = p("el-button"), X = p("CircleClose"), Y = p("el-icon"), Z = p("el-form"), ee = p("jmash-multi-upload");
96
- return _(), w(M, null, [
95
+ const a = p("el-col"), d = p("el-form-item"), c = p("el-row"), I = p("el-table-column"), M = p("svg-icon"), X = p("el-table"), S = p("el-button"), Y = p("CircleClose"), Z = p("el-icon"), ee = p("el-form"), te = p("jmash-multi-upload");
96
+ return _(), k(j, null, [
97
97
  e(a, { span: 24 }, {
98
98
  default: t(() => u[1] || (u[1] = [
99
- o("div", { class: "title" }, "委托服务订单", -1)
99
+ n("div", { class: "title" }, "委托服务订单", -1)
100
100
  ])),
101
101
  _: 1,
102
102
  __: [1]
103
103
  }),
104
- e(Z, {
104
+ e(ee, {
105
105
  ref_key: "taskFormRef",
106
- ref: V,
107
- model: P.value,
106
+ ref: D,
107
+ model: R.value,
108
108
  "label-width": "150px",
109
109
  class: "custom-table-form"
110
110
  }, {
@@ -156,7 +156,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
156
156
  prop: "entrustName"
157
157
  }, {
158
158
  default: t(() => [
159
- r(s(E(k).projectNameDict.getDictValue(i.value.entrustName)), 1)
159
+ r(s(b(y).projectNameDict.getDictValue(i.value.entrustName)), 1)
160
160
  ]),
161
161
  _: 1
162
162
  }, 8, ["label"])
@@ -194,9 +194,9 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
194
194
  prop: "belongOrg"
195
195
  }, {
196
196
  default: t(() => {
197
- var n;
197
+ var o;
198
198
  return [
199
- r(s((((n = i.value.belongOrgId) == null ? void 0 : n.split(",")) || []).map((b) => E(k).parentIdBizDict.getValue(b)).join(",")), 1)
199
+ r(s((((o = i.value.belongOrgId) == null ? void 0 : o.split(",")) || []).map((w) => b(y).parentIdBizDict.getValue(w)).join(",")), 1)
200
200
  ];
201
201
  }),
202
202
  _: 1
@@ -216,7 +216,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
216
216
  prop: "serviceContent"
217
217
  }, {
218
218
  default: t(() => [
219
- r(s(E(k).serviceContentEnum.getEnumValue(i.value.serviceContent)), 1)
219
+ r(s(b(y).serviceContentEnum.getEnumValue(i.value.serviceContent)), 1)
220
220
  ]),
221
221
  _: 1
222
222
  }, 8, ["label"])
@@ -230,7 +230,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
230
230
  prop: "serviceOrg"
231
231
  }, {
232
232
  default: t(() => [
233
- r(s(E(k).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
233
+ r(s(b(y).orgIdBizDict.getValue(i.value.serviceOrg)), 1)
234
234
  ]),
235
235
  _: 1
236
236
  }, 8, ["label"])
@@ -282,7 +282,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
282
282
  default: t(() => [
283
283
  e(a, { span: 24 }, {
284
284
  default: t(() => [
285
- e(Q, {
285
+ e(X, {
286
286
  stripe: "",
287
287
  data: i.value.entrustUser,
288
288
  style: { width: "100%" }
@@ -292,8 +292,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
292
292
  prop: "userId",
293
293
  label: l.$t("itsmFlowEntrustUser.userId")
294
294
  }, {
295
- default: t((n) => [
296
- r(s(n.row.userName), 1)
295
+ default: t((o) => [
296
+ r(s(o.row.userName), 1)
297
297
  ]),
298
298
  _: 1
299
299
  }, 8, ["label"]),
@@ -301,20 +301,20 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
301
301
  prop: "idNo",
302
302
  label: l.$t("itsmFlowEntrustUser.idNo")
303
303
  }, {
304
- default: t((n) => [
305
- n.row.mobileEncrypt ? (_(), w("span", ce, s(n.row.idNo), 1)) : (_(), w("span", de, s(n.row.idNoIns), 1)),
306
- n.row.idNoIns ? (_(), w("span", pe, [
307
- j(e(S, {
304
+ default: t((o) => [
305
+ o.row.mobileEncrypt ? (_(), k("span", ce, s(o.row.idNo), 1)) : (_(), k("span", de, s(o.row.idNoIns), 1)),
306
+ o.row.idNoIns ? (_(), k("span", pe, [
307
+ L(e(M, {
308
308
  "icon-class": "close-eye",
309
- onClick: (b) => O(n.row)
309
+ onClick: (w) => B(o.row)
310
310
  }, null, 8, ["onClick"]), [
311
- [L, !n.row.mobileEncrypt]
311
+ [q, !o.row.mobileEncrypt]
312
312
  ]),
313
- j(e(S, {
313
+ L(e(M, {
314
314
  "icon-class": "eye-open",
315
- onClick: (b) => O(n.row)
315
+ onClick: (w) => B(o.row)
316
316
  }, null, 8, ["onClick"]), [
317
- [L, n.row.mobileEncrypt]
317
+ [q, o.row.mobileEncrypt]
318
318
  ])
319
319
  ])) : g("", !0)
320
320
  ]),
@@ -324,8 +324,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
324
324
  prop: "cost",
325
325
  label: l.$t("itsmFlowEntrustUser.cost")
326
326
  }, {
327
- default: t((n) => [
328
- r(s(n.row.cost), 1)
327
+ default: t((o) => [
328
+ r(s(o.row.cost), 1)
329
329
  ]),
330
330
  _: 1
331
331
  }, 8, ["label"]),
@@ -333,8 +333,8 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
333
333
  prop: "duration",
334
334
  label: l.$t("itsmFlowEntrustUser.duration")
335
335
  }, {
336
- default: t((n) => [
337
- r(s(n.row.durationStart) + "~" + s(n.row.durationEnd), 1)
336
+ default: t((o) => [
337
+ r(s(o.row.durationStart) + "~" + s(o.row.durationEnd), 1)
338
338
  ]),
339
339
  _: 1
340
340
  }, 8, ["label"])
@@ -351,17 +351,17 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
351
351
  default: t(() => [
352
352
  e(a, { span: 12 }, {
353
353
  default: t(() => u[2] || (u[2] = [
354
- o("div", { class: "content-box" }, [
355
- o("div", { class: "content-box-top" }, [
356
- o("div", null, "甲方单位(盖章)"),
357
- o("div", null, "负责人(签字):"),
358
- o("div", null, "或授权代理人(签字):")
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
359
  ]),
360
- o("div", { class: "content-box-bottom" }, [
360
+ n("div", { class: "content-box-bottom" }, [
361
361
  r(" 日期: "),
362
- o("span", null, "年"),
363
- o("span", null, "月"),
364
- o("span", null, "日")
362
+ n("span", null, "年"),
363
+ n("span", null, "月"),
364
+ n("span", null, "日")
365
365
  ])
366
366
  ], -1)
367
367
  ])),
@@ -373,17 +373,17 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
373
373
  class: "with-divider"
374
374
  }, {
375
375
  default: t(() => u[3] || (u[3] = [
376
- o("div", { class: "content-box" }, [
377
- o("div", { class: "content-box-top" }, [
378
- o("div", null, "服务人员所属单位(盖章)"),
379
- o("div", null, "法定代表人(签字):"),
380
- o("div", null, "或授权代理人(签字):")
376
+ n("div", { class: "content-box" }, [
377
+ n("div", { class: "content-box-top" }, [
378
+ n("div", null, "服务人员所属单位(盖章)"),
379
+ n("div", null, "法定代表人(签字):"),
380
+ n("div", null, "或授权代理人(签字):")
381
381
  ]),
382
- o("div", { class: "content-box-bottom" }, [
382
+ n("div", { class: "content-box-bottom" }, [
383
383
  r(" 日期: "),
384
- o("span", null, "年"),
385
- o("span", null, "月"),
386
- o("span", null, "日")
384
+ n("span", null, "年"),
385
+ n("span", null, "月"),
386
+ n("span", null, "日")
387
387
  ])
388
388
  ], -1)
389
389
  ])),
@@ -395,7 +395,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
395
395
  }),
396
396
  e(c, null, {
397
397
  default: t(() => [
398
- y.task.taskDefinitionKey === "UploadScanFile" ? (_(), q(a, {
398
+ E.task.taskDefinitionKey === b($).node.upload ? (_(), z(a, {
399
399
  key: 0,
400
400
  span: 12
401
401
  }, {
@@ -404,10 +404,10 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
404
404
  label: l.$t("itsmFlowEntrust.scannedCopy")
405
405
  }, {
406
406
  default: t(() => [
407
- e(B, {
407
+ e(S, {
408
408
  type: "primary",
409
- icon: E(se),
410
- onClick: R
409
+ icon: b(se),
410
+ onClick: T
411
411
  }, {
412
412
  default: t(() => [
413
413
  r(s(l.$t("common.uploadFiles")), 1)
@@ -419,18 +419,18 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
419
419
  }, 8, ["label"]),
420
420
  e(d, null, {
421
421
  default: t(() => [
422
- (_(!0), w(M, null, oe(m.value, (n, b) => (_(), w("div", {
423
- key: b,
422
+ (_(!0), k(j, null, ae(m.value, (o, w) => (_(), k("div", {
423
+ key: w,
424
424
  class: "files-list"
425
425
  }, [
426
- r(s(n.fileName) + " ", 1),
427
- e(Y, {
426
+ r(s(o.fileName) + " ", 1),
427
+ e(Z, {
428
428
  size: "16",
429
429
  class: "icon-right",
430
- onClick: (me) => T(b)
430
+ onClick: (me) => W(w)
431
431
  }, {
432
432
  default: t(() => [
433
- e(X)
433
+ e(Y)
434
434
  ]),
435
435
  _: 2
436
436
  }, 1032, ["onClick"])
@@ -441,7 +441,7 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
441
441
  ]),
442
442
  _: 1
443
443
  })) : g("", !0),
444
- y.task.taskDefinitionKey === "UploadScanFile" ? (_(), q(a, {
444
+ E.task.taskDefinitionKey === b($).node.upload ? (_(), z(a, {
445
445
  key: 1,
446
446
  span: 12
447
447
  }, {
@@ -450,10 +450,10 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
450
450
  label: l.$t("itsmFlowEntrust.export")
451
451
  }, {
452
452
  default: t(() => [
453
- e(B, {
453
+ e(S, {
454
454
  plain: "",
455
455
  type: "primary",
456
- onClick: K
456
+ onClick: P
457
457
  }, {
458
458
  default: t(() => [
459
459
  r(s(l.$t("itsmFlowEntrust.export")), 1)
@@ -472,12 +472,12 @@ const de = { key: 0 }, ce = { key: 1 }, pe = {
472
472
  ]),
473
473
  _: 1
474
474
  }, 8, ["model"]),
475
- e(ee, {
475
+ e(te, {
476
476
  ref_key: "uploadRef",
477
477
  ref: U,
478
478
  modelValue: N.value,
479
- "onUpdate:modelValue": u[0] || (u[0] = (n) => N.value = n),
480
- onUploadFileList: W
479
+ "onUpdate:modelValue": u[0] || (u[0] = (o) => N.value = o),
480
+ onUploadFileList: x
481
481
  }, null, 8, ["modelValue"])
482
482
  ], 64);
483
483
  };