chunk-3398cf7c.969c7807.js 49 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3398cf7c"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",function(){return o}),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,a){var o=i(),s=t-o,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var i=Math.easeInOutQuad(u,o,s,e);r(i),u<e?n(t):a&&"function"===typeof a&&a()};c()}},"36d7":function(t,e,a){},"7e78":function(t,e,a){"use strict";a.d(e,"O",function(){return s}),a.d(e,"l",function(){return l}),a.d(e,"q",function(){return u}),a.d(e,"c",function(){return c}),a.d(e,"J",function(){return d}),a.d(e,"F",function(){return m}),a.d(e,"a",function(){return p}),a.d(e,"G",function(){return f}),a.d(e,"D",function(){return h}),a.d(e,"j",function(){return v}),a.d(e,"M",function(){return b}),a.d(e,"N",function(){return g}),a.d(e,"b",function(){return _}),a.d(e,"H",function(){return y}),a.d(e,"E",function(){return F}),a.d(e,"A",function(){return O}),a.d(e,"x",function(){return C}),a.d(e,"y",function(){return k}),a.d(e,"o",function(){return S}),a.d(e,"B",function(){return j}),a.d(e,"p",function(){return T}),a.d(e,"z",function(){return w}),a.d(e,"v",function(){return I}),a.d(e,"I",function(){return G}),a.d(e,"w",function(){return x}),a.d(e,"i",function(){return N}),a.d(e,"h",function(){return L}),a.d(e,"K",function(){return $}),a.d(e,"n",function(){return M}),a.d(e,"g",function(){return D}),a.d(e,"L",function(){return V}),a.d(e,"e",function(){return A}),a.d(e,"u",function(){return P}),a.d(e,"r",function(){return E}),a.d(e,"d",function(){return R}),a.d(e,"f",function(){return q}),a.d(e,"P",function(){return B}),a.d(e,"t",function(){return W}),a.d(e,"C",function(){return z}),a.d(e,"m",function(){return U}),a.d(e,"k",function(){return H}),a.d(e,"s",function(){return J});var n=a("b775"),r=a("4328"),i=a.n(r),o="/api-web";function s(t){return Object(n["a"])({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})}function l(t){return Object(n["a"])({url:o+"/vipGroupCategory/findTeacherDefaultSalary",method:"post",data:i.a.stringify(t)})}function u(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function c(t){return Object(n["a"])({url:o+"/vipGroupCategory/add",method:"post",data:i.a.stringify(t)})}function d(t){return Object(n["a"])({url:o+"/vipGroupCategory/update",method:"post",data:i.a.stringify(t)})}function m(t){return Object(n["a"])({url:o+"/vipGroupCategory/delete",method:"post",data:i.a.stringify(t)})}function p(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/add",method:"post",data:i.a.stringify(t)})}function f(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/update",method:"post",data:i.a.stringify(t)})}function h(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesCycle/delete",method:"post",data:i.a.stringify(t)})}function v(t){return Object(n["a"])({url:o+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:i.a.stringify(t)})}function b(t){return Object(n["a"])({url:o+"/vipGroupActivity/queryPage",method:"get",params:t})}function g(t){return Object(n["a"])({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function _(t){return Object(n["a"])({url:o+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function y(t){return Object(n["a"])({url:o+"/vipGroupActivity/update",method:"POST",data:t})}function F(t){return Object(n["a"])({url:o+"/vipGroupActivity/delete",method:"POST",data:i.a.stringify(t)})}function O(t){return Object(n["a"])({url:o+"/vipGroupManage/queryAll",method:"GET",params:t})}function C(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function k(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupDetailForAudit",method:"GET",params:t})}function S(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function j(t){return Object(n["a"])({url:o+"/vipGroupManage/applyRefundForStudent",method:"POST",data:i.a.stringify(t)})}function T(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function w(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function I(t){return Object(n["a"])({url:o+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function G(t){return Object(n["a"])({url:o+"/vipGroupManage/classStartDateAdjust",method:"POST",data:i.a.stringify(t)})}function x(t){return Object(n["a"])({url:o+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function N(t){return Object(n["a"])({url:o+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function L(t){return Object(n["a"])({url:o+"/vipGroupManage/stopVipGroup",method:"POST",data:i.a.stringify(t)})}function $(t){return Object(n["a"])({url:o+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:t})}function M(t){return Object(n["a"])({url:o+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:i.a.stringify(t)})}function D(t){return Object(n["a"])({url:o+"/courseSchedule/batchDelete",method:"POST",data:i.a.stringify(t)})}function V(t){return Object(n["a"])({url:o+"/courseSchedule/vipCourseAdjust",method:"POST",data:t})}function A(t){return Object(n["a"])({url:o+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:t})}function P(t){return Object(n["a"])({url:o+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:t})}function E(t){return Object(n["a"])({url:o+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:t})}function R(t){return Object(n["a"])({url:o+"/vipGroupManage/addVipGroupStudents",method:"get",params:t})}function q(t){return Object(n["a"])({url:o+"/courseSchedule/batchAppendVipGroupCourses",method:"POST",data:t})}function B(t){return Object(n["a"])({url:o+"/vipGroupManage/pauseForStudent",method:"POST",data:i.a.stringify(t)})}function W(t){return Object(n["a"])({url:o+"/vipGroupManage/getStudentPauseInfo",method:"POST",data:i.a.stringify(t)})}function z(t){return Object(n["a"])({url:o+"/vipGroupManage/recoverForStudent",method:"POST",data:t})}function U(t){return Object(n["a"])({url:o+"/vipGroupManage/findTeacherWithVipGroupOrganAndSubject",method:"get",params:t})}function H(t){return Object(n["a"])({url:o+"/vipGroupManage/deleteVipGroup",method:"post",data:i.a.stringify(t)})}function J(t){return Object(n["a"])({url:o+"/vipGroupManage/getPublicOrgans",method:"get",params:t})}},"99b4":function(t,e,a){"use strict";a.d(e,"c",function(){return s}),a.d(e,"e",function(){return l}),a.d(e,"d",function(){return u}),a.d(e,"B",function(){return c}),a.d(e,"z",function(){return d}),a.d(e,"H",function(){return m}),a.d(e,"G",function(){return p}),a.d(e,"I",function(){return f}),a.d(e,"A",function(){return h}),a.d(e,"j",function(){return v}),a.d(e,"l",function(){return b}),a.d(e,"p",function(){return g}),a.d(e,"k",function(){return _}),a.d(e,"E",function(){return y}),a.d(e,"n",function(){return F}),a.d(e,"F",function(){return O}),a.d(e,"D",function(){return C}),a.d(e,"f",function(){return k}),a.d(e,"h",function(){return S}),a.d(e,"g",function(){return j}),a.d(e,"i",function(){return T}),a.d(e,"r",function(){return w}),a.d(e,"s",function(){return I}),a.d(e,"u",function(){return G}),a.d(e,"t",function(){return x}),a.d(e,"o",function(){return N}),a.d(e,"x",function(){return L}),a.d(e,"v",function(){return $}),a.d(e,"y",function(){return M}),a.d(e,"w",function(){return D}),a.d(e,"m",function(){return V}),a.d(e,"b",function(){return A}),a.d(e,"a",function(){return P}),a.d(e,"C",function(){return E}),a.d(e,"q",function(){return R}),a.d(e,"J",function(){return q});var n=a("b775"),r=a("4328"),i=a.n(r),o="/api-web";function s(t){return Object(n["a"])({url:o+"/cooperationOrgan/add",method:"post",data:i.a.stringify(t)})}function l(t){return Object(n["a"])({url:o+"/cooperationOrgan/update",method:"put",data:i.a.stringify(t)})}function u(t){return Object(n["a"])({url:o+"/cooperationOrgan/del/".concat(t),method:"post"})}function c(t){return Object(n["a"])({url:o+"/cooperationOrgan/queryPage",method:"get",params:t})}function d(t){return Object(n["a"])({url:o+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function m(t){return Object(n["a"])({url:o+"/school/queryPage",method:"get",params:t})}function p(t){return Object(n["a"])({url:o+"/school/add",method:"post",data:i.a.stringify(t)})}function f(t){return Object(n["a"])({url:o+"/school/update",method:"post",data:i.a.stringify(t)})}function h(t){return Object(n["a"])({url:o+"/employee/queryEmployByOrganId",method:"get",params:t})}function v(t){return Object(n["a"])({url:o+"/employee/add",method:"post",data:t})}function b(t){return Object(n["a"])({url:o+"/employee/update",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function _(t){return Object(n["a"])({url:o+"/employee/employeeOperate",method:"post",data:i.a.stringify(t)})}function y(t){return Object(n["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function F(t){return Object(n["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function O(t){return Object(n["a"])({url:"/api-auth/role/update",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/api-auth/role/add",method:"post",data:t})}function k(t){return Object(n["a"])({url:o+"/courseScheduleRewards/queryPage",method:"get",params:t})}function S(t){return Object(n["a"])({url:o+"/courseScheduleRewards/query",method:"get",params:t})}function j(t){return Object(n["a"])({url:o+"/courseScheduleRewards/add",method:"post",data:i.a.stringify(t)})}function T(t){return Object(n["a"])({url:o+"/courseScheduleRewards/update",method:"post",data:i.a.stringify(t)})}function w(t){return Object(n["a"])({url:o+"/hotWordLabelManage/queryPage",method:"get",params:t})}function I(t){return Object(n["a"])({url:o+"/hotWordLabelManage/add",method:"post",data:i.a.stringify(t)})}function G(t){return Object(n["a"])({url:o+"/hotWordLabelManage/update",method:"post",data:i.a.stringify(t)})}function x(t){return Object(n["a"])({url:o+"/hotWordLabelManage/del/".concat(t),method:"post"})}function N(t){return Object(n["a"])({url:o+"/school/queryByOrganId",method:"get",params:t})}function L(t){return Object(n["a"])({url:o+"/paymentConfig/queryPage",method:"get",params:t})}function $(t){return Object(n["a"])({url:o+"/paymentConfig/add",method:"post",data:i.a.stringify(t)})}function M(t){return Object(n["a"])({url:o+"/paymentConfig/update",method:"post",data:i.a.stringify(t)})}function D(t){return Object(n["a"])({url:o+"/paymentConfig/del/"+t.id,method:"post"})}function V(t){return Object(n["a"])({url:o+"/teacher/findTeacherByOrganId",method:"get",params:t})}function A(t){return Object(n["a"])({url:o+"/appVersionInfo/list",method:"get",params:t})}function P(t){return Object(n["a"])({url:o+"/appVersionInfo/add",method:"post",data:i.a.stringify(t)})}function E(t){return Object(n["a"])({url:o+"/appVersionInfo/update",method:"post",data:i.a.stringify(t)})}function R(t){return Object(n["a"])({url:o+"/employee/hasCourseGroupRelation",method:"post",data:i.a.stringify(t)})}function q(t){return Object(n["a"])({url:o+"/employee/updateEducationTeacherId",method:"post",data:i.a.stringify(t)})}},a3f5:function(t,e,a){"use strict";var n=a("36d7"),r=a.n(n);r.a},af1a:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:t.className},on:{back:t.onCancel}})],1),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="string"===typeof e?e.trim():e},expression:"activeName"}},[t.permissionList.vipBase?a("el-tab-pane",{attrs:{label:"基本信息",name:"1"}},[1==t.activeName?a("vipBase"):t._e()],1):t._e(),t._v(" "),t.permissionList.teacherRecord?a("el-tab-pane",{attrs:{label:"教学记录",name:"2"}},[2==t.activeName?a("teacherRecord"):t._e()],1):t._e(),t._v(" "),t.permissionList.fnanceInfo?a("el-tab-pane",{attrs:{label:"VIP课程财务",name:"3"}},[3==t.activeName?a("fnanceInfo"):t._e()],1):t._e(),t._v(" "),t.permissionList.vipStudentList?a("el-tab-pane",{attrs:{label:"VIP学生列表",name:"4"}},[4==t.activeName?a("vipStudentList"):t._e()],1):t._e()],1)],1)])},r=[],i=(a("7f7f"),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","string"===typeof e?e.trim():e)},expression:"topForm.teacherCount"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"教务老师"}},[a("el-input",{attrs:{disabled:""},model:{value:t.topForm.educationalTeacherName,callback:function(e){t.$set(t.topForm,"educationalTeacherName","string"===typeof e?e.trim():e)},expression:"topForm.educationalTeacherName"}})],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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():e)},expression:"topForm.offlineClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"报名开始时间"}},[a("div",{staticClass:"disBox"},[t._v(t._s(t._f("dateForMinFormat")(t.topForm.startTime)))])]),t._v(" "),a("el-form-item",{attrs:{label:"报名结束时间"}},[a("div",{staticClass:"disBox"},[t._v(t._s(t._f("dateForMinFormat")(t.topForm.endTime)))])])],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","string"===typeof e?e.trim():e)},expression:"rightForm.allClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"课程单价(线上)"}},[a("el-input",{attrs:{type:"number",disabled:!t.isreset},nativeOn:{mousewheel:function(t){t.preventDefault()}},model:{value:t.rightForm.onlineClass,callback:function(e){t.$set(t.rightForm,"onlineClass","string"===typeof e?e.trim():e)},expression:"rightForm.onlineClass"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"课程单价(线下)"}},[a("el-input",{attrs:{type:"number",disabled:!t.isreset},nativeOn:{mousewheel:function(t){t.preventDefault()}},model:{value:t.rightForm.offlineClass,callback:function(e){t.$set(t.rightForm,"offlineClass","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():e)},expression:"rightForm.progress"}})],1)],1)],1)])}),o=[],s=a("7e78"),l={data:function(){return{topForm:{teacherCount:"",subject:"",active:"",status:"",classNum:"",classTime:"",address:"",onlineClass:"",offlineClass:"",startTime:"",endTime:""},rightForm:{allClass:"",onlineClass:"",offlineClass:"",allPrice:"",progress:""},tableList:[],isreset:!1}},mounted:function(){this.__init()},activated:function(){this.__init()},methods:{__init:function(){var t=this.$route.query.id;this.id=t,this.getVipGroupDetail(t),this.getStudents()},getVipGroupDetail:function(t){var e=this;Object(s["x"])({vipGroupId:t}).then(function(t){200==t.code&&(e.topForm.teacherCount=t.data.userName,e.topForm.educationalTeacherName=t.data.educationalTeacherName,e.topForm.subject=t.data.subjectName,e.topForm.active=t.data.vipGroupActivityName,e.topForm.status=t.data.categoryName,e.topForm.classNum=t.data.studentNum,e.topForm.classTime=t.data.singleClassMinutes,e.topForm.address=t.data.teacherSchoolName,e.topForm.onlineClass=t.data.onlineClassesNum,e.topForm.offlineClass=t.data.offlineClassesNum,e.topForm.startTime=t.data.registrationStartTime,e.topForm.endTime=t.data.paymentExpireDate,e.rightForm.allClass=t.data.totalClassTimes,e.rightForm.onlineClass=t.data.onlineClassesUnitPrice,e.rightForm.offlineClass=t.data.offlineClassesUnitPrice,e.rightForm.allPrice=t.data.totalPrice,e.rightForm.progress=t.data.currentClassTimes+"/"+t.data.totalClassTimes)})},getStudents:function(){var t=this;Object(s["o"])({vipGroupId:this.id}).then(function(e){200==e.code&&(t.tableList=e.data.rows)})},leaveSchool:function(t){var e=this,a=t.row.id,n=this.id;Object(s["B"])({studentId:a,vipGroupId:n}).then(function(a){200==a.code&&(e.$message.success("退学成功"),t._self.$refs[t.$index].doClose(),e.getStudents())})},resetPrice:function(){this.isreset=!0},submitBtn:function(){var t=this,e=this.rightForm.onlineClass,a=this.rightForm.offlineClass;Object(s["K"])({id:this.id,onlineClassesUnitPrice:e,offlineClassesUnitPrice:a}).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.isreset=!1,t.getVipGroupDetail(t.id))})}}},u=l,c=(a("a3f5"),a("2877")),d=Object(c["a"])(u,i,o,!1,null,"908e9054",null),m=d.exports,p=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="string"===typeof e?e.trim():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","string"===typeof e?e.trim():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","string"===typeof e?e.trim():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":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.time,callback:function(e){t.$set(t.searchForm,"time","string"===typeof e?e.trim():e)},expression:"searchForm.time"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.search}},[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:"id"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"上课时间",width:"250px",prop:"startClassTime"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("p",[t._v(t._s(t._f("dateForMinFormat")(e.row.startClassTime))+"-"+t._s(t._f("endTime")(e.row.endClassTime)))])])]}}])}),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:"schoolName"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(e.row.schoolName?e.row.schoolName:"网络教室")+"\n ")])]}}])}),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("attendanceType")(e.row.signInStatus)))])])]}}])}),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("attendanceOutType")(e.row.signOutStatus)))])])]}}])}),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:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[e.row.attendanceNum?a("el-button",{attrs:{type:"text",permission:"'vipGroupManage/findVipGroupAttendanceStudents'"},on:{click:function(a){return t.lookStudents(e.row)}}},[t._v("查看学员")]):t._e(),t._v(" "),"OVER"==e.row.status&&!e.row.isSalary&&t.permission("teacherAttendance/updateTeacherAttendance")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onMarkAttendance(e.row)}}},[t._v("补考勤")]):t._e(),t._v(" "),"OVER"==e.row.status&&t.permission("studentAttendance/updateStudentAttendances")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.onCallName(e.row)}}},[t._v("点名表")]):t._e()],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,n){return a("span",{key:n,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.studentVisible=!1}}},[t._v("确 定")])],1)],2),t._v(" "),a("el-dialog",{attrs:{title:"补考勤",width:"400px",visible:t.markAttendance.status},on:{"update:visible":function(e){return t.$set(t.markAttendance,"status",e)}}},[a("el-form",[a("el-form-item",{attrs:{label:"签到状态"}},[t._v(t._s(t._f("attendanceType")(t.markAttendance.dataInfo.signInStatus))+" ")]),t._v(" "),a("el-form-item",{attrs:{label:"签到时间"}},[t._v(t._s(t.markAttendance.dataInfo.signInTime))]),t._v(" "),a("el-form-item",{attrs:{label:"签退状态"}},[t._v(t._s(t._f("attendanceOutType")(t.markAttendance.dataInfo.signOutStatus))+" ")]),t._v(" "),a("el-form-item",{attrs:{label:"签退时间"}},[t._v(t._s(t.markAttendance.dataInfo.signOutTime))])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.markAttendance.status=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary",disabled:1==t.markAttendance.dataInfo.signOutStatus&&1==t.markAttendance.dataInfo.signInStatus},on:{click:t.batchAdjustmentTime}},[t._v("确定补卡")])],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"点名表",width:"800px",visible:t.rollCall.status},on:{"update:visible":function(e){return t.$set(t.rollCall,"status",e)}}},[a("el-table",{attrs:{data:t.rollCall.gridData}},[a("el-table-column",{attrs:{align:"center",property:"userName",label:"学员姓名"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",property:"phone",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",property:"subjectName",label:"学员声部"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"到课状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("studentCallName")(e.row.status))+"\n ")]}}])}),t._v(" "),t.rollCall.selectItem.isSalary?t._e():a("el-table-column",{attrs:{align:"center",label:"操作",width:"240px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:function(a){return t.onChangeRollCall("TRUANT",e.row)}}},[t._v("未到")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"warning",round:""},on:{click:function(a){return t.onChangeRollCall("LEAVE",e.row)}}},[t._v("请假")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"success",round:""},on:{click:function(a){return t.onChangeRollCall("NORMAL",e.row)}}},[t._v("到课")])]}}],null,!1,3311584737)})],1),t._v(" "),a("pagination",{attrs:{total:t.rollCall.total,page:t.rollCall.page,limit:t.rollCall.limit,"page-sizes":t.rollCall.page_size},on:{"update:page":function(e){return t.$set(t.rollCall,"page",e)},"update:limit":function(e){return t.$set(t.rollCall,"limit",e)},pagination:t.getCallName}})],1)],1)},f=[],h=(a("28a5"),a("333d")),v=a("99b4"),b=a("1cc7"),g=a("ec8a"),_={components:{pagination:h["a"]},name:"teacherRecord",data:function(){return{searchForm:{type:"",status:"",time:[]},searchLsit:[],tableList:[],id:"",complaintsNum:"",currentClassTimes:"",isSalaryNum:"",totalClassTimes:"",studentVisible:!1,courseVisible:!1,studentList:[],cooperationList:[],maskForm:{data:"",startTime:"",endTime:"",status:"",type:"",cooperation:""},markAttendance:{status:!1,dataInfo:{}},activeId:"",activeRow:null,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]},rollCall:{status:!1,gridData:[],selectItem:{},limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.__init()},activated:function(){this.__init()},methods:{__init:function(){var t=this,e=this.$route.query.id;this.id=e,this.getList(),Object(v["o"])({organId:null}).then(function(e){200==e.code&&(t.cooperationList=e.data)})},search:function(){this.rules.page=1,this.getList()},getList:function(){var t,e,a=this;this.searchForm.time?(t=this.searchForm.time[0],e=this.searchForm.time[1]):(t="",e="");var n={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(s["p"])(n).then(function(t){200==t.code&&(a.complaintsNum=t.data.baseInfo.complaintsNum,a.currentClassTimes=t.data.baseInfo.courseEndNum,a.isSalaryNum=t.data.baseInfo.isSalaryNum,a.totalClassTimes=t.data.baseInfo.courseNoStartNum,a.tableList=t.data.pageInfo.rows,a.rules.total=t.data.pageInfo.total)})},batchAdjustmentTime:function(){var t=this,e=this.markAttendance.dataInfo,a={courseScheduleId:e.id,signInStatus:1,signOutStatus:1};Object(b["wc"])(a).then(function(e){200==e.code?(t.$message.success("补卡成功"),t.markAttendance.status=!1,t.getList()):t.$message.error(e.msg)})},onMarkAttendance:function(t){this.markAttendance={status:!0,dataInfo:t}},onCallName:function(t){this.rollCall.page=1,this.rollCall.selectItem=t,this.getCallName()},getCallName:function(){var t=this.rollCall,e={page:t.page,rows:t.limit,courseScheduleId:t.selectItem.id};Object(b["z"])(e).then(function(e){var a=e.data;t.status=!0,200==e.code&&(t.gridData=a.rows,t.total=a.total)})},onChangeRollCall:function(t,e){var a=this,n=this.rollCall,r={courseScheduleId:n.selectItem.id,studentAttendances:[{userId:e.studentId,status:t}]};Object(b["tc"])(r).then(function(n){200==n.code?(a.$message.success("修改成功"),e.status=t,a.getList()):a.$message.error(n.msg)})},lookStudents:function(t){var e=this,a=t.id;Object(s["v"])({courseScheduleId:a}).then(function(t){200==t.code&&(e.studentList=t.data,e.studentVisible=!0)})},permission:function(t){return Object(g["a"])(t)},handleClose:function(){this.studentList=[],this.studentVisible=!1},resetClass:function(t){this.courseVisible=!0,this.activeId=t.id,this.activeRow=t},resetCourse:function(){var t=this;this.$refs["maskForm"].validate(function(e){e&&Object(s["I"])({id:t.activeId,classDate:t.maskForm.date,startClassTime:t.maskForm.date+" "+t.maskForm.startTime,endClassTime:t.maskForm.date+" "+t.maskForm.endTime,schoolId:t.maskForm.cooperation}).then(function(e){200==e.code?(t.$message.success("调整成功"),t.getList(),t.courseVisible=!1,t.$refs["maskForm"].resetFields()):t.$message.error(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},endTime:function(t){return t?t.split(" ")[1].substring(0,5):t},studentCallName:function(t){var e={NORMAL:"到课",TRUANT:"未到",LEAVE:"请假",DROP_OUT:"退学","":"未到"};return e[t]}}},y=_,F=Object(c["a"])(y,p,f,!1,null,null,null),O=F.exports,C=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("\n 课程总价:\n "),a("span",[t._v(t._s(t._f("moneyFormat")(t.totalPrice)))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("\n 实收笔数:\n "),a("span",[t._v(t._s(t.feeDeductionNum))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("\n 线上课课酬:\n "),a("span",[t._v(t._s(t._f("moneyFormat")(t.onlineClassesUnitPrice)))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("\n 课酬总额:\n "),a("span",[t._v(t._s(t._f("moneyFormat")(t.totalSalary)))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("\n 实收总额:\n "),a("span",[t._v(t._s(t._f("moneyFormat")(t.totalFeeDeduction)))])])]),t._v(" "),a("div",{staticClass:"headItem"},[a("p",[t._v("\n 线下课课酬:\n "),a("span",[t._v(t._s(t._f("moneyFormat")(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","picker-options":{firstDayOfWeek:1}},model:{value:t.searchForm.time,callback:function(e){t.$set(t.searchForm,"time","string"===typeof e?e.trim():e)},expression:"searchForm.time"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:t.search}},[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:"上课时间",align:"center",prop:"classDate"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("dateForMinFormat")(e.row.classDate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"课时类型",align:"center",prop:"teachMode"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("fitterteachMode")(e.row.teachMode)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实收总额",align:"center",prop:"deductionFee"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.deductionFee))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"老师课酬",align:"center",prop:"actualSalary"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.actualSalary))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"结算状态",align:"center",prop:"isSalary"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(t._f("fitterisSalary")(e.row.isSalary)))])]}}])})],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)},k=[],S={components:{pagination:h["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(){this.__init()},activated:function(){this.__init()},methods:{__init:function(){var t=this.$route.query.id;this.id=t,this.getList()},search:function(){this.rules.page=1,this.getList()},getList:function(){var t=this;this.searchForm.time||(this.searchForm.time=[]),Object(s["z"])({vipGroupId:this.id,organId:null,page: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.totalPrice=e.data.baseInfo.totalCoursePrice,t.totalFeeDeduction=e.data.baseInfo.totalFeeDeduction,t.feeDeductionNum=e.data.baseInfo.feeDeductionNum,t.totalSalary=e.data.baseInfo.expectTotalSalary,t.onlineClassesUnitPrice=e.data.baseInfo.totalOnlineTeacherSalary,t.offlineClassesUnitPrice=e.data.baseInfo.totalOfflineTeacherSalary,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}}},j=S,T=Object(c["a"])(j,C,k,!1,null,null,null),w=T.exports,I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/addVipGroupStudents",expression:"'vipGroupManage/addVipGroupStudents'"}],staticClass:"newBand",on:{click:t.addStudentList}},[t._v("新增学员")]),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"学员姓名",prop:"userName",align:"center",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",align:"center",prop:"phone",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"studentStatus",align:"center",label:"学员状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("studentStatus")(e.row.studentStatus))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"courseSalary",align:"center",label:"课程余额"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.courseSalary))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"applyDate",align:"center",label:"报名时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.applyDate))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refundDate",align:"center",label:"退课时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v("\n "+t._s(t._f("formatTimer")(e.row.refundDate))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[0==e.row.studentStatus||3==e.row.studentStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/applyRefundForStudent",expression:"'vipGroupManage/applyRefundForStudent'"}],attrs:{type:"text"},on:{click:function(a){return t.lookFee(e)}}},[t._v("退学")]):t._e(),t._v(" "),0==e.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.stopCourse(e)}}},[t._v("休学")]):t._e(),t._v(" "),3==e.row.studentStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.recoveryCourse(e)}}},[t._v("恢复")]):t._e()],1)]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"学员列表",width:"70%",visible:t.maskVisible},on:{"update:visible":function(e){t.maskVisible=e}}},[a("el-form",{attrs:{model:t.maskForm,inline:!0}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"请输入学生姓名或手机号"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.maskForm.search,callback:function(e){t.$set(t.maskForm,"search","string"===typeof e?e.trim():e)},expression:"maskForm.search"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")])],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.reset}},[t._v("重置")])],1)],1),t._v(" "),a("el-table",{attrs:{data:t.maskStudentList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"",width:"55"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-radio",{attrs:{label:e.row.id},nativeOn:{change:function(a){return t.getTemplateRow(e.$index,e.row)}},model:{value:t.activeStudent,callback:function(e){t.activeStudent="string"===typeof e?e.trim():e},expression:"activeStudent"}},[t._v(" ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"userName",align:"center",label:"学生姓名",width:"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号",width:"200"}}),t._v(" "),a("el-table-column",{attrs:{prop:"courseSalary",label:"课程余额"}})],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("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.maskVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.addStudent}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"学员复学",width:"800px",visible:t.adjustmentVisible},on:{"update:visible":function(e){t.adjustmentVisible=e}}},[a("el-form",{ref:"adjustmentForm",attrs:{model:t.adjustmentForm,"label-position":"right","label-width":"120px",rules:t.adjustmentRules,inline:!0}},[a("el-form-item",{attrs:{label:"剩余课时"}},[a("el-input",{attrs:{disabled:""},model:{value:t.adjustmentForm.count,callback:function(e){t.$set(t.adjustmentForm,"count","string"===typeof e?e.trim():e)},expression:"adjustmentForm.count"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"任课老师",prop:"teacher"}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.adjustmentForm.teacher,callback:function(e){t.$set(t.adjustmentForm,"teacher","string"===typeof e?e.trim():e)},expression:"adjustmentForm.teacher"}},t._l(t.teacherList,function(t,e){return a("el-option",{key:e,attrs:{label:t.realName,value:t.id}})}),1)],1),t._v(" "),a("br"),t._v(" "),a("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[a("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{"picker-options":t.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.adjustmentForm.courseTime,callback:function(e){t.$set(t.adjustmentForm,"courseTime","string"===typeof e?e.trim():e)},expression:"adjustmentForm.courseTime"}}),t._v(" "),a("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:t.adjustmentForm.checked,callback:function(e){t.$set(t.adjustmentForm,"checked","string"===typeof e?e.trim():e)},expression:"adjustmentForm.checked"}},[t._v("是否跳过节假日")])],1)],1),t._v(" "),a("div",{staticClass:"WeekWrap "},[a("h3",{staticStyle:{"margin-bottom":"20px"}},[t._v("循环次数 "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:t.addWeek}},[t._v("添加")])],1),t._v(" "),a("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},t._l(t.weekList,function(e,n){return a("div",{key:n,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[a("span",[t._v("循环周期: ")]),t._v(" "),a("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.dayOfWeek,callback:function(a){t.$set(e,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"item.dayOfWeek"}},t._l(t.weekDateList,function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("span",{staticStyle:{"margin-left":"10px"}},[t._v("开始时间")]),t._v(" "),a("el-time-select",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:e.startClassTime,callback:function(a){t.$set(e,"startClassTime","string"===typeof a?a.trim():a)},expression:"item.startClassTime"}}),t._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return t.removeWeek(e)}}})],1)}),0)]),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.adjustmentVisible=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submieRecover}},[t._v("确 定")])],1)],1)],1)},G=[],x=(a("386d"),{components:{pagination:h["a"]},data:function(){return{adjustmentVisible:!1,tableList:[],id:"",maskStudentList:[],maskVisible:!1,rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},activeStudent:"",maskForm:{search:""},adjustmentForm:{count:"",courseTime:"",checked:!1,addCount:"",courseType:"",fee:"",teacher:""},adjustmentRules:{courseTime:[{required:!0,message:"请选择开始时间"}],addCount:[{required:!0,message:"请输入加课次数"}],courseType:[{required:!0,message:"请选择课程类型"}],fee:[{required:!0,message:"请输入费用"}],teacher:[{required:!0,message:"请选择老师"}]},weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],weekList:[{dayOfWeek:"",startTime:"",endTime:"",moid:(new Date).getTime()}],pickerOptions:{firstDayOfWeek:1,disabledDate:function(t){return t.getTime()+864e5<=(new Date).getTime()}},teacherList:[]}},mounted:function(){this.__init()},activated:function(){this.__init()},methods:{__init:function(){var t=this,e=this.$route.query.id;this.id=e,this.getStudents(),Object(s["m"])({vipGroupId:this.id}).then(function(e){200==e.code&&(t.teacherList=e.data)})},search:function(){this.rules.page=1,this.getList()},reset:function(){this.rules.page=1,this.maskForm.search=null,this.activeStudent="",this.getList()},getStudents:function(){var t=this;Object(s["o"])({vipGroupId:this.id}).then(function(e){if(200==e.code)for(var a in t.tableList=e.data.rows,t.tableList)t.tableList[a].fee=0,t.tableList[a].visible=!1})},removeWeek:function(t){for(var e in this.weekList)this.weekList[e].id==t.id&&this.weekList.splice(e,1)},leaveSchool:function(t){var e=this,a=t.row.id,n=this.id,r=t.row.fee;Object(s["B"])({studentId:a,vipGroupId:n,amount:r}).then(function(t){200==t.code&&(e.$message.success("退学成功"),e.getStudents())})},lookFee:function(t){var e=this;this.$confirm("确定是否退学?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a=t.row.id;3==t.row.studentStatus?e.leaveSchool(t):Object(s["u"])({studentId:a,vipGroupId:e.id}).then(function(a){200==a.code&&e.$prompt("请输入退课金额","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:a.data.suplusCourseFee}).then(function(a){var n=a.value;t.row.fee=n,e.leaveSchool(t)}).catch(function(t){})})}).catch(function(){})},addStudentList:function(){var t=this;this.tableList.length<=0?this.$confirm("添加学员后,该课程组将无法通过购买途径加入,是否确认该操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.getList()}).catch(function(){}):this.getList()},getList:function(){var t=this,e=this.maskForm.search||null;Object(s["r"])({organId:null,page:this.rules.page,rows:this.rules.limit,search:e}).then(function(e){200==e.code&&(t.rules.total=e.data.total,t.maskStudentList=e.data.rows,t.maskVisible=!0)})},getTemplateRow:function(t,e){this.activeStudent=e.id},addStudent:function(){var t=this;this.activeStudent?Object(s["d"])({vipGroupId:this.id,studentIds:this.activeStudent}).then(function(e){200==e.code&&(t.$message.success("添加成功"),t.getStudents())}):this.$message.error("请选择一名学生")},stopCourse:function(t){var e=this;this.$confirm("是否休学?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s["P"])({vipGroupId:e.id,studentId:t.row.id}).then(function(t){200==t.code&&(e.$message.success("休学成功"),e.getStudents())})}).catch(function(){})},recoveryCourse:function(t){var e=this;Object(s["t"])({studentId:t.row.id,vipGroupId:this.id}).then(function(a){200==a.code&&(0==a.data.isPause?e.$confirm("将按照当前剩余课时安排上课","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s["C"])({vipGroupId:e.id,userId:t.row.id}).then(function(t){200==t.code&&(e.adjustmentVisible=!1,e.getStudents())})}).catch(function(){}):(e.activeStudent=a.data.studentId,e.adjustmentVisible=!0,e.adjustmentForm.teacher=a.data.teacherId,e.adjustmentForm.count="".concat(a.data.totalCourseTimes,"+").concat(a.data.giveCourseTimes)))})},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},submieRecover:function(){var t=this;this.weekList.length<=0?this.$message.error("排课循环次数不能为空"):(this.$refs["adjustmentForm"].validate(function(e){if(e){var a={};a.courseCreateStartTime=t.adjustmentForm.courseTime,a.skipHoliday=t.adjustmentForm.checked,a.teacherId=t.adjustmentForm.teacher,a.userId=t.activeStudent,a.courseTimes=[],a.courseTimes=t.weekList,a.vipGroupId=t.id,Object(s["C"])(a).then(function(e){200==e.code&&(t.adjustmentVisible=!1,t.getStudents())})}else t.$message.error("请填写必要参数")}),this.activeStudent)}}}),N=x,L=Object(c["a"])(N,I,G,!1,null,"57e50b44",null),$=L.exports,M={components:{teacherRecord:O,vipBase:m,fnanceInfo:w,vipStudentList:$},name:"vipDetail",data:function(){return{activeName:"1",className:"",rules:null,searchForm:null,permissionList:{vipBase:Object(g["a"])("/vipDetail/vipBase"),teacherRecord:Object(g["a"])("/vipDetail/teacherRecord"),fnanceInfo:Object(g["a"])("/vipDetail/fnanceInfo"),vipStudentList:Object(g["a"])("/vipDetail/vipStudentList")}}},mounted:function(){this.__init()},activated:function(){this.__init()},methods:{__init:function(){var t=this.$route.query;t.rules&&(this.rules=t.rules),t.searchForm&&(this.searchForm=t.searchForm),this.className=t.name},handleClick:function(t,e){this.activeName=t.name},onCancel:function(){this.$router.push({path:"/business/vipList",query:{rules:this.rules,searchForm:this.searchForm}})}}},D=M,V=Object(c["a"])(D,n,r,!1,null,null,null);e["default"]=V.exports},ec8a:function(t,e,a){"use strict";a.d(e,"a",function(){return n});a("6762"),a("2fdb"),a("28a5");function n(t,e){var a=window.localStorage.getItem("permission");return a=a.split(","),e=e||null,!(!a.includes(t)||e)||!(!a.includes(t)||!a.includes(e))}}}]);