student-leave-legacy.2ed38948.js 10 KB

1
  1. !function(){var e=document.createElement("style");e.innerHTML="._leaveWrap_12p3w_1{margin-top:.32rem}._leaveWrap_12p3w_1 ._subTitle_12p3w_4{display:flex;flex-direction:row;align-items:center}._leaveWrap_12p3w_1 ._subTitle_12p3w_4 ._subTitleIcon_12p3w_9{font-size:.53333rem;margin-right:.16rem}._leaveWrap_12p3w_1 ._subTitle_12p3w_4 span{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._leaveWrap_12p3w_1 ._leaveInfo_12p3w_19{margin:.32rem .34667rem .53333rem;background-color:#fff;border-radius:.26667rem;padding:.4rem .32rem .53333rem}._leaveWrap_12p3w_1 ._leaveInfo_12p3w_19 ._leaveDate_12p3w_25{margin-top:.26667rem;font-size:.4rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.56rem;margin-bottom:.53333rem}._leaveWrap_12p3w_1 ._leaveInfo_12p3w_19 ._leaveReason_12p3w_34{margin-top:.26667rem;font-size:.4rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.56rem}._leaveWrap_12p3w_1 ._courseWrap_12p3w_42{margin:.53333rem .34667rem}._leaveWrap_12p3w_1 ._courseWrap_12p3w_42 ._courseWrapTitlte_12p3w_45{padding:0 .32rem}._leaveWrap_12p3w_1 ._courseWrap_12p3w_42 ._courseList_12p3w_48{padding-top:.26667rem}._leaveWrap_12p3w_1 ._reasonWrap_12p3w_51{margin:0 .34667rem;border-radius:.26667rem;overflow:hidden;background-color:#fff}._leaveWrap_12p3w_1 ._reasonWrap_12p3w_51 ._bottomIcon_12p3w_57{font-size:.53333rem;margin-right:.16rem}._leaveWrap_12p3w_1 ._reasonWrap_12p3w_51 ._van-field_12p3w_61{padding:0 .32rem;min-height:5.33333rem}._leaveWrap_12p3w_1 ._reasonWrap_12p3w_51 ._reasonLabelLeft_12p3w_65{display:flex;flex-direction:row;align-items:center;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._leaveWrap_12p3w_1 ._btnWrap_12p3w_74{margin-top:.8rem}._leaveWrap_12p3w_1 ._btnWrap_12p3w_74 ._unpassBtn_12p3w_77{border-radius:.58667rem}._leaveWrap_12p3w_1 .van-field__word-limit{position:absolute;top:-.8rem;right:0}._leaveWrap_12p3w_1 .van-field__control:disabled{color:#777;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#777}._titleDot_12p3w_91{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._itemWrap_1om1w_1{margin-bottom:.32rem;padding:.32rem .4rem .4rem;border-radius:.26667rem;background-color:#fff}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopLeft_1om1w_15{display:flex;flex-direction:row;align-items:center}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopLeft_1om1w_15 ._clockWrap_1om1w_20{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopLeft_1om1w_15 ._clockWrap_1om1w_20 img{width:100%;height:100%}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopLeft_1om1w_15 ._leftTimer_1om1w_29{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopRight_1om1w_35{display:flex;flex-direction:row;align-items:center}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopRight_1om1w_35 ._passLabel_1om1w_40{font-size:.37333rem;font-weight:500;color:#4ab78e;line-height:.53333rem}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopRight_1om1w_35 ._unpassLabel_1om1w_46{font-size:.37333rem;font-weight:500;color:#f44541;line-height:.53333rem}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopRight_1om1w_35 ._passIcon_1om1w_52{font-size:.42667rem;margin-right:.10667rem}._itemWrap_1om1w_1 ._itemWrapTop_1om1w_7 ._itemWrapTopRight_1om1w_35 ._msgIcon_1om1w_56{font-size:.64rem}._itemWrap_1om1w_1 ._itemWrapBottom_1om1w_59{padding-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1om1w_1 ._itemWrapBottom_1om1w_59 ._itemWrapBottomMain_1om1w_66{margin-bottom:.10667rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;width:5.33333rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._itemWrap_1om1w_1 ._itemWrapBottom_1om1w_59 ._itemWrapBottomSub_1om1w_77{font-size:.37333rem;font-weight:400;color:#777;line-height:.53333rem}._itemWrap_1om1w_1 ._itemWrapBottom_1om1w_59 ._rejectBtn_1om1w_83{font-size:.37333rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;line-height:.8rem;height:.8rem;background:#ffffff;border-radius:.4rem;border:.02667rem solid #ff8057;padding:0 .74667rem}._itemWrap_1om1w_1 ._itemWrapBottom_1om1w_59 ._rejectBtn_1om1w_83:active{opacity:.7}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./approval-item-legacy.3680e59c.js","./index-legacy.e0860c0a.js","./index-legacy.3a3e070a.js","./clock-icon-legacy.2424f549.js","./default-icon-legacy.59172ab1.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.918b8c74.js"],(function(e){"use strict";var a,t,o,r,_,i,m,l,p,n,s,c,w,u,d,g,f,W;return{setters:[function(e){a=e.d,t=e.ag,o=e.c,r=e.ai,_=e.q,i=e.F,m=e.ah,l=e.r,p=e.$,n=e.aj,s=e.B,c=e.R,w=e.m,u=e.o},function(e){d=e.O},function(e){g=e.A},function(e){f=e.O},function(e){W=e.F},function(){},function(){},function(){},function(){},function(){}],execute:function(){var v="_leaveWrap_12p3w_1",h="_subTitle_12p3w_4",A="_leaveInfo_12p3w_19",b="_leaveDate_12p3w_25",T="_leaveReason_12p3w_34",y="_courseWrap_12p3w_42",B="_courseWrapTitlte_12p3w_45",R="_courseList_12p3w_48",x="_reasonWrap_12p3w_51",I="_reasonLabelLeft_12p3w_65",L="_btnWrap_12p3w_74",C="_unpassBtn_12p3w_77",S="_titleDot_12p3w_91";var j={itemWrap:"_itemWrap_1om1w_1",itemWrapTop:"_itemWrapTop_1om1w_7",itemWrapTopLeft:"_itemWrapTopLeft_1om1w_15",clockWrap:"_clockWrap_1om1w_20",leftTimer:"_leftTimer_1om1w_29",itemWrapTopRight:"_itemWrapTopRight_1om1w_35",passLabel:"_passLabel_1om1w_40",unpassLabel:"_unpassLabel_1om1w_46",passIcon:"_passIcon_1om1w_52",msgIcon:"_msgIcon_1om1w_56",itemWrapBottom:"_itemWrapBottom_1om1w_59",itemWrapBottomMain:"_itemWrapBottomMain_1om1w_66",itemWrapBottomSub:"_itemWrapBottomSub_1om1w_77",rejectBtn:"_rejectBtn_1om1w_83"},D=a({props:["item","type"],name:"student-course-item",setup(e){const a=t(),m=()=>{a.push({path:"/course-adjust",query:{id:e.item.id,isBack:"true"}})};return()=>o(i,null,[o("div",{class:j.itemWrap},[o("div",{class:j.itemWrapTop},[o("div",{class:j.itemWrapTopLeft},[o("div",{class:j.clockWrap},[o("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmCAYAAACsyDmTAAAAAXNSR0IArs4c6QAAA8VJREFUWEfNmDtsE0sUQO8d24qSFLxHEUChAIGo6F4RxEcChICCDhCfCj2gDLzAsjOOkDBC4Nm1QwQp+YgOUKBDQlA8HuIjqGioEC/QAAEhPoUdRd6diyaajRzj9X7Mx1vZmrlzz9zf3BmEDvuww3igLSDLsvpyudxSIpqnN4aIX2u12qtyufwh7UYTAQ0ODnb19vZuA4DtRLQBAB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bhtHLfAGtPoUUd9vdqAAAAAElFTkSuQmCC",alt:""},null)]),o("p",{class:j.leftTimer},[r(e.item.startTime).format("YYYY-MM-DD HH:mm"),_(" -"),r(e.item.endTime).format("HH:mm")])])]),o("div",{class:j.itemWrapBottom},[o("div",null,[o("p",{class:j.itemWrapBottomMain},[e.item.className,_("-"),e.item.teacherName]),o("p",{class:j.itemWrapBottomSub},[e.item.orchestraName])]),o("div",{class:j.itemWrapBottomRight},["STUDENT"==e.type?null:o("div",{class:j.rejectBtn,onClick:m},[_("调整")])])])])])}});c("wait");const Y=c({}),k=c([]),q=c(""),z=c(!1);e("default",a({name:"approval-manage",setup(){const e=t(),a=m(),c=l({dialogStatus:!1,dialogMessage:""});p((()=>{q.value="",z.value="end"==a.query.type,(async()=>{try{const{data:e}=await w.get(`/api-school/userApproveRecord/detail/${a.query.id}`,{});Y.value=e,k.value=e.courseScheduleList||[],q.value=Y.value.approvalComments}catch(e){const a=e.message;u(a)}})()}));const j=async t=>{if(q.value)try{const o=await w.post("/api-school/userApproveRecord/approval",{hideLoading:!1,data:{id:a.query.id,approvalComments:q.value,status:t}});999===o.code?(c.dialogStatus=!0,c.dialogMessage=o.message):e.back()}catch(o){u(o.message||"提交失败")}else u("请输入审批原因")};return()=>o(i,null,[o("div",{class:v},[o(d,null,{default:()=>[o(n,null,null)]}),o(g,{item:Y.value,type:a.query.type},null),"LEAVE"==Y.value.approveType?o("div",null,[o("div",{class:A},[o("p",{class:h},[o("span",{class:S},null),o("span",null,[_("请假日期")])]),o("p",{class:b},[r(Y.value.startTime).format("YYYY-MM-DD HH:mm"),_(" 至")," ",r(Y.value.endTime).format("YYYY-MM-DD HH:mm")]),o("p",{class:h},[o("span",{class:S},null),o("span",null,[_("请假原因")])]),o("p",{class:T},[Y.value.approveReason])]),k.value.length>0?o("div",{class:y},[o("div",{class:B},[" ",o("p",{class:h},[o("span",{class:S},null),o("span",null,[_("涉及课程")])])]),o("div",{class:R},[k.value.map((e=>o(D,{item:e,type:Y.value.clientType},null)))])]):null]):null,"ORCHESTRA"==Y.value.approveType?o("div",null,[o("div",{class:A},[o("p",{class:h},[o("span",{class:S},null),o("span",null,[_("退团原因")])]),o("p",{class:T},[Y.value.approveReason])])]):null,o("div",{class:x},[o(W,{"label-align":"top",maxlength:400,modelValue:q.value,"onUpdate:modelValue":e=>q.value=e,autosize:!0,type:"textarea",rows:5,"show-word-limit":!0,placeholder:"请输入你的审批意见",disabled:z.value},{label:()=>o("div",null,[o("div",{class:I},[" ",o("span",{class:S},null),o("span",null,[_("意见审批")])])])})]),z.value?null:o("div",{class:["btnGroup btnMore",L]},[o(s,{color:"#ccc",class:C,onClick:()=>j("UNPASS")},{default:()=>[_("拒绝")]}),o(s,{color:"#FF8057",class:C,onClick:()=>j("PASS")},{default:()=>[_("通过")]})]),o(f,{title:"提示",show:c.dialogStatus,"onUpdate:show":e=>c.dialogStatus=e,message:c.dialogMessage,confirmButtonText:"确定",onConfirm:()=>{e.back()}},null)])])}}))}}}))}();