1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-02613d6d"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",function(){return o}),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,r){var o=i(),u=e-o,s=20,c=0;t="undefined"===typeof t?500:t;var d=function e(){c+=s;var i=Math.easeInOutQuad(c,o,u,t);n(i),c<t?a(e):r&&"function"===typeof r&&r()};d()}},"333d":function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[r("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)},n=[],i=(r("c5f6"),r("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(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(i["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(i["a"])(0,800)}}},u=o,s=(r("c0b9"),r("2877")),c=Object(s["a"])(u,a,n,!1,null,"31cb099a",null);t["a"]=c.exports},"7e78":function(e,t,r){"use strict";r.d(t,"O",function(){return u}),r.d(t,"l",function(){return s}),r.d(t,"q",function(){return c}),r.d(t,"c",function(){return d}),r.d(t,"J",function(){return l}),r.d(t,"F",function(){return m}),r.d(t,"a",function(){return p}),r.d(t,"G",function(){return f}),r.d(t,"D",function(){return h}),r.d(t,"j",function(){return b}),r.d(t,"M",function(){return g}),r.d(t,"N",function(){return v}),r.d(t,"b",function(){return y}),r.d(t,"H",function(){return j}),r.d(t,"E",function(){return O}),r.d(t,"A",function(){return T}),r.d(t,"x",function(){return k}),r.d(t,"y",function(){return S}),r.d(t,"o",function(){return _}),r.d(t,"B",function(){return F}),r.d(t,"p",function(){return C}),r.d(t,"z",function(){return w}),r.d(t,"v",function(){return G}),r.d(t,"I",function(){return I}),r.d(t,"w",function(){return M}),r.d(t,"i",function(){return V}),r.d(t,"h",function(){return L}),r.d(t,"K",function(){return x}),r.d(t,"n",function(){return P}),r.d(t,"g",function(){return A}),r.d(t,"L",function(){return D}),r.d(t,"e",function(){return $}),r.d(t,"u",function(){return q}),r.d(t,"r",function(){return N}),r.d(t,"d",function(){return B}),r.d(t,"f",function(){return E}),r.d(t,"P",function(){return R}),r.d(t,"t",function(){return W}),r.d(t,"C",function(){return z}),r.d(t,"m",function(){return U}),r.d(t,"k",function(){return H}),r.d(t,"s",function(){return J});var a=r("b775"),n=r("4328"),i=r.n(n),o="/api-web";function u(e){return Object(a["a"])({url:o+"/vipGroupCategory/queryAll",method:"get",params:e})}function s(e){return Object(a["a"])({url:o+"/vipGroupCategory/findTeacherDefaultSalary",method:"post",data:i.a.stringify(e)})}function c(e){return Object(a["a"])({url:o+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/vipGroupCategory/add",method:"post",data:i.a.stringify(e)})}function l(e){return Object(a["a"])({url:o+"/vipGroupCategory/update",method:"post",data:i.a.stringify(e)})}function m(e){return Object(a["a"])({url:o+"/vipGroupCategory/delete",method:"post",data:i.a.stringify(e)})}function p(e){return Object(a["a"])({url:o+"/vipGroupDefaultClassesCycle/add",method:"post",data:i.a.stringify(e)})}function f(e){return Object(a["a"])({url:o+"/vipGroupDefaultClassesCycle/update",method:"post",data:i.a.stringify(e)})}function h(e){return Object(a["a"])({url:o+"/vipGroupDefaultClassesCycle/delete",method:"post",data:i.a.stringify(e)})}function b(e){return Object(a["a"])({url:o+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:i.a.stringify(e)})}function g(e){return Object(a["a"])({url:o+"/vipGroupActivity/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:e})}function y(e){return Object(a["a"])({url:o+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:e})}function j(e){return Object(a["a"])({url:o+"/vipGroupActivity/update",method:"POST",data:e})}function O(e){return Object(a["a"])({url:o+"/vipGroupActivity/delete",method:"POST",data:i.a.stringify(e)})}function T(e){return Object(a["a"])({url:o+"/vipGroupManage/queryAll",method:"GET",params:e})}function k(e){return Object(a["a"])({url:o+"/vipGroupManage/getVipGroupDetail",method:"GET",params:e})}function S(e){return Object(a["a"])({url:o+"/vipGroupManage/getVipGroupDetailForAudit",method:"GET",params:e})}function _(e){return Object(a["a"])({url:o+"/vipGroupManage/findVipGroupStudents",method:"GET",params:e})}function F(e){return Object(a["a"])({url:o+"/vipGroupManage/applyRefundForStudent",method:"POST",data:i.a.stringify(e)})}function C(e){return Object(a["a"])({url:o+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:e})}function w(e){return Object(a["a"])({url:o+"/vipGroupManage/findVipGroupSalarys",method:"get",params:e})}function G(e){return Object(a["a"])({url:o+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:e})}function I(e){return Object(a["a"])({url:o+"/vipGroupManage/classStartDateAdjust",method:"POST",data:i.a.stringify(e)})}function M(e){return Object(a["a"])({url:o+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:e})}function V(e){return Object(a["a"])({url:o+"/vipGroupManage/vipGroupApply",method:"POST",data:e})}function L(e){return Object(a["a"])({url:o+"/vipGroupManage/stopVipGroup",method:"POST",data:i.a.stringify(e)})}function x(e){return Object(a["a"])({url:o+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:e})}function P(e){return Object(a["a"])({url:o+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:i.a.stringify(e)})}function A(e){return Object(a["a"])({url:o+"/courseSchedule/batchDelete",method:"POST",data:i.a.stringify(e)})}function D(e){return Object(a["a"])({url:o+"/courseSchedule/vipCourseAdjust",method:"POST",data:e})}function $(e){return Object(a["a"])({url:o+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:e})}function q(e){return Object(a["a"])({url:o+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:e})}function N(e){return Object(a["a"])({url:o+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:e})}function B(e){return Object(a["a"])({url:o+"/vipGroupManage/addVipGroupStudents",method:"get",params:e})}function E(e){return Object(a["a"])({url:o+"/courseSchedule/batchAppendVipGroupCourses",method:"POST",data:e})}function R(e){return Object(a["a"])({url:o+"/vipGroupManage/pauseForStudent",method:"POST",data:i.a.stringify(e)})}function W(e){return Object(a["a"])({url:o+"/vipGroupManage/getStudentPauseInfo",method:"POST",data:i.a.stringify(e)})}function z(e){return Object(a["a"])({url:o+"/vipGroupManage/recoverForStudent",method:"POST",data:e})}function U(e){return Object(a["a"])({url:o+"/vipGroupManage/findTeacherWithVipGroupOrganAndSubject",method:"get",params:e})}function H(e){return Object(a["a"])({url:o+"/vipGroupManage/deleteVipGroup",method:"post",data:i.a.stringify(e)})}function J(e){return Object(a["a"])({url:o+"/vipGroupManage/getPublicOrgans",method:"get",params:e})}},8018:function(e,t,r){"use strict";r.d(t,"w",function(){return u}),r.d(t,"t",function(){return s}),r.d(t,"g",function(){return c}),r.d(t,"e",function(){return d}),r.d(t,"i",function(){return l}),r.d(t,"v",function(){return m}),r.d(t,"u",function(){return p}),r.d(t,"n",function(){return f}),r.d(t,"B",function(){return h}),r.d(t,"C",function(){return b}),r.d(t,"y",function(){return g}),r.d(t,"x",function(){return v}),r.d(t,"A",function(){return y}),r.d(t,"f",function(){return j}),r.d(t,"q",function(){return O}),r.d(t,"z",function(){return T}),r.d(t,"s",function(){return k}),r.d(t,"h",function(){return S}),r.d(t,"m",function(){return _}),r.d(t,"r",function(){return F}),r.d(t,"a",function(){return C}),r.d(t,"l",function(){return w}),r.d(t,"o",function(){return G}),r.d(t,"p",function(){return I}),r.d(t,"k",function(){return M}),r.d(t,"d",function(){return V}),r.d(t,"c",function(){return L}),r.d(t,"j",function(){return x}),r.d(t,"b",function(){return P});var a=r("b775"),n=r("4328"),i=r.n(n),o="/api-web";function u(e){return Object(a["a"])({url:o+"/teacher/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:o+"/teacher/get",method:"get",params:e})}function c(e){return Object(a["a"])({url:o+"/teacher/getTeacherMusicClass",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function l(e){return Object(a["a"])({url:o+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function m(e){return Object(a["a"])({url:o+"/teacher/queryCloses",method:"get",params:e})}function p(e){return Object(a["a"])({url:o+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:o+"/teacher/sumTeacherNoPay",method:"get",params:e})}function h(e){return Object(a["a"])({url:o+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function b(e){return Object(a["a"])({url:o+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function g(e){return Object(a["a"])({url:o+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:o+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function y(e){return Object(a["a"])({url:o+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:i.a.stringify(e)})}function j(e){return Object(a["a"])({url:o+"/school/findVipSchoolByTeacher",method:"get",params:e})}function O(e){return Object(a["a"])({url:o+"/teacher/add",method:"post",data:i.a.stringify(e)})}function T(e){return Object(a["a"])({url:o+"/teacher/update",method:"post",data:i.a.stringify(e)})}function k(e){return Object(a["a"])({url:o+"/teacherFreeTime/query",method:"get",params:e})}function S(e){return Object(a["a"])({url:o+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function _(e){return Object(a["a"])({url:o+"/teacherFreeTime/updateSet",method:"post",data:i.a.stringify(e)})}function F(e){return Object(a["a"])({url:o+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function C(e){return Object(a["a"])({url:o+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function w(e){return Object(a["a"])({url:o+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function G(e){return Object(a["a"])({url:o+"/sysTenantAccount/addMinutes",method:"post",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:o+"/sysTenantAccount/subtractMinutes",method:"post",data:i.a.stringify(e)})}function M(e){return Object(a["a"])({url:o+"/sysTenantAccount/get",method:"get",params:e})}function V(e){return Object(a["a"])({url:o+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function L(e){return Object(a["a"])({url:o+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:i.a.stringify(e)})}function x(e){return Object(a["a"])({url:o+"/teacher/queryStudent",method:"get",params:e})}function P(e){return Object(a["a"])({url:o+"/studentManage/batchUpdateAdviser",method:"post",data:i.a.stringify(e)})}},"84f0":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:"VIP修改"},on:{back:e.goBack}})],1),e._v(" "),r("div",{staticClass:"vipwrap"},[r("div",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/appendVipGroupCourseSchedules",expression:"'vipGroupManage/appendVipGroupCourseSchedules'"}],staticClass:"newBand",on:{click:e.addCourse}},[e._v("VIP加课")]),e._v(" "),r("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/vipCourseAdjust",expression:"'courseSchedule/vipCourseAdjust'"}],staticClass:"newBand",on:{click:e.adjustment}},[e._v("批量调整")]),e._v(" "),r("div",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupManage/updateVipBaseInfo",expression:"'vipGroupManage/updateVipBaseInfo'"}],staticClass:"newBand",on:{click:function(t){e.addrVisible=!0}}},[e._v("修改教学点")]),e._v(" "),r("div",{directives:[{name:"permission",rawName:"v-permission",value:{parent:"/vipReset",child:"employee/findEducationUsers"},expression:"{parent:'/vipReset',child:'employee/findEducationUsers'}"}],staticClass:"newBand",on:{click:function(t){e.educationalVisible=!0}}},[e._v("课程信息")])]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{ref:"tableList",attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{type:"selection",selectable:e.isDisabled,width:"55"}}),e._v(" "),r("el-table-column",{attrs:{label:"课程名称",align:"center",prop:"name"}}),e._v(" "),r("el-table-column",{attrs:{label:"课程编号",align:"center",prop:"id"}}),e._v(" "),r("el-table-column",{attrs:{label:"上课日期",align:"center",prop:"classDate"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("formatTimer")(t.row.classDate)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"课程状态",align:"center",prop:"status"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"是否点名",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.isCallNames?"已点名":"未点名"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"结算状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.isSettlement?"已结算":"未结算"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"开始时间",align:"center",prop:"startClassTimeStr"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("timerForMinFormat")(t.row.startClassTimeStr)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"结束时间",align:"center",prop:"endClassTimeStr"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("timerForMinFormat")(t.row.endClassTimeStr)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"课程类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("teachMode")(t.row.teachMode)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"教学点",align:"center",prop:"schoolName"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.schoolName?t.row.schoolName:"网络教室"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.isSettlement?e._e():r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:{parent:"/vipReset",child:"courseSchedule/classStartDateAdjust"},expression:"{parent:'/vipReset',child:'courseSchedule/classStartDateAdjust'}"}],attrs:{type:"text"},on:{click:function(r){return e.resetClass(t.row)}}},[e._v("调整")]),e._v(" "),t.row.isSettlement||"OVER"==t.row.status?e._e():r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:{parent:"/vipReset",child:"courseSchedule/batchDelete"},expression:"{parent:'/vipReset',child:'courseSchedule/batchDelete'}"}],attrs:{type:"text"},on:{click:function(r){return e.removeClass(t.row)}}},[e._v("删除")]),e._v(" "),t.row.isSettlement?e._e():r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:{parent:"/vipReset",child:"vip/cleanAttendance"},expression:"{parent:'/vipReset',child:'vip/cleanAttendance'}"}],attrs:{type:"text"},on:{click:function(r){return e.clearAttend(t.row)}}},[e._v("清除考勤")])],1)]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),r("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[r("el-form",{ref:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"80px;",inline:!0}},[r("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","picker-options":{firstDayOfWeek:1},"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[r("el-time-select",{staticStyle:{width:"200px!important"},attrs:{placeholder:"起始时间","picker-options":{start:"04:30",step:"00:05",end:"23:30"}},model:{value:e.startTime,callback:function(t){e.startTime="string"===typeof t?t.trim():t},expression:"startTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[r("el-select",{attrs:{clearable:""},model:{value:e.maskForm.teachMode,callback:function(t){e.$set(e.maskForm,"teachMode","string"===typeof t?t.trim():t)},expression:"maskForm.teachMode"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1),e._v(" "),"OFFLINE"==e.maskForm.teachMode?r("el-form-item",{attrs:{label:"教学地点"}},[r("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address","string"===typeof t?t.trim():t)},expression:"maskForm.address"}},e._l(e.schoolList,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})}),1)],1):e._e()],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.adjustmentName,width:"800px",visible:e.adjustmentVisible},on:{"update:visible":function(t){e.adjustmentVisible=t}}},[r("el-form",{ref:"adjustmentForm",attrs:{model:e.adjustmentForm,"label-position":"right","label-width":"120px",rules:e.adjustmentRules,inline:!0}},[e.isaddCourse?e._e():r("el-form-item",{attrs:{label:"已选择课时数"}},[r("el-input",{attrs:{disabled:""},model:{value:e.adjustmentForm.count,callback:function(t){e.$set(e.adjustmentForm,"count","string"===typeof t?t.trim():t)},expression:"adjustmentForm.count"}})],1),e._v(" "),e.isaddCourse?r("el-form-item",{attrs:{label:"添加课时数",prop:"addCount"}},[r("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.adjustmentForm.addCount,callback:function(t){e.$set(e.adjustmentForm,"addCount","string"===typeof t?t.trim():t)},expression:"adjustmentForm.addCount"}})],1):e._e(),e._v(" "),r("br"),e._v(" "),e.isaddCourse?r("el-form-item",{attrs:{label:"单课费用",prop:"fee"}},[r("el-input",{model:{value:e.adjustmentForm.fee,callback:function(t){e.$set(e.adjustmentForm,"fee","string"===typeof t?t.trim():t)},expression:"adjustmentForm.fee"}})],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[r("el-select",{attrs:{clearable:""},model:{value:e.adjustmentForm.courseType,callback:function(t){e.$set(e.adjustmentForm,"courseType","string"===typeof t?t.trim():t)},expression:"adjustmentForm.courseType"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1),e._v(" "),"OFFLINE"==e.adjustmentForm.courseType?r("el-form-item",{attrs:{label:"教学地点"}},[r("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.adjustmentForm.address,callback:function(t){e.$set(e.adjustmentForm,"address","string"===typeof t?t.trim():t)},expression:"adjustmentForm.address"}},e._l(e.schoolList,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})}),1)],1):e._e(),e._v(" "),r("br"),e._v(" "),r("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.adjustmentForm.courseTime,callback:function(t){e.$set(e.adjustmentForm,"courseTime","string"===typeof t?t.trim():t)},expression:"adjustmentForm.courseTime"}}),e._v(" "),r("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.adjustmentForm.checked,callback:function(t){e.$set(e.adjustmentForm,"checked","string"===typeof t?t.trim():t)},expression:"adjustmentForm.checked"}},[e._v("是否跳过节假日")])],1)],1),e._v(" "),r("div",{staticClass:"WeekWrap"},[r("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),r("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,function(t,a){return r("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[r("span",[e._v("循环周期:")]),e._v(" "),r("el-select",{attrs:{filterable:"",clearable:""},model:{value:t.dayOfWeek,callback:function(r){e.$set(t,"dayOfWeek","string"===typeof r?r.trim():r)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),r("span",{staticStyle:{"margin-left":"10px"}},[e._v("开始时间")]),e._v(" "),r("el-time-select",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(r){e.$set(t,"startClassTime","string"===typeof r?r.trim():r)},expression:"item.startClassTime"}}),e._v(" "),r("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(r){return e.removeWeek(t)}}})],1)}),0)]),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.adjustmentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isaddCourse?e._e():r("el-button",{attrs:{type:"primary"},on:{click:e.submitAdjustment}},[e._v("确 定")]),e._v(" "),e.isaddCourse?r("el-button",{attrs:{type:"primary"},on:{click:e.addCourseSubmit}},[e._v("确 定")]):e._e()],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"教学点",width:"400px",visible:e.addrVisible},on:{"update:visible":function(t){e.addrVisible=t}}},[r("el-form",{attrs:{model:e.addrForm}},[r("el-form-item",{attrs:{label:"教学点"}},[r("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.addrForm.address,callback:function(t){e.$set(e.addrForm,"address","string"===typeof t?t.trim():t)},expression:"addrForm.address"}},e._l(e.schoolList,function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})}),1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addrVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.resetAddrSubmit}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"课程信息",width:"400px",visible:e.educationalVisible},on:{"update:visible":function(t){e.educationalVisible=t}}},[r("el-form",{attrs:{model:e.addrForm,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"课程分部",prop:"organId"}},[r("el-select",{attrs:{filterable:"",clearable:""},on:{change:function(t){return e.onEduTeacher("on")}},model:{value:e.addrForm.organId,callback:function(t){e.$set(e.addrForm,"organId","string"===typeof t?t.trim():t)},expression:"addrForm.organId"}},e._l(e.organList,function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"教务老师",prop:"educationalTeacherId"}},[r("el-select",{attrs:{filterable:"",disabled:!e.addrForm.organId,clearable:""},model:{value:e.addrForm.educationalTeacherId,callback:function(t){e.$set(e.addrForm,"educationalTeacherId","string"===typeof t?t.trim():t)},expression:"addrForm.educationalTeacherId"}},e._l(e.educationList,function(e,t){return r("el-option",{key:t,attrs:{label:e.realName,value:e.id}})}),1)],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.educationalVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.resetEducationalVisible}},[e._v("确 定")])],1)],1)],1)},n=[],i=(r("28a5"),r("c5f6"),r("1cc7")),o=r("99b4"),u=r("333d"),s=r("7e78"),c=r("8018"),d={components:{pagination:u["a"]},data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},addrVisible:!1,adjustmentVisible:!1,addCourseVisible:!1,courseVisible:!1,educationalVisible:!1,tableList:[],addTable:[],educationList:[],courseTime:"",vipid:"",addrForm:{address:"",educationalTeacherId:"",organId:""},maskForm:{date:"",startTime:"",endTime:"",id:"",address:"",teachMode:""},rules:{limit:50,page:1,total:0,page_size:[50,100]},maskRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},schoolList:[],Frules:null,FsearchForm:null,adjustmentForm:{count:"",courseTime:"",checked:!1,addCount:"",courseType:"",fee:"",address:""},adjustmentRules:{courseTime:[{required:!0,message:"请选择开始时间"}],addCount:[{required:!0,message:"请输入加课次数"}],courseType:[{required:!0,message:"请选择课程类型"}],fee:[{required:!0,message:"请输入费用"}],address:[{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()}],activeList:[],isaddCourse:!1,adjustmentName:"",startTime:"",chioseVipList:[],organList:[]}},created:function(){},mounted:function(){this.__init(),this.getList()},activated:function(){this.__init(),this.getList()},methods:{__init:function(){var e=this;this.vipid=this.$route.query.id;var t=this.$route.query,r=this.addrForm;t.educationalTeacherId?r.educationalTeacherId=Number(t.educationalTeacherId):r.educationalTeacherId=null,t.organId?(r.organId=Number(t.organId),this.onEduTeacher()):r.organId=null,t.rules&&(this.Frules=t.rules),t.searchForm&&(this.FsearchForm=t.searchForm),Object(i["S"])().then(function(t){200==t.code&&(e.organList=t.data)}),Object(c["f"])({userId:t.userId}).then(function(t){200==t.code&&(e.schoolList=t.data)})},getList:function(){var e=this;Object(s["n"])({vipGroupId:this.vipid,rows:this.rules.limit,page:this.rules.page}).then(function(t){200==t.code&&(e.tableList=t.data.pageInfo.rows,e.rules.total=t.data.pageInfo.total,e.courseTime=t.data.singleClassMinutes)})},goBack:function(){this.$router.push({path:"/business/vipList",query:{rules:this.Frules,searchForm:this.FsearchForm}})},resetClass:function(e){this.maskForm.date=e.classDate.split(" ")[0],this.startTime=e.startClassTimeStr.substring(0,5),this.maskForm.id=e.id,this.maskForm.address=e.schoolId||null,this.maskForm.teachMode=e.teachMode,this.courseVisible=!0},handleClose:function(){this.courseVisible=!1,this.startTime="",this.maskForm={date:"",startTime:"",endTime:"",id:"",address:"",teachMode:""},this.$refs["maskForm"].resetFields()},submitResetClass:function(){var e=this;if(this.startTime){var t=this.maskForm.date?new Date(this.maskForm.date):new Date,r=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate();this.startTime;this.startTime.length<=5&&":00";var a={startClassTime:r+" "+this.startTime,id:this.maskForm.id,classDate:this.maskForm.date,schoolId:this.maskForm.address||null,teachMode:this.maskForm.teachMode||null};Object(i["Rb"])(a).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.courseVisible=!1,e.getList())})}else this.$message.error("请填写修改时间")},removeClass:function(e){var t=this;this.$confirm("是否删除该vip课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s["g"])({courseScheduleIds:e.id}).then(function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())})})},addCourse:function(){this.adjustmentName="vip加课",this.isaddCourse=!0,this.adjustmentVisible=!0},addOneChiose:function(){this.addTable.push({classDate:"",startClassTimeStr:"",endClassTimeStr:"",teachMode:"",moid:(new Date).getTime()})},removeMarkCourse:function(e){for(var t in this.addTable)this.addTable[t].moid==e.moid&&this.addTable.splice(t,1)},submitAdd:function(){var e=this,t=(this.MinutesTest(this.addTable[0].startClassTimeStr,90),{vipGroupApplyBaseInfo:{id:this.vipid},courseSchedules:[]});for(var r in this.addTable){var a={classDate:this.addTable[r].classDate,startClassTimeStr:this.addTable[r].startClassTimeStr,endClassTimeStr:this.MinutesTest(this.addTable[r].startClassTimeStr,this.courseTime),teachMode:this.addTable[r].teachMode};t.courseSchedules.push(a)}Object(s["e"])(t).then(function(t){200==t.code&&(e.addCourseVisible=!1,e.rules.page=1,e.getList())})},isDisabled:function(e,t){return!e.isSettlement},MinutesTest:function(e,t){var r=e.split(":")[0],a=e.split(":")[1],n=new Date(1900,1,1,r,a);n.setMinutes(n.getMinutes()+parseInt(t));var i=n.getHours(),o=n.getMinutes();return i<10&&(i="0"+i),o<10&&(o="0"+o),i+":"+o},handleSelectionChange:function(e){this.chioseVipList=e,this.adjustmentForm.count=e.length,this.activeList=e},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},adjustment:function(){this.adjustmentName="批量调整",this.isaddCourse=!1,this.adjustmentForm.count<=0?this.$message.error("请至少勾选一节课"):this.adjustmentVisible=!0},submitAdjustment:function(){var e=this;this.$refs["adjustmentForm"].validate(function(t){if(t){var r=e.weekList;if(!r[0]||!r[0].startClassTime||!r[0].dayOfWeek)return void e.$message.error("至少排一节课");var a={};a.courseCreateStartTime=e.adjustmentForm.courseTime;var n=e.activeList.map(function(e){return e.id}),i=n.join(",");a.courseScheduleIds=i,a.courseTimes=e.weekList,a.holiday=e.adjustmentForm.checked,a.teachMode=e.adjustmentForm.courseType||null,a.groupType="VIP",a.vipGroupId=e.vipid,a.schoolId=e.adjustmentForm.address||null,Object(s["L"])(a).then(function(t){200==t.code&&(e.$message.success("恭喜您修改成功"),e.adjustmentVisible=!1,e.getList())})}})},addCourseSubmit:function(){var e=this;this.$refs["adjustmentForm"].validate(function(t){if(t){var r=e.weekList;if(!r[0]||!r[0].startClassTime||!r[0].dayOfWeek)return void e.$message.error("至少排一节课");var a={};a.courseCreateStartTime=e.adjustmentForm.courseTime;var n=e.activeList.map(function(e){return e.id}),i=n.join(",");a.courseScheduleIds=i,a.courseTimes=e.weekList,a.holiday=e.adjustmentForm.checked,a.vipGroupId=e.vipid,a.courseCount=e.adjustmentForm.addCount,a.teachMode=e.adjustmentForm.courseType,a.singleClassPrice=e.adjustmentForm.fee,a.groupType="VIP",Object(s["f"])(a).then(function(t){200==t.code&&(e.$message.success("恭喜您添加成功"),e.adjustmentVisible=!1,e.getList())})}})},resetAddrSubmit:function(){var e=this;this.addrForm.address?Object(s["K"])({id:this.vipid,teacherSchoolId:this.addrForm.address,educationalTeacherId:this.addrForm.educationalTeacherId}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.addrVisible=!1,e.getList())}):this.$message.error("请选择一个教学点")},onEduTeacher:function(e){var t=this;this.educationList=[];var r=this.addrForm;e&&(r.educationalTeacherId=null),Object(o["A"])({organId:r.organId,rows:1e4}).then(function(e){200==e.code&&(t.educationList=e.data.rows)})},resetEducationalVisible:function(){var e=this,t=this.addrForm;t.organId?t.educationalTeacherId?Object(s["K"])({id:this.vipid,organId:t.organId,educationalTeacherId:t.educationalTeacherId}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.educationalVisible=!1,e.getList())}):this.$message.error("请选择教务老师"):this.$message.error("请选择课程分部")},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i["p"])({courseScheduleIds:e.id}).then(function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)})}).catch(function(){})}},watch:{adjustmentVisible:function(e){e||(this.adjustmentForm={count:"",courseTime:"",checked:!1,addCount:"",courseType:"",fee:"",address:""},this.$refs["tableList"].clearSelection(),this.$refs["adjustmentForm"].resetFields(),this.weekList=[],this.addWeek())},addrVisible:function(e){e||(this.addrForm.address="")}}},l=d,m=(r("9a11"),r("2877")),p=Object(m["a"])(l,a,n,!1,null,"9b8d86ae",null);t["default"]=p.exports},"99b4":function(e,t,r){"use strict";r.d(t,"c",function(){return u}),r.d(t,"e",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"B",function(){return d}),r.d(t,"z",function(){return l}),r.d(t,"H",function(){return m}),r.d(t,"G",function(){return p}),r.d(t,"I",function(){return f}),r.d(t,"A",function(){return h}),r.d(t,"j",function(){return b}),r.d(t,"l",function(){return g}),r.d(t,"p",function(){return v}),r.d(t,"k",function(){return y}),r.d(t,"E",function(){return j}),r.d(t,"n",function(){return O}),r.d(t,"F",function(){return T}),r.d(t,"D",function(){return k}),r.d(t,"f",function(){return S}),r.d(t,"h",function(){return _}),r.d(t,"g",function(){return F}),r.d(t,"i",function(){return C}),r.d(t,"r",function(){return w}),r.d(t,"s",function(){return G}),r.d(t,"u",function(){return I}),r.d(t,"t",function(){return M}),r.d(t,"o",function(){return V}),r.d(t,"x",function(){return L}),r.d(t,"v",function(){return x}),r.d(t,"y",function(){return P}),r.d(t,"w",function(){return A}),r.d(t,"m",function(){return D}),r.d(t,"b",function(){return $}),r.d(t,"a",function(){return q}),r.d(t,"C",function(){return N}),r.d(t,"q",function(){return B}),r.d(t,"J",function(){return E});var a=r("b775"),n=r("4328"),i=r.n(n),o="/api-web";function u(e){return Object(a["a"])({url:o+"/cooperationOrgan/add",method:"post",data:i.a.stringify(e)})}function s(e){return Object(a["a"])({url:o+"/cooperationOrgan/update",method:"put",data:i.a.stringify(e)})}function c(e){return Object(a["a"])({url:o+"/cooperationOrgan/del/".concat(e),method:"post"})}function d(e){return Object(a["a"])({url:o+"/cooperationOrgan/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:o+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function m(e){return Object(a["a"])({url:o+"/school/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:o+"/school/add",method:"post",data:i.a.stringify(e)})}function f(e){return Object(a["a"])({url:o+"/school/update",method:"post",data:i.a.stringify(e)})}function h(e){return Object(a["a"])({url:o+"/employee/queryEmployByOrganId",method:"get",params:e})}function b(e){return Object(a["a"])({url:o+"/employee/add",method:"post",data:e})}function g(e){return Object(a["a"])({url:o+"/employee/update",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function y(e){return Object(a["a"])({url:o+"/employee/employeeOperate",method:"post",data:i.a.stringify(e)})}function j(e){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function O(e){return Object(a["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function T(e){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:e})}function k(e){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:e})}function S(e){return Object(a["a"])({url:o+"/courseScheduleRewards/queryPage",method:"get",params:e})}function _(e){return Object(a["a"])({url:o+"/courseScheduleRewards/query",method:"get",params:e})}function F(e){return Object(a["a"])({url:o+"/courseScheduleRewards/add",method:"post",data:i.a.stringify(e)})}function C(e){return Object(a["a"])({url:o+"/courseScheduleRewards/update",method:"post",data:i.a.stringify(e)})}function w(e){return Object(a["a"])({url:o+"/hotWordLabelManage/queryPage",method:"get",params:e})}function G(e){return Object(a["a"])({url:o+"/hotWordLabelManage/add",method:"post",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:o+"/hotWordLabelManage/update",method:"post",data:i.a.stringify(e)})}function M(e){return Object(a["a"])({url:o+"/hotWordLabelManage/del/".concat(e),method:"post"})}function V(e){return Object(a["a"])({url:o+"/school/queryByOrganId",method:"get",params:e})}function L(e){return Object(a["a"])({url:o+"/paymentConfig/queryPage",method:"get",params:e})}function x(e){return Object(a["a"])({url:o+"/paymentConfig/add",method:"post",data:i.a.stringify(e)})}function P(e){return Object(a["a"])({url:o+"/paymentConfig/update",method:"post",data:i.a.stringify(e)})}function A(e){return Object(a["a"])({url:o+"/paymentConfig/del/"+e.id,method:"post"})}function D(e){return Object(a["a"])({url:o+"/teacher/findTeacherByOrganId",method:"get",params:e})}function $(e){return Object(a["a"])({url:o+"/appVersionInfo/list",method:"get",params:e})}function q(e){return Object(a["a"])({url:o+"/appVersionInfo/add",method:"post",data:i.a.stringify(e)})}function N(e){return Object(a["a"])({url:o+"/appVersionInfo/update",method:"post",data:i.a.stringify(e)})}function B(e){return Object(a["a"])({url:o+"/employee/hasCourseGroupRelation",method:"post",data:i.a.stringify(e)})}function E(e){return Object(a["a"])({url:o+"/employee/updateEducationTeacherId",method:"post",data:i.a.stringify(e)})}},"9a11":function(e,t,r){"use strict";var a=r("a0e6"),n=r.n(a);n.a},a0e6:function(e,t,r){},c0b9:function(e,t,r){"use strict";var a=r("fa3b"),n=r.n(a);n.a},fa3b:function(e,t,r){}}]);
|