iking-web-ui-pro 0.0.1

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 (107) hide show
  1. package/dist/Demo/index.es.js +13 -0
  2. package/dist/Demo/index.umd.js +1 -0
  3. package/dist/Demo/package.json +7 -0
  4. package/dist/IKApprovalProcess/index.es.js +13026 -0
  5. package/dist/IKApprovalProcess/index.umd.js +32 -0
  6. package/dist/IKApprovalProcess/package.json +7 -0
  7. package/dist/IKApprovalProcess/style.css +7 -0
  8. package/dist/IKApprovalProcessDetail/index.es.js +630 -0
  9. package/dist/IKApprovalProcessDetail/index.umd.js +1 -0
  10. package/dist/IKApprovalProcessDetail/package.json +7 -0
  11. package/dist/IKApprovalProcessDetail/style.css +1 -0
  12. package/dist/IKCalendar/index.es.js +22495 -0
  13. package/dist/IKCalendar/index.umd.js +32 -0
  14. package/dist/IKCalendar/package.json +7 -0
  15. package/dist/IKCalendar/style.css +7 -0
  16. package/dist/IKDescription/index.es.js +105 -0
  17. package/dist/IKDescription/index.umd.js +1 -0
  18. package/dist/IKDescription/style.css +1 -0
  19. package/dist/IKDetailPreviewFiles/index.es.js +1599 -0
  20. package/dist/IKDetailPreviewFiles/index.umd.js +1 -0
  21. package/dist/IKDetailPreviewFiles/style.css +1 -0
  22. package/dist/IKExpandCollapse/index.es.js +1388 -0
  23. package/dist/IKExpandCollapse/index.umd.js +1 -0
  24. package/dist/IKExpandCollapse/style.css +1 -0
  25. package/dist/IKHorizontalStepBar/index.es.js +251 -0
  26. package/dist/IKHorizontalStepBar/index.umd.js +1 -0
  27. package/dist/IKHorizontalStepBar/package.json +7 -0
  28. package/dist/IKHorizontalStepBar/style.css +1 -0
  29. package/dist/IKPreviewFile/index.es.js +108 -0
  30. package/dist/IKPreviewFile/index.umd.js +1 -0
  31. package/dist/IKPreviewFile/style.css +1 -0
  32. package/dist/IKSearch/index.es.js +13406 -0
  33. package/dist/IKSearch/index.umd.js +57 -0
  34. package/dist/IKSearch/package.json +7 -0
  35. package/dist/IKSearch/style.css +7 -0
  36. package/dist/IKSearchHead/index.es.js +116 -0
  37. package/dist/IKSearchHead/index.umd.js +1 -0
  38. package/dist/IKSearchHead/package.json +7 -0
  39. package/dist/IKSearchHead/style.css +1 -0
  40. package/dist/IKVerticalStepBar/index.es.js +1481 -0
  41. package/dist/IKVerticalStepBar/index.umd.js +9 -0
  42. package/dist/IKVerticalStepBar/package.json +7 -0
  43. package/dist/IKVerticalStepBar/style.css +1 -0
  44. package/dist/IkBottomOperate/index.es.js +210 -0
  45. package/dist/IkBottomOperate/index.umd.js +1 -0
  46. package/dist/IkBottomOperate/style.css +1 -0
  47. package/dist/IkBtnContent/index.es.js +101 -0
  48. package/dist/IkBtnContent/index.umd.js +1 -0
  49. package/dist/IkBtnContent/style.css +1 -0
  50. package/dist/IkBtnSetting/index.es.js +12854 -0
  51. package/dist/IkBtnSetting/index.umd.js +32 -0
  52. package/dist/IkBtnSetting/style.css +7 -0
  53. package/dist/IkDragList/index.es.js +11071 -0
  54. package/dist/IkDragList/index.umd.js +32 -0
  55. package/dist/IkDragList/style.css +7 -0
  56. package/dist/IkFullCalendar/index.es.js +20327 -0
  57. package/dist/IkFullCalendar/index.umd.js +32 -0
  58. package/dist/IkFullCalendar/style.css +7 -0
  59. package/dist/IkIconPicker/index.es.js +13693 -0
  60. package/dist/IkIconPicker/index.umd.js +32 -0
  61. package/dist/IkIconPicker/style.css +7 -0
  62. package/dist/IkOnlyOffice/index.es.js +393 -0
  63. package/dist/IkOnlyOffice/index.umd.js +1 -0
  64. package/dist/IkOnlyOffice/style.css +0 -0
  65. package/dist/IkPageFull/index.es.js +15725 -0
  66. package/dist/IkPageFull/index.umd.js +48 -0
  67. package/dist/IkPageFull/style.css +7 -0
  68. package/dist/IkPageTabs/index.es.js +135 -0
  69. package/dist/IkPageTabs/index.umd.js +1 -0
  70. package/dist/IkPageTabs/style.css +1 -0
  71. package/dist/IkPicker/index.es.js +12629 -0
  72. package/dist/IkPicker/index.umd.js +32 -0
  73. package/dist/IkPicker/style.css +7 -0
  74. package/dist/IkPickerUser/index.es.js +12508 -0
  75. package/dist/IkPickerUser/index.umd.js +32 -0
  76. package/dist/IkPickerUser/style.css +7 -0
  77. package/dist/IkPrintConfig/index.es.js +62 -0
  78. package/dist/IkPrintConfig/index.umd.js +1 -0
  79. package/dist/IkPrintView/index.es.js +79 -0
  80. package/dist/IkPrintView/index.umd.js +1 -0
  81. package/dist/IkRadioGroup/index.es.js +75 -0
  82. package/dist/IkRadioGroup/index.umd.js +1 -0
  83. package/dist/IkRadioGroup/style.css +1 -0
  84. package/dist/IkSchedule/index.es.js +22228 -0
  85. package/dist/IkSchedule/index.umd.js +32 -0
  86. package/dist/IkSchedule/style.css +7 -0
  87. package/dist/IkStatu/index.es.js +119 -0
  88. package/dist/IkStatu/index.umd.js +1 -0
  89. package/dist/IkStatu/style.css +1 -0
  90. package/dist/IkSvgIcon/index.es.js +1343 -0
  91. package/dist/IkSvgIcon/index.umd.js +1 -0
  92. package/dist/IkSvgIcon/style.css +1 -0
  93. package/dist/IkTemplateOfficeConfig/index.es.js +805 -0
  94. package/dist/IkTemplateOfficeConfig/index.umd.js +1 -0
  95. package/dist/IkTemplateOfficeConfig/style.css +1 -0
  96. package/dist/IkTooltip/index.es.js +49 -0
  97. package/dist/IkTooltip/index.umd.js +1 -0
  98. package/dist/IkUploadFile/index.es.js +12098 -0
  99. package/dist/IkUploadFile/index.umd.js +32 -0
  100. package/dist/IkUploadFile/style.css +7 -0
  101. package/dist/IkUploadImage/index.es.js +11442 -0
  102. package/dist/IkUploadImage/index.umd.js +32 -0
  103. package/dist/IkUploadImage/style.css +7 -0
  104. package/dist/index.es.js +33843 -0
  105. package/dist/index.umd.js +81 -0
  106. package/dist/style.css +7 -0
  107. package/package.json +66 -0
@@ -0,0 +1,630 @@
1
+ import { defineComponent as U, reactive as V, watch as W, nextTick as j, onMounted as H, resolveComponent as K, openBlock as o, createElementBlock as s, Fragment as _, renderList as N, createElementVNode as i, createCommentVNode as l, normalizeClass as S, toDisplayString as u, normalizeStyle as E, createTextVNode as P, createVNode as X, pushScopeId as q, popScopeId as G } from "vue";
2
+ const J = (c, v) => {
3
+ if (c.install = (r) => {
4
+ for (const e of [c, ...Object.values(v ?? {})])
5
+ r.component(e.name, e);
6
+ }, v)
7
+ for (const [r, e] of Object.entries(v))
8
+ c[r] = e;
9
+ return c;
10
+ };
11
+ const I = (c) => (q("data-v-41886e6b"), c = c(), G(), c), Q = {
12
+ class: "approveProcess",
13
+ id: "approveProcess"
14
+ }, Y = ["id"], Z = { class: "topBlock" }, ee = { class: "left" }, te = { class: "nodeBg" }, ae = ["src"], oe = { class: "right" }, se = { class: "topInfo" }, le = { key: 0 }, ne = {
15
+ key: 0,
16
+ class: "main-text"
17
+ }, ie = { class: "name" }, re = { key: 0 }, pe = { key: 0 }, de = { key: 1 }, ue = /* @__PURE__ */ I(() => /* @__PURE__ */ i(
18
+ "span",
19
+ {
20
+ class: "red",
21
+ style: { margin: "0px 5px" }
22
+ },
23
+ "退回至",
24
+ -1
25
+ /* HOISTED */
26
+ )), ce = { key: 0 }, fe = { key: 0 }, ve = { key: 1 }, _e = { key: 1 }, he = /* @__PURE__ */ I(() => /* @__PURE__ */ i(
27
+ "div",
28
+ { class: "main-text" },
29
+ "抄送人员",
30
+ -1
31
+ /* HOISTED */
32
+ )), ye = { class: "name" }, ke = { key: 0 }, ge = { style: { color: "#000" } }, Fe = {
33
+ class: "blue",
34
+ style: { "margin-left": "5px", "font-size": "12px" }
35
+ }, me = { key: 1 }, Ne = {
36
+ key: 0,
37
+ class: "blue",
38
+ style: { "font-size": "12px" }
39
+ }, Te = { key: 1 }, be = {
40
+ key: 0,
41
+ class: "blue",
42
+ style: { "font-size": "12px" }
43
+ }, xe = {
44
+ key: 1,
45
+ class: "blue",
46
+ style: { "font-size": "12px" }
47
+ }, Oe = { class: "time" }, Pe = { key: 0 }, Se = { key: 1 }, Ie = ["onClick"], Le = ["onClick"], we = {
48
+ key: 0,
49
+ class: "opinion"
50
+ }, ze = { key: 0 }, Be = { key: 1 }, je = /* @__PURE__ */ I(() => /* @__PURE__ */ i(
51
+ "span",
52
+ null,
53
+ "添加审批人",
54
+ -1
55
+ /* HOISTED */
56
+ )), Ee = { style: { color: "var(--el-text-color-primary)", "margin-left": "8px" } }, De = {
57
+ key: 1,
58
+ class: "annex"
59
+ }, Ae = ["onClick"], Ce = { class: "text" }, $e = { class: "fileName" }, Re = { class: "size" }, Me = {
60
+ key: 2,
61
+ class: "annexImage"
62
+ }, Ue = {
63
+ key: 3,
64
+ class: "approveList"
65
+ }, Ve = { class: "nodeBg-list" }, We = ["src"], He = {
66
+ key: 1,
67
+ class: "ikapprove ikapprove-duihao2 green read"
68
+ }, Ke = ["title"], Xe = {
69
+ name: "IkingApprovalProcessDetail"
70
+ }, qe = /* @__PURE__ */ U({
71
+ ...Xe,
72
+ props: {
73
+ // 是否本地打开
74
+ local: {
75
+ type: Boolean,
76
+ default: !1
77
+ },
78
+ // 状态数组
79
+ defaultStatus: {
80
+ type: Object,
81
+ default: () => ({})
82
+ },
83
+ // 节点类型
84
+ defaultNodeType: {
85
+ type: Object,
86
+ default: () => ({})
87
+ },
88
+ // 数据数组
89
+ dataList: {
90
+ type: Array,
91
+ default: () => []
92
+ },
93
+ // 字段映射
94
+ defaultFieldMap: {
95
+ type: Object,
96
+ default: () => ({})
97
+ },
98
+ // 退回的节点数组
99
+ returnNode: {
100
+ type: Array,
101
+ default: () => []
102
+ },
103
+ //文件访问地址
104
+ fileUrl: {
105
+ type: String,
106
+ default: ""
107
+ }
108
+ },
109
+ emits: ["preview"],
110
+ setup(c, { emit: v }) {
111
+ const r = c, e = V({
112
+ nodeType: {
113
+ 发起人节点: "1",
114
+ 审批节点: "2",
115
+ 办理节点: "3",
116
+ 抄送节点: "4",
117
+ ...r.defaultNodeType
118
+ },
119
+ statusOption: {
120
+ 发起: "1",
121
+ 等待: "2",
122
+ 同意: "3",
123
+ 拒绝: "4",
124
+ 转交: "5",
125
+ 加签: "6",
126
+ 退回: "7",
127
+ 撤销: "8",
128
+ 评论: "9",
129
+ ...r.defaultStatus
130
+ },
131
+ listData: [],
132
+ defaultFile: {
133
+ id: "id",
134
+ nodeId: "nodeId",
135
+ nodeType: "nodeType",
136
+ nodeTypeName: "nodeTypeName",
137
+ approveStatus: "approveStatus",
138
+ approveStatusName: "approveStatusName",
139
+ originator: "originator",
140
+ operationTime: "operationTime",
141
+ approveType: "approveType",
142
+ approveTypeName: "approveTypeName",
143
+ multiExecutorTypeName: "multiExecutorTypeName",
144
+ approveOpinion: "approveOpinion",
145
+ countersignPer: "countersignPer",
146
+ backToRecordNodeName: "backToRecordNodeName",
147
+ attachment: "attachment",
148
+ attachmentParam: {
149
+ id: "id",
150
+ originName: "originName",
151
+ url: "url",
152
+ suffix: "suffix",
153
+ size: "size"
154
+ },
155
+ attachmentImg: "attachmentImg",
156
+ returnNode: "returnNode",
157
+ returnNodeName: "returnNodeName",
158
+ lineType: "lineType",
159
+ allRead: "allRead",
160
+ read: "read",
161
+ approvePersonList: [
162
+ {
163
+ id: "id",
164
+ name: "name",
165
+ approveState: "approveState",
166
+ approveTime: "approveTime",
167
+ approveOpinion: "approveOpinion",
168
+ userAvatar: "userAvatar",
169
+ accomplish: "accomplish"
170
+ }
171
+ ],
172
+ ...r.defaultFieldMap
173
+ }
174
+ });
175
+ W(
176
+ () => r.dataList,
177
+ (a) => {
178
+ a && (j(() => {
179
+ e.listData = a;
180
+ }), setTimeout(() => {
181
+ r.returnNode.length && T();
182
+ }, 500));
183
+ },
184
+ { deep: !0 }
185
+ ), H(() => {
186
+ r.dataList.length && (e.listData = r.dataList, setTimeout(() => {
187
+ r.returnNode.length && T();
188
+ }, 500));
189
+ });
190
+ const T = () => {
191
+ let a = null;
192
+ if (r != null && r.returnNode)
193
+ for (a of r == null ? void 0 : r.returnNode) {
194
+ if (isNaN(a[1]))
195
+ return;
196
+ let n = Array.from(new Array(a[1] + 1).keys()).slice(a[0]);
197
+ j(() => {
198
+ D(n);
199
+ });
200
+ }
201
+ }, D = (a) => {
202
+ var k, g, F;
203
+ let n = document.createElement("div"), d = document.getElementById("approveProcess"), t = 0, f = (k = document.getElementById(`${a[0]}`)) == null ? void 0 : k.offsetWidth, h = (g = document.getElementById(`${a[0]}`)) == null ? void 0 : g.offsetLeft, b = (F = document.getElementById(`${a[0]}`)) == null ? void 0 : F.offsetTop;
204
+ a.forEach((x) => {
205
+ let O = document.getElementById(`${x}`);
206
+ t += O.offsetHeight;
207
+ }), setTimeout(() => {
208
+ n.style.width = f + 32 + "px", n.style.height = t + "px", n.style.background = "#f9f9f9", n.style.position = "absolute", n.style.top = b - 16 + "px", n.style.left = h - 16 + "px", n.style.zIndex = -1, d == null || d.appendChild(n);
209
+ });
210
+ }, A = (a, n) => {
211
+ var f;
212
+ let d = (f = e.listData) == null ? void 0 : f.findIndex((h) => h.lineType == "dashed"), t = "";
213
+ switch (a) {
214
+ case e.statusOption.发起:
215
+ t = "ikapprove-duihao2 green";
216
+ break;
217
+ case e.statusOption.等待:
218
+ t = d == n ? "ikapprove-dengdai orange" : "";
219
+ break;
220
+ case e.statusOption.同意:
221
+ t = "ikapprove-duihao2 green";
222
+ break;
223
+ case e.statusOption.拒绝:
224
+ t = "ikapprove-jujue red";
225
+ break;
226
+ case e.statusOption.转交:
227
+ t = "ikapprove-zhuanjiao blue";
228
+ break;
229
+ case e.statusOption.加签:
230
+ t = "ikapprove-tianjia blue";
231
+ break;
232
+ case e.statusOption.退回:
233
+ t = "ikapprove-s_fanhui2 red";
234
+ break;
235
+ case e.statusOption.评论:
236
+ t = "ikapprove-pinglun1 blue";
237
+ break;
238
+ }
239
+ return `ikapprove ${t}`;
240
+ }, C = (a, n) => {
241
+ let d = "";
242
+ switch (a) {
243
+ case e.nodeType.发起人节点:
244
+ d = "ikapprove-ziyuan";
245
+ break;
246
+ case e.nodeType.审批节点:
247
+ n && n.length == 1 ? d = "ikapprove-ziyuan" : d = "ikapprove-shenpi";
248
+ break;
249
+ case e.nodeType.办理节点:
250
+ d = "ikapprove-bianji";
251
+ break;
252
+ case e.nodeType.抄送节点:
253
+ d = "ikapprove-chaosong";
254
+ break;
255
+ default:
256
+ d = "ikapprove-ziyuan";
257
+ }
258
+ return `ikapprove ${d}`;
259
+ }, $ = (a) => {
260
+ let n = "";
261
+ return a == "jpg" || a == "jpeg" || a == "png" ? n = "ikapprove-tupian" : a == "doc" || a == "docx" ? n = "ikapprove-WORD" : a == "xls" || a == "xlsx" ? n = "ikapprove-EXCEL" : a == "ppt" || a == "pptx" ? n = "ikapprove-pptcopy" : a == "pdf" ? n = "ikapprove-PDF" : a == "rar" || a == "zip" ? n = "ikapprove-fujian" : a == "txt" || a == "zip" ? n = "ikapprove-TXTCopy" : a == "mp3" || a == "wma" || a == "m4a" ? n = "ikapprove-yinpinwenjian" : (a == "avi" || a == "wmv" || a == "mp4" || a == "mov") && (n = "ikapprove-shipinwenjian"), `icon ikapprove ${n}`;
262
+ }, R = v, M = (a) => {
263
+ R("preview", a), r.local || window.open(y(a[e.defaultFile.attachmentParam.url]));
264
+ }, L = (a, n) => {
265
+ a.show = !a.show;
266
+ let d = document.getElementById(`${a[e.defaultFile.nodeId]}`), t = Array.from(d == null ? void 0 : d.getElementsByClassName("approveList"));
267
+ for (let f of t)
268
+ f.style.display = n;
269
+ }, y = (a) => {
270
+ let n = "";
271
+ return a.includes("http") || a.includes("https") ? n = a : n = r.fileUrl + a, n;
272
+ };
273
+ return (a, n) => {
274
+ const d = K("el-image");
275
+ return o(), s("div", Q, [
276
+ (o(!0), s(
277
+ _,
278
+ null,
279
+ N(e.listData, (t, f) => {
280
+ var h, b, k, g, F, x, O, w, z, B;
281
+ return o(), s("div", {
282
+ class: "approveBlock",
283
+ id: t[e.defaultFile.nodeId],
284
+ key: t[e.defaultFile.nodeId]
285
+ }, [
286
+ i("div", Z, [
287
+ i("div", ee, [
288
+ i("span", te, [
289
+ l(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),
290
+ ((h = t[e.defaultFile.approvePersonList]) == null ? void 0 : h.length) == 1 && t[e.defaultFile.approvePersonList][0].userAvatar ? (o(), s("img", {
291
+ key: 0,
292
+ style: { width: "100%", height: "100%", "border-radius": "50%" },
293
+ src: y(t[e.defaultFile.approvePersonList][0].userAvatar),
294
+ alt: ""
295
+ }, null, 8, ae)) : (o(), s(
296
+ _,
297
+ { key: 1 },
298
+ [
299
+ l(" 否则显示对应节点 "),
300
+ i(
301
+ "i",
302
+ {
303
+ class: S(
304
+ C(
305
+ t[e.defaultFile.nodeType],
306
+ t[e.defaultFile.approvePersonList]
307
+ )
308
+ )
309
+ },
310
+ null,
311
+ 2
312
+ /* CLASS */
313
+ )
314
+ ],
315
+ 2112
316
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
317
+ )),
318
+ l(" 审批状态图标 "),
319
+ i(
320
+ "i",
321
+ {
322
+ class: S(
323
+ A(t[e.defaultFile.approveStatus], f)
324
+ )
325
+ },
326
+ null,
327
+ 2
328
+ /* CLASS */
329
+ )
330
+ ])
331
+ ]),
332
+ i("div", oe, [
333
+ i("div", se, [
334
+ i("div", null, [
335
+ l(" 不是抄送节点 "),
336
+ t[e.defaultFile.nodeType] != e.nodeType.抄送节点 ? (o(), s("div", le, [
337
+ l(" 撤销,评论不显示节点名称 "),
338
+ t[e.defaultFile.approveStatus] != e.statusOption.撤销 && t[e.defaultFile.approveStatus] != e.statusOption.评论 ? (o(), s(
339
+ "div",
340
+ ne,
341
+ u(t[e.defaultFile.nodeTypeName]),
342
+ 1
343
+ /* TEXT */
344
+ )) : l("v-if", !0),
345
+ l(" 名字+审批状态 "),
346
+ i("div", ie, [
347
+ l(" 已审批节点文本 "),
348
+ t[e.defaultFile.lineType] == "solid" ? (o(), s("div", re, [
349
+ i(
350
+ "span",
351
+ {
352
+ style: E({
353
+ color: t[e.defaultFile.approveStatus] == e.statusOption.评论 ? "#000" : ""
354
+ })
355
+ },
356
+ u(t[e.defaultFile.originator]),
357
+ 5
358
+ /* TEXT, STYLE */
359
+ ),
360
+ l(" 发起,退回不显示状态 "),
361
+ t[e.defaultFile.approveStatusName] && t[e.defaultFile.approveStatus] != e.statusOption.发起 && t[e.defaultFile.approveStatus] != e.statusOption.退回 ? (o(), s(
362
+ "span",
363
+ pe,
364
+ u(t[e.defaultFile.approveStatus] == e.statusOption.评论 ? " 添加了评论" : "(" + t[e.defaultFile.approveStatusName] + ")"),
365
+ 1
366
+ /* TEXT */
367
+ )) : l("v-if", !0),
368
+ l(" 退回状态显示 "),
369
+ t[e.defaultFile.approveStatus] == e.statusOption.退回 ? (o(), s("span", de, [
370
+ ue,
371
+ P(
372
+ u(t[e.defaultFile.backToRecordNodeName]),
373
+ 1
374
+ /* TEXT */
375
+ )
376
+ ])) : l("v-if", !0)
377
+ ])) : (o(), s(
378
+ _,
379
+ { key: 1 },
380
+ [
381
+ l(" 待审批节点 "),
382
+ i("div", null, [
383
+ ((b = t[e.defaultFile.approvePersonList]) == null ? void 0 : b.length) == 1 ? (o(), s("span", ce, [
384
+ P(
385
+ u(t[e.defaultFile.originator]) + " ",
386
+ 1
387
+ /* TEXT */
388
+ ),
389
+ t[e.defaultFile.approveStatus] == e.statusOption.等待 ? (o(), s(
390
+ "span",
391
+ fe,
392
+ u(`(${t[e.defaultFile.approveStatusName]})`),
393
+ 1
394
+ /* TEXT */
395
+ )) : l("v-if", !0)
396
+ ])) : (o(), s(
397
+ "span",
398
+ ve,
399
+ u(((k = t[e.defaultFile.approvePersonList]) == null ? void 0 : k.length) + "人" + t[e.defaultFile.approveTypeName]),
400
+ 1
401
+ /* TEXT */
402
+ ))
403
+ ])
404
+ ],
405
+ 2112
406
+ /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
407
+ ))
408
+ ])
409
+ ])) : (o(), s("div", _e, [
410
+ he,
411
+ i("div", ye, [
412
+ l(" 抄送一人时 "),
413
+ ((g = t[e.defaultFile.approvePersonList]) == null ? void 0 : g.length) == 1 ? (o(), s("span", ke, [
414
+ i("span", null, [
415
+ P("已抄送给 "),
416
+ i(
417
+ "span",
418
+ ge,
419
+ u(t[e.defaultFile.approvePersonList][0].userName),
420
+ 1
421
+ /* TEXT */
422
+ )
423
+ ]),
424
+ i(
425
+ "span",
426
+ Fe,
427
+ u(t[e.defaultFile.approvePersonList][0].status === "END" ? "已读" : "未读"),
428
+ 1
429
+ /* TEXT */
430
+ )
431
+ ])) : l("v-if", !0),
432
+ l(" 抄送多人时 "),
433
+ ((F = t[e.defaultFile.approvePersonList]) == null ? void 0 : F.length) > 1 ? (o(), s("span", me, [
434
+ P(
435
+ u(`已抄送${(x = t[e.defaultFile.approvePersonList]) == null ? void 0 : x.length}人`) + " ",
436
+ 1
437
+ /* TEXT */
438
+ ),
439
+ t[e.defaultFile.allRead] ? (o(), s("span", Ne, " 全部已读 ")) : (o(), s("span", Te, [
440
+ t[e.defaultFile.read] ? l("v-if", !0) : (o(), s("span", be, " 全部未读 ")),
441
+ t[e.defaultFile.read] ? (o(), s(
442
+ "span",
443
+ xe,
444
+ u(t[e.defaultFile.read]) + "人已读 ",
445
+ 1
446
+ /* TEXT */
447
+ )) : l("v-if", !0)
448
+ ]))
449
+ ])) : l("v-if", !0)
450
+ ])
451
+ ]))
452
+ ]),
453
+ i("div", Oe, [
454
+ l(" 不是抄送节点,展示时间 "),
455
+ t[e.defaultFile.nodeType] != e.nodeType.抄送节点 ? (o(), s(
456
+ "span",
457
+ Pe,
458
+ u(t[e.defaultFile.operationTime]),
459
+ 1
460
+ /* TEXT */
461
+ )) : l("v-if", !0),
462
+ l(" 是抄送节点,并且抄送人员大于1时,展示图标 "),
463
+ t[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((O = t[e.defaultFile.approvePersonList]) == null ? void 0 : O.length) > 1 ? (o(), s("span", Se, [
464
+ t != null && t.show ? (o(), s("i", {
465
+ key: 0,
466
+ class: "ikapprove ikapprove-a-putongjiantouzhankai",
467
+ onClick: (p) => L(t, "grid")
468
+ }, null, 8, Ie)) : (o(), s("i", {
469
+ key: 1,
470
+ onClick: (p) => L(t, "none"),
471
+ class: "ikapprove ikapprove-a-putongjiantoushouqi"
472
+ }, null, 8, Le))
473
+ ])) : l("v-if", !0)
474
+ ])
475
+ ])
476
+ ])
477
+ ]),
478
+ i(
479
+ "div",
480
+ {
481
+ class: "bottomBlock",
482
+ style: E({
483
+ borderLeft: f == e.listData.length - 1 ? "" : `2px ${t[e.defaultFile.lineType]} var(--el-border-color)`
484
+ })
485
+ },
486
+ [
487
+ l(" 审批意见 "),
488
+ t[e.defaultFile.approveOpinion] || t[e.defaultFile.approveStatus] == e.statusOption.加签 ? (o(), s("div", we, [
489
+ t[e.defaultFile.approveOpinion] ? (o(), s(
490
+ "span",
491
+ ze,
492
+ u(t[e.defaultFile.approveOpinion]),
493
+ 1
494
+ /* TEXT */
495
+ )) : l("v-if", !0),
496
+ t[e.defaultFile.approveStatus] == e.statusOption.加签 ? (o(), s("span", Be, [
497
+ je,
498
+ (o(!0), s(
499
+ _,
500
+ null,
501
+ N(t[e.defaultFile.countersignPer], (p, m) => (o(), s(
502
+ "span",
503
+ Ee,
504
+ u(p == null ? void 0 : p.userName) + u(m < t[e.defaultFile.countersignPer].length - 1 ? "、" : ""),
505
+ 1
506
+ /* TEXT */
507
+ ))),
508
+ 256
509
+ /* UNKEYED_FRAGMENT */
510
+ ))
511
+ ])) : l("v-if", !0)
512
+ ])) : l("v-if", !0),
513
+ l(" 附件 "),
514
+ (w = t[e.defaultFile.attachment]) != null && w.length ? (o(), s("div", De, [
515
+ (o(!0), s(
516
+ _,
517
+ null,
518
+ N(t[e.defaultFile.attachment], (p, m) => (o(), s("div", {
519
+ class: "file-card",
520
+ key: m,
521
+ onClick: (Qe) => M(p)
522
+ }, [
523
+ i(
524
+ "div",
525
+ {
526
+ class: S($(p[e.defaultFile.attachmentParam.suffix]))
527
+ },
528
+ null,
529
+ 2
530
+ /* CLASS */
531
+ ),
532
+ i("div", Ce, [
533
+ i(
534
+ "div",
535
+ $e,
536
+ u(p[e.defaultFile.attachmentParam.originName]),
537
+ 1
538
+ /* TEXT */
539
+ ),
540
+ i(
541
+ "div",
542
+ Re,
543
+ u((p[e.defaultFile.attachmentParam.size] / 1024 / 1024).toFixed(3)) + "MB ",
544
+ 1
545
+ /* TEXT */
546
+ )
547
+ ])
548
+ ], 8, Ae))),
549
+ 128
550
+ /* KEYED_FRAGMENT */
551
+ ))
552
+ ])) : l("v-if", !0),
553
+ l(" 附件图片 "),
554
+ (z = t[e.defaultFile.attachmentImg]) != null && z.length ? (o(), s("div", Me, [
555
+ (o(!0), s(
556
+ _,
557
+ null,
558
+ N(t[e.defaultFile.attachmentImg], (p, m) => (o(), s("div", {
559
+ class: "image",
560
+ key: m
561
+ }, [
562
+ X(d, {
563
+ src: y(p),
564
+ fit: "cover",
565
+ "z-index": "9999",
566
+ "zoom-rate": 1.2,
567
+ alt: y(p)
568
+ }, null, 8, ["src", "alt"])
569
+ ]))),
570
+ 128
571
+ /* KEYED_FRAGMENT */
572
+ ))
573
+ ])) : l("v-if", !0),
574
+ l(" 抄送节点或是等待审批状态并且列表长度大于1 "),
575
+ (t[e.defaultFile.nodeType] == e.nodeType.抄送节点 || t[e.defaultFile.approveStatus] == e.statusOption.等待) && ((B = t[e.defaultFile.approvePersonList]) == null ? void 0 : B.length) > 1 ? (o(), s("div", Ue, [
576
+ (o(!0), s(
577
+ _,
578
+ null,
579
+ N(t[e.defaultFile.approvePersonList], (p) => (o(), s("div", {
580
+ class: "perBlock",
581
+ key: p.userName
582
+ }, [
583
+ i("span", Ve, [
584
+ p.userAvatar ? (o(), s("img", {
585
+ key: 0,
586
+ style: { width: "100%", height: "100%", "border-radius": "50%" },
587
+ src: y(p.userAvatar),
588
+ alt: ""
589
+ }, null, 8, We)) : l("v-if", !0),
590
+ i(
591
+ "span",
592
+ null,
593
+ u(p.userName.slice(-2)),
594
+ 1
595
+ /* TEXT */
596
+ ),
597
+ p.status === "END" ? (o(), s("i", He)) : l("v-if", !0)
598
+ ]),
599
+ i("div", {
600
+ class: "main-text",
601
+ title: p.userName
602
+ }, u(p.userName), 9, Ke)
603
+ ]))),
604
+ 128
605
+ /* KEYED_FRAGMENT */
606
+ ))
607
+ ])) : l("v-if", !0)
608
+ ],
609
+ 4
610
+ /* STYLE */
611
+ )
612
+ ], 8, Y);
613
+ }),
614
+ 128
615
+ /* KEYED_FRAGMENT */
616
+ ))
617
+ ]);
618
+ };
619
+ }
620
+ });
621
+ const Ge = (c, v) => {
622
+ const r = c.__vccOpts || c;
623
+ for (const [e, T] of v)
624
+ r[e] = T;
625
+ return r;
626
+ }, Je = /* @__PURE__ */ Ge(qe, [["__scopeId", "data-v-41886e6b"]]), Ze = J(Je);
627
+ export {
628
+ Ze as IKApprovalProcessDetail,
629
+ Ze as default
630
+ };
@@ -0,0 +1 @@
1
+ (function(p,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(p=typeof globalThis<"u"?globalThis:p||self,e(p.index={},p.Vue))})(this,function(p,e){"use strict";const x=(i,d)=>{if(i.install=l=>{for(const t of[i,...Object.values(d??{})])l.component(t.name,t)},d)for(const[l,t]of Object.entries(d))i[l]=t;return i},Ie="",E=i=>(e.pushScopeId("data-v-41886e6b"),i=i(),e.popScopeId(),i),b={class:"approveProcess",id:"approveProcess"},D=["id"],O={class:"topBlock"},P={class:"left"},I={class:"nodeBg"},L=["src"],w={class:"right"},z={class:"topInfo"},j={key:0},A={key:0,class:"main-text"},$={class:"name"},R={key:0},M={key:0},U={key:1},K=E(()=>e.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),W={key:0},q={key:0},H={key:1},X={key:1},G=E(()=>e.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),J={class:"name"},Q={key:0},Y={style:{color:"#000"}},Z={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},v={key:1},ee={key:0,class:"blue",style:{"font-size":"12px"}},te={key:1},oe={key:0,class:"blue",style:{"font-size":"12px"}},ae={key:1,class:"blue",style:{"font-size":"12px"}},ne={class:"time"},le={key:0},se={key:1},re=["onClick"],ie=["onClick"],ce={key:0,class:"opinion"},pe={key:0},de={key:1},me=E(()=>e.createElementVNode("span",null,"添加审批人",-1)),fe={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},ke={key:1,class:"annex"},_e=["onClick"],he={class:"text"},ye={class:"fileName"},Ne={class:"size"},ge={key:2,class:"annexImage"},Be={key:3,class:"approveList"},ue={class:"nodeBg-list"},Ee=["src"],Fe={key:1,class:"ikapprove ikapprove-duihao2 green read"},Ve=["title"],Te={name:"IkingApprovalProcessDetail"},Ce=e.defineComponent({...Te,props:{local:{type:Boolean,default:!1},defaultStatus:{type:Object,default:()=>({})},defaultNodeType:{type:Object,default:()=>({})},dataList:{type:Array,default:()=>[]},defaultFieldMap:{type:Object,default:()=>({})},returnNode:{type:Array,default:()=>[]},fileUrl:{type:String,default:""}},emits:["preview"],setup(i,{emit:d}){const l=i,t=e.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...l.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...l.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...l.defaultFieldMap}});e.watch(()=>l.dataList,a=>{a&&(e.nextTick(()=>{t.listData=a}),setTimeout(()=>{l.returnNode.length&&N()},500))},{deep:!0}),e.onMounted(()=>{l.dataList.length&&(t.listData=l.dataList,setTimeout(()=>{l.returnNode.length&&N()},500))});const N=()=>{let a=null;if(l!=null&&l.returnNode)for(a of l==null?void 0:l.returnNode){if(isNaN(a[1]))return;let n=Array.from(new Array(a[1]+1).keys()).slice(a[0]);e.nextTick(()=>{Se(n)})}},Se=a=>{var k,_,h;let n=document.createElement("div"),r=document.getElementById("approveProcess"),o=0,c=(k=document.getElementById(`${a[0]}`))==null?void 0:k.offsetWidth,m=(_=document.getElementById(`${a[0]}`))==null?void 0:_.offsetLeft,g=(h=document.getElementById(`${a[0]}`))==null?void 0:h.offsetTop;a.forEach(B=>{let u=document.getElementById(`${B}`);o+=u.offsetHeight}),setTimeout(()=>{n.style.width=c+32+"px",n.style.height=o+"px",n.style.background="#f9f9f9",n.style.position="absolute",n.style.top=g-16+"px",n.style.left=m-16+"px",n.style.zIndex=-1,r==null||r.appendChild(n)})},xe=(a,n)=>{var c;let r=(c=t.listData)==null?void 0:c.findIndex(m=>m.lineType=="dashed"),o="";switch(a){case t.statusOption.发起:o="ikapprove-duihao2 green";break;case t.statusOption.等待:o=r==n?"ikapprove-dengdai orange":"";break;case t.statusOption.同意:o="ikapprove-duihao2 green";break;case t.statusOption.拒绝:o="ikapprove-jujue red";break;case t.statusOption.转交:o="ikapprove-zhuanjiao blue";break;case t.statusOption.加签:o="ikapprove-tianjia blue";break;case t.statusOption.退回:o="ikapprove-s_fanhui2 red";break;case t.statusOption.评论:o="ikapprove-pinglun1 blue";break}return`ikapprove ${o}`},be=(a,n)=>{let r="";switch(a){case t.nodeType.发起人节点:r="ikapprove-ziyuan";break;case t.nodeType.审批节点:n&&n.length==1?r="ikapprove-ziyuan":r="ikapprove-shenpi";break;case t.nodeType.办理节点:r="ikapprove-bianji";break;case t.nodeType.抄送节点:r="ikapprove-chaosong";break;default:r="ikapprove-ziyuan"}return`ikapprove ${r}`},De=a=>{let n="";return a=="jpg"||a=="jpeg"||a=="png"?n="ikapprove-tupian":a=="doc"||a=="docx"?n="ikapprove-WORD":a=="xls"||a=="xlsx"?n="ikapprove-EXCEL":a=="ppt"||a=="pptx"?n="ikapprove-pptcopy":a=="pdf"?n="ikapprove-PDF":a=="rar"||a=="zip"?n="ikapprove-fujian":a=="txt"||a=="zip"?n="ikapprove-TXTCopy":a=="mp3"||a=="wma"||a=="m4a"?n="ikapprove-yinpinwenjian":(a=="avi"||a=="wmv"||a=="mp4"||a=="mov")&&(n="ikapprove-shipinwenjian"),`icon ikapprove ${n}`},Oe=d,Pe=a=>{Oe("preview",a),l.local||window.open(f(a[t.defaultFile.attachmentParam.url]))},V=(a,n)=>{a.show=!a.show;let r=document.getElementById(`${a[t.defaultFile.nodeId]}`),o=Array.from(r==null?void 0:r.getElementsByClassName("approveList"));for(let c of o)c.style.display=n},f=a=>{let n="";return a.includes("http")||a.includes("https")?n=a:n=l.fileUrl+a,n};return(a,n)=>{const r=e.resolveComponent("el-image");return e.openBlock(),e.createElementBlock("div",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.listData,(o,c)=>{var m,g,k,_,h,B,u,T,C,S;return e.openBlock(),e.createElementBlock("div",{class:"approveBlock",id:o[t.defaultFile.nodeId],key:o[t.defaultFile.nodeId]},[e.createElementVNode("div",O,[e.createElementVNode("div",P,[e.createElementVNode("span",I,[e.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((m=o[t.defaultFile.approvePersonList])==null?void 0:m.length)==1&&o[t.defaultFile.approvePersonList][0].userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:f(o[t.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,L)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 否则显示对应节点 "),e.createElementVNode("i",{class:e.normalizeClass(be(o[t.defaultFile.nodeType],o[t.defaultFile.approvePersonList]))},null,2)],2112)),e.createCommentVNode(" 审批状态图标 "),e.createElementVNode("i",{class:e.normalizeClass(xe(o[t.defaultFile.approveStatus],c))},null,2)])]),e.createElementVNode("div",w,[e.createElementVNode("div",z,[e.createElementVNode("div",null,[e.createCommentVNode(" 不是抄送节点 "),o[t.defaultFile.nodeType]!=t.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("div",j,[e.createCommentVNode(" 撤销,评论不显示节点名称 "),o[t.defaultFile.approveStatus]!=t.statusOption.撤销&&o[t.defaultFile.approveStatus]!=t.statusOption.评论?(e.openBlock(),e.createElementBlock("div",A,e.toDisplayString(o[t.defaultFile.nodeTypeName]),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 名字+审批状态 "),e.createElementVNode("div",$,[e.createCommentVNode(" 已审批节点文本 "),o[t.defaultFile.lineType]=="solid"?(e.openBlock(),e.createElementBlock("div",R,[e.createElementVNode("span",{style:e.normalizeStyle({color:o[t.defaultFile.approveStatus]==t.statusOption.评论?"#000":""})},e.toDisplayString(o[t.defaultFile.originator]),5),e.createCommentVNode(" 发起,退回不显示状态 "),o[t.defaultFile.approveStatusName]&&o[t.defaultFile.approveStatus]!=t.statusOption.发起&&o[t.defaultFile.approveStatus]!=t.statusOption.退回?(e.openBlock(),e.createElementBlock("span",M,e.toDisplayString(o[t.defaultFile.approveStatus]==t.statusOption.评论?" 添加了评论":"("+o[t.defaultFile.approveStatusName]+")"),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 退回状态显示 "),o[t.defaultFile.approveStatus]==t.statusOption.退回?(e.openBlock(),e.createElementBlock("span",U,[K,e.createTextVNode(e.toDisplayString(o[t.defaultFile.backToRecordNodeName]),1)])):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 待审批节点 "),e.createElementVNode("div",null,[((g=o[t.defaultFile.approvePersonList])==null?void 0:g.length)==1?(e.openBlock(),e.createElementBlock("span",W,[e.createTextVNode(e.toDisplayString(o[t.defaultFile.originator])+" ",1),o[t.defaultFile.approveStatus]==t.statusOption.等待?(e.openBlock(),e.createElementBlock("span",q,e.toDisplayString(`(${o[t.defaultFile.approveStatusName]})`),1)):e.createCommentVNode("v-if",!0)])):(e.openBlock(),e.createElementBlock("span",H,e.toDisplayString(((k=o[t.defaultFile.approvePersonList])==null?void 0:k.length)+"人"+o[t.defaultFile.approveTypeName]),1))])],2112))])])):(e.openBlock(),e.createElementBlock("div",X,[G,e.createElementVNode("div",J,[e.createCommentVNode(" 抄送一人时 "),((_=o[t.defaultFile.approvePersonList])==null?void 0:_.length)==1?(e.openBlock(),e.createElementBlock("span",Q,[e.createElementVNode("span",null,[e.createTextVNode("已抄送给 "),e.createElementVNode("span",Y,e.toDisplayString(o[t.defaultFile.approvePersonList][0].userName),1)]),e.createElementVNode("span",Z,e.toDisplayString(o[t.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 抄送多人时 "),((h=o[t.defaultFile.approvePersonList])==null?void 0:h.length)>1?(e.openBlock(),e.createElementBlock("span",v,[e.createTextVNode(e.toDisplayString(`已抄送${(B=o[t.defaultFile.approvePersonList])==null?void 0:B.length}人`)+" ",1),o[t.defaultFile.allRead]?(e.openBlock(),e.createElementBlock("span",ee," 全部已读 ")):(e.openBlock(),e.createElementBlock("span",te,[o[t.defaultFile.read]?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createElementBlock("span",oe," 全部未读 ")),o[t.defaultFile.read]?(e.openBlock(),e.createElementBlock("span",ae,e.toDisplayString(o[t.defaultFile.read])+"人已读 ",1)):e.createCommentVNode("v-if",!0)]))])):e.createCommentVNode("v-if",!0)])]))]),e.createElementVNode("div",ne,[e.createCommentVNode(" 不是抄送节点,展示时间 "),o[t.defaultFile.nodeType]!=t.nodeType.抄送节点?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(o[t.defaultFile.operationTime]),1)):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),o[t.defaultFile.nodeType]==t.nodeType.抄送节点&&((u=o[t.defaultFile.approvePersonList])==null?void 0:u.length)>1?(e.openBlock(),e.createElementBlock("span",se,[o!=null&&o.show?(e.openBlock(),e.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:s=>V(o,"grid")},null,8,re)):(e.openBlock(),e.createElementBlock("i",{key:1,onClick:s=>V(o,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,ie))])):e.createCommentVNode("v-if",!0)])])])]),e.createElementVNode("div",{class:"bottomBlock",style:e.normalizeStyle({borderLeft:c==t.listData.length-1?"":`2px ${o[t.defaultFile.lineType]} var(--el-border-color)`})},[e.createCommentVNode(" 审批意见 "),o[t.defaultFile.approveOpinion]||o[t.defaultFile.approveStatus]==t.statusOption.加签?(e.openBlock(),e.createElementBlock("div",ce,[o[t.defaultFile.approveOpinion]?(e.openBlock(),e.createElementBlock("span",pe,e.toDisplayString(o[t.defaultFile.approveOpinion]),1)):e.createCommentVNode("v-if",!0),o[t.defaultFile.approveStatus]==t.statusOption.加签?(e.openBlock(),e.createElementBlock("span",de,[me,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o[t.defaultFile.countersignPer],(s,y)=>(e.openBlock(),e.createElementBlock("span",fe,e.toDisplayString(s==null?void 0:s.userName)+e.toDisplayString(y<o[t.defaultFile.countersignPer].length-1?"、":""),1))),256))])):e.createCommentVNode("v-if",!0)])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 附件 "),(T=o[t.defaultFile.attachment])!=null&&T.length?(e.openBlock(),e.createElementBlock("div",ke,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o[t.defaultFile.attachment],(s,y)=>(e.openBlock(),e.createElementBlock("div",{class:"file-card",key:y,onClick:je=>Pe(s)},[e.createElementVNode("div",{class:e.normalizeClass(De(s[t.defaultFile.attachmentParam.suffix]))},null,2),e.createElementVNode("div",he,[e.createElementVNode("div",ye,e.toDisplayString(s[t.defaultFile.attachmentParam.originName]),1),e.createElementVNode("div",Ne,e.toDisplayString((s[t.defaultFile.attachmentParam.size]/1024/1024).toFixed(3))+"MB ",1)])],8,_e))),128))])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 附件图片 "),(C=o[t.defaultFile.attachmentImg])!=null&&C.length?(e.openBlock(),e.createElementBlock("div",ge,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o[t.defaultFile.attachmentImg],(s,y)=>(e.openBlock(),e.createElementBlock("div",{class:"image",key:y},[e.createVNode(r,{src:f(s),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:f(s)},null,8,["src","alt"])]))),128))])):e.createCommentVNode("v-if",!0),e.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(o[t.defaultFile.nodeType]==t.nodeType.抄送节点||o[t.defaultFile.approveStatus]==t.statusOption.等待)&&((S=o[t.defaultFile.approvePersonList])==null?void 0:S.length)>1?(e.openBlock(),e.createElementBlock("div",Be,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o[t.defaultFile.approvePersonList],s=>(e.openBlock(),e.createElementBlock("div",{class:"perBlock",key:s.userName},[e.createElementVNode("span",ue,[s.userAvatar?(e.openBlock(),e.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:f(s.userAvatar),alt:""},null,8,Ee)):e.createCommentVNode("v-if",!0),e.createElementVNode("span",null,e.toDisplayString(s.userName.slice(-2)),1),s.status==="END"?(e.openBlock(),e.createElementBlock("i",Fe)):e.createCommentVNode("v-if",!0)]),e.createElementVNode("div",{class:"main-text",title:s.userName},e.toDisplayString(s.userName),9,Ve)]))),128))])):e.createCommentVNode("v-if",!0)],4)],8,D)}),128))])}}}),Le="",F=x(((i,d)=>{const l=i.__vccOpts||i;for(const[t,N]of d)l[t]=N;return l})(Ce,[["__scopeId","data-v-41886e6b"]]));p.IKApprovalProcessDetail=F,p.default=F,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "IKApprovalProcessDetail",
3
+ "version": "0.0.1",
4
+ "main": "index.umd.js",
5
+ "module": "index.es.js",
6
+ "style": "style.css"
7
+ }