!function(){function a(a,e,n,t,l,r,i){try{var c=a[r](i),s=c.value}catch(o){return void n(o)}c.done?e(s):Promise.resolve(s).then(t,l)}System.register(["./index-legacy.90c82f08.js","./index.module-legacy.05b54fee.js","./index-legacy.02f13b7a.js","./index-legacy.84457c4c.js","./icon_teacher-legacy.07765f44.js","./index-legacy.f1d613e0.js","./quest-icon-legacy.8dd60bcc.js","./index-legacy.f3e5e283.js","./index-legacy.e4343e46.js"],(function(e){"use strict";var n,t,l,r,i,c,s,o,u,d,f,m,v,y,g,p,h,I,S,b,x,N,T,j;return{setters:[function(a){n=a.d,t=a.ah,l=a.ag,r=a.R,i=a.r,c=a.$,s=a.c,o=a.aj,u=a.a5,d=a.q,f=a.b6,m=a.B,v=a.m,y=a.g,g=a.b9},function(a){p=a.s},function(a){h=a.O},function(a){I=a.O},function(a){S=a.i},function(a){b=a.O},function(a){x=a.q},function(a){N=a.C},function(a){T=a.G,j=a.a}],execute:function(){e("default",n({name:"approval-manage-subsidy",setup:function(){var e=t(),n=l(),k=r(!1),D=r(!1),L=r(""),R=i({startDate:"",endDate:"",manageSalary:"",courseSalary:"",trainingSalary:"",manageSalaryInfo:{},courseSalaryInfo:{},practiceSalaryInfo:{}}),w=function(){var n,t=(n=regeneratorRuntime.mark((function a(){var n,t,l,r,i,c,s,o,u,d,f,m,g;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,v.post("".concat(y.platformApi,"/schoolWeekSalaryRecord/manageConfirm/").concat(e.query.salaryId),{});case 3:null!=(n=a.sent)&&n.data&&(t=n.data,l=t.courseSalaryInfo,r=t.manageSalaryInfo,i=t.practiceSalaryInfo,c=t.startDate,s=void 0===c?"":c,o=t.endDate,u=void 0===o?"":o,d=t.manageSalary,f=t.courseSalary,m=t.trainingSalary,g=t.id,R.courseSalaryInfo=l,R.manageSalaryInfo=r,R.practiceSalaryInfo=i,R.startDate=(null==s?void 0:s.split(" ")[0])||"",R.endDate=(null==u?void 0:u.split(" ")[0])||"",R.manageSalary=d,R.courseSalary=f,R.trainingSalary=m,L.value=g),a.next=9;break;case 7:a.prev=7,a.t0=a.catch(0);case 9:D.value=!1;case 10:case"end":return a.stop()}}),a,null,[[0,7]])})),function(){var e=this,t=arguments;return new Promise((function(l,r){var i=n.apply(e,t);function c(e){a(i,l,r,c,s,"next",e)}function s(e){a(i,l,r,c,s,"throw",e)}c(void 0)}))});return function(){return t.apply(this,arguments)}}();c((function(){w()}));var q=function(){g({message:"是否确认该周补助金额?"}).then((function(){v.post("".concat(y.platformApi,"/schoolWeekSalaryRecord/manageConfirmed/").concat(e.query.salaryId),{hideLoading:!1}).then((function(a){200==(null==a?void 0:a.code)&&n.back()}))}))};return function(){return s("div",null,[s(I,{onGetHeight:function(a){document.documentElement.style.setProperty("--header-height",a+"px")}},{default:function(){return[s(o,{class:p.rightTip,onClickRight:function(){return k.value=!0},title:e.query.display?"补助详情":"补助确认"},{right:function(){return s(u,{name:x,size:22,color:"#333"},null)}})]}}),s(h,{modelValue:D.value,"onUpdate:modelValue":function(a){return D.value=a},onRefresh:w,style:"min-height: calc(100vh - var(--header-height))"},{default:function(){return[s("div",{class:p.wrap},[!!R.courseSalaryInfo&&s("div",{class:p.item},[s(N,{center:!0},{title:function(){return s("div",{class:p.itemTitle},[s("span",null,[R.startDate,d(" 至 "),R.endDate]),s("span",{class:p.itemTag},[d("补助周期")])])}}),s(T,{class:p.grid,columnNum:2,border:!1},{default:function(){return[s(j,null,{default:function(){return[s("div",{class:p.gridItem},[s("div",{class:p.gridItemTop},[s("span",{class:p.topNum},[f(R.manageSalary||0)]),d("元")]),s("div",null,[d("管理补助")])])]}}),s(j,null,{default:function(){return[s("div",{class:p.gridItem},[s("div",{class:p.gridItemTop},[s("span",{class:p.topNum},[f(R.courseSalary||0)]),d("元")]),s("div",null,[d("训练补助")])])]}})]}})]),!!R.manageSalaryInfo&&s("div",{class:p.item},[s(N,{style:{"--van-cell-value-color":(R.manageSalaryInfo.photoNum||0)>=(R.manageSalaryInfo.expectPhotoNum||0)?"#333":"#F44541"},center:!0,value:"训练照片".concat(R.manageSalaryInfo.photoNum||0,"/").concat(R.manageSalaryInfo.expectPhotoNum||0),isLink:!0,to:"/subsidy-grant-detail?id=".concat(L.value)},{title:function(){return s("div",{class:p.itemTitle},[s("div",{class:p.titleLine},null),s("span",null,[d("管理补助")])])}}),s(T,{class:p.grid,columnNum:3,border:!1},{default:function(){return[s(j,null,{default:function(){return[s("div",{class:p.gridItem},[s("div",{class:p.gridItemTop},[s("span",{class:[p.topNum,p.small],style:{color:"#333"}},[f(R.manageSalaryInfo.standardSalary||0)]),d("元/周")]),s("div",null,[d("补助标准")])])]}}),s(j,null,{default:function(){return[s("div",{class:p.gridItem},[s("div",{class:p.gridItemTop},[s("span",{class:[p.topNum,p.small],style:{color:"#333"}},[R.manageSalaryInfo.coursewareNum||0]),d("课时")]),s("div",null,[d("本周课时数")])])]}}),s(j,null,{default:function(){return[s("div",{class:p.gridItem},[s("div",{class:p.gridItemTop},[s("span",{class:[p.topNum,p.small]},[f(R.manageSalaryInfo.actualSalary||0)]),d("元")]),s("div",null,[d("实际补助")])])]}})]}})]),s("div",{class:p.item},[s(N,{center:!0},{title:function(){return s("div",{class:p.itemTitle},[s("div",{class:p.titleLine},null),s("span",null,[d("训练补助")])])}}),Array.isArray(R.courseSalaryInfo.salaryRecordDetailItemList)&&R.courseSalaryInfo.salaryRecordDetailItemList.map((function(a){return s(N,{center:!0,title:a.userName,class:p.teacherListCell,isLink:!0,to:"/subsidy-exercise-detail?id=".concat(L.value,"&userId=").concat(a.userId)},{icon:function(){return s("img",{class:p.itemPicture,src:a.avatar||S},null)},value:function(){return s("div",{class:p.gridItem},[s("div",{class:p.gridItemTop},[s("span",{class:[p.topNum,p.small]},[f(a.salary||0)]),d("元")]),s("div",{class:p.valeLabel},[d("实际补助")])])}})}))]),s("div",{class:"van-safe-area-bottom"},[s("div",{style:{height:"calc(var(--van-button-default-height) + 0.8rem)"}},null)])])]}}),e.query.display&&s("div",{class:p.confirmBtn},[s("div",{class:"van-safe-area-bottom"},[s(m,{block:!0,type:"primary",round:!0,onClick:q},{default:function(){return[d("确认无误")]}})])]),s(b,{title:"补助发放规则",message:"1、每周一凌晨生成上一周实际补助数据\n2、每周一24点前完成补助确认,则该补助将会在当周周五发放\n3、超过周一24点确认,则延后到下周周五发放\n4、如遇法定节假日,则统一延后到下一周五发放\n5、未绑定银行卡导致无法发放时,将在绑定银行卡后的下一周五,一次性将已确认且未发放的补助金额发放",show:k.value,"onUpdate:show":function(a){return k.value=a},dialogMarginTop:"env(safe-area-inset-top)",messageAlign:"left",confirmButtonText:"我知道了"},null)])}}}))}}}))}();