(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b165848","chunk-2d217e7a"],{"27d0":function(e,t,i){"use strict";i("30ae")},"30ae":function(e,t,i){},"39a67":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-container"},[e._m(0),e._v(" "),i("div",{staticClass:"m-core"},[i("tab-router",{on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permissionList.chargesList?i("el-tab-pane",{attrs:{label:"乐团收费标准",lazy:"",name:"3"}},[3==e.activeIndex?i("chargesList"):e._e()],1):e._e(),e._v(" "),e.permissionList.courseTimerSetting?i("el-tab-pane",{attrs:{label:"乐团课时长设置",lazy:"",name:"1"}},[1==e.activeIndex?i("courseTimerSetting"):e._e()],1):e._e(),e._v(" "),e.permissionList.discountManage?i("el-tab-pane",{attrs:{label:"商品折扣&声部设置",lazy:"",name:"7"}},[7==e.activeIndex?i("discountManage"):e._e()],1):e._e(),e._v(" "),e.permissionList.musicCourseFee?i("el-tab-pane",{attrs:{label:"乐团课程价格设置",lazy:"",name:"2"}},[2==e.activeIndex?i("musicCourseFee"):e._e()],1):e._e(),e._v(" "),e.permissionList.vipCourseType?i("el-tab-pane",{attrs:{label:"VIP课设置",lazy:"",name:"4"}},["4"==e.activeIndex?i("vipCourseType"):e._e()],1):e._e(),e._v(" "),e.permissionList.vipChargeSeting?i("el-tab-pane",{attrs:{label:"VIP课程收费设置",lazy:"",name:"8"}},["8"==e.activeIndex?i("vipChargeSeting"):e._e()],1):e._e(),e._v(" "),e.permissionList.practiceRules?i("el-tab-pane",{attrs:{label:"网管课收费设置",lazy:"",name:"5"}},["5"==e.activeIndex?i("practiceRules"):e._e()],1):e._e(),e._v(" "),e.permissionList.liveCourseType?i("el-tab-pane",{attrs:{label:"直播课设置",lazy:"",name:"9"}},["9"==e.activeIndex?i("liveClassSetting"):e._e()],1):e._e()],1)],1)])},n=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("h2",[i("div",{staticClass:"squrt"}),e._v("\n 课程参数设置\n ")])}],r=(i("7f7f"),i("b58c")),s=i("baa9"),o=i("f946"),l=i("b044"),c=i("49d7"),u=i("a4ed"),p=i("c95c"),m=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupCategory/add",expression:"'vipGroupCategory/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.onChargeOperation("create")}}},[e._v("添加")]),e._v(" "),i("el-table",{attrs:{data:e.topList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{align:"center",prop:"unitPriceId",label:"编号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"singleClassMinutes",label:"课程时长(分钟)"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"onlineClassesUnitPrice",label:"售价"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.onlineClassesUnitPrice)+"元/节")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"offlineClassesUnitPrice",label:"原价"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.offlineClassesUnitPrice)+"元/节")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupDefaultClassesUnitPrice/update",expression:"'vipGroupDefaultClassesUnitPrice/update'"}],attrs:{type:"text"},on:{click:function(i){return e.onChargeOperation("update",t.row)}}},[e._v("修改")]),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupCategory/delete",expression:"'vipGroupCategory/delete'"}],attrs:{type:"text"},on:{click:function(i){return e.resetGroupCategory(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("el-dialog",{attrs:{title:e.liveForm.isAdd?"添加直播课设置":"修改直播课设置",width:"500px",visible:e.liveStatus,"label-position":"right","label-width":e.formLabelWidth},on:{close:function(t){return e.onVipStatusClose("vipStatus")},"update:visible":function(t){e.liveStatus=t}}},[i("el-form",{ref:"vipStatus",attrs:{model:e.liveForm}},[i("el-form-item",{attrs:{label:"课程课时(分钟)",prop:"singleClassMinutes",rules:[{required:!0,validator:e.validStock,trigger:"blur"}]}},[i("el-input",{attrs:{disabled:!e.liveForm.isAdd,placeholder:"请输入课程课时"},on:{input:function(t){e.liveForm.singleClassMinutes=t.replace(/[^\d]/g,"")}},model:{value:e.liveForm.singleClassMinutes,callback:function(t){e.$set(e.liveForm,"singleClassMinutes","string"===typeof t?t.trim():t)},expression:"liveForm.singleClassMinutes"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"售价(元/节)",prop:"onlineClassesUnitPrice",rules:[{required:!0,message:"请输入售价",trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:"请输入售价"},nativeOn:{keyup:function(t){return e.keyupEvent(t)}},model:{value:e.liveForm.onlineClassesUnitPrice,callback:function(t){e.$set(e.liveForm,"onlineClassesUnitPrice",t)},expression:"liveForm.onlineClassesUnitPrice"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"原价(元/节)",prop:"offlineClassesUnitPrice",rules:[{required:!0,message:"请输入原价",trigger:"blur"}]}},[i("el-input",{attrs:{placeholder:"请输入原价"},nativeOn:{keyup:function(t){return e.keyupEvent(t)}},model:{value:e.liveForm.offlineClassesUnitPrice,callback:function(t){e.$set(e.liveForm,"offlineClassesUnitPrice",t)},expression:"liveForm.offlineClassesUnitPrice"}})],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.liveStatus=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addLiveStatus("vipStatus")}}},[e._v("确 定")])],1)],1)],1)},d=[],f=i("c7eb"),v=(i("96cf"),i("1da1")),b=i("7e78"),g={name:"practiceRules",data:function(){return{formLabelWidth:"100px",topList:[],liveStatus:!1,liveForm:{isAdd:!0,musicTheory:!1,groupType:"LIVE",onlineClassesUnitPrice:null,offlineClassesUnitPrice:null,singleClassMinutes:null,id:""}}},mounted:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(){return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:this.getVipGroupCategoryList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{validStock:function(e,t,i){""==t&&"string"==typeof t||null==t?i(new Error("请输入课时")):t<=0?i(new Error("课时必须大于0")):i()},resetGroupCategory:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(t){var i=this;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("是否确认删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(v["a"])(Object(f["a"])().mark((function e(){return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["Q"])({id:t.id}).then((function(e){200==e.code&&(i.$message.success("删除成功"),i.getVipGroupCategoryList())}));case 2:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onVipStatusClose:function(e){this.$refs[e].resetFields()},addLiveStatus:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(i){var a;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i){e.next=9;break}if(a=t.liveForm,!a.isAdd){e.next=7;break}return e.next=5,Object(b["e"])({musicTheory:!1,groupType:"LIVE",onlineClassesUnitPrice:a.onlineClassesUnitPrice,offlineClassesUnitPrice:a.offlineClassesUnitPrice,singleClassMinutes:a.singleClassMinutes}).then((function(e){200==e.code&&(t.$message.success("添加成功"),t.getVipGroupCategoryList(),t.liveStatus=!1)}));case 5:e.next=9;break;case 7:return e.next=9,Object(b["W"])({onlineClassesUnitPrice:a.onlineClassesUnitPrice,offlineClassesUnitPrice:a.offlineClassesUnitPrice,groupType:"LIVE",id:a.id}).then((function(e){t.$message.success("修改成功"),t.getVipGroupCategoryList(),t.liveStatus=!1}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},getVipGroupCategoryList:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(){var t=this;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["ab"])({groupType:"live"}).then((function(e){200==e.code&&(t.topList=e.data)}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),onChargeOperation:function(e,t){"update"==e?this.liveForm={isAdd:!1,musicTheory:!1,groupType:"LIVE",onlineClassesUnitPrice:t.onlineClassesUnitPrice,offlineClassesUnitPrice:t.offlineClassesUnitPrice,singleClassMinutes:t.singleClassMinutes,id:t.unitPriceId}:(this.rowDetail=null,this.liveForm.isAdd=!0),this.liveStatus=!0}}},h=g,y=(i("f9b2"),i("2877")),_=Object(y["a"])(h,m,d,!1,null,"c5d6f648",null),C=_.exports,w=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-container"},[i("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,saveKey:"auditionSetting",model:e.searchForm},on:{submit:e.search,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[i("el-form-item",{attrs:{rules:[]}},[i("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organizationCourseDurationSettings/insert",expression:"'organizationCourseDurationSettings/insert'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.openJob("create")}}},[e._v("添加")]),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{align:"center",prop:"organ.name",label:"分部名称"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"classGroupTypeName",label:"课程时长(分钟)"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseType))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"课程单价(元)",prop:"duration"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organizationCourseDurationSettings/update",expression:"'organizationCourseDurationSettings/update'"}],attrs:{type:"text"},on:{click:function(i){return e.resetCourseTime(t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),i("pagination",{attrs:{saveKey:"auditionSetting",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{staticClass:"courseMask",attrs:{title:e.isAdd?"新增网管课设置":"修改网管课设置",width:"500px",visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[e.courseVisible?i("auditionForm",{ref:"auditionForm",attrs:{activeRow:e.activeRow,organList:e.selects.branchs,courseType:e.courseType},on:{close:e.close}}):e._e(),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},x=[],k=(i("386d"),i("5530")),F=i("333d"),S=i("92e3"),I=i("d349"),O=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"auditionForm",attrs:{model:e.auditionForm}},[i("el-form-item",{attrs:{label:"分部",prop:"organId","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选择分部",trigger:"blur"}]}},[i("el-select",{staticClass:"multiple",staticStyle:{width:"100% !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.auditionForm.organId,callback:function(t){e.$set(e.auditionForm,"organId","string"===typeof t?t.trim():t)},expression:"auditionForm.organId"}},e._l(e.organList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"课程时长",prop:"courseType","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选择课程时长",trigger:"blur"}]}},[i("el-select",{staticClass:"multiple",staticStyle:{width:"100% !important"},attrs:{filterable:"",clearable:"",placeholder:"课程时长"},model:{value:e.auditionForm.courseType,callback:function(t){e.$set(e.auditionForm,"courseType","string"===typeof t?t.trim():t)},expression:"auditionForm.courseType"}},e._l(e.courseType,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"课程单价",prop:"courseType","label-width":e.formLabelWidth,rules:[{required:!0,message:"请选择课程单价",trigger:"blur"}]}},[i("el-input",{attrs:{clearable:"",placeholder:"课程单价",type:"number",maxlength:"9"},model:{value:e.courseType,callback:function(t){e.courseType=t},expression:"courseType"}})],1)],1)],1)},T=[],j=(i("28a5"),{props:["activeRow","organList","courseType"],data:function(){return{auditionForm:{organId:"",courseType:"",timer:[],id:""},inputVisible:!1,formLabelWidth:"80px",dynamicTags:[],inputValue:""}},mounted:function(){this.activeRow&&(this.auditionForm.organId=this.activeRow.organId,this.auditionForm.timer=this.activeRow.duration.split(","),this.dynamicTags=this.activeRow.duration.split(","),this.auditionForm.courseType=this.activeRow.courseType,this.auditionForm.id=this.activeRow.id)},methods:{submitInfo:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(t){var i=this;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.log(t),this.$refs.auditionForm.validate(function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(a){return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=25;break}if("update"!=t){e.next=14;break}return e.prev=2,e.next=5,Object(I["B"])({organId:i.auditionForm.organId,duration:i.dynamicTags.join(","),courseType:i.auditionForm.courseType,id:i.auditionForm.id});case 5:e.sent,i.$message.success("修改成功"),i.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](2);case 12:e.next=25;break;case 14:if("create"!=t){e.next=25;break}return e.prev=15,e.next=18,Object(I["a"])({organId:i.auditionForm.organId,duration:i.dynamicTags.join(","),courseType:i.auditionForm.courseType});case 18:e.sent,i.$message.success("新建成功"),i.$emit("close"),e.next=25;break;case 23:e.prev=23,e.t1=e["catch"](15);case 25:case"end":return e.stop()}}),e,null,[[2,10],[15,23]])})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{dynamicTags:function(e){this.auditionForm.timer=e}}}),P=j,L=(i("5220"),Object(y["a"])(P,O,T,!1,null,"161703ee",null)),$=L.exports,V={courseScheduleType:null,organId:null},G={components:{pagination:F["a"],auditionForm:$},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(k["a"])({},V),courseType:S["I"],isAdd:!0,courseVisible:!1,activeRow:null}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{getList:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(){var t;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(I["m"])(Object(k["a"])(Object(k["a"])({},this.searchForm),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.pageInfo.total=t.data.total,this.tableList=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.pageInfo.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},reset:function(){this.searchForm=Object(k["a"])({},V),this.search()},resetCourseTime:function(e){this.isAdd=!1,this.activeRow=e,this.courseVisible=!0},submitInfo:function(){var e=this.isAdd?"create":"update";this.$refs.auditionForm.submitInfo(e)},close:function(){this.courseVisible=!1,this.getList()},openJob:function(){this.isAdd=!0,this.activeRow=null,this.courseVisible=!0},delCourseTime:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(t){var i=this;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(v["a"])(Object(f["a"])().mark((function e(){return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(I["l"])({id:t.id});case 3:e.sent,i.$message.success("删除成功"),i.getList(),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},U=G,M=Object(y["a"])(U,w,x,!1,null,"2383e360",null),R=M.exports,E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.contextFlag?i("div",[i("save-form",{ref:"searchForm",attrs:{inline:!0,saveKey:"/baseRulesClassSetting/practiceRules",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[i("el-form-item",{attrs:{prop:"organId"}},[i("el-select",{attrs:{placeholder:"请选择分部",filterable:"",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"practiceGroupSellPrice/add",expression:"'practiceGroupSellPrice/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.addPrice}},[e._v("添加")]),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部名称"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"singleClassMinutesPrice",label:"网管课课时单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.singleClassMinutesPrice)+"元")]}}],null,!1,4277427313)}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"comeOnPackagePrice",label:"加油包课时总价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.comeOnPackagePrice)+"元")]}}],null,!1,2614620295)}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"practiceGroupSellPrice/update",expression:"'practiceGroupSellPrice/update'"}],attrs:{type:"text"},on:{click:function(i){return e.openTypes(t.row)}}},[e._v("修改")]),e._v(" "),i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"practiceGroupSellPrice/del",expression:"'practiceGroupSellPrice/del'"}],attrs:{type:"text"},on:{click:function(i){return e.onTypesDel(t.row)}}},[e._v("删除")])]}}],null,!1,2974331739)})],1),e._v(" "),i("pagination",{attrs:{saveKey:"/baseRulesClassSetting/practiceRules",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1):e._e(),e._v(" "),e.contextFlag?e._e():i("emptyPage",{attrs:{title:"网管课收费设置",btnTitle:"新建网管课收费设置",context:e.context},on:{submit:e.addPrice}}),e._v(" "),e.newVisiable?i("el-dialog",{attrs:{title:e.activeRow?"修改":"新建",visible:e.newVisiable,width:"600px"},on:{"update:visible":function(t){e.newVisiable=t}}},[i("el-form",{ref:"ruleForm",staticClass:"createForm",attrs:{model:e.createForm}},[i("el-form-item",{attrs:{label:"所属分部",rules:[{required:!0,message:"所属分部",trigger:"blur"}],prop:"organId","label-width":e.formLabelWidth}},[i("el-select",{attrs:{placeholder:"请选择分部",filterable:"",clearable:""},model:{value:e.createForm.organId,callback:function(t){e.$set(e.createForm,"organId",t)},expression:"createForm.organId"}},e._l(e.selects.branchs,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"网管课课时单价","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入每分钟课程费用",trigger:"blur"}],prop:"singleClassMinutesPrice"}},[i("el-input",{attrs:{type:"number",min:"0",step:"0.00000001"},model:{value:e.createForm.singleClassMinutesPrice,callback:function(t){e.$set(e.createForm,"singleClassMinutesPrice",t)},expression:"createForm.singleClassMinutesPrice"}},[i("template",{slot:"append"},[e._v("元/节")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"加油包课时总价","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入每分钟课程费用",trigger:"blur"}],prop:"comeOnPackagePrice"}},[i("el-input",{attrs:{type:"number",min:"0",step:"0.00000001"},model:{value:e.createForm.comeOnPackagePrice,callback:function(t){e.$set(e.createForm,"comeOnPackagePrice",t)},expression:"createForm.comeOnPackagePrice"}},[i("template",{slot:"append"},[e._v("元")])],2)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.newVisiable=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1):e._e()],1)},N=[],q=(i("b775"),i("829b")),W=(i("4328"),"/api-web");function z(e){return Object(q["a"])({url:W+"/practiceGroupSellPrice/list",method:"get",params:e})}function A(e){return Object(q["a"])({url:W+"/practiceGroupSellPrice/update",method:"post",data:e,requestType:"form"})}function D(e){return Object(q["a"])({url:W+"/practiceGroupSellPrice/add",method:"post",data:e,requestType:"form"})}function B(e){return Object(q["a"])({url:W+"/practiceGroupSellPrice/del",method:"post",data:e,requestType:"form"})}var J=i("1062"),K={name:"practiceRules",components:{pagination:F["a"],emptyPage:J["a"]},data:function(){return{newVisiable:!1,resetVisible:!1,tableList:[],dataList:[],organList:[],searchForm:{organId:null,courseScheduleType:null},createForm:{organId:null,comeOnPackagePrice:null,singleClassMinutesPrice:null},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},formLabelWidth:"120px",activeRow:null,context:"可根据不同分部设置不同的网管课课时和加油包课时总价,设置完成后,所选分部学员可在学生端APP以此价格自行购买网管课课程。加油包是由8节网管组成的课程组,用于为乐团练习中跟不上进度的学员单独辅导,每个学员仅有一次购买加油包的机会,且只可在后台为学员创建,设置单价时建议酌情优惠。",contextFlag:!0}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},onTypesDel:function(){var e=Object(v["a"])(Object(f["a"])().mark((function e(t){var i=this;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除此条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:B({organId:t.organId}).then((function(e){i.$message.success("删除成功"),i.getList()})),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),getList:function(){var e=this;z({rows:this.pageInfo.limit,page:this.pageInfo.page,organId:this.searchForm.organId}).then((function(t){var i=t.data;e.tableList=i.rows,e.pageInfo.total=i.total,e.contextFlag=e.tableList.length>0}))},submitInfo:function(){var e=this;this.$refs.ruleForm.validate(function(){var t=Object(v["a"])(Object(f["a"])().mark((function t(i){return Object(f["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!i){t.next=26;break}if(console.log(e.createForm),!e.activeRow){t.next=15;break}return t.prev=3,t.next=6,A(e.createForm);case 6:e.$message.success("修改成功"),e.getList(),e.newVisiable=!1,t.next=13;break;case 11:t.prev=11,t.t0=t["catch"](3);case 13:t.next=26;break;case 15:return t.prev=15,t.next=18,D(e.createForm);case 18:e.$message.success("创建成功"),e.getList(),e.newVisiable=!1,t.next=26;break;case 23:t.prev=23,t.t1=t["catch"](15),console.log(t.t1);case 26:case"end":return t.stop()}}),t,null,[[3,11],[15,23]])})));return function(e){return t.apply(this,arguments)}}())},openTypes:function(e){this.activeRow=e,this.createForm=Object(k["a"])({},e),this.newVisiable=!0},addPrice:function(){this.activeRow=null,this.$set(this,"createForm",{organId:null,comeOnPackagePrice:null,singleClassMinutesPrice:null}),this.newVisiable=!0}}},Q=K,H=(i("27d0"),Object(y["a"])(Q,E,N,!1,null,"010ac592",null)),X=H.exports,Y=i("ec8a"),Z={components:{courseTimerSetting:r["a"],musicCourseFee:s["a"],chargesList:l["a"],vipCourseType:c["a"],auditionSetting:R,typesManager:o["default"],discountManage:u["a"],vipChargeSeting:p["default"],practiceRules:X,liveClassSetting:C},name:"baseRulersManager",data:function(){return{activeIndex:"6",permissionList:{courseTimerSetting:Object(Y["a"])("/globalConfig/courseTimerSetting"),musicCourseFee:Object(Y["a"])("/globalConfig/musicCourseFee"),chargesList:Object(Y["a"])("/globalConfig/chargesList"),vipCourseType:Object(Y["a"])("/vipCourseType"),typesManager:Object(Y["a"])("/globalConfig/typesManager"),discountManage:Object(Y["a"])("/specialSetup/discountManage"),vipChargeSeting:Object(Y["a"])("/vipChargeSeting"),practiceRules:Object(Y["a"])("/practiceRules"),liveCourseType:Object(Y["a"])("/liveCourseType")}}},mounted:function(){console.log(this.$route.query)},methods:{handleClick:function(e){this.activeIndex=e.name}},watch:{"$route.query":function(e){e.tabrouter&&this.handleClick(e.tabrouter)}}},ee=Z,te=(i("973e"),Object(y["a"])(ee,a,n,!1,null,"0977f1d0",null));t["default"]=te.exports},"49d7":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupCategory/add",expression:"'vipGroupCategory/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.addGroupCategory}},[e._v("新建")]),e._v(" "),i("el-table",{attrs:{data:e.leftList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{label:"课程形式",prop:"name"}}),e._v(" "),i("el-table-column",{attrs:{label:"课程类型",prop:"singleClassMinutes"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(t.row.musicTheory?"小组课":"VIP课")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"班级人数(人)",prop:"studentNum"}}),e._v(" "),i("el-table-column",{attrs:{label:"课程课时(分钟)",prop:"singleClassMinutes"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupCategory/update",expression:"'vipGroupCategory/update'"}],attrs:{type:"text"},on:{click:function(i){return e.resetGroupCategory(t.row)}}},[e._v("修改")]),e._v(" "),i("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"vipGroupCategory/delete",expression:"'vipGroupCategory/delete'"}],ref:t.row.id,attrs:{placement:"top",width:"160"}},[i("p",[e._v("您确定删除该课程形态吗?")]),e._v(" "),i("div",{staticStyle:{"text-align":"right",margin:"0"}},[i("el-button",{attrs:{type:"text"},on:{click:function(e){t._self.$refs[t.row.id].doClose()}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(i){return e.removeGroupCategory(t)}}},[e._v("确定")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1)],1)]}}])})],1),e._v(" "),i("el-dialog",{staticClass:"courseMask",attrs:{title:(e.vipStatusFrom.isAdd?"添加":"修改")+"VIP课程形式",width:"500px",visible:e.vipStatus},on:{close:function(t){return e.onVipStatusClose("vipStatus")},"update:visible":function(t){e.vipStatus=t}}},[i("el-form",{ref:"vipStatus",attrs:{model:e.vipStatusFrom}},[i("el-form-item",{attrs:{label:"课程形式",prop:"name",rules:[{required:!0,message:"请输入课程形式",trigger:"blur"}],"label-width":e.formLabelWidth}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.vipStatusFrom.name,callback:function(t){e.$set(e.vipStatusFrom,"name","string"===typeof t?t.trim():t)},expression:"vipStatusFrom.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"课程类型",rules:[{required:!0,message:"请输入课程形式",trigger:"blur"}],"label-width":e.formLabelWidth,prop:"musicTheory"}},[i("el-select",{staticStyle:{width:"100%!important"},model:{value:e.vipStatusFrom.musicTheory,callback:function(t){e.$set(e.vipStatusFrom,"musicTheory",t)},expression:"vipStatusFrom.musicTheory"}},[i("el-option",{attrs:{label:"VIP",value:!1}}),e._v(" "),i("el-option",{attrs:{label:"小组课",value:!0}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"班级人数",prop:"num",rules:[{required:!0,message:"请输入班级人数",trigger:"blur"},{required:!0,message:"班级人数最大6人",trigger:"blur",pattern:/^[0-6]$/}],"label-width":e.formLabelWidth}},[i("el-input",{attrs:{type:"number",autocomplete:"off"},model:{value:e.vipStatusFrom.num,callback:function(t){e.$set(e.vipStatusFrom,"num","string"===typeof t?t.trim():t)},expression:"vipStatusFrom.num"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"课程课时",prop:"dynamicTags",rules:[{required:!0,message:"请输入课程课时",trigger:"blur, change"}],"label-width":e.formLabelWidth}},[e._l(e.vipStatusFrom.dynamicTags,(function(t,a){return i("el-tag",{key:a,attrs:{effect:"dark",type:"info",closable:"","disable-transitions":!1},on:{close:function(i){return e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")])})),e._v(" "),e.inputVisible?i("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",staticStyle:{width:"100px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue="string"===typeof t?t.trim():t},expression:"inputValue"}}):e._e(),e._v(" "),e.inputVisible?e._e():i("el-button",{staticClass:"button-new-tag",on:{click:e.showInput}},[e._v("+ 添加")]),e._v(" "),e.inputVisible?i("el-button",{staticClass:"button-new-tag",on:{click:e.handleInputConfirm}},[e._v("保存")]):e._e()],2)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.vipStatus=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.addVipStatus("vipStatus")}}},[e._v("确 定")])],1)],1)],1)},n=[],r=i("c7eb"),s=(i("96cf"),i("1da1")),o=(i("28a5"),i("7f7f"),i("7e78")),l={data:function(){return{leftList:[],vipStatus:!1,formLabelWidth:"120px",inputValue:"",vipStatusFrom:{name:"",num:"",dynamicTags:[],isAdd:!0,musicTheory:!1,id:""},inputVisible:!1}},mounted:function(){this.getVipGroupCategoryList()},methods:{resetGroupCategory:function(e){var t=this.vipStatusFrom;this.vipStatus=!0,this.$nextTick((function(){t.name=e.name,t.timer=e.singleClassMinutes.split(","),t.dynamicTags=e.singleClassMinutes.split(","),t.num=e.studentNum,t.id=e.id,t.isAdd=!1,t.musicTheory=e.musicTheory}))},removeGroupCategory:function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(t){var i=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Q"])({id:t.row.id}).then((function(e){200==e.code&&(t._self.$refs[t.row.id].doClose(),i.$message.success("删除成功"),i.getVipGroupCategoryList())}));case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),addGroupCategory:function(){this.vipStatus=!0,this.vipStatusFrom.isAdd=!0},showInput:function(){var e=this;this.inputVisible=!0,this.$nextTick((function(t){e.$refs.saveTagInput.$refs.input.focus()}))},onVipStatusClose:function(e){this.inputVisible=!1,this.inputValue="",this.$refs[e].resetFields()},getVipGroupCategoryList:function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(){var t=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["ab"])().then((function(e){200==e.code&&(t.leftList=e.data)}));case 2:case"end":return e.stop()}}),e)})));function t(){return e.apply(this,arguments)}return t}(),addVipStatus:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(i){var a;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(i),!i){e.next=10;break}if(a=t.vipStatusFrom,!a.isAdd){e.next=8;break}return e.next=6,Object(o["e"])({name:a.name,singleClassMinutes:a.dynamicTags.join(","),studentNum:a.num,musicTheory:a.musicTheory}).then((function(e){200==e.code&&(t.$message.success("添加成功"),t.getVipGroupCategoryList(),t.vipStatus=!1)}));case 6:e.next=10;break;case 8:return e.next=10,Object(o["U"])({name:a.name,singleClassMinutes:a.dynamicTags.join(","),studentNum:a.num,id:a.id,musicTheory:a.musicTheory}).then((function(e){t.$message.success("修改成功"),t.getVipGroupCategoryList(),t.vipStatus=!1}));case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},handleInputConfirm:function(){var e=this.inputValue;e&&this.vipStatusFrom.dynamicTags.push(e),this.inputVisible=!1,this.inputValue=""},handleClose:function(e){this.vipStatusFrom.dynamicTags.splice(this.vipStatusFrom.dynamicTags.indexOf(e),1)}}},c=l,u=(i("c414"),i("2877")),p=Object(u["a"])(c,a,n,!1,null,"7695a3bc",null);t["a"]=p.exports},5220:function(e,t,i){"use strict";i("8120")},"7be9":function(e,t,i){},8120:function(e,t,i){},"973e":function(e,t,i){"use strict";i("e713")},c414:function(e,t,i){"use strict";i("7be9")},c95c:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",[i("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm,"save-key":"/baseRulesClassSetting/vipChargeSetting"},on:{submit:e.search,"update:model":function(t){e.searchForm=t}}},[i("el-form-item",{attrs:{prop:"organId"}},[i("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")])],1)],1),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{staticStyle:{width:"100% !important"},attrs:{data:e.dataList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{prop:"name",label:"课程形式"}}),e._v(" "),i("el-table-column",{attrs:{prop:"onlineClassesUnitPrice",label:"线上课单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("el-input",{attrs:{disabled:t.row.onlineDis},model:{value:t.row.onlineClassesUnitPrice,callback:function(i){e.$set(t.row,"onlineClassesUnitPrice","string"===typeof i?i.trim():i)},expression:"scope.row.onlineClassesUnitPrice"}},[i("template",{slot:"append"},[e._v("元/节")])],2)],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"offlineClassesUnitPrice",label:"线下课单价"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("el-input",{model:{value:t.row.offlineClassesUnitPrice,callback:function(i){e.$set(t.row,"offlineClassesUnitPrice","string"===typeof i?i.trim():i)},expression:"scope.row.offlineClassesUnitPrice"}},[i("template",{slot:"append"},[e._v("元/节")])],2)],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e.$helpers.permission("vipGroupDefaultClassesUnitPrice/add")?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.saveSeting(t.row)}}},[e._v("保存")]):e._e()],1)]}}])})],1)],1)],1)])},n=[],r=(i("ac6a"),i("c7eb")),s=(i("386d"),i("96cf"),i("1da1")),o=i("7e78"),l=(i("1cc7"),i("ce96")),c={name:"vipChargeSeting",data:function(){return{dataList:[],organList:[],searchForm:{organId:null},studentRuleNum:0}},mounted:function(){var e=Object(s["a"])(Object(r["a"])().mark((function e(){var t,i,a,n,s,c;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:return a=new l["a"](this.$route.fullPath),n=null===(t=a.searchs[a.key])||void 0===t?void 0:t.form.organId,this.searchForm.organId=n||(null===(i=this.selects)||void 0===i?void 0:i.branchs[0]["id"]),e.prev=5,e.next=8,Object(o["y"])();case 8:s=e.sent,c=JSON.parse(s.data.config),this.studentRuleNum=c.cloud_room_rule.cloud_room_up_limit-1,e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](5),console.log(e.t0);case 16:this.search();case 17:case"end":return e.stop()}}),e,this,[[5,13]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{search:function(){var e=this;this.$refs.searchForm.validate((function(t){e.getList()}))},getList:function(){var e=this;Object(o["ab"])({organId:this.searchForm.organId}).then((function(t){200==t.code&&(e.dataList=t.data,e.dataList.forEach((function(t){t.studentNum>e.studentRuleNum&&(t.onlineDis=!0)})))}))},saveSeting:function(e){var t=this;Object(o["n"])({offlineClassesUnitPrice:e.offlineClassesUnitPrice,onlineClassesUnitPrice:e.onlineClassesUnitPrice,organId:this.searchForm.organId,vipGroupCategoryId:e.id}).then((function(e){200==e.code?t.$message.success("保存成功"):t.$message.error("保存失败,请重试")}))}}},u=c,p=i("2877"),m=Object(p["a"])(u,a,n,!1,null,null,null);t["default"]=m.exports},e713:function(e,t,i){},f0ef:function(e,t,i){},f9b2:function(e,t,i){"use strict";i("f0ef")}}]);