import{af as h,ab as w,ag as y,ah as D}from"./index.BKEMpsLA.js";import{a as p,f as x,aH as F,aj as c,c as d,o as n,b as a,S as i,K as r,R as S,a9 as B,J as u,F as E,O as j,Q as _}from"./vue.YrNK8sx4.js";import{_ as z}from"./_plugin-vue_export-helper.DlAUqK2U.js";const A={class:"status-cards"},L={class:"card-grid"},N=["onClick"],O={class:"card-value"},R={class:"card-label"},V=p({name:"StatusCards"}),q=p({...V,props:{statusData:{type:Object,required:!0}},setup(v){const s=v,b=x(()=>[{label:"待审核",value:s.statusData.pending_approval,icon:h,color:"#409EFF"},{label:"待归还",value:s.statusData.pending_return,icon:w,color:"#E6A23C"},{label:"待维修",value:s.statusData.pending_maintenance,icon:y,color:"#67C23A"},{label:"已逾期",value:s.statusData.pending_overdue,icon:D,color:"#F56C6C"}]),t=F();function f(o){switch(console.log("点击状态卡片:",o.label),o.label){case"待审核":t.push("/borrow/approval");break;case"待归还":t.push("/borrow/list");break;case"待维修":t.push("/devicemaintenance");break;case"已逾期":t.push("/device/list");break;default:console.warn("未知状态:",o.label)}}return(o,l)=>{const m=c("el-icon"),C=c("el-col"),g=c("el-row");return n(),d("div",A,[l[0]||(l[0]=a("div",{class:"info-title"}," 待处理 ",-1)),l[1]||(l[1]=a("div",{class:"custom-line"},null,-1)),a("div",L,[i(g,{gutter:15},{default:r(()=>[(n(!0),d(S,null,B(b.value,(e,k)=>(n(),u(C,{key:k,xs:24,sm:8,md:8,lg:8},{default:r(()=>[a("div",{class:"card",onClick:H=>f(e)},[i(m,{size:40,class:"card-icon",style:E({color:e.color})},{default:r(()=>[(n(),u(j(e.icon)))]),_:2},1032,["style"]),a("div",O,_(e.value),1),a("div",R,_(e.label),1)],8,N)]),_:2},1024))),128))]),_:1})])])}}}),Q=z(q,[["__scopeId","data-v-42bbb0ad"]]);export{Q as default};
