import{d as h,ah as y,R as c,r as T,$ as I,c as a,aj as N,a5 as S,q as s,b6 as p,ai as g,m as f,g as o}from"./index.332c7f08.js";import{s as e}from"./index.module.6c7a343e.js";import{i as w}from"./icon-time.ca1af643.js";import{O as C}from"./index.626c48f9.js";import{O as A}from"./index.d7c1b6ac.js";import{O as F}from"./index.a8f5f4b5.js";import{q as O}from"./quest-icon.f1b2f4e3.js";import{C as v}from"./index.91135ff9.js";import{G as R,a as n}from"./index.5e198b6f.js";var G=h({name:"subsidy-grant-detail",setup(){const u=y(),r=c(!1),i=c(!1),l=T({manageSalary:{},rows:[]}),m=()=>{f.post(`${o.platformApi}/schoolWeekSalaryRecord/detailInfo/manageTitle`,{data:{id:u.query.id,userId:o.user.data.id}}).then(t=>{l.manageSalary=(t==null?void 0:t.data)||{}}),f.post(`${o.platformApi}/schoolWeekSalaryRecord/detailInfo/managePage`,{data:{id:u.query.id,userId:o.user.data.id}}).then(t=>{var d;l.rows=((d=t==null?void 0:t.data)==null?void 0:d.rows)||[],console.log(l.rows)}).finally(()=>{r.value=!1})};return I(()=>{m()}),()=>a("div",null,[a(A,{onGetHeight:t=>{document.documentElement.style.setProperty("--header-height",t+"px")}},{default:()=>[a(N,{class:e.rightTip,onClickRight:()=>i.value=!0},{right:()=>a(S,{name:O,size:22,color:"#333"},null)})]}),a(C,{modelValue:r.value,"onUpdate:modelValue":t=>r.value=t,onRefresh:m,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[a("div",{class:e.wrap},[a("div",{class:e.item},[a(v,{center:!0,style:{"--van-cell-value-color":(l.manageSalary.photoNum||0)>=(l.manageSalary.expectPhotoNum||0)?"#333":"#F44541"},value:`\u8BAD\u7EC3\u7167\u7247${l.manageSalary.photoNum||0}/${l.manageSalary.expectPhotoNum||0}`},{title:()=>a("div",{class:e.itemTitle},[a("div",{class:e.titleLine},null),a("span",null,[s("\u7BA1\u7406\u8865\u52A9")])])}),a(R,{class:e.grid,columnNum:3,border:!1},{default:()=>[a(n,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[p(l.manageSalary.standardSalary||0)]),s("\u5143/\u5468")]),a("div",null,[s("\u8865\u52A9\u6807\u51C6")])])]}),a(n,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[l.manageSalary.coursewareNum||0]),s("\u8BFE\u65F6")]),a("div",null,[s("\u672C\u5468\u8BFE\u65F6\u6570")])])]}),a(n,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small]},[p(l.manageSalary.actualSalary||0)]),s("\u5143")]),a("div",null,[s("\u5B9E\u9645\u8865\u52A9")])])]})]})]),l.rows.map(t=>a("div",{class:e.item},[a(v,{center:!0},{title:()=>a("div",{class:e.itemTitle},[a("img",{class:e.titleIcon,src:w},null),t.startTime&&t.endTime?a("span",{class:e.timesinfo},[g(t.startTime).format("YYYY-MM-DD HH:mm"),s("~"),g(t.endTime).format("HH:mm")]):""])}),a("div",{class:e.itemContent},[a("div",{class:e.itemContentTitle},[t.className,s("-"),t.teacherName]),a("div",{class:e.itemContentLabel},[t.orchestraName])])]))])]}),a(F,{title:"\u8865\u52A9\u6807\u51C6",message:`1\u3001\u7BA1\u7406\u8865\u52A9\u6BCF\u4E2A\u5B66\u671F\u6700\u591A\u53D1\u653E16\u6B21\uFF0C\u4E14\u4EC5\u5728\u6709\u914D\u7F6E\u8BFE\u4EF6\u8BFE\u7A0B\u7684\u5468\u6B21\u53D1\u653E 2\u3001\u82E5\u672C\u5468\u6709\u914D\u7F6E\u8BFE\u4EF6\u7684\u8BFE\u7A0B\uFF0C\u5219\u9700\u5728\u4E50\u56E2\u76F8\u518C\u4E2D\u4E0A\u4F206\u5F20\u8BAD\u7EC3\u7167\u7247\uFF0C\u82E5\u4E0D\u8DB36\u5F20\uFF0C\u5219\u672C\u5468\u6B21\u7BA1\u7406\u8865\u52A9\u6263\u9664 3\u3001\u82E5\u672A\u5728\u672C\u5B66\u671F\u65F6\u95F4\u5185\u53D1\u5E032\u7BC7\u4E50\u56E2\u8D44\u8BAF\uFF0C\u5219\u4E0B\u4E00\u5B66\u671F\u7BA1\u7406\u8865\u52A9\u6309\u6807\u51C6\u91D1\u989D\u768480%\u53D1\u653E 4\u3001\u82E5\u672C\u5B66\u671F\u7BA1\u7406\u8865\u52A9\u662F\u6309\u6807\u51C6\u91D1\u989D\u768480%\u53D1\u653E\uFF0C\u53EA\u8981\u5728\u672C\u5B66\u671F\u5185\u53D1\u5E032\u7BC7\u6216\u4EE5\u4E0A\u4E50\u56E2\u8D44\u8BAF\uFF0C\u5219\u4E0B\u5B66\u671F\u6062\u590D\u6B63\u5E38\u7BA1\u7406\u8865\u52A9\u6807\u51C6`,show:i.value,"onUpdate:show":t=>i.value=t,dialogMarginTop:"env(safe-area-inset-top)",messageAlign:"left",confirmButtonText:"\u6211\u77E5\u9053\u4E86"},null)])}});export{G as default};