1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-05cf3609"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",function(){return i}),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 o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=o(),u=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var l=function e(){c+=s;var o=Math.easeInOutQuad(c,i,u,t);n(o),c<t?a(e):r&&"function"===typeof r&&r()};l()}},1282:function(e,t,r){"use strict";var a=r("30d8"),n=r.n(a);n.a},"30d8":function(e,t,r){},"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=[],o=(r("c5f6"),r("09f4")),i={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(o["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},u=i,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,"H",function(){return u}),r.d(t,"j",function(){return s}),r.d(t,"n",function(){return c}),r.d(t,"c",function(){return l}),r.d(t,"C",function(){return d}),r.d(t,"y",function(){return p}),r.d(t,"a",function(){return m}),r.d(t,"z",function(){return f}),r.d(t,"w",function(){return h}),r.d(t,"i",function(){return b}),r.d(t,"F",function(){return g}),r.d(t,"G",function(){return v}),r.d(t,"b",function(){return y}),r.d(t,"A",function(){return j}),r.d(t,"x",function(){return O}),r.d(t,"u",function(){return k}),r.d(t,"s",function(){return S}),r.d(t,"l",function(){return C}),r.d(t,"v",function(){return T}),r.d(t,"m",function(){return _}),r.d(t,"t",function(){return w}),r.d(t,"q",function(){return F}),r.d(t,"B",function(){return G}),r.d(t,"r",function(){return M}),r.d(t,"h",function(){return V}),r.d(t,"g",function(){return x}),r.d(t,"D",function(){return D}),r.d(t,"k",function(){return L}),r.d(t,"f",function(){return $}),r.d(t,"E",function(){return q}),r.d(t,"e",function(){return P}),r.d(t,"p",function(){return A}),r.d(t,"o",function(){return I}),r.d(t,"d",function(){return B});var a=r("b775"),n=r("4328"),o=r.n(n),i="/api-web";function u(e){return Object(a["a"])({url:i+"/vipGroupCategory/queryAll",method:"get",params:e})}function s(e){return Object(a["a"])({url:i+"/vipGroupCategory/findTeacherDefaultSalary",method:"post",data:o.a.stringify(e)})}function c(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/vipGroupCategory/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(a["a"])({url:i+"/vipGroupCategory/update",method:"post",data:o.a.stringify(e)})}function p(e){return Object(a["a"])({url:i+"/vipGroupCategory/delete",method:"post",data:o.a.stringify(e)})}function m(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/add",method:"post",data:o.a.stringify(e)})}function f(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/update",method:"post",data:o.a.stringify(e)})}function h(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/delete",method:"post",data:o.a.stringify(e)})}function b(e){return Object(a["a"])({url:i+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:o.a.stringify(e)})}function g(e){return Object(a["a"])({url:i+"/vipGroupActivity/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:e})}function y(e){return Object(a["a"])({url:i+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:e})}function j(e){return Object(a["a"])({url:i+"/vipGroupActivity/update",method:"POST",data:e})}function O(e){return Object(a["a"])({url:i+"/vipGroupActivity/delete",method:"POST",data:o.a.stringify(e)})}function k(e){return Object(a["a"])({url:i+"/vipGroupManage/queryAll",method:"GET",params:e})}function S(e){return Object(a["a"])({url:i+"/vipGroupManage/getVipGroupDetail",method:"GET",params:e})}function C(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupStudents",method:"GET",params:e})}function T(e){return Object(a["a"])({url:i+"/vipGroupManage/applyRefundForStudent",method:"POST",data:o.a.stringify(e)})}function _(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:e})}function w(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupSalarys",method:"get",params:e})}function F(e){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:e})}function G(e){return Object(a["a"])({url:i+"/vipGroupManage/classStartDateAdjust",method:"POST",data:o.a.stringify(e)})}function M(e){return Object(a["a"])({url:i+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:e})}function V(e){return Object(a["a"])({url:i+"/vipGroupManage/vipGroupApply",method:"POST",data:e})}function x(e){return Object(a["a"])({url:i+"/vipGroupManage/stopVipGroup",method:"POST",data:o.a.stringify(e)})}function D(e){return Object(a["a"])({url:i+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:e})}function L(e){return Object(a["a"])({url:i+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:o.a.stringify(e)})}function $(e){return Object(a["a"])({url:i+"/courseSchedule/bathDelete",method:"POST",data:o.a.stringify(e)})}function q(e){return Object(a["a"])({url:i+"/courseSchedule/vipCourseAdjust",method:"POST",data:e})}function P(e){return Object(a["a"])({url:i+"/vipGroupManage/appendVipGroupCourseSchedules",method:"POST",data:e})}function A(e){return Object(a["a"])({url:i+"/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:e})}function I(e){return Object(a["a"])({url:i+"/vipGroupManage/findHaveCourseBalanceStudents",method:"get",params:e})}function B(e){return Object(a["a"])({url:i+"/vipGroupManage/addVipGroupStudents",method:"get",params:e})}},8018:function(e,t,r){"use strict";r.d(t,"k",function(){return u}),r.d(t,"h",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"a",function(){return l}),r.d(t,"e",function(){return d}),r.d(t,"j",function(){return p}),r.d(t,"i",function(){return m}),r.d(t,"f",function(){return f}),r.d(t,"p",function(){return h}),r.d(t,"q",function(){return b}),r.d(t,"m",function(){return g}),r.d(t,"l",function(){return v}),r.d(t,"o",function(){return y}),r.d(t,"b",function(){return j}),r.d(t,"g",function(){return O}),r.d(t,"n",function(){return k}),r.d(t,"c",function(){return S});var a=r("b775"),n=r("4328"),o=r.n(n),i="/api-web";function u(e){return Object(a["a"])({url:i+"/teacher/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:i+"/teacher/get",method:"get",params:e})}function c(e){return Object(a["a"])({url:i+"/teacher/getTeacherMusicClass",method:"get",params:e})}function l(e){return Object(a["a"])({url:i+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(a["a"])({url:i+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function p(e){return Object(a["a"])({url:i+"/teacher/queryCloses",method:"get",params:e})}function m(e){return Object(a["a"])({url:i+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:i+"/teacher/sumTeacherNoPay",method:"get",params:e})}function h(e){return Object(a["a"])({url:i+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function b(e){return Object(a["a"])({url:i+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function g(e){return Object(a["a"])({url:i+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function v(e){return Object(a["a"])({url:i+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function y(e){return Object(a["a"])({url:i+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:o.a.stringify(e)})}function j(e){return Object(a["a"])({url:i+"/school/findVipSchoolByTeacher",method:"get",params:e})}function O(e){return Object(a["a"])({url:i+"/teacher/add",method:"post",data:o.a.stringify(e)})}function k(e){return Object(a["a"])({url:i+"/teacher/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(a["a"])({url:i+"/teacher/findOrganTeacherBySubject",method:"get",params: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",{staticClass:"tableWrap"},[r("el-table",{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:"班级id",align:"center",prop:"classGroupId"}}),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("\n "+e._s(e._f("formatTimer")(t.row.classDate))+"\n ")])]}}])}),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("\n "+e._s(e._f("coursesStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"上课开始时间",align:"center",prop:"startClassTimeStr"}}),e._v(" "),r("el-table-column",{attrs:{label:"上课结束时间",align:"center",prop:"endClassTimeStr"}}),e._v(" "),r("el-table-column",{attrs:{label:"课程类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(e._f("teachMode")(t.row.teachMode))+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"教学点",align:"center",prop:"schoolName"}}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},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:"courseSchedule/classStartDateAdjust",expression:"'courseSchedule/classStartDateAdjust'"}],attrs:{type:"text"},on:{click:function(r){return e.resetClass(t.row)}}},[e._v("调整")]),e._v(" "),"OVER"!=t.row.status?r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/bathDelete",expression:"'courseSchedule/bathDelete'"}],attrs:{type:"text"},on:{click:function(r){return e.removeClass(t.row)}}},[e._v("删除")]):e._e()],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","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date",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.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime",t)},expression:"maskForm.startTime"}})],1),e._v(" "),"OFFLINE"==e.maskForm.teachMode?r("el-form-item",{attrs:{label:"教学地点"}},[r("el-select",{model:{value:e.maskForm.address,callback:function(t){e.$set(e.maskForm,"address",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:"课程调整",visible:e.addCourseVisible},on:{"update:visible":function(t){e.addCourseVisible=t}}},[r("el-button",{attrs:{type:"text"},on:{click:e.addOneChiose}},[e._v("添加")]),e._v(" "),r("el-table",{attrs:{data:e.addTable}},[r("el-table-column",{attrs:{label:"上课日期",align:"center",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-date-picker",{attrs:{type:"date",placeholder:"选择日期"},model:{value:t.row.classDate,callback:function(r){e.$set(t.row,"classDate",r)},expression:"scope.row.classDate"}})],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"课程开始时间",align:"center",prop:"startClassTimeStr"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-time-select",{attrs:{"picker-options":{start:"04:30",step:"00:05",end:"23:30"},placeholder:"选择时间"},model:{value:t.row.startClassTimeStr,callback:function(r){e.$set(t.row,"startClassTimeStr",r)},expression:"scope.row.startClassTimeStr"}})],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"课程形态",align:"center",prop:"name"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-select",{model:{value:t.row.teachMode,callback:function(r){e.$set(t.row,"teachMode",r)},expression:"scope.row.teachMode"}},[r("el-option",{attrs:{label:"线上课",value:"ONLINE"}}),e._v(" "),r("el-option",{attrs:{label:"线下课",value:"OFFLINE"}})],1)],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.removeMarkCourse(t.row)}}},[e._v("删除")])],1)]}}])})],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addCourseVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitAdd}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"批量调整",width:"800px",visible:e.adjustmentVisible},on:{"update:visible":function(t){e.adjustmentVisible=t}}},[r("el-form",{ref:"adjustmentForm",attrs:{model:e.adjustmentForm,rules:e.adjustmentRules,inline:!0}},[r("el-form-item",{attrs:{label:"已选择课时数"}},[r("el-input",{attrs:{disabled:""},model:{value:e.adjustmentForm.count,callback:function(t){e.$set(e.adjustmentForm,"count",t)},expression:"adjustmentForm.count"}})],1),e._v(" "),r("br"),e._v(" "),r("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[r("el-date-picker",{staticStyle:{width:"200px!important"},attrs:{type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.adjustmentForm.courseTime,callback:function(t){e.$set(e.adjustmentForm,"courseTime",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",t)},expression:"adjustmentForm.checked"}},[e._v("是否跳过节假日")])],1)],1),e._v(" "),r("div",{staticClass:"WeekWrap "},[r("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("循环次数 "),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",{model:{value:t.dayOfWeek,callback:function(r){e.$set(t,"dayOfWeek",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",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(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitAdjustment}},[e._v("确 定")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"教学点",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",{model:{value:e.addrForm.address,callback:function(t){e.$set(e.addrForm,"address",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)],1)},n=[],o=(r("28a5"),r("1cc7")),i=(r("99b4"),r("333d")),u=r("7e78"),s=r("8018"),c={components:{pagination:i["a"]},data:function(){return{addrVisible:!1,adjustmentVisible:!1,addCourseVisible:!1,courseVisible:!1,tableList:[],addTable:[],courseTime:"",vipid:"",addrForm:{address:""},maskForm:{date:"",startTime:"",endTime:"",id:"",address:"",teachMode:""},rules:{limit:10,page:1,total:0,page_size:[50,100]},maskRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}],startTime:[{required:!0,message:"请选择上课开始时间",trigger:"blur"}],endTime:[{required:!0,message:"请选择上课结束时间",trigger:"blur"}]},schoolList:[],Frules:null,FsearchForm:null,adjustmentForm:{count:"",courseTime:"",checked:""},adjustmentRules:{courseTime:[{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:"",id:new Date}],activeList:[]}},created:function(){this.vipid=this.$route.query.id,this.$route.query.rules&&(this.Frules=this.$route.query.rules),this.$route.query.searchForm&&(this.FsearchForm=this.$route.query.searchForm)},mounted:function(){this.getList()},methods:{getList:function(){var e=this;Object(u["k"])({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,Object(s["b"])({userId:t.data.pageInfo.rows[0].teacherId}).then(function(t){200==t.code&&(e.schoolList=t.data)}))})},goBack:function(){this.$router.push({path:"/business/vipList",query:{rules:this.Frules,searchForm:this.FsearchForm}})},resetClass:function(e){this.maskForm.date=e.classDate,this.maskForm.startTime=e.startClassTimeStr,this.maskForm.id=e.id,this.maskForm.address=e.schoolId,this.maskForm.teachMode=e.teachMode,this.courseVisible=!0},handleClose:function(){this.courseVisible=!1,this.$refs["maskForm"].resetFields()},submitResetClass:function(){var e=this,t={startClassTimeStr:this.maskForm.startTime,id:this.maskForm.id,classDate:this.maskForm.date,schoolId:this.maskForm.address||null};Object(o["hb"])(t).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.courseVisible=!1,e.getList())})},removeClass:function(e){var t=this;this.$confirm("是否删除该vip课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(u["f"])({courseScheduleIds:e.id}).then(function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())})})},addCourse:function(){this.addCourseVisible=!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(u["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 o=n.getHours(),i=n.getMinutes();return o<10&&(o="0"+o),i<10&&(i="0"+i),o+":"+i},handleSelectionChange:function(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.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}),o=n.join(",");a.courseScheduleIds=o,a.courseTimes=e.weekList,a.holiday=e.adjustmentForm.checked,a.vipGroupId=e.vipid,Object(u["E"])(a).then(function(t){200==t.code&&(e.$message.success("恭喜您修改成功"),e.getList())})}})},resetAddrSubmit:function(){var e=this;this.addrForm.address?Object(u["D"])({id:this.vipid,teacherSchoolId:this.addrForm.address}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.addrVisible=!1,e.getList())}):this.$message.error("请选择一个教学点")}},watch:{adjustmentVisible:function(e){e||(this.$refs["adjustmentForm"].resetFields(),this.weekList=[],this.addWeek())},addrVisible:function(e){e||(this.addrForm.address="")}}},l=c,d=(r("1282"),r("2877")),p=Object(d["a"])(l,a,n,!1,null,"c8f6c096",null);t["default"]=p.exports},"99b4":function(e,t,r){"use strict";r.d(t,"a",function(){return u}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return c}),r.d(t,"x",function(){return l}),r.d(t,"v",function(){return d}),r.d(t,"C",function(){return p}),r.d(t,"B",function(){return m}),r.d(t,"D",function(){return f}),r.d(t,"w",function(){return h}),r.d(t,"h",function(){return b}),r.d(t,"j",function(){return g}),r.d(t,"m",function(){return v}),r.d(t,"i",function(){return y}),r.d(t,"z",function(){return j}),r.d(t,"k",function(){return O}),r.d(t,"A",function(){return k}),r.d(t,"y",function(){return S}),r.d(t,"d",function(){return C}),r.d(t,"f",function(){return T}),r.d(t,"e",function(){return _}),r.d(t,"g",function(){return w}),r.d(t,"n",function(){return F}),r.d(t,"o",function(){return G}),r.d(t,"q",function(){return M}),r.d(t,"p",function(){return V}),r.d(t,"l",function(){return x}),r.d(t,"t",function(){return D}),r.d(t,"r",function(){return L}),r.d(t,"u",function(){return $}),r.d(t,"s",function(){return q});var a=r("b775"),n=r("4328"),o=r.n(n),i="/api-web";function u(e){return Object(a["a"])({url:i+"/cooperationOrgan/add",method:"post",data:o.a.stringify(e)})}function s(e){return Object(a["a"])({url:i+"/cooperationOrgan/update",method:"put",data:o.a.stringify(e)})}function c(e){return Object(a["a"])({url:i+"/cooperationOrgan/del/".concat(e),method:"post"})}function l(e){return Object(a["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:e})}function d(e){return Object(a["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function p(e){return Object(a["a"])({url:i+"/school/queryPage",method:"get",params:e})}function m(e){return Object(a["a"])({url:i+"/school/add",method:"post",data:o.a.stringify(e)})}function f(e){return Object(a["a"])({url:i+"/school/update",method:"post",data:o.a.stringify(e)})}function h(e){return Object(a["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:e})}function b(e){return Object(a["a"])({url:i+"/employee/add",method:"post",data:e})}function g(e){return Object(a["a"])({url:i+"/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:i+"/employee/employeeOperate",method:"post",data:o.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 k(e){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:e})}function S(e){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:e})}function C(e){return Object(a["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:e})}function T(e){return Object(a["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:e})}function _(e){return Object(a["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(a["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(e)})}function F(e){return Object(a["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:e})}function G(e){return Object(a["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(e)})}function M(e){return Object(a["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(e)})}function V(e){return Object(a["a"])({url:i+"/hotWordLabelManage/del/".concat(e),method:"post"})}function x(e){return Object(a["a"])({url:i+"/school/queryByOrganId",method:"get",params:e})}function D(e){return Object(a["a"])({url:i+"/paymentConfig/queryPage",method:"get",params:e})}function L(e){return Object(a["a"])({url:i+"/paymentConfig/add",method:"post",data:o.a.stringify(e)})}function $(e){return Object(a["a"])({url:i+"/paymentConfig/update",method:"post",data:o.a.stringify(e)})}function q(e){return Object(a["a"])({url:i+"/paymentConfig/del/"+e.id,method:"post"})}},c0b9:function(e,t,r){"use strict";var a=r("de4e"),n=r.n(a);n.a},de4e:function(e,t,r){}}]);
|