test_lgq/niucloud/public/admin/assets/account-a47adc64.js

2 lines
8.5 KiB
JavaScript
Raw Normal View History

2024-01-24 17:36:08 +08:00
import{d as M,O as I,n as H,r as v,h as p,c as h,e,w as t,a as o,t as n,u as a,N as l,F as O,G,I as P,i as y,y as J,B as E,cJ as K,an as W,ao as X,$ as q,as as Q,aF as Z,X as ee,W as te,cK as ae,E as le,Y as oe,ah as ne,aj as se,at as ie,aa as re,a0 as de}from"./index-4dcc0234.js";/* empty css *//* 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 */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css */import{d as ce,f as _e,h as ue}from"./site-ac963391.js";const pe={class:"main-container"},me={class:"flex justify-between items-center"},fe={class:"text-[20px]"},ve={class:"statistic-card"},he={class:"statistic-footer"},ye={class:"footer-item text-[14px] text-[#666]"},be={class:"statistic-card"},ge={class:"statistic-footer"},we={class:"footer-item text-[14px] text-[#666]"},xe={class:"statistic-card"},ke={class:"statistic-footer"},Te={class:"footer-item text-[14px] text-[#666]"},Ee={class:"mt-[10px]"},Ve={class:"mt-[16px] flex justify-end"},Ce={class:"input-width"},Ne={class:"input-width"},Pe={class:"input-width"},De={class:"input-width"},Fe={key:0},Ae={class:"input-width"},Se={class:"input-width"},Re={class:"input-width"},ze={class:"input-width"},Be={class:"input-width"},Le={key:1},Ue={class:"input-width"},$e={class:"input-width"},Ye={class:"input-width"},je={class:"input-width"},Me={key:2},Ie={class:"input-width"},He={class:"input-width"},Oe={class:"input-width"},Ge={class:"input-width"},Je={class:"dialog-footer"},bt=M({__name:"account",setup(Ke){const D=I().meta.title,s=H({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{site_id:"",type:"",money:"",trade_no:"",create_time:""}}),V=v(),m=(_=1)=>{s.loading=!0,s.page=_,ce({page:s.page,limit:s.limit,...s.searchParam}).then(i=>{s.loading=!1,s.data=i.data.data,s.total=i.data.total}).catch(()=>{s.loading=!1})};m();const F=_=>{_&&(_.resetFields(),m())},C=v([]);(()=>{_e().then(_=>{C.value=_.data})})();const b=v(!1),r=v({trade_no:"",type_name:"",money:0,create_time:"",type:"",pay_info:{transfer_no:"",transfer_time:"",transfer_type:"",money:0,remark:"",out_trade_no:"",create_time:"",fail_reason:"",body:""}}),A=_=>{b.value=!0,r.value=_},u=v({pay:0,refund:0,transfer:0});return(async()=>{u.value=await(await ue()).data})(),(_,i)=>{const w=K,x=W,S=X,k=q,R=Q,z=Z,d=ee,B=te,L=ae,g=le,N=oe,f=ne,U=se,$=ie,Y=re,j=de;return p(),h("div",pe,[e(k,{class:"box-card !border-none",shadow:"never"},{default:t(()=>[o("div",me,[o("span",fe,n(a(D)),1)]),e(k,{class:"box-card !border-none base-bg !px-[35px]",shadow:"never"},{default:t(()=>[e(S,{class:"flex"},{default:t(()=>[e(x,{span:8,class:"min-w-[100px]"},{default:t(()=>[o("div",ve,[e(w,{value:u.value.pay?u.value.pay.toFixed(2):"0.00"},null,8,["value"]),o("div",he,[o("div",ye,[o("span",null,n(a(l)("totalPay")),1)])])])]),_:1}),e(x,{span:8,class:"min-w-[100px]"},{default:t(()=>[o("div",be,[e(w,{value:u.value.refund?u.value.refund.toFixed(2):"0.00"},null,8,["value"]),o("div",ge,[o("div",we,[o("span",null,n(a(l)("totalRefund")),1)])])])]),_:1}),e(x,{span:8,class:"min-w-[100px]"},{default:t(()=>[o("div",xe,[e(w,{value:u.value.transfer?u.value.transfer.toFixed(2):"0.00"},null,8,["value"]),o("div",ke,[o("div",Te,[o("span",null,n(a(l)("totalTransfer")),1)])])])]),_:1})]),_:1})]),_:1}),e(k,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:t(()=>[e(N,{inline:!0,model:s.searchParam,ref_key:"searchFormRef",ref:V},{default:t(()=>[e(d,{label:a(l)("type"),class:"items-center"},{default:t(()=>[e(z,{modelValue:s.searchParam.type,"onUpdate:modelValue":i[0]||(i[0]=c=>s.searchParam.type=c),class:"m-2",placeholder:a(l)("accountType")},{defau