1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1dbc84b6"],{"09f4":function(t,e,s){"use strict";s.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,s,n){return t/=n/2,t<1?s/2*t*t+e:(t--,-s/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,s){var i=a(),o=t-i,c=20,u=0;e="undefined"===typeof e?500:e;var l=function t(){u+=c;var a=Math.easeInOutQuad(u,i,o,e);r(a),u<e?n(t):s&&"function"===typeof s&&s()};l()}},"33c3":function(t,e,s){"use strict";s("3a17")},"3a17":function(t,e,s){},5137:function(t,e,s){"use strict";s.d(e,"o",(function(){return o})),s.d(e,"n",(function(){return c})),s.d(e,"e",(function(){return u})),s.d(e,"d",(function(){return l})),s.d(e,"f",(function(){return d})),s.d(e,"u",(function(){return p})),s.d(e,"p",(function(){return h})),s.d(e,"t",(function(){return m})),s.d(e,"m",(function(){return f})),s.d(e,"s",(function(){return b})),s.d(e,"j",(function(){return g})),s.d(e,"l",(function(){return v})),s.d(e,"a",(function(){return y})),s.d(e,"g",(function(){return _})),s.d(e,"b",(function(){return L})),s.d(e,"r",(function(){return C})),s.d(e,"i",(function(){return w})),s.d(e,"w",(function(){return O})),s.d(e,"v",(function(){return S})),s.d(e,"k",(function(){return k})),s.d(e,"q",(function(){return I})),s.d(e,"x",(function(){return j})),s.d(e,"c",(function(){return x})),s.d(e,"y",(function(){return T})),s.d(e,"z",(function(){return G})),s.d(e,"h",(function(){return $}));var n=s("b775"),r=s("4328"),a=s.n(r),i="/api-web";function o(t){return Object(n["a"])({url:i+"/studentManage/queryStudentList",method:"post",data:t})}function c(t){return Object(n["a"])({url:i+"/studentManage/queryOrganStudentList",method:"get",params:t})}function u(t){return Object(n["a"])({url:i+"/studentManage/findStudentVipGroupClass",method:"get",params:t})}function l(t){return Object(n["a"])({url:i+"/studentManage/findStudentMusicGroups",method:"get",params:t})}function d(t){return Object(n["a"])({url:i+"/studentManage/findStudentVipGroups",method:"get",params:t})}function p(t){return Object(n["a"])({url:i+"/studentWithdraw/queryPage",method:"get",params:t})}function h(t){return Object(n["a"])({url:i+"/studentManage/queryStudentPayment",method:"get",params:t})}function m(t){return Object(n["a"])({url:i+"/order/queryPage",method:"get",params:t})}function f(t){return Object(n["a"])({url:i+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:t})}function b(t){return Object(n["a"])({url:i+"/studentRegistration/batchUpdateSubject",method:"post",data:a.a.stringify(t)})}function g(t){return Object(n["a"])({url:i+"/studentRegistration/queryFeeDetail",method:"get",params:t})}function v(t){return Object(n["a"])({url:i+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:t})}function y(t){return Object(n["a"])({url:i+"/studentRegistration/insertStudent",method:"POST",data:t})}function _(t){return Object(n["a"])({url:i+"/classGroupStudent/findAllStudent",method:"POST",data:a.a.stringify(t)})}function L(t){return Object(n["a"])({url:i+"/classGroupStudent/addStudents",method:"POST",data:a.a.stringify(t)})}function C(t){return Object(n["a"])({url:i+"/classGroupStudent/del",method:"POST",data:a.a.stringify(t)})}function w(t){return Object(n["a"])({url:i+"/studentManage/queryStudentClassGroup",method:"get",params:t})}function O(t){return Object(n["a"])({url:i+"/userCashAccount/updateCourseBalance",method:"post",data:a.a.stringify(t)})}function S(t){return Object(n["a"])({url:i+"/userCashAccount/updateBalance",method:"post",data:a.a.stringify(t)})}function k(t){return Object(n["a"])({url:i+"/studentManage/queryUserByPhone",method:"get",params:t})}function I(t){return Object(n["a"])({url:i+"/studentManage/register",method:"post",data:a.a.stringify(t)})}function j(t){return Object(n["a"])({url:i+"/studentManage/studentUpdate",method:"post",data:a.a.stringify(t)})}function x(t){return Object(n["a"])({url:i+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:t})}function T(t){return Object(n["a"])({url:i+"/userCashAccountDetail/queryPage",method:"get",params:t})}function G(t){return Object(n["a"])({url:i+"/userCoursesAccount/queryPage",method:"get",params:t})}function $(t){return Object(n["a"])({url:i+"/sysUserContracts/getLatest",method:"get",params:t})}},"62c2":function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"m-container"},[s("h2",[s("div",{staticClass:"squrt"}),t._v("\n 班级管理\n "),t.permission("/teamCLassList/abnormal")?s("filter-search",{attrs:{keys:["lessThenThreeHighOnline"],moreKeys:["organId"]},on:{reload:t.reloadSearch}}):t._e()],1),t._v(" "),s("div",{staticClass:"m-core"},[s("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[s("el-form-item",{attrs:{prop:"search"}},[s("el-input",{attrs:{clearable:"",placeholder:"乐团&班级编号名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:function(e){e.target.blur(),t.$refs.searchForm.save(),t.search()}(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),s("el-form-item",{attrs:{prop:"organIdList"}},[s("select-all",{staticClass:"multiple",attrs:{filterable:"",multiple:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organIdList,callback:function(e){t.$set(t.searchForm,"organIdList","string"===typeof e?e.trim():e)},expression:"searchForm.organIdList"}},t._l(t.selects.branchs,(function(t,e){return s("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),s("el-form-item",[s("el-select",{attrs:{filterable:"",placeholder:"课程组类型"},on:{change:function(){t.searchForm.type=""}},model:{value:t.searchForm.groupType,callback:function(e){t.$set(t.searchForm,"groupType","string"===typeof e?e.trim():e)},expression:"searchForm.groupType"}},t._l(t.courseListType,(function(t,e){return s("el-option",{key:e,attrs:{value:t.value,label:t.label}})})),1)],1),t._v(" "),s("el-form-item",{attrs:{prop:"type"}},[s("el-select",{attrs:{filterable:"",clearable:"",disabled:"MUSIC"!=t.searchForm.groupType,placeholder:"班级类型"},model:{value:t.searchForm.type,callback:function(e){t.$set(t.searchForm,"type","string"===typeof e?e.trim():e)},expression:"searchForm.type"}},t._l(t.musicClassTypeList,(function(t,e){return s("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),s("el-form-item",{attrs:{prop:"mainTeacherUserId"}},[s("remote-search",{attrs:{commit:"setTeachers",demissionFlag:!0,isForzenWithQueryCondition:!0},model:{value:t.searchForm.mainTeacherUserId,callback:function(e){t.$set(t.searchForm,"mainTeacherUserId",e)},expression:"searchForm.mainTeacherUserId"}})],1),t._v(" "),s("el-form-item",[s("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),s("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")]),t._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/classGroup",expression:"'export/classGroup'"}],attrs:{type:"primary"},on:{click:t.exportClassGroup}},[t._v("导出")])],1)],1),t._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"musicGroupId",label:"课程组编号"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("copy-text",[t._v(t._s(e.row.musicGroupId))])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"课程组名称"}}),t._v(" "),s("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("copy-text",[t._v(t._s(e.row.organName))])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),t._v(" "),s("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v(t._s(t._f("classType")(e.row.type)))])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"当前班级人数"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v(t._s(e.row.studentNum)+"人")])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.classGroupTeacherMapperList?s("div",t._l(e.row.classGroupTeacherMapperList,(function(e,n){return"BISHOP"==e.teacherRole?s("p",{key:n},[t._v("\n "+t._s(e.userName)+"\n ")]):t._e()})),0):t._e()]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.classGroupTeacherMapperList?s("div",t._l(e.row.classGroupTeacherMapperList,(function(e,n){return"TEACHING"==e.teacherRole?s("p",{key:n},[t._v("\n "+t._s(e.userName)+"\n ")]):t._e()})),0):t._e()]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v(t._s(e.row.currentClassTimes))])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v(t._s(e.row.totalClassTimes))])]}}])}),t._v(" "),s("el-table-column",{attrs:{fixed:"right",width:"160px",align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.permission("classGroup/update")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.resetClassName(e.row,!0)}}},[t._v("班级名称调整")]):t._e(),t._v(" "),t.permission("classGroup/update")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.resetClassName(e.row,!1)}}},[t._v("备注")]):t._e(),t._v(" "),"MUSIC_NETWORK"!=e.row.type&&"MUSIC"==e.row.groupType&&!t.isAddCom(e.row)&&t.permission("classGroup/spanGroupMergeClassSplitClassAffirm")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.addCompound(e.row)}}},[t._v("添加合班")]):t._e(),t._v(" "),t.isAddCom(e.row)&&t.permission("classGroup/spanGroupMergeClassSplitClassAffirm")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.cancleCompound(e.row)}}},[t._v("取消合班")]):t._e(),t._v(" "),!t.permission("classGroup/delSingle?page=teamCLassList")||"MUSIC"!==e.row.groupType||"0"!=e.row.studentNum&&"0"!=e.row.totalClassTimes?t._e():s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.removeClass(e)}}},[t._v("删除")])]}}])})],1),t._v(" "),s("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),t.permission("classGroup/spanGroupMergeClassSplitClassAffirm")&&t.compoundList.length>0?s("classCompound",{attrs:{compoundList:t.compoundList},on:{clearCom:t.clearCom,getList:t.getList,cancleCompound:t.cancleCompound}}):t._e(),t._v(" "),t.classNameVisible?s("el-dialog",{attrs:{title:t.resetName?"备注":"班级名称调整",width:"500px",visible:t.classNameVisible},on:{"update:visible":function(e){t.classNameVisible=e}}},[s("changeClassName",{attrs:{classGroupId:t.activeClass,detail:t.classDetail,resetName:t.resetName},on:{submited:t.submitedResetClassName,close:function(e){t.classNameVisible=!1}}})],1):t._e()],1)},r=[],a=(s("ac6a"),s("5df3"),s("4f7f"),s("75fc")),i=s("db72"),o=s("a8db"),c=s("c80c"),u=(s("96cf"),s("3b8d")),l=(s("c5f6"),s("386d"),s("bc3a"),s("5f87"),s("333d")),d=(s("3908"),s("92e3")),p=s("1cc7"),h=s("ec8a"),m=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"fixedBox"},[s("el-card",[s("div",{staticClass:"boxWrap"},[s("p",[t._v("\n 班级合并"),s("span",{staticStyle:{color:"red"}},[t._v(" "+t._s(t.compoundList.length)+" ")])]),t._v(" "),s("el-popover",{attrs:{placement:"top",trigger:"manual"},model:{value:t.isLook,callback:function(e){t.isLook=e},expression:"isLook"}},[s("div",[s("p",{staticClass:"title"},[t._v("\n 班级合并列表\n "),s("i",{staticClass:"el-icon-minus minus",on:{click:function(e){t.isLook=!1}}})]),t._v(" "),s("el-divider")],1),t._v(" "),s("div",{staticClass:"topWrap"},[s("el-select",{attrs:{placeholder:"请选择主班",clearable:""},on:{change:t.changeMasterClass},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},t._l(t.dataList,(function(e,n){return s("el-option",{key:n,attrs:{label:e.name,value:e.id}},[s("span",{staticStyle:{float:"left"}},[t._v(t._s(e.name))]),t._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(String(e.id)))])])})),1),t._v(" "),s("el-button",{staticStyle:{float:"right"},attrs:{type:"text"},on:{click:t.clearCom}},[t._v("清空列表")])],1),t._v(" "),s("div",[s("el-table",{attrs:{data:t.dataList,height:"300px","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",label:"班级编号",width:"110"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.id)+"\n ")]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",width:"180px",label:"班级名称",prop:"name"}}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"班级类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v(t._s(t._f("classType")(e.row.type)))])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",width:"180px",prop:"teacherName",label:"已选学生数"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v("\n "+t._s(e.row.studentList?e.row.studentList.length:0)+"\n ")])]}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"操作",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("el-button",{attrs:{type:"text"},on:{click:function(s){return t.cancleCom(e.row)}}},[t._v("取消")]),t._v(" "),s("el-button",{attrs:{type:"text",disabled:e.row.id==t.radio},on:{click:function(s){return t.showStudentList(e.row)}}},[t._v("添加学生")])]}}])})],1)],1),t._v(" "),s("el-button",{staticStyle:{float:"right","margin-top":"20px"},attrs:{type:"primary"},on:{click:t.submitClass}},[t._v("确定")]),t._v(" "),s("i",{staticClass:"el-icon-copy-document",attrs:{slot:"reference"},on:{click:function(e){t.isLook=!0}},slot:"reference"})],1)],1)]),t._v(" "),s("el-dialog",{attrs:{visible:t.studentListModalVisible,title:"学员列表","append-to-body":"",width:"800px"},on:{"update:visible":function(e){t.studentListModalVisible=e}}},[t.studentListModalVisible?s("viewStudentList",{attrs:{classId:t.activeRow.id,disabledList:t.allStudentList,list:t.studentList,chioseList:t.activeRow.studentList,showOk:!0,isChiose:!0},on:{close:t.closeStudentView}}):t._e()],1),t._v(" "),s("el-dialog",{attrs:{visible:t.calenderStudentVisible,title:"学员缴费列表","append-to-body":"",width:"800px"},on:{"update:visible":function(e){t.calenderStudentVisible=e}}},[t.calenderStudentVisible?s("calenderStudentList",{ref:"calenderStudentList",attrs:{classList:t.dataList,studentIds:t.studentIds,masterClassGroupId:t.masterClassGroupId,classGroupStudents:t.classGroupStudents,mergeInfo:t.mergeInfo},on:{refresh:t.refresh}}):t._e(),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.calenderStudentVisible=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.submitInfo}},[t._v("确 定")])],1)],1)],1)},f=[],b=(s("7f7f"),s("bd86")),g=s("a0c0"),v=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("paymentCycle",{ref:"cycle",attrs:{form:t.cycle,isUserType:!0,isCommon:!0,isDisabled:!0,hideMoney:!0}}),t._v(" "),s("otherform",{ref:"other",attrs:{form:t.other}}),t._v(" "),s("div",{staticStyle:{"margin-bottom":"20px"}},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!0}}},[t._v("一键修改差价")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.init}},[t._v("还原差价")])],1),t._v(" "),s("el-table",{attrs:{data:t.dataList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"max-height":"300px"}},[s("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),t._v(" "),s("el-table-column",{attrs:{prop:"username",align:"center",width:"120",label:"学员姓名"}}),t._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"课程类型"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.courseList,(function(e,n){return s("div",{key:n,staticClass:"courseDiv"},[t._v("\n "+t._s(t._f("coursesType")(e.courseType))+"\n ")])}))}}])}),t._v(" "),s("el-table-column",{attrs:{align:"center",label:"原班级剩余课程价值"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",t._l(e.row.courseList,(function(e,n){return s("div",{key:n,staticClass:"courseDiv"},[t._v("\n "+t._s(e.subCourseAmount)+"\n ")])})),0)]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"主班级剩余课程价值"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",t._l(e.row.courseList,(function(e,n){return s("div",{key:n,staticClass:"courseDiv"},[t._v("\n "+t._s(e.masterSubCoursePrice)+"\n ")])})),0)]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"需补交差价"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",t._l(e.row.courseList,(function(e,n){return s("div",{key:n,staticClass:"courseDiv"},[s("el-input",{attrs:{type:"number"},model:{value:e.courseCurrentPrice,callback:function(s){t.$set(e,"courseCurrentPrice",s)},expression:"item.courseCurrentPrice"}})],1)})),0)]}}])})],1),t._v(" "),t.dialogVisible?s("el-dialog",{attrs:{title:"一键修改差价",visible:t.dialogVisible,"append-to-body":"",width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[s("calenderStudentList",{ref:"calenderStudentList",attrs:{conrseTypeList:t.conrseTypeList}}),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.setAllprice}},[t._v("确 定")])],1)],1):t._e()],1)},y=[],_=(s("8615"),s("2d63")),L=s("2b0e"),C=s("7a3c"),w=s("b133"),O=s("ed08"),S=s("267e"),k=s("ddec"),I=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-form",{ref:"visitForm",attrs:{model:t.courseTypeForm,"label-width":"120px","label-position":"right"}},t._l(this.conrseTypeList,(function(e,n){return s("el-form-item",{key:n,attrs:{label:e.typeName,prop:"conrseTypeList."+n+".price",rules:[{required:!0,message:"补缴金额不能为空",trigger:"blur"},{required:!0,message:"请输入正确的金额",trigger:"blur",pattern:/^(\+)?\d+(\.\d+)?$/}]}},[s("el-input",{attrs:{placeholder:"请输入补缴金额"},model:{value:e.price,callback:function(s){t.$set(e,"price",s)},expression:"item.price"}})],1)})),1)],1)},j=[],x={props:["conrseTypeList"],data:function(){return{courseTypeForm:{conrseTypeList:this.conrseTypeList}}},mounted:function(){}},T=x,G=s("2877"),$=Object(G["a"])(T,I,j,!1,null,null,null),N=$.exports,F=["leixing"],E=["paymentDate","paymentValid","paymentPattern"];L["default"].use(k["a"]);var M,V={props:["studentIds","masterClassGroupId","classGroupStudents","classList","mergeInfo"],components:{paymentCycle:C["a"],otherform:w["a"],calenderStudentList:N},data:function(){return{activeNames:[],mergeInfoList:[],cycle:{paymentAmount:null,paymentPattern:null},other:{},dataList:[],copyList:{},conrseTypeList:[],filterCourseType:S["filterCourseType"],dialogVisible:!1}},mounted:function(){this.init()},methods:{init:function(){for(var t in this.coypList=this.$helpers.lodash.cloneDeep(this.mergeInfo),this.mergeInfoList=[],this.coypList)this.mergeInfoList=this.mergeInfoList.concat(this.coypList[t]);this.concatCourseLst(this.mergeInfoList)},getCLassName:function(t){var e="";return this.classList.forEach((function(s){s.id==t&&(e=s.name)})),e},submit:function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(){var e,s,n,r,a,i;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=!1,s=!1,n=this.$helpers.lodash,this.dataList.forEach((function(t){t.courseList.forEach((function(t){t.courseCurrentPrice+""||(e=!0),(!n.isNumber(1*t.courseCurrentPrice)||1*t.courseCurrentPrice<0)&&(s=!0)}))})),!s){t.next=7;break}return this.$message.error("请填写正确的补交差价"),t.abrupt("return");case 7:if(!e){t.next=10;break}return this.$message.error("请填写完成的缴费信息"),t.abrupt("return");case 10:if(r={},a=this.getData(),!a){t.next=16;break}r.musicGroupPaymentCalenderDtos=[a],t.next=17;break;case 16:return t.abrupt("return");case 17:return r.classGroupIds=this.classList.map((function(t){return t.id})),r.masterClassGroupId=this.masterClassGroupId,r.classGroupStudents=this.classGroupStudents,r.studentIds=this.studentIds,t.prev=21,t.next=24,Object(p["Jc"])(r);case 24:i=t.sent,this.$message.success(i.msg),this.$emit("refresh"),t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](21),console.log(t.t0);case 32:case"end":return t.stop()}}),t,this,[[21,29]])})));function e(){return t.apply(this,arguments)}return e}(),getForms:function(){var t=this.$refs;return[t.cycle,t.other].filter((function(t){return!!t})).map((function(t){return t.$refs.form||t}))},getData:function(){var t,e=this.getForms(),s=[],n=Object(_["a"])(e);try{var r=function(){var e=t.value;e.validate((function(t){t&&s.push(e)}))};for(n.s();!(t=n.n()).done;)r()}catch(f){n.e(f)}finally{n.f()}if(s.length===e.length){var a=Object(i["a"])(Object(i["a"])({},this.form),this.other),c=(a.leixing,Object(o["a"])(a,F));if(this.$refs.cycle){var u=this.cycle,l=u.paymentDate,d=u.paymentValid,p=u.paymentPattern,h=Object(o["a"])(u,E);c.paymentPattern=p,c.payUserType="STUDENT",c.paymentType="SPAN_GROUP_CLASS_ADJUST",c.musicGroupPaymentCalenderStudentDetails=this.mergeInfoList,c.musicGroupPaymentDateRangeList=[Object(i["a"])(Object(i["a"])(Object(i["a"])({},h),Object(O["a"])(l,["startPaymentDate","deadlinePaymentDate"])),Object(O["a"])(d,["paymentValidStartDate","paymentValidEndDate"]))]}var m=Object(i["a"])({},c);return m}return this.$message.error("请填写必要信息"),null},concatCourseLst:function(t){var e,s={};t.forEach((function(t){s[t.userId]||(s[t.userId]={},s[t.userId].userId=t.userId,s[t.userId].username=t.username,s[t.userId].courseList=[]),s[t.userId].courseList.push(t)})),this.dataList=Object.values(s),this.getNewClassType(null===(e=this.dataList[0])||void 0===e?void 0:e.courseList)},getNewClassType:function(t){var e=this;this.conrseTypeList=t.map((function(t){return{type:t.courseType,typeName:e.filterCourseType[t.courseType]+"补缴",price:""}}))},setAllprice:function(){var t=this;this.$refs.calenderStudentList.$refs.visitForm.validate((function(e){e&&(t.mergeInfoList.forEach((function(e){t.conrseTypeList.forEach((function(t){e.courseType==t.type&&(e.courseCurrentPrice=t.price)}))})),t.$refs.calenderStudentList.$refs.visitForm.resetFields(),t.dialogVisible=!1)}))}}},P=V,D=(s("6c7b9"),Object(G["a"])(P,v,y,!1,null,"3756bc8a",null)),A=D.exports,R=s("5137"),U={props:["compoundList"],components:{viewStudentList:g["a"],calenderStudentList:A},data:function(){return{radio:"",dataList:this.compoundList,isLook:!1,show:!1,idList:"",studentList:[],studentListModalVisible:!1,activeRow:null,calenderStudentVisible:!1,studentIds:[],masterClassGroupId:"",classGroupStudents:[],mergeInfo:{}}},created:function(){M=this},methods:{cancleCom:function(t){t.id==this.radio&&(this.radio=""),this.$emit("cancleCompound",t)},clearCom:function(){this.radio="",this.$emit("clearCom")},submitClass:function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(){var e,s,n,r=this;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.radio){t.next=3;break}return this.$message.error("请选择一个主班"),t.abrupt("return");case 3:if(e=[],this.classGroupStudents=[],s=!1,this.dataList.forEach((function(t){var n,a;(!t.studentList&&t.id!=r.radio||(null===(n=t.studentList)||void 0===n?void 0:n.length)<=0&&t.id!=r.radio)&&(s=!0),t.id!=r.radio&&(null===(a=t.studentList)||void 0===a?void 0:a.length)>0&&r.classGroupStudents.push(Object(b["a"])({},t.id,t.studentList.map((function(t){return t.userId})).join(","))),e.push(t.id)})),!(this.dataList.length<=1)){t.next=10;break}return this.$message.error("请至少选择2个班级"),t.abrupt("return");case 10:if(!s){t.next=13;break}return this.$message.error("请保证每个班至少勾选一名学员"),t.abrupt("return");case 13:return this.show=!0,this.isLook=!1,this.masterClassGroupId=this.radio,this.studentIds=this.allStudentList.map((function(t){return t.userId})),t.prev=17,t.next=20,Object(p["Jb"])({studentIds:this.studentIds,masterClassGroupId:this.masterClassGroupId,classGroupStudents:this.classGroupStudents});case 20:n=t.sent,this.mergeInfo=n.data,this.calenderStudentVisible=!0,t.next=28;break;case 25:t.prev=25,t.t0=t["catch"](17),console.log(t.t0);case 28:case"end":return t.stop()}}),t,this,[[17,25]])})));function e(){return t.apply(this,arguments)}return e}(),getList:function(){this.$emit("getList")},refresh:function(){this.calenderStudentVisible=!1,this.clearCom(),this.getList()},closeReset:function(){this.clearCom(),this.show=!1,this.$emit("getList")},showStudentList:function(t){var e=this;this.activeRow=t,Object(R["g"])({classGroupId:t.id}).then((function(t){200==t.code&&(e.studentList=t.data.map((function(t){return{userId:t.userId,nickName:t.name,gender:t.gender,phone:t.parentsPhone,subjectNames:t.subjectName}})),e.studentListModalVisible=!0)}))},closeStudentView:function(t){this.activeRow.studentList=t,this.dataList.splice(1,0),this.studentListModalVisible=!1},changeMasterClass:function(t){var e=this;this.dataList.forEach((function(s){s.id==t&&(s.studentList=null,e.dataList.splice(1,0))}))},submitInfo:function(){this.$refs.calenderStudentList.submit()}},watch:{compoundList:function(t){this.dataList=t}},computed:{allStudentList:function(){var t=[];return M.dataList.forEach((function(e){e.studentList&&(t=t.concat(e.studentList.map((function(t){return t.classId=e.id,t}))))})),t}}},q=U,H=(s("a343"),Object(G["a"])(q,m,f,!1,null,"17de59a8",null)),B=H.exports,W=s("adb21"),z=s("8d7f"),J=s("b4ac"),Q=s("4328"),K=s.n(Q),X=["organIdList"],Y={components:{pagination:l["a"],classCompound:B,changeClassName:z["a"]},data:function(){return{searchForm:{search:null,organIdList:[],type:"",groupType:"MUSIC",mainTeacherUserId:""},courseListType:d["s"],musicClassTypeList:d["F"],tableList:[],compoundList:[],hightCount:0,hightOnlineCount:0,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},classNameVisible:!1,classDetail:null,activeClass:"",resetName:!1}},created:function(){},mounted:function(){var t=this.$route,e=t.query,s=t.params;s.search&&(this.searchForm.search=s.search),e.type&&(this.searchForm.type=e.type),e.organId&&(this.searchForm.organIdList=[Number(e.organId)]),this.$store.dispatch("setBranchs"),this.init()},methods:{getAgreement:function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(){var e;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(p["R"])();case 3:e=t.sent,e.data||this.$bus.$emit("showguide",["agreement"]),t.next=9;break;case 7:t.prev=7,t.t0=t["catch"](0);case 9:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(){return t.apply(this,arguments)}return e}(),reloadSearch:function(){this.rules.page=1,this.getList()},init:function(){this.getList(),this.getAgreement()},getList:function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(){var e,s,n,r;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.searchForm,e.organIdList,s=Object(o["a"])(e,X),n=Object(i["a"])(Object(i["a"])({},s),{},{lessThenThreeHighOnline:this.$route.query.lessThenThreeHighOnline,organIds:this.searchForm.organIdList.join(","),page:this.rules.page,rows:this.rules.limit}),t.next=5,Object(p["W"])(n);case 5:r=t.sent,this.rules.total=r.data.total,this.tableList=r.data.rows,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),console.log(t.t0);case 13:case"end":return t.stop()}}),t,this,[[0,10]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.searchForm.groupType="MUSIC",this.search()},removeClass:function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(e){return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.$confirm("是否确定删除该班级?","提示",{type:"warning"});case 3:return t.next=5,Object(p["tc"])({classGroupId:e.row.id});case 5:this.$message.success("删除成功"),this.getList(),t.next=11;break;case 9:t.prev=9,t.t0=t["catch"](0);case 11:case"end":return t.stop()}}),t,this,[[0,9]])})));function e(e){return t.apply(this,arguments)}return e}(),addCompound:function(t){var e=this;this.hightOnlineCount=0,this.hightCount=0,this.compoundList.push(t),this.compoundList=Object(a["a"])(new Set(this.compoundList)),this.compoundList.forEach((function(t){"HIGH"==t.type&&e.hightCount++,"HIGH_ONLINE"==t.type&&e.hightOnlineCount++})),this.hightOnlineCount&&this.hightOnlineCount!=this.compoundList.length&&(this.$message.error("线上基础技能班仅能和线上基础技能班合并"),this.compoundList.splice(this.compoundList.length-1,1)),this.hightCount&&this.hightCount!=this.compoundList.length&&(this.$message.error("基础技能班仅能和基础技能班合并"),this.compoundList.splice(this.compoundList.length-1,1))},isAddCom:function(t){var e=!1;return this.compoundList.forEach((function(s){s.id==t.id&&(e=!0)})),e},cancleCompound:function(t){var e=this,s=null;this.compoundList.forEach((function(n,r){n.id==t.id&&(s=r,"HIGH"==t.type&&e.hightCount--,"HIGH_ONLINE"==t.type&&e.hightOnlineCount--)})),s+""&&this.compoundList.splice(s,1)},clearCom:function(){this.compoundList=[],this.hightOnlineCount=0,this.hightCount=0},permission:function(t,e){return Object(h["a"])(t,e)},exportClassGroup:function(){var t=this.searchForm;Object(W["a"])(this,{method:"post",url:"/api-web/export/classGroup",params:K.a.stringify(Object(i["a"])(Object(i["a"])({},t),{},{organIds:this.searchForm.organIdList.join(","),lessThenThreeHighOnline:this.$route.query.lessThenThreeHighOnline}))},"是否确认导出报表?")},resetClassName:function(t,e){this.classDetail=t,this.resetName=!e,this.classNameVisible=!0},submitedResetClassName:function(){var t=Object(u["a"])(Object(c["a"])().mark((function t(e){var s,n=this;return Object(c["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:s=Object(i["a"])({},e),Object(J["n"])(s).then((function(t){200==t.code&&(n.$message.success("修改成功"),n.classNameVisible=!1,n.getList())}));case 2:case"end":return t.stop()}}),t)})));function e(e){return t.apply(this,arguments)}return e}()}},Z=Y,tt=Object(G["a"])(Z,n,r,!1,null,"0a225755",null);e["default"]=tt.exports},"6a20":function(t,e,s){},"6c7b9":function(t,e,s){"use strict";s("6a20")},a0c0:function(t,e,s){"use strict";var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("el-table",{ref:"studentTable",attrs:{data:t.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark","max-height":"300px"},on:{"selection-change":t.handleSelectionChange}},[t.isChiose?s("el-table-column",{attrs:{type:"selection",selectable:t.checkSelectable,width:"55"}}):t._e(),t._v(" "),s("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),t._v(" "),s("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),t._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v("\n "+t._s(t._f("sex")(e.row.gender))+"\n ")])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),t._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"专业"}})],1),t._v(" "),t.showOk?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.$listeners.close(t.selectList)}}},[t._v("确 定")])],1):t._e(),t._v(" "),t.showOk?s("div",{staticStyle:{clear:"both"}}):t._e()],1)},r=[],a=(s("ac6a"),{props:["list","isChiose","chioseList","showOk","disabledList","classId"],data:function(){return{selectList:this.chioseList}},mounted:function(){var t=this;if(this.chioseList){var e=this.chioseList.map((function(t,e){return t.userId}));this.list.forEach((function(s,n){-1!=e.indexOf(s.userId)&&t.$refs.studentTable.toggleRowSelection(s,!0)}))}},methods:{handleSelectionChange:function(t){this.selectList=t},checkSelectable:function(t){var e=this,s=!0;return this.disabledList&&this.disabledList.length>0&&this.disabledList.forEach((function(n){n.userId==t.userId&&n.classId!=e.classId&&(s=!1)})),s}}}),i=a,o=(s("33c3"),s("2877")),c=Object(o["a"])(i,n,r,!1,null,"6f5c4484",null);e["a"]=c.exports},a343:function(t,e,s){"use strict";s("a44e")},a44e:function(t,e,s){},adb21:function(t,e,s){"use strict";s.d(e,"a",(function(){return u}));var n=s("bc3a"),r=s.n(n),a=(s("4328"),s("5f87")),i=s("3908"),o=s("e3eb"),c=s.n(o),u=function(t,e,s,n){var o=e.url,u={method:e.method?e.method:"get",headers:{Authorization:Object(a["b"])(),tenantId:Object(a["a"])()},url:o,responseType:"blob"};"post"==u.method?u.data=e.params:u.params=e.params,t.$confirm(s||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),r()(c()(u)).then((function(s){var r=new Blob([s.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(r).text();a.then((function(s){if(-1!=s.indexOf("code")){var a=JSON.parse(s);if(403==a.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==a.code?t.$message.success(a.msg):t.$message.error(a.msg),n&&n()}else{var i=URL.createObjectURL(r),o=document.createElement("a"),c=e.fileName||"导出文件.xls";o.href=i,o.setAttribute("download",c),document.body.appendChild(o),o.click(),n&&n()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}}}]);
|