(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-366d9dfb"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,a){var i=n(),o=e-i,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var n=Math.easeInOutQuad(u,i,o,t);s(n),u如需退款请在OA中操作

',"提示",{confirmButtonText:"确定",cancelButtonText:"取消",dangerouslyUseHTMLString:!0,type:"warning"}).then(Object(l["a"])(Object(o["a"])().mark((function a(){var r,s,n;return Object(o["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(r=e.row.studentId,3!=e.row.studentStatus){a.next=5;break}t.leaveSchool(e),a.next=11;break;case 5:return a.next=7,Object(c["v"])({studentId:r,vipGroupId:t.id});case 7:s=a.sent,n=s.data,e.row.fee=n.suplusCourseFee,t.leaveSchool(e);case 11:case"end":return a.stop()}}),a)})))).catch((function(){}))}}},k=_,w=(a("9db6"),Object(p["a"])(k,v,h,!1,null,"0c6f61cc",null)),y=w.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{staticStyle:{"margin-bottom":"12px"},attrs:{type:"primary"},on:{click:e.onAdjustment}},[e._v("批量调整")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.isDisabled,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.id||""))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("coursesStatus")(t.row.status)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classDate",label:"上课日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.classDate))+"\n "+e._s(e._f("dayjsFormat")(t.row.startClassTime,"HH:mm"))+"~"+e._s(e._f("dayjsFormat")(t.row.endClassTime,"HH:mm"))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"180",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.id&&!t.row.isSettlement&&"UNDERWAY"!=t.row.status&&e.$helpers.permission("courseSchedule/classStartDateAdjust/liveReset")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("调整")]):e._e()],1)]}}])})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.adjustmentName,width:"800px",visible:e.adjustmentVisible},on:{"update:visible":function(t){e.adjustmentVisible=t}}},[a("el-form",{ref:"adjustmentForm",attrs:{model:e.adjustmentForm,"label-position":"right","label-width":"120px",rules:e.adjustmentRules,inline:!0}},[a("el-form-item",{attrs:{label:"已选择课时数"}},[a("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(" "),a("br"),e._v(" "),a("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[a("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(" "),a("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(" "),a("div",{staticClass:"WeekWrap"},[a("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,r){return a("div",{key:r,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[a("span",[e._v("循环周期:")]),e._v(" "),a("el-select",{attrs:{filterable:"",clearable:""},model:{value:t.dayOfWeek,callback:function(a){e.$set(t,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("开始时间")]),e._v(" "),a("el-time-picker",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:"06:00:00 - 21:00:00"}},on:{change:function(a){e.changeStartTimes(a,t)}},model:{value:t.startClassTime,callback:function(a){e.$set(t,"startClassTime","string"===typeof a?a.trim():a)},expression:"item.startClassTime"}}),e._v(" "),a("span",{staticStyle:{"margin-left":"10px"}},[e._v("结束时间")]),e._v(" "),a("el-time-picker",{staticStyle:{"margin-left":"10px"},attrs:{placeholder:"",format:"HH:mm","value-format":"HH:mm",disabled:"","picker-options":{selectableRange:"06:00:00 - 21:00:00"}},model:{value:t.endClassTime,callback:function(a){e.$set(t,"endClassTime","string"===typeof a?a.trim():a)},expression:"item.endClassTime"}}),e._v(" "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"danger",disabled:r<1,icon:"el-icon-delete",circle:""},on:{click:function(a){return e.removeWeek(t)}}})],1)})),0)]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.adjustmentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitAdjustment}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[a("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"80px",inline:!0}},[a("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.coursesDate(),"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(" "),a("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[a("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:e.nowTime+" - 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(" "),a("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[a("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)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)],1)},C=[],j=a("1cc7"),O=a("7e78"),S=a("c466"),x=a("5a0c"),L=a.n(x),F={data:function(){return{id:this.$route.query.id,adjustmentName:"",tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},chioseVipList:[],activeList:[],adjustmentVisible:!1,adjustmentForm:{count:"",courseTime:"",checked:!1,addCount:"",courseType:"ONLINE",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()}],courseVisible:!1,maskForm:{date:"",startTime:"",endTime:"",id:"",address:"",teachMode:""},maskRules:{date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},startTime:""}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(l["a"])(Object(o["a"])().mark((function e(){var t,a;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["y"])({liveGroupId:this.id,rows:this.rules.limit,page:this.rules.page});case 3:t=e.sent,a=t.data,this.tableList=a.list,this.courseTime=a.singleClassMinutes,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),isDisabled:function(e,t){return!(e.isSettlement||!e.id||"UNDERWAY"==e.status)},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)},handleSelectionChange:function(e){this.chioseVipList=e,this.adjustmentForm.count=e.length,this.activeList=e},onAdjustment:function(){this.adjustmentName="批量调整",this.adjustmentForm.count<=0?this.$message.error("请至少勾选一节课"):this.adjustmentVisible=!0},coursesDate:function(e){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},pickerOptions:function(e){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},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,a=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate();this.startTime;this.startTime.length<=5&&":00";var r={startClassTime:a+" "+this.startTime,id:this.maskForm.id,classDate:this.maskForm.date,schoolId:this.maskForm.address||null,teachMode:this.maskForm.teachMode||null,groupType:"LIVE"};Object(j["uc"])(r).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.courseVisible=!1,e.getList())}))}else this.$message.error("请填写修改时间")},submitAdjustment:function(){var e=this;this.$refs["adjustmentForm"].validate((function(t){if(t){var a=e.weekList;if(!a[0]||!a[0].startClassTime||!a[0].dayOfWeek)return void e.$message.error("至少排一节课");var r={};r.courseCreateStartTime=e.adjustmentForm.courseTime;var s=e.activeList.map((function(e){return e.id})),n=s.join(",");r.courseScheduleIds=n,r.courseTimes=e.weekList,r.holiday=e.adjustmentForm.checked,r.teachMode=e.adjustmentForm.courseType||null,r.groupType="LIVE",r.vipGroupId=e.id,r.schoolId=e.adjustmentForm.address||null,Object(O["X"])(r).then((function(t){200==t.code&&(e.$message.success("恭喜您修改成功"),e.adjustmentVisible=!1,e.getList())}))}}))},changeStartTime:function(e){var t=this;this.$nextTick((function(a){e?t.$set(t.maskForm,"endTime",Object(S["d"])(t.maskForm.date,e,t.courseTime)):t.$set(t.maskForm,"endTime",""),t.maskForm.endTime||t.$set(t,"startTime","")}))},changeStartTimes:function(e,t){var a=this;this.$nextTick((function(r){if(e){var s=L()(new Date).format("YYYY-MM-DD");a.$set(t,"endClassTime",Object(S["d"])(s,e,a.courseTime))}else a.$set(t,"endClassTime","");t.endClassTime||(console.log(t.startClassTime),a.$set(t,"startClassTime",""))}))}},computed:{nowTime:function(){var e="06:00:00";return this.maskForm.date==L()(new Date).format("YYYY-MM-DD")&&(e=L()(new Date).format("HH:mm:ss")),e}},filters:{formatterTime:function(e){var t;return t=e?e.split(" ")[0]:"",t},formatterStatus:function(e){var t=["未开始","报名中","进行中","取消","已结束","报名结束","暂停"];return t[e]}}},D=F,M=(a("2982"),Object(p["a"])(D,T,C,!1,null,"95d175ea",null)),$=M.exports,I=(a("ec8a"),{components:{courseOverview:b,courseAdjust:$,studentList:y},name:"vipDetail",data:function(){return{activeName:"1",className:"",rules:null,searchForm:null,vipDetail:null}},mounted:function(){this.__init()},methods:{__init:function(){var e=this.$route.query;this.className=e.name},handleClick:function(e){this.activeName=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/liveClassManager?tabrouter=2"})}}}),R=I,q=Object(p["a"])(R,r,s,!1,null,null,null);t["default"]=q.exports},"966c":function(e,t,a){},"9db6":function(e,t,a){"use strict";a("966c")},b732:function(e,t,a){e.exports=a.p+"static/img/img1.5fc2b203.png"},c466:function(e,t,a){"use strict";a.d(t,"n",(function(){return i})),a.d(t,"f",(function(){return o})),a.d(t,"g",(function(){return l})),a.d(t,"h",(function(){return u})),a.d(t,"i",(function(){return c})),a.d(t,"j",(function(){return m})),a.d(t,"e",(function(){return d})),a.d(t,"d",(function(){return p})),a.d(t,"a",(function(){return f})),a.d(t,"b",(function(){return b})),a.d(t,"c",(function(){return v})),a.d(t,"k",(function(){return h})),a.d(t,"l",(function(){return g})),a.d(t,"m",(function(){return _}));a("a481");var r=a("5a0c"),s=a.n(r),n=a("56d7");function i(e){var t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate();return a=a<10?"0"+a:a,r=r<10?"0"+r:r,t+"-"+a+"-"+r}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),s=864e5;return new Date(r-s)}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var r=t-24*(a.getDay()-1)*60*60*1e3,s=new Date(r),n=s.getFullYear(),i=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),l=n+"-"+i+"-"+o;return l}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var s=t+24*r*60*60*1e3,n=new Date(s),i=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),u=i+"-"+o+"-"+l;return u}function m(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function d(e,t,a){return Math.abs(s()(e+" "+t).diff(e+" "+a,"Minute"))}function p(e,t,a){var r=s()(e+" "+t).add(a,"minute");return s()(e+" 21:00").isBefore(r)?(n["$message"].error("课程结束时间不可超过21:00点,请重新设置开始时间"),""):r.format("HH:mm")}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s()("2021-12-17 "+e).add(t,"minute");return a.format("HH:mm:ss")}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s()("2021-12-17 "+e).add(t,"minute").add(1,"second");return a.format("HH:mm:ss")}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s()("2021-12-17 "+e).add(t,"minute").subtract(1,"second");return a.format("HH:mm:ss")}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s()("2021-12-17 "+e).subtract(t,"minute");return a.format("HH:mm:ss")}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s()("2021-12-17 "+e).subtract(t,"minute").add(1,"second");return a.format("HH:mm:ss")}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=s()("2021-12-17 "+e).subtract(t,"minute").subtract(1,"second");return a.format("HH:mm:ss")}},e27fd:function(e,t,a){"use strict";a("6931")},f86a:function(e,t,a){e.exports=a.p+"static/img/img3.a69facb6.png"}}]);