1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-db334280"],{"014b0":function(e,t,n){},"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,n){var s=l(),u=e-s,i=20,o=0;t="undefined"===typeof t?500:t;var c=function e(){o+=i;var l=Math.easeInOutQuad(o,s,u,t);r(l),o<t?a(e):n&&"function"===typeof n&&n()};c()}},"138b":function(e,t,n){"use strict";var a=n("6f20"),r=n.n(a);r.a},3004:function(e,t,n){},4e3:function(e,t,n){"use strict";var a=n("3004"),r=n.n(a);r.a},5137:function(e,t,n){"use strict";n.d(t,"o",(function(){return u})),n.d(t,"f",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"u",(function(){return f})),n.d(t,"p",(function(){return p})),n.d(t,"t",(function(){return m})),n.d(t,"n",(function(){return b})),n.d(t,"s",(function(){return v})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return g})),n.d(t,"a",(function(){return y})),n.d(t,"h",(function(){return _})),n.d(t,"b",(function(){return L})),n.d(t,"r",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"x",(function(){return I})),n.d(t,"w",(function(){return O})),n.d(t,"l",(function(){return E})),n.d(t,"q",(function(){return w})),n.d(t,"y",(function(){return k})),n.d(t,"v",(function(){return T})),n.d(t,"d",(function(){return x})),n.d(t,"z",(function(){return A})),n.d(t,"A",(function(){return R})),n.d(t,"i",(function(){return G}));var a=n("b775"),r=n("4328"),l=n.n(r),s="/api-web";function u(e){return Object(a["a"])({url:s+"/studentManage/queryStudentList",method:"get",params:e})}function i(e){return Object(a["a"])({url:s+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function o(e){return Object(a["a"])({url:s+"/studentManage/findStudentBaseInfo",method:"get",params:e})}function c(e){return Object(a["a"])({url:s+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(a["a"])({url:s+"/studentManage/findStudentVipGroups",method:"get",params:e})}function f(e){return Object(a["a"])({url:s+"/studentWithdraw/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:s+"/studentManage/queryStudentPayment",method:"get",params:e})}function m(e){return Object(a["a"])({url:s+"/order/queryPage",method:"get",params:e})}function b(e){return Object(a["a"])({url:s+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function v(e){return Object(a["a"])({url:s+"/studentRegistration/batchUpdateSubject",method:"post",data:l.a.stringify(e)})}function h(e){return Object(a["a"])({url:s+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function g(e){return Object(a["a"])({url:s+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function y(e){return Object(a["a"])({url:s+"/studentRegistration/insertStudent",method:"POST",data:e})}function _(e){return Object(a["a"])({url:s+"/classGroupStudent/findAllStudent",method:"POST",data:l.a.stringify(e)})}function L(e){return Object(a["a"])({url:s+"/classGroupStudent/addStudents",method:"POST",data:l.a.stringify(e)})}function S(e){return Object(a["a"])({url:s+"/classGroupStudent/del",method:"POST",data:l.a.stringify(e)})}function C(e){return Object(a["a"])({url:s+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function I(e){return Object(a["a"])({url:s+"/userCashAccount/updateCourseBalance",method:"post",data:l.a.stringify(e)})}function O(e){return Object(a["a"])({url:s+"/userCashAccount/updateBalance",method:"post",data:l.a.stringify(e)})}function E(e){return Object(a["a"])({url:s+"/studentManage/queryUserByPhone",method:"get",params:e})}function w(e){return Object(a["a"])({url:s+"/studentManage/register",method:"post",data:l.a.stringify(e)})}function k(e){return Object(a["a"])({url:s+"/studentManage/studentUpdate",method:"post",data:l.a.stringify(e)})}function T(e){return Object(a["a"])({url:s+"/userCashAccount/transferCourseBalanceToBalance",method:"post",data:l.a.stringify(e)})}function x(e){return Object(a["a"])({url:s+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function A(e){return Object(a["a"])({url:s+"/userCashAccountDetail/queryPage",method:"get",params:e})}function R(e){return Object(a["a"])({url:s+"/userCoursesAccount/queryPage",method:"get",params:e})}function G(e){return Object(a["a"])({url:s+"/sysUserContracts/getLatest",method:"get",params:e})}},"62c2":function(e,t,n){"use strict";n.r(t);var a,r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[n("el-form-item",{attrs:{prop:"search"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入乐团编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"organIdList"}},[n("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",multiple:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{prop:"type"}},[n("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchForm.type,callback:function(t){e.$set(e.searchForm,"type","string"===typeof t?t.trim():t)},expression:"searchForm.type"}},e._l(e.musicClassTypeList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"musicGroupId",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("copy-text",[e._v(e._s(t.row.musicGroupId))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("copy-text",[e._v(e._s(t.row.organName))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"当前班级人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.studentNum)+"人")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?n("div",e._l(t.row.classGroupTeacherMapperList,(function(t,a){return"BISHOP"==t.teacherRole?n("p",{key:a},[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()})),0):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?n("div",e._l(t.row.classGroupTeacherMapperList,(function(t,a){return"TEACHING"==t.teacherRole?n("p",{key:a},[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()})),0):e._e()]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.currentClassTimes))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(t.row.totalClassTimes))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["MUSIC_NETWORK"!=t.row.type&&"HIGH_ONLINE"!=t.row.type&&"HIGH"!=t.row.type&&!e.isAddCom(t.row)&&e.permission("classGroup/spanGroupMergeClassSplitClassAffirm")?n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.addCompound(t.row)}}},[e._v("添加合班")]):e._e(),e._v(" "),e.isAddCom(t.row)&&e.permission("classGroup/spanGroupMergeClassSplitClassAffirm")?n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.cancleCompound(t.row)}}},[e._v("取消合班")]):e._e()]}}])})],1),e._v(" "),n("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),e.permission("classGroup/spanGroupMergeClassSplitClassAffirm")?n("classCompound",{attrs:{compoundList:e.compoundList},on:{clearCom:e.clearCom,getList:e.getList,cancleCompound:e.cancleCompound}}):e._e()],1)},l=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 班级列表\n ")])}],s=(n("ac6a"),n("5df3"),n("4f7f"),n("75fc")),u=(n("386d"),n("db72")),i=n("a8db"),o=(n("96cf"),n("3b8d")),c=(n("bc3a"),n("5f87"),n("333d")),d=(n("3908"),n("92e3")),f=n("1cc7"),p=n("ec8a"),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"fixedBox"},[n("el-card",[n("div",{staticClass:"boxWrap"},[n("p",[e._v("\n 班级合并"),n("span",{staticStyle:{color:"red"}},[e._v(" "+e._s(e.compoundList.length)+" ")])]),e._v(" "),n("el-popover",{attrs:{placement:"top",trigger:"manual"},model:{value:e.isLook,callback:function(t){e.isLook=t},expression:"isLook"}},[n("div",[n("p",{staticClass:"title"},[e._v("\n 班级合并列表\n "),n("i",{staticClass:"el-icon-minus minus",on:{click:function(t){e.isLook=!1}}})]),e._v(" "),n("el-divider")],1),e._v(" "),n("el-button",{staticStyle:{float:"right"},attrs:{type:"text"},on:{click:e.clearCom}},[e._v("清空列表")]),e._v(" "),n("div",[n("el-radio-group",{on:{change:e.changeMasterClass},model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[n("el-table",{attrs:{data:e.dataList,height:"300px","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",label:"主班",width:"110"},scopedSlots:e._u([{key:"default",fn:function(e){return[n("el-radio",{attrs:{label:e.row.id}})]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"180px",label:"班级名称",prop:"name"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",width:"180px",prop:"teacherName",label:"已选学生数"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(t.row.studentList?t.row.studentList.length:0)+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.cancleCom(t.row)}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"text",disabled:t.row.id==e.radio},on:{click:function(n){return e.showStudentList(t.row)}}},[e._v("添加学生")])]}}])})],1)],1)],1),e._v(" "),n("el-button",{staticStyle:{float:"right","margin-top":"20px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitClass}},[e._v("确定")]),e._v(" "),n("i",{staticClass:"el-icon-copy-document",attrs:{slot:"reference"},on:{click:function(t){e.isLook=!0}},slot:"reference"})],1)],1)]),e._v(" "),n("el-dialog",{attrs:{visible:e.studentListModalVisible,title:"学员列表","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?n("viewStudentList",{attrs:{classId:e.activeRow.id,disabledList:e.allStudentList,list:e.studentList,chioseList:e.activeRow.studentList,showOk:!0,isChiose:!0},on:{close:e.closeStudentView}}):e._e()],1),e._v(" "),n("el-dialog",{attrs:{visible:e.calenderStudentVisible,title:"学员缴费列表","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.calenderStudentVisible=t}}},[e.calenderStudentVisible?n("calenderStudentList",{ref:"calenderStudentList",attrs:{classList:e.dataList,studentIds:e.studentIds,masterClassGroupId:e.masterClassGroupId,classGroupStudents:e.classGroupStudents,mergeInfo:e.mergeInfo},on:{refresh:e.refresh}}):e._e(),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.calenderStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},b=[],v=(n("7f7f"),n("bd86")),h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("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}},[e.isChiose?n("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"55"}}):e._e(),e._v(" "),n("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),n("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",[e._v("\n "+e._s(e._f("sex")(t.row.gender))+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),e._v(" "),n("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"专业"}})],1),e._v(" "),e.showOk?n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$listeners.close(e.selectList)}}},[e._v("确 定")])],1):e._e(),e._v(" "),e.showOk?n("div",{staticStyle:{clear:"both"}}):e._e()],1)},g=[],y={props:["list","isChiose","chioseList","showOk","disabledList","classId"],data:function(){return{selectList:this.chioseList}},mounted:function(){var e=this;if(this.chioseList){var t=this.chioseList.map((function(e,t){return e.userId}));this.list.forEach((function(n,a){-1!=t.indexOf(n.userId)&&e.$refs.studentTable.toggleRowSelection(n,!0)}))}},methods:{handleSelectionChange:function(e){this.selectList=e},checkSelectable:function(e){var t=this,n=!0;return this.disabledList&&this.disabledList.length>0&&this.disabledList.forEach((function(a){a.userId==e.userId&&a.classId!=t.classId&&(n=!1)})),n}}},_=y,L=(n("cdb4"),n("2877")),S=Object(L["a"])(_,h,g,!1,null,"ce3060a2",null),C=S.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isUserType:!0,isCommon:!0,isDisabled:!0,hideMoney:!0}}),e._v(" "),n("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),n("el-table",{attrs:{data:e.dataList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"max-height":"300px"}},[n("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"username",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),n("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.courseList,(function(t,a){return n("div",{key:a,staticClass:"courseDiv"},[e._v("\n "+e._s(e._f("coursesType")(t.courseType))+"\n ")])}))}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",e._l(t.row.courseList,(function(t,a){return n("div",{key:a,staticClass:"courseDiv"},[n("el-input",{model:{value:t.courseCurrentPrice,callback:function(n){e.$set(t,"courseCurrentPrice",n)},expression:"item.courseCurrentPrice"}})],1)})),0)]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"原价"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",e._l(t.row.courseList,(function(t,a){return n("div",{key:a,staticClass:"courseDiv"},[n("el-input",{model:{value:t.courseOriginalPrice,callback:function(n){e.$set(t,"courseOriginalPrice",n)},expression:"item.courseOriginalPrice"}})],1)})),0)]}}])})],1)],1)},O=[],E=(n("8615"),n("2d63")),w=n("7a3c"),k=n("b133"),T=n("ed08"),x={props:["studentIds","masterClassGroupId","classGroupStudents","classList","mergeInfo"],components:{paymentCycle:w["a"],otherform:k["a"]},data:function(){return{activeNames:[],mergeInfoList:[],cycle:{paymentAmount:null,paymentPattern:null},other:{},dataList:[]}},mounted:function(){for(var e in this.mergeInfoList=[],this.mergeInfo)this.mergeInfoList=this.mergeInfoList.concat(this.mergeInfo[e]);this.concatCourseLst(this.mergeInfoList)},methods:{getCLassName:function(e){var t="";return this.classList.forEach((function(n){n.id==e&&(t=n.name)})),t},submit:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t={},n=this.getData(),!n){e.next=6;break}t.musicGroupPaymentCalenderDtos=[n],e.next=7;break;case 6:return e.abrupt("return");case 7:return t.classGroupIds=this.classList.map((function(e){return e.id})),t.masterClassGroupId=this.masterClassGroupId,t.classGroupStudents=this.classGroupStudents,t.studentIds=this.studentIds,e.prev=11,e.next=14,Object(f["sc"])(t);case 14:a=e.sent,this.$message.success(a.msg),this.$emit("refresh"),e.next=22;break;case 19:e.prev=19,e.t0=e["catch"](11),console.log(e.t0);case 22:case"end":return e.stop()}}),e,this,[[11,19]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.cycle,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},getData:function(){var e,t=this.getForms(),n=[],a=Object(E["a"])(t);try{var r=function(){var t=e.value;t.validate((function(e){e&&n.push(t)}))};for(a.s();!(e=a.n()).done;)r()}catch(b){a.e(b)}finally{a.f()}if(n.length===t.length){var l=Object(u["a"])(Object(u["a"])({},this.form),this.other),s=(l.leixing,Object(i["a"])(l,["leixing"]));if(this.$refs.cycle){var o=this.cycle,c=o.paymentDate,d=o.paymentValid,f=o.paymentPattern,p=Object(i["a"])(o,["paymentDate","paymentValid","paymentPattern"]);s.paymentPattern=f,s.payUserType="STUDENT",s.paymentType="SPAN_GROUP_CLASS_ADJUST",s.musicGroupPaymentCalenderStudentDetails=this.mergeInfoList,s.musicGroupPaymentDateRangeList=[Object(u["a"])(Object(u["a"])(Object(u["a"])({},p),Object(T["a"])(c,["startPaymentDate","deadlinePaymentDate"])),Object(T["a"])(d,["paymentValidStartDate","paymentValidEndDate"]))]}var m=Object(u["a"])({},s);return m}return this.$message.error("请填写必要信息"),null},concatCourseLst:function(e){var t={};e.forEach((function(e){t[e.userId]||(t[e.userId]={},t[e.userId].userId=e.userId,t[e.userId].username=e.username,t[e.userId].courseList=[]),t[e.userId].courseList.push(e)})),this.dataList=Object.values(t)}}},A=x,R=(n("f688"),Object(L["a"])(A,I,O,!1,null,"6ec91910",null)),G=R.exports,N=n("5137"),j={props:["compoundList"],components:{viewStudentList:C,calenderStudentList:G},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(){a=this},methods:{cancleCom:function(e){this.$emit("cancleCompound",e)},clearCom:function(){this.$emit("clearCom")},submitClass:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.radio){e.next=3;break}return this.$message.error("请选择一个主班"),e.abrupt("return");case 3:if(t=[],this.classGroupStudents=[],n=!1,this.dataList.forEach((function(e){var a,l;(!e.studentList&&e.id!=r.radio||(null===(a=e.studentList)||void 0===a?void 0:a.length)<=0&&e.id!=r.radio)&&(n=!0),e.id!=r.radio&&(null===(l=e.studentList)||void 0===l?void 0:l.length)>0&&r.classGroupStudents.push(Object(v["a"])({},e.id,e.studentList.map((function(e){return e.userId})).join(","))),t.push(e.id)})),!(this.dataList.length<=1)){e.next=10;break}return this.$message.error("请至少选择2个班级"),e.abrupt("return");case 10:if(!n){e.next=13;break}return this.$message.error("请保证每个班至少勾选一名学员"),e.abrupt("return");case 13:return this.show=!0,this.isLook=!1,this.masterClassGroupId=this.radio,this.studentIds=this.allStudentList.map((function(e){return e.userId})),e.prev=17,e.next=20,Object(f["wb"])({studentIds:this.studentIds,masterClassGroupId:this.masterClassGroupId,classGroupStudents:this.classGroupStudents});case 20:a=e.sent,this.mergeInfo=a.data,this.calenderStudentVisible=!0,e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](17),console.log(e.t0);case 28:case"end":return e.stop()}}),e,this,[[17,25]])})));function t(){return e.apply(this,arguments)}return t}(),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(e){var t=this;this.activeRow=e,Object(N["h"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.studentList=e.data.map((function(e){return{userId:e.userId,nickName:e.name,gender:e.gender,phone:e.parentsPhone,subjectNames:e.subjectName}})),t.studentListModalVisible=!0)}))},closeStudentView:function(e){this.activeRow.studentList=e,this.dataList.splice(1,0),this.studentListModalVisible=!1},changeMasterClass:function(e){var t=this;this.dataList.forEach((function(n){n.id==e&&(n.studentList=null,t.dataList.splice(1,0))}))},submitInfo:function(){this.$refs.calenderStudentList.submit()}},watch:{compoundList:function(e){this.dataList=e}},computed:{allStudentList:function(){var e=[];return a.dataList.forEach((function(t){t.studentList&&(e=e.concat(t.studentList.map((function(e){return e.classId=t.id,e}))))})),e}}},P=j,M=(n("e085"),Object(L["a"])(P,m,b,!1,null,"225a961a",null)),D=M.exports,U={components:{pagination:c["a"],classCompound:D},data:function(){return{searchForm:{search:null,organIdList:[],type:""},musicClassTypeList:d["n"],tableList:[],compoundList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList()},getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,t.organIdList,n=Object(i["a"])(t,["organIdList"]),console.log(n),a=Object(u["a"])(Object(u["a"])({},n),{},{organIdList:this.searchForm.organIdList.join(","),page:this.rules.page,rows:this.rules.limit}),e.next=6,Object(f["O"])(a);case 6:r=e.sent,this.rules.total=r.data.total,this.tableList=r.data.rows,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},addCompound:function(e){this.compoundList.push(e),this.compoundList=Object(s["a"])(new Set(this.compoundList))},isAddCom:function(e){var t=!1;return this.compoundList.forEach((function(n){n.id==e.id&&(t=!0)})),t},cancleCompound:function(e){var t=null;this.compoundList.forEach((function(n,a){n.id==e.id&&(t=a)})),t+""&&this.compoundList.splice(t,1)},clearCom:function(){this.compoundList=[]},permission:function(e,t){return Object(p["a"])(e,t)}}},$=U,F=Object(L["a"])($,r,l,!1,null,"28d36756",null);t["default"]=F.exports},"6abc":function(e,t,n){},"6f20":function(e,t,n){},"7a3c":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():n("el-form-item",{attrs:{label:"缴费金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[n("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.hidePaymentPattern?e._e():n("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[n("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.form.paymentPattern,callback:function(t){e.$set(e.form,"paymentPattern",t)},expression:"form.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?n("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","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(),e._v(" "),n("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentValid,callback:function(t){e.$set(e.form,"paymentValid",t)},expression:"form.paymentValid"}})],1)],1)},r=[],l=n("267e"),s=n("ed08"),u={props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney"],data:function(){return{paymentPatternTypeOptions:Object(s["b"])(l["paymentPatternType"])}},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}},i=u,o=(n("138b"),n("2877")),c=Object(o["a"])(i,a,r,!1,null,"5ec13f8a",null);t["a"]=c.exports},"92e3":function(e,t,n){"use strict";n.d(t,"j",(function(){return s})),n.d(t,"o",(function(){return u})),n.d(t,"i",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"m",(function(){return c})),n.d(t,"A",(function(){return d})),n.d(t,"z",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"s",(function(){return m})),n.d(t,"k",(function(){return b})),n.d(t,"p",(function(){return v})),n.d(t,"C",(function(){return h})),n.d(t,"h",(function(){return g})),n.d(t,"B",(function(){return y})),n.d(t,"v",(function(){return _})),n.d(t,"D",(function(){return L})),n.d(t,"u",(function(){return S})),n.d(t,"x",(function(){return C})),n.d(t,"l",(function(){return I})),n.d(t,"f",(function(){return O})),n.d(t,"y",(function(){return E})),n.d(t,"g",(function(){return w})),n.d(t,"t",(function(){return k})),n.d(t,"e",(function(){return T})),n.d(t,"d",(function(){return x})),n.d(t,"r",(function(){return A})),n.d(t,"q",(function(){return R})),n.d(t,"w",(function(){return G})),n.d(t,"n",(function(){return N})),n.d(t,"a",(function(){return P}));var a=n("2d63"),r=n("768b"),l=n("267e"),s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}],u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],i=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],o=[{label:"正常签到",value:1},{label:"异常签到",value:0}],c=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].concat(f,[{value:"QUIT_SCHOOL",label:"退学"}]),m=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"}],b=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],v=[{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"PRE_APPLY",text:"预报名中"},{value:"PRE_BUILD_FEE",text:"创建缴费中"},{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"FEE_AUDIT",text:"费用审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"PAUSE",text:"暂停"},{value:"CANCELED",text:"取消"},{value:"CLOSE",text:"已关闭"}],h=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],g=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],y=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],_=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"}],L=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],C=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],I=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],O=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],E=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],w=j(l["classTime"]),k=j(l["payOrderType"]),T=j(l["auditType"]),x=j(l["auditPaymentType"]),A=j(l["orderServerType"]),R=j(l["orderAuditType"]),G=j(l["rewardModeType"]),N=j(l["musicClassType"]);function j(e){var t=[];for(var n in e)t.push({label:e[n],value:n});return t}var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],n=Object(r["a"])(t,2),l=n[0],s=n[1],u={};if(e&&e.length){var i,o=Object(a["a"])(e);try{for(o.s();!(i=o.n()).done;){var c=i.value;u[c[l]]=c[s]}}catch(d){o.e(d)}finally{o.f()}}return u}},a8db:function(e,t,n){"use strict";var a=n("e265"),r=n.n(a),l=n("a4bb"),s=n.n(l);function u(e,t){if(null==e)return{};var n,a,r={},l=s()(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}function i(e,t){if(null==e)return{};var n,a,l=u(e,t);if(r.a){var s=r()(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}n.d(t,"a",(function(){return i}))},b133:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[n("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[n("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},r=[],l={props:["form"]},s=l,u=(n("4000"),n("2877")),i=Object(u["a"])(s,a,r,!1,null,"55ad3016",null);t["a"]=i.exports},cdb4:function(e,t,n){"use strict";var a=n("6abc"),r=n.n(a);r.a},e085:function(e,t,n){"use strict";var a=n("014b0"),r=n.n(a);r.a},ed08:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var a=n("bd86"),r=(n("c5f6"),n("28a5"),n("a481"),n("6b54"),n("7618"),n("5a0c")),l=n.n(r);var s=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var a=e[n],r=n.toLocaleUpperCase();t.push({label:a,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:n})}return t},u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(a["a"])(t,n[0]||"start",l()(e[0]).isValid()?l()(e[0]).format(r):""),Object(a["a"])(t,n[1]||"end",l()(e[1]).isValid()?l()(e[1]).format(r):""),t):{}}},f688:function(e,t,n){"use strict";var a=n("fb83"),r=n.n(a);r.a},fb83:function(e,t,n){}}]);
|