1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-433202fa"],{"0560":function(e,t,a){"use strict";var i=a("77d6"),s=a.n(i);s.a},"078c":function(e,t,a){},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,a,i){return e/=i/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var i=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 u(e,t,a){var u=n(),o=e-u,c=20,l=0;t="undefined"===typeof t?500:t;var r=function e(){l+=c;var n=Math.easeInOutQuad(l,u,o,t);s(n),l<t?i(e):a&&"function"===typeof a&&a()};r()}},"51bf":function(e,t){e.exports="data:image/png;base64,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"},"5f3d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sound-container"},[a("div",{staticClass:"topMsg"},[a("p",[e._v("当前选择声部数(个):"+e._s(e.chioseSoundNum))]),e._v(" "),a("p",{staticStyle:{"margin-left":"30px"}},[e._v("计划招生人数(个):"+e._s(e.PlannedCount))])]),e._v(" "),a("soundSetCore",{ref:"soundSetCore",on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo,getNumber:e.getNumber}}),e._v(" "),a("div",{staticClass:"btnWrap"},["newTeam"==e.teamStatus?a("el-button",{attrs:{type:"primary"},on:{click:e.goback}},[e._v("上一步")]):e._e(),e._v(" "),"newTeam"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/createGroup",parent:"/teamBuild/soundMoney"},expression:"{\n child: 'musicGroup/createGroup',\n parent: '/teamBuild/soundMoney',\n }"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo(2)}}},[e._v("提交")]):e._e(),e._v(" "),"teamDraft"==e.teamStatus?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitAudit(1)}}},[e._v("提交审核")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditSuccess",expression:"'musicGroup/auditSuccess'"}],attrs:{type:"primary"},on:{click:e.approval}},[e._v("审核通过")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditFailed",expression:"'musicGroup/auditFailed'"}],attrs:{type:"danger"},on:{click:e.refuse}},[e._v("驳回")]):e._e(),e._v(" "),"resetTeam"==e.teamStatus||"teamDraft"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/updateSubjectInfo",expression:"'musicGroup/updateSubjectInfo'"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo()}}},[e._v("\n 保存\n ")]):e._e()],1)],1)},s=[],n=a("1cc7"),u=(a("5a0c"),a("ff14")),o={components:{soundSetCore:u["a"]},data:function(){return{topfor:null,Fsearch:null,Frules:null,activeSoundList:[],chioseSoundNum:0,PlannedCount:0,teamStatus:null,teamid:null}},mounted:function(){this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type,"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",1),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",1)},activated:function(){"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",1),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",1),this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type},methods:{handleClick:function(e){},goback:function(){this.$emit("chiosetab",0)},submitInfo:function(e){this.$refs.soundSetCore.submitInfo(e)},chiosetab:function(e){this.$emit("chiosetab",e)},submitAudit:function(e){var t=this;this.$confirm("是否提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$refs.soundSetCore.submitInfo(e)})).catch((function(){}))},selectMusic:function(){this.$refs.soundSetCore.submitInfo(),this.$emit("chiosetab",3)},getNumber:function(e,t){this.chioseSoundNum=e,this.PlannedCount=t},getBaseInfo:function(e){this.$emit("getBaseInfo",e)},approval:function(){var e=this;this.$confirm("是否审核通过?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(n["g"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("审核通过"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))}))})).catch((function(){}))},refuse:function(){var e=this;this.$prompt("请输入拒绝原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var a=t.value;a?Object(n["f"])({musicGroupId:e.teamid,memo:a}).then((function(t){200==t.code&&(e.$message.success("已拒绝"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))})):e.$message.error("请输入驳回原因")}))}},computed:{}},c=o,l=(a("947e"),a("2877")),r=Object(l["a"])(c,i,s,!1,null,"c6b06f98",null);t["a"]=r.exports},"64cd":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pay-container"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/resetTeaming/teamBaseInfo")?a("el-tab-pane",{attrs:{label:"学员缴费",name:"1"}},[a("resetPayList",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}})],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetSound")?a("el-tab-pane",{attrs:{label:"学校缴费",name:"2"}},[2==e.activeIndex?a("resetPayListSchool",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}}):e._e()],1):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},[a("div",{staticClass:"PrevBtn",on:{click:e.goback}},[e._v("上一步")]),e._v(" "),a("div",{staticClass:"submitBtn",on:{click:e.goHome}},[e._v("确定")])])],1)},s=[],n=a("db72"),u=(a("7f7f"),a("070d")),o=a("f610"),c=a("ec8a"),l={props:["baseInfo"],components:{resetPayList:u["a"],resetPayListSchool:o["a"]},data:function(){return{activeIndex:"1"}},created:function(){console.log(this.baseInfo)},methods:{goback:function(){this.$emit("chiosetab",1)},submitAudit:function(){this.$route.query.id},handleClick:function(e){this.activeIndex=e.name},permission:function(e){return Object(c["a"])(e)},goHome:function(){var e=this.$route.query;this.$router.push({path:"/teamList",query:Object(n["a"])({},e)})}}},r=l,d=(a("0560"),a("2877")),v=Object(d["a"])(r,i,s,!1,null,"7352ac2c",null);t["a"]=v.exports},"77d6":function(e,t,a){},"8fa7":function(e,t,a){"use strict";var i=a("b9e0"),s=a.n(i);s.a},"92e3":function(e,t,a){"use strict";a.d(t,"k",(function(){return u})),a.d(t,"q",(function(){return o})),a.d(t,"j",(function(){return c})),a.d(t,"c",(function(){return l})),a.d(t,"o",(function(){return r})),a.d(t,"C",(function(){return d})),a.d(t,"B",(function(){return v})),a.d(t,"d",(function(){return h})),a.d(t,"u",(function(){return m})),a.d(t,"l",(function(){return p})),a.d(t,"E",(function(){return b})),a.d(t,"i",(function(){return f})),a.d(t,"D",(function(){return S})),a.d(t,"x",(function(){return g})),a.d(t,"F",(function(){return I})),a.d(t,"G",(function(){return E})),a.d(t,"w",(function(){return A})),a.d(t,"z",(function(){return y})),a.d(t,"n",(function(){return L})),a.d(t,"g",(function(){return C})),a.d(t,"A",(function(){return N})),a.d(t,"r",(function(){return O})),a.d(t,"h",(function(){return w})),a.d(t,"v",(function(){return x})),a.d(t,"f",(function(){return R})),a.d(t,"e",(function(){return T})),a.d(t,"t",(function(){return k})),a.d(t,"s",(function(){return _})),a.d(t,"y",(function(){return M})),a.d(t,"p",(function(){return G})),a.d(t,"a",(function(){return B})),a.d(t,"m",(function(){return j})),a.d(t,"b",(function(){return P}));var i=a("2d63"),s=a("768b"),n=a("267e"),u=[{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"}],o=[{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"}],c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],l=[{label:"正常签到",value:1},{label:"异常签到",value:0}],r=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],v=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],h=[].concat(v,[{value:"QUIT_SCHOOL",label:"退学"}]),m=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"REPLACEMENT",label:"乐器置换"}],p=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],b=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],f=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],S=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],g=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],I=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],E=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],A=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],y=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],L=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],C=[{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:"高三"}],N=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],O=F(n["musicGroupType"]),w=F(n["classTime"]),x=F(n["payOrderType"]),R=F(n["auditType"]),T=F(n["auditPaymentType"]),k=F(n["orderServerType"]),_=F(n["orderAuditType"]),M=F(n["rewardModeType"]),G=F(n["musicClassType"]),B=F(n["ProbationPeriodStatus"]),j=F(n["downListType"]);function F(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(s["a"])(t,2),n=a[0],u=a[1],o={};if(e&&e.length){var c,l=Object(i["a"])(e);try{for(l.s();!(c=l.n()).done;){var r=c.value;o[r[n]]=r[u]}}catch(d){l.e(d)}finally{l.f()}}return o}},"947e":function(e,t,a){"use strict";var i=a("078c"),s=a.n(i);s.a},"9a00":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"line"}),e._v(" "),a("h2",[a("el-page-header",{attrs:{content:e.pageName},on:{back:e.goBack}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("div",{staticClass:"stepbox"},[a("span",{staticClass:"stepspan stepspan1"},[a("div",{staticClass:"step1 sptep",class:e.activeIndex>=0?"activestep":""},[e._v("\n 基本信息\n ")]),e._v(" "),a("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=0?e.stepImgs.nol:e.stepImgs.active,alt:""}})]),e._v(" "),!e.showFlag||e.activeIndex>=1?a("span",{staticClass:"stepspan stepspan2"},[a("div",{staticClass:"step2 sptep",class:e.activeIndex>=1?"activestep":""},[e._v("\n 声部设置\n ")]),e._v(" "),a("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=1?e.stepImgs.nol:e.stepImgs.active,alt:""}})]):e._e()]),e._v(" "),a("div",{staticClass:"stepcontent"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==e.activeIndex,expression:"activeIndex == 0"}]},[a("teamBaseInfo",{ref:"teamBaseInfo",attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1),e._v(" "),e.showSecond?a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.activeIndex,expression:"activeIndex == 1"}]},[a("teamSoundMoney",{attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1):e._e()])])])},s=[],n=(a("7f7f"),a("7676")),u=a.n(n),o=a("80b0"),c=a("5f3d"),l=a("64cd"),r={components:{teamBaseInfo:o["a"],teamSoundMoney:c["a"],teamPayInfo:l["a"]},name:"teamBuild",data:function(){return{activeIndex:0,stepImgs:{nol:a("51bf"),active:a("f8e4")},pageName:"建团申请",getTeamList:[],teamStatus:"",showSecond:!1}},created:function(){this.init()},activated:function(){"true"==this.$route.query.clear&&(this.showSecond=!1,this.$store.dispatch("buildIndex",0),this.$router.push({query:u()(this.$route.query,{clear:!1})})),this.init()},destroyed:function(){this.showSecond=!1,console.log("页面销毁")},methods:{init:function(){this.teamStatus=this.$route.query.type,this.$route.query.teamList&&(this.getTeamList=this.$route.query.teamList),"newTeam"==this.teamStatus?(this.pageName="建团申请",this.activeIndex=this.$store.getters.buildIndex||0):(this.pageName="乐团修改",this.activeIndex=this.$store.getters.draftIndex||0)},chiosetab:function(e){this.activeIndex=e,(0==e&&"newTeam"!=this.teamStatus||0==e&&"feeAudit"!=this.teamStatus)&&this.$refs.teamBaseInfo.init(),this.showSecond=!0},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getBaseInfo:function(e){var t;this.baseInfo=e,this.pageName=null===(t=e.musicGroup)||void 0===t?void 0:t.name}},computed:{showFlag:function(){return"newTeam"==this.teamStatus||"teamList"==this.teamStatus}}},d=r,v=(a("ca6d"),a("2877")),h=Object(v["a"])(d,i,s,!1,null,"74404687",null);t["default"]=h.exports},"9c2c":function(e,t,a){},a8db:function(e,t,a){"use strict";var i=a("e265"),s=a.n(i),n=a("a4bb"),u=a.n(n);function o(e,t){if(null==e)return{};var a,i,s={},n=u()(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(s[a]=e[a]);return s}function c(e,t){if(null==e)return{};var a,i,n=o(e,t);if(s.a){var u=s()(e);for(i=0;i<u.length;i++)a=u[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}a.d(t,"a",(function(){return c}))},b9e0:function(e,t,a){},c78f:function(e,t,a){},ca6d:function(e,t,a){"use strict";var i=a("9c2c"),s=a.n(i);s.a},e323:function(e,t,a){"use strict";var i=a("c78f"),s=a.n(i);s.a},eb49:function(e,t,a){"use strict";var i=a("f080"),s=a.n(i);s.a},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return o}));var i=a("bd86"),s=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),n=a.n(s);var u=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a],s=a.toLocaleUpperCase();t.push({label:i,value:"TRUE"===s||"FALSE"===s?"TRUE"===s:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(i["a"])(t,a[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(s):""),Object(i["a"])(t,a[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(s):""),t):{}}},f080:function(e,t,a){},f8e4:function(e,t){e.exports="data:image/png;base64,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"},fa7d:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return u})),a.d(t,"d",(function(){return o}));var i=a("db72"),s=(a("a481"),a("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var i=t-24*(a.getDay()-1)*60*60*1e3,s=new Date(i),n=s.getFullYear(),u=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),c=n+"-"+u+"-"+o;return c}),n=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),i=7-a.getDay();7==i&&(i=0);var s=t+24*i*60*60*1e3,n=new Date(s),u=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),l=u+"-"+o+"-"+c;return l},u=function(e){var t=[];switch(e){case"NORMAL":t=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":t=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":t=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":t=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":t=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":t=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}return t},o=function(e,t){e.$router.replace({query:Object(i["a"])(Object(i["a"])({},e.$route.query),t)})}},ff14:function(e,t,a){"use strict";var i,s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.basdisabled?e._e():a("div",{class:e.isField?"soundBtnWrap":"soundBtnFixed"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),e.basdisabled?e._e():a("div",{staticClass:"wall"}),e._v(" "),a("div",{staticClass:"coreWrap"},[a("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,i){return a("el-collapse-item",{key:i,attrs:{name:t.id}},[a("template",{slot:"title"},[a("div",{staticClass:"coreItemTitle"},[a("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),a("div",{staticClass:"coreItem"},[a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),a("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(a){e.$set(t,"expectedStudentNum",a)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),a("el-divider"),e._v(" "),a("chioseMusic",{attrs:{activeSoundList:e.activeSoundList,item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),a("select-all",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(a){e.$set(t,"markChioseList",a)},expression:"item.markChioseList"}},e._l(t.markList,(function(t,i){return a("el-option",{key:i,attrs:{label:t.name,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","padding-right":"20px"}},[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+"元")])])})),1)],1)],2)})),1)],1)],1),e._v(" "),e.soundVisible?a("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[a("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1):e._e()],1)},n=[],u=a("db72"),o=(a("7f7f"),a("6762"),a("2fdb"),a("5df3"),a("4f7f"),a("75fc")),c=(a("456d"),a("28a5"),a("ac6a"),a("bd86")),l=(a("4360"),a("fa7d"),a("1cc7")),r=(a("5a0c"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"soundWrap"},[a("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[a("div",{staticClass:"itemList"},e._l(e.soundList,(function(t){return a("div",{key:t.id,staticClass:"categroy"},[a("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:t.id,disabled:e.activeSound.includes(t.id)},on:{change:e.changeCheck}},[e._v(e._s(t.name))])}))],2)})),0)])],1),e._v(" "),a("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),a("div",{staticClass:"btnWraps"},[a("el-button",{attrs:{type:"primary"},on:{click:e.generates}},[e._v("\n 确定\n ")])],1)])}),d=[],v={props:["soundList","childSoundList","activeSound"],data:function(){return{chioseSoundNum:"",activeSoundList:this.activeSound||[]}},mounted:function(){console.log(this.soundList)},activated:function(){},methods:{generates:function(){this.$emit("chioseSound",this.activeSoundList)},changeCheck:function(){}}},h=v,m=(a("e323"),a("2877")),p=Object(m["a"])(h,r,d,!1,null,"6021a80f",null),b=p.exports,f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._l(e.item.chioseMusic,(function(t,i){return a("div",{key:i},[a("div",{staticClass:"chioseMusic"},[a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("可选乐器"+e._s(i+1)+":")]),e._v(" "),a("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},on:{change:function(a){e.chioseMusic(a,t)}},model:{value:t.musical,callback:function(a){e.$set(t,"musical",a)},expression:"music.musical"}},e._l(e.item.goodsList,(function(t,i){return a("el-option",{key:i,attrs:{label:t.name,value:t.id,disabled:e.checkDisabled(t)}})})),1)],1),e._v(" "),a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("乐器提供方式:")]),e._v(" "),a("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(a){e.$set(t,"type",a)},expression:"music.type"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),a("div",{staticClass:"flexRow"},[a("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticClass:"title"},[e._v("\n 团购价:\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(a){e.$set(t,"groupPrice",a)},expression:"music.groupPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticClass:"title"},[e._v("\n 租赁押金:\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(a){e.$set(t,"borrowPrice",a)},expression:"music.borrowPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.item.chioseMusic.length>1&&!e.basdisabled&&(t.type.includes("LEASE")||t.type.includes("GROUP"))?a("i",{staticClass:"el-icon-close marginLeft10",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(a){return e.deleteMusic(t)}}}):e._e()]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("团购乐器减免课程费用:")]),e._v(" "),a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],model:{value:t.groupRemissionCourseFee,callback:function(a){e.$set(t,"groupRemissionCourseFee",a)},expression:"music.groupRemissionCourseFee"}},[a("el-radio",{attrs:{disabled:e.basdisabled,label:!0}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{disabled:e.basdisabled,label:!1}},[e._v("否")])],1)],1)])]),e._v(" "),a("el-divider")],1)})),e._v(" "),e.basdisabled?e._e():a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"}),e._v(" "),a("el-button",{staticStyle:{width:"558px"},attrs:{type:"info",plain:"",size:"mini",icon:"el-icon-plus"},on:{click:e.addMusic}},[e._v("新增可选乐器")])],1)],2)},S=[],g={props:["item","basdisabled","activeSoundList"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){},methods:{chioseMusic:function(e,t){this.item.goodsList.map((function(a,i){a.id==e&&(t.groupPrice=a.groupPurchasePrice)}))},addMusic:function(){this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:null,borrowPrice:1500,groupRemissionCourseFee:0}),this.$emit("lookMusic")},deleteMusic:function(e){var t=this;this.item.chioseMusic.forEach((function(a,i){a.musical==e.musical&&t.item.chioseMusic.splice(i,1)}))},checkDisabled:function(e){var t=!1;return this.activeSoundList.forEach((function(a){a.chioseMusic.forEach((function(a){e.id==a.musical&&(t=!0)}))})),t},changeFee:function(e,t){this.$set(t,"groupRemissionCourseFee",e)}}},I=g,E=(a("eb49"),Object(m["a"])(I,f,S,!1,null,"15b4cece",null)),A=E.exports,y=a("2ef0"),L=(a("6612"),i={components:{chioseSoundList:b,chioseMusic:A},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(c["a"])(e,"soundList",[]),Object(c["a"])(e,"childSoundList",[]),Object(c["a"])(e,"teamStatus",""),Object(c["a"])(e,"checkList",[]),Object(c["a"])(e,"basdisabled",!1),Object(c["a"])(e,"teamid",""),Object(c["a"])(e,"isField",!0),e},mounted:function(){var e=this;this.$route.query.id&&(this.teamid=this.$route.query.id),window.addEventListener("scroll",this.getScroll),this.$nextTick((function(t){e.init()}))},deactivated:function(){window.removeEventListener("scroll",this.getScroll)},beforeDestroy:function(){this.setStore(),window.removeEventListener("scroll",this.getScroll)},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type||!this.teamid&&this.activeSoundList.length<1)&&this.init(),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1}},Object(c["a"])(i,"deactivated",(function(){this.activeSoundList=[]})),Object(c["a"])(i,"methods",{setStore:function(){localStorage.setItem("".concat(this.teamid,"sound"),JSON.stringify(this.activeSoundList))},init:function(){var e=this;this.topfor=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")))||this.$store.getters.topinfo,this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1;var t=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"sound")));Object(l["zb"])({tenantId:1}).then((function(a){var i;if(200==a.code)if(e.soundList=a.data.rows,t&&(null===(i=t[0])||void 0===i?void 0:i.id)){e.activeSoundList=t;var s=[];e.activeSoundList.forEach((function(e){s.push(e.id)})),e.chioseActiveSound=s,e.activeSound=s,e.changeActiveSound(s.join(","))}else"newTeam"==e.teamStatus?e.getDefaultSubject():(e.teamid=e.$route.query.id,e.teamid&&Object(l["H"])({musicGroupId:e.teamid}).then((function(t){var a,i;if(200==t.code)if((null===(a=t.data)||void 0===a||null===(i=a.musicGroupSubjectPlans)||void 0===i?void 0:i.length)>0){var s,n=[];e.activeSoundList=null===(s=t.data)||void 0===s?void 0:s.musicGroupSubjectPlans.map((function(e){return n.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),e.activeSound=n,e.chioseActiveSound=n,e.changeActiveSound(n.join(",")),t.data.musicGroupSubjectGoodsGroups.forEach((function(t){var a=Object(y["findIndex"])(e.activeSoundList,(function(e){return e.id==t.subjectId}));if(-1!=a)if("ACCESSORIES"==t.type)t.goodsIdList.split(",").forEach((function(t){e.activeSoundList[a].markChioseList.push(parseInt(t))}));else if("INSTRUMENT"==t.type){var i=Object.keys(JSON.parse(t.kitGroupPurchaseTypeJson));e.activeSoundList[a].chioseMusic.push({musical:parseInt(t.goodsIdList),type:i,groupPrice:t.price,borrowPrice:t.depositFee,groupRemissionCourseFee:Boolean(t.groupRemissionCourseFee)})}}))}else e.getDefaultSubject()})))})),Object(l["Eb"])({tenantId:1}).then((function(t){200==t.code&&(e.childSoundList=t.data)}))},getDefaultSubject:function(){var e=this,t=this.topfor.type,a=this.topfor.section;Object(l["db"])({chargeTypeId:t,organId:a,number:1}).then((function(t){if(200==t.code){var a=[];e.activeSoundList=t.data.map((function(t){return a.push(t.id),e.initSound(t)})),e.activeSound=a,e.chioseActiveSound=a,e.changeActiveSound(a.join(","))}}))},lookCheck:function(e){this.checkList=Object(o["a"])(new Set(e))},chioseSound:function(e){this.activeSound=Object(o["a"])(new Set(e));var t=[];for(var a in this.childSoundList)this.activeSound.includes(this.childSoundList[a].id)&&t.push(this.initSound(this.childSoundList[a]));var i=this.activeSoundList.map((function(e){return e.id}));for(var s in t){var n,u=i.indexOf(null===(n=t[s])||void 0===n?void 0:n.id);u>-1&&(t[s]=this.activeSoundList[u])}this.activeSoundList=t;var c=[];this.activeSoundList.forEach((function(e){c.push(e.id)})),this.activeSound=c,this.chioseActiveSound=c,this.changeActiveSound(c.join(",")),this.soundVisible=!1},initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(e){var t=this;Object(l["Fb"])({subjectIds:e,chargeTypeId:this.topfor.type,musicGroupId:this.teamid}).then((function(e){if(200==e.code&&e.data){var a=Object.keys(e.data);t.activeSoundList.forEach((function(t){if(-1!=a.indexOf(t.id+"")){var i=[],s=[];e.data[t.id].forEach((function(e){"INSTRUMENT"==e.type?i.push(e):"ACCESSORIES"==e.type&&s.push(e)})),t.goodsList=i,t.markList=s}}))}}))},lookMusic:function(){},submitInfo:function(e){var t=this;if(this.activeSoundList.length<=0)this.$message.error("请至少设置一个声部");else{var a=!0;if(this.activeSoundList.forEach((function(e){var i;return e.expectedStudentNum?(null===(i=e.chioseMusic[0])||void 0===i?void 0:i.musical)?void e.chioseMusic.forEach((function(i){-1!=i.type.indexOf("LEASE")&&(!i.borrowPrice||parseFloat(i.borrowPrice)<=0)&&(t.$message.error("请填写正确的".concat(e.sound,"租赁押金")),a=!1)})):(t.$message.error("请至少一个选择".concat(e.sound,"的可选乐器")),void(a=!1)):(t.$message.error("请填写".concat(e.sound,"的预计招生人数")),void(a=!1))})),a){var i={musicGroupSubjectGoodsGroups:[],musicGroupSubjectPlans:[]};this.activeSoundList.forEach((function(e){var t={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};i.musicGroupSubjectPlans.push(t),e.chioseMusic.forEach((function(t){var a,s=null,n=t.borrowPrice,u=t.groupPrice;a=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(y["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=o&&(s=e.goodsList[o]);var c={};if(t.type.forEach((function(e){c[e]=0})),c=JSON.stringify(c),s){var l={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:s.name,kitGroupPurchaseTypeJson:c,depositFee:n,price:u,groupRemissionCourseFee:a};i.musicGroupSubjectGoodsGroups.push(l)}})),e.markChioseList.forEach((function(t){var a=Object(y["findIndex"])(e.markList,(function(e){return e.id==t})),s=null;if(-1!=a&&(s=e.markList[a]),s){var n={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:s.name,price:s.groupPurchasePrice};i.musicGroupSubjectGoodsGroups.push(n)}}))})),"newTeam"==this.teamStatus||(i.musicGroupId=this.teamid,i.musicGroupStatus=e?"AUDIT":"DRAFT",2==e?this.$confirm("是否提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["Qc"])(i).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))})).catch((function(){})):Object(l["Qc"])(i).then((function(a){if(200==a.code)if(t.setStore(),1==e){t.$message.success("已提交审核");var i=t.$route.query;t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList",query:Object(u["a"])({},i)})}else t.$message.success("保存成功")})))}}},deleteRow:function(){var e=this;this.checkList.length<1?this.$message.error("请至少勾选一个"):this.$confirm("确定删除选中声部?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var t=0;t<e.activeSoundList.length;t++){var a=e.checkList.indexOf(e.activeSoundList[t].id);-1!=a&&(e.activeSoundList.splice(t,1),e.activeSound.splice(t,1),t--)}e.checkList=[],e.$message.success("删除成功")})).catch((function(){}))},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,a){e.checkList.push(t.id)}))},getScroll:function(){this.scrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,this.scrollTop&&this.scrollTop>=210?this.isField=!1:this.isField=!0}}),Object(c["a"])(i,"watch",{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,a=0;this.activeSoundList;if(e){var i=0;if(e.length>0)for(var s in e){var n;i+=parseInt(null===(n=e[s])||void 0===n?void 0:n.expectedStudentNum)||0}t=e.length,a=i,this.$emit("getNumber",t,a)}}}}),i),C=L,N=(a("8fa7"),Object(m["a"])(C,s,n,!1,null,"370e921d",null));t["a"]=N.exports}}]);
|