nbb-component-ui 1.6.0 → 1.6.2

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.umd.js CHANGED
@@ -1 +1,222 @@
1
- (function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.NbbComponentUi={},B.Vue,B.ElementPlus))})(this,function(B,t,X){"use strict";const ut=i=>tt().get({url:"/system/bpm/process-instance/get-approval-detail",params:{processInstanceId:i}}),ft=i=>tt().get({url:"/system/bpm/task/list-by-process-instance-id",params:{processInstanceId:i}});var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nt(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var st={exports:{}};(function(i,h){(function(f,$){i.exports=$()})(et,function(){var f=1e3,$=6e4,y=36e5,I="millisecond",k="second",D="minute",d="hour",N="day",Y="week",S="month",T="quarter",o="year",m="date",a="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,H=/\[([^\]]+)]|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,E={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(c){var s=["th","st","nd","rd"],e=c%100;return"["+c+(s[(e-20)%10]||s[e]||s[0])+"]"}},x=function(c,s,e){var r=String(c);return!r||r.length>=s?c:""+Array(s+1-r.length).join(e)+c},P={s:x,z:function(c){var s=-c.utcOffset(),e=Math.abs(s),r=Math.floor(e/60),n=e%60;return(s<=0?"+":"-")+x(r,2,"0")+":"+x(n,2,"0")},m:function c(s,e){if(s.date()<e.date())return-c(e,s);var r=12*(e.year()-s.year())+(e.month()-s.month()),n=s.clone().add(r,S),l=e-n<0,u=s.clone().add(r+(l?-1:1),S);return+(-(r+(e-n)/(l?n-u:u-n))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:S,y:o,w:Y,d:N,D:m,h:d,m:D,s:k,ms:I,Q:T}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},F="en",U={};U[F]=E;var W="$isDayjsObject",z=function(c){return c instanceof Q||!(!c||!c[W])},L=function c(s,e,r){var n;if(!s)return F;if(typeof s=="string"){var l=s.toLowerCase();U[l]&&(n=l),e&&(U[l]=e,n=l);var u=s.split("-");if(!n&&u.length>1)return c(u[0])}else{var g=s.name;U[g]=s,n=g}return!r&&n&&(F=n),n||!r&&F},M=function(c,s){if(z(c))return c.clone();var e=typeof s=="object"?s:{};return e.date=c,e.args=arguments,new Q(e)},p=P;p.l=L,p.i=z,p.w=function(c,s){return M(c,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var Q=function(){function c(e){this.$L=L(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[W]=!0}var s=c.prototype;return s.parse=function(e){this.$d=function(r){var n=r.date,l=r.utc;if(n===null)return new Date(NaN);if(p.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var u=n.match(b);if(u){var g=u[2]-1||0,_=(u[7]||"0").substring(0,3);return l?new Date(Date.UTC(u[1],g,u[3]||1,u[4]||0,u[5]||0,u[6]||0,_)):new Date(u[1],g,u[3]||1,u[4]||0,u[5]||0,u[6]||0,_)}}return new Date(n)}(e),this.init()},s.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},s.$utils=function(){return p},s.isValid=function(){return this.$d.toString()!==a},s.isSame=function(e,r){var n=M(e);return this.startOf(r)<=n&&n<=this.endOf(r)},s.isAfter=function(e,r){return M(e)<this.startOf(r)},s.isBefore=function(e,r){return this.endOf(r)<M(e)},s.$g=function(e,r,n){return p.u(e)?this[r]:this.set(n,e)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(e,r){var n=this,l=!!p.u(r)||r,u=p.p(e),g=function(v,O){var j=p.w(n.$u?Date.UTC(n.$y,O,v):new Date(n.$y,O,v),n);return l?j:j.endOf(N)},_=function(v,O){return p.w(n.toDate()[v].apply(n.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(O)),n)},w=this.$W,C=this.$M,V=this.$D,A="set"+(this.$u?"UTC":"");switch(u){case o:return l?g(1,0):g(31,11);case S:return l?g(1,C):g(0,C+1);case Y:var q=this.$locale().weekStart||0,Z=(w<q?w+7:w)-q;return g(l?V-Z:V+(6-Z),C);case N:case m:return _(A+"Hours",0);case d:return _(A+"Minutes",1);case D:return _(A+"Seconds",2);case k:return _(A+"Milliseconds",3);default:return this.clone()}},s.endOf=function(e){return this.startOf(e,!1)},s.$set=function(e,r){var n,l=p.p(e),u="set"+(this.$u?"UTC":""),g=(n={},n[N]=u+"Date",n[m]=u+"Date",n[S]=u+"Month",n[o]=u+"FullYear",n[d]=u+"Hours",n[D]=u+"Minutes",n[k]=u+"Seconds",n[I]=u+"Milliseconds",n)[l],_=l===N?this.$D+(r-this.$W):r;if(l===S||l===o){var w=this.clone().set(m,1);w.$d[g](_),w.init(),this.$d=w.set(m,Math.min(this.$D,w.daysInMonth())).$d}else g&&this.$d[g](_);return this.init(),this},s.set=function(e,r){return this.clone().$set(e,r)},s.get=function(e){return this[p.p(e)]()},s.add=function(e,r){var n,l=this;e=Number(e);var u=p.p(r),g=function(C){var V=M(l);return p.w(V.date(V.date()+Math.round(C*e)),l)};if(u===S)return this.set(S,this.$M+e);if(u===o)return this.set(o,this.$y+e);if(u===N)return g(1);if(u===Y)return g(7);var _=(n={},n[D]=$,n[d]=y,n[k]=f,n)[u]||1,w=this.$d.getTime()+e*_;return p.w(w,this)},s.subtract=function(e,r){return this.add(-1*e,r)},s.format=function(e){var r=this,n=this.$locale();if(!this.isValid())return n.invalidDate||a;var l=e||"YYYY-MM-DDTHH:mm:ssZ",u=p.z(this),g=this.$H,_=this.$m,w=this.$M,C=n.weekdays,V=n.months,A=n.meridiem,q=function(O,j,J,K){return O&&(O[j]||O(r,l))||J[j].slice(0,K)},Z=function(O){return p.s(g%12||12,O,"0")},v=A||function(O,j,J){var K=O<12?"AM":"PM";return J?K.toLowerCase():K};return l.replace(H,function(O,j){return j||function(J){switch(J){case"YY":return String(r.$y).slice(-2);case"YYYY":return p.s(r.$y,4,"0");case"M":return w+1;case"MM":return p.s(w+1,2,"0");case"MMM":return q(n.monthsShort,w,V,3);case"MMMM":return q(V,w);case"D":return r.$D;case"DD":return p.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return q(n.weekdaysMin,r.$W,C,2);case"ddd":return q(n.weekdaysShort,r.$W,C,3);case"dddd":return C[r.$W];case"H":return String(g);case"HH":return p.s(g,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return v(g,_,!0);case"A":return v(g,_,!1);case"m":return String(_);case"mm":return p.s(_,2,"0");case"s":return String(r.$s);case"ss":return p.s(r.$s,2,"0");case"SSS":return p.s(r.$ms,3,"0");case"Z":return u}return null}(O)||u.replace(":","")})},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(e,r,n){var l,u=this,g=p.p(r),_=M(e),w=(_.utcOffset()-this.utcOffset())*$,C=this-_,V=function(){return p.m(u,_)};switch(g){case o:l=V()/12;break;case S:l=V();break;case T:l=V()/3;break;case Y:l=(C-w)/6048e5;break;case N:l=(C-w)/864e5;break;case d:l=C/y;break;case D:l=C/$;break;case k:l=C/f;break;default:l=C}return n?l:p.a(l)},s.daysInMonth=function(){return this.endOf(S).$D},s.$locale=function(){return U[this.$L]},s.locale=function(e,r){if(!e)return this.$L;var n=this.clone(),l=L(e,r,!0);return l&&(n.$L=l),n},s.clone=function(){return p.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},c}(),lt=Q.prototype;return M.prototype=lt,[["$ms",I],["$s",k],["$m",D],["$H",d],["$W",N],["$M",S],["$y",o],["$D",m]].forEach(function(c){lt[c[1]]=function(s){return this.$g(s,c[0],c[1])}}),M.extend=function(c,s){return c.$i||(c(s,Q,M),c.$i=!0),M},M.locale=L,M.isDayjs=z,M.unix=function(c){return M(1e3*c)},M.en=U[F],M.Ls=U,M.p={},M})})(st);var dt=st.exports;const rt=nt(dt);var ot={exports:{}};(function(i,h){(function(f,$){i.exports=$()})(et,function(){var f="minute",$=/[+-]\d\d(?::?\d\d)?/g,y=/([+-]|\d\d)/g;return function(I,k,D){var d=k.prototype;D.utc=function(a){var b={date:a,utc:!0,args:arguments};return new k(b)},d.utc=function(a){var b=D(this.toDate(),{locale:this.$L,utc:!0});return a?b.add(this.utcOffset(),f):b},d.local=function(){return D(this.toDate(),{locale:this.$L,utc:!1})};var N=d.parse;d.parse=function(a){a.utc&&(this.$u=!0),this.$utils().u(a.$offset)||(this.$offset=a.$offset),N.call(this,a)};var Y=d.init;d.init=function(){if(this.$u){var a=this.$d;this.$y=a.getUTCFullYear(),this.$M=a.getUTCMonth(),this.$D=a.getUTCDate(),this.$W=a.getUTCDay(),this.$H=a.getUTCHours(),this.$m=a.getUTCMinutes(),this.$s=a.getUTCSeconds(),this.$ms=a.getUTCMilliseconds()}else Y.call(this)};var S=d.utcOffset;d.utcOffset=function(a,b){var H=this.$utils().u;if(H(a))return this.$u?0:H(this.$offset)?S.call(this):this.$offset;if(typeof a=="string"&&(a=function(F){F===void 0&&(F="");var U=F.match($);if(!U)return null;var W=(""+U[0]).match(y)||["-",0,0],z=W[0],L=60*+W[1]+ +W[2];return L===0?0:z==="+"?L:-L}(a),a===null))return this;var E=Math.abs(a)<=16?60*a:a;if(E===0)return this.utc(b);var x=this.clone();if(b)return x.$offset=E,x.$u=!1,x;var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(x=this.local().add(E+P,f)).$offset=E,x.$x.$localOffset=P,x};var T=d.format;d.format=function(a){var b=a||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return T.call(this,b)},d.valueOf=function(){var a=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*a},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var o=d.toDate;d.toDate=function(a){return a==="s"&&this.$offset?D(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():o.call(this)};var m=d.diff;d.diff=function(a,b,H){if(a&&this.$u===a.$u)return m.call(this,a,b,H);var E=this.local(),x=D(a).local();return m.call(E,x,b,H)}}})})(ot);var ht=ot.exports;const pt=nt(ht);rt.extend(pt);function mt(){let i=new Date().getTimezoneOffset();const h=Math.abs(Math.floor(i/60)),f=i<0?"+":"-";return i=Math.abs(i%60),f+h.toString().padStart(2,"0")+i.toString().padStart(2,"0")}function R(i,h,f){return i?(h===void 0&&(h="YYYY-MM-DD HH:mm:ss"),f||(f=mt()),rt.utc(i).utcOffset(f).format(h)):""}const gt={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function at(i,h="cn"){const f=gt[h],$=Math.floor(i/(24*60*60*1e3)),y=Math.floor(i/(60*60*1e3)-$*24),I=Math.floor(i/(60*1e3)-$*24*60-y*60),k=Math.floor(i/1e3-$*24*60*60-y*60*60-I*60);return $>0?$+f.days+y+f.hours+I+f.minutes:y>0?y+f.hours+I+f.minutes:I>0?I+f.minutes:k>0?k+f.seconds:0+f.seconds}const yt={class:"scroll-area"},$t={class:"flow-header flex justify-between"},_t={class:"text-18px font-bold"},Dt={class:"text-14px font-bold",style:{color:"#005aae"}},Mt={class:"flex items-center"},wt={class:"flow-start"},kt={key:0},St={class:"mt-30px block"},Tt=["src"],bt={style:{"font-weight":"700"}},Ct={key:0,style:{"margin-right":"30px","font-weight":"normal"}},xt={key:1,style:{"margin-right":"30px","font-weight":"normal"}},Nt={key:0,style:{"font-weight":"normal"}},Ot={key:1,style:{"font-weight":"normal",color:"#8a909c"}},It={key:2,style:{"font-weight":"normal"}},Vt={key:3,style:{"font-weight":"normal",color:"#8a909c"}},Et={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Bt={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Yt={key:2},Ht=t.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(i){const h=y=>y,f={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},$=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,I)=>{var T;const k=t.resolveComponent("Icon"),D=t.resolveComponent("dict-tag"),d=t.resolveComponent("el-tag"),N=t.resolveComponent("el-card"),Y=t.resolveComponent("el-timeline-item"),S=t.resolveComponent("el-timeline");return t.openBlock(),t.createElementBlock("div",yt,[t.createElementVNode("div",$t,[t.createElementVNode("div",_t,[t.createElementVNode("span",null,t.toDisplayString(h("processFlow.flow")),1),t.createElementVNode("span",null,t.toDisplayString(i.processInstance.id),1)]),t.createElementVNode("div",Dt,[t.createElementVNode("span",null,t.toDisplayString(i.processInstance.name),1)])]),t.createElementVNode("div",Mt,[t.createElementVNode("div",wt,[t.createElementVNode("p",null,t.toDisplayString(h("processFlow.startTime"))+t.toDisplayString(t.unref(R)(i.processInstance.startTime)),1),t.createElementVNode("p",null,t.toDisplayString(h("processFlow.endTime"))+t.toDisplayString(t.unref(R)(i.processInstance.endTime)),1),i.processInstance.durationInMillis?(t.openBlock(),t.createElementBlock("p",kt,t.toDisplayString(h("processFlow.duration"))+t.toDisplayString(t.unref(at)((T=i.processInstance)==null?void 0:T.durationInMillis)),1)):t.createCommentVNode("",!0)]),t.createVNode(k,{size:100,icon:f[i.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),t.createElementVNode("div",St,[t.createVNode(S,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.tasks,(o,m)=>(t.openBlock(),t.createBlock(Y,{key:m,type:$(o)||"info"},{dot:t.withCtx(()=>{var a;return[t.createElementVNode("img",{src:((a=o==null?void 0:o.assigneeUser)==null?void 0:a.avatar)||"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",class:"avatar-wrap"},null,8,Tt)]}),default:t.withCtx(()=>[t.createElementVNode("p",bt,[t.createTextVNode(t.toDisplayString(o.name)+" ",1),o.status?(t.openBlock(),t.createBlock(D,{key:0,type:"bpm_task_status",value:o.status||""},null,8,["value"])):t.createCommentVNode("",!0)]),t.createVNode(N,{"body-style":{padding:"10px"}},{default:t.withCtx(()=>{var a,b,H,E;return[m===0?(t.openBlock(),t.createElementBlock("label",Ct,[t.createTextVNode(t.toDisplayString(((a=o.assigneeUser)==null?void 0:a.nickname)||((b=o.ownerUser)==null?void 0:b.nickname))+" ",1),t.createVNode(d,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:t.withCtx(()=>{var x,P;return[t.createTextVNode(t.toDisplayString((P=(x=i.processInstance)==null?void 0:x.startUser)==null?void 0:P.deptName),1)]}),_:1})])):t.createCommentVNode("",!0),o.assigneeUser?(t.openBlock(),t.createElementBlock("label",xt,[t.createTextVNode(t.toDisplayString(h("processFlow.approver"))+t.toDisplayString(((H=o.assigneeUser)==null?void 0:H.nickname)||((E=o.ownerUser)==null?void 0:E.nickname))+" ",1),t.createVNode(d,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.assigneeUser.deptName),1)]),_:2},1024)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[o.createTime&&!o.endTime?(t.openBlock(),t.createElementBlock("label",Nt,t.toDisplayString(h("processFlow.createTime")),1)):t.createCommentVNode("",!0),o.createTime&&!o.endTime?(t.openBlock(),t.createElementBlock("label",Ot,t.toDisplayString(t.unref(R)(o==null?void 0:o.createTime,"MM-DD HH:mm")),1)):t.createCommentVNode("",!0),o.endTime?(t.openBlock(),t.createElementBlock("label",It,t.toDisplayString(h("processFlow.approvalTime")),1)):t.createCommentVNode("",!0),o.endTime?(t.openBlock(),t.createElementBlock("label",Vt,t.toDisplayString(t.unref(R)(o==null?void 0:o.endTime,"MM-DD HH:mm")),1)):t.createCommentVNode("",!0),o.durationInMillis?(t.openBlock(),t.createElementBlock("label",Et,t.toDisplayString(h("processFlow.duration")),1)):t.createCommentVNode("",!0),o.durationInMillis?(t.openBlock(),t.createElementBlock("label",Bt,t.toDisplayString(t.unref(at)(o==null?void 0:o.durationInMillis)),1)):t.createCommentVNode("",!0)]),o.reason?(t.openBlock(),t.createElementBlock("div",Yt,t.toDisplayString(h("processFlow.approvalSuggestion"))+t.toDisplayString(o.reason),1)):t.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),jt="",it=(i,h)=>{const f=i.__vccOpts||i;for(const[$,y]of h)f[$]=y;return f},Ut=it(Ht,[["__scopeId","data-v-f8ad04ec"]]),Ft=t.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{},request:{}},setup(i){const h=i,f=t.ref(!1),$=t.ref({}),y=t.ref({}),I=t.ref(""),k=t.ref([]),D=t.ref(""),d=T=>{D.value=T,N(),Y()},N=async()=>{var T,o;try{f.value=!0;const m=await ut(D.value);if(!m){X.ElMessage.error("查询不到审批详情信息!");return}if(!m.processDefinition||!m.processInstance){X.ElMessage.error("查询不到流程信息!");return}$.value=m==null?void 0:m.processInstance,I.value=(o=(T=m==null?void 0:m.processInstance)==null?void 0:T.formVariables)==null?void 0:o.applicationPrefix,y.value=m==null?void 0:m.todoTask}finally{f.value=!1}},Y=async()=>{k.value=await ft(D.value)};t.watch(()=>h.processInstanceId,T=>{T&&T!==D.value&&d(T)},{immediate:!0,deep:!0});const S=()=>{X.ElMessage.success("aaa!")};return(T,o)=>{const m=t.resolveComponent("el-button");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(m,{onClick:S},{default:t.withCtx(()=>[...o[0]||(o[0]=[t.createTextVNode("测试按钮10",-1)])]),_:1}),t.createVNode(Ut,{"process-instance":$.value,tasks:k.value},null,8,["process-instance","tasks"])],64)}}}),Pt="",ct=it(Ft,[["__scopeId","data-v-a8376ef8"]]);let G=null;const Lt={install(i,h){if(console.log("插件install执行,options:",h),!(h!=null&&h.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");G=h.request,i.component("CmcProcessFlow",ct)}};function tt(){if(console.log("getRequest",G),!G)throw new Error("没有_request对象");return G}B.CmcProcessFlow=ct,B.default=Lt,B.getRequest=tt,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(v,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(v=typeof globalThis<"u"?globalThis:v||self,e(v.NbbComponentUi={},v.Vue,v.ElementPlus))})(this,function(v,e,re){"use strict";var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ee(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var te={exports:{}};(function(c,m){(function(f,w){c.exports=w()})(Z,function(){var f=1e3,w=6e4,y=36e5,B="millisecond",S="second",M="minute",p="hour",$="day",F="week",_="month",E="quarter",s="year",g="date",o="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var a=["th","st","nd","rd"],t=l%100;return"["+l+(a[(t-20)%10]||a[t]||a[0])+"]"}},k=function(l,a,t){var i=String(l);return!i||i.length>=a?l:""+Array(a+1-i.length).join(t)+l},q={s:k,z:function(l){var a=-l.utcOffset(),t=Math.abs(a),i=Math.floor(t/60),n=t%60;return(a<=0?"+":"-")+k(i,2,"0")+":"+k(n,2,"0")},m:function l(a,t){if(a.date()<t.date())return-l(t,a);var i=12*(t.year()-a.year())+(t.month()-a.month()),n=a.clone().add(i,_),r=t-n<0,d=a.clone().add(i+(r?-1:1),_);return+(-(i+(t-n)/(r?n-d:d-n))||0)},a:function(l){return l<0?Math.ceil(l)||0:Math.floor(l)},p:function(l){return{M:_,y:s,w:F,d:$,D:g,h:p,m:M,s:S,ms:B,Q:E}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(l){return l===void 0}},L="en",U={};U[L]=C;var z="$isDayjsObject",G=function(l){return l instanceof K||!(!l||!l[z])},R=function l(a,t,i){var n;if(!a)return L;if(typeof a=="string"){var r=a.toLowerCase();U[r]&&(n=r),t&&(U[r]=t,n=r);var d=a.split("-");if(!n&&d.length>1)return l(d[0])}else{var b=a.name;U[b]=a,n=b}return!i&&n&&(L=n),n||!i&&L},N=function(l,a){if(G(l))return l.clone();var t=typeof a=="object"?a:{};return t.date=l,t.args=arguments,new K(t)},u=q;u.l=R,u.i=G,u.w=function(l,a){return N(l,{locale:a.$L,utc:a.$u,x:a.$x,$offset:a.$offset})};var K=function(){function l(t){this.$L=R(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[z]=!0}var a=l.prototype;return a.parse=function(t){this.$d=function(i){var n=i.date,r=i.utc;if(n===null)return new Date(NaN);if(u.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var d=n.match(x);if(d){var b=d[2]-1||0,h=(d[7]||"0").substring(0,3);return r?new Date(Date.UTC(d[1],b,d[3]||1,d[4]||0,d[5]||0,d[6]||0,h)):new Date(d[1],b,d[3]||1,d[4]||0,d[5]||0,d[6]||0,h)}}return new Date(n)}(t),this.init()},a.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},a.$utils=function(){return u},a.isValid=function(){return this.$d.toString()!==o},a.isSame=function(t,i){var n=N(t);return this.startOf(i)<=n&&n<=this.endOf(i)},a.isAfter=function(t,i){return N(t)<this.startOf(i)},a.isBefore=function(t,i){return this.endOf(i)<N(t)},a.$g=function(t,i,n){return u.u(t)?this[i]:this.set(n,t)},a.unix=function(){return Math.floor(this.valueOf()/1e3)},a.valueOf=function(){return this.$d.getTime()},a.startOf=function(t,i){var n=this,r=!!u.u(i)||i,d=u.p(t),b=function(O,P){var V=u.w(n.$u?Date.UTC(n.$y,P,O):new Date(n.$y,P,O),n);return r?V:V.endOf($)},h=function(O,P){return u.w(n.toDate()[O].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(P)),n)},T=this.$W,D=this.$M,A=this.$D,j="set"+(this.$u?"UTC":"");switch(d){case s:return r?b(1,0):b(31,11);case _:return r?b(1,D):b(0,D+1);case F:var H=this.$locale().weekStart||0,W=(T<H?T+7:T)-H;return b(r?A-W:A+(6-W),D);case $:case g:return h(j+"Hours",0);case p:return h(j+"Minutes",1);case M:return h(j+"Seconds",2);case S:return h(j+"Milliseconds",3);default:return this.clone()}},a.endOf=function(t){return this.startOf(t,!1)},a.$set=function(t,i){var n,r=u.p(t),d="set"+(this.$u?"UTC":""),b=(n={},n[$]=d+"Date",n[g]=d+"Date",n[_]=d+"Month",n[s]=d+"FullYear",n[p]=d+"Hours",n[M]=d+"Minutes",n[S]=d+"Seconds",n[B]=d+"Milliseconds",n)[r],h=r===$?this.$D+(i-this.$W):i;if(r===_||r===s){var T=this.clone().set(g,1);T.$d[b](h),T.init(),this.$d=T.set(g,Math.min(this.$D,T.daysInMonth())).$d}else b&&this.$d[b](h);return this.init(),this},a.set=function(t,i){return this.clone().$set(t,i)},a.get=function(t){return this[u.p(t)]()},a.add=function(t,i){var n,r=this;t=Number(t);var d=u.p(i),b=function(D){var A=N(r);return u.w(A.date(A.date()+Math.round(D*t)),r)};if(d===_)return this.set(_,this.$M+t);if(d===s)return this.set(s,this.$y+t);if(d===$)return b(1);if(d===F)return b(7);var h=(n={},n[M]=w,n[p]=y,n[S]=f,n)[d]||1,T=this.$d.getTime()+t*h;return u.w(T,this)},a.subtract=function(t,i){return this.add(-1*t,i)},a.format=function(t){var i=this,n=this.$locale();if(!this.isValid())return n.invalidDate||o;var r=t||"YYYY-MM-DDTHH:mm:ssZ",d=u.z(this),b=this.$H,h=this.$m,T=this.$M,D=n.weekdays,A=n.months,j=n.meridiem,H=function(P,V,Y,X){return P&&(P[V]||P(i,r))||Y[V].slice(0,X)},W=function(P){return u.s(b%12||12,P,"0")},O=j||function(P,V,Y){var X=P<12?"AM":"PM";return Y?X.toLowerCase():X};return r.replace(I,function(P,V){return V||function(Y){switch(Y){case"YY":return String(i.$y).slice(-2);case"YYYY":return u.s(i.$y,4,"0");case"M":return T+1;case"MM":return u.s(T+1,2,"0");case"MMM":return H(n.monthsShort,T,A,3);case"MMMM":return H(A,T);case"D":return i.$D;case"DD":return u.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return H(n.weekdaysMin,i.$W,D,2);case"ddd":return H(n.weekdaysShort,i.$W,D,3);case"dddd":return D[i.$W];case"H":return String(b);case"HH":return u.s(b,2,"0");case"h":return W(1);case"hh":return W(2);case"a":return O(b,h,!0);case"A":return O(b,h,!1);case"m":return String(h);case"mm":return u.s(h,2,"0");case"s":return String(i.$s);case"ss":return u.s(i.$s,2,"0");case"SSS":return u.s(i.$ms,3,"0");case"Z":return d}return null}(P)||d.replace(":","")})},a.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},a.diff=function(t,i,n){var r,d=this,b=u.p(i),h=N(t),T=(h.utcOffset()-this.utcOffset())*w,D=this-h,A=function(){return u.m(d,h)};switch(b){case s:r=A()/12;break;case _:r=A();break;case E:r=A()/3;break;case F:r=(D-T)/6048e5;break;case $:r=(D-T)/864e5;break;case p:r=D/y;break;case M:r=D/w;break;case S:r=D/f;break;default:r=D}return n?r:u.a(r)},a.daysInMonth=function(){return this.endOf(_).$D},a.$locale=function(){return U[this.$L]},a.locale=function(t,i){if(!t)return this.$L;var n=this.clone(),r=R(t,i,!0);return r&&(n.$L=r),n},a.clone=function(){return u.w(this.$d,this)},a.toDate=function(){return new Date(this.valueOf())},a.toJSON=function(){return this.isValid()?this.toISOString():null},a.toISOString=function(){return this.$d.toISOString()},a.toString=function(){return this.$d.toUTCString()},l}(),le=K.prototype;return N.prototype=le,[["$ms",B],["$s",S],["$m",M],["$H",p],["$W",$],["$M",_],["$y",s],["$D",g]].forEach(function(l){le[l[1]]=function(a){return this.$g(a,l[0],l[1])}}),N.extend=function(l,a){return l.$i||(l(a,K,N),l.$i=!0),N},N.locale=R,N.isDayjs=G,N.unix=function(l){return N(1e3*l)},N.en=U[L],N.Ls=U,N.p={},N})})(te);var de=te.exports;const ne=ee(de);var ae={exports:{}};(function(c,m){(function(f,w){c.exports=w()})(Z,function(){var f="minute",w=/[+-]\d\d(?::?\d\d)?/g,y=/([+-]|\d\d)/g;return function(B,S,M){var p=S.prototype;M.utc=function(o){var x={date:o,utc:!0,args:arguments};return new S(x)},p.utc=function(o){var x=M(this.toDate(),{locale:this.$L,utc:!0});return o?x.add(this.utcOffset(),f):x},p.local=function(){return M(this.toDate(),{locale:this.$L,utc:!1})};var $=p.parse;p.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),$.call(this,o)};var F=p.init;p.init=function(){if(this.$u){var o=this.$d;this.$y=o.getUTCFullYear(),this.$M=o.getUTCMonth(),this.$D=o.getUTCDate(),this.$W=o.getUTCDay(),this.$H=o.getUTCHours(),this.$m=o.getUTCMinutes(),this.$s=o.getUTCSeconds(),this.$ms=o.getUTCMilliseconds()}else F.call(this)};var _=p.utcOffset;p.utcOffset=function(o,x){var I=this.$utils().u;if(I(o))return this.$u?0:I(this.$offset)?_.call(this):this.$offset;if(typeof o=="string"&&(o=function(L){L===void 0&&(L="");var U=L.match(w);if(!U)return null;var z=(""+U[0]).match(y)||["-",0,0],G=z[0],R=60*+z[1]+ +z[2];return R===0?0:G==="+"?R:-R}(o),o===null))return this;var C=Math.abs(o)<=16?60*o:o;if(C===0)return this.utc(x);var k=this.clone();if(x)return k.$offset=C,k.$u=!1,k;var q=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(k=this.local().add(C+q,f)).$offset=C,k.$x.$localOffset=q,k};var E=p.format;p.format=function(o){var x=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return E.call(this,x)},p.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var s=p.toDate;p.toDate=function(o){return o==="s"&&this.$offset?M(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var g=p.diff;p.diff=function(o,x,I){if(o&&this.$u===o.$u)return g.call(this,o,x,I);var C=this.local(),k=M(o).local();return g.call(C,k,x,I)}}})})(ae);var ce=ae.exports;const fe=ee(ce);ne.extend(fe);function pe(){let c=new Date().getTimezoneOffset();const m=Math.abs(Math.floor(c/60)),f=c<0?"+":"-";return c=Math.abs(c%60),f+m.toString().padStart(2,"0")+c.toString().padStart(2,"0")}function Q(c,m,f){return c?(m===void 0&&(m="YYYY-MM-DD HH:mm:ss"),f||(f=pe()),ne.utc(c).utcOffset(f).format(m)):""}const me={cn:{seconds:"秒",minutes:"分钟",hours:"小时",days:"天"},en:{seconds:"s",minutes:"m",hours:"h",days:"d"}};function ie(c,m="cn"){const f=me[m],w=Math.floor(c/(24*60*60*1e3)),y=Math.floor(c/(60*60*1e3)-w*24),B=Math.floor(c/(60*1e3)-w*24*60-y*60),S=Math.floor(c/1e3-w*24*60*60-y*60*60-B*60);return w>0?w+f.days+y+f.hours+B+f.minutes:y>0?y+f.hours+B+f.minutes:B>0?B+f.minutes:S>0?S+f.seconds:0+f.seconds}const ue={class:"scroll-area"},be={class:"flow-header flex justify-between"},ge={class:"text-18px font-bold"},ye={class:"text-14px font-bold",style:{color:"#005aae"}},we={class:"flex items-center"},he={class:"flow-start"},Ne={key:0},Te={class:"mt-30px block"},Se=["src"],Me={style:{"font-weight":"700"}},_e={key:0,style:{"margin-right":"30px","font-weight":"normal"}},Ee={key:1,style:{"margin-right":"30px","font-weight":"normal"}},xe={key:0,style:{"font-weight":"normal"}},De={key:1,style:{"font-weight":"normal",color:"#8a909c"}},ke={key:2,style:{"font-weight":"normal"}},$e={key:3,style:{"font-weight":"normal",color:"#8a909c"}},Pe={key:4,style:{"margin-left":"30px","font-weight":"normal"}},Be={key:5,style:{"font-weight":"normal",color:"#8a909c"}},Ae={key:2},Ce=e.defineComponent({name:"BpmProcessInstanceTaskList",__name:"CmcFlowList",props:{processInstance:{},tasks:{}},setup(c){const m=y=>y,f={1:"svg-icon:approvalPending",2:"svg-icon:approvalPass",3:"svg-icon:approvalRejected",4:"svg-icon:approvalCanceled"},w=y=>[0,1,6,7].includes(y.status)?"primary":y.status===2?"success":y.status===3?"danger":y.status===4?"info":y.status===5?"warning":"";return(y,B)=>{var E;const S=e.resolveComponent("Icon"),M=e.resolveComponent("dict-tag"),p=e.resolveComponent("el-tag"),$=e.resolveComponent("el-card"),F=e.resolveComponent("el-timeline-item"),_=e.resolveComponent("el-timeline");return e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",be,[e.createElementVNode("div",ge,[e.createElementVNode("span",null,e.toDisplayString(m("processFlow.flow")),1),e.createElementVNode("span",null,e.toDisplayString(c.processInstance.id),1)]),e.createElementVNode("div",ye,[e.createElementVNode("span",null,e.toDisplayString(c.processInstance.name),1)])]),e.createElementVNode("div",we,[e.createElementVNode("div",he,[e.createElementVNode("p",null,e.toDisplayString(m("processFlow.startTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.startTime)),1),e.createElementVNode("p",null,e.toDisplayString(m("processFlow.endTime"))+e.toDisplayString(e.unref(Q)(c.processInstance.endTime)),1),c.processInstance.durationInMillis?(e.openBlock(),e.createElementBlock("p",Ne,e.toDisplayString(m("processFlow.duration"))+e.toDisplayString(e.unref(ie)((E=c.processInstance)==null?void 0:E.durationInMillis)),1)):e.createCommentVNode("",!0)]),e.createVNode(S,{size:100,icon:f[c.processInstance.status]||"svg-icon:approvalPending"},null,8,["icon"])]),e.createElementVNode("div",Te,[e.createVNode(_,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.tasks,(s,g)=>(e.openBlock(),e.createBlock(F,{key:g,type:w(s)||"info"},{dot:e.withCtx(()=>{var o;return[e.createElementVNode("img",{src:((o=s==null?void 0:s.assigneeUser)==null?void 0:o.avatar)||"https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",class:"avatar-wrap"},null,8,Se)]}),default:e.withCtx(()=>[e.createElementVNode("p",Me,[e.createTextVNode(e.toDisplayString(s.name)+" ",1),s.status?(e.openBlock(),e.createBlock(M,{key:0,type:"bpm_task_status",value:s.status||""},null,8,["value"])):e.createCommentVNode("",!0)]),e.createVNode($,{"body-style":{padding:"10px"}},{default:e.withCtx(()=>{var o,x,I,C;return[g===0?(e.openBlock(),e.createElementBlock("label",_e,[e.createTextVNode(e.toDisplayString(((o=s.assigneeUser)==null?void 0:o.nickname)||((x=s.ownerUser)==null?void 0:x.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>{var k,q;return[e.createTextVNode(e.toDisplayString((q=(k=c.processInstance)==null?void 0:k.startUser)==null?void 0:q.deptName),1)]}),_:1})])):e.createCommentVNode("",!0),s.assigneeUser?(e.openBlock(),e.createElementBlock("label",Ee,[e.createTextVNode(e.toDisplayString(m("processFlow.approver"))+e.toDisplayString(((I=s.assigneeUser)==null?void 0:I.nickname)||((C=s.ownerUser)==null?void 0:C.nickname))+" ",1),e.createVNode(p,{size:"small",type:"info",style:{"vertical-align":"1px"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.assigneeUser.deptName),1)]),_:2},1024)])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[s.createTime&&!s.endTime?(e.openBlock(),e.createElementBlock("label",xe,e.toDisplayString(m("processFlow.createTime")),1)):e.createCommentVNode("",!0),s.createTime&&!s.endTime?(e.openBlock(),e.createElementBlock("label",De,e.toDisplayString(e.unref(Q)(s==null?void 0:s.createTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),s.endTime?(e.openBlock(),e.createElementBlock("label",ke,e.toDisplayString(m("processFlow.approvalTime")),1)):e.createCommentVNode("",!0),s.endTime?(e.openBlock(),e.createElementBlock("label",$e,e.toDisplayString(e.unref(Q)(s==null?void 0:s.endTime,"MM-DD HH:mm")),1)):e.createCommentVNode("",!0),s.durationInMillis?(e.openBlock(),e.createElementBlock("label",Pe,e.toDisplayString(m("processFlow.duration")),1)):e.createCommentVNode("",!0),s.durationInMillis?(e.openBlock(),e.createElementBlock("label",Be,e.toDisplayString(e.unref(ie)(s==null?void 0:s.durationInMillis)),1)):e.createCommentVNode("",!0)]),s.reason?(e.openBlock(),e.createElementBlock("div",Ae,e.toDisplayString(m("processFlow.approvalSuggestion"))+e.toDisplayString(s.reason),1)):e.createCommentVNode("",!0)]}),_:2},1024)]),_:2},1032,["type"]))),128))]),_:1})])])}}}),Le="",se=(c,m)=>{const f=c.__vccOpts||c;for(const[w,y]of m)f[w]=y;return f},ve=se(Ce,[["__scopeId","data-v-f8ad04ec"]]),Fe=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{}},setup(c){const m=c,f=e.ref(!1),w=e.ref({}),y=e.ref({}),B=e.ref(""),S=e.ref([]),M=e.ref(""),p=E=>{M.value=E,$(),F()},$=async()=>{var E,s;try{f.value=!0;const g={status:1,activityNodes:[{id:"StartUserNode",name:"发起人",nodeType:10,status:2,startTime:"2026-04-03T14:19:25+0800",endTime:"2026-04-03T14:19:26+0800",tasks:[{id:"0fff48cd-2f25-11f1-9259-fa163e43f4f0",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},status:2,reason:"发起人节点首次自动通过",signPicUrl:null}],candidateStrategy:36,candidateUsers:[],processInstanceId:null},{id:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",name:"L1或签审批",nodeType:11,status:1,startTime:"2026-04-03T14:19:26+0800",endTime:null,tasks:[{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},status:1,reason:null,signPicUrl:null}],candidateStrategy:60,candidateUsers:[],processInstanceId:null},{id:"Activity_82540b22-2616-4924-9554-8466e1201240",name:"L2会签审批",nodeType:11,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:60,candidateUsers:[{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"}],processInstanceId:null},{id:"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f",name:"L3审批",nodeType:11,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:60,candidateUsers:[{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"}],processInstanceId:null},{id:"EndEvent",name:"结束",nodeType:1,status:-1,startTime:null,endTime:null,tasks:null,candidateStrategy:null,candidateUsers:[],processInstanceId:null}],formFieldsPermission:{deptId:"1",zhiShu:"1",gangWei:"1",fenGuan:"1"},todoTask:{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",name:"L1或签审批",createTime:"2026-04-03T14:19:26+0800",endTime:null,durationInMillis:null,status:1,reason:null,ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:null,parentTaskId:null,children:[],formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:{1:{displayName:"通过",enable:!0},2:{displayName:"拒绝",enable:!0},3:{displayName:"转办",enable:!0},4:{displayName:"委派",enable:!0},5:{displayName:"加签",enable:!0},6:{displayName:"退回",enable:!0}},signEnable:!1,reasonRequire:!1,nodeType:11,timeout:null,categoryName:null,deptName:null,roleName:null,proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:95},processDefinition:{icon:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/44dfaa7b271cd6cde7f394f6aea3e24b/1.png?expires=1768910930044764&signature=0101EhRCzjRM:Mzc4OTE2MDMyNjEyQzM2RkUzNkM5RjIzRjc4MEM4Q0RFQUUwRjIwMw==",description:"",approvalTimeout:1,priority:90,type:null,formType:10,formId:"1995677721519898626",formCustomCreatePath:"/a",formCustomViewPath:"/b",visible:!0,startUserIds:[],startDeptIds:[],managerUserIds:[207],sort:1762130143976,allowCancelRunningProcess:!0,allowWithdrawTask:!1,processIdRule:{enable:!1,prefix:"",infix:"",postfix:"",length:5},autoApprovalType:2,sendMsgTypeSetting:["MAIL"],titleSetting:{enable:!1,title:""},summarySetting:{enable:!1,summary:[]},processBeforeTriggerSetting:null,processAfterTriggerSetting:null,taskBeforeTriggerSetting:null,taskAfterTriggerSetting:null,id:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",version:74,name:"连续多节点simple设计器",key:"simple-multi-node-simple",category:"edi",categoryName:null,modelType:20,modelId:"084d6e51-b84d-11f0-a9da-fa163ecf527b",formConf:'{"form":{"inline":false,"hideRequiredAsterisk":false,"labelPosition":"right","size":"default","labelWidth":"100px"},"resetBtn":{"show":false,"innerText":"重置"},"submitBtn":{"show":true,"innerText":"提交"}}',formFields:['{"type":"input","field":"fenGuan","title":"分管领导","info":"","$required":true,"_fc_id":"id_Fi7kminy00nsafc","name":"ref_Fq5eminy00nsagc","display":true,"hidden":false,"_fc_drag_tag":"input"}','{"type":"input","field":"gangWei","title":"岗位","info":"","$required":true,"_fc_id":"id_Ftwominy1gozalc","name":"ref_F0onminy1gozamc","display":true,"hidden":false,"_fc_drag_tag":"input"}','{"type":"DeptSelect","field":"deptId","title":"部门","info":"","$required":true,"props":{"checkStrictly":true},"_fc_id":"id_Fv2nminyehg2anc","name":"ref_Fzoiminyehg2aoc","display":true,"hidden":false,"_fc_drag_tag":"DeptSelect"}','{"type":"UserSelect","field":"zhiShu","title":"直属领导","info":"","$required":true,"props":{"checkStrictly":false},"_fc_id":"id_Fsrnmipach61abc","name":"ref_Fcuhmipach61acc","display":true,"hidden":false,"_fc_drag_tag":"UserSelect"}'],formName:null,suspensionState:1,deploymentTime:null,bpmnXml:`<?xml version="1.0" encoding="UTF-8"?>
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
+ <process id="simple-multi-node-simple" name="连续多节点simple设计器" isExecutable="true">
4
+ <startEvent id="StartEvent" name="开始"></startEvent>
5
+ <userTask id="StartUserNode" name="发起人">
6
+ <extensionElements>
7
+ <flowable:approveType><![CDATA[1]]></flowable:approveType>
8
+ <flowable:candidateStrategy><![CDATA[36]]></flowable:candidateStrategy>
9
+ <flowable:fieldsPermission field="fenGuan" title="分管领导" permission="2"></flowable:fieldsPermission>
10
+ <flowable:fieldsPermission field="gangWei" title="岗位" permission="2"></flowable:fieldsPermission>
11
+ <flowable:fieldsPermission field="deptId" title="部门" permission="2"></flowable:fieldsPermission>
12
+ <flowable:fieldsPermission field="zhiShu" title="直属领导" permission="2"></flowable:fieldsPermission>
13
+ <flowable:buttonsSetting displayName="提交" enable="true" id="1"></flowable:buttonsSetting>
14
+ <flowable:buttonsSetting displayName="拒绝" enable="false" id="2"></flowable:buttonsSetting>
15
+ <flowable:buttonsSetting displayName="抄送" enable="false" id="7"></flowable:buttonsSetting>
16
+ <flowable:buttonsSetting displayName="转办" enable="false" id="3"></flowable:buttonsSetting>
17
+ <flowable:buttonsSetting displayName="委派" enable="false" id="4"></flowable:buttonsSetting>
18
+ <flowable:buttonsSetting displayName="加签" enable="false" id="5"></flowable:buttonsSetting>
19
+ <flowable:buttonsSetting displayName="退回" enable="false" id="6"></flowable:buttonsSetting>
20
+ <flowable:assignStartUserHandlerType><![CDATA[2]]></flowable:assignStartUserHandlerType>
21
+ </extensionElements>
22
+ </userTask>
23
+ <exclusiveGateway id="GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1" default="Flow_928eac73-294a-425f-bf01-9c045d29a92f"></exclusiveGateway>
24
+ <userTask id="Activity_7e06529d-e9fa-4062-a1ae-18742609590d" name="L1或签审批">
25
+ <extensionElements>
26
+ <flowable:approveType><![CDATA[1]]></flowable:approveType>
27
+ <flowable:candidateStrategy><![CDATA[60]]></flowable:candidateStrategy>
28
+ <flowable:candidateParam><![CDATA[\${L1UserList}]]></flowable:candidateParam>
29
+ <flowable:fieldsPermission field="fenGuan" title="分管领导" permission="1"></flowable:fieldsPermission>
30
+ <flowable:fieldsPermission field="gangWei" title="岗位" permission="1"></flowable:fieldsPermission>
31
+ <flowable:fieldsPermission field="deptId" title="部门" permission="1"></flowable:fieldsPermission>
32
+ <flowable:fieldsPermission field="zhiShu" title="直属领导" permission="1"></flowable:fieldsPermission>
33
+ <flowable:buttonsSetting displayName="通过" enable="true" id="1"></flowable:buttonsSetting>
34
+ <flowable:buttonsSetting displayName="拒绝" enable="true" id="2"></flowable:buttonsSetting>
35
+ <flowable:buttonsSetting displayName="转办" enable="true" id="3"></flowable:buttonsSetting>
36
+ <flowable:buttonsSetting displayName="委派" enable="true" id="4"></flowable:buttonsSetting>
37
+ <flowable:buttonsSetting displayName="加签" enable="true" id="5"></flowable:buttonsSetting>
38
+ <flowable:buttonsSetting displayName="退回" enable="true" id="6"></flowable:buttonsSetting>
39
+ <flowable:extendProcessSendSetting><![CDATA[true]]></flowable:extendProcessSendSetting>
40
+ <flowable:approveMethod><![CDATA[3]]></flowable:approveMethod>
41
+ <flowable:rejectHandlerType><![CDATA[1]]></flowable:rejectHandlerType>
42
+ <flowable:assignStartUserHandlerType><![CDATA[1]]></flowable:assignStartUserHandlerType>
43
+ <flowable:assignEmptyHandlerType><![CDATA[1]]></flowable:assignEmptyHandlerType>
44
+ <flowable:signEnable><![CDATA[false]]></flowable:signEnable>
45
+ <flowable:reasonRequire><![CDATA[false]]></flowable:reasonRequire>
46
+ <flowable:nodeType><![CDATA[11]]></flowable:nodeType>
47
+ </extensionElements>
48
+ <multiInstanceLoopCharacteristics isSequential="false" flowable:collection="\${coll_userList}">
49
+ <completionCondition>\${ nrOfCompletedInstances &gt; 0 }</completionCondition>
50
+ </multiInstanceLoopCharacteristics>
51
+ </userTask>
52
+ <exclusiveGateway id="GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563" default="Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426"></exclusiveGateway>
53
+ <userTask id="Activity_82540b22-2616-4924-9554-8466e1201240" name="L2会签审批">
54
+ <extensionElements>
55
+ <flowable:approveType><![CDATA[1]]></flowable:approveType>
56
+ <flowable:candidateStrategy><![CDATA[60]]></flowable:candidateStrategy>
57
+ <flowable:candidateParam><![CDATA[\${L2UserList}]]></flowable:candidateParam>
58
+ <flowable:fieldsPermission field="days" title="请假天数" permission="1"></flowable:fieldsPermission>
59
+ <flowable:buttonsSetting displayName="通过" enable="true" id="1"></flowable:buttonsSetting>
60
+ <flowable:buttonsSetting displayName="拒绝" enable="true" id="2"></flowable:buttonsSetting>
61
+ <flowable:buttonsSetting displayName="转办" enable="true" id="3"></flowable:buttonsSetting>
62
+ <flowable:buttonsSetting displayName="委派" enable="true" id="4"></flowable:buttonsSetting>
63
+ <flowable:buttonsSetting displayName="加签" enable="true" id="5"></flowable:buttonsSetting>
64
+ <flowable:buttonsSetting displayName="退回" enable="true" id="6"></flowable:buttonsSetting>
65
+ <flowable:extendProcessSendSetting><![CDATA[null]]></flowable:extendProcessSendSetting>
66
+ <flowable:approveMethod><![CDATA[2]]></flowable:approveMethod>
67
+ <flowable:rejectHandlerType><![CDATA[1]]></flowable:rejectHandlerType>
68
+ <flowable:assignStartUserHandlerType><![CDATA[1]]></flowable:assignStartUserHandlerType>
69
+ <flowable:assignEmptyHandlerType><![CDATA[1]]></flowable:assignEmptyHandlerType>
70
+ <flowable:signEnable><![CDATA[false]]></flowable:signEnable>
71
+ <flowable:reasonRequire><![CDATA[false]]></flowable:reasonRequire>
72
+ <flowable:nodeType><![CDATA[11]]></flowable:nodeType>
73
+ </extensionElements>
74
+ <multiInstanceLoopCharacteristics isSequential="false" flowable:collection="\${coll_userList}">
75
+ <completionCondition>\${ nrOfCompletedInstances/nrOfInstances &gt;= 1.00}</completionCondition>
76
+ </multiInstanceLoopCharacteristics>
77
+ </userTask>
78
+ <exclusiveGateway id="GateWay_f6496e3b-2adf-406b-a6aa-087682eab021" default="Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c"></exclusiveGateway>
79
+ <userTask id="Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f" name="L3审批">
80
+ <extensionElements>
81
+ <flowable:approveType><![CDATA[1]]></flowable:approveType>
82
+ <flowable:candidateStrategy><![CDATA[60]]></flowable:candidateStrategy>
83
+ <flowable:candidateParam><![CDATA[\${L3UserList}]]></flowable:candidateParam>
84
+ <flowable:fieldsPermission field="fenGuan" title="分管领导" permission="1"></flowable:fieldsPermission>
85
+ <flowable:fieldsPermission field="gangWei" title="岗位" permission="1"></flowable:fieldsPermission>
86
+ <flowable:fieldsPermission field="deptId" title="部门" permission="1"></flowable:fieldsPermission>
87
+ <flowable:fieldsPermission field="zhiShu" title="直属领导" permission="1"></flowable:fieldsPermission>
88
+ <flowable:buttonsSetting displayName="通过" enable="true" id="1"></flowable:buttonsSetting>
89
+ <flowable:buttonsSetting displayName="拒绝" enable="true" id="2"></flowable:buttonsSetting>
90
+ <flowable:buttonsSetting displayName="转办" enable="true" id="3"></flowable:buttonsSetting>
91
+ <flowable:buttonsSetting displayName="委派" enable="true" id="4"></flowable:buttonsSetting>
92
+ <flowable:buttonsSetting displayName="加签" enable="true" id="5"></flowable:buttonsSetting>
93
+ <flowable:buttonsSetting displayName="退回" enable="true" id="6"></flowable:buttonsSetting>
94
+ <flowable:extendProcessSendSetting><![CDATA[true]]></flowable:extendProcessSendSetting>
95
+ <flowable:approveMethod><![CDATA[4]]></flowable:approveMethod>
96
+ <flowable:rejectHandlerType><![CDATA[1]]></flowable:rejectHandlerType>
97
+ <flowable:assignStartUserHandlerType><![CDATA[1]]></flowable:assignStartUserHandlerType>
98
+ <flowable:assignEmptyHandlerType><![CDATA[1]]></flowable:assignEmptyHandlerType>
99
+ <flowable:signEnable><![CDATA[false]]></flowable:signEnable>
100
+ <flowable:reasonRequire><![CDATA[false]]></flowable:reasonRequire>
101
+ <flowable:nodeType><![CDATA[11]]></flowable:nodeType>
102
+ </extensionElements>
103
+ <multiInstanceLoopCharacteristics isSequential="true" flowable:collection="\${coll_userList}">
104
+ <loopCardinality>1</loopCardinality>
105
+ <completionCondition>\${ nrOfCompletedInstances &gt;= nrOfInstances }</completionCondition>
106
+ </multiInstanceLoopCharacteristics>
107
+ </userTask>
108
+ <endEvent id="EndEvent" name="结束"></endEvent>
109
+ <sequenceFlow id="sequenceFlow-f434973e-3ae2-4f01-bb38-49dee26aed04" sourceRef="StartEvent" targetRef="StartUserNode"></sequenceFlow>
110
+ <sequenceFlow id="sequenceFlow-3319ffd6-e602-44ad-9045-4f19376b83e9" sourceRef="StartUserNode" targetRef="GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1"></sequenceFlow>
111
+ <sequenceFlow id="Flow_026df4de-49c1-43ba-9a98-28f0568776d0" name="L1审批存在用户" sourceRef="GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1" targetRef="Activity_7e06529d-e9fa-4062-a1ae-18742609590d">
112
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[\${L1UserList.size() > 0}]]></conditionExpression>
113
+ </sequenceFlow>
114
+ <sequenceFlow id="sequenceFlow-122adc53-accc-4da5-ba34-92f3b11e8789" sourceRef="Activity_7e06529d-e9fa-4062-a1ae-18742609590d" targetRef="GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563"></sequenceFlow>
115
+ <sequenceFlow id="Flow_928eac73-294a-425f-bf01-9c045d29a92f" name="L1审批不存在用户" sourceRef="GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1" targetRef="GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563"></sequenceFlow>
116
+ <sequenceFlow id="Flow_8ca2525a-0c23-4f05-a843-36c364facb96" name="L2审批存在用户" sourceRef="GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563" targetRef="Activity_82540b22-2616-4924-9554-8466e1201240">
117
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[\${L2UserList.size() > 0}]]></conditionExpression>
118
+ </sequenceFlow>
119
+ <sequenceFlow id="sequenceFlow-b88a1c83-a42b-46c2-a92d-ba6798fed1de" sourceRef="Activity_82540b22-2616-4924-9554-8466e1201240" targetRef="GateWay_f6496e3b-2adf-406b-a6aa-087682eab021"></sequenceFlow>
120
+ <sequenceFlow id="Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426" name="L2审批不存在用户" sourceRef="GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563" targetRef="GateWay_f6496e3b-2adf-406b-a6aa-087682eab021"></sequenceFlow>
121
+ <sequenceFlow id="Flow_b1c94590-0170-41af-a462-f02b6f86f7d0" name="L3审批存在用户" sourceRef="GateWay_f6496e3b-2adf-406b-a6aa-087682eab021" targetRef="Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f">
122
+ <conditionExpression xsi:type="tFormalExpression"><![CDATA[\${L3UserList.size() > 0}]]></conditionExpression>
123
+ </sequenceFlow>
124
+ <sequenceFlow id="sequenceFlow-e688ab64-9229-4125-86fe-4bbdb6668ccb" sourceRef="Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f" targetRef="EndEvent"></sequenceFlow>
125
+ <sequenceFlow id="Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c" name="L3审批不存在用户" sourceRef="GateWay_f6496e3b-2adf-406b-a6aa-087682eab021" targetRef="EndEvent"></sequenceFlow>
126
+ </process>
127
+ <bpmndi:BPMNDiagram id="BPMNDiagram_simple-multi-node-simple">
128
+ <bpmndi:BPMNPlane bpmnElement="simple-multi-node-simple" id="BPMNPlane_simple-multi-node-simple">
129
+ <bpmndi:BPMNShape bpmnElement="StartUserNode" id="BPMNShape_StartUserNode">
130
+ <omgdc:Bounds height="60.0" width="100.0" x="80.0" y="59.0"></omgdc:Bounds>
131
+ </bpmndi:BPMNShape>
132
+ <bpmndi:BPMNShape bpmnElement="GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563" id="BPMNShape_GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563">
133
+ <omgdc:Bounds height="40.0" width="40.0" x="470.0" y="60.0"></omgdc:Bounds>
134
+ </bpmndi:BPMNShape>
135
+ <bpmndi:BPMNShape bpmnElement="Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f" id="BPMNShape_Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f">
136
+ <omgdc:Bounds height="60.0" width="100.0" x="800.0" y="100.0"></omgdc:Bounds>
137
+ </bpmndi:BPMNShape>
138
+ <bpmndi:BPMNShape bpmnElement="GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1" id="BPMNShape_GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1">
139
+ <omgdc:Bounds height="40.0" width="40.0" x="230.0" y="72.0"></omgdc:Bounds>
140
+ </bpmndi:BPMNShape>
141
+ <bpmndi:BPMNShape bpmnElement="Activity_7e06529d-e9fa-4062-a1ae-18742609590d" id="BPMNShape_Activity_7e06529d-e9fa-4062-a1ae-18742609590d">
142
+ <omgdc:Bounds height="60.0" width="100.0" x="320.0" y="0.0"></omgdc:Bounds>
143
+ </bpmndi:BPMNShape>
144
+ <bpmndi:BPMNShape bpmnElement="StartEvent" id="BPMNShape_StartEvent">
145
+ <omgdc:Bounds height="30.0" width="30.0" x="0.0" y="74.0"></omgdc:Bounds>
146
+ </bpmndi:BPMNShape>
147
+ <bpmndi:BPMNShape bpmnElement="Activity_82540b22-2616-4924-9554-8466e1201240" id="BPMNShape_Activity_82540b22-2616-4924-9554-8466e1201240">
148
+ <omgdc:Bounds height="60.0" width="100.0" x="560.0" y="100.0"></omgdc:Bounds>
149
+ </bpmndi:BPMNShape>
150
+ <bpmndi:BPMNShape bpmnElement="EndEvent" id="BPMNShape_EndEvent">
151
+ <omgdc:Bounds height="30.0" width="30.0" x="950.0" y="50.0"></omgdc:Bounds>
152
+ </bpmndi:BPMNShape>
153
+ <bpmndi:BPMNShape bpmnElement="GateWay_f6496e3b-2adf-406b-a6aa-087682eab021" id="BPMNShape_GateWay_f6496e3b-2adf-406b-a6aa-087682eab021">
154
+ <omgdc:Bounds height="40.0" width="40.0" x="710.0" y="45.0"></omgdc:Bounds>
155
+ </bpmndi:BPMNShape>
156
+ <bpmndi:BPMNEdge bpmnElement="Flow_026df4de-49c1-43ba-9a98-28f0568776d0" id="BPMNEdge_Flow_026df4de-49c1-43ba-9a98-28f0568776d0">
157
+ <omgdi:waypoint x="270.0" y="84.0"></omgdi:waypoint>
158
+ <omgdi:waypoint x="282.0" y="84.0"></omgdi:waypoint>
159
+ <omgdi:waypoint x="282.0" y="30.0"></omgdi:waypoint>
160
+ <omgdi:waypoint x="320.0" y="30.0"></omgdi:waypoint>
161
+ </bpmndi:BPMNEdge>
162
+ <bpmndi:BPMNEdge bpmnElement="sequenceFlow-b88a1c83-a42b-46c2-a92d-ba6798fed1de" id="BPMNEdge_sequenceFlow-b88a1c83-a42b-46c2-a92d-ba6798fed1de">
163
+ <omgdi:waypoint x="660.0" y="130.0"></omgdi:waypoint>
164
+ <omgdi:waypoint x="672.0" y="130.0"></omgdi:waypoint>
165
+ <omgdi:waypoint x="672.0" y="65.0"></omgdi:waypoint>
166
+ <omgdi:waypoint x="710.0" y="65.0"></omgdi:waypoint>
167
+ </bpmndi:BPMNEdge>
168
+ <bpmndi:BPMNEdge bpmnElement="Flow_928eac73-294a-425f-bf01-9c045d29a92f" id="BPMNEdge_Flow_928eac73-294a-425f-bf01-9c045d29a92f">
169
+ <omgdi:waypoint x="270.0" y="99.0"></omgdi:waypoint>
170
+ <omgdi:waypoint x="282.0" y="99.0"></omgdi:waypoint>
171
+ <omgdi:waypoint x="282.0" y="80.0"></omgdi:waypoint>
172
+ <omgdi:waypoint x="470.0" y="80.0"></omgdi:waypoint>
173
+ </bpmndi:BPMNEdge>
174
+ <bpmndi:BPMNEdge bpmnElement="sequenceFlow-122adc53-accc-4da5-ba34-92f3b11e8789" id="BPMNEdge_sequenceFlow-122adc53-accc-4da5-ba34-92f3b11e8789">
175
+ <omgdi:waypoint x="420.0" y="30.0"></omgdi:waypoint>
176
+ <omgdi:waypoint x="432.0" y="30.0"></omgdi:waypoint>
177
+ <omgdi:waypoint x="432.0" y="80.0"></omgdi:waypoint>
178
+ <omgdi:waypoint x="470.0" y="80.0"></omgdi:waypoint>
179
+ </bpmndi:BPMNEdge>
180
+ <bpmndi:BPMNEdge bpmnElement="Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c" id="BPMNEdge_Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c">
181
+ <omgdi:waypoint x="750.0" y="57.0"></omgdi:waypoint>
182
+ <omgdi:waypoint x="762.0" y="57.0"></omgdi:waypoint>
183
+ <omgdi:waypoint x="762.0" y="65.0"></omgdi:waypoint>
184
+ <omgdi:waypoint x="950.0" y="65.0"></omgdi:waypoint>
185
+ </bpmndi:BPMNEdge>
186
+ <bpmndi:BPMNEdge bpmnElement="Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426" id="BPMNEdge_Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426">
187
+ <omgdi:waypoint x="510.0" y="72.0"></omgdi:waypoint>
188
+ <omgdi:waypoint x="522.0" y="72.0"></omgdi:waypoint>
189
+ <omgdi:waypoint x="522.0" y="65.0"></omgdi:waypoint>
190
+ <omgdi:waypoint x="710.0" y="65.0"></omgdi:waypoint>
191
+ </bpmndi:BPMNEdge>
192
+ <bpmndi:BPMNEdge bpmnElement="sequenceFlow-e688ab64-9229-4125-86fe-4bbdb6668ccb" id="BPMNEdge_sequenceFlow-e688ab64-9229-4125-86fe-4bbdb6668ccb">
193
+ <omgdi:waypoint x="900.0" y="130.0"></omgdi:waypoint>
194
+ <omgdi:waypoint x="912.0" y="130.0"></omgdi:waypoint>
195
+ <omgdi:waypoint x="912.0" y="65.0"></omgdi:waypoint>
196
+ <omgdi:waypoint x="950.0" y="65.0"></omgdi:waypoint>
197
+ </bpmndi:BPMNEdge>
198
+ <bpmndi:BPMNEdge bpmnElement="sequenceFlow-f434973e-3ae2-4f01-bb38-49dee26aed04" id="BPMNEdge_sequenceFlow-f434973e-3ae2-4f01-bb38-49dee26aed04">
199
+ <omgdi:waypoint x="30.0" y="89.0"></omgdi:waypoint>
200
+ <omgdi:waypoint x="80.0" y="89.0"></omgdi:waypoint>
201
+ </bpmndi:BPMNEdge>
202
+ <bpmndi:BPMNEdge bpmnElement="sequenceFlow-3319ffd6-e602-44ad-9045-4f19376b83e9" id="BPMNEdge_sequenceFlow-3319ffd6-e602-44ad-9045-4f19376b83e9">
203
+ <omgdi:waypoint x="180.0" y="89.0"></omgdi:waypoint>
204
+ <omgdi:waypoint x="192.0" y="89.0"></omgdi:waypoint>
205
+ <omgdi:waypoint x="192.0" y="92.0"></omgdi:waypoint>
206
+ <omgdi:waypoint x="230.0" y="92.0"></omgdi:waypoint>
207
+ </bpmndi:BPMNEdge>
208
+ <bpmndi:BPMNEdge bpmnElement="Flow_8ca2525a-0c23-4f05-a843-36c364facb96" id="BPMNEdge_Flow_8ca2525a-0c23-4f05-a843-36c364facb96">
209
+ <omgdi:waypoint x="510.0" y="87.0"></omgdi:waypoint>
210
+ <omgdi:waypoint x="522.0" y="87.0"></omgdi:waypoint>
211
+ <omgdi:waypoint x="522.0" y="130.0"></omgdi:waypoint>
212
+ <omgdi:waypoint x="560.0" y="130.0"></omgdi:waypoint>
213
+ </bpmndi:BPMNEdge>
214
+ <bpmndi:BPMNEdge bpmnElement="Flow_b1c94590-0170-41af-a462-f02b6f86f7d0" id="BPMNEdge_Flow_b1c94590-0170-41af-a462-f02b6f86f7d0">
215
+ <omgdi:waypoint x="750.0" y="72.0"></omgdi:waypoint>
216
+ <omgdi:waypoint x="762.0" y="72.0"></omgdi:waypoint>
217
+ <omgdi:waypoint x="762.0" y="130.0"></omgdi:waypoint>
218
+ <omgdi:waypoint x="800.0" y="130.0"></omgdi:waypoint>
219
+ </bpmndi:BPMNEdge>
220
+ </bpmndi:BPMNPlane>
221
+ </bpmndi:BPMNDiagram>
222
+ </definitions>`,simpleModel:'{"id":"StartUserNode","type":10,"name":"发起人","showText":"已设置","childNode":{"id":"GateWay_4d54e0c7-ad05-4c78-a117-b31b9ff8c7d1","type":51,"name":"条件分支","childNode":{"id":"GateWay_5b39e96c-80a3-4be3-b1b1-ad9c55c52563","type":51,"name":"条件分支","childNode":{"id":"GateWay_f6496e3b-2adf-406b-a6aa-087682eab021","type":51,"name":"条件分支","childNode":{"id":"EndEvent","type":1,"name":"结束"},"conditionNodes":[{"id":"Flow_b1c94590-0170-41af-a462-f02b6f86f7d0","type":50,"name":"L3审批存在用户","showText":"表达式:${L3UserList.size() > 0}","childNode":{"id":"Activity_cae2e97a-b778-4480-94a7-c0652ca4cf4f","type":11,"name":"L3审批","showText":"流程表达式:${L3UserList}","candidateStrategy":60,"candidateParam":"${L3UserList}","approveType":1,"approveMethod":4,"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"1"},{"field":"gangWei","title":"岗位","permission":"1"},{"field":"deptId","title":"部门","permission":"1"},{"field":"zhiShu","title":"直属领导","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","extendProcessSendSetting":true,"rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L3UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_1d7a231a-cd17-46c0-b9d4-25b3403bfe3c","type":50,"name":"L3审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"conditionNodes":[{"id":"Flow_8ca2525a-0c23-4f05-a843-36c364facb96","type":50,"name":"L2审批存在用户","showText":"表达式:${L2UserList.size() > 0}","childNode":{"id":"Activity_82540b22-2616-4924-9554-8466e1201240","type":11,"name":"L2会签审批","showText":"流程表达式:${L2UserList}","candidateStrategy":60,"candidateParam":"${L2UserList}","approveType":1,"approveMethod":2,"approveRatio":100,"fieldsPermission":[{"field":"days","title":"请假天数","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L2UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_c35e6e1c-2249-45b2-bfd2-92dc4f141426","type":50,"name":"L2审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"conditionNodes":[{"id":"Flow_026df4de-49c1-43ba-9a98-28f0568776d0","type":50,"name":"L1审批存在用户","showText":"表达式:${L1UserList.size() > 0}","childNode":{"id":"Activity_7e06529d-e9fa-4062-a1ae-18742609590d","type":11,"name":"L1或签审批","showText":"流程表达式:${L1UserList}","candidateStrategy":60,"candidateParam":"${L1UserList}","approveType":1,"approveMethod":3,"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"1"},{"field":"gangWei","title":"岗位","permission":"1"},{"field":"deptId","title":"部门","permission":"1"},{"field":"zhiShu","title":"直属领导","permission":"1"}],"buttonsSetting":[{"id":1,"displayName":"通过","enable":true},{"id":2,"displayName":"拒绝","enable":true},{"id":3,"displayName":"转办","enable":true},{"id":4,"displayName":"委派","enable":true},{"id":5,"displayName":"加签","enable":true},{"id":6,"displayName":"退回","enable":true}],"signEnable":false,"reasonRequire":false,"skipExpression":"","extendProcessSendSetting":true,"rejectHandler":{"type":1},"timeoutHandler":{"enable":false},"assignStartUserHandlerType":1,"assignEmptyHandler":{"type":1},"taskCreateListener":{"enable":false,"header":[],"body":[]},"taskAssignListener":{"enable":false,"header":[],"body":[]},"taskCompleteListener":{"enable":false,"header":[],"body":[]}},"conditionSetting":{"conditionType":1,"conditionExpression":"${L1UserList.size() > 0}","defaultFlow":false}},{"id":"Flow_928eac73-294a-425f-bf01-9c045d29a92f","type":50,"name":"L1审批不存在用户","showText":"未满足其它条件时,将进入此分支","conditionSetting":{"defaultFlow":true}}]},"fieldsPermission":[{"field":"fenGuan","title":"分管领导","permission":"2"},{"field":"gangWei","title":"岗位","permission":"2"},{"field":"deptId","title":"部门","permission":"2"},{"field":"zhiShu","title":"直属领导","permission":"2"}],"buttonsSetting":[{"id":1,"displayName":"提交","enable":true},{"id":2,"displayName":"拒绝","enable":false},{"id":7,"displayName":"抄送","enable":false},{"id":3,"displayName":"转办","enable":false},{"id":4,"displayName":"委派","enable":false},{"id":5,"displayName":"加签","enable":false},{"id":6,"displayName":"退回","enable":false}]}'},processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",summary:null,category:null,categoryName:null,status:1,startTime:"2026-04-03T14:19:25+0800",endTime:null,durationInMillis:null,formVariables:{_FLOWABLE_SKIP_EXPRESSION_ENABLED:!0,approvalDialogComponentPath:"/line/testSimpleMutilNode/DialogDetail.vue",L2ApproveType:1,customVariables:{},L2UserList:[207],PROCESS_START_USER_ID:207,approvalPageOpenType:"openDialog",L1ApproveType:2,L3UserList:[207],USER_ID_207:{userId:207,id:"1000000000000010322",name:"外运集运",roleId:170,roleName:"租户管理员",nickName:"集运管理员"},L1UserList:[207],L3ApproveType:2,applicationPrefix:"/svl",approvalRouteUrl:"/line/bpmSimpleMutilNode/detail"},businessKey:"2039950881344360448",startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",processDefinition:null,tasks:null}};w.value=g==null?void 0:g.processInstance,B.value=(s=(E=g==null?void 0:g.processInstance)==null?void 0:E.formVariables)==null?void 0:s.applicationPrefix,y.value=g==null?void 0:g.todoTask}finally{f.value=!1}},F=async()=>{S.value=[{id:"0fff48cd-2f25-11f1-9259-fa163e43f4f0",name:"发起人",createTime:"2026-04-03T14:19:25+0800",endTime:"2026-04-03T14:19:26+0800",durationInMillis:618,status:2,reason:"发起人节点首次自动通过",ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"StartUserNode",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",createTime:null,processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",businessKey:"2039950881344360448",summary:null,startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:null},deptName:null,formVariables:null},parentTaskId:null,children:null,formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:null,signEnable:null,reasonRequire:null,nodeType:null,timeout:null,categoryName:null,deptName:"外运集运",roleName:"租户管理员",proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:50,editable:!0},{id:"106117fa-2f25-11f1-9259-fa163e43f4f0",name:"L1或签审批",createTime:"2026-04-03T14:19:26+0800",endTime:null,durationInMillis:null,status:1,reason:null,ownerUser:null,assigneeUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:"外运集运"},taskDefinitionKey:"Activity_7e06529d-e9fa-4062-a1ae-18742609590d",processInstanceId:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",processInstance:{id:"0ffc3c74-2f25-11f1-9259-fa163e43f4f0",name:"连续多节点simple设计器",createTime:null,processDefinitionId:"simple-multi-node-simple:74:85fd64b1-2ca8-11f1-b052-fa163ecf527b",businessKey:"2039950881344360448",summary:null,startUser:{id:207,nickname:"集运管理员",avatar:"https://cos-di.sinolines.com.cn/cos-download/v1/pvf/1/cmclinks-private-cos/b8e014d5df9d15e72c3d38f6fd388086/avator.png?expires=1774442024791&signature=0101EhRCzjRM:NDA4NEVFMkM1NEU3QkM4NTBEM0UwRDAzRTYxNjJENTM0QTFBRDVGMg==",deptId:"1000000000000010322",deptName:null},deptName:null,formVariables:null},parentTaskId:null,children:null,formId:null,formName:null,formConf:null,formFields:null,formVariables:null,buttonsSetting:null,signEnable:null,reasonRequire:null,nodeType:null,timeout:null,categoryName:null,deptName:"外运集运",roleName:"租户管理员",proxyRoleName:null,proxyNickName:null,proxyDeptName:null,proxyUserId:null,proxyFlag:null,customVariables:null,category:"edi",priority:95,editable:!0}]};e.watch(()=>m.processInstanceId,E=>{E&&E!==M.value&&p(E)},{immediate:!0,deep:!0});const _=()=>{re.ElMessage.success("aaa!")};return(E,s)=>{const g=e.resolveComponent("el-button");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{onClick:_},{default:e.withCtx(()=>[...s[0]||(s[0]=[e.createTextVNode("测试按钮10",-1)])]),_:1}),e.createVNode(ve,{"process-instance":w.value,tasks:S.value},null,8,["process-instance","tasks"])],64)}}}),Re="",oe=se(Fe,[["__scopeId","data-v-2f2d542f"]]);let J=null;const Ie={install(c,m){if(console.log("插件install执行,options:",m),!(m!=null&&m.request))throw new Error("请在 app.use(NbbComponentUi) 时传入 { request }");J=m.request,c.component("CmcProcessFlow",oe)}};function Ue(){if(console.log("getRequest",J),!J)throw new Error("没有_request对象");return J}v.CmcProcessFlow=oe,v.default=Ie,v.getRequest=Ue,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,6 +1,5 @@
1
1
  type __VLS_Props = {
2
2
  processInstanceId: string;
3
- request: any;
4
3
  };
5
4
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
5
  export default _default;
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.avatar-wrap[data-v-f8ad04ec]{width:40px;height:40px}.flow-start[data-v-f8ad04ec]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgb(245,247,253)}.flow-start p[data-v-f8ad04ec]{margin:0;padding-top:10px;font-size:14px}[data-v-f8ad04ec] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-f8ad04ec]{flex:1;min-height:0;overflow-y:auto}.process-container[data-v-a8376ef8]{height:100%;box-sizing:border-box}.process-container[data-v-a8376ef8]>.el-card__body{height:100%;padding-bottom:0}.process-container[data-v-a8376ef8]>.el-card__body>div{height:100%;display:flex;flex-direction:column}.approval-actions[data-v-a8376ef8]{margin:20px 0}.approval-actions .action-buttons[data-v-a8376ef8]{display:flex;flex-direction:column;gap:12px}.approval-actions .action-buttons .basic-actions[data-v-a8376ef8]{display:flex;gap:12px}.approval-actions .action-buttons .extended-actions[data-v-a8376ef8]{display:flex;gap:12px;flex-wrap:wrap}.approval-dialogs[data-v-a8376ef8]{display:contents}
1
+ @charset "UTF-8";.avatar-wrap[data-v-f8ad04ec]{width:40px;height:40px}.flow-start[data-v-f8ad04ec]{width:70%;margin:10px auto;padding:0 10px 10px;background:rgb(245,247,253)}.flow-start p[data-v-f8ad04ec]{margin:0;padding-top:10px;font-size:14px}[data-v-f8ad04ec] .el-timeline-item__dot{left:-15px;top:-15px}.scroll-area[data-v-f8ad04ec]{flex:1;min-height:0;overflow-y:auto}.process-container[data-v-2f2d542f]{height:100%;box-sizing:border-box}.process-container[data-v-2f2d542f]>.el-card__body{height:100%;padding-bottom:0}.process-container[data-v-2f2d542f]>.el-card__body>div{height:100%;display:flex;flex-direction:column}.approval-actions[data-v-2f2d542f]{margin:20px 0}.approval-actions .action-buttons[data-v-2f2d542f]{display:flex;flex-direction:column;gap:12px}.approval-actions .action-buttons .basic-actions[data-v-2f2d542f]{display:flex;gap:12px}.approval-actions .action-buttons .extended-actions[data-v-2f2d542f]{display:flex;gap:12px;flex-wrap:wrap}.approval-dialogs[data-v-2f2d542f]{display:contents}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbb-component-ui",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -19,7 +19,9 @@
19
19
  "vite-plugin-dts": "^4.5.4",
20
20
  "vue": "^3.2.0",
21
21
  "vue-tsc": "^1.8.27",
22
- "dayjs": "^1.11.10"
22
+ "dayjs": "^1.11.10",
23
+ "unocss": "^0.56.5",
24
+ "sass": "1.69.3"
23
25
  },
24
26
  "peerDependencies": {
25
27
  "element-plus": ">=2.0.0",