xyvcard-itsm-flow 0.0.27 → 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 (57) hide show
  1. package/dist/{FileSaver.min-DDqwfEMu.mjs → FileSaver.min-Bst8M31G.mjs} +1 -1
  2. package/dist/{edit-CkGTDSiH.mjs → edit-B5e6Z4D-.mjs} +1 -1
  3. package/dist/{edit-BH_qEChy.mjs → edit-B6x5LnXs.mjs} +1 -1
  4. package/dist/{edit-D0-xQV59.mjs → edit-CDrqDH14.mjs} +1 -1
  5. package/dist/{edit-BWaFYsWY.mjs → edit-Cdqv3LYF.mjs} +2 -2
  6. package/dist/{edit-DIyC972n.mjs → edit-CtGnGMdI.mjs} +2 -2
  7. package/dist/{edit-BpAjiLxu.mjs → edit-s6tpuJqi.mjs} +32 -33
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-CEHUWh-t.mjs → edit.vue_vue_type_script_setup_true_lang-Dlt4h5rH.mjs} +2 -2
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs → edit.vue_vue_type_script_setup_true_lang-Z6oOT8ZZ.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs → edit.vue_vue_type_script_setup_true_lang-mfIQLtr7.mjs} +1 -1
  11. package/dist/{index-QPdQNctc.mjs → index-B343YUBs.mjs} +4 -4
  12. package/dist/{index-D6Poyzq3.mjs → index-BHx7wTh8.mjs} +2 -2
  13. package/dist/{index-Bjjyjlwd.mjs → index-BRS1J0_N.mjs} +1 -1
  14. package/dist/{index-BKQGui3N.mjs → index-BpTgZ8S6.mjs} +3 -3
  15. package/dist/{index-CjYlJigX.mjs → index-BryuNtvE.mjs} +4 -4
  16. package/dist/{index-DfptoNZ3.mjs → index-Bv6L7pj-.mjs} +225 -234
  17. package/dist/{index-CV6uWLV9.mjs → index-Bvl7uSjW.mjs} +33 -33
  18. package/dist/{index-CXOeg2so.mjs → index-BzNd3aeo.mjs} +1 -1
  19. package/dist/{index-Cd9CTAUb.mjs → index-C3imt6Nt.mjs} +43 -43
  20. package/dist/{index-Chh_9yED.mjs → index-C9XYUxJJ.mjs} +64 -64
  21. package/dist/{index-CillImY_.mjs → index-CND3lY5T.mjs} +130 -131
  22. package/dist/{index-n6pwVFlo.mjs → index-CVEflwbt.mjs} +1 -1
  23. package/dist/{index-rHARbj0G.mjs → index-CYgdVX3-.mjs} +3 -3
  24. package/dist/{index-CI9FMMKr.mjs → index-CaCAQvu3.mjs} +34 -35
  25. package/dist/{index-DcDzU5zK.mjs → index-Cd1wffPr.mjs} +61 -58
  26. package/dist/{index-qvWMlGg9.mjs → index-CeYdPqBa.mjs} +2 -2
  27. package/dist/{index-WpTFFCXY.mjs → index-ChDJ7snw.mjs} +3 -3
  28. package/dist/{index-DBRVK73O.mjs → index-Cp5FZJRb.mjs} +2 -2
  29. package/dist/{index-DY5EGkfi.mjs → index-DL0G-1We.mjs} +3 -3
  30. package/dist/{index-DxoX_XqQ.mjs → index-DS5-j9pi.mjs} +54 -56
  31. package/dist/{index-B20ya3NZ.mjs → index-DVTVgX1p.mjs} +93 -93
  32. package/dist/{index-C3zQQDPa.mjs → index-ETbLgbz7.mjs} +3 -3
  33. package/dist/{index-DTY8LR57.mjs → index-MPqnkTdo.mjs} +1 -1
  34. package/dist/{index-DjZysfQB.mjs → index-NEYEBifl.mjs} +19 -20
  35. package/dist/{index-CQ9elIv7.mjs → index-_lw11aC1.mjs} +2 -2
  36. package/dist/{index-BKveaoi_.mjs → index-j6FSzNWr.mjs} +15 -15
  37. package/dist/{index-CGDEQO2p.mjs → index-oYL4MO3G.mjs} +2 -2
  38. package/dist/{index-YBHgdjIk.mjs → index-qXw5Aiao.mjs} +77 -77
  39. package/dist/{index-BkqkF7bW.mjs → index-v6aOPnu6.mjs} +1 -1
  40. package/dist/index.mjs +1 -1
  41. package/dist/{info-BmfgBiif.mjs → info-BBeI4Gu-.mjs} +1 -1
  42. package/dist/{info-C1J_4HDK.mjs → info-BMDpWXun.mjs} +1 -1
  43. package/dist/{info-DTZck-Y6.mjs → info-D8JhIxGy.mjs} +1 -1
  44. package/dist/{info-0Dcd8VrX.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-CEoQybvz.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-0cRfUL0q.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-CETcd2E0.mjs → info.vue_vue_type_script_setup_true_lang-CdlYnhVI.mjs} +1 -1
  50. package/dist/{info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs → info.vue_vue_type_script_setup_true_lang-Comh2IyD.mjs} +12 -12
  51. package/dist/{info.vue_vue_type_script_setup_true_lang-CdfnKI3-.mjs → info.vue_vue_type_script_setup_true_lang-DVu1OSso.mjs} +10 -10
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-CzLGZ50z.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/info-DjtHpeoT.mjs +0 -4
  57. package/dist/info-qIG0jebP.mjs +0 -4
@@ -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-BzNd3aeo.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 {
@@ -1,16 +1,16 @@
1
- import { defineComponent as J, ref as S, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as P, openBlock as d, createElementVNode as b, createVNode as o, createBlock as h, createCommentVNode as D, withCtx as l, unref as r, withKeys as x, createTextVNode as y, toDisplayString as i, withDirectives as C, isRef as z } from "vue";
1
+ import { defineComponent as J, ref as I, reactive as R, onActivated as X, resolveComponent as s, resolveDirective as Z, createElementBlock as P, openBlock as d, createElementVNode as b, createVNode as o, createBlock as h, createCommentVNode as D, withCtx as l, unref as r, withKeys as x, createTextVNode as y, toDisplayString as i, withDirectives as C, isRef as z } from "vue";
2
2
  import { useTableHooks as ee } from "jmash-core";
3
3
  import { useI18n as te } from "vue-i18n";
4
- import { i as le } from "./index-Bjjyjlwd.mjs";
5
- import ae from "./edit-DIyC972n.mjs";
6
- import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-0cRfUL0q.mjs";
7
- import { D as p, C as re } from "./index-DTY8LR57.mjs";
4
+ import { i as le } from "./index-BRS1J0_N.mjs";
5
+ import ae from "./edit-CtGnGMdI.mjs";
6
+ import { _ as oe } from "./info.vue_vue_type_script_setup_true_lang-CcAaUZ-e.mjs";
7
+ import { D as p, C as re } from "./index-MPqnkTdo.mjs";
8
8
  import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
9
  const se = { class: "app-container" }, ie = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], me = ["onClick"], de = /* @__PURE__ */ J({
10
10
  __name: "index",
11
11
  setup(ce) {
12
12
  p.itemBizLayDict.useValues(), p.orgIdBizDict.useValues();
13
- const { t: f } = te(), n = S({
13
+ const { t: f } = te(), n = I({
14
14
  applyStatus: re.applyStatus.draft
15
15
  }), {
16
16
  tableHooks: u,
@@ -18,9 +18,9 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
18
18
  queryFormRef: U,
19
19
  listLoading: E,
20
20
  tableData: N,
21
- total: V
21
+ total: S
22
22
  } = ee(f, le, n);
23
- let w = S([
23
+ let w = I([
24
24
  {
25
25
  label: "itsmFlowSpareParts.applyStatus",
26
26
  prop: "applyStatus",
@@ -101,11 +101,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
101
101
  isColumn: !0
102
102
  }
103
103
  ]);
104
- const m = S({
104
+ const m = I({
105
105
  title: f("common.edit"),
106
106
  visible: !1
107
107
  });
108
- S(!1);
109
108
  let _ = R({});
110
109
  function j() {
111
110
  _ = R({}), m.value.title = f("common.add"), m.value.visible = !0;
@@ -113,7 +112,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
113
112
  function L(a) {
114
113
  _.flowSpareId = a.flowSpareId, m.value.title = f("common.edit"), m.value.visible = !0;
115
114
  }
116
- const v = S({
115
+ const v = I({
117
116
  title: f("common.view"),
118
117
  visible: !1
119
118
  });
@@ -132,7 +131,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
132
131
  return X(() => {
133
132
  u.getList();
134
133
  }), (a, t) => {
135
- const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), I = Z("hasPerm");
134
+ const k = s("jmash-select"), g = s("el-form-item"), c = s("el-col"), K = s("el-date-picker"), F = s("el-row"), $ = s("el-button"), Q = s("el-form"), H = s("jmash-column-select"), M = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), V = Z("hasPerm");
136
135
  return d(), P("div", se, [
137
136
  b("div", ie, [
138
137
  o(Q, {
@@ -288,7 +287,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
288
287
  ]),
289
288
  _: 1
290
289
  })), [
291
- [I, ["reports:itsm_flow_spare_parts:add"]]
290
+ [V, ["reports:itsm_flow_spare_parts:add"]]
292
291
  ])
293
292
  ]),
294
293
  _: 1
@@ -311,10 +310,10 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
311
310
  })
312
311
  ]),
313
312
  footer: l(() => [
314
- r(V) > 0 ? (d(), h(W, {
313
+ r(S) > 0 ? (d(), h(W, {
315
314
  key: 0,
316
- total: r(V),
317
- "onUpdate:total": t[8] || (t[8] = (e) => z(V) ? V.value = e : null),
315
+ total: r(S),
316
+ "onUpdate:total": t[8] || (t[8] = (e) => z(S) ? S.value = e : null),
318
317
  "current-page": n.value.curPage,
319
318
  "onUpdate:currentPage": t[9] || (t[9] = (e) => n.value.curPage = e),
320
319
  "page-size": n.value.pageSize,
@@ -352,7 +351,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
352
351
  }, [
353
352
  y(i(a.$t("common.edit")), 1)
354
353
  ], 8, ue)), [
355
- [I, ["reports:itsm_flow_spare_parts:update"]]
354
+ [V, ["reports:itsm_flow_spare_parts:update"]]
356
355
  ]),
357
356
  C((d(), P("span", {
358
357
  class: "el-button-color dropdown-left",
@@ -360,7 +359,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
360
359
  }, [
361
360
  y(i(a.$t("common.delete")), 1)
362
361
  ], 8, pe)), [
363
- [I, ["reports:itsm_flow_spare_parts:delete"]]
362
+ [V, ["reports:itsm_flow_spare_parts:delete"]]
364
363
  ]),
365
364
  C((d(), P("span", {
366
365
  class: "el-button-color dropdown-left",
@@ -368,7 +367,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
368
367
  }, [
369
368
  y(i(a.$t("common.view")), 1)
370
369
  ], 8, me)), [
371
- [I, ["itsmflow:itsm_flow_entrust:view"]]
370
+ [V, ["itsmflow:itsm_flow_entrust:view"]]
372
371
  ])
373
372
  ]),
374
373
  _: 1
@@ -396,7 +395,7 @@ const se = { class: "app-container" }, ie = { class: "search-container" }, ue =
396
395
  ]);
397
396
  };
398
397
  }
399
- }), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-2ee5a7d4"]]);
398
+ }), Ve = /* @__PURE__ */ ne(de, [["__scopeId", "data-v-d524d7e3"]]);
400
399
  export {
401
400
  Ve as default
402
401
  };
@@ -2,8 +2,8 @@ import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, r
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
4
  import { i as Z } from "./common-Cwl5jzlM.mjs";
5
- import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-CxUe7kvR.mjs";
6
- import { C as ee, D as h } from "./index-DTY8LR57.mjs";
5
+ import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-mfIQLtr7.mjs";
6
+ import { C as ee, D as h } from "./index-MPqnkTdo.mjs";
7
7
  const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
8
8
  __name: "index",
9
9
  setup(ae) {
@@ -1,11 +1,11 @@
1
- import { defineComponent as A, mergeModels as P, getCurrentInstance as E, ref as f, useModel as U, resolveComponent as c, createElementBlock as _, openBlock as p, Fragment as y, createVNode as t, withCtx as l, createElementVNode as g, createTextVNode as u, toDisplayString as m, renderList as C, unref as b, createBlock as x } from "vue";
1
+ import { defineComponent as A, mergeModels as E, getCurrentInstance as P, ref as f, useModel as U, resolveComponent as c, createElementBlock as _, openBlock as p, Fragment as y, createVNode as t, withCtx as l, createElementVNode as h, createTextVNode as u, toDisplayString as m, renderList as C, unref as b, createBlock as x } from "vue";
2
2
  import { rbacApi as O } from "jmash-rbac";
3
- import { i as R, C as Y, D } from "./index-DTY8LR57.mjs";
4
- import { fileApi as j } from "jmash-core";
5
- import { i as z } from "./index-CXOeg2so.mjs";
3
+ import { i as R, C as Y, D } from "./index-MPqnkTdo.mjs";
4
+ import { fileApi as S } from "jmash-core";
5
+ import { i as j } from "./index-BzNd3aeo.mjs";
6
6
  const Q = /* @__PURE__ */ A({
7
7
  __name: "index",
8
- props: /* @__PURE__ */ P({
8
+ props: /* @__PURE__ */ E({
9
9
  task: {
10
10
  type: Object,
11
11
  default: () => {
@@ -17,17 +17,17 @@ const Q = /* @__PURE__ */ A({
17
17
  }),
18
18
  emits: ["update:modelValue"],
19
19
  setup(w, { expose: I }) {
20
- const { proxy: M } = E(), k = f(), B = f({}), s = U(w, "modelValue"), F = w, i = f();
21
- z.findById({ temporaryId: F.task.businessKey }).then((a) => {
20
+ const { proxy: M } = P(), k = f(), B = f({}), s = U(w, "modelValue"), F = w, i = f();
21
+ j.findById({ temporaryId: F.task.businessKey }).then((a) => {
22
22
  i.value = a.data;
23
23
  });
24
- const h = f([]);
24
+ const T = f([]);
25
25
  R.findFilesList({ actionId: F.task.businessKey }).then((a) => {
26
- h.value = a.data.results, console.log(a.data.results, "=> files");
26
+ T.value = a.data.results, console.log(a.data.results, "=> files");
27
27
  });
28
28
  async function N(a) {
29
29
  try {
30
- const n = j.fileUrl(a.filePath), r = await (await fetch(n)).blob(), v = window.URL.createObjectURL(r), d = document.createElement("a");
30
+ const n = S.fileUrl(a.fileSrc), r = await (await fetch(n)).blob(), v = window.URL.createObjectURL(r), d = document.createElement("a");
31
31
  d.href = v, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
32
32
  } catch {
33
33
  }
@@ -51,7 +51,7 @@ const Q = /* @__PURE__ */ A({
51
51
  return p(), _(y, null, [
52
52
  t(o, { span: 24 }, {
53
53
  default: l(() => n[0] || (n[0] = [
54
- g("div", { class: "title" }, "内部临时工单", -1)
54
+ h("div", { class: "title" }, "内部临时工单", -1)
55
55
  ])),
56
56
  _: 1,
57
57
  __: [0]
@@ -105,22 +105,22 @@ const Q = /* @__PURE__ */ A({
105
105
  class: "bordered-row"
106
106
  }, {
107
107
  default: l(() => [
108
- (p(!0), _(y, null, C(b(D).fileTypeDict.values.slice(2, 3), (e, H) => (p(), x(r, {
108
+ (p(!0), _(y, null, C(b(D).fileTypeDict.values.slice(2, 3), (e, z) => (p(), x(r, {
109
109
  key: e.dictCode,
110
110
  label: e.dictName
111
111
  }, {
112
112
  default: l(() => [
113
- (p(!0), _(y, null, C(h.value, (T, V) => (p(), _("div", {
113
+ (p(!0), _(y, null, C(T.value, (g, V) => (p(), _("div", {
114
114
  key: V,
115
115
  class: "files-list"
116
116
  }, [
117
- g("span", null, m(T.fileName), 1),
117
+ h("span", null, m(g.fileName), 1),
118
118
  t(v, {
119
119
  type: "primary",
120
120
  link: "",
121
121
  size: "small",
122
122
  class: "icon-right",
123
- onClick: (K) => N(T)
123
+ onClick: (H) => N(g)
124
124
  }, {
125
125
  default: l(() => n[1] || (n[1] = [
126
126
  u(" 查看 ")
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as M, ref as k, reactive as R, resolveComponent as s, resolveDirective as W, createElementBlock as V, openBlock as p, createElementVNode as _, createVNode as o, createBlock as A, createCommentVNode as S, withCtx as l, withKeys as F, unref as n, createTextVNode as f, toDisplayString as u, withDirectives as $, isRef as T } from "vue";
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
- import { D as N, C as Z, i as x } from "./index-DTY8LR57.mjs";
5
- import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-DcDT5675.mjs";
4
+ import { D as N, C as Z, i as x } from "./index-MPqnkTdo.mjs";
5
+ import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-Z6oOT8ZZ.mjs";
6
6
  const te = { class: "app-container" }, le = { class: "search-container" }, oe = ["onClick"], ae = ["onClick"], me = /* @__PURE__ */ M({
7
7
  __name: "index",
8
8
  setup(ne) {
@@ -2,8 +2,8 @@ import { defineComponent as re, mergeModels as ie, ref as b, useModel as se, rea
2
2
  import { useI18n as pe } from "vue-i18n";
3
3
  import { useUserStoreHook as fe, fileApi as ce } from "jmash-core";
4
4
  import "element-plus";
5
- import { i as z } from "./index-CXOeg2so.mjs";
6
- import { D as w, O as j, C as O, i as K } from "./index-DTY8LR57.mjs";
5
+ import { i as z } from "./index-BzNd3aeo.mjs";
6
+ import { D as w, O as j, C as S, i as K } from "./index-MPqnkTdo.mjs";
7
7
  import { sysUserExtApi as ve } from "xyvcard-itsmsys";
8
8
  import { E as be } from "./el-message-BJAl6Gwu.mjs";
9
9
  const ke = /* @__PURE__ */ re({
@@ -19,13 +19,13 @@ const ke = /* @__PURE__ */ re({
19
19
  modelModifiers: {}
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
- setup(S, { expose: H }) {
22
+ setup(O, { expose: H }) {
23
23
  w.itemBizLayDict.useValues();
24
- const { t: W } = pe(), U = b(), c = se(S, "modelValue"), G = fe(), $ = new j({ orgType: O.HALL });
24
+ const { t: W } = pe(), U = b(), c = se(O, "modelValue"), G = fe(), $ = new j({ orgType: S.HALL });
25
25
  $.useValues();
26
- const M = new j({ orgType: O.OUTSOURCE });
26
+ const M = new j({ orgType: S.OUTSOURCE });
27
27
  M.useValues(), w.userExtBizDict.useValues();
28
- const V = b([]), i = b({}), R = b([]), F = b([]), q = b((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), T = S;
28
+ const V = b([]), i = b({}), R = b([]), F = b([]), q = b((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), T = O;
29
29
  let p = A({
30
30
  requestId: Math.random() * 10 + "",
31
31
  files: [],
@@ -33,14 +33,14 @@ const ke = /* @__PURE__ */ re({
33
33
  temporaryId: T.task.businessKey
34
34
  });
35
35
  const L = ue(() => i.value.govOrgId ? w.itemBizLayDict.values.filter(
36
- (l) => l.orgId === i.value.govOrgId
36
+ (e) => e.orgId === i.value.govOrgId
37
37
  ) : []), N = b([]);
38
- ve.findList().then((e) => {
39
- R.value = e.data.results;
38
+ ve.findList().then((l) => {
39
+ R.value = l.data.results;
40
40
  }), E(
41
41
  [R, () => i.value.userId],
42
- ([e, l]) => {
43
- e && l && i.value.outOrgId && (N.value = e.filter(
42
+ ([l, e]) => {
43
+ l && e && i.value.outOrgId && (N.value = l.filter(
44
44
  (r) => r.orgId === i.value.outOrgId
45
45
  ));
46
46
  },
@@ -55,29 +55,29 @@ const ke = /* @__PURE__ */ re({
55
55
  }
56
56
  ]
57
57
  });
58
- K.findFilesList({ actionId: T.task.businessKey }).then((e) => {
59
- F.value = e.data.results, console.log(e.data.results, "=> files");
58
+ K.findFilesList({ actionId: T.task.businessKey }).then((l) => {
59
+ F.value = l.data.results;
60
60
  });
61
61
  function Q() {
62
62
  var d;
63
- const l = ((d = w.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : d.dictCode) || "";
63
+ const e = ((d = w.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : d.dictCode) || "";
64
64
  let r = F.value.filter(
65
- (s) => s.fileSort === l
65
+ (s) => s.fileSort === e
66
66
  );
67
67
  r.length === 0 && r.push({
68
68
  fileSrc: "",
69
- fileSort: l
69
+ fileSort: e
70
70
  }), V.value = r;
71
71
  }
72
72
  E(F, () => {
73
73
  Q();
74
74
  });
75
- function X(e) {
76
- if (console.log("上传的文件列表:", e), !e || e.length === 0) {
75
+ function X(l) {
76
+ if (!l || l.length === 0) {
77
77
  be.warning("请选择要上传的图片");
78
78
  return;
79
79
  }
80
- const l = e.map((r) => {
80
+ const e = l.map((r) => {
81
81
  var d;
82
82
  return {
83
83
  fileId: r.fileId,
@@ -86,29 +86,29 @@ const ke = /* @__PURE__ */ re({
86
86
  fileSort: ((d = V.value[0]) == null ? void 0 : d.fileSort) || w.fileTypeDict.values.slice(3, 4)[0].dictCode
87
87
  };
88
88
  });
89
- V.value = [...l], p.files = [...l];
89
+ V.value = [...e], p.files = [...e];
90
90
  }
91
- async function Z(e) {
91
+ async function Z(l) {
92
92
  try {
93
- const l = ce.fileUrl(e.filePath), d = await (await fetch(l)).blob(), s = window.URL.createObjectURL(d), v = document.createElement("a");
94
- v.href = s, v.download = e.fileName || "download", document.body.appendChild(v), v.click();
93
+ const e = ce.fileUrl(l.fileSrc), d = await (await fetch(e)).blob(), s = window.URL.createObjectURL(d), v = document.createElement("a");
94
+ v.href = s, v.download = l.fileName || "download", document.body.appendChild(v), v.click();
95
95
  } catch {
96
96
  }
97
97
  }
98
- z.findById({ temporaryId: T.task.businessKey }).then(({ data: e }) => {
99
- i.value = { ...e }, de(() => {
100
- i.value ? Object.assign(i.value, e) : i.value = { ...e }, x();
98
+ z.findById({ temporaryId: T.task.businessKey }).then(({ data: l }) => {
99
+ i.value = { ...l }, de(() => {
100
+ i.value ? Object.assign(i.value, l) : i.value = { ...l }, x();
101
101
  });
102
102
  });
103
103
  function x() {
104
- K.findFilesList({ actionId: T.task.businessKey }).then(({ data: e }) => {
105
- e.results && Array.isArray(e.results) && (p.files = e.results.map((l) => {
104
+ K.findFilesList({ actionId: T.task.businessKey }).then(({ data: l }) => {
105
+ l.results && Array.isArray(l.results) && (p.files = l.results.map((e) => {
106
106
  let r = "";
107
- return l.fileName && (r = l.fileSort || l.type || ""), {
108
- fileName: l.fileName || "",
109
- fileId: l.fileId || "",
107
+ return e.fileName && (r = e.fileSort || e.type || ""), {
108
+ fileName: e.fileName || "",
109
+ fileId: e.fileId || "",
110
110
  fileSort: r,
111
- fileSrc: l.fileSrc || l.filePath || ""
111
+ fileSrc: e.fileSrc || e.filePath || ""
112
112
  };
113
113
  }));
114
114
  });
@@ -120,20 +120,20 @@ const ke = /* @__PURE__ */ re({
120
120
  return c.value && (c.value.selectActions = [
121
121
  { key: "true", value: "同意" },
122
122
  { key: "false", value: "不同意" }
123
- ], c.value.varName = "approved", c.value.module = "", c.value.module = O.MODULE_ITSMFLOW), new Promise((e, l) => {
123
+ ], c.value.varName = "approved", c.value.module = "", c.value.module = S.MODULE_ITSMFLOW), new Promise((l, e) => {
124
124
  var r;
125
125
  (r = U.value) == null || r.validate((d) => {
126
126
  d ? (c.value && (c.value.comment = ""), p.requestId = Math.random() * 10 + "", z.finish(p).then((s) => {
127
- s.status === 200 ? e(!0) : l(!1);
128
- })) : l(!1);
127
+ s.status === 200 ? l(!0) : e(!1);
128
+ })) : e(!1);
129
129
  });
130
130
  });
131
131
  }
132
- return (e, l) => {
133
- const r = n("el-col"), d = n("jmash-select"), s = n("el-form-item"), v = n("el-option"), C = n("el-select"), I = n("el-input"), P = n("el-date-picker"), le = n("el-button"), ae = n("jmash-multi-image-upload"), te = n("el-row"), oe = n("el-form");
132
+ return (l, e) => {
133
+ const r = n("el-col"), d = n("jmash-select"), s = n("el-form-item"), v = n("el-option"), C = n("el-select"), I = n("el-input"), B = n("el-date-picker"), le = n("el-button"), ae = n("jmash-multi-image-upload"), te = n("el-row"), oe = n("el-form");
134
134
  return u(), f(y, null, [
135
135
  a(r, { span: 24 }, {
136
- default: o(() => l[10] || (l[10] = [
136
+ default: o(() => e[10] || (e[10] = [
137
137
  D("div", { class: "title" }, "外部临时工单", -1)
138
138
  ])),
139
139
  _: 1,
@@ -153,14 +153,14 @@ const ke = /* @__PURE__ */ re({
153
153
  a(r, { span: 24 }, {
154
154
  default: o(() => [
155
155
  a(s, {
156
- label: e.$t("itsmFlowSpareParts.govOrgId"),
156
+ label: l.$t("itsmFlowSpareParts.govOrgId"),
157
157
  prop: "govOrgId"
158
158
  }, {
159
159
  default: o(() => [
160
160
  a(d, {
161
161
  modelValue: i.value.govOrgId,
162
- "onUpdate:modelValue": l[0] || (l[0] = (t) => i.value.govOrgId = t),
163
- placeholder: e.$t("itsmFlowSpareParts.govOrgIdRequired"),
162
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value.govOrgId = t),
163
+ placeholder: l.$t("itsmFlowSpareParts.govOrgIdRequired"),
164
164
  data: m($).values,
165
165
  clearable: "",
166
166
  filterable: "",
@@ -176,14 +176,14 @@ const ke = /* @__PURE__ */ re({
176
176
  a(r, { span: 24 }, {
177
177
  default: o(() => [
178
178
  a(s, {
179
- label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
179
+ label: l.$t("itsmFlowSpareParts.itsmFlowItemId"),
180
180
  prop: "itemId"
181
181
  }, {
182
182
  default: o(() => [
183
183
  a(C, {
184
184
  modelValue: i.value.itemId,
185
- "onUpdate:modelValue": l[1] || (l[1] = (t) => i.value.itemId = t),
186
- placeholder: e.$t("itsmFlowSpareParts.itemIdRequired"),
185
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => i.value.itemId = t),
186
+ placeholder: l.$t("itsmFlowSpareParts.itemIdRequired"),
187
187
  data: L.value,
188
188
  clearable: "",
189
189
  filterable: "",
@@ -207,12 +207,12 @@ const ke = /* @__PURE__ */ re({
207
207
  a(r, { span: 12 }, {
208
208
  default: o(() => [
209
209
  a(s, {
210
- label: e.$t("itsmFlowTemporary.createBy")
210
+ label: l.$t("itsmFlowTemporary.createBy")
211
211
  }, {
212
212
  default: o(() => [
213
213
  a(I, {
214
214
  value: m(G).user.realName,
215
- placeholder: e.$t("itsmFlowTemporary.createUserRequired"),
215
+ placeholder: l.$t("itsmFlowTemporary.createUserRequired"),
216
216
  "show-word-limit": "",
217
217
  clearable: "",
218
218
  disabled: !0
@@ -226,15 +226,15 @@ const ke = /* @__PURE__ */ re({
226
226
  a(r, { span: 12 }, {
227
227
  default: o(() => [
228
228
  a(s, {
229
- label: e.$t("itsmFlowTemporary.createTime"),
229
+ label: l.$t("itsmFlowTemporary.createTime"),
230
230
  prop: "createTime"
231
231
  }, {
232
232
  default: o(() => [
233
- a(P, {
233
+ a(B, {
234
234
  modelValue: q.value,
235
- "onUpdate:modelValue": l[2] || (l[2] = (t) => q.value = t),
235
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => q.value = t),
236
236
  type: "date",
237
- placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
237
+ placeholder: l.$t("itsmFlowTemporary.createTimeRequired"),
238
238
  format: "YYYY-MM-DD",
239
239
  "value-format": "YYYY-MM-DD",
240
240
  clearable: !1,
@@ -250,14 +250,14 @@ const ke = /* @__PURE__ */ re({
250
250
  a(r, { span: 24 }, {
251
251
  default: o(() => [
252
252
  a(s, {
253
- label: e.$t("itsmFlowTemporary.title"),
253
+ label: l.$t("itsmFlowTemporary.title"),
254
254
  prop: "title"
255
255
  }, {
256
256
  default: o(() => [
257
257
  a(I, {
258
258
  modelValue: i.value.title,
259
- "onUpdate:modelValue": l[3] || (l[3] = (t) => i.value.title = t),
260
- placeholder: e.$t("itsmFlowTemporary.titleRequired"),
259
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => i.value.title = t),
260
+ placeholder: l.$t("itsmFlowTemporary.titleRequired"),
261
261
  "show-word-limit": "",
262
262
  clearable: "",
263
263
  disabled: !0
@@ -271,14 +271,14 @@ const ke = /* @__PURE__ */ re({
271
271
  a(r, { span: 24 }, {
272
272
  default: o(() => [
273
273
  a(s, {
274
- label: e.$t("itsmFlowTemporary.content"),
274
+ label: l.$t("itsmFlowTemporary.content"),
275
275
  prop: "content"
276
276
  }, {
277
277
  default: o(() => [
278
278
  a(I, {
279
279
  modelValue: i.value.content,
280
- "onUpdate:modelValue": l[4] || (l[4] = (t) => i.value.content = t),
281
- placeholder: e.$t("itsmFlowTemporary.contentRequired"),
280
+ "onUpdate:modelValue": e[4] || (e[4] = (t) => i.value.content = t),
281
+ placeholder: l.$t("itsmFlowTemporary.contentRequired"),
282
282
  "show-word-limit": "",
283
283
  clearable: "",
284
284
  disabled: !0
@@ -291,7 +291,7 @@ const ke = /* @__PURE__ */ re({
291
291
  }),
292
292
  a(r, { span: 24 }, {
293
293
  default: o(() => [
294
- (u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(2, 3), (t, B) => (u(), k(s, {
294
+ (u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(2, 3), (t, P) => (u(), k(s, {
295
295
  key: t.dictCode,
296
296
  label: t.dictName
297
297
  }, {
@@ -308,7 +308,7 @@ const ke = /* @__PURE__ */ re({
308
308
  class: "icon-right",
309
309
  onClick: (Y) => Z(h)
310
310
  }, {
311
- default: o(() => l[11] || (l[11] = [
311
+ default: o(() => e[11] || (e[11] = [
312
312
  me(" 查看 ")
313
313
  ])),
314
314
  _: 2,
@@ -324,14 +324,14 @@ const ke = /* @__PURE__ */ re({
324
324
  a(r, { span: 24 }, {
325
325
  default: o(() => [
326
326
  a(s, {
327
- label: e.$t("itsmFlowTemporary.outOrgIdTemporary"),
327
+ label: l.$t("itsmFlowTemporary.outOrgIdTemporary"),
328
328
  prop: "outOrgId"
329
329
  }, {
330
330
  default: o(() => [
331
331
  a(d, {
332
332
  modelValue: i.value.outOrgId,
333
- "onUpdate:modelValue": l[5] || (l[5] = (t) => i.value.outOrgId = t),
334
- placeholder: e.$t("itsmFlowTemporary.outOrgIdRequired"),
333
+ "onUpdate:modelValue": e[5] || (e[5] = (t) => i.value.outOrgId = t),
334
+ placeholder: l.$t("itsmFlowTemporary.outOrgIdRequired"),
335
335
  data: m(M).values,
336
336
  clearable: "",
337
337
  filterable: "",
@@ -347,14 +347,14 @@ const ke = /* @__PURE__ */ re({
347
347
  a(r, { span: 24 }, {
348
348
  default: o(() => [
349
349
  a(s, {
350
- label: e.$t("itsmFlowTemporary.userIdTemporary"),
350
+ label: l.$t("itsmFlowTemporary.userIdTemporary"),
351
351
  prop: "userId"
352
352
  }, {
353
353
  default: o(() => [
354
354
  a(C, {
355
355
  modelValue: i.value.userId,
356
- "onUpdate:modelValue": l[6] || (l[6] = (t) => i.value.userId = t),
357
- placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
356
+ "onUpdate:modelValue": e[6] || (e[6] = (t) => i.value.userId = t),
357
+ placeholder: l.$t("itsmFlowTemporary.userIdRequired"),
358
358
  "show-word-limit": "",
359
359
  clearable: "",
360
360
  class: "w-full",
@@ -378,14 +378,14 @@ const ke = /* @__PURE__ */ re({
378
378
  a(r, { span: 12 }, {
379
379
  default: o(() => [
380
380
  a(s, {
381
- label: e.$t("itsmFlowTemporary.handlingPeriod"),
381
+ label: l.$t("itsmFlowTemporary.handlingPeriod"),
382
382
  prop: "handlingPeriod"
383
383
  }, {
384
384
  default: o(() => [
385
385
  a(I, {
386
386
  modelValue: i.value.handlingPeriod,
387
- "onUpdate:modelValue": l[7] || (l[7] = (t) => i.value.handlingPeriod = t),
388
- placeholder: e.$t("itsmFlowTemporary.handlingPeriodRequired"),
387
+ "onUpdate:modelValue": e[7] || (e[7] = (t) => i.value.handlingPeriod = t),
388
+ placeholder: l.$t("itsmFlowTemporary.handlingPeriodRequired"),
389
389
  "show-word-limit": "",
390
390
  clearable: "",
391
391
  disabled: !0
@@ -399,15 +399,15 @@ const ke = /* @__PURE__ */ re({
399
399
  a(r, { span: 12 }, {
400
400
  default: o(() => [
401
401
  a(s, {
402
- label: e.$t("itsmFlowTemporary.finishDate"),
402
+ label: l.$t("itsmFlowTemporary.finishDate"),
403
403
  prop: "finishDate"
404
404
  }, {
405
405
  default: o(() => [
406
- a(P, {
406
+ a(B, {
407
407
  modelValue: m(p).finishDate,
408
- "onUpdate:modelValue": l[8] || (l[8] = (t) => m(p).finishDate = t),
408
+ "onUpdate:modelValue": e[8] || (e[8] = (t) => m(p).finishDate = t),
409
409
  type: "date",
410
- placeholder: e.$t("itsmFlowTemporary.finishDateRequired"),
410
+ placeholder: l.$t("itsmFlowTemporary.finishDateRequired"),
411
411
  format: "YYYY-MM-DD",
412
412
  disabled: !0
413
413
  }, null, 8, ["modelValue", "placeholder"])
@@ -420,14 +420,14 @@ const ke = /* @__PURE__ */ re({
420
420
  a(r, { span: 24 }, {
421
421
  default: o(() => [
422
422
  a(s, {
423
- label: e.$t("itsmFlowTemporary.completion"),
423
+ label: l.$t("itsmFlowTemporary.completion"),
424
424
  prop: "completion"
425
425
  }, {
426
426
  default: o(() => [
427
427
  a(I, {
428
428
  modelValue: m(p).completion,
429
- "onUpdate:modelValue": l[9] || (l[9] = (t) => m(p).completion = t),
430
- placeholder: e.$t("itsmFlowTemporary.completionRequired"),
429
+ "onUpdate:modelValue": e[9] || (e[9] = (t) => m(p).completion = t),
430
+ placeholder: l.$t("itsmFlowTemporary.completionRequired"),
431
431
  "show-word-limit": "",
432
432
  clearable: ""
433
433
  }, null, 8, ["modelValue", "placeholder"])
@@ -439,10 +439,10 @@ const ke = /* @__PURE__ */ re({
439
439
  }),
440
440
  a(r, { span: 24 }, {
441
441
  default: o(() => [
442
- (u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(3, 4), (t, B) => (u(), k(s, {
442
+ (u(!0), f(y, null, g(m(w).fileTypeDict.values.slice(3, 4), (t, P) => (u(), k(s, {
443
443
  key: t.dictCode,
444
444
  label: t.dictName,
445
- prop: "files." + B + ".fileSrc"
445
+ prop: "files." + P + ".fileSrc"
446
446
  }, {
447
447
  default: o(() => [
448
448
  (u(!0), f(y, null, g(V.value, (h, _) => (u(), f("div", {
@@ -456,7 +456,7 @@ const ke = /* @__PURE__ */ re({
456
456
  "list-type": "picture-card",
457
457
  onUploadFileList: X
458
458
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
459
- l[12] || (l[12] = D("div", { class: "red-color" }, " 推荐尺寸:100 * 100或同比例图片,最大2MB ", -1))
459
+ e[12] || (e[12] = D("div", { class: "red-color" }, " 推荐尺寸:100 * 100或同比例图片,最大2MB ", -1))
460
460
  ]))), 128))
461
461
  ]),
462
462
  _: 2
@@ -2,7 +2,7 @@ import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, rea
2
2
  import "element-plus";
3
3
  import { useI18n as me } from "vue-i18n";
4
4
  import { u as ce } from "./index-CvX2It1o.mjs";
5
- import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-DTY8LR57.mjs";
5
+ import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-MPqnkTdo.mjs";
6
6
  import { useUserStore as be } from "jmash-core";
7
7
  import { E as S } from "./el-message-BJAl6Gwu.mjs";
8
8
  const Ae = /* @__PURE__ */ ne({
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-BzNd3aeo.mjs";
3
3
  import "jmash-flow";
4
4
  export {
5
5
  m as TaskItsmFlowAcceptance,