index-legacy.d0738624.js 5.4 KB

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