1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41bd0b28"],{1283:function(e,t,a){"use strict";var r,n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.form&&e.form.cycle&&e.form.cycle.length>0?a("el-table",{attrs:{data:e.form.cycle,"show-header":!1}},[a("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".coreTeacher","label-width":"88px",rules:[{required:!0,message:"请选择主教老师"}]}},[a("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:t.row.coreTeacher,callback:function(a){e.$set(t.row,"coreTeacher","string"===typeof a?a.trim():a)},expression:"scope.row.coreTeacher"}},e._l(e.teacherList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:String(t.id)}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),"HIGH"!=e.activeType&&"HIGH_ONLINE"!=e.activeType&&"MUSIC_NETWORK"!=e.activeType&&"HIGH"!=e.type&&"HIGH_ONLINE"!=e.type&&"MUSIC_NETWORK"!=e.type&&e.$helpers.permission("is/teacher/findTeachers")?a("el-form-item",{attrs:{prop:"assistant"}},[a("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:"","collapse-tags":""},model:{value:t.row.assistant,callback:function(a){e.$set(t.row,"assistant","string"===typeof a?a.trim():a)},expression:"scope.row.assistant"}},e._l(e.cooperationList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".time",rules:[{required:!0,message:"请选择课程时长",trigger:"blur"}],"inline-message":""}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{placeholder:"请选择课程时长",clearable:"",disabled:!!e.selectPrice,filterable:""},on:{change:function(a){e.startTimeChange(t,a)}},model:{value:t.row.time,callback:function(a){e.$set(t.row,"time","string"===typeof a?a.trim():a)},expression:"scope.row.time"}},e._l(e.pricesArray,(function(r,n){return a("el-option",{key:n,attrs:{disabled:e.surplustime+(parseFloat(t.row.time)||0)<r,label:r,value:r}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".expectCourseNum",rules:[{required:!0,message:"请输入预计课时数"},{pattern:/^\+?[1-9]\d*$/,message:"请输入大于0的正整数"},{validator:e.validateNum}],"inline-message":""}},[a("el-input",{staticStyle:{width:"180px !important"},attrs:{type:"number",placeholder:"请输入预计课数"},on:{input:function(a){e.getUseTime(t.row)}},model:{value:t.row.expectCourseNum,callback:function(a){e.$set(t.row,"expectCourseNum","string"===typeof a?a.trim():a)},expression:"scope.row.expectCourseNum"}})],1),e._v(" "),a("el-form-item",{attrs:{"inline-message":"",rules:[{required:!0,message:"请选择循环周期"}],prop:"classs."+e.type+".cycle."+t.$index+".dayOfWeek"}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{placeholder:"请选择循环周期",clearable:"",filterable:""},on:{change:function(a){e.getUseTime(t.row)}},model:{value:t.row.dayOfWeek,callback:function(a){e.$set(t.row,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"scope.row.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".startClassTime",rules:[{required:!0,message:"请选择开始时间"}],"inline-message":""}},[a("el-time-picker",{staticStyle:{width:"180px !important"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"请选择开始时间","picker-options":{selectableRange:["06:00:00 - 23:59:59"]}},on:{change:function(a){return e.timeChange(t.row)}},model:{value:t.row.startClassTime,callback:function(a){e.$set(t.row,"startClassTime","string"===typeof a?a.trim():a)},expression:"scope.row.startClassTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".endClassTime","inline-message":""}},[a("el-time-picker",{staticStyle:{width:"180px !important"},attrs:{format:"HH:mm",disabled:"","value-format":"HH:mm",placeholder:"请选择结束时间","picker-options":{selectableRange:[t.row.startClassTime+":00 - 23:59:59"]}},model:{value:t.row.endClassTime,callback:function(a){e.$set(t.row,"endClassTime","string"===typeof a?a.trim():a)},expression:"scope.row.endClassTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".holiday",rules:[{required:!0,message:"请选择是否跳过节假日"}],"inline-message":""}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{placeholder:"是否跳过节假日",filterable:""},on:{change:function(a){return e.holidayChange(t.row)}},model:{value:t.row.holiday,callback:function(a){e.$set(t.row,"holiday","string"===typeof a?a.trim():a)},expression:"scope.row.holiday"}},[a("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),a("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),a("el-form-item",{attrs:{"inline-message":"",prop:"classs."+e.type+".cycle."+t.$index+".startDate",rules:[{required:!0,message:"请选择排课起始日期"}]}},[a("el-date-picker",{staticStyle:{width:"180px !important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"排课起始日期"},on:{change:function(a){e.changeStartDate(a,t.row)}},model:{value:t.row.startDate,callback:function(a){e.$set(t.row,"startDate","string"===typeof a?a.trim():a)},expression:"scope.row.startDate"}})],1),e._v(" "),a("el-form-item",{attrs:{"inline-message":"",prop:"classs."+e.type+".cycle."+t.$index+".endDate",rules:[{required:!0,message:"请选择排课结束日期"},{required:!0,trigger:"change",validator:e.validatePass}]}},[a("el-date-picker",{staticStyle:{width:"180px !important"},attrs:{disabled:!0,"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"排课结束日期"},model:{value:t.row.endDate,callback:function(a){e.$set(t.row,"endDate","string"===typeof a?a.trim():a)},expression:"scope.row.endDate"}})],1),e._v(" "),e.form.cycle.length>1?a("i",{staticClass:"close-icon el-icon-circle-close",on:{click:function(a){return e.remove(t.$index,t)}}}):e._e()],1)]}}],null,!1,266602579)})],1):e._e(),e._v(" "),a("el-button",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{icon:"el-icon-circle-plus-outline",type:"info",plain:"",disabled:e.surplustime<(e.selectPrice||Math.min.apply(Math,e.pricesArray))},on:{click:e.create}},[e._v("添加循环")])],1)},u=[],l=(a("6762"),a("2fdb"),a("ac6a"),a("28a5"),a("2d63")),i=a("c466"),o=a("92e3"),s=a("5a0c"),c=a.n(s),d={},f=Object(l["a"])(o["m"]);try{for(f.s();!(r=f.n()).done;){var m=r.value;d[m.value]=m.label}}catch(y){f.e(y)}finally{f.f()}var p={props:["form","type","surplustime","prices","selectPrice","holidays","teacherList","activeType","cooperationList","coreid","assistant","endSchoolTerm","startCourseDate","surplusCourseNum","isCourseNumType"],data:function(){var e=this,t=function(t,a,r){var n=c()(e.endSchoolTerm).valueOf()-c()(a).valueOf();e.endSchoolTerm&&n<0?r(new Error("结束时间不能超过".concat(e.endSchoolTerm))):r()},a=function(t,a,r){e.surplustime<0?r(new Error("排课时长超过规则限制")):r()};return{classTimeListByType:d,useTime:0,validatePass:t,validateNum:a,pickerOptions:this.getPickerOptions(),useCourseNum:0}},mounted:function(){this.updateUseTime()},computed:{weekDateList:function(){return[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]},pricesArray:function(){return(this.prices[this.type]||"").split(",").filter((function(e){return!!e}))}},methods:{updateUseTime:function(){var e,t=0,a=Object(l["a"])(this.form.cycle);try{for(a.s();!(e=a.n()).done;){var r=e.value;t+=(r.time||0)*(r.expectCourseNum||0)}}catch(y){a.e(y)}finally{a.f()}this.useTime=t,this.$emit("setUserTime",t,this.type),this.updateUseNumber()},updateUseNumber:function(){var e,t=0,a=Object(l["a"])(this.form.cycle);try{for(a.s();!(e=a.n()).done;){var r=e.value;t+=1*(r.expectCourseNum||0)}}catch(y){a.e(y)}finally{a.f()}this.useCourseNum=t,this.$emit("setUserCourse",this.useCourseNum,this.type)},create:function(){if(this.endSchoolTerm){if(this.surplustime<=0)return void this.$message.error("已排课时长使用完毕,请修改预计课时数")}else if(this.surplustime<=this.useTime)return void this.$message.error("已排课时长使用完毕,请修改预计课时数");var e={coreTeacher:this.coreid,assistant:this.assistant};this.selectPrice&&(e.time=this.selectPrice),this.form.cycle.push(e),this.updateUseTime()},remove:function(e){this.form.cycle.splice(e,1),this.updateUseTime()},startTimeChange:function(e,t){if(this.getUseTime(e.row),e.row.time&&e.row.startClassTime){var a=c()(new Date).format("YYYY-MM-DD");this.$set(e.row,"endClassTime",Object(i["d"])(a,e.row.startClassTime,e.row.time))}else this.$set(e.row,"endClassTime","");if(t)if(console.log("isCourseNumType",this.isCourseNumType),this.isCourseNumType){console.log("课时排课");var r=parseInt(this.surplusCourseNum-this.useCourseNum)>0?parseInt(this.surplusCourseNum-this.useCourseNum):0;this.$set(e.row,"expectCourseNum",parseInt(r))}else{var n=t*Math.max(e.row.expectCourseNum||0,0);this.endSchoolTerm?this.$set(e.row,"expectCourseNum",parseInt((this.surplustime+n)/t)):this.$set(e.row,"expectCourseNum",parseInt((this.surplustime-this.useTime+n)/t))}else this.$set(e.row,"expectCourseNum",0);this.getUseTime(e.row)},timeChange:function(e){if(e.time&&e.startClassTime){var t=c()(new Date).format("YYYY-MM-DD");this.$set(e,"endClassTime",Object(i["d"])(t,e.startClassTime,e.time))}else this.$set(e,"endClassTime","");this.updateUseTime()},holidayChange:function(e){this.updateEndTime(e)},getUseTime:function(e){var t=this;this.updateEndTime(e),this.useTime=0,this.form.cycle.forEach((function(e){t.useTime+=(e.expectCourseNum?parseInt(e.expectCourseNum):0)*parseInt(e.time)})),this.updateUseTime()},addData:function(e,t){var a,r=this.$helpers.dayjs,n=r(e).toDate();return a=t-n.getDay()>=0?t-n.getDay():t-n.getDay()+7,a},updateEndTime:function(e){if(e.dayOfWeek&&e.startDate&&"boolean"===typeof e.holiday){var t=7==e.dayOfWeek?0:e.dayOfWeek,a=Math.max(e.expectCourseNum,0),r=c()(e.startDate);if(e.holiday)while(a>0)t!=r.get("day")||this.holidays.includes(r.format("YYYY-MM-DD"))||a--,r=r.add(1,"day"),0===a&&(r=r.subtract(1,"day"));else while(a>0)t==r.get("day")&&a--,r=r.add(1,"day"),0===a&&(r=r.subtract(1,"day"));this.addData(r.format("YYYY-MM-DD"),e.dayOfWeek);this.$set(e,"endDate",r.format("YYYY-MM-DD"))}else this.$set(e,"endDate","")},changeStartDate:function(e,t){this.updateEndTime(t),this.updateUseTime()},getPickerOptions:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){if(e.startCourseDate){var a,r=c()(e.startCourseDate).valueOf(),n=(new Date).getTime();a=r-n>0?r:n;var u=c()(e.endSchoolTerm).valueOf();return t.getTime()+864e5<=a||u<=t.getTime()-864e5}return t.getTime()+864e5<=(new Date).getTime()}}}}},b=p,v=(a("84db"),a("2877")),h=Object(v["a"])(b,n,u,!1,null,"9556cf9c",null);t["a"]=h.exports},1672:function(e,t,a){"use strict";a.d(t,"j",(function(){return n})),a.d(t,"o",(function(){return u})),a.d(t,"p",(function(){return l})),a.d(t,"n",(function(){return i})),a.d(t,"i",(function(){return o})),a.d(t,"g",(function(){return s})),a.d(t,"l",(function(){return c})),a.d(t,"m",(function(){return d})),a.d(t,"k",(function(){return f})),a.d(t,"t",(function(){return m})),a.d(t,"q",(function(){return p})),a.d(t,"h",(function(){return b})),a.d(t,"r",(function(){return v})),a.d(t,"f",(function(){return h})),a.d(t,"d",(function(){return y})),a.d(t,"e",(function(){return g})),a.d(t,"s",(function(){return T})),a.d(t,"a",(function(){return O})),a.d(t,"b",(function(){return C})),a.d(t,"c",(function(){return E}));var r=a("829b"),n=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},u=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/createCalender",data:e,method:"post"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},i=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},s=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},c=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},d=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},f=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},p=function(e){return Object(r["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},b=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},v=function(e){return Object(r["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},h=function(e){return Object(r["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},y=function(e){return Object(r["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},g=function(e){return Object(r["a"])({url:"/api-web/tenantConfig/autoActivationFlag",method:"get",params:e})},T=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},O=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/cancelInactive",method:"post",data:e})},C=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},E=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})}},5137:function(e,t,a){"use strict";a.d(t,"o",(function(){return i})),a.d(t,"n",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"d",(function(){return c})),a.d(t,"f",(function(){return d})),a.d(t,"u",(function(){return f})),a.d(t,"p",(function(){return m})),a.d(t,"t",(function(){return p})),a.d(t,"m",(function(){return b})),a.d(t,"s",(function(){return v})),a.d(t,"j",(function(){return h})),a.d(t,"l",(function(){return y})),a.d(t,"a",(function(){return g})),a.d(t,"g",(function(){return T})),a.d(t,"b",(function(){return O})),a.d(t,"r",(function(){return C})),a.d(t,"i",(function(){return E})),a.d(t,"w",(function(){return w})),a.d(t,"v",(function(){return S})),a.d(t,"k",(function(){return N})),a.d(t,"q",(function(){return I})),a.d(t,"x",(function(){return M})),a.d(t,"c",(function(){return D})),a.d(t,"y",(function(){return A})),a.d(t,"z",(function(){return R})),a.d(t,"h",(function(){return j}));var r=a("b775"),n=a("4328"),u=a.n(n),l="/api-web";function i(e){return Object(r["a"])({url:l+"/studentManage/queryStudentList",method:"post",data:e})}function o(e){return Object(r["a"])({url:l+"/studentManage/queryOrganStudentList",method:"get",params:e})}function s(e){return Object(r["a"])({url:l+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(e){return Object(r["a"])({url:l+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(r["a"])({url:l+"/studentManage/findStudentVipGroups",method:"get",params:e})}function f(e){return Object(r["a"])({url:l+"/studentWithdraw/queryPage",method:"get",params:e})}function m(e){return Object(r["a"])({url:l+"/studentManage/queryStudentPayment",method:"get",params:e})}function p(e){return Object(r["a"])({url:l+"/order/queryPage",method:"get",params:e})}function b(e){return Object(r["a"])({url:l+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function v(e){return Object(r["a"])({url:l+"/studentRegistration/batchUpdateSubject",method:"post",data:u.a.stringify(e)})}function h(e){return Object(r["a"])({url:l+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function y(e){return Object(r["a"])({url:l+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function g(e){return Object(r["a"])({url:l+"/studentRegistration/insertStudent",method:"POST",data:e})}function T(e){return Object(r["a"])({url:l+"/classGroupStudent/findAllStudent",method:"POST",data:u.a.stringify(e)})}function O(e){return Object(r["a"])({url:l+"/classGroupStudent/addStudents",method:"POST",data:u.a.stringify(e)})}function C(e){return Object(r["a"])({url:l+"/classGroupStudent/del",method:"POST",data:u.a.stringify(e)})}function E(e){return Object(r["a"])({url:l+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function w(e){return Object(r["a"])({url:l+"/userCashAccount/updateCourseBalance",method:"post",data:u.a.stringify(e)})}function S(e){return Object(r["a"])({url:l+"/userCashAccount/updateBalance",method:"post",data:u.a.stringify(e)})}function N(e){return Object(r["a"])({url:l+"/studentManage/queryUserByPhone",method:"get",params:e})}function I(e){return Object(r["a"])({url:l+"/studentManage/register",method:"post",data:u.a.stringify(e)})}function M(e){return Object(r["a"])({url:l+"/studentManage/studentUpdate",method:"post",data:u.a.stringify(e)})}function D(e){return Object(r["a"])({url:l+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function A(e){return Object(r["a"])({url:l+"/userCashAccountDetail/queryPage",method:"get",params:e})}function R(e){return Object(r["a"])({url:l+"/userCoursesAccount/queryPage",method:"get",params:e})}function j(e){return Object(r["a"])({url:l+"/sysUserContracts/getLatest",method:"get",params:e})}},"704d":function(e,t,a){"use strict";var r=a("c80c"),n=(a("96cf"),a("3b8d")),u=a("75fc"),l=a("db72"),i=a("2f62"),o=a("1cc7"),s=new i["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(l["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(u["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(t,a){var n,u,l,i;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.commit,u=t.state,e.prev=1,(null===(l=a.data)||void 0===l?void 0:l.musicGroupId)===u.musicGroup.id&&!a.force){e.next=8;break}return e.next=5,Object(o["Rb"])(a.data);case 5:return i=e.sent,n("updateBaseinfo",i),e.abrupt("return",Promise.resolve(i));case 8:return e.abrupt("return",Promise.resolve(u.res));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(n["a"])(Object(r["a"])().mark((function e(t,a){var n,u,i;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.commit,u=t.state,e.prev=1,!u.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(u.sounds));case 4:return e.next=6,Object(o["M"])(Object(l["a"])({},a.data));case 6:return i=e.sent,n("updateSound",i.data),e.abrupt("return",Promise.resolve(u.sounds));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}()}});t["a"]=s},"84db":function(e,t,a){"use strict";a("b67d")},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return o})),a.d(t,"H",(function(){return s})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"D",(function(){return f})),a.d(t,"Y",(function(){return m})),a.d(t,"X",(function(){return p})),a.d(t,"d",(function(){return b})),a.d(t,"L",(function(){return v})),a.d(t,"w",(function(){return h})),a.d(t,"ab",(function(){return y})),a.d(t,"t",(function(){return g})),a.d(t,"o",(function(){return T})),a.d(t,"Z",(function(){return O})),a.d(t,"P",(function(){return C})),a.d(t,"cb",(function(){return E})),a.d(t,"db",(function(){return w})),a.d(t,"O",(function(){return S})),a.d(t,"T",(function(){return N})),a.d(t,"B",(function(){return I})),a.d(t,"l",(function(){return M})),a.d(t,"W",(function(){return D})),a.d(t,"bb",(function(){return A})),a.d(t,"I",(function(){return R})),a.d(t,"m",(function(){return j})),a.d(t,"v",(function(){return _})),a.d(t,"M",(function(){return L})),a.d(t,"f",(function(){return G})),a.d(t,"e",(function(){return P})),a.d(t,"K",(function(){return x})),a.d(t,"J",(function(){return k})),a.d(t,"S",(function(){return U})),a.d(t,"G",(function(){return H})),a.d(t,"a",(function(){return Y})),a.d(t,"x",(function(){return $})),a.d(t,"p",(function(){return q})),a.d(t,"n",(function(){return B})),a.d(t,"q",(function(){return V})),a.d(t,"g",(function(){return W})),a.d(t,"F",(function(){return F})),a.d(t,"r",(function(){return X})),a.d(t,"C",(function(){return K})),a.d(t,"A",(function(){return z})),a.d(t,"z",(function(){return J})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"R",(function(){return ae})),a.d(t,"N",(function(){return re})),a.d(t,"E",(function(){return ne})),a.d(t,"y",(function(){return ue})),a.d(t,"Q",(function(){return le})),a.d(t,"U",(function(){return ie})),a.d(t,"V",(function(){return oe})),a.d(t,"b",(function(){return ce}));var r=a("2d63"),n=a("768b"),u=a("267e"),l=sessionStorage.getItem("tenantConfig");l=l?JSON.parse(l):{};var i=l.tenantId,o=null,s=null;1==i?(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],f=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],m=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],p=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],b=[].concat(p,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),v=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],y=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],T=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],O=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],C=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],E=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],w=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],N=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],I=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],M=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],D=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],A=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],R=se(u["musicGroupType"]),j=se(u["classTime"]),_=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],L=se(u["payOrderType"]),G=se(u["auditType"]),P=se(u["auditPaymentType"]),x=se(u["orderServerType"]),k=se(u["orderAuditType"]),U=se(u["rewardModeType"]),H=se(u["musicClassType"]),Y=se(u["ProbationPeriodStatus"]),$=se(u["downListType"]),q=se(u["conclusion"]),B=se(u["clientType"]),V=se(u["couponType"]),W=se(u["backType"]),F=se(u["memberEnum"]),X=se(u["coupontypeDetail"]),K=se(u["issue"]),z=se(u["feedbackType"]),J=se(u["feedbackTypeDesc"]),Q=se(u["campState"]),Z=se(u["catgGoupType"]),ee=se(u["catRole"]),te=se(u["catType"]),ae=se(u["quiteReason"]),re=se(u["payUserType"]),ne=se(u["levelStatus"]),ue=se(u["evaluateStatus"]),le=se(u["problemType"]),ie=se(u["schoolUserType"]),oe=se(u["shareLiveType"]);function se(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(t,2),u=a[0],l=a[1],i={};if(e&&e.length){var o,s=Object(r["a"])(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;i[c[u]]=c[l]}}catch(d){s.e(d)}finally{s.f()}}return i}},a7ba:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return l}));var r=a("829b"),n=function(e){return Object(r["a"])({url:"/api-web/sysTenantConfig/queryAll",params:e,method:"get"})},u=function(e){return Object(r["a"])({url:"/api-web/questionnaireTopic/queryPage",params:e,method:"get"})},l=function(e){return Object(r["a"])({url:"/api-web/sysTenantConfig/batchUpSet",data:e,method:"post",requestType:"json"})}},b67d:function(e,t,a){},c466:function(e,t,a){"use strict";a.d(t,"n",(function(){return l})),a.d(t,"f",(function(){return i})),a.d(t,"g",(function(){return o})),a.d(t,"h",(function(){return s})),a.d(t,"i",(function(){return c})),a.d(t,"j",(function(){return d})),a.d(t,"e",(function(){return f})),a.d(t,"d",(function(){return m})),a.d(t,"a",(function(){return p})),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 y})),a.d(t,"m",(function(){return g}));a("a481");var r=a("5a0c"),n=a.n(r),u=a("56d7");function l(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 i(e){return e.setDate(1),e}function o(e){var t=e.getMonth(),a=++t,r=new Date(e.getFullYear(),a,1),n=864e5;return new Date(r-n)}function s(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,n=new Date(r),u=n.getFullYear(),l=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,i=n.getDate()<10?"0"+n.getDate():n.getDate(),o=u+"-"+l+"-"+i;return o}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),r=7-a.getDay();7==r&&(r=0);var n=t+24*r*60*60*1e3,u=new Date(n),l=u.getFullYear(),i=u.getMonth()+1<10?"0"+(u.getMonth()+1):u.getMonth()+1,o=u.getDate()<10?"0"+u.getDate():u.getDate(),s=l+"-"+i+"-"+o;return s}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function f(e,t,a){return Math.abs(n()(e+" "+t).diff(e+" "+a,"Minute"))}function m(e,t,a){var r=n()(e+" "+t).add(a,"minute");return n()(e+" 21:00").isBefore(r)?(u["$message"].error("课程结束时间不可超过21:00点,请重新设置开始时间"),""):r.format("HH:mm")}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=n()("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=n()("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=n()("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=n()("2021-12-17 "+e).subtract(t,"minute");return a.format("HH:mm:ss")}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=n()("2021-12-17 "+e).subtract(t,"minute").add(1,"second");return a.format("HH:mm:ss")}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=n()("2021-12-17 "+e).subtract(t,"minute").subtract(1,"second");return a.format("HH:mm:ss")}}}]);
|