2 lines
9.5 KiB
JavaScript
2 lines
9.5 KiB
JavaScript
import{_ as j,k as L,I as B,o as C,c as d,l as v,q as i,b as t,m as h,S as M,r as f,u as D,j as l,t as e,F as x,x as g,y as k,G as H,a0 as E,v as w}from"./index-CIAVq8iD-1776148658686.js";import{_ as G}from"./records-DqyZBoKN-1776148658686.js";import{h as m}from"./imageHandler-DstQGL3Z-1776148658686.js";import{a as N,b as P,g as I}from"./bdCenter-Dx55XoC5-1776148658686.js";import{G as O}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{m as V}from"./MaskLayer-CMaJd7Gb-1776148658686.js";import{h as F}from"./historySalary-Dx1-gVKG-1776148658686.js";import{G as q}from"./GradientBorder-CfwSeIMB-1776148658686.js";const Y={class:"bd-center"},J={style:{padding:"16px",position:"relative","z-index":"2",display:"flex","flex-direction":"column",gap:"12px"}},K={style:{padding:"16px",display:"flex","flex-direction":"column",gap:"10px"}},Q={style:{display:"flex","justify-content":"space-between","align-items":"center"}},U={style:{"font-weight":"600"}},W={style:{display:"flex","justify-content":"space-between","align-items":"center"}},X={style:{"font-size":"0.8em","font-weight":"600"}},Z={style:{"font-size":"0.8em","font-weight":"600"}},tt={style:{"background-color":"#ffe5a1",padding:"10px 16px","border-radius":"12px","box-shadow":"0 2px 8px rgba(0, 0, 0, 0.1)",display:"flex","align-items":"center","justify-content":"space-between",gap:"4px"}},et={style:{width:"3.5em",display:"flex","align-items":"center","justify-content":"center"}},st=["src"],it={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"center",gap:"4px"}},ot={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},at={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},lt={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},nt={style:{"font-size":"0.8em","font-weight":"500"}},dt={style:{"font-size":"0.8em","font-weight":"500"}},rt={style:{"font-size":"0.8em","font-weight":"500"}},ct={style:{position:"fixed",bottom:"0",width:"100%"}},_t={style:{display:"flex","justify-content":"center","align-items":"center"}},yt={style:{margin:"0","font-size":"18px","font-weight":"600",color:"#333"}},ft={style:{"border-radius":"12px",background:"#fff",padding:"12px",margin:"0 4px"}},pt={style:{display:"grid",gap:"4px"}},ut={style:{"font-size":"0.9em","font-weight":"600"}},ht={style:{"font-size":"0.9em","font-weight":"600"}},mt={style:{"font-size":"14px","font-weight":"600",color:"#333"}},vt={style:{"overflow-y":"auto"},class:"salaryList"},xt={style:{display:"flex","flex-direction":"column",gap:"8px"}},gt={class:"contentTime"},wt={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},bt={style:{width:"100%",display:"flex","align-items":"center",gap:"4px"}},kt={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},Tt={class:"contentText"},St={class:"contentText"},$t={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},zt={class:"contentText"},Rt={class:"contentText"},At={class:"contentText"},jt={class:"contentTime"},Lt={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},Bt={style:{width:"100%",display:"flex","align-items":"center",gap:"4px"}},Ct={key:0,style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},Mt={class:"contentText"},Dt={class:"contentText"},Ht={key:1,style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},Et={class:"contentText"},Gt={class:"contentText"},Nt={class:"contentText"},Pt={style:{"font-weight":"600"}},It={style:{display:"flex","align-items":"center",gap:"6vw"}},Ot={style:{"font-size":"0.7em","font-weight":"600"}},Vt={style:{"font-size":"0.7em","font-weight":"600"}},Ft={class:"overflow-y-auto",style:{"max-height":"50vh",display:"flex","flex-direction":"column",gap:"10px"}},qt={style:{"border-radius":"8px",background:"#ffe5a1",padding:"12px",display:"flex","align-items":"center","justify-content":"space-around",gap:"4px"}},Yt={style:{width:"3.5em",display:"flex","align-items":"center","justify-content":"center"}},Jt=["src"],Kt={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"center",gap:"4px"}},Qt={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ut={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},Wt={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},Xt={style:{"font-size":"0.8em","font-weight":"500"}},Zt={style:{"font-size":"0.8em","font-weight":"500"}},te={style:{"font-size":"0.8em","font-weight":"500"}},ee={__name:"agencyList",setup(se){const{t:o,locale:b}=L();D(),b.value&&B(b.value);const _=f(!1),p=f(!1),c=f({}),y=f({}),r=f({}),T=M(()=>_.value||p.value),S=()=>{_.value=!1,p.value=!1},$=async()=>{const n=await N("BD");n.status&&n.body&&(r.value=n.body||{},c.value.incomeDetails&&c.value.incomeDetails.unshift(r.value.bdHistoryCO))},z=async()=>{const n=await P();n.status&&n.body&&(c.value=n.body||{},r.value.bdHistoryCO&&c.value.incomeDetails.unshift(r.value.bdHistoryCO))},R=async n=>{const a=await I(n);a.status&&a.body&&(y.value=a.body||{},_.value=!1,p.value=!0)},A=async()=>{$(),z()};return C(()=>{A()}),(n,a)=>(l(),d("div",Y,[v(O,{showLanguageList:!0,title:i(o)("agency_list_link"),color:"black"},null,8,["title"]),t("div",J,[v(q,{style:{}},{default:h(()=>[t("div",K,[t("div",Q,[t("div",U,e(r.value.billTitle),1),t("img",{src:G,alt:"",style:{display:"block",width:"1.3em"},onClick:a[0]||(a[0]=s=>_.value=!0)})]),t("div",W,[t("div",X,e(i(o)("team_recharge"))+": "+e(r.value.totalRecharge),1),t("div",Z,e(i(o)("team_salary"))+": $"+e(r.value.totalSalary),1)]),(l(!0),d(x,null,g(r.value.memberBillList,s=>(l(),d("div",tt,[t("div",et,[t("img",{src:s.agentAvatar||"",alt:"",style:{display:"block",width:"100%","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:a[1]||(a[1]=(...u)=>i(m)&&i(m)(...u))},null,40,st)]),t("div",it,[t("div",ot,e(s.agentName),1),t("div",at,e(i(o)("user_id_prefix"))+" "+e(s.agentAccount),1)]),t("div",lt,[t("div",nt,e(i(o)("salary"))+": $"+e(s.teamSalaryAmount),1),t("div",dt,e(i(o)("recharge"))+": $"+e(s.teamRechargeAmount),1),t("div",rt,e(i(o)("host"))+":"+e(s.teamMemberCount),1)])]))),256))])]),_:1})]),v(V,{maskLayerShow:T.value,onClick:S},{default:h(()=>[t("div",ct,[_.value?(l(),d("div",{key:0,style:{background:"linear-gradient(0deg, #fffbe3 0%, #fffbe3 100%)","border-radius":"16px 16px 0 0","max-height":"80vh",display:"flex","flex-direction":"column",gap:"10px",padding:"10px 20px 20px"},class:"overflow-y-auto",onClick:a[2]||(a[2]=k(()=>{},["stop"]))},[t("div",_t,[t("div",yt,e(i(o)("revenue_details")),1)]),t("div",ft,[t("div",null,[t("div",pt,[t("div",ut,e(i(o)("total_income"))+" $"+e(c.value.totalIncome),1),t("div",ht,e(i(o)("previous_period_income"))+": $"+e(c.value.previousPeriodIncome),1)])])]),t("div",mt,e(i(o)("income_details_label")),1),t("div",vt,[t("div",xt,[(l(!0),d(x,null,g(c.value.incomeDetails,s=>(l(),H(F,{type:s.statusText,long:"true",onShowMore:u=>R(s.billBelong)},E({_:2},[s.statusText=="In Progress"?{name:"content",fn:h(()=>[t("div",gt,e(s.billTitle),1),t("div",wt,[t("div",bt,[t("div",kt,[t("div",Tt,e(i(o)("team_salary"))+": $"+e(s.teamSalaryAmount||0),1),t("div",St,e(i(o)("bd_income_salary"))+": $"+e(s.bdIncomeSalary||0)+" ("+e(s.bdRatioSalary||0)+"%) ",1)]),t("div",$t,[t("div",zt,e(i(o)("team_top_up"))+": $"+e(s.teamRechargeAmount||0),1),t("div",Rt,e(i(o)("bd_income_top_up"))+": $"+e(s.bdIncomeRecharge||0)+" ("+e(s.bdRatioRecharge||0)+"%) ",1)])]),t("div",At,e(i(o)("agency_number"))+": "+e(s.agencyNumber||0),1)])]),key:"0"}:{name:"content",fn:h(()=>[t("div",jt,e(s.billTitle),1),t("div",Lt,[t("div",Bt,[s.hitPolicyType=="TEAM_SALARY"?(l(),d("div",Ct,[t("div",Mt,e(i(o)("team_salary"))+": $"+e(s.teamSalaryAmount||0),1),t("div",Dt,e(i(o)("bd_income_salary"))+": $"+e(s.settlementSalary||0)+" ("+e(s.commissionRate||0)+"%) ",1)])):s.hitPolicyType=="TEAM_RECHARGE"?(l(),d("div",Ht,[t("div",Et,e(i(o)("team_top_up"))+": $"+e(s.teamRechargeAmount||0),1),t("div",Gt,e(i(o)("bd_income_top_up"))+": $"+e(s.settlementSalary||0)+" ("+e(s.commissionRate||0)+"%) ",1)])):w("",!0)]),t("div",Nt,e(i(o)("num_teams"))+" "+e(s.agencyNumber||0),1)])]),key:"1"}]),1032,["type","onShowMore"]))),256))])])])):w("",!0),p.value?(l(),d("div",{key:1,style:{background:"linear-gradient(0deg, #fffbe3 0%, #fffbe3 100%)","border-radius":"16px 16px 0 0","max-height":"80vh",display:"flex","flex-direction":"column",gap:"10px",padding:"20px"},class:"overflow-y-auto",onClick:a[4]||(a[4]=k(()=>{},["stop"]))},[t("div",Pt,e(y.value.period),1),t("div",It,[t("div",Ot,e(i(o)("team_recharge"))+": $"+e(y.value.teamTotalRecharge),1),t("div",Vt,e(i(o)("total_team_salary"))+": $"+e(y.value.teamTotalSalary),1)]),t("div",Ft,[(l(!0),d(x,null,g(y.value.memberDetails,s=>(l(),d("div",qt,[t("div",Yt,[t("img",{src:s.userAvatar||"",alt:"",style:{display:"block",width:"100%","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:a[3]||(a[3]=(...u)=>i(m)&&i(m)(...u))},null,40,Jt)]),t("div",Kt,[t("div",Qt,e(s.userName),1),t("div",Ut,e(i(o)("user_id_prefix"))+" "+e(s.account),1)]),t("div",Wt,[t("div",Xt,e(i(o)("salary"))+": $"+e(s.salary),1),t("div",Zt,e(i(o)("recharge"))+": $"+e(s.recharge),1),t("div",te,e(i(o)("host"))+":"+e(s.hostCount),1)])]))),256))])])):w("",!0)])]),_:1},8,["maskLayerShow"])]))}},_e=j(ee,[["__scopeId","data-v-07ce6058"]]);export{_e as default};
|