/* empty css                  *//* empty css                        *//* empty css                    *//* empty css                  *//* empty css               */import{d as _,r as b,c as y,a,b as t,u as r,w as s,i as A,q as g,E as f,ad as h,o as T,e as w,aA as x,af as q,t as C,A as E,H as B,_ as N}from"./index-hZHbf6Qq.js";import{P as V}from"./index-C__Mp2q5.js";/* empty css                                                              *//* empty css                        *//* empty css                  *//* empty css                             *//* empty css                 *//* empty css                      */const k={class:"quota-control-container"},S={class:"page-header"},I={class:"quota-cards"},P={class:"quota-card"},z={class:"card-icon"},D=_({__name:"index",setup(H){const d=B(),c=b([{id:1,applyTime:"2025-11-30",monthAmount:"0.00",yearAmount:"0.00",creditAmount:"0.00",category:"食品饮料",status:"待审批"},{id:2,applyTime:"2025-11-29",monthAmount:"0.00",yearAmount:"0.00",creditAmount:"0.00",category:"食品饮料",status:"已通过"},{id:3,applyTime:"2025-11-25",monthAmount:"0.00",yearAmount:"0.00",creditAmount:"0.00",category:"食品饮料",status:"已通过"},{id:4,applyTime:"2025-12-05",monthAmount:"0.00",yearAmount:"0.00",creditAmount:"0.00",category:"食品饮料",status:"已通过"},{id:5,applyTime:"2025-12-07",monthAmount:"0.00",yearAmount:"0.00",creditAmount:"0.00",category:"食品饮料",status:"已通过"},{id:6,applyTime:"2025-12-07",monthAmount:"0.00",yearAmount:"0.00",creditAmount:"0.00",category:"食品饮料",status:"已通过"}]),l=n=>n==="已通过"?"success":n==="待审批"?"warning":"",m=()=>{d.push("/cost/quotaControl/apply")};return(n,e)=>{const u=A,p=f,o=q,v=h;return T(),y("div",k,[a("div",S,[t(r(V),{title:"额度控制"}),t(u,{type:"danger",onClick:m},{default:s(()=>[...e[0]||(e[0]=[w("额度申请",-1)])]),_:1})]),a("div",I,[a("div",P,[a("div",z,[t(p,null,{default:s(()=>[t(r(x))]),_:1})]),e[1]||(e[1]=a("div",{class:"card-info"},[a("div",{class:"card-label"},"当前额度 >"),a("div",{class:"card-value"},"32")],-1))]),e[2]||(e[2]=g('<div class="quota-card" data-v-699cb430><div class="card-info" data-v-699cb430><div class="card-label" data-v-699cb430>剩余可用额度 &gt;</div><div class="card-value" data-v-699cb430>8,831.00</div></div></div><div class="quota-card" data-v-699cb430><div class="card-info" data-v-699cb430><div class="card-label" data-v-699cb430>已使用额度 &gt;</div><div class="card-value" data-v-699cb430>8,831.00</div></div></div>',2))]),e[3]||(e[3]=a("div",{class:"section-title"},"信用额度申请记录",-1)),t(v,{data:c.value,border:""},{default:s(()=>[t(o,{prop:"applyTime",label:"申请时间","min-width":"120",align:"center"}),t(o,{prop:"monthAmount",label:"月度采购金额","min-width":"120",align:"center"}),t(o,{prop:"yearAmount",label:"预估年度采购金额","min-width":"140",align:"center"}),t(o,{prop:"creditAmount",label:"申请信用金额","min-width":"120",align:"center"}),t(o,{prop:"category",label:"主要采购类目","min-width":"120",align:"center"}),t(o,{prop:"status",label:"申请状态","min-width":"100",align:"center"},{default:s(({row:i})=>[a("span",{class:E(["status-text",l(i.status)])},C(i.status),3)]),_:1})]),_:1},8,["data"])])}}}),Y=N(D,[["__scopeId","data-v-699cb430"]]);export{Y as default};
