2 lines
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
import{_ as L,k as E,I as G,o as N,c as d,l as z,q as s,b as e,t,F as f,x as g,m as w,r as p,S as A,j as n,y as T,G as C,v}from"./index-CIAVq8iD-1776148658686.js";import{h as x}from"./imageHandler-DstQGL3Z-1776148658686.js";import{d as B,e as O}from"./admin-BlNjNFbv-1776148658686.js";import{G as V}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{m as F}from"./MaskLayer-CMaJd7Gb-1776148658686.js";import{h as j}from"./historySalary-Dx1-gVKG-1776148658686.js";const H={class:"fullPage"},q={style:{padding:"16px",position:"relative","z-index":"2",display:"flex","flex-direction":"column",gap:"12px"}},R={style:{"background-color":"white","border-radius":"12px","box-shadow":"0 2px 8px rgba(0, 0, 0, 0.1)",padding:"16px",border:"1px solid #e5e7eb",display:"flex","flex-direction":"column",gap:"10px"}},U={style:{display:"flex","align-items":"flex-end"}},J={style:{"font-weight":"600","font-size":"0.9em"}},K={style:{"font-weight":"700"}},Q={style:{display:"flex","align-items":"flex-end"}},W={style:{"font-weight":"600","font-size":"0.9em"}},X={style:{"font-weight":"700"}},Y={style:{"background-color":"white","border-radius":"12px","box-shadow":"0 2px 8px rgba(0, 0, 0, 0.1)",padding:"16px",border:"1px solid #e5e7eb",display:"flex","flex-direction":"column",gap:"10px"}},Z={style:{"font-weight":"700"}},ee={style:{"font-size":"0.9em","font-weight":"600"}},te={style:{position:"relative","background-color":"white",padding:"14px 10px","border-radius":"12px","box-shadow":"0 2px 8px rgba(0, 0, 0, 0.1)",display:"flex","align-items":"center","justify-content":"space-around",gap:"4px"}},oe={style:{width:"15%","align-self":"stretch",display:"flex","align-items":"center","justify-content":"center"}},se=["src"],ie={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",gap:"4px"}},le={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},ne={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},ae={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"center"}},de={style:{"font-size":"0.8em","font-weight":"500","text-align":"end"}},ce={style:{"font-size":"0.8em","font-weight":"500","text-align":"end"}},re=["onClick"],_e={style:{position:"fixed",bottom:"0",width:"100%"}},pe={style:{display:"flex","justify-content":"center","align-items":"center"}},ue={style:{margin:"0","font-weight":"600",color:"#333"}},me={style:{"box-shadow":"0 0 4px 0 rgba(0, 0, 0, 0.25)","border-radius":"8px",padding:"12px",margin:"0 4px"}},he={style:{display:"grid",gap:"4px"}},ve={style:{"font-size":"0.9em","font-weight":"600"}},xe={style:{"font-size":"0.9em","font-weight":"600"}},ye={style:{"font-weight":"600"}},fe={style:{"overflow-y":"auto",display:"flex","flex-direction":"column",gap:"8px"},class:"salaryList"},ge={style:{}},we={class:"contentTime"},be={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},ke={class:"contentText"},ze={class:"contentText"},Te={class:"contentTime"},Ce={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column",gap:"2px"}},je={class:"contentText"},$e={class:"contentText"},Se={style:{"font-weight":"600"}},Me={style:{display:"flex","justify-content":"space-between"}},Pe={style:{"font-size":"0.8em","font-weight":"600"}},Ie={style:{"font-size":"0.8em","font-weight":"600"}},De={style:{"background-color":"white",padding:"14px 10px","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"}},Le={style:{width:"15%","align-self":"stretch",display:"flex","align-items":"center","justify-content":"center"}},Ee=["src"],Ge={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",gap:"4px"}},Ne={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ae={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},Be={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},Oe={style:{"font-size":"0.8em","font-weight":"500"}},Ve={style:{"font-size":"0.8em","font-weight":"500"}},Fe={__name:"MyBDLeaderTeams",setup(He){const{t:i,locale:b}=E();b.value&&G(b.value);const c=p(null),y=p(""),u=p(null),r=p(null),m=p(!1),h=p(!1),$=A(()=>m.value||h.value),S=a=>{console.log("点击了收入按钮"),console.log("BDLeaderInfo.userId:",a.userId),y.value=a.account,I(a.userId),m.value=!0},k=a=>{console.log("点击了历史薪资按钮"),console.log("incomeInfo:",a),r.value=a,m.value=!1,h.value=!0},M=()=>{m.value=!1,h.value=!1,y.value="",u.value=null,r.value=null},P=async()=>{const l=await B({type:"BD_LEADER"});console.log("任务列表:",l),l.status&&l.body&&(c.value=l.body)},I=async a=>{const o=await O({targetId:a,type:"BD"});console.log("任务列表:",o),o.status&&o.body&&(u.value=o.body)},D=()=>{P()};return N(()=>{D()}),(a,l)=>(n(),d("div",H,[z(V,{showLanguageList:!0,title:s(i)("my_bd_leader_teams"),color:"black",style:{"box-shadow":"0 0 10px rgba(0, 0, 0, 0.1)","z-index":"999"}},null,8,["title"]),e("div",q,[e("div",R,[e("div",U,[e("div",J,t(s(i)("total_income")),1),e("div",K,"$"+t(c.value?.totalIncome||0),1)]),e("div",Q,[e("div",W,t(s(i)("previous_period_income")),1),e("div",X,"$"+t(c.value?.previousPeriodIncome||0),1)])]),e("div",Y,[e("div",Z,t(s(i)("bd_leaders_label"))+" "+t(c.value?.memberCount||0),1),e("div",ee,t(s(i)("team_total_income_label"))+" $"+t(c.value?.teamTotalIncome||0),1),(n(!0),d(f,null,g(c.value?.members,o=>(n(),d("div",te,[e("div",oe,[e("img",{src:o.avatar||"",alt:"",style:{display:"block",width:"100%","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:l[0]||(l[0]=(..._)=>s(x)&&s(x)(..._))},null,40,se)]),e("div",ie,[e("div",le,t(o.userName||"-"),1),e("div",ne,t(s(i)("user_id_prefix"))+" "+t(o.account||"-"),1)]),e("div",ae,[e("div",de,t(s(i)("number_of_agencies_personnel_label"))+" "+t(o?.subMemberCount||0),1),e("div",ce,t(s(i)("total_income"))+" $"+t(o?.totalIncome||0),1)]),e("div",{class:"moreBt",onClick:_=>S(o)},t(s(i)("more")),9,re)]))),256))])]),z(F,{maskLayerShow:$.value,onClick:M},{default:w(()=>[e("div",_e,[m.value?(n(),d("div",{key:0,style:{background:"white","border-radius":"16px 16px 0 0","max-height":"80vh",display:"flex","flex-direction":"column",gap:"10px",padding:"10px 12px 30px"},class:"overflow-y-auto",onClick:l[1]||(l[1]=T(()=>{},["stop"]))},[e("div",pe,[e("div",ue,t(s(i)("bd_leader_id_label"))+" "+t(y.value),1)]),e("div",me,[e("div",null,[e("div",he,[e("div",ve,t(s(i)("total_income"))+" $"+t(u.value?.totalIncome||0),1),e("div",xe,t(s(i)("previous_period_income"))+": $"+t(u.value?.previousPeriodIncome||0),1)])])]),e("div",ye,t(s(i)("income_details_label")),1),e("div",fe,[(n(!0),d(f,null,g(u.value?.incomeDetails,o=>(n(),d("div",ge,[o.status==="In Progress"?(n(),C(j,{key:0,type:"In Progress",onShowMore:_=>k(o)},{content:w(()=>[e("div",we,t(o.settlementPeriod),1),e("div",be,[e("div",ke,t(s(i)("agency_label"))+" "+t(o.memberCount),1),e("div",ze,t(s(i)("team_total_income_text"))+" $"+t(o.teamTotalIncome),1)])]),_:2},1032,["onShowMore"])):v("",!0),o.status==="Completed"?(n(),C(j,{key:1,type:"Completed",onShowMore:_=>k(o)},{content:w(()=>[e("div",Te,t(o.settlementPeriod),1),e("div",Ce,[e("div",je,t(s(i)("agency_label"))+" "+t(o.memberCount),1),e("div",$e,t(s(i)("team_total_income_text_capitalized"))+"$"+t(o.teamTotalIncome),1)])]),_:2},1032,["onShowMore"])):v("",!0)]))),256))])])):v("",!0),h.value?(n(),d("div",{key:1,style:{background:"white","border-radius":"16px 16px 0 0","max-height":"60vh",display:"flex","flex-direction":"column",gap:"10px",padding:"10px 12px 30px"},class:"overflow-y-auto",onClick:l[3]||(l[3]=T(()=>{},["stop"]))},[e("div",Se,t(r.value.settlementPeriod),1),e("div",Me,[e("div",Pe,t(s(i)("agency_label"))+" "+t(r.value.memberCount),1),e("div",Ie,t(s(i)("team_total_income_text_capitalized"))+" $"+t(r.value.teamTotalIncome),1)]),(n(!0),d(f,null,g(r.value.members,o=>(n(),d("div",De,[e("div",Le,[e("img",{src:o.avatar||"",alt:"",style:{display:"block",width:"100%","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:l[2]||(l[2]=(..._)=>s(x)&&s(x)(..._))},null,40,Ee)]),e("div",Ge,[e("div",Ne,t(o.userName),1),e("div",Ae,t(s(i)("user_id_prefix"))+" "+t(o.account),1)]),e("div",Be,[e("div",Oe,t(s(i)("agency_team_income")),1),e("div",Ve,"$"+t(o.income),1)])]))),256))])):v("",!0)])]),_:1},8,["maskLayerShow"])]))}},We=L(Fe,[["__scopeId","data-v-9c05c845"]]);export{We as default};
|