/* empty css                  *//* empty css                    *//* empty css                             *//* empty css                 *//* empty css                  */import{d as D,I as N,r as f,m as V,c as m,b as a,a as t,u as g,w as i,f as T,ai as w,i as A,F as I,h as M,ah as U,e as d,t as o,o as _,E as Y,s as R,_ as q}from"./index-hZHbf6Qq.js";import{P as C}from"./index-C__Mp2q5.js";/* empty css                                                              *//* empty css                        *//* empty css               *//* empty css                  *//* empty css                      */const B={class:"invoice-manage-container"},F={class:"search-bar"},G={class:"date-filter"},P={class:"date-filter"},L={class:"action-bar"},S={class:"order-list"},j={class:"order-header"},z={class:"order-time"},H={class:"order-no"},J={class:"order-content"},K=["src"],O={class:"product-info"},Q={class:"product-name"},W={class:"product-spec"},X={class:"quantity"},Z={class:"product-price"},$={class:"pay-info"},ee={class:"pay-amount"},te={class:"amount"},se={class:"pay-method"},oe={class:"order-status"},ae={class:"status-text"},le={class:"bottom-bar"},de={class:"select-all"},ne={class:"summary"},ie={class:"total"},ce=D({__name:"index",setup(pe){const n=N({keyword:"",orderDateRange:[],completeDateRange:[]}),h=f(!1),c=f([{id:1,checked:!0,orderTime:"2025/12/05 16:15:06",orderNo:"489283929283298392",productImg:"https://via.placeholder.com/80",productName:"清华同方超越E500台式机电脑超越E500台式机电脑(i3-6100/4G/1T/19.5寸)",spec1:"规格02",spec2:"规格01",quantity:1,price:181,payAmount:181,payMethod:"微信支付",status:"已完成"},{id:2,checked:!1,orderTime:"2025/12/05 16:15:06",orderNo:"489283929283298392",productImg:"https://via.placeholder.com/80",productName:"清华同方超越E500台式机电脑超越E500台式机电脑(i3-6100/4G/1T/19.5寸)",spec1:"规格02",spec2:"规格01",quantity:1,price:181,payAmount:181,payMethod:"微信支付",status:"已完成"},{id:3,checked:!1,orderTime:"2025/12/05 16:15:06",orderNo:"489283929283298392",productImg:"https://via.placeholder.com/80",productName:"清华同方超越E500台式机电脑超越E500台式机电脑(i3-6100/4G/1T/19.5寸)",spec1:"规格02",spec2:"规格01",quantity:1,price:181,payAmount:181,payMethod:"微信支付",status:"已完成"}]),v=V(()=>c.value.filter(l=>l.checked).length),k=V(()=>c.value.filter(l=>l.checked).reduce((l,e)=>l+e.payAmount,0)),x=l=>{c.value.forEach(e=>{e.checked=!!l})};return(l,e)=>{const E=Y,b=T,y=w,p=A,r=U;return _(),m("div",B,[a(g(C),{title:"开票管理"}),t("div",F,[a(b,{modelValue:n.keyword,"onUpdate:modelValue":e[0]||(e[0]=s=>n.keyword=s),placeholder:"搜索",clearable:"",style:{width:"180px"}},{prefix:i(()=>[a(E,null,{default:i(()=>[a(g(R))]),_:1})]),_:1},8,["modelValue"]),t("div",G,[e[4]||(e[4]=t("span",{class:"label"},"订单下单时间",-1)),a(y,{modelValue:n.orderDateRange,"onUpdate:modelValue":e[1]||(e[1]=s=>n.orderDateRange=s),type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"240px"}},null,8,["modelValue"])]),t("div",P,[e[5]||(e[5]=t("span",{class:"label"},"订单完成时间",-1)),a(y,{modelValue:n.completeDateRange,"onUpdate:modelValue":e[2]||(e[2]=s=>n.completeDateRange=s),type:"daterange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"YYYY-MM-DD",style:{width:"240px"}},null,8,["modelValue"])])]),t("div",L,[a(p,null,{default:i(()=>[...e[6]||(e[6]=[d("订单导出",-1)])]),_:1}),a(p,null,{default:i(()=>[...e[7]||(e[7]=[d("Excel批量导入开票",-1)])]),_:1})]),e[14]||(e[14]=t("div",{class:"order-list-title"},"未开发票订单列表",-1)),t("div",S,[(_(!0),m(I,null,M(c.value,s=>(_(),m("div",{key:s.id,class:"order-card"},[t("div",j,[a(r,{modelValue:s.checked,"onUpdate:modelValue":u=>s.checked=u},null,8,["modelValue","onUpdate:modelValue"]),t("span",z,o(s.orderTime),1),t("span",H,"订单号："+o(s.orderNo),1)]),t("div",J,[a(r,{modelValue:s.checked,"onUpdate:modelValue":u=>s.checked=u,class:"item-checkbox"},null,8,["modelValue","onUpdate:modelValue"]),t("img",{src:s.productImg,class:"product-img"},null,8,K),t("div",O,[t("div",Q,o(s.productName),1),t("div",W,[t("span",null,o(s.spec1),1),t("span",null,o(s.spec2),1),t("span",X,"x"+o(s.quantity),1)]),t("div",Z,"¥"+o(s.price),1)]),t("div",$,[t("div",ee,[e[8]||(e[8]=d("实付款 ",-1)),t("span",te,"¥"+o(s.payAmount),1)]),t("div",se,o(s.payMethod),1)]),t("div",oe,[t("span",ae,o(s.status),1)])])]))),128))]),t("div",le,[t("div",de,[a(r,{modelValue:h.value,"onUpdate:modelValue":e[3]||(e[3]=s=>h.value=s),onChange:x},{default:i(()=>[...e[9]||(e[9]=[d("全选",-1)])]),_:1},8,["modelValue"])]),t("div",ne,[t("span",null,[e[10]||(e[10]=d("已勾选 ",-1)),t("em",null,o(v.value)+"/"+o(c.value.length),1),e[11]||(e[11]=d(" 个订单",-1))]),t("span",ie,[e[12]||(e[12]=d("共计 ",-1)),t("em",null,"¥"+o(k.value.toFixed(2)),1)]),a(p,{type:"danger",disabled:v.value===0},{default:i(()=>[...e[13]||(e[13]=[d("申请开票",-1)])]),_:1},8,["disabled"])])])])}}}),Ee=q(ce,[["__scopeId","data-v-4c5aa234"]]);export{Ee as default};
