nbb-component-ui 1.6.1 → 1.6.3

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.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as fe, resolveComponent as V, openBlock as $, createElementBlock as I, createElementVNode as k, toDisplayString as y, unref as X, createCommentVNode as C, createVNode as Q, withCtx as Y, Fragment as ue, renderList as he, createBlock as re, createTextVNode as ee, ref as Z, watch as Ne } from "vue";
2
- import { ElMessage as Te } from "element-plus";
1
+ import { defineComponent as fe, resolveComponent as V, openBlock as A, createElementBlock as I, createElementVNode as P, toDisplayString as y, unref as X, createCommentVNode as C, createVNode as Q, withCtx as Y, Fragment as ue, renderList as he, createBlock as re, createTextVNode as ee, ref as Z, watch as Ne } from "vue";
2
+ import { ElMessage as ve } from "element-plus";
3
3
  var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function me(r) {
5
5
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -9,15 +9,15 @@ var be = { exports: {} };
9
9
  (function(c, w) {
10
10
  r.exports = w();
11
11
  })(pe, function() {
12
- var c = 1e3, w = 6e4, g = 36e5, F = "millisecond", v = "second", M = "minute", f = "hour", P = "day", L = "week", _ = "month", S = "quarter", i = "year", b = "date", s = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, U = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) {
12
+ var c = 1e3, w = 6e4, g = 36e5, D = "millisecond", T = "second", M = "minute", f = "hour", k = "day", L = "week", _ = "month", S = "quarter", i = "year", b = "date", s = "Invalid Date", x = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, U = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(o) {
13
13
  var t = ["th", "st", "nd", "rd"], e = o % 100;
14
14
  return "[" + o + (t[(e - 20) % 10] || t[e] || t[0]) + "]";
15
- } }, D = function(o, t, e) {
15
+ } }, $ = function(o, t, e) {
16
16
  var a = String(o);
17
17
  return !a || a.length >= t ? o : "" + Array(t + 1 - a.length).join(e) + o;
18
- }, j = { s: D, z: function(o) {
18
+ }, j = { s: $, z: function(o) {
19
19
  var t = -o.utcOffset(), e = Math.abs(t), a = Math.floor(e / 60), n = e % 60;
20
- return (t <= 0 ? "+" : "-") + D(a, 2, "0") + ":" + D(n, 2, "0");
20
+ return (t <= 0 ? "+" : "-") + $(a, 2, "0") + ":" + $(n, 2, "0");
21
21
  }, m: function o(t, e) {
22
22
  if (t.date() < e.date())
23
23
  return -o(e, t);
@@ -26,7 +26,7 @@ var be = { exports: {} };
26
26
  }, a: function(o) {
27
27
  return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
28
28
  }, p: function(o) {
29
- return { M: _, y: i, w: L, d: P, D: b, h: f, m: M, s: v, ms: F, Q: S }[o] || String(o || "").toLowerCase().replace(/s$/, "");
29
+ return { M: _, y: i, w: L, d: k, D: b, h: f, m: M, s: T, ms: D, Q: S }[o] || String(o || "").toLowerCase().replace(/s$/, "");
30
30
  }, u: function(o) {
31
31
  return o === void 0;
32
32
  } }, H = "en", q = {};
@@ -101,28 +101,28 @@ var be = { exports: {} };
101
101
  }, t.valueOf = function() {
102
102
  return this.$d.getTime();
103
103
  }, t.startOf = function(e, a) {
104
- var n = this, l = !!p.u(a) || a, d = p.p(e), m = function(W, A) {
105
- var z = p.w(n.$u ? Date.UTC(n.$y, A, W) : new Date(n.$y, A, W), n);
106
- return l ? z : z.endOf(P);
107
- }, h = function(W, A) {
108
- return p.w(n.toDate()[W].apply(n.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(A)), n);
109
- }, T = this.$W, E = this.$M, B = this.$D, K = "set" + (this.$u ? "UTC" : "");
104
+ var n = this, l = !!p.u(a) || a, d = p.p(e), m = function(W, F) {
105
+ var z = p.w(n.$u ? Date.UTC(n.$y, F, W) : new Date(n.$y, F, W), n);
106
+ return l ? z : z.endOf(k);
107
+ }, h = function(W, F) {
108
+ return p.w(n.toDate()[W].apply(n.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), n);
109
+ }, v = this.$W, E = this.$M, B = this.$D, K = "set" + (this.$u ? "UTC" : "");
110
110
  switch (d) {
111
111
  case i:
112
112
  return l ? m(1, 0) : m(31, 11);
113
113
  case _:
114
114
  return l ? m(1, E) : m(0, E + 1);
115
115
  case L:
116
- var G = this.$locale().weekStart || 0, te = (T < G ? T + 7 : T) - G;
116
+ var G = this.$locale().weekStart || 0, te = (v < G ? v + 7 : v) - G;
117
117
  return m(l ? B - te : B + (6 - te), E);
118
- case P:
118
+ case k:
119
119
  case b:
120
120
  return h(K + "Hours", 0);
121
121
  case f:
122
122
  return h(K + "Minutes", 1);
123
123
  case M:
124
124
  return h(K + "Seconds", 2);
125
- case v:
125
+ case T:
126
126
  return h(K + "Milliseconds", 3);
127
127
  default:
128
128
  return this.clone();
@@ -130,10 +130,10 @@ var be = { exports: {} };
130
130
  }, t.endOf = function(e) {
131
131
  return this.startOf(e, !1);
132
132
  }, t.$set = function(e, a) {
133
- var n, l = p.p(e), d = "set" + (this.$u ? "UTC" : ""), m = (n = {}, n[P] = d + "Date", n[b] = d + "Date", n[_] = d + "Month", n[i] = d + "FullYear", n[f] = d + "Hours", n[M] = d + "Minutes", n[v] = d + "Seconds", n[F] = d + "Milliseconds", n)[l], h = l === P ? this.$D + (a - this.$W) : a;
133
+ var n, l = p.p(e), d = "set" + (this.$u ? "UTC" : ""), m = (n = {}, n[k] = d + "Date", n[b] = d + "Date", n[_] = d + "Month", n[i] = d + "FullYear", n[f] = d + "Hours", n[M] = d + "Minutes", n[T] = d + "Seconds", n[D] = d + "Milliseconds", n)[l], h = l === k ? this.$D + (a - this.$W) : a;
134
134
  if (l === _ || l === i) {
135
- var T = this.clone().set(b, 1);
136
- T.$d[m](h), T.init(), this.$d = T.set(b, Math.min(this.$D, T.daysInMonth())).$d;
135
+ var v = this.clone().set(b, 1);
136
+ v.$d[m](h), v.init(), this.$d = v.set(b, Math.min(this.$D, v.daysInMonth())).$d;
137
137
  } else
138
138
  m && this.$d[m](h);
139
139
  return this.init(), this;
@@ -152,27 +152,27 @@ var be = { exports: {} };
152
152
  return this.set(_, this.$M + e);
153
153
  if (d === i)
154
154
  return this.set(i, this.$y + e);
155
- if (d === P)
155
+ if (d === k)
156
156
  return m(1);
157
157
  if (d === L)
158
158
  return m(7);
159
- var h = (n = {}, n[M] = w, n[f] = g, n[v] = c, n)[d] || 1, T = this.$d.getTime() + e * h;
160
- return p.w(T, this);
159
+ var h = (n = {}, n[M] = w, n[f] = g, n[T] = c, n)[d] || 1, v = this.$d.getTime() + e * h;
160
+ return p.w(v, this);
161
161
  }, t.subtract = function(e, a) {
162
162
  return this.add(-1 * e, a);
163
163
  }, t.format = function(e) {
164
164
  var a = this, n = this.$locale();
165
165
  if (!this.isValid())
166
166
  return n.invalidDate || s;
167
- var l = e || "YYYY-MM-DDTHH:mm:ssZ", d = p.z(this), m = this.$H, h = this.$m, T = this.$M, E = n.weekdays, B = n.months, K = n.meridiem, G = function(A, z, ae, se) {
168
- return A && (A[z] || A(a, l)) || ae[z].slice(0, se);
169
- }, te = function(A) {
170
- return p.s(m % 12 || 12, A, "0");
171
- }, W = K || function(A, z, ae) {
172
- var se = A < 12 ? "AM" : "PM";
167
+ var l = e || "YYYY-MM-DDTHH:mm:ssZ", d = p.z(this), m = this.$H, h = this.$m, v = this.$M, E = n.weekdays, B = n.months, K = n.meridiem, G = function(F, z, ae, se) {
168
+ return F && (F[z] || F(a, l)) || ae[z].slice(0, se);
169
+ }, te = function(F) {
170
+ return p.s(m % 12 || 12, F, "0");
171
+ }, W = K || function(F, z, ae) {
172
+ var se = F < 12 ? "AM" : "PM";
173
173
  return ae ? se.toLowerCase() : se;
174
174
  };
175
- return l.replace(R, function(A, z) {
175
+ return l.replace(R, function(F, z) {
176
176
  return z || function(ae) {
177
177
  switch (ae) {
178
178
  case "YY":
@@ -180,13 +180,13 @@ var be = { exports: {} };
180
180
  case "YYYY":
181
181
  return p.s(a.$y, 4, "0");
182
182
  case "M":
183
- return T + 1;
183
+ return v + 1;
184
184
  case "MM":
185
- return p.s(T + 1, 2, "0");
185
+ return p.s(v + 1, 2, "0");
186
186
  case "MMM":
187
- return G(n.monthsShort, T, B, 3);
187
+ return G(n.monthsShort, v, B, 3);
188
188
  case "MMMM":
189
- return G(B, T);
189
+ return G(B, v);
190
190
  case "D":
191
191
  return a.$D;
192
192
  case "DD":
@@ -225,12 +225,12 @@ var be = { exports: {} };
225
225
  return d;
226
226
  }
227
227
  return null;
228
- }(A) || d.replace(":", "");
228
+ }(F) || d.replace(":", "");
229
229
  });
230
230
  }, t.utcOffset = function() {
231
231
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
232
232
  }, t.diff = function(e, a, n) {
233
- var l, d = this, m = p.p(a), h = N(e), T = (h.utcOffset() - this.utcOffset()) * w, E = this - h, B = function() {
233
+ var l, d = this, m = p.p(a), h = N(e), v = (h.utcOffset() - this.utcOffset()) * w, E = this - h, B = function() {
234
234
  return p.m(d, h);
235
235
  };
236
236
  switch (m) {
@@ -244,10 +244,10 @@ var be = { exports: {} };
244
244
  l = B() / 3;
245
245
  break;
246
246
  case L:
247
- l = (E - T) / 6048e5;
247
+ l = (E - v) / 6048e5;
248
248
  break;
249
- case P:
250
- l = (E - T) / 864e5;
249
+ case k:
250
+ l = (E - v) / 864e5;
251
251
  break;
252
252
  case f:
253
253
  l = E / g;
@@ -255,7 +255,7 @@ var be = { exports: {} };
255
255
  case M:
256
256
  l = E / w;
257
257
  break;
258
- case v:
258
+ case T:
259
259
  l = E / c;
260
260
  break;
261
261
  default:
@@ -283,7 +283,7 @@ var be = { exports: {} };
283
283
  return this.$d.toUTCString();
284
284
  }, o;
285
285
  }(), de = ie.prototype;
286
- return N.prototype = de, [["$ms", F], ["$s", v], ["$m", M], ["$H", f], ["$W", P], ["$M", _], ["$y", i], ["$D", b]].forEach(function(o) {
286
+ return N.prototype = de, [["$ms", D], ["$s", T], ["$m", M], ["$H", f], ["$W", k], ["$M", _], ["$y", i], ["$D", b]].forEach(function(o) {
287
287
  de[o[1]] = function(t) {
288
288
  return this.$g(t, o[0], o[1]);
289
289
  };
@@ -294,28 +294,28 @@ var be = { exports: {} };
294
294
  }, N.en = q[H], N.Ls = q, N.p = {}, N;
295
295
  });
296
296
  })(be);
297
- var ve = be.exports;
298
- const ge = /* @__PURE__ */ me(ve);
297
+ var Te = be.exports;
298
+ const ge = /* @__PURE__ */ me(Te);
299
299
  var ye = { exports: {} };
300
300
  (function(r, u) {
301
301
  (function(c, w) {
302
302
  r.exports = w();
303
303
  })(pe, function() {
304
304
  var c = "minute", w = /[+-]\d\d(?::?\d\d)?/g, g = /([+-]|\d\d)/g;
305
- return function(F, v, M) {
306
- var f = v.prototype;
305
+ return function(D, T, M) {
306
+ var f = T.prototype;
307
307
  M.utc = function(s) {
308
308
  var x = { date: s, utc: !0, args: arguments };
309
- return new v(x);
309
+ return new T(x);
310
310
  }, f.utc = function(s) {
311
311
  var x = M(this.toDate(), { locale: this.$L, utc: !0 });
312
312
  return s ? x.add(this.utcOffset(), c) : x;
313
313
  }, f.local = function() {
314
314
  return M(this.toDate(), { locale: this.$L, utc: !1 });
315
315
  };
316
- var P = f.parse;
316
+ var k = f.parse;
317
317
  f.parse = function(s) {
318
- s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), P.call(this, s);
318
+ s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), k.call(this, s);
319
319
  };
320
320
  var L = f.init;
321
321
  f.init = function() {
@@ -342,11 +342,11 @@ var ye = { exports: {} };
342
342
  var U = Math.abs(s) <= 16 ? 60 * s : s;
343
343
  if (U === 0)
344
344
  return this.utc(x);
345
- var D = this.clone();
345
+ var $ = this.clone();
346
346
  if (x)
347
- return D.$offset = U, D.$u = !1, D;
347
+ return $.$offset = U, $.$u = !1, $;
348
348
  var j = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
349
- return (D = this.local().add(U + j, c)).$offset = U, D.$x.$localOffset = j, D;
349
+ return ($ = this.local().add(U + j, c)).$offset = U, $.$x.$localOffset = j, $;
350
350
  };
351
351
  var S = f.format;
352
352
  f.format = function(s) {
@@ -370,8 +370,8 @@ var ye = { exports: {} };
370
370
  f.diff = function(s, x, R) {
371
371
  if (s && this.$u === s.$u)
372
372
  return b.call(this, s, x, R);
373
- var U = this.local(), D = M(s).local();
374
- return b.call(U, D, x, R);
373
+ var U = this.local(), $ = M(s).local();
374
+ return b.call(U, $, x, R);
375
375
  };
376
376
  };
377
377
  });
@@ -402,8 +402,8 @@ const xe = {
402
402
  }
403
403
  };
404
404
  function ce(r, u = "cn") {
405
- const c = xe[u], w = Math.floor(r / (24 * 60 * 60 * 1e3)), g = Math.floor(r / (60 * 60 * 1e3) - w * 24), F = Math.floor(r / (60 * 1e3) - w * 24 * 60 - g * 60), v = Math.floor(r / 1e3 - w * 24 * 60 * 60 - g * 60 * 60 - F * 60);
406
- return w > 0 ? w + c.days + g + c.hours + F + c.minutes : g > 0 ? g + c.hours + F + c.minutes : F > 0 ? F + c.minutes : v > 0 ? v + c.seconds : 0 + c.seconds;
405
+ const c = xe[u], w = Math.floor(r / (24 * 60 * 60 * 1e3)), g = Math.floor(r / (60 * 60 * 1e3) - w * 24), D = Math.floor(r / (60 * 1e3) - w * 24 * 60 - g * 60), T = Math.floor(r / 1e3 - w * 24 * 60 * 60 - g * 60 * 60 - D * 60);
406
+ return w > 0 ? w + c.days + g + c.hours + D + c.minutes : g > 0 ? g + c.hours + D + c.minutes : D > 0 ? D + c.minutes : T > 0 ? T + c.seconds : 0 + c.seconds;
407
407
  }
408
408
  const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
409
409
  class: "text-14px font-bold",
@@ -450,60 +450,61 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
450
450
  4: "svg-icon:approvalCanceled"
451
451
  // 取消
452
452
  }, w = (g) => [0, 1, 6, 7].includes(g.status) ? "primary" : g.status === 2 ? "success" : g.status === 3 ? "danger" : g.status === 4 ? "info" : g.status === 5 ? "warning" : "";
453
- return (g, F) => {
453
+ return (g, D) => {
454
454
  var S;
455
- const v = V("Icon"), M = V("dict-tag"), f = V("el-tag"), P = V("el-card"), L = V("el-timeline-item"), _ = V("el-timeline");
456
- return $(), I("div", Ee, [
457
- k("div", De, [
458
- k("div", $e, [
459
- k("span", null, y(u("processFlow.flow")), 1),
460
- k("span", null, y(r.processInstance.id), 1)
455
+ const T = V("Icon"), M = V("dict-tag"), f = V("el-tag"), k = V("el-card"), L = V("el-timeline-item"), _ = V("el-timeline");
456
+ return A(), I("div", Ee, [
457
+ D[0] || (D[0] = P("div", { class: "test" }, "test", -1)),
458
+ P("div", De, [
459
+ P("div", $e, [
460
+ P("span", null, y(u("processFlow.flow")), 1),
461
+ P("span", null, y(r.processInstance.id), 1)
461
462
  ]),
462
- k("div", Pe, [
463
- k("span", null, y(r.processInstance.name), 1)
463
+ P("div", Pe, [
464
+ P("span", null, y(r.processInstance.name), 1)
464
465
  ])
465
466
  ]),
466
- k("div", Ae, [
467
- k("div", ke, [
468
- k("p", null, y(u("processFlow.startTime")) + y(X(oe)(r.processInstance.startTime)), 1),
469
- k("p", null, y(u("processFlow.endTime")) + y(X(oe)(r.processInstance.endTime)), 1),
470
- r.processInstance.durationInMillis ? ($(), I("p", Fe, y(u("processFlow.duration")) + y(X(ce)((S = r.processInstance) == null ? void 0 : S.durationInMillis)), 1)) : C("", !0)
467
+ P("div", Ae, [
468
+ P("div", ke, [
469
+ P("p", null, y(u("processFlow.startTime")) + y(X(oe)(r.processInstance.startTime)), 1),
470
+ P("p", null, y(u("processFlow.endTime")) + y(X(oe)(r.processInstance.endTime)), 1),
471
+ r.processInstance.durationInMillis ? (A(), I("p", Fe, y(u("processFlow.duration")) + y(X(ce)((S = r.processInstance) == null ? void 0 : S.durationInMillis)), 1)) : C("", !0)
471
472
  ]),
472
- Q(v, {
473
+ Q(T, {
473
474
  size: 100,
474
475
  icon: c[r.processInstance.status] || "svg-icon:approvalPending"
475
476
  }, null, 8, ["icon"])
476
477
  ]),
477
- k("div", Ie, [
478
+ P("div", Ie, [
478
479
  Q(_, null, {
479
480
  default: Y(() => [
480
- ($(!0), I(ue, null, he(r.tasks, (i, b) => ($(), re(L, {
481
+ (A(!0), I(ue, null, he(r.tasks, (i, b) => (A(), re(L, {
481
482
  key: b,
482
483
  type: w(i) || "info"
483
484
  }, {
484
485
  dot: Y(() => {
485
486
  var s;
486
487
  return [
487
- k("img", {
488
+ P("img", {
488
489
  src: ((s = i == null ? void 0 : i.assigneeUser) == null ? void 0 : s.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
489
490
  class: "avatar-wrap"
490
491
  }, null, 8, Be)
491
492
  ];
492
493
  }),
493
494
  default: Y(() => [
494
- k("p", Ue, [
495
+ P("p", Ue, [
495
496
  ee(y(i.name) + " ", 1),
496
- i.status ? ($(), re(M, {
497
+ i.status ? (A(), re(M, {
497
498
  key: 0,
498
499
  type: "bpm_task_status",
499
500
  value: i.status || ""
500
501
  }, null, 8, ["value"])) : C("", !0)
501
502
  ]),
502
- Q(P, { "body-style": { padding: "10px" } }, {
503
+ Q(k, { "body-style": { padding: "10px" } }, {
503
504
  default: Y(() => {
504
505
  var s, x, R, U;
505
506
  return [
506
- b === 0 ? ($(), I("label", Ce, [
507
+ b === 0 ? (A(), I("label", Ce, [
507
508
  ee(y(((s = i.assigneeUser) == null ? void 0 : s.nickname) || ((x = i.ownerUser) == null ? void 0 : x.nickname)) + " ", 1),
508
509
  Q(f, {
509
510
  size: "small",
@@ -511,15 +512,15 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
511
512
  style: { "vertical-align": "1px" }
512
513
  }, {
513
514
  default: Y(() => {
514
- var D, j;
515
+ var $, j;
515
516
  return [
516
- ee(y((j = (D = r.processInstance) == null ? void 0 : D.startUser) == null ? void 0 : j.deptName), 1)
517
+ ee(y((j = ($ = r.processInstance) == null ? void 0 : $.startUser) == null ? void 0 : j.deptName), 1)
517
518
  ];
518
519
  }),
519
520
  _: 1
520
521
  })
521
522
  ])) : C("", !0),
522
- i.assigneeUser ? ($(), I("label", Le, [
523
+ i.assigneeUser ? (A(), I("label", Le, [
523
524
  ee(y(u("processFlow.approver")) + y(((R = i.assigneeUser) == null ? void 0 : R.nickname) || ((U = i.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
524
525
  Q(f, {
525
526
  size: "small",
@@ -532,15 +533,15 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
532
533
  _: 2
533
534
  }, 1024)
534
535
  ])) : C("", !0),
535
- k("div", null, [
536
- i.createTime && !i.endTime ? ($(), I("label", Re, y(u("processFlow.createTime")), 1)) : C("", !0),
537
- i.createTime && !i.endTime ? ($(), I("label", qe, y(X(oe)(i == null ? void 0 : i.createTime, "MM-DD HH:mm")), 1)) : C("", !0),
538
- i.endTime ? ($(), I("label", He, y(u("processFlow.approvalTime")), 1)) : C("", !0),
539
- i.endTime ? ($(), I("label", Oe, y(X(oe)(i == null ? void 0 : i.endTime, "MM-DD HH:mm")), 1)) : C("", !0),
540
- i.durationInMillis ? ($(), I("label", ze, y(u("processFlow.duration")), 1)) : C("", !0),
541
- i.durationInMillis ? ($(), I("label", je, y(X(ce)(i == null ? void 0 : i.durationInMillis)), 1)) : C("", !0)
536
+ P("div", null, [
537
+ i.createTime && !i.endTime ? (A(), I("label", Re, y(u("processFlow.createTime")), 1)) : C("", !0),
538
+ i.createTime && !i.endTime ? (A(), I("label", qe, y(X(oe)(i == null ? void 0 : i.createTime, "MM-DD HH:mm")), 1)) : C("", !0),
539
+ i.endTime ? (A(), I("label", He, y(u("processFlow.approvalTime")), 1)) : C("", !0),
540
+ i.endTime ? (A(), I("label", Oe, y(X(oe)(i == null ? void 0 : i.endTime, "MM-DD HH:mm")), 1)) : C("", !0),
541
+ i.durationInMillis ? (A(), I("label", ze, y(u("processFlow.duration")), 1)) : C("", !0),
542
+ i.durationInMillis ? (A(), I("label", je, y(X(ce)(i == null ? void 0 : i.durationInMillis)), 1)) : C("", !0)
542
543
  ]),
543
- i.reason ? ($(), I("div", Ge, y(u("processFlow.approvalSuggestion")) + y(i.reason), 1)) : C("", !0)
544
+ i.reason ? (A(), I("div", Ge, y(u("processFlow.approvalSuggestion")) + y(i.reason), 1)) : C("", !0)
544
545
  ];
545
546
  }),
546
547
  _: 2
@@ -561,15 +562,15 @@ const we = (r, u) => {
561
562
  for (const [w, g] of u)
562
563
  c[w] = g;
563
564
  return c;
564
- }, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-f8ad04ec"]]), Ye = /* @__PURE__ */ fe({
565
+ }, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-d4e14dfa"]]), Ye = /* @__PURE__ */ fe({
565
566
  __name: "CmcProcessFlow",
566
567
  props: {
567
568
  processInstanceId: {}
568
569
  },
569
570
  setup(r) {
570
- const u = r, c = Z(!1), w = Z({}), g = Z({}), F = Z(""), v = Z([]), M = Z(""), f = (S) => {
571
- M.value = S, P(), L();
572
- }, P = async () => {
571
+ const u = r, c = Z(!1), w = Z({}), g = Z({}), D = Z(""), T = Z([]), M = Z(""), f = (S) => {
572
+ M.value = S, k(), L();
573
+ }, k = async () => {
573
574
  var S, i;
574
575
  try {
575
576
  c.value = !0;
@@ -1093,12 +1094,12 @@ const we = (r, u) => {
1093
1094
  tasks: null
1094
1095
  }
1095
1096
  };
1096
- w.value = b == null ? void 0 : b.processInstance, F.value = (i = (S = b == null ? void 0 : b.processInstance) == null ? void 0 : S.formVariables) == null ? void 0 : i.applicationPrefix, g.value = b == null ? void 0 : b.todoTask;
1097
+ w.value = b == null ? void 0 : b.processInstance, D.value = (i = (S = b == null ? void 0 : b.processInstance) == null ? void 0 : S.formVariables) == null ? void 0 : i.applicationPrefix, g.value = b == null ? void 0 : b.todoTask;
1097
1098
  } finally {
1098
1099
  c.value = !1;
1099
1100
  }
1100
1101
  }, L = async () => {
1101
- v.value = [
1102
+ T.value = [
1102
1103
  {
1103
1104
  id: "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
1104
1105
  name: "发起人",
@@ -1229,11 +1230,11 @@ const we = (r, u) => {
1229
1230
  { immediate: !0, deep: !0 }
1230
1231
  );
1231
1232
  const _ = () => {
1232
- Te.success("aaa!");
1233
+ ve.success("aaa!");
1233
1234
  };
1234
1235
  return (S, i) => {
1235
1236
  const b = V("el-button");
1236
- return $(), I(ue, null, [
1237
+ return A(), I(ue, null, [
1237
1238
  Q(b, { onClick: _ }, {
1238
1239
  default: Y(() => [...i[0] || (i[0] = [
1239
1240
  ee("测试按钮10", -1)
@@ -1242,7 +1243,7 @@ const we = (r, u) => {
1242
1243
  }),
1243
1244
  Q(Ve, {
1244
1245
  "process-instance": w.value,
1245
- tasks: v.value
1246
+ tasks: T.value
1246
1247
  }, null, 8, ["process-instance", "tasks"])
1247
1248
  ], 64);
1248
1249
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(v,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(v=typeof globalThis<"u"?globalThis:v||self,e(v.NbbComponentUi={},v.Vue,v.ElementPlus))})(this,function(v,e,re){"use strict";var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ee(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var te={exports:{}};(function(c,m){(function(f,w){c.exports=w()})(Z,function(){var f=1e3,w=6e4,y=36e5,B="millisecond",S="second",M="minute",p="hour",$="day",F="week",_="month",E="quarter",s="year",g="date",o="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var a=["th","st","nd","rd"],t=l%100;return"["+l+(a[(t-20)%10]||a[t]||a[0])+"]"}},k=function(l,a,t){var i=String(l);return!i||i.length>=a?l:""+Array(a+1-i.length).join(t)+l},q={s:k,z:function(l){var a=-l.utcOffset(),t=Math.abs(a),i=Math.floor(t/60),n=t%60;return(a<=0?"+":"-")+k(i,2,"0")+":"+k(n,2,"0")},m:function l(a,t){if(a.date()<t.date())return-l(t,a);var i=12*(t.year()-a.year())+(t.month()-a.month()),n=a.clone().add(i,_),r=t-n<0,d=a.clone().add(i+(r?-1:1),_);return+(-(i+(t-n)/(r?n-d:d-n))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:_,y:s,w:F,d:$,D:g,h:p,m:M,s:S,ms:B,Q:E}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",U={};U[L]=C;var z="$isDayjsObject",G=function(l){return l instanceof K||!(!l||!l[z])},R=function l(a,t,i){var n;if(!a)return L;if(typeof a=="string"){var r=a.toLowerCase();U[r]&&(n=r),t&&(U[r]=t,n=r);var d=a.split("-");if(!n&&d.length>1)return l(d[0])}else{var b=a.name;U[b]=a,n=b}return!i&&n&&(L=n),n||!i&&L},N=function(l,a){if(G(l))return l.clone();var t=typeof a=="object"?a:{};return t.date=l,t.args=arguments,new K(t)},u=q;u.l=R,u.i=G,u.w=function(l,a){return N(l,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var K=function(){function l(t){this.$L=R(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[z]=!0}var a=l.prototype;return a.parse=function(t){this.$d=function(i){var n=i.date,r=i.utc;if(n===null)return new Date(NaN);if(u.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var d=n.match(x);if(d){var b=d[2]-1||0,h=(d[7]||"0").substring(0,3);return r?new Date(Date.UTC(d[1],b,d[3]||1,d[4]||0,d[5]||0,d[6]||0,h)):new Date(d[1],b,d[3]||1,d[4]||0,d[5]||0,d[6]||0,h)}}return new Date(n)}(t),this.init()},a.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},a.$utils=function(){return u},a.isValid=function(){return this.$d.toString()!==o},a.isSame=function(t,i){var n=N(t);return this.startOf(i)<=n&&n<=this.endOf(i)},a.isAfter=function(t,i){return N(t)<this.startOf(i)},a.isBefore=function(t,i){return this.endOf(i)<N(t)},a.$g=function(t,i,n){return u.u(t)?this[i]:this.set(n,t)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(t,i){var n=this,r=!!u.u(i)||i,d=u.p(t),b=function(O,P){var V=u.w(n.$u?Date.UTC(n.$y,P,O):new Date(n.$y,P,O),n);return r?V:V.endOf($)},h=function(O,P){return u.w(n.toDate()[O].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(P)),n)},T=this.$W,D=this.$M,A=this.$D,j="set"+(this.$u?"UTC":"");switch(d){case s:return r?b(1,0):b(31,11);case _:return r?b(1,D):b(0,D+1);case F:var H=this.$locale().weekStart||0,W=(T<H?T+7:T)-H;return b(r?A-W:A+(6-W),D);case $:case g:return h(j+"Hours",0);case p:return h(j+"Minutes",1);case M:return h(j+"Seconds",2);case S:return h(j+"Milliseconds",3);default:return this.clone()}},a.endOf=function(t){return this.startOf(t,!1)},a.$set=function(t,i){var n,r=u.p(t),d="set"+(this.$u?"UTC":""),b=(n={},n[$]=d+"Date",n[g]=d+"Date",n[_]=d+"Month",n[s]=d+"FullYear",n[p]=d+"Hours",n[M]=d+"Minutes",n[S]=d+"Seconds",n[B]=d+"Milliseconds",n)[r],h=r===$?this.$D+(i-this.$W):i;if(r===_||r===s){var T=this.clone().set(g,1);T.$d[b](h),T.init(),this.$d=T.set(g,Math.min(this.$D,T.daysInMonth())).$d}else b&&this.$d[b](h);return this.init(),this},a.set=function(t,i){return this.clone().$set(t,i)},a.get=function(t){return this[u.p(t)]()},a.add=function(t,i){var n,r=this;t=Number(t);var d=u.p(i),b=function(D){var A=N(r);return u.w(A.date(A.date()+Math.round(D*t)),r)};if(d===_)return this.set(_,this.$M+t);if(d===s)return this.set(s,this.$y+t);if(d===$)return b(1);if(d===F)return b(7);var h=(n={},n[M]=w,n[p]=y,n[S]=f,n)[d]||1,T=this.$d.getTime()+t*h;return u.w(T,this)},a.subtract=function(t,i){return this.add(-1*t,i)},a.format=function(t){var i=this,n=this.$locale();if(!this.isValid())return n.invalidDate||o;var r=t||"YYYY-MM-DDTHH:mm:ssZ",d=u.z(this),b=this.$H,h=this.$m,T=this.$M,D=n.weekdays,A=n.months,j=n.meridiem,H=function(P,V,Y,X){return P&&(P[V]||P(i,r))||Y[V].slice(0,X)},W=function(P){return u.s(b%12||12,P,"0")},O=j||function(P,V,Y){var X=P<12?"AM":"PM";return Y?X.toLowerCase():X};return r.replace(I,function(P,V){return V||function(Y){switch(Y){case"YY":return String(i.$y).slice(-2);case"YYYY":return u.s(i.$y,4,"0");case"M":return T+1;case"MM":return u.s(T+1,2,"0");case"MMM":return H(n.monthsShort,T,A,3);case"MMMM":return H(A,T);case"D":return i.$D;case"DD":return u.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return H(n.weekdaysMin,i.$W,D,2);case"ddd":return H(n.weekdaysShort,i.$W,D,3);case"dddd":return D[i.$W];case"H":return String(b);case"HH":return u.s(b,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return O(b,h,!0);case"A":return O(b,h,!1);case"m":return String(h);case"mm":return u.s(h,2,"0");case"s":return String(i.$s);case"ss":return u.s(i.$s,2,"0");case"SSS":return u.s(i.$ms,3,"0");case"Z":return d}return null}(P)||d.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(t,i,n){var r,d=this,b=u.p(i),h=N(t),T=(h.utcOffset()-this.utcOffset())*w,D=this-h,A=function(){return u.m(d,h)};switch(b){case s:r=A()/12;break;case _:r=A();break;case E:r=A()/3;break;case F:r=(D-T)/6048e5;break;case $:r=(D-T)/864e5;break;case p:r=D/y;break;case M:r=D/w;break;case S:r=D/f;break;default:r=D}return n?r:u.a(r)},a.daysInMonth=function(){return this.endOf(_).$D},a.$locale=function(){return U[this.$L]},a.locale=function(t,i){if(!t)return this.$L;var n=this.clone(),r=R(t,i,!0);return r&&(n.$L=r),n},a.clone=function(){return u.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},l}(),le=K.prototype;return N.prototype=le,[["$ms",B],["$s",S],["$m",M],["$H",p],["$W",$],["$M",_],["$y",s],["$D",g]].forEach(function(l){le[l[1]]=function(a){return this.$g(a,l[0],l[1])}}),N.extend=function(l,a){return l.$i||(l(a,K,N),l.$i=!0),N},N.locale=R,N.isDayjs=G,N.unix=function(l){return N(1e3*l)},N.en=U[L],N.Ls=U,N.p={},N})})(te);var de=te.exports;const ne=ee(de);var ae={exports:{}};(function(c,m){(function(f,w){c.exports=w()})(Z,function(){var f="minute",w=/[+-]\d\d(?::?\d\d)?/g,y=/([+-]|\d\d)/g;return function(B,S,M){var p=S.prototype;M.utc=function(o){var x={date:o,utc:!0,args:arguments};return new S(x)},p.utc=function(o){var x=M(this.toDate(),{locale:this.$L,utc:!0});return o?x.add(this.utcOffset(),f):x},p.local=function(){return M(this.toDate(),{locale:this.$L,utc:!1})};var $=p.parse;p.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),$.call(this,o)};var F=p.init;p.init=function(){if(this.$u){var o=this.$d;this.$y=o.getUTCFullYear(),this.$M=o.getUTCMonth(),this.$D=o.getUTCDate(),this.$W=o.getUTCDay(),this.$H=o.getUTCHours(),this.$m=o.getUTCMinutes(),this.$s=o.getUTCSeconds(),this.$ms=o.getUTCMilliseconds()}else F.call(this)};var _=p.utcOffset;p.utcOffset=function(o,x){var I=this.$utils().u;if(I(o))return this.$u?0:I(this.$offset)?_.call(this):this.$offset;if(typeof o=="string"&&(o=function(L){L===void 0&&(L="");var U=L.match(w);if(!U)return null;var z=(""+U[0]).match(y)||["-",0,0],G=z[0],R=60*+z[1]+ +z[2];return R===0?0:G==="+"?R:-R}(o),o===null))return this;var C=Math.abs(o)<=16?60*o:o;if(C===0)return this.utc(x);var k=this.clone();if(x)return k.$offset=C,k.$u=!1,k;var q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(k=this.local().add(C+q,f)).$offset=C,k.$x.$localOffset=q,k};var E=p.format;p.format=function(o){var x=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return E.call(this,x)},p.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var s=p.toDate;p.toDate=function(o){return o==="s"&&this.$offset?M(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var g=p.diff;p.diff=function(o,x,I){if(o&&this.$u===o.$u)return g.call(this,o,x,I);var C=this.local(),k=M(o).local();return g.call(C,k,x,I)}}})})(ae);var ce=ae.exports;const fe=ee(ce);ne.extend(fe);function pe(){let c=new Date().getTimezoneOffset();const m=Math.abs(Math.floor(c/60)),f=c<0?"+":"-";return c=Math.abs(c%60),f+m.toString().padStart(2,"0")+c.toString().padStart(2,"0")}function Q(c,m,f){return c?(m===void 0&&(m="YYYY-MM-DD HH:mm:ss"),f||(f=pe()),ne.utc(c).utcOffset(f).format(m)):""}const me={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function ie(c,m="cn"){const f=me[m],w=Math.floor(c/(24*60*60*1e3)),y=Math.floor(c/(60*60*1e3)-w*24),B=Math.floor(c/(60*1e3)-w*24*60-y*60),S=Math.floor(c/1e3-w*24*60*60-y*60*60-B*60);return w>0?w+f.days+y+f.hours+B+f.minutes:y>0?y+f.hours+B+f.minutes:B>0?B+f.minutes:S>0?S+f.seconds:0+f.seconds}const ue={class:"scroll-area"},be={class:"flow-header flex justify-between"},ge={class:"text-18px font-bold"},ye={class:"text-14px font-bold",style:{color:"#005aae"}},we={class:"flex items-center"},he={class:"flow-start"},Ne={key:0},Te={class:"mt-30px block"},Se=["src"],Me={style:{"font-weight":"700"}},_e={key:0,style:{"margin-right":"30px","font-weight":"normal"}},Ee={key:1,style:{"margin-right":"30px","font-weight":"normal"}},xe={key:0,style:{"font-weight":"normal"}},De={key:1,style:{"font-weight":"normal",color:"#8a909c"}},ke={key:2,style:{"font-weight":"normal"}},$e={key:3,style:{"font-weight":"normal",color:"#8a909c"}},Pe={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Be={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ae={key:2},Ce=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(c){const m=y=>y,f={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},w=y=>[0,1,6,7].includes(y.status)?"primary":y.status===2?"success":y.status===3?"danger":y.status===4?"info":y.status===5?"warning":"";return(y,B)=>{var E;const S=e.resolveComponent("Icon"),M=e.resolveComponent("dict-tag"),p=e.resolveComponent("el-tag"),$=e.resolveComponent("el-card"),F=e.resolveComponent("el-timeline-item"),_=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("span",null,e.toDisplayString(m("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(c.processInstance.id),1)]),e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(c.processInstance.name),1)])]),e.createElementVNode("div",we,[e.createElementVNode("div",he,[e.createElementVNode("p",null,e.toDisplayString(m("processFlow.startTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(m("processFlow.endTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.endTime)),1),c.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Ne,e.toDisplayString(m("processFlow.duration"))+e.toDisplayString(e.unref(ie)((E=c.processInstance)==null?void 0:E.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(S,{size:100,icon:f[c.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Te,[e.createVNode(_,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.tasks,(s,g)=>(e.openBlock(),e.createBlock(F,{key:g,type:w(s)||"info"},{dot:e.withCtx(()=>{var o;return[e.createElementVNode("img",{src:((o=s==null?void 0:s.assigneeUser)==null?void 0:o.avatar)||"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",class:"avatar-wrap"},null,8,Se)]}),default:e.withCtx(()=>[e.createElementVNode("p",Me,[e.createTextVNode(e.toDisplayString(s.name)+" ",1),s.status?(e.openBlock(),e.createBlock(M,{key:0,type:"bpm_task_status",value:s.status||""},null,8,["value"])):e.createCommentVNode("",!0)]),e.createVNode($,{"body-style":{padding:"10px"}},{default:e.withCtx(()=>{var o,x,I,C;return[g===0?(e.openBlock(),e.createElementBlock("label",_e,[e.createTextVNode(e.toDisplayString(((o=s.assigneeUser)==null?void 0:o.nickname)||((x=s.ownerUser)==null?void 0:x.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var k,q;return[e.createTextVNode(e.toDisplayString((q=(k=c.processInstance)==null?void 0:k.startUser)==null?void 0:q.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),s.assigneeUser?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(m("processFlow.approver"))+e.toDisplayString(((I=s.assigneeUser)==null?void 0:I.nickname)||((C=s.ownerUser)==null?void 0:C.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.assigneeUser.deptName),1)]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[s.createTime&&!s.endTime?(e.openBlock(),e.createElementBlock("label",xe,e.toDisplayString(m("processFlow.createTime")),1)):e.createCommentVNode("",!0),s.createTime&&!s.endTime?(e.openBlock(),e.createElementBlock("label",De,e.toDisplayString(e.unref(Q)(s==null?void 0:s.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),s.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(m("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),s.endTime?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(e.unref(Q)(s==null?void 0:s.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),s.durationInMillis?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(m("processFlow.duration")),1)):e.createCommentVNode("",!0),s.durationInMillis?(e.openBlock(),e.createElementBlock("label",Be,e.toDisplayString(e.unref(ie)(s==null?void 0:s.durationInMillis)),1)):e.createCommentVNode("",!0)]),s.reason?(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString(m("processFlow.approvalSuggestion"))+e.toDisplayString(s.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),Le="",se=(c,m)=>{const f=c.__vccOpts||c;for(const[w,y]of m)f[w]=y;return f},ve=se(Ce,[["__scopeId","data-v-f8ad04ec"]]),Fe=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(c){const m=c,f=e.ref(!1),w=e.ref({}),y=e.ref({}),B=e.ref(""),S=e.ref([]),M=e.ref(""),p=E=>{M.value=E,$(),F()},$=async()=>{var E,s;try{f.value=!0;const g={status:1,activityNodes:[{id:"StartUserNode",name:"发起人",nodeType:10,status:2,startTime:"2026-04-03T14:19:25+0800",endTime:"2026-04-03T14:19:26+0800",tasks:[{id:"0fff48cd-2f25-11f1-9259-fa163e43f4f0",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},status:2,reason:"发起人节点首次自动通过",signPicUrl:null}],candidateStrategy:36,candidateUsers:[],processInstanceId:null},{id:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",name:"L1或签审批",nodeType:11,status:1,startTime:"2026-04-03T14:19:26+0800",endTime:null,tasks:[{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},status:1,reason:null,signPicUrl:null}],candidateStrategy:60,candidateUsers:[],processInstanceId:null},{id:"Activity_82540b22-2616-4924-9554-8466e1201240",name:"L2会签审批",nodeType:11,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:60,candidateUsers:[{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"}],processInstanceId:null},{id:"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f",name:"L3审批",nodeType:11,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:60,candidateUsers:[{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"}],processInstanceId:null},{id:"EndEvent",name:"结束",nodeType:1,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:null,candidateUsers:[],processInstanceId:null}],formFieldsPermission:{deptId:"1",zhiShu:"1",gangWei:"1",fenGuan:"1"},todoTask:{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",name:"L1或签审批",createTime:"2026-04-03T14:19:26+0800",endTime:null,durationInMillis:null,status:1,reason:null,ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:null,parentTaskId:null,children:[],formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:{1:{displayName:"通过",enable:!0},2:{displayName:"拒绝",enable:!0},3:{displayName:"转办",enable:!0},4:{displayName:"委派",enable:!0},5:{displayName:"加签",enable:!0},6:{displayName:"退回",enable:!0}},signEnable:!1,reasonRequire:!1,nodeType:11,timeout:null,categoryName:null,deptName:null,roleName:null,proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:95},processDefinition:{icon:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/44dfaa7b271cd6cde7f394f6aea3e24b/1.png?expires=1768910930044764&signature=0101EhRCzjRM:Mzc4OTE2MDMyNjEyQzM2RkUzNkM5RjIzRjc4MEM4Q0RFQUUwRjIwMw==",description:"",approvalTimeout:1,priority:90,type:null,formType:10,formId:"1995677721519898626",formCustomCreatePath:"/a",formCustomViewPath:"/b",visible:!0,startUserIds:[],startDeptIds:[],managerUserIds:[207],sort:1762130143976,allowCancelRunningProcess:!0,allowWithdrawTask:!1,processIdRule:{enable:!1,prefix:"",infix:"",postfix:"",length:5},autoApprovalType:2,sendMsgTypeSetting:["MAIL"],titleSetting:{enable:!1,title:""},summarySetting:{enable:!1,summary:[]},processBeforeTriggerSetting:null,processAfterTriggerSetting:null,taskBeforeTriggerSetting:null,taskAfterTriggerSetting:null,id:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",version:74,name:"连续多节点simple设计器",key:"simple-multi-node-simple",category:"edi",categoryName:null,modelType:20,modelId:"084d6e51-b84d-11f0-a9da-fa163ecf527b",formConf:'{"form":{"inline":false,"hideRequiredAsterisk":false,"labelPosition":"right","size":"default","labelWidth":"100px"},"resetBtn":{"show":false,"innerText":"重置"},"submitBtn":{"show":true,"innerText":"提交"}}',formFields:['{"type":"input","field":"fenGuan","title":"分管领导","info":"","$required":true,"_fc_id":"id_Fi7kminy00nsafc","name":"ref_Fq5eminy00nsagc","display":true,"hidden":false,"_fc_drag_tag":"input"}','{"type":"input","field":"gangWei","title":"岗位","info":"","$required":true,"_fc_id":"id_Ftwominy1gozalc","name":"ref_F0onminy1gozamc","display":true,"hidden":false,"_fc_drag_tag":"input"}','{"type":"DeptSelect","field":"deptId","title":"部门","info":"","$required":true,"props":{"checkStrictly":true},"_fc_id":"id_Fv2nminyehg2anc","name":"ref_Fzoiminyehg2aoc","display":true,"hidden":false,"_fc_drag_tag":"DeptSelect"}','{"type":"UserSelect","field":"zhiShu","title":"直属领导","info":"","$required":true,"props":{"checkStrictly":false},"_fc_id":"id_Fsrnmipach61abc","name":"ref_Fcuhmipach61acc","display":true,"hidden":false,"_fc_drag_tag":"UserSelect"}'],formName:null,suspensionState:1,deploymentTime:null,bpmnXml:`<?xml version="1.0" encoding="UTF-8"?>
1
+ (function(v,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(v=typeof globalThis<"u"?globalThis:v||self,e(v.NbbComponentUi={},v.Vue,v.ElementPlus))})(this,function(v,e,re){"use strict";var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ee(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var te={exports:{}};(function(c,m){(function(f,w){c.exports=w()})(Z,function(){var f=1e3,w=6e4,y=36e5,k="millisecond",S="second",M="minute",p="hour",P="day",F="week",_="month",E="quarter",s="year",g="date",o="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var a=["th","st","nd","rd"],t=l%100;return"["+l+(a[(t-20)%10]||a[t]||a[0])+"]"}},$=function(l,a,t){var i=String(l);return!i||i.length>=a?l:""+Array(a+1-i.length).join(t)+l},q={s:$,z:function(l){var a=-l.utcOffset(),t=Math.abs(a),i=Math.floor(t/60),n=t%60;return(a<=0?"+":"-")+$(i,2,"0")+":"+$(n,2,"0")},m:function l(a,t){if(a.date()<t.date())return-l(t,a);var i=12*(t.year()-a.year())+(t.month()-a.month()),n=a.clone().add(i,_),r=t-n<0,d=a.clone().add(i+(r?-1:1),_);return+(-(i+(t-n)/(r?n-d:d-n))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:_,y:s,w:F,d:P,D:g,h:p,m:M,s:S,ms:k,Q:E}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",U={};U[L]=C;var z="$isDayjsObject",G=function(l){return l instanceof K||!(!l||!l[z])},R=function l(a,t,i){var n;if(!a)return L;if(typeof a=="string"){var r=a.toLowerCase();U[r]&&(n=r),t&&(U[r]=t,n=r);var d=a.split("-");if(!n&&d.length>1)return l(d[0])}else{var b=a.name;U[b]=a,n=b}return!i&&n&&(L=n),n||!i&&L},N=function(l,a){if(G(l))return l.clone();var t=typeof a=="object"?a:{};return t.date=l,t.args=arguments,new K(t)},u=q;u.l=R,u.i=G,u.w=function(l,a){return N(l,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var K=function(){function l(t){this.$L=R(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[z]=!0}var a=l.prototype;return a.parse=function(t){this.$d=function(i){var n=i.date,r=i.utc;if(n===null)return new Date(NaN);if(u.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var d=n.match(x);if(d){var b=d[2]-1||0,h=(d[7]||"0").substring(0,3);return r?new Date(Date.UTC(d[1],b,d[3]||1,d[4]||0,d[5]||0,d[6]||0,h)):new Date(d[1],b,d[3]||1,d[4]||0,d[5]||0,d[6]||0,h)}}return new Date(n)}(t),this.init()},a.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},a.$utils=function(){return u},a.isValid=function(){return this.$d.toString()!==o},a.isSame=function(t,i){var n=N(t);return this.startOf(i)<=n&&n<=this.endOf(i)},a.isAfter=function(t,i){return N(t)<this.startOf(i)},a.isBefore=function(t,i){return this.endOf(i)<N(t)},a.$g=function(t,i,n){return u.u(t)?this[i]:this.set(n,t)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(t,i){var n=this,r=!!u.u(i)||i,d=u.p(t),b=function(O,B){var V=u.w(n.$u?Date.UTC(n.$y,B,O):new Date(n.$y,B,O),n);return r?V:V.endOf(P)},h=function(O,B){return u.w(n.toDate()[O].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(B)),n)},T=this.$W,D=this.$M,A=this.$D,j="set"+(this.$u?"UTC":"");switch(d){case s:return r?b(1,0):b(31,11);case _:return r?b(1,D):b(0,D+1);case F:var H=this.$locale().weekStart||0,W=(T<H?T+7:T)-H;return b(r?A-W:A+(6-W),D);case P:case g:return h(j+"Hours",0);case p:return h(j+"Minutes",1);case M:return h(j+"Seconds",2);case S:return h(j+"Milliseconds",3);default:return this.clone()}},a.endOf=function(t){return this.startOf(t,!1)},a.$set=function(t,i){var n,r=u.p(t),d="set"+(this.$u?"UTC":""),b=(n={},n[P]=d+"Date",n[g]=d+"Date",n[_]=d+"Month",n[s]=d+"FullYear",n[p]=d+"Hours",n[M]=d+"Minutes",n[S]=d+"Seconds",n[k]=d+"Milliseconds",n)[r],h=r===P?this.$D+(i-this.$W):i;if(r===_||r===s){var T=this.clone().set(g,1);T.$d[b](h),T.init(),this.$d=T.set(g,Math.min(this.$D,T.daysInMonth())).$d}else b&&this.$d[b](h);return this.init(),this},a.set=function(t,i){return this.clone().$set(t,i)},a.get=function(t){return this[u.p(t)]()},a.add=function(t,i){var n,r=this;t=Number(t);var d=u.p(i),b=function(D){var A=N(r);return u.w(A.date(A.date()+Math.round(D*t)),r)};if(d===_)return this.set(_,this.$M+t);if(d===s)return this.set(s,this.$y+t);if(d===P)return b(1);if(d===F)return b(7);var h=(n={},n[M]=w,n[p]=y,n[S]=f,n)[d]||1,T=this.$d.getTime()+t*h;return u.w(T,this)},a.subtract=function(t,i){return this.add(-1*t,i)},a.format=function(t){var i=this,n=this.$locale();if(!this.isValid())return n.invalidDate||o;var r=t||"YYYY-MM-DDTHH:mm:ssZ",d=u.z(this),b=this.$H,h=this.$m,T=this.$M,D=n.weekdays,A=n.months,j=n.meridiem,H=function(B,V,Y,X){return B&&(B[V]||B(i,r))||Y[V].slice(0,X)},W=function(B){return u.s(b%12||12,B,"0")},O=j||function(B,V,Y){var X=B<12?"AM":"PM";return Y?X.toLowerCase():X};return r.replace(I,function(B,V){return V||function(Y){switch(Y){case"YY":return String(i.$y).slice(-2);case"YYYY":return u.s(i.$y,4,"0");case"M":return T+1;case"MM":return u.s(T+1,2,"0");case"MMM":return H(n.monthsShort,T,A,3);case"MMMM":return H(A,T);case"D":return i.$D;case"DD":return u.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return H(n.weekdaysMin,i.$W,D,2);case"ddd":return H(n.weekdaysShort,i.$W,D,3);case"dddd":return D[i.$W];case"H":return String(b);case"HH":return u.s(b,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return O(b,h,!0);case"A":return O(b,h,!1);case"m":return String(h);case"mm":return u.s(h,2,"0");case"s":return String(i.$s);case"ss":return u.s(i.$s,2,"0");case"SSS":return u.s(i.$ms,3,"0");case"Z":return d}return null}(B)||d.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(t,i,n){var r,d=this,b=u.p(i),h=N(t),T=(h.utcOffset()-this.utcOffset())*w,D=this-h,A=function(){return u.m(d,h)};switch(b){case s:r=A()/12;break;case _:r=A();break;case E:r=A()/3;break;case F:r=(D-T)/6048e5;break;case P:r=(D-T)/864e5;break;case p:r=D/y;break;case M:r=D/w;break;case S:r=D/f;break;default:r=D}return n?r:u.a(r)},a.daysInMonth=function(){return this.endOf(_).$D},a.$locale=function(){return U[this.$L]},a.locale=function(t,i){if(!t)return this.$L;var n=this.clone(),r=R(t,i,!0);return r&&(n.$L=r),n},a.clone=function(){return u.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},l}(),le=K.prototype;return N.prototype=le,[["$ms",k],["$s",S],["$m",M],["$H",p],["$W",P],["$M",_],["$y",s],["$D",g]].forEach(function(l){le[l[1]]=function(a){return this.$g(a,l[0],l[1])}}),N.extend=function(l,a){return l.$i||(l(a,K,N),l.$i=!0),N},N.locale=R,N.isDayjs=G,N.unix=function(l){return N(1e3*l)},N.en=U[L],N.Ls=U,N.p={},N})})(te);var de=te.exports;const ne=ee(de);var ae={exports:{}};(function(c,m){(function(f,w){c.exports=w()})(Z,function(){var f="minute",w=/[+-]\d\d(?::?\d\d)?/g,y=/([+-]|\d\d)/g;return function(k,S,M){var p=S.prototype;M.utc=function(o){var x={date:o,utc:!0,args:arguments};return new S(x)},p.utc=function(o){var x=M(this.toDate(),{locale:this.$L,utc:!0});return o?x.add(this.utcOffset(),f):x},p.local=function(){return M(this.toDate(),{locale:this.$L,utc:!1})};var P=p.parse;p.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),P.call(this,o)};var F=p.init;p.init=function(){if(this.$u){var o=this.$d;this.$y=o.getUTCFullYear(),this.$M=o.getUTCMonth(),this.$D=o.getUTCDate(),this.$W=o.getUTCDay(),this.$H=o.getUTCHours(),this.$m=o.getUTCMinutes(),this.$s=o.getUTCSeconds(),this.$ms=o.getUTCMilliseconds()}else F.call(this)};var _=p.utcOffset;p.utcOffset=function(o,x){var I=this.$utils().u;if(I(o))return this.$u?0:I(this.$offset)?_.call(this):this.$offset;if(typeof o=="string"&&(o=function(L){L===void 0&&(L="");var U=L.match(w);if(!U)return null;var z=(""+U[0]).match(y)||["-",0,0],G=z[0],R=60*+z[1]+ +z[2];return R===0?0:G==="+"?R:-R}(o),o===null))return this;var C=Math.abs(o)<=16?60*o:o;if(C===0)return this.utc(x);var $=this.clone();if(x)return $.$offset=C,$.$u=!1,$;var q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return($=this.local().add(C+q,f)).$offset=C,$.$x.$localOffset=q,$};var E=p.format;p.format=function(o){var x=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return E.call(this,x)},p.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var s=p.toDate;p.toDate=function(o){return o==="s"&&this.$offset?M(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var g=p.diff;p.diff=function(o,x,I){if(o&&this.$u===o.$u)return g.call(this,o,x,I);var C=this.local(),$=M(o).local();return g.call(C,$,x,I)}}})})(ae);var ce=ae.exports;const fe=ee(ce);ne.extend(fe);function pe(){let c=new Date().getTimezoneOffset();const m=Math.abs(Math.floor(c/60)),f=c<0?"+":"-";return c=Math.abs(c%60),f+m.toString().padStart(2,"0")+c.toString().padStart(2,"0")}function Q(c,m,f){return c?(m===void 0&&(m="YYYY-MM-DD HH:mm:ss"),f||(f=pe()),ne.utc(c).utcOffset(f).format(m)):""}const me={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function ie(c,m="cn"){const f=me[m],w=Math.floor(c/(24*60*60*1e3)),y=Math.floor(c/(60*60*1e3)-w*24),k=Math.floor(c/(60*1e3)-w*24*60-y*60),S=Math.floor(c/1e3-w*24*60*60-y*60*60-k*60);return w>0?w+f.days+y+f.hours+k+f.minutes:y>0?y+f.hours+k+f.minutes:k>0?k+f.minutes:S>0?S+f.seconds:0+f.seconds}const ue={class:"scroll-area"},be={class:"flow-header flex justify-between"},ge={class:"text-18px font-bold"},ye={class:"text-14px font-bold",style:{color:"#005aae"}},we={class:"flex items-center"},he={class:"flow-start"},Ne={key:0},Te={class:"mt-30px block"},Se=["src"],Me={style:{"font-weight":"700"}},_e={key:0,style:{"margin-right":"30px","font-weight":"normal"}},Ee={key:1,style:{"margin-right":"30px","font-weight":"normal"}},xe={key:0,style:{"font-weight":"normal"}},De={key:1,style:{"font-weight":"normal",color:"#8a909c"}},ke={key:2,style:{"font-weight":"normal"}},$e={key:3,style:{"font-weight":"normal",color:"#8a909c"}},Pe={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Be={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ae={key:2},Ce=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(c){const m=y=>y,f={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},w=y=>[0,1,6,7].includes(y.status)?"primary":y.status===2?"success":y.status===3?"danger":y.status===4?"info":y.status===5?"warning":"";return(y,k)=>{var E;const S=e.resolveComponent("Icon"),M=e.resolveComponent("dict-tag"),p=e.resolveComponent("el-tag"),P=e.resolveComponent("el-card"),F=e.resolveComponent("el-timeline-item"),_=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock("div",ue,[k[0]||(k[0]=e.createElementVNode("div",{class:"test"},"test",-1)),e.createElementVNode("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("span",null,e.toDisplayString(m("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(c.processInstance.id),1)]),e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(c.processInstance.name),1)])]),e.createElementVNode("div",we,[e.createElementVNode("div",he,[e.createElementVNode("p",null,e.toDisplayString(m("processFlow.startTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(m("processFlow.endTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.endTime)),1),c.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Ne,e.toDisplayString(m("processFlow.duration"))+e.toDisplayString(e.unref(ie)((E=c.processInstance)==null?void 0:E.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(S,{size:100,icon:f[c.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Te,[e.createVNode(_,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.tasks,(s,g)=>(e.openBlock(),e.createBlock(F,{key:g,type:w(s)||"info"},{dot:e.withCtx(()=>{var o;return[e.createElementVNode("img",{src:((o=s==null?void 0:s.assigneeUser)==null?void 0:o.avatar)||"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",class:"avatar-wrap"},null,8,Se)]}),default:e.withCtx(()=>[e.createElementVNode("p",Me,[e.createTextVNode(e.toDisplayString(s.name)+" ",1),s.status?(e.openBlock(),e.createBlock(M,{key:0,type:"bpm_task_status",value:s.status||""},null,8,["value"])):e.createCommentVNode("",!0)]),e.createVNode(P,{"body-style":{padding:"10px"}},{default:e.withCtx(()=>{var o,x,I,C;return[g===0?(e.openBlock(),e.createElementBlock("label",_e,[e.createTextVNode(e.toDisplayString(((o=s.assigneeUser)==null?void 0:o.nickname)||((x=s.ownerUser)==null?void 0:x.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var $,q;return[e.createTextVNode(e.toDisplayString((q=($=c.processInstance)==null?void 0:$.startUser)==null?void 0:q.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),s.assigneeUser?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(m("processFlow.approver"))+e.toDisplayString(((I=s.assigneeUser)==null?void 0:I.nickname)||((C=s.ownerUser)==null?void 0:C.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.assigneeUser.deptName),1)]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[s.createTime&&!s.endTime?(e.openBlock(),e.createElementBlock("label",xe,e.toDisplayString(m("processFlow.createTime")),1)):e.createCommentVNode("",!0),s.createTime&&!s.endTime?(e.openBlock(),e.createElementBlock("label",De,e.toDisplayString(e.unref(Q)(s==null?void 0:s.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),s.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(m("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),s.endTime?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(e.unref(Q)(s==null?void 0:s.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),s.durationInMillis?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(m("processFlow.duration")),1)):e.createCommentVNode("",!0),s.durationInMillis?(e.openBlock(),e.createElementBlock("label",Be,e.toDisplayString(e.unref(ie)(s==null?void 0:s.durationInMillis)),1)):e.createCommentVNode("",!0)]),s.reason?(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString(m("processFlow.approvalSuggestion"))+e.toDisplayString(s.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),Le="",se=(c,m)=>{const f=c.__vccOpts||c;for(const[w,y]of m)f[w]=y;return f},ve=se(Ce,[["__scopeId","data-v-d4e14dfa"]]),Fe=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(c){const m=c,f=e.ref(!1),w=e.ref({}),y=e.ref({}),k=e.ref(""),S=e.ref([]),M=e.ref(""),p=E=>{M.value=E,P(),F()},P=async()=>{var E,s;try{f.value=!0;const g={status:1,activityNodes:[{id:"StartUserNode",name:"发起人",nodeType:10,status:2,startTime:"2026-04-03T14:19:25+0800",endTime:"2026-04-03T14:19:26+0800",tasks:[{id:"0fff48cd-2f25-11f1-9259-fa163e43f4f0",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},status:2,reason:"发起人节点首次自动通过",signPicUrl:null}],candidateStrategy:36,candidateUsers:[],processInstanceId:null},{id:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",name:"L1或签审批",nodeType:11,status:1,startTime:"2026-04-03T14:19:26+0800",endTime:null,tasks:[{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},status:1,reason:null,signPicUrl:null}],candidateStrategy:60,candidateUsers:[],processInstanceId:null},{id:"Activity_82540b22-2616-4924-9554-8466e1201240",name:"L2会签审批",nodeType:11,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:60,candidateUsers:[{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"}],processInstanceId:null},{id:"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f",name:"L3审批",nodeType:11,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:60,candidateUsers:[{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"}],processInstanceId:null},{id:"EndEvent",name:"结束",nodeType:1,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:null,candidateUsers:[],processInstanceId:null}],formFieldsPermission:{deptId:"1",zhiShu:"1",gangWei:"1",fenGuan:"1"},todoTask:{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",name:"L1或签审批",createTime:"2026-04-03T14:19:26+0800",endTime:null,durationInMillis:null,status:1,reason:null,ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:null,parentTaskId:null,children:[],formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:{1:{displayName:"通过",enable:!0},2:{displayName:"拒绝",enable:!0},3:{displayName:"转办",enable:!0},4:{displayName:"委派",enable:!0},5:{displayName:"加签",enable:!0},6:{displayName:"退回",enable:!0}},signEnable:!1,reasonRequire:!1,nodeType:11,timeout:null,categoryName:null,deptName:null,roleName:null,proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:95},processDefinition:{icon:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/44dfaa7b271cd6cde7f394f6aea3e24b/1.png?expires=1768910930044764&signature=0101EhRCzjRM:Mzc4OTE2MDMyNjEyQzM2RkUzNkM5RjIzRjc4MEM4Q0RFQUUwRjIwMw==",description:"",approvalTimeout:1,priority:90,type:null,formType:10,formId:"1995677721519898626",formCustomCreatePath:"/a",formCustomViewPath:"/b",visible:!0,startUserIds:[],startDeptIds:[],managerUserIds:[207],sort:1762130143976,allowCancelRunningProcess:!0,allowWithdrawTask:!1,processIdRule:{enable:!1,prefix:"",infix:"",postfix:"",length:5},autoApprovalType:2,sendMsgTypeSetting:["MAIL"],titleSetting:{enable:!1,title:""},summarySetting:{enable:!1,summary:[]},processBeforeTriggerSetting:null,processAfterTriggerSetting:null,taskBeforeTriggerSetting:null,taskAfterTriggerSetting:null,id:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",version:74,name:"连续多节点simple设计器",key:"simple-multi-node-simple",category:"edi",categoryName:null,modelType:20,modelId:"084d6e51-b84d-11f0-a9da-fa163ecf527b",formConf:'{"form":{"inline":false,"hideRequiredAsterisk":false,"labelPosition":"right","size":"default","labelWidth":"100px"},"resetBtn":{"show":false,"innerText":"重置"},"submitBtn":{"show":true,"innerText":"提交"}}',formFields:['{"type":"input","field":"fenGuan","title":"分管领导","info":"","$required":true,"_fc_id":"id_Fi7kminy00nsafc","name":"ref_Fq5eminy00nsagc","display":true,"hidden":false,"_fc_drag_tag":"input"}','{"type":"input","field":"gangWei","title":"岗位","info":"","$required":true,"_fc_id":"id_Ftwominy1gozalc","name":"ref_F0onminy1gozamc","display":true,"hidden":false,"_fc_drag_tag":"input"}','{"type":"DeptSelect","field":"deptId","title":"部门","info":"","$required":true,"props":{"checkStrictly":true},"_fc_id":"id_Fv2nminyehg2anc","name":"ref_Fzoiminyehg2aoc","display":true,"hidden":false,"_fc_drag_tag":"DeptSelect"}','{"type":"UserSelect","field":"zhiShu","title":"直属领导","info":"","$required":true,"props":{"checkStrictly":false},"_fc_id":"id_Fsrnmipach61abc","name":"ref_Fcuhmipach61acc","display":true,"hidden":false,"_fc_drag_tag":"UserSelect"}'],formName:null,suspensionState:1,deploymentTime:null,bpmnXml:`<?xml version="1.0" encoding="UTF-8"?>
2
2
  <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL">
3
3
  <process id="simple-multi-node-simple" name="连续多节点simple设计器" isExecutable="true">
4
4
  <startEvent id="StartEvent" name="开始"></startEvent>
@@ -219,4 +219,4 @@
219
219
  </bpmndi:BPMNEdge>
220
220
  </bpmndi:BPMNPlane>
221
221
  </bpmndi:BPMNDiagram>
222
- </definitions>`,simpleModel:'{"id":"StartUserNode","type":10,"name":"发起人","showText":"已设置","childNode":{"id":"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1","type":51,"name":"条件分支","childNode":{"id":"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563","type":51,"name":"条件分支","childNode":{"id":"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021","type":51,"name":"条件分支","childNode":{"id":"EndEvent","type":1,"name":"结束"},"conditionNodes":[{"id":"Flow_b1c94590-0170-41af-a462-f02b6f86f7d0","type":50,"name":"L3审批存在用户","showText":"表达式:${L3UserList.size() > 0}","childNode":{"id":"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f","type":11,"name":"L3审批","showText":"流程表达式:${L3UserList}","candidateStrategy":60,"candidateParam":"${L3UserList}","approveType":1,"approveMethod":4,"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"1"},{"field":"gangWei","title":"岗位","permission":"1"},{"field":"deptId","title":"部门","permission":"1"},{"field":"zhiShu","title":"直属领导","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","extendProcessSendSetting":true,"rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L3UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c","type":50,"name":"L3审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"conditionNodes":[{"id":"Flow_8ca2525a-0c23-4f05-a843-36c364facb96","type":50,"name":"L2审批存在用户","showText":"表达式:${L2UserList.size() > 0}","childNode":{"id":"Activity_82540b22-2616-4924-9554-8466e1201240","type":11,"name":"L2会签审批","showText":"流程表达式:${L2UserList}","candidateStrategy":60,"candidateParam":"${L2UserList}","approveType":1,"approveMethod":2,"approveRatio":100,"fieldsPermission":[{"field":"days","title":"请假天数","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L2UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426","type":50,"name":"L2审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"conditionNodes":[{"id":"Flow_026df4de-49c1-43ba-9a98-28f0568776d0","type":50,"name":"L1审批存在用户","showText":"表达式:${L1UserList.size() > 0}","childNode":{"id":"Activity_7e06529d-e9fa-4062-a1ae-18742609590d","type":11,"name":"L1或签审批","showText":"流程表达式:${L1UserList}","candidateStrategy":60,"candidateParam":"${L1UserList}","approveType":1,"approveMethod":3,"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"1"},{"field":"gangWei","title":"岗位","permission":"1"},{"field":"deptId","title":"部门","permission":"1"},{"field":"zhiShu","title":"直属领导","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","extendProcessSendSetting":true,"rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L1UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_928eac73-294a-425f-bf01-9c045d29a92f","type":50,"name":"L1审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"2"},{"field":"gangWei","title":"岗位","permission":"2"},{"field":"deptId","title":"部门","permission":"2"},{"field":"zhiShu","title":"直属领导","permission":"2"}],"buttonsSetting":[{"id":1,"displayName":"提交","enable":true},{"id":2,"displayName":"拒绝","enable":false},{"id":7,"displayName":"抄送","enable":false},{"id":3,"displayName":"转办","enable":false},{"id":4,"displayName":"委派","enable":false},{"id":5,"displayName":"加签","enable":false},{"id":6,"displayName":"退回","enable":false}]}'},processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",summary:null,category:null,categoryName:null,status:1,startTime:"2026-04-03T14:19:25+0800",endTime:null,durationInMillis:null,formVariables:{_FLOWABLE_SKIP_EXPRESSION_ENABLED:!0,approvalDialogComponentPath:"/line/testSimpleMutilNode/DialogDetail.vue",L2ApproveType:1,customVariables:{},L2UserList:[207],PROCESS_START_USER_ID:207,approvalPageOpenType:"openDialog",L1ApproveType:2,L3UserList:[207],USER_ID_207:{userId:207,id:"1000000000000010322",name:"外运集运",roleId:170,roleName:"租户管理员",nickName:"集运管理员"},L1UserList:[207],L3ApproveType:2,applicationPrefix:"/svl",approvalRouteUrl:"/line/bpmSimpleMutilNode/detail"},businessKey:"2039950881344360448",startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",processDefinition:null,tasks:null}};w.value=g==null?void 0:g.processInstance,B.value=(s=(E=g==null?void 0:g.processInstance)==null?void 0:E.formVariables)==null?void 0:s.applicationPrefix,y.value=g==null?void 0:g.todoTask}finally{f.value=!1}},F=async()=>{S.value=[{id:"0fff48cd-2f25-11f1-9259-fa163e43f4f0",name:"发起人",createTime:"2026-04-03T14:19:25+0800",endTime:"2026-04-03T14:19:26+0800",durationInMillis:618,status:2,reason:"发起人节点首次自动通过",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"StartUserNode",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",createTime:null,processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",businessKey:"2039950881344360448",summary:null,startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:null},deptName:null,formVariables:null},parentTaskId:null,children:null,formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:null,signEnable:null,reasonRequire:null,nodeType:null,timeout:null,categoryName:null,deptName:"外运集运",roleName:"租户管理员",proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:50,editable:!0},{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",name:"L1或签审批",createTime:"2026-04-03T14:19:26+0800",endTime:null,durationInMillis:null,status:1,reason:null,ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",createTime:null,processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",businessKey:"2039950881344360448",summary:null,startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:null},deptName:null,formVariables:null},parentTaskId:null,children:null,formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:null,signEnable:null,reasonRequire:null,nodeType:null,timeout:null,categoryName:null,deptName:"外运集运",roleName:"租户管理员",proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:95,editable:!0}]};e.watch(()=>m.processInstanceId,E=>{E&&E!==M.value&&p(E)},{immediate:!0,deep:!0});const _=()=>{re.ElMessage.success("aaa!")};return(E,s)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{onClick:_},{default:e.withCtx(()=>[...s[0]||(s[0]=[e.createTextVNode("测试按钮10",-1)])]),_:1}),e.createVNode(ve,{"process-instance":w.value,tasks:S.value},null,8,["process-instance","tasks"])],64)}}}),Re="",oe=se(Fe,[["__scopeId","data-v-2f2d542f"]]);let J=null;const Ie={install(c,m){if(console.log("插件install执行,options:",m),!(m!=null&&m.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");J=m.request,c.component("CmcProcessFlow",oe)}};function Ue(){if(console.log("getRequest",J),!J)throw new Error("没有_request对象");return J}v.CmcProcessFlow=oe,v.default=Ie,v.getRequest=Ue,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
222
+ </definitions>`,simpleModel:'{"id":"StartUserNode","type":10,"name":"发起人","showText":"已设置","childNode":{"id":"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1","type":51,"name":"条件分支","childNode":{"id":"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563","type":51,"name":"条件分支","childNode":{"id":"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021","type":51,"name":"条件分支","childNode":{"id":"EndEvent","type":1,"name":"结束"},"conditionNodes":[{"id":"Flow_b1c94590-0170-41af-a462-f02b6f86f7d0","type":50,"name":"L3审批存在用户","showText":"表达式:${L3UserList.size() > 0}","childNode":{"id":"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f","type":11,"name":"L3审批","showText":"流程表达式:${L3UserList}","candidateStrategy":60,"candidateParam":"${L3UserList}","approveType":1,"approveMethod":4,"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"1"},{"field":"gangWei","title":"岗位","permission":"1"},{"field":"deptId","title":"部门","permission":"1"},{"field":"zhiShu","title":"直属领导","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","extendProcessSendSetting":true,"rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L3UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c","type":50,"name":"L3审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"conditionNodes":[{"id":"Flow_8ca2525a-0c23-4f05-a843-36c364facb96","type":50,"name":"L2审批存在用户","showText":"表达式:${L2UserList.size() > 0}","childNode":{"id":"Activity_82540b22-2616-4924-9554-8466e1201240","type":11,"name":"L2会签审批","showText":"流程表达式:${L2UserList}","candidateStrategy":60,"candidateParam":"${L2UserList}","approveType":1,"approveMethod":2,"approveRatio":100,"fieldsPermission":[{"field":"days","title":"请假天数","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L2UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426","type":50,"name":"L2审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"conditionNodes":[{"id":"Flow_026df4de-49c1-43ba-9a98-28f0568776d0","type":50,"name":"L1审批存在用户","showText":"表达式:${L1UserList.size() > 0}","childNode":{"id":"Activity_7e06529d-e9fa-4062-a1ae-18742609590d","type":11,"name":"L1或签审批","showText":"流程表达式:${L1UserList}","candidateStrategy":60,"candidateParam":"${L1UserList}","approveType":1,"approveMethod":3,"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"1"},{"field":"gangWei","title":"岗位","permission":"1"},{"field":"deptId","title":"部门","permission":"1"},{"field":"zhiShu","title":"直属领导","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","extendProcessSendSetting":true,"rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L1UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_928eac73-294a-425f-bf01-9c045d29a92f","type":50,"name":"L1审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"2"},{"field":"gangWei","title":"岗位","permission":"2"},{"field":"deptId","title":"部门","permission":"2"},{"field":"zhiShu","title":"直属领导","permission":"2"}],"buttonsSetting":[{"id":1,"displayName":"提交","enable":true},{"id":2,"displayName":"拒绝","enable":false},{"id":7,"displayName":"抄送","enable":false},{"id":3,"displayName":"转办","enable":false},{"id":4,"displayName":"委派","enable":false},{"id":5,"displayName":"加签","enable":false},{"id":6,"displayName":"退回","enable":false}]}'},processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",summary:null,category:null,categoryName:null,status:1,startTime:"2026-04-03T14:19:25+0800",endTime:null,durationInMillis:null,formVariables:{_FLOWABLE_SKIP_EXPRESSION_ENABLED:!0,approvalDialogComponentPath:"/line/testSimpleMutilNode/DialogDetail.vue",L2ApproveType:1,customVariables:{},L2UserList:[207],PROCESS_START_USER_ID:207,approvalPageOpenType:"openDialog",L1ApproveType:2,L3UserList:[207],USER_ID_207:{userId:207,id:"1000000000000010322",name:"外运集运",roleId:170,roleName:"租户管理员",nickName:"集运管理员"},L1UserList:[207],L3ApproveType:2,applicationPrefix:"/svl",approvalRouteUrl:"/line/bpmSimpleMutilNode/detail"},businessKey:"2039950881344360448",startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",processDefinition:null,tasks:null}};w.value=g==null?void 0:g.processInstance,k.value=(s=(E=g==null?void 0:g.processInstance)==null?void 0:E.formVariables)==null?void 0:s.applicationPrefix,y.value=g==null?void 0:g.todoTask}finally{f.value=!1}},F=async()=>{S.value=[{id:"0fff48cd-2f25-11f1-9259-fa163e43f4f0",name:"发起人",createTime:"2026-04-03T14:19:25+0800",endTime:"2026-04-03T14:19:26+0800",durationInMillis:618,status:2,reason:"发起人节点首次自动通过",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"StartUserNode",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",createTime:null,processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",businessKey:"2039950881344360448",summary:null,startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:null},deptName:null,formVariables:null},parentTaskId:null,children:null,formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:null,signEnable:null,reasonRequire:null,nodeType:null,timeout:null,categoryName:null,deptName:"外运集运",roleName:"租户管理员",proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:50,editable:!0},{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",name:"L1或签审批",createTime:"2026-04-03T14:19:26+0800",endTime:null,durationInMillis:null,status:1,reason:null,ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",createTime:null,processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",businessKey:"2039950881344360448",summary:null,startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:null},deptName:null,formVariables:null},parentTaskId:null,children:null,formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:null,signEnable:null,reasonRequire:null,nodeType:null,timeout:null,categoryName:null,deptName:"外运集运",roleName:"租户管理员",proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:95,editable:!0}]};e.watch(()=>m.processInstanceId,E=>{E&&E!==M.value&&p(E)},{immediate:!0,deep:!0});const _=()=>{re.ElMessage.success("aaa!")};return(E,s)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{onClick:_},{default:e.withCtx(()=>[...s[0]||(s[0]=[e.createTextVNode("测试按钮10",-1)])]),_:1}),e.createVNode(ve,{"process-instance":w.value,tasks:S.value},null,8,["process-instance","tasks"])],64)}}}),Re="",oe=se(Fe,[["__scopeId","data-v-2f2d542f"]]);let J=null;const Ie={install(c,m){if(console.log("插件install执行,options:",m),!(m!=null&&m.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");J=m.request,c.component("CmcProcessFlow",oe)}};function Ue(){if(console.log("getRequest",J),!J)throw new Error("没有_request对象");return J}v.CmcProcessFlow=oe,v.default=Ie,v.getRequest=Ue,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.avatar-wrap[data-v-f8ad04ec]{width:40px;height:40px}.flow-start[data-v-f8ad04ec]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgb(245,247,253)}.flow-start p[data-v-f8ad04ec]{margin:0;padding-top:10px;font-size:14px}[data-v-f8ad04ec] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-f8ad04ec]{flex:1;min-height:0;overflow-y:auto}.process-container[data-v-2f2d542f]{height:100%;box-sizing:border-box}.process-container[data-v-2f2d542f]>.el-card__body{height:100%;padding-bottom:0}.process-container[data-v-2f2d542f]>.el-card__body>div{height:100%;display:flex;flex-direction:column}.approval-actions[data-v-2f2d542f]{margin:20px 0}.approval-actions .action-buttons[data-v-2f2d542f]{display:flex;flex-direction:column;gap:12px}.approval-actions .action-buttons .basic-actions[data-v-2f2d542f]{display:flex;gap:12px}.approval-actions .action-buttons .extended-actions[data-v-2f2d542f]{display:flex;gap:12px;flex-wrap:wrap}.approval-dialogs[data-v-2f2d542f]{display:contents}
1
+ @charset "UTF-8";.test[data-v-d4e14dfa]{width:100px;height:100px;background:red}.avatar-wrap[data-v-d4e14dfa]{width:40px;height:40px}.flow-start[data-v-d4e14dfa]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgb(245,247,253)}.flow-start p[data-v-d4e14dfa]{margin:0;padding-top:10px;font-size:14px}[data-v-d4e14dfa] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-d4e14dfa]{flex:1;min-height:0;overflow-y:auto}.process-container[data-v-2f2d542f]{height:100%;box-sizing:border-box}.process-container[data-v-2f2d542f]>.el-card__body{height:100%;padding-bottom:0}.process-container[data-v-2f2d542f]>.el-card__body>div{height:100%;display:flex;flex-direction:column}.approval-actions[data-v-2f2d542f]{margin:20px 0}.approval-actions .action-buttons[data-v-2f2d542f]{display:flex;flex-direction:column;gap:12px}.approval-actions .action-buttons .basic-actions[data-v-2f2d542f]{display:flex;gap:12px}.approval-actions .action-buttons .extended-actions[data-v-2f2d542f]{display:flex;gap:12px;flex-wrap:wrap}.approval-dialogs[data-v-2f2d542f]{display:contents}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbb-component-ui",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,7 +20,8 @@
20
20
  "vue": "^3.2.0",
21
21
  "vue-tsc": "^1.8.27",
22
22
  "dayjs": "^1.11.10",
23
- "unocss": "^0.56.5"
23
+ "unocss": "^0.56.5",
24
+ "sass": "1.69.3"
24
25
  },
25
26
  "peerDependencies": {
26
27
  "element-plus": ">=2.0.0",
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div class="scroll-area">
3
+ <div class="test">test</div>
3
4
  <div class="flow-header flex justify-between">
4
5
  <div class="text-18px font-bold">
5
6
  <span>{{ t('processFlow.flow') }}</span>
@@ -138,6 +139,11 @@ const getTaskTimelineItemType = (item: any) => {
138
139
 
139
140
 
140
141
  <style scoped lang="scss">
142
+ .test {
143
+ width: 100px;
144
+ height: 100px;
145
+ background: red;
146
+ }
141
147
  .avatar-wrap {
142
148
  width: 40px;
143
149
  height: 40px;