2 lines
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
import{_ as I,k as G,I as N,o as E,c as d,l as T,q as s,b as e,t,F as f,x as g,m as w,r as p,S as B,j as n,y as z,G as C,v}from"./index-CIAVq8iD-1776148658686.js";import{h as x}from"./imageHandler-DstQGL3Z-1776148658686.js";import{d as O,e as V}from"./admin-BlNjNFbv-1776148658686.js";import{G as F}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{m as H}from"./MaskLayer-CMaJd7Gb-1776148658686.js";import{h as j}from"./historySalary-Dx1-gVKG-1776148658686.js";const Y={class:"fullPage"},q={style:{padding:"16px",position:"relative","z-index":"2",display:"flex","flex-direction":"column",gap:"12px"}},U={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"}},A={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"}},R={style:{"font-weight":"600","font-size":"0.9em"}},W={style:{"font-weight":"700"}},X={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"}},re={style:{"font-size":"0.8em","font-weight":"500","text-align":"end"}},ce=["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"}},he={style:{"box-shadow":"0 0 4px 0 rgba(0, 0, 0, 0.25)","border-radius":"8px",padding:"12px",margin:"0 4px"}},me={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"},Te={class:"contentText"},ze={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"}},Le={style:{"font-size":"0.8em","font-weight":"600"}},Pe={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"}},Ie={style:{width:"15%","align-self":"stretch",display:"flex","align-items":"center","justify-content":"center"}},Ge=["src"],Ne={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",gap:"4px"}},Ee={style:{"font-weight":"700",width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Be={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},Oe={style:{width:"auto","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},Ve={style:{"font-size":"0.8em","font-weight":"500"}},Fe={style:{"font-size":"0.8em","font-weight":"500"}},He={__name:"MyAgencyTeams",setup(Ye){const{t:i,locale:b}=G();b.value&&N(b.value);const r=p(null),y=p(""),u=p(null),c=p(null),h=p(!1),m=p(!1),$=B(()=>h.value||m.value),S=a=>{console.log("点击了收入按钮"),console.log("AgencyInfo.userId:",a.userId),y.value=a.account,P(a.userId),h.value=!0},k=a=>{console.log("点击了历史薪资按钮"),console.log("incomeInfo:",a),c.value=a,h.value=!1,m.value=!0},M=()=>{h.value=!1,m.value=!1,y.value="",u.value=null,c.value=null},L=async()=>{const l=await O({type:"AGENCY"});console.log("任务列表:",l),l.status&&l.body&&(r.value=l.body)},P=async a=>{const o=await V({targetId:a,type:"AGENCY"});console.log("任务列表:",o),o.status&&o.body&&(u.value=o.body)},D=()=>{L()};return E(()=>{D()}),(a,l)=>(n(),d("div",Y,[T(F,{showLanguageList:!0,title:s(i)("my_agency_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",U,[e("div",A,[e("div",J,t(s(i)("total_income")),1),e("div",K,"$"+t(r.value?.totalIncome||0),1)]),e("div",Q,[e("div",R,t(s(i)("previous_period_income")),1),e("div",W,"$"+t(r.value?.previousPeriodIncome||0),1)])]),e("div",X,[e("div",Z,t(s(i)("agencies_label"))+" "+t(r.value?.memberCount||0),1),e("div",ee,t(s(i)("team_total_income_label"))+" $"+t(r.value?.teamTotalIncome||0),1),(n(!0),d(f,null,g(r.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_hosts_personnel_label"))+" "+t(o?.subMemberCount||0),1),e("div",re,t(s(i)("total_income"))+" $"+t(o?.totalIncome||0),1)]),e("div",{class:"moreBt",onClick:_=>S(o)},t(s(i)("more")),9,ce)]))),256))])]),T(H,{maskLayerShow:$.value,onClick:M},{default:w(()=>[e("div",_e,[h.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]=z(()=>{},["stop"]))},[e("div",pe,[e("div",ue,t(s(i)("agency_id_label"))+" "+t(y.value),1)]),e("div",he,[e("div",null,[e("div",me,[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)("host_label"))+" "+t(o.memberCount),1),e("div",Te,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",ze,t(o.settlementPeriod),1),e("div",Ce,[e("div",je,t(s(i)("host_label"))+" "+t(o.memberCount),1),e("div",$e,t(s(i)("team_total_income_text"))+" $"+t(o.teamTotalIncome),1)])]),_:2},1032,["onShowMore"])):v("",!0)]))),256))])])):v("",!0),m.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]=z(()=>{},["stop"]))},[e("div",Se,t(c.value.settlementPeriod),1),e("div",Me,[e("div",Le,t(s(i)("host_label"))+":"+t(c.value.memberCount),1),e("div",Pe,t(s(i)("team_total_income_text_capitalized"))+" $"+t(c.value.teamTotalIncome),1)]),(n(!0),d(f,null,g(c.value.members,o=>(n(),d("div",De,[e("div",Ie,[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,Ge)]),e("div",Ne,[e("div",Ee,t(o.userName),1),e("div",Be,t(s(i)("user_id_prefix"))+t(o.account),1)]),e("div",Oe,[e("div",Ve,t(s(i)("host_income_label")),1),e("div",Fe,"$"+t(o.income),1)])]))),256))])):v("",!0)])]),_:1},8,["maskLayerShow"])]))}},Re=I(He,[["__scopeId","data-v-dc4fc0e7"]]);export{Re as default};
|