chunk-7e01a830.76c8c642.js 40 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e01a830"],{"045b":function(e,t,r){"use strict";var a=r("2cd8"),n=r.n(a);n.a},"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()}},"2cd8":function(e,t,r){},"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 T}),r.d(t,"A",function(){return O}),r.d(t,"x",function(){return k}),r.d(t,"y",function(){return F}),r.d(t,"o",function(){return _}),r.d(t,"B",function(){return C}),r.d(t,"p",function(){return S}),r.d(t,"z",function(){return w}),r.d(t,"v",function(){return M}),r.d(t,"I",function(){return G}),r.d(t,"w",function(){return I}),r.d(t,"i",function(){return D}),r.d(t,"h",function(){return V}),r.d(t,"K",function(){return L}),r.d(t,"n",function(){return x}),r.d(t,"g",function(){return $}),r.d(t,"L",function(){return A}),r.d(t,"e",function(){return P}),r.d(t,"u",function(){return q}),r.d(t,"r",function(){return N}),r.d(t,"d",function(){return E}),r.d(t,"f",function(){return R}),r.d(t,"P",function(){return B}),r.d(t,"t",function(){return W}),r.d(t,"C",function(){return H}),r.d(t,"m",function(){return Y}),r.d(t,"k",function(){return z}),r.d(t,"s",function(){return U});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 T(e){return Object(a["a"])({url:o+"/vipGroupActivity/delete",method:"POST",data:i.a.stringify(e)})}function O(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 F(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 C(e){return Object(a["a"])({url:o+"/vipGroupManage/applyRefundForStudent",method:"POST",data:i.a.stringify(e)})}function S(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 M(e){return Object(a["a"])({url:o+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:e})}function G(e){return Object(a["a"])({url:o+"/vipGroupManage/classStartDateAdjust",method:"POST",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:o+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:e})}function D(e){return Object(a["a"])({url:o+"/vipGroupManage/vipGroupApply",method:"POST",data:e})}function V(e){return Object(a["a"])({url:o+"/vipGroupManage/stopVipGroup",method:"POST",data:i.a.stringify(e)})}function L(e){return Object(a["a"])({url:o+"/vipGroupManage/updateVipBaseInfo",method:"POST",data:e})}function x(e){return Object(a["a"])({url:o+"/courseSchedule/findVipGroupCourseSchedules",method:"POST",data:i.a.stringify(e)})}function $(e){return Object(a["a"])({url:o+"/courseSchedule/batchDelete",method:"POST",data:i.a.stringify(e)})}function A(e){return Object(a["a"])({url:o+"/courseSchedule/vipCourseAdjust",method:"POST",data:e})}function P(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 E(e){return Object(a["a"])({url:o+"/vipGroupManage/addVipGroupStudents",method:"get",params:e})}function R(e){return Object(a["a"])({url:o+"/courseSchedule/batchAppendVipGroupCourses",method:"POST",data:e})}function B(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 H(e){return Object(a["a"])({url:o+"/vipGroupManage/recoverForStudent",method:"POST",data:e})}function Y(e){return Object(a["a"])({url:o+"/vipGroupManage/findTeacherWithVipGroupOrganAndSubject",method:"get",params:e})}function z(e){return Object(a["a"])({url:o+"/vipGroupManage/deleteVipGroup",method:"post",data:i.a.stringify(e)})}function U(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 T}),r.d(t,"z",function(){return O}),r.d(t,"s",function(){return k}),r.d(t,"h",function(){return F}),r.d(t,"m",function(){return _}),r.d(t,"r",function(){return C}),r.d(t,"a",function(){return S}),r.d(t,"l",function(){return w}),r.d(t,"o",function(){return M}),r.d(t,"p",function(){return G}),r.d(t,"k",function(){return I}),r.d(t,"d",function(){return D}),r.d(t,"c",function(){return V}),r.d(t,"j",function(){return L}),r.d(t,"b",function(){return x});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 T(e){return Object(a["a"])({url:o+"/teacher/add",method:"post",data:i.a.stringify(e)})}function O(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 F(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 C(e){return Object(a["a"])({url:o+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function S(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 M(e){return Object(a["a"])({url:o+"/sysTenantAccount/addMinutes",method:"post",data:i.a.stringify(e)})}function G(e){return Object(a["a"])({url:o+"/sysTenantAccount/subtractMinutes",method:"post",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:o+"/sysTenantAccount/get",method:"get",params:e})}function D(e){return Object(a["a"])({url:o+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function V(e){return Object(a["a"])({url:o+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:i.a.stringify(e)})}function L(e){return Object(a["a"])({url:o+"/teacher/queryStudent",method:"get",params:e})}function x(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",staticClass:"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",{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-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:e.changeStartTime},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:"endTime"}},[r("el-time-picker",{attrs:{placeholder:"结束时间",format:"HH:mm","value-format":"HH:mm",disabled:""},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime",t)},expression:"maskForm.endTime"}})],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-picker",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},on:{change:function(r){e.changeStartTimes(r,t)}},model:{value:t.startClassTime,callback:function(r){e.$set(t,"startClassTime","string"===typeof r?r.trim():r)},expression:"item.startClassTime"}}),e._v(" "),r("span",{staticStyle:{"margin-left":"10px"}},[e._v("结束时间")]),e._v(" "),r("el-time-picker",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"",format:"HH:mm","value-format":"HH:mm",disabled:"","picker-options":{selectableRange:"04:30:00 - 23:30:00"}},model:{value:t.endClassTime,callback:function(r){e.$set(t,"endClassTime","string"===typeof r?r.trim():r)},expression:"item.endClassTime"}}),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=r("c466"),l=r("5a0c"),m=r.n(l),p={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"}]},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["U"])().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.endTime=e.endClassTimeStr.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,groupType:"VIP"};Object(i["Vb"])(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["o"])({courseScheduleIds:e.id}).then(function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)})}).catch(function(){})},changeStartTime:function(e){var t=this;this.$nextTick(function(r){e?t.$set(t.maskForm,"endTime",Object(d["a"])(t.maskForm.date,e,t.courseTime)):t.$set(t.maskForm,"endTime",""),t.maskForm.endTime||t.$set(t,"startTime","")})},changeStartTimes:function(e,t){var r=this;this.$nextTick(function(a){if(e){var n=m()(new Date).format("YYYY-MM-DD");r.$set(t,"endClassTime",Object(d["a"])(n,e,r.courseTime))}else r.$set(t,"endClassTime","");t.endClassTime||(console.log(t.startClassTime),r.$set(t,"startClassTime",""))})}},watch:{adjustmentVisible:function(e){e||(this.adjustmentForm={count:"",courseTime:"",checked:!1,addCount:"",courseType:"",fee:"",address:""},this.weekList=[],this.$refs["tableList"].clearSelection(),this.$refs["adjustmentForm"].resetFields(),this.addWeek())},addrVisible:function(e){e||(this.addrForm.address="")}}},f=p,h=(r("045b"),r("2877")),b=Object(h["a"])(f,a,n,!1,null,"5ae8f5fb",null);t["default"]=b.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 T}),r.d(t,"F",function(){return O}),r.d(t,"D",function(){return k}),r.d(t,"f",function(){return F}),r.d(t,"h",function(){return _}),r.d(t,"g",function(){return C}),r.d(t,"i",function(){return S}),r.d(t,"r",function(){return w}),r.d(t,"s",function(){return M}),r.d(t,"u",function(){return G}),r.d(t,"t",function(){return I}),r.d(t,"o",function(){return D}),r.d(t,"x",function(){return V}),r.d(t,"v",function(){return L}),r.d(t,"y",function(){return x}),r.d(t,"w",function(){return $}),r.d(t,"m",function(){return A}),r.d(t,"b",function(){return P}),r.d(t,"a",function(){return q}),r.d(t,"C",function(){return N}),r.d(t,"q",function(){return E}),r.d(t,"J",function(){return R});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 T(e){return Object(a["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function O(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 F(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 C(e){return Object(a["a"])({url:o+"/courseScheduleRewards/add",method:"post",data:i.a.stringify(e)})}function S(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 M(e){return Object(a["a"])({url:o+"/hotWordLabelManage/add",method:"post",data:i.a.stringify(e)})}function G(e){return Object(a["a"])({url:o+"/hotWordLabelManage/update",method:"post",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:o+"/hotWordLabelManage/del/".concat(e),method:"post"})}function D(e){return Object(a["a"])({url:o+"/school/queryByOrganId",method:"get",params:e})}function V(e){return Object(a["a"])({url:o+"/paymentConfig/queryPage",method:"get",params:e})}function L(e){return Object(a["a"])({url:o+"/paymentConfig/add",method:"post",data:i.a.stringify(e)})}function x(e){return Object(a["a"])({url:o+"/paymentConfig/update",method:"post",data:i.a.stringify(e)})}function $(e){return Object(a["a"])({url:o+"/paymentConfig/del/"+e.id,method:"post"})}function A(e){return Object(a["a"])({url:o+"/teacher/findTeacherByOrganId",method:"get",params:e})}function P(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 E(e){return Object(a["a"])({url:o+"/employee/hasCourseGroupRelation",method:"post",data:i.a.stringify(e)})}function R(e){return Object(a["a"])({url:o+"/employee/updateEducationTeacherId",method:"post",data:i.a.stringify(e)})}},c466:function(e,t,r){"use strict";r.d(t,"h",function(){return o}),r.d(t,"c",function(){return u}),r.d(t,"d",function(){return s}),r.d(t,"e",function(){return c}),r.d(t,"f",function(){return d}),r.d(t,"g",function(){return l}),r.d(t,"b",function(){return m}),r.d(t,"a",function(){return p});r("a481");var a=r("5a0c"),n=r.n(a),i=r("56d7");function o(e){var t=e.getFullYear(),r=e.getMonth()+1,a=e.getDate();return r=r<10?"0"+r:r,a=a<10?"0"+a:a,t+"-"+r+"-"+a}function u(e){return e.setDate(1),e}function s(e){var t=e.getMonth(),r=++t,a=new Date(e.getFullYear(),r,1),n=864e5;return new Date(a-n)}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e);0==r.getDay()&&(t-=6048e5);var a=t-24*(r.getDay()-1)*60*60*1e3,n=new Date(a),i=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,u=n.getDate()<10?"0"+n.getDate():n.getDate(),s=i+"-"+o+"-"+u;return s}function d(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e),a=7-r.getDay();7==a&&(a=0);var n=t+24*a*60*60*1e3,i=new Date(n),o=i.getFullYear(),u=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,s=i.getDate()<10?"0"+i.getDate():i.getDate(),c=o+"-"+u+"-"+s;return c}function l(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function m(e,t,r){return Math.abs(n()(e+" "+t).diff(e+" "+r,"Minute"))}function p(e,t,r){var a=n()(e+" "+t).add(r,"minute");return console.log(),n()(e+" 23:59").isBefore(a)?(i["$message"].error("课程时间无法跨天请重新设置开始时间"),""):a.format("HH:mm")}}}]);