import{d as A,ah as m,r as F,x as Q,o as s,v as u,w as l,I as G,f as r,g as c,c as e,q as H,n as i,t as o,a as _,ap as J,Q as n,F as K,j as V,C as W,al as X,E as Y,_ as $,__tla as Z}from"./index-04f8d540.js";import{E as aa,a as ta,__tla as sa}from"./el-timeline-item-246798d8.js";import{E as la,__tla as ra}from"./el-card-3a265a8d.js";import{_ as ea,__tla as na}from"./DictTag-774e4f97.js";import{f as L,a as oa,__tla as ia}from"./formatTime-81f0c591.js";import{D as _a,__tla as ca}from"./dict-ef06f7f7.js";import ma,{__tla as ua}from"./ProcessInstanceChildrenTaskList-70f1cbf9.js";import"./color-6e929987.js";import{__tla as fa}from"./el-drawer-6a413aa1.js";import{__tla as pa}from"./TaskSubSignDialogForm-d725ac03.js";import{__tla as ya}from"./Dialog-9afb5ba5.js";import{__tla as da}from"./index-19f209ed.js";import{__tla as ha}from"./useMessage-9c37e840.js";let M,ga=Promise.all([(()=>{try{return Z}catch{}})(),(()=>{try{return sa}catch{}})(),(()=>{try{return ra}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return pa}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ha}catch{}})()]).then(async()=>{let f,p,y,d,h,g,k,b,w,T,x;f=c("span",{class:"el-icon-picture-outline"},"\u5BA1\u6279\u8BB0\u5F55",-1),p={class:"block"},y={style:{"font-weight":"700"}},d={key:0,style:{"margin-right":"30px","font-weight":"normal"}},h={key:1,style:{"font-weight":"normal"}},g={style:{"font-weight":"normal",color:"#8a909c"}},k={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"}},x={key:6},M=$(A({name:"BpmProcessInstanceTaskList",__name:"ProcessInstanceTaskList",props:{loading:m.bool,tasks:m.arrayOf(m.object)},setup(I){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=F();return(t,ka)=>{const U=ea,z=V,N=W,E=X,P=la,j=aa,q=ta,B=Y,D=G;return Q((s(),u(P,{class:"box-card"},{header:l(()=>[f]),default:l(()=>[r(B,{offset:4,span:16},{default:l(()=>[c("div",p,[r(q,null,{default:l(()=>[(s(!0),e(K,null,H(I.tasks,(a,O)=>(s(),u(j,{key:O,icon:S(a),type:v(a)},{default:l(()=>[c("p",y,[i(" \u4EFB\u52A1\uFF1A"+o(a.name)+" ",1),r(U,{type:_(_a).BPM_PROCESS_INSTANCE_RESULT,value:a.result},null,8,["type","value"]),_(J)(a.children)?n("",!0):(s(),u(N,{key:0,style:{"margin-left":"5px"},onClick:ba=>(R=>{C.value.open(R)})(a)},{default:l(()=>[r(z,{icon:"ep:memo"}),i(" \u5B50\u4EFB\u52A1 ")]),_:2},1032,["onClick"]))]),r(P,{"body-style":{padding:"10px"}},{default:l(()=>[a.assigneeUser?(s(),e("label",d,[i(" \u5BA1\u6279\u4EBA\uFF1A"+o(a.assigneeUser.nickname)+" ",1),r(E,{size:"small",type:"info"},{default:l(()=>[i(o(a.assigneeUser.deptName),1)]),_:2},1024)])):n("",!0),a.createTime?(s(),e("label",h,"\u521B\u5EFA\u65F6\u95F4\uFF1A")):n("",!0),c("label",g,o(_(L)(a==null?void 0:a.createTime)),1),a.endTime?(s(),e("label",k," \u5BA1\u6279\u65F6\u95F4\uFF1A ")):n("",!0),a.endTime?(s(),e("label",b,o(_(L)(a==null?void 0:a.endTime)),1)):n("",!0),a.durationInMillis?(s(),e("label",w," \u8017\u65F6\uFF1A ")):n("",!0),a.durationInMillis?(s(),e("label",T,o(_(oa)(a==null?void 0:a.durationInMillis)),1)):n("",!0),a.reason?(s(),e("p",x,[r(E,{type:v(a)},{default:l(()=>[i(o(a.reason),1)]),_:2},1032,["type"])])):n("",!0)]),_:2},1024)]),_:2},1032,["icon","type"]))),128))]),_:1})])]),_:1}),r(ma,{ref_key:"processInstanceChildrenTaskList",ref:C},null,512)]),_:1})),[[D,I.loading]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue"]])});export{ga as __tla,M as default};
