exercise-detail.326a4f41.js 2.9 KB

1
  1. import{d as v,aV as f,ag as y,R as n,r as d,$ as g,c as e,F as h,b3 as t,q as l,m as I,f as T}from"./index.ffe80dbe.js";import{s as a}from"./index.module.eb524400.js";import{i as N}from"./icon_teacher.df08d662.js";import{O as S}from"./index.45b38760.js";import{O as R}from"./index.a0ef77e4.js";import{O as x}from"./index.4ddd16f0.js";import{c as A}from"./index.931cf0b8.js";import{C as m}from"./index.ea031708.js";import{G as E,a as o}from"./index.72ca63b9.js";import"./index.1d5c6f70.js";const L=n();var G=v({name:"subsidy-exercise-detail",setup(){const i=f(),p=y(),u=n(!1);d({show:!1,row:null});const r=d({record:{userName:"",avatar:"",courseSalaryRecordDetailList:[]}}),c=()=>{I.post(`${T.platformApi}/schoolWeekSalaryRecord/detailInfo/course`,{data:{...i.query},hideLoading:u.value}).then(s=>{r.record=(s==null?void 0:s.data)||{}}).finally(()=>{u.value=!1})};return g(()=>{c()}),()=>e("div",null,[e(x,{onGetHeight:s=>{document.documentElement.style.setProperty("--header-height",s+"px")}},{default:()=>[e(R,null,null)]}),e(S,{modelValue:u.value,"onUpdate:modelValue":s=>u.value=s,onRefresh:c,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||N},null),title:()=>e("div",{class:a.itemTitle},[e("span",null,[r.record.userName])]),value:()=>e(h,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.days}\u5929`,isLink:!0,class:a.itemCourseName,onClick:()=>{L.value=s,p.push({path:"/subsidy-exercise-details",query:{...i.query,courseType:s.courseType}})}},{title:()=>e("div",{class:a.itemTitle},[e("div",{class:a.titleLine},null),e("span",null,[A[s.courseType]])])}),e(E,{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("\u9884\u8BA1\u8865\u52A9")])])]}),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("\u8003\u52E4\u6263\u6B3E")])])]}),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("\u8BFE\u5143")]),e("div",null,[l("\u5B9E\u9645\u8865\u52A9")])])]})]})]))])]})])}});export{L as courseSalaryRecordDetailItem,G as default};