1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76d4a05c"],{"37c1":function(e,t,r){},5137:function(e,t,r){"use strict";r.d(t,"n",(function(){return o})),r.d(t,"e",(function(){return l})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return c})),r.d(t,"t",(function(){return m})),r.d(t,"o",(function(){return f})),r.d(t,"s",(function(){return d})),r.d(t,"m",(function(){return h})),r.d(t,"r",(function(){return p})),r.d(t,"j",(function(){return g})),r.d(t,"l",(function(){return v})),r.d(t,"a",(function(){return b})),r.d(t,"g",(function(){return y})),r.d(t,"b",(function(){return F})),r.d(t,"q",(function(){return T})),r.d(t,"i",(function(){return k})),r.d(t,"w",(function(){return C})),r.d(t,"v",(function(){return S})),r.d(t,"k",(function(){return O})),r.d(t,"p",(function(){return L})),r.d(t,"x",(function(){return _})),r.d(t,"u",(function(){return I})),r.d(t,"c",(function(){return w})),r.d(t,"y",(function(){return D})),r.d(t,"z",(function(){return j})),r.d(t,"h",(function(){return N}));var s=r("b775"),i=r("4328"),a=r.n(i),n="/api-web";function o(e){return Object(s["a"])({url:n+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function u(e){return Object(s["a"])({url:n+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function c(e){return Object(s["a"])({url:n+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(s["a"])({url:n+"/studentWithdraw/queryPage",method:"get",params:e})}function f(e){return Object(s["a"])({url:n+"/studentManage/queryStudentPayment",method:"get",params:e})}function d(e){return Object(s["a"])({url:n+"/order/queryPage",method:"get",params:e})}function h(e){return Object(s["a"])({url:n+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function p(e){return Object(s["a"])({url:n+"/studentRegistration/batchUpdateSubject",method:"post",data:a.a.stringify(e)})}function g(e){return Object(s["a"])({url:n+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function v(e){return Object(s["a"])({url:n+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function b(e){return Object(s["a"])({url:n+"/studentRegistration/insertStudent",method:"POST",data:e})}function y(e){return Object(s["a"])({url:n+"/classGroupStudent/findAllStudent",method:"POST",data:a.a.stringify(e)})}function F(e){return Object(s["a"])({url:n+"/classGroupStudent/addStudents",method:"POST",data:a.a.stringify(e)})}function T(e){return Object(s["a"])({url:n+"/classGroupStudent/del",method:"POST",data:a.a.stringify(e)})}function k(e){return Object(s["a"])({url:n+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function C(e){return Object(s["a"])({url:n+"/userCashAccount/updateCourseBalance",method:"post",data:a.a.stringify(e)})}function S(e){return Object(s["a"])({url:n+"/userCashAccount/updateBalance",method:"post",data:a.a.stringify(e)})}function O(e){return Object(s["a"])({url:n+"/studentManage/queryUserByPhone",method:"get",params:e})}function L(e){return Object(s["a"])({url:n+"/studentManage/register",method:"post",data:a.a.stringify(e)})}function _(e){return Object(s["a"])({url:n+"/studentManage/studentUpdate",method:"post",data:a.a.stringify(e)})}function I(e){return Object(s["a"])({url:n+"/userCashAccount/transferCourseBalanceToBalance",method:"post",data:a.a.stringify(e)})}function w(e){return Object(s["a"])({url:n+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function D(e){return Object(s["a"])({url:n+"/userCashAccountDetail/queryPage",method:"get",params:e})}function j(e){return Object(s["a"])({url:n+"/userCoursesAccount/queryPage",method:"get",params:e})}function N(e){return Object(s["a"])({url:n+"/sysUserContracts/getLatest",method:"get",params:e})}},"67ff":function(e,t,r){"use strict";r.r(t);var s=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.onCancel}})],1),e._v(" "),r("div",{staticClass:"m-core"},[r("div",{staticClass:"vipLeft"},[r("el-alert",{staticClass:"vipMsg",attrs:{title:"课程信息",type:"info",closable:!1}}),e._v(" "),r("el-form",{ref:"leftForm",attrs:{inline:!0,rules:e.leftFormRules,"label-position":e.labelPosition,"label-width":"110px",model:e.leftForm}},[r("el-form-item",{attrs:{label:"课程分部",prop:"classOrganId"}},[r("el-select",{attrs:{filterable:"",clearable:""},on:{change:e.onClassChange},model:{value:e.leftForm.classOrganId,callback:function(t){e.$set(e.leftForm,"classOrganId","string"===typeof t?t.trim():t)},expression:"leftForm.classOrganId"}},e._l(e.selects.branchs,(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:"subject"}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.leftForm.classOrganId},on:{change:e.changeSubject},model:{value:e.leftForm.subject,callback:function(t){e.$set(e.leftForm,"subject","string"===typeof t?t.trim():t)},expression:"leftForm.subject"}},e._l(e.subjectList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"指导老师",prop:"teacher"}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.leftForm.subject},on:{change:function(t){return e.setSection(t)}},model:{value:e.leftForm.teacher,callback:function(t){e.$set(e.leftForm,"teacher","string"===typeof t?t.trim():t)},expression:"leftForm.teacher"}},e._l(e.teacherList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"乐团主管",prop:"educationalTeacherId"}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.leftForm.subject},model:{value:e.leftForm.educationalTeacherId,callback:function(t){e.$set(e.leftForm,"educationalTeacherId","string"===typeof t?t.trim():t)},expression:"leftForm.educationalTeacherId"}},e._l(e.educationList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.userName,value:e.userId}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"课程形式",prop:"courseType"}},[r("el-select",{attrs:{clearable:"",filterable:"",disabled:!e.leftForm.classOrganId||!e.leftForm.teacher},on:{change:e.changeType},model:{value:e.leftForm.courseType,callback:function(t){e.$set(e.leftForm,"courseType","string"===typeof t?t.trim():t)},expression:"leftForm.courseType"}},e._l(e.courseTypeList,(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:"教学点"}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.leftForm.teacher},model:{value:e.leftForm.section,callback:function(t){e.$set(e.leftForm,"section","string"===typeof t?t.trim():t)},expression:"leftForm.section"}},e._l(e.scetionList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),e.isMusicTheory?r("el-form-item",{attrs:{label:"活动方案",prop:"activeType"}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.leftForm.courseType||e.isMusicTheory},on:{change:e.chioseActive},model:{value:e.leftForm.activeType,callback:function(t){e.$set(e.leftForm,"activeType","string"===typeof t?t.trim():t)},expression:"leftForm.activeType"}},e._l(e.activeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):r("el-form-item",{attrs:{label:"活动方案",prop:"activeType",rules:[{required:!0,message:"请选择活动方案",trigger:"change"}]}},[r("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.leftForm.courseType},on:{change:e.chioseActive},model:{value:e.leftForm.activeType,callback:function(t){e.$set(e.leftForm,"activeType","string"===typeof t?t.trim():t)},expression:"leftForm.activeType"}},e._l(e.activeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"每课时长"}},[r("el-select",{attrs:{disabled:e.timeTable.length>0},model:{value:e.leftForm.classTime,callback:function(t){e.$set(e.leftForm,"classTime","string"===typeof t?t.trim():t)},expression:"leftForm.classTime"}},e._l(this.classTimeList,(function(e,t){return r("el-option",{key:t,attrs:{value:e,label:e}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"报名开始时间",prop:"signUpStart"}},[r("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择时间"},model:{value:e.leftForm.signUpStart,callback:function(t){e.$set(e.leftForm,"signUpStart","string"===typeof t?t.trim():t)},expression:"leftForm.signUpStart"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"报名结束时间",prop:"signUpEnd"}},[r("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions1,"value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择时间"},model:{value:e.leftForm.signUpEnd,callback:function(t){e.$set(e.leftForm,"signUpEnd","string"===typeof t?t.trim():t)},expression:"leftForm.signUpEnd"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"上课学员",prop:"students"}},[r("el-select",{attrs:{multiple:"",clearable:"",placeholder:"请输入上课学员",remote:"","reserve-keyword":"",filterable:"","multiple-limit":e.studentLimit,disabled:!e.leftForm.classOrganId||!e.leftForm.courseType,"remote-method":e.remoteMethod,loading:e.remoteLoading},on:{change:e.changeStudent},model:{value:e.leftForm.students,callback:function(t){e.$set(e.leftForm,"students","string"===typeof t?t.trim():t)},expression:"leftForm.students"}},e._l(e.studentList,(function(t){return r("el-option",{key:t.userId,attrs:{label:t.username,value:t.userId}},[r("span",{staticStyle:{float:"left"}},[e._v(e._s(t.username))]),e._v(" "),r("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.parentsPhone))])])})),1)],1)],1)],1),e._v(" "),r("div",{staticClass:"center"},[r("el-alert",{staticClass:"vipMsg",attrs:{title:"排课设置",type:"info",closable:!1}}),e._v(" "),r("el-form",{attrs:{inline:!0,model:e.centerForm,"label-width":"100px","label-position":e.labelPosition}},[e.leftForm.courseStart?r("el-form-item",{attrs:{label:"最早排课时间"}},[r("el-date-picker",{attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择时间"},model:{value:e.leftForm.courseStart,callback:function(t){e.$set(e.leftForm,"courseStart","string"===typeof t?t.trim():t)},expression:"leftForm.courseStart"}})],1):e._e(),e._v(" "),e.leftForm.courseEnd?r("el-form-item",{attrs:{label:"最晚排课时间"}},[r("el-date-picker",{attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择时间"},model:{value:e.leftForm.courseEnd,callback:function(t){e.$set(e.leftForm,"courseEnd","string"===typeof t?t.trim():t)},expression:"leftForm.courseEnd"}})],1):e._e(),e._v(" "),e.hasOnline?r("el-form-item",{attrs:{label:"线上课数"}},[r("el-input",{attrs:{type:"number"},on:{input:function(t){return e.onCourseNumChange("online")}},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.centerForm.onlineCourseNum,callback:function(t){e.$set(e.centerForm,"onlineCourseNum","string"===typeof t?t.trim():t)},expression:"centerForm.onlineCourseNum"}},[r("template",{slot:"append"},[e._v("节")])],2)],1):e._e(),e._v(" "),e.hasOffline?r("el-form-item",{attrs:{label:"线下课数"}},[r("el-input",{attrs:{type:"number"},on:{input:function(t){return e.onCourseNumChange("offline")}},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.centerForm.offlineCourseNum,callback:function(t){e.$set(e.centerForm,"offlineCourseNum","string"===typeof t?t.trim():t)},expression:"centerForm.offlineCourseNum"}},[r("template",{slot:"append"},[e._v("节")])],2)],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"待排课数"}},[r("el-input",{attrs:{disabled:""},model:{value:e.allCourseCount,callback:function(t){e.allCourseCount="string"===typeof t?t.trim():t},expression:"allCourseCount"}},[r("template",{slot:"append"},[e._v("节")])],2)],1),e._v(" "),"GIVE_CLASS"==e.hotType&&e.isGiveClass?r("el-form-item",{attrs:{label:"赠课课程类型"}},[r("el-radio",{attrs:{label:"ONLINE"},model:{value:e.centerForm.radio,callback:function(t){e.$set(e.centerForm,"radio","string"===typeof t?t.trim():t)},expression:"centerForm.radio"}},[e._v("线上课")]),e._v(" "),r("el-radio",{attrs:{label:"OFFLINE"},model:{value:e.centerForm.radio,callback:function(t){e.$set(e.centerForm,"radio","string"===typeof t?t.trim():t)},expression:"centerForm.radio"}},[e._v("线下课")])],1):e._e(),e._v(" "),r("el-form-item",{attrs:{label:""}},[r("el-button",{attrs:{type:"danger"},on:{click:e.setCourse}},[e._v("点击排课")])],1)],1),e._v(" "),r("div",{},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.timeTable}},[r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程时间"},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:{align:"center",prop:"studentId",label:"课程开始时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.startClassTimeStr))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程结束时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.endClassTimeStr))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(e._f("teachMode")(t.row.teachMode)))])]}}])})],1)],1)],1),e._v(" "),r("div",{staticClass:"right"},[r("el-alert",{staticClass:"vipMsg",attrs:{title:"课酬&缴费设置",type:"info",closable:!1}}),e._v(" "),r("el-form",{attrs:{model:e.rightForm,"label-width":"100px","label-position":e.labelPosition,inline:!0}},[e.hasOnline?r("el-form-item",{attrs:{label:"线上课课酬"}},[r("el-input",{attrs:{disabled:!0},model:{value:e.rightForm.onlineCourse,callback:function(t){e.$set(e.rightForm,"onlineCourse","string"===typeof t?t.trim():t)},expression:"rightForm.onlineCourse"}},[e.isMusicTheory?r("template",{slot:"append"},[e._v("元/人")]):r("template",{slot:"append"},[e._v("元/节")])],2)],1):e._e(),e._v(" "),e.hasOffline?r("el-form-item",{attrs:{label:"线下课课酬"}},[r("el-input",{attrs:{disabled:!0},model:{value:e.rightForm.offlineCourse,callback:function(t){e.$set(e.rightForm,"offlineCourse","string"===typeof t?t.trim():t)},expression:"rightForm.offlineCourse"}},[e.isMusicTheory?r("template",{slot:"append"},[e._v("元/人")]):r("template",{slot:"append"},[e._v("元/节")])],2)],1):e._e()],1),e._v(" "),r("div",{staticStyle:{width:"700px",clear:"both"}},[r("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.activeStudentList}},[r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"学员编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员名称"}}),e._v(" "),e.hasOnline?r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"线上课单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input-number",{staticClass:"number-input",staticStyle:{width:"90% !important"},attrs:{disabled:!e.isMusicTheory,size:"mini",controls:!1,min:0,placeholder:"线上课单价"},on:{change:e.changeStudentMoney},model:{value:t.row.onlineClassesUnitPrice,callback:function(r){e.$set(t.row,"onlineClassesUnitPrice",r)},expression:"scope.row.onlineClassesUnitPrice"}})]}}],null,!1,876442523)}):e._e(),e._v(" "),e.hasOffline?r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"线下课单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input-number",{staticClass:"number-input",staticStyle:{width:"90% !important"},attrs:{size:"mini",disabled:!e.isMusicTheory,controls:!1,min:0,placeholder:"线下课单价"},on:{change:e.changeStudentMoney},model:{value:t.row.offlineClassesUnitPrice,callback:function(r){e.$set(t.row,"offlineClassesUnitPrice",r)},expression:"scope.row.offlineClassesUnitPrice"}})]}}],null,!1,2164978676)}):e._e(),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"缴费总额"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-input-number",{staticClass:"number-input",staticStyle:{width:"90% !important"},attrs:{size:"mini",controls:!1,min:0,disabled:!0,placeholder:"缴费总额"},model:{value:t.row.paymentPrice,callback:function(r){e.$set(t.row,"paymentPrice",r)},expression:"scope.row.paymentPrice"}})]}}])})],1),e._v(" "),r("div",{staticStyle:{overflow:"hidden"}},[r("el-button",{staticClass:"computeMoney",attrs:{type:"primary"},on:{click:e.computational}},[e._v("计算")])],1)],1)],1)]),e._v(" "),r("el-dialog",{ref:"maskForm",attrs:{title:"VIP排课",width:"500px","destroy-on-close":"",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("el-form",{attrs:{model:e.maskForm,"label-position":"right","label-width":"150px"}},[r("el-form-item",{attrs:{label:"线上课开课时间"}},[r("el-date-picker",{attrs:{type:"date","picker-options":e.courseOption,placeholder:"请选择开课时间"},model:{value:e.maskForm.courseStartOnline,callback:function(t){e.$set(e.maskForm,"courseStartOnline","string"===typeof t?t.trim():t)},expression:"maskForm.courseStartOnline"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"线下课开课时间"}},[r("el-date-picker",{attrs:{type:"date","picker-options":e.courseOption,placeholder:"请选择开课时间"},model:{value:e.maskForm.courseStartOffline,callback:function(t){e.$set(e.maskForm,"courseStartOffline","string"===typeof t?t.trim():t)},expression:"maskForm.courseStartOffline"}})],1),e._v(" "),r("div",{staticClass:"line",staticStyle:{height:"1px",background:"#ccc",margin:"0 25px"}}),e._v(" "),r("el-form-item",{attrs:{label:"课程类型",prop:"type"}},[e.hasOnline?r("el-radio",{attrs:{label:"ONLINE"},model:{value:e.maskForm.type,callback:function(t){e.$set(e.maskForm,"type","string"===typeof t?t.trim():t)},expression:"maskForm.type"}},[e._v("线上课")]):e._e(),e._v(" "),e.hasOffline?r("el-radio",{attrs:{label:"OFFLINE"},model:{value:e.maskForm.type,callback:function(t){e.$set(e.maskForm,"type","string"===typeof t?t.trim():t)},expression:"maskForm.type"}},[e._v("线下课")]):e._e()],1),e._v(" "),r("el-form-item",{attrs:{label:"循环周次",prop:"week"}},[r("el-select",{staticStyle:{width:"220px !important"},model:{value:e.maskForm.week,callback:function(t){e.$set(e.maskForm,"week","string"===typeof t?t.trim():t)},expression:"maskForm.week"}},[r("el-option",{attrs:{label:"星期日",value:"0"}}),e._v(" "),r("el-option",{attrs:{label:"星期一",value:"1"}}),e._v(" "),r("el-option",{attrs:{label:"星期二",value:"2"}}),e._v(" "),r("el-option",{attrs:{label:"星期三",value:"3"}}),e._v(" "),r("el-option",{attrs:{label:"星期四",value:"4"}}),e._v(" "),r("el-option",{attrs:{label:"星期五",value:"5"}}),e._v(" "),r("el-option",{attrs:{label:"星期六",value:"6"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"上课时间",prop:"startTime"}},[r("el-time-picker",{attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"选择时间"},on:{change:e.getStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"下课时间",prop:"endTime"}},[r("el-time-picker",{attrs:{disabled:"",format:"HH:mm","value-format":"HH:mm","picker-options":{start:"04:30",step:"00:05",end:"23:30"},placeholder:"选择时间"},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1)],1),e._v(" "),r("div",{staticClass:"btnWrap"},[r("div",{staticClass:"okBtn",on:{click:e.addWeek}},[e._v("确认")])]),e._v(" "),r("div",{staticClass:"planList"},[r("div",{staticClass:"planTop"},[r("p",[e._v("已排课程")])]),e._v(" "),r("div",{staticClass:"planCore"},e._l(this.lookList,(function(t,s){return r("div",{key:s,staticClass:"row"},[r("div",{staticClass:"name"},[e._v(e._s(t.type))]),e._v(" "),r("div",{staticClass:"week"},[e._v(e._s(t.week))]),e._v(" "),r("div",{staticClass:"time"},[e._v(e._s(t.time))]),e._v(" "),r("div",{staticClass:"operation"},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.removeWeekCourse(t.id)}}},[e._v("删除")])],1)])})),0),e._v(" "),r("div",{staticClass:"dialog-footer",staticStyle:{"margin-top":"20px"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.setTimeTable}},[e._v("确 定")])],1)])],1),e._v(" "),r("el-row",[r("el-col",[r("div",{staticClass:"okBtn",on:{click:e.submitInfo}},[e._v(e._s(e.id?"修改":"确定"))])])],1)],1)},i=[],a=(r("ac6a"),r("28a5"),r("a481"),r("96cf"),r("3b8d")),n=r("1cc7"),o=r("7e78"),l=r("8018"),u=(r("5137"),r("bc3a")),c=r.n(u),m=r("5f87"),f=r("c466"),d=r("5a0c"),h=r.n(d),p={name:"buildVip",data:function(){return{dialogFormVisible:!1,labelPosition:"right",leftForm:{teacher:"",subject:"",courseType:"",activeType:"",classNum:"",classTime:"",signUpStart:"",signUpEnd:"",courseStartOnline:"",courseStartOffline:"",section:"",courseStart:"",courseEnd:"",educationalTeacherId:"",students:[],classOrganId:""},activeStudentList:[],studentLimit:0,classTimeList:[],centerForm:{allCourseNum:"",onlineCourseNum:0,offlineCourseNum:0,radio:""},maskForm:{type:"",week:"",startTime:"",endTime:""},rightForm:{onlineCourse:"",offlineCourse:"",onlinePrice:"",offlinePrice:"",allPrice:""},remoteLoading:!1,computationalBtn:!1,subjectList:[],teacherList:[],educationList:[],courseTypeList:[],activeList:[],hasOnline:!0,hasOffline:!0,onlineSalary:"",offlineSalary:"",hotType:"",attribute1:"",attribute2:"",attribute3:"",salaryReadonlyFlag:"",paymentReadonlyFlag:"",lookList:[],onlinelookList:[],offlineLookList:[],timeTable:[],giveNum:"",weekDay:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],scetionList:[],isGiveClass:!1,activeStartTime:null,courseOption:null,pickerOptions:null,pickerOptions1:null,leftFormRules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}],teacher:[{required:!0,message:"请选择老师",trigger:"change"}],educationalTeacherId:[{required:!0,message:"请选择教务",trigger:"change"}],classOrganId:[{required:!0,message:"请选择课程分部",trigger:"change"}],subject:[{required:!0,message:"请选择科目",trigger:"change"}],courseType:[{required:!0,message:"请选择课程类型",trigger:"change"}],students:[{required:!0,message:"请选择上课学生",trigger:"change"}],signUpStart:[{required:!0,message:"请选择报名开始时间",trigger:"change"}],signUpEnd:[{required:!0,message:"请选择报名结束时间",trigger:"change"}]},id:"",studentList:[],courseTimeList:[],isMusicTheory:!1}},computed:{allCourseCount:function(){var e,t,r;return e=this.centerForm.onlineCourseNum?this.centerForm.onlineCourseNum:0,t=this.centerForm.offlineCourseNum?this.centerForm.offlineCourseNum:0,"GIVE_CLASS"==this.hotType?(r=parseInt(r=parseInt(t)+parseInt(e)-this.attribute1>=0?this.attribute2:0),r&&(this.isGiveClass=!0),this.giveNum=r||0,parseInt(t)+parseInt(e)+"+"+r||""):"DISCOUNT"==this.hotType&&this.attribute3&&this.attribute3>0?parseInt(this.attribute3):parseInt(t)+parseInt(e)||""}},created:function(){},mounted:function(){var e=this;Object.assign(this.$data,this.$options.data()),setTimeout((function(){e.$refs["leftForm"].resetFields()}),100),this.init()},methods:{init:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$route.query.rules&&(this.rules=this.$route.query.rules),this.$route.query.searchForm&&(this.searchForm=this.$route.query.searchForm),e.next=4,this.$store.dispatch("setBranchs");case 4:Object(n["Cb"])({tenantId:1}).then((function(e){200==e.code&&(t.subjectList=e.data)})),this.pickerOptions=this.beginDate(),this.pickerOptions1=this.processDate(),this.courseOption=this.coursesDate();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onCourseNumChange:function(e){var t=this.centerForm;if("DISCOUNT"==this.hotType&&this.attribute3&&this.attribute3>0){var r=t.onlineCourseNum||0,s=t.offlineCourseNum||0;parseInt(r)+parseInt(s)>this.attribute3&&("online"==e||"offline"==e)&&this.$message.error("线上课数加线下课数必须等于待排课数")}},coursesDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){if(e.leftForm.courseStart){var r=new Date(e.leftForm.courseStart.replace(/-/,"/"));return t.getTime()<r.getTime()}}}},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},processDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return e.leftForm.signUpStart?new Date(e.leftForm.signUpStart).getTime()>t.getTime():t.getTime()>Date.now()}}},changeSubject:function(e){var t=this;this.leftForm.teacher="",this.leftForm.section="",Object(n["L"])({subjectIds:e,organId:this.leftForm.classOrganId}).then((function(e){200==e.code&&(t.teacherList=e.data)}))},changeType:function(e){var t=this;for(var r in this.rightForm.offlineCourse="",this.rightForm.onlineCourse="",this.leftForm.activeType="",this.leftForm.students=[],this.courseTypeList)this.courseTypeList[r].id==e&&(this.leftForm.classNum=this.courseTypeList[r].studentNum,this.studentLimit=this.courseTypeList[r].studentNum,this.classTimeList=this.courseTypeList[r].singleClassMinutes.split(","),this.leftForm.classTime=this.classTimeList[0],this.rightForm.onlinePrice=this.courseTypeList[r].onlineClassesUnitPrice,this.rightForm.offlinePrice=this.courseTypeList[r].offlineClassesUnitPrice,this.isMusicTheory=this.courseTypeList[r].musicTheory);this.leftForm.courseType&&this.leftForm.teacher&&Object(o["M"])({categoryId:this.leftForm.courseType,teacherId:this.leftForm.teacher}).then((function(e){200==e.code&&(t.activeList=e.data)}))},chioseActive:function(e){if(this.rightForm.offlineCourse="",this.rightForm.onlineCourse="",this.lookList=[],this.timeTable=[],this.attribute1="",this.attribute2="",this.attribute3="",this.giveNum=0,this.isGiveClass=!1,this.leftForm.courseStart="",this.leftForm.courseEnd="",this.hasOnline=!0,this.hasOffline=!0,e){for(var t in this.courseTypeList)this.courseTypeList[t].id==this.leftForm.courseType&&(this.leftForm.classNum=this.courseTypeList[t].studentNum,this.classTimeList=this.courseTypeList[t].singleClassMinutes.split(","),this.leftForm.classTime=this.classTimeList[0],this.rightForm.onlinePrice=this.courseTypeList[t].onlineClassesUnitPrice,this.rightForm.offlinePrice=this.courseTypeList[t].offlineClassesUnitPrice);for(var r in this.activeList)if(this.activeList[r].id==e&&(console.log(this.activeList[r]),this.leftForm.courseStart=this.activeList[r].coursesStartTime,this.leftForm.courseEnd=this.activeList[r].coursesEndTime,this.hotType=this.activeList[r].type,this.attribute1=this.activeList[r].attribute1,this.attribute2=this.activeList[r].attribute2,this.attribute3=this.activeList[r].attribute3,this.salaryReadonlyFlag=this.activeList[r].salaryReadonlyFlag,this.paymentReadonlyFlag=this.activeList[r].paymentReadonlyFlag,this.activeList[r].salarySettlementJson)){var s=JSON.parse(this.activeList[r].salarySettlementJson);s&&s.onlineSalarySettlement?(this.hasOnline=!0,this.onlineSalary=s.onlineSalarySettlement.salarySettlementType):this.hasOnline=!1,s&&s.offlineSalarySettlement?(this.hasOffline=!0,this.offlineSalary=s.offlineSalarySettlement.salarySettlementType):this.hasOffline=!1}}},addWeek:function(){var e=this.maskForm.type,t=this.maskForm.startTime;if(e&&this.maskForm.week&&t){var r,s=this.MinutesTest(t,this.leftForm.classTime);switch(e){case"ONLINE":r="线上课";break;case"OFFLINE":r="线下课";break}var i=!1;for(var a in this.lookList)this.lookList[a].weekDay==this.maskForm.week&&(i=!0);if(i){var n=[];for(var o in this.lookList)if(this.lookList[o].weekDay==this.maskForm.week){var l=this.timeIsrange(t,s,this.lookList[o].startTime),u=this.timeIsrange(t,s,this.lookList[o].endTime);n.push(!u&&!l)}for(var c=!0,m=0;m<n.length;m++)c=c&&n[m];if(!c)return void this.$message.error("该时间段已排课请重选时间");this.lookList.push({type:r,week:this.weekDay[this.maskForm.week],weekDay:this.maskForm.week,startTime:t,endTime:s,time:t+"-"+s,id:Date.now()})}else this.lookList.push({type:r,week:this.weekDay[this.maskForm.week],weekDay:this.maskForm.week,startTime:t,endTime:s,time:t+"-"+s,id:Date.now()});this.maskForm.type="",this.maskForm.week="",this.maskForm.startTime="",this.maskForm.endTime=""}else this.$message.error("请填写完成信息")},MinutesTest:function(e,t){var r=e.split(":")[0],s=e.split(":")[1],i=new Date(1900,1,1,r,s);i.setMinutes(i.getMinutes()+parseInt(t));var a=i.getHours(),n=i.getMinutes();return a<10&&(a="0"+a),n<10&&(n="0"+n),a+":"+n},timeIsrange:function(e,t,r){var s=e.split(":");if(2!=s.length)return!1;var i=t.split(":");if(2!=i.length)return!1;var a=r.split(":");if(2!=i.length)return!1;var n=new Date,o=new Date,l=new Date;return n.setHours(s[0]),n.setMinutes(s[1]),o.setHours(i[0]),o.setMinutes(i[1]),l.setHours(a[0]),l.setMinutes(a[1]),l.getTime()-n.getTime()>=0&&l.getTime()-o.getTime()<=0},removeWeekCourse:function(e){for(var t in this.lookList)this.lookList[t].id==e&&this.lookList.splice(t,1)},setTimeTable:function(){this.timeTable=[];var e=parseInt(this.centerForm.onlineCourseNum)||0,t=parseInt(this.centerForm.offlineCourseNum)||0,r=this.giveNum,s=this.centerForm.radio;if("ONLINE"==s?e+=r:"OFFLINE"==s&&(t+=r),!e||this.maskForm.courseStartOnline)if(!t||this.maskForm.courseStartOffline){var i,a;this.maskForm.courseStartOnline&&(i=new Date(this.maskForm.courseStartOnline.getTime())),this.maskForm.courseStartOffline&&(a=new Date(this.maskForm.courseStartOffline.getTime()));var n=[],o=[];if(this.lookList.length<=0)this.$message.error("请先排课后再点击确认按钮");else{for(var l in this.lookList)"线上课"==this.lookList[l].type&&n.push({week:this.lookList[l].weekDay,date:this.lookList[l]}),"线下课"==this.lookList[l].type&&o.push({week:this.lookList[l].weekDay,date:this.lookList[l]});if(e>0&&n.length<=0)return this.$message.error("选择了线上课但未排线上课"),void(this.timeTable=[]);if(t>0&&o.length<=0)return this.$message.error("选择了线下课但未排线下课"),void(this.timeTable=[]);while(e&&e>0){for(var u in n){var c=void 0;c=n[u].week-i.getDay()>=0?n[u].week-i.getDay():n[u].week-i.getDay()+7;var m=this.getThinkDate(i,c);if(this.timeTable.push({classDate:m+" 00:00:00",actualTeacherId:this.leftForm.teacher,startClassTimeStr:n[u].date.startTime,endClassTimeStr:n[u].date.endTime,teachMode:"ONLINE"}),e--,0==e)break}(1==n.length||this.isAllEqual(n))&&i.setDate(i.getDate()+7)}while(t&&t>0){for(var f in o){var d=void 0;d=o[f].week-a.getDay()>=0?o[f].week-a.getDay():o[f].week-a.getDay()+7;var h=this.getThinkDate(a,d);if(this.timeTable.push({classDate:h+" 00:00:00",actualTeacherId:this.leftForm.teacher,startClassTimeStr:o[f].date.startTime,endClassTimeStr:o[f].date.endTime,teachMode:"OFFLINE"}),t--,0==t)break}(1==o.length||this.isAllEqual(o))&&a.setDate(a.getDate()+7)}this.dialogFormVisible=!1}}else this.$message.error("选择了线下课 但没有线下课开始时间");else this.$message.error("选择了线上课 但没有线上课开始时间")},getThinkDate:function(e,t){var r=e;r.setDate(e.getDate()+t);var s=r.getFullYear(),i=r.getMonth()+1,a="";a=i<10?"0"+i:i+"";var n=r.getDate(),o="";return o=n<10?"0"+n:n+"",s+"-"+a+"-"+o},computational:function(){var e=this;console.log("lai"),this.computationalBtn=!0;var t=this.leftForm.teacher||null,r=this.centerForm.radio||null,s=this.leftForm.courseType||null,i=this.leftForm.activeType||null,a=this.rightForm.onlinePrice||null,n=this.rightForm.offlinePrice||null,l=this.centerForm.onlineCourseNum||0,u=this.centerForm.offlineCourseNum||0,c=this.leftForm.classTime;"GIVE_CLASS"==this.hotType&&("ONLINE"==this.centerForm.radio?l=parseInt(l)+parseInt(this.giveNum):"OFFLINE"==this.centerForm.radio&&(u=parseInt(u)+parseInt(this.giveNum)));var m=this.rightForm.onlineCourse||null,f=this.rightForm.offlineCourse||null;Object(o["v"])({vipGroupActivityId:i,onlineClassesUnitPrice:a,onlineTeacherSalary:m,offlineTeacherSalary:f,vipGroupCategoryId:s,offlineClassesUnitPrice:n,onlineClassesNum:l,offlineClassesNum:u,userId:t,giveTeachMode:r,singleClassMinutes:c,vipGroupStudentCoursePrices:this.activeStudentList}).then((function(t){200==t.code&&(e.rightForm.onlineCourse=t.data.onlineTeacherSalary,e.rightForm.offlineCourse=t.data.offlineTeacherSalary,e.rightForm.allPrice=t.data.totalPrice,e.activeStudentList.forEach((function(e){t.data.hasOwnProperty(e.studentId)&&(e.paymentPrice=t.data[e.studentId])})))}))},isAllEqual:function(e){return!(e.length>0)||!e.some((function(t,r){return t.week!=e[0].week}))},submitInfo:function(){var e=this;if(this.computationalBtn){var t=!1;if(this.isMusicTheory?(this.leftForm.students.length>this.studentLimit||this.leftForm.students.length<3)&&(this.$message.error("请选择上课学生为3-".concat(this.studentLimit,"人")),t=!0):this.leftForm.students.length!==this.studentLimit&&(this.$message.error("请选择上课学生为".concat(this.studentLimit,"人")),t=!0),!t){var r=parseInt(this.centerForm.onlineCourseNum),s=parseInt(this.centerForm.offlineCourseNum),i=this.giveNum,a=this.centerForm.radio;"ONLINE"==a?r+=i:"OFFLINE"==a&&(s+=i);var n={};n.courseSchedules=this.timeTable;var l=this.leftForm.students.join(",")||null;n.vipGroupApplyBaseInfo={studentIdList:l,vipGroupStudentCoursePrices:this.activeStudentList,coursesExpireDate:this.leftForm.courseEnd,teacherSchoolId:this.leftForm.section,offlineClassesNum:s||0,onlineClassesNum:r||0,offlineClassesUnitPrice:this.rightForm.offlinePrice||0,onlineClassesUnitPrice:this.rightForm.onlinePrice||0,paymentExpireDate:this.leftForm.signUpEnd,registrationStartTime:this.leftForm.signUpStart,singleClassMinutes:this.leftForm.classTime,studentNum:this.leftForm.classNum,userId:this.leftForm.teacher,vipGroupActivityId:this.leftForm.activeType,vipGroupCategoryId:this.leftForm.courseType,onlineTeacherSalary:this.rightForm.onlineCourse||0,offlineTeacherSalary:this.rightForm.offlineCourse||0,giveTeachMode:this.centerForm.radio,subjectIdList:this.leftForm.subject,educationalTeacherId:this.leftForm.educationalTeacherId,organId:this.leftForm.classOrganId},this.id?(n.vipGroupApplyBaseInfo.id=this.id,Object(o["J"])(n.vipGroupApplyBaseInfo).then((function(e){}))):Object(o["i"])(n).then((function(t){200==t.code&&("ING"==t.data?e.$confirm("课程提交成功,已提交运营主管审批,审批通过后,课程后创建成功!","提示",{confirmButtonText:"确定",type:"warning"}).then((function(){e.$message.success("提交成功"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/business/vipList",query:{rules:e.rules,searchForm:e.searchForm}})})):(e.$message.success("恭喜您创建成功"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/business/vipList",query:{rules:e.rules,searchForm:e.searchForm}})))}))}}else this.$message.error("请点击计算按钮计算课酬")},setSection:function(e){var t=this;this.leftForm.section="",this.rightForm.offlineCourse="",this.rightForm.onlineCourse="",e&&Object(l["g"])({userId:e}).then((function(e){200==e.code&&(t.scetionList=e.data)}))},onClassChange:function(e){var t=this;this.studentList=[],this.$set(this.leftForm,"students",[]),this.$set(this.leftForm,"teacher",""),this.$set(this.leftForm,"educationalTeacherId",""),this.$set(this.leftForm,"section",""),this.$set(this.leftForm,"activeType",""),this.$set(this.leftForm,"classTime",""),this.$set(this.leftForm,"subject",""),this.courseTypeList=[],this.leftForm.courseType&&this.$set(this.leftForm,"courseType",null),e&&(Object(o["N"])({organId:e}).then((function(e){200==e.code&&(t.courseTypeList=e.data)})),Object(n["D"])({organId:e}).then((function(e){200==e.code&&(t.educationList=e.data)})))},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/business/vipList",query:{rules:this.rules,searchForm:this.searchForm}})},setCourse:function(){var e=this;"GIVE_CLASS"!=this.hotType||!this.isGiveClass||this.centerForm.radio?this.$refs["leftForm"].validate((function(t){if(t){var r=e.centerForm;if("DISCOUNT"==e.hotType&&e.attribute3&&e.attribute3>0){var s=r.onlineCourseNum||0,i=r.offlineCourseNum||0;if(parseInt(s)+parseInt(i)!=e.attribute3)return void e.$message.error("线上课数加线下课数必须等于待排课数")}e.dialogFormVisible=!0}})):this.$message.error("您还未选择赠课类型")},setVipInfo:function(e){var t=this;this.leftForm.subject=parseInt(e.subjectIdList),this.changeSubject(parseInt(e.subjectIdList)),this.leftForm.teacher=e.userId,this.setSection(e.userId),this.leftForm.courseType=e.vipGroupCategoryId,this.changeType(this.leftForm.courseType),this.leftForm.activeType=e.vipGroupActivityId,setTimeout((function(r){t.chioseActive(e.vipGroupActivityId)}),1e3),this.leftForm.section=e.teacherSchoolId,this.leftForm.classNum=e.studentNum,this.leftForm.classTime=e.singleClassMinutes,this.leftForm.signUpStart=e.registrationStartTime,this.leftForm.signUpEnd=e.paymentExpireDate,this.centerForm.onlineCourseNum=e.onlineClassesNum,this.centerForm.offlineCourseNum=e.offlineCourseNum,this.rightForm.onlineCourse=e.onlineTeacherSalary,this.rightForm.onlinePrice=e.onlineClassesUnitPrice,this.rightForm.offlineCourse=e.offlineTeacherSalary,this.rightForm.offlinePrice=e.offlineClassesUnitPrice,this.rightForm.allPrice=e.totalPrice},remoteMethod:function(e){var t=this;if(""!==e){this.remoteLoading=!0;var r="/api-web/studentManage/queryOrganStudentList",s={method:"get",headers:{Authorization:Object(m["a"])()},params:{rows:9999,search:e,organId:this.leftForm.classOrganId},url:r};this.remoteLoading=!0,c()(s).then((function(e){t.remoteLoading=!1;var r=e.data;200==r.code&&r.data.rows&&r.data.rows.length>0&&(r.data.rows.forEach((function(e){t.studentList.unshift(e)})),t.studentList=t.deweight(t.studentList,"userId"))}))}},changeStudent:function(e){var t=this;this.activeStudentList=[],this.studentList.forEach((function(r){-1!=e.indexOf(r.userId)&&t.activeStudentList.push({studentId:r.userId,userName:r.username,onlineClassesUnitPrice:t.rightForm.onlinePrice,offlineClassesUnitPrice:t.rightForm.offlinePrice,paymentPrice:""})}))},deweight:function(e,t){var r=[];return e.forEach((function(e){var s=[];r.forEach((function(e){s.push(e[t])})),-1===s.indexOf(e[t])&&r.push(e)})),r},getStartTime:function(e){if(e){var t=h()(new Date).format("YYYY-MM-DD");this.maskForm.endTime=Object(f["a"])(t,e,this.leftForm.classTime)}else this.maskForm.endTime="";this.maskForm.endTime||(this.maskForm.startTime="")},changeStudentMoney:function(e){e&&(this.computationalBtn=!1)}}},g=p,v=(r("b3e9"),r("2877")),b=Object(v["a"])(g,s,i,!1,null,"ca1aba46",null);t["default"]=b.exports},8018:function(e,t,r){"use strict";r.d(t,"w",(function(){return o})),r.d(t,"t",(function(){return l})),r.d(t,"h",(function(){return u})),r.d(t,"e",(function(){return c})),r.d(t,"v",(function(){return m})),r.d(t,"u",(function(){return f})),r.d(t,"n",(function(){return d})),r.d(t,"B",(function(){return h})),r.d(t,"C",(function(){return p})),r.d(t,"y",(function(){return g})),r.d(t,"x",(function(){return v})),r.d(t,"A",(function(){return b})),r.d(t,"g",(function(){return y})),r.d(t,"q",(function(){return F})),r.d(t,"z",(function(){return T})),r.d(t,"s",(function(){return k})),r.d(t,"i",(function(){return C})),r.d(t,"m",(function(){return S})),r.d(t,"r",(function(){return O})),r.d(t,"a",(function(){return L})),r.d(t,"l",(function(){return _})),r.d(t,"o",(function(){return I})),r.d(t,"p",(function(){return w})),r.d(t,"k",(function(){return D})),r.d(t,"d",(function(){return j})),r.d(t,"c",(function(){return N})),r.d(t,"j",(function(){return M})),r.d(t,"b",(function(){return $})),r.d(t,"f",(function(){return P}));var s=r("b775"),i=r("4328"),a=r.n(i),n="/api-web";function o(e){return Object(s["a"])({url:n+"/teacher/queryPage",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/teacher/get",method:"get",params:e})}function u(e){return Object(s["a"])({url:n+"/teacher/getTeacherMusicClass",method:"get",params:e})}function c(e){return Object(s["a"])({url:n+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function m(e){return Object(s["a"])({url:n+"/teacher/queryCloses",method:"get",params:e})}function f(e){return Object(s["a"])({url:n+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function d(e){return Object(s["a"])({url:n+"/teacher/sumTeacherNoPay",method:"get",params:e})}function h(e){return Object(s["a"])({url:n+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function p(e){return Object(s["a"])({url:n+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function g(e){return Object(s["a"])({url:n+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function v(e){return Object(s["a"])({url:n+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function b(e){return Object(s["a"])({url:n+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:a.a.stringify(e)})}function y(e){return Object(s["a"])({url:n+"/school/findVipSchoolByTeacher",method:"get",params:e})}function F(e){return Object(s["a"])({url:n+"/teacher/add",method:"post",data:a.a.stringify(e)})}function T(e){return Object(s["a"])({url:n+"/teacher/update",method:"post",data:a.a.stringify(e)})}function k(e){return Object(s["a"])({url:n+"/teacherFreeTime/query",method:"get",params:e})}function C(e){return Object(s["a"])({url:n+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function S(e){return Object(s["a"])({url:n+"/teacherFreeTime/updateSet",method:"post",data:a.a.stringify(e)})}function O(e){return Object(s["a"])({url:n+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function L(e){return Object(s["a"])({url:n+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function _(e){return Object(s["a"])({url:n+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function I(e){return Object(s["a"])({url:n+"/sysTenantAccount/addMinutes",method:"post",data:a.a.stringify(e)})}function w(e){return Object(s["a"])({url:n+"/sysTenantAccount/subtractMinutes",method:"post",data:a.a.stringify(e)})}function D(e){return Object(s["a"])({url:n+"/sysTenantAccount/get",method:"get",params:e})}function j(e){return Object(s["a"])({url:n+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function N(e){return Object(s["a"])({url:n+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:a.a.stringify(e)})}function M(e){return Object(s["a"])({url:n+"/teacher/queryStudent",method:"get",params:e})}function $(e){return Object(s["a"])({url:n+"/studentManage/batchUpdateAdviser",method:"post",data:a.a.stringify(e)})}function P(e){return Object(s["a"])({url:n+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},b3e9:function(e,t,r){"use strict";var s=r("37c1"),i=r.n(s);i.a},c466:function(e,t,r){"use strict";r.d(t,"h",(function(){return n})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return u})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return m})),r.d(t,"b",(function(){return f})),r.d(t,"a",(function(){return d}));r("a481");var s=r("5a0c"),i=r.n(s),a=r("56d7");function n(e){var t=e.getFullYear(),r=e.getMonth()+1,s=e.getDate();return r=r<10?"0"+r:r,s=s<10?"0"+s:s,t+"-"+r+"-"+s}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),r=++t,s=new Date(e.getFullYear(),r,1),i=864e5;return new Date(s-i)}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e);0==r.getDay()&&(t-=6048e5);var s=t-24*(r.getDay()-1)*60*60*1e3,i=new Date(s),a=i.getFullYear(),n=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),l=a+"-"+n+"-"+o;return l}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e),s=7-r.getDay();7==s&&(s=0);var i=t+24*s*60*60*1e3,a=new Date(i),n=a.getFullYear(),o=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,l=a.getDate()<10?"0"+a.getDate():a.getDate(),u=n+"-"+o+"-"+l;return u}function m(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function f(e,t,r){return Math.abs(i()(e+" "+t).diff(e+" "+r,"Minute"))}function d(e,t,r){var s=i()(e+" "+t).add(r,"minute");return console.log(),i()(e+" 23:59").isBefore(s)?(a["$message"].error("课程时间无法跨天请重新设置开始时间"),""):s.format("HH:mm")}}}]);
|