1 |
- import{d as T,ah as b,ag as R,R as y,r as $,$ as k,c as a,aj as L,a5 as q,q as s,ba as t,B as x,m as g,g as v,bd as O}from"./index.5f7ffb46.js";import{s as u}from"./index.module.6c7a343e.js";import{O as w}from"./index.1d6ac2c5.js";import{O as G}from"./index.7790de2a.js";import{i as P}from"./icon_teacher.df08d662.js";import{O as V}from"./index.95a99ca5.js";import{q as H}from"./quest-icon.f1b2f4e3.js";import{C as i}from"./index.abd668f7.js";import{G as E,a as r}from"./index.adf0b8fc.js";var Y=T({name:"approval-manage-subsidy",setup(){const o=b(),I=R(),n=y(!1),d=y(!1),c=y(""),e=$({startDate:"",endDate:"",manageSalary:"",courseSalary:"",trainingSalary:"",manageSalaryInfo:{},courseSalaryInfo:{},practiceSalaryInfo:{}}),p=async()=>{try{const l=await g.post(`${v.platformApi}/schoolWeekSalaryRecord/manageConfirm/${o.query.salaryId}`,{});if(l!=null&&l.data){const{courseSalaryInfo:F,manageSalaryInfo:C,practiceSalaryInfo:h,startDate:m="",endDate:f="",manageSalary:A,courseSalary:B,trainingSalary:D,id:N}=l.data;e.courseSalaryInfo=F,e.manageSalaryInfo=C,e.practiceSalaryInfo=h,e.startDate=(m==null?void 0:m.split(" ")[0])||"",e.endDate=(f==null?void 0:f.split(" ")[0])||"",e.manageSalary=A,e.courseSalary=B,e.trainingSalary=D,c.value=N}}catch{}d.value=!1};k(()=>{p()});const S=()=>{O({message:"\u662F\u5426\u786E\u8BA4\u8BE5\u5468\u8865\u52A9\u91D1\u989D?"}).then(()=>{g.post(`${v.platformApi}/schoolWeekSalaryRecord/manageConfirmed/${o.query.salaryId}`,{hideLoading:!1}).then(l=>{(l==null?void 0:l.code)==200&&I.back()})})};return()=>a("div",null,[a(G,{onGetHeight:l=>{document.documentElement.style.setProperty("--header-height",l+"px")}},{default:()=>[a(L,{class:u.rightTip,onClickRight:()=>n.value=!0,title:o.query.display?"\u8865\u52A9\u8BE6\u60C5":"\u8865\u52A9\u786E\u8BA4"},{right:()=>a(q,{name:H,size:22,color:"#333"},null)})]}),a(w,{modelValue:d.value,"onUpdate:modelValue":l=>d.value=l,onRefresh:p,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[a("div",{class:u.wrap},[!!e.courseSalaryInfo&&a("div",{class:u.item},[a(i,{center:!0},{title:()=>a("div",{class:u.itemTitle},[a("span",null,[e.startDate,s(" \u81F3 "),e.endDate]),a("span",{class:u.itemTag},[s("\u8865\u52A9\u5468\u671F")])])}),a(E,{class:u.grid,columnNum:2,border:!1},{default:()=>[a(r,null,{default:()=>[a("div",{class:u.gridItem},[a("div",{class:u.gridItemTop},[a("span",{class:u.topNum},[t(e.manageSalary||0)]),s("\u5143")]),a("div",null,[s("\u7BA1\u7406\u8865\u52A9")])])]}),a(r,null,{default:()=>[a("div",{class:u.gridItem},[a("div",{class:u.gridItemTop},[a("span",{class:u.topNum},[t(e.courseSalary||0)]),s("\u5143")]),a("div",null,[s("\u8BAD\u7EC3\u8865\u52A9")])])]})]})]),!!e.manageSalaryInfo&&a("div",{class:u.item},[a(i,{style:{"--van-cell-value-color":(e.manageSalaryInfo.photoNum||0)>=(e.manageSalaryInfo.expectPhotoNum||0)?"#333":"#F44541"},center:!0,value:`\u8BAD\u7EC3\u7167\u7247${e.manageSalaryInfo.photoNum||0}/${e.manageSalaryInfo.expectPhotoNum||0}`,isLink:!0,to:`/subsidy-grant-detail?id=${c.value}`},{title:()=>a("div",{class:u.itemTitle},[a("div",{class:u.titleLine},null),a("span",null,[s("\u7BA1\u7406\u8865\u52A9")])])}),a(E,{class:u.grid,columnNum:3,border:!1},{default:()=>[a(r,null,{default:()=>[a("div",{class:u.gridItem},[a("div",{class:u.gridItemTop},[a("span",{class:[u.topNum,u.small],style:{color:"#333"}},[t(e.manageSalaryInfo.standardSalary||0)]),s("\u5143/\u5468")]),a("div",null,[s("\u8865\u52A9\u6807\u51C6")])])]}),a(r,null,{default:()=>[a("div",{class:u.gridItem},[a("div",{class:u.gridItemTop},[a("span",{class:[u.topNum,u.small],style:{color:"#333"}},[e.manageSalaryInfo.coursewareNum||0]),s("\u8BFE\u65F6")]),a("div",null,[s("\u672C\u5468\u8BFE\u65F6\u6570")])])]}),a(r,null,{default:()=>[a("div",{class:u.gridItem},[a("div",{class:u.gridItemTop},[a("span",{class:[u.topNum,u.small]},[t(e.manageSalaryInfo.actualSalary||0)]),s("\u5143")]),a("div",null,[s("\u5B9E\u9645\u8865\u52A9")])])]})]})]),a("div",{class:u.item},[a(i,{center:!0},{title:()=>a("div",{class:u.itemTitle},[a("div",{class:u.titleLine},null),a("span",null,[s("\u8BAD\u7EC3\u8865\u52A9")])])}),Array.isArray(e.courseSalaryInfo.salaryRecordDetailItemList)&&e.courseSalaryInfo.salaryRecordDetailItemList.map(l=>a(i,{center:!0,title:l.userName,class:u.teacherListCell,isLink:!0,to:`/subsidy-exercise-detail?id=${c.value}&userId=${l.userId}`},{icon:()=>a("img",{class:u.itemPicture,src:l.avatar||P},null),value:()=>a("div",{class:u.gridItem},[a("div",{class:u.gridItemTop},[a("span",{class:[u.topNum,u.small]},[t(l.salary||0)]),s("\u5143")]),a("div",{class:u.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:u.confirmBtn},[a("div",{class:"van-safe-area-bottom"},[a(x,{block:!0,type:"primary",round:!0,onClick:S},{default:()=>[s("\u786E\u8BA4\u65E0\u8BEF")]})])]),a(V,{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\\n2\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\\n3\u3001\u8D85\u8FC7\u5468\u4E0024\u70B9\u786E\u8BA4\uFF0C\u5219\u5EF6\u540E\u5230\u4E0B\u5468\u5468\u4E94\u53D1\u653E\\n4\u3001\u5982\u9047\u6CD5\u5B9A\u8282\u5047\u65E5\uFF0C\u5219\u7EDF\u4E00\u5EF6\u540E\u5230\u4E0B\u4E00\u5468\u4E94\u53D1\u653E\\n5\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":l=>n.value=l,dialogMarginTop:"env(safe-area-inset-top)",messageAlign:"left",confirmButtonText:"\u6211\u77E5\u9053\u4E86"},null)])}});export{Y as default};
|