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
- 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-yF5goVnK.mjs";
4
+ import { fileApi as S } from "jmash-core";
5
+ import { i as j } from "./index-H9iJHz8H.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
- import { defineComponent as Q, mergeModels as X, ref as y, useModel as Z, reactive as q, computed as x, nextTick as ee, resolveComponent as n, createElementBlock as f, openBlock as c, Fragment as g, createVNode as t, withCtx as r, createElementVNode as le, unref as a, renderList as C, createBlock as te, createCommentVNode as oe, createTextVNode as R, toDisplayString as D } from "vue";
1
+ import { defineComponent as Q, mergeModels as X, ref as y, useModel as Z, reactive as k, computed as x, nextTick as ee, resolveComponent as n, createElementBlock as f, openBlock as c, Fragment as g, createVNode as t, withCtx as r, createElementVNode as le, unref as a, renderList as q, createBlock as te, createCommentVNode as oe, createTextVNode as C, toDisplayString as R } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as re } from "vue-i18n";
4
- import { i as M } from "./index-CXOeg2so.mjs";
5
- import { U as ae, C as v, D as T, i as ie } from "./index-DTY8LR57.mjs";
4
+ import { i as D } from "./index-H9iJHz8H.mjs";
5
+ import { U as ae, C as w, D as M, i as ie } from "./index-yF5goVnK.mjs";
6
6
  import { u as se } from "./index-CvX2It1o.mjs";
7
7
  import { useUserStoreHook as ne } from "jmash-core";
8
8
  import { _ as ue } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
@@ -19,16 +19,16 @@ const de = /* @__PURE__ */ Q({
19
19
  modelModifiers: {}
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
- setup(F, { expose: N }) {
23
- const $ = ne(), { t: m } = re(), _ = new ae({ userType: v.COMPANY_MANAGER });
24
- _.useValues(), console.log("userIdList values:", _.values);
25
- const b = y(), d = Z(F, "modelValue"), h = F, I = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
26
- let o = q({
22
+ setup(T, { expose: N }) {
23
+ const $ = ne(), { t: m } = re(), v = new ae({ userType: w.COMPANY_MANAGER });
24
+ v.useValues();
25
+ const F = y(), d = Z(T, "modelValue"), b = T, h = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]);
26
+ let o = k({
27
27
  requestId: Math.random() * 10 + "",
28
28
  files: [],
29
- temporaryType: v.Internal
29
+ temporaryType: w.Internal
30
30
  });
31
- const w = y(!1), V = y(), U = q({
31
+ const _ = y(!1), I = y(), U = k({
32
32
  govOrgId: [
33
33
  {
34
34
  required: !0,
@@ -72,11 +72,11 @@ const de = /* @__PURE__ */ Q({
72
72
  }
73
73
  ]
74
74
  }), O = x(() => {
75
- const e = T.fileTypeDict.values.slice(2, 3)[0];
75
+ const e = M.fileTypeDict.values.slice(2, 3)[0];
76
76
  return e ? e.dictCode : "temporary_file";
77
77
  });
78
78
  function S() {
79
- w.value = !0, V.value.clearFileList();
79
+ _.value = !0, I.value.clearFileList();
80
80
  }
81
81
  function A(e) {
82
82
  const l = {
@@ -87,18 +87,17 @@ const de = /* @__PURE__ */ Q({
87
87
  };
88
88
  o.files || (o.files = []), o.files.push(l), o.files = [...new Set(o.files)];
89
89
  }
90
- console.log(T.fileTypeDict.values.slice(2, 3)[0], "=>fileTypeDict ");
91
- function L(e) {
90
+ function Y(e) {
92
91
  var l;
93
92
  (l = o.files) == null || l.splice(e, 1);
94
93
  }
95
- M.findById({ temporaryId: h.task.businessKey }).then(({ data: e }) => {
94
+ D.findById({ temporaryId: b.task.businessKey }).then(({ data: e }) => {
96
95
  o.outOrgId = e.outOrgId, ee(() => {
97
- Object.assign(o, e), Y();
96
+ Object.assign(o, e), L();
98
97
  });
99
98
  });
100
- function Y() {
101
- ie.findFilesList({ actionId: h.task.businessKey }).then(({ data: e }) => {
99
+ function L() {
100
+ ie.findFilesList({ actionId: b.task.businessKey }).then(({ data: e }) => {
102
101
  e.results && Array.isArray(e.results) && (o.files = e.results.map((l) => {
103
102
  let i = "";
104
103
  return l.fileName && (i = l.fileSort || l.type || ""), {
@@ -117,10 +116,10 @@ const de = /* @__PURE__ */ Q({
117
116
  return d.value && (d.value.selectActions = [
118
117
  { key: "true", value: "同意" },
119
118
  { key: "false", value: "不同意" }
120
- ], d.value.varName = "approved", d.value.module = "", d.value.module = v.MODULE_ITSMFLOW), new Promise((e, l) => {
119
+ ], d.value.varName = "approved", d.value.module = "", d.value.module = w.MODULE_ITSMFLOW), new Promise((e, l) => {
121
120
  var i;
122
- (i = b.value) == null || i.validate((p) => {
123
- p ? (d.value && (d.value.comment = ""), M.create(o), e(!0)) : l(!1);
121
+ (i = F.value) == null || i.validate((p) => {
122
+ p ? (d.value && (d.value.comment = ""), D.create(o), e(!0)) : l(!1);
124
123
  });
125
124
  });
126
125
  }
@@ -136,7 +135,7 @@ const de = /* @__PURE__ */ Q({
136
135
  }),
137
136
  t(H, {
138
137
  ref_key: "taskFormRef",
139
- ref: b,
138
+ ref: F,
140
139
  model: a(o),
141
140
  "label-width": "150px",
142
141
  rules: U,
@@ -187,7 +186,7 @@ const de = /* @__PURE__ */ Q({
187
186
  }),
188
187
  t(i, { span: 24 }, {
189
188
  default: r(() => [
190
- (c(!0), f(g, null, C(a(T).fileTypeDict.values.slice(2, 3), (s, me) => (c(), f(g, {
189
+ (c(!0), f(g, null, q(a(M).fileTypeDict.values.slice(2, 3), (s, me) => (c(), f(g, {
191
190
  key: s.dictCode
192
191
  }, [
193
192
  t(u, {
@@ -200,7 +199,7 @@ const de = /* @__PURE__ */ Q({
200
199
  onClick: S
201
200
  }, {
202
201
  default: r(() => [
203
- R(D(e.$t("common.uploadFiles")), 1)
202
+ C(R(e.$t("common.uploadFiles")), 1)
204
203
  ]),
205
204
  _: 1
206
205
  }, 8, ["icon"])
@@ -209,15 +208,15 @@ const de = /* @__PURE__ */ Q({
209
208
  }, 1032, ["label"]),
210
209
  a(o).files && a(o).files.length > 0 ? (c(), te(u, { key: 0 }, {
211
210
  default: r(() => [
212
- (c(!0), f(g, null, C(a(o).files, (J, k) => (c(), f("div", {
213
- key: k,
211
+ (c(!0), f(g, null, q(a(o).files, (J, V) => (c(), f("div", {
212
+ key: V,
214
213
  class: "files-list"
215
214
  }, [
216
- R(D(J.fileName) + " ", 1),
215
+ C(R(J.fileName) + " ", 1),
217
216
  t(E, {
218
217
  size: "16",
219
218
  class: "icon-right",
220
- onClick: (pe) => L(k)
219
+ onClick: (pe) => Y(V)
221
220
  }, {
222
221
  default: r(() => [
223
222
  t(B)
@@ -259,8 +258,8 @@ const de = /* @__PURE__ */ Q({
259
258
  }, {
260
259
  default: r(() => [
261
260
  t(z, {
262
- modelValue: I.value,
263
- "onUpdate:modelValue": l[2] || (l[2] = (s) => I.value = s),
261
+ modelValue: h.value,
262
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => h.value = s),
264
263
  type: "date",
265
264
  placeholder: e.$t("itsmFlowTemporary.createTimeRequired"),
266
265
  format: "YYYY-MM-DD",
@@ -285,7 +284,7 @@ const de = /* @__PURE__ */ Q({
285
284
  t(K, {
286
285
  modelValue: a(o).userId,
287
286
  "onUpdate:modelValue": l[3] || (l[3] = (s) => a(o).userId = s),
288
- data: a(_).values,
287
+ data: a(v).values,
289
288
  placeholder: e.$t("itsmFlowTemporary.userIdRequired"),
290
289
  "show-word-limit": "",
291
290
  clearable: "",
@@ -325,15 +324,15 @@ const de = /* @__PURE__ */ Q({
325
324
  }, 8, ["model", "rules"]),
326
325
  t(W, {
327
326
  ref_key: "uploadRef",
328
- ref: V,
329
- modelValue: w.value,
330
- "onUpdate:modelValue": l[5] || (l[5] = (s) => w.value = s),
327
+ ref: I,
328
+ modelValue: _.value,
329
+ "onUpdate:modelValue": l[5] || (l[5] = (s) => _.value = s),
331
330
  onUploadFileList: A
332
331
  }, null, 8, ["modelValue"])
333
332
  ], 64);
334
333
  };
335
334
  }
336
- }), Fe = /* @__PURE__ */ ue(de, [["__scopeId", "data-v-d8ed4053"]]);
335
+ }), Fe = /* @__PURE__ */ ue(de, [["__scopeId", "data-v-56312c78"]]);
337
336
  export {
338
337
  Fe as default
339
338
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as Z, getCurrentInstance as ee, ref as _, reactive as P, onActivated as te, resolveComponent as s, resolveDirective as le, createElementBlock as I, openBlock as u, createElementVNode as b, createVNode as a, createBlock as V, createCommentVNode as C, withCtx as l, unref as r, withKeys as oe, createTextVNode as p, toDisplayString as n, withDirectives as D, isRef as R } from "vue";
2
2
  import { useTableHooks as ae } from "jmash-core";
3
3
  import { useI18n as re } from "vue-i18n";
4
- import { i as ie } from "./index-CXOeg2so.mjs";
5
- import ne from "./edit-BpAjiLxu.mjs";
6
- import { _ as se } from "./info.vue_vue_type_script_setup_true_lang-BeDGwXfi.mjs";
7
- import { D as c, O as me, C as N } from "./index-DTY8LR57.mjs";
4
+ import { i as ie } from "./index-H9iJHz8H.mjs";
5
+ import ne from "./edit-7a3pU3gM.mjs";
6
+ import { _ as se } from "./info.vue_vue_type_script_setup_true_lang-QbYDyzuO.mjs";
7
+ import { D as c, O as me, C as N } from "./index-yF5goVnK.mjs";
8
8
  import { rbacApi as ue } from "jmash-rbac";
9
9
  const de = { class: "app-container" }, pe = { class: "search-container" }, ce = { key: 0 }, ye = ["onClick"], fe = ["onClick"], ve = ["onClick"], Ce = /* @__PURE__ */ Z({
10
10
  __name: "index",
@@ -1,8 +1,8 @@
1
- import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as B, nextTick as G, resolveComponent as m, createElementBlock as y, openBlock as _, Fragment as I, createVNode as l, withCtx as t, createElementVNode as O, unref as d, createTextVNode as s, toDisplayString as n, renderList as $, createBlock as J } from "vue";
1
+ import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as B, nextTick as G, resolveComponent as m, createElementBlock as y, openBlock as _, Fragment as I, createVNode as e, withCtx as l, createElementVNode as O, unref as d, createTextVNode as s, toDisplayString as n, renderList as $, createBlock as J } from "vue";
2
2
  import { useUserStoreHook as Q, fileApi as k } from "jmash-core";
3
3
  import "element-plus";
4
- import { i as X } from "./index-CXOeg2so.mjs";
5
- import { D as u, i as N, C as Y } from "./index-DTY8LR57.mjs";
4
+ import { i as X } from "./index-H9iJHz8H.mjs";
5
+ import { D as u, i as N, C as Y } from "./index-yF5goVnK.mjs";
6
6
  const ae = /* @__PURE__ */ K({
7
7
  __name: "index",
8
8
  props: /* @__PURE__ */ q({
@@ -18,12 +18,12 @@ const ae = /* @__PURE__ */ K({
18
18
  emits: ["update:modelValue"],
19
19
  setup(h, { expose: L }) {
20
20
  u.orgIdBizDict.useValues();
21
- const D = v(), p = H(h, "modelValue"), P = Q();
21
+ const D = v(), p = H(h, "modelValue"), z = Q();
22
22
  u.itemBizLayDict.useValues(), u.userExtBizDict.useValues(), v([]);
23
- const i = v({}), b = v([]), z = v((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = h;
23
+ const i = v({}), b = v([]), P = v((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = h;
24
24
  let S = W({});
25
- N.findFilesList({ actionId: g.task.businessKey }).then((e) => {
26
- b.value = e.data.results, console.log(e.data.results, "=> files");
25
+ N.findFilesList({ actionId: g.task.businessKey }).then((t) => {
26
+ b.value = t.data.results;
27
27
  });
28
28
  const C = B(() => {
29
29
  var a;
@@ -31,24 +31,24 @@ const ae = /* @__PURE__ */ K({
31
31
  return b.value.filter((r) => r.fileSort === o);
32
32
  }), U = B(() => {
33
33
  var o;
34
- const e = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
35
- return b.value.filter((a) => a.fileSort === e);
34
+ const t = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
35
+ return b.value.filter((a) => a.fileSort === t);
36
36
  });
37
- async function A(e) {
37
+ async function A(t) {
38
38
  try {
39
- const o = k.fileUrl(e.filePath), r = await (await fetch(o)).blob(), w = window.URL.createObjectURL(r), c = document.createElement("a");
40
- c.href = w, c.download = e.fileName || "download", document.body.appendChild(c), c.click();
39
+ const o = k.fileUrl(t.fileSrc), r = await (await fetch(o)).blob(), w = window.URL.createObjectURL(r), c = document.createElement("a");
40
+ c.href = w, c.download = t.fileName || "download", document.body.appendChild(c), c.click();
41
41
  } catch {
42
42
  }
43
43
  }
44
- X.findById({ temporaryId: g.task.businessKey }).then(({ data: e }) => {
45
- i.value = { ...e }, G(() => {
46
- i.value ? Object.assign(i.value, e) : i.value = { ...e }, M();
44
+ X.findById({ temporaryId: g.task.businessKey }).then(({ data: t }) => {
45
+ i.value = { ...t }, G(() => {
46
+ i.value ? Object.assign(i.value, t) : i.value = { ...t }, M();
47
47
  });
48
48
  });
49
49
  function M() {
50
- N.findFilesList({ actionId: g.task.businessKey }).then(({ data: e }) => {
51
- e.results && Array.isArray(e.results) && (S.files = e.results.map((o) => {
50
+ N.findFilesList({ actionId: g.task.businessKey }).then(({ data: t }) => {
51
+ t.results && Array.isArray(t.results) && (S.files = t.results.map((o) => {
52
52
  let a = "";
53
53
  return o.fileName && (a = o.fileSort || o.type || ""), {
54
54
  fileName: o.fileName || "",
@@ -66,40 +66,40 @@ const ae = /* @__PURE__ */ K({
66
66
  return p.value && (p.value.selectActions = [
67
67
  { key: "true", value: "同意" },
68
68
  { key: "false", value: "不同意" }
69
- ], p.value.varName = "approved", p.value.module = "", p.value.module = Y.MODULE_ITSMFLOW), new Promise((e, o) => {
69
+ ], p.value.varName = "approved", p.value.module = "", p.value.module = Y.MODULE_ITSMFLOW), new Promise((t, o) => {
70
70
  var a;
71
71
  (a = D.value) == null || a.validate((r) => {
72
- r ? (p.value && (p.value.comment = ""), e(!0)) : o(!1);
72
+ r ? (p.value && (p.value.comment = ""), t(!0)) : o(!1);
73
73
  });
74
74
  });
75
75
  }
76
- return (e, o) => {
76
+ return (t, o) => {
77
77
  const a = m("el-col"), r = m("el-form-item"), w = m("el-button"), c = m("el-image"), R = m("el-row"), j = m("el-form");
78
78
  return _(), y(I, null, [
79
- l(a, { span: 24 }, {
80
- default: t(() => o[0] || (o[0] = [
79
+ e(a, { span: 24 }, {
80
+ default: l(() => o[0] || (o[0] = [
81
81
  O("div", { class: "title" }, "外部临时工单", -1)
82
82
  ])),
83
83
  _: 1,
84
84
  __: [0]
85
85
  }),
86
- l(j, {
86
+ e(j, {
87
87
  ref_key: "taskFormRef",
88
88
  ref: D,
89
89
  model: d(S),
90
90
  "label-width": "150px",
91
91
  class: "custom-table-form"
92
92
  }, {
93
- default: t(() => [
94
- l(R, null, {
95
- default: t(() => [
96
- l(a, { span: 24 }, {
97
- default: t(() => [
98
- l(r, {
99
- label: e.$t("itsmFlowSpareParts.govOrgId"),
93
+ default: l(() => [
94
+ e(R, null, {
95
+ default: l(() => [
96
+ e(a, { span: 24 }, {
97
+ default: l(() => [
98
+ e(r, {
99
+ label: t.$t("itsmFlowSpareParts.govOrgId"),
100
100
  prop: "govOrgId"
101
101
  }, {
102
- default: t(() => [
102
+ default: l(() => [
103
103
  s(n(d(u).orgIdBizDict.getValue(i.value.govOrgId)), 1)
104
104
  ]),
105
105
  _: 1
@@ -107,13 +107,13 @@ const ae = /* @__PURE__ */ K({
107
107
  ]),
108
108
  _: 1
109
109
  }),
110
- l(a, { span: 24 }, {
111
- default: t(() => [
112
- l(r, {
113
- label: e.$t("itsmFlowSpareParts.itsmFlowItemId"),
110
+ e(a, { span: 24 }, {
111
+ default: l(() => [
112
+ e(r, {
113
+ label: t.$t("itsmFlowSpareParts.itsmFlowItemId"),
114
114
  prop: "itemId"
115
115
  }, {
116
- default: t(() => [
116
+ default: l(() => [
117
117
  s(n(d(u).itemBizLayDict.getValue(i.value.itemId)), 1)
118
118
  ]),
119
119
  _: 1
@@ -121,40 +121,40 @@ const ae = /* @__PURE__ */ K({
121
121
  ]),
122
122
  _: 1
123
123
  }),
124
- l(a, { span: 12 }, {
125
- default: t(() => [
126
- l(r, {
127
- label: e.$t("itsmFlowTemporary.createBy")
124
+ e(a, { span: 12 }, {
125
+ default: l(() => [
126
+ e(r, {
127
+ label: t.$t("itsmFlowTemporary.createBy")
128
128
  }, {
129
- default: t(() => [
130
- s(n(d(P).user.realName), 1)
129
+ default: l(() => [
130
+ s(n(d(z).user.realName), 1)
131
131
  ]),
132
132
  _: 1
133
133
  }, 8, ["label"])
134
134
  ]),
135
135
  _: 1
136
136
  }),
137
- l(a, { span: 12 }, {
138
- default: t(() => [
139
- l(r, {
140
- label: e.$t("itsmFlowTemporary.createTime"),
137
+ e(a, { span: 12 }, {
138
+ default: l(() => [
139
+ e(r, {
140
+ label: t.$t("itsmFlowTemporary.createTime"),
141
141
  prop: "createTime"
142
142
  }, {
143
- default: t(() => [
144
- s(n(z.value), 1)
143
+ default: l(() => [
144
+ s(n(P.value), 1)
145
145
  ]),
146
146
  _: 1
147
147
  }, 8, ["label"])
148
148
  ]),
149
149
  _: 1
150
150
  }),
151
- l(a, { span: 24 }, {
152
- default: t(() => [
153
- l(r, {
154
- label: e.$t("itsmFlowTemporary.title"),
151
+ e(a, { span: 24 }, {
152
+ default: l(() => [
153
+ e(r, {
154
+ label: t.$t("itsmFlowTemporary.title"),
155
155
  prop: "title"
156
156
  }, {
157
- default: t(() => [
157
+ default: l(() => [
158
158
  s(n(i.value.title), 1)
159
159
  ]),
160
160
  _: 1
@@ -162,13 +162,13 @@ const ae = /* @__PURE__ */ K({
162
162
  ]),
163
163
  _: 1
164
164
  }),
165
- l(a, { span: 24 }, {
166
- default: t(() => [
167
- l(r, {
168
- label: e.$t("itsmFlowTemporary.content"),
165
+ e(a, { span: 24 }, {
166
+ default: l(() => [
167
+ e(r, {
168
+ label: t.$t("itsmFlowTemporary.content"),
169
169
  prop: "content"
170
170
  }, {
171
- default: t(() => [
171
+ default: l(() => [
172
172
  s(n(i.value.content), 1)
173
173
  ]),
174
174
  _: 1
@@ -176,23 +176,23 @@ const ae = /* @__PURE__ */ K({
176
176
  ]),
177
177
  _: 1
178
178
  }),
179
- l(a, { span: 24 }, {
180
- default: t(() => [
181
- l(r, { label: "附件" }, {
182
- default: t(() => [
179
+ e(a, { span: 24 }, {
180
+ default: l(() => [
181
+ e(r, { label: "附件" }, {
182
+ default: l(() => [
183
183
  (_(!0), y(I, null, $(U.value, (f, F) => (_(), y("div", {
184
184
  key: F,
185
185
  class: "files-list"
186
186
  }, [
187
187
  O("span", null, n(f.fileName), 1),
188
- l(w, {
188
+ e(w, {
189
189
  type: "primary",
190
190
  link: "",
191
191
  size: "small",
192
192
  class: "icon-right",
193
193
  onClick: (T) => A(f)
194
194
  }, {
195
- default: t(() => o[1] || (o[1] = [
195
+ default: l(() => o[1] || (o[1] = [
196
196
  s(" 查看 ")
197
197
  ])),
198
198
  _: 2,
@@ -205,13 +205,13 @@ const ae = /* @__PURE__ */ K({
205
205
  ]),
206
206
  _: 1
207
207
  }),
208
- l(a, { span: 24 }, {
209
- default: t(() => [
210
- l(r, {
211
- label: e.$t("itsmFlowTemporary.outOrgIdTemporary"),
208
+ e(a, { span: 24 }, {
209
+ default: l(() => [
210
+ e(r, {
211
+ label: t.$t("itsmFlowTemporary.outOrgIdTemporary"),
212
212
  prop: "outOrgId"
213
213
  }, {
214
- default: t(() => [
214
+ default: l(() => [
215
215
  s(n(d(u).orgIdBizDict.getValue(i.value.outOrgId)), 1)
216
216
  ]),
217
217
  _: 1
@@ -219,13 +219,13 @@ const ae = /* @__PURE__ */ K({
219
219
  ]),
220
220
  _: 1
221
221
  }),
222
- l(a, { span: 24 }, {
223
- default: t(() => [
224
- l(r, {
225
- label: e.$t("itsmFlowTemporary.userIdTemporary"),
222
+ e(a, { span: 24 }, {
223
+ default: l(() => [
224
+ e(r, {
225
+ label: t.$t("itsmFlowTemporary.userIdTemporary"),
226
226
  prop: "userId"
227
227
  }, {
228
- default: t(() => [
228
+ default: l(() => [
229
229
  s(n(d(u).userExtBizDict.getValue(i.value.userId)), 1)
230
230
  ]),
231
231
  _: 1
@@ -233,13 +233,13 @@ const ae = /* @__PURE__ */ K({
233
233
  ]),
234
234
  _: 1
235
235
  }),
236
- l(a, { span: 12 }, {
237
- default: t(() => [
238
- l(r, {
239
- label: e.$t("itsmFlowTemporary.handlingPeriod"),
236
+ e(a, { span: 12 }, {
237
+ default: l(() => [
238
+ e(r, {
239
+ label: t.$t("itsmFlowTemporary.handlingPeriod"),
240
240
  prop: "handlingPeriod"
241
241
  }, {
242
- default: t(() => [
242
+ default: l(() => [
243
243
  s(n(i.value.handlingPeriod), 1)
244
244
  ]),
245
245
  _: 1
@@ -247,13 +247,13 @@ const ae = /* @__PURE__ */ K({
247
247
  ]),
248
248
  _: 1
249
249
  }),
250
- l(a, { span: 12 }, {
251
- default: t(() => [
252
- l(r, {
253
- label: e.$t("itsmFlowTemporary.finishDate"),
250
+ e(a, { span: 12 }, {
251
+ default: l(() => [
252
+ e(r, {
253
+ label: t.$t("itsmFlowTemporary.finishDate"),
254
254
  prop: "finishDate"
255
255
  }, {
256
- default: t(() => [
256
+ default: l(() => [
257
257
  s(n(i.value.finishDate), 1)
258
258
  ]),
259
259
  _: 1
@@ -261,13 +261,13 @@ const ae = /* @__PURE__ */ K({
261
261
  ]),
262
262
  _: 1
263
263
  }),
264
- l(a, { span: 24 }, {
265
- default: t(() => [
266
- l(r, {
267
- label: e.$t("itsmFlowTemporary.completion"),
264
+ e(a, { span: 24 }, {
265
+ default: l(() => [
266
+ e(r, {
267
+ label: t.$t("itsmFlowTemporary.completion"),
268
268
  prop: "completion"
269
269
  }, {
270
- default: t(() => [
270
+ default: l(() => [
271
271
  s(n(i.value.completion), 1)
272
272
  ]),
273
273
  _: 1
@@ -275,17 +275,17 @@ const ae = /* @__PURE__ */ K({
275
275
  ]),
276
276
  _: 1
277
277
  }),
278
- l(a, { span: 24 }, {
279
- default: t(() => [
278
+ e(a, { span: 24 }, {
279
+ default: l(() => [
280
280
  (_(!0), y(I, null, $(d(u).fileTypeDict.values.slice(3, 4), (f, F) => (_(), J(r, {
281
281
  key: f.dictCode,
282
282
  label: f.dictName,
283
283
  prop: "files." + F + ".fileSrc"
284
284
  }, {
285
- default: t(() => {
285
+ default: l(() => {
286
286
  var T, V;
287
287
  return [
288
- l(c, {
288
+ e(c, {
289
289
  src: d(k).imageUrl((T = C.value[0]) == null ? void 0 : T.fileSrc, 100, 100),
290
290
  "preview-src-list": [
291
291
  d(k).imageUrl((V = C.value[0]) == null ? void 0 : V.fileSrc)
@@ -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-CTEuDDac.mjs";
6
+ import { C as ee, D as h } from "./index-yF5goVnK.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
1
  import { defineComponent as le, mergeModels as oe, ref as f, useModel as ne, resolveComponent as c, 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
3
  import { u as se } from "./index-CvX2It1o.mjs";
4
- import { a as h } from "./index-CXOeg2so.mjs";
5
- import { D as y, C as $, a as ue } from "./index-DTY8LR57.mjs";
4
+ import { a as h } from "./index-H9iJHz8H.mjs";
5
+ import { D as y, C as $, a as ue } from "./index-yF5goVnK.mjs";
6
6
  import "jmash-core";
7
7
  import { useI18n as re } from "vue-i18n";
8
- import { F as ie } from "./FileSaver.min-DDqwfEMu.mjs";
8
+ import { F as ie } from "./FileSaver.min-BJJnPj5_.mjs";
9
9
  import { E as A } from "./el-message-BJAl6Gwu.mjs";
10
10
  const de = { key: 0 }, pe = { key: 1 }, ce = {
11
11
  key: 2,