1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["program"],{"2a5d":function(t,e,n){"use strict";n("877a")},3520:function(t,e,n){"use strict";n("5ade")},"544a":function(t,e,n){},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",s="second",a="minute",i="hour",o="day",u="week",c="month",l="quarter",h="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,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,v={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("_")},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),s=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(s,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),s=e.clone().add(r,c),a=n-s<0,i=e.clone().add(r+(a?-1:1),c);return+(-(r+(n-s)/(a?s-i:i-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:u,d:o,D:f,h:i,m:a,s:s,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",S={};S[b]=v;var k=function(t){return t instanceof L},C=function t(e,n,r){var s;if(!e)return b;if("string"==typeof e){var a=e.toLowerCase();S[a]&&(s=a),n&&(S[a]=n,s=a);var i=e.split("-");if(!s&&i.length>1)return t(i[0])}else{var o=e.name;S[o]=e,s=o}return!r&&s&&(b=s),s||!r&&b},x=function(t,e){if(k(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new L(n)},T=y;T.l=C,T.i=k,T.w=function(t,e){return x(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var L=function(){function v(t){this.$L=C(t.locale,null,!0),this.parse(t)}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(T.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var s=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.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()},g.$utils=function(){return T},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(t,e){var n=x(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return x(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<x(t)},g.$g=function(t,e,n){return T.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!T.u(e)||e,l=T.p(t),d=function(t,e){var s=T.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?s:s.endOf(o)},p=function(t,e){return T.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case h:return r?d(1,0):d(31,11);case c:return r?d(1,v):d(0,v+1);case u:var b=this.$locale().weekStart||0,S=(m<b?m+7:m)-b;return d(r?g-S:g+(6-S),v);case o:case f:return p(y+"Hours",0);case i:return p(y+"Minutes",1);case a:return p(y+"Seconds",2);case s:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=T.p(t),l="set"+(this.$u?"UTC":""),d=(n={},n[o]=l+"Date",n[f]=l+"Date",n[c]=l+"Month",n[h]=l+"FullYear",n[i]=l+"Hours",n[a]=l+"Minutes",n[s]=l+"Seconds",n[r]=l+"Milliseconds",n)[u],p=u===o?this.$D+(e-this.$W):e;if(u===c||u===h){var m=this.clone().set(f,1);m.$d[d](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[T.p(t)]()},g.add=function(r,l){var f,d=this;r=Number(r);var p=T.p(l),m=function(t){var e=x(d);return T.w(e.date(e.date()+Math.round(t*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===h)return this.set(h,this.$y+r);if(p===o)return m(1);if(p===u)return m(7);var v=(f={},f[a]=e,f[i]=n,f[s]=t,f)[p]||1,g=this.$d.getTime()+r*v;return T.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",s=T.z(this),a=this.$H,i=this.$m,o=this.$M,u=n.weekdays,c=n.months,l=function(t,n,s,a){return t&&(t[n]||t(e,r))||s[n].slice(0,a)},h=function(t){return T.s(a%12||12,t,"0")},f=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:T.s(o+1,2,"0"),MMM:l(n.monthsShort,o,c,3),MMMM:l(c,o),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:T.s(a,2,"0"),h:h(1),hh:h(2),a:f(a,i,!0),A:f(a,i,!1),m:String(i),mm:T.s(i,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:s};return r.replace(m,(function(t,e){return e||p[t]||s.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,f,d){var p,m=T.p(f),v=x(r),g=(v.utcOffset()-this.utcOffset())*e,y=this-v,b=T.m(this,v);return b=(p={},p[h]=b/12,p[c]=b,p[l]=b/3,p[u]=(y-g)/6048e5,p[o]=(y-g)/864e5,p[i]=y/n,p[a]=y/e,p[s]=y/t,p)[m]||y,d?b:T.a(b)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return S[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=C(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return T.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),w=L.prototype;return x.prototype=w,[["$ms",r],["$s",s],["$m",a],["$H",i],["$W",o],["$M",c],["$y",h],["$D",f]].forEach((function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),x.extend=function(t,e){return t.$i||(t(e,L,x),t.$i=!0),x},x.locale=C,x.isDayjs=k,x.unix=function(t){return x(1e3*t)},x.en=S[b],x.Ls=S,x.p={},x}))},"5ade":function(t,e,n){},"852e":function(t,e,n){},"877a":function(t,e,n){},"9afb":function(t,e,n){"use strict";n.d(e,"F",(function(){return o})),n.d(e,"O",(function(){return u})),n.d(e,"H",(function(){return c})),n.d(e,"V",(function(){return h})),n.d(e,"k",(function(){return l})),n.d(e,"bb",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"P",(function(){return v})),n.d(e,"Q",(function(){return g})),n.d(e,"R",(function(){return y})),n.d(e,"h",(function(){return b})),n.d(e,"Z",(function(){return S})),n.d(e,"ab",(function(){return k})),n.d(e,"N",(function(){return C})),n.d(e,"A",(function(){return x})),n.d(e,"c",(function(){return T})),n.d(e,"q",(function(){return L})),n.d(e,"p",(function(){return w})),n.d(e,"e",(function(){return N})),n.d(e,"g",(function(){return I})),n.d(e,"S",(function(){return D})),n.d(e,"T",(function(){return M})),n.d(e,"I",(function(){return O})),n.d(e,"L",(function(){return G})),n.d(e,"v",(function(){return j})),n.d(e,"Y",(function(){return $})),n.d(e,"n",(function(){return m})),n.d(e,"s",(function(){return A})),n.d(e,"y",(function(){return P})),n.d(e,"a",(function(){return _})),n.d(e,"U",(function(){return F})),n.d(e,"l",(function(){return R})),n.d(e,"x",(function(){return Y})),n.d(e,"t",(function(){return V})),n.d(e,"b",(function(){return E})),n.d(e,"o",(function(){return z})),n.d(e,"f",(function(){return B})),n.d(e,"X",(function(){return H})),n.d(e,"w",(function(){return q})),n.d(e,"d",(function(){return U})),n.d(e,"J",(function(){return W})),n.d(e,"z",(function(){return J})),n.d(e,"cb",(function(){return Q})),n.d(e,"db",(function(){return X})),n.d(e,"j",(function(){return tt})),n.d(e,"E",(function(){return K})),n.d(e,"C",(function(){return et})),n.d(e,"B",(function(){return nt})),n.d(e,"r",(function(){return rt})),n.d(e,"M",(function(){return st})),n.d(e,"G",(function(){return at})),n.d(e,"D",(function(){return ot})),n.d(e,"u",(function(){return it})),n.d(e,"K",(function(){return Z})),n.d(e,"W",(function(){return ut}));var r=n("4328"),s=n.n(r),a=n("981f").default,i="/api-teacher",o=function(t){return a({url:i+"/snaker/task/queryMyCreatedList",method:"get",params:t})},u=function(t){return a({url:i+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return a({url:i+"/snaker/task/queryProcessedList",method:"get",params:t})},l=function(t){return a({url:i+"/subject/findTeacherSubjets",method:"get",params:t})},h=function(t){return a({url:i+"/subject/findSubSubjects",method:"get",params:t})},f=function(t){return a({url:i+"/vipGroupCategory/queryAll",method:"get",params:t})},d=function(t){return a({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},p=function(t){return a({url:i+"/school/findVipSchoolByTeacher",method:"get",params:t})},m=function(t){return a({url:i+"/school/findVipSchoolByTeacher2",method:"get",params:t})},v=function(t){return a({url:i+"/school/add",method:"post",data:s.a.stringify(t)})},g=function(t){return a({url:i+"/school/del",method:"post",data:s.a.stringify(t)})},y=function(t){return a({url:i+"/school/update",method:"post",data:s.a.stringify(t)})},b=function(t){return a({url:i+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},S=function(t){return a({url:i+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},k=function(t){return a({url:i+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},C=function(t){return a({url:i+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},x=function(t){return a({url:i+"/leaveCategory/queryPage",method:"post",data:t})},T=function(t){return a({url:i+"/teacherLeaveRecord/askForLeave",method:"post",data:s.a.stringify(t)})},L=function(t){return a({url:i+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},w=function(t){return a({url:i+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},N=function(t){return a({url:i+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:s.a.stringify(t)})},I=function(t){return a({url:i+"/teacherCourseSchedule/courseSwap",method:"post",data:s.a.stringify(t)})},D=function(t){return a({url:i+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},M=function(t){return a({url:i+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},O=function(t){return a({url:i+"/teacher/queryStudentApply",method:"get",params:t})},G=function(t){return a({url:i+"/teacher/querySubByMusicGroupId",method:"get",params:t})},j=function(t){return a({url:i+"/teacher/getRegisterOrPreList",method:"get",params:t})},$=function(t){return a({url:i+"/studentRegistration/updateSubject",method:"post",data:s.a.stringify(t)})},A=function(){return a({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},P=function(){return a({url:"/api-web/api/practiceSum",method:"get"})},_=function(t){return a({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},E=function(t){return a({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},F=function(t){return a({url:"/api-teacher/studyReport/info",method:"get",params:t})},Y=function(t){return a({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},R=function(t){return a({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},V=function(t){return a({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},z=function(t){return a({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},B=function(t){return a({url:"/api-teacher/courseReview/add",method:"post",data:t})},H=function(t){return a({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:s.a.stringify(t)})},q=function(t){return a({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},U=function(t){return a({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},W=function(t){return a({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},Z=function(t){return a({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacherByOrganId",method:"get",params:t})},K=function(t){return a({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},J=function(t){return a({url:"/api-teacher/visit/queryPage",method:"get",params:t})},Q=function(t){return a({url:"/api-teacher/visit/add",method:"post",data:s.a.stringify(t)})},X=function(t){return a({url:"/api-teacher/visit/getInfo",method:"get",params:t})},tt=function(t){return a({url:"/api-teacher/employeePosition/findOrganPosition",method:"get",params:t})},et=function(t){return a({url:"/api-cms/news/query",method:"get",params:t})},nt=function(t){return a({url:"/api-cms/news/list",method:"get",params:t})},rt=function(t){return a({url:"/api-teacher/classGroup/getCourseStudents",method:"get",params:t})},st=function(t){return a({url:"/api-auth/user/queryUserById/"+t.userId,method:"get"})},at=function(t){return a({url:"/api-teacher/teacherPracticeGroup/queryPracticeGroupSellPrice",method:"get",params:t})},it=function(t){return a({url:"/api-teacher/teacherPracticeGroup/getPracticeGroupCostCount",method:"get",params:t})},ot=function(t){return a({url:i+"/teacherPracticeGroup/practiceGroupApply",method:"post",data:t})},ut=function(t){return a({url:i+"/tenantConfig/get",method:"get",params:t})}},a7ed:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAAC9FBMVEUAAADv7+/w8PDz8/Pu7u7u7u7v7+/p6enu7u7u7u7v7+/v7e/u7u7u7u7v7+/u7u7u7u7v7+/v7+/w8PDu7u7v7+/y8vL19fXy8vL////////u7u7u7u7v7+/v7+/t7e3u7u7w8PDv7+/4dtTt7e3v7+/v7+/u7u74ddL5dtP3dtP5dtP4ddT5eNP4ddP4ddP7dtXzdNHxyuZ8Rynu7u7/z60AAAD7upb/rI/////4dtP/fn7AdD/u7e3/zqyDKyXu7Or+zav/yql/Sy0LCwr+0rL/upzrs5b9/Pzw6+f8y6nx6OLUyMH4xKaUa1OCTjH907b+x6X7vZqQZEsRERAGBQX/7eHl4uDx5d/b29v9yab/vp+8pJeLXEKHVjvp5+bk393i3Nje1tH008D/1brOwLfHtKrBrKD8wJ3/r5G4n5Gzl4d2dna0gWGbdF6eaks4ODghHx7f39/238/42sWvr6/5yaf/xKTxwqH8w5+VlZWwkX7OmXpQUFDv6Of049jy4NX33cn62MDLu7L4ya75wKH9rpzvvJr/tpjYr5LjspDdq4qGhoasjHenhnFwcHB/Z1aSXT+FUTQvLSwmJSX39vb/9Ozm5OPy5t3/59b/49Dz2s3/38jYzcjHx8f/zbn2zLX2y7Pnu5z/spjLpInYo4TmqYB/f397e3uggGtqampeXVytelqmclPKgk/HfUpGRkZAQED4+Pj/+PTv4evx0Of1ndzS0tL4fczy18f/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qIopjl3PE1CghjckZKPy+1MRiIl/OGYr+8fMNmt9yESjuGL+USfoijuEo/3zelzHeViPvyBpTC2SFzAI7YJ6cASf/RqfxBBm+NRvOgQQfTqFqo/9wXxioR+rX53S41Hw0GvK3TarVa7I3R7g+FoXHXuL44XPdPQbpijAAAAAElFTkSuQmCC"},a887:function(t,e,n){"use strict";n("544a")},bad8:function(t,e,n){"use strict";n("852e")},d678:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mempty",class:t.full?"full":null},[n("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),n("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},s=[],a={name:"mempty",props:{icon:String,msg:String,full:Boolean}},i=a,o=(n("bad8"),n("2877")),u=Object(o["a"])(i,r,s,!1,null,"31cc2a9d",null);e["a"]=u.exports},eeee:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-search",{attrs:{placeholder:"请输入搜索关键词",background:"#fff",shape:"round","show-action":""},on:{search:t.onSearch},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[n("div",{attrs:{slot:"action"},on:{click:t.onSearch},slot:"action"},[t._v("搜索")])])],1)},s=[],a={props:["background"],data:function(){return{searchValue:"",color:"#fff"}},mounted:function(){},methods:{onSearch:function(){this.$emit("onSearch",this.searchValue)}}},i=a,o=(n("a887"),n("2877")),u=Object(o["a"])(i,r,s,!1,null,null,null);e["a"]=u.exports},ef13:function(t,e,n){"use strict";n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n("2b7c"),s=n("981f").default,a="/api-teacher",i=function(t){return Object(r["a"])({url:"/vipGroupActivity/queryWaitCourseActivity",method:"get",params:t})},o=function(t){return Object(r["a"])({url:"/vipGroupActivity/getActivityWaitCourseStudentNum",method:"get",params:t})},u=function(t){return s({url:a+"/vipGroupActivity/getActivityStudentCanCourseNum",method:"get",params:t})},c=function(t){return Object(r["a"])({url:"/teacherVipGroup/createVipGroup",method:"post",data:t})},l=function(t){return Object(r["a"])({url:"/teacherPracticeGroup/createPracticeGroup",method:"post",data:t})}},f31f:function(t,e,n){"use strict";n.r(e);for(var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"program"},[n("van-cell-group",{staticClass:"van-cell-group--inset"},[n("van-cell",{staticClass:"titleContent",attrs:{title:t.vipGroup.name,"title-class":"titleStyle","label-class":"labelStyle"},scopedSlots:t._u([{key:"label",fn:function(){return[n("p",[t._v(t._s(t.vipGroup.description))])]},proxy:!0}])})],1),n("h2",{staticClass:"van-block__title"},[t._v(t._s(t.typeStatus?"付费":"赠送")+"课程排课")]),n("van-cell-group",[n("van-field",{attrs:{value:t.typeStatus?t.courseType[t.vipGroup.courseType]:t.courseType[t.vipGroup.giveCourseType],label:"课程类型",readonly:!0,"input-align":"right",size:"large",placeholder:"请选择"}}),t.courseTypeIsVip?n("van-field",{attrs:{value:t.typeStatus?t.vipGroup.vipGroupCategoryNames:t.vipGroup.giveCategoryName,label:"课程形式",readonly:!0,"input-align":"right",size:"large",placeholder:"请选择"}}):t._e(),n("van-field",{attrs:{label:"排课声部",readonly:!0,"input-align":"right","is-link":"",size:"large",placeholder:"请选择"},on:{click:function(e){return t.onGetSheetList("subjectList")}},model:{value:t.formName.subjectListName,callback:function(e){t.$set(t.formName,"subjectListName",e)},expression:"formName.subjectListName"}}),n("van-field",{attrs:{label:"乐团主管",readonly:!0,"input-align":"right","is-link":"",size:"large",placeholder:"请选择"},on:{click:function(e){return t.onGetSheetList("teacherList")}},model:{value:t.formName.educationalTeacherName,callback:function(e){t.$set(t.formName,"educationalTeacherName",e)},expression:"formName.educationalTeacherName"}})],1),t.studentList.length>0?[n("h2",{staticClass:"van-block__title"},[t._v("上课学员")]),n("van-cell-group",t._l(t.studentList,(function(e,r){return n("van-cell",{key:r,attrs:{"title-style":"flex: 1 auto; color: #1A1A1A;",size:"large"},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n "+t._s(e.username)+" - "+t._s(e.phone)+"\n ")]},proxy:!0},{key:"default",fn:function(){return[n("span",{on:{click:function(n){return t.onDelete("student",e)}}},[n("van-icon",{attrs:{name:"delete-o",size:".14rem"}}),n("span",{staticStyle:{"font-size":".12rem"}},[t._v("删除")])],1)]},proxy:!0}],null,!0)})})),1)]:t._e(),n("div",{staticClass:"addButton",on:{click:function(e){t.studentStatus=!0}}},[n("van-icon",{attrs:{name:"plus"}}),t._v(" 添加学员\n ")],1),n("h2",{staticClass:"van-block__title"},[t._v("课时组成")]),n("van-cell-group",[t.statusList.hasOnline&&-1==t.teachMode?n("van-field",{attrs:{label:"线上课次数","input-align":"right",size:"large",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&&-1==t.teachMode?n("van-field",{attrs:{label:"线下课次数","input-align":"right",size:"large",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.tempOfflineNum>0?n("van-field",{attrs:{label:"线下课地址",readonly:!0,"input-align":"right","is-link":"",size:"large",placeholder:"请选择"},on:{click:function(e){return t.onGetSheetList("teacherSchool")}},model:{value:t.formName.teacherSchoolName,callback:function(e){t.$set(t.formName,"teacherSchoolName",e)},expression:"formName.teacherSchoolName"}}):t._e(),t.isMusicTheory?n("van-field",{attrs:{value:"1-"+(t.form.studentNum||0)+"人",label:"班级人数",readonly:!0,"input-align":"right",size:"large"}}):n("van-field",{attrs:{value:(t.form.studentNum||0)+"人",label:"班级人数",readonly:!0,"input-align":"right",size:"large"}}),n("van-field",{attrs:{value:(t.form.singleClassMinutes||0)+"分钟",label:"单课时时长",readonly:!0,"input-align":"right",size:"large"}})],1),n("h2",{staticClass:"van-block__title"},[t._v("课时安排")]),n("van-cell-group",[t.vipGroup.coursesStartTime?n("van-cell",{attrs:{title:"最早排课时间",readonly:!0,"input-align":"right",size:"large","value-class":"showText",value:t.vipGroup.coursesStartTime}}):t._e(),t.vipGroup.coursesEndTime?n("van-cell",{attrs:{title:"最晚排课时间",readonly:!0,"input-align":"right",size:"large","value-class":"showText",value:t.vipGroup.coursesEndTime}}):t._e(),n("van-field",{attrs:{label:"课时总数",readonly:!(!t.courseTypeIsVip&&!t.isLimitNum&&t.typeStatus),"input-align":"right",size:"large",placeholder:"请输入排课课时数"},scopedSlots:t._u([t.form.totalClassTime?{key:"extra",fn:function(){return[n("span",{staticStyle:{color:"#808080","font-size":"16px"}},[t._v("课时")])]},proxy:!0}:null],null,!0),model:{value:t.form.totalClassTime,callback:function(e){t.$set(t.form,"totalClassTime",e)},expression:"form.totalClassTime"}}),n("van-field",{attrs:{label:"排课开始时间",readonly:!0,"input-align":"right","is-link":"",size:"large",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"}})],1),n("van-cell-group",{staticStyle:{"margin-top":".1rem"},attrs:{border:!1}},t._l(t.scheduleList,(function(e,r){return n("van-cell",{key:r,attrs:{"title-class":"title-time"}},[n("template",{slot:"title"},[n("span",{staticClass:"online"},[t._v(t._s(e.type))]),n("span",{staticClass:"week"},[t._v(t._s(e.weekStr))]),n("span",{staticClass:"timer"},[t._v(t._s(e.startTime+"~"+e.endTime))])]),n("template",{slot:"default"},[n("span",{on:{click:function(n){return t.onDelete("class",e)}}},[n("van-icon",{attrs:{name:"delete-o",size:".14rem"}}),n("span",{staticStyle:{"font-size":".12rem"}},[t._v("删除")])],1)])],2)})),1),n("div",{staticClass:"addButton",on:{click:function(e){t.teachingStatus=!0}}},[n("van-icon",{attrs:{name:"plus"}}),t._v(" 添加课时安排\n ")],1),n("van-cell-group",[t.scheduleList.length>0?n("van-field",{attrs:{label:"排课列表",disabled:"","input-align":"right","is-link":"",size:"large"},on:{click:t.onShowTimeTable}}):t._e()],1),n("div",{staticClass:"button-group"},[n("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onSubmit}},[t._v("确认")])],1),n("van-popup",{staticClass:"studentChose",style:{height:"5.16rem",overflow:"hidden"},attrs:{"lock-scroll":!0,position:"bottom"},model:{value:t.studentStatus,callback:function(e){t.studentStatus=e},expression:"studentStatus"}},[n("student-list",{attrs:{studentList:t.studentList,activityId:t.activityId,studentNum:t.form.studentNum,courseTypeIsVip:t.courseTypeIsVip,typeStatus:t.typeStatus,isMusicTheory:t.isMusicTheory},on:{close:function(e){t.studentStatus=!1},submit:t.onSelectStudent}})],1),n("van-popup",{attrs:{position:"bottom"},model:{value:t.dataForm.status,callback:function(e){t.$set(t.dataForm,"status",e)},expression:"dataForm.status"}},[n("van-datetime-picker",{attrs:{type:"date","min-date":t.dataForm.minDate,"max-date":t.dataForm.maxDate,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),n("van-popup",{attrs:{position:"bottom"},model:{value:t.teachingStatus,callback:function(e){t.teachingStatus=e},expression:"teachingStatus"}},[n("course-modal",{attrs:{scheduleList:t.scheduleList,singleClassMinutes:t.form.singleClassMinutes},on:{close:function(e){t.teachingStatus=!1}}})],1),n("van-popup",{attrs:{position:"bottom"},model:{value:t.sheetForm.sheetStatus,callback:function(e){t.$set(t.sheetForm,"sheetStatus",e)},expression:"sheetForm.sheetStatus"}},[n("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),n("van-popup",{attrs:{position:"bottom"},model:{value:t.statusList.classTime,callback:function(e){t.$set(t.statusList,"classTime",e)},expression:"statusList.classTime"}},[n("van-row",[n("van-col",{attrs:{span:"12"}},[t._v("上课类型")]),n("van-col",{attrs:{span:"12"}},[t._v("上课时间")])],1),n("div",{staticClass:"tableContainer"},t._l(t.timeTable,(function(e,r){return n("van-row",{key:r},[n("van-col",{attrs:{span:"12"}},[t._v("\n "+t._s("ONLINE"==e.teachMode?"线上":"线下")+"\n ")]),n("van-col",{attrs:{span:"12"}},[t._v("\n "+t._s(e.classDate)+" "+t._s(e.startClassTimeStr)+"\n ")])],1)})),1)],1)],2)},s=[],a=n("5a0c"),i=n.n(a),o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("m-search",{attrs:{placeholder:"请输入学生名或手机号"},on:{onSearch:t.onSearch}}),r("div",{staticClass:"paddingB80"},[t.dataShow?r("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"}},[r("van-checkbox-group",{model:{value:t.checkboxSelect,callback:function(e){t.checkboxSelect=e},expression:"checkboxSelect"}},[r("van-cell-group",{attrs:{border:!1}},t._l(t.dataList,(function(e,s){return r("van-cell",{key:s,staticClass:"input-cell",attrs:{"value-class":"value-times",center:!0},on:{click:function(n){return t.onCheckboxSelect(e)}}},[r("template",{slot:"icon"},[e.avatar?r("img",{staticClass:"logo",attrs:{src:e.avatar,alt:""}}):r("img",{staticClass:"logo",attrs:{src:n("a7ed"),alt:""}})]),r("template",{slot:"title"},[t._v("\n "+t._s(e.username)+"("+t._s(e.userId)+")\n ")]),r("template",{slot:"default"},[r("span",{staticStyle:{"font-size":"0.16rem",color:"#1a1a1a"}},[t._v("可排课次数:"),r("span",{staticStyle:{color:"#01c1b5"}},[t._v(t._s(e.showStudentNum))])])]),r("template",{slot:"extra"},[r("van-checkbox",{attrs:{name:e.userId},scopedSlots:t._u([{key:"icon",fn:function(n){return[e.radioDisabled?t._e():r("img",{staticClass:"img-icon",attrs:{src:n.checked?t.activeButtonIcon:t.inactiveButtonIcon}})]}}],null,!0)})],1)],2)})),1)],1)],1):r("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无学生"}})],1),r("div",{staticClass:"button-group-popup"},[r("span",{staticClass:"btn",on:{click:t.onPopupCancel}},[t._v("取消")]),r("span",{staticClass:"btn primary",on:{click:t.onPopupSubmit}},[t._v("确定")])]),r("div",{staticClass:"wall"})],1)},u=[],c=n("d678"),l=n("eeee"),h=n("ef13"),f={components:{MEmpty:c["a"],MSearch:l["a"]},props:["studentList","activityId","courseTypeIsVip","typeStatus","studentNum","isMusicTheory"],data:function(){return{params:{search:null,activityId:this.activityId,page:1,rows:20},dataShow:!0,dataList:[],checkboxSelect:[],loading:!1,finished:!1}},watch:{studentList:function(t){var e=this;if(t){var n=t||[];this.checkboxSelect=[],n.forEach((function(t){e.checkboxSelect.push(t.userId)}))}}},mounted:function(){this.getStudent()},methods:{onSearch:function(t){this.params.page=1,this.dataShow=!0,this.loading=!0,this.params.search=t||null,this.dataList=[],this.finished=!1,this.getStudent()},getStudent:function(){var t=this,e=this.params;e.giveFlag=this.typeStatus?0:1,Object(h["c"])(e).then((function(n){var r=n.data;if(console.log(r),200==r.code){var s=r.data.rows||[],a=[];t.isLoading=!1,e.page=r.data.pageNo,s.forEach((function(e){var n=0;n=t.typeStatus?t.courseTypeIsVip?e.vipNum:e.practiceNum:t.courseTypeIsVip?e.giveVipNum:e.givePracticeNum,e.showStudentNum=n,n>0&&a.push(e)})),1==r.data.pageNo?t.dataList=a:t.dataList=t.dataList.concat(a),console.log(t.dataList.length),t.dataList.length>0?t.dataShow=!0:t.dataShow=!1,e.page>=r.data.totalPage&&(t.finished=!0),t.params.page++}else t.finished=!0}))},onCheckboxSelect:function(t){var e=this;this.checkboxSelect.includes(t.userId)?this.checkboxSelect.forEach((function(n,r){n===t.userId&&e.checkboxSelect.splice(r,1)})):this.checkboxSelect.push(t.userId)},onPopupCancel:function(){this.$listeners.close()},onPopupSubmit:function(){var t=this;if(this.isMusicTheory){if(!(this.checkboxSelect.length>=1&&this.checkboxSelect.length<=this.studentNum))return void this.$toast("请选择1-".concat(this.studentNum,"名学生,当前选择").concat(this.checkboxSelect.length,"名"))}else if(this.checkboxSelect.length!=this.studentNum)return void this.$toast("请选择学生".concat(this.studentNum,"名,当前选择").concat(this.checkboxSelect.length,"名"));var e=this.dataList||[],n=[];e.forEach((function(e){t.checkboxSelect.includes(e.userId)&&n.push(e)})),this.$emit("submit",n)}}},d=f,p=(n("3520"),n("2877")),m=Object(p["a"])(d,o,u,!1,null,"58c56be6",null),v=m.exports,g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("van-picker",{attrs:{columns:t.columns,"show-toolbar":""},on:{cancel:function(e){return t.$listeners.close()},confirm:t.onTeachingConfirm}})},y=[],b=[],S=0;S<60;S++){var k=S<10?"0"+S:S;b.push(k+"分")}var C={props:["scheduleList","singleClassMinutes"],data:function(){return{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],className:"hours",defaultIndex:7},{values:b,className:"minutes"}]}},watch:{singleClassMinutes:function(){this.scheduleList=[]}},methods:{onTeachingConfirm:function(t){var e=this,n=this.scheduleList,r=(t[2]>=10?t[2]:"0"+t[2])+":"+t[3].split("分")[0],s=this.MinutesTest(t[2],t[3],this.singleClassMinutes),a=!0;n.forEach((function(n){var i=e.timeIsRange(r,s,n.startTime),o=e.timeIsRange(r,s,n.endTime);a&&(t[1]==n.weekStr?a=!i&&!o:t[1]!=n.weekStr&&(a=!0))}));var i=s?Number(s.split(":")[0]):0,o=s?Number(s.split(":")[1]):0;i>=21&&o>0?this.$toast("课程安排结束时间不可超过21:00"):a?(n.push({type:t[0],weekStr:t[1],weekIndex:this.getWeek(t[1]),startTime:r,endTime:s,id:Date.now()}),this.$listeners.close()):this.$toast("该时间段已排课请重选时间")},MinutesTest:function(t,e,n){var r=e.split("分")[0],s=new Date(1900,1,1,t,r);s.setMinutes(s.getMinutes()+parseInt(n));var a=s.getHours(),i=s.getMinutes();return a<10&&(a="0"+a),i<10&&(i="0"+i),a+":"+i},timeIsRange:function(t,e,n){var r=t.split(":");if(2!=r.length)return!1;var s=e.split(":");if(2!=s.length)return!1;var a=n.split(":");if(2!=s.length)return!1;var i=new Date,o=new Date,u=new Date;return i.setHours(r[0]),i.setMinutes(r[1]),o.setHours(s[0]),o.setMinutes(s[1]),u.setHours(a[0]),u.setMinutes(a[1]),u.getTime()-i.getTime()>=0&&u.getTime()-o.getTime()<=0},getWeek:function(t){var e={"周一":1,"周二":2,"周三":3,"周四":4,"周五":5,"周六":6,"周日":0};return e[t]}}},x=C,T=Object(p["a"])(x,g,y,!1,null,null,null),L=T.exports,w=n("267e"),N=n("9afb");function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function D(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D(Object(n),!0).forEach((function(e){O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */G=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(w){o=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var s=e&&e.prototype instanceof h?e:h,a=Object.create(s.prototype),i=new x(r||[]);return a._invoke=function(t,e,n){var r="suspendedStart";return function(s,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===s)throw a;return L()}for(n.method=s,n.arg=a;;){var i=n.delegate;if(i){var o=S(i,n);if(o){if(o===l)continue;return o}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,i),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(w){return{type:"throw",arg:w}}}t.wrap=u;var l={};function h(){}function f(){}function d(){}var p={};o(p,s,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(T([])));v&&v!==e&&n.call(v,s)&&(p=v);var g=d.prototype=h.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){o(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function r(s,a,i,o){var u=c(t[s],t,a);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==I(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,i,o)}),(function(t){r("throw",t,i,o)})):e.resolve(h).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,o)}))}o(u.arg)}var s;this._invoke=function(t,n){function a(){return new e((function(e,s){r(t,n,e,s)}))}return s=s?s.then(a,a):a()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var s=r.arg;return s?s.done?(e[t.resultName]=s.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):s:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=d,o(g,"constructor",d),o(d,"constructor",f),f.displayName=o(d,i,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,o(t,i,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(b.prototype),o(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,s,a){void 0===a&&(a=Promise);var i=new b(u(e,n,r,s),a);return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(g),o(g,i,"Generator"),o(g,s,(function(){return this})),o(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=T,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var o=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(o&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev<s.finallyLoc){var a=s;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var s=r.arg;C(n)}return s}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function j(t,e,n,r,s,a,i){try{var o=t[a](i),u=o.value}catch(c){return void n(c)}o.done?e(u):Promise.resolve(u).then(r,s)}function $(t){return function(){var e=this,n=arguments;return new Promise((function(r,s){var a=t.apply(e,n);function i(t){j(a,r,s,i,o,"next",t)}function o(t){j(a,r,s,i,o,"throw",t)}i(void 0)}))}}var A={components:{studentList:v,courseModal:L},data:function(){var t=this.$route.query;return{courseType:w["b"],type:t.type,activityId:t.activityId,vipDetail:{},vipGroup:{},studentStatus:!1,studentList:[],checkboxSelectIds:[],teachMode:null,sheetForm:{currentType:null,sheetStatus:!1,loading:!0,index:0,columns:[]},timeTable:[],loadData:{subjectList:[],teacherList:[],teacherSchool:[]},tempOfflineNum:0,form:{vipGroupCategoryId:null,subjectIdList:null,educationalTeacherId:null,singleClassMinutes:null,onlineClassesNums:null,offlineClassesNums:null,totalClassTime:null,studentNum:null,courseStart:null,teacherSchoolId:null,vipGroupActivityId:t.activityId},formName:{vipGroupCategoryId:null,subjectListName:null,subjectListIndex:0,educationalTeacherName:null,educationalTeacherIndex:0,teacherSchoolName:null,teacherSchoolIndex:0},statusList:{hasOnline:!1,hasOffline:!1,classTime:!1},scheduleList:[],teachingStatus:!1,dataForm:{status:!1,minDate:new Date,maxDate:new Date(2035,10,1),currentDate:new Date},isMusicTheory:!1}},computed:{typeStatus:function(){return"pay"==this.type},courseTypeIsVip:function(){var t=this.typeStatus?this.vipGroup.courseType:this.vipGroup.giveCourseType;return"VIP"==t},isLimitNum:function(){return this.vipGroup.minCourseNum>0}},mounted:function(){this.__init()},methods:{__init:function(){var t=$(G().mark((function t(){var e,n,r,s;return G().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["d"])({activityId:this.activityId});case 3:e=t.sent,this.vipDetail=e.data,n=e.data.vipGroupActivity,n.coursesStartTime=n.coursesStartTime?i()(n.coursesStartTime).format("YYYY-MM-DD"):null,n.coursesEndTime=n.coursesEndTime?i()(n.coursesEndTime).format("YYYY-MM-DD"):null,this.vipGroup=n,r=this.form,r.vipGroupCategoryId=this.typeStatus?n.vipGroupCategoryIdList:n.giveCategoryId,r.singleClassMinutes=this.typeStatus?n.singleCourseTime:n.giveSingleCourseTime,s=this.typeStatus?n.vipGroupCategoryNames:n.giveCategoryName,this.isMusicTheory="乐理课"===s,this.courseTypeIsVip?(r.studentNum=this.typeStatus?n.vipGroupCategoryNum:n.giveCategoryNum,this.statusList.hasOnline=this.typeStatus?this.formatStatus("online",n.teachMode):this.formatStatus("online",n.giveTeachMode),this.statusList.hasOffline=this.typeStatus?this.formatStatus("offline",n.teachMode):this.formatStatus("offline",n.giveTeachMode)):(r.totalClassTime=null,r.studentNum=1,this.statusList.hasOnLine=!1,this.statusList.hasOffLine=!1),!this.isLimitNum&&this.typeStatus||(r.totalClassTime=this.typeStatus?n.minCourseNum:n.giveCourseNum),0==this.teachMode?(r.onlineClassesNums=r.totalClassTime||0,r.offlineClassesNums=0):1==this.teachMode&&(r.onlineClassesNums=0,r.offlineClassesNums=r.totalClassTime||0,this.tempOfflineNum=r.totalClassTime||0),t.next=21;break;case 19:t.prev=19,t.t0=t["catch"](0);case 21:case"end":return t.stop()}}),t,this,[[0,19]])})));function e(){return t.apply(this,arguments)}return e}(),onGetSheetList:function(t){var e=this.sheetForm;e.columns=[],e.sheetStatus=!0,e.loading=!0,e.currentType=t,e.index=0;var n=this.loadData[t];n.length>0?(e.columns=n,e.index=this.formName[t+"Index"],e.loading=!1):this.onLoadingData(t)},onLoadingData:function(){var t=this,e=this.sheetForm;"subjectList"==e.currentType?Object(N["k"])().then((function(n){var r=n.data;if(200==r.code&&r.data.length>0){var s=[];r.data.forEach((function(t){t.value=t.id,t.text=t.name,s.push(t)})),t.loadData.subjectList=s,e.columns=s,e.loading=!1}else t.$toast("暂无科目列表"),e.loading=!1})):"teacherSchool"==e.currentType?Object(N["n"])().then((function(n){var r=n.data;if(200==r.code&&r.data.length>0){var s=[];r.data.forEach((function(t){t.value=t.id,t.text=t.name,s.push(t)})),t.loadData.teacherSchool=s,e.columns=s,e.loading=!1}else t.$toast("暂无教学点"),e.loading=!1})):"teacherList"==e.currentType&&Object(N["j"])().then((function(n){var r=n.data,s=r.data.EDUCATION||[];if(200==r.code&&s.length>0){var a=[];s.forEach((function(t){t.value=t.userId,t.text=t.userName,a.push(t)})),t.loadData.teacherList=a,e.columns=a,e.loading=!1}else t.$toast("暂无乐团主管"),e.loading=!1}))},onSheetConfirm:function(t,e){var n=this.sheetForm,r=this.form,s=this.formName;"subjectList"==n.currentType?(r.subjectIdList=t.value,s.subjectListName=t.text,s.subjectListIndex=e):"teacherSchool"==n.currentType?(r.teacherSchoolId=t.value,s.teacherSchoolName=t.text,s.teacherSchoolIndex=e):"teacherList"==n.currentType&&(r.educationalTeacherId=t.value,s.educationalTeacherName=t.text,s.educationalTeacherIndex=e),n.sheetStatus=!1},onSubmit:function(){var t=$(G().mark((function t(){var e,n,r,s,a,i,o,u;return G().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this.form,n=this.statusList,e.subjectIdList){t.next=5;break}return this.$toast("请选择排课声部"),t.abrupt("return",!1);case 5:if(e.educationalTeacherId){t.next=8;break}return this.$toast("请选择乐团主管"),t.abrupt("return");case 8:if(!(this.checkboxSelectIds.length<=0)){t.next=11;break}return this.$toast("请选择上课学员"),t.abrupt("return");case 11:if(!this.isMusicTheory){t.next=17;break}if(this.checkboxSelectIds.length>=1&&this.checkboxSelectIds.length<=this.form.studentNum){t.next=15;break}return this.$toast("请选择1-".concat(this.form.studentNum,"名学生,当前选择").concat(this.checkboxSelectIds.length,"名")),t.abrupt("return");case 15:t.next=20;break;case 17:if(this.checkboxSelectIds.length==this.form.studentNum){t.next=20;break}return this.$toast("请选择学生".concat(this.form.studentNum,"名,当前选择").concat(this.checkboxSelectIds.length,"名")),t.abrupt("return");case 20:if(r=e.onlineClassesNums||0,e.onlineClassesNums&&e.onlineClassesNums.length>0&&(r=Number(e.onlineClassesNums)),s=e.offlineClassesNums||0,e.offlineClassesNums&&e.offlineClassesNums.length>0&&(s=Number(e.offlineClassesNums)),a=""===r,i=""===s,!n.hasOnline||!a){t.next=29;break}return this.$toast("请输入线上课次数"),t.abrupt("return",!1);case 29:if(!n.hasOffline){t.next=36;break}if(!i){t.next=33;break}return this.$toast("请输入线下课次数"),t.abrupt("return",!1);case 33:if(!(e.offlineClassesNums>0)||e.teacherSchoolId){t.next=36;break}return this.$toast("请选择线下课地址"),t.abrupt("return",!1);case 36:if(!n.hasOffline||!n.hasOnline||parseFloat(e.onlineClassesNums||0)+parseFloat(e.offlineClassesNums||0)==this.form.totalClassTime){t.next=39;break}return this.$toast("线上课次数+线下课次数不等于总课次数"),t.abrupt("return");case 39:if(this.checkCourseList()){t.next=41;break}return t.abrupt("return");case 41:if(!(this.scheduleList.length<=0)){t.next=44;break}return this.$toast("课时安排不能为空"),t.abrupt("return",!1);case 44:if(o=this.checkTimeTable(),!o){t.next=48;break}return this.$toast(o),t.abrupt("return");case 48:if(this.setTimeTable(),e.studentIdList=this.checkboxSelectIds.join(","),e.firstStudentId=this.studentList.length>0?this.studentList[0].userId:null,e.onlineClassesNum=Number(e.onlineClassesNums||0),e.offlineClassesNum=Number(e.offlineClassesNums||0),u={courseSchedules:this.timeTable},!this.courseTypeIsVip){t.next=61;break}return u.vipGroupApplyBaseInfo=e,u.giveFlag=!this.typeStatus,t.next=59,this.onPayVip(u);case 59:t.next=68;break;case 61:return u.practiceGroupApplyBaseInfoDto=e,u.practiceGroupApplyBaseInfoDto.studentId=e.studentIdList,u.practiceGroupApplyBaseInfoDto.allCourseNum=e.totalClassTime,u.practiceGroupApplyBaseInfoDto.subjectId=e.subjectIdList,u.giveFlag=!this.typeStatus,t.next=68,this.onPayPractice(u);case 68:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onPayVip:function(){var t=$(G().mark((function t(e){var n=this;return G().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["b"])(e);case 3:this.$toast("排课成功"),setTimeout((function(){n.$router.back()}),1e3),t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),onPayPractice:function(){var t=$(G().mark((function t(e){var n=this;return G().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(h["a"])(e);case 3:this.$toast("排课成功"),setTimeout((function(){n.$router.back()}),1e3),t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),onSelectStudent:function(t){var e=this,n=t||[];this.studentList=n,this.checkboxSelectIds=[],n.forEach((function(t){e.checkboxSelectIds.push(t.userId)})),this.studentStatus=!1},onDelete:function(t,e){var n=this;"student"==t?this.$dialog.confirm({title:"提示",message:"是否删除该学员?",confirmButtonText:"确定",confirmButtonColor:"#269a93",cancelButtonText:"取消"}).then((function(){var t=n.studentList.indexOf(e);-1!==t&&(n.studentList.splice(t,1),n.checkboxSelectIds.splice(t,1))})):"class"==t&&this.$dialog.confirm({title:"提示",message:"是否删除该课时安排?",confirmButtonText:"确定",confirmButtonColor:"#269a93",cancelButtonText:"取消"}).then((function(){var t=n.scheduleList.indexOf(e);-1!==t&&n.scheduleList.splice(t,1)}))},onCurrentConfirm:function(t){this.form.courseStart=i()(t).format("YYYY-MM-DD"),this.dataForm.status=!1},onClassKeyUp:function(t){if(-1==this.teachMode){var e=this.form,n=e.onlineClassesNums,r=e.offlineClassesNums;if(parseInt(n||0)+parseInt(r||0)>=e.totalClassTime)if("offLine"==t){var s=e.totalClassTime-parseInt(n||0);r=s<0?0:s}else{var a=e.totalClassTime-parseInt(r||0);n=a<0?0:a}this.form.onlineClassesNums=n,this.form.offlineClassesNums=r,this.tempOfflineNum=r||0}},onShowTimeTable:function(){if(this.checkCourseList()){var t=this.checkTimeTable();t?this.$toast(t):(this.statusList.classTime=!0,this.setTimeTable())}},checkTimeTable:function(){var t=this.form,e=this.scheduleList,n=parseInt(t.onlineClassesNums?t.onlineClassesNums:0),r=parseInt(t.offlineClassesNums?t.offlineClassesNums:0);this.courseTypeIsVip||(n=parseInt(t.totalClassTime||0));for(var s=!1,a=!1,i=0;i<e.length;i++){var o=e[i];if("线上"==o.type&&(s=!0),"线下"==o.type&&(a=!0),s&&a)break}return n>0&&!s?"请添加线上课时安排":r>0&&!a?"请添加线下课时安排":void console.log(M({},t),n,r,s,a)},setTimeTable:function(){if(this.checkCourseList(!1)){this.timeTable=[];var t=this.form,e=this.scheduleList,n=parseInt(t.onlineClassesNums?t.onlineClassesNums:0),r=parseInt(t.offlineClassesNums?t.offlineClassesNums:0);if(this.courseTypeIsVip||(n=parseInt(t.totalClassTime||0)),!(e.length<=0)){var s=Number(n)+Number(r),a=t.courseStart.replace(/-/gi,"/"),o=new Date(a),u=0;while(s&&s>0){for(var c=0;c<e.length;c++){if(0==n&&0==r)break;var l=e[c].weekIndex-o.getDay();u>0&&0==l&&0==c&&(l+=7),l<0&&(l+=7);var h=this.getThinkDate(o,l),f=(new Date).getTime(),d=new Date(h.replace(/-/gi,"/")+" "+e[c].startTime+":00").getTime();if(f<d){var p={classDate:h,startClassTimeStr:e[c].startTime,endClassTimeStr:e[c].endTime};"线上"==e[c].type&&n>0?(p.teachMode="ONLINE",this.timeTable.push(p),n--,s--):"线下"==e[c].type&&r>0&&(p.teachMode="OFFLINE",this.timeTable.push(p),r--,s--)}}1==e.length?o.setDate(o.getDate()+7):e.every((function(t){return t.weekStr===e[0].weekStr}))&&u++}this.timeTable.sort((function(t,e){var n=i()(i()(t.classDate).format("YYYY-MM-DD")+" "+t.startClassTimeStr+":00").valueOf(),r=i()(i()(e.classDate).format("YYYY-MM-DD")+" "+e.startClassTimeStr+":00").valueOf();return n-r}))}}},getThinkDate:function(t,e){var n=t;return n.setDate(t.getDate()+e),i()(n).format("YYYY-MM-DD")},checkCourseList:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=this.form,n=this.scheduleList||[],r=!1,s=!1;n.forEach((function(t){"线上"==t.type&&(r=!0),"线下"==t.type&&(s=!0)}));var a=this.statusList,i=!e.onlineClassesNums&&e.onlineClassesNums<=0,o=!e.offlineClassesNums&&e.offlineClassesNums<=0;if(a.hasOnline){if(i)return t&&this.$toast("请输入线上课次数"),!1;if(!i&&!r&&e.onlineClassesNums>0)return t&&this.$toast("课时安排缺少线上课类型"),!1}if(a.hasOffline&&!a.hasOnline){if(o)return t&&this.$toast("请输入线下课次数"),!1;if(!o&&!s&&e.offlineClassesNums>0)return t&&this.$toast("课时安排缺少线下课类型"),!1}return a.hasOffline&&a.hasOnline&&parseFloat(e.onlineClassesNums||0)+parseFloat(e.offlineClassesNums||0)!=this.form.totalClassTime?(t&&this.$toast("线上次数+线下课次数不等于总课次数"),!1):!!this.form.courseStart||(t&&this.$toast("请选择排课开始时间"),!1)},formatStatus:function(t,e){return this.teachMode=e,"online"==t&&0==e||("offline"==t&&1==e||-1==e)},formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"===t?"".concat(e,"日"):e}}},P=A,_=(n("2a5d"),Object(p["a"])(P,r,s,!1,null,"79ca80d4",null));e["default"]=_.exports}}]);
|