test_lgq/niucloud/public/admin/assets/pay_refund-d8d0227e.js

2 lines
3.8 KiB
JavaScript
Raw Permalink Normal View History

2024-01-24 17:36:08 +08:00
import{d as N,O as R,f as T,n as z,r as F,h as b,c as B,e as t,w as r,a as p,t as m,u as o,N as n,i as c,y as Y,I as $,W as j,X as I,cK as U,E as M,Y as H,$ as L,ah as S,aj as K,at as O,a0 as W,_ as X}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{g as q}from"./pay-037f26c5.js";const A={class:"main-container"},G={class:"flex justify-between items-center"},J={class:"text-[20px]"},Q={class:"mt-[10px]"},Z={class:"mt-[16px] flex justify-end"},ee=N({__name:"pay_refund",setup(te){const h=R(),y=T(),v=h.meta.title,e=z({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{refund_no:"",create_time:[]}}),f=F(),d=(s=1)=>{e.loading=!0,e.page=s,q({page:e.page,limit:e.limit,...e.searchParam}).then(a=>{e.loading=!1,e.data=a.data.data,e.total=a.data.total}).catch(()=>{e.loading=!1})};d();const x=s=>{y.push("/finance/refund/detail?refund_no="+s.refund_no)},w=s=>{s&&(s.resetFields(),d())};return(s,a)=>{const P=j,u=I,k=U,_=M,C=H,g=L,i=S,E=K,V=O,D=W;return b(),B("div",A,[t(g,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[p("div",G,[p("span",J,m(o(v)),1)]),t(g,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:r(()=>[t(C,{inline:!0,model:e.searchParam,ref_key:"searchFormRef",ref:f},{default:r(()=>[t(u,{label:o(n)("refundNo"),prop:"refund_no"},{default:r(()=>[t(P,{modelValue:e.searchParam.refund_no,"onUpdate:modelValue":a[0]||(a[0]=l=>e.searchParam.refund_no=l),placeholder:o(n)("refundNoPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(u,{label:o(n)("createTime"),prop:"create_time"},{default:r(()=>[t(k,{modelValue:e.searchParam.create_time,"onUpdate:modelValue":a[1]||(a[1]=l=>e.searchParam.create_time=l),type:"datetimerange","value-format":"YYYY-MM-DD HH:mm:ss","start-placeholder":o(n)("startDate"),"end-placeholder":o(n)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),t(u,null,{default:r(()=>[t(_,{type:"primary",onClick:a[2]||(a[2]=l=>d())},{default:r(()=>[c(m(o(n)("search")),1)]),_:1}),t(_,{onClick:a[3]||(a[3]=l=>w(f.value))},{default:r(()=>[c(m(o(n)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),p("div",Q,[Y((b(),$(E,{data:e.data,size:"large"},{empty:r(()=>[p("span",null,m(e.loading?"":o(n)("emptyData")),1)]),default:r(()=>[t(i,{prop:"refund_no",label:o(n)("refundNo"),"min-width":"200"},null,8,["label"]),t(i,{prop:"money",label:o(n)("refundMoney"),"min-width":"120"},null,8,["label"]),t(i,{prop:"type_name",label:o(n)("payType"),"min-width":"120"},null,8,["label"]),t(i,{prop:"status_name",label:o(n)("status"),"min-width":"120"},null,8,["label"]),t(i,{prop:"create_time",label:o(n)("createTime"),"min-width":"160"},null,8,["label"]),t(i,{label:o(n)("operation"),fixed:"right",align:"right","min-width":"120"},{default:r(({row:l})=>[t(_,{type:"primary",link:"",onClick:ae=>x(l)},{default:r(()=>[c(m(o(n)("info")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[D,e.loading]]),p("div",Z,[t(V,{"current-page":e.page,"onUpdate:current-page":a[4]||(a[4]=l=>e.page=l),"page-size":e.limit,"onUpdate:page-size":a[5]||(a[5]=l=>e.limit=l),layout:"total, sizes, prev, pager, next, jumper",total:e.total,onSizeChange:a[6]||(a[6]=l=>d()),onCurrentChange:d},null,8,["current-page","page-size","total"])])])]),_:1})])}}});const xe=X(ee,[["__scopeId","data-v-d3f76b38"]]);export{xe as default};