(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3d604245"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,s){return e/=s/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=n(),o=e-i,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var n=Math.easeInOutQuad(c,i,o,t);r(n),c1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(s)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,hidePaymentPattern:!0,isUserType:!0,isCommon:!1,isDisabled:!0}})],2)})),1),e._v(" "),a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{isUserType:!0,hidePaymentPattern:!0,form:e.cycle,isCommon:!1,isDisabled:!0},on:{"update:form":function(t){e.cycle=t}}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],2)},C=[],j=a("15fd"),I=(a("6762"),a("2fdb"),a("5530")),x=a("b85c"),L=a("2909"),w=a("7a3c"),A=a("0464"),G=a("1672"),M=a("b4ac"),P=a("267e"),R=a("ed08"),q={props:["snapList","highList","mixList","signList","createdUserId","organizationCourseUnitPriceSettings","musicGroupId","baseInfo"],components:{paymentCycle:w["a"],extraClass:A["a"]},data:function(){return{courseTypeOptions:P["e"],ids:"",form:{signClass:"",mixClass:"",highClass:"",snapClass:""},payment:{paymentPattern:null},cycle:{},eclass:[],collapse:[0],cycles:[{}],organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object(R["b"])(P["p"])}},watch:{"form.signClass":function(){this.classChange()},"form.mixClass":function(){this.classChange()},"form.highClass":function(){this.classChange()},"form.snapClass":function(){this.classChange()},"payment.paymentPattern":function(){this.syncAllMoney()},baseInfo:function(){this.formatCourse()}},mounted:function(){this.formatCourse()},methods:{addExtraClass:function(){this.eclass.push({})},priceChange:function(e,t){var a=Object(L["a"])(this.eclass),s=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},r=Math.ceil((e.courseTotalMinuties||1)*(s.unitPrice||1));e.courseCurrentPrice=r,e.courseOriginalPrice=r,a[t]=e,this.eclass=Object(L["a"])(a),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,a=Object(x["a"])(this.eclass);try{for(a.s();!(e=a.n()).done;){var s=e.value;t+=s.courseCurrentPrice}}catch(i){a.e(i)}finally{a.f()}if(this.cycles.length){var r=Math.floor(t/this.cycles.length),n=t%this.cycles.length;this.cycles=this.cycles.map((function(e,t){return Object(I["a"])(Object(I["a"])({},e),{},{paymentAmount:0===t?r+n:r})}))}return this.$refs.cycle&&this.$set(this.cycle,"paymentAmount",t),t},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},formatCourse:function(){var e,t,a,s=null===(e=this.baseInfo)||void 0===e?void 0:e.organId,r=null===(t=this.baseInfo)||void 0===t?void 0:t.chargeTypeId,n={},i=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return s&&s==e.organId&&r&&r==e.chargeTypeId})),o=Object(x["a"])(i);try{for(o.s();!(a=o.n()).done;){var l=a.value;n[l.courseType]=l}}catch(c){o.e(c)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=n,n},classChange:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=[this.form.signClass,this.form.mixClass,this.form.highClass].concat(Object(L["a"])(this.form.snapClass)).filter((function(e){return!!e})).join(","),!t){e.next=10;break}return e.next=5,Object(M["a"])({classGroupIdList:t});case 5:a=e.sent,this.ids=t,s=a.data.map((function(e){var t=r.organizationCourseUnitPriceSettingsByType[e.courseType]||{},a=Math.ceil((t.unitPrice||1)*(e.remainMinutes||1));return{courseType:e.courseType,courseTotalMinuties:e.remainMinutes,courseOriginalPrice:a,courseCurrentPrice:a}})),this.eclass=Object(L["a"])(s),this.syncAllMoney();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.payment].concat(Object(L["a"])(e.cycles||[])).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,a){return a-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},submit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,n,i,o,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],s=Object(x["a"])(t);try{for(n=function(){var e=r.value;e.validate((function(t){t&&a.push(e)}))},s.s();!(r=s.n()).done;)n()}catch(c){s.e(c)}finally{s.f()}if(t.length!==a.length){e.next=18;break}return i=0==this.payment.paymentPattern?this.cycles:[this.cycle],o={attribute1:this.ids,musicGroupPaymentDateRangeList:i.map((function(e){var t=e.paymentDate,a=e.paymentValid,s=Object(j["a"])(e,["paymentDate","paymentValid"]);return Object(I["a"])(Object(I["a"])(Object(I["a"])(Object(I["a"])({},s),Object(R["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(R["a"])(a,["paymentValidStartDate","paymentValidEndDate"])),{},{paymentPattern:l.payment.paymentPattern})})),paymentPattern:this.payment.paymentPattern,musicGroupId:this.musicGroupId,paymentType:"ADD_STUDENT",studentIds:this.createdUserId,musicGroupPaymentCalenderCourseSettingsList:this.eclass},e.prev=7,e.next=10,Object(G["c"])(o);case 10:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close(),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](7),console.log(e.t0);case 18:case"end":return e.stop()}}),e,this,[[7,15]])})));function t(){return e.apply(this,arguments)}return t}()}},N=q,D=(a("276b"),a("2877")),V=Object(D["a"])(N,S,C,!1,null,"2b4508cc",null),E=V.exports,$=a("a5b0"),U={name:"tstudentList",data:function(){var e;return e={teamid:"",payVisible:!1,quitVisible:!1,studentClassVisible:!1,addStudentVisible:!1},Object(c["a"])(e,"teamid",""),Object(c["a"])(e,"topFrom",{expect:"2",studing:"5",allmoney:"100",students:"5",signout:"10"}),Object(c["a"])(e,"searchForm",{studentStatus:"",major:"",isPay:"",search:"",isActive:"",classGroupId:null}),Object(c["a"])(e,"organizationCourseUnitPriceSettings",[]),Object(c["a"])(e,"quitForm",{isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""}),Object(c["a"])(e,"classMask",{studentName:""}),Object(c["a"])(e,"baseInfo",{}),Object(c["a"])(e,"searchLsit",[]),Object(c["a"])(e,"tableList",[]),Object(c["a"])(e,"rules",{limit:10,page:1,total:0,page_size:[10,20,40,50]}),Object(c["a"])(e,"studentListInfo",{add:"",quit:"",studying:""}),Object(c["a"])(e,"signList",[]),Object(c["a"])(e,"mixList",[]),Object(c["a"])(e,"highList",[]),Object(c["a"])(e,"snapList",[]),Object(c["a"])(e,"soundList",[]),Object(c["a"])(e,"highonlineList",[]),Object(c["a"])(e,"muiscnetworkList",[]),Object(c["a"])(e,"qrcodeStatus",!1),Object(c["a"])(e,"qrcodes",!0),Object(c["a"])(e,"qrcode",null),Object(c["a"])(e,"codeUrl",null),Object(c["a"])(e,"maskForm",{studentName:"",sex:"",parentName:"",course:"",phone:"",sound:"",timer:"",signClass:"",mixClass:"",highClass:"",snapClass:[],highonline:"",muiscnetwork:"",startClass:"",id:"",temporaryCourseFee:null,musicGoodsIdList:null,kitGroupPurchaseType:"GROUP",musicPrice:null,instrGoodsIdList:[],instrPrice:null}),Object(c["a"])(e,"remark",""),Object(c["a"])(e,"classList",[]),Object(c["a"])(e,"quitRules",{isRefundCourseFee:[{required:!0,message:"请选择是否退还课程费用"}],isRefundInstrumentFee:[{required:!0,message:"选择是否退还乐器费用"}],isRefundTeachingAssistantsFee:[{required:!0,message:"选择是否退还教辅费用"}],reason:[{required:!0,message:"请填写退团退费原因"}]}),Object(c["a"])(e,"maskRules",{studentName:[{required:!0,message:"请输入学生姓名"}],sex:[{required:!0,message:"请选择学生姓名"}],parentName:[{required:!0,message:"请输入家长姓名"}],course:[{required:!0,message:"请输入班级"}],sound:[{required:!0,message:"请选择声部"}],timer:[{required:!0,message:"请选择出生日期"}],signClass:[{required:!0,message:"请选择声部班"}],startClass:[{required:!0,message:"请选择年级"}],id:[{required:!0,message:"请输入证件号"}],temporaryCourseFee:[{required:!0,message:"请输课程费用"}],musicGoodsIdList:[{required:!0,message:"请选择乐器",trigger:"change"}],musicPrice:[{required:!0,message:"请输入乐器购买金额"}],instrGoodsIdList:[{required:!0,message:"请选择辅件"}],instrPrice:[{required:!0,message:"请输入辅件金额"}]}),Object(c["a"])(e,"INSTRUMENTLIST",[]),Object(c["a"])(e,"ACCESSORIESLIST",[]),Object(c["a"])(e,"activeRow",null),Object(c["a"])(e,"Fsearch",null),Object(c["a"])(e,"Frules",null),Object(c["a"])(e,"payForm",{studentName:"",payMoney:"",payMonth:[]}),Object(c["a"])(e,"kitStatus",!1),Object(c["a"])(e,"visitVisiable",!1),Object(c["a"])(e,"visitForm",{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:""}),Object(c["a"])(e,"cycles",[{}]),Object(c["a"])(e,"collapse",[0]),Object(c["a"])(e,"visitChiose",p["B"]),Object(c["a"])(e,"visitRules",{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]}),Object(c["a"])(e,"pickerOptions",null),Object(c["a"])(e,"classLists",null),Object(c["a"])(e,"createdUserId",0),Object(c["a"])(e,"createUserPayVisible",!1),e},components:{pagination:f["a"],paymentCycle:w["a"],createUserPay:E,Tooltip:$["a"]},created:function(){this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules)},filters:{studentPays:function(e){var t={0:"未缴费",1:"已缴费"};return t[e]}},activated:function(){this.init()},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),methods:(s={permission:function(e){return Object(F["a"])(e)},init:function(){var e=this;this.teamid=this.$route.query.id,Object(u["Fb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.studentListInfo=t.data)})),this.pickerOptions=this.beginDate(),this.getList(),Object(u["F"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),Object(u["eb"])({musicGroupId:this.teamid}).then((function(t){return e.baseInfo=t.data})),Object(u["fb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.classList=t.data,e.signList=[],e.mixList=[],e.highList=[],e.snapList=[],e.classList.forEach((function(t){"NORMAL"==t.type?e.signList.push(t):"MIX"==t.type?e.mixList.push(t):"HIGH"==t.type?e.highList.push(t):"SNAP"==t.type?e.snapList.push(t):"HIGH_ONLINE"==t.type?e.highonlineList.push(t):"MUSIC_NETWORK"==t.type&&e.muiscnetworkList.push(t)})))}))}},Object(c["a"])(s,"permission",(function(e){return Object(F["a"])(e)})),Object(c["a"])(s,"onInstrumentChange",(function(){})),Object(c["a"])(s,"onKitGroupChnage",(function(e){this.kitStatus=!1,"FREE"==e?(this.kitStatus=!0,this.maskForm.musicPrice=0):this.maskForm.musicPrice=null})),Object(c["a"])(s,"onMusicGroupExport",(function(){var e=this,t="/api-web/export/musicGroupStudent",a={musicGroupId:this.teamid,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null},s={method:"get",headers:{Authorization:Object(k["a"])()},url:t,params:a,responseType:"blob"};this.$confirm("您确定导出学员列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){y()(s).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=URL.createObjectURL(a),r=document.createElement("a"),n=e.$route.query.name+"学员列表";r.href=s,r.setAttribute("download",n),document.body.appendChild(r),r.click()}))})).catch((function(){}))})),Object(c["a"])(s,"search",(function(){this.rules.page=1,this.getList()})),Object(c["a"])(s,"onCreateQRCode",(function(){var e=this;this.qrcodeStatus=!0;var t=this.$route.query.id;this.qrcodes&&(this.qrcodes=!1,setTimeout((function(){e.qrcode=new v.a("qrcode",{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:v.a.CorrectLevel.H}),e.qrcode.makeCode(Object(h["d"])()+"/#/login?musicGroupId="+t),e.codeUrl=Object(h["d"])()+"/#/login?musicGroupId="+t}),500))})),Object(c["a"])(s,"getList",(function(){var e=this,t={musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null};Object(u["Gb"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))})),Object(c["a"])(s,"addCycle",(function(){this.cycles.push({}),this.collapse.push(this.collapse.length)})),Object(c["a"])(s,"removeCycle",(function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.pop()})),Object(c["a"])(s,"collapseChange",(function(e){this.collapse=e})),Object(c["a"])(s,"gotoSignin",(function(){this.$router.push({path:"/business/studentSignin",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name,rules:this.Frules,search:this.Fsearch}})})),Object(c["a"])(s,"chioseType",(function(){var e=this;this.$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow;Object(u["b"])({musicGroupId:e.teamid,userId:t.userId,reason:e.quitForm.reason,isRefundCourseFee:e.quitForm.isRefundCourseFee,isRefundInstrumentFee:e.quitForm.isRefundInstrumentFee,isRefundTeachingAssistantsFee:e.quitForm.isRefundTeachingAssistantsFee}).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))})),Object(c["a"])(s,"addStudent",(function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var a,s=e.maskForm;if(s.musicGoodsIdList&&(""===s.musicPrice||null===s.musicPrice))return void e.$message.error("请输入乐器金额");if(s.instrGoodsIdList&&s.instrGoodsIdList.length>0&&(""===s.instrPrice||null===s.instrPrice))return void e.$message.error("请输入辅件金额");a=s.snapClass?s.snapClass.join(","):null;var r={signClassId:s.signClass,mixClassId:s.mixClass,snapClassIds:a,highClassId:s.highClass,courseFee:s.courseFee,temporaryCourseFee:s.temporaryCourseFee,studentRegistration:{name:s.studentName,gender:s.sex,birthdate:s.timer,parentsName:s.parentName,parentsPhone:s.phone,currentGrade:s.startClass,currentClass:s.course,subjectId:s.sound,musicGroupId:e.teamid},studentPaymentOrderDetails:[]};s.musicGoodsIdList&&r.studentPaymentOrderDetails.push({goodsIdList:s.musicGoodsIdList,kitGroupPurchaseType:s.kitGroupPurchaseType,type:"MUSICAL",price:s.musicPrice}),s.instrGoodsIdList&&""!=s.instrGoodsIdList&&r.studentPaymentOrderDetails.push({goodsIdList:s.instrGoodsIdList.join(","),type:"ACCESSORIES",price:s.instrPrice}),Object(d["a"])(r).then((function(t){200==t.code&&(e.$message.success("添加学生成功"),e.getList(),e.addStudentVisible=!1,e.createUserPayVisible=!0,e.createdUserId=t.data),e.$refs.maskForm.resetFields()}))}}))})),Object(c["a"])(s,"onSoundChange",(function(e){this.ACCESSORIESLIST=[],this.maskForm.instrGoodsIdList=[],this.maskForm.instrPrice=null,this.INSTRUMENTLIST=[],this.maskForm.musicPrice=null,this.maskForm.musicGoodsIdList=null,this.getGoodsList(e,"INSTRUMENT"),this.getGoodsList(e,"ACCESSORIES")})),Object(c["a"])(s,"findSubjectPlan",(function(e){var t=this;Object(u["I"])({musicGroupId:this.teamid,subjectId:e}).then((function(e){var a=e.data;200==e.code&&(t.maskForm.musicMode=t.getBranchType(a.kitGroupPurchaseType))}))})),Object(c["a"])(s,"getGoodsList",(function(e,t){var a=this;Object(u["ab"])({subjectId:e,type:t}).then((function(e){var s=e.data;if(200==e.code){var r=[];s.forEach((function(e){r.push({label:e.name,value:e.id,marketPrice:e.marketPrice})})),"ACCESSORIES"==t&&(a.ACCESSORIESLIST=r),"INSTRUMENT"==t&&(a.INSTRUMENTLIST=r)}}))})),Object(c["a"])(s,"getBranchType",(function(e){var t={FREE:"免费",GROUP:"团购",LEASE:"租赁"};return t[e]})),Object(c["a"])(s,"lookClass",(function(e){var t=this;this.classMask.studentName=e.realName,Object(d["l"])({musicGroupId:this.teamid,teacherId:e.userId}).then((function(e){200==e.code&&(t.classLists=e.data,t.studentClassVisible=!0)}))})),Object(c["a"])(s,"quieTeamMask",(function(e){this.activeRow=e,this.quitVisible=!0})),Object(c["a"])(s,"quieTeam",(function(e){var t=this;this.$prompt("请输入退团原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",inputPattern:/\S/,inputErrorMessage:"请输入退团原因"}).then((function(a){Object(u["b"])({musicGroupId:t.teamid,userId:e.userId,reason:a.value,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1}).then((function(e){t.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},200==e.code&&(t.$message.success("退团成功"),t.getList(),t.quitVisible=!1)}))})).catch((function(){}))})),Object(c["a"])(s,"checkPhone",(function(e){var t=this,a=/^1[3456789]\d{9}$/,s=new RegExp(a);s.test(e)&&Object(d["n"])({mobile:this.maskForm.phone}).then((function(a){200==a.code&&a.data&&(t.maskForm.studentName=a.data.name,t.maskForm.sex=a.data.gender,t.maskForm.parentName=a.data.parentsName,t.maskForm.course=a.data.currentClass,t.maskForm.startClass=a.data.currentGrade,t.maskForm.phone=e,t.maskForm.timer=a.data.birthdate)}))})),Object(c["a"])(s,"lockStudent",(function(e){var t=this;this.$confirm("是否锁定/解锁学生缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a,s=t.teamid,r=e.userId;a=0==e.isLock?1:0,Object(u["a"])({musicGroupId:s,studentId:r,isLock:a}).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.getList())}))})).catch((function(){}))})),Object(c["a"])(s,"resetPay",(function(e){this.activeRow=e,this.payVisible=!0,this.payForm.studentName=e.realName,this.payForm.payMoney=e.courseFee,this.payForm.payMonth=e.paymentPeriodList.split(","),""==this.payForm.payMonth[0]&&(this.payForm.payMonth=[])})),Object(c["a"])(s,"submitPay",(function(){var e=this,t=this.activeRow.userId,a=this.teamid,s=this.payForm.payMonth.join(",")||null,r=this.payForm.payMoney,n={studentId:t,musicGroupId:a,month:s,amount:r};Object(u["Bc"])(n).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))})),Object(c["a"])(s,"closePayVisible",(function(){this.$refs["payForm"].resetFields(),this.payVisible=!1})),Object(c["a"])(s,"addVisit",(function(e){console.log(e),this.visitForm.studentName=e.realName,this.visitForm.musicGroupId=this.teamid,this.visitForm.studentId=e.userId,this.visitVisiable=!0})),Object(c["a"])(s,"handleChange",(function(e){this.visitForm.type=e[0],this.visitForm.purpose=e[1]})),Object(c["a"])(s,"submitAddVisit",(function(){var e=this;console.log(this.$refs.visitForm),this.$refs.visitForm.validate((function(t){t&&Object(_["a"])(O()(e.visitForm)).then((function(t){200===t.code&&(e.$message.success("新增成功"),e.visitVisiable=!1)}))}))})),Object(c["a"])(s,"beginDate",(function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>=(new Date).getTime()}}})),s),watch:{quitVisible:function(e){e||(this.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},this.$refs["quitForm"].resetFields())},visitVisiable:function(e){e||this.$refs["visitForm"].resetFields()}}},B=U,K=(a("ca88"),Object(D["a"])(B,i,o,!1,null,"275b5a71",null)),H=K.exports,z=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"t-container"},[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"老师姓名 编号 手机号"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"searchBtn",on:{click:e.search}},[e._v("搜索")])]),e._v(" "),a("el-form-item",{staticStyle:{float:"right"}},[a("div",{staticClass:"right newBand",staticStyle:{"margin-bottom":"0"},on:{click:e.gotoRecord}},[e._v(" 上课记录 ")])])],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"teacherId",label:"老师编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"联系电话"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"jobNature",label:"工作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("jobNature")(t.row.jobNature))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"执教班级"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"num",label:"出勤次数"}})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1)},W=[],Q={name:"tteacherList",data:function(){return{searchForm:{status:"",teachingClass:"",attendance:"",search:""},searchLsit:[],tableList:[],mixCourseList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]}}},components:{pagination:f["a"]},mounted:function(){var e=this;this.teamid=this.$route.query.id,this.getList(),Object(u["K"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.mixCourseList=t.data)}))},activated:function(){this.teamid=this.$route.query.id,this.getList()},methods:{search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;Object(u["Hb"])({musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,search:this.searchForm.search||null}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},gotoRecord:function(){this.$router.push({path:"/business/teamTeacherRecord",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name}})}}},J=Q,Y=(a("6814"),Object(D["a"])(J,z,W,!1,null,null,null)),Z=Y.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cl-container"},[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus","string"===typeof t?t.trim():t)},expression:"searchForm.courseStatus"}},e._l(e.courseArray,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.classStatus,callback:function(t){e.$set(e.searchForm,"classStatus","string"===typeof t?t.trim():t)},expression:"searchForm.classStatus"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"班级名称",filterable:"",clearable:""},model:{value:e.searchForm.class,callback:function(t){e.$set(e.searchForm,"class","string"===typeof t?t.trim():t)},expression:"searchForm.class"}},e._l(e.classList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"是否结算",filterable:"",clearable:""},model:{value:e.searchForm.isSettlement,callback:function(t){e.$set(e.searchForm,"isSettlement","string"===typeof t?t.trim():t)},expression:"searchForm.isSettlement"}},[a("el-option",{attrs:{value:"0",label:"未结算"}}),e._v(" "),a("el-option",{attrs:{value:"1",label:"已结算"}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{staticStyle:{width:"420px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"searchBtn",on:{click:e.search}},[e._v("搜索")])])],1),e._v(" "),a("div",{staticClass:"btnWraps"}),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkSelectable}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"180px",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):""))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesType")(t.row.courseScheduleType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.courseScheduleStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师签到"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"老师签退"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"masterTeacherName",label:"指导老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"结算状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementTime?"已结算":"未结算"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"是否点名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCallNames?"已点名":"未点名"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"280px",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("teacherAttendance/updateTeacherAttendance?t=568")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onMarkAttendance(t.row)}}},[e._v("补考勤")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&e.permission("studentAttendance/updateStudentAttendances?t=570")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCallName(t.row)}}},[e._v("点名表")]):e._e(),e._v(" "),!t.row.settlementTime&&e.permission("courseSchedule/classStartDateAdjust")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("courseSchedule/cleanAttendance")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.clearAttend(t.row)}}},[e._v("清除考勤")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[a("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.courseScheduleType&&"HIGH_ONLINE"!=e.maskForm.courseScheduleType?a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("el-select",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[a("el-select",{on:{change:e.changeTime},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}},e._l(e.typeTimeList,(function(e,t){return a("el-option",{key:t,attrs:{value:parseInt(e),label:e}})})),1)],1):e._e(),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1):e._e(),e._v(" "),e.courseVisible?a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-select",{attrs:{placeholder:"结束时间",disabled:"","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1):e._e(),e._v(" "),"HIGH_ONLINE"!=e.maskForm.courseScheduleType&&"MUSIC_NETWORK"!=e.maskForm.courseScheduleType?a("el-form-item",{attrs:{label:"教学地点",prop:"schoolId"}},[a("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.schoolId,callback:function(t){e.$set(e.maskForm,"schoolId","string"===typeof t?t.trim():t)},expression:"\n maskForm.schoolId"}},e._l(e.schoolList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改时间",width:"400px","before-close":e.handleCloseTimer,visible:e.timerVisible},on:{"update:visible":function(t){e.timerVisible=t}}},[a("el-form",{attrs:{model:e.timerMask}},[a("el-form-item",{attrs:{label:"上课日期",rules:[{required:!0,message:"请选择日期",trigger:"blur"}]}},[a("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.timerMask.timer,callback:function(t){e.$set(e.timerMask,"timer","string"===typeof t?t.trim():t)},expression:"timerMask.timer"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.timerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchAdjustmentTime}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"补考勤",width:"400px",visible:e.markAttendance.status},on:{"update:visible":function(t){return e.$set(e.markAttendance,"status",t)}}},[a("el-form",[a("el-form-item",{attrs:{label:"签到状态"}},[e._v(e._s(e._f("attendanceType")(e.markAttendance.dataInfo.signInStatus)))]),e._v(" "),a("el-form-item",{attrs:{label:"签到时间"}},[e._v(e._s(e.markAttendance.dataInfo.signInTime))]),e._v(" "),a("el-form-item",{attrs:{label:"签退状态"}},[e._v(e._s(e._f("attendanceOutType")(e.markAttendance.dataInfo.signOutStatus)))]),e._v(" "),a("el-form-item",{attrs:{label:"签退时间"}},[e._v(e._s(e.markAttendance.dataInfo.signOutTime))])],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.markAttendance.status=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:1==e.markAttendance.dataInfo.signOutStatus&&1==e.markAttendance.dataInfo.signInStatus},on:{click:e.batchAdjustmentTime}},[e._v("确定补卡")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"点名表",width:"800px",visible:e.rollCall.status},on:{"update:visible":function(t){return e.$set(e.rollCall,"status",t)}}},[a("el-table",{attrs:{data:e.rollCall.gridData}},[a("el-table-column",{attrs:{align:"center",property:"userName",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",property:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",property:"subjectName",label:"学员声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"到课状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentCallName")(t.row.status)))]}}])}),e._v(" "),e.rollCall.selectItem.settlementTime?e._e():a("el-table-column",{attrs:{align:"center",label:"操作",width:"240px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:function(a){return e.onChangeRollCall("TRUANT",t.row)}}},[e._v("未到")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"warning",round:""},on:{click:function(a){return e.onChangeRollCall("LEAVE",t.row)}}},[e._v("请假")]),e._v(" "),a("el-button",{attrs:{size:"small",type:"success",round:""},on:{click:function(a){return e.onChangeRollCall("NORMAL",t.row)}}},[e._v("到课")])]}}],null,!1,3311584737)})],1),e._v(" "),a("pagination",{attrs:{total:e.rollCall.total,page:e.rollCall.page,limit:e.rollCall.limit,"page-sizes":e.rollCall.page_size},on:{"update:page":function(t){return e.$set(e.rollCall,"page",t)},"update:limit":function(t){return e.$set(e.rollCall,"limit",t)},pagination:e.getCallName}})],1)],1)},ee=[],te=(a("5a0c"),a("7e78")),ae=a("c466"),se=a("99b4"),re={name:"tcourseList",data:function(){return{classTimeList:p["g"],courseArray:p["o"],typeVisible:!1,timerVisible:!1,courseVisible:!1,searchForm:{courseStatus:"",classStatus:"",timer:[],class:"",isSettlement:""},tableList:[],searchLsit:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},maskForm:{teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",type:"",timer:"",courseScheduleType:null,address:"",teachMode:"",schoolId:""},typeForm:{teacher:"",assistant:"",date:"",startTime:"",endTime:"",type:null,id:null},maskRules:{schoolId:[{required:!0,message:"请选教学地点",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},typeRules:{type:[{required:!0,message:"请选择课程类型",trigger:"blur"}]},teacherList:[],classList:[],activeCourseList:[],timerMask:{timer:""},markAttendance:{status:!1,dataInfo:{}},rollCall:{status:!1,gridData:[],selectItem:{},limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:"",schoolList:[],courseTimeList:{},typeTimeList:[]}},components:{pagination:f["a"]},mounted:function(){var e=this;this.init(),Object(se["o"])({organId:this.$route.query.organId}).then((function(t){200==t.code&&(e.schoolList=t.data)}))},activated:function(){this.init()},methods:{init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.teamid=this.$route.query.id,this.organId=this.$route.query.organId,e.prev=2,e.next=5,Object(u["lb"])({organId:this.organId});case 5:t=e.sent,this.courseTimeList=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](2);case 11:this.getList(),Object(u["Ab"])().then((function(e){200==e.code&&(a.teacherList=e.data)})),Object(u["fb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(a.classList=e.data)}));case 14:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}(),onMarkAttendance:function(e){this.markAttendance={status:!0,dataInfo:e}},onCallName:function(e){this.rollCall.page=1,this.rollCall.selectItem=e,this.getCallName()},getCallName:function(){var e=this.rollCall,t={page:e.page,rows:e.limit,courseScheduleId:e.selectItem.courseScheduleId};Object(u["A"])(t).then((function(t){var a=t.data;e.status=!0,200==t.code&&(e.gridData=a.rows,e.total=a.total)}))},onChangeRollCall:function(e,t){var a=this,s=this.rollCall,r={courseScheduleId:s.selectItem.courseScheduleId,studentAttendances:[{userId:t.studentId,status:e}]};Object(u["Ac"])(r).then((function(s){200==s.code?(a.$message.success("修改成功"),t.status=e,a.getList()):a.$message.error(s.msg)}))},permission:function(e,t){return Object(F["a"])(e,t)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.timer||(t.timer=[]);var a={classScheduleStatus:t.classStatus||null,classScheduleType:t.courseStatus||null,musicGroupId:this.teamid,startTime:t.timer[0]||null,endTime:t.timer[1]||null,page:this.rules.page,rows:this.rules.limit,classGroupId:t.class||null,isSettlement:t.isSettlement||null};Object(u["S"])(a).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(e){for(var t in this.maskForm.teacher=parseInt(e.masterTeacherId),this.maskForm.courseScheduleType=e.courseScheduleType,this.courseTimeList)t==e.courseScheduleType&&(this.typeTimeList=this.courseTimeList[t].split(","));for(var a in console.log(this.typeTimeList),this.maskForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[a].teacherRole&&this.maskForm.assistant.push(e.teachingTeachers[a].userId);this.maskForm.date=e.classDate,this.$set(this.maskForm,"startTime",e.startClassTimeStr.substring(0,5));var s=Object(ae["b"])(e.classDate,e.startClassTimeStr,e.endClassTimeStr);this.maskForm.timer=s,this.maskForm.endTime=Object(ae["a"])(e.classDate,e.startClassTimeStr,s),this.maskForm.id=e.courseScheduleId,this.maskForm.schoolId=e.schoolId,this.courseVisible=!0},removeSingleClass:function(e){var t=this;this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=e.courseScheduleId;Object(te["g"])({courseScheduleIds:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},removeCourses:function(){var e=this;if(this.activeCourseList.length<1)this.$message.error("请至少选择一节课");else{var t=[];t=this.activeCourseList.map((function(e){return e.courseScheduleId})),this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.join(",");Object(te["g"])({courseScheduleIds:a}).then((function(t){200==t.code&&(e.$message.success("删除成功"),e.getList())}))})).catch((function(){}))}},submitResetClass:function(){var e=this,t=this.maskForm;t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a=t.assistant.join(",");if(a.length<=0);var s={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:a,classDate:t.date,type:t.type,groupType:"MUSIC",schoolId:t.schoolId};Object(u["cc"])(O()(s)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1)}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},handleClose:function(){this.courseVisible=!1,this.maskForm={teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",schoolId:null},this.$refs["maskForm"].resetFields()},handleSelectionChange:function(e){this.activeCourseList=e},checkSelectable:function(e){return"NOT_START"==e.courseScheduleStatus},batchAdjustmentTime:function(){var e=this,t=this.markAttendance.dataInfo,a={teacherId:t.masterTeacherId,courseScheduleId:t.courseScheduleId,signInStatus:1,signOutStatus:1};Object(u["Dc"])(a).then((function(t){200==t.code?(e.$message.success("补卡成功"),e.markAttendance.status=!1,e.getList()):e.$message.error(t.msg)}))},handleCloseTimer:function(){this.timerVisible=!1,this.timerMask.timer=""},resetTimer:function(){this.activeCourseList.length<1?this.$message.error("请至少选择一节课"):this.timerVisible=!0},resetType:function(e){for(var t in this.typeForm.type=e.courseScheduleType,this.typeForm.id=e.courseScheduleId,this.typeForm.teacher=parseInt(e.masterTeacherId),this.typeForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[t].teacherRole&&this.typeForm.assistant.push(e.teachingTeachers[t].userId);this.typeForm.date=e.classDate,this.$set(this.typeForm,"startTime",e.startClassTimeStr.substring(0,5)),this.typeForm.endTime=e.endClassTimeStr.substring(0,5),this.typeVisible=!0},submitResetType:function(){var e=this;this.$refs.typeForm.validate((function(t){if(t){var a=e.typeForm.assistant.join(",");if(a.length<=0);var s={actualTeacherId:e.typeForm.teacher,startClassTimeStr:e.typeForm.startTime,endClassTimeStr:e.typeForm.endTime,id:e.typeForm.id,type:e.typeForm.type,teachingTeacherIdList:a,classDate:e.typeForm.date};Object(u["cc"])(s).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.typeVisible=!1)}))}}))},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["o"])({courseScheduleIds:e.courseScheduleId}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},changeStartTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(ae["a"])(t.maskForm.date,e,t.maskForm.timer)}))},changeTime:function(e){var t=this;this.$nextTick((function(a){t.maskForm.endTime=Object(ae["a"])(t.maskForm.date,t.maskForm.startTime,e)}))}},filters:{studentCallName:function(e){var t={NORMAL:"到课",TRUANT:"未到",LEAVE:"请假",DROP_OUT:"退学","":"未到"};return t[e]}},watch:{"maskForm.timer":function(e){this.maskForm.endTime=Object(ae["a"])(this.maskForm.date,this.maskForm.startTime,e)}}},ne=re,ie=(a("7ddf"),Object(D["a"])(ne,X,ee,!1,null,"6526e50e",null)),oe=ie.exports,le=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"c-container"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/coursePostpone",expression:"'courseSchedule/coursePostpone'"}],staticClass:"newBand",on:{click:e.postpone}},[e._v("课程顺延")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("classType")(t.row.classGroupType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"masterTeacher",label:"主教老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subTeacher",label:"助教老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"currentClassTimes",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studyNum",label:"在读人数"}}),e._v(" "),e.permission("courseSchedule/coursePostpone")?a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.signPostpone(t.row)}}},[e._v("顺延课程")])],1)]}}],null,!1,433730982)}):e._e()],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课程顺延",visible:e.postponeVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.postponeVisible=t}}},[a("el-form",{ref:"postponeForm",attrs:{model:e.postponeForm,rules:e.postponeRules}},[a("el-form-item",{attrs:{label:"开始日期",prop:"stopTime"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.stopTime,callback:function(t){e.$set(e.postponeForm,"stopTime","string"===typeof t?t.trim():t)},expression:"postponeForm.stopTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"顺延日期",prop:"resetTime"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.options,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.resetTime,callback:function(t){e.$set(e.postponeForm,"resetTime","string"===typeof t?t.trim():t)},expression:"postponeForm.resetTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"跳过节假日"}},[a("el-checkbox",{model:{value:e.postponeForm.holiday,callback:function(t){e.$set(e.postponeForm,"holiday","string"===typeof t?t.trim():t)},expression:"postponeForm.holiday"}})],1)],1),e._v(" "),a("span",{staticStyle:{color:"#F56C6C"}},[e._v("注意:将会把所选班级的课表,「开始日期」之后的全部未开始课程;\n 调整到「顺延日期」之后重新排课,可以勾选跳过节假日;")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.postponeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},ce=[],ue={name:"tclassList",data:function(){return{postponeVisible:!1,searchLsit:[],searchForm:{name:"",status:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},postponeForm:{stopTime:"",resetTime:"",holiday:!1},postponeRules:{stopTime:[{required:!0,message:"请选择开始日期",trigger:"blur"}],resetTime:[{required:!0,message:"请选择顺延日期",trigger:"blur"}]},activeClass:"",activeList:[],options:this.processDate(),bigin:this.beginDate()}},components:{pagination:f["a"]},created:function(){},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{permission:function(e){return Object(F["a"])(e)},getList:function(){var e=this;this.teamid=this.$route.query.id,Object(u["P"])({search:this.teamid,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(){this.$router.push({path:"/business/resetClass",query:{id:this.teamid}})},postpone:function(){this.activeList.length<=0?this.$message.error("请至少选择一个班级"):this.postponeVisible=!0},signPostpone:function(e){this.activeClass=e.classGroupId,this.postponeVisible=!0},handleClose:function(){this.postponeVisible=!1,this.$refs["postponeForm"].resetFields()},handleSelectionChange:function(e){this.activeList=e;var t=e.map((function(e){return e.classGroupId}));this.activeClass=t.join(",")},submitInfo:function(){var e=this;this.$refs["postponeForm"].validate((function(t){if(t){var a=e.activeClass,s=e.postponeForm.stopTime,r=e.postponeForm.resetTime,n=e.postponeForm.holiday,i={classGroupIds:a,pauseDate:s,recoveryDate:r,skipHoliday:n};Object(u["r"])(i).then((function(t){200==t.code&&e.$message.success("修改成功")}))}}))},processDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return e.postponeForm.stopTime?new Date(e.postponeForm.stopTime).getTime()>t.getTime():t.getTime()>Date.now()}}},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}}},de=ue,me=Object(D["a"])(de,le,ce,!1,null,null,null),pe=me.exports,fe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"-","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.searchForm.date,callback:function(t){e.$set(e.searchForm,"date","string"===typeof t?t.trim():t)},expression:"searchForm.date"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseScheduleType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherNum",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.masterTeacherName)+"("+e._s(t.row.masterTeacherId)+")\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherNum",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",e._l(t.row.teachingTeachers,(function(t,s){return"TEACHING"==t.teacherRole?a("p",{key:s},[e._v(" "+e._s(t.userName)+"("+e._s(t.userId)+")")]):e._e()})),0)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("courseSchedule/queryTeacherSalary")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.setCourseInfo(t.row)}}},[e._v("课酬调整")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"课酬调整",width:"800px",visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.activeTeacherList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"老师姓名",prop:"teacherName"}}),e._v(" "),a("el-table-column",{attrs:{label:"老师角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("workType")(t.row.teacherRole))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程课酬",prop:"expectSalary"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.permission("courseSchedule/updateTeacherCoursesSalary")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetTeacher(t.row)}}},[e._v("操作")]):e._e()],1)]}}])})],1),e._v(" "),a("el-dialog",{attrs:{width:"500px",title:"",visible:e.innerVisible,"append-to-body":""},on:{"update:visible":function(t){e.innerVisible=t}}},[a("el-form",{ref:"teacherMask",attrs:{model:e.teacherMask,rules:e.teacherRules}},[a("el-form-item",{attrs:{label:"调整范围",prop:"radio"}},[a("el-radio",{attrs:{label:"all"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("之后剩余课次")]),e._v(" "),a("el-radio",{attrs:{label:"one"},model:{value:e.teacherMask.radio,callback:function(t){e.$set(e.teacherMask,"radio","string"===typeof t?t.trim():t)},expression:"teacherMask.radio"}},[e._v("仅限本次")])],1),e._v(" "),a("el-form-item",{attrs:{label:"课程课酬",prop:"salary"}},[a("el-input",{staticStyle:{width:"180px"},model:{value:e.teacherMask.salary,callback:function(t){e.$set(e.teacherMask,"salary","string"===typeof t?t.trim():t)},expression:"teacherMask.salary"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.innerVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.resetSalary}},[e._v("确 定")])],1)],1)],1)],1)},he=[],be=a("8018"),ve={name:"tsalaryList",data:function(){return{dialogTableVisible:!1,innerVisible:!1,searchForm:{date:""},pickerOptions:{firstDayOfWeek:1},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchLsit:[],activeTeacherList:[{1:1}],teacherMask:{salary:"",subsidy:"",radio:""},courseScheduleId:"",teacherRules:{salary:[{required:!0,message:"请输入课程课酬",trigger:"blur"}],subsidy:[{required:!0,message:"请输入课时补贴",trigger:"blur"}],radio:[{required:!0,message:"请选择调整范围",trigger:"blur"}]},tempSelectRow:{}}},components:{pagination:f["a"]},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{permission:function(e){return Object(F["a"])(e)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;this.teamid=this.$route.query.id,this.searchForm.date||(this.searchForm.date=[]);var t={musicGroupId:this.teamid,startTime:this.searchForm.date[0]||null,endTime:this.searchForm.date[1]||null,page:this.rules.page,rows:this.rules.limit};Object(u["R"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},setCourseInfo:function(e){var t=this;this.tempSelectRow=e,Object(u["Bb"])({courseScheduleId:e.courseScheduleId}).then((function(a){200==a.code&&(t.dialogTableVisible=!0,t.courseScheduleId=e.courseScheduleId,t.activeTeacherList=a.data)}))},resetTeacher:function(e){this.innerVisible=!0,this.activeTeacher=e},resetSalary:function(){var e=this,t=this;this.$refs["teacherMask"].validate((function(a){a?Object(be["B"])({courseScheduleId:e.courseScheduleId,salary:e.teacherMask.salary,teacherId:e.activeTeacher.teacherId,scope:e.teacherMask.radio}).then((function(a){200==a.code&&(e.$message.success("修改成功"),e.teacherMask={salary:"",subsidy:"",radio:""},e.innerVisible=!1,t.setCourseInfo(e.tempSelectRow))})):e.$message.error("请填写必要参数")}))}}},ge=ve,ye=Object(D["a"])(ge,fe,he,!1,null,null,null),ke=ye.exports,Fe=a("73b3"),_e={name:"teamDetail",data:function(){return{activeIndex:this.$route.query.checkIndex?this.$route.query.checkIndex:"1",teamid:"",name:"",stepImgs:{PROGRESS:a("7a7c"),PAUSE:a("c34d")},status:"",Fsearch:null,Frules:null}},mounted:function(){this.activeIndex="1",this.init()},activated:function(){this.activeIndex="1",this.init()},methods:{permission:function(e){return Object(F["a"])(e)},init:function(){this.status=this.$route.query.status,this.teamid=this.$route.query.id,this.name=this.$route.query.name,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules)},handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$router.push({path:"/business/teamDetail",query:{search:this.Fsearch,rules:this.Frules}})},resetTeam:function(){this.$router.push({path:"/business/teamBuild",query:{type:"resetTeam",id:this.teamid}})}},components:{studentList:H,teacherList:Z,courseList:oe,classList:pe,salaryList:ke,baseinfo:Fe["a"]}},Te=_e,Oe=(a("a414"),Object(D["a"])(Te,r,n,!1,null,"e3e1e358",null));t["default"]=Oe.exports}}]);