import{d as h,ah as y,R as o,r as I,$ as b,m as c,g as r,D as j,c as a,aj as w,q as l,ak as E,P as C}from"./index.8f93de0e.js";import{s as t}from"./index.module.6c7a343e.js";import{O as N}from"./index.ac6701a3.js";import{O as S}from"./index.a9a604b9.js";import{C as f}from"./index.f729b332.js";import{G as T,a as m}from"./index.3df2bede.js";import{P as A}from"./index.16055f9a.js";import"./Picker.205ddaba.js";import"./index.b21db77d.js";import"./use-tab-status.69e46758.js";import"./index.42161f4c.js";import"./index.eb2ddb38.js";var L=h({name:"subsidy-reward-detail",setup(){const p=y(),d=o(!1);o(!1);const s=I({subjectId:"",subjects:[],manageSalary:{},rows:[]}),n=()=>{c.post(`${r.platformApi}/schoolWeekSalaryRecord/detailInfo/trainingTitle`,{data:{id:p.query.id,userId:r.user.data.id,subjectId:s.subjectId}}).then(e=>{s.manageSalary=(e==null?void 0:e.data)||{}}),c.post(`${r.platformApi}/schoolWeekSalaryRecord/detailInfo/trainingPage`,{data:{id:p.query.id,userId:r.user.data.id,subjectId:s.subjectId}}).then(e=>{var u;s.rows=((u=e==null?void 0:e.data)==null?void 0:u.rows)||[]}).finally(()=>{d.value=!1})};b(()=>{c.post(`${r.platformApi}/subjectBasicConfig/page`,{data:{page:1,rows:9999,enableFlag:!0}}).then(e=>{var u;Array.isArray((u=e==null?void 0:e.data)==null?void 0:u.rows)&&(s.subjects=e.data.rows)}),n()});const g=j(()=>{const e=s.subjects.map(u=>({text:u.subjectName,value:u.subjectId}));return[{text:"\u5168\u90E8\u58F0\u90E8"},...e]}),v=o("\u5168\u90E8\u58F0\u90E8"),i=o(!1);return()=>a("div",null,[a(S,{onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[a(w,null,null)]}),a(N,{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,onRefresh:n,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[a("div",{class:[t.wrap]},[a("div",{class:t.item},[a(f,{center:!0},{title:()=>a("div",{class:t.itemTitle},[a("div",{class:t.titleLine},null),a("span",null,[l("\u7EC3\u4E60\u5956\u52B1")])])}),a(T,{class:t.grid,columnNum:3,border:!1},{default:()=>[a(m,null,{default:()=>[a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[s.manageSalary.standardSalary||0]),l("\u5143/\u4EBA")]),a("div",null,[l("\u8865\u52A9\u6807\u51C6")])])]}),a(m,null,{default:()=>[a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[s.manageSalary.targetNum||0]),l("\u4EBA")]),a("div",null,[l("\u7EC3\u4E60\u8FBE\u6807\u4EBA\u6570")])])]}),a(m,null,{default:()=>[a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[s.manageSalary.actualSalary||0]),l("\u5143")]),a("div",null,[l("\u5B9E\u9645\u5956\u52B1")])])]})]})]),a("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[a("div",{class:["searchItem",i.value?"searchItem-active":""],onClick:()=>i.value=!0},[a("span",null,[v.value])])]),s.rows.length?a("div",{class:t.item},[s.rows.map(e=>a(f,{center:!0},{icon:()=>a("img",{class:t.itemPicture,src:e.avatar},null),title:()=>a("div",{class:t.itemTitle},[a("span",null,[e.nickname])]),label:()=>a("span",{class:t.itemTag},[e.subjectNames]),value:()=>a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[e.practiceTimes]),l("\u5206\u949F")]),a("div",{class:t.valeLabel},[l("\u7EC3\u4E60\u65F6\u957F")])])}))]):a(E,{tips:"\u6682\u65E0\u5B66\u5458\u7EC3\u4E60"},null)])]}),a(C,{show:i.value,"onUpdate:show":e=>i.value=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(A,{columns:g.value,onCancel:()=>i.value=!1,onConfirm:e=>{v.value=e.selectedOptions[0].text||"\u5168\u90E8\u58F0\u90E8",s.subjectId=e.selectedOptions[0].value||"",i.value=!1,n()}},null)]})])}});export{L as default};
