pages-ib-agentList.DFLootC4.js 5.2 KB

1
  1. import{d as e,r as a,c as l,u as t,o as n,f as o,g as i,i as r,j as s,k as c,l as u,m as p,n as m,t as d,P as g,A as b,x as f,ay as y,v,az as _,aA as w,_ as A}from"./index-cgJbsk9Q.js";import{_ as C,a as L}from"./cwg-page-wrapper.Em0oD8Gp.js";import{_ as h}from"./cwg-complex-search.7WhV6Xqy.js";import{_ as j}from"./cwg-tabel.D8rTO_-r.js";import{a as D}from"./user.BtyQGfSG.js";import{i as T}from"./cwg-right-drawer.DV6KhR1m.js";import"./liveChat.BUvaIfgQ.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 k=A(e({__name:"agentList",setup(e){const A=a({}),k=a({name:""}),x=l(()=>[{key:"name",type:"input",label:V("Ib.Custom.NameLabel"),placeholder:V("Ib.Custom.NameLabel"),defaultValue:""}]),S=a(null),I=e=>{k.value={...e},g(()=>{var e,a;null==(a=null==(e=S.value)?void 0:e.refreshTable)||a.call(e)})},B=e=>{k.value={...e},g(()=>{var e,a;null==(a=null==(e=S.value)?void 0:e.refreshTable)||a.call(e)})},P=a({}),M=a(!1),N=a(!1),R=a(!1),{t:V,locale:F}=t(),U=a([{prop:"dealCId",label:V("Label.CidAccount"),align:"center"},{prop:"pIbNo",label:V("Label.AgentNumber"),align:"center"},{prop:"nickname",label:V("Documentary.console.item20"),align:"center"},{prop:"dealLogin",label:V("Documentary.tradingCenter.item18"),align:"center"},{prop:"dealPlatform",label:V("Label.Platform"),align:"center"},{prop:"dealLeverage",label:V("Label.Leverage"),align:"center"},{prop:"dealLoginType",type:"tag",label:V("Label.AccountType"),align:"center",tagMap:{1:V("AccountType.ClassicAccount"),2:V("AccountType.SeniorAccount"),5:V("AccountType.SpeedAccount"),6:V("AccountType.SpeedAccount"),7:V("AccountType.StandardAccount"),8:V("AccountType.CentAccount")}},{prop:"distributionType",label:V("Documentary.AgentBackground.item11"),align:"center",formatter:({row:e})=>1===e.distributionType?V("Documentary.TundManagement.item59"):"--"},{prop:"distributionRatio",label:V("Documentary.Report.item5"),align:"center"},{prop:"settlementCycle",label:V("Documentary.AgentBackground.item13"),align:"center"},{prop:"approveTime",label:V("Label.ApplyTime"),align:"center"},{prop:"permissionDisplay",type:"tag",label:V("Documentary.AgentBackground.item14"),align:"center",tagMap:{1:V("Documentary.AgentBackground.item16"),2:V("Documentary.AgentBackground.item15")}},{prop:"action",label:V("Label.Action"),type:"action",align:"center",menuList:[{label:V("Ib.Custom.Btn"),type:"DisplaySettings",btnClick:e=>E({type:"DisplaySettings",row:e}),show:e=>"1"==e.agentUpdatePurview}]}]),q=a([{prop:"cId",label:V("Label.CidAccount"),align:"center"},{prop:"ibNo",label:V("Label.IbAccount"),align:"center"},{prop:"name",label:V("Ib.Custom.NameLabel"),align:"center"},{prop:"more",type:"more",width:20,align:"right"}]),z=a(T.followDealAgentSearchList),E=e=>{if("DisplaySettings"==e.type){const{dealLogin:a,id:l,permissionDisplay:t,pIbNo:n,agentDistributionRatio:o}=e.row;P.value={dealLogin:a,id:l,permissionDisplay:t,ibNo:n,agentDistributionRatio:null==o?"":o.toString()},N.value=!1,M.value=!0}},H=e=>{N.value=e.detail.value.length>0},G=()=>{M.value=!1,N.value=!1},J=()=>{N.value?(M.value=!1,R.value=!0,N.value=!1):b({title:V("Msg.Read"),icon:"none"})};return n(()=>{}),(e,a)=>{const l=o(i("cwg-header"),C),t=o(i("cwg-complex-search"),h),n=f,g=o(i("cwg-tabel"),j),b=y,T=v,P=_,R=w,F=o(i("cwg-popup"),D),E=o(i("cwg-page-wrapper"),L);return r(),s(E,{class:"create-page",isHeaderFixed:!0},{default:c(()=>[u(l,{title:p(V)("Documentary.console.item23")},null,8,["title"]),u(n,{class:"account-content"},{default:c(()=>[u(n,{class:"search-content"},{default:c(()=>[u(n,{class:"search-bar"},{default:c(()=>[u(t,{fields:x.value,modelValue:A.value,"onUpdate:modelValue":a[0]||(a[0]=e=>A.value=e),onSearch:I,onReset:B},null,8,["fields","modelValue"])]),_:1})]),_:1}),u(g,{class:"table-container",ref_key:"tableRef",ref:S,columns:U.value,mobilePrimaryFields:q.value,queryParams:k.value,api:z.value,"show-operation":!0,showPagination:!0},null,8,["columns","mobilePrimaryFields","queryParams","api"])]),_:1}),u(F,{visible:M.value,title:p(V)("Ib.Custom.Btn"),cancelText:p(V)("Btn.Cancel"),confirmText:p(V)("Btn.Confirm"),onClose:G,onConfirm:J},{default:c(()=>[u(n,{class:"dia-content custom-dialog-content"},{default:c(()=>[u(n,{class:"desc-text"},{default:c(()=>[u(n,{class:"desc-p"},{default:c(()=>[m(d(p(V)("news_add_field1.CustomerManagement.item1")),1)]),_:1}),u(n,{class:"desc-p"},{default:c(()=>[m(d(p(V)("news_add_field1.CustomerManagement.item2")),1)]),_:1})]),_:1}),u(n,{class:"agree-box"},{default:c(()=>[u(R,{onChange:H},{default:c(()=>[u(P,{class:"agree-label"},{default:c(()=>[u(b,{value:1,checked:N.value,color:"#2b5aed",style:{transform:"scale(0.8)"}},null,8,["checked"]),u(n,{class:"agree-des"},{default:c(()=>[u(T,null,{default:c(()=>[m(d(p(V)("news_add_field1.CustomerManagement.item3")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["visible","title","cancelText","confirmText"])]),_:1})}}}),[["__scopeId","data-v-d2b494de"]]);export{k as default};