nbb-component-ui 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +126 -124
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/index.ts +2 -2
- package/package.json +1 -1
- package/src/ProcessFlow/src/CmcFlowList.vue +1 -0
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ue, resolveComponent as J, openBlock as D, createElementBlock as B, createElementVNode as A, toDisplayString as g, unref as E, createCommentVNode as L, createVNode as
|
|
1
|
+
import { defineComponent as ue, resolveComponent as J, openBlock as D, createElementBlock as B, createElementVNode as A, toDisplayString as g, unref as E, createCommentVNode as L, createVNode as ne, withCtx as K, Fragment as he, renderList as Ne, createBlock as re, createTextVNode as ae, ref as X, watch as _e } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function me(d) {
|
|
@@ -10,19 +10,19 @@ var be = { exports: {} };
|
|
|
10
10
|
d.exports = y();
|
|
11
11
|
})(pe, function() {
|
|
12
12
|
var f = 1e3, y = 6e4, w = 36e5, k = "millisecond", T = "second", v = "minute", u = "hour", $ = "day", R = "week", b = "month", C = "quarter", a = "year", F = "date", s = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, q = /\[([^\]]+)]|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
|
-
var
|
|
14
|
-
return "[" + o + (
|
|
15
|
-
} }, x = function(o,
|
|
13
|
+
var n = ["th", "st", "nd", "rd"], e = o % 100;
|
|
14
|
+
return "[" + o + (n[(e - 20) % 10] || n[e] || n[0]) + "]";
|
|
15
|
+
} }, x = function(o, n, e) {
|
|
16
16
|
var i = String(o);
|
|
17
|
-
return !i || i.length >=
|
|
17
|
+
return !i || i.length >= n ? o : "" + Array(n + 1 - i.length).join(e) + o;
|
|
18
18
|
}, G = { s: x, z: function(o) {
|
|
19
|
-
var
|
|
20
|
-
return (
|
|
21
|
-
}, m: function o(
|
|
22
|
-
if (
|
|
23
|
-
return -o(e,
|
|
24
|
-
var i = 12 * (e.year() -
|
|
25
|
-
return +(-(i + (e -
|
|
19
|
+
var n = -o.utcOffset(), e = Math.abs(n), i = Math.floor(e / 60), t = e % 60;
|
|
20
|
+
return (n <= 0 ? "+" : "-") + x(i, 2, "0") + ":" + x(t, 2, "0");
|
|
21
|
+
}, m: function o(n, e) {
|
|
22
|
+
if (n.date() < e.date())
|
|
23
|
+
return -o(e, n);
|
|
24
|
+
var i = 12 * (e.year() - n.year()) + (e.month() - n.month()), t = n.clone().add(i, b), l = e - t < 0, r = n.clone().add(i + (l ? -1 : 1), b);
|
|
25
|
+
return +(-(i + (e - t) / (l ? t - r : r - t)) || 0);
|
|
26
26
|
}, a: function(o) {
|
|
27
27
|
return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
|
|
28
28
|
}, p: function(o) {
|
|
@@ -32,80 +32,80 @@ var be = { exports: {} };
|
|
|
32
32
|
} }, z = "en", O = {};
|
|
33
33
|
O[z] = U;
|
|
34
34
|
var Y = "$isDayjsObject", Z = function(o) {
|
|
35
|
-
return o instanceof
|
|
36
|
-
}, H = function o(
|
|
37
|
-
var
|
|
38
|
-
if (!
|
|
35
|
+
return o instanceof se || !(!o || !o[Y]);
|
|
36
|
+
}, H = function o(n, e, i) {
|
|
37
|
+
var t;
|
|
38
|
+
if (!n)
|
|
39
39
|
return z;
|
|
40
|
-
if (typeof
|
|
41
|
-
var l =
|
|
42
|
-
O[l] && (
|
|
43
|
-
var r =
|
|
44
|
-
if (!
|
|
40
|
+
if (typeof n == "string") {
|
|
41
|
+
var l = n.toLowerCase();
|
|
42
|
+
O[l] && (t = l), e && (O[l] = e, t = l);
|
|
43
|
+
var r = n.split("-");
|
|
44
|
+
if (!t && r.length > 1)
|
|
45
45
|
return o(r[0]);
|
|
46
46
|
} else {
|
|
47
|
-
var m =
|
|
48
|
-
O[m] =
|
|
47
|
+
var m = n.name;
|
|
48
|
+
O[m] = n, t = m;
|
|
49
49
|
}
|
|
50
|
-
return !i &&
|
|
51
|
-
}, N = function(o,
|
|
50
|
+
return !i && t && (z = t), t || !i && z;
|
|
51
|
+
}, N = function(o, n) {
|
|
52
52
|
if (Z(o))
|
|
53
53
|
return o.clone();
|
|
54
|
-
var e = typeof
|
|
55
|
-
return e.date = o, e.args = arguments, new
|
|
54
|
+
var e = typeof n == "object" ? n : {};
|
|
55
|
+
return e.date = o, e.args = arguments, new se(e);
|
|
56
56
|
}, p = G;
|
|
57
|
-
p.l = H, p.i = Z, p.w = function(o,
|
|
58
|
-
return N(o, { locale:
|
|
57
|
+
p.l = H, p.i = Z, p.w = function(o, n) {
|
|
58
|
+
return N(o, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
59
59
|
};
|
|
60
|
-
var
|
|
60
|
+
var se = function() {
|
|
61
61
|
function o(e) {
|
|
62
62
|
this.$L = H(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
return
|
|
64
|
+
var n = o.prototype;
|
|
65
|
+
return n.parse = function(e) {
|
|
66
66
|
this.$d = function(i) {
|
|
67
|
-
var
|
|
68
|
-
if (
|
|
67
|
+
var t = i.date, l = i.utc;
|
|
68
|
+
if (t === null)
|
|
69
69
|
return /* @__PURE__ */ new Date(NaN);
|
|
70
|
-
if (p.u(
|
|
70
|
+
if (p.u(t))
|
|
71
71
|
return /* @__PURE__ */ new Date();
|
|
72
|
-
if (
|
|
73
|
-
return new Date(
|
|
74
|
-
if (typeof
|
|
75
|
-
var r =
|
|
72
|
+
if (t instanceof Date)
|
|
73
|
+
return new Date(t);
|
|
74
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
75
|
+
var r = t.match(M);
|
|
76
76
|
if (r) {
|
|
77
77
|
var m = r[2] - 1 || 0, h = (r[7] || "0").substring(0, 3);
|
|
78
78
|
return l ? new Date(Date.UTC(r[1], m, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, h)) : new Date(r[1], m, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, h);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
return new Date(
|
|
81
|
+
return new Date(t);
|
|
82
82
|
}(e), this.init();
|
|
83
|
-
},
|
|
83
|
+
}, n.init = function() {
|
|
84
84
|
var e = this.$d;
|
|
85
85
|
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
|
86
|
-
},
|
|
86
|
+
}, n.$utils = function() {
|
|
87
87
|
return p;
|
|
88
|
-
},
|
|
88
|
+
}, n.isValid = function() {
|
|
89
89
|
return this.$d.toString() !== s;
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
return this.startOf(i) <=
|
|
93
|
-
},
|
|
90
|
+
}, n.isSame = function(e, i) {
|
|
91
|
+
var t = N(e);
|
|
92
|
+
return this.startOf(i) <= t && t <= this.endOf(i);
|
|
93
|
+
}, n.isAfter = function(e, i) {
|
|
94
94
|
return N(e) < this.startOf(i);
|
|
95
|
-
},
|
|
95
|
+
}, n.isBefore = function(e, i) {
|
|
96
96
|
return this.endOf(i) < N(e);
|
|
97
|
-
},
|
|
98
|
-
return p.u(e) ? this[i] : this.set(
|
|
99
|
-
},
|
|
97
|
+
}, n.$g = function(e, i, t) {
|
|
98
|
+
return p.u(e) ? this[i] : this.set(t, e);
|
|
99
|
+
}, n.unix = function() {
|
|
100
100
|
return Math.floor(this.valueOf() / 1e3);
|
|
101
|
-
},
|
|
101
|
+
}, n.valueOf = function() {
|
|
102
102
|
return this.$d.getTime();
|
|
103
|
-
},
|
|
104
|
-
var
|
|
105
|
-
var j = p.w(
|
|
103
|
+
}, n.startOf = function(e, i) {
|
|
104
|
+
var t = this, l = !!p.u(i) || i, r = p.p(e), m = function(V, P) {
|
|
105
|
+
var j = p.w(t.$u ? Date.UTC(t.$y, P, V) : new Date(t.$y, P, V), t);
|
|
106
106
|
return l ? j : j.endOf($);
|
|
107
107
|
}, h = function(V, P) {
|
|
108
|
-
return p.w(
|
|
108
|
+
return p.w(t.toDate()[V].apply(t.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), t);
|
|
109
109
|
}, _ = this.$W, S = this.$M, I = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
110
110
|
switch (r) {
|
|
111
111
|
case a:
|
|
@@ -127,22 +127,22 @@ var be = { exports: {} };
|
|
|
127
127
|
default:
|
|
128
128
|
return this.clone();
|
|
129
129
|
}
|
|
130
|
-
},
|
|
130
|
+
}, n.endOf = function(e) {
|
|
131
131
|
return this.startOf(e, !1);
|
|
132
|
-
},
|
|
133
|
-
var
|
|
132
|
+
}, n.$set = function(e, i) {
|
|
133
|
+
var t, l = p.p(e), r = "set" + (this.$u ? "UTC" : ""), m = (t = {}, t[$] = r + "Date", t[F] = r + "Date", t[b] = r + "Month", t[a] = r + "FullYear", t[u] = r + "Hours", t[v] = r + "Minutes", t[T] = r + "Seconds", t[k] = r + "Milliseconds", t)[l], h = l === $ ? this.$D + (i - this.$W) : i;
|
|
134
134
|
if (l === b || l === a) {
|
|
135
135
|
var _ = this.clone().set(F, 1);
|
|
136
136
|
_.$d[m](h), _.init(), this.$d = _.set(F, Math.min(this.$D, _.daysInMonth())).$d;
|
|
137
137
|
} else
|
|
138
138
|
m && this.$d[m](h);
|
|
139
139
|
return this.init(), this;
|
|
140
|
-
},
|
|
140
|
+
}, n.set = function(e, i) {
|
|
141
141
|
return this.clone().$set(e, i);
|
|
142
|
-
},
|
|
142
|
+
}, n.get = function(e) {
|
|
143
143
|
return this[p.p(e)]();
|
|
144
|
-
},
|
|
145
|
-
var
|
|
144
|
+
}, n.add = function(e, i) {
|
|
145
|
+
var t, l = this;
|
|
146
146
|
e = Number(e);
|
|
147
147
|
var r = p.p(i), m = function(S) {
|
|
148
148
|
var I = N(l);
|
|
@@ -156,25 +156,25 @@ var be = { exports: {} };
|
|
|
156
156
|
return m(1);
|
|
157
157
|
if (r === R)
|
|
158
158
|
return m(7);
|
|
159
|
-
var h = (
|
|
159
|
+
var h = (t = {}, t[v] = y, t[u] = w, t[T] = f, t)[r] || 1, _ = this.$d.getTime() + e * h;
|
|
160
160
|
return p.w(_, this);
|
|
161
|
-
},
|
|
161
|
+
}, n.subtract = function(e, i) {
|
|
162
162
|
return this.add(-1 * e, i);
|
|
163
|
-
},
|
|
164
|
-
var i = this,
|
|
163
|
+
}, n.format = function(e) {
|
|
164
|
+
var i = this, t = this.$locale();
|
|
165
165
|
if (!this.isValid())
|
|
166
|
-
return
|
|
167
|
-
var l = e || "YYYY-MM-DDTHH:mm:ssZ", r = p.z(this), m = this.$H, h = this.$m, _ = this.$M, S =
|
|
168
|
-
return P && (P[j] || P(i, l)) ||
|
|
166
|
+
return t.invalidDate || s;
|
|
167
|
+
var l = e || "YYYY-MM-DDTHH:mm:ssZ", r = p.z(this), m = this.$H, h = this.$m, _ = this.$M, S = t.weekdays, I = t.months, Q = t.meridiem, W = function(P, j, te, oe) {
|
|
168
|
+
return P && (P[j] || P(i, l)) || te[j].slice(0, oe);
|
|
169
169
|
}, ee = function(P) {
|
|
170
170
|
return p.s(m % 12 || 12, P, "0");
|
|
171
|
-
}, V = Q || function(P, j,
|
|
172
|
-
var
|
|
173
|
-
return
|
|
171
|
+
}, V = Q || function(P, j, te) {
|
|
172
|
+
var oe = P < 12 ? "AM" : "PM";
|
|
173
|
+
return te ? oe.toLowerCase() : oe;
|
|
174
174
|
};
|
|
175
175
|
return l.replace(q, function(P, j) {
|
|
176
|
-
return j || function(
|
|
177
|
-
switch (
|
|
176
|
+
return j || function(te) {
|
|
177
|
+
switch (te) {
|
|
178
178
|
case "YY":
|
|
179
179
|
return String(i.$y).slice(-2);
|
|
180
180
|
case "YYYY":
|
|
@@ -184,7 +184,7 @@ var be = { exports: {} };
|
|
|
184
184
|
case "MM":
|
|
185
185
|
return p.s(_ + 1, 2, "0");
|
|
186
186
|
case "MMM":
|
|
187
|
-
return W(
|
|
187
|
+
return W(t.monthsShort, _, I, 3);
|
|
188
188
|
case "MMMM":
|
|
189
189
|
return W(I, _);
|
|
190
190
|
case "D":
|
|
@@ -194,9 +194,9 @@ var be = { exports: {} };
|
|
|
194
194
|
case "d":
|
|
195
195
|
return String(i.$W);
|
|
196
196
|
case "dd":
|
|
197
|
-
return W(
|
|
197
|
+
return W(t.weekdaysMin, i.$W, S, 2);
|
|
198
198
|
case "ddd":
|
|
199
|
-
return W(
|
|
199
|
+
return W(t.weekdaysShort, i.$W, S, 3);
|
|
200
200
|
case "dddd":
|
|
201
201
|
return S[i.$W];
|
|
202
202
|
case "H":
|
|
@@ -227,9 +227,9 @@ var be = { exports: {} };
|
|
|
227
227
|
return null;
|
|
228
228
|
}(P) || r.replace(":", "");
|
|
229
229
|
});
|
|
230
|
-
},
|
|
230
|
+
}, n.utcOffset = function() {
|
|
231
231
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
232
|
-
},
|
|
232
|
+
}, n.diff = function(e, i, t) {
|
|
233
233
|
var l, r = this, m = p.p(i), h = N(e), _ = (h.utcOffset() - this.utcOffset()) * y, S = this - h, I = function() {
|
|
234
234
|
return p.m(r, h);
|
|
235
235
|
};
|
|
@@ -261,34 +261,34 @@ var be = { exports: {} };
|
|
|
261
261
|
default:
|
|
262
262
|
l = S;
|
|
263
263
|
}
|
|
264
|
-
return
|
|
265
|
-
},
|
|
264
|
+
return t ? l : p.a(l);
|
|
265
|
+
}, n.daysInMonth = function() {
|
|
266
266
|
return this.endOf(b).$D;
|
|
267
|
-
},
|
|
267
|
+
}, n.$locale = function() {
|
|
268
268
|
return O[this.$L];
|
|
269
|
-
},
|
|
269
|
+
}, n.locale = function(e, i) {
|
|
270
270
|
if (!e)
|
|
271
271
|
return this.$L;
|
|
272
|
-
var
|
|
273
|
-
return l && (
|
|
274
|
-
},
|
|
272
|
+
var t = this.clone(), l = H(e, i, !0);
|
|
273
|
+
return l && (t.$L = l), t;
|
|
274
|
+
}, n.clone = function() {
|
|
275
275
|
return p.w(this.$d, this);
|
|
276
|
-
},
|
|
276
|
+
}, n.toDate = function() {
|
|
277
277
|
return new Date(this.valueOf());
|
|
278
|
-
},
|
|
278
|
+
}, n.toJSON = function() {
|
|
279
279
|
return this.isValid() ? this.toISOString() : null;
|
|
280
|
-
},
|
|
280
|
+
}, n.toISOString = function() {
|
|
281
281
|
return this.$d.toISOString();
|
|
282
|
-
},
|
|
282
|
+
}, n.toString = function() {
|
|
283
283
|
return this.$d.toUTCString();
|
|
284
284
|
}, o;
|
|
285
|
-
}(), ce =
|
|
285
|
+
}(), ce = se.prototype;
|
|
286
286
|
return N.prototype = ce, [["$ms", k], ["$s", T], ["$m", v], ["$H", u], ["$W", $], ["$M", b], ["$y", a], ["$D", F]].forEach(function(o) {
|
|
287
|
-
ce[o[1]] = function(
|
|
288
|
-
return this.$g(
|
|
287
|
+
ce[o[1]] = function(n) {
|
|
288
|
+
return this.$g(n, o[0], o[1]);
|
|
289
289
|
};
|
|
290
|
-
}), N.extend = function(o,
|
|
291
|
-
return o.$i || (o(
|
|
290
|
+
}), N.extend = function(o, n) {
|
|
291
|
+
return o.$i || (o(n, se, N), o.$i = !0), N;
|
|
292
292
|
}, N.locale = H, N.isDayjs = Z, N.unix = function(o) {
|
|
293
293
|
return N(1e3 * o);
|
|
294
294
|
}, N.en = O[z], N.Ls = O, N.p = {}, N;
|
|
@@ -384,7 +384,7 @@ function Se() {
|
|
|
384
384
|
const c = Math.abs(Math.floor(d / 60)), f = d < 0 ? "+" : "-";
|
|
385
385
|
return d = Math.abs(d % 60), f + c.toString().padStart(2, "0") + d.toString().padStart(2, "0");
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function le(d, c, f) {
|
|
388
388
|
return d ? (c === void 0 && (c = "YYYY-MM-DD HH:mm:ss"), f || (f = Se()), ge.utc(d).utcOffset(f).format(c)) : "";
|
|
389
389
|
}
|
|
390
390
|
const xe = {
|
|
@@ -440,7 +440,9 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
440
440
|
tasks: {}
|
|
441
441
|
},
|
|
442
442
|
setup(d) {
|
|
443
|
-
const c =
|
|
443
|
+
const c = et();
|
|
444
|
+
console.log("ttttttttttttttttttttttt", c);
|
|
445
|
+
const f = {
|
|
444
446
|
1: "svg-icon:approvalPending",
|
|
445
447
|
// 审批中
|
|
446
448
|
2: "svg-icon:approvalPass",
|
|
@@ -465,19 +467,19 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
465
467
|
]),
|
|
466
468
|
A("div", Ae, [
|
|
467
469
|
A("div", ke, [
|
|
468
|
-
A("p", null, g(E(c)("processFlow.startTime")) + g(E(
|
|
469
|
-
A("p", null, g(E(c)("processFlow.endTime")) + g(E(
|
|
470
|
+
A("p", null, g(E(c)("processFlow.startTime")) + g(E(le)(d.processInstance.startTime)), 1),
|
|
471
|
+
A("p", null, g(E(c)("processFlow.endTime")) + g(E(le)(d.processInstance.endTime)), 1),
|
|
470
472
|
d.processInstance.durationInMillis ? (D(), B("p", Fe, g(E(c)("processFlow.duration")) + g(E(fe)((C = d.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : L("", !0)
|
|
471
473
|
]),
|
|
472
|
-
|
|
474
|
+
ne(T, {
|
|
473
475
|
size: 100,
|
|
474
476
|
icon: f[d.processInstance.status] || "svg-icon:approvalPending"
|
|
475
477
|
}, null, 8, ["icon"])
|
|
476
478
|
]),
|
|
477
479
|
A("div", Ie, [
|
|
478
|
-
|
|
480
|
+
ne(b, null, {
|
|
479
481
|
default: K(() => [
|
|
480
|
-
(D(!0), B(he, null, Ne(d.tasks, (a, F) => (D(),
|
|
482
|
+
(D(!0), B(he, null, Ne(d.tasks, (a, F) => (D(), re(R, {
|
|
481
483
|
key: F,
|
|
482
484
|
type: y(a) || "info"
|
|
483
485
|
}, {
|
|
@@ -493,19 +495,19 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
493
495
|
default: K(() => [
|
|
494
496
|
A("p", Ce, [
|
|
495
497
|
ae(g(a.name) + " ", 1),
|
|
496
|
-
a.status ? (D(),
|
|
498
|
+
a.status ? (D(), re(v, {
|
|
497
499
|
key: 0,
|
|
498
500
|
type: "bpm_task_status",
|
|
499
501
|
value: a.status || ""
|
|
500
502
|
}, null, 8, ["value"])) : L("", !0)
|
|
501
503
|
]),
|
|
502
|
-
|
|
504
|
+
ne($, { "body-style": { padding: "10px" } }, {
|
|
503
505
|
default: K(() => {
|
|
504
506
|
var s, M, q, U;
|
|
505
507
|
return [
|
|
506
508
|
F === 0 ? (D(), B("label", Ue, [
|
|
507
509
|
ae(g(((s = a.assigneeUser) == null ? void 0 : s.nickname) || ((M = a.ownerUser) == null ? void 0 : M.nickname)) + " ", 1),
|
|
508
|
-
|
|
510
|
+
ne(u, {
|
|
509
511
|
size: "small",
|
|
510
512
|
type: "info",
|
|
511
513
|
style: { "vertical-align": "1px" }
|
|
@@ -521,7 +523,7 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
521
523
|
])) : L("", !0),
|
|
522
524
|
a.assigneeUser ? (D(), B("label", Le, [
|
|
523
525
|
ae(g(E(c)("processFlow.approver")) + g(((q = a.assigneeUser) == null ? void 0 : q.nickname) || ((U = a.ownerUser) == null ? void 0 : U.nickname)) + " ", 1),
|
|
524
|
-
|
|
526
|
+
ne(u, {
|
|
525
527
|
size: "small",
|
|
526
528
|
type: "info",
|
|
527
529
|
style: { "vertical-align": "1px" }
|
|
@@ -534,9 +536,9 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
|
|
|
534
536
|
])) : L("", !0),
|
|
535
537
|
A("div", null, [
|
|
536
538
|
a.createTime && !a.endTime ? (D(), B("label", Re, g(E(c)("processFlow.createTime")), 1)) : L("", !0),
|
|
537
|
-
a.createTime && !a.endTime ? (D(), B("label", qe, g(E(
|
|
539
|
+
a.createTime && !a.endTime ? (D(), B("label", qe, g(E(le)(a == null ? void 0 : a.createTime, "MM-DD HH:mm")), 1)) : L("", !0),
|
|
538
540
|
a.endTime ? (D(), B("label", Oe, g(E(c)("processFlow.approvalTime")), 1)) : L("", !0),
|
|
539
|
-
a.endTime ? (D(), B("label", ze, g(E(
|
|
541
|
+
a.endTime ? (D(), B("label", ze, g(E(le)(a == null ? void 0 : a.endTime, "MM-DD HH:mm")), 1)) : L("", !0),
|
|
540
542
|
a.durationInMillis ? (D(), B("label", He, g(E(c)("processFlow.duration")), 1)) : L("", !0),
|
|
541
543
|
a.durationInMillis ? (D(), B("label", je, g(E(fe)(a == null ? void 0 : a.durationInMillis)), 1)) : L("", !0)
|
|
542
544
|
]),
|
|
@@ -561,7 +563,7 @@ const we = (d, c) => {
|
|
|
561
563
|
for (const [y, w] of c)
|
|
562
564
|
f[y] = w;
|
|
563
565
|
return f;
|
|
564
|
-
}, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-
|
|
566
|
+
}, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-551817a9"]]), Ye = /* @__PURE__ */ ue({
|
|
565
567
|
__name: "CmcProcessFlow",
|
|
566
568
|
props: {
|
|
567
569
|
processInstanceId: {}
|
|
@@ -1227,7 +1229,7 @@ const we = (d, c) => {
|
|
|
1227
1229
|
b && b !== v.value && u(b);
|
|
1228
1230
|
},
|
|
1229
1231
|
{ immediate: !0, deep: !0 }
|
|
1230
|
-
), (b, C) => (D(),
|
|
1232
|
+
), (b, C) => (D(), re(Ve, {
|
|
1231
1233
|
"process-instance": y.value,
|
|
1232
1234
|
tasks: T.value
|
|
1233
1235
|
}, null, 8, ["process-instance", "tasks"]));
|
|
@@ -1244,27 +1246,27 @@ const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
|
|
|
1244
1246
|
__proto__: null,
|
|
1245
1247
|
bpm: Xe
|
|
1246
1248
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1247
|
-
let
|
|
1248
|
-
const
|
|
1249
|
+
let de = null, ie = null;
|
|
1250
|
+
const at = {
|
|
1249
1251
|
install(d, c) {
|
|
1250
1252
|
if (console.log("插件install执行,options:", c), !(c != null && c.request))
|
|
1251
1253
|
throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
|
|
1252
|
-
|
|
1254
|
+
de = c.request, ie = c.i18n, ie.global.mergeLocaleMessage("zh-CN", Ke), ie.global.mergeLocaleMessage("en", Ze), d.component("CmcProcessFlow", Qe);
|
|
1253
1255
|
}
|
|
1254
1256
|
};
|
|
1255
|
-
function
|
|
1256
|
-
if (!
|
|
1257
|
-
throw new Error("没有
|
|
1258
|
-
return
|
|
1257
|
+
function et() {
|
|
1258
|
+
if (!ie)
|
|
1259
|
+
throw new Error("没有_i18n对象");
|
|
1260
|
+
return ie;
|
|
1259
1261
|
}
|
|
1260
|
-
function
|
|
1261
|
-
if (!
|
|
1262
|
+
function it() {
|
|
1263
|
+
if (!de)
|
|
1262
1264
|
throw new Error("没有_request对象");
|
|
1263
|
-
return
|
|
1265
|
+
return de;
|
|
1264
1266
|
}
|
|
1265
1267
|
export {
|
|
1266
1268
|
Qe as CmcProcessFlow,
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1269
|
+
at as default,
|
|
1270
|
+
et as getI18n,
|
|
1271
|
+
it as getRequest
|
|
1270
1272
|
};
|
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))})(this,function(v,e){"use strict";var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ne={exports:{}};(function(c,f){(function(p,y){c.exports=y()})(ee,function(){var p=1e3,y=6e4,w=36e5,$="millisecond",T="second",_="minute",m="hour",D="day",F="week",g="month",A="quarter",i="year",P="date",o="Invalid Date",M=/^(\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])+"]"}},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:F,d:D,D:P,h:m,m:_,s:T,ms:$,Q:A}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",U={};U[L]=C;var H="$isDayjsObject",G=function(l){return l instanceof X||!(!l||!l[H])},R=function l(a,t,s){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!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 X(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 X=function(){function l(t){this.$L=R(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[H]=!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(M);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(z,k){var q=u.w(n.$u?Date.UTC(n.$y,k,z):new Date(n.$y,k,z),n);return r?q:q.endOf(D)},h=function(z,k){return u.w(n.toDate()[z].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(k)),n)},S=this.$W,E=this.$M,B=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 F:var O=this.$locale().weekStart||0,W=(S<O?S+7:S)-O;return b(r?B-W:B+(6-W),E);case D:case P:return h(j+"Hours",0);case m:return h(j+"Minutes",1);case _:return h(j+"Seconds",2);case T: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[m]=d+"Hours",n[_]=d+"Minutes",n[T]=d+"Seconds",n[$]=d+"Milliseconds",n)[r],h=r===D?this.$D+(s-this.$W):s;if(r===g||r===i){var S=this.clone().set(P,1);S.$d[b](h),S.init(),this.$d=S.set(P,Math.min(this.$D,S.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 B=N(r);return u.w(B.date(B.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===F)return b(7);var h=(n={},n[_]=y,n[m]=w,n[T]=p,n)[d]||1,S=this.$d.getTime()+t*h;return u.w(S,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,S=this.$M,E=n.weekdays,B=n.months,j=n.meridiem,O=function(k,q,Y,Z){return k&&(k[q]||k(s,r))||Y[q].slice(0,Z)},W=function(k){return u.s(b%12||12,k,"0")},z=j||function(k,q,Y){var Z=k<12?"AM":"PM";return Y?Z.toLowerCase():Z};return r.replace(I,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 S+1;case"MM":return u.s(S+1,2,"0");case"MMM":return O(n.monthsShort,S,B,3);case"MMMM":return O(B,S);case"D":return s.$D;case"DD":return u.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return O(n.weekdaysMin,s.$W,E,2);case"ddd":return O(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 z(b,h,!0);case"A":return z(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),S=(h.utcOffset()-this.utcOffset())*y,E=this-h,B=function(){return u.m(d,h)};switch(b){case i:r=B()/12;break;case g:r=B();break;case A:r=B()/3;break;case F:r=(E-S)/6048e5;break;case D:r=(E-S)/864e5;break;case m:r=E/w;break;case _:r=E/y;break;case T:r=E/p;break;default:r=E}return n?r:u.a(r)},a.daysInMonth=function(){return this.endOf(g).$D},a.$locale=function(){return U[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}(),de=X.prototype;return N.prototype=de,[["$ms",$],["$s",T],["$m",_],["$H",m],["$W",D],["$M",g],["$y",i],["$D",P]].forEach(function(l){de[l[1]]=function(a){return this.$g(a,l[0],l[1])}}),N.extend=function(l,a){return l.$i||(l(a,X,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})})(ne);var ce=ne.exports;const ae=te(ce);var ie={exports:{}};(function(c,f){(function(p,y){c.exports=y()})(ee,function(){var p="minute",y=/[+-]\d\d(?::?\d\d)?/g,w=/([+-]|\d\d)/g;return function($,T,_){var m=T.prototype;_.utc=function(o){var M={date:o,utc:!0,args:arguments};return new T(M)},m.utc=function(o){var M=_(this.toDate(),{locale:this.$L,utc:!0});return o?M.add(this.utcOffset(),p):M},m.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var D=m.parse;m.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),D.call(this,o)};var F=m.init;m.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 g=m.utcOffset;m.utcOffset=function(o,M){var I=this.$utils().u;if(I(o))return this.$u?0:I(this.$offset)?g.call(this):this.$offset;if(typeof o=="string"&&(o=function(L){L===void 0&&(L="");var U=L.match(y);if(!U)return null;var H=(""+U[0]).match(w)||["-",0,0],G=H[0],R=60*+H[1]+ +H[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(M);var x=this.clone();if(M)return x.$offset=C,x.$u=!1,x;var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(C+V,p)).$offset=C,x.$x.$localOffset=V,x};var A=m.format;m.format=function(o){var M=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return A.call(this,M)},m.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},m.isUTC=function(){return!!this.$u},m.toISOString=function(){return this.toDate().toISOString()},m.toString=function(){return this.toDate().toUTCString()};var i=m.toDate;m.toDate=function(o){return o==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():i.call(this)};var P=m.diff;m.diff=function(o,M,I){if(o&&this.$u===o.$u)return P.call(this,o,M,I);var C=this.local(),x=_(o).local();return P.call(C,x,M,I)}}})})(ie);var fe=ie.exports;const pe=te(fe);ae.extend(pe);function me(){let c=new Date().getTimezoneOffset();const f=Math.abs(Math.floor(c/60)),p=c<0?"+":"-";return c=Math.abs(c%60),p+f.toString().padStart(2,"0")+c.toString().padStart(2,"0")}function Q(c,f,p){return c?(f===void 0&&(f="YYYY-MM-DD HH:mm:ss"),p||(p=me()),ae.utc(c).utcOffset(p).format(f)):""}const ue={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function se(c,f="cn"){const p=ue[f],y=Math.floor(c/(24*60*60*1e3)),w=Math.floor(c/(60*60*1e3)-y*24),$=Math.floor(c/(60*1e3)-y*24*60-w*60),T=Math.floor(c/1e3-y*24*60*60-w*60*60-$*60);return y>0?y+p.days+w+p.hours+$+p.minutes:w>0?w+p.hours+$+p.minutes:$>0?$+p.minutes:T>0?T+p.seconds:0+p.seconds}const be={class:"scroll-area"},ge={class:"flow-header flex justify-between"},ye={class:"text-18px font-bold"},we={class:"text-14px font-bold",style:{color:"#005aae"}},he={class:"flex items-center"},Ne={class:"flow-start"},Se={key:0},Te={class:"mt-30px block"},_e=["src"],Me={style:{"font-weight":"700"}},Ee={key:0,style:{"margin-right":"30px","font-weight":"normal"}},xe={key:1,style:{"margin-right":"30px","font-weight":"normal"}},De={key:0,style:{"font-weight":"normal"}},ke={key:1,style:{"font-weight":"normal",color:"#8a909c"}},$e={key:2,style:{"font-weight":"normal"}},Pe={key:3,style:{"font-weight":"normal",color:"#8a909c"}},Be={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Ae={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ce={key:2},ve=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(c){const f=re(),p={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},y=w=>[0,1,6,7].includes(w.status)?"primary":w.status===2?"success":w.status===3?"danger":w.status===4?"info":w.status===5?"warning":"";return(w,$)=>{var A;const T=e.resolveComponent("Icon"),_=e.resolveComponent("dict-tag"),m=e.resolveComponent("el-tag"),D=e.resolveComponent("el-card"),F=e.resolveComponent("el-timeline-item"),g=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(e.unref(f)("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(c.processInstance.id),1)]),e.createElementVNode("div",we,[e.createElementVNode("span",null,e.toDisplayString(c.processInstance.name),1)])]),e.createElementVNode("div",he,[e.createElementVNode("div",Ne,[e.createElementVNode("p",null,e.toDisplayString(e.unref(f)("processFlow.startTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(f)("processFlow.endTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.endTime)),1),c.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Se,e.toDisplayString(e.unref(f)("processFlow.duration"))+e.toDisplayString(e.unref(se)((A=c.processInstance)==null?void 0:A.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(T,{size:100,icon:p[c.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Te,[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(F,{key:P,type:y(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,_e)]}),default:e.withCtx(()=>[e.createElementVNode("p",Me,[e.createTextVNode(e.toDisplayString(i.name)+" ",1),i.status?(e.openBlock(),e.createBlock(_,{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,M,I,C;return[P===0?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(((o=i.assigneeUser)==null?void 0:o.nickname)||((M=i.ownerUser)==null?void 0:M.nickname))+" ",1),e.createVNode(m,{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",xe,[e.createTextVNode(e.toDisplayString(e.unref(f)("processFlow.approver"))+e.toDisplayString(((I=i.assigneeUser)==null?void 0:I.nickname)||((C=i.ownerUser)==null?void 0:C.nickname))+" ",1),e.createVNode(m,{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",De,e.toDisplayString(e.unref(f)("processFlow.createTime")),1)):e.createCommentVNode("",!0),i.createTime&&!i.endTime?(e.openBlock(),e.createElementBlock("label",ke,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",$e,e.toDisplayString(e.unref(f)("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),i.endTime?(e.openBlock(),e.createElementBlock("label",Pe,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",Be,e.toDisplayString(e.unref(f)("processFlow.duration")),1)):e.createCommentVNode("",!0),i.durationInMillis?(e.openBlock(),e.createElementBlock("label",Ae,e.toDisplayString(e.unref(se)(i==null?void 0:i.durationInMillis)),1)):e.createCommentVNode("",!0)]),i.reason?(e.openBlock(),e.createElementBlock("div",Ce,e.toDisplayString(e.unref(f)("processFlow.approvalSuggestion"))+e.toDisplayString(i.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),Ve="",oe=(c,f)=>{const p=c.__vccOpts||c;for(const[y,w]of f)p[y]=w;return p},Fe=oe(ve,[["__scopeId","data-v-95aa4717"]]),Ie=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(c){const f=c,p=e.ref(!1),y=e.ref({}),w=e.ref({}),$=e.ref(""),T=e.ref([]),_=e.ref(""),m=g=>{_.value=g,D(),F()},D=async()=>{var g,A;try{p.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"?>
|
|
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))})(this,function(v,e){"use strict";var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var ne={exports:{}};(function(c,f){(function(p,y){c.exports=y()})(ee,function(){var p=1e3,y=6e4,w=36e5,$="millisecond",T="second",_="minute",m="hour",D="day",F="week",g="month",A="quarter",i="year",P="date",o="Invalid Date",M=/^(\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])+"]"}},x=function(l,a,t){var s=String(l);return!s||s.length>=a?l:""+Array(a+1-s.length).join(t)+l},q={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:F,d:D,D:P,h:m,m:_,s:T,ms:$,Q:A}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",U={};U[L]=C;var H="$isDayjsObject",W=function(l){return l instanceof K||!(!l||!l[H])},R=function l(a,t,s){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!s&&n&&(L=n),n||!s&&L},N=function(l,a){if(W(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=W,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[H]=!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(M);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(z,k){var V=u.w(n.$u?Date.UTC(n.$y,k,z):new Date(n.$y,k,z),n);return r?V:V.endOf(D)},h=function(z,k){return u.w(n.toDate()[z].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(k)),n)},S=this.$W,E=this.$M,B=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 F:var O=this.$locale().weekStart||0,Y=(S<O?S+7:S)-O;return b(r?B-Y:B+(6-Y),E);case D:case P:return h(j+"Hours",0);case m:return h(j+"Minutes",1);case _:return h(j+"Seconds",2);case T: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[m]=d+"Hours",n[_]=d+"Minutes",n[T]=d+"Seconds",n[$]=d+"Milliseconds",n)[r],h=r===D?this.$D+(s-this.$W):s;if(r===g||r===i){var S=this.clone().set(P,1);S.$d[b](h),S.init(),this.$d=S.set(P,Math.min(this.$D,S.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 B=N(r);return u.w(B.date(B.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===F)return b(7);var h=(n={},n[_]=y,n[m]=w,n[T]=p,n)[d]||1,S=this.$d.getTime()+t*h;return u.w(S,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,S=this.$M,E=n.weekdays,B=n.months,j=n.meridiem,O=function(k,V,Q,X){return k&&(k[V]||k(s,r))||Q[V].slice(0,X)},Y=function(k){return u.s(b%12||12,k,"0")},z=j||function(k,V,Q){var X=k<12?"AM":"PM";return Q?X.toLowerCase():X};return r.replace(I,function(k,V){return V||function(Q){switch(Q){case"YY":return String(s.$y).slice(-2);case"YYYY":return u.s(s.$y,4,"0");case"M":return S+1;case"MM":return u.s(S+1,2,"0");case"MMM":return O(n.monthsShort,S,B,3);case"MMMM":return O(B,S);case"D":return s.$D;case"DD":return u.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return O(n.weekdaysMin,s.$W,E,2);case"ddd":return O(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 Y(1);case"hh":return Y(2);case"a":return z(b,h,!0);case"A":return z(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),S=(h.utcOffset()-this.utcOffset())*y,E=this-h,B=function(){return u.m(d,h)};switch(b){case i:r=B()/12;break;case g:r=B();break;case A:r=B()/3;break;case F:r=(E-S)/6048e5;break;case D:r=(E-S)/864e5;break;case m:r=E/w;break;case _:r=E/y;break;case T:r=E/p;break;default:r=E}return n?r:u.a(r)},a.daysInMonth=function(){return this.endOf(g).$D},a.$locale=function(){return U[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}(),de=K.prototype;return N.prototype=de,[["$ms",$],["$s",T],["$m",_],["$H",m],["$W",D],["$M",g],["$y",i],["$D",P]].forEach(function(l){de[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=W,N.unix=function(l){return N(1e3*l)},N.en=U[L],N.Ls=U,N.p={},N})})(ne);var ce=ne.exports;const ae=te(ce);var ie={exports:{}};(function(c,f){(function(p,y){c.exports=y()})(ee,function(){var p="minute",y=/[+-]\d\d(?::?\d\d)?/g,w=/([+-]|\d\d)/g;return function($,T,_){var m=T.prototype;_.utc=function(o){var M={date:o,utc:!0,args:arguments};return new T(M)},m.utc=function(o){var M=_(this.toDate(),{locale:this.$L,utc:!0});return o?M.add(this.utcOffset(),p):M},m.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var D=m.parse;m.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),D.call(this,o)};var F=m.init;m.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 g=m.utcOffset;m.utcOffset=function(o,M){var I=this.$utils().u;if(I(o))return this.$u?0:I(this.$offset)?g.call(this):this.$offset;if(typeof o=="string"&&(o=function(L){L===void 0&&(L="");var U=L.match(y);if(!U)return null;var H=(""+U[0]).match(w)||["-",0,0],W=H[0],R=60*+H[1]+ +H[2];return R===0?0:W==="+"?R:-R}(o),o===null))return this;var C=Math.abs(o)<=16?60*o:o;if(C===0)return this.utc(M);var x=this.clone();if(M)return x.$offset=C,x.$u=!1,x;var q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(C+q,p)).$offset=C,x.$x.$localOffset=q,x};var A=m.format;m.format=function(o){var M=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return A.call(this,M)},m.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},m.isUTC=function(){return!!this.$u},m.toISOString=function(){return this.toDate().toISOString()},m.toString=function(){return this.toDate().toUTCString()};var i=m.toDate;m.toDate=function(o){return o==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():i.call(this)};var P=m.diff;m.diff=function(o,M,I){if(o&&this.$u===o.$u)return P.call(this,o,M,I);var C=this.local(),x=_(o).local();return P.call(C,x,M,I)}}})})(ie);var fe=ie.exports;const pe=te(fe);ae.extend(pe);function me(){let c=new Date().getTimezoneOffset();const f=Math.abs(Math.floor(c/60)),p=c<0?"+":"-";return c=Math.abs(c%60),p+f.toString().padStart(2,"0")+c.toString().padStart(2,"0")}function J(c,f,p){return c?(f===void 0&&(f="YYYY-MM-DD HH:mm:ss"),p||(p=me()),ae.utc(c).utcOffset(p).format(f)):""}const ue={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function se(c,f="cn"){const p=ue[f],y=Math.floor(c/(24*60*60*1e3)),w=Math.floor(c/(60*60*1e3)-y*24),$=Math.floor(c/(60*1e3)-y*24*60-w*60),T=Math.floor(c/1e3-y*24*60*60-w*60*60-$*60);return y>0?y+p.days+w+p.hours+$+p.minutes:w>0?w+p.hours+$+p.minutes:$>0?$+p.minutes:T>0?T+p.seconds:0+p.seconds}const be={class:"scroll-area"},ge={class:"flow-header flex justify-between"},ye={class:"text-18px font-bold"},we={class:"text-14px font-bold",style:{color:"#005aae"}},he={class:"flex items-center"},Ne={class:"flow-start"},Se={key:0},Te={class:"mt-30px block"},_e=["src"],Me={style:{"font-weight":"700"}},Ee={key:0,style:{"margin-right":"30px","font-weight":"normal"}},xe={key:1,style:{"margin-right":"30px","font-weight":"normal"}},De={key:0,style:{"font-weight":"normal"}},ke={key:1,style:{"font-weight":"normal",color:"#8a909c"}},$e={key:2,style:{"font-weight":"normal"}},Pe={key:3,style:{"font-weight":"normal",color:"#8a909c"}},Be={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Ae={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ce={key:2},ve=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(c){const f=re();console.log("ttttttttttttttttttttttt",f);const p={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},y=w=>[0,1,6,7].includes(w.status)?"primary":w.status===2?"success":w.status===3?"danger":w.status===4?"info":w.status===5?"warning":"";return(w,$)=>{var A;const T=e.resolveComponent("Icon"),_=e.resolveComponent("dict-tag"),m=e.resolveComponent("el-tag"),D=e.resolveComponent("el-card"),F=e.resolveComponent("el-timeline-item"),g=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(e.unref(f)("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(c.processInstance.id),1)]),e.createElementVNode("div",we,[e.createElementVNode("span",null,e.toDisplayString(c.processInstance.name),1)])]),e.createElementVNode("div",he,[e.createElementVNode("div",Ne,[e.createElementVNode("p",null,e.toDisplayString(e.unref(f)("processFlow.startTime"))+e.toDisplayString(e.unref(J)(c.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(f)("processFlow.endTime"))+e.toDisplayString(e.unref(J)(c.processInstance.endTime)),1),c.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Se,e.toDisplayString(e.unref(f)("processFlow.duration"))+e.toDisplayString(e.unref(se)((A=c.processInstance)==null?void 0:A.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(T,{size:100,icon:p[c.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Te,[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(F,{key:P,type:y(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,_e)]}),default:e.withCtx(()=>[e.createElementVNode("p",Me,[e.createTextVNode(e.toDisplayString(i.name)+" ",1),i.status?(e.openBlock(),e.createBlock(_,{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,M,I,C;return[P===0?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(((o=i.assigneeUser)==null?void 0:o.nickname)||((M=i.ownerUser)==null?void 0:M.nickname))+" ",1),e.createVNode(m,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var x,q;return[e.createTextVNode(e.toDisplayString((q=(x=c.processInstance)==null?void 0:x.startUser)==null?void 0:q.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),i.assigneeUser?(e.openBlock(),e.createElementBlock("label",xe,[e.createTextVNode(e.toDisplayString(e.unref(f)("processFlow.approver"))+e.toDisplayString(((I=i.assigneeUser)==null?void 0:I.nickname)||((C=i.ownerUser)==null?void 0:C.nickname))+" ",1),e.createVNode(m,{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",De,e.toDisplayString(e.unref(f)("processFlow.createTime")),1)):e.createCommentVNode("",!0),i.createTime&&!i.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(e.unref(J)(i==null?void 0:i.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),i.endTime?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(e.unref(f)("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),i.endTime?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(e.unref(J)(i==null?void 0:i.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),i.durationInMillis?(e.openBlock(),e.createElementBlock("label",Be,e.toDisplayString(e.unref(f)("processFlow.duration")),1)):e.createCommentVNode("",!0),i.durationInMillis?(e.openBlock(),e.createElementBlock("label",Ae,e.toDisplayString(e.unref(se)(i==null?void 0:i.durationInMillis)),1)):e.createCommentVNode("",!0)]),i.reason?(e.openBlock(),e.createElementBlock("div",Ce,e.toDisplayString(e.unref(f)("processFlow.approvalSuggestion"))+e.toDisplayString(i.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),qe="",oe=(c,f)=>{const p=c.__vccOpts||c;for(const[y,w]of f)p[y]=w;return p},Fe=oe(ve,[["__scopeId","data-v-551817a9"]]),Ie=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(c){const f=c,p=e.ref(!1),y=e.ref({}),w=e.ref({}),$=e.ref(""),T=e.ref([]),_=e.ref(""),m=g=>{_.value=g,D(),F()},D=async()=>{var g,A;try{p.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}};y.value=i==null?void 0:i.processInstance,$.value=(A=(g=i==null?void 0:i.processInstance)==null?void 0:g.formVariables)==null?void 0:A.applicationPrefix,w.value=i==null?void 0:i.todoTask}finally{p.value=!1}},F=async()=>{T.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(()=>f.processInstanceId,g=>{g&&g!==_.value&&m(g)},{immediate:!0,deep:!0}),(g,A)=>(e.openBlock(),e.createBlock(Fe,{"process-instance":y.value,tasks:T.value},null,8,["process-instance","tasks"]))}}),Oe="",le=oe(Ie,[["__scopeId","data-v-a4649f52"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"任务不不在"}},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"task not exist"}},Symbol.toStringTag,{value:"Module"}));let J=null,K=null;const Re={install(c,f){if(console.log("插件install执行,options:",f),!(f!=null&&f.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");J=f.request,K=f.i18n,K.global.mergeLocaleMessage("zh-CN",Ue),K.global.mergeLocaleMessage("en",Le),c.component("CmcProcessFlow",le)}};function re(){if(!K)throw new Error("没有_request对象");return J}function qe(){if(!J)throw new Error("没有_request对象");return J}v.CmcProcessFlow=le,v.default=Re,v.getI18n=re,v.getRequest=qe,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}};y.value=i==null?void 0:i.processInstance,$.value=(A=(g=i==null?void 0:i.processInstance)==null?void 0:g.formVariables)==null?void 0:A.applicationPrefix,w.value=i==null?void 0:i.todoTask}finally{p.value=!1}},F=async()=>{T.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(()=>f.processInstanceId,g=>{g&&g!==_.value&&m(g)},{immediate:!0,deep:!0}),(g,A)=>(e.openBlock(),e.createBlock(Fe,{"process-instance":y.value,tasks:T.value},null,8,["process-instance","tasks"]))}}),Oe="",le=oe(Ie,[["__scopeId","data-v-a4649f52"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"任务不不在"}},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"task not exist"}},Symbol.toStringTag,{value:"Module"}));let Z=null,G=null;const Re={install(c,f){if(console.log("插件install执行,options:",f),!(f!=null&&f.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");Z=f.request,G=f.i18n,G.global.mergeLocaleMessage("zh-CN",Ue),G.global.mergeLocaleMessage("en",Le),c.component("CmcProcessFlow",le)}};function re(){if(!G)throw new Error("没有_i18n对象");return G}function Ve(){if(!Z)throw new Error("没有_request对象");return Z}v.CmcProcessFlow=le,v.default=Re,v.getI18n=re,v.getRequest=Ve,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.test[data-v-
|
|
1
|
+
@charset "UTF-8";.test[data-v-551817a9]{width:100px;height:100px;background:red}.avatar-wrap[data-v-551817a9]{width:40px;height:40px}.flow-start{p[data-v-551817a9] {margin: 0px; padding-top: 10px; font-size: 14px;}}.flow-start[data-v-551817a9]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgba(245,247,253,1)}[data-v-551817a9] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-551817a9]{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/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -99,6 +99,7 @@ import {getI18n} from "../../../index";
|
|
|
99
99
|
defineOptions({ name: 'BpmProcessInstanceTaskList' })
|
|
100
100
|
|
|
101
101
|
const t = getI18n()
|
|
102
|
+
console.log('ttttttttttttttttttttttt', t)
|
|
102
103
|
const statusIconMapping = {
|
|
103
104
|
1: 'svg-icon:approvalPending', // 审批中
|
|
104
105
|
2: 'svg-icon:approvalPass', // 通过
|