import{n as t,q as e,o as s,c as a,w as l,t as i,C as o,D as r,F as d,i as f,A as u,G as c,v as n,x as p,H as m,E as _}from"./index-DL8B2Mxu.js";import{_ as h}from"./u-tag.Bs11KZVx.js";import{r as g}from"./uni-app.es.BSVEa1f2.js";import{_ as w}from"./_plugin-vue_export-helper.BCo6x5W8.js";const y=w({name:"FlowList",props:{list:{type:Array,default:()=>[]},opType:{type:Number,default:1}},data:()=>({title:""}),created(){this.title=1==this.opType?"接收时间":2==this.opType?"办理时间":"抄送时间"},methods:{handleClick(e){const s={id:e.processId,flowId:e.flowId,opType:this.opType,status:e.status,taskNodeId:e.thisStepId,taskId:e.id};t({url:"/pages/workFlow/flowBefore/index?config="+this.jnpf.base64.encode(JSON.stringify(s))})},getLableValue(t){var e="";switch(t){case 1:default:e="普通";break;case 2:e="重要";break;case 3:e="紧急"}return e}}},[["render",function(t,w,y,b,k,I){const x=g(e("u-tag"),h),T=f,j=m,C=_;return s(),a(T,{class:"flow-list flowBefore"},{default:l((()=>[i(T,{class:"flow-list-box"},{default:l((()=>[(s(!0),o(d,null,r(y.list,((e,o)=>(s(),a(T,{class:"item",key:e.id,onClick:t=>I.handleClick(e)},{default:l((()=>[i(T,{class:"item-left"},{default:l((()=>[i(T,{class:"item-left-top"},{default:l((()=>[e.delegateUser?(s(),a(T,{key:0,class:"u-m-r-8"},{default:l((()=>[i(x,{text:"委托",type:"success",size:"mini"})])),_:1})):u("",!0),i(T,{class:c(["common-lable",{"urgent-lable":2==e.flowUrgent,"important-lable":3==e.flowUrgent}])},{default:l((()=>[n(p(I.getLableValue(e.flowUrgent)),1)])),_:2},1032,["class"]),i(j,{class:"title u-font-28 u-line-1"},{default:l((()=>[n(p(e.fullName),1)])),_:2},1024)])),_:2},1024),i(j,{class:"title u-line-1 u-font-24"},{default:l((()=>[n("审批节点："),i(j,{class:"titInner"},{default:l((()=>[n(p(e.thisStep?e.thisStep:"暂无"),1)])),_:2},1024)])),_:2},1024),i(j,{class:"time title u-font-24"},{default:l((()=>[n(p(k.title)+"：",1),i(j,{class:"titInner"},{default:l((()=>[n(p(e.creatorTime?t.$u.timeFormat(e.creatorTime,"yyyy-mm-dd hh:MM:ss"):""),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),i(T,{class:"item-right"},{default:l((()=>[i(C,{src:e.flowStatus,mode:"widthFix",class:"item-right-img"},null,8,["src"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}],["__scopeId","data-v-70d6b346"]]);export{y as f};
