nbb-component-ui 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -3
- package/dist/index.es.js +284 -268
- package/dist/index.umd.js +2 -2
- package/dist/src/locales/en.d.ts +3 -0
- package/dist/src/locales/zh-CN.d.ts +3 -0
- package/dist/style.css +1 -1
- package/index.ts +19 -6
- package/package.json +1 -1
- package/src/ProcessFlow/src/CmcFlowList.vue +2 -3
- package/src/locales/en.ts +4 -0
- package/src/locales/zh-CN.ts +4 -0
- package/tsconfig.json +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
2
|
import { CmcProcessFlow } from './src/ProcessFlow';
|
|
3
|
-
export interface NbbComponentUiOptions {
|
|
4
|
-
request: any;
|
|
5
|
-
}
|
|
6
3
|
declare const plugin: Plugin<NbbComponentUiOptions>;
|
|
7
4
|
export { CmcProcessFlow };
|
|
5
|
+
export declare function getI18n(): any;
|
|
8
6
|
export declare function getRequest(): any;
|
|
7
|
+
export interface NbbComponentUiOptions {
|
|
8
|
+
request: any;
|
|
9
|
+
i18n: any;
|
|
10
|
+
}
|
|
9
11
|
export default plugin;
|
package/dist/index.es.js
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { defineComponent 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 te, withCtx as K, Fragment as he, renderList as Ne, createBlock as de, createTextVNode as ae, ref as X, watch as _e } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return
|
|
3
|
+
var pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
|
+
function me(d) {
|
|
5
|
+
return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
8
|
-
(function(
|
|
9
|
-
(function(
|
|
10
|
-
|
|
11
|
-
})(
|
|
12
|
-
var
|
|
7
|
+
var be = { exports: {} };
|
|
8
|
+
(function(d, c) {
|
|
9
|
+
(function(f, y) {
|
|
10
|
+
d.exports = y();
|
|
11
|
+
})(pe, function() {
|
|
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
13
|
var t = ["th", "st", "nd", "rd"], e = o % 100;
|
|
14
14
|
return "[" + o + (t[(e - 20) % 10] || t[e] || t[0]) + "]";
|
|
15
15
|
} }, x = function(o, t, e) {
|
|
16
16
|
var i = String(o);
|
|
17
17
|
return !i || i.length >= t ? o : "" + Array(t + 1 - i.length).join(e) + o;
|
|
18
|
-
},
|
|
18
|
+
}, G = { s: x, z: function(o) {
|
|
19
19
|
var t = -o.utcOffset(), e = Math.abs(t), i = Math.floor(e / 60), n = e % 60;
|
|
20
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 i = 12 * (e.year() - t.year()) + (e.month() - t.month()), n = t.clone().add(i, b), l = e - n < 0,
|
|
25
|
-
return +(-(i + (e - n) / (l ? n -
|
|
24
|
+
var i = 12 * (e.year() - t.year()) + (e.month() - t.month()), n = t.clone().add(i, b), l = e - n < 0, r = t.clone().add(i + (l ? -1 : 1), b);
|
|
25
|
+
return +(-(i + (e - n) / (l ? n - r : r - 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: b, y: a, w:
|
|
29
|
+
return { M: b, y: a, w: R, d: $, D: F, h: u, m: v, s: T, ms: k, Q: C }[o] || String(o || "").toLowerCase().replace(/s$/, "");
|
|
30
30
|
}, u: function(o) {
|
|
31
31
|
return o === void 0;
|
|
32
|
-
} },
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
return o instanceof ie || !(!o || !o[
|
|
36
|
-
},
|
|
32
|
+
} }, z = "en", O = {};
|
|
33
|
+
O[z] = U;
|
|
34
|
+
var Y = "$isDayjsObject", Z = function(o) {
|
|
35
|
+
return o instanceof ie || !(!o || !o[Y]);
|
|
36
|
+
}, H = function o(t, e, i) {
|
|
37
37
|
var n;
|
|
38
38
|
if (!t)
|
|
39
|
-
return
|
|
39
|
+
return z;
|
|
40
40
|
if (typeof t == "string") {
|
|
41
41
|
var l = t.toLowerCase();
|
|
42
|
-
|
|
43
|
-
var
|
|
44
|
-
if (!n &&
|
|
45
|
-
return o(
|
|
42
|
+
O[l] && (n = l), e && (O[l] = e, n = l);
|
|
43
|
+
var r = t.split("-");
|
|
44
|
+
if (!n && r.length > 1)
|
|
45
|
+
return o(r[0]);
|
|
46
46
|
} else {
|
|
47
47
|
var m = t.name;
|
|
48
|
-
|
|
48
|
+
O[m] = t, n = m;
|
|
49
49
|
}
|
|
50
|
-
return !i && n && (
|
|
50
|
+
return !i && n && (z = n), n || !i && z;
|
|
51
51
|
}, N = function(o, t) {
|
|
52
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
|
-
}, p =
|
|
57
|
-
p.l =
|
|
56
|
+
}, p = G;
|
|
57
|
+
p.l = H, 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 =
|
|
62
|
+
this.$L = H(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[Y] = !0;
|
|
63
63
|
}
|
|
64
64
|
var t = o.prototype;
|
|
65
65
|
return t.parse = function(e) {
|
|
@@ -72,10 +72,10 @@ var me = { 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
|
|
76
|
-
if (
|
|
77
|
-
var m =
|
|
78
|
-
return l ? new Date(Date.UTC(
|
|
75
|
+
var r = n.match(M);
|
|
76
|
+
if (r) {
|
|
77
|
+
var m = r[2] - 1 || 0, h = (r[7] || "0").substring(0, 3);
|
|
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
81
|
return new Date(n);
|
|
@@ -101,39 +101,39 @@ var me = { exports: {} };
|
|
|
101
101
|
}, t.valueOf = function() {
|
|
102
102
|
return this.$d.getTime();
|
|
103
103
|
}, t.startOf = function(e, i) {
|
|
104
|
-
var n = this, l = !!p.u(i) || i,
|
|
105
|
-
var
|
|
106
|
-
return l ?
|
|
107
|
-
}, h = function(
|
|
108
|
-
return p.w(n.toDate()[
|
|
109
|
-
},
|
|
110
|
-
switch (
|
|
104
|
+
var n = this, l = !!p.u(i) || i, r = p.p(e), m = function(V, P) {
|
|
105
|
+
var j = p.w(n.$u ? Date.UTC(n.$y, P, V) : new Date(n.$y, P, V), n);
|
|
106
|
+
return l ? j : j.endOf($);
|
|
107
|
+
}, h = function(V, P) {
|
|
108
|
+
return p.w(n.toDate()[V].apply(n.toDate("s"), (l ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), n);
|
|
109
|
+
}, _ = this.$W, S = this.$M, I = this.$D, Q = "set" + (this.$u ? "UTC" : "");
|
|
110
|
+
switch (r) {
|
|
111
111
|
case a:
|
|
112
112
|
return l ? m(1, 0) : m(31, 11);
|
|
113
113
|
case b:
|
|
114
114
|
return l ? m(1, S) : m(0, S + 1);
|
|
115
|
-
case
|
|
116
|
-
var
|
|
117
|
-
return m(l ?
|
|
118
|
-
case
|
|
119
|
-
case
|
|
120
|
-
return h(
|
|
121
|
-
case
|
|
122
|
-
return h(
|
|
123
|
-
case M:
|
|
124
|
-
return h(Y + "Seconds", 2);
|
|
115
|
+
case R:
|
|
116
|
+
var W = this.$locale().weekStart || 0, ee = (_ < W ? _ + 7 : _) - W;
|
|
117
|
+
return m(l ? I - ee : I + (6 - ee), S);
|
|
118
|
+
case $:
|
|
119
|
+
case F:
|
|
120
|
+
return h(Q + "Hours", 0);
|
|
121
|
+
case u:
|
|
122
|
+
return h(Q + "Minutes", 1);
|
|
125
123
|
case v:
|
|
126
|
-
return h(
|
|
124
|
+
return h(Q + "Seconds", 2);
|
|
125
|
+
case T:
|
|
126
|
+
return h(Q + "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
132
|
}, t.$set = function(e, i) {
|
|
133
|
-
var n, l = p.p(e),
|
|
133
|
+
var n, l = p.p(e), r = "set" + (this.$u ? "UTC" : ""), m = (n = {}, n[$] = r + "Date", n[F] = r + "Date", n[b] = r + "Month", n[a] = r + "FullYear", n[u] = r + "Hours", n[v] = r + "Minutes", n[T] = r + "Seconds", n[k] = r + "Milliseconds", n)[l], h = l === $ ? this.$D + (i - this.$W) : i;
|
|
134
134
|
if (l === b || l === a) {
|
|
135
|
-
var
|
|
136
|
-
|
|
135
|
+
var _ = this.clone().set(F, 1);
|
|
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;
|
|
@@ -144,49 +144,49 @@ var me = { exports: {} };
|
|
|
144
144
|
}, t.add = function(e, i) {
|
|
145
145
|
var n, l = this;
|
|
146
146
|
e = Number(e);
|
|
147
|
-
var
|
|
148
|
-
var
|
|
149
|
-
return p.w(
|
|
147
|
+
var r = p.p(i), m = function(S) {
|
|
148
|
+
var I = N(l);
|
|
149
|
+
return p.w(I.date(I.date() + Math.round(S * e)), l);
|
|
150
150
|
};
|
|
151
|
-
if (
|
|
151
|
+
if (r === b)
|
|
152
152
|
return this.set(b, this.$M + e);
|
|
153
|
-
if (
|
|
153
|
+
if (r === a)
|
|
154
154
|
return this.set(a, this.$y + e);
|
|
155
|
-
if (
|
|
155
|
+
if (r === $)
|
|
156
156
|
return m(1);
|
|
157
|
-
if (
|
|
157
|
+
if (r === R)
|
|
158
158
|
return m(7);
|
|
159
|
-
var h = (n = {}, n[
|
|
160
|
-
return p.w(
|
|
159
|
+
var h = (n = {}, n[v] = y, n[u] = w, n[T] = f, n)[r] || 1, _ = this.$d.getTime() + e * h;
|
|
160
|
+
return p.w(_, this);
|
|
161
161
|
}, t.subtract = function(e, i) {
|
|
162
162
|
return this.add(-1 * e, i);
|
|
163
163
|
}, t.format = function(e) {
|
|
164
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",
|
|
168
|
-
return
|
|
169
|
-
}, ee = function(
|
|
170
|
-
return p.s(m % 12 || 12,
|
|
171
|
-
},
|
|
172
|
-
var se =
|
|
167
|
+
var l = e || "YYYY-MM-DDTHH:mm:ssZ", r = p.z(this), m = this.$H, h = this.$m, _ = this.$M, S = n.weekdays, I = n.months, Q = n.meridiem, W = function(P, j, ne, se) {
|
|
168
|
+
return P && (P[j] || P(i, l)) || ne[j].slice(0, se);
|
|
169
|
+
}, ee = function(P) {
|
|
170
|
+
return p.s(m % 12 || 12, P, "0");
|
|
171
|
+
}, V = Q || function(P, j, ne) {
|
|
172
|
+
var se = P < 12 ? "AM" : "PM";
|
|
173
173
|
return ne ? se.toLowerCase() : se;
|
|
174
174
|
};
|
|
175
|
-
return l.replace(
|
|
176
|
-
return
|
|
175
|
+
return l.replace(q, function(P, j) {
|
|
176
|
+
return j || function(ne) {
|
|
177
177
|
switch (ne) {
|
|
178
178
|
case "YY":
|
|
179
179
|
return String(i.$y).slice(-2);
|
|
180
180
|
case "YYYY":
|
|
181
181
|
return p.s(i.$y, 4, "0");
|
|
182
182
|
case "M":
|
|
183
|
-
return
|
|
183
|
+
return _ + 1;
|
|
184
184
|
case "MM":
|
|
185
|
-
return p.s(
|
|
185
|
+
return p.s(_ + 1, 2, "0");
|
|
186
186
|
case "MMM":
|
|
187
|
-
return
|
|
187
|
+
return W(n.monthsShort, _, I, 3);
|
|
188
188
|
case "MMMM":
|
|
189
|
-
return
|
|
189
|
+
return W(I, _);
|
|
190
190
|
case "D":
|
|
191
191
|
return i.$D;
|
|
192
192
|
case "DD":
|
|
@@ -194,9 +194,9 @@ var me = { exports: {} };
|
|
|
194
194
|
case "d":
|
|
195
195
|
return String(i.$W);
|
|
196
196
|
case "dd":
|
|
197
|
-
return
|
|
197
|
+
return W(n.weekdaysMin, i.$W, S, 2);
|
|
198
198
|
case "ddd":
|
|
199
|
-
return
|
|
199
|
+
return W(n.weekdaysShort, i.$W, S, 3);
|
|
200
200
|
case "dddd":
|
|
201
201
|
return S[i.$W];
|
|
202
202
|
case "H":
|
|
@@ -208,9 +208,9 @@ var me = { exports: {} };
|
|
|
208
208
|
case "hh":
|
|
209
209
|
return ee(2);
|
|
210
210
|
case "a":
|
|
211
|
-
return
|
|
211
|
+
return V(m, h, !0);
|
|
212
212
|
case "A":
|
|
213
|
-
return
|
|
213
|
+
return V(m, h, !1);
|
|
214
214
|
case "m":
|
|
215
215
|
return String(h);
|
|
216
216
|
case "mm":
|
|
@@ -222,41 +222,41 @@ var me = { exports: {} };
|
|
|
222
222
|
case "SSS":
|
|
223
223
|
return p.s(i.$ms, 3, "0");
|
|
224
224
|
case "Z":
|
|
225
|
-
return
|
|
225
|
+
return r;
|
|
226
226
|
}
|
|
227
227
|
return null;
|
|
228
|
-
}(
|
|
228
|
+
}(P) || r.replace(":", "");
|
|
229
229
|
});
|
|
230
230
|
}, t.utcOffset = function() {
|
|
231
231
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
232
232
|
}, t.diff = function(e, i, n) {
|
|
233
|
-
var l,
|
|
234
|
-
return p.m(
|
|
233
|
+
var l, r = this, m = p.p(i), h = N(e), _ = (h.utcOffset() - this.utcOffset()) * y, S = this - h, I = function() {
|
|
234
|
+
return p.m(r, h);
|
|
235
235
|
};
|
|
236
236
|
switch (m) {
|
|
237
237
|
case a:
|
|
238
|
-
l =
|
|
238
|
+
l = I() / 12;
|
|
239
239
|
break;
|
|
240
240
|
case b:
|
|
241
|
-
l =
|
|
241
|
+
l = I();
|
|
242
242
|
break;
|
|
243
|
-
case
|
|
244
|
-
l =
|
|
243
|
+
case C:
|
|
244
|
+
l = I() / 3;
|
|
245
245
|
break;
|
|
246
|
-
case
|
|
247
|
-
l = (S -
|
|
246
|
+
case R:
|
|
247
|
+
l = (S - _) / 6048e5;
|
|
248
248
|
break;
|
|
249
|
-
case
|
|
250
|
-
l = (S -
|
|
249
|
+
case $:
|
|
250
|
+
l = (S - _) / 864e5;
|
|
251
251
|
break;
|
|
252
|
-
case
|
|
253
|
-
l = S / g;
|
|
254
|
-
break;
|
|
255
|
-
case M:
|
|
252
|
+
case u:
|
|
256
253
|
l = S / w;
|
|
257
254
|
break;
|
|
258
255
|
case v:
|
|
259
|
-
l = S /
|
|
256
|
+
l = S / y;
|
|
257
|
+
break;
|
|
258
|
+
case T:
|
|
259
|
+
l = S / f;
|
|
260
260
|
break;
|
|
261
261
|
default:
|
|
262
262
|
l = S;
|
|
@@ -265,11 +265,11 @@ var me = { exports: {} };
|
|
|
265
265
|
}, t.daysInMonth = function() {
|
|
266
266
|
return this.endOf(b).$D;
|
|
267
267
|
}, t.$locale = function() {
|
|
268
|
-
return
|
|
268
|
+
return O[this.$L];
|
|
269
269
|
}, t.locale = function(e, i) {
|
|
270
270
|
if (!e)
|
|
271
271
|
return this.$L;
|
|
272
|
-
var n = this.clone(), l =
|
|
272
|
+
var n = this.clone(), l = H(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,112 +282,112 @@ var me = { exports: {} };
|
|
|
282
282
|
}, t.toString = function() {
|
|
283
283
|
return this.$d.toUTCString();
|
|
284
284
|
}, o;
|
|
285
|
-
}(),
|
|
286
|
-
return N.prototype =
|
|
287
|
-
|
|
285
|
+
}(), ce = ie.prototype;
|
|
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(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 =
|
|
292
|
+
}, N.locale = H, N.isDayjs = Z, N.unix = function(o) {
|
|
293
293
|
return N(1e3 * o);
|
|
294
|
-
}, N.en =
|
|
294
|
+
}, N.en = O[z], N.Ls = O, N.p = {}, N;
|
|
295
295
|
});
|
|
296
|
-
})(
|
|
297
|
-
var Te =
|
|
298
|
-
const
|
|
299
|
-
var
|
|
300
|
-
(function(
|
|
301
|
-
(function(
|
|
302
|
-
|
|
303
|
-
})(
|
|
304
|
-
var
|
|
305
|
-
return function(
|
|
306
|
-
var
|
|
307
|
-
|
|
308
|
-
var
|
|
309
|
-
return new
|
|
310
|
-
},
|
|
311
|
-
var
|
|
312
|
-
return s ?
|
|
313
|
-
},
|
|
314
|
-
return
|
|
296
|
+
})(be);
|
|
297
|
+
var Te = be.exports;
|
|
298
|
+
const ge = /* @__PURE__ */ me(Te);
|
|
299
|
+
var ye = { exports: {} };
|
|
300
|
+
(function(d, c) {
|
|
301
|
+
(function(f, y) {
|
|
302
|
+
d.exports = y();
|
|
303
|
+
})(pe, function() {
|
|
304
|
+
var f = "minute", y = /[+-]\d\d(?::?\d\d)?/g, w = /([+-]|\d\d)/g;
|
|
305
|
+
return function(k, T, v) {
|
|
306
|
+
var u = T.prototype;
|
|
307
|
+
v.utc = function(s) {
|
|
308
|
+
var M = { date: s, utc: !0, args: arguments };
|
|
309
|
+
return new T(M);
|
|
310
|
+
}, u.utc = function(s) {
|
|
311
|
+
var M = v(this.toDate(), { locale: this.$L, utc: !0 });
|
|
312
|
+
return s ? M.add(this.utcOffset(), f) : M;
|
|
313
|
+
}, u.local = function() {
|
|
314
|
+
return v(this.toDate(), { locale: this.$L, utc: !1 });
|
|
315
315
|
};
|
|
316
|
-
var
|
|
317
|
-
|
|
318
|
-
s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset),
|
|
316
|
+
var $ = u.parse;
|
|
317
|
+
u.parse = function(s) {
|
|
318
|
+
s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), $.call(this, s);
|
|
319
319
|
};
|
|
320
|
-
var
|
|
321
|
-
|
|
320
|
+
var R = u.init;
|
|
321
|
+
u.init = function() {
|
|
322
322
|
if (this.$u) {
|
|
323
323
|
var s = this.$d;
|
|
324
324
|
this.$y = s.getUTCFullYear(), this.$M = s.getUTCMonth(), this.$D = s.getUTCDate(), this.$W = s.getUTCDay(), this.$H = s.getUTCHours(), this.$m = s.getUTCMinutes(), this.$s = s.getUTCSeconds(), this.$ms = s.getUTCMilliseconds();
|
|
325
325
|
} else
|
|
326
|
-
|
|
326
|
+
R.call(this);
|
|
327
327
|
};
|
|
328
|
-
var b =
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
if (
|
|
332
|
-
return this.$u ? 0 :
|
|
333
|
-
if (typeof s == "string" && (s = function(
|
|
334
|
-
|
|
335
|
-
var
|
|
336
|
-
if (!
|
|
328
|
+
var b = u.utcOffset;
|
|
329
|
+
u.utcOffset = function(s, M) {
|
|
330
|
+
var q = this.$utils().u;
|
|
331
|
+
if (q(s))
|
|
332
|
+
return this.$u ? 0 : q(this.$offset) ? b.call(this) : this.$offset;
|
|
333
|
+
if (typeof s == "string" && (s = function(z) {
|
|
334
|
+
z === void 0 && (z = "");
|
|
335
|
+
var O = z.match(y);
|
|
336
|
+
if (!O)
|
|
337
337
|
return null;
|
|
338
|
-
var
|
|
339
|
-
return
|
|
338
|
+
var Y = ("" + O[0]).match(w) || ["-", 0, 0], Z = Y[0], H = 60 * +Y[1] + +Y[2];
|
|
339
|
+
return H === 0 ? 0 : Z === "+" ? H : -H;
|
|
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(
|
|
344
|
+
return this.utc(M);
|
|
345
345
|
var x = this.clone();
|
|
346
|
-
if (
|
|
346
|
+
if (M)
|
|
347
347
|
return x.$offset = U, x.$u = !1, x;
|
|
348
|
-
var
|
|
349
|
-
return (x = this.local().add(U +
|
|
348
|
+
var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
349
|
+
return (x = this.local().add(U + G, f)).$offset = U, x.$x.$localOffset = G, x;
|
|
350
350
|
};
|
|
351
|
-
var
|
|
352
|
-
|
|
353
|
-
var
|
|
354
|
-
return
|
|
355
|
-
},
|
|
351
|
+
var C = u.format;
|
|
352
|
+
u.format = function(s) {
|
|
353
|
+
var M = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
354
|
+
return C.call(this, M);
|
|
355
|
+
}, u.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;
|
|
358
|
-
},
|
|
358
|
+
}, u.isUTC = function() {
|
|
359
359
|
return !!this.$u;
|
|
360
|
-
},
|
|
360
|
+
}, u.toISOString = function() {
|
|
361
361
|
return this.toDate().toISOString();
|
|
362
|
-
},
|
|
362
|
+
}, u.toString = function() {
|
|
363
363
|
return this.toDate().toUTCString();
|
|
364
364
|
};
|
|
365
|
-
var a =
|
|
366
|
-
|
|
367
|
-
return s === "s" && this.$offset ?
|
|
365
|
+
var a = u.toDate;
|
|
366
|
+
u.toDate = function(s) {
|
|
367
|
+
return s === "s" && this.$offset ? v(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : a.call(this);
|
|
368
368
|
};
|
|
369
|
-
var
|
|
370
|
-
|
|
369
|
+
var F = u.diff;
|
|
370
|
+
u.diff = function(s, M, q) {
|
|
371
371
|
if (s && this.$u === s.$u)
|
|
372
|
-
return
|
|
373
|
-
var U = this.local(), x =
|
|
374
|
-
return
|
|
372
|
+
return F.call(this, s, M, q);
|
|
373
|
+
var U = this.local(), x = v(s).local();
|
|
374
|
+
return F.call(U, x, M, q);
|
|
375
375
|
};
|
|
376
376
|
};
|
|
377
377
|
});
|
|
378
|
-
})(
|
|
379
|
-
var ve =
|
|
380
|
-
const Me = /* @__PURE__ */
|
|
381
|
-
|
|
382
|
-
function
|
|
383
|
-
let
|
|
384
|
-
const
|
|
385
|
-
return
|
|
378
|
+
})(ye);
|
|
379
|
+
var ve = ye.exports;
|
|
380
|
+
const Me = /* @__PURE__ */ me(ve);
|
|
381
|
+
ge.extend(Me);
|
|
382
|
+
function Se() {
|
|
383
|
+
let d = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
384
|
+
const c = Math.abs(Math.floor(d / 60)), f = d < 0 ? "+" : "-";
|
|
385
|
+
return d = Math.abs(d % 60), f + c.toString().padStart(2, "0") + d.toString().padStart(2, "0");
|
|
386
386
|
}
|
|
387
|
-
function oe(
|
|
388
|
-
return
|
|
387
|
+
function oe(d, c, f) {
|
|
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
|
-
const
|
|
390
|
+
const xe = {
|
|
391
391
|
cn: {
|
|
392
392
|
seconds: "秒",
|
|
393
393
|
minutes: "分钟",
|
|
@@ -401,46 +401,46 @@ const Se = {
|
|
|
401
401
|
days: "d"
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
|
-
function
|
|
405
|
-
const
|
|
406
|
-
return
|
|
404
|
+
function fe(d, c = "cn") {
|
|
405
|
+
const f = xe[c], y = Math.floor(d / (24 * 60 * 60 * 1e3)), w = Math.floor(d / (60 * 60 * 1e3) - y * 24), k = Math.floor(d / (60 * 1e3) - y * 24 * 60 - w * 60), T = Math.floor(d / 1e3 - y * 24 * 60 * 60 - w * 60 * 60 - k * 60);
|
|
406
|
+
return y > 0 ? y + f.days + w + f.hours + k + f.minutes : w > 0 ? w + f.hours + k + f.minutes : k > 0 ? k + f.minutes : T > 0 ? T + f.seconds : 0 + f.seconds;
|
|
407
407
|
}
|
|
408
|
-
const
|
|
408
|
+
const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
|
|
409
409
|
class: "text-14px font-bold",
|
|
410
410
|
style: { color: "#005aae" }
|
|
411
|
-
},
|
|
411
|
+
}, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Be = ["src"], Ce = { style: { "font-weight": "700" } }, Ue = {
|
|
412
412
|
key: 0,
|
|
413
413
|
style: { "margin-right": "30px", "font-weight": "normal" }
|
|
414
|
-
},
|
|
414
|
+
}, Le = {
|
|
415
415
|
key: 1,
|
|
416
416
|
style: { "margin-right": "30px", "font-weight": "normal" }
|
|
417
|
-
},
|
|
417
|
+
}, Re = {
|
|
418
418
|
key: 0,
|
|
419
419
|
style: { "font-weight": "normal" }
|
|
420
|
-
},
|
|
420
|
+
}, qe = {
|
|
421
421
|
key: 1,
|
|
422
422
|
style: { "font-weight": "normal", color: "#8a909c" }
|
|
423
|
-
},
|
|
423
|
+
}, Oe = {
|
|
424
424
|
key: 2,
|
|
425
425
|
style: { "font-weight": "normal" }
|
|
426
|
-
},
|
|
426
|
+
}, ze = {
|
|
427
427
|
key: 3,
|
|
428
428
|
style: { "font-weight": "normal", color: "#8a909c" }
|
|
429
|
-
},
|
|
429
|
+
}, He = {
|
|
430
430
|
key: 4,
|
|
431
431
|
style: { "margin-left": "30px", "font-weight": "normal" }
|
|
432
|
-
},
|
|
432
|
+
}, je = {
|
|
433
433
|
key: 5,
|
|
434
434
|
style: { "font-weight": "normal", color: "#8a909c" }
|
|
435
|
-
},
|
|
435
|
+
}, Ge = { key: 2 }, We = /* @__PURE__ */ ue({
|
|
436
436
|
name: "BpmProcessInstanceTaskList",
|
|
437
437
|
__name: "CmcFlowList",
|
|
438
438
|
props: {
|
|
439
439
|
processInstance: {},
|
|
440
440
|
tasks: {}
|
|
441
441
|
},
|
|
442
|
-
setup(
|
|
443
|
-
const
|
|
442
|
+
setup(d) {
|
|
443
|
+
const c = en(), f = {
|
|
444
444
|
1: "svg-icon:approvalPending",
|
|
445
445
|
// 审批中
|
|
446
446
|
2: "svg-icon:approvalPass",
|
|
@@ -449,98 +449,98 @@ const xe = { class: "scroll-area" }, Ee = { class: "flow-header flex justify-bet
|
|
|
449
449
|
// 拒绝
|
|
450
450
|
4: "svg-icon:approvalCanceled"
|
|
451
451
|
// 取消
|
|
452
|
-
},
|
|
453
|
-
return (
|
|
454
|
-
var
|
|
455
|
-
const
|
|
456
|
-
return
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
452
|
+
}, 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" : "";
|
|
453
|
+
return (w, k) => {
|
|
454
|
+
var C;
|
|
455
|
+
const T = J("Icon"), v = J("dict-tag"), u = J("el-tag"), $ = J("el-card"), R = J("el-timeline-item"), b = J("el-timeline");
|
|
456
|
+
return D(), B("div", Ee, [
|
|
457
|
+
A("div", De, [
|
|
458
|
+
A("div", $e, [
|
|
459
|
+
A("span", null, g(E(c)("processFlow.flow")), 1),
|
|
460
|
+
A("span", null, g(d.processInstance.id), 1)
|
|
461
461
|
]),
|
|
462
|
-
|
|
463
|
-
|
|
462
|
+
A("div", Pe, [
|
|
463
|
+
A("span", null, g(d.processInstance.name), 1)
|
|
464
464
|
])
|
|
465
465
|
]),
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
466
|
+
A("div", Ae, [
|
|
467
|
+
A("div", ke, [
|
|
468
|
+
A("p", null, g(E(c)("processFlow.startTime")) + g(E(oe)(d.processInstance.startTime)), 1),
|
|
469
|
+
A("p", null, g(E(c)("processFlow.endTime")) + g(E(oe)(d.processInstance.endTime)), 1),
|
|
470
|
+
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
471
|
]),
|
|
472
|
-
te(
|
|
472
|
+
te(T, {
|
|
473
473
|
size: 100,
|
|
474
|
-
icon:
|
|
474
|
+
icon: f[d.processInstance.status] || "svg-icon:approvalPending"
|
|
475
475
|
}, null, 8, ["icon"])
|
|
476
476
|
]),
|
|
477
|
-
|
|
477
|
+
A("div", Ie, [
|
|
478
478
|
te(b, null, {
|
|
479
479
|
default: K(() => [
|
|
480
|
-
(
|
|
481
|
-
key:
|
|
482
|
-
type:
|
|
480
|
+
(D(!0), B(he, null, Ne(d.tasks, (a, F) => (D(), de(R, {
|
|
481
|
+
key: F,
|
|
482
|
+
type: y(a) || "info"
|
|
483
483
|
}, {
|
|
484
484
|
dot: K(() => {
|
|
485
485
|
var s;
|
|
486
486
|
return [
|
|
487
|
-
|
|
487
|
+
A("img", {
|
|
488
488
|
src: ((s = a == null ? void 0 : a.assigneeUser) == null ? void 0 : s.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
|
|
489
489
|
class: "avatar-wrap"
|
|
490
|
-
}, null, 8,
|
|
490
|
+
}, null, 8, Be)
|
|
491
491
|
];
|
|
492
492
|
}),
|
|
493
493
|
default: K(() => [
|
|
494
|
-
|
|
495
|
-
ae(
|
|
496
|
-
a.status ? (
|
|
494
|
+
A("p", Ce, [
|
|
495
|
+
ae(g(a.name) + " ", 1),
|
|
496
|
+
a.status ? (D(), de(v, {
|
|
497
497
|
key: 0,
|
|
498
498
|
type: "bpm_task_status",
|
|
499
499
|
value: a.status || ""
|
|
500
|
-
}, null, 8, ["value"])) :
|
|
500
|
+
}, null, 8, ["value"])) : L("", !0)
|
|
501
501
|
]),
|
|
502
|
-
te(
|
|
502
|
+
te($, { "body-style": { padding: "10px" } }, {
|
|
503
503
|
default: K(() => {
|
|
504
|
-
var s,
|
|
504
|
+
var s, M, q, U;
|
|
505
505
|
return [
|
|
506
|
-
|
|
507
|
-
ae(
|
|
508
|
-
te(
|
|
506
|
+
F === 0 ? (D(), B("label", Ue, [
|
|
507
|
+
ae(g(((s = a.assigneeUser) == null ? void 0 : s.nickname) || ((M = a.ownerUser) == null ? void 0 : M.nickname)) + " ", 1),
|
|
508
|
+
te(u, {
|
|
509
509
|
size: "small",
|
|
510
510
|
type: "info",
|
|
511
511
|
style: { "vertical-align": "1px" }
|
|
512
512
|
}, {
|
|
513
513
|
default: K(() => {
|
|
514
|
-
var x,
|
|
514
|
+
var x, G;
|
|
515
515
|
return [
|
|
516
|
-
ae(
|
|
516
|
+
ae(g((G = (x = d.processInstance) == null ? void 0 : x.startUser) == null ? void 0 : G.deptName), 1)
|
|
517
517
|
];
|
|
518
518
|
}),
|
|
519
519
|
_: 1
|
|
520
520
|
})
|
|
521
|
-
])) :
|
|
522
|
-
a.assigneeUser ? (
|
|
523
|
-
ae(
|
|
524
|
-
te(
|
|
521
|
+
])) : L("", !0),
|
|
522
|
+
a.assigneeUser ? (D(), B("label", Le, [
|
|
523
|
+
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
|
+
te(u, {
|
|
525
525
|
size: "small",
|
|
526
526
|
type: "info",
|
|
527
527
|
style: { "vertical-align": "1px" }
|
|
528
528
|
}, {
|
|
529
529
|
default: K(() => [
|
|
530
|
-
ae(
|
|
530
|
+
ae(g(a.assigneeUser.deptName), 1)
|
|
531
531
|
]),
|
|
532
532
|
_: 2
|
|
533
533
|
}, 1024)
|
|
534
|
-
])) :
|
|
535
|
-
|
|
536
|
-
a.createTime && !a.endTime ? (
|
|
537
|
-
a.createTime && !a.endTime ? (
|
|
538
|
-
a.endTime ? (
|
|
539
|
-
a.endTime ? (
|
|
540
|
-
a.durationInMillis ? (
|
|
541
|
-
a.durationInMillis ? (
|
|
534
|
+
])) : L("", !0),
|
|
535
|
+
A("div", null, [
|
|
536
|
+
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(oe)(a == null ? void 0 : a.createTime, "MM-DD HH:mm")), 1)) : L("", !0),
|
|
538
|
+
a.endTime ? (D(), B("label", Oe, g(E(c)("processFlow.approvalTime")), 1)) : L("", !0),
|
|
539
|
+
a.endTime ? (D(), B("label", ze, g(E(oe)(a == null ? void 0 : a.endTime, "MM-DD HH:mm")), 1)) : L("", !0),
|
|
540
|
+
a.durationInMillis ? (D(), B("label", He, g(E(c)("processFlow.duration")), 1)) : L("", !0),
|
|
541
|
+
a.durationInMillis ? (D(), B("label", je, g(E(fe)(a == null ? void 0 : a.durationInMillis)), 1)) : L("", !0)
|
|
542
542
|
]),
|
|
543
|
-
a.reason ? (
|
|
543
|
+
a.reason ? (D(), B("div", Ge, g(E(c)("processFlow.approvalSuggestion")) + g(a.reason), 1)) : L("", !0)
|
|
544
544
|
];
|
|
545
545
|
}),
|
|
546
546
|
_: 2
|
|
@@ -556,23 +556,23 @@ const xe = { class: "scroll-area" }, Ee = { class: "flow-header flex justify-bet
|
|
|
556
556
|
};
|
|
557
557
|
}
|
|
558
558
|
});
|
|
559
|
-
const
|
|
560
|
-
const
|
|
561
|
-
for (const [
|
|
562
|
-
|
|
563
|
-
return
|
|
564
|
-
},
|
|
559
|
+
const we = (d, c) => {
|
|
560
|
+
const f = d.__vccOpts || d;
|
|
561
|
+
for (const [y, w] of c)
|
|
562
|
+
f[y] = w;
|
|
563
|
+
return f;
|
|
564
|
+
}, Ve = /* @__PURE__ */ we(We, [["__scopeId", "data-v-95aa4717"]]), Ye = /* @__PURE__ */ ue({
|
|
565
565
|
__name: "CmcProcessFlow",
|
|
566
566
|
props: {
|
|
567
567
|
processInstanceId: {}
|
|
568
568
|
},
|
|
569
|
-
setup(
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
},
|
|
573
|
-
var b,
|
|
569
|
+
setup(d) {
|
|
570
|
+
const c = d, f = X(!1), y = X({}), w = X({}), k = X(""), T = X([]), v = X(""), u = (b) => {
|
|
571
|
+
v.value = b, $(), R();
|
|
572
|
+
}, $ = async () => {
|
|
573
|
+
var b, C;
|
|
574
574
|
try {
|
|
575
|
-
|
|
575
|
+
f.value = !0;
|
|
576
576
|
const a = {
|
|
577
577
|
status: 1,
|
|
578
578
|
activityNodes: [
|
|
@@ -1093,12 +1093,12 @@ const ye = (r, u) => {
|
|
|
1093
1093
|
tasks: null
|
|
1094
1094
|
}
|
|
1095
1095
|
};
|
|
1096
|
-
|
|
1096
|
+
y.value = a == null ? void 0 : a.processInstance, k.value = (C = (b = a == null ? void 0 : a.processInstance) == null ? void 0 : b.formVariables) == null ? void 0 : C.applicationPrefix, w.value = a == null ? void 0 : a.todoTask;
|
|
1097
1097
|
} finally {
|
|
1098
|
-
|
|
1098
|
+
f.value = !1;
|
|
1099
1099
|
}
|
|
1100
|
-
},
|
|
1101
|
-
|
|
1100
|
+
}, R = async () => {
|
|
1101
|
+
T.value = [
|
|
1102
1102
|
{
|
|
1103
1103
|
id: "0fff48cd-2f25-11f1-9259-fa163e43f4f0",
|
|
1104
1104
|
name: "发起人",
|
|
@@ -1221,34 +1221,50 @@ const ye = (r, u) => {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
];
|
|
1223
1223
|
};
|
|
1224
|
-
return
|
|
1225
|
-
() =>
|
|
1224
|
+
return _e(
|
|
1225
|
+
() => c.processInstanceId,
|
|
1226
1226
|
(b) => {
|
|
1227
|
-
b && b !==
|
|
1227
|
+
b && b !== v.value && u(b);
|
|
1228
1228
|
},
|
|
1229
1229
|
{ immediate: !0, deep: !0 }
|
|
1230
|
-
), (b,
|
|
1231
|
-
"process-instance":
|
|
1232
|
-
tasks:
|
|
1230
|
+
), (b, C) => (D(), de(Ve, {
|
|
1231
|
+
"process-instance": y.value,
|
|
1232
|
+
tasks: T.value
|
|
1233
1233
|
}, null, 8, ["process-instance", "tasks"]));
|
|
1234
1234
|
}
|
|
1235
1235
|
});
|
|
1236
|
-
const
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1236
|
+
const Qe = /* @__PURE__ */ we(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
|
|
1237
|
+
taskNotExist: "任务不不在"
|
|
1238
|
+
}, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1239
|
+
__proto__: null,
|
|
1240
|
+
bpm: Je
|
|
1241
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = {
|
|
1242
|
+
taskNotExist: "task not exist"
|
|
1243
|
+
}, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1244
|
+
__proto__: null,
|
|
1245
|
+
bpm: Xe
|
|
1246
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1247
|
+
let re = null, le = null;
|
|
1248
|
+
const an = {
|
|
1249
|
+
install(d, c) {
|
|
1250
|
+
if (console.log("插件install执行,options:", c), !(c != null && c.request))
|
|
1241
1251
|
throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
|
|
1242
|
-
|
|
1252
|
+
re = c.request, le = c.i18n, le.global.mergeLocaleMessage("zh-CN", Ke), le.global.mergeLocaleMessage("en", Ze), d.component("CmcProcessFlow", Qe);
|
|
1243
1253
|
}
|
|
1244
1254
|
};
|
|
1245
|
-
function
|
|
1246
|
-
if (
|
|
1255
|
+
function en() {
|
|
1256
|
+
if (!le)
|
|
1257
|
+
throw new Error("没有_request对象");
|
|
1258
|
+
return re;
|
|
1259
|
+
}
|
|
1260
|
+
function sn() {
|
|
1261
|
+
if (!re)
|
|
1247
1262
|
throw new Error("没有_request对象");
|
|
1248
|
-
return
|
|
1263
|
+
return re;
|
|
1249
1264
|
}
|
|
1250
1265
|
export {
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1266
|
+
Qe as CmcProcessFlow,
|
|
1267
|
+
an as default,
|
|
1268
|
+
en as getI18n,
|
|
1269
|
+
sn as getRequest
|
|
1254
1270
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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"?>
|
|
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"?>
|
|
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=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"}})});
|
|
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"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.test[data-v-
|
|
1
|
+
@charset "UTF-8";.test[data-v-95aa4717]{width:100px;height:100px;background:red}.avatar-wrap[data-v-95aa4717]{width:40px;height:40px}.flow-start{p[data-v-95aa4717] {margin: 0px; padding-top: 10px; font-size: 14px;}}.flow-start[data-v-95aa4717]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgba(245,247,253,1)}[data-v-95aa4717] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-95aa4717]{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
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { App, Plugin } from 'vue'
|
|
2
2
|
|
|
3
|
-
// 插件配置类型
|
|
4
|
-
export interface NbbComponentUiOptions {
|
|
5
|
-
request: any
|
|
6
|
-
}
|
|
7
|
-
|
|
8
3
|
import {CmcProcessFlow} from "./src/ProcessFlow";
|
|
9
4
|
|
|
5
|
+
import * as zhCore from './src/locales/zh-CN'
|
|
6
|
+
import * as enCore from './src/locales/en'
|
|
7
|
+
|
|
10
8
|
let _request: any = null;
|
|
9
|
+
let _i18n: any = null;
|
|
11
10
|
|
|
12
11
|
// 定义插件对象,严格标注类型
|
|
13
12
|
const plugin: Plugin<NbbComponentUiOptions> = {
|
|
@@ -17,6 +16,9 @@ const plugin: Plugin<NbbComponentUiOptions> = {
|
|
|
17
16
|
throw new Error('请在 app.use(NbbComponentUi) 时传入 { request }')
|
|
18
17
|
}
|
|
19
18
|
_request = options.request
|
|
19
|
+
_i18n = options.i18n
|
|
20
|
+
_i18n.global.mergeLocaleMessage('zh-CN', zhCore)
|
|
21
|
+
_i18n.global.mergeLocaleMessage('en', enCore)
|
|
20
22
|
|
|
21
23
|
app.component('CmcProcessFlow', CmcProcessFlow)
|
|
22
24
|
}
|
|
@@ -24,13 +26,24 @@ const plugin: Plugin<NbbComponentUiOptions> = {
|
|
|
24
26
|
// 支持按需引入
|
|
25
27
|
export {CmcProcessFlow }
|
|
26
28
|
|
|
29
|
+
export function getI18n() {
|
|
30
|
+
if (!_i18n) {
|
|
31
|
+
throw new Error('没有_request对象')
|
|
32
|
+
}
|
|
33
|
+
return _request
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
export function getRequest() {
|
|
28
|
-
console.log('getRequest', _request)
|
|
29
37
|
if (!_request) {
|
|
30
38
|
throw new Error('没有_request对象')
|
|
31
39
|
}
|
|
32
40
|
return _request
|
|
33
41
|
}
|
|
42
|
+
// 插件配置类型
|
|
43
|
+
export interface NbbComponentUiOptions {
|
|
44
|
+
request: any,
|
|
45
|
+
i18n: any
|
|
46
|
+
}
|
|
34
47
|
|
|
35
48
|
// 默认导出插件(必须是Plugin类型)
|
|
36
49
|
export default plugin
|
package/package.json
CHANGED
|
@@ -94,12 +94,11 @@
|
|
|
94
94
|
|
|
95
95
|
<script lang="ts" setup>
|
|
96
96
|
import { formatDate, formatPast2 } from '@/utils/formatTime'
|
|
97
|
+
import {getI18n} from "../../../index";
|
|
97
98
|
|
|
98
99
|
defineOptions({ name: 'BpmProcessInstanceTaskList' })
|
|
99
100
|
|
|
100
|
-
const t = (
|
|
101
|
-
return str
|
|
102
|
-
}
|
|
101
|
+
const t = getI18n()
|
|
103
102
|
const statusIconMapping = {
|
|
104
103
|
1: 'svg-icon:approvalPending', // 审批中
|
|
105
104
|
2: 'svg-icon:approvalPass', // 通过
|