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,273 @@
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 n, toDisplayString as i, unref as c, renderList as h, createBlock as E } from "vue";
2
+ import { rbacApi as U } from "jmash-rbac";
3
+ import { D as d, i as R, C as S } from "./index-5rQmXXAD.mjs";
4
+ import { fileApi as Y } from "jmash-core";
5
+ import { i as j } from "./index-CbG_QqOf.mjs";
6
+ const Q = /* @__PURE__ */ M({
7
+ __name: "index",
8
+ props: /* @__PURE__ */ N({
9
+ task: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ }, {
15
+ modelValue: {},
16
+ modelModifiers: {}
17
+ }),
18
+ emits: ["update:modelValue"],
19
+ setup(w, { expose: T }) {
20
+ d.itemBizLayDict.useValues(), d.orgIdBizDict.useValues(), console.log(d.itemBizLayDict.values, "=> itemBizLayDict"), console.log(d.orgIdBizDict.values, "=> itemBizLayDict");
21
+ const I = _(), L = _({}), m = P(w, "modelValue"), { proxy: V } = A(), k = w, s = _();
22
+ j.findById({ temporaryId: k.task.businessKey }).then((a) => {
23
+ s.value = a.data;
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");
28
+ });
29
+ async function z(a) {
30
+ try {
31
+ const u = Y.fileUrl(a.filePath), r = await (await fetch(u)).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();
33
+ } catch {
34
+ }
35
+ }
36
+ T({
37
+ changeModel: () => $()
38
+ });
39
+ function $() {
40
+ return m.value && (m.value.selectActions = [
41
+ { key: "true", value: "同意" },
42
+ { key: "false", value: "不同意" }
43
+ ], m.value.varName = "approved", m.value.module = "", m.value.module = S.MODULE_ITSMFLOW), new Promise((a, u) => {
44
+ var o;
45
+ (o = I.value) == null || o.validate((r) => {
46
+ r ? (m.value && (m.value.comment = ""), a(!0)) : u(!1);
47
+ });
48
+ });
49
+ }
50
+ return (a, u) => {
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, [
53
+ t(o, { span: 24 }, {
54
+ default: l(() => u[0] || (u[0] = [
55
+ F("div", { class: "title" }, "外部临时工单临时工单", -1)
56
+ ])),
57
+ _: 1,
58
+ __: [0]
59
+ }),
60
+ t(C, {
61
+ ref_key: "taskFormRef",
62
+ ref: I,
63
+ model: L.value,
64
+ "label-width": "150px",
65
+ class: "custom-table-form custom-form"
66
+ }, {
67
+ default: l(() => [
68
+ t(p, null, {
69
+ default: l(() => [
70
+ t(o, { span: 24 }, {
71
+ default: l(() => [
72
+ t(r, {
73
+ label: a.$t("itsmFlowSpareParts.govOrgId"),
74
+ prop: "govOrgId"
75
+ }, {
76
+ default: l(() => {
77
+ var e;
78
+ return [
79
+ n(i(c(d).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.govOrgId)), 1)
80
+ ];
81
+ }),
82
+ _: 1
83
+ }, 8, ["label"])
84
+ ]),
85
+ _: 1
86
+ }),
87
+ t(o, { span: 24 }, {
88
+ default: l(() => [
89
+ t(r, {
90
+ label: a.$t("itsmFlowSpareParts.itemId"),
91
+ prop: "itemId"
92
+ }, {
93
+ default: l(() => {
94
+ var e;
95
+ return [
96
+ n(i(c(d).itemBizLayDict.getValue((e = s.value) == null ? void 0 : e.itemId)), 1)
97
+ ];
98
+ }),
99
+ _: 1
100
+ }, 8, ["label"])
101
+ ]),
102
+ _: 1
103
+ }),
104
+ t(o, { span: 12 }, {
105
+ default: l(() => [
106
+ t(r, {
107
+ label: a.$t("itsmFlowTemporary.createBy"),
108
+ prop: "createBy"
109
+ }, {
110
+ default: l(() => {
111
+ var e;
112
+ return [
113
+ n(i(c(U).userInfo((e = s.value) == null ? void 0 : e.createBy).realName), 1)
114
+ ];
115
+ }),
116
+ _: 1
117
+ }, 8, ["label"])
118
+ ]),
119
+ _: 1
120
+ }),
121
+ t(o, { span: 12 }, {
122
+ default: l(() => [
123
+ t(r, {
124
+ label: a.$t("itsmFlowTemporary.createTime"),
125
+ prop: "createTime"
126
+ }, {
127
+ default: l(() => {
128
+ var e;
129
+ return [
130
+ n(i(c(V).$moment.formatDate(
131
+ (e = s.value) == null ? void 0 : e.createTime,
132
+ "YYYY-MM-DD HH:mm:ss"
133
+ )), 1)
134
+ ];
135
+ }),
136
+ _: 1
137
+ }, 8, ["label"])
138
+ ]),
139
+ _: 1
140
+ }),
141
+ t(o, { span: 24 }, {
142
+ default: l(() => [
143
+ t(r, {
144
+ label: a.$t("itsmFlowTemporary.title"),
145
+ prop: "title"
146
+ }, {
147
+ default: l(() => {
148
+ var e;
149
+ return [
150
+ n(i((e = s.value) == null ? void 0 : e.title), 1)
151
+ ];
152
+ }),
153
+ _: 1
154
+ }, 8, ["label"])
155
+ ]),
156
+ _: 1
157
+ }),
158
+ t(o, { span: 24 }, {
159
+ default: l(() => [
160
+ t(r, {
161
+ label: a.$t("itsmFlowTemporary.content"),
162
+ prop: "content"
163
+ }, {
164
+ default: l(() => {
165
+ var e;
166
+ return [
167
+ n(i((e = s.value) == null ? void 0 : e.content), 1)
168
+ ];
169
+ }),
170
+ _: 1
171
+ }, 8, ["label"])
172
+ ]),
173
+ _: 1
174
+ }),
175
+ t(o, {
176
+ span: 24,
177
+ class: "bordered-row"
178
+ }, {
179
+ default: l(() => [
180
+ (v(!0), b(g, null, h(c(d).fileTypeDict.values.slice(2, 3), (e, H) => (v(), E(r, {
181
+ key: e.dictCode,
182
+ label: e.dictName
183
+ }, {
184
+ default: l(() => [
185
+ (v(!0), b(g, null, h(D.value, (B, O) => (v(), b("div", {
186
+ key: O,
187
+ class: "files-list"
188
+ }, [
189
+ F("span", null, i(B.fileName), 1),
190
+ t(y, {
191
+ type: "primary",
192
+ link: "",
193
+ size: "small",
194
+ class: "icon-right",
195
+ onClick: (K) => z(B)
196
+ }, {
197
+ default: l(() => u[1] || (u[1] = [
198
+ n(" 查看 ")
199
+ ])),
200
+ _: 2,
201
+ __: [1]
202
+ }, 1032, ["onClick"])
203
+ ]))), 128))
204
+ ]),
205
+ _: 2
206
+ }, 1032, ["label"]))), 128))
207
+ ]),
208
+ _: 1
209
+ }),
210
+ t(o, { span: 24 }, {
211
+ default: l(() => [
212
+ t(r, {
213
+ label: a.$t("itsmFlowTemporary.outOrgId"),
214
+ prop: "outOrgId"
215
+ }, {
216
+ default: l(() => {
217
+ var e;
218
+ return [
219
+ n(i(c(d).orgIdBizDict.getValue((e = s.value) == null ? void 0 : e.outOrgId)), 1)
220
+ ];
221
+ }),
222
+ _: 1
223
+ }, 8, ["label"])
224
+ ]),
225
+ _: 1
226
+ }),
227
+ t(o, { span: 24 }, {
228
+ default: l(() => [
229
+ t(r, {
230
+ label: a.$t("itsmFlowTemporary.userId"),
231
+ prop: "userId"
232
+ }, {
233
+ default: l(() => {
234
+ var e;
235
+ return [
236
+ n(i(c(d).userExtBizDict.getValue((e = s.value) == null ? void 0 : e.userId)), 1)
237
+ ];
238
+ }),
239
+ _: 1
240
+ }, 8, ["label"])
241
+ ]),
242
+ _: 1
243
+ }),
244
+ t(o, { span: 24 }, {
245
+ default: l(() => [
246
+ t(r, {
247
+ label: a.$t("itsmFlowTemporary.handlingPeriod"),
248
+ prop: "handlingPeriod"
249
+ }, {
250
+ default: l(() => {
251
+ var e;
252
+ return [
253
+ n(i((e = s.value) == null ? void 0 : e.handlingPeriod), 1)
254
+ ];
255
+ }),
256
+ _: 1
257
+ }, 8, ["label"])
258
+ ]),
259
+ _: 1
260
+ })
261
+ ]),
262
+ _: 1
263
+ })
264
+ ]),
265
+ _: 1
266
+ }, 8, ["model"])
267
+ ], 64);
268
+ };
269
+ }
270
+ });
271
+ export {
272
+ Q as default
273
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as ne, mergeModels as se, ref as p, useModel as de, reactive as M, resolveComponent as i, createElementBlock as C, openBlock as g, Fragment as O, createVNode as l, createElementVNode as r, withCtx as t, unref as s, createBlock as re, createCommentVNode as ue, createTextVNode as V, toDisplayString as L, renderList as ie } from "vue";
2
2
  import "element-plus";
3
3
  import { useI18n as me } from "vue-i18n";
4
- import { u as ce } from "./index-PafaMNgK.mjs";
5
- import { I as pe, C as w, U as fe, e as ve, D as F, i as N } from "./index-Cgbv4Ijf.mjs";
4
+ import { u as ce } from "./index-CvX2It1o.mjs";
5
+ import { I as pe, C as w, U as fe, d as ve, D as F, i as N } from "./index-5rQmXXAD.mjs";
6
6
  import { useUserStore as be } from "jmash-core";
7
- import { E as S } from "./el-message-DawVzOVQ.mjs";
7
+ import { E as S } from "./el-message-BJAl6Gwu.mjs";
8
8
  const Ae = /* @__PURE__ */ ne({
9
9
  __name: "index",
10
10
  props: /* @__PURE__ */ se({
@@ -1,12 +1,13 @@
1
1
  import { defineComponent as Z, mergeModels as ee, ref as m, useModel as le, resolveComponent as d, createElementBlock as A, openBlock as k, Fragment as O, createVNode as e, withCtx as l, createElementVNode as s, createTextVNode as u, toDisplayString as r, unref as b, createBlock as $, createCommentVNode as V, renderList as te } from "vue";
2
2
  import "element-plus";
3
- import { u as ae } from "./index-PafaMNgK.mjs";
4
- import { D as F, i as I, C as y, a as oe } from "./index-Cgbv4Ijf.mjs";
3
+ import { u as ae } from "./index-CvX2It1o.mjs";
4
+ import { itsmFlowEntrustApi as oe } from "./index.mjs";
5
+ import { D as F, i as I, C as y } from "./index-5rQmXXAD.mjs";
5
6
  import { fileApi as ne } from "jmash-core";
6
7
  import { useI18n as se } from "vue-i18n";
7
- import { F as ue } from "./FileSaver.min-5d27MsC6.mjs";
8
- import { E as j } from "./el-message-DawVzOVQ.mjs";
9
- const be = /* @__PURE__ */ Z({
8
+ import { F as ue } from "./FileSaver.min-X2_RihtX.mjs";
9
+ import { E as j } from "./el-message-BJAl6Gwu.mjs";
10
+ const ke = /* @__PURE__ */ Z({
10
11
  __name: "index",
11
12
  props: /* @__PURE__ */ ee({
12
13
  task: {
@@ -514,5 +515,5 @@ const be = /* @__PURE__ */ Z({
514
515
  }
515
516
  });
516
517
  export {
517
- be as default
518
+ ke as default
518
519
  };
@@ -2,8 +2,8 @@ import { defineComponent as M, ref as R, reactive as S, resolveComponent as s, r
2
2
  import { useTableHooks as X } from "jmash-core";
3
3
  import { useI18n as Y } from "vue-i18n";
4
4
  import { i as Z } from "./common-Cwl5jzlM.mjs";
5
- import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-BjhcvEHi.mjs";
6
- import { C as ee, D as h } from "./index-Cgbv4Ijf.mjs";
5
+ import { _ as x } from "./edit.vue_vue_type_script_setup_true_lang-VfP4qMQI.mjs";
6
+ import { C as ee, D as h } from "./index-5rQmXXAD.mjs";
7
7
  const oe = { class: "app-container" }, le = { class: "search-container" }, te = ["onClick"], ne = ["onClick"], pe = /* @__PURE__ */ M({
8
8
  __name: "index",
9
9
  setup(ae) {