import{d as O,ai as m,r as F,y as J,o as l,x as u,w as s,J as G,g as r,h as c,c as e,v as H,q as i,t as o,a as _,aq as K,R as n,F as Q,k as V,D as W,am as X,E as Y,_ as Z,__tla as $}from"./index-7d5b26d3.js";import{E as tt,a as at,__tla as lt}from"./el-timeline-item-8c0c7a94.js";import{E as st,__tla as rt}from"./el-card-698191e2.js";import{_ as et,__tla as nt}from"./DictTag-89bfbd38.js";import{f as L,a as ot,__tla as it}from"./formatTime-5152c108.js";import{D as _t,__tla as ct}from"./dict-37d1dfe8.js";import mt,{__tla as ut}from"./ProcessInstanceChildrenTaskList-a93e48c2.js";import"./color-6e929987.js";import{__tla as ft}from"./el-drawer-ea818669.js";import{__tla as yt}from"./TaskSubSignDialogForm-33afd944.js";import{__tla as pt}from"./Dialog-2be588df.js";import{__tla as dt}from"./index-206463c2.js";import{__tla as ht}from"./useMessage-c81eaa5b.js";let M,gt=Promise.all([(()=>{try{return $}catch{}})(),(()=>{try{return lt}catch{}})(),(()=>{try{return rt}catch{}})(),(()=>{try{return nt}catch{}})(),(()=>{try{return it}catch{}})(),(()=>{try{return ct}catch{}})(),(()=>{try{return ut}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return pt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ht}catch{}})()]).then(async()=>{let f,y,p,d,h,g,k,b,w,T,x;f=c("span",{class:"el-icon-picture-outline"},"\u5BA1\u6279\u8BB0\u5F55",-1),y={class:"block"},p={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=Z(O({name:"BpmProcessInstanceTaskList",__name:"ProcessInstanceTaskList",props:{loading:m.bool,tasks:m.arrayOf(m.object)},setup(I){const S=a=>a.result===1?"el-icon-time":a.result===2?"el-icon-check":a.result===3?"el-icon-close":a.result===4?"el-icon-remove-outline":a.result===5?"el-icon-back":"",v=a=>a.result===1?"primary":a.result===2?"success":a.result===3?"danger":a.result===4?"info":a.result===5?"warning":a.result===6?"default":a.result===7||a.result===8?"warning":"",E=F();return(a,kt)=>{const U=et,z=V,N=W,P=X,C=st,R=tt,j=at,q=Y,A=G;return J((l(),u(C,{class:"box-card"},{header:s(()=>[f]),default:s(()=>[r(q,{offset:4,span:16},{default:s(()=>[c("div",y,[r(j,null,{default:s(()=>[(l(!0),e(Q,null,H(I.tasks,(t,B)=>(l(),u(R,{key:B,icon:S(t),type:v(t)},{default:s(()=>[c("p",p,[i(" \u4EFB\u52A1\uFF1A"+o(t.name)+" ",1),r(U,{type:_(_t).BPM_PROCESS_INSTANCE_RESULT,value:t.result},null,8,["type","value"]),_(K)(t.children)?n("",!0):(l(),u(N,{key:0,style:{"margin-left":"5px"},onClick:bt=>(D=>{E.value.open(D)})(t)},{default:s(()=>[r(z,{icon:"ep:memo"}),i(" \u5B50\u4EFB\u52A1 ")]),_:2},1032,["onClick"]))]),r(C,{"body-style":{padding:"10px"}},{default:s(()=>[t.assigneeUser?(l(),e("label",d,[i(" \u5BA1\u6279\u4EBA\uFF1A"+o(t.assigneeUser.nickname)+" ",1),r(P,{size:"small",type:"info"},{default:s(()=>[i(o(t.assigneeUser.deptName),1)]),_:2},1024)])):n("",!0),t.createTime?(l(),e("label",h,"\u521B\u5EFA\u65F6\u95F4\uFF1A")):n("",!0),c("label",g,o(_(L)(t==null?void 0:t.createTime)),1),t.endTime?(l(),e("label",k," \u5BA1\u6279\u65F6\u95F4\uFF1A ")):n("",!0),t.endTime?(l(),e("label",b,o(_(L)(t==null?void 0:t.endTime)),1)):n("",!0),t.durationInMillis?(l(),e("label",w," \u8017\u65F6\uFF1A ")):n("",!0),t.durationInMillis?(l(),e("label",T,o(_(ot)(t==null?void 0:t.durationInMillis)),1)):n("",!0),t.reason?(l(),e("p",x,[r(P,{type:v(t)},{default:s(()=>[i(o(t.reason),1)]),_:2},1032,["type"])])):n("",!0)]),_:2},1024)]),_:2},1032,["icon","type"]))),128))]),_:1})])]),_:1}),r(mt,{ref_key:"processInstanceChildrenTaskList",ref:E},null,512)]),_:1})),[[A,I.loading]])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue"]])});export{gt as __tla,M as default};
