ProcessInstanceTaskList-f32cabcc.js 4.0 KB

1
  1. import{d as F,as as m,r as H,k as J,o as l,C as u,A as s,Z as Q,f as r,B as c,c as e,R as Z,D as i,E as o,a as _,az as q,a3 as n,F as G,Q as K,J as V,aw as W,H as X,_ as Y,__tla as $}from"./index-286756b9.js";import{E as aa,a as ta,__tla as la}from"./el-timeline-item-c7efc654.js";import{E as sa,__tla as ra}from"./el-card-d3d5a654.js";import{_ as ea,__tla as na}from"./DictTag-f72b04ca.js";import{f as L,a as oa,__tla as ia}from"./formatTime-83e416ef.js";import{D as _a,__tla as ca}from"./dict-82dca549.js";import ma,{__tla as ua}from"./ProcessInstanceChildrenTaskList-be9e541d.js";import"./color-6e929987.js";import{__tla as fa}from"./el-drawer-e585879f.js";import{__tla as pa}from"./TaskSubSignDialogForm-8ebdc997.js";import{__tla as ya}from"./Dialog-4c2de357.js";import{__tla as da}from"./index-79b3dd94.js";import{__tla as ha}from"./useMessage-084b1e70.js";let z,ka=Promise.all([(()=>{try{return $}catch{}})(),(()=>{try{return la}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,k,g,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"}},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"}},x={key:6},z=Y(F({name:"BpmProcessInstanceTaskList",__name:"ProcessInstanceTaskList",props:{loading:m.bool,tasks:m.arrayOf(m.object)},setup(I){const M=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=H();return(t,ga)=>{const S=ea,U=K,B=V,E=W,P=sa,N=aa,O=ta,R=X,j=Q;return J((l(),u(P,{class:"box-card"},{header:s(()=>[f]),default:s(()=>[r(R,{offset:4,span:16},{default:s(()=>[c("div",p,[r(O,null,{default:s(()=>[(l(!0),e(G,null,Z(I.tasks,(a,A)=>(l(),u(N,{key:A,icon:M(a),type:v(a)},{default:s(()=>[c("p",y,[i(" \u4EFB\u52A1\uFF1A"+o(a.name)+" ",1),r(S,{type:_(_a).BPM_PROCESS_INSTANCE_RESULT,value:a.result},null,8,["type","value"]),_(q)(a.children)?n("",!0):(l(),u(B,{key:0,style:{"margin-left":"5px"},onClick:ba=>(D=>{C.value.open(D)})(a)},{default:s(()=>[r(U,{icon:"ep:memo"}),i(" \u5B50\u4EFB\u52A1 ")]),_:2},1032,["onClick"]))]),r(P,{"body-style":{padding:"10px"}},{default:s(()=>[a.assigneeUser?(l(),e("label",d,[i(" \u5BA1\u6279\u4EBA\uFF1A"+o(a.assigneeUser.nickname)+" ",1),r(E,{size:"small",type:"info"},{default:s(()=>[i(o(a.assigneeUser.deptName),1)]),_:2},1024)])):n("",!0),a.createTime?(l(),e("label",h,"\u521B\u5EFA\u65F6\u95F4\uFF1A")):n("",!0),c("label",k,o(_(L)(a==null?void 0:a.createTime)),1),a.endTime?(l(),e("label",g," \u5BA1\u6279\u65F6\u95F4\uFF1A ")):n("",!0),a.endTime?(l(),e("label",b,o(_(L)(a==null?void 0:a.endTime)),1)):n("",!0),a.durationInMillis?(l(),e("label",w," \u8017\u65F6\uFF1A ")):n("",!0),a.durationInMillis?(l(),e("label",T,o(_(oa)(a==null?void 0:a.durationInMillis)),1)):n("",!0),a.reason?(l(),e("p",x,[r(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}),r(ma,{ref_key:"processInstanceChildrenTaskList",ref:C},null,512)]),_:1})),[[j,I.loading]])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/bpm/processInstance/detail/ProcessInstanceTaskList.vue"]])});export{ka as __tla,z as default};