|
- import{_ as L}from"./index.75f93dd3.js";import{N as U}from"./index.481762c8.js";import{d as $,c as p,e,I as c,i as _,f as s,F as f,J as m,g as o,h as k,t as i,j as C,k as u}from"./index.50a8620e.js";const J={class:"flex items-center"},P={class:"font-semibold"},q={class:"ml-40"},z={class:"mb-8"},G={class:"text-info"},K={class:"flex items-center"},Q={class:"font-semibold mr-8"},W={key:0},X=["onClick"],Y={key:0,class:"sline"},Z={class:"flex items-center"},ee={class:"font-semibold"},ne={key:0,class:"text-info"},oe={key:1,class:"text-info"},le={class:"ml-40"},se={class:"flex w-full"},te={class:"text-info"},ae={key:0,class:"bg-gray-100 p-8 mt-8"},ce={class:"flex justify-between text-info"},ie={key:0,class:"text-info",style:{"word-break":"break-all"}},re={key:1,class:"flex text-info"},de=o("span",null,"\u9644\u4EF6\uFF1A",-1),ue={key:2,class:"bx-timeline"},_e={class:"flex overflow-x-auto mt-8 justify-between"},fe=o("p",{class:"top-line"},null,-1),pe=$({name:"flowRecord"}),ke=Object.assign(pe,{props:{flowData:Array,isShowSline:{type:Boolean,default:!1}},setup(w){const I=t=>{var a;return(a=t.children)!=null&&a.length?g(t.children.slice(-1)[0]):t.withdrawFlag==="cancel-end"?"timelineIcon4":t.result?t.result==="process-end"||t.nodeType==="ROOT"||t.result==="PASS"?"timelineIcon1":"timelineIcon3":"timelineIcon2"},g=t=>{if(t.approvalMode==="OR"){const a=[];return t.list.forEach(d=>{a.push(I(d))}),a.includes("timelineIcon1")?"timelineIcon1":a.includes("timelineIcon3")?"timelineIcon3":a.includes("timelineIcon4")?"timelineIcon4":"timelineIcon2"}else if(t.approvalMode==="AND"){const a=[];return t.list.forEach(d=>{a.push(I(d))}),a.includes("timelineIcon3")?"timelineIcon3":a.includes("timelineIcon2")?"timelineIcon2":a.includes("timelineIcon4")?"timelineIcon4":"timelineIcon1"}else return"timelineIcon1"};return(t,a)=>{var R;const d=p("svg-icon"),F=p("ArrowDownBold"),N=p("el-icon"),j=p("ArrowUpBold"),T=p("el-timeline-item"),b=p("el-timeline"),M=p("flow-record",!0);return(R=w.flowData)!=null&&R.length?(e(),c(b,{key:0,class:"flowRecord"},{default:_(()=>[(e(!0),s(f,null,m(w.flowData,(n,V)=>(e(),c(T,{key:V},{dot:_(()=>[n.nodeType==="CC"?(e(),c(d,{key:0,name:"timelineIcon1"})):(e(),c(d,{key:1,name:I(n)},null,8,["name"]))]),default:_(()=>{var B,D,O,A,S;return[o("div",null,[n.nodeType==="ROOT"||n.nodeType==="CC"?(e(),s(f,{key:0},[o("div",J,[k(d,{name:"portraitIcon",class:"text-32 mr-8"}),o("p",P,i(n.nodeType==="ROOT"?"\u53D1\u8D77":"\u6284\u9001"),1)]),o("div",q,[o("p",z,i(((B=n==null?void 0:n.user)==null?void 0:B.userName)||"-")+"\uFF08"+i(((D=n==null?void 0:n.user)==null?void 0:D.orgName)||"-")+"\uFF09",1),o("p",G,i(n&&n.finishTime),1)])],64)):(e(),s(f,{key:1},[o("div",K,[o("p",Q,[C(i((O=n.parallelChildren)!=null&&O.length?"\u5E76\u884C\u5206\u652F":n.name),1),n.withdrawFlag==="cancel-end"?(e(),s("span",W,"\u88AB\u64A4\u56DE")):u("",!0)]),o("a",{class:"flex items-center",onClick:r=>n.isHideChild=!n.isHideChild},[o("span",null,i(n.isHideChild?"\u5C55\u5F00":"\u6536\u8D77"),1),n.isHideChild?(e(),c(N,{key:0},{default:_(()=>[k(F)]),_:1})):(e(),c(N,{key:1},{default:_(()=>[k(j)]),_:1}))],8,X)]),w.isShowSline?(e(),s("p",Y)):u("",!0),((A=n.children)==null?void 0:A.length)&&!n.isHideChild?(e(),c(b,{key:1,class:"pt-26 childTimeLine"},{default:_(()=>[(e(!0),s(f,null,m(n.children,(r,x)=>(e(),c(T,{key:x},{dot:_(()=>[r.nodeType==="CC"?(e(),c(d,{key:0,name:"timelineIcon1"})):(e(),c(d,{key:1,name:g(r)},null,8,["name"]))]),default:_(()=>[o("div",Z,[k(d,{name:"portraitIcon",class:"text-32 mr-8"}),o("p",ee,[C(i(r.name)+" ",1),r.withdrawFlag==="cancel-end"?(e(),s("span",ne,"\uFF08\u88AB\u64A4\u56DE\uFF09")):u("",!0),r.list.length>1?(e(),s("span",oe,i(r.approvalMode==="OR"?"\uFF08\u6216\u7B7E\uFF09":r.approvalMode==="AND"?"\uFF08\u4F1A\u7B7E\uFF09":""),1)):u("",!0)])]),o("div",le,[o("div",se,[(e(!0),s(f,null,m(r.list,(l,v)=>{var h,y;return e(),s("p",{key:v,class:"flex items-center mr-4"},[l.nodeType!=="CC"?(e(),c(d,{key:0,name:I(l),class:"mr-4"},null,8,["name"])):u("",!0),o("span",null,i(((h=l==null?void 0:l.user)==null?void 0:h.userName)||""),1),o("span",te,"\uFF08"+i(((y=l==null?void 0:l.user)==null?void 0:y.orgName)||"")+"\uFF09",1)])}),128))]),(e(!0),s(f,null,m(r.list,(l,v)=>{var h,y;return e(),s("div",{key:v},[l.auditInfo?(e(),s("div",ae,[o("div",ce,[o("p",null,i(((h=l==null?void 0:l.user)==null?void 0:h.userName)||""),1),o("p",null,i(l.finishTime),1)]),l.auditInfo?(e(),s("p",ie,[C("\u610F\u89C1\uFF1A"),o("span",null,i(l.auditInfo.text),1)])):u("",!0),l.auditInfo&&((y=l.auditInfo.attachments)==null?void 0:y.length)?(e(),s("div",re,[de,o("div",null,[(e(!0),s(f,null,m(l.auditInfo.attachments,(H,E)=>(e(),s("p",{key:E,class:"mb-4"},[k(L,{"file-name":H.fileName,"file-id":H.fileId},null,8,["file-name","file-id"])]))),128))])])):u("",!0)])):u("",!0)])}),128))])]),_:2},1024))),128))]),_:2},1024)):((S=n.parallelChildren)==null?void 0:S.length)&&!n.isHideChild?(e(),s("div",ue,[o("div",_e,[fe,(e(!0),s(f,null,m(n.parallelChildren,(r,x)=>(e(),c(M,{key:x,"flow-data":[r],class:"pt-20 timeline","is-show-sline":!0},null,8,["flow-data"]))),128))])])):u("",!0)],64))])]}),_:2},1024))),128))]),_:1})):(e(),c(U,{key:1}))}}});export{ke as default};
|