xyvcard-itsm-flow 0.0.20 → 0.0.22

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 (90) hide show
  1. package/dist/{FileSaver.min-5d27MsC6.mjs → FileSaver.min-X2_RihtX.mjs} +29 -28
  2. package/dist/_commonjsHelpers-BVfed4GL.mjs +28 -0
  3. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  4. package/dist/{edit-DIh0NEYf.mjs → edit-B4N5cmbv.mjs} +1 -1
  5. package/dist/edit-C1Zif4Ov.mjs +492 -0
  6. package/dist/edit-CUiT79xP.mjs +794 -0
  7. package/dist/{edit-DdzFTqhg.mjs → edit-Crp2NJw2.mjs} +1 -1
  8. package/dist/{edit-Vw2XQ1u6.mjs → edit-Da4XYqIW.mjs} +1 -1
  9. package/dist/edit-z2fcZzRN.mjs +378 -0
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-ClkzOaAV.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-DZj5V6Mk.mjs} +5 -4
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs} +2 -2
  13. package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
  14. package/dist/index-5ECLdS5y.mjs +749 -0
  15. package/dist/{index-Cgbv4Ijf.mjs → index-5rQmXXAD.mjs} +118 -173
  16. package/dist/{index-CITy8Hqm.mjs → index-B0J0xma8.mjs} +29 -28
  17. package/dist/{index-7_pEehBt.mjs → index-B5OVt83d.mjs} +2 -2
  18. package/dist/index-BMCOCsW6.mjs +278 -0
  19. package/dist/index-BNfIR-q1.mjs +330 -0
  20. package/dist/index-BW4DcS26.mjs +272 -0
  21. package/dist/{index-DaSMRndr.mjs → index-BYazmSpv.mjs} +8 -7
  22. package/dist/{index-54evOMFJ.mjs → index-Bmev8P7I.mjs} +8 -7
  23. package/dist/index-C3QjePKd.mjs +390 -0
  24. package/dist/{index-DyOibT57.mjs → index-CBowEKcR.mjs} +2 -2
  25. package/dist/{index-Dooa5UH_.mjs → index-CCnjfMtC.mjs} +23 -22
  26. package/dist/{index-v18knD_f.mjs → index-COT8mjWU.mjs} +2 -2
  27. package/dist/index-CbG_QqOf.mjs +149 -0
  28. package/dist/index-CeA9V38o.mjs +339 -0
  29. package/dist/index-ChmGQcWY.mjs +396 -0
  30. package/dist/index-Coz_j3ZO.mjs +400 -0
  31. package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
  32. package/dist/index-DKewqFNP.mjs +273 -0
  33. package/dist/{index-g0KiWDPW.mjs → index-DNFVieqg.mjs} +3 -3
  34. package/dist/{index-BI1uXq1f.mjs → index-DPqaoK4-.mjs} +7 -6
  35. package/dist/{index-CxyHtsq2.mjs → index-DVyAUAgy.mjs} +2 -2
  36. package/dist/index-Dd1bJ-eY.mjs +479 -0
  37. package/dist/index-DgQ1cL3p.mjs +221 -0
  38. package/dist/{index-C7_kMdm5.mjs → index-Dxfj5xxz.mjs} +2 -2
  39. package/dist/index-HVCVVhoT.mjs +1385 -0
  40. package/dist/index-V8eBbfrN.mjs +402 -0
  41. package/dist/index-YVpXj5al.mjs +316 -0
  42. package/dist/index-gea6CFp0.mjs +457 -0
  43. package/dist/index-oGFiETVc.mjs +366 -0
  44. package/dist/{index-tnTugnqa.mjs → index-sjkYgg27.mjs} +6 -5
  45. package/dist/index.mjs +1203 -999
  46. package/dist/{info-8NydJYfB.mjs → info-C2QOALBq.mjs} +1 -1
  47. package/dist/{info-BbMCDfFR.mjs → info-D90oJO1z.mjs} +1 -1
  48. package/dist/{info-l0eP5Tw1.mjs → info-XskyQapE.mjs} +1 -1
  49. package/dist/info-Y2dPD9_Q.mjs +4 -0
  50. package/dist/info-a4HMapKP.mjs +4 -0
  51. package/dist/info-bvVxVHFs.mjs +4 -0
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BvcEV_aO.mjs} +115 -114
  53. package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-BzNQmLMY.mjs} +1 -1
  54. package/dist/info.vue_vue_type_script_setup_true_lang-CAAnevRr.mjs +209 -0
  55. package/dist/info.vue_vue_type_script_setup_true_lang-DROdDnz4.mjs +260 -0
  56. package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-DhuclI_H.mjs} +1 -1
  57. package/dist/info.vue_vue_type_script_setup_true_lang-Dngt4TDa.mjs +374 -0
  58. package/dist/style.css +1 -1
  59. package/dts/api/index.d.ts +5 -1
  60. package/dts/api/itsm-flow-spare-parts/index.d.ts +20 -0
  61. package/dts/api/itsm-flow-spare-parts/types.d.ts +113 -0
  62. package/dts/api/itsm-flow-spare-parts-details/index.d.ts +20 -0
  63. package/dts/api/itsm-flow-spare-parts-details/types.d.ts +77 -0
  64. package/dts/api/itsm-flow-temporary/index.d.ts +21 -0
  65. package/dts/api/itsm-flow-temporary/types.d.ts +115 -0
  66. package/dts/components/ImageUpload/ImageUpload.vue.d.ts +36 -0
  67. package/dts/components/TaskItsmFlowImOrderInterior/index.vue.d.ts +28 -0
  68. package/dts/components/TaskItsmFlowImOrderInteriorEdit/index.vue.d.ts +28 -0
  69. package/dts/components/TaskItsmFlowImOrderInteriorImplement/index.vue.d.ts +28 -0
  70. package/dts/components/TaskItsmFlowImOrderInteriorView/index.vue.d.ts +28 -0
  71. package/dts/components/TaskItsmFlowImSpareParts/index.vue.d.ts +28 -0
  72. package/dts/components/TaskItsmFlowImSparePartsEdit/index.vue.d.ts +28 -0
  73. package/dts/components/TaskItsmFlowImSparePartsUse/index.vue.d.ts +28 -0
  74. package/dts/components/TaskItsmFlowImSpareTemporary/index.vue.d.ts +28 -0
  75. package/dts/components/TaskItsmFlowImSpareTemporaryEdit/index.vue.d.ts +28 -0
  76. package/dts/components/TaskItsmFlowImSpareTemporaryImplement/index.vue.d.ts +28 -0
  77. package/dts/components/TaskItsmFlowImSpareTemporaryView/index.vue.d.ts +28 -0
  78. package/dts/constant.d.ts +8 -0
  79. package/dts/index.d.ts +13 -0
  80. package/dts/lang/itsm-flow/zh-cn.d.ts +81 -0
  81. package/dts/views/item-flow-orders-interior/edit.vue.d.ts +28 -0
  82. package/dts/views/item-flow-orders-interior/index.vue.d.ts +2 -0
  83. package/dts/views/item-flow-orders-interior/info.vue.d.ts +26 -0
  84. package/dts/views/itsm-flow-spare-parts/edit.vue.d.ts +28 -0
  85. package/dts/views/itsm-flow-spare-parts/index.vue.d.ts +2 -0
  86. package/dts/views/itsm-flow-spare-parts/info.vue.d.ts +26 -0
  87. package/dts/views/itsm-flow-temporary/edit.vue.d.ts +28 -0
  88. package/dts/views/itsm-flow-temporary/index.vue.d.ts +2 -0
  89. package/dts/views/itsm-flow-temporary/info.vue.d.ts +26 -0
  90. package/package.json +63 -63
@@ -0,0 +1,316 @@
1
+ import { defineComponent as K, mergeModels as q, ref as v, useModel as H, reactive as W, computed as O, nextTick as G, resolveComponent as m, createElementBlock as b, openBlock as _, Fragment as I, createVNode as l, withCtx as t, createElementVNode as $, unref as d, createTextVNode as s, toDisplayString as n, renderList as B, createBlock as J } from "vue";
2
+ import { useUserStoreHook as Q, fileApi as T } from "jmash-core";
3
+ import "element-plus";
4
+ import { i as X } from "./index-CbG_QqOf.mjs";
5
+ import { D as u, i as N, C as Y } from "./index-5rQmXXAD.mjs";
6
+ const ae = /* @__PURE__ */ K({
7
+ __name: "index",
8
+ props: /* @__PURE__ */ q({
9
+ task: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: {},
16
+ modelModifiers: {}
17
+ }),
18
+ emits: ["update:modelValue"],
19
+ setup(h, { expose: L }) {
20
+ u.orgIdBizDict.useValues();
21
+ const D = v(), c = H(h, "modelValue"), P = Q();
22
+ u.itemBizLayDict.useValues(), u.userExtBizDict.useValues(), v([]);
23
+ const r = v({}), y = v([]), U = v((/* @__PURE__ */ new Date()).toISOString().split("T")[0]), g = h;
24
+ let S = W({});
25
+ N.findFilesList({ actionId: g.task.businessKey }).then((e) => {
26
+ y.value = e.data.results, console.log(e.data.results, "=> files");
27
+ });
28
+ const C = O(() => {
29
+ var a;
30
+ const o = ((a = u.fileTypeDict.values.slice(3, 4)[0]) == null ? void 0 : a.dictCode) || "";
31
+ return y.value.filter((i) => i.fileSort === o);
32
+ }), z = O(() => {
33
+ var o;
34
+ const e = (o = u.fileTypeDict.values[2]) == null ? void 0 : o.dictCode;
35
+ return y.value.filter((a) => a.fileSort === e);
36
+ });
37
+ async function A(e) {
38
+ try {
39
+ const o = T.fileUrl(e.filePath), i = await (await fetch(o)).blob(), w = window.URL.createObjectURL(i), p = document.createElement("a");
40
+ p.href = w, p.download = e.fileName || "download", document.body.appendChild(p), p.click();
41
+ } catch {
42
+ }
43
+ }
44
+ X.findById({ temporaryId: g.task.businessKey }).then(({ data: e }) => {
45
+ r.value = { ...e }, G(() => {
46
+ r.value ? Object.assign(r.value, e) : r.value = { ...e }, M();
47
+ });
48
+ });
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) => {
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
+ L({
63
+ changeModel: () => E()
64
+ });
65
+ function E() {
66
+ return c.value && (c.value.selectActions = [
67
+ { key: "true", value: "同意" },
68
+ { key: "false", value: "不同意" }
69
+ ], c.value.varName = "approved", c.value.module = "", c.value.module = Y.MODULE_ITSMFLOW), new Promise((e, o) => {
70
+ var a;
71
+ (a = D.value) == null || a.validate((i) => {
72
+ i ? (c.value && (c.value.comment = ""), e(!0)) : o(!1);
73
+ });
74
+ });
75
+ }
76
+ return (e, o) => {
77
+ const a = m("el-col"), i = m("el-form-item"), w = m("el-button"), p = m("el-image"), R = m("el-row"), j = m("el-form");
78
+ return _(), b(I, null, [
79
+ l(a, { span: 24 }, {
80
+ default: t(() => o[0] || (o[0] = [
81
+ $("div", { class: "title" }, "外部临时工单", -1)
82
+ ])),
83
+ _: 1,
84
+ __: [0]
85
+ }),
86
+ l(j, {
87
+ ref_key: "taskFormRef",
88
+ ref: D,
89
+ model: d(S),
90
+ "label-width": "150px",
91
+ class: "custom-table-form"
92
+ }, {
93
+ default: t(() => [
94
+ l(R, null, {
95
+ default: t(() => [
96
+ l(a, { span: 24 }, {
97
+ default: t(() => [
98
+ l(i, {
99
+ label: e.$t("itsmFlowSpareParts.govOrgId"),
100
+ prop: "govOrgId"
101
+ }, {
102
+ default: t(() => [
103
+ s(n(d(u).orgIdBizDict.getValue(r.value.govOrgId)), 1)
104
+ ]),
105
+ _: 1
106
+ }, 8, ["label"])
107
+ ]),
108
+ _: 1
109
+ }),
110
+ l(a, { span: 24 }, {
111
+ default: t(() => [
112
+ l(i, {
113
+ label: e.$t("itsmFlowSpareParts.itemId"),
114
+ prop: "itemId"
115
+ }, {
116
+ default: t(() => [
117
+ s(n(d(u).itemBizLayDict.getValue(r.value.itemId)), 1)
118
+ ]),
119
+ _: 1
120
+ }, 8, ["label"])
121
+ ]),
122
+ _: 1
123
+ }),
124
+ l(a, { span: 12 }, {
125
+ default: t(() => [
126
+ l(i, {
127
+ label: e.$t("itsmFlowTemporary.createUser")
128
+ }, {
129
+ default: t(() => [
130
+ s(n(d(P).user.realName), 1)
131
+ ]),
132
+ _: 1
133
+ }, 8, ["label"])
134
+ ]),
135
+ _: 1
136
+ }),
137
+ l(a, { span: 12 }, {
138
+ default: t(() => [
139
+ l(i, {
140
+ label: e.$t("itsmFlowTemporary.createTime"),
141
+ prop: "createTime"
142
+ }, {
143
+ default: t(() => [
144
+ s(n(U.value), 1)
145
+ ]),
146
+ _: 1
147
+ }, 8, ["label"])
148
+ ]),
149
+ _: 1
150
+ }),
151
+ l(a, { span: 24 }, {
152
+ default: t(() => [
153
+ l(i, {
154
+ label: e.$t("itsmFlowTemporary.title"),
155
+ prop: "title"
156
+ }, {
157
+ default: t(() => [
158
+ s(n(r.value.title), 1)
159
+ ]),
160
+ _: 1
161
+ }, 8, ["label"])
162
+ ]),
163
+ _: 1
164
+ }),
165
+ l(a, { span: 24 }, {
166
+ default: t(() => [
167
+ l(i, {
168
+ label: e.$t("itsmFlowTemporary.content"),
169
+ prop: "content"
170
+ }, {
171
+ default: t(() => [
172
+ s(n(r.value.content), 1)
173
+ ]),
174
+ _: 1
175
+ }, 8, ["label"])
176
+ ]),
177
+ _: 1
178
+ }),
179
+ l(a, { span: 24 }, {
180
+ default: t(() => [
181
+ l(i, { label: "附件" }, {
182
+ default: t(() => [
183
+ (_(!0), b(I, null, B(z.value, (f, F) => (_(), b("div", {
184
+ key: F,
185
+ class: "files-list"
186
+ }, [
187
+ $("span", null, n(f.fileName), 1),
188
+ l(w, {
189
+ type: "primary",
190
+ link: "",
191
+ size: "small",
192
+ class: "icon-right",
193
+ onClick: (k) => A(f)
194
+ }, {
195
+ default: t(() => 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
+ l(a, { span: 24 }, {
209
+ default: t(() => [
210
+ l(i, {
211
+ label: e.$t("itsmFlowTemporary.outOrgId"),
212
+ prop: "outOrgId"
213
+ }, {
214
+ default: t(() => [
215
+ s(n(d(u).orgIdBizDict.getValue(r.value.outOrgId)), 1)
216
+ ]),
217
+ _: 1
218
+ }, 8, ["label"])
219
+ ]),
220
+ _: 1
221
+ }),
222
+ l(a, { span: 24 }, {
223
+ default: t(() => [
224
+ l(i, {
225
+ label: e.$t("itsmFlowTemporary.userId"),
226
+ prop: "userId"
227
+ }, {
228
+ default: t(() => [
229
+ s(n(d(u).userExtBizDict.getValue(r.value.userId)), 1)
230
+ ]),
231
+ _: 1
232
+ }, 8, ["label"])
233
+ ]),
234
+ _: 1
235
+ }),
236
+ l(a, { span: 12 }, {
237
+ default: t(() => [
238
+ l(i, {
239
+ label: e.$t("itsmFlowTemporary.handlingPeriod"),
240
+ prop: "handlingPeriod"
241
+ }, {
242
+ default: t(() => [
243
+ s(n(r.value.handlingPeriod), 1)
244
+ ]),
245
+ _: 1
246
+ }, 8, ["label"])
247
+ ]),
248
+ _: 1
249
+ }),
250
+ l(a, { span: 12 }, {
251
+ default: t(() => [
252
+ l(i, {
253
+ label: e.$t("itsmFlowTemporary.finishDate"),
254
+ prop: "finishDate"
255
+ }, {
256
+ default: t(() => [
257
+ s(n(r.value.finishDate), 1)
258
+ ]),
259
+ _: 1
260
+ }, 8, ["label"])
261
+ ]),
262
+ _: 1
263
+ }),
264
+ l(a, { span: 24 }, {
265
+ default: t(() => [
266
+ l(i, {
267
+ label: e.$t("itsmFlowTemporary.completion"),
268
+ prop: "completion"
269
+ }, {
270
+ default: t(() => [
271
+ s(n(r.value.completion), 1)
272
+ ]),
273
+ _: 1
274
+ }, 8, ["label"])
275
+ ]),
276
+ _: 1
277
+ }),
278
+ l(a, { span: 24 }, {
279
+ default: t(() => [
280
+ (_(!0), b(I, null, B(d(u).fileTypeDict.values.slice(3, 4), (f, F) => (_(), J(i, {
281
+ key: f.dictCode,
282
+ label: f.dictName,
283
+ prop: "files." + F + ".fileSrc"
284
+ }, {
285
+ default: t(() => {
286
+ var k, V;
287
+ return [
288
+ l(p, {
289
+ src: d(T).imageUrl((k = C.value[0]) == null ? void 0 : k.fileSrc, 100, 100),
290
+ "preview-src-list": [
291
+ d(T).imageUrl((V = C.value[0]) == null ? void 0 : V.fileSrc)
292
+ ],
293
+ "preview-teleported": "",
294
+ "hide-on-click-modal": "",
295
+ fit: "cover"
296
+ }, null, 8, ["src", "preview-src-list"])
297
+ ];
298
+ }),
299
+ _: 2
300
+ }, 1032, ["label", "prop"]))), 128))
301
+ ]),
302
+ _: 1
303
+ })
304
+ ]),
305
+ _: 1
306
+ })
307
+ ]),
308
+ _: 1
309
+ }, 8, ["model"])
310
+ ], 64);
311
+ };
312
+ }
313
+ });
314
+ export {
315
+ ae as default
316
+ };