xyvcard-itsm-flow 0.0.26 → 0.0.28

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 (58) hide show
  1. package/dist/{FileSaver.min-FLjvLk81.mjs → FileSaver.min-Bst8M31G.mjs} +1 -1
  2. package/dist/{edit-D--QEJjt.mjs → edit-B5e6Z4D-.mjs} +1 -1
  3. package/dist/{edit-DE30a8nF.mjs → edit-B6x5LnXs.mjs} +1 -1
  4. package/dist/{edit-BoyxGI-j.mjs → edit-CDrqDH14.mjs} +1 -1
  5. package/dist/{edit-DVqIGzRC.mjs → edit-Cdqv3LYF.mjs} +2 -2
  6. package/dist/{edit-ChPw3-tf.mjs → edit-CtGnGMdI.mjs} +4 -4
  7. package/dist/{edit-Bj6O1CiV.mjs → edit-s6tpuJqi.mjs} +32 -33
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-DHCoPaGf.mjs → edit.vue_vue_type_script_setup_true_lang-Dlt4h5rH.mjs} +2 -2
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-D4j6dzcV.mjs → edit.vue_vue_type_script_setup_true_lang-Z6oOT8ZZ.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-DiY4aiPm.mjs → edit.vue_vue_type_script_setup_true_lang-mfIQLtr7.mjs} +1 -1
  11. package/dist/{index-8wrBAgqn.mjs → index-B343YUBs.mjs} +4 -4
  12. package/dist/{index-DgMfinzm.mjs → index-BHx7wTh8.mjs} +2 -2
  13. package/dist/{index-C2_qB4RV.mjs → index-BRS1J0_N.mjs} +1 -1
  14. package/dist/{index-DLKaq1KT.mjs → index-BpTgZ8S6.mjs} +3 -3
  15. package/dist/{index-DrUmzzLs.mjs → index-BryuNtvE.mjs} +4 -4
  16. package/dist/{index-Cv9EtBjj.mjs → index-Bv6L7pj-.mjs} +225 -234
  17. package/dist/{index-BPbEgv_g.mjs → index-Bvl7uSjW.mjs} +34 -34
  18. package/dist/{index-SilwoNEK.mjs → index-BzNd3aeo.mjs} +1402 -1420
  19. package/dist/{index-CcmelnG0.mjs → index-C3imt6Nt.mjs} +43 -43
  20. package/dist/{index-Cbd9gMMJ.mjs → index-C9XYUxJJ.mjs} +64 -64
  21. package/dist/{index-jG64vmFA.mjs → index-CND3lY5T.mjs} +130 -131
  22. package/dist/{index-BCm8GyNp.mjs → index-CVEflwbt.mjs} +1 -1
  23. package/dist/{index-DymW6iPU.mjs → index-CYgdVX3-.mjs} +3 -3
  24. package/dist/{index-DyhFuDLH.mjs → index-CaCAQvu3.mjs} +34 -35
  25. package/dist/{index-DvfEpZEP.mjs → index-Cd1wffPr.mjs} +61 -58
  26. package/dist/{index-DUeJgFzy.mjs → index-CeYdPqBa.mjs} +2 -2
  27. package/dist/{index-DCrOzptR.mjs → index-ChDJ7snw.mjs} +3 -3
  28. package/dist/{index-DeWL7kiw.mjs → index-Cp5FZJRb.mjs} +2 -2
  29. package/dist/{index-BnpWxtwn.mjs → index-DL0G-1We.mjs} +3 -3
  30. package/dist/index-DS5-j9pi.mjs +382 -0
  31. package/dist/{index-BKReblQ-.mjs → index-DVTVgX1p.mjs} +93 -93
  32. package/dist/{index-r4Tg0GX2.mjs → index-ETbLgbz7.mjs} +3 -3
  33. package/dist/{index-DWJG5OHB.mjs → index-MPqnkTdo.mjs} +1 -1
  34. package/dist/{index-CBlDGIOm.mjs → index-NEYEBifl.mjs} +19 -20
  35. package/dist/{index-xWvPJZ-m.mjs → index-_lw11aC1.mjs} +2 -2
  36. package/dist/{index-DyZhLpPq.mjs → index-j6FSzNWr.mjs} +15 -15
  37. package/dist/{index-C6lbS4Lo.mjs → index-oYL4MO3G.mjs} +2 -2
  38. package/dist/{index-BGUJBf1b.mjs → index-qXw5Aiao.mjs} +77 -77
  39. package/dist/{index-BVKYrCIy.mjs → index-v6aOPnu6.mjs} +1 -1
  40. package/dist/index.mjs +1 -1
  41. package/dist/{info-BWhsB1Ap.mjs → info-BBeI4Gu-.mjs} +1 -1
  42. package/dist/{info-CGUYIYny.mjs → info-BMDpWXun.mjs} +1 -1
  43. package/dist/{info-CbJJduEU.mjs → info-D8JhIxGy.mjs} +1 -1
  44. package/dist/{info-9EvTq-5p.mjs → info-Dcc0vKH3.mjs} +1 -1
  45. package/dist/info-Dmo9yYXs.mjs +4 -0
  46. package/dist/info-ghO6g5a7.mjs +4 -0
  47. package/dist/{info.vue_vue_type_script_setup_true_lang-CY7c7Xmz.mjs → info.vue_vue_type_script_setup_true_lang-B_xQV4zS.mjs} +2 -2
  48. package/dist/{info.vue_vue_type_script_setup_true_lang-CAfl8pgB.mjs → info.vue_vue_type_script_setup_true_lang-CcAaUZ-e.mjs} +14 -14
  49. package/dist/{info.vue_vue_type_script_setup_true_lang-Dm4Ld-wL.mjs → info.vue_vue_type_script_setup_true_lang-CdlYnhVI.mjs} +1 -1
  50. package/dist/{info.vue_vue_type_script_setup_true_lang-CdiFub3m.mjs → info.vue_vue_type_script_setup_true_lang-Comh2IyD.mjs} +12 -12
  51. package/dist/{info.vue_vue_type_script_setup_true_lang-DIXXp0TI.mjs → info.vue_vue_type_script_setup_true_lang-DVu1OSso.mjs} +10 -10
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-C0J9fiF3.mjs → info.vue_vue_type_script_setup_true_lang-DwW2WxUK.mjs} +1 -1
  53. package/dist/style.css +1 -1
  54. package/dts/api/itsm-flow-temporary/types.d.ts +1 -1
  55. package/package.json +1 -1
  56. package/dist/index-DwPAoK5U.mjs +0 -369
  57. package/dist/info-CtxVi70h.mjs +0 -4
  58. package/dist/info-ZeMWMgd3.mjs +0 -4
@@ -1,8 +1,8 @@
1
- import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as b, createElementBlock as v, openBlock as m, Fragment as B, createVNode as t, withCtx as e, createElementVNode as F, createBlock as g, createCommentVNode as P, createTextVNode as n, toDisplayString as s, unref as y, renderList as N } from "vue";
1
+ import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as b, createElementBlock as v, openBlock as m, Fragment as D, createVNode as t, withCtx as e, createElementVNode as F, createBlock as g, createCommentVNode as k, createTextVNode as n, toDisplayString as s, unref as y, renderList as M } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as q } from "vue-i18n";
4
- import { C as D, D as f, i as G } from "./index-DWJG5OHB.mjs";
5
- import { i as H, a as J } from "./index-C2_qB4RV.mjs";
4
+ import { D as f, i as G, C as N } from "./index-MPqnkTdo.mjs";
5
+ import { i as H, a as J } from "./index-BRS1J0_N.mjs";
6
6
  import { fileApi as Q } from "jmash-core";
7
7
  import { rbacApi as X } from "jmash-rbac";
8
8
  const Y = { key: 0 }, se = /* @__PURE__ */ K({
@@ -19,27 +19,27 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
21
  setup(I, { expose: O }) {
22
- const { t: Z } = q(), V = w(), A = w({}), c = W(I, "modelValue");
23
- console.log(D.applyStatus.finished, "=>Constant.applyStatus.finished "), f.orgIdBizDict.useValues(), f.budgetTypeDict.useValues(), f.itemBizLayDict.useValues();
24
- const k = I, u = w();
25
- H.findById({ flowSpareId: k.task.businessKey }).then(({ data: a }) => {
22
+ const { t: Z } = q(), h = w(), A = w({}), c = W(I, "modelValue");
23
+ f.orgIdBizDict.useValues(), f.budgetTypeDict.useValues(), f.itemBizLayDict.useValues();
24
+ const P = I, u = w();
25
+ H.findById({ flowSpareId: P.task.businessKey }).then(({ data: a }) => {
26
26
  u.value = a;
27
27
  });
28
+ const V = w([]);
29
+ J.findList({ flowSpareId: P.task.businessKey }).then((a) => {
30
+ V.value = a.data.results;
31
+ });
28
32
  const C = w([]);
29
- J.findList({ flowSpareId: k.task.businessKey }).then((a) => {
33
+ G.findFilesList({ actionId: P.task.businessKey }).then((a) => {
30
34
  C.value = a.data.results;
31
35
  });
32
- const L = w([]);
33
- G.findFilesList({ actionId: k.task.businessKey }).then((a) => {
34
- L.value = a.data.results;
35
- });
36
36
  const E = (a) => {
37
37
  var p;
38
- return ((p = L.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
38
+ return ((p = C.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
39
39
  };
40
40
  async function T(a) {
41
41
  try {
42
- const p = Q.fileUrl(a.filePath), i = await (await fetch(p)).blob(), S = window.URL.createObjectURL(i), d = document.createElement("a");
42
+ const p = Q.fileUrl(a.fileSrc), i = await (await fetch(p)).blob(), S = window.URL.createObjectURL(i), d = document.createElement("a");
43
43
  d.href = S, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
44
44
  } catch {
45
45
  }
@@ -51,16 +51,16 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
51
51
  return c.value && (c.value.selectActions = [
52
52
  { key: "true", value: "同意" },
53
53
  { key: "false", value: "不同意" }
54
- ], c.value.varName = "approved", c.value.module = "", c.value.module = D.MODULE_ITSMFLOW), new Promise((a, p) => {
54
+ ], c.value.varName = "approved", c.value.module = "", c.value.module = N.MODULE_ITSMFLOW), new Promise((a, p) => {
55
55
  var r;
56
- (r = V.value) == null || r.validate((i) => {
56
+ (r = h.value) == null || r.validate((i) => {
57
57
  i ? (c.value && (c.value.comment = ""), a(!0)) : p(!1);
58
58
  });
59
59
  });
60
60
  }
61
61
  return (a, p) => {
62
- const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"), M = b("el-form");
63
- return m(), v(B, null, [
62
+ const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"), L = b("el-form");
63
+ return m(), v(D, null, [
64
64
  t(r, { span: 24 }, {
65
65
  default: e(() => p[0] || (p[0] = [
66
66
  F("div", { class: "title" }, "备品备件申请领用确认单", -1)
@@ -68,15 +68,15 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
68
68
  _: 1,
69
69
  __: [0]
70
70
  }),
71
- t(M, {
71
+ t(L, {
72
72
  ref_key: "taskFormRef",
73
- ref: V,
73
+ ref: h,
74
74
  model: A.value,
75
75
  "label-width": "150px",
76
76
  class: "custom-table-form"
77
77
  }, {
78
78
  default: e(() => [
79
- t(M, {
79
+ t(L, {
80
80
  ref: "itsmFlowEntrustFormRef",
81
81
  "label-width": "150px",
82
82
  class: "custom-table-form custom-form"
@@ -84,7 +84,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
84
84
  default: e(() => [
85
85
  t(S, null, {
86
86
  default: e(() => {
87
- var o, h, _;
87
+ var o, $, _;
88
88
  return [
89
89
  t(r, { span: 12 }, {
90
90
  default: e(() => [
@@ -173,8 +173,8 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
173
173
  }, 8, ["label"])
174
174
  ]),
175
175
  _: 1
176
- })) : P("", !0),
177
- ((h = u.value) == null ? void 0 : h.type) !== "BudgetOut" ? (m(), g(r, {
176
+ })) : k("", !0),
177
+ (($ = u.value) == null ? void 0 : $.type) !== "BudgetOut" ? (m(), g(r, {
178
178
  key: 1,
179
179
  span: 12
180
180
  }, {
@@ -193,7 +193,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
193
193
  }, 8, ["label"])
194
194
  ]),
195
195
  _: 1
196
- })) : P("", !0),
196
+ })) : k("", !0),
197
197
  ((_ = u.value) == null ? void 0 : _.type) !== "BudgetOut" ? (m(), g(r, {
198
198
  key: 2,
199
199
  span: 12
@@ -213,7 +213,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
213
213
  }, 8, ["label"])
214
214
  ]),
215
215
  _: 1
216
- })) : P("", !0),
216
+ })) : k("", !0),
217
217
  t(r, { span: 12 }, {
218
218
  default: e(() => [
219
219
  t(i, {
@@ -221,9 +221,9 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
221
221
  prop: "createBy"
222
222
  }, {
223
223
  default: e(() => {
224
- var l, $;
224
+ var l, B;
225
225
  return [
226
- n(s((l = u.value) != null && l.createBy ? ($ = y(X).userInfo(u.value.createBy)) == null ? void 0 : $.realName : ""), 1)
226
+ n(s((l = u.value) != null && l.createBy ? (B = y(X).userInfo(u.value.createBy)) == null ? void 0 : B.realName : ""), 1)
227
227
  ];
228
228
  }),
229
229
  _: 1
@@ -266,7 +266,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
266
266
  t(R, {
267
267
  stripe: "",
268
268
  style: { width: "100%" },
269
- data: C.value
269
+ data: V.value
270
270
  }, {
271
271
  default: e(() => [
272
272
  t(d, {
@@ -298,7 +298,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
298
298
  }, 8, ["label"]),
299
299
  t(d, { prop: "unit" }, {
300
300
  header: e(() => [
301
- F("span", null, s(a.$t("itsmFlowSpareParts.unit")) + "(计量单位)", 1)
301
+ F("span", null, s(a.$t("itsmFlowSpareParts.unit")), 1)
302
302
  ]),
303
303
  default: e((o) => [
304
304
  n(s(o.row.unit), 1)
@@ -337,7 +337,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
337
337
  label: a.$t("itsmFlowSpareParts.applyStatus ")
338
338
  }, {
339
339
  default: e((o) => [
340
- o.row.applyStatus === y(D).applyStatus.finished ? (m(), v("span", Y, "已领用 ")) : P("", !0)
340
+ o.row.applyStatus === y(N).applyStatus.finished ? (m(), v("span", Y, "已领用 ")) : k("", !0)
341
341
  ]),
342
342
  _: 1
343
343
  }, 8, ["label"])
@@ -352,12 +352,12 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
352
352
  class: "bordered-row"
353
353
  }, {
354
354
  default: e(() => [
355
- (m(!0), v(B, null, N(y(f).fileTypeDict.values.slice(0, 2), (o, h) => (m(), g(i, {
355
+ (m(!0), v(D, null, M(y(f).fileTypeDict.values.slice(0, 2), (o, $) => (m(), g(i, {
356
356
  key: o.dictCode,
357
357
  label: o.dictName
358
358
  }, {
359
359
  default: e(() => [
360
- (m(!0), v(B, null, N(E(o.dictCode), (_, l) => (m(), v("div", {
360
+ (m(!0), v(D, null, M(E(o.dictCode), (_, l) => (m(), v("div", {
361
361
  key: l,
362
362
  class: "files-list"
363
363
  }, [
@@ -367,7 +367,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
367
367
  link: "",
368
368
  size: "small",
369
369
  class: "icon-right",
370
- onClick: ($) => T(_)
370
+ onClick: (B) => T(_)
371
371
  }, {
372
372
  default: e(() => p[2] || (p[2] = [
373
373
  n(" 查看 ")