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
@@ -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-MPqnkTdo.mjs";
5
+ import { i as H, a as J } from "./index-BRS1J0_N.mjs";
6
6
  import { fileApi as Q } from "jmash-core";
7
7
  import { rbacApi as X } from "jmash-rbac";
8
8
  const Y = { key: 0 }, se = /* @__PURE__ */ K({
@@ -19,27 +19,27 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
19
19
  }),
20
20
  emits: ["update:modelValue"],
21
21
  setup(I, { expose: O }) {
22
- const { t: Z } = q(), V = w(), A = w({}), c = W(I, "modelValue");
23
- console.log(D.applyStatus.finished, "=>Constant.applyStatus.finished "), f.orgIdBizDict.useValues(), f.budgetTypeDict.useValues(), f.itemBizLayDict.useValues();
24
- const k = I, u = w();
25
- H.findById({ flowSpareId: k.task.businessKey }).then(({ data: a }) => {
22
+ const { t: Z } = q(), h = w(), A = w({}), c = W(I, "modelValue");
23
+ f.orgIdBizDict.useValues(), f.budgetTypeDict.useValues(), f.itemBizLayDict.useValues();
24
+ const P = I, u = w();
25
+ H.findById({ flowSpareId: P.task.businessKey }).then(({ data: a }) => {
26
26
  u.value = a;
27
27
  });
28
+ const V = w([]);
29
+ J.findList({ flowSpareId: P.task.businessKey }).then((a) => {
30
+ V.value = a.data.results;
31
+ });
28
32
  const C = w([]);
29
- J.findList({ flowSpareId: k.task.businessKey }).then((a) => {
33
+ G.findFilesList({ actionId: P.task.businessKey }).then((a) => {
30
34
  C.value = a.data.results;
31
35
  });
32
- const L = w([]);
33
- G.findFilesList({ actionId: k.task.businessKey }).then((a) => {
34
- L.value = a.data.results;
35
- });
36
36
  const E = (a) => {
37
37
  var p;
38
- return ((p = L.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
38
+ return ((p = C.value) == null ? void 0 : p.filter((r) => r.fileSort === a)) || [];
39
39
  };
40
40
  async function T(a) {
41
41
  try {
42
- const p = Q.fileUrl(a.filePath), i = await (await fetch(p)).blob(), S = window.URL.createObjectURL(i), d = document.createElement("a");
42
+ const p = Q.fileUrl(a.fileSrc), i = await (await fetch(p)).blob(), S = window.URL.createObjectURL(i), d = document.createElement("a");
43
43
  d.href = S, d.download = a.fileName || "download", document.body.appendChild(d), d.click();
44
44
  } catch {
45
45
  }
@@ -51,16 +51,16 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
51
51
  return c.value && (c.value.selectActions = [
52
52
  { key: "true", value: "同意" },
53
53
  { key: "false", value: "不同意" }
54
- ], c.value.varName = "approved", c.value.module = "", c.value.module = D.MODULE_ITSMFLOW), new Promise((a, p) => {
54
+ ], c.value.varName = "approved", c.value.module = "", c.value.module = N.MODULE_ITSMFLOW), new Promise((a, p) => {
55
55
  var r;
56
- (r = V.value) == null || r.validate((i) => {
56
+ (r = h.value) == null || r.validate((i) => {
57
57
  i ? (c.value && (c.value.comment = ""), a(!0)) : p(!1);
58
58
  });
59
59
  });
60
60
  }
61
61
  return (a, p) => {
62
- const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"), M = b("el-form");
63
- return m(), v(B, null, [
62
+ const r = b("el-col"), i = b("el-form-item"), S = b("el-row"), d = b("el-table-column"), R = b("el-table"), U = b("el-button"), L = b("el-form");
63
+ return m(), v(D, null, [
64
64
  t(r, { span: 24 }, {
65
65
  default: e(() => p[0] || (p[0] = [
66
66
  F("div", { class: "title" }, "备品备件申请领用确认单", -1)
@@ -68,15 +68,15 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
68
68
  _: 1,
69
69
  __: [0]
70
70
  }),
71
- t(M, {
71
+ t(L, {
72
72
  ref_key: "taskFormRef",
73
- ref: V,
73
+ ref: h,
74
74
  model: A.value,
75
75
  "label-width": "150px",
76
76
  class: "custom-table-form"
77
77
  }, {
78
78
  default: e(() => [
79
- t(M, {
79
+ t(L, {
80
80
  ref: "itsmFlowEntrustFormRef",
81
81
  "label-width": "150px",
82
82
  class: "custom-table-form custom-form"
@@ -84,7 +84,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
84
84
  default: e(() => [
85
85
  t(S, null, {
86
86
  default: e(() => {
87
- var o, h, _;
87
+ var o, $, _;
88
88
  return [
89
89
  t(r, { span: 12 }, {
90
90
  default: e(() => [
@@ -173,8 +173,8 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
173
173
  }, 8, ["label"])
174
174
  ]),
175
175
  _: 1
176
- })) : P("", !0),
177
- ((h = u.value) == null ? void 0 : h.type) !== "BudgetOut" ? (m(), g(r, {
176
+ })) : k("", !0),
177
+ (($ = u.value) == null ? void 0 : $.type) !== "BudgetOut" ? (m(), g(r, {
178
178
  key: 1,
179
179
  span: 12
180
180
  }, {
@@ -193,7 +193,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
193
193
  }, 8, ["label"])
194
194
  ]),
195
195
  _: 1
196
- })) : P("", !0),
196
+ })) : k("", !0),
197
197
  ((_ = u.value) == null ? void 0 : _.type) !== "BudgetOut" ? (m(), g(r, {
198
198
  key: 2,
199
199
  span: 12
@@ -213,7 +213,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
213
213
  }, 8, ["label"])
214
214
  ]),
215
215
  _: 1
216
- })) : P("", !0),
216
+ })) : k("", !0),
217
217
  t(r, { span: 12 }, {
218
218
  default: e(() => [
219
219
  t(i, {
@@ -221,9 +221,9 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
221
221
  prop: "createBy"
222
222
  }, {
223
223
  default: e(() => {
224
- var l, $;
224
+ var l, B;
225
225
  return [
226
- n(s((l = u.value) != null && l.createBy ? ($ = y(X).userInfo(u.value.createBy)) == null ? void 0 : $.realName : ""), 1)
226
+ n(s((l = u.value) != null && l.createBy ? (B = y(X).userInfo(u.value.createBy)) == null ? void 0 : B.realName : ""), 1)
227
227
  ];
228
228
  }),
229
229
  _: 1
@@ -266,7 +266,7 @@ const Y = { key: 0 }, se = /* @__PURE__ */ K({
266
266
  t(R, {
267
267
  stripe: "",
268
268
  style: { width: "100%" },
269
- data: C.value
269
+ data: V.value
270
270
  }, {
271
271
  default: e(() => [
272
272
  t(d, {
@@ -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(" 查看 ")
@@ -4399,7 +4399,7 @@ class Pd {
4399
4399
  });
4400
4400
  }
4401
4401
  }
4402
- const jd = new Pd(), Rd = /* @__PURE__ */ Object.assign({ "./views/item-flow-orders-interior/edit.vue": () => import("./edit-BWaFYsWY.mjs"), "./views/item-flow-orders-interior/index.vue": () => import("./index-QPdQNctc.mjs"), "./views/item-flow-orders-interior/info.vue": () => import("./info-DTZck-Y6.mjs"), "./views/itsm-flow-acceptance-info/index.vue": () => import("./index-D6Poyzq3.mjs"), "./views/itsm-flow-acceptance-info/info.vue": () => import("./info-qIG0jebP.mjs"), "./views/itsm-flow-acceptance/edit.vue": () => import("./edit-BH_qEChy.mjs"), "./views/itsm-flow-acceptance/index.vue": () => import("./index-CGDEQO2p.mjs"), "./views/itsm-flow-entrust-info/index.vue": () => import("./index-WpTFFCXY.mjs"), "./views/itsm-flow-entrust-info/info.vue": () => import("./info-DjtHpeoT.mjs"), "./views/itsm-flow-entrust/edit.vue": () => import("./edit-CkGTDSiH.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-rHARbj0G.mjs"), "./views/itsm-flow-reckoning-info/index.vue": () => import("./index-qvWMlGg9.mjs"), "./views/itsm-flow-reckoning-info/info.vue": () => import("./info-BmfgBiif.mjs"), "./views/itsm-flow-reckoning/edit.vue": () => import("./edit-D0-xQV59.mjs"), "./views/itsm-flow-reckoning/index.vue": () => import("./index-CQ9elIv7.mjs"), "./views/itsm-flow-spare-parts/edit.vue": () => import("./edit-DIyC972n.mjs"), "./views/itsm-flow-spare-parts/index.vue": () => import("./index-DjZysfQB.mjs"), "./views/itsm-flow-spare-parts/info.vue": () => import("./info-0Dcd8VrX.mjs"), "./views/itsm-flow-temporary/edit.vue": () => import("./edit-BpAjiLxu.mjs"), "./views/itsm-flow-temporary/index.vue": () => import("./index-CjYlJigX.mjs"), "./views/itsm-flow-temporary/info.vue": () => import("./info-C1J_4HDK.mjs") }), Jn = () => import("./index-BKQGui3N.mjs"), xd = () => import("./index-DBRVK73O.mjs"), Xn = () => import("./index-C3zQQDPa.mjs"), Yd = () => import("./index-BkqkF7bW.mjs"), ea = () => import("./index-DY5EGkfi.mjs"), Ad = () => import("./index-n6pwVFlo.mjs"), ta = () => import("./index-DxoX_XqQ.mjs"), Ed = () => import("./index-DfptoNZ3.mjs"), Fd = () => import("./index-CV6uWLV9.mjs"), Nd = () => import("./index-Cd9CTAUb.mjs"), Wd = () => import("./index-CillImY_.mjs"), Cd = () => import("./index-YBHgdjIk.mjs"), $d = () => import("./index-B20ya3NZ.mjs"), Ld = () => import("./index-BKveaoi_.mjs"), Ud = () => import("./index-CI9FMMKr.mjs"), Hd = () => import("./index-Chh_9yED.mjs"), Gd = () => import("./index-DcDzU5zK.mjs"), zd = {
4402
+ const jd = new Pd(), Rd = /* @__PURE__ */ Object.assign({ "./views/item-flow-orders-interior/edit.vue": () => import("./edit-Cdqv3LYF.mjs"), "./views/item-flow-orders-interior/index.vue": () => import("./index-B343YUBs.mjs"), "./views/item-flow-orders-interior/info.vue": () => import("./info-Dcc0vKH3.mjs"), "./views/itsm-flow-acceptance-info/index.vue": () => import("./index-BHx7wTh8.mjs"), "./views/itsm-flow-acceptance-info/info.vue": () => import("./info-D8JhIxGy.mjs"), "./views/itsm-flow-acceptance/edit.vue": () => import("./edit-B5e6Z4D-.mjs"), "./views/itsm-flow-acceptance/index.vue": () => import("./index-oYL4MO3G.mjs"), "./views/itsm-flow-entrust-info/index.vue": () => import("./index-ChDJ7snw.mjs"), "./views/itsm-flow-entrust-info/info.vue": () => import("./info-ghO6g5a7.mjs"), "./views/itsm-flow-entrust/edit.vue": () => import("./edit-CDrqDH14.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-CYgdVX3-.mjs"), "./views/itsm-flow-reckoning-info/index.vue": () => import("./index-CeYdPqBa.mjs"), "./views/itsm-flow-reckoning-info/info.vue": () => import("./info-BBeI4Gu-.mjs"), "./views/itsm-flow-reckoning/edit.vue": () => import("./edit-B6x5LnXs.mjs"), "./views/itsm-flow-reckoning/index.vue": () => import("./index-_lw11aC1.mjs"), "./views/itsm-flow-spare-parts/edit.vue": () => import("./edit-CtGnGMdI.mjs"), "./views/itsm-flow-spare-parts/index.vue": () => import("./index-NEYEBifl.mjs"), "./views/itsm-flow-spare-parts/info.vue": () => import("./info-BMDpWXun.mjs"), "./views/itsm-flow-temporary/edit.vue": () => import("./edit-s6tpuJqi.mjs"), "./views/itsm-flow-temporary/index.vue": () => import("./index-BryuNtvE.mjs"), "./views/itsm-flow-temporary/info.vue": () => import("./info-Dmo9yYXs.mjs") }), Jn = () => import("./index-BpTgZ8S6.mjs"), xd = () => import("./index-Cp5FZJRb.mjs"), Xn = () => import("./index-ETbLgbz7.mjs"), Yd = () => import("./index-v6aOPnu6.mjs"), ea = () => import("./index-DL0G-1We.mjs"), Ad = () => import("./index-CVEflwbt.mjs"), ta = () => import("./index-DS5-j9pi.mjs"), Ed = () => import("./index-Bv6L7pj-.mjs"), Fd = () => import("./index-Bvl7uSjW.mjs"), Nd = () => import("./index-C3imt6Nt.mjs"), Wd = () => import("./index-CND3lY5T.mjs"), Cd = () => import("./index-qXw5Aiao.mjs"), $d = () => import("./index-DVTVgX1p.mjs"), Ld = () => import("./index-j6FSzNWr.mjs"), Ud = () => import("./index-CaCAQvu3.mjs"), Hd = () => import("./index-C9XYUxJJ.mjs"), Gd = () => import("./index-Cd1wffPr.mjs"), zd = {
4403
4403
  install(e) {
4404
4404
  wi(Rd, 7), ki(_i), E("TaskItsmFlowEntrust", Jn), E("TaskItsmFlowEntrustEdit", xd), E("TaskItsmFlowEntrustView", Jn), E("TaskItsmFlowAcceptance", Xn), E(
4405
4405
  "TaskItsmFlowAcceptanceEdit",
@@ -1,9 +1,9 @@
1
- import { defineComponent as M, mergeModels as N, ref as _, useModel as P, getCurrentInstance as A, resolveComponent as f, createElementBlock as b, openBlock as v, Fragment as g, createVNode as t, withCtx as l, createElementVNode as F, createTextVNode as i, toDisplayString as n, unref as c, renderList as T, createBlock as E } from "vue";
2
- import { rbacApi as U } from "jmash-rbac";
3
- import { D as u, i as R, C as S } from "./index-DTY8LR57.mjs";
1
+ import { defineComponent as z, mergeModels as N, ref as b, useModel as P, getCurrentInstance as A, resolveComponent as f, createElementBlock as v, openBlock as _, Fragment as g, createVNode as t, withCtx as l, createElementVNode as T, createTextVNode as n, toDisplayString as i, unref as p, renderList as B, createBlock as E } from "vue";
2
+ import { rbacApi as S } from "jmash-rbac";
3
+ import { D as d, i as U, C as R } from "./index-MPqnkTdo.mjs";
4
4
  import { fileApi as Y } from "jmash-core";
5
- import { i as j } from "./index-CXOeg2so.mjs";
6
- const Q = /* @__PURE__ */ M({
5
+ import { i as j } from "./index-BzNd3aeo.mjs";
6
+ const Q = /* @__PURE__ */ z({
7
7
  __name: "index",
8
8
  props: /* @__PURE__ */ N({
9
9
  task: {
@@ -16,56 +16,56 @@ const Q = /* @__PURE__ */ M({
16
16
  modelModifiers: {}
17
17
  }),
18
18
  emits: ["update:modelValue"],
19
- setup(w, { expose: h }) {
20
- u.itemBizLayDict.useValues(), u.orgIdBizDict.useValues(), u.userExtBizDict.useValues(), console.log(u.itemBizLayDict.values, "=> itemBizLayDict"), console.log(u.orgIdBizDict.values, "=> itemBizLayDict");
21
- const I = _(), V = _({}), m = P(w, "modelValue"), { proxy: z } = A(), k = w, s = _();
19
+ setup(w, { expose: V }) {
20
+ d.itemBizLayDict.useValues(), d.orgIdBizDict.useValues(), d.userExtBizDict.useValues();
21
+ const I = b(), h = b({}), m = P(w, "modelValue"), { proxy: $ } = A(), k = w, s = b();
22
22
  j.findById({ temporaryId: k.task.businessKey }).then((a) => {
23
23
  s.value = a.data;
24
24
  });
25
- const D = _([]);
26
- R.findFilesList({ actionId: k.task.businessKey }).then((a) => {
27
- D.value = a.data.results, console.log(a.data.results, "=> files");
25
+ const F = b([]);
26
+ U.findFilesList({ actionId: k.task.businessKey }).then((a) => {
27
+ F.value = a.data.results;
28
28
  });
29
- async function L(a) {
29
+ async function C(a) {
30
30
  try {
31
- const d = Y.fileUrl(a.filePath), r = await (await fetch(d)).blob(), y = window.URL.createObjectURL(r), p = document.createElement("a");
32
- p.href = y, p.download = a.fileName || "download", document.body.appendChild(p), p.click();
31
+ const u = Y.fileUrl(a.fileSrc), r = await (await fetch(u)).blob(), y = window.URL.createObjectURL(r), c = document.createElement("a");
32
+ c.href = y, c.download = a.fileName || "download", document.body.appendChild(c), c.click();
33
33
  } catch {
34
34
  }
35
35
  }
36
- h({
37
- changeModel: () => $()
36
+ V({
37
+ changeModel: () => O()
38
38
  });
39
- function $() {
39
+ function O() {
40
40
  return m.value && (m.value.selectActions = [
41
41
  { key: "true", value: "同意" },
42
42
  { key: "false", value: "不同意" }
43
- ], m.value.varName = "approved", m.value.module = "", m.value.module = S.MODULE_ITSMFLOW), new Promise((a, d) => {
43
+ ], m.value.varName = "approved", m.value.module = "", m.value.module = R.MODULE_ITSMFLOW), new Promise((a, u) => {
44
44
  var o;
45
45
  (o = I.value) == null || o.validate((r) => {
46
- r ? (m.value && (m.value.comment = ""), a(!0)) : d(!1);
46
+ r ? (m.value && (m.value.comment = ""), a(!0)) : u(!1);
47
47
  });
48
48
  });
49
49
  }
50
- return (a, d) => {
51
- const o = f("el-col"), r = f("el-form-item"), y = f("el-button"), p = f("el-row"), C = f("el-form");
52
- return v(), b(g, null, [
50
+ return (a, u) => {
51
+ const o = f("el-col"), r = f("el-form-item"), y = f("el-button"), c = f("el-row"), L = f("el-form");
52
+ return _(), v(g, null, [
53
53
  t(o, { span: 24 }, {
54
- default: l(() => d[0] || (d[0] = [
55
- F("div", { class: "title" }, "外部临时工单临时工单", -1)
54
+ default: l(() => u[0] || (u[0] = [
55
+ T("div", { class: "title" }, "外部临时工单临时工单", -1)
56
56
  ])),
57
57
  _: 1,
58
58
  __: [0]
59
59
  }),
60
- t(C, {
60
+ t(L, {
61
61
  ref_key: "taskFormRef",
62
62
  ref: I,
63
- model: V.value,
63
+ model: h.value,
64
64
  "label-width": "150px",
65
65
  class: "custom-table-form custom-form"
66
66
  }, {
67
67
  default: l(() => [
68
- t(p, null, {
68
+ t(c, null, {
69
69
  default: l(() => [
70
70
  t(o, { span: 24 }, {
71
71
  default: l(() => [
@@ -76,7 +76,7 @@ const Q = /* @__PURE__ */ M({
76
76
  default: l(() => {
77
77
  var e;
78
78
  return [
79
- i(n(c(u).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.govOrgId)), 1)
79
+ n(i(p(d).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.govOrgId)), 1)
80
80
  ];
81
81
  }),
82
82
  _: 1
@@ -93,7 +93,7 @@ const Q = /* @__PURE__ */ M({
93
93
  default: l(() => {
94
94
  var e;
95
95
  return [
96
- i(n(c(u).itemBizLayDict.getValue((e = s.value) == null ? void 0 : e.itemId)), 1)
96
+ n(i(p(d).itemBizLayDict.getValue((e = s.value) == null ? void 0 : e.itemId)), 1)
97
97
  ];
98
98
  }),
99
99
  _: 1
@@ -110,7 +110,7 @@ const Q = /* @__PURE__ */ M({
110
110
  default: l(() => {
111
111
  var e;
112
112
  return [
113
- i(n(c(U).userInfo((e = s.value) == null ? void 0 : e.createBy).realName), 1)
113
+ n(i(p(S).userInfo((e = s.value) == null ? void 0 : e.createBy).realName), 1)
114
114
  ];
115
115
  }),
116
116
  _: 1
@@ -127,7 +127,7 @@ const Q = /* @__PURE__ */ M({
127
127
  default: l(() => {
128
128
  var e;
129
129
  return [
130
- i(n(c(z).$moment.formatDate(
130
+ n(i(p($).$moment.formatDate(
131
131
  (e = s.value) == null ? void 0 : e.createTime,
132
132
  "YYYY-MM-DD HH:mm:ss"
133
133
  )), 1)
@@ -147,7 +147,7 @@ const Q = /* @__PURE__ */ M({
147
147
  default: l(() => {
148
148
  var e;
149
149
  return [
150
- i(n((e = s.value) == null ? void 0 : e.title), 1)
150
+ n(i((e = s.value) == null ? void 0 : e.title), 1)
151
151
  ];
152
152
  }),
153
153
  _: 1
@@ -164,7 +164,7 @@ const Q = /* @__PURE__ */ M({
164
164
  default: l(() => {
165
165
  var e;
166
166
  return [
167
- i(n((e = s.value) == null ? void 0 : e.content), 1)
167
+ n(i((e = s.value) == null ? void 0 : e.content), 1)
168
168
  ];
169
169
  }),
170
170
  _: 1
@@ -177,25 +177,25 @@ const Q = /* @__PURE__ */ M({
177
177
  class: "bordered-row"
178
178
  }, {
179
179
  default: l(() => [
180
- (v(!0), b(g, null, T(c(u).fileTypeDict.values.slice(2, 3), (e, x) => (v(), E(r, {
180
+ (_(!0), v(g, null, B(p(d).fileTypeDict.values.slice(2, 3), (e, x) => (_(), E(r, {
181
181
  key: e.dictCode,
182
182
  label: e.dictName
183
183
  }, {
184
184
  default: l(() => [
185
- (v(!0), b(g, null, T(D.value, (B, O) => (v(), b("div", {
186
- key: O,
185
+ (_(!0), v(g, null, B(F.value, (D, M) => (_(), v("div", {
186
+ key: M,
187
187
  class: "files-list"
188
188
  }, [
189
- F("span", null, n(B.fileName), 1),
189
+ T("span", null, i(D.fileName), 1),
190
190
  t(y, {
191
191
  type: "primary",
192
192
  link: "",
193
193
  size: "small",
194
194
  class: "icon-right",
195
- onClick: (H) => L(B)
195
+ onClick: (H) => C(D)
196
196
  }, {
197
- default: l(() => d[1] || (d[1] = [
198
- i(" 查看 ")
197
+ default: l(() => u[1] || (u[1] = [
198
+ n(" 查看 ")
199
199
  ])),
200
200
  _: 2,
201
201
  __: [1]
@@ -216,7 +216,7 @@ const Q = /* @__PURE__ */ M({
216
216
  default: l(() => {
217
217
  var e;
218
218
  return [
219
- i(n(c(u).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.outOrgId)), 1)
219
+ n(i(p(d).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.outOrgId)), 1)
220
220
  ];
221
221
  }),
222
222
  _: 1
@@ -233,7 +233,7 @@ const Q = /* @__PURE__ */ M({
233
233
  default: l(() => {
234
234
  var e;
235
235
  return [
236
- i(n(c(u).userExtBizDict.getValue((e = s.value) == null ? void 0 : e.userId)), 1)
236
+ n(i(p(d).userExtBizDict.getValue((e = s.value) == null ? void 0 : e.userId)), 1)
237
237
  ];
238
238
  }),
239
239
  _: 1
@@ -250,7 +250,7 @@ const Q = /* @__PURE__ */ M({
250
250
  default: l(() => {
251
251
  var e;
252
252
  return [
253
- i(n((e = s.value) == null ? void 0 : e.handlingPeriod), 1)
253
+ n(i((e = s.value) == null ? void 0 : e.handlingPeriod), 1)
254
254
  ];
255
255
  }),
256
256
  _: 1