nbb-component-ui 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as pe, resolveComponent as Y, openBlock as P, createElementBlock as L, Fragment as fe, createVNode as X, withCtx as Q, createTextVNode as Z, createElementVNode as D, toDisplayString as m, unref as $, createCommentVNode as O, renderList as Ne, createBlock as re, ref as ee, watch as _e } from "vue";
2
- import "element-plus";
2
+ import { useI18n as Te } from "vue-i18n";
3
3
  var me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function be(r) {
5
5
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
@@ -294,8 +294,8 @@ var ge = { exports: {} };
294
294
  }, _.en = I[B], _.Ls = I, _.p = {}, _;
295
295
  });
296
296
  })(ge);
297
- var Te = ge.exports;
298
- const ye = /* @__PURE__ */ be(Te);
297
+ var ve = ge.exports;
298
+ const ye = /* @__PURE__ */ be(ve);
299
299
  var we = { exports: {} };
300
300
  (function(r, b) {
301
301
  (function(d, g) {
@@ -376,18 +376,18 @@ var we = { exports: {} };
376
376
  };
377
377
  });
378
378
  })(we);
379
- var ve = we.exports;
380
- const Me = /* @__PURE__ */ be(ve);
381
- ye.extend(Me);
382
- function Se() {
379
+ var Me = we.exports;
380
+ const Se = /* @__PURE__ */ be(Me);
381
+ ye.extend(Se);
382
+ function xe() {
383
383
  let r = (/* @__PURE__ */ new Date()).getTimezoneOffset();
384
384
  const b = Math.abs(Math.floor(r / 60)), d = r < 0 ? "+" : "-";
385
385
  return r = Math.abs(r % 60), d + b.toString().padStart(2, "0") + r.toString().padStart(2, "0");
386
386
  }
387
387
  function le(r, b, d) {
388
- return r ? (b === void 0 && (b = "YYYY-MM-DD HH:mm:ss"), d || (d = Se()), ye.utc(r).utcOffset(d).format(b)) : "";
388
+ return r ? (b === void 0 && (b = "YYYY-MM-DD HH:mm:ss"), d || (d = xe()), ye.utc(r).utcOffset(d).format(b)) : "";
389
389
  }
390
- const xe = {
390
+ const Ee = {
391
391
  cn: {
392
392
  seconds: "秒",
393
393
  minutes: "分钟",
@@ -402,37 +402,37 @@ const xe = {
402
402
  }
403
403
  };
404
404
  function ue(r, b = "cn") {
405
- const d = xe[b], g = Math.floor(r / (24 * 60 * 60 * 1e3)), S = Math.floor(r / (60 * 60 * 1e3) - g * 24), h = Math.floor(r / (60 * 1e3) - g * 24 * 60 - S * 60), N = Math.floor(r / 1e3 - g * 24 * 60 * 60 - S * 60 * 60 - h * 60);
405
+ const d = Ee[b], g = Math.floor(r / (24 * 60 * 60 * 1e3)), S = Math.floor(r / (60 * 60 * 1e3) - g * 24), h = Math.floor(r / (60 * 1e3) - g * 24 * 60 - S * 60), N = Math.floor(r / 1e3 - g * 24 * 60 * 60 - S * 60 * 60 - h * 60);
406
406
  return g > 0 ? g + d.days + S + d.hours + h + d.minutes : S > 0 ? S + d.hours + h + d.minutes : h > 0 ? h + d.minutes : N > 0 ? N + d.seconds : 0 + d.seconds;
407
407
  }
408
- const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-between" }, $e = { class: "text-18px font-bold" }, Pe = {
408
+ const De = { class: "scroll-area" }, $e = { class: "flow-header flex justify-between" }, Pe = { class: "text-18px font-bold" }, Ae = {
409
409
  class: "text-14px font-bold",
410
410
  style: { color: "#005aae" }
411
- }, Ae = { class: "flex items-center" }, ke = { class: "flow-start" }, Fe = { key: 0 }, Ie = { class: "mt-30px block" }, Ce = ["src"], Be = { style: { "font-weight": "700" } }, Ue = {
411
+ }, ke = { class: "flex items-center" }, Fe = { class: "flow-start" }, Ie = { key: 0 }, Ce = { class: "mt-30px block" }, Be = ["src"], Ue = { style: { "font-weight": "700" } }, Le = {
412
412
  key: 0,
413
413
  style: { "margin-right": "30px", "font-weight": "normal" }
414
- }, Le = {
414
+ }, Re = {
415
415
  key: 1,
416
416
  style: { "margin-right": "30px", "font-weight": "normal" }
417
- }, Re = {
417
+ }, qe = {
418
418
  key: 0,
419
419
  style: { "font-weight": "normal" }
420
- }, qe = {
420
+ }, Oe = {
421
421
  key: 1,
422
422
  style: { "font-weight": "normal", color: "#8a909c" }
423
- }, Oe = {
423
+ }, ze = {
424
424
  key: 2,
425
425
  style: { "font-weight": "normal" }
426
- }, ze = {
426
+ }, He = {
427
427
  key: 3,
428
428
  style: { "font-weight": "normal", color: "#8a909c" }
429
- }, He = {
429
+ }, je = {
430
430
  key: 4,
431
431
  style: { "margin-left": "30px", "font-weight": "normal" }
432
- }, je = {
432
+ }, Ge = {
433
433
  key: 5,
434
434
  style: { "font-weight": "normal", color: "#8a909c" }
435
- }, Ge = { key: 2 }, We = /* @__PURE__ */ pe({
435
+ }, We = { key: 2 }, Ve = /* @__PURE__ */ pe({
436
436
  name: "BpmProcessInstanceTaskList",
437
437
  __name: "CmcFlowList",
438
438
  props: {
@@ -442,7 +442,7 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
442
442
  setup(r) {
443
443
  const b = () => {
444
444
  console.log(d("processFlow.flow"));
445
- }, d = et();
445
+ }, { t: d } = Te();
446
446
  console.log("ttttttttttttttttttttttt", d);
447
447
  const g = {
448
448
  1: "svg-icon:approvalPending",
@@ -464,28 +464,28 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
464
464
  ])]),
465
465
  _: 1
466
466
  }),
467
- D("div", Ee, [
468
- D("div", De, [
469
- D("div", $e, [
467
+ D("div", De, [
468
+ D("div", $e, [
469
+ D("div", Pe, [
470
470
  D("span", null, m($(d)("processFlow.flow")), 1),
471
471
  D("span", null, m(r.processInstance.id), 1)
472
472
  ]),
473
- D("div", Pe, [
473
+ D("div", Ae, [
474
474
  D("span", null, m(r.processInstance.name), 1)
475
475
  ])
476
476
  ]),
477
- D("div", Ae, [
478
- D("div", ke, [
477
+ D("div", ke, [
478
+ D("div", Fe, [
479
479
  D("p", null, m($(d)("processFlow.startTime")) + m($(le)(r.processInstance.startTime)), 1),
480
480
  D("p", null, m($(d)("processFlow.endTime")) + m($(le)(r.processInstance.endTime)), 1),
481
- r.processInstance.durationInMillis ? (P(), L("p", Fe, m($(d)("processFlow.duration")) + m($(ue)((C = r.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : O("", !0)
481
+ r.processInstance.durationInMillis ? (P(), L("p", Ie, m($(d)("processFlow.duration")) + m($(ue)((C = r.processInstance) == null ? void 0 : C.durationInMillis)), 1)) : O("", !0)
482
482
  ]),
483
483
  X(c, {
484
484
  size: 100,
485
485
  icon: g[r.processInstance.status] || "svg-icon:approvalPending"
486
486
  }, null, 8, ["icon"])
487
487
  ]),
488
- D("div", Ie, [
488
+ D("div", Ce, [
489
489
  X(y, null, {
490
490
  default: Q(() => [
491
491
  (P(!0), L(fe, null, Ne(r.tasks, (e, M) => (P(), re(z, {
@@ -498,11 +498,11 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
498
498
  D("img", {
499
499
  src: ((F = e == null ? void 0 : e.assigneeUser) == null ? void 0 : F.avatar) || "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
500
500
  class: "avatar-wrap"
501
- }, null, 8, Ce)
501
+ }, null, 8, Be)
502
502
  ];
503
503
  }),
504
504
  default: Q(() => [
505
- D("p", Be, [
505
+ D("p", Ue, [
506
506
  Z(m(e.name) + " ", 1),
507
507
  e.status ? (P(), re(A, {
508
508
  key: 0,
@@ -514,7 +514,7 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
514
514
  default: Q(() => {
515
515
  var F, q, E, G;
516
516
  return [
517
- M === 0 ? (P(), L("label", Ue, [
517
+ M === 0 ? (P(), L("label", Le, [
518
518
  Z(m(((F = e.assigneeUser) == null ? void 0 : F.nickname) || ((q = e.ownerUser) == null ? void 0 : q.nickname)) + " ", 1),
519
519
  X(R, {
520
520
  size: "small",
@@ -530,7 +530,7 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
530
530
  _: 1
531
531
  })
532
532
  ])) : O("", !0),
533
- e.assigneeUser ? (P(), L("label", Le, [
533
+ e.assigneeUser ? (P(), L("label", Re, [
534
534
  Z(m($(d)("processFlow.approver")) + m(((E = e.assigneeUser) == null ? void 0 : E.nickname) || ((G = e.ownerUser) == null ? void 0 : G.nickname)) + " ", 1),
535
535
  X(R, {
536
536
  size: "small",
@@ -544,14 +544,14 @@ const Ee = { class: "scroll-area" }, De = { class: "flow-header flex justify-bet
544
544
  }, 1024)
545
545
  ])) : O("", !0),
546
546
  D("div", null, [
547
- e.createTime && !e.endTime ? (P(), L("label", Re, m($(d)("processFlow.createTime")), 1)) : O("", !0),
548
- e.createTime && !e.endTime ? (P(), L("label", qe, m($(le)(e == null ? void 0 : e.createTime, "MM-DD HH:mm")), 1)) : O("", !0),
549
- e.endTime ? (P(), L("label", Oe, m($(d)("processFlow.approvalTime")), 1)) : O("", !0),
550
- e.endTime ? (P(), L("label", ze, m($(le)(e == null ? void 0 : e.endTime, "MM-DD HH:mm")), 1)) : O("", !0),
551
- e.durationInMillis ? (P(), L("label", He, m($(d)("processFlow.duration")), 1)) : O("", !0),
552
- e.durationInMillis ? (P(), L("label", je, m($(ue)(e == null ? void 0 : e.durationInMillis)), 1)) : O("", !0)
547
+ e.createTime && !e.endTime ? (P(), L("label", qe, m($(d)("processFlow.createTime")), 1)) : O("", !0),
548
+ e.createTime && !e.endTime ? (P(), L("label", Oe, m($(le)(e == null ? void 0 : e.createTime, "MM-DD HH:mm")), 1)) : O("", !0),
549
+ e.endTime ? (P(), L("label", ze, m($(d)("processFlow.approvalTime")), 1)) : O("", !0),
550
+ e.endTime ? (P(), L("label", He, m($(le)(e == null ? void 0 : e.endTime, "MM-DD HH:mm")), 1)) : O("", !0),
551
+ e.durationInMillis ? (P(), L("label", je, m($(d)("processFlow.duration")), 1)) : O("", !0),
552
+ e.durationInMillis ? (P(), L("label", Ge, m($(ue)(e == null ? void 0 : e.durationInMillis)), 1)) : O("", !0)
553
553
  ]),
554
- e.reason ? (P(), L("div", Ge, m($(d)("processFlow.approvalSuggestion")) + m(e.reason), 1)) : O("", !0)
554
+ e.reason ? (P(), L("div", We, m($(d)("processFlow.approvalSuggestion")) + m(e.reason), 1)) : O("", !0)
555
555
  ];
556
556
  }),
557
557
  _: 2
@@ -573,7 +573,7 @@ const he = (r, b) => {
573
573
  for (const [g, S] of b)
574
574
  d[g] = S;
575
575
  return d;
576
- }, Ve = /* @__PURE__ */ he(We, [["__scopeId", "data-v-e07cfd42"]]), Ye = /* @__PURE__ */ pe({
576
+ }, Ye = /* @__PURE__ */ he(Ve, [["__scopeId", "data-v-c3de9c24"]]), Qe = /* @__PURE__ */ pe({
577
577
  __name: "CmcProcessFlow",
578
578
  props: {
579
579
  processInstanceId: {}
@@ -1239,44 +1239,44 @@ const he = (r, b) => {
1239
1239
  p && p !== v.value && c(p);
1240
1240
  },
1241
1241
  { immediate: !0, deep: !0 }
1242
- ), (p, z) => (P(), re(Ve, {
1242
+ ), (p, z) => (P(), re(Ye, {
1243
1243
  "process-instance": g.value,
1244
1244
  tasks: N.value
1245
1245
  }, null, 8, ["process-instance", "tasks"]));
1246
1246
  }
1247
1247
  });
1248
- const Qe = /* @__PURE__ */ he(Ye, [["__scopeId", "data-v-a4649f52"]]), Je = {
1248
+ const Je = /* @__PURE__ */ he(Qe, [["__scopeId", "data-v-8157be09"]]), Ke = {
1249
1249
  taskNotExist: "任务不不在"
1250
- }, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1250
+ }, Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1251
1251
  __proto__: null,
1252
- bpm: Je
1253
- }, Symbol.toStringTag, { value: "Module" })), Xe = {
1252
+ bpm: Ke
1253
+ }, Symbol.toStringTag, { value: "Module" })), Ze = {
1254
1254
  taskNotExist: "task not exist"
1255
- }, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1255
+ }, et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1256
1256
  __proto__: null,
1257
- bpm: Xe
1257
+ bpm: Ze
1258
1258
  }, Symbol.toStringTag, { value: "Module" }));
1259
1259
  let de = null, ie = null;
1260
1260
  const at = {
1261
1261
  install(r, b) {
1262
1262
  if (console.log("插件install执行,options:", b), !(b != null && b.request))
1263
1263
  throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");
1264
- de = b.request, ie = b.i18n, ie.global.mergeLocaleMessage("zh-CN", Ke), ie.global.mergeLocaleMessage("en", Ze), r.component("CmcProcessFlow", Qe);
1264
+ de = b.request, ie = b.i18n, ie.global.mergeLocaleMessage("zh-CN", Xe), ie.global.mergeLocaleMessage("en", et), r.component("CmcProcessFlow", Je);
1265
1265
  }
1266
1266
  };
1267
- function et() {
1267
+ function it() {
1268
1268
  if (!ie)
1269
1269
  throw new Error("没有_i18n对象");
1270
1270
  return ie;
1271
1271
  }
1272
- function it() {
1272
+ function st() {
1273
1273
  if (!de)
1274
1274
  throw new Error("没有_request对象");
1275
1275
  return de;
1276
1276
  }
1277
1277
  export {
1278
- Qe as CmcProcessFlow,
1278
+ Je as CmcProcessFlow,
1279
1279
  at as default,
1280
- et as getI18n,
1281
- it as getRequest
1280
+ it as getI18n,
1281
+ st as getRequest
1282
1282
  };
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 ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var ne={exports:{}};(function(d,b){(function(c,g){d.exports=g()})(ee,function(){var c=1e3,g=6e4,E=36e5,h="millisecond",N="second",_="minute",f="hour",k="day",v="week",u="month",L="quarter",y="year",C="date",t="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|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,I={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){var i=["th","st","nd","rd"],n=o%100;return"["+o+(i[(n-20)%10]||i[n]||i[0])+"]"}},D=function(o,i,n){var s=String(o);return!s||s.length>=i?o:""+Array(i+1-s.length).join(n)+o},q={s:D,z:function(o){var i=-o.utcOffset(),n=Math.abs(i),s=Math.floor(n/60),a=n%60;return(i<=0?"+":"-")+D(s,2,"0")+":"+D(a,2,"0")},m:function o(i,n){if(i.date()<n.date())return-o(n,i);var s=12*(n.year()-i.year())+(n.month()-i.month()),a=i.clone().add(s,u),l=n-a<0,r=i.clone().add(s+(l?-1:1),u);return+(-(s+(n-a)/(l?a-r:r-a))||0)},a:function(o){return o<0?Math.ceil(o)||0:Math.floor(o)},p:function(o){return{M:u,y,w:v,d:k,D:C,h:f,m:_,s:N,ms:h,Q:L}[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(o){return o===void 0}},A="en",B={};B[A]=I;var H="$isDayjsObject",W=function(o){return o instanceof K||!(!o||!o[H])},R=function o(i,n,s){var a;if(!i)return A;if(typeof i=="string"){var l=i.toLowerCase();B[l]&&(a=l),n&&(B[l]=n,a=l);var r=i.split("-");if(!a&&r.length>1)return o(r[0])}else{var m=i.name;B[m]=i,a=m}return!s&&a&&(A=a),a||!s&&A},T=function(o,i){if(W(o))return o.clone();var n=typeof i=="object"?i:{};return n.date=o,n.args=arguments,new K(n)},p=q;p.l=R,p.i=W,p.w=function(o,i){return T(o,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var K=function(){function o(n){this.$L=R(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[H]=!0}var i=o.prototype;return i.parse=function(n){this.$d=function(s){var a=s.date,l=s.utc;if(a===null)return new Date(NaN);if(p.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var r=a.match(M);if(r){var m=r[2]-1||0,w=(r[7]||"0").substring(0,3);return l?new Date(Date.UTC(r[1],m,r[3]||1,r[4]||0,r[5]||0,r[6]||0,w)):new Date(r[1],m,r[3]||1,r[4]||0,r[5]||0,r[6]||0,w)}}return new Date(a)}(n),this.init()},i.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},i.$utils=function(){return p},i.isValid=function(){return this.$d.toString()!==t},i.isSame=function(n,s){var a=T(n);return this.startOf(s)<=a&&a<=this.endOf(s)},i.isAfter=function(n,s){return T(n)<this.startOf(s)},i.isBefore=function(n,s){return this.endOf(s)<T(n)},i.$g=function(n,s,a){return p.u(n)?this[s]:this.set(a,n)},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this.$d.getTime()},i.startOf=function(n,s){var a=this,l=!!p.u(s)||s,r=p.p(n),m=function(z,$){var V=p.w(a.$u?Date.UTC(a.$y,$,z):new Date(a.$y,$,z),a);return l?V:V.endOf(k)},w=function(z,$){return p.w(a.toDate()[z].apply(a.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice($)),a)},S=this.$W,x=this.$M,F=this.$D,j="set"+(this.$u?"UTC":"");switch(r){case y:return l?m(1,0):m(31,11);case u:return l?m(1,x):m(0,x+1);case v:var O=this.$locale().weekStart||0,Y=(S<O?S+7:S)-O;return m(l?F-Y:F+(6-Y),x);case k:case C:return w(j+"Hours",0);case f:return w(j+"Minutes",1);case _:return w(j+"Seconds",2);case N:return w(j+"Milliseconds",3);default:return this.clone()}},i.endOf=function(n){return this.startOf(n,!1)},i.$set=function(n,s){var a,l=p.p(n),r="set"+(this.$u?"UTC":""),m=(a={},a[k]=r+"Date",a[C]=r+"Date",a[u]=r+"Month",a[y]=r+"FullYear",a[f]=r+"Hours",a[_]=r+"Minutes",a[N]=r+"Seconds",a[h]=r+"Milliseconds",a)[l],w=l===k?this.$D+(s-this.$W):s;if(l===u||l===y){var S=this.clone().set(C,1);S.$d[m](w),S.init(),this.$d=S.set(C,Math.min(this.$D,S.daysInMonth())).$d}else m&&this.$d[m](w);return this.init(),this},i.set=function(n,s){return this.clone().$set(n,s)},i.get=function(n){return this[p.p(n)]()},i.add=function(n,s){var a,l=this;n=Number(n);var r=p.p(s),m=function(x){var F=T(l);return p.w(F.date(F.date()+Math.round(x*n)),l)};if(r===u)return this.set(u,this.$M+n);if(r===y)return this.set(y,this.$y+n);if(r===k)return m(1);if(r===v)return m(7);var w=(a={},a[_]=g,a[f]=E,a[N]=c,a)[r]||1,S=this.$d.getTime()+n*w;return p.w(S,this)},i.subtract=function(n,s){return this.add(-1*n,s)},i.format=function(n){var s=this,a=this.$locale();if(!this.isValid())return a.invalidDate||t;var l=n||"YYYY-MM-DDTHH:mm:ssZ",r=p.z(this),m=this.$H,w=this.$m,S=this.$M,x=a.weekdays,F=a.months,j=a.meridiem,O=function($,V,Q,X){return $&&($[V]||$(s,l))||Q[V].slice(0,X)},Y=function($){return p.s(m%12||12,$,"0")},z=j||function($,V,Q){var X=$<12?"AM":"PM";return Q?X.toLowerCase():X};return l.replace(P,function($,V){return V||function(Q){switch(Q){case"YY":return String(s.$y).slice(-2);case"YYYY":return p.s(s.$y,4,"0");case"M":return S+1;case"MM":return p.s(S+1,2,"0");case"MMM":return O(a.monthsShort,S,F,3);case"MMMM":return O(F,S);case"D":return s.$D;case"DD":return p.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return O(a.weekdaysMin,s.$W,x,2);case"ddd":return O(a.weekdaysShort,s.$W,x,3);case"dddd":return x[s.$W];case"H":return String(m);case"HH":return p.s(m,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return z(m,w,!0);case"A":return z(m,w,!1);case"m":return String(w);case"mm":return p.s(w,2,"0");case"s":return String(s.$s);case"ss":return p.s(s.$s,2,"0");case"SSS":return p.s(s.$ms,3,"0");case"Z":return r}return null}($)||r.replace(":","")})},i.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},i.diff=function(n,s,a){var l,r=this,m=p.p(s),w=T(n),S=(w.utcOffset()-this.utcOffset())*g,x=this-w,F=function(){return p.m(r,w)};switch(m){case y:l=F()/12;break;case u:l=F();break;case L:l=F()/3;break;case v:l=(x-S)/6048e5;break;case k:l=(x-S)/864e5;break;case f:l=x/E;break;case _:l=x/g;break;case N:l=x/c;break;default:l=x}return a?l:p.a(l)},i.daysInMonth=function(){return this.endOf(u).$D},i.$locale=function(){return B[this.$L]},i.locale=function(n,s){if(!n)return this.$L;var a=this.clone(),l=R(n,s,!0);return l&&(a.$L=l),a},i.clone=function(){return p.w(this.$d,this)},i.toDate=function(){return new Date(this.valueOf())},i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toISOString=function(){return this.$d.toISOString()},i.toString=function(){return this.$d.toUTCString()},o}(),de=K.prototype;return T.prototype=de,[["$ms",h],["$s",N],["$m",_],["$H",f],["$W",k],["$M",u],["$y",y],["$D",C]].forEach(function(o){de[o[1]]=function(i){return this.$g(i,o[0],o[1])}}),T.extend=function(o,i){return o.$i||(o(i,K,T),o.$i=!0),T},T.locale=R,T.isDayjs=W,T.unix=function(o){return T(1e3*o)},T.en=B[A],T.Ls=B,T.p={},T})})(ne);var ce=ne.exports;const ae=te(ce);var ie={exports:{}};(function(d,b){(function(c,g){d.exports=g()})(ee,function(){var c="minute",g=/[+-]\d\d(?::?\d\d)?/g,E=/([+-]|\d\d)/g;return function(h,N,_){var f=N.prototype;_.utc=function(t){var M={date:t,utc:!0,args:arguments};return new N(M)},f.utc=function(t){var M=_(this.toDate(),{locale:this.$L,utc:!0});return t?M.add(this.utcOffset(),c):M},f.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var k=f.parse;f.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),k.call(this,t)};var v=f.init;f.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else v.call(this)};var u=f.utcOffset;f.utcOffset=function(t,M){var P=this.$utils().u;if(P(t))return this.$u?0:P(this.$offset)?u.call(this):this.$offset;if(typeof t=="string"&&(t=function(A){A===void 0&&(A="");var B=A.match(g);if(!B)return null;var H=(""+B[0]).match(E)||["-",0,0],W=H[0],R=60*+H[1]+ +H[2];return R===0?0:W==="+"?R:-R}(t),t===null))return this;var I=Math.abs(t)<=16?60*t:t;if(I===0)return this.utc(M);var D=this.clone();if(M)return D.$offset=I,D.$u=!1,D;var q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(D=this.local().add(I+q,c)).$offset=I,D.$x.$localOffset=q,D};var L=f.format;f.format=function(t){var M=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return L.call(this,M)},f.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var y=f.toDate;f.toDate=function(t){return t==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var C=f.diff;f.diff=function(t,M,P){if(t&&this.$u===t.$u)return C.call(this,t,M,P);var I=this.local(),D=_(t).local();return C.call(I,D,M,P)}}})})(ie);var fe=ie.exports;const pe=te(fe);ae.extend(pe);function me(){let d=new Date().getTimezoneOffset();const b=Math.abs(Math.floor(d/60)),c=d<0?"+":"-";return d=Math.abs(d%60),c+b.toString().padStart(2,"0")+d.toString().padStart(2,"0")}function J(d,b,c){return d?(b===void 0&&(b="YYYY-MM-DD HH:mm:ss"),c||(c=me()),ae.utc(d).utcOffset(c).format(b)):""}const ue={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function se(d,b="cn"){const c=ue[b],g=Math.floor(d/(24*60*60*1e3)),E=Math.floor(d/(60*60*1e3)-g*24),h=Math.floor(d/(60*1e3)-g*24*60-E*60),N=Math.floor(d/1e3-g*24*60*60-E*60*60-h*60);return g>0?g+c.days+E+c.hours+h+c.minutes:E>0?E+c.hours+h+c.minutes:h>0?h+c.minutes:N>0?N+c.seconds:0+c.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"},Te={key:0},Se={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"}},Ce={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ae={key:2},Fe=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(d){const b=()=>{console.log(c("processFlow.flow"))},c=re();console.log("ttttttttttttttttttttttt",c);const g={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},E=h=>[0,1,6,7].includes(h.status)?"primary":h.status===2?"success":h.status===3?"danger":h.status===4?"info":h.status===5?"warning":"";return(h,N)=>{var C;const _=e.resolveComponent("el-button"),f=e.resolveComponent("Icon"),k=e.resolveComponent("dict-tag"),v=e.resolveComponent("el-tag"),u=e.resolveComponent("el-card"),L=e.resolveComponent("el-timeline-item"),y=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(_,{onClick:b},{default:e.withCtx(()=>[...N[0]||(N[0]=[e.createTextVNode("获取国际化值",-1)])]),_:1}),e.createElementVNode("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(d.processInstance.id),1)]),e.createElementVNode("div",we,[e.createElementVNode("span",null,e.toDisplayString(d.processInstance.name),1)])]),e.createElementVNode("div",he,[e.createElementVNode("div",Ne,[e.createElementVNode("p",null,e.toDisplayString(e.unref(c)("processFlow.startTime"))+e.toDisplayString(e.unref(J)(d.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(c)("processFlow.endTime"))+e.toDisplayString(e.unref(J)(d.processInstance.endTime)),1),d.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Te,e.toDisplayString(e.unref(c)("processFlow.duration"))+e.toDisplayString(e.unref(se)((C=d.processInstance)==null?void 0:C.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(f,{size:100,icon:g[d.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Se,[e.createVNode(y,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tasks,(t,M)=>(e.openBlock(),e.createBlock(L,{key:M,type:E(t)||"info"},{dot:e.withCtx(()=>{var P;return[e.createElementVNode("img",{src:((P=t==null?void 0:t.assigneeUser)==null?void 0:P.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(t.name)+" ",1),t.status?(e.openBlock(),e.createBlock(k,{key:0,type:"bpm_task_status",value:t.status||""},null,8,["value"])):e.createCommentVNode("",!0)]),e.createVNode(u,{"body-style":{padding:"10px"}},{default:e.withCtx(()=>{var P,I,D,q;return[M===0?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(((P=t.assigneeUser)==null?void 0:P.nickname)||((I=t.ownerUser)==null?void 0:I.nickname))+" ",1),e.createVNode(v,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var A,B;return[e.createTextVNode(e.toDisplayString((B=(A=d.processInstance)==null?void 0:A.startUser)==null?void 0:B.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),t.assigneeUser?(e.openBlock(),e.createElementBlock("label",xe,[e.createTextVNode(e.toDisplayString(e.unref(c)("processFlow.approver"))+e.toDisplayString(((D=t.assigneeUser)==null?void 0:D.nickname)||((q=t.ownerUser)==null?void 0:q.nickname))+" ",1),e.createVNode(v,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.assigneeUser.deptName),1)]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[t.createTime&&!t.endTime?(e.openBlock(),e.createElementBlock("label",De,e.toDisplayString(e.unref(c)("processFlow.createTime")),1)):e.createCommentVNode("",!0),t.createTime&&!t.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(e.unref(J)(t==null?void 0:t.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),t.endTime?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(e.unref(c)("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),t.endTime?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(e.unref(J)(t==null?void 0:t.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),t.durationInMillis?(e.openBlock(),e.createElementBlock("label",Be,e.toDisplayString(e.unref(c)("processFlow.duration")),1)):e.createCommentVNode("",!0),t.durationInMillis?(e.openBlock(),e.createElementBlock("label",Ce,e.toDisplayString(e.unref(se)(t==null?void 0:t.durationInMillis)),1)):e.createCommentVNode("",!0)]),t.reason?(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString(e.unref(c)("processFlow.approvalSuggestion"))+e.toDisplayString(t.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])],64)}}}),qe="",oe=(d,b)=>{const c=d.__vccOpts||d;for(const[g,E]of b)c[g]=E;return c},ve=oe(Fe,[["__scopeId","data-v-e07cfd42"]]),Ie=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(d){const b=d,c=e.ref(!1),g=e.ref({}),E=e.ref({}),h=e.ref(""),N=e.ref([]),_=e.ref(""),f=u=>{_.value=u,k(),v()},k=async()=>{var u,L;try{c.value=!0;const y={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("vue-i18n")):typeof define=="function"&&define.amd?define(["exports","vue","vue-i18n"],e):(v=typeof globalThis<"u"?globalThis:v||self,e(v.NbbComponentUi={},v.Vue,v.VueI18n))})(this,function(v,e,de){"use strict";var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var ne={exports:{}};(function(d,b){(function(c,g){d.exports=g()})(ee,function(){var c=1e3,g=6e4,E=36e5,h="millisecond",N="second",_="minute",f="hour",k="day",I="week",u="month",L="quarter",y="year",C="date",t="Invalid Date",M=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|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){var i=["th","st","nd","rd"],n=o%100;return"["+o+(i[(n-20)%10]||i[n]||i[0])+"]"}},D=function(o,i,n){var s=String(o);return!s||s.length>=i?o:""+Array(i+1-s.length).join(n)+o},q={s:D,z:function(o){var i=-o.utcOffset(),n=Math.abs(i),s=Math.floor(n/60),a=n%60;return(i<=0?"+":"-")+D(s,2,"0")+":"+D(a,2,"0")},m:function o(i,n){if(i.date()<n.date())return-o(n,i);var s=12*(n.year()-i.year())+(n.month()-i.month()),a=i.clone().add(s,u),l=n-a<0,r=i.clone().add(s+(l?-1:1),u);return+(-(s+(n-a)/(l?a-r:r-a))||0)},a:function(o){return o<0?Math.ceil(o)||0:Math.floor(o)},p:function(o){return{M:u,y,w:I,d:k,D:C,h:f,m:_,s:N,ms:h,Q:L}[o]||String(o||"").toLowerCase().replace(/s$/,"")},u:function(o){return o===void 0}},A="en",B={};B[A]=U;var H="$isDayjsObject",W=function(o){return o instanceof K||!(!o||!o[H])},R=function o(i,n,s){var a;if(!i)return A;if(typeof i=="string"){var l=i.toLowerCase();B[l]&&(a=l),n&&(B[l]=n,a=l);var r=i.split("-");if(!a&&r.length>1)return o(r[0])}else{var m=i.name;B[m]=i,a=m}return!s&&a&&(A=a),a||!s&&A},T=function(o,i){if(W(o))return o.clone();var n=typeof i=="object"?i:{};return n.date=o,n.args=arguments,new K(n)},p=q;p.l=R,p.i=W,p.w=function(o,i){return T(o,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var K=function(){function o(n){this.$L=R(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[H]=!0}var i=o.prototype;return i.parse=function(n){this.$d=function(s){var a=s.date,l=s.utc;if(a===null)return new Date(NaN);if(p.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var r=a.match(M);if(r){var m=r[2]-1||0,w=(r[7]||"0").substring(0,3);return l?new Date(Date.UTC(r[1],m,r[3]||1,r[4]||0,r[5]||0,r[6]||0,w)):new Date(r[1],m,r[3]||1,r[4]||0,r[5]||0,r[6]||0,w)}}return new Date(a)}(n),this.init()},i.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},i.$utils=function(){return p},i.isValid=function(){return this.$d.toString()!==t},i.isSame=function(n,s){var a=T(n);return this.startOf(s)<=a&&a<=this.endOf(s)},i.isAfter=function(n,s){return T(n)<this.startOf(s)},i.isBefore=function(n,s){return this.endOf(s)<T(n)},i.$g=function(n,s,a){return p.u(n)?this[s]:this.set(a,n)},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this.$d.getTime()},i.startOf=function(n,s){var a=this,l=!!p.u(s)||s,r=p.p(n),m=function(z,$){var V=p.w(a.$u?Date.UTC(a.$y,$,z):new Date(a.$y,$,z),a);return l?V:V.endOf(k)},w=function(z,$){return p.w(a.toDate()[z].apply(a.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice($)),a)},S=this.$W,x=this.$M,F=this.$D,j="set"+(this.$u?"UTC":"");switch(r){case y:return l?m(1,0):m(31,11);case u:return l?m(1,x):m(0,x+1);case I:var O=this.$locale().weekStart||0,Y=(S<O?S+7:S)-O;return m(l?F-Y:F+(6-Y),x);case k:case C:return w(j+"Hours",0);case f:return w(j+"Minutes",1);case _:return w(j+"Seconds",2);case N:return w(j+"Milliseconds",3);default:return this.clone()}},i.endOf=function(n){return this.startOf(n,!1)},i.$set=function(n,s){var a,l=p.p(n),r="set"+(this.$u?"UTC":""),m=(a={},a[k]=r+"Date",a[C]=r+"Date",a[u]=r+"Month",a[y]=r+"FullYear",a[f]=r+"Hours",a[_]=r+"Minutes",a[N]=r+"Seconds",a[h]=r+"Milliseconds",a)[l],w=l===k?this.$D+(s-this.$W):s;if(l===u||l===y){var S=this.clone().set(C,1);S.$d[m](w),S.init(),this.$d=S.set(C,Math.min(this.$D,S.daysInMonth())).$d}else m&&this.$d[m](w);return this.init(),this},i.set=function(n,s){return this.clone().$set(n,s)},i.get=function(n){return this[p.p(n)]()},i.add=function(n,s){var a,l=this;n=Number(n);var r=p.p(s),m=function(x){var F=T(l);return p.w(F.date(F.date()+Math.round(x*n)),l)};if(r===u)return this.set(u,this.$M+n);if(r===y)return this.set(y,this.$y+n);if(r===k)return m(1);if(r===I)return m(7);var w=(a={},a[_]=g,a[f]=E,a[N]=c,a)[r]||1,S=this.$d.getTime()+n*w;return p.w(S,this)},i.subtract=function(n,s){return this.add(-1*n,s)},i.format=function(n){var s=this,a=this.$locale();if(!this.isValid())return a.invalidDate||t;var l=n||"YYYY-MM-DDTHH:mm:ssZ",r=p.z(this),m=this.$H,w=this.$m,S=this.$M,x=a.weekdays,F=a.months,j=a.meridiem,O=function($,V,Q,X){return $&&($[V]||$(s,l))||Q[V].slice(0,X)},Y=function($){return p.s(m%12||12,$,"0")},z=j||function($,V,Q){var X=$<12?"AM":"PM";return Q?X.toLowerCase():X};return l.replace(P,function($,V){return V||function(Q){switch(Q){case"YY":return String(s.$y).slice(-2);case"YYYY":return p.s(s.$y,4,"0");case"M":return S+1;case"MM":return p.s(S+1,2,"0");case"MMM":return O(a.monthsShort,S,F,3);case"MMMM":return O(F,S);case"D":return s.$D;case"DD":return p.s(s.$D,2,"0");case"d":return String(s.$W);case"dd":return O(a.weekdaysMin,s.$W,x,2);case"ddd":return O(a.weekdaysShort,s.$W,x,3);case"dddd":return x[s.$W];case"H":return String(m);case"HH":return p.s(m,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return z(m,w,!0);case"A":return z(m,w,!1);case"m":return String(w);case"mm":return p.s(w,2,"0");case"s":return String(s.$s);case"ss":return p.s(s.$s,2,"0");case"SSS":return p.s(s.$ms,3,"0");case"Z":return r}return null}($)||r.replace(":","")})},i.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},i.diff=function(n,s,a){var l,r=this,m=p.p(s),w=T(n),S=(w.utcOffset()-this.utcOffset())*g,x=this-w,F=function(){return p.m(r,w)};switch(m){case y:l=F()/12;break;case u:l=F();break;case L:l=F()/3;break;case I:l=(x-S)/6048e5;break;case k:l=(x-S)/864e5;break;case f:l=x/E;break;case _:l=x/g;break;case N:l=x/c;break;default:l=x}return a?l:p.a(l)},i.daysInMonth=function(){return this.endOf(u).$D},i.$locale=function(){return B[this.$L]},i.locale=function(n,s){if(!n)return this.$L;var a=this.clone(),l=R(n,s,!0);return l&&(a.$L=l),a},i.clone=function(){return p.w(this.$d,this)},i.toDate=function(){return new Date(this.valueOf())},i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toISOString=function(){return this.$d.toISOString()},i.toString=function(){return this.$d.toUTCString()},o}(),re=K.prototype;return T.prototype=re,[["$ms",h],["$s",N],["$m",_],["$H",f],["$W",k],["$M",u],["$y",y],["$D",C]].forEach(function(o){re[o[1]]=function(i){return this.$g(i,o[0],o[1])}}),T.extend=function(o,i){return o.$i||(o(i,K,T),o.$i=!0),T},T.locale=R,T.isDayjs=W,T.unix=function(o){return T(1e3*o)},T.en=B[A],T.Ls=B,T.p={},T})})(ne);var ce=ne.exports;const ae=te(ce);var ie={exports:{}};(function(d,b){(function(c,g){d.exports=g()})(ee,function(){var c="minute",g=/[+-]\d\d(?::?\d\d)?/g,E=/([+-]|\d\d)/g;return function(h,N,_){var f=N.prototype;_.utc=function(t){var M={date:t,utc:!0,args:arguments};return new N(M)},f.utc=function(t){var M=_(this.toDate(),{locale:this.$L,utc:!0});return t?M.add(this.utcOffset(),c):M},f.local=function(){return _(this.toDate(),{locale:this.$L,utc:!1})};var k=f.parse;f.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),k.call(this,t)};var I=f.init;f.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else I.call(this)};var u=f.utcOffset;f.utcOffset=function(t,M){var P=this.$utils().u;if(P(t))return this.$u?0:P(this.$offset)?u.call(this):this.$offset;if(typeof t=="string"&&(t=function(A){A===void 0&&(A="");var B=A.match(g);if(!B)return null;var H=(""+B[0]).match(E)||["-",0,0],W=H[0],R=60*+H[1]+ +H[2];return R===0?0:W==="+"?R:-R}(t),t===null))return this;var U=Math.abs(t)<=16?60*t:t;if(U===0)return this.utc(M);var D=this.clone();if(M)return D.$offset=U,D.$u=!1,D;var q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(D=this.local().add(U+q,c)).$offset=U,D.$x.$localOffset=q,D};var L=f.format;f.format=function(t){var M=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return L.call(this,M)},f.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},f.isUTC=function(){return!!this.$u},f.toISOString=function(){return this.toDate().toISOString()},f.toString=function(){return this.toDate().toUTCString()};var y=f.toDate;f.toDate=function(t){return t==="s"&&this.$offset?_(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var C=f.diff;f.diff=function(t,M,P){if(t&&this.$u===t.$u)return C.call(this,t,M,P);var U=this.local(),D=_(t).local();return C.call(U,D,M,P)}}})})(ie);var fe=ie.exports;const pe=te(fe);ae.extend(pe);function me(){let d=new Date().getTimezoneOffset();const b=Math.abs(Math.floor(d/60)),c=d<0?"+":"-";return d=Math.abs(d%60),c+b.toString().padStart(2,"0")+d.toString().padStart(2,"0")}function J(d,b,c){return d?(b===void 0&&(b="YYYY-MM-DD HH:mm:ss"),c||(c=me()),ae.utc(d).utcOffset(c).format(b)):""}const ue={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function se(d,b="cn"){const c=ue[b],g=Math.floor(d/(24*60*60*1e3)),E=Math.floor(d/(60*60*1e3)-g*24),h=Math.floor(d/(60*1e3)-g*24*60-E*60),N=Math.floor(d/1e3-g*24*60*60-E*60*60-h*60);return g>0?g+c.days+E+c.hours+h+c.minutes:E>0?E+c.hours+h+c.minutes:h>0?h+c.minutes:N>0?N+c.seconds:0+c.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"},Te={key:0},Se={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"}},Ce={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ae={key:2},Fe=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(d){const b=()=>{console.log(c("processFlow.flow"))},{t:c}=de.useI18n();console.log("ttttttttttttttttttttttt",c);const g={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},E=h=>[0,1,6,7].includes(h.status)?"primary":h.status===2?"success":h.status===3?"danger":h.status===4?"info":h.status===5?"warning":"";return(h,N)=>{var C;const _=e.resolveComponent("el-button"),f=e.resolveComponent("Icon"),k=e.resolveComponent("dict-tag"),I=e.resolveComponent("el-tag"),u=e.resolveComponent("el-card"),L=e.resolveComponent("el-timeline-item"),y=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(_,{onClick:b},{default:e.withCtx(()=>[...N[0]||(N[0]=[e.createTextVNode("获取国际化值",-1)])]),_:1}),e.createElementVNode("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(e.unref(c)("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(d.processInstance.id),1)]),e.createElementVNode("div",we,[e.createElementVNode("span",null,e.toDisplayString(d.processInstance.name),1)])]),e.createElementVNode("div",he,[e.createElementVNode("div",Ne,[e.createElementVNode("p",null,e.toDisplayString(e.unref(c)("processFlow.startTime"))+e.toDisplayString(e.unref(J)(d.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(e.unref(c)("processFlow.endTime"))+e.toDisplayString(e.unref(J)(d.processInstance.endTime)),1),d.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Te,e.toDisplayString(e.unref(c)("processFlow.duration"))+e.toDisplayString(e.unref(se)((C=d.processInstance)==null?void 0:C.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(f,{size:100,icon:g[d.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Se,[e.createVNode(y,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.tasks,(t,M)=>(e.openBlock(),e.createBlock(L,{key:M,type:E(t)||"info"},{dot:e.withCtx(()=>{var P;return[e.createElementVNode("img",{src:((P=t==null?void 0:t.assigneeUser)==null?void 0:P.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(t.name)+" ",1),t.status?(e.openBlock(),e.createBlock(k,{key:0,type:"bpm_task_status",value:t.status||""},null,8,["value"])):e.createCommentVNode("",!0)]),e.createVNode(u,{"body-style":{padding:"10px"}},{default:e.withCtx(()=>{var P,U,D,q;return[M===0?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(((P=t.assigneeUser)==null?void 0:P.nickname)||((U=t.ownerUser)==null?void 0:U.nickname))+" ",1),e.createVNode(I,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var A,B;return[e.createTextVNode(e.toDisplayString((B=(A=d.processInstance)==null?void 0:A.startUser)==null?void 0:B.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),t.assigneeUser?(e.openBlock(),e.createElementBlock("label",xe,[e.createTextVNode(e.toDisplayString(e.unref(c)("processFlow.approver"))+e.toDisplayString(((D=t.assigneeUser)==null?void 0:D.nickname)||((q=t.ownerUser)==null?void 0:q.nickname))+" ",1),e.createVNode(I,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.assigneeUser.deptName),1)]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[t.createTime&&!t.endTime?(e.openBlock(),e.createElementBlock("label",De,e.toDisplayString(e.unref(c)("processFlow.createTime")),1)):e.createCommentVNode("",!0),t.createTime&&!t.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(e.unref(J)(t==null?void 0:t.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),t.endTime?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(e.unref(c)("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),t.endTime?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(e.unref(J)(t==null?void 0:t.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),t.durationInMillis?(e.openBlock(),e.createElementBlock("label",Be,e.toDisplayString(e.unref(c)("processFlow.duration")),1)):e.createCommentVNode("",!0),t.durationInMillis?(e.openBlock(),e.createElementBlock("label",Ce,e.toDisplayString(e.unref(se)(t==null?void 0:t.durationInMillis)),1)):e.createCommentVNode("",!0)]),t.reason?(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString(e.unref(c)("processFlow.approvalSuggestion"))+e.toDisplayString(t.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])],64)}}}),Oe="",oe=(d,b)=>{const c=d.__vccOpts||d;for(const[g,E]of b)c[g]=E;return c},ve=oe(Fe,[["__scopeId","data-v-c3de9c24"]]),Ie=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(d){const b=d,c=e.ref(!1),g=e.ref({}),E=e.ref({}),h=e.ref(""),N=e.ref([]),_=e.ref(""),f=u=>{_.value=u,k(),I()},k=async()=>{var u,L;try{c.value=!0;const y={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}};g.value=y==null?void 0:y.processInstance,h.value=(L=(u=y==null?void 0:y.processInstance)==null?void 0:u.formVariables)==null?void 0:L.applicationPrefix,E.value=y==null?void 0:y.todoTask}finally{c.value=!1}},v=async()=>{N.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(()=>b.processInstanceId,u=>{u&&u!==_.value&&f(u)},{immediate:!0,deep:!0}),(u,L)=>(e.openBlock(),e.createBlock(ve,{"process-instance":g.value,tasks:N.value},null,8,["process-instance","tasks"]))}}),Oe="",le=oe(Ie,[["__scopeId","data-v-a4649f52"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"任务不不在"}},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"task not exist"}},Symbol.toStringTag,{value:"Module"}));let Z=null,G=null;const Re={install(d,b){if(console.log("插件install执行,options:",b),!(b!=null&&b.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");Z=b.request,G=b.i18n,G.global.mergeLocaleMessage("zh-CN",Ue),G.global.mergeLocaleMessage("en",Le),d.component("CmcProcessFlow",le)}};function re(){if(!G)throw new Error("没有_i18n对象");return G}function Ve(){if(!Z)throw new Error("没有_request对象");return Z}U.CmcProcessFlow=le,U.default=Re,U.getI18n=re,U.getRequest=Ve,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}};g.value=y==null?void 0:y.processInstance,h.value=(L=(u=y==null?void 0:y.processInstance)==null?void 0:u.formVariables)==null?void 0:L.applicationPrefix,E.value=y==null?void 0:y.todoTask}finally{c.value=!1}},I=async()=>{N.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(()=>b.processInstanceId,u=>{u&&u!==_.value&&f(u)},{immediate:!0,deep:!0}),(u,L)=>(e.openBlock(),e.createBlock(ve,{"process-instance":g.value,tasks:N.value},null,8,["process-instance","tasks"]))}}),ze="",le=oe(Ie,[["__scopeId","data-v-8157be09"]]),Ue=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"任务不不在"}},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null,bpm:{taskNotExist:"task not exist"}},Symbol.toStringTag,{value:"Module"}));let Z=null,G=null;const Re={install(d,b){if(console.log("插件install执行,options:",b),!(b!=null&&b.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");Z=b.request,G=b.i18n,G.global.mergeLocaleMessage("zh-CN",Ue),G.global.mergeLocaleMessage("en",Le),d.component("CmcProcessFlow",le)}};function Ve(){if(!G)throw new Error("没有_i18n对象");return G}function qe(){if(!Z)throw new Error("没有_request对象");return Z}v.CmcProcessFlow=le,v.default=Re,v.getI18n=Ve,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-e07cfd42]{width:100px;height:100px;background:red}.avatar-wrap[data-v-e07cfd42]{width:40px;height:40px}.flow-start{p[data-v-e07cfd42] {margin: 0px; padding-top: 10px; font-size: 14px;}}.flow-start[data-v-e07cfd42]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgba(245,247,253,1)}[data-v-e07cfd42] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-e07cfd42]{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}
1
+ @charset "UTF-8";.test[data-v-c3de9c24]{width:100px;height:100px;background:red}.avatar-wrap[data-v-c3de9c24]{width:40px;height:40px}.flow-start{p[data-v-c3de9c24] {margin: 0px; padding-top: 10px; font-size: 14px;}}.flow-start[data-v-c3de9c24]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgba(245,247,253,1)}[data-v-c3de9c24] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-c3de9c24]{flex:1;min-height:0;overflow-y:auto}.process-container[data-v-8157be09]{height:100%;box-sizing:border-box}.process-container[data-v-8157be09]>.el-card__body{height:100%;padding-bottom:0}.process-container[data-v-8157be09]>.el-card__body>div{height:100%;display:flex;flex-direction:column}.approval-actions[data-v-8157be09]{margin:20px 0}.approval-actions .action-buttons[data-v-8157be09]{display:flex;flex-direction:column;gap:12px}.approval-actions .action-buttons .basic-actions[data-v-8157be09]{display:flex;gap:12px}.approval-actions .action-buttons .extended-actions[data-v-8157be09]{display:flex;gap:12px;flex-wrap:wrap}.approval-dialogs[data-v-8157be09]{display:contents}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbb-component-ui",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -12,19 +12,21 @@
12
12
  "description": "",
13
13
  "devDependencies": {
14
14
  "@vitejs/plugin-vue": "^4.0.0",
15
+ "dayjs": "^1.11.10",
15
16
  "element-plus": "^2.0.0",
17
+ "sass": "1.69.3",
16
18
  "typescript": "^5.0.0",
19
+ "unocss": "^0.56.5",
17
20
  "vite": "^4.0.0",
18
21
  "vite-plugin-dts": "^4.5.4",
19
22
  "vue": "^3.2.0",
20
- "vue-tsc": "^1.8.27",
21
- "dayjs": "^1.11.10",
22
- "unocss": "^0.56.5",
23
- "sass": "1.69.3"
23
+ "vue-i18n": "^9.5.0",
24
+ "vue-tsc": "^1.8.27"
24
25
  },
25
26
  "peerDependencies": {
26
27
  "element-plus": ">=2.0.0",
27
- "vue": "^3.0.0"
28
+ "vue": "^3.0.0",
29
+ "vue-i18n": "^9.5.0"
28
30
  },
29
31
  "peerDependenciesMeta": {
30
32
  "vue": {
@@ -94,7 +94,7 @@
94
94
 
95
95
  <script lang="ts" setup>
96
96
  import { formatDate, formatPast2 } from '@/utils/formatTime'
97
- import {getI18n} from "../../../index";
97
+ import { useI18n } from 'vue-i18n'
98
98
 
99
99
  const handleClick = () => {
100
100
  console.log(t('processFlow.flow'))
@@ -102,7 +102,7 @@ const handleClick = () => {
102
102
 
103
103
  defineOptions({ name: 'BpmProcessInstanceTaskList' })
104
104
 
105
- const t = getI18n()
105
+ const { t } = useI18n() // 国际化
106
106
  console.log('ttttttttttttttttttttttt', t)
107
107
  const statusIconMapping = {
108
108
  1: 'svg-icon:approvalPending', // 审批中
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
- import { ElMessage } from 'element-plus'
8
+ // import { ElMessage } from 'element-plus'
9
9
  import {ref, watch} from "vue";
10
10
  // import * as processInstanceApi from "@/api/processInstance";
11
11
  // import * as taskApi from "@/api/task";
@@ -493,9 +493,9 @@ watch(
493
493
  )
494
494
 
495
495
 
496
- const open = () => {
497
- ElMessage.success('aaa!')
498
- }
496
+ // const open = () => {
497
+ // ElMessage.success('aaa!')
498
+ // }
499
499
  </script>
500
500
 
501
501
  <style scoped lang="scss">
package/vite.config.js CHANGED
@@ -32,15 +32,16 @@ export default defineConfig({
32
32
  rollupOptions: {
33
33
  // 【关键】外部化vue和element-plus,不打包进组件库
34
34
  external: [
35
- // '@/utils/formatTime',
36
35
  'vue',
37
36
  'element-plus',
37
+ 'vue-i18n'
38
38
  ],
39
39
  output: {
40
40
  // UMD模式下的全局变量名
41
41
  globals: {
42
42
  vue: 'Vue',
43
- 'element-plus': 'ElementPlus'
43
+ 'element-plus': 'ElementPlus',
44
+ 'vue-i18n': 'VueI18n'
44
45
  }
45
46
  }
46
47
  }