xyvcard-itsm-flow 0.0.27 → 0.0.29

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 (62) hide show
  1. package/dist/{FileSaver.min-DDqwfEMu.mjs → FileSaver.min-BJJnPj5_.mjs} +1 -1
  2. package/dist/{edit-BpAjiLxu.mjs → edit-7a3pU3gM.mjs} +32 -33
  3. package/dist/{edit-CkGTDSiH.mjs → edit-B766NO49.mjs} +1 -1
  4. package/dist/{edit-DIyC972n.mjs → edit-BlU9fwRY.mjs} +2 -2
  5. package/dist/{edit-BWaFYsWY.mjs → edit-Cr-eJzsu.mjs} +2 -2
  6. package/dist/{edit-BH_qEChy.mjs → edit-DoewXVPj.mjs} +1 -1
  7. package/dist/{edit-D0-xQV59.mjs → edit-OIcnLUiZ.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.mjs → edit.vue_vue_type_script_setup_true_lang-B1O92nnS.mjs} +2 -2
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs → edit.vue_vue_type_script_setup_true_lang-BTZqpf-h.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs → edit.vue_vue_type_script_setup_true_lang-CTEuDDac.mjs} +1 -1
  11. package/dist/{index-Chh_9yED.mjs → index-B0EdAsac.mjs} +64 -64
  12. package/dist/{index-BkqkF7bW.mjs → index-BYjL5oUb.mjs} +1 -1
  13. package/dist/{index-Cd9CTAUb.mjs → index-BeiFftoz.mjs} +43 -43
  14. package/dist/{index-rHARbj0G.mjs → index-BokqyNKm.mjs} +3 -3
  15. package/dist/{index-Bjjyjlwd.mjs → index-BxTUhmxb.mjs} +1 -1
  16. package/dist/{index-n6pwVFlo.mjs → index-C-5DyRAf.mjs} +1 -1
  17. package/dist/{index-CillImY_.mjs → index-C0SUKE_b.mjs} +130 -131
  18. package/dist/{index-qvWMlGg9.mjs → index-CS4lbGVv.mjs} +2 -2
  19. package/dist/{index-CGDEQO2p.mjs → index-CTHETI78.mjs} +2 -2
  20. package/dist/{index-DfptoNZ3.mjs → index-ClSfPsAZ.mjs} +225 -234
  21. package/dist/{index-YBHgdjIk.mjs → index-CloP-imd.mjs} +77 -77
  22. package/dist/{index-WpTFFCXY.mjs → index-CvRKy1Zt.mjs} +3 -3
  23. package/dist/{index-DBRVK73O.mjs → index-DD73FsFR.mjs} +2 -2
  24. package/dist/{index-QPdQNctc.mjs → index-D_YsAUB5.mjs} +4 -4
  25. package/dist/{index-DjZysfQB.mjs → index-DdN_VfEA.mjs} +19 -20
  26. package/dist/{index-DY5EGkfi.mjs → index-DhIucH1l.mjs} +3 -3
  27. package/dist/{index-DxoX_XqQ.mjs → index-Dhi872WO.mjs} +54 -56
  28. package/dist/{index-D6Poyzq3.mjs → index-Dt4hyivI.mjs} +2 -2
  29. package/dist/index-FYXSfSRw.mjs +336 -0
  30. package/dist/{index-CXOeg2so.mjs → index-H9iJHz8H.mjs} +408 -378
  31. package/dist/{index-BKveaoi_.mjs → index-SHY9mfQ4.mjs} +15 -15
  32. package/dist/{index-CI9FMMKr.mjs → index-TwUCIPb2.mjs} +34 -35
  33. package/dist/{index-CjYlJigX.mjs → index-WI518CIo.mjs} +4 -4
  34. package/dist/{index-B20ya3NZ.mjs → index-ZWDwP27X.mjs} +93 -93
  35. package/dist/{index-CQ9elIv7.mjs → index-a9yfLGkF.mjs} +2 -2
  36. package/dist/{index-BKQGui3N.mjs → index-gz_fPNLU.mjs} +3 -3
  37. package/dist/{index-C3zQQDPa.mjs → index-nKA8vf-F.mjs} +3 -3
  38. package/dist/{index-DcDzU5zK.mjs → index-oOdJR6IJ.mjs} +61 -58
  39. package/dist/{index-CV6uWLV9.mjs → index-uxxOPESF.mjs} +33 -33
  40. package/dist/{index-DTY8LR57.mjs → index-yF5goVnK.mjs} +1 -1
  41. package/dist/index.mjs +1 -1
  42. package/dist/{info-BmfgBiif.mjs → info-B3IFH6JM.mjs} +1 -1
  43. package/dist/{info-C1J_4HDK.mjs → info-BPzoFpre.mjs} +1 -1
  44. package/dist/{info-DTZck-Y6.mjs → info-DDUOzO6P.mjs} +1 -1
  45. package/dist/{info-0Dcd8VrX.mjs → info-DeCyo-9t.mjs} +1 -1
  46. package/dist/info-DgdSwOpG.mjs +4 -0
  47. package/dist/info-mG4uiy17.mjs +4 -0
  48. package/dist/{info.vue_vue_type_script_setup_true_lang-CzLGZ50z.mjs → info.vue_vue_type_script_setup_true_lang-Bp7DYLNW.mjs} +1 -1
  49. package/dist/{info.vue_vue_type_script_setup_true_lang-CEoQybvz.mjs → info.vue_vue_type_script_setup_true_lang-BsVcXTOa.mjs} +2 -2
  50. package/dist/{info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs → info.vue_vue_type_script_setup_true_lang-DRu-ikYO.mjs} +14 -14
  51. package/dist/{info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs → info.vue_vue_type_script_setup_true_lang-DVV5aOiA.mjs} +10 -10
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs → info.vue_vue_type_script_setup_true_lang-DqrV1bD4.mjs} +1 -1
  53. package/dist/{info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs → info.vue_vue_type_script_setup_true_lang-QbYDyzuO.mjs} +12 -12
  54. package/dist/style.css +1 -1
  55. package/dts/api/itsm-flow-spare-parts-demand-data/index.d.ts +8 -0
  56. package/dts/api/itsm-flow-spare-parts-demand-data/types.d.ts +44 -0
  57. package/dts/api/itsm-flow-temporary/types.d.ts +1 -1
  58. package/dts/lang/itsm-flow/zh-cn.d.ts +29 -0
  59. package/dts/views/itsm-flow-spare-parts-demand-data/index.vue.d.ts +2 -0
  60. package/package.json +1 -1
  61. package/dist/info-DjtHpeoT.mjs +0 -4
  62. package/dist/info-qIG0jebP.mjs +0 -4
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Z, mergeModels as ee, ref as m, useModel as le, resolveComponent as d, createElementBlock as A, openBlock as k, Fragment as O, createVNode as e, withCtx as l, createElementVNode as s, createTextVNode as u, toDisplayString as r, unref as b, createBlock as $, createCommentVNode as V, renderList as te } from "vue";
2
2
  import "element-plus";
3
3
  import { u as ae } from "./index-CvX2It1o.mjs";
4
- import { a as oe } from "./index-CXOeg2so.mjs";
5
- import { D as F, i as I, C as y } from "./index-DTY8LR57.mjs";
4
+ import { a as oe } from "./index-H9iJHz8H.mjs";
5
+ import { D as F, i as I, C as y } from "./index-yF5goVnK.mjs";
6
6
  import { fileApi as ne } from "jmash-core";
7
7
  import { useI18n as se } from "vue-i18n";
8
- import { F as ue } from "./FileSaver.min-DDqwfEMu.mjs";
8
+ import { F as ue } from "./FileSaver.min-BJJnPj5_.mjs";
9
9
  import { E as j } from "./el-message-BJAl6Gwu.mjs";
10
10
  const ke = /* @__PURE__ */ Z({
11
11
  __name: "index",
@@ -1,10 +1,10 @@
1
- import { defineComponent as A, mergeModels as z, getCurrentInstance as R, ref as _, useModel as Y, nextTick as j, resolveComponent as b, createElementBlock as v, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as C, createTextVNode as r, toDisplayString as u, renderList as T, unref as w, createBlock as M } from "vue";
1
+ import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as b, createElementBlock as f, openBlock as d, Fragment as k, createVNode as l, withCtx as e, createElementVNode as F, createTextVNode as i, toDisplayString as u, renderList as T, unref as w, createBlock as M } from "vue";
2
2
  import "element-plus";
3
- import { i as H } from "./index-CXOeg2so.mjs";
4
- import { D as m, i as K, C as W } from "./index-DTY8LR57.mjs";
3
+ import { i as H } from "./index-H9iJHz8H.mjs";
4
+ import { D as _, i as K, C as W } from "./index-yF5goVnK.mjs";
5
5
  import { useUserStoreHook as q, fileApi as G } from "jmash-core";
6
6
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
7
- const Q = /* @__PURE__ */ A({
7
+ const Q = /* @__PURE__ */ P({
8
8
  __name: "index",
9
9
  props: /* @__PURE__ */ z({
10
10
  task: {
@@ -17,64 +17,67 @@ const Q = /* @__PURE__ */ A({
17
17
  modelModifiers: {}
18
18
  }),
19
19
  emits: ["update:modelValue"],
20
- setup(F, { expose: V }) {
20
+ setup(h, { expose: V }) {
21
21
  const { proxy: x } = R(), B = q();
22
- m.userExtBizDict.useValues();
23
- const h = _(), p = Y(F, "modelValue"), O = _({}), g = _([]), I = _([]), $ = _([]), n = _({}), L = F;
24
- console.log(m.fileTypeDict.values.slice(2, 3)), console.log(m.fileTypeDict.values.slice(3, 4)), K.findFilesList({ actionId: L.task.businessKey }).then((t) => {
25
- var a, f;
26
- g.value = t.data.results, console.log(t.data.results, "=> files");
27
- const s = ((a = m.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((f = m.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : f.dictCode) || "";
28
- I.value = g.value.filter(
29
- (i) => i.fileSort === s
30
- ), $.value = g.value.filter(
31
- (i) => i.fileSort === o
32
- );
33
- }), H.findById({ temporaryId: L.task.businessKey }).then(({ data: t }) => {
22
+ _.userExtBizDict.useValues();
23
+ const I = v(), m = Y(h, "modelValue"), O = v({}), g = v([]), L = v([]), C = v([]), n = v({}), $ = h;
24
+ K.findFilesList({ actionId: $.task.businessKey }).then((t) => {
25
+ var a, p;
26
+ g.value = t.data.results;
27
+ const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((p = _.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : p.dictCode) || "";
28
+ L.value = g.value.filter(
29
+ (r) => r.fileSort === s
30
+ ), C.value = g.value.filter(
31
+ (r) => r.fileSort === o
32
+ ), console.log(C.value, "=>filesList2 ");
33
+ }), H.findById({ temporaryId: $.task.businessKey }).then(({ data: t }) => {
34
34
  n.value = t, n.value.outOrgId = t.outOrgId, j(() => {
35
35
  Object.assign(n.value, t);
36
36
  });
37
37
  });
38
38
  async function N(t) {
39
39
  try {
40
- const s = G.fileUrl(t.filePath), a = await (await fetch(s)).blob(), f = window.URL.createObjectURL(a), i = document.createElement("a");
41
- i.href = f, i.download = t.fileName || "download", document.body.appendChild(i), i.click();
40
+ console.log(t, "=> item");
41
+ const s = G.fileUrl(t.fileSrc);
42
+ console.log(s, "=> fileUrl");
43
+ const a = await (await fetch(s)).blob(), p = window.URL.createObjectURL(a), r = document.createElement("a");
44
+ r.href = p, r.download = t.fileName || "download", document.body.appendChild(r), r.click();
42
45
  } catch {
43
46
  }
44
47
  }
45
48
  V({
46
- changeModel: () => E()
49
+ changeModel: () => S()
47
50
  });
48
- function E() {
49
- return p.value && (p.value.selectActions = [
51
+ function S() {
52
+ return m.value && (m.value.selectActions = [
50
53
  { key: "true", value: "同意" },
51
54
  { key: "false", value: "不同意" }
52
- ], p.value.varName = "approved", p.value.module = "", p.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
55
+ ], m.value.varName = "approved", m.value.module = "", m.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
53
56
  var o;
54
- (o = h.value) == null || o.validate((a) => {
55
- a ? (p.value && (p.value.comment = ""), t(!0)) : s(!1);
57
+ (o = I.value) == null || o.validate((a) => {
58
+ a ? (m.value && (m.value.comment = ""), t(!0)) : s(!1);
56
59
  });
57
60
  });
58
61
  }
59
62
  return (t, s) => {
60
- const o = b("el-col"), a = b("el-form-item"), f = b("el-button"), i = b("el-row"), P = b("el-form");
61
- return c(), v(k, null, [
63
+ const o = b("el-col"), a = b("el-form-item"), p = b("el-button"), r = b("el-row"), U = b("el-form");
64
+ return d(), f(k, null, [
62
65
  l(o, { span: 24 }, {
63
66
  default: e(() => s[0] || (s[0] = [
64
- C("div", { class: "title" }, "内部临时工单", -1)
67
+ F("div", { class: "title" }, "内部临时工单", -1)
65
68
  ])),
66
69
  _: 1,
67
70
  __: [0]
68
71
  }),
69
- l(P, {
72
+ l(U, {
70
73
  ref_key: "taskFormRef",
71
- ref: h,
74
+ ref: I,
72
75
  model: O.value,
73
76
  "label-width": "150px",
74
77
  class: "custom-table-form custom-form"
75
78
  }, {
76
79
  default: e(() => [
77
- l(i, null, {
80
+ l(r, null, {
78
81
  default: e(() => [
79
82
  l(o, { span: 24 }, {
80
83
  default: e(() => [
@@ -83,7 +86,7 @@ const Q = /* @__PURE__ */ A({
83
86
  prop: "title"
84
87
  }, {
85
88
  default: e(() => [
86
- r(u(n.value.title), 1)
89
+ i(u(n.value.title), 1)
87
90
  ]),
88
91
  _: 1
89
92
  }, 8, ["label"])
@@ -97,7 +100,7 @@ const Q = /* @__PURE__ */ A({
97
100
  prop: "content"
98
101
  }, {
99
102
  default: e(() => [
100
- r(u(n.value.content), 1)
103
+ i(u(n.value.content), 1)
101
104
  ]),
102
105
  _: 1
103
106
  }, 8, ["label"])
@@ -106,25 +109,25 @@ const Q = /* @__PURE__ */ A({
106
109
  }),
107
110
  l(o, { span: 24 }, {
108
111
  default: e(() => [
109
- (c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(2, 3), (d, S) => (c(), M(a, {
110
- key: d.dictCode,
111
- label: d.dictName
112
+ (d(!0), f(k, null, T(w(_).fileTypeDict.values.slice(2, 3), (c, E) => (d(), M(a, {
113
+ key: c.dictCode,
114
+ label: c.dictName
112
115
  }, {
113
116
  default: e(() => [
114
- (c(!0), v(k, null, T(I.value, (y, D) => (c(), v("div", {
117
+ (d(!0), f(k, null, T(L.value, (y, D) => (d(), f("div", {
115
118
  key: D,
116
119
  class: "files-list"
117
120
  }, [
118
- C("span", null, u(y.fileName), 1),
119
- l(f, {
121
+ F("span", null, u(y.fileName), 1),
122
+ l(p, {
120
123
  type: "primary",
121
124
  link: "",
122
125
  size: "small",
123
126
  class: "icon-right",
124
- onClick: (U) => N(y)
127
+ onClick: (A) => N(y)
125
128
  }, {
126
129
  default: e(() => s[1] || (s[1] = [
127
- r(" 查看 ")
130
+ i(" 查看 ")
128
131
  ])),
129
132
  _: 2,
130
133
  __: [1]
@@ -142,7 +145,7 @@ const Q = /* @__PURE__ */ A({
142
145
  label: t.$t("itsmFlowTemporary.createBy")
143
146
  }, {
144
147
  default: e(() => [
145
- r(u(w(B).user.realName), 1)
148
+ i(u(w(B).user.realName), 1)
146
149
  ]),
147
150
  _: 1
148
151
  }, 8, ["label"])
@@ -156,10 +159,10 @@ const Q = /* @__PURE__ */ A({
156
159
  prop: "createTime"
157
160
  }, {
158
161
  default: e(() => {
159
- var d;
162
+ var c;
160
163
  return [
161
- r(u(w(x).$moment.formatDate(
162
- (d = n.value) == null ? void 0 : d.createTime,
164
+ i(u(w(x).$moment.formatDate(
165
+ (c = n.value) == null ? void 0 : c.createTime,
163
166
  "YYYY-MM-DD HH:mm:ss"
164
167
  )), 1)
165
168
  ];
@@ -176,7 +179,7 @@ const Q = /* @__PURE__ */ A({
176
179
  prop: "userId"
177
180
  }, {
178
181
  default: e(() => [
179
- r(u(w(m).userExtBizDict.getValue(n.value.userId)), 1)
182
+ i(u(w(_).userExtBizDict.getValue(n.value.userId)), 1)
180
183
  ]),
181
184
  _: 1
182
185
  }, 8, ["label"])
@@ -190,7 +193,7 @@ const Q = /* @__PURE__ */ A({
190
193
  prop: "handlingPeriod"
191
194
  }, {
192
195
  default: e(() => [
193
- r(u(n.value.handlingPeriod), 1)
196
+ i(u(n.value.handlingPeriod), 1)
194
197
  ]),
195
198
  _: 1
196
199
  }, 8, ["label"])
@@ -204,7 +207,7 @@ const Q = /* @__PURE__ */ A({
204
207
  prop: "finishDate"
205
208
  }, {
206
209
  default: e(() => [
207
- r(u(n.value.finishDate), 1)
210
+ i(u(n.value.finishDate), 1)
208
211
  ]),
209
212
  _: 1
210
213
  }, 8, ["label"])
@@ -218,7 +221,7 @@ const Q = /* @__PURE__ */ A({
218
221
  prop: "completion"
219
222
  }, {
220
223
  default: e(() => [
221
- r(u(n.value.completion), 1)
224
+ i(u(n.value.completion), 1)
222
225
  ]),
223
226
  _: 1
224
227
  }, 8, ["label"])
@@ -227,25 +230,25 @@ const Q = /* @__PURE__ */ A({
227
230
  }),
228
231
  l(o, { span: 24 }, {
229
232
  default: e(() => [
230
- (c(!0), v(k, null, T(w(m).fileTypeDict.values.slice(3, 4), (d, S) => (c(), M(a, {
231
- key: d.dictCode,
232
- label: d.dictName
233
+ (d(!0), f(k, null, T(w(_).fileTypeDict.values.slice(3, 4), (c, E) => (d(), M(a, {
234
+ key: c.dictCode,
235
+ label: c.dictName
233
236
  }, {
234
237
  default: e(() => [
235
- (c(!0), v(k, null, T($.value, (y, D) => (c(), v("div", {
238
+ (d(!0), f(k, null, T(C.value, (y, D) => (d(), f("div", {
236
239
  key: D,
237
240
  class: "files-list"
238
241
  }, [
239
- C("span", null, u(y.fileName), 1),
240
- l(f, {
242
+ F("span", null, u(y.fileName), 1),
243
+ l(p, {
241
244
  type: "primary",
242
245
  link: "",
243
246
  size: "small",
244
247
  class: "icon-right",
245
- onClick: (U) => N(y)
248
+ onClick: (A) => N(y)
246
249
  }, {
247
250
  default: e(() => s[2] || (s[2] = [
248
- r(" 查看 ")
251
+ i(" 查看 ")
249
252
  ])),
250
253
  _: 2,
251
254
  __: [2]
@@ -266,7 +269,7 @@ const Q = /* @__PURE__ */ A({
266
269
  ], 64);
267
270
  };
268
271
  }
269
- }), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-5f4e0191"]]);
272
+ }), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-c6d4eacd"]]);
270
273
  export {
271
274
  ae as default
272
275
  };
@@ -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-DTY8LR57.mjs";
5
- import { i as H, a as J } from "./index-Bjjyjlwd.mjs";
4
+ import { D as f, i as G, C as N } from "./index-yF5goVnK.mjs";
5
+ import { i as H, a as J } from "./index-BxTUhmxb.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, {
@@ -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(" 查看 ")
@@ -4,7 +4,7 @@ var r = (n, t, s) => E(n, typeof t != "symbol" ? t + "" : t, s);
4
4
  import { useUserStore as p, clearEmpty as o, request as l, BizDict as d, BizLayDict as N, CustomBizDict as g, EnumDict as m } from "jmash-core";
5
5
  import { contractApi as v, itemApi as _, contractUserApi as y } from "xyvcard-itsm";
6
6
  import { sysUserExtApi as A, sysOrgApi as h } from "xyvcard-itsmsys";
7
- import { a as T } from "./index-CXOeg2so.mjs";
7
+ import { a as T } from "./index-H9iJHz8H.mjs";
8
8
  import { ref as U } from "vue";
9
9
  import { EntryDict as I, EntryBizLayDict as L } from "jmash-dict";
10
10
  class O {
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import "jmash-core";
2
- import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-CXOeg2so.mjs";
2
+ import { d as m, e, T as o, b as I, p as l, r as T, s as p, t as i, h as w, j as k, k as F, l as n, m as d, n as E, o as c, f as S, g as u, u as y, a as A, i as O } from "./index-H9iJHz8H.mjs";
3
3
  import "jmash-flow";
4
4
  export {
5
5
  m as TaskItsmFlowAcceptance,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-CETcd2E0.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-DRu-ikYO.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-DqrV1bD4.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-QbYDyzuO.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs";
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-BsVcXTOa.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-Bp7DYLNW.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./info.vue_vue_type_script_setup_true_lang-DVV5aOiA.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as I, mergeModels as h, ref as N, useModel as B, resolveComponent as p, createBlock as O, openBlock as U, withCtx as e, createVNode as l, createElementVNode as a, createTextVNode as u, toDisplayString as i, unref as v } from "vue";
2
2
  import "element-plus";
3
- import { D as m, i as F } from "./index-DTY8LR57.mjs";
3
+ import { D as m, i as F } from "./index-yF5goVnK.mjs";
4
4
  import { fileApi as j } from "jmash-core";
5
5
  const M = /* @__PURE__ */ I({
6
6
  __name: "info",
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, mergeModels as K, ref as F, useModel as j, resolveComponent as p, createBlock as z, openBlock as v, withCtx as e, createVNode as t, createElementVNode as n, createTextVNode as r, toDisplayString as a, unref as w, createElementBlock as y, createCommentVNode as M, withDirectives as C, vShow as V } from "vue";
2
2
  import "element-plus";
3
- import { a as S } from "./index-CXOeg2so.mjs";
4
- import { D as c, a as A } from "./index-DTY8LR57.mjs";
3
+ import { a as S } from "./index-H9iJHz8H.mjs";
4
+ import { D as c, a as A } from "./index-yF5goVnK.mjs";
5
5
  const R = { key: 0 }, q = { key: 1 }, L = {
6
6
  key: 2,
7
7
  class: "distance-left"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as U, mergeModels as K, useModel as z, ref as P, resolveComponent as m, createBlock as _, openBlock as f, withCtx as e, createVNode as l, createElementVNode as $, createCommentVNode as B, createTextVNode as r, toDisplayString as n, unref as c, createElementBlock as I, Fragment as C, renderList as N } from "vue";
2
- import { D as b, i as R } from "./index-DTY8LR57.mjs";
3
- import { i as j, a as q } from "./index-Bjjyjlwd.mjs";
2
+ import { D as b, i as R } from "./index-yF5goVnK.mjs";
3
+ import { i as j, a as q } from "./index-BxTUhmxb.mjs";
4
4
  import { fileApi as G } from "jmash-core";
5
5
  import { rbacApi as H } from "jmash-rbac";
6
6
  const Z = /* @__PURE__ */ U({
@@ -31,18 +31,18 @@ const Z = /* @__PURE__ */ U({
31
31
  R.findFilesList({ actionId: g.entityKey.flowSpareId }).then((a) => {
32
32
  k.value = a.data.results;
33
33
  });
34
- const h = (a) => {
34
+ const L = (a) => {
35
35
  var u;
36
36
  return ((u = k.value) == null ? void 0 : u.filter((p) => p.fileSort === a)) || [];
37
37
  };
38
- async function L(a) {
38
+ async function O(a) {
39
39
  try {
40
- const u = G.fileUrl(a.filePath), i = await (await fetch(u)).blob(), v = window.URL.createObjectURL(i), d = document.createElement("a");
40
+ const u = G.fileUrl(a.fileSrc), i = await (await fetch(u)).blob(), v = window.URL.createObjectURL(i), d = document.createElement("a");
41
41
  d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
42
42
  } catch {
43
43
  }
44
44
  }
45
- function O() {
45
+ function h() {
46
46
  w.value && (w.value = !1);
47
47
  }
48
48
  return (a, u) => {
@@ -50,7 +50,7 @@ const Z = /* @__PURE__ */ U({
50
50
  return f(), _(T, {
51
51
  modelValue: w.value,
52
52
  "onUpdate:modelValue": u[0] || (u[0] = (o) => w.value = o),
53
- onClose: O
53
+ onClose: h
54
54
  }, {
55
55
  default: e(() => [
56
56
  l(p, { span: 24 }, {
@@ -68,7 +68,7 @@ const Z = /* @__PURE__ */ U({
68
68
  default: e(() => [
69
69
  l(v, null, {
70
70
  default: e(() => {
71
- var o, F, y;
71
+ var o, S, y;
72
72
  return [
73
73
  l(p, { span: 12 }, {
74
74
  default: e(() => [
@@ -158,7 +158,7 @@ const Z = /* @__PURE__ */ U({
158
158
  ]),
159
159
  _: 1
160
160
  })) : B("", !0),
161
- ((F = s.value) == null ? void 0 : F.type) !== "BudgetOut" ? (f(), _(p, {
161
+ ((S = s.value) == null ? void 0 : S.type) !== "BudgetOut" ? (f(), _(p, {
162
162
  key: 1,
163
163
  span: 12
164
164
  }, {
@@ -205,9 +205,9 @@ const Z = /* @__PURE__ */ U({
205
205
  prop: "createBy"
206
206
  }, {
207
207
  default: e(() => {
208
- var t, S;
208
+ var t, F;
209
209
  return [
210
- r(n((t = s.value) != null && t.createBy ? (S = c(H).userInfo(s.value.createBy)) == null ? void 0 : S.realName : ""), 1)
210
+ r(n((t = s.value) != null && t.createBy ? (F = c(H).userInfo(s.value.createBy)) == null ? void 0 : F.realName : ""), 1)
211
211
  ];
212
212
  }),
213
213
  _: 1
@@ -327,12 +327,12 @@ const Z = /* @__PURE__ */ U({
327
327
  class: "bordered-row"
328
328
  }, {
329
329
  default: e(() => [
330
- (f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o, F) => (f(), _(i, {
330
+ (f(!0), I(C, null, N(c(b).fileTypeDict.values.slice(0, 2), (o, S) => (f(), _(i, {
331
331
  key: o.dictCode,
332
332
  label: o.dictName
333
333
  }, {
334
334
  default: e(() => [
335
- (f(!0), I(C, null, N(h(o.dictCode), (y, t) => (f(), I("div", {
335
+ (f(!0), I(C, null, N(L(o.dictCode), (y, t) => (f(), I("div", {
336
336
  key: t,
337
337
  class: "files-list"
338
338
  }, [
@@ -342,7 +342,7 @@ const Z = /* @__PURE__ */ U({
342
342
  link: "",
343
343
  size: "small",
344
344
  class: "icon-right",
345
- onClick: (S) => L(y)
345
+ onClick: (F) => O(y)
346
346
  }, {
347
347
  default: e(() => u[3] || (u[3] = [
348
348
  r(" 查看 ")