import{d as D,r as h,G as v,g as c,J as V,c as f,k as m,K as P,e as a,z as I,w as n,b as i,H as T,x as o,t as b,_ as U}from"./index-CUnFTKV2.js";const A={class:"order-table"},M={class:"user-info"},O={class:"nickname"},R={class:"uid"},j={key:0,class:"mobile"},E={class:"order-num"},F={class:"money"},G={class:"time-text"},H=D({__name:"RecoveryOrderTable",props:{data:{},loading:{type:Boolean},total:{},page:{},pageSize:{}},emits:["page-change","size-change","view-detail"],setup(r,{emit:z}){const d=r,p=z,u=h(d.page),g=h(d.pageSize);v(()=>d.page,t=>{u.value=t}),v(()=>d.pageSize,t=>{g.value=t});const y=t=>{p("page-change",t)},x=t=>{p("size-change",t)},C=t=>{p("view-detail",t)};return(t,l)=>{const s=c("el-table-column"),k=c("el-tag"),w=c("el-button"),S=c("el-table"),N=c("el-pagination"),B=V("loading");return m(),f("div",A,[P((m(),I(S,{data:r.data,border:"",stripe:""},{default:n(()=>[a(s,{label:"用户信息","min-width":"160",fixed:"left"},{default:n(({row:e})=>[i("div",M,[i("div",O,o(e.userNickname||"-"),1),i("div",R,"UID: "+o(e.userId),1),e.userMobile?(m(),f("div",j,o(e.userMobile),1)):T("",!0)])]),_:1}),a(s,{prop:"recoveryNum",label:"回收单号","min-width":"180"},{default:n(({row:e})=>[i("span",E,o(e.recoveryNum),1)]),_:1}),a(s,{label:"兑换金额","min-width":"120",align:"right"},{default:n(({row:e})=>{var _;return[i("span",F,"¥"+o(((_=e.money)==null?void 0:_.toFixed(2))||"0.00"),1)]}),_:1}),a(s,{prop:"count",label:"兑换数量","min-width":"100",align:"center"},{default:n(({row:e})=>[a(k,{type:"info",size:"small"},{default:n(()=>[b(o(e.count)+" 件",1)]),_:2},1024)]),_:1}),a(s,{prop:"createdAt",label:"兑换时间","min-width":"160"},{default:n(({row:e})=>[i("span",G,o(e.createdAt),1)]),_:1}),a(s,{label:"操作",width:"120",fixed:"right",align:"center"},{default:n(({row:e})=>[a(w,{type:"primary",link:"",onClick:_=>C(e)},{default:n(()=>[...l[2]||(l[2]=[b(" 查看详情 ",-1)])]),_:1},8,["onClick"])]),_:1})]),_:1},8,["data"])),[[B,r.loading]]),a(N,{"current-page":u.value,"onUpdate:currentPage":l[0]||(l[0]=e=>u.value=e),"page-size":g.value,"onUpdate:pageSize":l[1]||(l[1]=e=>g.value=e),"page-sizes":[10,20,50,100],total:r.total,layout:"total, sizes, prev, pager, next, jumper",onSizeChange:x,onCurrentChange:y,class:"pagination"},null,8,["current-page","page-size","total"])])}}}),K=U(H,[["__scopeId","data-v-9c430daf"]]);export{K as default};
