chunk-59113cea.c1b2ffec.js 128 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-59113cea"],{"0464":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{model:e.list}},[s("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[s("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(s){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(s){e.$set(e.list.form[t.$index],"courseType",s)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,a){return s("el-option",{key:a,attrs:{disabled:e.isOptionDisabled(a),label:e.courseType[a],value:a}})})),1)],1)]}}])}),e._v(" "),e.isCommon?s("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[s("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(s){e.$set(e.list.form[t.$index],"isStudentOptional",s)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,839949015)}):e._e(),e._v(" "),s("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(s){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(s){e.$set(e.list.form[t.$index],"courseTotalMinuties",s)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),s("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseCurrentPrice",s)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseOriginalPrice",s)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?s("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?s("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(s){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?s("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},i=[],r=(s("6762"),s("2fdb"),s("267e")),n=s("ed08"),o=s("92e3"),l=s("6612"),c=s.n(l),u=(s("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:r["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(n["e"])(r["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(o["b"])(o["m"])}},mounted:function(){console.log(this.list,"list"),console.log(this.courseTypeOptions,"courseTypeOptions")},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return c()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},courseItemChange:function(e,t){this.$listeners.priceChange(e,t),this.$refs.form.validateField("form.".concat(t,".courseTotalMinuties"))},validatorCourseTotalMinuties:function(e){var t=this;return function(s,a,i){var r=t.list.form[e].courseType;r&&a>1&&t.classTimeList[r]&&a<t.classTimeList[r]?i(new Error("单节课不得少于".concat(t.classTimeList[r],"分钟"))):i()}}}}),p=u,d=(s("5ead"),s("2877")),m=Object(d["a"])(p,a,i,!1,null,"4045048c",null);t["a"]=m.exports},"04e3":function(e,t,s){},"091d":function(e,t,s){"use strict";s("04e3")},"2c12":function(e,t,s){"use strict";s("634f")},"32de":function(e,t,s){},3949:function(e,t,s){"use strict";s("f603")},"3d13":function(e,t,s){"use strict";s("802e")},"3fa6":function(e,t,s){"use strict";s("a731")},"5ead":function(e,t,s){"use strict";s("b294")},"634f":function(e,t,s){},"6f75":function(e,t,s){},"6fea":function(e,t,s){},"76b8":function(e,t,s){},"7a3c":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():s("el-form-item",{attrs:{label:"课程金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[s("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"请输入缴费金额"},on:{change:e.paymentAmountChange},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),e.isUserType?s("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e()],1)},i=[],r=(s("ed08"),{props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney","courseViewType","paymentType"],data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},mounted:function(){},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}}),n=r,o=(s("bc63"),s("2877")),l=Object(o["a"])(n,a,i,!1,null,"335a3792",null);t["a"]=l.exports},"802e":function(e,t,s){},"8d7f":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,"label-position":"right","label-width":"100px"}},[e.resetName?s("el-form-item",{attrs:{label:"备注",prop:"desc"}},[s("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",rows:3,maxlength:"100","show-word-limit":"",placeholder:"请输入班级备注"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1):s("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.subResetName}},[e._v("确 定")])],1)],1)},i=[],r=s("5530"),n=(s("7f7f"),{props:["detail","resetName"],data:function(){return{form:{name:"",id:"",desc:""}}},computed:{},mounted:function(){this.form.name=this.detail.name,this.form.desc=this.detail.desc,this.form.id=this.detail.id},methods:{subResetName:function(){var e=this;this.$refs.form.validate((function(t){t&&e.$emit("submited",Object(r["a"])({},e.form))}))}}}),o=n,l=s("2877"),c=Object(l["a"])(o,a,i,!1,null,null,null);t["a"]=c.exports},"8f2a":function(e,t,s){"use strict";s.r(t);var a,i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"m-core"},[s("div",{staticClass:"topWrap"},[s("el-form",{attrs:{inline:!0,model:e.topForm},nativeOn:{submit:function(t){return t.stopPropagation(),t.preventDefault(),e.submit(t)},reset:function(t){return t.stopPropagation(),t.preventDefault(),e.reset(t)}}},[s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择班级类型"},model:{value:e.topForm.type,callback:function(t){e.$set(e.topForm,"type","string"===typeof t?t.trim():t)},expression:"topForm.type"}},e._l(e.musicClassTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否有剩余课程"},model:{value:e.topForm.hasCourse,callback:function(t){e.$set(e.topForm,"hasCourse","string"===typeof t?t.trim():t)},expression:"topForm.hasCourse"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1)],1),e._v(" "),s("div",{staticClass:"btnList"},["PROGRESS"==e.team_status?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/coursePostpone",expression:"'courseSchedule/coursePostpone'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.postpone}},[e._v("课程顺延")]):e._e()],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{ref:"multipleTable",attrs:{data:e.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},["PROGRESS"==e.team_status?s("el-table-column",{attrs:{selectable:e.checkSignPostpone,type:"selection",width:"55"}}):e._e(),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"当前班级人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.studentNum)+"人")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?s("div",e._l(t.row.classGroupTeacherMapperList,(function(t,a){return s("p",{key:a},["BISHOP"==t.teacherRole?s("span",[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()])})),0):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?s("div",e._l(t.row.classGroupTeacherMapperList,(function(t,a){return s("p",{key:a},["TEACHING"==t.teacherRole?s("span",[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()])})),0):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.currentClassTimes))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.totalClassTimes))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"是否冻结"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("yesOrNo")(t.row.lockFlag)))])]}}])}),e._v(" "),"PREPARE"==e.team_status||"PROGRESS"==e.team_status?s("el-table-column",{attrs:{align:"center",width:"240px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1!=t.row.lockFlag?[s("div",["MUSIC_NETWORK"!=t.row.type?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("学员调整")]):e._e(),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/classGroupUpdate",expression:"'classGroup/classGroupUpdate'"}],attrs:{type:"text"},on:{click:function(s){return e.resetTeacher(t.row)}}},[e._v("老师调整")]),e._v(" "),(e.permission("classGroup/classGroupUpdate")||e.permission("classGroup/revisionClassGroup")||e.permission("classGroup/revisionAddClassGroup"))&&t.row.studentNum>0&&"PROGRESS"==e.team_status?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.classAdjustment(t.row)}}},[e._v("排课")]):e._e(),e._v(" "),"0"!=t.row.studentNum&&"0"!=t.row.totalClassTimes||!e.permission("classGroup/delSingle")?e._e():s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeClass(t)}}},[e._v("删除")]),e._v(" "),"PROGRESS"==e.team_status&&e.permission("courseSchedule/coursePostpone")&&e.checkSignPostpone(t.row)?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.signPostpone(t.row)}}},[e._v("顺延课程")]):e._e(),e._v(" "),"PROGRESS"==e.team_status&&e.permission("classGroup/update")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetClassName(t.row)}}},[e._v("班级名称调整")]):e._e()],1)]:void 0}}],null,!0)}):e._e()],1),e._v(" "),s("div",{staticClass:"floor"},[s("div",{staticClass:"left"},[e.permission("classGroup/mergeClassSplitClassAffirm")&&"PROGRESS"==e.team_status?s("div",{staticClass:"add",on:{click:e.openStudentReset}},[e._v("\n 拆分班级\n ")]):e._e()]),e._v(" "),"PREPARE"==e.team_status||"PROGRESS"==e.team_status?s("div",{staticClass:"right"},[e.permission("classGroup/create")?s("div",{staticClass:"add",on:{click:e.temporary}},[e._v("\n 新建临时班\n ")]):e._e(),e._v(" "),e.permission("classGroup/create")?s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("NORMAL")}}},[e._v("\n 新建声部班\n ")]):e._e(),e._v(" "),e.permission("classGroup/create")?s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MIX")}}},[e._v("\n 新建合奏班\n ")]):e._e(),e._v(" "),e.permission("classGroup/revisionAddClassGroup")&&1==e.tenantId?s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MUSIC_NETWORK")}}},[e._v("\n 新建乐团网管课\n ")]):e._e(),e._v(" "),e.permission("classGroup/create")?s("div",{staticClass:"add",on:{click:function(t){e.newClassVisible=!0}}},[e._v("\n 基础技能班\n ")]):e._e()]):e._e()])],1)]),e._v(" "),e.teacherVisible?s("el-dialog",{attrs:{title:"老师调整",width:"750px",visible:e.teacherVisible},on:{"update:visible":function(t){e.teacherVisible=t}}},[e.teacherVisible&&e.teacherDetail?s("changeTeacher",{attrs:{classGroupId:e.activeClass,activeType:e.activeType,teacherList:e.teacherList,cooperationList:e.cooperationList,detail:e.teacherDetail},on:{submited:e.teacherSubmited,close:function(t){e.teacherVisible=!1}}}):e._e()],1):e._e(),e._v(" "),e.classNameVisible?s("el-dialog",{attrs:{title:"班级名称调整",width:"400px",visible:e.classNameVisible},on:{"update:visible":function(t){e.classNameVisible=t}}},[s("changeClassName",{attrs:{detail:e.classDetail},on:{submited:e.submitedResetClassName,close:function(t){e.classNameVisible=!1}}})],1):e._e(),e._v(" "),e.studentVisible?s("el-dialog",{attrs:{title:e.isOnlyChangeUser?"学员调整":"新建班级",width:"760px",visible:e.studentVisible},on:{"update:visible":function(t){e.studentVisible=t}}},[s("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,teacherList:e.teacherList,cooperationList:e.cooperationList,isOnlyChangeUser:e.isOnlyChangeUser,isStudentRemove:e.isStudentRemove,activeType:e.activeType},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:function(t){return e.searchStudent(e.activeClass)},submited:e.studentSubmited,close:function(t){e.studentVisible=!1}}})],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"班级排课",width:"1200px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[e.infoVisible?s("classroomSetting",{attrs:{classType:e.classType,teacherList:e.teacherList,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,cooperationList:e.cooperationList,detail:e.infoDetail,studentSubmitedData:e.studentSubmitedData},on:{close:function(t){e.infoVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"新增合奏班",width:"700px",visible:e.MixVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.MixVisible=t}}},[s("div",{staticClass:"studentMask"},[s("div",{staticClass:"left"},[s("div",{staticClass:"wrap"},[s("el-input",{attrs:{placeholder:"请输入合奏班名称"},model:{value:e.className,callback:function(t){e.className="string"===typeof t?t.trim():t},expression:"className"}})],1),e._v(" "),s("div",{staticClass:"chioseStudentList"},[s("h4",{staticStyle:{"padding-left":"10px"}},[e._v("当前已选学生")]),e._v(" "),e._l(e.activeListStudent,(function(t,a){return s("div",{key:a,staticClass:"studentItem"},[e._v("\n "+e._s(t.name)+"\n "),s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeSiginforMix(t)}}},[e._v("删除班级")])],1)}))],2)]),e._v(" "),s("div",{staticClass:"right"},[s("div",{staticClass:"tableList"},[s("el-table",{ref:"mixList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.singleList},on:{"selection-change":e.SelectionMix}},[s("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",width:"120",align:"center",label:"学员声部"}})],1)],1)])]),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNewClass?e._e():s("el-button",{attrs:{type:"primary"},on:{click:e.addSomeStudent}},[e._v("确 定")]),e._v(" "),e.isNewClass?s("el-button",{attrs:{type:"primary"},on:{click:e.setInfoMsg}},[e._v("确 定")]):e._e()],1)]),e._v(" "),s("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[s("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"120px"}},[s("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[s("el-input",{staticStyle:{width:"180px"},model:{value:e.newClassForm.className,callback:function(t){e.$set(e.newClassForm,"className",t)},expression:"newClassForm.className"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请选择班级类型",trigger:"blur"}],prop:"type"}},[1==e.tenantId?s("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.highTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1):s("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.highTypeList1,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop","string"===typeof t?t.trim():t)},expression:"newClassForm.bishop"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"HIGH_ONLINE"==e.newClassForm.type},model:{value:e.newClassForm.expectStudentNum,callback:function(t){e.$set(e.newClassForm,"expectStudentNum",t)},expression:"newClassForm.expectStudentNum"}})],1),e._v(" "),"HIGH_ONLINE"!=e.newClassForm.type&&"HIGH"!=e.newClassForm.type&&e.newClassForm.type&&e.$helpers.permission("is/teacher/findTeachers")?s("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching","string"===typeof t?t.trim():t)},expression:"newClassForm.teaching"}},e._l(e.cooperationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1):e._e(),e._v(" "),"NORMAL"==e.newClassForm.type?s("el-form-item",{key:"HIGH",attrs:{label:"声部",prop:"subjectIdList",rules:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.newClassForm.subjectIdList,callback:function(t){e.$set(e.newClassForm,"subjectIdList",t)},expression:"newClassForm.subjectIdList"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH"==e.newClassForm.type?s("el-form-item",{attrs:{label:"可报名声部",prop:"memo",rules:[{required:!0,message:"请选择可报名声部",trigger:"blur"}]}},[s("select-all",{attrs:{multiple:"",clearable:""},on:{change:e.changeMemo},model:{value:e.newClassForm.memo,callback:function(t){e.$set(e.newClassForm,"memo","string"===typeof t?t.trim():t)},expression:"newClassForm.memo"}},e._l(e.soundList,(function(t,a){return s("el-option",{key:a,attrs:{disabled:t.disabled||e.appoint,label:t.name,value:t.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?s("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"网络教室声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:""},model:{value:e.newClassForm.subjectId,callback:function(t){e.$set(e.newClassForm,"subjectId",t)},expression:"newClassForm.subjectId"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[s("div",[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[s("div",{staticClass:"popoverWrap"},[s("p",[e._v("线上基础技能班规则:")]),e._v(" "),s("p",[e._v("班级数量:")]),e._v(" "),s("p",[e._v("\n 可创建班级数量=各个声部学员数/6向上取整+乐团在读学员数/30向上取整\n ")]),e._v(" "),s("p",[e._v("上低音号、长号学员数合并计算")]),e._v(" "),s("p",[e._v("班级人数:")]),e._v(" "),s("p",[e._v("线上基础技能班人数上限为6人")])]),e._v(" "),s("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("线上基础技能班规则")])],1)],1),e._v(" "),s("div",[s("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")])],1)])],1),e._v(" "),e.studentListModalVisible?s("el-dialog",{attrs:{title:"学员列表",visible:e.studentListModalVisible},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[s("viewStudentList",{attrs:{list:e.studentListModal,showOk:!0},on:{close:function(t){e.studentListModalVisible=!1}}})],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"学员班级调整",width:"800px",visible:e.studentResetVisiable},on:{"update:visible":function(t){e.studentResetVisiable=t}}},[e.studentResetVisiable?s("studentResetView",{attrs:{teacherList:e.teacherList,courseTypesByType:e.courseTypesByType,classList:e.mergeList,soundList:e.activeSoundList},on:{close:e.closeStudentReset}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"课程顺延",visible:e.postponeVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.postponeVisible=t}}},[s("el-form",{ref:"postponeForm",attrs:{model:e.postponeForm,rules:e.postponeRules}},[s("el-form-item",{attrs:{label:"开始日期",prop:"stopTime"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.stopTime,callback:function(t){e.$set(e.postponeForm,"stopTime","string"===typeof t?t.trim():t)},expression:"postponeForm.stopTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"顺延日期",prop:"resetTime"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.options,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.resetTime,callback:function(t){e.$set(e.postponeForm,"resetTime","string"===typeof t?t.trim():t)},expression:"postponeForm.resetTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"跳过节假日"}},[s("el-checkbox",{model:{value:e.postponeForm.holiday,callback:function(t){e.$set(e.postponeForm,"holiday","string"===typeof t?t.trim():t)},expression:"postponeForm.holiday"}})],1)],1),e._v(" "),s("span",{staticStyle:{color:"#f56c6c"}},[e._v("注意:将会把所选班级的课表,「开始日期」之后的全部未开始课程;\n 调整到「顺延日期」之后重新排课,可以勾选跳过节假日;")]),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.postponeVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},r=[],n=(s("ac6a"),s("7f7f"),s("5530")),o=s("c7eb"),l=(s("96cf"),s("1da1")),c=s("b85c"),u=s("1cc7"),p=s("5137"),d=s("d349"),m=(s("99b4"),s("c466")),f=s("5a0c"),h=s.n(f),b=(s("bc3a"),s("92e3")),v=s("a792"),y=s("f927"),g=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,"label-position":"right","label-width":"80px;",inline:!0}},[s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),"HIGH"!=e.type&&"HIGH_ONLINE"!=e.type&&"MUSIC_NETWORK"!=e.type&&e.$helpers.permission("is/teacher/findTeachers")?s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"","collapse-tags":"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.subresetTeacher}},[e._v("确 定")])],1)],1)},_=[],T={props:["teacherList","cooperationList","detail","activeType"],data:function(){return{form:{coreTeacher:"",assistant:[]}}},computed:{type:function(){var e;return null===(e=this.detail)||void 0===e?void 0:e.type}},mounted:function(){var e=this.detail;for(var t in e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.form.coreTeacher=String(e.classGroupTeacherMapperList[t].userId)),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.form.assistant.push(e.classGroupTeacherMapperList[t].userId)},methods:{subresetTeacher:function(){var e=this;this.$refs.form.validate((function(t){t&&e.$emit("submited",Object(n["a"])({},e.form))}))}}},C=T,L=s("2877"),S=Object(L["a"])(C,g,_,!1,null,null,null),w=S.exports,O=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[5==e.classType?s("el-row",[s("el-form-item",{attrs:{label:"班级名称",prop:"className","label-width":"88px",rules:[{required:!0,message:"请填写班级名称"}]}},[s("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.className,callback:function(t){e.$set(e.form,"className","string"===typeof t?t.trim():t)},expression:"form.className"}})],1)],1):e._e(),e._v(" "),Object.keys(e.allClasss).length?s("el-form-item",{staticStyle:{display:"block"},attrs:{label:"排课类型","label-width":"88px"}},e._l(e.allClasss,(function(t,a){return s("el-tag",{key:a,staticClass:"tag",attrs:{effect:e.form.classs[a]?"dark":"plain"},on:{click:function(t){return e.changeTag(a)}}},[e._v(e._s(e.courseTypeListByName[a]))])})),1):e._e(),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂无可排课时长"}}):e._e(),e._v(" "),s("el-collapse",{on:{change:e.collapseChange},model:{value:e.collapses,callback:function(t){e.collapses=t},expression:"collapses"}},e._l(e.form.classs,(function(t,a,i){return s("el-collapse-item",{key:a,attrs:{name:i},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",{staticClass:"title"},[e._v("\n "+e._s(e.courseTypeListByName[a])+",\n "),s("span",[e._v("可排课时长:"+e._s(e.musicCourseSettings[a])+"分钟")]),e._v(" "),s("span",{staticStyle:{color:"#333"}},[e._v("已排课时长:"+e._s(e.musicSurplus[a])+"分钟")])])]},proxy:!0}],null,!0)},[e._v(" "),s("courseItem",{attrs:{surplustime:e.surplustime[a],teacherList:e.teacherList,activeType:e.activeType,cooperationList:e.cooperationList,coreid:e.coreid,assistant:e.assistant,type:a,form:t,prices:e.prices,holidays:e.holidays,selectPrice:e.selectPrices?e.selectPrices[a]:""},on:{setUserTime:e.setUserTime}})],1)})),1)],1),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:e.isEmpty},on:{click:e.submit}},[e._v("下一步")])],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"班级预览",visible:e.previewVisible,"append-to-body":"",width:"900px"},on:{"update:visible":function(t){e.previewVisible=t}}},[s("classrome-preview",{attrs:{types:e.form.classs,details:e.previewList,courseTypeListByName:e.courseTypeListByName,teacherList:e.teacherList,cooperationList:e.cooperationList,coreTeacher:e.form.coreTeacher,assistant:e.form.assistant}}),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.previewVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit("confirmGenerate")}}},[e._v("确认排课")])],1):e._e()],1)],1)},x=[],k=(s("456d"),s("1283")),I=s("704d"),j=s("a7ba"),N=s("1672"),$=s("2ef0"),G=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.typelist}},[s("el-table-column",{attrs:{label:"课程类型",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"课时数",prop:"surplus"}}),e._v(" "),s("el-table-column",{attrs:{label:"总排课时长(分钟)",prop:"courseTotalMinuties"}}),e._v(" "),s("el-table-column",{attrs:{label:"剩余时长(分钟)",prop:"surplusTime"}})],1),e._v(" "),s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.details,"max-height":"300px"}},[s("el-table-column",{attrs:{label:"主教老师",prop:"actualTeacherName"}}),e._v(" "),s("el-table-column",{attrs:{label:"助教老师",prop:"teachingTeacherNames"}}),e._v(" "),s("el-table-column",{attrs:{label:"课程类型",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return s("span",{},[e._v(e._s(e.courseTypeListByName[t.row.type]))])}}])}),e._v(" "),s("el-table-column",{key:"week",attrs:{label:"周次"},scopedSlots:e._u([{key:"default",fn:function(t){return s("span",{},[e._v(e._s(e.weeks[e.$helpers.dayjs(t.row.startClassTime).day()]))])}}])}),e._v(" "),s("el-table-column",{attrs:{label:"开始时间",prop:"startClassTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.startClassTime))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{key:"time",attrs:{label:"课程时长(分钟)"},scopedSlots:e._u([{key:"default",fn:function(t){return s("span",{},[e._v(e._s(e.getTimers(t.row)))])}}])})],1)],1)},M=[],F=(s("6762"),s("2fdb"),{props:{types:{type:Object,default:{}},details:{type:Array,default:[]},courseTypeListByName:{type:Object,default:{}},teacherList:{type:Array,default:[]},cooperationList:{type:Array,default:[]},coreTeacher:{type:String},assistant:{type:Array,default:[]}},data:function(){return{weeks:{0:"星期天",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"}}},computed:{coreTeacherName:function(){var e,t="",s=Object(c["a"])(this.teacherList);try{for(s.s();!(e=s.n()).done;){var a=e.value;if(this.coreTeacher==a.id){t=a.realName;break}}}catch(i){s.e(i)}finally{s.f()}return t},assistantName:function(){var e,t=[],s=Object(c["a"])(this.cooperationList);try{for(s.s();!(e=s.n()).done;){var a=e.value;this.assistant.includes(a.id)&&t.push(a.realName)}}catch(i){s.e(i)}finally{s.f()}return t.join(" ")},typelist:function(){var e=[];for(var t in this.types)if(Object.hasOwnProperty.call(this.types,t)){var s,a=this.types[t],i=0,r=0,n=Object(c["a"])(a.cycle);try{for(n.s();!(s=n.n()).done;){var o=s.value;r+=parseFloat(o.expectCourseNum),i+=parseFloat(o.expectCourseNum)*parseFloat(o.time)}}catch(l){n.e(l)}finally{n.f()}i=a.courseTotalMinuties-i,e.push({name:this.courseTypeListByName[t],cycles:a.cycle.length,courseTotalMinuties:a.courseTotalMinuties,surplus:r,surplusTime:i})}return e}},mounted:function(){console.log(this)},methods:{getTimers:function(e){var t=Object(m["e"])(h()(e.classDate).format("YYYY-MM-DD"),h()(e.startClassTime).format("HH:mm"),h()(e.endClassTime).format("HH:mm"));return t}}}),D=F,P=Object(L["a"])(D,G,M,!1,null,"7acf5b28",null),E=P.exports,V={},R=Object(c["a"])(b["m"]);try{for(R.s();!(a=R.n()).done;){var H=a.value;V[H.value]=H.label}}catch(ht){R.e(ht)}finally{R.f()}var q,A=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var a,i=Object(c["a"])(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;s.push({userId:r,teacherRole:"TEACHING"})}}catch(ht){i.e(ht)}finally{i.f()}}return s},B={props:["activeType","courseTypeList","musicGroupId","detail","studentSubmitedData","classType","musicGroupPaymentCalenderDtos","classIdList","classGroupStudents","selectPrices","classCouresTimeList","teacherList","cooperationList","isCourseNumType"],components:{courseItem:k["a"],"classrome-preview":E},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},allClasss:{},prices:{},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:V,musicCourseSettings:{},musicSurplus:{},previewVisible:!1,previewList:[],holidays:[]}},watch:{courseTypeList:function(){this.setCourseTypeListByName()},studentSubmitedData:function(){this.formatClasss()},detail:function(){this.formatClasss()}},computed:{surplustime:function(){console.log(this.form,"classssurplustime");var e={};for(var t in this.form.classs)if(this.form.classs.hasOwnProperty(t)){var s=this.form.classs[t];e[t]=s.courseTotalMinuties}return e},isEmpty:function(){return Object($["isEmpty"])(this.form.classs)},musicGroup:function(){return I["a"].state.musicGroup}},mounted:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.setCourseTypeListByName(),this.formatClasss(),this.init();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t,s,a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,I["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.musicGroupId}});case 3:return e.next=5,Object(N["u"])({organId:this.musicGroup.organId});case 5:return t=e.sent,e.next=8,Object(j["a"])({group:"holiday"});case 8:if(s=e.sent,this.holidays=JSON.parse(s.data[0].paranValue?s.data[0].paranValue:"[]"),this.prices=t.data,a=[],"{}"==JSON.stringify(this.prices)&&a.push("teamCourseTimer"),this.holidays.length<=0&&a.push("holiday"),!(a.length>0)){e.next=17;break}return this.$bus.$emit("showguide",a),e.abrupt("return");case 17:e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](0),console.log(e.t0);case 22:case"end":return e.stop()}}),e,this,[[0,19]])})));function t(){return e.apply(this,arguments)}return t}(),setCourseTypeListByName:function(){var e,t={},s=Object(c["a"])(this.courseTypeList);try{for(s.s();!(e=s.n()).done;){var a=e.value;t[a.value]=a.label}}catch(ht){s.e(ht)}finally{s.f()}this.courseTypeListByName=t},formatClasss:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t,s,a,i,r,l,p,d,m,f,h,b,v,y,g,_=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.coreid="",this.assistant=[],this.detail){a=this.detail.classGroupTeacherMapperList,i=Object(c["a"])(a||[]);try{for(i.s();!(r=i.n()).done;)l=r.value,"BISHOP"===l.teacherRole&&(this.coreid=String(l.userId)),"TEACHING"===l.teacherRole&&this.assistant.push(l.userId)}catch(ht){i.e(ht)}finally{i.f()}this.$set(this.form,"coreTeacher",String(this.coreid)),this.$set(this.form,"assistant",this.assistant)}if(p=this.detail||null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),d=null===(s=this.detail)||void 0===s?void 0:s.id,p||d){e.next=7;break}return e.abrupt("return");case 7:if(m={},5!=this.classType){e.next=12;break}m.data=this.classCouresTimeList,e.next=22;break;case 12:return e.prev=12,e.next=15,Object(u["mb"])({musicGroupId:this.musicGroupId,studentIds:p,classGroupId:d});case 15:m=e.sent,1==m.data.checkCourseTimesFlag&&this.$confirm("该班级学员剩余时长不一致是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){})).catch((function(e){_.$emit("close")})),e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](12),console.log(e.t0);case 22:if(!(Object.keys(m).length<=0)){e.next=24;break}return e.abrupt("return");case 24:for(f in this.musicCourseSettings=m.data,this.musicCourseSettings)this.musicSurplus[f]=0;h={},b=Object(c["a"])(this.courseTypeList);try{for(b.s();!(v=b.n()).done;)y=v.value,g=y.value,m.data[g]&&(h[g]={courseTotalMinuties:m.data[g],cycle:[{time:this.selectPrices?this.selectPrices[g]:void 0,coreTeacher:this.coreid,assistant:this.assistant,intervalDays:7}]})}catch(ht){b.e(ht)}finally{b.f()}this.allClasss=Object(n["a"])({},h),this.$set(this.form,"classs",h);case 31:case"end":return e.stop()}}),e,this,[[12,19]])})));function t(){return e.apply(this,arguments)}return t}(),changeTag:function(e){var t=Object(n["a"])({},this.form.classs);t[e]?delete t[e]:t[e]=this.allClasss[e],this.$set(this.form,"classs",t)},submit:function(e){var t=this;for(var s in this.musicCourseSettings)if(Object.hasOwnProperty.call(this.musicCourseSettings,s)){var a=this.musicCourseSettings[s],i=this.musicSurplus[s];if(i>a)return void this.$message.error(this.courseTypeListByName[s]+" 课程时长不足")}this.$refs.form.validate(function(){var s=Object(l["a"])(Object(o["a"])().mark((function s(a){var i,r,n,l,c,p;return Object(o["a"])().wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!a){s.next=70;break}for(n in i=[],r=function(s){if(t.form.classs.hasOwnProperty(s)){var a,r,n,o,l=t.form.classs[s],c={type:t.detail?void 0:t.activeType,courseType:s,classGroupName:(null===(a=t.studentSubmitedData)||void 0===a?void 0:a.name)||(null===(r=t.detail)||void 0===r?void 0:r.name)||t.form.className,classGroupId:null===(n=t.detail)||void 0===n?void 0:n.id,musicGroupId:t.musicGroupId,startDate:l.courseTime,classGroupTeacherMapperList:A(t.form.coreTeacher,t.form.assistant),holiday:l.holiday,students:null===(o=t.studentSubmitedData)||void 0===o?void 0:o.seleched,courseTimes:l.cycle.length,courseTimeDtoList:l.cycle.map((function(e){return{classGroupTeacherMapperList:t.formatTeacher(e),courseType:s,dayOfWeek:e.dayOfWeek,endClassTime:e.endClassTime,startClassTime:e.startClassTime,intervalDays:e.intervalDays,startDate:e.startDate,endDate:e.endDate,holiday:e.holiday,expectCourseNum:e.expectCourseNum}}))};e&&"string"===typeof e&&(c[e]=!0),i.push(c)}},t.form.classs)r(n);if(s.prev=4,!t.detail){s.next=35;break}return s.next=8,Object(u["t"])(i);case 8:if(l=s.sent,t.previewVisible=!1,207!=l.code){s.next=19;break}return s.next=13,t.$confirm(l.msg||"当前课程课酬预计为0,是否继续","提示",{type:"warning"});case 13:return i.forEach((function(e){e.allowZeroSalary=!0})),s.next=16,Object(u["t"])(i);case 16:return t.$listeners.submited(),t.$listeners.close(),s.abrupt("return");case 19:if(208!=l.code){s.next=28;break}return s.next=22,t.$confirm(l.msg||"班级剩余排课时长不一致,请再次确认","提示",{type:"warning"});case 22:return i.forEach((function(e){e.checkCourseTimesFlag=!0})),s.next=25,Object(u["t"])(i);case 25:return t.$listeners.submited(),t.$listeners.close(),s.abrupt("return");case 28:if(206!=l.code){s.next=32;break}return t.previewVisible=!0,t.previewList=l.data,s.abrupt("return");case 32:t.$message.success("排课修改成功"),s.next=61;break;case 35:if(1!=t.classType){s.next=41;break}return s.next=38,Object(u["Ec"])(i);case 38:t.$message.success("排课成功"),s.next=61;break;case 41:if(2!=t.classType&&3!=t.classType&&4!=t.classType){s.next=47;break}return s.next=44,Object(u["Dc"])(i);case 44:t.$message.success("排课成功"),s.next=61;break;case 47:if(5!=t.classType){s.next=61;break}return c={},c.musicGroupPaymentCalenderDtos=t.musicGroupPaymentCalenderDtos,c.classGroup4MixDtos=i,c.classGroupIds=t.classIdList,c.studentIds=t.studentSubmitedData.seleched,c.classGroupStudents=t.classGroupStudents,c.classCourseMinuteMap=t.selectPrices,s.next=57,Object(u["bc"])(c);case 57:return p=t.$parent.$parent.$parent.$parent.$parent.$parent.$parent,p.closeStudentReset(),p.getList(),s.abrupt("return");case 61:t.$listeners.submited(),t.$listeners.close(),s.next=68;break;case 65:s.prev=65,s.t0=s["catch"](4),console.log(s.t0);case 68:s.next=71;break;case 70:t.$message.error("请先填写所有表单");case 71:case"end":return s.stop()}}),s,null,[[4,65]])})));return function(e){return s.apply(this,arguments)}}())},collapseChange:function(e){this.collapses=e},changecoreTeacher:function(e){},updateMusicSurplus:function(){},setUserTime:function(e,t){this.$set(this.musicSurplus,t,e||0),this.$forceUpdate()},formatTeacher:function(e){var t,s=[];if(e.coreTeacher){var a={teacherRole:"BISHOP"};a.userId=e.coreTeacher,s.push(a)}return(null===(t=e.assistant)||void 0===t?void 0:t.length)>0&&e.assistant.forEach((function(e){s.push({teacherRole:"TEACHING",userId:e})})),s}}},U=B,W=(s("3d13"),Object(L["a"])(U,O,x,!1,null,"4a9650ad",null)),z=W.exports,K=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"学员班级调整仅支持相同【班级类型】调整,且所选班级的剩余【课程类型】须完全相同若仅选择一个班级,则会为将所选学员从原班级中移除并新建班级",type:"warning",closable:!1,"show-icon":""}}),e._v(" "),s("classListGroup",{ref:"classListGroup",attrs:{classList:e.classList,courseTypesByType:e.courseTypesByType,teacherList:e.teacherList,soundList:e.soundList}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.gotoSecond}},[e._v("下一步")])],1),e._v(" "),s("div",{staticStyle:{clear:"both"}})],1)},Y=[],X=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form}},e._l(e.form.classList,(function(t,a){return s("classListItem",{key:a,attrs:{index:a,item:t,soundList:e.soundList,form:e.form,classList:e.activeClassList},on:{deteleClass:e.deteleClass,filterClassList:e.filterClassList}})})),1),e._v(" "),s("el-dialog",{attrs:{visible:e.showSecondVisable,title:"缴费信息设置","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.showSecondVisable=t}}},[e.showSecondVisable?s("classPayList",{attrs:{classIdList:e.classIdList,addCourseType:e.addCourseType,courseTypesByType:e.courseTypesByType,classMaxCourseNumMap:e.classMaxCourseNumMap,form:e.form,teacherList:e.teacherList,payInfo:e.payInfo},on:{"update:payInfo":function(t){e.payInfo=t},"update:pay-info":function(t){e.payInfo=t},resetPayInfo:e.resetPayInfo,close:function(t){e.showSecondVisable=!1}}}):e._e()],1)],1)},J=[],Z=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级"+(e.index+1),type:"info",closable:e.index>0},on:{close:e.deteleClass}}),e._v(" "),s("el-form-item",{staticStyle:{"padding-left":"20px"},attrs:{label:"选择班级",rules:[{required:!0,message:"请选择班级",trigger:"change"}],prop:"classList."+e.index+".classId"}},[s("el-select",{staticStyle:{"margin-right":"20px"},attrs:{clearable:""},on:{change:e.changeValue},model:{value:e.item.classId,callback:function(t){e.$set(e.item,"classId",t)},expression:"item.classId"}},e._l(e.classList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id,disabled:e.disabled}})})),1),e._v(" "),s("el-button",{staticClass:"studentTitle",attrs:{type:"text",disabled:!e.item.classId},on:{click:e.lookStudentList}},[e._v("学员列表>>")])],1),e._v(" "),s("div",{staticClass:"infomsg"},[e.isNoCourse?s("div",{staticClass:"left"},[s("div",[e._v("暂无剩余课时")])]):s("div",{staticClass:"left"},[e._v("\n 剩余课时:\n "),e._l(e.item.courseList,(function(t,a){return s("div",{key:a},[s("p",{staticStyle:{"margin-right":"5px"}},[e._v("\n "+e._s(e._f("courseTypeFormat")(a))+":"),s("span",[e._v(e._s(t))]),e._v("节\n ")])])}))],2),e._v(" "),s("div",{staticClass:"right"},[e._v("\n 已选学员:\n "),s("p",[s("span",[e._v(e._s(e.item.studentList.length))]),e._v("人\n ")])])]),e._v(" "),e.studentListModalVisible?s("el-dialog",{attrs:{title:"学员列表",width:"1400px",visible:e.studentListModalVisible,"append-to-body":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?s("viewStudentList",{attrs:{soundList:e.soundList,classId:e.item.classId,chioseList:e.item.studentList,showOk:!0,isChiose:!0},on:{close:e.closeStudentView}}):e._e()],1):e._e()],1)},Q=[],ee=s("7a3c"),te=s("0464"),se={props:["item","index","classList","form","soundList"],components:{viewStudentList:v["a"],paymentCycle:ee["a"],extraClass:te["a"]},data:function(){return{studentList:[],studentListModalVisible:!1,organizationCourseUnitPriceSettingsByType:[],eclass:[],isNoCourse:!1,activeClassList:[]}},mounted:function(){this.activeClassList=this.classList},methods:{changeValue:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(t){var s;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.item.studentList=[],!t){e.next=14;break}return e.prev=2,e.next=5,Object(u["X"])({classGroupId:t});case 5:s=e.sent,this.setClassCourse(s.data),this.$emit("filterClassList",t),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](2);case 12:e.next=16;break;case 14:this.setClassCourse({}),this.$emit("filterClassList",null);case 16:case"end":return e.stop()}}),e,this,[[2,10]])})));function t(t){return e.apply(this,arguments)}return t}(),deteleClass:function(){this.$emit("deteleClass",this.index)},lookStudentList:function(){this.item.classId?this.studentListModalVisible=!0:this.$message.error("请先选择班级,再查询学生列表")},closeStudentView:function(e){this.item.studentList=e,this.studentListModalVisible=!1},setClassCourse:function(e){Object.keys(e).length>0?(this.item.courseList=e,this.isNoCourse=!1):this.isNoCourse=!0},priceChange:function(){},syncAllMoney:function(){}}},ae=se,ie=(s("091d"),Object(L["a"])(ae,Z,Q,!1,null,"d4101f8e",null)),re=ie.exports,ne=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{attrs:{title:"课程时长设置",type:"info",closable:!1}}),e._v(" "),s("el-form",{ref:"courseTimeForms",staticStyle:{"margin-top":"20px"},attrs:{model:e.courseTimeForm,inline:!0}},e._l(e.courseTimeForm.timeList,(function(t,a){return s("el-form-item",{key:a,attrs:{label:t.label,prop:"timeList."+a+".value",rules:[{required:!0,message:"请选择课程时长",trigger:"blur"}],"label-width":"100px"}},[s("el-select",{attrs:{clearable:"",placeholder:"请选择课程时长"},on:{change:function(s){return e.setCourseTime(t,s)}},model:{value:t.value,callback:function(s){e.$set(t,"value",s)},expression:"item.value"}},e._l(t.list,(function(e,t){return s("el-option",{key:t,attrs:{value:e,label:e}})})),1)],1)})),1),e._v(" "),e._l(e.form.classList,(function(t,a){return s("classPayListItem",{key:a,ref:"base",refInFor:!0,attrs:{payInfo:e.payInfo,courseTypesByType:e.courseTypesByType,item:t,index:a}})})),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.close}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.gotoLast}},[e._v("下一步")])],1),e._v(" "),s("div",{staticStyle:{clear:"both"}}),e._v(" "),s("el-dialog",{attrs:{visible:e.showLastVisable,title:"结果确认","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.showLastVisable=t}}},[e.showLastVisable?s("classSetting",{ref:"classSetting",attrs:{form:e.form,musicGroupPaymentCalenderDtos:e.musicGroupPaymentCalenderDtos,classType:5,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,studentSubmitedData:e.studentSubmitedData,classIdList:e.classIdList,classGroupStudents:e.classGroupStudents,selectPrices:e.classCourseMinuteMap,classCouresTimeList:e.classCouresTimeList,teacherList:e.teacherList,cooperationList:e.teacherList},on:{close:function(t){e.showLastVisable=!1}}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.showLastVisable=!1}}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)],2)},oe=[],le=(s("28a5"),s("2909")),ce=s("ade3"),ue=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程名称",prop:"name"}},[s("el-input",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请输入课程名称"},model:{value:e.maskForm.name,callback:function(t){e.$set(e.maskForm,"name","string"===typeof t?t.trim():t)},expression:"maskForm.name"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),e.$helpers.permission("is/teacher/findTeachers")?s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1):e._e()],1),e._v(" "),s("viewStudentList",{attrs:{list:e.studentList,isChiose:!1,showOk:!1}})],1)],1)},pe=[],de=(s("0a1a"),{props:["musicGroupPaymentCalenderDtos","form"],components:{viewStudentList:v["a"]},data:function(){return{maskForm:{teacher:null,assistant:null,name:null},maskRules:{name:[{required:!0,message:"请输入课程名称",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}]},studentList:[],teacherList:[]}},mounted:function(){var e=this;this.$store.dispatch("setTeachers"),this.teacherList=this.selects.teachers,this.studentList=[],this.form.classList.forEach((function(t){e.studentList=e.studentList.concat(t.studentList)}))},methods:{submitResetClass:function(){}}}),me=de,fe=Object(L["a"])(me,ue,pe,!1,null,"4c516a2d",null),he=fe.exports,be=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级"+(e.index+1),type:"info",closable:!1}}),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("p",{staticClass:"classTitle"},[e._v("\n 班级: "),s("span",[e._v(e._s(e.className))])])]),e._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"rightBtn"},[s("el-button",{staticClass:"studentTitle",attrs:{type:"text",disabled:!e.item.classId},on:{click:function(t){e.studentListModalVisible=!0}}},[e._v("学员列表>>")])],1)])],1),e._v(" "),s("div",{staticClass:"infomsg"},[Object.keys(e.item.courseList).length>0?s("div",{staticClass:"left"},[e._v("\n 剩余课时:\n "),e._l(e.item.courseList,(function(t,a){return s("div",{key:a},[s("p",{staticStyle:{"margin-right":"5px"}},[e._v("\n "+e._s(e._f("courseTypeFormat")(a))+":"),s("span",[e._v(e._s(t))]),e._v("节\n ")])])}))],2):s("div",{staticClass:"left"},[s("div",[e._v("暂无剩余课时")])]),e._v(" "),s("div",{staticClass:"right"},[e._v("\n 已选学员:\n "),s("p",[s("span",[e._v(e._s(e.item.studentList.length))]),e._v("人\n ")])])]),e._v(" "),Object.keys(e.payItem).length>0?s("extraClass",{ref:"eclass",staticClass:"extraClass",attrs:{form:e.corusePayList,isUserType:!0,isCommon:!1,isDisabled:!0,courseUnitPriceSettingsByType:e.courseTypesByType},on:{priceChange:e.priceChange,moneyChange:e.syncAllMoney}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?s("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isUserType:!0,isCommon:!0,isDisabled:!0}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?s("otherform",{ref:"other",attrs:{form:e.other}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?e._e():s("p",{staticClass:"noMore"},[e._v("\n 无需增加缴费周期\n ")]),e._v(" "),e.studentListModalVisible?s("el-dialog",{attrs:{title:"学员列表",width:"700px",visible:e.studentListModalVisible,"append-to-body":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?s("viewStudentList",{attrs:{list:e.item.studentList,showOk:!0,isChiose:!1},on:{close:function(t){e.studentListModalVisible=!1}}}):e._e()],1):e._e()],1)},ve=[],ye=s("15fd"),ge=s("ed08"),_e=s("b133"),Te=["leixing"],Ce=["paymentDate","paymentValid","paymentPattern"],Le={props:["item","index","payInfo","courseTypesByType"],components:{viewStudentList:v["a"],paymentCycle:ee["a"],extraClass:te["a"],otherform:_e["a"]},data:function(){return{corusePayList:[],eclass:[],className:"",studentListModalVisible:!1,isNoCourse:!1,payItem:{},cycle:{paymentAmount:null,paymentPattern:null},other:{}}},mounted:function(){var e,t,s=this;this.musicGroupId=this.$route.query.id;null===(e=this.item)||void 0===e||null===(t=e.classList)||void 0===t||t.map((function(e){return e.id==s.item.classId&&(s.className=e.name),e.id}));for(var a in this.payInfo)if(this.payInfo.hasOwnProperty(a)&&this.item.classId==a){this.payItem=this.payInfo[a];break}if(Object.keys(this.payItem).length>0)for(var i in this.corusePayList=[],this.payItem)this.payItem.hasOwnProperty(i)&&this.corusePayList.push(this.payItem[i])},methods:{priceChange:function(e,t){var s=Object(le["a"])(this.corusePayList);console.log("_",s);var a=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=((e.courseTotalMinuties||1)*(a.unitPrice||1)).toFixed(2);e.courseCurrentPrice=i,e.courseOriginalPrice=i,s[t]=e,this.corusePayList=Object(le["a"])(s),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,s=Object(c["a"])(this.corusePayList);try{for(s.s();!(e=s.n()).done;){var a=e.value;t+=a.courseCurrentPrice}}catch(ht){s.e(ht)}finally{s.f()}this.cycle=Object(n["a"])(Object(n["a"])({},this.cycle),{},{paymentAmount:t})},getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},getData:function(){var e,t=this.getForms(),s=[],a=Object(c["a"])(t);try{var i=function(){var t=e.value;t.validate((function(e){e&&s.push(t)}))};for(a.s();!(e=a.n()).done;)i()}catch(ht){a.e(ht)}finally{a.f()}if(console.log(s.length,t.length),s.length===t.length){if(Object.keys(this.payItem).length>0){var r=Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.form),this.other),{},{musicGroupPaymentCalenderCourseSettingsList:this.corusePayList}),o=(r.leixing,Object(ye["a"])(r,Te));if(this.$refs.cycle){var l,u,p=this.cycle,d=p.paymentDate,m=p.paymentValid,f=p.paymentPattern,h=Object(ye["a"])(p,Ce);o.paymentPattern=f,o.payUserType="STUDENT",o.paymentType="ADD_COURSE",o.studentIds=null===(l=this.item)||void 0===l||null===(u=l.studentList)||void 0===u?void 0:u.map((function(e){return e.userId})).join(","),o.musicGroupPaymentDateRangeList=[Object(n["a"])(Object(n["a"])(Object(n["a"])({},h),Object(ge["d"])(d,["startPaymentDate","deadlinePaymentDate"])),Object(ge["d"])(m,["paymentValidStartDate","paymentValidEndDate"]))]}var b=Object(n["a"])(Object(n["a"])({},o),{},{isGiveMusicNetwork:!1,musicGroupId:this.musicGroupId});return b}return null}return this.$message.error("请填写必要信息"),"error"}},watch:{payInfo:{deep:!0,immediate:!0,handler:function(e,t){console.log("调用了change方法"),this.syncAllMoney()}}}},Se=Le,we=(s("e740"),Object(L["a"])(Se,be,ve,!1,null,"2e19bd86",null)),Oe=we.exports,xe=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[5==e.classType?s("el-row",[s("el-form-item",{attrs:{label:"班级名称",prop:"className","label-width":"88px",rules:[{required:!0,message:"请填写班级名称"}]}},[s("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.className,callback:function(t){e.$set(e.form,"className","string"===typeof t?t.trim():t)},expression:"form.className"}})],1)],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher","label-width":"88px",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},on:{change:e.changecoreTeacher},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),"HIGH"!=e.activeType&&"HIGH_ONLINE"!=e.activeType&&"MUSIC_NETWORK"!=e.activeType&&e.$helpers.permission("is/teacher/findTeachers")?s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1):e._e(),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂无可排课时长"}}):e._e(),e._v(" "),s("el-collapse",{on:{change:e.collapseChange},model:{value:e.collapses,callback:function(t){e.collapses=t},expression:"collapses"}},e._l(e.form.classs,(function(t,a,i){return s("el-collapse-item",{key:a,attrs:{name:i},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",{staticClass:"title"},[e._v("\n "+e._s(e.courseTypeListByName[a])+",\n "),s("span",[e._v("可排课时长"+e._s(e.musicCourseSettings[a])+"分钟")])])]},proxy:!0}],null,!0)},[e._v(" "),s("courseItem",{attrs:{surplustime:e.surplustime[a],type:a,form:t,prices:e.prices,selectPrice:e.selectPrices?e.selectPrices[a]:""}})],1)})),1)],1),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:e.isEmpty},on:{click:e.submit}},[e._v("确 定")])],1):e._e()],1)},ke=[],Ie=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form-item",{attrs:{label:"排课起始时间","label-width":"112px",prop:"classs."+e.type+".courseTime",rules:[{required:!0,message:"请选择排课起始时间"}]}},[s("el-date-picker",{staticStyle:{width:"100%!important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.form.courseTime,callback:function(t){e.$set(e.form,"courseTime","string"===typeof t?t.trim():t)},expression:"form.courseTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"跳过节假日",prop:"classs."+e.type+".holiday",rules:[{required:!0,message:"否跳过节假日"}]}},[s("el-radio-group",{model:{value:e.form.holiday,callback:function(t){e.$set(e.form,"holiday",t)},expression:"form.holiday"}},[s("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form&&e.form.cycle?s("el-table",{attrs:{data:e.form.cycle}},[s("el-table-column",{attrs:{prop:"dayOfWeek",label:"循环周期",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{"inline-message":"",rules:[{required:!0,message:"请选择循环周期"}],prop:"classs."+e.type+".cycle."+t.$index+".dayOfWeek"}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择循环周期",clearable:"",filterable:""},model:{value:t.row.dayOfWeek,callback:function(s){e.$set(t.row,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"scope.row.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,4175215940)}),e._v(" "),s("el-table-column",{attrs:{prop:"time",label:"课程时长(分)",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".time",rules:[{required:!0,message:"请选择课程时长"}],"inline-message":""}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择课程时长",clearable:"",disabled:!!e.selectPrice,filterable:""},on:{change:function(s){return e.startTimeChange(t.row)}},model:{value:t.row.time,callback:function(s){e.$set(t.row,"time","string"===typeof s?s.trim():s)},expression:"scope.row.time"}},e._l(e.pricesArray,(function(a,i){return s("el-option",{key:i,attrs:{disabled:e.surplustime+(parseFloat(t.row.time)||0)<a,label:a,value:a}})})),1)],1)]}}],null,!1,3569340815)}),e._v(" "),s("el-table-column",{attrs:{prop:"startClassTime",label:"开始时间",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".startClassTime",rules:[{required:!0,message:"请选择开始时间"}],"inline-message":""}},[s("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:["06:00:00 - 23:59:59"]}},on:{change:function(s){return e.startTimeChange(t.row)}},model:{value:t.row.startClassTime,callback:function(s){e.$set(t.row,"startClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.startClassTime"}})],1)]}}],null,!1,99910147)}),e._v(" "),s("el-table-column",{attrs:{prop:"endClassTime",label:"结束时间",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".endClassTime","inline-message":""}},[s("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm",disabled:"","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:[t.row.startClassTime+":00 - 23:59:59"]}},model:{value:t.row.endClassTime,callback:function(s){e.$set(t.row,"endClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.endClassTime"}})],1)]}}],null,!1,3285712210)}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.cycle.length>1?s("i",{staticClass:"close-icon el-icon-circle-close",on:{click:function(s){return e.remove(t.$index)}}}):e._e()]}}],null,!1,2187597216)})],1):e._e(),e._v(" "),s("el-button",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{icon:"el-icon-circle-plus-outline",type:"info",plain:"",disabled:e.surplustime<(e.selectPrice||Math.min.apply(Math,e.pricesArray))},on:{click:e.create}},[e._v("添加循环")])],1)},je=[],Ne={},$e=Object(c["a"])(b["m"]);try{for($e.s();!(q=$e.n()).done;){var Ge=q.value;Ne[Ge.value]=Ge.label}}catch(ht){$e.e(ht)}finally{$e.f()}var Me,Fe={props:["form","type","surplustime","prices","selectPrice"],data:function(){return{classTimeListByType:Ne}},computed:{pickerOptions:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},weekDateList:function(){return[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]},pricesArray:function(){return(this.prices[this.type]||"").split(",").filter((function(e){return!!e}))}},methods:{create:function(){var e={};this.selectPrice&&(e.time=this.selectPrice),this.form.cycle.push(e)},remove:function(e){this.form.cycle.splice(e,1)},startTimeChange:function(e){if(e.time&&e.startClassTime){var t=h()(new Date).format("YYYY-MM-DD");this.$set(e,"endClassTime",Object(m["d"])(t,e.startClassTime,e.time))}else this.$set(e,"endClassTime","")}}},De=Fe,Pe=(s("c351"),Object(L["a"])(De,Ie,je,!1,null,"6bc762d0",null)),Ee=Pe.exports,Ve={},Re=Object(c["a"])(b["m"]);try{for(Re.s();!(Me=Re.n()).done;){var He=Me.value;Ve[He.value]=He.label}}catch(ht){Re.e(ht)}finally{Re.f()}var qe=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var a,i=Object(c["a"])(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;s.push({userId:r,teacherRole:"TEACHING"})}}catch(ht){i.e(ht)}finally{i.f()}}return s},Ae=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0,a=0,i=Object(c["a"])(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;a+=parseFloat(parseFloat(r[s]||0).toFixed(2)||0)}}catch(ht){i.e(ht)}finally{i.f()}return a},Be={props:["activeType","courseTypeList","musicGroupId","detail","studentSubmitedData","classType","musicGroupPaymentCalenderDtos","classIdList","classGroupStudents","selectPrices","classCouresTimeList","teacherList","cooperationList"],components:{courseItem:Ee},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},allClasss:{},prices:{},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:Ve,musicCourseSettings:{}}},watch:{courseTypeList:function(){this.setCourseTypeListByName()},studentSubmitedData:function(){this.formatClasss()},detail:function(){this.formatClasss()}},computed:{surplustime:function(){var e={};for(var t in this.form.classs)if(this.form.classs.hasOwnProperty(t)){var s=this.form.classs[t];e[t]=s.courseTotalMinuties-Ae(s.cycle,"time")}return e},isEmpty:function(){return Object($["isEmpty"])(this.form.classs)},musicGroup:function(){return I["a"].state.musicGroup}},mounted:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,I["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.musicGroupId}});case 3:return e.next=5,Object(N["u"])({organId:this.musicGroup.organId});case 5:if(t=e.sent,this.prices=t.data,"{}"!=JSON.stringify(this.prices)){e.next=10;break}return this.$bus.$emit("showguide",["teamCourseTimer"]),e.abrupt("return");case 10:e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](0);case 14:this.setCourseTypeListByName(),this.formatClasss();case 16:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{setCourseTypeListByName:function(){var e,t={},s=Object(c["a"])(this.courseTypeList);try{for(s.s();!(e=s.n()).done;){var a=e.value;t[a.value]=a.label}}catch(ht){s.e(ht)}finally{s.f()}this.courseTypeListByName=t},formatClasss:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t,s,a,i,r,l,p,d,m,f,h,b,v,y,g,_;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.detail){a="",i=[],r=this.detail.classGroupTeacherMapperList,l=Object(c["a"])(r||[]);try{for(l.s();!(p=l.n()).done;)d=p.value,"BISHOP"===d.teacherRole&&(a=String(d.userId)),"TEACHING"===d.teacherRole&&i.push(d.userId)}catch(ht){l.e(ht)}finally{l.f()}this.$set(this.form,"coreTeacher",String(a)),this.$set(this.form,"assistant",i)}if(m=this.detail||null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),f=null===(s=this.detail)||void 0===s?void 0:s.id,m||f){e.next=5;break}return e.abrupt("return");case 5:if(h={},5!=this.classType){e.next=10;break}h.data=this.classCouresTimeList,e.next=19;break;case 10:return e.prev=10,e.next=13,Object(u["mb"])({musicGroupId:this.musicGroupId,studentIds:m,classGroupId:f});case 13:h=e.sent,e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](10),console.log(e.t0);case 19:if(!(Object.keys(h).length<=0)){e.next=21;break}return e.abrupt("return");case 21:this.musicCourseSettings=h.data,b={},v=Object(c["a"])(this.courseTypeList);try{for(v.s();!(y=v.n()).done;)g=y.value,_=g.value,h.data[_]&&(b[_]={courseTotalMinuties:h.data[_],cycle:[{time:this.selectPrices?this.selectPrices[_]:void 0}]})}catch(ht){v.e(ht)}finally{v.f()}this.allClasss=Object(n["a"])({},b),this.$set(this.form,"classs",b);case 27:case"end":return e.stop()}}),e,this,[[10,16]])})));function t(){return e.apply(this,arguments)}return t}(),changeTag:function(e){var t=Object(n["a"])({},this.form.classs);t[e]?delete t[e]:t[e]=this.allClasss[e],this.$set(this.form,"classs",t)},submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(s){var a,i,r,n,c,p;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=50;break}for(r in a=[],i=function(t){if(e.form.classs.hasOwnProperty(t)){var s,i,r,n,o=e.form.classs[t];a.push({type:e.detail?void 0:e.activeType,courseType:t,classGroupName:(null===(s=e.studentSubmitedData)||void 0===s?void 0:s.name)||(null===(i=e.detail)||void 0===i?void 0:i.name)||e.form.className,classGroupId:null===(r=e.detail)||void 0===r?void 0:r.id,musicGroupId:e.musicGroupId,startDate:o.courseTime,classGroupTeacherMapperList:qe(e.form.coreTeacher,e.form.assistant),holiday:o.holiday,students:null===(n=e.studentSubmitedData)||void 0===n?void 0:n.seleched,courseTimes:o.cycle.length,courseTimeDtoList:o.cycle.map((function(e){return{courseType:t,dayOfWeek:e.dayOfWeek,endClassTime:e.endClassTime,startClassTime:e.startClassTime}}))})}},e.form.classs)i(r);if(t.prev=4,!e.detail){t.next=15;break}return t.next=8,Object(u["t"])(a);case 8:if(n=t.sent,206!=n.code){t.next=12;break}return e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.forEach((function(e){e.allowZeroSalary=!0})),t.next=3,Object(u["t"])(a);case 3:e.$listeners.submited(),e.$listeners.close();case 5:case"end":return t.stop()}}),t)})))).catch((function(){})),t.abrupt("return");case 12:e.$message.success("排课修改成功"),t.next=41;break;case 15:if(1!=e.classType){t.next=21;break}return t.next=18,Object(u["Ec"])(a);case 18:e.$message.success("排课成功"),t.next=41;break;case 21:if(2!=e.classType&&3!=e.classType&&4!=e.classType){t.next=27;break}return t.next=24,Object(u["Dc"])(a);case 24:e.$message.success("排课成功"),t.next=41;break;case 27:if(5!=e.classType){t.next=41;break}return c={},c.musicGroupPaymentCalenderDtos=e.musicGroupPaymentCalenderDtos,c.classGroup4MixDtos=a,c.classGroupIds=e.classIdList,c.studentIds=e.studentSubmitedData.seleched,c.classGroupStudents=e.classGroupStudents,c.classCourseMinuteMap=e.selectPrices,t.next=37,Object(u["bc"])(c);case 37:return p=e.$parent.$parent.$parent.$parent.$parent.$parent.$parent,p.closeStudentReset(),p.getList(),t.abrupt("return");case 41:e.$listeners.submited(),e.$listeners.close(),t.next=48;break;case 45:t.prev=45,t.t0=t["catch"](4),console.log(t.t0);case 48:t.next=51;break;case 50:e.$message.error("请先填写所有表单");case 51:case"end":return t.stop()}}),t,null,[[4,45]])})));return function(e){return t.apply(this,arguments)}}())},collapseChange:function(e){this.collapses=e},changecoreTeacher:function(e){}}},Ue=Be,We=(s("2c12"),Object(L["a"])(Ue,xe,ke,!1,null,"3fadfe8b",null)),ze=We.exports,Ke=s("fa7d"),Ye=s("267e"),Xe={props:["form","payInfo","courseTypesByType","classIdList","addCourseType","classMaxCourseNumMap","teacherList"],components:{classNewInfo:he,classPayListItem:Oe,classSetting:ze},data:function(){return{showLastVisable:!1,musicGroupPaymentCalenderDtos:null,teacherList:[],studentList:[],teamid:"",activeType:"",courseTypeList:[],studentSubmitedData:{},classGroupStudents:[],courseTimeForm:{timeList:[]},organId:"",organCourseTime:{},classCourseMinuteMap:{}}},mounted:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,I["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.teamid}}).then(function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(s){var a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.organId=s.data.musicGroup.organId,e.prev=1,e.next=4,Object(u["vb"])({organId:t.organId});case 4:a=e.sent,t.organCourseTime=a.data,t.setTimeList(a.data),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){var e=this;this.studentList=[];var t=[];for(var s in this.form.classList.forEach((function(s){e.studentList=e.studentList.concat(s.studentList);var a=[];s.studentList.forEach((function(e){a.push(e.userId)})),t.push(Object(ce["a"])({},s.classId,a.join(",")))})),this.classGroupStudents=t,this.teamid=this.$route.query.id,this.activeType=this.form.classList[0].type,this.courseTypeList=Object(Ke["a"])(this.activeType),this.studentSubmitedData={name:"",seleched:this.studentList.map((function(e){return e.userId}))},this.courseTimeForm.timeList.map((function(t){e.classCourseMinuteMap[t.type]=t.value})),this.classCouresTimeList={},this.classCourseMinuteMap)this.classCouresTimeList[s]=this.classMaxCourseNumMap[s]*this.classCourseMinuteMap[s];this.showLastVisable=!0},close:function(){this.$emit("close")},getForms:function(){var e=this.$refs;return Object(le["a"])(e.base).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},gotoLast:function(){var e=this;this.$refs.courseTimeForms.validate((function(t){if(t){var s,a=e.getForms(),i=[],r=[],n=Object(c["a"])(a);try{for(n.s();!(s=n.n()).done;){var o=s.value,l=o.getData();"error"==l&&r.push(l),l&&"error"!=l&&i.push(l)}}catch(ht){n.e(ht)}finally{n.f()}if(r.length>0)return;e.musicGroupPaymentCalenderDtos=i,e.init()}}))},submitResetClass:function(){this.$refs.classSetting.submit()},setTimeList:function(e){var t=this;this.addCourseType.map((function(s){var a=[];a=e[s]?e[s].split(","):[Ye["classTime"][s]],t.courseTimeForm.timeList.push({type:s,value:"",label:Ye["courseType"][s],list:a})}))},setCourseTime:function(e,t){console.log(this.payInfo);var s=Object(n["a"])({},this.payInfo);for(var a in s)if(s[a][e.type]){var i=t?t*s[[a]][e.type].unitPrice:0,r=t?t*s[[a]][e.type].courseTotalNum:0;this.$emit("resetPayInfo",e.type,i,r)}this.payInfo=s}}},Je=Xe,Ze=(s("e259"),Object(L["a"])(Je,ne,oe,!1,null,"69f6c886",null)),Qe=Ze.exports,et={props:["classList","courseTypesByType","teacherList","soundList"],components:{classListItem:re,classPayList:Qe},data:function(){return{form:{classList:[{classId:"",studentList:[],courseList:{},index:"",type:"",classList:this.classList}]},showSecondVisable:!1,classIdList:[],activeClassList:[],addCourseType:[]}},mounted:function(){this.activeClassList=this.classList},methods:{addClass:function(){this.form.classList.push({classId:"",studentList:[],courseList:{},index:"",type:"",classList:this.classList})},deteleClass:function(e){this.form.classList.splice(e,1)},gotoSecond:function(){var e=this;this.$refs.form.validate(function(){var t=Object(l["a"])(Object(o["a"])().mark((function t(s){var a,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=19;break}if(a=!1,e.form.classList.forEach((function(e){e.studentList.length<=0&&(a=!0)})),!a){t.next=6;break}return e.$message.error("每个班级至少勾选一名学员"),t.abrupt("return");case 6:return e.classIdList=e.form.classList.map((function(e){return e.classId})),t.prev=7,t.next=10,Object(u["fb"])(e.classIdList);case 10:i=t.sent,e.payInfo=i.data.defaultPaymentCalender,e.addCourseType=i.data.groupTypeSet,e.classMaxCourseNumMap=i.data.classMaxCourseNumMap,e.showSecondVisable=!0,t.next=19;break;case 17:t.prev=17,t.t0=t["catch"](7);case 19:case"end":return t.stop()}}),t,null,[[7,17]])})));return function(e){return t.apply(this,arguments)}}())},filterClassList:function(e){var t,s=[];(this.form.classList.forEach((function(e){e.classId&&s.push(e.classId)})),e)?(this.classList.forEach((function(s){s.id==e&&(t=s)})),this.form.classList.forEach((function(s){s.classId==e&&(s.type=t.type)})),this.activeClassList=this.classList.filter((function(e){return t.type==e.type})),this.addDisabled(s)):0==s.length?this.activeClassList=this.classList:this.addDisabled(s)},addDisabled:function(e){this.activeClassList=this.activeClassList.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{disabled:-1!=e.indexOf(t.id)})}))},resetPayInfo:function(e,t,s){console.log(t,s),console.log(this.payInfo);var a=Object(n["a"])({},this.payInfo);for(var i in a)a[i][e]&&(a[i][e].courseCurrentPrice=t,a[i][e].courseOriginalPrice=t,a[i][e].courseTotalMinuties=parseInt(s));this.payInfo=a}}},tt=et,st=Object(L["a"])(tt,X,J,!1,null,"3dd54c9c",null),at=st.exports,it={props:["classList","courseTypesByType","teacherList","soundList"],components:{classListGroup:at},data:function(){return{}},methods:{close:function(){this.$emit("close")},gotoSecond:function(){this.$refs.classListGroup.gotoSecond()}}},rt=it,nt=(s("af566"),Object(L["a"])(rt,K,Y,!1,null,"f1178090",null)),ot=nt.exports,lt=s("8d7f"),ct=(s("4328"),s("ec8a")),ut=s("b4ac"),pt=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var a,i=Object(c["a"])(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;s.push({userId:r,teacherRole:"TEACHING"})}}catch(ht){i.e(ht)}finally{i.f()}}return s},dt={props:["musicGroupInfo"],name:"tresetClass",components:{viewStudentList:v["a"],selectStudent:y["a"],classroomSetting:z,studentResetView:ot,changeTeacher:w,changeClassName:lt["a"]},data:function(){return{teacherVisible:!1,musicGroupInfos:this.musicGroupInfo,classType:0,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},step:"00:05",teamid:"",topForm:{type:"",hasCourse:""},studentSubmitedData:null,infoDetail:null,classTimeList:b["m"],tableList:[],maxClassList:[],activeSingleList:[],studentListModal:[],studentListModalVisible:!1,resetCourseVisible:!1,resetClassVisible:!1,studentVisible:!1,MixVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!1,isOnlyChangeUser:!1,isStudentRemove:!1,isSearch:!1,isTemporary:!1,className:"",activeClass:"",soundList:[],infoVisible:!1,teacherForm:{isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}],sound:[{required:!0,message:"请选择合声部"}],expectStudentNum:[{required:!0,message:"请填写预计招生人数"}]},weekList:[],teacherList:[],courseTypeList:[],weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],classTypeList:[{value:"NORMAL",label:"声部班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"SNAP",label:"临时班"},{value:"HIGH_ONLINE",label:"线上基础技能班"},{value:"MUSIC_NETWORK",label:"乐团网管课"}],musicClassTypeList:b["H"],highTypeList:[{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能班"}],highTypeList1:[{value:"HIGH",label:"基础技能班"}],cooperationList:[],singleList:[],activeSingleLists:[],activeType:"",resetClassForm:{startTime:"",endTime:"",assistant:[],coreTeacher:""},recourseForm:{courseType:"",checked:!1,courseTime:"",courseNum:""},teacherDetail:null,organId:"",newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:[],memo:[],subjectId:null},classGroupIds:null,maxMun:16,courseTime:"",studentResetVisiable:!1,courseTypesByType:null,mergeList:[],activeSoundList:[],appoint:!1,postponeForm:{stopTime:"",resetTime:"",holiday:!1},postponeVisible:!1,postponeRules:{stopTime:[{required:!0,message:"请选择开始日期",trigger:"blur"}],resetTime:[{required:!0,message:"请选择顺延日期",trigger:"blur"}]},bigin:this.beginDate(),options:this.processDate(),team_status:"",activeList:[],courseViewType:"",tenantId:null,isFirst:!1,classDetail:null,classNameVisible:!1}},created:function(){this.init(),this.getInstitutionRules()},mounted:function(){var e=sessionStorage.getItem("tenantConfig");e=e?JSON.parse(e):{},this.tenantId=e.tenantId},methods:{submit:function(){this.getList()},reset:function(){var e=this;this.topForm={classType:"",hasCourse:""},this.$nextTick((function(){e.getList()}))},getInstitutionRules:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(j["a"])({group:"OFFLINE"});case 3:t=e.sent,this.isFirst=Boolean(t.data[0].createOn),this.isFirst||this.$bus.$emit("showguide",["offline"]),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(ct["a"])(e)},init:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,this.team_status=this.$route.query.team_status,this.musicGroupInfo?(this.organId=this.musicGroupInfos.organId,this.courseViewType=this.musicGroupInfos.courseViewType,this.courseViewType=this.musicGroupInfos.courseViewType):Object(u["Qb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.musicGroupInfos=e.data.musicGroup,t.organId=t.musicGroupInfos.organId,t.courseViewType=t.musicGroupInfos.courseViewType,t.courseViewType=t.musicGroupInfos.courseViewType)})),this.$nextTick(function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(s){var a,i,r,n,l;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!t.organId||null==t.courseViewType){e.next=11;break}return e.next=4,Object(d["n"])({courseViewType:t.courseViewType,organId:t.organId,rows:9999});case 4:a=e.sent,i={},t.courseTypes=a.data.rows,r=Object(c["a"])(t.courseTypes);try{for(r.s();!(n=r.n()).done;)l=n.value,i[l.courseType]=l}catch(ht){r.e(ht)}finally{r.f()}t.courseTypesByType=i,console.log(t.courseTypesByType);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:Object(u["Ob"])({organId:t.organId}).then((function(e){200==e.code&&(t.cooperationList=e.data,t.teacherList=e.data,t.teacherList.length<=0)&&t.$bus.$emit("showguide",["teacher"])})),t.changeMixClass(),Object(u["M"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)}));case 18:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),resetTeacher:function(e){this.teacherVisible=!0,this.teacherDetail=e},teacherSubmited:function(e){var t,s=this,a=this.getSubmitData(e,{classGroupId:null===(t=this.teacherDetail)||void 0===t?void 0:t.id,courseAddType:"onlyUpdateTeacher"});Object(u["t"])(a).then((function(e){200==e.code&&(s.$message.success("修改成功"),s.teacherVisible=!1,s.getList())}))},getSubmitData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[Object(n["a"])({type:this.activeType,classGroupName:null===e||void 0===e?void 0:e.name,musicGroupId:this.teamid,classGroupTeacherMapperList:pt(e.coreTeacher,e.assistant),students:null===e||void 0===e?void 0:e.seleched},t)]},getClassDate:function(e){return{type:this.activeType,name:null===e||void 0===e?void 0:e.name,musicGroupId:this.teamid,subjectIdList:(null===e||void 0===e?void 0:e.sound.length)>0?null===e||void 0===e?void 0:e.sound.join(","):null,teacherMapperList:pt(e.coreTeacher,e.assistant),groupType:"MUSIC"}},submitClass:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(t){var s,a,i=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=this.getSubmitData(t,{onlyCreateClassGroup:!0}),a=this.getClassDate(t),"MUSIC_NETWORK"!=this.activeType){e.next=16;break}return e.prev=3,e.next=6,Object(u["Dc"])(s);case 6:this.$message.success("提交成功"),this.studentVisible=!1,this.getList(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](3),console.log(e.t0);case 14:e.next=17;break;case 16:Object(u["z"])(a).then((function(e){200==e.code&&(i.studentVisible=!1,i.$message.success("提交成功"),i.getList())}));case 17:return e.abrupt("return");case 25:this.$message.success("提交成功"),e.next=34;break;case 28:if(2!=this.classType&&3!=this.classType&&4!=this.classType){e.next=34;break}return console.log(s,"submitClass"),e.abrupt("return");case 33:this.$message.success("提交成功");case 34:this.studentVisible=!1,this.getList(),e.next=41;break;case 38:e.prev=38,e.t1=e["catch"](19),console.log(e.t1);case 41:case"end":return e.stop()}}),e,this,[[3,11],[19,38]])})));function t(t){return e.apply(this,arguments)}return t}(),studentSubmited:function(e){this.isOnlyChangeUser?this.getList():this.submitClass(e)},recourse:function(e){this.weekList=[{week:"",startTime:"",endTime:"",id:new Date}],this.resetCourseVisible=!0},addMix:function(){this.MixVisible=!0},changeActiveChioseSound:function(e){this.activeChioseSound=e},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},changeMixClass:function(e){console.log(e),this.getList(e),this.activeMixClass=e},getList:function(e){var t=this;Object(u["U"])(Object(n["a"])({musicGroupId:this.teamid},this.topForm)).then((function(e){var s;200==e.code&&(t.activeSingleList=e.data,(null===(s=e.data)||void 0===s?void 0:s.length)>0&&(t.mergeList=e.data.filter((function(e){return"MUSIC_NETWORK"!=e.type}))))}))},temporary:function(){this.classType=1,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isOnlyChangeUser=!1,this.isSearch=!0,this.className="",this.isTemporary=!0,this.activeType="SNAP",this.activeChioseSound=null,this.setType("SNAP"),this.getNoClassStudent("SNAP")},setType:function(e){this.courseTypeList=Object(Ke["a"])(e),this.activeSoundList=this.soundList},addNewClass:function(e){var t={NORMAL:2,MUSIC_NETWORK:4};this.isOnlyChangeUser=!1,this.classType=t[e]||3,this.setType(e),this.activeType=e,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.activeChioseSound=null,this.getNoClassStudent(e)},searchStudent:function(e){var t=this;console.log(this.activeChioseSound),"SNAP"==this.activeType?Object(u["Rc"])({musicGroupId:this.teamid,actualSubjectId:this.activeChioseSound}).then((function(e){200==e.code&&(t.studentList=e.data)})):this.getNoClassStudent(this.activeType,this.activeChioseSound,e)},SelectionStudent:function(e){this.chioseStudent=e},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},clearCourse:function(e){var t=this;Object(u["v"])({classGroupId:e.row.id}).then((function(s){200==s.code?(t.$message.success("清除成功"),e._self.$refs[e.$index].doClose(),t.getList(t.activeMixClass)):(t.$message.error(s.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},removeClass:function(e){var t=this;this.$confirm("是否确定删除该班级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["sc"])({classGroupId:e.row.id}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList(t.activeMixClass))})).catch((function(e){}))})).catch((function(){}))},resetClass:function(e){var t=this;this.isOnlyChangeUser=!0,this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.activeChioseSound=null,this.isStudentRemove=e.currentClassTimes==e.totalClassTimes,Object(p["g"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.activeListStudent=e.data.map((function(e){return e.isVisible=!1,e})))})),this.activeSoundList=this.soundList,this.getNoClassStudent(e.type)},classAdjustment:function(e){for(var t in this.infoDetail=e,this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.classGroupTeacherMapperList[t].userId),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.classGroupTeacherMapperList[t].userId);this.infoVisible=!0},getNoClassStudent:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(t,s,a){var i,r=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i={musicGroupId:this.teamid,type:t,actualSubjectId:s,classGroupId:a},e.next=3,Object(u["ub"])(i).then((function(e){200==e.code&&(r.studentList=e.data)}));case 3:case"end":return e.stop()}}),e,this)})));function t(t,s,a){return e.apply(this,arguments)}return t}(),removeStudent:function(e){var t=this;"HIGH_ONLINE"==this.activeType&&this.activeListStudent.length<=3?this.$message.error("线上基础技能课不能小于3人"):Object(p["r"])({classGroupId:this.activeClass,userId:e.userId}).then((function(s){200==s.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(p["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data)})),t.getNoClassStudent(t.activeType))}))},addSomeStudent:function(){var e=this,t=this.chioseStudent.map((function(e){return e.userId}));if(t.length<=0)return this.isNewClass?void this.$message.error("至少添加一名学员"):void(this.studentVisible=!1);"HIGH_ONLINE"==this.activeType?Object(u["Oc"])({classGroupId:this.activeClass}).then((function(s){if(200==s.code){if(e.activeListStudent.length+e.chioseStudent.length>6||e.activeListStudent.length+e.chioseStudent.length<3)return void e.$message.error("线上技能班必须为3-6人");Object(p["b"])({classGroupId:e.activeClass,userIdsStr:t.join(",")}).then((function(t){if(200==t.code)return e.studentVisible=!1,e.$message.success("添加成功"),void e.getList()}))}})):Object(p["b"])({classGroupId:this.activeClass,userIdsStr:t.join(",")}).then((function(t){200==t.code&&(e.studentVisible=!1,e.$message.success("添加成功"),e.getList())}))},SelectionMix:function(e){this.activeSingleLists=e},removeSiginforMix:function(e){for(var t in this.activeSingleLists)this.activeSingleLists[t].id==e.id&&this.$refs["mixList"].toggleRowSelection(e,!1)},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var s in this.studentList)this.studentList[s].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var s={},a=[];for(var i in e)s[e[i][t]]||(a.push(e[i]),s[e[i][t]]=!0);return a},setInfoMsg:function(){if(this.className)if(this.activeListStudent.length<=0)this.$message.error("班级里至少要有一名学生");else{if("HIGH_ONLINE"==this.activeType){if(this.activeListStudent.length>6||this.activeListStudent.length<3)return void this.$message.error("线上技能班必须为3-6人");this.teacherForm.expectStudentNum=this.activeListStudent.length}this.infoVisible=!0}else this.$message.error("请输入班级名称")},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",time:this.courseTime,id:(new Date).getTime()})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},newClassHight:function(){var e=this;this.$refs["newClassForm"].validate((function(t){if(t){var s,a={};if(a.musicGroupId=e.teamid,a.name=e.newClassForm.className,a.type=e.newClassForm.type,a.groupType="MUSIC",a.expectStudentNum=e.newClassForm.expectStudentNum,a.teacherMapperList=[],a.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)s=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(a.memo=e.newClassForm.memo.join(","));else{for(var i in s=e.newClassForm.memo.length>0?e.newClassForm.memo.join(","):null,e.newClassForm.teaching)a.teacherMapperList.push({userId:e.newClassForm.teaching[i],teacherRole:"TEACHING"});a.memo=s}a.subjectIdList=s,Object(u["z"])(a).then((function(t){200==t.code&&(e.$message.success("创建成功"),e.getList(),e.resetClassFrom(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},setAssistant1:function(e){if(e)for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},handleSelectionChange:function(e){this.activeList=e;var t=e.map((function(e){return e.id}));this.activeClass=t.join(",")},chkstu:function(e,t){return"HIGH_ONLINE"==e.type&&e.totalClassTimes<=0||"HIGH"==e.type&&e.totalClassTimes<=0},startRegest:function(){var e=this;this.classGroupIds?this.$confirm("是否开启报名?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["pc"])({classGroupIds:e.classGroupIds,musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("开启成功,已推送".concat(t.data,"名学生")),e.getList())}))})).catch((function(){})):this.$message.error("请至少选择1个基础技能班")},toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},chioseHightype:function(e){this.changeMemo([]),"HIGH_ONLINE"==e&&(this.newClassForm.teaching=[]),this.newClassForm.subjectId="",this.$set(this.newClassForm,"subjectIdList",[]),this.$set(this.newClassForm,"memo",[])},changeStartClassTime:function(e){this.$set(e,"endClassTime","")},changeEndClassTime:function(e,t){this.$set(e,"endClassTime",t)},changeCourseType:function(e){var t=this;console.log(e),e?(this.classTimeList.forEach((function(s){s.value==e&&(t.courseTime=s.label)})),this.weekList=[{week:"",startTime:"",endTime:"",time:this.courseTime,id:(new Date).getTime()}]):(this.courseTime=null,this.weekList=[])},changeStartTimes:function(e,t){if(e&&t.time){var s=h()(new Date).format("YYYY-MM-DD");this.$set(t,"endClassTime",Object(m["d"])(s,e,t.time))}else this.$set(t,"endClassTime",""),this.$message.error("请先设置课程时间");t.endClassTime||this.$set(t,"startClassTime","")},setItem:function(e,t){this.weekList[t].startClassTime="",this.weekList[t].endClassTime="",console.log()},openStudentReset:function(){this.activeSoundList=this.soundList,this.studentResetVisiable=!0},closeStudentReset:function(){this.studentResetVisiable=!1},changeMemo:function(e){},submitInfo:function(){var e=this;this.$refs["postponeForm"].validate((function(t){if(t){var s=e.activeClass,a=e.postponeForm.stopTime,i=e.postponeForm.resetTime,r=e.postponeForm.holiday,n={classGroupIds:s,pauseDate:a,recoveryDate:i,skipHoliday:r};Object(u["y"])(n).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.postponeVisible=!1)}))}}))},postpone:function(){this.activeList.length<=0?this.$message.error("请至少选择一个班级"):this.postponeVisible=!0},checkSignPostpone:function(e){return e.totalClassTimes-e.currentClassTimes>0},handleClose:function(){this.postponeVisible=!1,this.$refs["postponeForm"].resetFields()},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},processDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return e.postponeForm.stopTime?new Date(e.postponeForm.stopTime).getTime()>t.getTime():t.getTime()>Date.now()}}},signPostpone:function(e){this.activeClass=e.id,this.postponeVisible=!0},gotoMemberCourse:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["fc"])({musicGroupId:this.teamid});case 3:e.sent,this.$router.push({path:"/business/memberClassList",query:Object(n["a"])({},this.$route.query)}),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),resetClassName:function(e){this.classDetail=e,this.classNameVisible=!0},submitedResetClassName:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(t){var s,a=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:s=Object(n["a"])({},t),Object(ut["n"])(s).then((function(e){200==e.code&&(a.$message.success("修改成功"),a.classNameVisible=!1,a.getList())}));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},infoVisible:function(e){e||(this.teacherForm={isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},this.infoDetail=null,this.weekList=[])},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())}}},mt=dt,ft=(s("95bd"),Object(L["a"])(mt,i,r,!1,null,"434b432a",null));t["default"]=ft.exports},"95bd":function(e,t,s){"use strict";s("76b8")},a5cb:function(e,t,s){"use strict";s("32de")},a731:function(e,t,s){},a792:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"searchFormRef",staticClass:"forms",attrs:{modal:e.searchForm,inline:""}},[s("el-form-item",{attrs:{prop:"search"}},[s("el-input",{attrs:{placeholder:"请输入姓名/手机号",clearable:""},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"subjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"请选择专业"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"courseType"}},[s("el-select",{attrs:{clearable:"",placeholder:"请选择课程剩余时长"},model:{value:e.searchForm.courseType,callback:function(t){e.$set(e.searchForm,"courseType",t)},expression:"searchForm.courseType"}},e._l(e.courseTypeList,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger"},on:{click:e.onReset}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{ref:"studentTable",attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark","max-height":"300px"},on:{"selection-change":e.handleSelectionChange,select:e.onTableSelect,"select-all":e.onTableSelectALL,"sort-change":e.sortChang}},[e.isChiose?s("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"55"}}):e._e(),e._v(" "),s("el-table-column",{attrs:{prop:"userId",align:"center",width:"80",label:"学员编号"}}),e._v(" "),s("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"80",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("sex")(t.row.gender))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",align:"center",width:"80",label:"专业"}}),e._v(" "),s("el-table-column",{attrs:{prop:"single",align:"center",label:"声部课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.single||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"mix",align:"center",label:"合奏课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.mix||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"trainingSingle",align:"center",label:"集训声部课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.trainingSingle||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"trainingMix",align:"center",label:"集训合奏课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.trainingMix||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"high",align:"center",label:"基础技能课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.high||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"highOnline",align:"center",label:"线上基础技能课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.highOnline||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"comprehensive",align:"center",label:"综合课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.comprehensive||0)+"分钟\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"classroom",align:"center",label:"课堂课",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classroom||0)+"分钟\n ")]}}])})],1),e._v(" "),e.showOk?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("span",{staticStyle:{display:"flex","align-items":"center","font-size":"16px","padding-right":"8px"}},[e._v("当前选中:"),s("span",{staticStyle:{color:"red"}},[e._v(e._s(e.selectList.length||0))]),e._v("人")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$listeners.close(e.selectList)}}},[e._v("确 定")])],1):e._e(),e._v(" "),e.showOk?s("div",{staticStyle:{clear:"both"}}):e._e()],1)},i=[],r=(s("ac6a"),s("7f7f"),s("5530")),n=s("5137"),o={props:["isChiose","chioseList","showOk","disabledList","soundList","search","classId"],data:function(){return{list:[],searchForm:{search:"",courseType:null,subjectId:null,sortField:null,sortType:null},courseTypeList:[{id:"no_course",name:"无排课时长"},{id:"single",name:"声部课"},{id:"mix",name:"合奏课"},{id:"trainingSingle",name:"集训声部课"},{id:"trainingMix",name:"集训合奏课"},{id:"high",name:"基础技能课"},{id:"highOnline",name:"线上基础技能课"},{id:"comprehensive",name:"综合课"},{id:"classroom",name:"课堂课"}],selectList:this.chioseList||[],loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;Object(n["g"])(Object(r["a"])({classGroupId:this.classId},this.searchForm)).then((function(t){var s;200==t.code&&(e.loading=!0,e.list=null===(s=t.data)||void 0===s?void 0:s.map((function(e){return{userId:e.userId,nickName:e.name,gender:e.gender,phone:e.parentsPhone,subjectNames:e.subjectName,single:e.single,mix:e.mix,classroom:e.classroom,comprehensive:e.comprehensive,highOnline:e.highOnline,trainingSingle:e.trainingSingle,trainingMix:e.trainingMix,high:e.high}})),e.$nextTick((function(){if(e.selectList){var t=e.selectList.map((function(e,t){return e.userId}));e.list.forEach((function(s,a){-1!=t.indexOf(s.userId)&&(console.log(t,s.userId),e.$refs.studentTable.toggleRowSelection(s,!0))})),e.loading=!1}})))}))},sortChang:function(e){var t={ascending:"ASC",descending:"DESC"};e.prop&&e.order?(this.searchForm.sortField=e.prop,this.searchForm.sortType=t[e.order]):(this.searchForm.sortField=null,this.searchForm.sortType=null),this.getList()},onSearch:function(){this.getList()},onReset:function(){this.searchForm.search="",this.searchForm.courseType=null,this.searchForm.subjectId=null,this.getList()},handleSelectionChange:function(e){},onTableSelectALL:function(e){var t=this,s=this.list||[];if(e.length>0){var a=this.selectList.map((function(e){return e.userId}));e.forEach((function(e){-1==a.indexOf(e.userId)&&t.selectList.push(e)}))}else{var i=s.map((function(e){return e.userId})),r=this.selectList.map((function(e){return e.userId})),n=[];i.forEach((function(e){-1!==r.indexOf(e)&&n.push(e)})),console.log(i,r,"sids",n);var o=[];this.selectList.forEach((function(e){-1===n.indexOf(e.userId)&&o.push(e)})),this.selectList=o}},onTableSelect:function(e,t){var s=this.selectList.map((function(e){return e.userId})),a=e.map((function(e){return e.userId})),i=-1!==a.indexOf(t.userId);i?-1===s.indexOf(t.userId)&&this.selectList.push(t):-1!==s.indexOf(t.userId)&&this.selectList.splice(s.indexOf(t.userId),1)},clearCom:function(){this.selectList=[],this.$refs.studentTable.clearSelection()},checkSelectable:function(e){var t=!0;return this.disabledList&&this.disabledList.length>0&&this.disabledList.forEach((function(s){s.userId==e.userId&&(t=!1)})),t}}},l=o,c=(s("3949"),s("2877")),u=Object(c["a"])(l,a,i,!1,null,"51cd948a",null);t["a"]=u.exports},af566:function(e,t,s){"use strict";s("6fea")},b133:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[s("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[s("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},i=[],r={props:["form"]},n=r,o=(s("3fa6"),s("2877")),l=Object(o["a"])(n,a,i,!1,null,"8cbe7b52",null);t["a"]=l.exports},b294:function(e,t,s){},b4ac:function(e,t,s){"use strict";s.d(t,"l",(function(){return i})),s.d(t,"q",(function(){return r})),s.d(t,"m",(function(){return n})),s.d(t,"r",(function(){return o})),s.d(t,"i",(function(){return l})),s.d(t,"n",(function(){return c})),s.d(t,"b",(function(){return u})),s.d(t,"g",(function(){return p})),s.d(t,"c",(function(){return d})),s.d(t,"f",(function(){return m})),s.d(t,"p",(function(){return f})),s.d(t,"e",(function(){return h})),s.d(t,"h",(function(){return b})),s.d(t,"a",(function(){return v})),s.d(t,"o",(function(){return y})),s.d(t,"d",(function(){return g})),s.d(t,"k",(function(){return _})),s.d(t,"j",(function(){return T}));var a=s("829b"),i=function(e){return Object(a["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},r=function(e){return Object(a["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},n=function(e){return Object(a["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})},o=function(e){return Object(a["a"])({url:"/api-web/studentManage/updateMemberExperience",data:e,method:"post",requestType:"form"})},l=function(e){return Object(a["a"])({url:"/api-web/classGroup/getMusicGroupCourseScheduleStatistics",params:e,method:"get"})},c=function(e){return Object(a["a"])({url:"/api-web/classGroup/update",params:e,data:e,method:"post"})},u=function(e){return Object(a["a"])({url:"/api-web/studentManage/countStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})},p=function(e){return Object(a["a"])({url:"/api-web/courseScheduleConvert/queryStudent",params:e,method:"get",requestType:"form"})},d=function(e){return Object(a["a"])({url:"/api-web/courseScheduleConvert/action",data:e,method:"post"})},m=function(e){return Object(a["a"])({url:"/api-web/courseScheduleConvert/queryPage",data:e,method:"post"})},f=function(e){return Object(a["a"])({url:"/api-web/courseScheduleConvert/revoke",data:e,params:e,method:"get"})},h=function(e){return Object(a["a"])({url:"/api-web/courseScheduleConvert/queryCourse",data:e,params:e,method:"get"})},b=function(e){return Object(a["a"])({url:"/api-web/musicGroupShippingAddress/queryPage",data:e,params:e,method:"get",requestType:"form"})},v=function(e){return Object(a["a"])({url:"/api-web/musicGroupShippingAddress/add",data:e,method:"post"})},y=function(e){return Object(a["a"])({url:"/api-web/musicGroupShippingAddress/update",data:e,method:"post"})},g=function(e){return Object(a["a"])({url:"/api-web/musicGroupShippingAddress/delete",data:e,params:e,method:"post",requestType:"form"})},_=function(e){return Object(a["a"])({url:"/api-web/musicGroupDeliveryRecord/queryPage",data:e,params:e,method:"get",requestType:"form"})},T=function(e){return Object(a["a"])({url:"/api-web/musicGroupDeliveryRecord/queryGoodsDetail",data:e,params:e,method:"get",requestType:"form"})}},bc63:function(e,t,s){"use strict";s("d37a")},c351:function(e,t,s){"use strict";s("e35c")},c606:function(e,t,s){},d349:function(e,t,s){"use strict";s.d(t,"e",(function(){return u})),s.d(t,"d",(function(){return p})),s.d(t,"f",(function(){return d})),s.d(t,"c",(function(){return m})),s.d(t,"o",(function(){return f})),s.d(t,"D",(function(){return h})),s.d(t,"E",(function(){return b})),s.d(t,"F",(function(){return v})),s.d(t,"i",(function(){return y})),s.d(t,"g",(function(){return g})),s.d(t,"j",(function(){return _})),s.d(t,"r",(function(){return T})),s.d(t,"p",(function(){return C})),s.d(t,"q",(function(){return L})),s.d(t,"h",(function(){return S})),s.d(t,"s",(function(){return w})),s.d(t,"G",(function(){return O})),s.d(t,"k",(function(){return x})),s.d(t,"t",(function(){return k})),s.d(t,"w",(function(){return I})),s.d(t,"u",(function(){return j})),s.d(t,"v",(function(){return N})),s.d(t,"n",(function(){return $})),s.d(t,"b",(function(){return G})),s.d(t,"C",(function(){return M})),s.d(t,"m",(function(){return F})),s.d(t,"B",(function(){return D})),s.d(t,"a",(function(){return P})),s.d(t,"l",(function(){return E})),s.d(t,"y",(function(){return V})),s.d(t,"x",(function(){return R})),s.d(t,"z",(function(){return H})),s.d(t,"A",(function(){return q}));var a=s("15fd"),i=s("b775"),r=s("829b"),n=s("4328"),o=s.n(n),l=["id"],c="/api-web";function u(e){return Object(i["a"])({url:c+"/organization/queryPage",method:"get",params:e})}function p(e){return Object(i["a"])({url:c+"/organization/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(i["a"])({url:c+"/organization/update",method:"post",data:o.a.stringify(e)})}function m(e){return Object(r["a"])({url:c+"/area/queryChild",method:"get",hideLoading:!0,params:e})}function f(e){return Object(i["a"])({url:c+"/area/getParentArea/".concat(e.id),method:"get"})}function h(e){return Object(i["a"])({url:c+"/subject/queryPageByIdOrName",method:"post",data:o.a.stringify(e)})}function b(e){return Object(i["a"])({url:c+"/subject/queryPageTree",method:"get",params:e})}function v(e){return Object(i["a"])({url:c+"/subject/upset",method:"post",data:e})}function y(e){return Object(i["a"])({url:c+"/chargeType/upSet",method:"post",data:e})}function g(e){return Object(i["a"])({url:c+"/chargeType/del/".concat(e),method:"post"})}function _(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function T(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function C(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function L(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function S(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function w(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function O(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function x(e){var t=e.id,s=Object(a["a"])(e,l);return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:s})}function k(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function I(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function j(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function N(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function $(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function G(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/save",method:"post",data:e})}function M(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function F(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function D(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:e})}function P(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function E(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:e})}function V(e){return Object(r["a"])({url:c+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function R(e){return Object(r["a"])({url:c+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function H(e){return Object(r["a"])({url:c+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}function q(e,t){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/querySingle/".concat(e,"/").concat(t),method:"get"})}},d37a:function(e,t,s){},e259:function(e,t,s){"use strict";s("6f75")},e35c:function(e,t,s){},e740:function(e,t,s){"use strict";s("c606")},f603:function(e,t,s){},f927:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": ",inline:"","label-width":"90px"}},[s("el-row",[s("el-col",{attrs:{span:12}},[e.isOnlyChangeUser?e._e():s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[!e.isOnlyChangeUser&&"HIGH"!=e.activeType&&"HIGH_ONLINE"!=e.activeType&&"MUSIC_NETWORK"!=e.activeType&&e.$helpers.permission("is/teacher/findTeachers")?s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"","collapse-tags":"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1):e._e()],1)],1),e._v(" "),s("el-row",[e.showName?s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1):e._e(),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:e.isOnlyChangeUser?"声部筛选":"声部",prop:"sound",rules:e.isOnlyChangeUser||"MUSIC_NETWORK"==e.activeType?null:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("select-all",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择声部"},model:{value:e.form.sound,callback:function(t){e.$set(e.form,"sound",t)},expression:"form.sound"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),e.showName?e._e():s("el-transfer",{class:{hideReturn:!e.canDelUser},attrs:{filterable:"",titles:["所有学员","已选学员"],"filter-placeholder":"请输入学生姓名","filter-method":e.filterStudent,"render-content":e.renderFunc,data:e.data},scopedSlots:e._u([{key:"left-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0},{key:"right-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0}],null,!1,3605062098),model:{value:e.seleched,callback:function(t){e.seleched=t},expression:"seleched"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},i=[],r=s("c7eb"),n=s("5530"),o=(s("96cf"),s("1da1")),l=(s("7f7f"),s("6762"),s("2fdb"),s("2909")),c=s("267e"),u=s("b4ac"),p=s("2ef0"),d={props:["studentList","soundList","activeType","activeListStudent","isOnlyChangeUser","classGroupId","type","teacherList","cooperationList","isStudentRemove"],computed:{data:function(){var e=this;return Object(p["uniqBy"])([].concat(Object(l["a"])(this.studentList),Object(l["a"])(this.activeListStudent)),"userId").filter((function(t){return!e.form.sound.length||(e.form.sound.includes(t.actualSubjectId)||e.seleched.includes(t.userId))})).map((function(e){return{value:e.userId,key:e.userId,name:e.name,subjectName:e.subjectName,gender:c["genderType"][e.gender]}}))},showName:function(){return!this.isOnlyChangeUser&&"MUSIC_NETWORK"!=this.activeType},canDelUser:function(){return"resetTeam"!==this.$route.query.type||!this.isOnlyChangeUser||this.isStudentRemove}},data:function(){return{sound:[],form:{name:"",coreTeacher:"",assistant:"",sound:[]},seleched:[]}},watch:{activeListStudent:function(){this.setSelectedUser()}},mounted:function(){this.setSelectedUser()},methods:{setSelectedUser:function(){var e=this.activeListStudent.map((function(e){return e.userId}));this.seleched=Object(l["a"])(e)},filterStudent:function(e,t){return t.name.indexOf(e)>-1||t.subjectName.indexOf(e)>-1||t.gender.indexOf(e)>-1},renderFunc:function(e,t){return e("div",{class:"line"},[e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.name]),e("span",{class:"select-item"},[t.name])]),e("span",[t.gender]),e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.subjectName]),e("span",{class:"select-item"},[t.subjectName])])])},change:function(e){this.$listeners.changeActiveChioseSound(e),this.$listeners.searchStudent()},submit:function(){var e=this;return!this.isOnlyChangeUser&&"HIGH_ONLINE"==this.activeType&&(this.seleched.length<3||this.seleched.length>5)?this.$message.error("线上技能班必须为3-5人"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length<1&&!this.isStudentRemove?this.$message.error("请选择一名学生"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length>1?this.$message.error("乐团网管课仅可添加一名学生"):void this.$refs.form.validate(function(){var t=Object(o["a"])(Object(r["a"])().mark((function t(s){return Object(r["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=15;break}if(!e.isOnlyChangeUser||"change"===e.type){t.next=14;break}return t.prev=2,t.next=5,Object(u["q"])({classGroupId:e.classGroupId,studentIds:e.seleched.join(",")});case 5:e.$message.success("提交成功"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](2);case 10:e.$listeners.submited(),e.$listeners.close(),t.next=15;break;case 14:e.$listeners.submited(Object(n["a"])(Object(n["a"])({seleched:e.seleched},e.form),{},{soundList:e.sound}));case 15:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}())}}},m=d,f=(s("a5cb"),s("2877")),h=Object(f["a"])(m,a,i,!1,null,"31513acc",null);t["a"]=h.exports},fa7d:function(e,t,s){"use strict";s.d(t,"b",(function(){return i})),s.d(t,"c",(function(){return r})),s.d(t,"a",(function(){return n})),s.d(t,"d",(function(){return o}));var a=s("5530"),i=(s("a481"),s("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e);0==s.getDay()&&(t-=6048e5);var a=t-24*(s.getDay()-1)*60*60*1e3,i=new Date(a),r=i.getFullYear(),n=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),l=r+"-"+n+"-"+o;return l}),r=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e),a=7-s.getDay();7==a&&(a=0);var i=t+24*a*60*60*1e3,r=new Date(i),n=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,l=r.getDate()<10?"0"+r.getDate():r.getDate(),c=n+"-"+o+"-"+l;return c},n=function(e){var t=[];switch(e){case"NORMAL":t=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":t=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":t=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":t=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":t=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":t=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}return t},o=function(e,t){e.$router.replace({query:Object(a["a"])(Object(a["a"])({},e.$route.query),t)})}}}]);