nbb-component-ui 1.6.5 → 1.6.7

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,39 +1,39 @@
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
- var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
- function me(r) {
1
+ import { defineComponent as fe, resolveComponent as Q, openBlock as E, createElementBlock as I, createElementVNode as P, toDisplayString as y, unref as J, createCommentVNode as C, createVNode as te, withCtx as K, Fragment as we, renderList as he, createBlock as de, createTextVNode as ae, ref as X, watch as Ne } from "vue";
2
+ import "element-plus";
3
+ var ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
+ function pe(r) {
5
5
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
6
6
  }
7
- var be = { exports: {} };
7
+ var me = { exports: {} };
8
8
  (function(r, u) {
9
9
  (function(c, w) {
10
10
  r.exports = w();
11
- })(pe, function() {
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) {
11
+ })(ue, function() {
12
+ var c = 1e3, w = 6e4, g = 36e5, A = "millisecond", v = "second", M = "minute", f = "hour", D = "day", L = "week", b = "month", B = "quarter", a = "year", k = "date", s = "Invalid Date", _ = /^(\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
- } }, $ = function(o, t, e) {
16
- var a = String(o);
17
- return !a || a.length >= t ? o : "" + Array(t + 1 - a.length).join(e) + o;
18
- }, j = { s: $, z: function(o) {
19
- var t = -o.utcOffset(), e = Math.abs(t), a = Math.floor(e / 60), n = e % 60;
20
- return (t <= 0 ? "+" : "-") + $(a, 2, "0") + ":" + $(n, 2, "0");
15
+ } }, x = function(o, t, e) {
16
+ var i = String(o);
17
+ return !i || i.length >= t ? o : "" + Array(t + 1 - i.length).join(e) + o;
18
+ }, j = { s: x, z: function(o) {
19
+ var t = -o.utcOffset(), e = Math.abs(t), i = Math.floor(e / 60), n = e % 60;
20
+ return (t <= 0 ? "+" : "-") + x(i, 2, "0") + ":" + x(n, 2, "0");
21
21
  }, m: function o(t, e) {
22
22
  if (t.date() < e.date())
23
23
  return -o(e, t);
24
- var a = 12 * (e.year() - t.year()) + (e.month() - t.month()), n = t.clone().add(a, _), l = e - n < 0, d = t.clone().add(a + (l ? -1 : 1), _);
25
- return +(-(a + (e - n) / (l ? n - d : d - n)) || 0);
24
+ var i = 12 * (e.year() - t.year()) + (e.month() - t.month()), n = t.clone().add(i, b), l = e - n < 0, d = t.clone().add(i + (l ? -1 : 1), b);
25
+ return +(-(i + (e - n) / (l ? n - d : d - n)) || 0);
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: k, D: b, h: f, m: M, s: T, ms: D, Q: S }[o] || String(o || "").toLowerCase().replace(/s$/, "");
29
+ return { M: b, y: a, w: L, d: D, D: k, h: f, m: M, s: v, ms: A, Q: B }[o] || String(o || "").toLowerCase().replace(/s$/, "");
30
30
  }, u: function(o) {
31
31
  return o === void 0;
32
32
  } }, H = "en", q = {};
33
33
  q[H] = U;
34
- var J = "$isDayjsObject", ne = function(o) {
35
- return o instanceof ie || !(!o || !o[J]);
36
- }, O = function o(t, e, a) {
34
+ var V = "$isDayjsObject", Z = function(o) {
35
+ return o instanceof ie || !(!o || !o[V]);
36
+ }, O = function o(t, e, i) {
37
37
  var n;
38
38
  if (!t)
39
39
  return H;
@@ -47,24 +47,24 @@ var be = { exports: {} };
47
47
  var m = t.name;
48
48
  q[m] = t, n = m;
49
49
  }
50
- return !a && n && (H = n), n || !a && H;
50
+ return !i && n && (H = n), n || !i && H;
51
51
  }, N = function(o, t) {
52
- if (ne(o))
52
+ if (Z(o))
53
53
  return o.clone();
54
54
  var e = typeof t == "object" ? t : {};
55
55
  return e.date = o, e.args = arguments, new ie(e);
56
56
  }, p = j;
57
- p.l = O, p.i = ne, p.w = function(o, t) {
57
+ p.l = O, p.i = Z, p.w = function(o, t) {
58
58
  return N(o, { locale: t.$L, utc: t.$u, x: t.$x, $offset: t.$offset });
59
59
  };
60
60
  var ie = function() {
61
61
  function o(e) {
62
- this.$L = O(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[J] = !0;
62
+ this.$L = O(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[V] = !0;
63
63
  }
64
64
  var t = o.prototype;
65
65
  return t.parse = function(e) {
66
- this.$d = function(a) {
67
- var n = a.date, l = a.utc;
66
+ this.$d = function(i) {
67
+ var n = i.date, l = i.utc;
68
68
  if (n === null)
69
69
  return /* @__PURE__ */ new Date(NaN);
70
70
  if (p.u(n))
@@ -72,7 +72,7 @@ var be = { exports: {} };
72
72
  if (n instanceof Date)
73
73
  return new Date(n);
74
74
  if (typeof n == "string" && !/Z$/i.test(n)) {
75
- var d = n.match(x);
75
+ var d = n.match(_);
76
76
  if (d) {
77
77
  var m = d[2] - 1 || 0, h = (d[7] || "0").substring(0, 3);
78
78
  return l ? new Date(Date.UTC(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, h)) : new Date(d[1], m, d[3] || 1, d[4] || 0, d[5] || 0, d[6] || 0, h);
@@ -87,126 +87,126 @@ var be = { exports: {} };
87
87
  return p;
88
88
  }, t.isValid = function() {
89
89
  return this.$d.toString() !== s;
90
- }, t.isSame = function(e, a) {
90
+ }, t.isSame = function(e, i) {
91
91
  var n = N(e);
92
- return this.startOf(a) <= n && n <= this.endOf(a);
93
- }, t.isAfter = function(e, a) {
94
- return N(e) < this.startOf(a);
95
- }, t.isBefore = function(e, a) {
96
- return this.endOf(a) < N(e);
97
- }, t.$g = function(e, a, n) {
98
- return p.u(e) ? this[a] : this.set(n, e);
92
+ return this.startOf(i) <= n && n <= this.endOf(i);
93
+ }, t.isAfter = function(e, i) {
94
+ return N(e) < this.startOf(i);
95
+ }, t.isBefore = function(e, i) {
96
+ return this.endOf(i) < N(e);
97
+ }, t.$g = function(e, i, n) {
98
+ return p.u(e) ? this[i] : this.set(n, e);
99
99
  }, t.unix = function() {
100
100
  return Math.floor(this.valueOf() / 1e3);
101
101
  }, t.valueOf = function() {
102
102
  return this.$d.getTime();
103
- }, t.startOf = function(e, a) {
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" : "");
103
+ }, t.startOf = function(e, i) {
104
+ var n = this, l = !!p.u(i) || i, d = p.p(e), m = function(W, $) {
105
+ var z = p.w(n.$u ? Date.UTC(n.$y, $, W) : new Date(n.$y, $, W), n);
106
+ return l ? z : z.endOf(D);
107
+ }, h = function(W, $) {
108
+ return p.w(n.toDate()[W].apply(n.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), n);
109
+ }, T = this.$W, S = this.$M, F = this.$D, Y = "set" + (this.$u ? "UTC" : "");
110
110
  switch (d) {
111
- case i:
111
+ case a:
112
112
  return l ? m(1, 0) : m(31, 11);
113
- case _:
114
- return l ? m(1, E) : m(0, E + 1);
113
+ case b:
114
+ return l ? m(1, S) : m(0, S + 1);
115
115
  case L:
116
- var G = this.$locale().weekStart || 0, te = (v < G ? v + 7 : v) - G;
117
- return m(l ? B - te : B + (6 - te), E);
116
+ var G = this.$locale().weekStart || 0, ee = (T < G ? T + 7 : T) - G;
117
+ return m(l ? F - ee : F + (6 - ee), S);
118
+ case D:
118
119
  case k:
119
- case b:
120
- return h(K + "Hours", 0);
120
+ return h(Y + "Hours", 0);
121
121
  case f:
122
- return h(K + "Minutes", 1);
122
+ return h(Y + "Minutes", 1);
123
123
  case M:
124
- return h(K + "Seconds", 2);
125
- case T:
126
- return h(K + "Milliseconds", 3);
124
+ return h(Y + "Seconds", 2);
125
+ case v:
126
+ return h(Y + "Milliseconds", 3);
127
127
  default:
128
128
  return this.clone();
129
129
  }
130
130
  }, t.endOf = function(e) {
131
131
  return this.startOf(e, !1);
132
- }, t.$set = function(e, 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
- if (l === _ || l === i) {
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;
132
+ }, t.$set = function(e, i) {
133
+ var n, l = p.p(e), d = "set" + (this.$u ? "UTC" : ""), m = (n = {}, n[D] = d + "Date", n[k] = d + "Date", n[b] = d + "Month", n[a] = d + "FullYear", n[f] = d + "Hours", n[M] = d + "Minutes", n[v] = d + "Seconds", n[A] = d + "Milliseconds", n)[l], h = l === D ? this.$D + (i - this.$W) : i;
134
+ if (l === b || l === a) {
135
+ var T = this.clone().set(k, 1);
136
+ T.$d[m](h), T.init(), this.$d = T.set(k, Math.min(this.$D, T.daysInMonth())).$d;
137
137
  } else
138
138
  m && this.$d[m](h);
139
139
  return this.init(), this;
140
- }, t.set = function(e, a) {
141
- return this.clone().$set(e, a);
140
+ }, t.set = function(e, i) {
141
+ return this.clone().$set(e, i);
142
142
  }, t.get = function(e) {
143
143
  return this[p.p(e)]();
144
- }, t.add = function(e, a) {
144
+ }, t.add = function(e, i) {
145
145
  var n, l = this;
146
146
  e = Number(e);
147
- var d = p.p(a), m = function(E) {
148
- var B = N(l);
149
- return p.w(B.date(B.date() + Math.round(E * e)), l);
147
+ var d = p.p(i), m = function(S) {
148
+ var F = N(l);
149
+ return p.w(F.date(F.date() + Math.round(S * e)), l);
150
150
  };
151
- if (d === _)
152
- return this.set(_, this.$M + e);
153
- if (d === i)
154
- return this.set(i, this.$y + e);
155
- if (d === k)
151
+ if (d === b)
152
+ return this.set(b, this.$M + e);
153
+ if (d === a)
154
+ return this.set(a, this.$y + e);
155
+ if (d === D)
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[T] = c, n)[d] || 1, v = this.$d.getTime() + e * h;
160
- return p.w(v, this);
161
- }, t.subtract = function(e, a) {
162
- return this.add(-1 * e, a);
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);
161
+ }, t.subtract = function(e, i) {
162
+ return this.add(-1 * e, i);
163
163
  }, t.format = function(e) {
164
- var a = this, n = this.$locale();
164
+ var i = 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, 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
- return ae ? se.toLowerCase() : se;
167
+ var l = e || "YYYY-MM-DDTHH:mm:ssZ", d = p.z(this), m = this.$H, h = this.$m, T = this.$M, S = n.weekdays, F = n.months, Y = n.meridiem, G = function($, z, ne, se) {
168
+ return $ && ($[z] || $(i, l)) || ne[z].slice(0, se);
169
+ }, ee = function($) {
170
+ return p.s(m % 12 || 12, $, "0");
171
+ }, W = Y || function($, z, ne) {
172
+ var se = $ < 12 ? "AM" : "PM";
173
+ return ne ? se.toLowerCase() : se;
174
174
  };
175
- return l.replace(R, function(F, z) {
176
- return z || function(ae) {
177
- switch (ae) {
175
+ return l.replace(R, function($, z) {
176
+ return z || function(ne) {
177
+ switch (ne) {
178
178
  case "YY":
179
- return String(a.$y).slice(-2);
179
+ return String(i.$y).slice(-2);
180
180
  case "YYYY":
181
- return p.s(a.$y, 4, "0");
181
+ return p.s(i.$y, 4, "0");
182
182
  case "M":
183
- return v + 1;
183
+ return T + 1;
184
184
  case "MM":
185
- return p.s(v + 1, 2, "0");
185
+ return p.s(T + 1, 2, "0");
186
186
  case "MMM":
187
- return G(n.monthsShort, v, B, 3);
187
+ return G(n.monthsShort, T, F, 3);
188
188
  case "MMMM":
189
- return G(B, v);
189
+ return G(F, T);
190
190
  case "D":
191
- return a.$D;
191
+ return i.$D;
192
192
  case "DD":
193
- return p.s(a.$D, 2, "0");
193
+ return p.s(i.$D, 2, "0");
194
194
  case "d":
195
- return String(a.$W);
195
+ return String(i.$W);
196
196
  case "dd":
197
- return G(n.weekdaysMin, a.$W, E, 2);
197
+ return G(n.weekdaysMin, i.$W, S, 2);
198
198
  case "ddd":
199
- return G(n.weekdaysShort, a.$W, E, 3);
199
+ return G(n.weekdaysShort, i.$W, S, 3);
200
200
  case "dddd":
201
- return E[a.$W];
201
+ return S[i.$W];
202
202
  case "H":
203
203
  return String(m);
204
204
  case "HH":
205
205
  return p.s(m, 2, "0");
206
206
  case "h":
207
- return te(1);
207
+ return ee(1);
208
208
  case "hh":
209
- return te(2);
209
+ return ee(2);
210
210
  case "a":
211
211
  return W(m, h, !0);
212
212
  case "A":
@@ -216,60 +216,60 @@ var be = { exports: {} };
216
216
  case "mm":
217
217
  return p.s(h, 2, "0");
218
218
  case "s":
219
- return String(a.$s);
219
+ return String(i.$s);
220
220
  case "ss":
221
- return p.s(a.$s, 2, "0");
221
+ return p.s(i.$s, 2, "0");
222
222
  case "SSS":
223
- return p.s(a.$ms, 3, "0");
223
+ return p.s(i.$ms, 3, "0");
224
224
  case "Z":
225
225
  return d;
226
226
  }
227
227
  return null;
228
- }(F) || d.replace(":", "");
228
+ }($) || d.replace(":", "");
229
229
  });
230
230
  }, t.utcOffset = function() {
231
231
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
232
- }, t.diff = function(e, a, n) {
233
- var l, d = this, m = p.p(a), h = N(e), v = (h.utcOffset() - this.utcOffset()) * w, E = this - h, B = function() {
232
+ }, t.diff = function(e, i, n) {
233
+ var l, d = this, m = p.p(i), h = N(e), T = (h.utcOffset() - this.utcOffset()) * w, S = this - h, F = function() {
234
234
  return p.m(d, h);
235
235
  };
236
236
  switch (m) {
237
- case i:
238
- l = B() / 12;
237
+ case a:
238
+ l = F() / 12;
239
239
  break;
240
- case _:
241
- l = B();
240
+ case b:
241
+ l = F();
242
242
  break;
243
- case S:
244
- l = B() / 3;
243
+ case B:
244
+ l = F() / 3;
245
245
  break;
246
246
  case L:
247
- l = (E - v) / 6048e5;
247
+ l = (S - T) / 6048e5;
248
248
  break;
249
- case k:
250
- l = (E - v) / 864e5;
249
+ case D:
250
+ l = (S - T) / 864e5;
251
251
  break;
252
252
  case f:
253
- l = E / g;
253
+ l = S / g;
254
254
  break;
255
255
  case M:
256
- l = E / w;
256
+ l = S / w;
257
257
  break;
258
- case T:
259
- l = E / c;
258
+ case v:
259
+ l = S / c;
260
260
  break;
261
261
  default:
262
- l = E;
262
+ l = S;
263
263
  }
264
264
  return n ? l : p.a(l);
265
265
  }, t.daysInMonth = function() {
266
- return this.endOf(_).$D;
266
+ return this.endOf(b).$D;
267
267
  }, t.$locale = function() {
268
268
  return q[this.$L];
269
- }, t.locale = function(e, a) {
269
+ }, t.locale = function(e, i) {
270
270
  if (!e)
271
271
  return this.$L;
272
- var n = this.clone(), l = O(e, a, !0);
272
+ var n = this.clone(), l = O(e, i, !0);
273
273
  return l && (n.$L = l), n;
274
274
  }, t.clone = function() {
275
275
  return p.w(this.$d, this);
@@ -282,40 +282,40 @@ var be = { exports: {} };
282
282
  }, t.toString = function() {
283
283
  return this.$d.toUTCString();
284
284
  }, o;
285
- }(), de = ie.prototype;
286
- return N.prototype = de, [["$ms", D], ["$s", T], ["$m", M], ["$H", f], ["$W", k], ["$M", _], ["$y", i], ["$D", b]].forEach(function(o) {
287
- de[o[1]] = function(t) {
285
+ }(), re = ie.prototype;
286
+ return N.prototype = re, [["$ms", A], ["$s", v], ["$m", M], ["$H", f], ["$W", D], ["$M", b], ["$y", a], ["$D", k]].forEach(function(o) {
287
+ re[o[1]] = function(t) {
288
288
  return this.$g(t, o[0], o[1]);
289
289
  };
290
290
  }), N.extend = function(o, t) {
291
291
  return o.$i || (o(t, ie, N), o.$i = !0), N;
292
- }, N.locale = O, N.isDayjs = ne, N.unix = function(o) {
292
+ }, N.locale = O, N.isDayjs = Z, N.unix = function(o) {
293
293
  return N(1e3 * o);
294
294
  }, N.en = q[H], N.Ls = q, N.p = {}, N;
295
295
  });
296
- })(be);
297
- var Te = be.exports;
298
- const ge = /* @__PURE__ */ me(Te);
299
- var ye = { exports: {} };
296
+ })(me);
297
+ var Te = me.exports;
298
+ const be = /* @__PURE__ */ pe(Te);
299
+ var ge = { exports: {} };
300
300
  (function(r, u) {
301
301
  (function(c, w) {
302
302
  r.exports = w();
303
- })(pe, function() {
303
+ })(ue, function() {
304
304
  var c = "minute", w = /[+-]\d\d(?::?\d\d)?/g, g = /([+-]|\d\d)/g;
305
- return function(D, T, M) {
306
- var f = T.prototype;
305
+ return function(A, v, M) {
306
+ var f = v.prototype;
307
307
  M.utc = function(s) {
308
- var x = { date: s, utc: !0, args: arguments };
309
- return new T(x);
308
+ var _ = { date: s, utc: !0, args: arguments };
309
+ return new v(_);
310
310
  }, f.utc = function(s) {
311
- var x = M(this.toDate(), { locale: this.$L, utc: !0 });
312
- return s ? x.add(this.utcOffset(), c) : x;
311
+ var _ = M(this.toDate(), { locale: this.$L, utc: !0 });
312
+ return s ? _.add(this.utcOffset(), c) : _;
313
313
  }, f.local = function() {
314
314
  return M(this.toDate(), { locale: this.$L, utc: !1 });
315
315
  };
316
- var k = f.parse;
316
+ var D = f.parse;
317
317
  f.parse = function(s) {
318
- s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), k.call(this, s);
318
+ s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), D.call(this, s);
319
319
  };
320
320
  var L = f.init;
321
321
  f.init = function() {
@@ -325,33 +325,33 @@ var ye = { exports: {} };
325
325
  } else
326
326
  L.call(this);
327
327
  };
328
- var _ = f.utcOffset;
329
- f.utcOffset = function(s, x) {
328
+ var b = f.utcOffset;
329
+ f.utcOffset = function(s, _) {
330
330
  var R = this.$utils().u;
331
331
  if (R(s))
332
- return this.$u ? 0 : R(this.$offset) ? _.call(this) : this.$offset;
332
+ return this.$u ? 0 : R(this.$offset) ? b.call(this) : this.$offset;
333
333
  if (typeof s == "string" && (s = function(H) {
334
334
  H === void 0 && (H = "");
335
335
  var q = H.match(w);
336
336
  if (!q)
337
337
  return null;
338
- var J = ("" + q[0]).match(g) || ["-", 0, 0], ne = J[0], O = 60 * +J[1] + +J[2];
339
- return O === 0 ? 0 : ne === "+" ? O : -O;
338
+ var V = ("" + q[0]).match(g) || ["-", 0, 0], Z = V[0], O = 60 * +V[1] + +V[2];
339
+ return O === 0 ? 0 : Z === "+" ? O : -O;
340
340
  }(s), s === null))
341
341
  return this;
342
342
  var U = Math.abs(s) <= 16 ? 60 * s : s;
343
343
  if (U === 0)
344
- return this.utc(x);
345
- var $ = this.clone();
346
- if (x)
347
- return $.$offset = U, $.$u = !1, $;
344
+ return this.utc(_);
345
+ var x = this.clone();
346
+ if (_)
347
+ return x.$offset = U, x.$u = !1, x;
348
348
  var j = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
349
- return ($ = this.local().add(U + j, c)).$offset = U, $.$x.$localOffset = j, $;
349
+ return (x = this.local().add(U + j, c)).$offset = U, x.$x.$localOffset = j, x;
350
350
  };
351
- var S = f.format;
351
+ var B = f.format;
352
352
  f.format = function(s) {
353
- var x = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
354
- return S.call(this, x);
353
+ var _ = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
354
+ return B.call(this, _);
355
355
  }, f.valueOf = function() {
356
356
  var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
357
357
  return this.$d.valueOf() - 6e4 * s;
@@ -362,32 +362,32 @@ var ye = { exports: {} };
362
362
  }, f.toString = function() {
363
363
  return this.toDate().toUTCString();
364
364
  };
365
- var i = f.toDate;
365
+ var a = f.toDate;
366
366
  f.toDate = function(s) {
367
- return s === "s" && this.$offset ? M(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : i.call(this);
367
+ return s === "s" && this.$offset ? M(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : a.call(this);
368
368
  };
369
- var b = f.diff;
370
- f.diff = function(s, x, R) {
369
+ var k = f.diff;
370
+ f.diff = function(s, _, R) {
371
371
  if (s && this.$u === s.$u)
372
- return b.call(this, s, x, R);
373
- var U = this.local(), $ = M(s).local();
374
- return b.call(U, $, x, R);
372
+ return k.call(this, s, _, R);
373
+ var U = this.local(), x = M(s).local();
374
+ return k.call(U, x, _, R);
375
375
  };
376
376
  };
377
377
  });
378
- })(ye);
379
- var Me = ye.exports;
380
- const _e = /* @__PURE__ */ me(Me);
381
- ge.extend(_e);
382
- function Se() {
378
+ })(ge);
379
+ var ve = ge.exports;
380
+ const Me = /* @__PURE__ */ pe(ve);
381
+ be.extend(Me);
382
+ function _e() {
383
383
  let r = (/* @__PURE__ */ new Date()).getTimezoneOffset();
384
384
  const u = Math.abs(Math.floor(r / 60)), c = r < 0 ? "+" : "-";
385
385
  return r = Math.abs(r % 60), c + u.toString().padStart(2, "0") + r.toString().padStart(2, "0");
386
386
  }
387
387
  function oe(r, u, c) {
388
- return r ? (u === void 0 && (u = "YYYY-MM-DD HH:mm:ss"), c || (c = Se()), ge.utc(r).utcOffset(c).format(u)) : "";
388
+ return r ? (u === void 0 && (u = "YYYY-MM-DD HH:mm:ss"), c || (c = _e()), be.utc(r).utcOffset(c).format(u)) : "";
389
389
  }
390
- const xe = {
390
+ const Se = {
391
391
  cn: {
392
392
  seconds: "秒",
393
393
  minutes: "分钟",
@@ -402,37 +402,37 @@ 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), 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;
405
+ const c = Se[u], w = Math.floor(r / (24 * 60 * 60 * 1e3)), g = Math.floor(r / (60 * 60 * 1e3) - w * 24), A = Math.floor(r / (60 * 1e3) - w * 24 * 60 - g * 60), v = Math.floor(r / 1e3 - w * 24 * 60 * 60 - g * 60 * 60 - A * 60);
406
+ return w > 0 ? w + c.days + g + c.hours + A + c.minutes : g > 0 ? g + c.hours + A + c.minutes : A > 0 ? A + c.minutes : v > 0 ? v + c.seconds : 0 + c.seconds;
407
407
  }
408
- const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
408
+ const xe = { class: "scroll-area" }, Ee = { class: "flow-header flex justify-between" }, De = { class: "text-18px font-bold" }, $e = {
409
409
  class: "text-14px font-bold",
410
410
  style: { color: "#005aae" }
411
- }, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Be = ["src"], Ue = { style: { "font-weight": "700" } }, Ce = {
411
+ }, Pe = { class: "flex items-center" }, Ae = { class: "flow-start" }, ke = { key: 0 }, Fe = { class: "mt-30px block" }, Ie = ["src"], Be = { style: { "font-weight": "700" } }, Ue = {
412
412
  key: 0,
413
413
  style: { "margin-right": "30px", "font-weight": "normal" }
414
- }, Le = {
414
+ }, Ce = {
415
415
  key: 1,
416
416
  style: { "margin-right": "30px", "font-weight": "normal" }
417
- }, Re = {
417
+ }, Le = {
418
418
  key: 0,
419
419
  style: { "font-weight": "normal" }
420
- }, qe = {
420
+ }, Re = {
421
421
  key: 1,
422
422
  style: { "font-weight": "normal", color: "#8a909c" }
423
- }, He = {
423
+ }, qe = {
424
424
  key: 2,
425
425
  style: { "font-weight": "normal" }
426
- }, Oe = {
426
+ }, He = {
427
427
  key: 3,
428
428
  style: { "font-weight": "normal", color: "#8a909c" }
429
- }, ze = {
429
+ }, Oe = {
430
430
  key: 4,
431
431
  style: { "margin-left": "30px", "font-weight": "normal" }
432
- }, je = {
432
+ }, ze = {
433
433
  key: 5,
434
434
  style: { "font-weight": "normal", color: "#8a909c" }
435
- }, Ge = { key: 2 }, We = /* @__PURE__ */ fe({
435
+ }, je = { key: 2 }, Ge = /* @__PURE__ */ fe({
436
436
  name: "BpmProcessInstanceTaskList",
437
437
  __name: "CmcFlowList",
438
438
  props: {
@@ -450,98 +450,97 @@ 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, D) => {
454
- var S;
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, [
453
+ return (g, A) => {
454
+ var B;
455
+ const v = Q("Icon"), M = Q("dict-tag"), f = Q("el-tag"), D = Q("el-card"), L = Q("el-timeline-item"), b = Q("el-timeline");
456
+ return E(), I("div", xe, [
457
+ P("div", Ee, [
458
+ P("div", De, [
460
459
  P("span", null, y(u("processFlow.flow")), 1),
461
460
  P("span", null, y(r.processInstance.id), 1)
462
461
  ]),
463
- P("div", Pe, [
462
+ P("div", $e, [
464
463
  P("span", null, y(r.processInstance.name), 1)
465
464
  ])
466
465
  ]),
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)
466
+ P("div", Pe, [
467
+ P("div", Ae, [
468
+ P("p", null, y(u("processFlow.startTime")) + y(J(oe)(r.processInstance.startTime)), 1),
469
+ P("p", null, y(u("processFlow.endTime")) + y(J(oe)(r.processInstance.endTime)), 1),
470
+ r.processInstance.durationInMillis ? (E(), I("p", ke, y(u("processFlow.duration")) + y(J(ce)((B = r.processInstance) == null ? void 0 : B.durationInMillis)), 1)) : C("", !0)
472
471
  ]),
473
- Q(T, {
472
+ te(v, {
474
473
  size: 100,
475
474
  icon: c[r.processInstance.status] || "svg-icon:approvalPending"
476
475
  }, null, 8, ["icon"])
477
476
  ]),
478
- P("div", Ie, [
479
- Q(_, null, {
480
- default: Y(() => [
481
- (A(!0), I(ue, null, he(r.tasks, (i, b) => (A(), re(L, {
482
- key: b,
483
- type: w(i) || "info"
477
+ P("div", Fe, [
478
+ te(b, null, {
479
+ default: K(() => [
480
+ (E(!0), I(we, null, he(r.tasks, (a, k) => (E(), de(L, {
481
+ key: k,
482
+ type: w(a) || "info"
484
483
  }, {
485
- dot: Y(() => {
484
+ dot: K(() => {
486
485
  var s;
487
486
  return [
488
487
  P("img", {
489
- src: ((s = i == null ? void 0 : i.assigneeUser) == null ? void 0 : s.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
488
+ src: ((s = a == null ? void 0 : a.assigneeUser) == null ? void 0 : s.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
490
489
  class: "avatar-wrap"
491
- }, null, 8, Be)
490
+ }, null, 8, Ie)
492
491
  ];
493
492
  }),
494
- default: Y(() => [
495
- P("p", Ue, [
496
- ee(y(i.name) + " ", 1),
497
- i.status ? (A(), re(M, {
493
+ default: K(() => [
494
+ P("p", Be, [
495
+ ae(y(a.name) + " ", 1),
496
+ a.status ? (E(), de(M, {
498
497
  key: 0,
499
498
  type: "bpm_task_status",
500
- value: i.status || ""
499
+ value: a.status || ""
501
500
  }, null, 8, ["value"])) : C("", !0)
502
501
  ]),
503
- Q(k, { "body-style": { padding: "10px" } }, {
504
- default: Y(() => {
505
- var s, x, R, U;
502
+ te(D, { "body-style": { padding: "10px" } }, {
503
+ default: K(() => {
504
+ var s, _, R, U;
506
505
  return [
507
- b === 0 ? (A(), I("label", Ce, [
508
- ee(y(((s = i.assigneeUser) == null ? void 0 : s.nickname) || ((x = i.ownerUser) == null ? void 0 : x.nickname)) + " ", 1),
509
- Q(f, {
506
+ k === 0 ? (E(), I("label", Ue, [
507
+ ae(y(((s = a.assigneeUser) == null ? void 0 : s.nickname) || ((_ = a.ownerUser) == null ? void 0 : _.nickname)) + " ", 1),
508
+ te(f, {
510
509
  size: "small",
511
510
  type: "info",
512
511
  style: { "vertical-align": "1px" }
513
512
  }, {
514
- default: Y(() => {
515
- var $, j;
513
+ default: K(() => {
514
+ var x, j;
516
515
  return [
517
- ee(y((j = ($ = r.processInstance) == null ? void 0 : $.startUser) == null ? void 0 : j.deptName), 1)
516
+ ae(y((j = (x = r.processInstance) == null ? void 0 : x.startUser) == null ? void 0 : j.deptName), 1)
518
517
  ];
519
518
  }),
520
519
  _: 1
521
520
  })
522
521
  ])) : C("", !0),
523
- i.assigneeUser ? (A(), I("label", Le, [
524
- ee(y(u("processFlow.approver")) + y(((R = i.assigneeUser) == null ? void 0 : R.nickname) || ((U = i.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
525
- Q(f, {
522
+ a.assigneeUser ? (E(), I("label", Ce, [
523
+ ae(y(u("processFlow.approver")) + y(((R = a.assigneeUser) == null ? void 0 : R.nickname) || ((U = a.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
524
+ te(f, {
526
525
  size: "small",
527
526
  type: "info",
528
527
  style: { "vertical-align": "1px" }
529
528
  }, {
530
- default: Y(() => [
531
- ee(y(i.assigneeUser.deptName), 1)
529
+ default: K(() => [
530
+ ae(y(a.assigneeUser.deptName), 1)
532
531
  ]),
533
532
  _: 2
534
533
  }, 1024)
535
534
  ])) : C("", !0),
536
535
  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)
536
+ a.createTime && !a.endTime ? (E(), I("label", Le, y(u("processFlow.createTime")), 1)) : C("", !0),
537
+ a.createTime && !a.endTime ? (E(), I("label", Re, y(J(oe)(a == null ? void 0 : a.createTime, "MM-DD HH:mm")), 1)) : C("", !0),
538
+ a.endTime ? (E(), I("label", qe, y(u("processFlow.approvalTime")), 1)) : C("", !0),
539
+ a.endTime ? (E(), I("label", He, y(J(oe)(a == null ? void 0 : a.endTime, "MM-DD HH:mm")), 1)) : C("", !0),
540
+ a.durationInMillis ? (E(), I("label", Oe, y(u("processFlow.duration")), 1)) : C("", !0),
541
+ a.durationInMillis ? (E(), I("label", ze, y(J(ce)(a == null ? void 0 : a.durationInMillis)), 1)) : C("", !0)
543
542
  ]),
544
- i.reason ? (A(), I("div", Ge, y(u("processFlow.approvalSuggestion")) + y(i.reason), 1)) : C("", !0)
543
+ a.reason ? (E(), I("div", je, y(u("processFlow.approvalSuggestion")) + y(a.reason), 1)) : C("", !0)
545
544
  ];
546
545
  }),
547
546
  _: 2
@@ -557,24 +556,24 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
557
556
  };
558
557
  }
559
558
  });
560
- const we = (r, u) => {
559
+ const ye = (r, u) => {
561
560
  const c = r.__vccOpts || r;
562
561
  for (const [w, g] of u)
563
562
  c[w] = g;
564
563
  return c;
565
- }, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-d14f5693"]]), Ye = /* @__PURE__ */ fe({
564
+ }, We = /* @__PURE__ */ ye(Ge, [["__scopeId", "data-v-c0e808f8"]]), Ve = /* @__PURE__ */ fe({
566
565
  __name: "CmcProcessFlow",
567
566
  props: {
568
567
  processInstanceId: {}
569
568
  },
570
569
  setup(r) {
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 () => {
574
- var S, i;
570
+ const u = r, c = X(!1), w = X({}), g = X({}), A = X(""), v = X([]), M = X(""), f = (b) => {
571
+ M.value = b, D(), L();
572
+ }, D = async () => {
573
+ var b, B;
575
574
  try {
576
575
  c.value = !0;
577
- const b = {
576
+ const a = {
578
577
  status: 1,
579
578
  activityNodes: [
580
579
  {
@@ -1094,12 +1093,12 @@ const we = (r, u) => {
1094
1093
  tasks: null
1095
1094
  }
1096
1095
  };
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;
1096
+ w.value = a == null ? void 0 : a.processInstance, A.value = (B = (b = a == null ? void 0 : a.processInstance) == null ? void 0 : b.formVariables) == null ? void 0 : B.applicationPrefix, g.value = a == null ? void 0 : a.todoTask;
1098
1097
  } finally {
1099
1098
  c.value = !1;
1100
1099
  }
1101
1100
  }, L = async () => {
1102
- T.value = [
1101
+ v.value = [
1103
1102
  {
1104
1103
  id: "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
1105
1104
  name: "发起人",
@@ -1222,49 +1221,34 @@ const we = (r, u) => {
1222
1221
  }
1223
1222
  ];
1224
1223
  };
1225
- Ne(
1224
+ return Ne(
1226
1225
  () => u.processInstanceId,
1227
- (S) => {
1228
- S && S !== M.value && f(S);
1226
+ (b) => {
1227
+ b && b !== M.value && f(b);
1229
1228
  },
1230
1229
  { immediate: !0, deep: !0 }
1231
- );
1232
- const _ = () => {
1233
- ve.success("aaa!");
1234
- };
1235
- return (S, i) => {
1236
- const b = V("el-button");
1237
- return A(), I(ue, null, [
1238
- Q(b, { onClick: _ }, {
1239
- default: Y(() => [...i[0] || (i[0] = [
1240
- ee("测试按钮10", -1)
1241
- ])]),
1242
- _: 1
1243
- }),
1244
- Q(Ve, {
1245
- "process-instance": w.value,
1246
- tasks: T.value
1247
- }, null, 8, ["process-instance", "tasks"])
1248
- ], 64);
1249
- };
1230
+ ), (b, B) => (E(), de(We, {
1231
+ "process-instance": w.value,
1232
+ tasks: v.value
1233
+ }, null, 8, ["process-instance", "tasks"]));
1250
1234
  }
1251
1235
  });
1252
- const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-2f2d542f"]]);
1236
+ const Ye = /* @__PURE__ */ ye(Ve, [["__scopeId", "data-v-a4649f52"]]);
1253
1237
  let le = null;
1254
- const Xe = {
1238
+ const Ke = {
1255
1239
  install(r, u) {
1256
1240
  if (console.log("插件install执行,options:", u), !(u != null && u.request))
1257
1241
  throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
1258
- le = u.request, r.component("CmcProcessFlow", Qe);
1242
+ le = u.request, r.component("CmcProcessFlow", Ye);
1259
1243
  }
1260
1244
  };
1261
- function Ze() {
1245
+ function Xe() {
1262
1246
  if (console.log("getRequest", le), !le)
1263
1247
  throw new Error("没有_request对象");
1264
1248
  return le;
1265
1249
  }
1266
1250
  export {
1267
- Qe as CmcProcessFlow,
1268
- Xe as default,
1269
- Ze as getRequest
1251
+ Ye as CmcProcessFlow,
1252
+ Ke as default,
1253
+ Xe as getRequest
1270
1254
  };
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,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-d14f5693"]]),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"?>
1
+ (function(U,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):(U=typeof globalThis<"u"?globalThis:U||self,e(U.NbbComponentUi={},U.Vue))})(this,function(U,e){"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,$="millisecond",S="second",M="minute",p="hour",D="day",C="week",g="month",B="quarter",i="year",P="date",o="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|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,A={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])+"]"}},x=function(l,a,t){var s=String(l);return!s||s.length>=a?l:""+Array(a+1-s.length).join(t)+l},V={s:x,z:function(l){var a=-l.utcOffset(),t=Math.abs(a),s=Math.floor(t/60),n=t%60;return(a<=0?"+":"-")+x(s,2,"0")+":"+x(n,2,"0")},m:function l(a,t){if(a.date()<t.date())return-l(t,a);var s=12*(t.year()-a.year())+(t.month()-a.month()),n=a.clone().add(s,g),r=t-n<0,d=a.clone().add(s+(r?-1:1),g);return+(-(s+(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:g,y:i,w:C,d:D,D:P,h:p,m:M,s:S,ms:$,Q:B}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",I={};I[L]=A;var z="$isDayjsObject",G=function(l){return l instanceof K||!(!l||!l[z])},R=function l(a,t,s){var n;if(!a)return L;if(typeof a=="string"){var r=a.toLowerCase();I[r]&&(n=r),t&&(I[r]=t,n=r);var d=a.split("-");if(!n&&d.length>1)return l(d[0])}else{var b=a.name;I[b]=a,n=b}return!s&&n&&(L=n),n||!s&&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=V;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(s){var n=s.date,r=s.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(_);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,s){var n=N(t);return this.startOf(s)<=n&&n<=this.endOf(s)},a.isAfter=function(t,s){return N(t)<this.startOf(s)},a.isBefore=function(t,s){return this.endOf(s)<N(t)},a.$g=function(t,s,n){return u.u(t)?this[s]:this.set(n,t)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(t,s){var n=this,r=!!u.u(s)||s,d=u.p(t),b=function(O,k){var q=u.w(n.$u?Date.UTC(n.$y,k,O):new Date(n.$y,k,O),n);return r?q:q.endOf(D)},h=function(O,k){return u.w(n.toDate()[O].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(k)),n)},T=this.$W,E=this.$M,v=this.$D,j="set"+(this.$u?"UTC":"");switch(d){case i:return r?b(1,0):b(31,11);case g:return r?b(1,E):b(0,E+1);case C:var H=this.$locale().weekStart||0,W=(T<H?T+7:T)-H;return b(r?v-W:v+(6-W),E);case D:case P: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,s){var n,r=u.p(t),d="set"+(this.$u?"UTC":""),b=(n={},n[D]=d+"Date",n[P]=d+"Date",n[g]=d+"Month",n[i]=d+"FullYear",n[p]=d+"Hours",n[M]=d+"Minutes",n[S]=d+"Seconds",n[$]=d+"Milliseconds",n)[r],h=r===D?this.$D+(s-this.$W):s;if(r===g||r===i){var T=this.clone().set(P,1);T.$d[b](h),T.init(),this.$d=T.set(P,Math.min(this.$D,T.daysInMonth())).$d}else b&&this.$d[b](h);return this.init(),this},a.set=function(t,s){return this.clone().$set(t,s)},a.get=function(t){return this[u.p(t)]()},a.add=function(t,s){var n,r=this;t=Number(t);var d=u.p(s),b=function(E){var v=N(r);return u.w(v.date(v.date()+Math.round(E*t)),r)};if(d===g)return this.set(g,this.$M+t);if(d===i)return this.set(i,this.$y+t);if(d===D)return b(1);if(d===C)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,s){return this.add(-1*t,s)},a.format=function(t){var s=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,E=n.weekdays,v=n.months,j=n.meridiem,H=function(k,q,Y,X){return k&&(k[q]||k(s,r))||Y[q].slice(0,X)},W=function(k){return u.s(b%12||12,k,"0")},O=j||function(k,q,Y){var X=k<12?"AM":"PM";return Y?X.toLowerCase():X};return r.replace(F,function(k,q){return q||function(Y){switch(Y){case"YY":return String(s.$y).slice(-2);case"YYYY":return u.s(s.$y,4,"0");case"M":return T+1;case"MM":return u.s(T+1,2,"0");case"MMM":return H(n.monthsShort,T,v,3);case"MMMM":return H(v,T);case"D":return s.$D;case"DD":return u.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return H(n.weekdaysMin,s.$W,E,2);case"ddd":return H(n.weekdaysShort,s.$W,E,3);case"dddd":return E[s.$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(s.$s);case"ss":return u.s(s.$s,2,"0");case"SSS":return u.s(s.$ms,3,"0");case"Z":return d}return null}(k)||d.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(t,s,n){var r,d=this,b=u.p(s),h=N(t),T=(h.utcOffset()-this.utcOffset())*w,E=this-h,v=function(){return u.m(d,h)};switch(b){case i:r=v()/12;break;case g:r=v();break;case B:r=v()/3;break;case C:r=(E-T)/6048e5;break;case D:r=(E-T)/864e5;break;case p:r=E/y;break;case M:r=E/w;break;case S:r=E/f;break;default:r=E}return n?r:u.a(r)},a.daysInMonth=function(){return this.endOf(g).$D},a.$locale=function(){return I[this.$L]},a.locale=function(t,s){if(!t)return this.$L;var n=this.clone(),r=R(t,s,!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",$],["$s",S],["$m",M],["$H",p],["$W",D],["$M",g],["$y",i],["$D",P]].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=I[L],N.Ls=I,N.p={},N})})(te);var re=te.exports;const ne=ee(re);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($,S,M){var p=S.prototype;M.utc=function(o){var _={date:o,utc:!0,args:arguments};return new S(_)},p.utc=function(o){var _=M(this.toDate(),{locale:this.$L,utc:!0});return o?_.add(this.utcOffset(),f):_},p.local=function(){return M(this.toDate(),{locale:this.$L,utc:!1})};var D=p.parse;p.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),D.call(this,o)};var C=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 C.call(this)};var g=p.utcOffset;p.utcOffset=function(o,_){var F=this.$utils().u;if(F(o))return this.$u?0:F(this.$offset)?g.call(this):this.$offset;if(typeof o=="string"&&(o=function(L){L===void 0&&(L="");var I=L.match(w);if(!I)return null;var z=(""+I[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 A=Math.abs(o)<=16?60*o:o;if(A===0)return this.utc(_);var x=this.clone();if(_)return x.$offset=A,x.$u=!1,x;var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(A+V,f)).$offset=A,x.$x.$localOffset=V,x};var B=p.format;p.format=function(o){var _=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return B.call(this,_)},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 i=p.toDate;p.toDate=function(o){return o==="s"&&this.$offset?M(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():i.call(this)};var P=p.diff;p.diff=function(o,_,F){if(o&&this.$u===o.$u)return P.call(this,o,_,F);var A=this.local(),x=M(o).local();return P.call(A,x,_,F)}}})})(ae);var de=ae.exports;const ce=ee(de);ne.extend(ce);function fe(){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=fe()),ne.utc(c).utcOffset(f).format(m)):""}const pe={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function ie(c,m="cn"){const f=pe[m],w=Math.floor(c/(24*60*60*1e3)),y=Math.floor(c/(60*60*1e3)-w*24),$=Math.floor(c/(60*1e3)-w*24*60-y*60),S=Math.floor(c/1e3-w*24*60*60-y*60*60-$*60);return w>0?w+f.days+y+f.hours+$+f.minutes:y>0?y+f.hours+$+f.minutes:$>0?$+f.minutes:S>0?S+f.seconds:0+f.seconds}const me={class:"scroll-area"},ue={class:"flow-header flex justify-between"},be={class:"text-18px font-bold"},ge={class:"text-14px font-bold",style:{color:"#005aae"}},ye={class:"flex items-center"},we={class:"flow-start"},he={key:0},Ne={class:"mt-30px block"},Te=["src"],Se={style:{"font-weight":"700"}},Me={key:0,style:{"margin-right":"30px","font-weight":"normal"}},_e={key:1,style:{"margin-right":"30px","font-weight":"normal"}},Ee={key:0,style:{"font-weight":"normal"}},xe={key:1,style:{"font-weight":"normal",color:"#8a909c"}},De={key:2,style:{"font-weight":"normal"}},ke={key:3,style:{"font-weight":"normal",color:"#8a909c"}},$e={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Pe={key:5,style:{"font-weight":"normal",color:"#8a909c"}},ve={key:2},Be=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,$)=>{var B;const S=e.resolveComponent("Icon"),M=e.resolveComponent("dict-tag"),p=e.resolveComponent("el-tag"),D=e.resolveComponent("el-card"),C=e.resolveComponent("el-timeline-item"),g=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock("div",me,[e.createElementVNode("div",ue,[e.createElementVNode("div",be,[e.createElementVNode("span",null,e.toDisplayString(m("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(c.processInstance.id),1)]),e.createElementVNode("div",ge,[e.createElementVNode("span",null,e.toDisplayString(c.processInstance.name),1)])]),e.createElementVNode("div",ye,[e.createElementVNode("div",we,[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",he,e.toDisplayString(m("processFlow.duration"))+e.toDisplayString(e.unref(ie)((B=c.processInstance)==null?void 0:B.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(S,{size:100,icon:f[c.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Ne,[e.createVNode(g,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.tasks,(i,P)=>(e.openBlock(),e.createBlock(C,{key:P,type:w(i)||"info"},{dot:e.withCtx(()=>{var o;return[e.createElementVNode("img",{src:((o=i==null?void 0:i.assigneeUser)==null?void 0:o.avatar)||"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",class:"avatar-wrap"},null,8,Te)]}),default:e.withCtx(()=>[e.createElementVNode("p",Se,[e.createTextVNode(e.toDisplayString(i.name)+" ",1),i.status?(e.openBlock(),e.createBlock(M,{key:0,type:"bpm_task_status",value:i.status||""},null,8,["value"])):e.createCommentVNode("",!0)]),e.createVNode(D,{"body-style":{padding:"10px"}},{default:e.withCtx(()=>{var o,_,F,A;return[P===0?(e.openBlock(),e.createElementBlock("label",Me,[e.createTextVNode(e.toDisplayString(((o=i.assigneeUser)==null?void 0:o.nickname)||((_=i.ownerUser)==null?void 0:_.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var x,V;return[e.createTextVNode(e.toDisplayString((V=(x=c.processInstance)==null?void 0:x.startUser)==null?void 0:V.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),i.assigneeUser?(e.openBlock(),e.createElementBlock("label",_e,[e.createTextVNode(e.toDisplayString(m("processFlow.approver"))+e.toDisplayString(((F=i.assigneeUser)==null?void 0:F.nickname)||((A=i.ownerUser)==null?void 0:A.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.assigneeUser.deptName),1)]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[i.createTime&&!i.endTime?(e.openBlock(),e.createElementBlock("label",Ee,e.toDisplayString(m("processFlow.createTime")),1)):e.createCommentVNode("",!0),i.createTime&&!i.endTime?(e.openBlock(),e.createElementBlock("label",xe,e.toDisplayString(e.unref(Q)(i==null?void 0:i.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),i.endTime?(e.openBlock(),e.createElementBlock("label",De,e.toDisplayString(m("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),i.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(e.unref(Q)(i==null?void 0:i.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),i.durationInMillis?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(m("processFlow.duration")),1)):e.createCommentVNode("",!0),i.durationInMillis?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(e.unref(ie)(i==null?void 0:i.durationInMillis)),1)):e.createCommentVNode("",!0)]),i.reason?(e.openBlock(),e.createElementBlock("div",ve,e.toDisplayString(m("processFlow.approvalSuggestion"))+e.toDisplayString(i.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),Ue="",se=(c,m)=>{const f=c.__vccOpts||c;for(const[w,y]of m)f[w]=y;return f},Ae=se(Be,[["__scopeId","data-v-c0e808f8"]]),Ce=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(c){const m=c,f=e.ref(!1),w=e.ref({}),y=e.ref({}),$=e.ref(""),S=e.ref([]),M=e.ref(""),p=g=>{M.value=g,D(),C()},D=async()=>{var g,B;try{f.value=!0;const i={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,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"}})});
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=i==null?void 0:i.processInstance,$.value=(B=(g=i==null?void 0:i.processInstance)==null?void 0:g.formVariables)==null?void 0:B.applicationPrefix,y.value=i==null?void 0:i.todoTask}finally{f.value=!1}},C=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}]};return e.watch(()=>m.processInstanceId,g=>{g&&g!==M.value&&p(g)},{immediate:!0,deep:!0}),(g,B)=>(e.openBlock(),e.createBlock(Ae,{"process-instance":w.value,tasks:S.value},null,8,["process-instance","tasks"]))}}),Le="",oe=se(Ce,[["__scopeId","data-v-a4649f52"]]);let J=null;const Fe={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 Ie(){if(console.log("getRequest",J),!J)throw new Error("没有_request对象");return J}U.CmcProcessFlow=oe,U.default=Fe,U.getRequest=Ie,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.test[data-v-d14f5693]{width:100px;height:100px;background:red}.avatar-wrap[data-v-d14f5693]{width:40px;height:40px}.flow-start{p[data-v-d14f5693] {margin: 0px; padding-top: 10px; font-size: 14px;}}.flow-start[data-v-d14f5693]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgba(245,247,253,1)}[data-v-d14f5693] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-d14f5693]{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-c0e808f8]{width:100px;height:100px;background:red}.avatar-wrap[data-v-c0e808f8]{width:40px;height:40px}.flow-start{p[data-v-c0e808f8] {margin: 0px; padding-top: 10px; font-size: 14px;}}.flow-start[data-v-c0e808f8]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgba(245,247,253,1)}[data-v-c0e808f8] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-c0e808f8]{flex:1;min-height:0;overflow-y:auto}.process-container[data-v-a4649f52]{height:100%;box-sizing:border-box}.process-container[data-v-a4649f52]>.el-card__body{height:100%;padding-bottom:0}.process-container[data-v-a4649f52]>.el-card__body>div{height:100%;display:flex;flex-direction:column}.approval-actions[data-v-a4649f52]{margin:20px 0}.approval-actions .action-buttons[data-v-a4649f52]{display:flex;flex-direction:column;gap:12px}.approval-actions .action-buttons .basic-actions[data-v-a4649f52]{display:flex;gap:12px}.approval-actions .action-buttons .extended-actions[data-v-a4649f52]{display:flex;gap:12px;flex-wrap:wrap}.approval-dialogs[data-v-a4649f52]{display:contents}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbb-component-ui",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,7 +13,6 @@
13
13
  "devDependencies": {
14
14
  "@vitejs/plugin-vue": "^4.0.0",
15
15
  "element-plus": "^2.0.0",
16
- "sass": "^1.99.0",
17
16
  "typescript": "^5.0.0",
18
17
  "vite": "^4.0.0",
19
18
  "vite-plugin-dts": "^4.5.4",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="scroll-area">
3
- <div class="test">test</div>
3
+ <!-- <div class="test">test</div>-->
4
4
  <div class="flow-header flex justify-between">
5
5
  <div class="text-18px font-bold">
6
6
  <span>{{ t('processFlow.flow') }}</span>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <el-button @click="open">测试按钮10</el-button>
2
+ <!-- <el-button @click="open">测试按钮10</el-button>-->
3
3
  <!-- 审批记录列表 -->
4
4
  <ProcessInstanceTaskList :process-instance="processInstance" :tasks="tasks"/>
5
5
  </template>
package/tsconfig.json CHANGED
@@ -15,9 +15,6 @@
15
15
  "skipLibCheck": true,
16
16
  "declaration": true,
17
17
  "declarationDir": "dist",
18
- "paths": {
19
- "@/*": ["src/*"]
20
- }
21
18
  },
22
19
  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "index.ts"]
23
20
  }
package/vite.config.js CHANGED
@@ -3,10 +3,12 @@ import vue from '@vitejs/plugin-vue'
3
3
  import { resolve } from 'path'
4
4
  // 引入类型生成插件
5
5
  import dts from 'vite-plugin-dts'
6
+ import UnoCSS from 'unocss/vite'
6
7
 
7
8
  export default defineConfig({
8
9
  plugins: [
9
10
  vue(),
11
+ UnoCSS(),
10
12
  dts({
11
13
  // 类型文件输出目录
12
14
  outDir: 'dist',