| 1 |
- import{_ as e,a as t}from"./cwg-page-wrapper.Em0oD8Gp.js";import{d as a,u as l,r as o,aq as r,c,f as n,g as i,i as p,j as u,k as s,l as m,m as d,P as b,x as g,_ as f}from"./index-cgJbsk9Q.js";import{_ as y}from"./cwg-complex-search.7WhV6Xqy.js";import{_ as w}from"./liveChat.BUvaIfgQ.js";import{_ as h}from"./user.BtyQGfSG.js";import{_ as v}from"./cwg-tabel.D8rTO_-r.js";import{i as A}from"./cwg-right-drawer.DV6KhR1m.js";import"./logo-full-white.B1je6nNN.js";import"./useRouter.9Te-FnFv.js";import"./cwg-link.lANmZlwR.js";import"./openExternalUrl.DIEuSLrw.js";import"./useLeftSidebarCollapse.DcXanZiP.js";import"./useMenuSplit.COJ5VtSh.js";import"./uni-easyinput.DsosIYn9.js";import"./cwg-combox.BkQ7-dcX.js";import"./uni-datetime-picker.CnmNB7rh.js";import"./uni-load-more.B2nuQMH0.js";import"./uni-loading.CpAW2iQN.js";import"./cwg-label-line-value.CvkmiB4B.js";const x=f(a({__name:"complexReport",setup(a){const{t:f}=l(),x=o({}),T=r({cId:"",customName:"",login:"",groupType:0,platform:null,date:null}),j=o(A.ComplexReport),F=o(null),R=[{text:"MT4",value:"MT4"},{text:"MT5",value:"MT5"}],L=c(()=>[{key:"platform",type:"select",label:f("Label.Platform"),placeholder:f("placeholder.choose"),options:R,defaultValue:null,clearable:!0},{key:"cId",type:"input",label:f("Label.CidAccount"),placeholder:f("Label.CidAccount"),defaultValue:""},{key:"customName",type:"input",label:f("Documentary.Report.item19"),placeholder:f("Documentary.Report.item19"),defaultValue:""},{key:"login",type:"input",label:f("Label.TradingAccount"),placeholder:f("Label.TradingAccount"),defaultValue:""},{key:"groupType",type:"select",label:f("Documentary.Report.item20"),placeholder:f("Documentary.Report.item20"),options:[{text:f("State.All"),value:0},{text:f("AccountType.SeniorAccount"),value:2},{text:f("AccountType.StandardAccount"),value:7},{text:f("AccountType.CentAccount"),value:8}],defaultValue:0,clearable:!0},{key:"date",label:f("placeholder.Start")+" - "+f("placeholder.End"),type:"daterange"}]),_=c(()=>[{prop:"cId",label:f("Label.CidAccount"),align:"center"},{prop:"customName",label:f("Documentary.Report.item19"),align:"center",formatter:({row:e})=>e.customName||"--"},{prop:"login",label:f("Label.TradingAccount"),align:"center",formatter:({row:e})=>e.login||"--"},{prop:"groupType",type:"tag",label:f("Documentary.Report.item20"),align:"center",width:110,tagMap:{1:f("AccountType.ClassicAccount"),2:f("AccountType.SeniorAccount"),5:f("AccountType.SpeedAccount"),6:f("AccountType.NewSpeedAccount"),7:f("AccountType.StandardAccount"),8:f("AccountType.CentAccount")}},{prop:"deposit",label:f("Documentary.Report.item21"),align:"center",sortable:"custom",formatter:({row:e})=>e.deposit?parseFloat(e.deposit).toFixed(2):"0.00"},{prop:"withdrawal",label:f("Documentary.Report.item22"),align:"center",sortable:"custom",formatter:({row:e})=>e.withdrawal?parseFloat(e.withdrawal).toFixed(2):"0.00"},{prop:"netDeposit",label:f("Documentary.Report.item23"),align:"center",sortable:"custom",formatter:({row:e})=>e.netDeposit?parseFloat(e.netDeposit).toFixed(2):"0.00"},{prop:"volume",label:f("Documentary.Report.item24"),align:"center",sortable:"custom",formatter:({row:e})=>e.volume?parseFloat(e.volume).toFixed(2):"0.00"},{prop:"sumRebate",label:f("Documentary.Report.item25"),align:"center",sortable:"custom",formatter:({row:e})=>e.sumRebate?parseFloat(e.sumRebate).toFixed(2):"0.00"},{prop:"storage",label:f("Documentary.Report.item26"),align:"center",sortable:"custom",formatter:({row:e})=>e.storage?parseFloat(e.storage).toFixed(2):"0.00"},{prop:"balance",label:f("Label.Balance"),align:"center",sortable:"custom",formatter:({row:e})=>null!=e.balance&&""!==e.balance?parseFloat(e.balance).toFixed(2):"--"},{prop:"equity",label:f("Label.equity"),align:"center",sortable:"custom",formatter:({row:e})=>null!=e.equity&&""!==e.equity?parseFloat(e.equity).toFixed(2):"--"},{prop:"profit",label:"盈亏",align:"center",sortable:"custom",formatter:({row:e})=>e.profit?parseFloat(e.profit).toFixed(2):"0.00"},{prop:"marginLevel",label:f("Label.MarginLevel"),align:"center",sortable:"custom",formatter:({row:e})=>e.marginLevel||"--"},{prop:"credit",label:f("Label.Credit"),align:"center",sortable:"custom",formatter:({row:e})=>null!=e.credit&&""!==e.credit?parseFloat(e.credit).toFixed(2):"--"},{prop:"regDate",label:f("Label.RegDate"),align:"center",formatter:({row:e})=>e.regDate||"--"}]),D=c(()=>[{prop:"cId",label:f("Label.CidAccount"),align:"center"},{prop:"customName",label:"客户姓名",align:"center",formatter:({row:e})=>e.customName||"--"},{prop:"login",label:f("Label.TradingAccount"),align:"center",formatter:({row:e})=>e.login||"--"},{prop:"more",type:"more",width:20,align:"right"}]),C=e=>{Object.assign(T,e),b(()=>{var e,t;null==(t=null==(e=F.value)?void 0:e.refreshTable)||t.call(e)})},k=e=>{Object.assign(T,{...e,platform:null,groupType:0}),b(()=>{var e,t;null==(t=null==(e=F.value)?void 0:e.refreshTable)||t.call(e)})},S=e=>{Object.assign(T,{orderColumn:e.prop,orderType:e.order}),b(()=>{var e,t;null==(t=null==(e=F.value)?void 0:e.refreshTable)||t.call(e)})};return(a,l)=>{const o=n(i("cwg-header"),e),r=n(i("cwg-complex-search"),y),c=g,b=n(i("cwg-icon"),w),A=n(i("cwg-dropdown"),h),R=n(i("cwg-tabel"),v),M=n(i("cwg-page-wrapper"),t);return p(),u(M,{class:"create-page",isHeaderFixed:!0},{default:s(()=>[m(o,{title:d(f)("Home.page_ib.item11")},null,8,["title"]),m(c,{class:"account-content"},{default:s(()=>[m(c,{class:"search-content"},{default:s(()=>[m(c,{class:"search-bar"},{default:s(()=>[m(r,{fields:L.value,modelValue:x.value,"onUpdate:modelValue":l[0]||(l[0]=e=>x.value=e),onSearch:C,onReset:k},null,8,["fields","modelValue"])]),_:1})]),_:1}),m(R,{ref_key:"tableRef",ref:F,columns:_.value,mobilePrimaryFields:D.value,queryParams:T,api:j.value,"show-operation":!0,showPagination:!0,showSummary:!0,onSortChange:S},{action:s(({row:e})=>[m(A,{"menu-list":a.menuList(e),onMenuClick:a.handleMenuClick},{default:s(()=>[m(c,{class:"pc-header-btn"},{default:s(()=>[m(b,{name:"crm-ellipsis",size:24})]),_:1})]),_:2},1032,["menu-list","onMenuClick"])]),_:1},8,["columns","mobilePrimaryFields","queryParams","api"])]),_:1})]),_:1})}}}),[["__scopeId","data-v-2b5a0cd5"]]);export{x as default};
|