import{_ as h}from"./index.vue_vue_type_script_setup_true_lang.ecb80feb.js";import{M as x,N as y}from"./element-plus.a63a26dd.js";import{u as v}from"./usePaging.6a6670f9.js";import{x as C}from"./index.914e16f9.js";import{d as _,Z as F,o as n,c as r,U as e,L as m,S as c,u as l,a as w,j as B}from"./@vue.18505fe0.js";import"./lodash.2473fc51.js";const E={key:0,class:"text-success"},L={key:1,class:"text-danger"},V={class:"flex mt-4 justify-end"},k=_({name:"merchandise"}),R=_({...k,props:{user_id:{type:[Number,String],required:!0}},setup(d,{expose:f}){const u=F({id:d.user_id,type:3}),{pager:o,getLists:a,resetParams:P,resetPage:D}=v({fetchFun:C,params:u});return f({getLists:a,getList:i=>{u.id=i.id,a()}}),(i,p)=>{const s=x,g=y,b=h;return n(),r("div",null,[e(g,{data:l(o).lists},{default:m(()=>[e(s,{label:"\u8BA2\u5355\u53F7",prop:"order_id","show-overflow-tooltip":""}),e(s,{label:"\u91D1\u989D",prop:"number"},{default:m(({row:t})=>[t.type!="out"?(n(),r("span",E," +"+c(t.number),1)):(n(),r("span",L," -"+c(t.number),1))]),_:1}),e(s,{label:"\u521B\u5EFA\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(s,{label:"\u5907\u6CE8",prop:"title","show-overflow-tooltip":""})]),_:1},8,["data"]),w("div",V,[e(b,{modelValue:l(o),"onUpdate:modelValue":p[0]||(p[0]=t=>B(o)?o.value=t:null),onChange:l(a)},null,8,["modelValue","onChange"])])])}}});export{R as _};
