12345 |
- import{d as D,aV as F,ag as R,R as p,r as $,$ as k,c as a,a5 as L,q as s,b3 as r,B as q,m as v,f as I,b6 as x}from"./index.ffe80dbe.js";import{s as e}from"./index.module.eb524400.js";import{O}from"./index.45b38760.js";import{O as w}from"./index.a0ef77e4.js";import{O as V}from"./index.4ddd16f0.js";import{i as G}from"./icon_teacher.df08d662.js";import{O as P}from"./index.d745568a.js";import{q as H}from"./quest-icon.f1b2f4e3.js";import{C as i}from"./index.ea031708.js";import{G as y,a as u}from"./index.72ca63b9.js";import"./index.1d5c6f70.js";var _=D({name:"approval-manage-subsidy",setup(){const o=F(),S=R(),n=p(!1),d=p(!1),c=p(""),l=$({startDate:"",endDate:"",manageSalary:"",courseSalary:"",trainingSalary:"",manageSalaryInfo:{},courseSalaryInfo:{},practiceSalaryInfo:{}}),g=async()=>{try{const t=await v.post(`${I.platformApi}/schoolWeekSalaryRecord/manageConfirm/${o.query.salaryId}`,{});if(t!=null&&t.data){const{courseSalaryInfo:A,manageSalaryInfo:N,practiceSalaryInfo:b,startDate:m="",endDate:f="",manageSalary:T,courseSalary:C,trainingSalary:B,id:E}=t.data;l.courseSalaryInfo=A,l.manageSalaryInfo=N,l.practiceSalaryInfo=b,l.startDate=(m==null?void 0:m.split(" ")[0])||"",l.endDate=(f==null?void 0:f.split(" ")[0])||"",l.manageSalary=T,l.courseSalary=C,l.trainingSalary=B,c.value=E}}catch{}d.value=!1};k(()=>{g()});const h=()=>{x({message:"\u662F\u5426\u786E\u8BA4\u8BE5\u5468\u8865\u52A9\u91D1\u989D?"}).then(()=>{v.post(`${I.platformApi}/schoolWeekSalaryRecord/manageConfirmed/${o.query.salaryId}`,{hideLoading:!1}).then(t=>{(t==null?void 0:t.code)==200&&S.back()})})};return()=>a("div",null,[a(V,{onGetHeight:t=>{document.documentElement.style.setProperty("--header-height",t+"px")}},{default:()=>[a(w,{class:e.rightTip,onClickRight:()=>n.value=!0,title:o.query.display?"\u8865\u52A9\u8BE6\u60C5":"\u8865\u52A9\u786E\u8BA4"},{right:()=>a(L,{name:H,size:22,color:"#333"},null)})]}),a(O,{modelValue:d.value,"onUpdate:modelValue":t=>d.value=t,onRefresh:g,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[a("div",{class:e.wrap},[!!l.courseSalaryInfo&&a("div",{class:e.item},[a(i,{center:!0},{title:()=>a("div",{class:e.itemTitle},[a("span",null,[l.startDate,s(" \u81F3 "),l.endDate]),a("span",{class:e.itemTag},[s("\u8865\u52A9\u5468\u671F")])])}),a(y,{class:e.grid,columnNum:2,border:!1},{default:()=>[a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:e.topNum},[r(l.manageSalary||0)]),s("\u5143")]),a("div",null,[s("\u7BA1\u7406\u8865\u52A9")])])]}),a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:e.topNum},[r(l.courseSalary||0)]),s("\u5143")]),a("div",null,[s("\u8BAD\u7EC3\u8865\u52A9")])])]})]})]),!!l.manageSalaryInfo&&a("div",{class:e.item},[a(i,{style:{"--van-cell-value-color":(l.manageSalaryInfo.photoNum||0)>=(l.manageSalaryInfo.expectPhotoNum||0)?"#333":"#F44541"},center:!0,value:`\u8BAD\u7EC3\u7167\u7247${l.manageSalaryInfo.photoNum||0}/${l.manageSalaryInfo.expectPhotoNum||0}`,isLink:!0,to:`/subsidy-grant-detail?id=${c.value}`},{title:()=>a("div",{class:e.itemTitle},[a("div",{class:e.titleLine},null),a("span",null,[s("\u7BA1\u7406\u8865\u52A9")])])}),a(y,{class:e.grid,columnNum:3,border:!1},{default:()=>[a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[r(l.manageSalaryInfo.standardSalary||0)]),s("\u5143/\u5468")]),a("div",null,[s("\u8865\u52A9\u6807\u51C6")])])]}),a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[l.manageSalaryInfo.coursewareNum||0]),s("\u8BFE\u65F6")]),a("div",null,[s("\u672C\u5468\u8BFE\u65F6\u6570")])])]}),a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small]},[r(l.manageSalaryInfo.actualSalary||0)]),s("\u5143")]),a("div",null,[s("\u5B9E\u9645\u8865\u52A9")])])]})]})]),a("div",{class:e.item},[a(i,{center:!0},{title:()=>a("div",{class:e.itemTitle},[a("div",{class:e.titleLine},null),a("span",null,[s("\u8BAD\u7EC3\u8865\u52A9")])])}),a(y,{class:e.grid,columnNum:3,border:!1},{default:()=>[a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[r(l.courseSalaryInfo.singleSubsidyStandard||0)]),s("\u5143/\u4EBA")]),a("div",null,[s("\u5355\u6280\u8865\u52A9\u6807\u51C6")])])]}),a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[r(l.courseSalaryInfo.musicSubsidyStandard||0)]),s("\u5143/\u5929")]),a("div",null,[s("\u4E50\u7406\u8865\u52A9\u6807\u51C6")])])]}),a(u,null,{default:()=>[a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small],style:{color:"#333"}},[r(l.courseSalaryInfo.ensembleSubsidyStandard||0)]),s("\u5143")]),a("div",null,[s("\u5408\u594F\u8865\u52A9\u6807\u51C6")])])]})]}),Array.isArray(l.courseSalaryInfo.salaryRecordDetailItemList)&&l.courseSalaryInfo.salaryRecordDetailItemList.map(t=>a(i,{center:!0,title:t.userName,class:e.teacherListCell,isLink:!0,to:`/subsidy-exercise-detail?id=${c.value}&userId=${t.userId}`},{icon:()=>a("img",{class:e.itemPicture,src:t.avatar||G},null),value:()=>a("div",{class:e.gridItem},[a("div",{class:e.gridItemTop},[a("span",{class:[e.topNum,e.small]},[r(t.salary||0)]),s("\u5143")]),a("div",{class:e.valeLabel},[s("\u5B9E\u9645\u8865\u52A9")])])}))]),a("div",{class:"van-safe-area-bottom"},[a("div",{style:{height:"calc(var(--van-button-default-height) + 0.8rem)"}},null)])])]}),o.query.display&&a("div",{class:e.confirmBtn},[a("div",{class:"van-safe-area-bottom"},[a(q,{block:!0,type:"primary",round:!0,onClick:h},{default:()=>[s("\u786E\u8BA4\u65E0\u8BEF")]})])]),a(P,{title:"\u8865\u52A9\u53D1\u653E\u89C4\u5219",message:`1\u3001\u6BCF\u5468\u4E00\u51CC\u6668\u751F\u6210\u4E0A\u4E00\u5468\u5B9E\u9645\u8865\u52A9\u6570\u636E
- 2\u3001\u6BCF\u5468\u4E0024\u70B9\u524D\u5B8C\u6210\u8865\u52A9\u786E\u8BA4\uFF0C\u5219\u8BE5\u8865\u52A9\u5C06\u4F1A\u5728\u5F53\u5468\u5468\u4E94\u53D1\u653E
- 3\u3001\u8D85\u8FC7\u5468\u4E0024\u70B9\u786E\u8BA4\uFF0C\u5219\u5EF6\u540E\u5230\u4E0B\u5468\u5468\u4E94\u53D1\u653E
- 4\u3001\u5982\u9047\u6CD5\u5B9A\u8282\u5047\u65E5\uFF0C\u5219\u7EDF\u4E00\u5EF6\u540E\u5230\u4E0B\u4E00\u5468\u4E94\u53D1\u653E
- 5\u3001\u672A\u7ED1\u5B9A\u94F6\u884C\u5361\u5BFC\u81F4\u65E0\u6CD5\u53D1\u653E\u65F6\uFF0C\u5C06\u5728\u7ED1\u5B9A\u94F6\u884C\u5361\u540E\u7684\u4E0B\u4E00\u5468\u4E94\uFF0C\u4E00\u6B21\u6027\u5C06\u5DF2\u786E\u8BA4\u4E14\u672A\u53D1\u653E\u7684\u8865\u52A9\u91D1\u989D\u53D1\u653E`,show:n.value,"onUpdate:show":t=>n.value=t,dialogMarginTop:"env(safe-area-inset-top)",messageAlign:"left",confirmButtonText:"\u6211\u77E5\u9053\u4E86"},null)])}});export{_ as default};
|