chunk-1956a6b0.65c3bdc9.js 27 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1956a6b0"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",function(){return o}),Math.easeInOutQuad=function(t,e,a,r){return t/=r/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function s(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,a){var o=i(),n=t-o,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var i=Math.easeInOutQuad(u,o,n,e);s(i),u<e?r(t):a&&"function"===typeof a&&a()};c()}},"11e9":function(t,e,a){var r=a("52a7"),s=a("4630"),i=a("6821"),o=a("6a99"),n=a("69a8"),l=a("c69a"),u=Object.getOwnPropertyDescriptor;e.f=a("9e1e")?u:function(t,e){if(t=i(t),e=o(e,!0),l)try{return u(t,e)}catch(a){}if(n(t,e))return s(!r.f.call(t,e),t[e])}},"333d":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[a("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},s=[],i=(a("c5f6"),a("09f4")),o={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(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(i["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(i["a"])(0,800)}}},n=o,l=(a("c0b9"),a("2877")),u=Object(l["a"])(n,r,s,!1,null,"31cb099a",null);e["a"]=u.exports},"5dbc":function(t,e,a){var r=a("d3f4"),s=a("8b97").set;t.exports=function(t,e,a){var i,o=e.constructor;return o!==a&&"function"==typeof o&&(i=o.prototype)!==a.prototype&&r(i)&&s&&s(t,i),t}},"7e78":function(t,e,a){"use strict";a.d(e,"y",function(){return n}),a.d(e,"i",function(){return l}),a.d(e,"c",function(){return u}),a.d(e,"v",function(){return c}),a.d(e,"r",function(){return d}),a.d(e,"a",function(){return m}),a.d(e,"s",function(){return p}),a.d(e,"p",function(){return f}),a.d(e,"f",function(){return v}),a.d(e,"w",function(){return h}),a.d(e,"x",function(){return b}),a.d(e,"b",function(){return g}),a.d(e,"t",function(){return _}),a.d(e,"q",function(){return y}),a.d(e,"n",function(){return F}),a.d(e,"l",function(){return C}),a.d(e,"g",function(){return k}),a.d(e,"o",function(){return T}),a.d(e,"h",function(){return S}),a.d(e,"m",function(){return N}),a.d(e,"j",function(){return O}),a.d(e,"u",function(){return I}),a.d(e,"k",function(){return x}),a.d(e,"e",function(){return j}),a.d(e,"d",function(){return $});var r=a("b775"),s=a("4328"),i=a.n(s),o="/api-web";function n(t){return Object(r["a"])({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})}function l(t){return Object(r["a"])({url:o+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function u(t){return Object(r["a"])({url:o+"/vipGroupCategory/add",method:"post",data:i.a.stringify(t)})}function c(t){return Object(r["a"])({url:o+"/vipGroupCategory/update",method:"post",data:i.a.stringify(t)})}function d(t){return Object(r["a"])({url:o+"/vipGroupCategory/delete",method:"post",data:i.a.stringify(t)})}function m(t){return Object(r["a"])({url:o+"/vipGroupDefaultClassesCycle/add",method:"post",data:i.a.stringify(t)})}function p(t){return Object(r["a"])({url:o+"/vipGroupDefaultClassesCycle/update",method:"post",data:i.a.stringify(t)})}function f(t){return Object(r["a"])({url:o+"/vipGroupDefaultClassesCycle/delete",method:"post",data:i.a.stringify(t)})}function v(t){return Object(r["a"])({url:o+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:i.a.stringify(t)})}function h(t){return Object(r["a"])({url:o+"/vipGroupActivity/queryPage",method:"get",params:t})}function b(t){return Object(r["a"])({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function g(t){return Object(r["a"])({url:o+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function _(t){return Object(r["a"])({url:o+"/vipGroupActivity/update",method:"POST",data:t})}function y(t){return Object(r["a"])({url:o+"/vipGroupActivity/delete",method:"POST",data:i.a.stringify(t)})}function F(t){return Object(r["a"])({url:o+"/vipGroupManage/queryAll",method:"GET",params:t})}function C(t){return Object(r["a"])({url:o+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function k(t){return Object(r["a"])({url:o+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function T(t){return Object(r["a"])({url:o+"/vipGroupManage/applyRefundForStudent",method:"POST",data:i.a.stringify(t)})}function S(t){return Object(r["a"])({url:o+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function N(t){return Object(r["a"])({url:o+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function O(t){return Object(r["a"])({url:o+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function I(t){return Object(r["a"])({url:o+"/vipGroupManage/classStartDateAdjust",method:"POST",params:t})}function x(t){return Object(r["a"])({url:o+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function j(t){return Object(r["a"])({url:o+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function $(t){return Object(r["a"])({url:o+"/vipGroupManage/stopVipGroup",method:"POST",data:i.a.stringify(t)})}},"8b97":function(t,e,a){var r=a("d3f4"),s=a("cb7c"),i=function(t,e){if(s(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=a("9b43")(Function.call,a("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(s){e=!0}return function(t,a){return i(t,a),e?t.__proto__=a:r(t,a),t}}({},!1):void 0),check:i}},9093:function(t,e,a){var r=a("ce10"),s=a("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,s)}},aa77:function(t,e,a){var r=a("5ca1"),s=a("be13"),i=a("79e5"),o=a("fdef"),n="["+o+"]",l="​…",u=RegExp("^"+n+n+"*"),c=RegExp(n+n+"*$"),d=function(t,e,a){var s={},n=i(function(){return!!o[t]()||l[t]()!=l}),u=s[t]=n?e(m):o[t];a&&(s[a]=u),r(r.P+r.F*n,"String",s)},m=d.trim=function(t,e){return t=String(s(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=d},af1a:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("h2",[t._v("VIP课程名称")]),t._v(" "),a("div",{staticClass:"m-core"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"1"}},[a("vipBase")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"教学记录",name:"2"}},[a("teacherRecord")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"VIP课程财务",name:"3"}},[a("fnanceInfo")],1)],1)],1)])},s=[],i=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"headWrap"},[a("div",{staticClass:"left"},[a("div",{staticClass:"headItem"},[a("p",[t._v("未上课时:"),a("span",[t._v(t._s(t.totalClassTimes))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("已上课时:"),a("span",[t._v(t._s(t.currentClassTimes))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("已结算:"),a("span",[t._v(t._s(t.isSalaryNum))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("被投诉:"),a("span",[t._v(t._s(t.complaintsNum))])])])]),t._v(" "),a("div",{staticClass:"right"})]),t._v(" "),a("el-form",{staticClass:"searchForm",attrs:{inline:!0,"label-position":"right","label-width":"120px"},model:{value:t.searchForm,callback:function(e){t.searchForm=e},expression:"searchForm"}},[a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"课程类型"},model:{value:t.searchForm.type,callback:function(e){t.$set(t.searchForm,"type",e)},expression:"searchForm.type"}},[a("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),t._v(" "),a("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1),t._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",placeholder:"课程状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status",e)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),t._v(" "),a("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),t._v(" "),a("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),t._v(" "),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":"结束日期"},model:{value:t.searchForm.time,callback:function(e){t.$set(t.searchForm,"time",e)},expression:"searchForm.time"}})],1),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.getList}},[t._v("搜索")])],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList}},[a("el-table-column",{attrs:{align:"center",label:"上课时间",prop:"startClassTime"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程类型",prop:"teachMode"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(t._f("fitterTeachMode")(e.row.teachMode)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"上课学员数",prop:"attendanceNum"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"课程状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(t._f("fitterStatus")(e.row.status)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isSalary",label:"结算状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(t._f("fitterisSalary")(e.row.isSalary)))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.lookStudents(e.row)}}},[t._v("查看学员")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.resetClass(e.row)}}},[t._v("课程调整")])],1)]}}])})],1)],1),t._v(" "),a("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"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}}),t._v(" "),a("el-dialog",{attrs:{title:"上课学员",visible:t.studentVisible,width:"30%","before-close":t.handleClose},on:{"update:visible":function(e){t.studentVisible=e}}},[t._l(t.studentList,function(e,r){return a("span",{key:r,staticStyle:{"margin-left":"10px"}},[t._v(t._s(e))])}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)],2),t._v(" "),a("el-dialog",{attrs:{title:"课时调整",visible:t.courseVisible,width:"420px"},on:{"update:visible":function(e){t.courseVisible=e}}},[a("el-form",{ref:"maskForm",attrs:{model:t.maskForm,rules:t.maskrules}},[a("el-form-item",{attrs:{label:"选择上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.maskForm.date,callback:function(e){t.$set(t.maskForm,"date",e)},expression:"maskForm.date"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:00"},placeholder:"选择时间"},model:{value:t.maskForm.startTime,callback:function(e){t.$set(t.maskForm,"startTime",e)},expression:"maskForm.startTime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("el-time-picker",{attrs:{format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"00:00:00 - 23:59:00"},placeholder:"选择时间"},model:{value:t.maskForm.endTime,callback:function(e){t.$set(t.maskForm,"endTime",e)},expression:"maskForm.endTime"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.resetCourse}},[t._v("确 定")])],1)],1)],1)}),o=[],n=a("333d"),l=a("7e78"),u={components:{pagination:n["a"]},name:"teacherRecord",data:function(){return{searchForm:{type:"",status:"",time:[]},searchLsit:[],tableList:[],id:"",complaintsNum:"",currentClassTimes:"",isSalaryNum:"",totalClassTimes:"",studentVisible:!1,courseVisible:!1,studentList:[],maskForm:{data:"",startTime:"",endTime:"",status:"",type:""},activeId:"",maskrules:{date:[{required:!0,message:"请选择修改日期",trigger:"blur"}],startTime:[{required:!0,message:"请选择开始",trigger:"blur"}],endTime:[{required:!0,message:"请选择结束",trigger:"blur"}]},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var t=this.$route.query.id||1;this.id=t,this.getList()},methods:{getList:function(){var t,e,a=this;this.searchForm.time?(t=this.searchForm.time[0],e=this.searchForm.time[1]):(t="",e="");var r={vipGroupId:this.id,page:this.rules.page,rows:this.rules.limit,status:this.searchForm.status||null,teachMode:this.searchForm.type||null,startTime:t,endTime:e};Object(l["h"])(r).then(function(t){200==t.code&&(a.complaintsNum=t.data.baseInfo.complaintsNum,a.currentClassTimes=t.data.baseInfo.currentClassTimes,a.isSalaryNum=t.data.baseInfo.isSalaryNum,a.totalClassTimes=t.data.baseInfo.totalClassTimes-a.currentClassTimes,a.tableList=t.data.pageInfo.rows,a.rules.total=t.data.pageInfo.total)})},lookStudents:function(t){var e=this,a=t.id;Object(l["j"])({courseScheduleId:a}).then(function(t){200==t.code&&(e.studentList=t.data,e.studentVisible=!0)})},handleClose:function(){this.studentList=[],this.studentVisible=!1},resetClass:function(t){this.courseVisible=!0,this.activeId=t.id},resetCourse:function(){var t=this;console.log(this.maskForm.timer),this.$refs["maskForm"].validate(function(e){e&&Object(l["u"])({id:t.activeId,classDate:t.maskForm.date,startClassTime:t.maskForm.date+" "+t.maskForm.startTime,endClassTime:t.maskForm.date+" "+t.maskForm.endTime}).then(function(e){200==e.code?(t.$message({type:"success",message:"调整成功"}),t.getList(),t.courseVisible=!1,t.$refs["maskForm"].resetFields()):t.$message({type:"error",message:e.msg})})})}},filters:{fitterisSalary:function(t){var e=["未结算","已结算"];return e[t]},fitterTeachMode:function(t){return"ONLINE"==t?"线上课":"OFFLINE"==t?"线下课":void 0},fitterStatus:function(t){return"NOT_START"==t?"未开始":"UNDERWAY"==t?"进行中":"OVER"==t?"已结束":void 0}}},c=u,d=a("2877"),m=Object(d["a"])(c,i,o,!1,null,null,null),p=m.exports,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"vip-base"},[a("div",{staticClass:"left"},[a("el-form",{attrs:{"label-position":"right","label-width":"120px",model:t.topForm}},[a("el-form-item",{attrs:{label:"指导老师"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.teacherCount,callback:function(e){t.$set(t.topForm,"teacherCount",e)},expression:"topForm.teacherCount"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"科目名称"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.subject,callback:function(e){t.$set(t.topForm,"subject",e)},expression:"topForm.subject"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"活动方案"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.active,callback:function(e){t.$set(t.topForm,"active",e)},expression:"topForm.active"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"课程形式"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.status,callback:function(e){t.$set(t.topForm,"status",e)},expression:"topForm.status"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"每班人数"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.classNum,callback:function(e){t.$set(t.topForm,"classNum",e)},expression:"topForm.classNum"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"每课时长"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.classTime,callback:function(e){t.$set(t.topForm,"classTime",e)},expression:"topForm.classTime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"教学点名称"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.address,callback:function(e){t.$set(t.topForm,"address",e)},expression:"topForm.address"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"线上课数"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.onlineClass,callback:function(e){t.$set(t.topForm,"onlineClass",e)},expression:"topForm.onlineClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"线下课数"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.offlineClass,callback:function(e){t.$set(t.topForm,"offlineClass",e)},expression:"topForm.offlineClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"报名开始时间"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.startTime,callback:function(e){t.$set(t.topForm,"startTime",e)},expression:"topForm.startTime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"报名结束时间"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.endTime,callback:function(e){t.$set(t.topForm,"endTime",e)},expression:"topForm.endTime"}})],1)],1)],1),t._v(" "),a("div",{staticClass:"right"},[a("el-form",{attrs:{"label-position":"right","label-width":"120px",model:t.rightForm}},[a("el-form-item",{attrs:{label:"总课时数"}},[a("el-input",{attrs:{disabled:""},model:{value:t.rightForm.allClass,callback:function(e){t.$set(t.rightForm,"allClass",e)},expression:"rightForm.allClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"课程单价(线上)"}},[a("el-input",{attrs:{disabled:""},model:{value:t.rightForm.onlineClass,callback:function(e){t.$set(t.rightForm,"onlineClass",e)},expression:"rightForm.onlineClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"课程单价(线下)"}},[a("el-input",{attrs:{disabled:""},model:{value:t.rightForm.offlineClass,callback:function(e){t.$set(t.rightForm,"offlineClass",e)},expression:"rightForm.offlineClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"课程总价"}},[a("el-input",{attrs:{disabled:""},model:{value:t.rightForm.allPrice,callback:function(e){t.$set(t.rightForm,"allPrice",e)},expression:"rightForm.allPrice"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"当前课程进度"}},[a("el-input",{attrs:{disabled:""},model:{value:t.rightForm.progress,callback:function(e){t.$set(t.rightForm,"progress",e)},expression:"rightForm.progress"}})],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("h4",[t._v("vip课学员名单")]),t._v(" "),a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"学员名单",prop:"userName",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("el-popover",{ref:e.$index,attrs:{placement:"top",width:"160"}},[a("p",[t._v("确定退学吗?")]),t._v(" "),a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e._self.$refs[e.$index].doClose()}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return t.leaveSchool(e)}}},[t._v("确定")])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("退学")])],1)],1)]}}])})],1)],1)],1)])},v=[],h={data:function(){return{topForm:{teacherCount:"",subject:"",active:"",status:"",classNum:"",classTime:"",address:"",onlineClass:"",offlineClass:"",startTime:"",endTime:""},rightForm:{allClass:"",onlineClass:"",offlineClass:"",allPrice:"",progress:""},tableList:[]}},mounted:function(){var t=this,e=this.$route.query.id||1;this.id=e,Object(l["l"])({vipGroupId:e}).then(function(e){200==e.code&&(t.topForm.teacherCount=e.data.userName,t.topForm.subject=e.data.subjectName,t.topForm.active=e.data.vipGroupActivityName,t.topForm.status=e.data.categoryName,t.topForm.classNum=e.data.studentNum,t.topForm.classTime=e.data.singleClassMinutes,t.topForm.address=e.data.teacherSchoolName,t.topForm.onlineClass=e.data.onlineClassesNum,t.topForm.offlineClass=e.data.offlineClassesNum,t.topForm.startTime=e.data.registrationStartTime,t.topForm.endTime=e.data.paymentExpireDate,t.rightForm.allClass=e.data.totalClassTimes,t.rightForm.onlineClass=e.data.onlineClassesUnitPrice,t.rightForm.offlineClass=e.data.offlineClassesUnitPrice,t.rightForm.allPrice=e.data.totalPrice,t.rightForm.progress=e.data.currentClassTimes+"/"+e.data.totalClassTimes)}),this.getStudents()},methods:{getStudents:function(){var t=this;Object(l["g"])({vipGroupId:this.id}).then(function(e){200==e.code&&(t.tableList=e.data.rows)})},leaveSchool:function(t){var e=this;console.log(t.row);var a=t.row.id,r=this.id;Object(l["o"])({studentId:a,vipGroupId:r}).then(function(a){200==a.code&&(e.$message({type:"success",message:"退学成功"}),t._self.$refs[t.$index].doClose(),e.getStudents())})}}},b=h,g=(a("f288"),Object(d["a"])(b,f,v,!1,null,"d2922036",null)),_=g.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{},[a("div",{staticClass:"headWrap"},[a("div",{staticClass:"left"},[a("div",{staticClass:"headItem"},[a("p",[t._v("课程总价: "),a("span",[t._v(" "+t._s(t.totalPrice))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("扣费笔数: "),a("span",[t._v(" "+t._s(t.feeDeductionNum))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("线上课课酬: "),a("span",[t._v(" "+t._s(t.onlineClassesUnitPrice))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("课酬总数: "),a("span",[t._v(" "+t._s(t.totalSalary))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("扣费总额: "),a("span",[t._v(" "+t._s(t.totalFeeDeduction))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("线下课课酬: "),a("span",[t._v(" "+t._s(t.offlineClassesUnitPrice))])])])])]),t._v(" "),a("el-form",{attrs:{inline:!0,model:t.searchForm}},[a("el-form-item",{attrs:{label:"时间范围"}},[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd"},model:{value:t.searchForm.time,callback:function(e){t.$set(t.searchForm,"time",e)},expression:"searchForm.time"}})],1),t._v(" "),a("el-form-item",[a("el-button",{on:{click:t.getList}},[t._v("搜索")])],1)],1),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[a("el-table-column",{attrs:{label:"上课时间",prop:"classDate"}}),t._v(" "),a("el-table-column",{attrs:{label:"课时类型",prop:"teachMode"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("fitterteachMode")(e.row.teachMode))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"扣费总额",prop:"deductionFee"}}),t._v(" "),a("el-table-column",{attrs:{label:"老师课酬",prop:"actualSalary"}}),t._v(" "),a("el-table-column",{attrs:{label:"结算状态",prop:"isSalary"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("fitterisSalary")(e.row.isSalary))+"\n ")])]}}])})],1),t._v(" "),a("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"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)},F=[],C={components:{pagination:n["a"]},data:function(){return{searchForm:{time:[]},tableList:[],id:"",onlineClassesUnitPrice:"",totalPrice:"",offlineClassesUnitPrice:"",totalFeeDeduction:"",feeDeductionNum:"",totalSalary:"",rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var t=this,e=this.$route.query.id||1;this.id=e,this.getList(),Object(l["l"])({vipGroupId:this.id}).then(function(e){200==e.code&&(t.totalPrice=e.data.totalPrice,t.onlineClassesUnitPrice=e.data.onlineClassesUnitPrice,t.offlineClassesUnitPrice=e.data.offlineClassesUnitPrice)})},methods:{getList:function(){var t=this;Object(l["m"])({vipGroupId:this.id,organId:this.$store.getters.organ,pahe:this.rules.page,rows:this.rules.limit,startTime:this.searchForm.time[0]||null,endTime:this.searchForm.time[1]||null}).then(function(e){200==e.code&&(t.tableList=e.data.pageInfo.rows,t.totalFeeDeduction=e.data.baseInfo.totalFeeDeduction,t.feeDeductionNum=e.data.baseInfo.feeDeductionNum,t.totalSalary=e.data.baseInfo.totalSalary,t.rules.total=e.data.pageInfo.total)})}},filters:{fitterisSalary:function(t){var e=["未结算","已结算"];return e[t]},fitterteachMode:function(t){return"ONLINE"==t?"线上课":"OFFLINE"==t?"线下课":void 0}}},k=C,T=Object(d["a"])(k,y,F,!1,null,null,null),S=T.exports,N={components:{teacherRecord:p,vipBase:_,fnanceInfo:S},name:"vipDetail",data:function(){return{activeName:"1"}},methods:{handleClick:function(t,e){this.activeName=t.name}},mounted:function(){}},O=N,I=Object(d["a"])(O,r,s,!1,null,null,null);e["default"]=I.exports},c0b9:function(t,e,a){"use strict";var r=a("de4e"),s=a.n(r);s.a},c5f6:function(t,e,a){"use strict";var r=a("7726"),s=a("69a8"),i=a("2d95"),o=a("5dbc"),n=a("6a99"),l=a("79e5"),u=a("9093").f,c=a("11e9").f,d=a("86cc").f,m=a("aa77").trim,p="Number",f=r[p],v=f,h=f.prototype,b=i(a("2aeb")(h))==p,g="trim"in String.prototype,_=function(t){var e=n(t,!1);if("string"==typeof e&&e.length>2){e=g?e.trim():m(e,3);var a,r,s,i=e.charCodeAt(0);if(43===i||45===i){if(a=e.charCodeAt(2),88===a||120===a)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,s=49;break;case 79:case 111:r=8,s=55;break;default:return+e}for(var o,l=e.slice(2),u=0,c=l.length;u<c;u++)if(o=l.charCodeAt(u),o<48||o>s)return NaN;return parseInt(l,r)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof f&&(b?l(function(){h.valueOf.call(a)}):i(a)!=p)?o(new v(_(e)),a,f):_(e)};for(var y,F=a("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;F.length>C;C++)s(v,y=F[C])&&!s(f,y)&&d(f,y,c(v,y));f.prototype=h,h.constructor=f,a("2aba")(r,p,f)}},de4e:function(t,e,a){},e32d:function(t,e,a){},f288:function(t,e,a){"use strict";var r=a("e32d"),s=a.n(r);s.a},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);