VIPApply~applyActive.7c06bd20.js 69 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["VIPApply~applyActive"],{"26a8":function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vipCourse"},[a("div",[a("div",{staticClass:"vip-title"},[t._v("课程信息")]),a("van-field",{attrs:{label:"课程声部","input-align":"right",placeholder:"请选择课程声部",readonly:"","is-link":""},on:{click:function(e){return t.onSelect("subjectList")}},model:{value:t.formName.subjectListName,callback:function(e){t.$set(t.formName,"subjectListName",e)},expression:"formName.subjectListName"}}),a("van-field",{attrs:{label:"课程形式","input-align":"right",placeholder:"请选择课程形式",readonly:"","is-link":""},on:{click:function(e){return t.onSelect("vipGroupCategory")}},model:{value:t.formName.vipGroupCategoryName,callback:function(e){t.$set(t.formName,"vipGroupCategoryName",e)},expression:"formName.vipGroupCategoryName"}}),a("van-cell",{staticClass:"courseStudent",attrs:{title:"上课学员",readonly:"","input-align":"right","is-link":!(t.checkboxSelectDataList.length>0),value:t.checkboxSelectDataList.length>0?"重新选择":"请选择上课学员","value-class":t.checkboxSelectDataList.length>0?"studentColor":null},on:{click:t.onCheckStudent}}),t.checkboxSelectDataList.length>0?a("div",{staticStyle:{"text-align":"center","line-height":"1.8",padding:"0.05rem 0",background:"#fafbff"}},t._l(t.checkboxSelectDataList,function(e,s){return a("p",{key:s,staticStyle:{color:"#323233"}},[t._v("\n "+t._s(e.username)+" - "+t._s(e.parentsPhone)+"\n ")])}),0):t._e(),a("div",{staticClass:"vip-title"},[t._v("课时组成")]),a("van-field",{attrs:{label:"课时总数","input-align":"right",placeholder:"输选择课时总数",readonly:"",value:"10节"}}),a("van-field",{attrs:{label:"课程时长","input-align":"right",placeholder:"请选择课程时长",readonly:"","is-link":""},on:{click:t.onClickSingleClass},model:{value:t.form.singleClassMinutes,callback:function(e){t.$set(t.form,"singleClassMinutes",e)},expression:"form.singleClassMinutes"}}),a("van-field",{attrs:{label:"排课开始时间",readonly:!0,"input-align":"right","is-link":"",placeholder:"请选择"},on:{click:function(e){t.dataForm.status=!0}},model:{value:t.form.courseStart,callback:function(e){t.$set(t.form,"courseStart",e)},expression:"form.courseStart"}}),t._l(t.scheduleList,function(e,s){return a("van-cell",{key:s,attrs:{"title-class":"title-time"}},[a("template",{slot:"title"},[a("span",{staticClass:"online"},[t._v(t._s(e.type))]),a("span",{staticClass:"week"},[t._v(t._s(e.weekStr))]),a("span",{staticClass:"timer"},[t._v(t._s(e.startTime+"-"+e.endTime))])]),a("template",{slot:"default"},[a("van-button",{attrs:{type:"warning",round:"",size:"small",plain:""},on:{click:function(s){return t.onScheduleRemove(e)}}},[t._v("删除")])],1)],2)}),a("div",{staticClass:"add-plan van-cell",on:{click:t.onCourseSchedule}},[a("van-icon",{attrs:{name:"add-o"}}),t._v("课时安排\n ")],1),t.scheduleList.length>0?a("van-field",{attrs:{label:"排课列表",readonly:"","input-align":"right","is-link":""},on:{click:t.onShowTimeTable}}):t._e(),a("div",{staticStyle:{margin:"16px"}},[a("van-button",{attrs:{round:"",block:"",type:"info"},on:{click:t.onSubmit}},[t._v("确认排课")])],1)],2),a("van-action-sheet",{attrs:{actions:t.loadData.classTimer,"cancel-text":"取消"},on:{cancel:function(e){t.statusList.classTimerStatus=!1},select:t.onClassTimerSelect},model:{value:t.statusList.classTimerStatus,callback:function(e){t.$set(t.statusList,"classTimerStatus",e)},expression:"statusList.classTimerStatus"}}),a("van-popup",{attrs:{position:"bottom"},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.dataForm.minDate,formatter:t.formatter},on:{cancel:function(e){t.dataForm.status=!1},confirm:t.onCurrentConfirm},model:{value:t.dataForm.currentDate,callback:function(e){t.$set(t.dataForm,"currentDate",e)},expression:"dataForm.currentDate"}})],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.sheetForm.sheetStatus,callback:function(e){t.$set(t.sheetForm,"sheetStatus",e)},expression:"sheetForm.sheetStatus"}},[a("van-picker",{attrs:{loading:t.sheetForm.loading,"default-index":t.sheetForm.index,columns:t.sheetForm.columns,"show-toolbar":""},on:{cancel:function(e){t.sheetForm.sheetStatus=!1},confirm:t.onSheetConfirm}})],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.courseForm.teachingStatus,callback:function(e){t.$set(t.courseForm,"teachingStatus",e)},expression:"courseForm.teachingStatus"}},[a("van-picker",{attrs:{columns:t.courseForm.columns,"show-toolbar":""},on:{cancel:function(e){t.courseForm.teachingStatus=!1},confirm:t.onTeachinConfirm}})],1),a("van-popup",{staticClass:"studentChiose",style:{height:"180%"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.statusList.studentStatus,callback:function(e){t.$set(t.statusList,"studentStatus",e)},expression:"statusList.studentStatus"}},[t.statusList.studentStatus?a("div",[a("van-sticky",[a("van-search",{attrs:{"show-action":"",shape:"round",placeholder:"请输入学生名或手机号"},on:{search:t.onSearch},scopedSlots:t._u([{key:"action",fn:function(){return[a("div",{on:{click:t.onSearch}},[t._v("搜索")])]},proxy:!0}],null,!1,3446203101),model:{value:t.params.search,callback:function(e){t.$set(t.params,"search",e)},expression:"params.search"}})],1),a("div",{staticClass:"paddingB80"},[t.dataShow?a("van-list",{key:"data",staticClass:"studentContainer",attrs:{finished:t.finished,"finished-text":""},on:{load:t.getStudent},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[a("van-checkbox-group",{model:{value:t.checkboxSelect,callback:function(e){t.checkboxSelect=e},expression:"checkboxSelect"}},[a("van-cell-group",t._l(t.dataList,function(e,n){return a("van-cell",{key:n,staticClass:"input-cell",attrs:{center:!0},on:{click:function(s){return t.onCheckboxSelect(e)}}},[a("template",{slot:"icon"},[e.avatar?a("img",{staticClass:"logo",attrs:{src:e.avatar,alt:""}}):a("img",{staticClass:"logo",attrs:{src:s("a7ed"),alt:""}})]),a("template",{slot:"title"},[t._v("\n "+t._s(e.username)+"\n ")]),a("template",{slot:"label"},[a("span",[t._v(t._s(t.desensitPhone(e.parentsPhone)))])]),a("template",{slot:"default"},[a("van-checkbox",{attrs:{name:e.userId.toString()}})],1)],2)}),1)],1)],1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无学生"}})],1),a("div",{staticClass:"button-group-popup"},[a("span",{staticClass:"btn",on:{click:t.onPopupCancel}},[t._v("取消")]),a("span",{staticClass:"btn primary",on:{click:t.onPopupSubmit}},[t._v("确定")])])],1):t._e()]),a("van-popup",{attrs:{position:"bottom"},model:{value:t.statusList.classTime,callback:function(e){t.$set(t.statusList,"classTime",e)},expression:"statusList.classTime"}},[a("van-row",[a("van-col",{attrs:{span:"12"}},[t._v("上课类型")]),a("van-col",{attrs:{span:"12"}},[t._v("上课时间")])],1),a("div",{staticClass:"tableContainer"},t._l(t.timeTable,function(e,s){return a("van-row",{key:s},[a("van-col",{attrs:{span:"12"}},[t._v("\n "+t._s("ONLINE"==e.teachMode?"线上":"线下")+"\n ")]),a("van-col",{attrs:{span:"12"}},[t._v("\n "+t._s(e.classDate)+" "+t._s(e.startClassTimeStr)+"\n ")])],1)}),1)],1)],1)},n=[],i=s("a34a"),r=s.n(i),o=s("5a0c"),u=s.n(o),c=s("3908"),l=s("ff51"),h=s("9afb"),d=s("4198"),m=s("e3eb"),f=s.n(m),p=s("d678");function v(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,a)}return s}function g(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?v(s,!0).forEach(function(e){S(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):v(s).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function S(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function b(t,e,s,a,n,i,r){try{var o=t[i](r),u=o.value}catch(c){return void s(c)}o.done?e(u):Promise.resolve(u).then(a,n)}function y(t){return function(){var e=this,s=arguments;return new Promise(function(a,n){var i=t.apply(e,s);function r(t){b(i,a,n,r,o,"next",t)}function o(t){b(i,a,n,r,o,"throw",t)}r(void 0)})}}for(var C=[],k=0;k<60;k++){var x=k<10?"0"+k:k;C.push(x+"分")}var T={name:"apply",components:{MEmpty:p["a"]},data:function(){return{subjectId:null,selectTeacher:{status:!1},dataForm:{status:!1,minDate:new Date,currentDate:new Date},statusList:{classTimerStatus:!1,studentStatus:!1,classTime:!1},form:{vipGroupCategoryId:null,courseStart:null,studentNum:null,onlineClassesUnitPrice:null,offlineClassesUnitPrice:null,singleClassMinutes:null,onlineClassesNum:10,offlineClassesNum:0,subjectIdList:null,vipGroupActivityId:null},formName:{vipGroupCategoryName:null,vipGroupCategoryIndex:0,subjectListName:null,subjectListIndex:0},courseForm:{teachingStatus:!1,columns:[{values:["线上"],className:"type"},{values:["周一","周二","周三","周四","周五","周六","周日"],className:"week"},{values:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],className:"hours",defaultIndex:7},{values:C,className:"minutes"}]},loadData:{subjectList:[],vipGroupCategory:[],vipGroupCategorySelect:[],classTimer:[]},sheetForm:{currentType:null,sheetStatus:!1,loading:!0,index:0,columns:[]},timeTable:[],scheduleList:[],checkboxSelect:[],checkboxSelectIds:[],checkboxSelectList:[],checkboxSelectDataList:[],loading:!1,finished:!1,params:{search:null,page:1,rows:20},dataShow:!0,dataList:[]}},mounted:function(){},methods:{onSubmit:function(){var t=y(r.a.mark(function t(){var e,s,a=this;return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.form,e.subjectIdList){t.next=4;break}return this.$toast("请选课程声部"),t.abrupt("return",!1);case 4:if(e.vipGroupCategoryId){t.next=7;break}return this.$toast("请选择课程形式"),t.abrupt("return",!1);case 7:if(!(this.checkboxSelectIds.length<=0)){t.next=10;break}return this.$toast("请选择上课学生"),t.abrupt("return");case 10:if(!(this.scheduleList.length<=0)){t.next=13;break}return this.$toast("课时安排不能为空"),t.abrupt("return",!1);case 13:if(this.checkCourseList()){t.next=15;break}return t.abrupt("return");case 15:return this.setTimeTable(),e.studentIdList=this.checkboxSelectIds.join(","),e.firstStudentId=this.checkboxSelectDataList.length>0?this.checkboxSelectDataList[0].userId:null,s={courseSchedules:this.timeTable,vipGroupApplyBaseInfo:g({},e,{userId:this.teacherId,activityCourseType:"music_theory"})},Object(c["a"])(!0),t.next=22,Object(d["a"])(s).then(function(t){var e=t.data;Object(c["a"])(!1),200==e.code?(a.$toast("申请成功"),setTimeout(function(){a.onSubmitStatus=!0,Object(l["b"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):Object(l["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):a.$router.push("/business")},500)):a.$toast(e.msg)}).catch(function(){Object(c["a"])(!1)});case 22:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onCourseSchedule:function(){this.form.singleClassMinutes?this.form.courseStart?this.courseForm.teachingStatus=!0:this.$toast("请选择排课开始时间"):this.$toast("请选课程时长")},onScheduleRemove:function(t){var e=this.scheduleList.indexOf(t);-1!==e&&this.scheduleList.splice(e,1)},setTimeTable:function(){if(this.checkCourseList(!1)){this.timeTable=[];var t=this.form,e=this.scheduleList,s=10,a=0;if(!(e.length<=0)){var n=Number(s)+Number(a),i=t.courseStart.replace(/-/gi,"/"),r=new Date(i),o=0;while(n&&n>0){for(var c=0;c<e.length;c++){if(0==s&&0==a)break;var l=e[c].weekIndex-r.getDay();o>0&&0==l&&0==c&&(l+=7),l<0&&(l+=7);var h=this.getThinkDate(r,l),d=(new Date).getTime(),m=new Date(h.replace(/-/gi,"/")+" "+e[c].startTime+":00").getTime();if(d<m){var f={classDate:h,startClassTimeStr:e[c].startTime,endClassTimeStr:e[c].endTime};"线上"==e[c].type&&s>0?(f.teachMode="ONLINE",this.timeTable.push(f),s--,n--):"线下"==e[c].type&&a>0&&(f.teachMode="OFFLINE",this.timeTable.push(f),a--,n--)}}1==e.length?r.setDate(r.getDate()+7):e.every(function(t){return t.weekStr===e[0].weekStr})&&o++}this.timeTable.sort(function(t,e){var s=u()(u()(t.classDate).format("YYYY-MM-DD")+" "+t.startClassTimeStr+":00").valueOf(),a=u()(u()(e.classDate).format("YYYY-MM-DD")+" "+e.startClassTimeStr+":00").valueOf();return s-a})}}},onClickSingleClass:function(){this.formName.vipGroupCategoryName?this.statusList.classTimerStatus=!0:this.$toast("请选择课程形式")},onCheckStudent:function(){this.form.subjectIdList?this.statusList.studentStatus=!0:this.$toast("请选择课程声部")},onShowTimeTable:function(){this.checkCourseList()&&(this.statusList.classTime=!0,this.setTimeTable())},getThinkDate:function(t,e){var s=t;s.setDate(t.getDate()+e);var a=s.getFullYear(),n=s.getMonth()+1,i="";i=n<10?"0"+n:n+"";var r=s.getDate(),o="";return o=r<10?"0"+r:r+"",a+"-"+i+"-"+o},onTeachinConfirm:function(t){var e=this,s=this.scheduleList,a=(t[2]>=10?t[2]:"0"+t[2])+":"+t[3].split("分")[0],n=this.MinutesTest(t[2],t[3],this.form.singleClassMinutes),i=!0;s.forEach(function(s){var r=e.timeIsrange(a,n,s.startTime),o=e.timeIsrange(a,n,s.endTime);i&&(t[1]==s.weekStr?i=!r&&!o:t[1]!=s.weekStr&&(i=!0))}),i?(s.push({type:t[0],weekStr:t[1],weekIndex:this.getWeek(t[1]),startTime:a,endTime:n,id:Date.now()}),this.courseForm.teachingStatus=!1,this.setTimeTable()):this.$toast("该时间段已排课请重选时间")},checkCourseList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.scheduleList||[],s=!1;return e.forEach(function(t){"线上"==t.type&&(s=!0)}),!!s||(t&&this.$toast("课时安排缺少线上课类型"),!1)},MinutesTest:function(t,e,s){var a=e.split("分")[0],n=new Date(1900,1,1,t,a);n.setMinutes(n.getMinutes()+parseInt(s));var i=n.getHours(),r=n.getMinutes();return i<10&&(i="0"+i),r<10&&(r="0"+r),i+":"+r},timeIsrange:function(t,e,s){var a=t.split(":");if(2!=a.length)return!1;var n=e.split(":");if(2!=n.length)return!1;var i=s.split(":");if(2!=n.length)return!1;var r=new Date,o=new Date,u=new Date;return r.setHours(a[0]),r.setMinutes(a[1]),o.setHours(n[0]),o.setMinutes(n[1]),u.setHours(i[0]),u.setMinutes(i[1]),u.getTime()-r.getTime()>=0&&u.getTime()-o.getTime()<=0},getWeek:function(t){var e={"周一":1,"周二":2,"周三":3,"周四":4,"周五":5,"周六":6,"周日":0};return e[t]},onSearch:function(){this.params.page=1,this.dataList=[],this.dataShow=!0,this.loading=!0,this.finished=!1,this.getStudent()},getStudent:function(){var t=y(r.a.mark(function t(){var e,s=this;return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return e=this.params,t.next=3,Object(d["c"])(f()(g({},e,{activityCourseType:"music_theory"}))).then(function(t){var a=t.data;if(s.loading=!1,200==a.code){if(s.dataList.length>0&&1==a.data.pageNo)return;e.page=a.data.pageNo,s.dataList=s.dataList.concat(a.data.rows),e.page>=a.data.totalPage&&(s.finished=!0),s.params.page++}else s.finished=!0;s.dataList.length<=0&&(s.dataShow=!1)});case 3:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onPopupCancel:function(){this.statusList.studentStatus=!1,this.checkboxSelect=[],this.checkboxSelectList=[]},onPopupSubmit:function(){var t=this.loadData.vipGroupCategorySelect,e=this.checkboxSelect.length;e<1||e>t.studentNum?this.$toast("请选择学生1~".concat(t.studentNum,"名,当前选择").concat(e,"名")):(this.checkboxSelectDataList=JSON.parse(JSON.stringify(this.checkboxSelectList)),this.checkboxSelectIds=JSON.parse(JSON.stringify(this.checkboxSelect)),this.checkboxSelect=[],this.checkboxSelectList=[],this.statusList.studentStatus=!1)},onCheckboxSelect:function(t){var e=this;this.checkboxSelect.includes(t.userId.toString())?(this.checkboxSelect.forEach(function(s,a){s==t.userId.toString()&&e.checkboxSelect.splice(a,1)}),this.checkboxSelectList.forEach(function(s,a){s.userId==t.userId&&e.checkboxSelectList.splice(a,1)})):(this.checkboxSelect.push(t.userId.toString()),this.checkboxSelectList.push(t))},onSelect:function(t){var e=this.sheetForm;e.columns=[],e.sheetStatus=!0,e.loading=!0,e.currentType=t,e.index=0;var s=this.loadData[t];s&&s.length>0?(e.columns=s,e.index=this.formName[t+"Index"],e.loading=!1):this.onLoadingData(t),this.sheetForm.status=!0},onLoadingData:function(){var t=y(r.a.mark(function t(){var e,s=this;return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.sheetForm,"subjectList"!=e.currentType){t.next=6;break}return t.next=4,Object(h["k"])().then(function(t){var a=t.data;if(200==a.code&&a.data.length>0){var n=[];a.data.forEach(function(t){t.value=t.id,t.text=t.name,n.push(t)}),s.loadData.subjectList=n,e.columns=n,e.loading=!1}else s.$toast("暂无科目列表"),e.loading=!1});case 4:t.next=7;break;case 6:"vipGroupCategory"==e.currentType&&Object(h["bb"])({includeMusicTheory:1}).then(function(t){var a=t.data;if(200==a.code&&a.data.length>0){var n=[];a.data.forEach(function(t){t.musicTheory&&(t.value=t.id,t.text=t.name,n.push(t))}),(!n||n.length<=0)&&s.$toast("暂无课程形式"),s.loadData.vipGroupCategory=n,e.columns=n,e.loading=!1}else s.$toast("暂无课程形式"),e.loading=!1});case 7:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onClassTimerSelect:function(t){this.form.singleClassMinutes!=t.value&&(this.timeTable=[],this.scheduleList=[]),this.form.singleClassMinutes=t.value,this.statusList.classTimerStatus=!1},onSheetConfirm:function(t,e){var s=this,a=this.sheetForm,n=this.form,i=this.formName,r=this.loadData;if("subjectList"==a.currentType)n.subjectIdList=t.value,i.subjectListName=t.text,i.subjectListIndex=e,r.subjectListSelect=t,this.dataList=[],this.params.search=null,this.loading=!1,this.finished=!1,this.dataShow=!0,this.params.page=1,this.checkboxSelect=[],this.checkboxSelectIds=[],this.checkboxSelectList=[],this.checkboxSelectDataList=[];else if("vipGroupCategory"==a.currentType){n.vipGroupCategoryId=t.value,i.vipGroupCategoryName=t.text,i.vipGroupCategoryIndex=e,r.vipGroupCategorySelect=t,n.studentNum=t.studentNum,n.onlineClassesUnitPrice=Math.ceil(t.onlineClassesUnitPrice),n.offlineClassesUnitPrice=Math.ceil(t.offlineClassesUnitPrice),n.singleClassMinutes=null,r.classTimer=[];var o=t.singleClassMinutes.split(",");n.singleClassMinutes=o.length>0?o[0]:null,o.forEach(function(t){s.loadData.classTimer.push({name:t,value:t})}),this.scheduleList=[],this.timeTable=[]}a.sheetStatus=!1},onCurrentConfirm:function(t){var e=new Date(t),s=e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1),a=e.getDate()>=10?e.getDate():"0"+e.getDate();this.form.courseStart=e.getFullYear()+"-"+s+"-"+a,this.dataForm.status=!1},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"==t?"".concat(e,"日"):e},desensitPhone:function(t){var e=t.substr(0,3),s=t.substr(-4);return e+"****"+s}}},L=T,D=(s("9afc"),s("2877")),N=Object(D["a"])(L,a,n,!1,null,"70234beb",null);e["a"]=N.exports},4198:function(t,e,s){"use strict";s.d(e,"c",function(){return i}),s.d(e,"a",function(){return o}),s.d(e,"b",function(){return r});var a=s("981f").default,n="/api-teacher",i=function(t){return a({url:n+"/teacherVipGroup/queryChildrenDayStudentList",method:"get",params:t})},r=function(t){return a({url:n+"/vipGroupActivity/getChildrenDayActivitys",method:"get",params:t})},o=function(t){return a({url:n+"/teacherVipGroup/createActivityVipGroup",method:"post",data:t})}},"51c7":function(t,e,s){},"541f":function(t,e,s){},"5a0c":function(t,e,s){!function(e,s){t.exports=s()}(0,function(){"use strict";var t="millisecond",e="second",s="minute",a="hour",n="day",i="week",r="month",o="quarter",u="year",c=/^(\d{4})-?(\d{1,2})?-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(t,e,s){var a=String(t);return!a||a.length>=e?t:""+Array(e+1-a.length).join(s)+t},d={s:h,z:function(t){var e=-t.utcOffset(),s=Math.abs(e),a=Math.floor(s/60),n=s%60;return(e<=0?"+":"-")+h(a,2,"0")+":"+h(n,2,"0")},m:function(t,e){var s=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(s,r),n=e-a<0,i=t.clone().add(s+(n?-1:1),r);return Number(-(s+(e-a)/(n?a-i:i-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:r,y:u,w:i,d:n,D:"date",h:a,m:s,s:e,ms:t,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f="en",p={};p[f]=m;var v=function(t){return t instanceof y},g=function(t,e,s){var a;if(!t)return f;if("string"==typeof t)p[t]&&(a=t),e&&(p[t]=e,a=t);else{var n=t.name;p[n]=t,a=n}return!s&&a&&(f=a),a||!s&&f},S=function(t,e){if(v(t))return t.clone();var s="object"==typeof e?e:{};return s.date=t,s.args=arguments,new y(s)},b=d;b.l=g,b.i=v,b.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var y=function(){function h(t){this.$L=this.$L||g(t.locale,null,!0),this.parse(t)}var d=h.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,s=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var a=e.match(c);if(a){var n=a[2]-1||0;return s?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,a[7]||0)}}return new Date(e)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(t,e){var s=S(t);return this.startOf(e)<=s&&s<=this.endOf(e)},d.isAfter=function(t,e){return S(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<S(t)},d.$g=function(t,e,s){return b.u(t)?this[e]:this.set(s,t)},d.year=function(t){return this.$g(t,"$y",u)},d.month=function(t){return this.$g(t,"$M",r)},d.day=function(t){return this.$g(t,"$W",n)},d.date=function(t){return this.$g(t,"$D","date")},d.hour=function(t){return this.$g(t,"$H",a)},d.minute=function(t){return this.$g(t,"$m",s)},d.second=function(t){return this.$g(t,"$s",e)},d.millisecond=function(e){return this.$g(e,"$ms",t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var c=this,l=!!b.u(o)||o,h=b.p(t),d=function(t,e){var s=b.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return l?s:s.endOf(n)},m=function(t,e){return b.w(c.toDate()[t].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},f=this.$W,p=this.$M,v=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case u:return l?d(1,0):d(31,11);case r:return l?d(1,p):d(0,p+1);case i:var S=this.$locale().weekStart||0,y=(f<S?f+7:f)-S;return d(l?v-y:v+(6-y),p);case n:case"date":return m(g+"Hours",0);case a:return m(g+"Minutes",1);case s:return m(g+"Seconds",2);case e:return m(g+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,o){var c,l=b.p(i),h="set"+(this.$u?"UTC":""),d=(c={},c[n]=h+"Date",c.date=h+"Date",c[r]=h+"Month",c[u]=h+"FullYear",c[a]=h+"Hours",c[s]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[l],m=l===n?this.$D+(o-this.$W):o;if(l===r||l===u){var f=this.clone().set("date",1);f.$d[d](m),f.init(),this.$d=f.set("date",Math.min(this.$D,f.daysInMonth())).$d}else d&&this.$d[d](m);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[b.p(t)]()},d.add=function(t,o){var c,l=this;t=Number(t);var h=b.p(o),d=function(e){var s=S(l);return b.w(s.date(s.date()+Math.round(e*t)),l)};if(h===r)return this.set(r,this.$M+t);if(h===u)return this.set(u,this.$y+t);if(h===n)return d(1);if(h===i)return d(7);var m=(c={},c[s]=6e4,c[a]=36e5,c[e]=1e3,c)[h]||1,f=this.$d.getTime()+t*m;return b.w(f,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var s=t||"YYYY-MM-DDTHH:mm:ssZ",a=b.z(this),n=this.$locale(),i=this.$H,r=this.$m,o=this.$M,u=n.weekdays,c=n.months,h=function(t,a,n,i){return t&&(t[a]||t(e,s))||n[a].substr(0,i)},d=function(t){return b.s(i%12||12,t,"0")},m=n.meridiem||function(t,e,s){var a=t<12?"AM":"PM";return s?a.toLowerCase():a},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:b.s(o+1,2,"0"),MMM:h(n.monthsShort,o,c,3),MMMM:h(c,o),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,u,2),ddd:h(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:b.s(i,2,"0"),h:d(1),hh:d(2),a:m(i,r,!0),A:m(i,r,!1),m:String(r),mm:b.s(r,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:a};return s.replace(l,function(t,e){return e||f[t]||a.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(t,c,l){var h,d=b.p(c),m=S(t),f=6e4*(m.utcOffset()-this.utcOffset()),p=this-m,v=b.m(this,m);return v=(h={},h[u]=v/12,h[r]=v,h[o]=v/3,h[i]=(p-f)/6048e5,h[n]=(p-f)/864e5,h[a]=p/36e5,h[s]=p/6e4,h[e]=p/1e3,h)[d]||p,l?v:b.a(v)},d.daysInMonth=function(){return this.endOf(r).$D},d.$locale=function(){return p[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var s=this.clone(),a=g(t,e,!0);return a&&(s.$L=a),s},d.clone=function(){return b.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},h}();return S.prototype=y.prototype,S.extend=function(t,e){return t(e,y,S),S},S.locale=g,S.isDayjs=v,S.unix=function(t){return S(1e3*t)},S.en=p[f],S.Ls=p,S})},"6e6e":function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mheader"},[s("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[s("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),s("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),s("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},n=[],i={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},r=i,o=(s("d133"),s("2877")),u=Object(o["a"])(r,a,n,!1,null,"0e835508",null);e["a"]=u.exports},9323:function(t,e,s){"use strict";var a=s("541f"),n=s.n(a);n.a},"9afb":function(t,e,s){"use strict";s.d(e,"F",function(){return o}),s.d(e,"O",function(){return u}),s.d(e,"H",function(){return c}),s.d(e,"V",function(){return h}),s.d(e,"k",function(){return l}),s.d(e,"bb",function(){return d}),s.d(e,"i",function(){return m}),s.d(e,"m",function(){return f}),s.d(e,"P",function(){return v}),s.d(e,"Q",function(){return g}),s.d(e,"R",function(){return S}),s.d(e,"h",function(){return b}),s.d(e,"Z",function(){return y}),s.d(e,"ab",function(){return C}),s.d(e,"N",function(){return k}),s.d(e,"A",function(){return x}),s.d(e,"c",function(){return T}),s.d(e,"q",function(){return L}),s.d(e,"p",function(){return D}),s.d(e,"e",function(){return N}),s.d(e,"g",function(){return w}),s.d(e,"S",function(){return M}),s.d(e,"T",function(){return I}),s.d(e,"I",function(){return O}),s.d(e,"L",function(){return G}),s.d(e,"v",function(){return $}),s.d(e,"Y",function(){return A}),s.d(e,"n",function(){return p}),s.d(e,"s",function(){return F}),s.d(e,"y",function(){return j}),s.d(e,"a",function(){return P}),s.d(e,"U",function(){return E}),s.d(e,"l",function(){return Y}),s.d(e,"x",function(){return U}),s.d(e,"t",function(){return R}),s.d(e,"b",function(){return _}),s.d(e,"o",function(){return H}),s.d(e,"f",function(){return B}),s.d(e,"X",function(){return q}),s.d(e,"w",function(){return V}),s.d(e,"d",function(){return W}),s.d(e,"J",function(){return J}),s.d(e,"z",function(){return K}),s.d(e,"cb",function(){return Q}),s.d(e,"db",function(){return X}),s.d(e,"j",function(){return tt}),s.d(e,"E",function(){return z}),s.d(e,"C",function(){return et}),s.d(e,"B",function(){return st}),s.d(e,"r",function(){return at}),s.d(e,"M",function(){return nt}),s.d(e,"G",function(){return it}),s.d(e,"D",function(){return ot}),s.d(e,"u",function(){return rt}),s.d(e,"K",function(){return Z}),s.d(e,"W",function(){return ut});var a=s("4328"),n=s.n(a),i=s("981f").default,r="/api-teacher",o=function(t){return i({url:r+"/snaker/task/queryMyCreatedList",method:"get",params:t})},u=function(t){return i({url:r+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return i({url:r+"/snaker/task/queryProcessedList",method:"get",params:t})},l=function(t){return i({url:r+"/subject/findTeacherSubjets",method:"get",params:t})},h=function(t){return i({url:r+"/subject/findSubSubjects",method:"get",params:t})},d=function(t){return i({url:r+"/vipGroupCategory/queryAll",method:"get",params:t})},m=function(t){return i({url:r+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},f=function(t){return i({url:r+"/school/findVipSchoolByTeacher",method:"get",params:t})},p=function(t){return i({url:r+"/school/findVipSchoolByTeacher2",method:"get",params:t})},v=function(t){return i({url:r+"/school/add",method:"post",data:n.a.stringify(t)})},g=function(t){return i({url:r+"/school/del",method:"post",data:n.a.stringify(t)})},S=function(t){return i({url:r+"/school/update",method:"post",data:n.a.stringify(t)})},b=function(t){return i({url:r+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},y=function(t){return i({url:r+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},C=function(t){return i({url:r+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},k=function(t){return i({url:r+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},x=function(t){return i({url:r+"/leaveCategory/queryPage",method:"post",data:t})},T=function(t){return i({url:r+"/teacherLeaveRecord/askForLeave",method:"post",data:n.a.stringify(t)})},L=function(t){return i({url:r+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},D=function(t){return i({url:r+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},N=function(t){return i({url:r+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:n.a.stringify(t)})},w=function(t){return i({url:r+"/teacherCourseSchedule/courseSwap",method:"post",data:n.a.stringify(t)})},M=function(t){return i({url:r+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},I=function(t){return i({url:r+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},O=function(t){return i({url:r+"/teacher/queryStudentApply",method:"get",params:t})},G=function(t){return i({url:r+"/teacher/querySubByMusicGroupId",method:"get",params:t})},$=function(t){return i({url:r+"/teacher/getRegisterOrPreList",method:"get",params:t})},A=function(t){return i({url:r+"/studentRegistration/updateSubject",method:"post",data:n.a.stringify(t)})},F=function(){return i({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},j=function(){return i({url:"/api-web/api/practiceSum",method:"get"})},P=function(t){return i({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},_=function(t){return i({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},E=function(t){return i({url:"/api-teacher/studyReport/info",method:"get",params:t})},U=function(t){return i({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},Y=function(t){return i({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},R=function(t){return i({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},H=function(t){return i({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},B=function(t){return i({url:"/api-teacher/courseReview/add",method:"post",data:n.a.stringify(t)})},q=function(t){return i({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:n.a.stringify(t)})},V=function(t){return i({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},W=function(t){return i({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},J=function(t){return i({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},Z=function(t){return i({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},z=function(t){return i({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},K=function(t){return i({url:"/api-teacher/visit/queryPage",method:"get",params:t})},Q=function(t){return i({url:"/api-teacher/visit/add",method:"post",data:n.a.stringify(t)})},X=function(t){return i({url:"/api-teacher/visit/getInfo",method:"get",params:t})},tt=function(t){return i({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},et=function(t){return i({url:"/api-cms/news/query",method:"get",params:t})},st=function(t){return i({url:"/api-cms/news/list",method:"get",params:t})},at=function(t){return i({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},nt=function(t){return i({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},it=function(t){return i({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},rt=function(t){return i({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},ot=function(t){return i({url:r+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ut=function(t){return i({url:r+"/tenantConfig/get",method:"get",params:t})}},"9afc":function(t,e,s){"use strict";var a=s("b360"),n=s.n(a);n.a},a7ed:function(t,e){t.exports="data:image/png;base64,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"},b360:function(t,e,s){},bb2c:function(t,e,s){},c063:function(t,e,s){"use strict";var a=s("51c7"),n=s.n(a);n.a},d133:function(t,e,s){"use strict";var a=s("bb2c"),n=s.n(a);n.a},d678:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mempty",class:t.full?"full":null},[s("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),s("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},n=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},r=i,o=(s("c063"),s("2877")),u=Object(o["a"])(r,a,n,!1,null,"45d1a48f",null);e["a"]=u.exports},fa8b:function(t,e,s){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vipCourse"},[a("div",[a("div",{staticClass:"vip-title"},[t._v("课程信息")]),a("van-field",{attrs:{label:"课程声部","input-align":"right",placeholder:"请选择课程声部",readonly:"","is-link":""},on:{click:function(e){return t.onSelect("subjectList")}},model:{value:t.formName.subjectListName,callback:function(e){t.$set(t.formName,"subjectListName",e)},expression:"formName.subjectListName"}}),a("van-field",{attrs:{label:"课程形式","input-align":"right",placeholder:"请选择课程形式",readonly:"","is-link":""},on:{click:function(e){return t.onSelect("vipGroupCategory")}},model:{value:t.formName.vipGroupCategoryName,callback:function(e){t.$set(t.formName,"vipGroupCategoryName",e)},expression:"formName.vipGroupCategoryName"}}),a("van-cell",{staticClass:"courseStudent",attrs:{title:"上课学员",readonly:!0,"input-align":"right","is-link":!(t.checkboxSelectDataList.length>0),value:t.checkboxSelectDataList.length>0?"重新选择":"请选择上课学员","value-class":t.checkboxSelectDataList.length>0?"studentColor":null},on:{click:t.onCheckStudent}}),t.checkboxSelectDataList.length>0?a("div",{staticStyle:{"text-align":"center","line-height":"1.8",padding:"0.05rem 0",background:"#fafbff"}},t._l(t.checkboxSelectDataList,function(e,s){return a("p",{key:s,staticStyle:{color:"#323233"}},[t._v("\n "+t._s(e.username)+" - "+t._s(e.parentsPhone)+"\n ")])}),0):t._e(),a("van-field",{attrs:{label:"活动方案","input-align":"right",placeholder:"请选择活动方案",readonly:"","is-link":""},on:{click:function(e){return t.onSelect("vipGroupActivity")}},model:{value:t.formName.vipGroupActivityName,callback:function(e){t.$set(t.formName,"vipGroupActivityName",e)},expression:"formName.vipGroupActivityName"}}),a("div",{staticClass:"vip-title"},[t._v("课时组成")]),a("van-field",{attrs:{label:"课时总数","input-align":"right",placeholder:"请输入课时总数",readonly:"",value:t.loadData.vipGroupActivitySelect.maxCourseNum?t.loadData.vipGroupActivitySelect.maxCourseNum+"节":"0节"}}),a("van-field",{attrs:{label:"课程时长","input-align":"right",placeholder:"请选择课程时长",readonly:"","is-link":""},on:{click:t.onClickSingleClass},model:{value:t.form.singleClassMinutes,callback:function(e){t.$set(t.form,"singleClassMinutes",e)},expression:"form.singleClassMinutes"}}),t.statusList.hasOnline?a("van-field",{attrs:{label:"线上课","input-align":"right",placeholder:"请输入次数",type:"number"},on:{keyup:t.onClassKeyUp},model:{value:t.form.onlineClassesNums,callback:function(e){t.$set(t.form,"onlineClassesNums",e)},expression:"form.onlineClassesNums"}}):t._e(),t.statusList.hasOffline?a("van-field",{attrs:{label:"线下课","input-align":"right",placeholder:"请输入次数",type:"number"},on:{keyup:function(e){return t.onClassKeyUp("offLine")}},model:{value:t.form.offlineClassesNums,callback:function(e){t.$set(t.form,"offlineClassesNums",e)},expression:"form.offlineClassesNums"}}):t._e(),t.form.offlineClassesNums>0?a("van-field",{attrs:{label:"线下课地址",readonly:!0,"input-align":"right","is-link":"",placeholder:"请选择"},on:{click:function(e){return t.onSelect("teacherSchool")}},model:{value:t.formName.teacherSchoolName,callback:function(e){t.$set(t.formName,"teacherSchoolName",e)},expression:"formName.teacherSchoolName"}}):t._e(),a("van-field",{attrs:{label:"排课开始时间",readonly:!0,"input-align":"right","is-link":"",placeholder:"请选择"},on:{click:function(e){t.dataForm.status=!0}},model:{value:t.form.courseStart,callback:function(e){t.$set(t.form,"courseStart",e)},expression:"form.courseStart"}}),t._l(t.scheduleList,function(e,s){return a("van-cell",{key:s,attrs:{"title-class":"title-time"}},[a("template",{slot:"title"},[a("span",{staticClass:"online"},[t._v(t._s(e.type))]),a("span",{staticClass:"week"},[t._v(t._s(e.weekStr))]),a("span",{staticClass:"timer"},[t._v(t._s(e.startTime+"-"+e.endTime))])]),a("template",{slot:"default"},[a("van-button",{attrs:{type:"warning",round:"",size:"small",plain:""},on:{click:function(s){return t.onScheduleRemove(e)}}},[t._v("删除")])],1)],2)}),a("div",{staticClass:"add-plan van-cell",on:{click:t.onCourseShedule}},[a("van-icon",{attrs:{name:"add-o"}}),t._v("课时安排\n ")],1),t.scheduleList.length>0?a("van-field",{attrs:{label:"排课列表",disabled:"","input-align":"right","is-link":""},on:{click:t.onShowTimeTable}}):t._e(),a("div",{staticStyle:{margin:"16px"}},[a("van-button",{attrs:{round:"",block:"",type:"info"},on:{click:t.onSubmit}},[t._v("确认排课")])],1)],2),a("van-action-sheet",{attrs:{actions:t.loadData.classTimer,"cancel-text":"取消"},on:{cancel:function(e){t.statusList.classTimerStatus=!1},select:t.onClassTimerSelect},model:{value:t.statusList.classTimerStatus,callback:function(e){t.$set(t.statusList,"classTimerStatus",e)},expression:"statusList.classTimerStatus"}}),a("van-popup",{attrs:{position:"bottom"},model:{value:t.enlistForm.status,callback:function(e){t.$set(t.enlistForm,"status",e)},expression:"enlistForm.status"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.enlistForm.minDate,formatter:t.formatter},on:{cancel:function(e){t.enlistForm.status=!1},confirm:t.onEnlistConfirm},model:{value:t.enlistForm.currentDate,callback:function(e){t.$set(t.enlistForm,"currentDate",e)},expression:"enlistForm.currentDate"}})],1),a("van-action-sheet",{attrs:{actions:t.loadData.giveTeachMode,"cancel-text":"取消"},on:{cancel:function(e){t.statusList.giveTeachModeStatus=!1},select:t.onModeSelect},model:{value:t.statusList.giveTeachModeStatus,callback:function(e){t.$set(t.statusList,"giveTeachModeStatus",e)},expression:"statusList.giveTeachModeStatus"}}),a("van-popup",{attrs:{position:"bottom"},model:{value:t.sheetForm.sheetStatus,callback:function(e){t.$set(t.sheetForm,"sheetStatus",e)},expression:"sheetForm.sheetStatus"}},[a("van-picker",{attrs:{loading:t.sheetForm.loading,"default-index":t.sheetForm.index,columns:t.sheetForm.columns,"show-toolbar":""},on:{cancel:function(e){t.sheetForm.sheetStatus=!1},confirm:t.onSheetConfirm}})],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.dataForm.minDate,formatter:t.formatter},on:{cancel:function(e){t.dataForm.status=!1},confirm:t.onCurrentConfirm},model:{value:t.dataForm.currentDate,callback:function(e){t.$set(t.dataForm,"currentDate",e)},expression:"dataForm.currentDate"}})],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.courseForm.teachingStatus,callback:function(e){t.$set(t.courseForm,"teachingStatus",e)},expression:"courseForm.teachingStatus"}},[a("van-picker",{attrs:{columns:t.courseForm.columns,"show-toolbar":""},on:{cancel:function(e){t.courseForm.teachingStatus=!1},confirm:t.onTeachinConfirm}})],1),a("van-popup",{staticClass:"studentChiose",style:{height:"180%"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.statusList.studentStatus,callback:function(e){t.$set(t.statusList,"studentStatus",e)},expression:"statusList.studentStatus"}},[t.statusList.studentStatus?a("div",[a("van-sticky",[a("van-search",{attrs:{"show-action":"",shape:"round",placeholder:"请输入学生名或手机号"},on:{search:t.onSearch},scopedSlots:t._u([{key:"action",fn:function(){return[a("div",{on:{click:t.onSearch}},[t._v("搜索")])]},proxy:!0}],null,!1,3446203101),model:{value:t.params.search,callback:function(e){t.$set(t.params,"search",e)},expression:"params.search"}})],1),a("div",{staticClass:"paddingB80"},[t.dataShow?a("van-list",{key:"data",staticClass:"studentContainer",attrs:{finished:t.finished,"finished-text":""},on:{load:t.getStudent},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[a("van-checkbox-group",{model:{value:t.checkboxSelect,callback:function(e){t.checkboxSelect=e},expression:"checkboxSelect"}},[a("van-cell-group",t._l(t.dataList,function(e,n){return a("van-cell",{key:n,staticClass:"input-cell",attrs:{center:!0},on:{click:function(s){return t.onCheckboxSelect(e)}}},[a("template",{slot:"icon"},[e.avatar?a("img",{staticClass:"logo",attrs:{src:e.avatar,alt:""}}):a("img",{staticClass:"logo",attrs:{src:s("a7ed"),alt:""}})]),a("template",{slot:"title"},[t._v("\n "+t._s(e.username)+"\n ")]),a("template",{slot:"label"},[a("span",[t._v(t._s(t.desensitPhone(e.parentsPhone)))])]),a("template",{slot:"default"},[a("van-checkbox",{attrs:{name:e.userId.toString()}})],1)],2)}),1)],1)],1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无学生"}})],1),a("div",{staticClass:"button-group-popup"},[a("span",{staticClass:"btn",on:{click:t.onPopupCancel}},[t._v("取消")]),a("span",{staticClass:"btn primary",on:{click:t.onPopupSubmit}},[t._v("确定")])])],1):t._e()]),a("van-popup",{attrs:{position:"bottom"},model:{value:t.statusList.classTime,callback:function(e){t.$set(t.statusList,"classTime",e)},expression:"statusList.classTime"}},[a("van-row",[a("van-col",{attrs:{span:"12"}},[t._v("上课类型")]),a("van-col",{attrs:{span:"12"}},[t._v("上课时间")])],1),a("div",{staticClass:"tableContainer"},t._l(t.timeTable,function(e,s){return a("van-row",{key:s},[a("van-col",{attrs:{span:"12"}},[t._v("\n "+t._s("ONLINE"==e.teachMode?"线上":"线下")+"\n ")]),a("van-col",{attrs:{span:"12"}},[t._v("\n "+t._s(e.classDate)+" "+t._s(e.startClassTimeStr)+"\n ")])],1)}),1)],1)],1)},n=[],i=s("a34a"),r=s.n(i),o=s("5a0c"),u=s.n(o),c=s("e3eb"),l=s.n(c),h=s("ff51"),d=s("9afb"),m=s("4198"),f=s("3908"),p=s("d678");function v(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),s.push.apply(s,a)}return s}function g(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?v(s,!0).forEach(function(e){S(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):v(s).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function S(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}function b(t,e,s,a,n,i,r){try{var o=t[i](r),u=o.value}catch(c){return void s(c)}o.done?e(u):Promise.resolve(u).then(a,n)}function y(t){return function(){var e=this,s=arguments;return new Promise(function(a,n){var i=t.apply(e,s);function r(t){b(i,a,n,r,o,"next",t)}function o(t){b(i,a,n,r,o,"throw",t)}r(void 0)})}}for(var C=[],k=0;k<60;k++){var x=k<10?"0"+k:k;C.push(x+"分")}var T={components:{MEmpty:p["a"]},name:"apply",data:function(){return{dayjs:u.a,activityCourseType:null,subjectId:null,dataForm:{status:!1,minDate:new Date,currentDate:new Date},enlistForm:{updateStatus:"",status:!1,minDate:new Date,currentDate:new Date},statusList:{giveTeachModeStatus:!1,teachOnOrOff:!1,hasOnline:!1,hasOffline:!1,classTime:!1,headerStatus:!1,classTimerStatus:!1,studentStatus:!1},loadData:{subjectList:[],subjectListSelect:[],vipGroupCategory:[],vipGroupCategorySelect:[],vipGroupActivity:[],vipGroupActivitySelect:[],teacherSchool:[],teacherSchoolSelect:[],teacherList:[],teacherListSelect:[],giveTeachMode:[{name:"线上课",value:"ONLINE"},{name:"线下课",value:"OFFLINE"}],giveTeachModeSelect:[],teacherCategory:[],classTimer:[]},sheetForm:{currentType:null,sheetStatus:!1,loading:!0,index:0,columns:[]},courseForm:{teachingStatus:!1,columns:[{values:["线上","线下"],className:"type"},{values:["周一","周二","周三","周四","周五","周六","周日"],className:"week"},{values:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],className:"hours",defaultIndex:7},{values:C,className:"minutes"}]},form:{subjectIdList:null,vipGroupCategoryId:null,vipGroupActivityId:null,teacherSchoolId:null,educationalTeacherId:null,studentNum:null,singleClassMinutes:null,onlineClassesNums:null,offlineClassesNums:null,registrationStartTime:null,coursesExpireDate:null,totalClassTime:null,courseStart:null,giveTeachMode:null,onlineClassesUnitPrice:null,offlineClassesUnitPrice:null,onlineTeacherSalary:null,offlineTeacherSalary:null,totalCount:null},formName:{subjectListName:null,subjectListIndex:0,vipGroupCategoryName:null,vipGroupCategoryIndex:0,vipGroupActivityName:null,vipGroupActivityIndex:0,teacherSchoolName:null,teacherSchoolIndex:0,giveTeachModeName:null},other:{onlineSalary:null,offlineSalary:null,giveNum:0},scheduleList:[],timeTable:[],onSubmitStatus:!0,checkboxSelect:[],checkboxSelectIds:[],checkboxSelectList:[],checkboxSelectDataList:[],loading:!1,finished:!1,params:{search:null,page:1,rows:20},dataShow:!0,dataList:[]}},mounted:function(){var t=y(r.a.mark(function t(){return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)}));function e(){return t.apply(this,arguments)}return e}(),methods:{onCheckStudent:function(){this.form.subjectIdList?this.form.vipGroupCategoryId?this.statusList.studentStatus=!0:this.$toast("请选择课程形式"):this.$toast("请选择课程声部")},onSelect:function(t){var e=this.sheetForm;if(e.columns=[],this.form.vipGroupCategoryId||"vipGroupActivity"!=t)if(this.checkboxSelectDataList&&!(this.checkboxSelectDataList&&this.checkboxSelectDataList.length<=0)||"vipGroupActivity"!=t){e.sheetStatus=!0,e.loading=!0,e.currentType=t,e.index=0;var s=this.loadData[t];s&&s.length>0?(e.columns=s,e.index=this.formName[t+"Index"],e.loading=!1):this.onLoadingData(t),this.sheetForm.status=!0}else this.$toast("请选择上课学生");else this.$toast("请选择课程形式")},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"==t?"".concat(e,"日"):e},onLoadingData:function(){var t=y(r.a.mark(function t(){var e,s,a=this;return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.sheetForm,"subjectList"!=e.currentType){t.next=6;break}return t.next=4,Object(d["k"])().then(function(t){var s=t.data;if(200==s.code&&s.data.length>0){var n=[];s.data.forEach(function(t){t.value=t.id,t.text=t.name,n.push(t)}),a.loadData.subjectList=n,e.columns=n,e.loading=!1}else a.$toast("暂无科目列表"),e.loading=!1});case 4:t.next=7;break;case 6:"vipGroupCategory"==e.currentType?Object(d["bb"])().then(function(t){var s=t.data;if(200==s.code&&s.data.length>0){var n=[];s.data.forEach(function(t){"1v1"!=t.name&&"1v2"!=t.name||(t.value=t.id,t.text=t.name,n.push(t))}),a.loadData.vipGroupCategory=n,e.columns=n,e.loading=!1}else a.$toast("暂无课程形式"),e.loading=!1}):"vipGroupActivity"==e.currentType?(s=[],this.checkboxSelectDataList&&this.checkboxSelectDataList.length>0&&this.checkboxSelectDataList.forEach(function(t){s.push(t.userId)}),Object(m["b"])({categoryId:this.form.vipGroupCategoryId,studentIds:s.join(",")}).then(function(t){var s=t.data;if(200==s.code&&s.data.length>0){var n=[],i=new RegExp("双十一");s.data.forEach(function(t){i.test(t.name)||(t.value=t.id,t.text=t.name,t.startTime=t.startTime?t.startTime.split(" ")[0]:null,t.endTime=t.endTime?t.endTime.split(" ")[0]:null,n.push(t))}),a.loadData.vipGroupActivity=n,e.columns=n,e.loading=!1}else a.$toast("暂无活动方案"),e.loading=!1})):"teacherSchool"==e.currentType&&Object(d["n"])({userId:this.teacherId}).then(function(t){var s=t.data;if(200==s.code&&s.data.length>0){var n=[];s.data.forEach(function(t){t.value=t.id,t.text=t.name,n.push(t)}),a.loadData.teacherSchool=n,e.columns=n,e.loading=!1}else a.$toast("暂无教学点"),e.loading=!1});case 7:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onSheetConfirm:function(t,e){var s=this,a=this.sheetForm,n=this.form,i=this.formName,r=this.loadData;if("subjectList"==a.currentType)n.subjectIdList=t.value,i.subjectListName=t.text,i.subjectListIndex=e,r.subjectListSelect=t,this.dataList=[],this.params.search=null,this.loading=!1,this.finished=!1,this.dataShow=!0,this.params.page=1,this.checkboxSelect=[],this.checkboxSelectIds=[],this.checkboxSelectList=[],this.checkboxSelectDataList=[];else if("vipGroupCategory"==a.currentType){n.vipGroupCategoryId=t.value,i.vipGroupCategoryName=t.text,1==t.studentNum?this.activityCourseType="vip1":2==t.studentNum&&(this.activityCourseType="vip2"),i.vipGroupCategoryIndex=e,r.vipGroupCategorySelect=t,n.studentNum=t.studentNum,n.onlineClassesUnitPrice=Math.ceil(t.onlineClassesUnitPrice),n.offlineClassesUnitPrice=Math.ceil(t.offlineClassesUnitPrice),n.singleClassMinutes=null,r.classTimer=[];var o=t.singleClassMinutes.split(",");n.singleClassMinutes=o.length>0?o[0]:null,o.forEach(function(t){s.loadData.classTimer.push({name:t,value:t})}),this.dataList=[],this.params.search=null,this.loading=!1,this.finished=!1,this.dataShow=!0,this.params.page=1,this.checkboxSelect=[],this.checkboxSelectIds=[],this.checkboxSelectList=[],this.checkboxSelectDataList=[],n.vipGroupActivityId=null,i.vipGroupActivityName=null,i.vipGroupActivityIndex=0,r.vipGroupActivity=[],r.vipGroupActivitySelect=[],this.scheduleList=[],this.timeTable=[]}else"vipGroupActivity"==a.currentType?(n.vipGroupActivityId!=t.value&&(n.offlineClassesNums=null,n.onlineClassesNums=null),n.vipGroupActivityId=t.value,i.vipGroupActivityName=t.text,i.vipGroupActivityIndex=e,t.maxCourseNum<=0&&(t.maxCourseNum=0),r.vipGroupActivitySelect=t,n.onlineClassesUnitPrice=Math.ceil(r.vipGroupCategorySelect.onlineClassesUnitPrice),n.offlineClassesUnitPrice=Math.ceil(r.vipGroupCategorySelect.offlineClassesUnitPrice),this.onCalcClassTimes(t),this.setTimeTable()):"teacherSchool"==a.currentType&&(n.teacherSchoolId=t.value,i.teacherSchoolName=t.text,i.teacherSchoolIndex=e);a.sheetStatus=!1},onClassKeyUp:function(t){"offLine"==t&&this.form.offlineClassesNums<=0&&(this.form.teacherSchoolId=null,this.formName.teacherSchoolName=null,this.formName.teacherSchoolIndex=0);var e=this.loadData.vipGroupActivitySelect;this.onCalcClassTimes(e),this.setTimeTable()},onCalcClassTimes:function(t){var e=this.form,s=this.other,a=this.statusList,n=Number(e.onlineClassesNums)+Number(e.offlineClassesNums);if(t.salarySettlementJson){var i=JSON.parse(t.salarySettlementJson);i&&i.onlineSalarySettlement?a.hasOnline=!0:a.hasOnline=!1,i&&i.offlineSalarySettlement?a.hasOffline=!0:a.hasOffline=!1}"GIVE_CLASS"==t.type?(this.statusList.teachOnOrOff=!0,n>=Number(t.attribute1)?(e.totalClassTime=n+"+"+t.attribute2,s.giveNum=t.attribute2):(e.totalClassTime=n,s.giveNum=0)):(e.totalClassTime=n,s.giveNum=0,this.statusList.teachOnOrOff=!1)},onModeSelect:function(t){this.form.giveTeachMode=t.value,this.formName.giveTeachModeName=t.name,this.statusList.giveTeachModeStatus=!1},onClickSingleClass:function(){this.formName.vipGroupCategoryName?this.statusList.classTimerStatus=!0:this.$toast("请选择课程形式")},onClassTimerSelect:function(t){this.form.singleClassMinutes!=t.value&&(this.timeTable=[],this.scheduleList=[]),this.form.singleClassMinutes=t.value,this.statusList.classTimerStatus=!1},onCurrentConfirm:function(t){var e=new Date(t),s=e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1),a=e.getDate()>=10?e.getDate():"0"+e.getDate();this.form.courseStart=e.getFullYear()+"-"+s+"-"+a,this.dataForm.status=!1},onEnlistConfirm:function(t){var e=new Date(t),s=e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1),a=e.getDate()>=10?e.getDate():"0"+e.getDate(),n=this.enlistForm,i=this.form;if("start"==n.updateStatus){if(i.registrationStartTime=e.getFullYear()+"-"+s+"-"+a,i.coursesExpireDate){var r=new Date(i.registrationStartTime.replace(/-/gi,"/")).getTime(),o=new Date(i.coursesExpireDate.replace(/-/gi,"/")).getTime();r>o&&(i.coursesExpireDate=null)}}else"end"==n.updateStatus&&(i.coursesExpireDate=e.getFullYear()+"-"+s+"-"+a);n.status=!1},onEnListShow:function(t,e){var s=this.enlistForm;"end"==t?this.form.registrationStartTime?s.minDate=new Date(this.form.registrationStartTime.replace(/-/gi,"/")):s.minDate=new Date:"start"==t&&(s.minDate=new Date),s.currentDate=e?new Date(e.replace(/-/gi,"/")):new Date,s.updateStatus=t,s.status=!0},onCourseShedule:function(){this.form.singleClassMinutes?this.other.giveNum>0&&!this.form.giveTeachMode?this.$toast("请选择赠课类型"):this.form.courseStart?this.courseForm.teachingStatus=!0:this.$toast("请选择排课开始时间"):this.$toast("请选每课时长")},onScheduleRemove:function(t){var e=this.scheduleList.indexOf(t);-1!==e&&this.scheduleList.splice(e,1)},onTeachinConfirm:function(t){var e=this,s=this.scheduleList,a=(t[2]>=10?t[2]:"0"+t[2])+":"+t[3].split("分")[0],n=this.MinutesTest(t[2],t[3],this.form.singleClassMinutes),i=!0;s.forEach(function(s){var r=e.timeIsrange(a,n,s.startTime),o=e.timeIsrange(a,n,s.endTime);i&&(t[1]==s.weekStr?i=!r&&!o:t[1]!=s.weekStr&&(i=!0))}),i?(s.push({type:t[0],weekStr:t[1],weekIndex:this.getWeek(t[1]),startTime:a,endTime:n,id:Date.now()}),this.courseForm.teachingStatus=!1,this.setTimeTable()):this.$toast("该时间段已排课请重选时间")},onShowTimeTable:function(){this.checkCourseList()&&(this.statusList.classTime=!0,this.setTimeTable())},setTimeTable:function(){if(this.checkCourseList(!1)){this.timeTable=[];var t=this.form,e=this.scheduleList,s=parseInt(t.onlineClassesNums?t.onlineClassesNums:0),a=parseInt(t.offlineClassesNums?t.offlineClassesNums:0),n=parseInt(this.other.giveNum),i=t.giveTeachMode;if("ONLINE"==i?s+=n:"OFFLINE"==i&&(a+=n),!(e.length<=0)){var r=Number(s)+Number(a),o=t.courseStart.replace(/-/gi,"/"),c=new Date(o),l=0;while(r&&r>0){for(var h=0;h<e.length;h++){if(0==s&&0==a)break;var d=e[h].weekIndex-c.getDay();l>0&&0==d&&0==h&&(d+=7),d<0&&(d+=7);var m=this.getThinkDate(c,d),f=(new Date).getTime(),p=new Date(m.replace(/-/gi,"/")+" "+e[h].startTime+":00").getTime();if(f<p){var v={classDate:m,startClassTimeStr:e[h].startTime,endClassTimeStr:e[h].endTime};"线上"==e[h].type&&s>0?(v.teachMode="ONLINE",this.timeTable.push(v),s--,r--):"线下"==e[h].type&&a>0&&(v.teachMode="OFFLINE",this.timeTable.push(v),a--,r--)}}1==e.length?c.setDate(c.getDate()+7):e.every(function(t){return t.weekStr===e[0].weekStr})&&l++}this.timeTable.sort(function(t,e){var s=u()(u()(t.classDate).format("YYYY-MM-DD")+" "+t.startClassTimeStr+":00").valueOf(),a=u()(u()(e.classDate).format("YYYY-MM-DD")+" "+e.startClassTimeStr+":00").valueOf();return s-a})}}},onGiveMode:function(){this.statusList.giveTeachModeStatus=!0},getCalcClass:function(){var t=this.loadData,e=this.form,s=t.vipGroupActivitySelect,a=t.teacherCategory,n=e.onlineClassesNums?e.onlineClassesNums:0,i=e.offlineClassesNums?e.offlineClassesNums:0,r=parseInt(this.other.giveNum),o=e.giveTeachMode;if(s.salarySettlementJson){var u=JSON.parse(s.salarySettlementJson),c=0;if(Number(n)+Number(i)>0){var l=n*e.onlineClassesUnitPrice+i*e.offlineClassesUnitPrice;r>0&&!o&&(l=0),c=l*e.studentNum/(Number(n)+Number(i)+Number(r)),"DISCOUNT"==s.type&&(c=c*(s.attribute1?Number(s.attribute1):100)/100)}if(u&&u.onlineSalarySettlement){var h=u.onlineSalarySettlement;"TEACHER_DEFAULT"==h.salarySettlementType?e.onlineTeacherSalary=Math.round(a.offlineClassesSalary):"RATIO_DISCOUNT"==h.salarySettlementType?e.onlineTeacherSalary=Math.round(c?c*(h.settlementValue?h.settlementValue:100)/100:0):"FIXED_SALARY"==h.salarySettlementType&&(e.onlineTeacherSalary=Math.round(h.settlementValue)),e.onlineTeacherSalary=Number(e.onlineTeacherSalary)}else e.onlineTeacherSalary=Math.round(a.offlineClassesSalary);if(u&&u.offlineSalarySettlement){var d=u.offlineSalarySettlement;"TEACHER_DEFAULT"==d.salarySettlementType?e.offlineTeacherSalary=Math.round(a.offlineClassesSalary):"RATIO_DISCOUNT"==d.salarySettlementType?e.offlineTeacherSalary=Math.round(c?c*(d.settlementValue?d.settlementValue:100)/100:0):"FIXED_SALARY"==d.salarySettlementType&&(e.offlineTeacherSalary=Math.round(d.settlementValue)),e.offlineTeacherSalary=Number(e.offlineTeacherSalary)}else e.offlineTeacherSalary=Math.round(a.offlineClassesSalary)}"GIVE_CLASS"==s.type||"BASE_ACTIVITY"==s.type?e.totalCount=Math.round(n*e.onlineClassesUnitPrice+i*e.offlineClassesUnitPrice):"DISCOUNT"==s.type&&(e.totalCount=Math.round((n*e.onlineClassesUnitPrice+i*e.offlineClassesUnitPrice)*Number(s.attribute1)/100)),e.totalCount=Number(e.totalCount)},getThinkDate:function(t,e){var s=t;s.setDate(t.getDate()+e);var a=s.getFullYear(),n=s.getMonth()+1,i="";i=n<10?"0"+n:n+"";var r=s.getDate(),o="";return o=r<10?"0"+r:r+"",a+"-"+i+"-"+o},MinutesTest:function(t,e,s){var a=e.split("分")[0],n=new Date(1900,1,1,t,a);n.setMinutes(n.getMinutes()+parseInt(s));var i=n.getHours(),r=n.getMinutes();return i<10&&(i="0"+i),r<10&&(r="0"+r),i+":"+r},timeIsrange:function(t,e,s){var a=t.split(":");if(2!=a.length)return!1;var n=e.split(":");if(2!=n.length)return!1;var i=s.split(":");if(2!=n.length)return!1;var r=new Date,o=new Date,u=new Date;return r.setHours(a[0]),r.setMinutes(a[1]),o.setHours(n[0]),o.setMinutes(n[1]),u.setHours(i[0]),u.setMinutes(i[1]),u.getTime()-r.getTime()>=0&&u.getTime()-o.getTime()<=0},getWeek:function(t){var e={"周一":1,"周二":2,"周三":3,"周四":4,"周五":5,"周六":6,"周日":0};return e[t]},onSubmit:function(){var t=y(r.a.mark(function t(){var e,s,a,n,i,o,u,c=this;return r.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.form,s=this.statusList,e.subjectIdList){t.next=5;break}return this.$toast("请选择课程声部"),t.abrupt("return",!1);case 5:if(e.vipGroupCategoryId){t.next=8;break}return this.$toast("请选择课程形式"),t.abrupt("return",!1);case 8:if(!(this.checkboxSelectIds.length<=0)){t.next=11;break}return this.$toast("请选择上课学生"),t.abrupt("return");case 11:if(e.vipGroupActivityId){t.next=14;break}return this.$toast("请选择活动方案"),t.abrupt("return",!1);case 14:if(e.singleClassMinutes){t.next=17;break}return this.$toast("请选择每课时长"),t.abrupt("return",!1);case 17:if(a=!e.onlineClassesNums&&e.onlineClassesNums<=0,n=!e.offlineClassesNums&&e.offlineClassesNums<=0,!s.hasOnline){t.next=23;break}if(!a){t.next=23;break}return this.$toast("请输入线上课次数"),t.abrupt("return",!1);case 23:if(!s.hasOffline){t.next=30;break}if(!n){t.next=27;break}return this.$toast("请输入线下课次数"),t.abrupt("return",!1);case 27:if(!(e.offlineClassesNums>0)||e.teacherSchoolId){t.next=30;break}return this.$toast("请选择线下课地址"),t.abrupt("return",!1);case 30:if(i=this.loadData.vipGroupActivitySelect,"GIVE_CLASS"!=i.type||e.giveTeachMode){t.next=34;break}return this.$toast("请选择赠课类型"),t.abrupt("return",!1);case 34:if(!(this.scheduleList.length<=0)){t.next=37;break}return this.$toast("课时安排不能为空"),t.abrupt("return",!1);case 37:if(!(i.maxCourseNum>0)){t.next=42;break}if(o=parseInt(e.onlineClassesNums)+parseInt(e.offlineClassesNums),o==i.maxCourseNum){t.next=42;break}return this.$toast("课时总数为".concat(i.maxCourseNum,"节")),t.abrupt("return");case 42:if(!(i.maxCourseNum<=0)){t.next=45;break}return this.$toast("当前选择活动有误,请选择其它活动"),t.abrupt("return");case 45:if(this.checkCourseList()){t.next=47;break}return t.abrupt("return");case 47:if(this.setTimeTable(),"ONLINE"==e.giveTeachMode?(e.onlineClassesNum=Number(e.onlineClassesNums)+Number(this.other.giveNum),e.offlineClassesNum=Number(e.offlineClassesNums)):(e.onlineClassesNum=Number(e.onlineClassesNums),e.offlineClassesNum=Number(e.offlineClassesNums)+Number(this.other.giveNum)),e.totalClassTimes=Number(e.onlineClassesNums)+Number(e.offlineClassesNums)+Number(this.other.giveNum),e.paymentExpireDate=e.coursesExpireDate,e.studentIdList=this.checkboxSelectIds.join(","),e.firstStudentId=this.checkboxSelectDataList.length>0?this.checkboxSelectDataList[0].userId:null,u={courseSchedules:this.timeTable,vipGroupApplyBaseInfo:g({},e,{userId:this.teacherId,activityCourseType:this.activityCourseType})},this.onSubmitStatus){t.next=56;break}return t.abrupt("return");case 56:return this.onSubmitStatus=!1,Object(f["a"])(!0),t.next=60,Object(m["a"])(u).then(function(t){var e=t.data;Object(f["a"])(!1),200==e.code?(c.$toast("申请成功"),setTimeout(function(){c.onSubmitStatus=!0,Object(h["b"])().iPhone?window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"})):Object(h["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):c.$router.push("/business")},500)):(c.onSubmitStatus=!0,c.$toast(e.msg))}).catch(function(){c.onSubmitStatus=!0,Object(f["a"])(!1)});case 60:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),checkCourseList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.form,s=this.scheduleList||[],a=!1,n=!1;s.forEach(function(t){"线上"==t.type&&(a=!0),"线下"==t.type&&(n=!0)});var i=this.statusList,r=!e.onlineClassesNums&&e.onlineClassesNums<=0,o=!e.offlineClassesNums&&e.offlineClassesNums<=0;if(i.hasOnline){if(r)return t&&this.$toast("请输入线上课次数"),!1;if(!r&&!a&&e.onlineClassesNums>0)return t&&this.$toast("课时安排缺少线上课类型"),!1}if(i.hasOffline){if(o)return t&&this.$toast("请输入线下课次数"),!1;if(!o&&!n&&e.offlineClassesNums>0)return t&&this.$toast("课时安排缺少线下课类型"),!1}return!0},onSearch:function(){this.params.page=1,this.dataList=[],this.dataShow=!0,this.loading=!0,this.finished=!1,this.getStudent()},getStudent:function(){var t=this,e=this.params;Object(m["c"])(l()(g({},e,{activityCourseType:this.activityCourseType,subjectId:this.form.subjectIdList}))).then(function(s){var a=s.data;if(t.loading=!1,200==a.code){if(t.dataList.length>0&&1==a.data.pageNo)return;e.page=a.data.pageNo,t.dataList=t.dataList.concat(a.data.rows),e.page>=a.data.totalPage&&(t.finished=!0),t.params.page++}else t.finished=!0;t.dataList.length<=0&&(t.dataShow=!1)})},onPopupCancel:function(){this.statusList.studentStatus=!1,this.checkboxSelect=[],this.checkboxSelectList=[]},onPopupSubmit:function(){var t=this.loadData.vipGroupCategorySelect;this.checkboxSelect.length==t.studentNum?(this.checkboxSelectDataList=JSON.parse(JSON.stringify(this.checkboxSelectList)),this.checkboxSelectIds=JSON.parse(JSON.stringify(this.checkboxSelect)),this.checkboxSelect=[],this.checkboxSelectList=[],this.loadData.vipGroupActivity=[],this.formName.vipGroupActivityName=null,this.formName.vipGroupCategoryIndex=0,this.form.vipGroupActivityId=null,this.statusList.studentStatus=!1):this.$toast("请选择学生".concat(t.studentNum,"名,当前选择").concat(this.checkboxSelect.length,"名"))},onCheckboxSelect:function(t){var e=this;this.checkboxSelect.includes(t.userId.toString())?(this.checkboxSelect.forEach(function(s,a){s==t.userId.toString()&&e.checkboxSelect.splice(a,1)}),this.checkboxSelectList.forEach(function(s,a){s.userId==t.userId&&e.checkboxSelectList.splice(a,1)})):(this.checkboxSelect.push(t.userId.toString()),this.checkboxSelectList.push(t))},desensitPhone:function(t){var e=t.substr(0,3),s=t.substr(-4);return e+"****"+s}}},L=T,D=(s("9323"),s("2877")),N=Object(D["a"])(L,a,n,!1,null,"2a59c36c",null);e["a"]=N.exports}}]);