1 |
- !function(){function e(e,t,a,r,o,i,n){try{var _=e[i](n),m=_.value}catch(p){return void a(p)}_.done?t(m):Promise.resolve(m).then(r,o)}function t(t){return function(){var a=this,r=arguments;return new Promise((function(o,i){var n=t.apply(a,r);function _(t){e(n,o,i,_,m,"next",t)}function m(t){e(n,o,i,_,m,"throw",t)}_(void 0)}))}}var a=document.createElement("style");a.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(a),System.register(["./index-legacy.90c82f08.js","./index-legacy.84457c4c.js","./approval-item-legacy.652f63fb.js","./index-legacy.f1d613e0.js","./index-legacy.3c5580aa.js","./clock-icon-legacy.2424f549.js","./default-icon-legacy.59172ab1.js","./student-icon-legacy.91b6689d.js","./msg-icon-legacy.53a0c92f.js","./index-legacy.f3e5e283.js"],(function(e){"use strict";var a,r,o,i,n,_,m,p,l,s,c,u,w,f,d,g,v,W;return{setters:[function(e){a=e.d,r=e.ag,o=e.c,i=e.ai,n=e.q,_=e.F,m=e.ah,p=e.r,l=e.$,s=e.aj,c=e.B,u=e.R,w=e.m,f=e.o},function(e){d=e.O},function(e){g=e.A},function(e){v=e.O},function(e){W=e.F},function(){},function(){},function(){},function(){},function(){}],execute:function(){var h="_leaveWrap_12p3w_1",b="_subTitle_12p3w_4",A="_leaveInfo_12p3w_19",T="_leaveDate_12p3w_25",y="_leaveReason_12p3w_34",x="_courseWrap_12p3w_42",R="_courseWrapTitlte_12p3w_45",B="_courseList_12p3w_48",I="_reasonWrap_12p3w_51",L="_reasonLabelLeft_12p3w_65",C="_btnWrap_12p3w_74",S="_unpassBtn_12p3w_77",j="_titleDot_12p3w_91",k={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:function(e){var t=r(),a=function(){t.push({path:"/course-adjust",query:{id:e.item.id,isBack:"true"}})};return function(){return o(_,null,[o("div",{class:k.itemWrap},[o("div",{class:k.itemWrapTop},[o("div",{class:k.itemWrapTopLeft},[o("div",{class:k.clockWrap},[o("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAmCAYAAACsyDmTAAAAAXNSR0IArs4c6QAAA8VJREFUWEfNmDtsE0sUQO8d24qSFLxHEUChAIGo6F4RxEcChIC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e6QTvdmNltH65pgGIdrqYeJW4/0gDFaj/0wmkatKRAiRo0c4zoa0/sFjYJUOIWNli8o5r8uoOvc65BDZbqjItiAJX0Kq2UWgEAP+cqHUB11GNDfRYFzzFEtAMA1rd6jgGA/xDxxk95jglL7d/+YJWk5qSdG/k+lHbhtHLfAGtPoUUd9vdqAAAAAElFTkSuQmCC",alt:""},null)]),o("p",{class:k.leftTimer},[i(e.item.startTime).format("YYYY-MM-DD HH:mm"),n(" -"),i(e.item.endTime).format("HH:mm")])])]),o("div",{class:k.itemWrapBottom},[o("div",null,[o("p",{class:k.itemWrapBottomMain},[e.item.className,n("-"),e.item.teacherName]),o("p",{class:k.itemWrapBottomSub},[e.item.orchestraName])]),o("div",{class:k.itemWrapBottomRight},["STUDENT"==e.type?null:o("div",{class:k.rejectBtn,onClick:a},[n("调整")])])])])])}}});u("wait");var Y=u({}),q=u([]),z=u(""),E=u(!1);e("default",a({name:"approval-manage",setup:function(){var e=r(),a=m(),u=p({dialogStatus:!1,dialogMessage:""}),k=function(){var e=t(regeneratorRuntime.mark((function e(){var t,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.get("/api-school/userApproveRecord/detail/".concat(a.query.id),{});case 3:t=e.sent,r=t.data,Y.value=r,q.value=r.courseScheduleList||[],z.value=Y.value.approvalComments,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),o=e.t0.message,f(o);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();l((function(){z.value="",E.value="end"==a.query.type,k()}));var Q=function(){var r=t(regeneratorRuntime.mark((function t(r){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(z.value){t.next=3;break}return f("请输入审批原因"),t.abrupt("return");case 3:return t.prev=3,t.next=6,w.post("/api-school/userApproveRecord/approval",{hideLoading:!1,data:{id:a.query.id,approvalComments:z.value,status:r}});case 6:999===(o=t.sent).code?(u.dialogStatus=!0,u.dialogMessage=o.message):e.back(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),f(t.t0.message||"提交失败");case 13:case"end":return t.stop()}}),t,null,[[3,10]])})));return function(e){return r.apply(this,arguments)}}();return function(){return o(_,null,[o("div",{class:h},[o(d,null,{default:function(){return[o(s,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:b},[o("span",{class:j},null),o("span",null,[n("请假日期")])]),o("p",{class:T},[i(Y.value.startTime).format("YYYY年MM月DD日"),n(" -")," ",i(Y.value.endTime).format("YYYY年MM月DD日")]),o("p",{class:b},[o("span",{class:j},null),o("span",null,[n("请假原因")])]),o("p",{class:y},[Y.value.approveReason])]),q.value.length>0?o("div",{class:x},[o("div",{class:R},[" ",o("p",{class:b},[o("span",{class:j},null),o("span",null,[n("涉及课程")])])]),o("div",{class:B},[q.value.map((function(e){return 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:b},[o("span",{class:j},null),o("span",null,[n("退团原因")])]),o("p",{class:y},[Y.value.approveReason])])]):null,o("div",{class:I},[o(W,{"label-align":"top",maxlength:400,modelValue:z.value,"onUpdate:modelValue":function(e){return z.value=e},autosize:!0,type:"textarea",rows:5,"show-word-limit":!0,placeholder:"请输入你的审批意见",disabled:E.value},{label:function(){return o("div",null,[o("div",{class:L},[" ",o("span",{class:j},null),o("span",null,[n("意见审批")])])])}})]),E.value?null:o("div",{class:["btnGroup btnMore",C]},[o(c,{color:"#ccc",class:S,onClick:function(){return Q("UNPASS")}},{default:function(){return[n("拒绝")]}}),o(c,{color:"#FF8057",class:S,onClick:function(){return Q("PASS")}},{default:function(){return[n("通过")]}})]),o(v,{title:"提示",show:u.dialogStatus,"onUpdate:show":function(e){return u.dialogStatus=e},message:u.dialogMessage,confirmButtonText:"确定",onConfirm:function(){e.back()}},null)])])}}}))}}}))}();
|