import{d as v,ah as y,ag as f,R as n,r as d,$ as g,c as e,aj as h,F as I,bf as t,q as l,ai as S,m as T,g as N}from"./index.27735e87.js";import{s as a}from"./index.module.6c7a343e.js";import{i as x}from"./icon_teacher.df08d662.js";import{O as D}from"./index.8c4977a2.js";import{O as R}from"./index.71a5f9d3.js";import{c as C}from"./index.b28db9f5.js";import{C as m}from"./index.997909e4.js";import{G as b,a as o}from"./index.d4c59470.js";import"./index.18f2dec1.js";import"./index.d02ae1ba.js";const A=n();var Y=v({name:"subsidy-exercise-detail",setup(){const c=y(),p=f(),u=n(!1);d({show:!1,row:null});const r=d({record:{userName:"",avatar:"",courseSalaryRecordDetailList:[]}}),i=()=>{T.post(`${N.platformApi}/schoolWeekSalaryRecord/detailInfo/course`,{data:{...c.query}}).then(s=>{r.record=(s==null?void 0:s.data)||{}}).finally(()=>{u.value=!1})};return g(()=>{i()}),()=>e("div",null,[e(R,{onGetHeight:s=>{document.documentElement.style.setProperty("--header-height",s+"px")}},{default:()=>[e(h,null,null)]}),e(D,{modelValue:u.value,"onUpdate:modelValue":s=>u.value=s,onRefresh:i,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[e("div",{class:a.wrap},[e("div",{class:a.item},[e(m,{center:!0,class:a.rewardItem},{icon:()=>e("img",{class:a.itemPicture,src:r.record.avatar||x},null),title:()=>e("div",{class:a.itemTitle},[e("span",null,[r.record.userName])]),value:()=>e(I,null,[e("div",{class:a.gridItem},[e("div",{class:a.gridItemTop},[e("span",{class:a.topNum,style:{color:"#333"}},[t(r.record.expectSalary||0)]),l("\u5143")]),e("div",{class:a.valeLabel},[l("\u9884\u8BA1\u8865\u52A9")])]),e("div",{class:a.gridItem},[e("div",{class:a.gridItemTop},[e("span",{class:a.topNum},[t(r.record.actualSalary||0)]),l("\u5143")]),e("div",{class:a.valeLabel},[l("\u5B9E\u9645\u8865\u52A9")])])])})]),r.record.courseSalaryRecordDetailList.map(s=>e("div",{class:a.item},[e(m,{center:!0,value:`${S(s.date).format("YYYY-MM-DD")}`,valueClass:a.exerciseValue,isLink:!0,class:a.itemCourseName,onClick:()=>{A.value=s,p.push({path:"/subsidy-exercise-details",query:{...c.query,courseType:s.courseType,courseSalaryId:s.courseSalaryId}})}},{title:()=>e("div",{class:a.itemTitle},[e("div",{class:a.titleLine},null),e("span",null,[C[s.courseType]])])}),e(b,{class:a.grid,columnNum:3,border:!1},{default:()=>[e(o,null,{default:()=>[e("div",{class:a.gridItem},[e("div",{class:a.gridItemTop},[e("span",{class:[a.topNum,a.small],style:{color:"#333"}},[t(s.expectSalary||0)]),l("\u5143")]),e("div",null,[l("\u8865\u52A9\u6807\u51C6")])])]}),e(o,null,{default:()=>[e("div",{class:a.gridItem},[e("div",{class:a.gridItemTop},[e("span",{class:[a.topNum,a.small],style:{color:"#333"}},[t(s.reduceSalary||0)]),l("\u5143")]),e("div",null,[l("\u6263\u6B3E\u91D1\u989D")])])]}),e(o,null,{default:()=>[e("div",{class:a.gridItem},[e("div",{class:a.gridItemTop},[e("span",{class:[a.topNum,a.small]},[t(s.actualSalary||0)]),l("\u5143")]),e("div",null,[l("\u5B9E\u9645\u8865\u52A9")])])]})]})]))])]})])}});export{A as courseSalaryRecordDetailItem,Y as default};
