xyvcard-itsm-flow 0.0.19 → 0.0.21

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-AAIDp3Ys.mjs} +1 -1
  5. package/dist/edit-BC3HBHna.mjs +378 -0
  6. package/dist/{edit-DdzFTqhg.mjs → edit-CWx9fJF7.mjs} +1 -1
  7. package/dist/edit-CuL-MqiW.mjs +794 -0
  8. package/dist/{edit-Vw2XQ1u6.mjs → edit-XWSh98dW.mjs} +1 -1
  9. package/dist/edit-zRQs9w8y.mjs +492 -0
  10. package/dist/{edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs → edit.vue_vue_type_script_setup_true_lang-BCVm7-Ex.mjs} +2 -2
  11. package/dist/{edit.vue_vue_type_script_setup_true_lang-m73-ejk7.mjs → edit.vue_vue_type_script_setup_true_lang-BHgx58mh.mjs} +2 -2
  12. package/dist/{edit.vue_vue_type_script_setup_true_lang-prup6BHU.mjs → edit.vue_vue_type_script_setup_true_lang-Rs79eFoT.mjs} +2 -2
  13. package/dist/{el-message-DawVzOVQ.mjs → el-message-BJAl6Gwu.mjs} +1 -1
  14. package/dist/{index-g0KiWDPW.mjs → index--gw38QeR.mjs} +3 -3
  15. package/dist/index-3BgV8fss.mjs +396 -0
  16. package/dist/index-BDh2WCIf.mjs +316 -0
  17. package/dist/{index-CxyHtsq2.mjs → index-BFtKB0qe.mjs} +2 -2
  18. package/dist/{index-DaSMRndr.mjs → index-BLHnAUcn.mjs} +2 -2
  19. package/dist/index-BSRU0wyQ.mjs +479 -0
  20. package/dist/{index-DeerMT0Q.mjs → index-BYbmB9DD.mjs} +31 -29
  21. package/dist/{index-BI1uXq1f.mjs → index-Bom-5z91.mjs} +4 -4
  22. package/dist/index-BtiMpwj2.mjs +457 -0
  23. package/dist/{index-tnTugnqa.mjs → index-C-HQUPPS.mjs} +3 -3
  24. package/dist/{index-DB-P0VX0.mjs → index-C5pj6umx.mjs} +23 -22
  25. package/dist/{index-C7_kMdm5.mjs → index-CDKSx5IH.mjs} +2 -2
  26. package/dist/{index-Dooa5UH_.mjs → index-CLZfBnlo.mjs} +4 -4
  27. package/dist/index-COvZrTZl.mjs +278 -0
  28. package/dist/index-CXAtR6Vv.mjs +366 -0
  29. package/dist/index-CYJvDaI_.mjs +1371 -0
  30. package/dist/{index-PafaMNgK.mjs → index-CvX2It1o.mjs} +64 -30
  31. package/dist/index-D2AIn13F.mjs +339 -0
  32. package/dist/{index-Cgbv4Ijf.mjs → index-D7TvdZ0W.mjs} +180 -160
  33. package/dist/{index-7_pEehBt.mjs → index-DBRvKb1w.mjs} +2 -2
  34. package/dist/{index-CITy8Hqm.mjs → index-DFj2i4Kf.mjs} +4 -4
  35. package/dist/index-DNsy9Enp.mjs +272 -0
  36. package/dist/index-DQOGU1Vs.mjs +402 -0
  37. package/dist/index-D_PiZ_6x.mjs +749 -0
  38. package/dist/index-DesY4um_.mjs +330 -0
  39. package/dist/{index-Cqw8Rz4q.mjs → index-DkPqpjkA.mjs} +26 -24
  40. package/dist/index-Sm592CoC.mjs +273 -0
  41. package/dist/index-cjJjrvPP.mjs +390 -0
  42. package/dist/index-enjFe_Qb.mjs +400 -0
  43. package/dist/index-gWMTJ0gB.mjs +221 -0
  44. package/dist/index-o0oTSdUL.mjs +149 -0
  45. package/dist/index.mjs +1357 -1229
  46. package/dist/{info-8NydJYfB.mjs → info-06y0zz8D.mjs} +1 -1
  47. package/dist/{info-BbMCDfFR.mjs → info-BQh86EaI.mjs} +1 -1
  48. package/dist/{info-l0eP5Tw1.mjs → info-CYY7U06K.mjs} +1 -1
  49. package/dist/info-ClUXgnK1.mjs +4 -0
  50. package/dist/info-DJvahDDF.mjs +4 -0
  51. package/dist/info-nzbmqI2A.mjs +4 -0
  52. package/dist/{info.vue_vue_type_script_setup_true_lang-wuHB-S6l.mjs → info.vue_vue_type_script_setup_true_lang-7L5RJMrf.mjs} +1 -1
  53. package/dist/{info.vue_vue_type_script_setup_true_lang-DMw-pPEW.mjs → info.vue_vue_type_script_setup_true_lang-BHjv3DSd.mjs} +1 -1
  54. package/dist/{info.vue_vue_type_script_setup_true_lang-BnDpoavn.mjs → info.vue_vue_type_script_setup_true_lang-D5eF48hb.mjs} +1 -1
  55. package/dist/info.vue_vue_type_script_setup_true_lang-DxArle2x.mjs +260 -0
  56. package/dist/info.vue_vue_type_script_setup_true_lang-hwan7iwm.mjs +209 -0
  57. package/dist/info.vue_vue_type_script_setup_true_lang-y8F2Xg5z.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 +11 -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,400 @@
1
+ import { defineComponent as K, mergeModels as j, ref as w, useModel as W, resolveComponent as c, createElementBlock as v, openBlock as m, Fragment as h, createVNode as a, withCtx as e, createElementVNode as B, createBlock as g, createCommentVNode as F, createTextVNode as s, toDisplayString as n, unref as b, renderList as N } from "vue";
2
+ import "element-plus";
3
+ import { useI18n as q } from "vue-i18n";
4
+ import { C as D, D as y, i as G } from "./index-D7TvdZ0W.mjs";
5
+ import { i as H, a as J } from "./index-COvZrTZl.mjs";
6
+ import { fileApi as Q } from "jmash-core";
7
+ import { rbacApi as X } from "jmash-rbac";
8
+ const Y = { key: 0 }, se = /* @__PURE__ */ K({
9
+ __name: "index",
10
+ props: /* @__PURE__ */ j({
11
+ task: {
12
+ type: Object,
13
+ default: () => {
14
+ }
15
+ }
16
+ }, {
17
+ modelValue: {},
18
+ modelModifiers: {}
19
+ }),
20
+ emits: ["update:modelValue"],
21
+ setup(I, { expose: O }) {
22
+ const { t: Z } = q(), C = w(), A = w({}), f = W(I, "modelValue");
23
+ console.log(D.applyStatus.finished, "=>Constant.applyStatus.finished "), y.budgetTypeDict.useValues();
24
+ const P = I, u = w();
25
+ H.findById({ flowSpareId: P.task.businessKey }).then(({ data: t }) => {
26
+ u.value = t;
27
+ });
28
+ const V = w([]);
29
+ J.findList({ flowSpareId: P.task.businessKey }).then((t) => {
30
+ V.value = t.data.results;
31
+ });
32
+ const M = w([]);
33
+ G.findFilesList({ actionId: P.task.businessKey }).then((t) => {
34
+ M.value = t.data.results;
35
+ });
36
+ const E = (t) => {
37
+ var p;
38
+ return ((p = M.value) == null ? void 0 : p.filter((r) => r.fileSort === t)) || [];
39
+ };
40
+ async function T(t) {
41
+ try {
42
+ const p = Q.fileUrl(t.filePath), i = await (await fetch(p)).blob(), S = window.URL.createObjectURL(i), d = document.createElement("a");
43
+ d.href = S, d.download = t.fileName || "download", document.body.appendChild(d), d.click();
44
+ } catch {
45
+ }
46
+ }
47
+ O({
48
+ changeModel: () => R()
49
+ });
50
+ function R() {
51
+ return f.value && (f.value.selectActions = [
52
+ { key: "true", value: "同意" },
53
+ { key: "false", value: "不同意" }
54
+ ], f.value.varName = "approved", f.value.module = "", f.value.module = D.MODULE_ITSMFLOW), new Promise((t, p) => {
55
+ var r;
56
+ (r = C.value) == null || r.validate((i) => {
57
+ i ? (f.value && (f.value.comment = ""), t(!0)) : p(!1);
58
+ });
59
+ });
60
+ }
61
+ return (t, p) => {
62
+ const r = c("el-col"), i = c("el-form-item"), S = c("el-row"), d = c("el-table-column"), U = c("el-table"), z = c("el-button"), L = c("el-form");
63
+ return m(), v(h, null, [
64
+ a(r, { span: 24 }, {
65
+ default: e(() => p[0] || (p[0] = [
66
+ B("div", { class: "title" }, "备品备件申请领用确认单", -1)
67
+ ])),
68
+ _: 1,
69
+ __: [0]
70
+ }),
71
+ a(L, {
72
+ ref_key: "taskFormRef",
73
+ ref: C,
74
+ model: A.value,
75
+ "label-width": "150px",
76
+ class: "custom-table-form"
77
+ }, {
78
+ default: e(() => [
79
+ a(L, {
80
+ ref: "itsmFlowEntrustFormRef",
81
+ "label-width": "150px",
82
+ class: "custom-table-form custom-form"
83
+ }, {
84
+ default: e(() => [
85
+ a(S, null, {
86
+ default: e(() => {
87
+ var o, k, _;
88
+ return [
89
+ a(r, { span: 12 }, {
90
+ default: e(() => [
91
+ a(i, {
92
+ label: t.$t("itsmFlowSpareParts.govOrgId"),
93
+ prop: "govOrgId"
94
+ }, {
95
+ default: e(() => {
96
+ var l;
97
+ return [
98
+ s(n(b(y).orgIdBizDict.getValue((l = u.value) == null ? void 0 : l.orgId)), 1)
99
+ ];
100
+ }),
101
+ _: 1
102
+ }, 8, ["label"])
103
+ ]),
104
+ _: 1
105
+ }),
106
+ a(r, { span: 12 }, {
107
+ default: e(() => [
108
+ a(i, {
109
+ label: t.$t("itsmFlowSpareParts.type"),
110
+ prop: "type"
111
+ }, {
112
+ default: e(() => {
113
+ var l;
114
+ return [
115
+ s(n(b(y).purchaseTypeEnum.getEnumValue((l = u.value) == null ? void 0 : l.type)), 1)
116
+ ];
117
+ }),
118
+ _: 1
119
+ }, 8, ["label"])
120
+ ]),
121
+ _: 1
122
+ }),
123
+ a(r, { span: 12 }, {
124
+ default: e(() => [
125
+ a(i, {
126
+ label: t.$t("itsmFlowSpareParts.applyPlace"),
127
+ prop: "applyPlace"
128
+ }, {
129
+ default: e(() => {
130
+ var l;
131
+ return [
132
+ s(n((l = u.value) == null ? void 0 : l.applyPlace), 1)
133
+ ];
134
+ }),
135
+ _: 1
136
+ }, 8, ["label"])
137
+ ]),
138
+ _: 1
139
+ }),
140
+ a(r, { span: 12 }, {
141
+ default: e(() => [
142
+ a(i, {
143
+ label: t.$t("itsmFlowSpareParts.annual"),
144
+ prop: "annual"
145
+ }, {
146
+ default: e(() => {
147
+ var l;
148
+ return [
149
+ s(n((l = u.value) == null ? void 0 : l.annual), 1)
150
+ ];
151
+ }),
152
+ _: 1
153
+ }, 8, ["label"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ ((o = u.value) == null ? void 0 : o.type) !== "BudgetOut" ? (m(), g(r, {
158
+ key: 0,
159
+ span: 24
160
+ }, {
161
+ default: e(() => [
162
+ a(i, {
163
+ label: t.$t("itsmFlowSpareParts.itemId"),
164
+ prop: "itemId"
165
+ }, {
166
+ default: e(() => {
167
+ var l;
168
+ return [
169
+ s(n(b(y).itemBizLayDict.getValue((l = u.value) == null ? void 0 : l.itemId)), 1)
170
+ ];
171
+ }),
172
+ _: 1
173
+ }, 8, ["label"])
174
+ ]),
175
+ _: 1
176
+ })) : F("", !0),
177
+ ((k = u.value) == null ? void 0 : k.type) !== "BudgetOut" ? (m(), g(r, {
178
+ key: 1,
179
+ span: 12
180
+ }, {
181
+ default: e(() => [
182
+ a(i, {
183
+ label: t.$t("itsmFlowSpareParts.budgetType"),
184
+ prop: "budgetType"
185
+ }, {
186
+ default: e(() => {
187
+ var l;
188
+ return [
189
+ s(n(b(y).budgetTypeDict.getValue((l = u.value) == null ? void 0 : l.budgetType)), 1)
190
+ ];
191
+ }),
192
+ _: 1
193
+ }, 8, ["label"])
194
+ ]),
195
+ _: 1
196
+ })) : F("", !0),
197
+ ((_ = u.value) == null ? void 0 : _.type) !== "BudgetOut" ? (m(), g(r, {
198
+ key: 2,
199
+ span: 12
200
+ }, {
201
+ default: e(() => [
202
+ a(i, {
203
+ label: t.$t("itsmFlowSpareParts.contractMoney"),
204
+ prop: "contractMoney"
205
+ }, {
206
+ default: e(() => {
207
+ var l;
208
+ return [
209
+ s(n((l = u.value) == null ? void 0 : l.contractMoney), 1)
210
+ ];
211
+ }),
212
+ _: 1
213
+ }, 8, ["label"])
214
+ ]),
215
+ _: 1
216
+ })) : F("", !0),
217
+ a(r, { span: 12 }, {
218
+ default: e(() => [
219
+ a(i, {
220
+ label: t.$t("itsmFlowSpareParts.createBy"),
221
+ prop: "createBy"
222
+ }, {
223
+ default: e(() => {
224
+ var l, $;
225
+ return [
226
+ s(n((l = u.value) != null && l.createBy ? ($ = b(X).userInfo(u.value.createBy)) == null ? void 0 : $.realName : ""), 1)
227
+ ];
228
+ }),
229
+ _: 1
230
+ }, 8, ["label"])
231
+ ]),
232
+ _: 1
233
+ }),
234
+ a(r, { span: 12 }, {
235
+ default: e(() => [
236
+ a(i, {
237
+ label: t.$t("itsmFlowSpareParts.applyDate"),
238
+ prop: "applyDate"
239
+ }, {
240
+ default: e(() => {
241
+ var l;
242
+ return [
243
+ s(n((l = u.value) == null ? void 0 : l.applyDate), 1)
244
+ ];
245
+ }),
246
+ _: 1
247
+ }, 8, ["label"])
248
+ ]),
249
+ _: 1
250
+ })
251
+ ];
252
+ }),
253
+ _: 1
254
+ }),
255
+ a(S, null, {
256
+ default: e(() => [
257
+ a(r, { span: 24 }, {
258
+ default: e(() => p[1] || (p[1] = [
259
+ B("div", { class: "title" }, "运维需求描述", -1)
260
+ ])),
261
+ _: 1,
262
+ __: [1]
263
+ }),
264
+ a(r, { span: 24 }, {
265
+ default: e(() => [
266
+ a(U, {
267
+ stripe: "",
268
+ style: { width: "100%" },
269
+ data: V.value
270
+ }, {
271
+ default: e(() => [
272
+ a(d, {
273
+ prop: "type",
274
+ label: t.$t("itsmFlowSpareParts.type")
275
+ }, {
276
+ default: e((o) => [
277
+ s(n(o.row.type), 1)
278
+ ]),
279
+ _: 1
280
+ }, 8, ["label"]),
281
+ a(d, {
282
+ prop: "name",
283
+ label: t.$t("itsmFlowSpareParts.name")
284
+ }, {
285
+ default: e((o) => [
286
+ s(n(o.row.name), 1)
287
+ ]),
288
+ _: 1
289
+ }, 8, ["label"]),
290
+ a(d, {
291
+ prop: "number",
292
+ label: t.$t("itsmFlowSpareParts.number")
293
+ }, {
294
+ default: e((o) => [
295
+ s(n(o.row.number), 1)
296
+ ]),
297
+ _: 1
298
+ }, 8, ["label"]),
299
+ a(d, {
300
+ prop: "unit",
301
+ label: t.$t("itsmFlowSpareParts.unit")
302
+ }, {
303
+ default: e((o) => [
304
+ s(n(o.row.unit), 1)
305
+ ]),
306
+ _: 1
307
+ }, 8, ["label"]),
308
+ a(d, {
309
+ prop: "parameter",
310
+ label: t.$t("itsmFlowSpareParts.parameter")
311
+ }, {
312
+ default: e((o) => [
313
+ s(n(o.row.parameter), 1)
314
+ ]),
315
+ _: 1
316
+ }, 8, ["label"]),
317
+ a(d, {
318
+ prop: "valuation",
319
+ label: t.$t("itsmFlowSpareParts.valuation")
320
+ }, {
321
+ default: e((o) => [
322
+ s(n(o.row.valuation), 1)
323
+ ]),
324
+ _: 1
325
+ }, 8, ["label"]),
326
+ a(d, {
327
+ prop: "range",
328
+ label: t.$t("itsmFlowSpareParts.range")
329
+ }, {
330
+ default: e((o) => [
331
+ s(n(o.row.range), 1)
332
+ ]),
333
+ _: 1
334
+ }, 8, ["label"]),
335
+ a(d, {
336
+ prop: "applyStatus ",
337
+ label: t.$t("itsmFlowSpareParts.applyStatus ")
338
+ }, {
339
+ default: e((o) => [
340
+ o.row.applyStatus === b(D).applyStatus.finished ? (m(), v("span", Y, "已领用 ")) : F("", !0)
341
+ ]),
342
+ _: 1
343
+ }, 8, ["label"])
344
+ ]),
345
+ _: 1
346
+ }, 8, ["data"])
347
+ ]),
348
+ _: 1
349
+ }),
350
+ a(r, {
351
+ span: 24,
352
+ class: "bordered-row"
353
+ }, {
354
+ default: e(() => [
355
+ (m(!0), v(h, null, N(b(y).fileTypeDict.values.slice(0, 2), (o, k) => (m(), g(i, {
356
+ key: o.dictCode,
357
+ label: o.dictName
358
+ }, {
359
+ default: e(() => [
360
+ (m(!0), v(h, null, N(E(o.dictCode), (_, l) => (m(), v("div", {
361
+ key: l,
362
+ class: "files-list"
363
+ }, [
364
+ B("span", null, n(_.fileName), 1),
365
+ a(z, {
366
+ type: "primary",
367
+ link: "",
368
+ size: "small",
369
+ class: "icon-right",
370
+ onClick: ($) => T(_)
371
+ }, {
372
+ default: e(() => p[2] || (p[2] = [
373
+ s(" 查看 ")
374
+ ])),
375
+ _: 2,
376
+ __: [2]
377
+ }, 1032, ["onClick"])
378
+ ]))), 128))
379
+ ]),
380
+ _: 2
381
+ }, 1032, ["label"]))), 128))
382
+ ]),
383
+ _: 1
384
+ })
385
+ ]),
386
+ _: 1
387
+ })
388
+ ]),
389
+ _: 1
390
+ }, 512)
391
+ ]),
392
+ _: 1
393
+ }, 8, ["model"])
394
+ ], 64);
395
+ };
396
+ }
397
+ });
398
+ export {
399
+ se as default
400
+ };
@@ -0,0 +1,221 @@
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 T, createTextVNode as u, toDisplayString as d, renderList as C, unref as b, createBlock as x } from "vue";
2
+ import { rbacApi as O } from "jmash-rbac";
3
+ import { i as R, C as Y, D } from "./index-D7TvdZ0W.mjs";
4
+ import { fileApi as j } from "jmash-core";
5
+ import { i as z } from "./index-o0oTSdUL.mjs";
6
+ const Q = /* @__PURE__ */ A({
7
+ __name: "index",
8
+ props: /* @__PURE__ */ P({
9
+ task: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: {},
16
+ modelModifiers: {}
17
+ }),
18
+ emits: ["update:modelValue"],
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) => {
22
+ i.value = a.data;
23
+ });
24
+ const h = f([]);
25
+ R.findFilesList({ actionId: F.task.businessKey }).then((a) => {
26
+ h.value = a.data.results, console.log(a.data.results, "=> files");
27
+ });
28
+ async function N(a) {
29
+ try {
30
+ const n = j.fileUrl(a.filePath), r = await (await fetch(n)).blob(), v = window.URL.createObjectURL(r), m = document.createElement("a");
31
+ m.href = v, m.download = a.fileName || "download", document.body.appendChild(m), m.click();
32
+ } catch {
33
+ }
34
+ }
35
+ I({
36
+ changeModel: () => $()
37
+ });
38
+ function $() {
39
+ return s.value && (s.value.selectActions = [
40
+ { key: "true", value: "同意" },
41
+ { key: "false", value: "不同意" }
42
+ ], s.value.varName = "approved", s.value.module = "", s.value.module = Y.MODULE_ITSMFLOW), new Promise((a, n) => {
43
+ var o;
44
+ (o = k.value) == null || o.validate((r) => {
45
+ r ? (s.value && (s.value.comment = ""), a(!0)) : n(!1);
46
+ });
47
+ });
48
+ }
49
+ return (a, n) => {
50
+ const o = c("el-col"), r = c("el-form-item"), v = c("el-button"), m = c("el-row"), L = c("el-form");
51
+ return p(), _(y, null, [
52
+ t(o, { span: 24 }, {
53
+ default: l(() => n[0] || (n[0] = [
54
+ T("div", { class: "title" }, "内部临时工单", -1)
55
+ ])),
56
+ _: 1,
57
+ __: [0]
58
+ }),
59
+ t(L, {
60
+ ref_key: "taskFormRef",
61
+ ref: k,
62
+ model: B.value,
63
+ "label-width": "150px",
64
+ class: "custom-table-form custom-form"
65
+ }, {
66
+ default: l(() => [
67
+ t(m, null, {
68
+ default: l(() => [
69
+ t(o, { span: 24 }, {
70
+ default: l(() => [
71
+ t(r, {
72
+ label: a.$t("itsmFlowTemporary.title"),
73
+ prop: "title"
74
+ }, {
75
+ default: l(() => {
76
+ var e;
77
+ return [
78
+ u(d((e = i.value) == null ? void 0 : e.title), 1)
79
+ ];
80
+ }),
81
+ _: 1
82
+ }, 8, ["label"])
83
+ ]),
84
+ _: 1
85
+ }),
86
+ t(o, { span: 24 }, {
87
+ default: l(() => [
88
+ t(r, {
89
+ label: a.$t("itsmFlowTemporary.content"),
90
+ prop: "content"
91
+ }, {
92
+ default: l(() => {
93
+ var e;
94
+ return [
95
+ u(d((e = i.value) == null ? void 0 : e.content), 1)
96
+ ];
97
+ }),
98
+ _: 1
99
+ }, 8, ["label"])
100
+ ]),
101
+ _: 1
102
+ }),
103
+ t(o, {
104
+ span: 24,
105
+ class: "bordered-row"
106
+ }, {
107
+ default: l(() => [
108
+ (p(!0), _(y, null, C(b(D).fileTypeDict.values.slice(2, 3), (e, H) => (p(), x(r, {
109
+ key: e.dictCode,
110
+ label: e.dictName
111
+ }, {
112
+ default: l(() => [
113
+ (p(!0), _(y, null, C(h.value, (g, V) => (p(), _("div", {
114
+ key: V,
115
+ class: "files-list"
116
+ }, [
117
+ T("span", null, d(g.fileName), 1),
118
+ t(v, {
119
+ type: "primary",
120
+ link: "",
121
+ size: "small",
122
+ class: "icon-right",
123
+ onClick: (K) => N(g)
124
+ }, {
125
+ default: l(() => n[1] || (n[1] = [
126
+ u(" 查看 ")
127
+ ])),
128
+ _: 2,
129
+ __: [1]
130
+ }, 1032, ["onClick"])
131
+ ]))), 128))
132
+ ]),
133
+ _: 2
134
+ }, 1032, ["label"]))), 128))
135
+ ]),
136
+ _: 1
137
+ }),
138
+ t(o, { span: 12 }, {
139
+ default: l(() => [
140
+ t(r, {
141
+ label: a.$t("itsmFlowTemporary.createBy"),
142
+ prop: "createBy"
143
+ }, {
144
+ default: l(() => {
145
+ var e;
146
+ return [
147
+ u(d(b(O).userInfo((e = i.value) == null ? void 0 : e.createBy).realName), 1)
148
+ ];
149
+ }),
150
+ _: 1
151
+ }, 8, ["label"])
152
+ ]),
153
+ _: 1
154
+ }),
155
+ t(o, { span: 12 }, {
156
+ default: l(() => [
157
+ t(r, {
158
+ label: a.$t("itsmFlowTemporary.createTime"),
159
+ prop: "createTime"
160
+ }, {
161
+ default: l(() => {
162
+ var e;
163
+ return [
164
+ u(d(b(M).$moment.formatDate(
165
+ (e = i.value) == null ? void 0 : e.createTime,
166
+ "YYYY-MM-DD HH:mm:ss"
167
+ )), 1)
168
+ ];
169
+ }),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ t(o, { span: 24 }, {
176
+ default: l(() => [
177
+ t(r, {
178
+ label: a.$t("itsmFlowTemporary.userId"),
179
+ prop: "userId"
180
+ }, {
181
+ default: l(() => {
182
+ var e;
183
+ return [
184
+ u(d(b(D).userExtBizDict.getValue((e = i.value) == null ? void 0 : e.userId)), 1)
185
+ ];
186
+ }),
187
+ _: 1
188
+ }, 8, ["label"])
189
+ ]),
190
+ _: 1
191
+ }),
192
+ t(o, { span: 24 }, {
193
+ default: l(() => [
194
+ t(r, {
195
+ label: a.$t("itsmFlowTemporary.handlingPeriod"),
196
+ prop: "handlingPeriod"
197
+ }, {
198
+ default: l(() => {
199
+ var e;
200
+ return [
201
+ u(d((e = i.value) == null ? void 0 : e.handlingPeriod), 1)
202
+ ];
203
+ }),
204
+ _: 1
205
+ }, 8, ["label"])
206
+ ]),
207
+ _: 1
208
+ })
209
+ ]),
210
+ _: 1
211
+ })
212
+ ]),
213
+ _: 1
214
+ }, 8, ["model"])
215
+ ], 64);
216
+ };
217
+ }
218
+ });
219
+ export {
220
+ Q as default
221
+ };