1 |
- !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.module-legacy.05b54fee.js","./index-legacy.c1f63540.js","./index-legacy.4596d3ae.js","./index-legacy.7e71b67e.js","./icon_teacher-legacy.07765f44.js","./index-legacy.8e95ea07.js","./quest-icon-legacy.8dd60bcc.js","./index-legacy.8a8e9c42.js","./index-legacy.cdcc5f23.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.s},function(a){t=a.d,l=a.ah,r=a.ag,i=a.R,c=a.r,s=a.$,o=a.c,u=a.aj,d=a.a5,f=a.q,m=a.b6,v=a.B,y=a.m,g=a.g,p=a.b9},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",t({name:"approval-manage-subsidy",setup:function(){var e=l(),t=r(),k=i(!1),D=i(!1),L=i(""),R=c({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,v;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,y.post("".concat(g.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,v=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=v),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)}}();s((function(){w()}));var q=function(){p({message:"是否确认该周补助金额?"}).then((function(){y.post("".concat(g.platformApi,"/schoolWeekSalaryRecord/manageConfirmed/").concat(e.query.salaryId),{hideLoading:!1}).then((function(a){200==(null==a?void 0:a.code)&&t.back()}))}))};return function(){return o("div",null,[o(I,{onGetHeight:function(a){document.documentElement.style.setProperty("--header-height",a+"px")}},{default:function(){return[o(u,{class:n.rightTip,onClickRight:function(){return k.value=!0},title:e.query.display?"补助详情":"补助确认"},{right:function(){return o(d,{name:x,size:22,color:"#333"},null)}})]}}),o(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[o("div",{class:n.wrap},[!!R.courseSalaryInfo&&o("div",{class:n.item},[o(N,{center:!0},{title:function(){return o("div",{class:n.itemTitle},[o("span",null,[R.startDate,f(" 至 "),R.endDate]),o("span",{class:n.itemTag},[f("补助周期")])])}}),o(T,{class:n.grid,columnNum:2,border:!1},{default:function(){return[o(j,null,{default:function(){return[o("div",{class:n.gridItem},[o("div",{class:n.gridItemTop},[o("span",{class:n.topNum},[m(R.manageSalary||0)]),f("元")]),o("div",null,[f("管理补助")])])]}}),o(j,null,{default:function(){return[o("div",{class:n.gridItem},[o("div",{class:n.gridItemTop},[o("span",{class:n.topNum},[m(R.courseSalary||0)]),f("元")]),o("div",null,[f("训练补助")])])]}})]}})]),!!R.manageSalaryInfo&&o("div",{class:n.item},[o(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 o("div",{class:n.itemTitle},[o("div",{class:n.titleLine},null),o("span",null,[f("管理补助")])])}}),o(T,{class:n.grid,columnNum:3,border:!1},{default:function(){return[o(j,null,{default:function(){return[o("div",{class:n.gridItem},[o("div",{class:n.gridItemTop},[o("span",{class:[n.topNum,n.small],style:{color:"#333"}},[m(R.manageSalaryInfo.standardSalary||0)]),f("元/周")]),o("div",null,[f("补助标准")])])]}}),o(j,null,{default:function(){return[o("div",{class:n.gridItem},[o("div",{class:n.gridItemTop},[o("span",{class:[n.topNum,n.small],style:{color:"#333"}},[R.manageSalaryInfo.coursewareNum||0]),f("课时")]),o("div",null,[f("本周课时数")])])]}}),o(j,null,{default:function(){return[o("div",{class:n.gridItem},[o("div",{class:n.gridItemTop},[o("span",{class:[n.topNum,n.small]},[m(R.manageSalaryInfo.actualSalary||0)]),f("元")]),o("div",null,[f("实际补助")])])]}})]}})]),o("div",{class:n.item},[o(N,{center:!0},{title:function(){return o("div",{class:n.itemTitle},[o("div",{class:n.titleLine},null),o("span",null,[f("训练补助")])])}}),Array.isArray(R.courseSalaryInfo.salaryRecordDetailItemList)&&R.courseSalaryInfo.salaryRecordDetailItemList.map((function(a){return o(N,{center:!0,title:a.userName,class:n.teacherListCell,isLink:!0,to:"/subsidy-exercise-detail?id=".concat(L.value,"&userId=").concat(a.userId)},{icon:function(){return o("img",{class:n.itemPicture,src:a.avatar||S},null)},value:function(){return o("div",{class:n.gridItem},[o("div",{class:n.gridItemTop},[o("span",{class:[n.topNum,n.small]},[m(a.salary||0)]),f("元")]),o("div",{class:n.valeLabel},[f("实际补助")])])}})}))]),o("div",{class:"van-safe-area-bottom"},[o("div",{style:{height:"calc(var(--van-button-default-height) + 0.8rem)"}},null)])])]}}),e.query.display&&o("div",{class:n.confirmBtn},[o("div",{class:"van-safe-area-bottom"},[o(v,{block:!0,type:"primary",round:!0,onClick:q},{default:function(){return[f("确认无误")]}})])]),o(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)])}}}))}}}))}();
|