| 1 |
- import{R as e,aO as a,x as l,bh as t,aA as n,B as o,bp as i,aW as r,aV as s,aG as c,N as u,bc as p,a8 as m,M as d,b8 as g,aj as b,am as f,ai as y,aa as v,au as _,b4 as w,r as A}from"./index-F6_4Jyh4.js";import{d as h,a as C,_ as L}from"./cwg-page-wrapper.BFOixv7j.js";import{_ as j}from"./cwg-complex-search.DF9Xw24z.js";import{a as T}from"./cwg-tabel.CMOAYluz.js";import{i as D}from"./cwg-right-drawer.DxUcCL7k.js";import"./liveChat.GIhP_1Cc.js";import"./uni-row.zq2qDVVW.js";import"./index.2vaGpUrt.js";import"./openExternalUrl.DIEuSLrw.js";import"./logo-full-white.BpiOcQwV.js";import"./useRouter.UV7jRAqd.js";import"./user.Cktg3SZn.js";import"./useLeftSidebarCollapse.BPFK9IFl.js";import"./useMenuSplit.CWEX60oa.js";import"./cwg-popup.vue_vue_type_style_index_0_scoped_b0faaf66_lang.CpVDMDmX.js";import"./uni-easyinput.B3QBO_js.js";import"./cwg-combox.CWJXmSox.js";import"./uni-datetime-picker.DBovkksY.js";import"./uni-load-more.DfDVL4Cs.js";import"./uni-loading.CiYBWvZ_.js";import"./cwg-label-line-value.Bqk_BoTX.js";const x=A(e({__name:"agentList",setup(e){const A=a({}),x=a({name:""}),k=l(()=>[{key:"name",type:"input",label:V("Ib.Custom.NameLabel"),placeholder:V("Ib.Custom.NameLabel"),defaultValue:""}]),I=a(null),B=e=>{x.value={...e},_(()=>{var e,a;null==(a=null==(e=I.value)?void 0:e.refreshTable)||a.call(e)})},S=e=>{x.value={...e},_(()=>{var e,a;null==(a=null==(e=I.value)?void 0:e.refreshTable)||a.call(e)})},M=a({}),N=a(!1),R=a(!1),P=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=>G({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"}]),E=a(D.followDealAgentSearchList),G=e=>{{const{dealLogin:a,id:l,permissionDisplay:t,pIbNo:n,agentDistributionRatio:o}=e.row;M.value={dealLogin:a,id:l,permissionDisplay:t,ibNo:n,agentDistributionRatio:null==o?"":o.toString()},R.value=!1,N.value=!0}},H=e=>{R.value=e.detail.value.length>0},O=()=>{N.value=!1,R.value=!1},W=()=>{R.value?(N.value=!1,P.value=!0,R.value=!1):w({title:V("Msg.Read"),icon:"none"})};return n(()=>{}),(e,a)=>{const l=r(s("cwg-header"),C),t=r(s("cwg-complex-search"),j),n=m,_=r(s("cwg-tabel"),T),w=y,D=v,M=f,P=b,F=r(s("cwg-popup"),L),G=r(s("cwg-page-wrapper"),h);return c(),o(G,{class:"create-page",isHeaderFixed:!0},{default:i(()=>[u(l,{title:p(V)("Documentary.console.item23")},null,8,["title"]),u(n,{class:"account-content"},{default:i(()=>[u(n,{class:"search-content"},{default:i(()=>[u(n,{class:"search-bar"},{default:i(()=>[u(t,{fields:k.value,modelValue:A.value,"onUpdate:modelValue":a[0]||(a[0]=e=>A.value=e),onSearch:B,onReset:S},null,8,["fields","modelValue"])]),_:1})]),_:1}),u(_,{class:"table-container",ref_key:"tableRef",ref:I,columns:U.value,mobilePrimaryFields:q.value,queryParams:x.value,api:E.value,"show-operation":!0,showPagination:!0},null,8,["columns","mobilePrimaryFields","queryParams","api"])]),_:1}),u(F,{visible:N.value,title:p(V)("Ib.Custom.Btn"),cancelText:p(V)("Btn.Cancel"),confirmText:p(V)("Btn.Confirm"),onClose:O,onConfirm:W},{default:i(()=>[u(n,{class:"dia-content custom-dialog-content"},{default:i(()=>[u(n,{class:"desc-text"},{default:i(()=>[u(n,{class:"desc-p"},{default:i(()=>[d(g(p(V)("news_add_field1.CustomerManagement.item1")),1)]),_:1}),u(n,{class:"desc-p"},{default:i(()=>[d(g(p(V)("news_add_field1.CustomerManagement.item2")),1)]),_:1})]),_:1}),u(n,{class:"agree-box"},{default:i(()=>[u(P,{onChange:H},{default:i(()=>[u(M,{class:"agree-label"},{default:i(()=>[u(w,{value:1,checked:R.value,color:"#2b5aed",style:{transform:"scale(0.8)"}},null,8,["checked"]),u(n,{class:"agree-des"},{default:i(()=>[u(D,null,{default:i(()=>[d(g(p(V)("news_add_field1.CustomerManagement.item3")),1)]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["visible","title","cancelText","confirmText"])]),_:1})}}}),[["__scopeId","data-v-25b7408c"]]);export{x as default};
|