1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-496c6db2"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var n=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,a){var s=l(),o=e-s,u=20,i=0;t="undefined"===typeof t?500:t;var c=function e(){i+=u;var l=Math.easeInOutQuad(i,s,o,t);r(l),i<t?n(e):a&&"function"===typeof a&&a()};c()}},"208c":function(e,t,a){"use strict";var n=a("d587"),r=a.n(n);r.a},2295:function(e,t,a){},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},r=[],l=(a("c5f6"),a("09f4")),s={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(l["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(l["a"])(0,800)}}},o=s,u=(a("c0b9"),a("2877")),i=Object(u["a"])(o,n,r,!1,null,"31cb099a",null);t["a"]=i.exports},5137:function(e,t,a){"use strict";a.d(t,"o",(function(){return o})),a.d(t,"g",(function(){return u})),a.d(t,"d",(function(){return i})),a.d(t,"f",(function(){return c})),a.d(t,"e",(function(){return d})),a.d(t,"h",(function(){return p})),a.d(t,"c",(function(){return m})),a.d(t,"u",(function(){return f})),a.d(t,"p",(function(){return b})),a.d(t,"t",(function(){return h})),a.d(t,"n",(function(){return g})),a.d(t,"s",(function(){return v})),a.d(t,"k",(function(){return _})),a.d(t,"m",(function(){return I})),a.d(t,"a",(function(){return y})),a.d(t,"i",(function(){return S})),a.d(t,"b",(function(){return k})),a.d(t,"r",(function(){return F})),a.d(t,"j",(function(){return C})),a.d(t,"v",(function(){return O})),a.d(t,"l",(function(){return w})),a.d(t,"q",(function(){return L})),a.d(t,"w",(function(){return T}));var n=a("b775"),r=a("4328"),l=a.n(r),s="/api-web";function o(e){return Object(n["a"])({url:s+"/studentManage/queryStudentList",method:"get",params:e})}function u(e){return Object(n["a"])({url:s+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function i(e){return Object(n["a"])({url:s+"/studentManage/findStudentBaseInfo",method:"get",params:e})}function c(e){return Object(n["a"])({url:s+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(n["a"])({url:s+"/studentManage/findStudentCourses",method:"get",params:e})}function p(e){return Object(n["a"])({url:s+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(n["a"])({url:s+"/studentManage/findStudentAttendances",method:"get",params:e})}function f(e){return Object(n["a"])({url:s+"/studentWithdraw/queryPage",method:"get",params:e})}function b(e){return Object(n["a"])({url:s+"/studentManage/queryStudentPayment",method:"get",params:e})}function h(e){return Object(n["a"])({url:s+"/order/queryPage",method:"get",params:e})}function g(e){return Object(n["a"])({url:s+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function v(e){return Object(n["a"])({url:s+"/studentRegistration/batchUpdateSubject",method:"post",data:l.a.stringify(e)})}function _(e){return Object(n["a"])({url:s+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function I(e){return Object(n["a"])({url:s+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function y(e){return Object(n["a"])({url:s+"/studentRegistration/insertStudent",method:"POST",data:e})}function S(e){return Object(n["a"])({url:s+"/classGroupStudent/findAllStudent",method:"POST",data:l.a.stringify(e)})}function k(e){return Object(n["a"])({url:s+"/classGroupStudent/addStudents",method:"POST",data:l.a.stringify(e)})}function F(e){return Object(n["a"])({url:s+"/classGroupStudent/del",method:"POST",data:l.a.stringify(e)})}function C(e){return Object(n["a"])({url:s+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function O(e){return Object(n["a"])({url:s+"/userCashAccount/updateCourseBalance",method:"post",data:l.a.stringify(e)})}function w(e){return Object(n["a"])({url:s+"/studentManage/queryUserByPhone",method:"get",params:e})}function L(e){return Object(n["a"])({url:s+"/studentManage/register",method:"post",data:l.a.stringify(e)})}function T(e){return Object(n["a"])({url:s+"/studentManage/studentUpdate",method:"post",data:l.a.stringify(e)})}},"6a7b":function(e,t,a){},"824b":function(e,t,a){"use strict";var n=a("6a7b"),r=a.n(n);r.a},"92e3":function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"e",(function(){return l})),a.d(t,"h",(function(){return s})),a.d(t,"b",(function(){return o})),a.d(t,"g",(function(){return u})),a.d(t,"d",(function(){return i})),a.d(t,"f",(function(){return c}));var n=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能班",value:"HIGH"},{label:"VIP课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"练习课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训课",value:"TRAINING"},{label:"课堂课",value:"CLASSROOM"}],r=[{label:"正常签到",value:1},{label:"异常签到",value:0}],l=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],s=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],o=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"},{value:"QUIT_SCHOOL",label:"退学"}],u=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"}],i=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],c=[{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"PAUSE",text:"暂停"},{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"CANCELED",text:"取消"}]},"9d3d":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:"学员详情"},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[e.permissionList.studentInfo?a("el-tab-pane",{attrs:{label:"基本信息",name:"1"}},[1==e.activeIndex?a("studentInfo"):e._e()],1):e._e(),e._v(" "),e.permissionList.teamAndcourse?a("el-tab-pane",{attrs:{label:"乐团&课程",name:"2"}},[2==e.activeIndex?a("teamAndcourse"):e._e()],1):e._e(),e._v(" "),e.permissionList.studentVip?a("el-tab-pane",{attrs:{label:"VIP课",name:"3"}},[3==e.activeIndex?a("studentVip"):e._e()],1):e._e(),e._v(" "),e.permissionList.studentRecord?a("el-tab-pane",{attrs:{label:"上课记录",name:"4"}},[4==e.activeIndex?a("studentRecord"):e._e()],1):e._e(),e._v(" "),e.permissionList.studentPayList?a("el-tab-pane",{attrs:{label:"扣费记录",name:"5"}},[5==e.activeIndex?a("studentPayList"):e._e()],1):e._e(),e._v(" "),e.permissionList.studentOrder?a("el-tab-pane",{attrs:{label:"学员订单",name:"6"}},[6==e.activeIndex?a("studentOrder"):e._e()],1):e._e(),e._v(" "),e.permissionList.studentCashout?a("el-tab-pane",{attrs:{label:"学员提现",name:"7"}},[7==e.activeIndex?a("studentCashout"):e._e()],1):e._e()],1)],1)])},r=[],l=(a("7f7f"),a("386d"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"studentDetail"},[a("el-form",{attrs:{inline:!0}},[a("el-form-item",{attrs:{label:"学生姓名"}},[a("el-input",{attrs:{disabled:"",value:e.studentForm.realName}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学生性别"}},[a("el-input",{attrs:{value:e.studentForm.gender?"男":"女",disabled:""}})],1),e._v(" "),a("el-form-item",{attrs:{label:"出生年月"}},[a("el-input",{attrs:{value:e.studentForm.birthdate,disabled:""}})],1),e._v(" "),a("el-form-item",{attrs:{label:"家长姓名"}},[a("el-input",{attrs:{value:e.studentForm.parentsName,disabled:""}})],1),e._v(" "),a("el-form-item",{attrs:{label:"联系电话"}},[a("el-input",{attrs:{value:e.studentForm.parentsPhone,disabled:""}})],1),e._v(" "),a("el-form-item",{attrs:{label:"年级班级"}},[a("el-input",{attrs:{value:e.studentForm.currentGrade+e.studentForm.currentClass,disabled:""}})],1)],1)],1)}),s=[],o=a("5137"),u={data:function(){return{userId:this.$route.query.userId,studentForm:{},musicGroupInfo:[]}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(o["d"])({userId:this.userId}).then((function(t){200==t.code&&(e.studentForm=t.data)}))}}},i=u,c=(a("824b"),a("2877")),d=Object(c["a"])(i,l,s,!1,null,null,null),p=d.exports,m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"tabTopWrap"},[a("el-table",{attrs:{data:e.musicGroupInfo,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"musicGroupId",label:"乐团编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"joinMusicGroupDate",label:"入团时间"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"musicGroupName",label:"乐团名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"乐团状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("musicGroupType")(t.row.musicGroupStatus))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"专业"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"",label:"乐器来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.kitPurchaseMethod))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("musicGroupStudentType")(t.row.userMusicGroupStatus))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"所选乐器"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._l(t.row.userGoodsDtos,(function(t){return a("span",{key:t.goodsId},[e._v("\n "+e._s(e._f("joinArray")(t.goodsName,","))+"\n ")])})),e._v("\n "+e._s("LEASE"==t.row.kitPurchaseMethod?"(租赁:"+t.row.depositFee+")":"")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/findStudentCourses",expression:"'studentManage/findStudentCourses'"}],attrs:{type:"text"},on:{click:function(a){return e.onCourse(t.row)}}},[e._v("排课详情")])]}}])})],1)],1),e._v(" "),e.coursesShow?a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"课程类型"},model:{value:e.searchForm.classGroupType,callback:function(t){e.$set(e.searchForm,"classGroupType",t)},expression:"searchForm.classGroupType"}},e._l(e.courseArray,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"课程状态"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus",t)},expression:"searchForm.courseStatus"}},e._l(e.courseStatus,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{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.classGroupName,callback:function(t){e.$set(e.searchForm,"classGroupName",t)},expression:"searchForm.classGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{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.teacherName,callback:function(t){e.$set(e.searchForm,"teacherName",t)},expression:"searchForm.teacherName"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"searchBtn",on:{click:e.search}},[e._v("搜索")])])],1):e._e(),e._v(" "),e.coursesShow?a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.coursesInfo,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"classGroupId",label:"编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseDate",label:"时间"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("coursesType")(t.row.classGroupType))+"\n ")]}}],null,!1,1134216539)}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("coursesStatus")(t.row.courseStatus))+"\n ")]}}],null,!1,2648984599)}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"}})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getStudentCourses}})],1):e._e()],1)},f=[],b=a("333d"),h={components:{pagination:b["a"]},data:function(){return{userId:this.$route.query.userId,musicGroupInfo:[],coursesInfo:[],coursesShow:!1,searchLsit:[],searchForm:{studentId:this.$route.query.userId,musicGroupId:null,classGroupType:null,courseStatus:null,classGroupName:null,teacherName:null},courseArray:[{label:"单技课",value:"NORMAL"},{label:"合奏课",value:"MIX"},{label:"基础技能班",value:"HIGH"},{label:"VIP课",value:"VIP"},{label:"试听课",value:"DEMO"}],courseStatus:[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(o["f"])({userId:this.userId}).then((function(t){200==t.code&&(e.musicGroupInfo=t.data)}))},onCourse:function(e){this.coursesShow=!0,this.searchForm={studentId:this.$route.query.userId,musicGroupId:e.musicGroupId,classGroupType:null,courseStatus:null,classGroupName:null,teacherName:null},this.getStudentCourses()},search:function(){this.pageInfo.page=1,this.getStudentCourses()},getStudentCourses:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(o["e"])(t).then((function(t){200==t.code&&(e.coursesInfo=t.data.rows,e.pageInfo.total=t.data.total)}))}}},g=h,v=(a("ec96"),Object(c["a"])(g,m,f,!1,null,null,null)),_=v.exports,I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"课程类型"},model:{value:e.searchForm.classGroupType,callback:function(t){e.$set(e.searchForm,"classGroupType",t)},expression:"searchForm.classGroupType"}},e._l(e.courseArray,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"考勤状态"},model:{value:e.searchForm.attendanceStatus,callback:function(t){e.$set(e.searchForm,"attendanceStatus",t)},expression:"searchForm.attendanceStatus"}},e._l(e.att,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"班级名称"},model:{value:e.searchForm.classGroupName,callback:function(t){e.$set(e.searchForm,"classGroupName",t)},expression:"searchForm.classGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{placeholder:"老师姓名"},model:{value:e.searchForm.teacherName,callback:function(t){e.$set(e.searchForm,"teacherName",t)},expression:"searchForm.teacherName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")])],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"courseDate",label:"上课时间"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"星期几"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatWeek")(t.row.courseDate))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("classType")(t.row.classGroupType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"currentCLassTimes",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentCLassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"课程老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"attendanceStatus",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("clockingIn")(t.row.attendanceStatus))+"\n ")]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},y=[],S={name:"studentRecord",components:{pagination:b["a"]},data:function(){return{searchForm:{studentId:this.$route.query.userId,classGroupType:null,attendanceStatus:null,classGroupName:null,teacherName:null},searchLsit:[],tableList:[],courseArray:[{label:"单技课",value:"NORMAL"},{label:"合奏课",value:"MIX"},{label:"基础技能班",value:"HIGH"},{label:"VIP课",value:"VIP"},{label:"试听课",value:"DEMO"}],att:[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(o["c"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},onReSet:function(){this.searchForm={studentId:this.$route.query.userId,classGroupType:null,attendanceStatus:null,classGroupName:null,teacherName:null},this.getList()}}},k=S,F=Object(c["a"])(k,I,y,!1,null,null,null),C=F.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"考勤状态"},model:{value:e.searchForm.attendanceStatus,callback:function(t){e.$set(e.searchForm,"attendanceStatus",t)},expression:"searchForm.attendanceStatus"}},e._l(e.attendanceStatus,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.classDate)+" "+e._s(t.row.startClassTime)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("coursesType")(t.row.classGroupType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"currentClassTimes",label:"当前课次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentClassTimes+"/"+t.row.totalClassTimes)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("clockingIn")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectPrice",label:"预计扣费"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualPrice",label:"实际扣费"}})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},w=[],L=a("92e3"),T=(a("4360"),{components:{pagination:b["a"]},data:function(){return{organId:null,searchForm:{studentId:this.$route.query.userId,attendanceStatus:null},attendanceStatus:L["b"],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(o["p"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},onReSet:function(){this.searchForm={studentId:this.$route.query.userId,attendanceStatus:null}}}}),x=T,E=Object(c["a"])(x,O,w,!1,null,null,null),N=E.exports,G=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"studentvip"},[a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"课程名称"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onSearch(t)}},model:{value:e.searchForm.classGroupName,callback:function(t){e.$set(e.searchForm,"classGroupName",t)},expression:"searchForm.classGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.onSearch}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{label:"VIP编号",align:"center",prop:"vipGroupId"}}),e._v(" "),a("el-table-column",{attrs:{label:"VIP课名称",align:"center",prop:"vipGroupName"}}),e._v(" "),a("el-table-column",{attrs:{label:"VIP课状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("vipCourseStatus")(t.row.vipGroupStatus))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指导老师",align:"center",prop:"teacherName"}}),e._v(" "),a("el-table-column",{attrs:{label:"班级人数",align:"center",prop:"studentNum"}}),e._v(" "),a("el-table-column",{attrs:{label:"活动方案",align:"center",prop:"activeName"}}),e._v(" "),a("el-table-column",{attrs:{label:"开课时间",align:"center",prop:"courseStartDate"}}),e._v(" "),a("el-table-column",{attrs:{label:"当前课次",align:"center",prop:"currentClassTimes"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentClassTimes)+"/"+e._s(t.row.totalClassTimes)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentManage/findStudentVipGroups",expression:"'studentManage/findStudentVipGroups'"}],attrs:{type:"text"},on:{click:function(a){return e.onCourse(t.row)}}},[e._v("课表")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getCourseList}}),e._v(" "),a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogTableVisible},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-table",{attrs:{data:e.gridData}},[a("el-table-column",{attrs:{prop:"courseDate",label:"时间",align:"center",width:"150"}}),e._v(" "),a("el-table-column",{attrs:{prop:"classGroupName",label:"课程名称",align:"center",width:"200"}}),e._v(" "),a("el-table-column",{attrs:{label:"课程类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("ONLINE"==t.row.teachMode?"线上":"线下")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"courseStatus",align:"center",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("coursesStatus")(t.row.courseStatus))+"\n ")]}}])})],1)],1)],1)],1)},$=[],j={name:"studentvip",components:{pagination:b["a"]},data:function(){return{searchForm:{studentId:this.$route.query.userId,classGroupName:null},checkIndex:null,dialogTableVisible:!1,searchLsit:[],tableList:[],courseList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogTitle:"",gridData:[],userId:""}},created:function(){this.userId=this.$route.query.userId||null},mounted:function(){this.getCourseList()},methods:{getCourseList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(o["g"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},onCourse:function(e){var t=this;Object(o["h"])({vipGroupId:e.vipGroupId,studentId:this.userId}).then((function(a){t.dialogTitle=e.vipGroupName,200==a.code&&(t.gridData=a.data.rows,t.dialogTableVisible=!0)}))},onSearch:function(){this.pageInfo.page=1,this.getCourseList()}}},A=j,D=(a("ced1"),Object(c["a"])(A,G,$,!1,null,null,null)),P=D.exports,M=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"studentOrder"},[a("div",{staticClass:"headWrap"},[a("div",{staticClass:"left"},[a("div",{staticClass:"headItem"},[a("p",[e._v("账户余额:"),a("span",[e._v(e._s(e.dataInfo.balance))])])]),e._v(" "),a("div",{staticClass:"headItem"},[e.amountStatus?a("p",[e._v("课程余额:"),a("span",[e._v(e._s(e.dataInfo.courseBalance))])]):a("p",[e._v("课程余额:"),a("span",[a("el-input",{staticStyle:{width:"130px"},attrs:{placeholder:"课程余额"},model:{value:e.dataInfo.courseBalance,callback:function(t){e.$set(e.dataInfo,"courseBalance",t)},expression:"dataInfo.courseBalance"}})],1)]),e._v(" "),e.amountStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"userCashAccount/updateCourseBalance",expression:"'userCashAccount/updateCourseBalance'"}],attrs:{type:"text"},on:{click:function(t){e.amountStatus=!1}}},[e._v("修改")]):a("el-button",{staticStyle:{top:"0"},attrs:{type:"text"},on:{click:e.onUpdateCourse}},[e._v("保存")])],1),e._v(" "),a("div",{staticClass:"headItem"},[a("p",[e._v("银行卡:"),a("span",[e._v(e._s(e.dataInfo.cardNo))])])])])]),e._v(" "),a("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"订单开始日期","end-placeholder":"订单结束日期"},on:{change:e.searchCourseDate},model:{value:e.orderDate,callback:function(t){e.orderDate=t},expression:"orderDate"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"交易类型"},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.orderStatus,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-input",{attrs:{type:"text",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.remark,callback:function(t){e.$set(e.searchForm,"remark",t)},expression:"searchForm.remark"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"订单日期",prop:"createTime",width:"180px"}}),e._v(" "),a("el-table-column",{attrs:{label:"交易类型",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("orderType")(t.row.type))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"180px",label:"应付金额",prop:"expectAmount"}}),e._v(" "),a("el-table-column",{attrs:{width:"180px",label:"余额支付",prop:"balancePaymentAmount"}}),e._v(" "),a("el-table-column",{attrs:{width:"180px",label:"实际金额",prop:"actualAmount"}}),e._v(" "),a("el-table-column",{attrs:{label:"订单说明",prop:"memo"}})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)},R=[],z={components:{pagination:b["a"]},data:function(){return{organId:null,orderDate:null,searchForm:{studentId:this.$route.query.userId,orderStartDate:null,orderEndDate:null,paymentType:null,remark:null},orderStatus:L["g"],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[],dataInfo:{},amountStatus:!0}},mounted:function(){this.getList(),this.__init()},methods:{__init:function(){var e=this;Object(o["n"])({userId:this.$route.query.userId}).then((function(t){200==t.code&&(e.dataInfo={balance:t.data.balance,courseBalance:t.data.courseBalance,wxBalance:0,cardNo:t.data.cardNo,zfb:null})}))},onUpdateCourse:function(){var e=this;this.dataInfo.courseBalance?this.$confirm("确定是否修改该学生课程余额?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["v"])({userId:e.searchForm.studentId,decimal:e.dataInfo.courseBalance}).then((function(t){t.data;200==t.code?(e.$message.success("保存成功"),e.amountStatus=!0,e.__init()):e.$message.error(t.msg)}))})).catch((function(){e.amountStatus=!0})):this.$message.error("请输入课程余额")},search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,""!=t.remark&&t.remark||(t.remark=null),Object(o["t"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},searchCourseDate:function(e){e?(this.searchForm.orderStartDate=e[0],this.searchForm.orderEndDate=e[1]):(this.searchForm.orderStartDate=null,this.searchForm.orderEndDate=null)},onReSet:function(){this.orderDate=null,this.searchForm={studentId:this.$route.query.userId,orderStartDate:null,orderEndDate:null,paymentType:null,remark:null}}}},q=z,V=(a("208c"),Object(c["a"])(q,M,R,!1,null,"b541d05e",null)),B=V.exports,U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"提现交易流水号",prop:"id"}}),e._v(" "),a("el-table-column",{attrs:{label:"申请时间",prop:"createTime"}}),e._v(" "),a("el-table-column",{attrs:{label:"提现金额",prop:"amount"}}),e._v(" "),a("el-table-column",{attrs:{label:"账户余额",prop:"balance"}}),e._v(" "),a("el-table-column",{attrs:{label:"账户号",prop:"bankCardNo"}}),e._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dealStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"支付账号",prop:"platformAccountNo"}}),e._v(" "),a("el-table-column",{attrs:{label:"支付渠道",prop:"channel"}}),e._v(" "),a("el-table-column",{attrs:{label:"交易流水号",prop:"withdrawNo"}})],1),e._v(" "),a("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)])},W=[],H={components:{pagination:b["a"]},data:function(){return{searceList:{},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;Object(o["u"])({userId:this.$route.query.userId,rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(t){200==t.code&&(e.tableList=t.data.rows)}))}}},Y=H,Q=Object(c["a"])(Y,U,W,!1,null,null,null),X=Q.exports,J=a("ec8a"),K={components:{teamAndcourse:_,studentRecord:C,studentPayList:N,studentInfo:p,studentVip:P,studentOrder:B,studentCashout:X},name:"studentDetail",data:function(){return{activeIndex:"1",permissionList:{studentInfo:Object(J["a"])("/studentDetail/studentInfo"),teamAndcourse:Object(J["a"])("/studentDetail/teamAndcourse"),studentVip:Object(J["a"])("/studentDetail/studentVip"),studentRecord:Object(J["a"])("/studentDetail/studentRecord"),studentPayList:Object(J["a"])("/studentDetail/studentPayList"),studentOrder:Object(J["a"])("/studentDetail/studentOrder"),studentCashout:Object(J["a"])("/studentDetail/studentCashout")}}},mounted:function(){this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules)},methods:{onCancel:function(){this.$router.push({path:"/business/studentList",query:{rules:this.Frules,search:this.Fsearch}})},handleClick:function(e){this.activeIndex=e.name}}},Z=K,ee=Object(c["a"])(Z,n,r,!1,null,null,null);t["default"]=ee.exports},c0b9:function(e,t,a){"use strict";var n=a("de4e"),r=a.n(n);r.a},ced1:function(e,t,a){"use strict";var n=a("2295"),r=a.n(n);r.a},d587:function(e,t,a){},de4e:function(e,t,a){},ec8a:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("6762"),a("2fdb"),a("28a5");function n(e){var t=window.localStorage.getItem("permission");return t=t.split(","),!!t.includes(e)}},ec96:function(e,t,a){"use strict";var n=a("f2e6"),r=a.n(n);r.a},f2e6:function(e,t,a){}}]);
|