import{d as F,p as m,r as H,C as J,o as l,l as u,w as s,N as X,i as r,g as c,c as e,k as q,j as i,t as o,a as _,ao as G,a2 as n,F as K,v as Q,J as V,ak as W,E as Y,_ as Z,__tla as $}from"./index-8c6726e5.js";import{E as tt,a as at,__tla as lt}from"./el-timeline-item-e33f980f.js";import{E as st,__tla as rt}from"./el-card-17d153e8.js";import{_ as et,__tla as nt}from"./DictTag-bbdf2078.js";import{f as L,a as ot,__tla as it}from"./formatTime-43b4aa50.js";import{D as _t,__tla as ct}from"./dict-1c98488d.js";import mt,{__tla as ut}from"./ProcessInstanceChildrenTaskList-3d2cfec7.js";import"./color-6e929987.js";import{__tla as pt}from"./el-drawer-1bf056d7.js";import{__tla as ft}from"./TaskSubSignDialogForm-635cbac5.js";import{__tla as yt}from"./Dialog-336bccec.js";import{__tla as dt}from"./index-359e4172.js";import{__tla as ht}from"./useMessage-9f6930df.js";let U,kt=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 pt}catch{}})(),(()=>{try{return ft}catch{}})(),(()=>{try{return yt}catch{}})(),(()=>{try{return dt}catch{}})(),(()=>{try{return ht}catch{}})()]).then(async()=>{let p,f,y,d,h,k,g,b,w,T,I;p=c("span",{class:"el-icon-picture-outline"},"\u5BA1\u6279\u8BB0\u5F55",-1),f={class:"block"},y={style:{"font-weight":"700"}},d={key:0,style:{"margin-right":"30px","font-weight":"normal"}},h={key:1,style:{"font-weight":"normal"}},k={style:{"font-weight":"normal",color:"#8a909c"}},g={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},U=Z(F({name:"BpmProcessInstanceTaskList",__name:"ProcessInstanceTaskList",props:{loading:m.bool,tasks:m.arrayOf(m.object)},setup(v){const M=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":"",x=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":"",C=H();return(a,gt)=>{const N=et,S=Q,R=V,E=W,P=st,j=tt,z=at,A=Y,B=X;return J((l(),u(P,{class:"box-card"},{header:s(()=>[p]),default:s(()=>[r(A,{offset:4,span:16},{default:s(()=>[c("div",f,[r(z,null,{default:s(()=>[(l(!0),e(K,null,q(v.tasks,(t,O)=>(l(),u(j,{key:O,icon:M(t),type:x(t)},{default:s(()=>[c("p",y,[i(" \u4EFB\u52A1\uFF1A"+o(t.name)+" ",1),r(N,{type:_(_t).BPM_PROCESS_INSTANCE_RESULT,value:t.result},null,8,["type","value"]),_(G)(t.children)?n("",!0):(l(),u(R,{key:0,style:{"margin-left":"5px"},onClick:bt=>(D=>{C.value.open(D)})(t)},{default:s(()=>[r(S,{icon:"ep:memo"}),i(" \u5B50\u4EFB\u52A1 ")]),_:2},1032,["onClick"]))]),r(P,{"body-style":{padding:"10px"}},{default:s(()=>[t.assigneeUser?(l(),e("label",d,[i(" \u5BA1\u6279\u4EBA\uFF1A"+o(t.assigneeUser.nickname)+" ",1),r(E,{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",k,o(_(L)(t==null?void 0:t.createTime)),1),t.endTime?(l(),e("label",g," \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",I,[r(E,{type:x(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:C},null,512)]),_:1})),[[B,v.loading]])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue"]])});export{kt as __tla,U as default};
