import{_ as b}from"./index.vue_vue_type_script_setup_true_lang.5d4e738c.js";import{M as h,b as E,N as v}from"./element-plus.4a7d92a3.js";import{u as C}from"./usePaging.6a6670f9.js";import{z as w}from"./index.76ab889f.js";import{d as m,Z as x,o as F,c as B,U as e,L as p,a as n,S as L,u as l,j as V}from"./@vue.18505fe0.js";import"./lodash.9dc701ad.js";const y={class:"flex items-center"},N={class:"flex mt-4 justify-end"},P=m({name:"receiveGifts"}),I=m({...P,props:{user_id:{type:[Number,String],required:!0}},setup(c,{expose:_}){const r=x({id:c.user_id}),{pager:o,getLists:a,resetParams:S,resetPage:U}=C({fetchFun:w,params:r});return _({getLists:a,getList:i=>{r.id=i.id,a()}}),(i,u)=>{const t=h,d=E,f=v,g=b;return F(),B("div",null,[e(f,{data:l(o).lists},{default:p(()=>[e(t,{label:"\u95E8\u5E97",prop:"store_name","show-overflow-tooltip":""}),e(t,{label:"\u95E8\u5E97\u7535\u8BDD",prop:"store_phone","show-overflow-tooltip":""}),e(t,{label:"\u5546\u54C1",prop:"number","min-width":"200"},{default:p(({row:s})=>[n("div",y,[e(d,{src:s.image,class:"w-8 h-8 mr-2"},null,8,["src"]),n("span",null,L(s.goods_name),1)])]),_:1}),e(t,{label:"\u6570\u91CF",prop:"nums"}),e(t,{label:"\u4EF7\u503C",prop:"price"}),e(t,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","min-width":"120"})]),_:1},8,["data"]),n("div",N,[e(g,{modelValue:l(o),"onUpdate:modelValue":u[0]||(u[0]=s=>V(o)?o.value=s:null),onChange:l(a)},null,8,["modelValue","onChange"])])])}}});export{I as _};
