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,366 @@
1
+ import { defineComponent as R, mergeModels as K, ref as _, useModel as j, resolveComponent as c, createElementBlock as F, openBlock as m, Fragment as D, createVNode as t, withCtx as l, createElementVNode as v, createBlock as S, createCommentVNode as B, 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 { D as d, C as W, i as G } from "./index-5rQmXXAD.mjs";
5
+ import { i as H, a as J } from "./index-BMCOCsW6.mjs";
6
+ import { fileApi as Q } from "jmash-core";
7
+ import { rbacApi as X } from "jmash-rbac";
8
+ import { _ as Y } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
9
+ const Z = { class: "total-price" }, x = { id: "totalPrice" }, ee = /* @__PURE__ */ R({
10
+ __name: "index",
11
+ props: /* @__PURE__ */ K({
12
+ task: {
13
+ type: Object,
14
+ default: () => {
15
+ }
16
+ }
17
+ }, {
18
+ modelValue: {},
19
+ modelModifiers: {}
20
+ }),
21
+ emits: ["update:modelValue"],
22
+ setup(I, { expose: h }) {
23
+ d.fileTypeDict.useDictValues(), d.orgIdBizDict.useValues(), d.itemBizLayDict.useValues(), console.log(d.orgIdBizDict.values, "=> orgIdBizDict"), console.log(d.itemBizLayDict.values, "=>itemBizLayDict ");
24
+ const { t: le } = q(), $ = _(), C = _({}), f = j(I, "modelValue"), V = _([]), P = I, u = _({});
25
+ H.findById({ flowSpareId: P.task.businessKey }).then(({ data: e }) => {
26
+ u.value = e, console.log(e, "=>data");
27
+ });
28
+ const L = _([]);
29
+ J.findList({ flowSpareId: P.task.businessKey }).then((e) => {
30
+ L.value = e.data.results, console.log(e.data.results, "=>tableData ");
31
+ });
32
+ const M = (e) => {
33
+ var a;
34
+ return ((a = V.value) == null ? void 0 : a.filter((o) => o.fileSort === e)) || [];
35
+ };
36
+ function z() {
37
+ G.findFilesList({ actionId: P.task.businessKey }).then(({ data: e }) => {
38
+ console.log(e, "=> data"), e.results && Array.isArray(e.results) && (V.value = e.results.map((a) => {
39
+ let o = "";
40
+ return a.fileName && (o = a.fileSort || a.type || ""), {
41
+ fileName: a.fileName || "",
42
+ fileId: a.fileId || "",
43
+ fileSort: o
44
+ };
45
+ }));
46
+ });
47
+ }
48
+ z();
49
+ async function A(e) {
50
+ try {
51
+ const a = Q.fileUrl(e.filePath), i = await (await fetch(a)).blob(), w = window.URL.createObjectURL(i), p = document.createElement("a");
52
+ p.href = w, p.download = e.fileName || "download", document.body.appendChild(p), p.click();
53
+ } catch {
54
+ }
55
+ }
56
+ h({
57
+ changeModel: () => O()
58
+ });
59
+ function O() {
60
+ return f.value && (f.value.selectActions = [
61
+ { key: "true", value: "同意" },
62
+ { key: "false", value: "不同意" }
63
+ ], f.value.varName = "approved", f.value.module = "", f.value.module = W.MODULE_ITSMFLOW), new Promise((e, a) => {
64
+ var o;
65
+ (o = $.value) == null || o.validate((i) => {
66
+ i ? (f.value && (f.value.comment = ""), e(!0)) : a(!1);
67
+ });
68
+ });
69
+ }
70
+ return (e, a) => {
71
+ const o = c("el-col"), i = c("el-form-item"), w = c("el-row"), p = c("el-table-column"), T = c("el-table"), E = c("el-button"), U = c("el-form");
72
+ return m(), F(D, null, [
73
+ t(o, { span: 24 }, {
74
+ default: l(() => a[0] || (a[0] = [
75
+ v("div", { class: "title" }, "备品备件申请领用表", -1)
76
+ ])),
77
+ _: 1,
78
+ __: [0]
79
+ }),
80
+ t(U, {
81
+ ref_key: "taskFormRef",
82
+ ref: $,
83
+ model: C.value,
84
+ "label-width": "150px",
85
+ class: "custom-table-form"
86
+ }, {
87
+ default: l(() => [
88
+ t(w, null, {
89
+ default: l(() => {
90
+ var r, k, y;
91
+ return [
92
+ t(o, { span: 12 }, {
93
+ default: l(() => [
94
+ t(i, {
95
+ label: e.$t("itsmFlowSpareParts.govOrgId"),
96
+ prop: "govOrgId"
97
+ }, {
98
+ default: l(() => [
99
+ s(n(b(d).orgIdBizDict.getValue(u.value.orgId)), 1)
100
+ ]),
101
+ _: 1
102
+ }, 8, ["label"])
103
+ ]),
104
+ _: 1
105
+ }),
106
+ t(o, { span: 12 }, {
107
+ default: l(() => [
108
+ t(i, {
109
+ label: e.$t("itsmFlowSpareParts.type"),
110
+ prop: "type"
111
+ }, {
112
+ default: l(() => [
113
+ s(n(b(d).purchaseTypeEnum.getEnumValue(u.value.type)), 1)
114
+ ]),
115
+ _: 1
116
+ }, 8, ["label"])
117
+ ]),
118
+ _: 1
119
+ }),
120
+ t(o, { span: 12 }, {
121
+ default: l(() => [
122
+ t(i, {
123
+ label: e.$t("itsmFlowSpareParts.applyPlace"),
124
+ prop: "applyPlace"
125
+ }, {
126
+ default: l(() => [
127
+ s(n(u.value.applyPlace), 1)
128
+ ]),
129
+ _: 1
130
+ }, 8, ["label"])
131
+ ]),
132
+ _: 1
133
+ }),
134
+ t(o, { span: 12 }, {
135
+ default: l(() => [
136
+ t(i, {
137
+ label: e.$t("itsmFlowSpareParts.annual"),
138
+ prop: "annual"
139
+ }, {
140
+ default: l(() => [
141
+ s(n(u.value.annual), 1)
142
+ ]),
143
+ _: 1
144
+ }, 8, ["label"])
145
+ ]),
146
+ _: 1
147
+ }),
148
+ ((r = u.value) == null ? void 0 : r.type) !== "BudgetOut" ? (m(), S(o, {
149
+ key: 0,
150
+ span: 24
151
+ }, {
152
+ default: l(() => [
153
+ t(i, {
154
+ label: e.$t("itsmFlowSpareParts.itemId"),
155
+ prop: "itemId"
156
+ }, {
157
+ default: l(() => [
158
+ s(n(b(d).itemBizLayDict.getValue(u.value.itemId)), 1)
159
+ ]),
160
+ _: 1
161
+ }, 8, ["label"])
162
+ ]),
163
+ _: 1
164
+ })) : B("", !0),
165
+ ((k = u.value) == null ? void 0 : k.type) !== "BudgetOut" ? (m(), S(o, {
166
+ key: 1,
167
+ span: 12
168
+ }, {
169
+ default: l(() => [
170
+ t(i, {
171
+ label: e.$t("itsmFlowSpareParts.budgetType"),
172
+ prop: "budgetType"
173
+ }, {
174
+ default: l(() => [
175
+ s(n(b(d).budgetTypeDict.getValue(u.value.budgetType)), 1)
176
+ ]),
177
+ _: 1
178
+ }, 8, ["label"])
179
+ ]),
180
+ _: 1
181
+ })) : B("", !0),
182
+ ((y = u.value) == null ? void 0 : y.type) !== "BudgetOut" ? (m(), S(o, {
183
+ key: 2,
184
+ span: 12
185
+ }, {
186
+ default: l(() => [
187
+ t(i, {
188
+ label: e.$t("itsmFlowSpareParts.contractMoney"),
189
+ prop: "contractMoney"
190
+ }, {
191
+ default: l(() => [
192
+ s(n(u.value.contractMoney), 1)
193
+ ]),
194
+ _: 1
195
+ }, 8, ["label"])
196
+ ]),
197
+ _: 1
198
+ })) : B("", !0),
199
+ t(o, { span: 12 }, {
200
+ default: l(() => [
201
+ t(i, {
202
+ label: e.$t("itsmFlowSpareParts.createBy"),
203
+ prop: "createBy"
204
+ }, {
205
+ default: l(() => {
206
+ var g;
207
+ return [
208
+ s(n(u.value.createBy ? (g = b(X).userInfo(u.value.createBy)) == null ? void 0 : g.realName : ""), 1)
209
+ ];
210
+ }),
211
+ _: 1
212
+ }, 8, ["label"])
213
+ ]),
214
+ _: 1
215
+ }),
216
+ t(o, { span: 12 }, {
217
+ default: l(() => [
218
+ t(i, {
219
+ label: e.$t("itsmFlowSpareParts.applyDate"),
220
+ prop: "applyDate"
221
+ }, {
222
+ default: l(() => [
223
+ s(n(u.value.applyDate), 1)
224
+ ]),
225
+ _: 1
226
+ }, 8, ["label"])
227
+ ]),
228
+ _: 1
229
+ })
230
+ ];
231
+ }),
232
+ _: 1
233
+ }),
234
+ t(w, null, {
235
+ default: l(() => [
236
+ t(o, { span: 24 }, {
237
+ default: l(() => a[1] || (a[1] = [
238
+ v("div", { class: "title" }, "运维需求描述", -1)
239
+ ])),
240
+ _: 1,
241
+ __: [1]
242
+ }),
243
+ t(T, {
244
+ stripe: "",
245
+ style: { width: "100%" },
246
+ data: L.value
247
+ }, {
248
+ default: l(() => [
249
+ t(p, {
250
+ prop: "type",
251
+ label: e.$t("itsmFlowSpareParts.type")
252
+ }, {
253
+ default: l((r) => [
254
+ s(n(r.row.type), 1)
255
+ ]),
256
+ _: 1
257
+ }, 8, ["label"]),
258
+ t(p, {
259
+ prop: "name",
260
+ label: e.$t("itsmFlowSpareParts.name")
261
+ }, {
262
+ default: l((r) => [
263
+ s(n(r.row.name), 1)
264
+ ]),
265
+ _: 1
266
+ }, 8, ["label"]),
267
+ t(p, {
268
+ prop: "number",
269
+ label: e.$t("itsmFlowSpareParts.number")
270
+ }, {
271
+ default: l((r) => [
272
+ s(n(r.row.number), 1)
273
+ ]),
274
+ _: 1
275
+ }, 8, ["label"]),
276
+ t(p, {
277
+ prop: "unit",
278
+ label: e.$t("itsmFlowSpareParts.unit")
279
+ }, {
280
+ default: l((r) => [
281
+ s(n(r.row.unit), 1)
282
+ ]),
283
+ _: 1
284
+ }, 8, ["label"]),
285
+ t(p, {
286
+ prop: "parameter",
287
+ label: e.$t("itsmFlowSpareParts.parameter")
288
+ }, {
289
+ default: l((r) => [
290
+ s(n(r.row.parameter), 1)
291
+ ]),
292
+ _: 1
293
+ }, 8, ["label"]),
294
+ t(p, {
295
+ prop: "valuation",
296
+ label: e.$t("itsmFlowSpareParts.valuation")
297
+ }, {
298
+ default: l((r) => [
299
+ s(n(r.row.valuation), 1)
300
+ ]),
301
+ _: 1
302
+ }, 8, ["label"]),
303
+ t(p, {
304
+ prop: "range",
305
+ label: e.$t("itsmFlowSpareParts.range")
306
+ }, {
307
+ default: l((r) => [
308
+ s(n(r.row.range), 1)
309
+ ]),
310
+ _: 1
311
+ }, 8, ["label"])
312
+ ]),
313
+ _: 1
314
+ }, 8, ["data"]),
315
+ v("div", Z, [
316
+ a[2] || (a[2] = s(" 预估总价(万元):")),
317
+ v("span", x, n(), 1)
318
+ ]),
319
+ t(o, {
320
+ span: 24,
321
+ class: "bordered-row"
322
+ }, {
323
+ default: l(() => [
324
+ (m(!0), F(D, null, N(b(d).fileTypeDict.values.slice(0, 2), (r, k) => (m(), S(i, {
325
+ key: r.dictCode,
326
+ label: r.dictName
327
+ }, {
328
+ default: l(() => [
329
+ (m(!0), F(D, null, N(M(r.dictCode), (y, g) => (m(), F("div", {
330
+ key: g,
331
+ class: "files-list"
332
+ }, [
333
+ v("span", null, n(y.fileName), 1),
334
+ t(E, {
335
+ type: "primary",
336
+ link: "",
337
+ size: "small",
338
+ class: "icon-right",
339
+ onClick: (te) => A(y)
340
+ }, {
341
+ default: l(() => a[3] || (a[3] = [
342
+ s(" 查看 ")
343
+ ])),
344
+ _: 2,
345
+ __: [3]
346
+ }, 1032, ["onClick"])
347
+ ]))), 128))
348
+ ]),
349
+ _: 2
350
+ }, 1032, ["label"]))), 128))
351
+ ]),
352
+ _: 1
353
+ })
354
+ ]),
355
+ _: 1
356
+ })
357
+ ]),
358
+ _: 1
359
+ }, 8, ["model"])
360
+ ], 64);
361
+ };
362
+ }
363
+ }), de = /* @__PURE__ */ Y(ee, [["__scopeId", "data-v-96183488"]]);
364
+ export {
365
+ de as default
366
+ };
@@ -1,10 +1,11 @@
1
1
  import { defineComponent as be, mergeModels as ge, ref as f, useModel as Ie, reactive as H, resolveComponent as d, createElementBlock as k, openBlock as w, Fragment as $, createVNode as l, withCtx as o, createElementVNode as u, unref as r, renderList as K, createBlock as q, toDisplayString as W, createCommentVNode as he, createTextVNode as O } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as we } from "vue-i18n";
4
- import { p as Ee } from "./index-PafaMNgK.mjs";
5
- import { c as Ve, C as v, d as _e, e as Ne, D as E, a as J, f as R, b as Fe } from "./index-Cgbv4Ijf.mjs";
6
- import { E as Ue } from "./el-message-DawVzOVQ.mjs";
7
- const Re = /* @__PURE__ */ be({
4
+ import { p as Ee } from "./index-CvX2It1o.mjs";
5
+ import { itsmFlowEntrustApi as J } from "./index.mjs";
6
+ import { b as Ve, C as v, c as _e, d as Ne, D as E, e as R, a as Fe } from "./index-5rQmXXAD.mjs";
7
+ import { E as Ue } from "./el-message-BJAl6Gwu.mjs";
8
+ const De = /* @__PURE__ */ be({
8
9
  __name: "index",
9
10
  props: /* @__PURE__ */ ge({
10
11
  task: {
@@ -627,5 +628,5 @@ const Re = /* @__PURE__ */ be({
627
628
  }
628
629
  });
629
630
  export {
630
- Re as default
631
+ De as default
631
632
  };