import{d as z,ar as u,r as G,k as K,o as l,A as m,B as s,Z,f as e,C as _,c as r,R as q,E as i,G as o,a as c,ay as H,D as n,F as J,_ as Q,K as V,av as W,I as X,__tla as Y}from"./index-92ad187a.js";import{E as $,a as aa,__tla as ta}from"./el-timeline-item-54eedda2.js";import{E as la,__tla as sa}from"./el-card-93209b1d.js";import{_ as ea,__tla as ra}from"./DictTag.vue_vue_type_script_lang-96bcb962.js";import{f as L,a as na,__tla as oa}from"./formatTime-c7f253d6.js";import{D as ia,__tla as ca}from"./dict-221f3e01.js";import{_ as _a,__tla as ua}from"./ProcessInstanceChildrenTaskList.vue_vue_type_script_setup_true_lang-9278975f.js";let M,ma=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return ta}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})()]).then(async()=>{let y,f,p,d,g,k,h,b,w,T,I;y=_("span",{class:"el-icon-picture-outline"},"\u5BA1\u6279\u8BB0\u5F55",-1),f={class:"block"},p={style:{"font-weight":"700"}},d={key:0,style:{"margin-right":"30px","font-weight":"normal"}},g={key:1,style:{"font-weight":"normal"}},k={style:{"font-weight":"normal",color:"#8a909c"}},h={key:2,style:{"margin-left":"30px","font-weight":"normal"}},b={key:3,style:{"font-weight":"normal",color:"#8a909c"}},w={key:4,style:{"margin-left":"30px","font-weight":"normal"}},T={key:5,style:{"font-weight":"normal",color:"#8a909c"}},I={key:6},M=z({name:"BpmProcessInstanceTaskList",__name:"ProcessInstanceTaskList",props:{loading:u.bool,tasks:u.arrayOf(u.object)},setup(x){const S=t=>t.result===1?"el-icon-time":t.result===2?"el-icon-check":t.result===3?"el-icon-close":t.result===4?"el-icon-remove-outline":t.result===5?"el-icon-back":"",v=t=>t.result===1?"primary":t.result===2?"success":t.result===3?"danger":t.result===4?"info":t.result===5?"warning":t.result===6?"default":t.result===7||t.result===8?"warning":"",C=G();return(t,ya)=>{const U=ea,B=Q,N=V,E=W,P=la,R=$,A=aa,D=X,F=Z;return K((l(),m(P,{class:"box-card"},{header:s(()=>[y]),default:s(()=>[e(D,{offset:4,span:16},{default:s(()=>[_("div",f,[e(A,null,{default:s(()=>[(l(!0),r(J,null,q(x.tasks,(a,O)=>(l(),m(R,{key:O,icon:S(a),type:v(a)},{default:s(()=>[_("p",p,[i(" \u4EFB\u52A1\uFF1A"+o(a.name)+" ",1),e(U,{type:c(ia).BPM_PROCESS_INSTANCE_RESULT,value:a.result},null,8,["type","value"]),c(H)(a.children)?n("",!0):(l(),m(N,{key:0,style:{"margin-left":"5px"},onClick:fa=>(j=>{C.value.open(j)})(a)},{default:s(()=>[e(B,{icon:"ep:memo"}),i(" \u5B50\u4EFB\u52A1 ")]),_:2},1032,["onClick"]))]),e(P,{"body-style":{padding:"10px"}},{default:s(()=>[a.assigneeUser?(l(),r("label",d,[i(" \u5BA1\u6279\u4EBA\uFF1A"+o(a.assigneeUser.nickname)+" ",1),e(E,{size:"small",type:"info"},{default:s(()=>[i(o(a.assigneeUser.deptName),1)]),_:2},1024)])):n("",!0),a.createTime?(l(),r("label",g,"\u521B\u5EFA\u65F6\u95F4\uFF1A")):n("",!0),_("label",k,o(c(L)(a==null?void 0:a.createTime)),1),a.endTime?(l(),r("label",h," \u5BA1\u6279\u65F6\u95F4\uFF1A ")):n("",!0),a.endTime?(l(),r("label",b,o(c(L)(a==null?void 0:a.endTime)),1)):n("",!0),a.durationInMillis?(l(),r("label",w," \u8017\u65F6\uFF1A ")):n("",!0),a.durationInMillis?(l(),r("label",T,o(c(na)(a==null?void 0:a.durationInMillis)),1)):n("",!0),a.reason?(l(),r("p",I,[e(E,{type:v(a)},{default:s(()=>[i(o(a.reason),1)]),_:2},1032,["type"])])):n("",!0)]),_:2},1024)]),_:2},1032,["icon","type"]))),128))]),_:1})])]),_:1}),e(_a,{ref_key:"processInstanceChildrenTaskList",ref:C},null,512)]),_:1})),[[F,x.loading]])}}})});export{M as _,ma as __tla};
