xyvcard-itsm-flow 0.0.37 → 0.0.38

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 (71) hide show
  1. package/dist/{FileSaver.min-CcRexVWs.mjs → FileSaver.min-C-3rxI72.mjs} +1 -1
  2. package/dist/{edit-B8FY8M6x.mjs → edit-3YacNQ0m.mjs} +2 -2
  3. package/dist/{edit-CYO8KzcD.mjs → edit-BuyO4D5o.mjs} +2 -2
  4. package/dist/{edit-mhTHPQB-.mjs → edit-CxJiWVp8.mjs} +1 -1
  5. package/dist/{edit-tabydyPH.mjs → edit-DGswtck8.mjs} +29 -29
  6. package/dist/{edit-ndrtIw5g.mjs → edit-Ds_Iif35.mjs} +1 -1
  7. package/dist/{edit-BrYSwWm8.mjs → edit-FrMPD4Q8.mjs} +1 -1
  8. package/dist/{edit.vue_vue_type_script_setup_true_lang-bjVhQ_PJ.mjs → edit.vue_vue_type_script_setup_true_lang-B0H9i6ss.mjs} +2 -2
  9. package/dist/{edit.vue_vue_type_script_setup_true_lang-BztTRMJP.mjs → edit.vue_vue_type_script_setup_true_lang-D8jDSSFA.mjs} +1 -1
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs → edit.vue_vue_type_script_setup_true_lang-DYt_vHYp.mjs} +1 -1
  11. package/dist/{index-CoORscq-.mjs → index-B6VcbMkg.mjs} +1 -1
  12. package/dist/{index-DYF5Sb7s.mjs → index-BK-_l_X-.mjs} +3 -3
  13. package/dist/{index-CKbI3tpx.mjs → index-BPnMz825.mjs} +4 -4
  14. package/dist/{index-BAKUoBpo.mjs → index-BZgbmfjz.mjs} +72 -71
  15. package/dist/{index-hXWnm8E3.mjs → index-B_HeEcEI.mjs} +3 -3
  16. package/dist/{index-XHwUs18-.mjs → index-BvewKE7L.mjs} +4 -4
  17. package/dist/{index-Bmh2A5D0.mjs → index-Bzz32n0z.mjs} +2 -2
  18. package/dist/{index-BGtM6tx9.mjs → index-C2mvyDNS.mjs} +16 -16
  19. package/dist/{index-BbwdlA0W.mjs → index-C8OzBTVT.mjs} +4 -4
  20. package/dist/{index-Cm4MxGFZ.mjs → index-CZltgONr.mjs} +4 -4
  21. package/dist/{index-CDYf1Lun.mjs → index-CcLbblVp.mjs} +3 -3
  22. package/dist/{index-DrQ7FvTu.mjs → index-CgU6trlJ.mjs} +3 -3
  23. package/dist/{index-Dn1b7GfK.mjs → index-Cmn2lxO_.mjs} +1 -1
  24. package/dist/{index-Ba5u8NXB.mjs → index-Cogrwku9.mjs} +3 -3
  25. package/dist/{index-BcVc6IOP.mjs → index-D1SasUNc.mjs} +2 -1
  26. package/dist/index-DA3MfjHf.mjs +317 -0
  27. package/dist/{index-60w9n0dT.mjs → index-DD-VdvMt.mjs} +2 -2
  28. package/dist/{index-BAnj1Koq.mjs → index-DFBJG6cI.mjs} +55 -55
  29. package/dist/{index-Qnybzvhx.mjs → index-DSPo1jK_.mjs} +2 -2
  30. package/dist/{index-BHufDvTp.mjs → index-DWjlJOfX.mjs} +2 -2
  31. package/dist/{index-ByTfXvfu.mjs → index-D_avlTrt.mjs} +2 -2
  32. package/dist/{index-DO1JH6jO.mjs → index-DbGGQp4Z.mjs} +2 -2
  33. package/dist/{index-y58uESmU.mjs → index-DgMMgRkD.mjs} +2 -2
  34. package/dist/{index-BvoGbtCI.mjs → index-Dh1Vp2x-.mjs} +2 -2
  35. package/dist/{index-FqOQHZLY.mjs → index-DjEr5bDE.mjs} +2 -2
  36. package/dist/{index-DcgRM3T_.mjs → index-Dp0ddiVO.mjs} +1 -1
  37. package/dist/{index-BZCrZ2NM.mjs → index-DyLEMHeP.mjs} +3 -3
  38. package/dist/{index-CIn70URA.mjs → index-QfJMh7gj.mjs} +17 -17
  39. package/dist/{index-DDDjPU_6.mjs → index-qEBDruQw.mjs} +1 -1
  40. package/dist/{index-BBbYRQLd.mjs → index-rULCHGu0.mjs} +3 -3
  41. package/dist/{index-CzBjNiWz.mjs → index-tYL79USI.mjs} +12 -12
  42. package/dist/{index-seo1ROVp.mjs → index-tyZIu7Pu.mjs} +3 -3
  43. package/dist/{index-C3a-IeXB.mjs → index-xS9vmw1f.mjs} +3 -3
  44. package/dist/index.mjs +1 -1
  45. package/dist/{info-CHxS6e-5.mjs → info-2yqOgs3g.mjs} +1 -1
  46. package/dist/{info-CQu4kti_.mjs → info-5b0MsAVP.mjs} +1 -1
  47. package/dist/{info-CRbFsX7X.mjs → info-B0a03DPy.mjs} +1 -1
  48. package/dist/{info-B1nuQXGG.mjs → info-D4SI5dEl.mjs} +1 -1
  49. package/dist/info-D8pJ4cqt.mjs +4 -0
  50. package/dist/info-DL-3XM_F.mjs +4 -0
  51. package/dist/info-Dauh_znj.mjs +4 -0
  52. package/dist/info-DqJrwwrx.mjs +4 -0
  53. package/dist/info-vZkqfj4d.mjs +4 -0
  54. package/dist/{info.vue_vue_type_script_setup_true_lang-B6I27uus.mjs → info.vue_vue_type_script_setup_true_lang-BNqS_vNl.mjs} +2 -2
  55. package/dist/{info.vue_vue_type_script_setup_true_lang-CJKMJgJT.mjs → info.vue_vue_type_script_setup_true_lang-BP1NoBBM.mjs} +51 -50
  56. package/dist/{info.vue_vue_type_script_setup_true_lang-DnfgKcgP.mjs → info.vue_vue_type_script_setup_true_lang-CLHSx_HM.mjs} +2 -2
  57. package/dist/{info.vue_vue_type_script_setup_true_lang-JgJStqvz.mjs → info.vue_vue_type_script_setup_true_lang-CkiWEbLP.mjs} +28 -27
  58. package/dist/{info.vue_vue_type_script_setup_true_lang-CIRdXvCE.mjs → info.vue_vue_type_script_setup_true_lang-D0llCWuF.mjs} +2 -2
  59. package/dist/{info.vue_vue_type_script_setup_true_lang-DA3rqMgU.mjs → info.vue_vue_type_script_setup_true_lang-DDZO6qCX.mjs} +11 -11
  60. package/dist/{info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs → info.vue_vue_type_script_setup_true_lang-DjqfjKao.mjs} +1 -1
  61. package/dist/{info.vue_vue_type_script_setup_true_lang-Ca_011gq.mjs → info.vue_vue_type_script_setup_true_lang-IQSZ0nn1.mjs} +2 -2
  62. package/dist/{info.vue_vue_type_script_setup_true_lang-CEuLYRI4.mjs → info.vue_vue_type_script_setup_true_lang-ipuXshVV.mjs} +1 -1
  63. package/dist/style.css +1 -1
  64. package/dts/lang/itsm-flow/zh-cn.d.ts +1 -0
  65. package/package.json +2 -2
  66. package/dist/index-DqA8Hu3s.mjs +0 -316
  67. package/dist/info-D2SRN11N.mjs +0 -4
  68. package/dist/info-Dp-hn9ce.mjs +0 -4
  69. package/dist/info-M92gprUH.mjs +0 -4
  70. package/dist/info-XOKKyoyw.mjs +0 -4
  71. package/dist/info-mSFJ4xKX.mjs +0 -4
@@ -180,6 +180,7 @@ const Di = {}, Ti = {
180
180
  contentRequired: "请输入事项内容",
181
181
  outOrgIdRequired: "请选择指派外协单位",
182
182
  userIdRequired: "请选择指派用户",
183
+ assignUser: "指派给",
183
184
  finishDateRequired: "请选择完成时间",
184
185
  completionRequired: "请输入反馈内容",
185
186
  handlingPeriodRequired: "请输入办理期限",
@@ -4448,7 +4449,7 @@ class Td {
4448
4449
  });
4449
4450
  }
4450
4451
  }
4451
- const Vd = new Td(), Rd = /* @__PURE__ */ Object.assign({ "./views/item-flow-orders-interior-info/index.vue": () => import("./index-DrQ7FvTu.mjs"), "./views/item-flow-orders-interior-info/info.vue": () => import("./info-M92gprUH.mjs"), "./views/item-flow-orders-interior/edit.vue": () => import("./edit-tabydyPH.mjs"), "./views/item-flow-orders-interior/index.vue": () => import("./index-Cm4MxGFZ.mjs"), "./views/item-flow-orders-interior/info.vue": () => import("./info-B1nuQXGG.mjs"), "./views/itsm-flow-acceptance-info/index.vue": () => import("./index-ByTfXvfu.mjs"), "./views/itsm-flow-acceptance-info/info.vue": () => import("./info-CHxS6e-5.mjs"), "./views/itsm-flow-acceptance/edit.vue": () => import("./edit-BrYSwWm8.mjs"), "./views/itsm-flow-acceptance/index.vue": () => import("./index-60w9n0dT.mjs"), "./views/itsm-flow-entrust-info/index.vue": () => import("./index-BBbYRQLd.mjs"), "./views/itsm-flow-entrust-info/info.vue": () => import("./info-CRbFsX7X.mjs"), "./views/itsm-flow-entrust/edit.vue": () => import("./edit-ndrtIw5g.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-DYF5Sb7s.mjs"), "./views/itsm-flow-reckoning-info/index.vue": () => import("./index-Qnybzvhx.mjs"), "./views/itsm-flow-reckoning-info/info.vue": () => import("./info-D2SRN11N.mjs"), "./views/itsm-flow-reckoning/edit.vue": () => import("./edit-mhTHPQB-.mjs"), "./views/itsm-flow-reckoning/index.vue": () => import("./index-FqOQHZLY.mjs"), "./views/itsm-flow-spare-parts-demand-data/index.vue": () => import("./index-y58uESmU.mjs"), "./views/itsm-flow-spare-parts-info/index.vue": () => import("./index-BZCrZ2NM.mjs"), "./views/itsm-flow-spare-parts-info/info.vue": () => import("./info-Dp-hn9ce.mjs"), "./views/itsm-flow-spare-parts/edit.vue": () => import("./edit-CYO8KzcD.mjs"), "./views/itsm-flow-spare-parts/index.vue": () => import("./index-CKbI3tpx.mjs"), "./views/itsm-flow-spare-parts/info.vue": () => import("./info-mSFJ4xKX.mjs"), "./views/itsm-flow-temporary-info/index.vue": () => import("./index-Ba5u8NXB.mjs"), "./views/itsm-flow-temporary-info/info.vue": () => import("./info-XOKKyoyw.mjs"), "./views/itsm-flow-temporary/edit.vue": () => import("./edit-B8FY8M6x.mjs"), "./views/itsm-flow-temporary/index.vue": () => import("./index-BbwdlA0W.mjs"), "./views/itsm-flow-temporary/info.vue": () => import("./info-CQu4kti_.mjs") }), na = () => import("./index-hXWnm8E3.mjs"), Id = () => import("./index-Bmh2A5D0.mjs"), aa = () => import("./index-CDYf1Lun.mjs"), Pd = () => import("./index-DcgRM3T_.mjs"), ia = () => import("./index-C3a-IeXB.mjs"), xd = () => import("./index-DDDjPU_6.mjs"), sa = () => import("./index-BvoGbtCI.mjs"), Yd = () => import("./index-DO1JH6jO.mjs"), Fd = () => import("./index-BHufDvTp.mjs"), Ed = () => import("./index-seo1ROVp.mjs"), Ad = () => import("./index-XHwUs18-.mjs"), Nd = () => import("./index-BAKUoBpo.mjs"), Wd = () => import("./index-DqA8Hu3s.mjs"), Cd = () => import("./index-BGtM6tx9.mjs"), $d = () => import("./index-CzBjNiWz.mjs"), Ld = () => import("./index-CIn70URA.mjs"), Ud = () => import("./index-BAnj1Koq.mjs"), Bd = {
4452
+ const Vd = new Td(), Rd = /* @__PURE__ */ Object.assign({ "./views/item-flow-orders-interior-info/index.vue": () => import("./index-CgU6trlJ.mjs"), "./views/item-flow-orders-interior-info/info.vue": () => import("./info-B0a03DPy.mjs"), "./views/item-flow-orders-interior/edit.vue": () => import("./edit-DGswtck8.mjs"), "./views/item-flow-orders-interior/index.vue": () => import("./index-CZltgONr.mjs"), "./views/item-flow-orders-interior/info.vue": () => import("./info-2yqOgs3g.mjs"), "./views/itsm-flow-acceptance-info/index.vue": () => import("./index-D_avlTrt.mjs"), "./views/itsm-flow-acceptance-info/info.vue": () => import("./info-DqJrwwrx.mjs"), "./views/itsm-flow-acceptance/edit.vue": () => import("./edit-CxJiWVp8.mjs"), "./views/itsm-flow-acceptance/index.vue": () => import("./index-DD-VdvMt.mjs"), "./views/itsm-flow-entrust-info/index.vue": () => import("./index-rULCHGu0.mjs"), "./views/itsm-flow-entrust-info/info.vue": () => import("./info-5b0MsAVP.mjs"), "./views/itsm-flow-entrust/edit.vue": () => import("./edit-Ds_Iif35.mjs"), "./views/itsm-flow-entrust/index.vue": () => import("./index-BK-_l_X-.mjs"), "./views/itsm-flow-reckoning-info/index.vue": () => import("./index-DSPo1jK_.mjs"), "./views/itsm-flow-reckoning-info/info.vue": () => import("./info-vZkqfj4d.mjs"), "./views/itsm-flow-reckoning/edit.vue": () => import("./edit-FrMPD4Q8.mjs"), "./views/itsm-flow-reckoning/index.vue": () => import("./index-DjEr5bDE.mjs"), "./views/itsm-flow-spare-parts-demand-data/index.vue": () => import("./index-DgMMgRkD.mjs"), "./views/itsm-flow-spare-parts-info/index.vue": () => import("./index-DyLEMHeP.mjs"), "./views/itsm-flow-spare-parts-info/info.vue": () => import("./info-D8pJ4cqt.mjs"), "./views/itsm-flow-spare-parts/edit.vue": () => import("./edit-BuyO4D5o.mjs"), "./views/itsm-flow-spare-parts/index.vue": () => import("./index-BPnMz825.mjs"), "./views/itsm-flow-spare-parts/info.vue": () => import("./info-DL-3XM_F.mjs"), "./views/itsm-flow-temporary-info/index.vue": () => import("./index-Cogrwku9.mjs"), "./views/itsm-flow-temporary-info/info.vue": () => import("./info-D4SI5dEl.mjs"), "./views/itsm-flow-temporary/edit.vue": () => import("./edit-3YacNQ0m.mjs"), "./views/itsm-flow-temporary/index.vue": () => import("./index-C8OzBTVT.mjs"), "./views/itsm-flow-temporary/info.vue": () => import("./info-Dauh_znj.mjs") }), na = () => import("./index-B_HeEcEI.mjs"), Id = () => import("./index-Bzz32n0z.mjs"), aa = () => import("./index-CcLbblVp.mjs"), Pd = () => import("./index-Dp0ddiVO.mjs"), ia = () => import("./index-xS9vmw1f.mjs"), xd = () => import("./index-qEBDruQw.mjs"), sa = () => import("./index-Dh1Vp2x-.mjs"), Yd = () => import("./index-DbGGQp4Z.mjs"), Fd = () => import("./index-DWjlJOfX.mjs"), Ed = () => import("./index-tyZIu7Pu.mjs"), Ad = () => import("./index-BvewKE7L.mjs"), Nd = () => import("./index-BZgbmfjz.mjs"), Wd = () => import("./index-DA3MfjHf.mjs"), Cd = () => import("./index-C2mvyDNS.mjs"), $d = () => import("./index-tYL79USI.mjs"), Ld = () => import("./index-QfJMh7gj.mjs"), Ud = () => import("./index-DFBJG6cI.mjs"), Bd = {
4452
4453
  install(e) {
4453
4454
  bi(Rd, 7), Ri(Mi), A("TaskItsmFlowEntrust", na), A("TaskItsmFlowEntrustEdit", Id), A("TaskItsmFlowEntrustView", na), A("TaskItsmFlowAcceptance", aa), A(
4454
4455
  "TaskItsmFlowAcceptanceEdit",
@@ -0,0 +1,317 @@
1
+ import { defineComponent as q, mergeModels as H, ref as y, useModel as W, reactive as G, computed as B, nextTick as J, resolveComponent as m, createElementBlock as _, openBlock as f, Fragment as I, createVNode as t, withCtx as e, createElementVNode as N, unref as d, createTextVNode as s, toDisplayString as n, renderList as O, createBlock as $, createCommentVNode as Q } from "vue";
2
+ import { useUserStoreHook as X, fileApi as h } from "jmash-core";
3
+ import "element-plus";
4
+ import { i as Y } from "./index-D1SasUNc.mjs";
5
+ import { D as u, i as L, C as Z } from "./index-B6VcbMkg.mjs";
6
+ const oe = /* @__PURE__ */ q({
7
+ __name: "index",
8
+ props: /* @__PURE__ */ H({
9
+ task: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: {},
16
+ modelModifiers: {}
17
+ }),
18
+ emits: ["update:modelValue"],
19
+ setup(D, { expose: z }) {
20
+ u.orgIdBizDict.useValues();
21
+ const S = y(), p = W(D, "modelValue"), P = X();
22
+ u.itemBizLayDict.useValues(), u.userExtBizDict.useValues();
23
+ const i = y({}), b = y([]), U = y((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = D;
24
+ let C = G({});
25
+ L.findFilesList({ actionId: g.task.businessKey }).then((l) => {
26
+ b.value = l.data.results;
27
+ });
28
+ const w = B(() => {
29
+ var a;
30
+ const o = ((a = u.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : a.dictCode) || "";
31
+ return b.value.filter((r) => r.fileSort === o);
32
+ }), A = B(() => {
33
+ var o;
34
+ const l = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
35
+ return b.value.filter((a) => a.fileSort === l);
36
+ });
37
+ async function M(l) {
38
+ try {
39
+ const o = h.fileUrl(l.fileSrc), r = await (await fetch(o)).blob(), F = window.URL.createObjectURL(r), c = document.createElement("a");
40
+ c.href = F, c.download = l.fileName || "download", document.body.appendChild(c), c.click();
41
+ } catch {
42
+ }
43
+ }
44
+ Y.findById({ temporaryId: g.task.businessKey }).then(({ data: l }) => {
45
+ i.value = { ...l }, J(() => {
46
+ i.value ? Object.assign(i.value, l) : i.value = { ...l }, E();
47
+ });
48
+ });
49
+ function E() {
50
+ L.findFilesList({ actionId: g.task.businessKey }).then(({ data: l }) => {
51
+ l.results && Array.isArray(l.results) && (C.files = l.results.map((o) => {
52
+ let a = "";
53
+ return o.fileName && (a = o.fileSort || o.type || ""), {
54
+ fileName: o.fileName || "",
55
+ fileId: o.fileId || "",
56
+ fileSort: a,
57
+ fileSrc: o.fileSrc || o.filePath || ""
58
+ };
59
+ }));
60
+ });
61
+ }
62
+ z({
63
+ changeModel: () => R()
64
+ });
65
+ function R() {
66
+ return p.value && (p.value.selectActions = [
67
+ { key: "true", value: "同意" },
68
+ { key: "false", value: "不同意" }
69
+ ], p.value.varName = "approved", p.value.module = "", p.value.module = Z.MODULE_ITSMFLOW), new Promise((l, o) => {
70
+ var a;
71
+ (a = S.value) == null || a.validate((r) => {
72
+ r ? (p.value && (p.value.comment = ""), l(!0)) : o(!1);
73
+ });
74
+ });
75
+ }
76
+ return (l, o) => {
77
+ const a = m("el-col"), r = m("el-form-item"), F = m("el-button"), c = m("el-image"), j = m("el-row"), K = m("el-form");
78
+ return f(), _(I, null, [
79
+ t(a, { span: 24 }, {
80
+ default: e(() => o[0] || (o[0] = [
81
+ N("div", { class: "title" }, "外部临时工单", -1)
82
+ ])),
83
+ _: 1,
84
+ __: [0]
85
+ }),
86
+ t(K, {
87
+ ref_key: "taskFormRef",
88
+ ref: S,
89
+ model: d(C),
90
+ "label-width": "150px",
91
+ class: "custom-table-form"
92
+ }, {
93
+ default: e(() => [
94
+ t(j, null, {
95
+ default: e(() => [
96
+ t(a, { span: 24 }, {
97
+ default: e(() => [
98
+ t(r, {
99
+ label: l.$t("itsmFlowSpareParts.govOrgId"),
100
+ prop: "govOrgId"
101
+ }, {
102
+ default: e(() => [
103
+ s(n(d(u).orgIdBizDict.getValue(i.value.govOrgId)), 1)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["label"])
107
+ ]),
108
+ _: 1
109
+ }),
110
+ t(a, { span: 24 }, {
111
+ default: e(() => [
112
+ t(r, {
113
+ label: l.$t("itsmFlowSpareParts.itsmFlowItemId"),
114
+ prop: "itemId"
115
+ }, {
116
+ default: e(() => [
117
+ s(n(d(u).itemBizLayDict.getValue(i.value.itemId)), 1)
118
+ ]),
119
+ _: 1
120
+ }, 8, ["label"])
121
+ ]),
122
+ _: 1
123
+ }),
124
+ t(a, { span: 12 }, {
125
+ default: e(() => [
126
+ t(r, {
127
+ label: l.$t("itsmFlowTemporary.createBy")
128
+ }, {
129
+ default: e(() => [
130
+ s(n(d(P).user.realName), 1)
131
+ ]),
132
+ _: 1
133
+ }, 8, ["label"])
134
+ ]),
135
+ _: 1
136
+ }),
137
+ t(a, { span: 12 }, {
138
+ default: e(() => [
139
+ t(r, {
140
+ label: l.$t("itsmFlowTemporary.createTime"),
141
+ prop: "createTime"
142
+ }, {
143
+ default: e(() => [
144
+ s(n(U.value), 1)
145
+ ]),
146
+ _: 1
147
+ }, 8, ["label"])
148
+ ]),
149
+ _: 1
150
+ }),
151
+ t(a, { span: 24 }, {
152
+ default: e(() => [
153
+ t(r, {
154
+ label: l.$t("itsmFlowTemporary.title"),
155
+ prop: "title"
156
+ }, {
157
+ default: e(() => [
158
+ s(n(i.value.title), 1)
159
+ ]),
160
+ _: 1
161
+ }, 8, ["label"])
162
+ ]),
163
+ _: 1
164
+ }),
165
+ t(a, { span: 24 }, {
166
+ default: e(() => [
167
+ t(r, {
168
+ label: l.$t("itsmFlowTemporary.content"),
169
+ prop: "content"
170
+ }, {
171
+ default: e(() => [
172
+ s(n(i.value.content), 1)
173
+ ]),
174
+ _: 1
175
+ }, 8, ["label"])
176
+ ]),
177
+ _: 1
178
+ }),
179
+ t(a, { span: 24 }, {
180
+ default: e(() => [
181
+ t(r, { label: "附件" }, {
182
+ default: e(() => [
183
+ (f(!0), _(I, null, O(A.value, (v, T) => (f(), _("div", {
184
+ key: T,
185
+ class: "files-list"
186
+ }, [
187
+ N("span", null, n(v.fileName), 1),
188
+ t(F, {
189
+ type: "primary",
190
+ link: "",
191
+ size: "small",
192
+ class: "icon-right",
193
+ onClick: (k) => M(v)
194
+ }, {
195
+ default: e(() => o[1] || (o[1] = [
196
+ s(" 查看 ")
197
+ ])),
198
+ _: 2,
199
+ __: [1]
200
+ }, 1032, ["onClick"])
201
+ ]))), 128))
202
+ ]),
203
+ _: 1
204
+ })
205
+ ]),
206
+ _: 1
207
+ }),
208
+ t(a, { span: 24 }, {
209
+ default: e(() => [
210
+ t(r, {
211
+ label: l.$t("itsmFlowTemporary.outOrgIdTemporary"),
212
+ prop: "outOrgId"
213
+ }, {
214
+ default: e(() => [
215
+ s(n(d(u).orgIdBizDict.getValue(i.value.outOrgId)), 1)
216
+ ]),
217
+ _: 1
218
+ }, 8, ["label"])
219
+ ]),
220
+ _: 1
221
+ }),
222
+ t(a, { span: 24 }, {
223
+ default: e(() => [
224
+ t(r, {
225
+ label: l.$t("itsmFlowTemporary.userIdTemporary"),
226
+ prop: "userId"
227
+ }, {
228
+ default: e(() => [
229
+ s(n(d(u).userExtBizDict.getValue(i.value.userId)), 1)
230
+ ]),
231
+ _: 1
232
+ }, 8, ["label"])
233
+ ]),
234
+ _: 1
235
+ }),
236
+ t(a, { span: 12 }, {
237
+ default: e(() => [
238
+ t(r, {
239
+ label: l.$t("itsmFlowTemporary.handlingPeriod"),
240
+ prop: "handlingPeriod"
241
+ }, {
242
+ default: e(() => [
243
+ s(n(i.value.handlingPeriod), 1)
244
+ ]),
245
+ _: 1
246
+ }, 8, ["label"])
247
+ ]),
248
+ _: 1
249
+ }),
250
+ t(a, { span: 12 }, {
251
+ default: e(() => [
252
+ t(r, {
253
+ label: l.$t("itsmFlowTemporary.finishDate"),
254
+ prop: "finishDate"
255
+ }, {
256
+ default: e(() => [
257
+ s(n(i.value.finishDate), 1)
258
+ ]),
259
+ _: 1
260
+ }, 8, ["label"])
261
+ ]),
262
+ _: 1
263
+ }),
264
+ t(a, { span: 24 }, {
265
+ default: e(() => [
266
+ t(r, {
267
+ label: l.$t("itsmFlowTemporary.completion"),
268
+ prop: "completion"
269
+ }, {
270
+ default: e(() => [
271
+ s(n(i.value.completion), 1)
272
+ ]),
273
+ _: 1
274
+ }, 8, ["label"])
275
+ ]),
276
+ _: 1
277
+ }),
278
+ t(a, { span: 24 }, {
279
+ default: e(() => [
280
+ (f(!0), _(I, null, O(d(u).fileTypeDict.values.slice(3, 4), (v, T) => (f(), $(r, {
281
+ key: v.dictCode,
282
+ label: v.dictName,
283
+ prop: "files." + T + ".fileSrc"
284
+ }, {
285
+ default: e(() => {
286
+ var k, V;
287
+ return [
288
+ w.value[0] ? (f(), $(c, {
289
+ key: 0,
290
+ src: d(h).imageUrl((k = w.value[0]) == null ? void 0 : k.fileSrc, 100, 100),
291
+ "preview-src-list": [
292
+ d(h).imageUrl((V = w.value[0]) == null ? void 0 : V.fileSrc)
293
+ ],
294
+ "preview-teleported": "",
295
+ "hide-on-click-modal": "",
296
+ fit: "cover"
297
+ }, null, 8, ["src", "preview-src-list"])) : Q("", !0)
298
+ ];
299
+ }),
300
+ _: 2
301
+ }, 1032, ["label", "prop"]))), 128))
302
+ ]),
303
+ _: 1
304
+ })
305
+ ]),
306
+ _: 1
307
+ })
308
+ ]),
309
+ _: 1
310
+ }, 8, ["model"])
311
+ ], 64);
312
+ };
313
+ }
314
+ });
315
+ export {
316
+ oe as default
317
+ };
@@ -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-CoORscq-.mjs";
5
- import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-9PY1bpNe.mjs";
4
+ import { D as N, C as Z, i as x } from "./index-B6VcbMkg.mjs";
5
+ import { _ as ee } from "./edit.vue_vue_type_script_setup_true_lang-DYt_vHYp.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) {
@@ -1,7 +1,7 @@
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";
1
+ import { defineComponent as P, mergeModels as z, getCurrentInstance as R, ref as v, useModel as Y, nextTick as j, resolveComponent as y, createElementBlock as p, openBlock as c, Fragment as k, createVNode as l, withCtx as e, createElementVNode as F, createTextVNode as r, toDisplayString as u, renderList as g, unref as w, createBlock as M } from "vue";
2
2
  import "element-plus";
3
- import { i as H } from "./index-BcVc6IOP.mjs";
4
- import { D as _, i as K, C as W } from "./index-CoORscq-.mjs";
3
+ import { i as H } from "./index-D1SasUNc.mjs";
4
+ import { D as _, i as K, C as W } from "./index-B6VcbMkg.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
7
  const Q = /* @__PURE__ */ P({
@@ -17,20 +17,20 @@ const Q = /* @__PURE__ */ P({
17
17
  modelModifiers: {}
18
18
  }),
19
19
  emits: ["update:modelValue"],
20
- setup(h, { expose: V }) {
21
- const { proxy: x } = R(), B = q();
20
+ setup(h, { expose: U }) {
21
+ const { proxy: V } = R(), x = q();
22
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
23
+ const L = v(), m = Y(h, "modelValue"), B = v({}), T = v([]), $ = v([]), C = v([]), n = v({}), I = h;
24
+ K.findFilesList({ actionId: I.task.businessKey }).then((t) => {
25
+ var a, f;
26
+ T.value = t.data.results;
27
+ const s = ((a = _.fileTypeDict.values.slice(2, 3)[0]) == null ? void 0 : a.dictCode) || "", o = ((f = _.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : f.dictCode) || "";
28
+ $.value = T.value.filter(
29
+ (i) => i.fileSort === s
30
+ ), C.value = T.value.filter(
31
+ (i) => i.fileSort === o
32
32
  ), console.log(C.value, "=>filesList2 ");
33
- }), H.findById({ temporaryId: $.task.businessKey }).then(({ data: t }) => {
33
+ }), H.findById({ temporaryId: I.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
  });
@@ -40,28 +40,28 @@ const Q = /* @__PURE__ */ P({
40
40
  console.log(t, "=> item");
41
41
  const s = G.fileUrl(t.fileSrc);
42
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();
43
+ const a = await (await fetch(s)).blob(), f = window.URL.createObjectURL(a), i = document.createElement("a");
44
+ i.href = f, i.download = t.fileName || "download", document.body.appendChild(i), i.click();
45
45
  } catch {
46
46
  }
47
47
  }
48
- V({
49
- changeModel: () => S()
48
+ U({
49
+ changeModel: () => O()
50
50
  });
51
- function S() {
51
+ function O() {
52
52
  return m.value && (m.value.selectActions = [
53
53
  { key: "true", value: "同意" },
54
54
  { key: "false", value: "不同意" }
55
55
  ], m.value.varName = "approved", m.value.module = "", m.value.module = W.MODULE_ITSMFLOW), new Promise((t, s) => {
56
56
  var o;
57
- (o = I.value) == null || o.validate((a) => {
57
+ (o = L.value) == null || o.validate((a) => {
58
58
  a ? (m.value && (m.value.comment = ""), t(!0)) : s(!1);
59
59
  });
60
60
  });
61
61
  }
62
62
  return (t, s) => {
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, [
63
+ const o = y("el-col"), a = y("el-form-item"), f = y("el-button"), i = y("el-row"), S = y("el-form");
64
+ return c(), p(k, null, [
65
65
  l(o, { span: 24 }, {
66
66
  default: e(() => s[0] || (s[0] = [
67
67
  F("div", { class: "title" }, "内部临时工单", -1)
@@ -69,15 +69,15 @@ const Q = /* @__PURE__ */ P({
69
69
  _: 1,
70
70
  __: [0]
71
71
  }),
72
- l(U, {
72
+ l(S, {
73
73
  ref_key: "taskFormRef",
74
- ref: I,
75
- model: O.value,
74
+ ref: L,
75
+ model: B.value,
76
76
  "label-width": "150px",
77
77
  class: "custom-table-form custom-form"
78
78
  }, {
79
79
  default: e(() => [
80
- l(r, null, {
80
+ l(i, null, {
81
81
  default: e(() => [
82
82
  l(o, { span: 24 }, {
83
83
  default: e(() => [
@@ -86,7 +86,7 @@ const Q = /* @__PURE__ */ P({
86
86
  prop: "title"
87
87
  }, {
88
88
  default: e(() => [
89
- i(u(n.value.title), 1)
89
+ r(u(n.value.title), 1)
90
90
  ]),
91
91
  _: 1
92
92
  }, 8, ["label"])
@@ -100,7 +100,7 @@ const Q = /* @__PURE__ */ P({
100
100
  prop: "content"
101
101
  }, {
102
102
  default: e(() => [
103
- i(u(n.value.content), 1)
103
+ r(u(n.value.content), 1)
104
104
  ]),
105
105
  _: 1
106
106
  }, 8, ["label"])
@@ -109,25 +109,25 @@ const Q = /* @__PURE__ */ P({
109
109
  }),
110
110
  l(o, { span: 24 }, {
111
111
  default: e(() => [
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
+ (c(!0), p(k, null, g(w(_).fileTypeDict.values.slice(2, 3), (d, E) => (c(), M(a, {
113
+ key: d.dictCode,
114
+ label: d.dictName
115
115
  }, {
116
116
  default: e(() => [
117
- (d(!0), f(k, null, T(L.value, (y, D) => (d(), f("div", {
117
+ (c(!0), p(k, null, g($.value, (b, D) => (c(), p("div", {
118
118
  key: D,
119
119
  class: "files-list"
120
120
  }, [
121
- F("span", null, u(y.fileName), 1),
122
- l(p, {
121
+ F("span", null, u(b.fileName), 1),
122
+ l(f, {
123
123
  type: "primary",
124
124
  link: "",
125
125
  size: "small",
126
126
  class: "icon-right",
127
- onClick: (A) => N(y)
127
+ onClick: (A) => N(b)
128
128
  }, {
129
129
  default: e(() => s[1] || (s[1] = [
130
- i(" 查看 ")
130
+ r(" 查看 ")
131
131
  ])),
132
132
  _: 2,
133
133
  __: [1]
@@ -145,7 +145,7 @@ const Q = /* @__PURE__ */ P({
145
145
  label: t.$t("itsmFlowTemporary.createBy")
146
146
  }, {
147
147
  default: e(() => [
148
- i(u(w(B).user.realName), 1)
148
+ r(u(w(x).user.realName), 1)
149
149
  ]),
150
150
  _: 1
151
151
  }, 8, ["label"])
@@ -159,10 +159,10 @@ const Q = /* @__PURE__ */ P({
159
159
  prop: "createTime"
160
160
  }, {
161
161
  default: e(() => {
162
- var c;
162
+ var d;
163
163
  return [
164
- i(u(w(x).$moment.formatDate(
165
- (c = n.value) == null ? void 0 : c.createTime,
164
+ r(u(w(V).$moment.formatDate(
165
+ (d = n.value) == null ? void 0 : d.createTime,
166
166
  "YYYY-MM-DD HH:mm:ss"
167
167
  )), 1)
168
168
  ];
@@ -175,11 +175,11 @@ const Q = /* @__PURE__ */ P({
175
175
  l(o, { span: 24 }, {
176
176
  default: e(() => [
177
177
  l(a, {
178
- label: t.$t("itsmFlowTemporary.userIdTemporary"),
178
+ label: t.$t("itsmFlowTemporary.assignUser"),
179
179
  prop: "userId"
180
180
  }, {
181
181
  default: e(() => [
182
- i(u(w(_).userExtBizDict.getValue(n.value.userId)), 1)
182
+ r(u(w(_).userExtBizDict.getValue(n.value.userId)), 1)
183
183
  ]),
184
184
  _: 1
185
185
  }, 8, ["label"])
@@ -193,7 +193,7 @@ const Q = /* @__PURE__ */ P({
193
193
  prop: "handlingPeriod"
194
194
  }, {
195
195
  default: e(() => [
196
- i(u(n.value.handlingPeriod), 1)
196
+ r(u(n.value.handlingPeriod), 1)
197
197
  ]),
198
198
  _: 1
199
199
  }, 8, ["label"])
@@ -207,7 +207,7 @@ const Q = /* @__PURE__ */ P({
207
207
  prop: "finishDate"
208
208
  }, {
209
209
  default: e(() => [
210
- i(u(n.value.finishDate), 1)
210
+ r(u(n.value.finishDate), 1)
211
211
  ]),
212
212
  _: 1
213
213
  }, 8, ["label"])
@@ -221,7 +221,7 @@ const Q = /* @__PURE__ */ P({
221
221
  prop: "completion"
222
222
  }, {
223
223
  default: e(() => [
224
- i(u(n.value.completion), 1)
224
+ r(u(n.value.completion), 1)
225
225
  ]),
226
226
  _: 1
227
227
  }, 8, ["label"])
@@ -230,25 +230,25 @@ const Q = /* @__PURE__ */ P({
230
230
  }),
231
231
  l(o, { span: 24 }, {
232
232
  default: e(() => [
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
+ (c(!0), p(k, null, g(w(_).fileTypeDict.values.slice(3, 4), (d, E) => (c(), M(a, {
234
+ key: d.dictCode,
235
+ label: d.dictName
236
236
  }, {
237
237
  default: e(() => [
238
- (d(!0), f(k, null, T(C.value, (y, D) => (d(), f("div", {
238
+ (c(!0), p(k, null, g(C.value, (b, D) => (c(), p("div", {
239
239
  key: D,
240
240
  class: "files-list"
241
241
  }, [
242
- F("span", null, u(y.fileName), 1),
243
- l(p, {
242
+ F("span", null, u(b.fileName), 1),
243
+ l(f, {
244
244
  type: "primary",
245
245
  link: "",
246
246
  size: "small",
247
247
  class: "icon-right",
248
- onClick: (A) => N(y)
248
+ onClick: (A) => N(b)
249
249
  }, {
250
250
  default: e(() => s[2] || (s[2] = [
251
- i(" 查看 ")
251
+ r(" 查看 ")
252
252
  ])),
253
253
  _: 2,
254
254
  __: [2]
@@ -269,7 +269,7 @@ const Q = /* @__PURE__ */ P({
269
269
  ], 64);
270
270
  };
271
271
  }
272
- }), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-c6d4eacd"]]);
272
+ }), ae = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-0b2c3fff"]]);
273
273
  export {
274
274
  ae as default
275
275
  };
@@ -2,8 +2,8 @@ import { defineComponent as H, ref as N, reactive as W, resolveComponent as u, r
2
2
  import { useTableHooks as M } from "jmash-core";
3
3
  import { useI18n as X } from "vue-i18n";
4
4
  import { i as Y } from "./common-Cwl5jzlM.mjs";
5
- import { D as k, O as Z, C as x } from "./index-CoORscq-.mjs";
6
- import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-CEuLYRI4.mjs";
5
+ import { D as k, O as Z, C as x } from "./index-B6VcbMkg.mjs";
6
+ import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-ipuXshVV.mjs";
7
7
  const le = { class: "app-container" }, oe = { class: "search-container" }, te = ["onClick"], de = /* @__PURE__ */ H({
8
8
  __name: "index",
9
9
  setup(ne) {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as U, mergeModels as K, ref as w, useModel as j, resolveComponent as b, createElementBlock as g, openBlock as m, Fragment as $, createVNode as t, withCtx as e, createElementVNode as v, createBlock as S, createCommentVNode as D, createTextVNode as n, toDisplayString as s, unref as y, renderList as M } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as W } from "vue-i18n";
4
- import { D as f, i as q, C as G } from "./index-CoORscq-.mjs";
5
- import { i as H, a as J } from "./index-Dn1b7GfK.mjs";
4
+ import { D as f, i as q, C as G } from "./index-B6VcbMkg.mjs";
5
+ import { i as H, a as J } from "./index-Cmn2lxO_.mjs";
6
6
  import { fileApi as Q } from "jmash-core";
7
7
  import { rbacApi as X } from "jmash-rbac";
8
8
  const re = /* @__PURE__ */ U({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as H, ref as V, reactive as W, resolveComponent as u, resolveDirective as G, createElementBlock as h, openBlock as g, createElementVNode as y, createVNode as t, createBlock as S, createCommentVNode as D, withCtx as a, withKeys as c, unref as n, createTextVNode as k, toDisplayString as d, withDirectives as J, isRef as U } from "vue";
2
2
  import { useTableHooks as M } from "jmash-core";
3
3
  import { useI18n as X } from "vue-i18n";
4
- import { D as w, O as Y, C as Z, i as x } from "./index-CoORscq-.mjs";
5
- import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-BSPpLDkD.mjs";
4
+ import { D as w, O as Y, C as Z, i as x } from "./index-B6VcbMkg.mjs";
5
+ import { _ as ee } from "./info.vue_vue_type_script_setup_true_lang-DjqfjKao.mjs";
6
6
  const le = { class: "app-container" }, te = { class: "search-container" }, ae = ["onClick"], me = /* @__PURE__ */ H({
7
7
  __name: "index",
8
8
  setup(oe) {