chunk-212ecea0.8b313312.js 207 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-212ecea0"],{"04fb":function(e,t,a){},"054c":function(e,t,a){},"0560":function(e,t,a){"use strict";a("77d6")},"070d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,"save-key":"resetPayList",model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add/3895",expression:"'musicGroupPaymentCalender/add/3895'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("\n 新建学员缴费\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("auditType")(t.row.auditStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseCurrentPrice",label:"课程费用"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice:t.row.courseCurrentPrice))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseCurrentPrice",label:"会员费用"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.memberPaymentAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("查看")])],1),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),!e.teamStatus||"REJECT"!==t.row.auditStatus&&"DRAFT"!==t.row.auditStatus?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")])],1),e._v(" "),"FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.auditStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"resetPayList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?a("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"STUDENT",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookDetail:e.lookDetail,onPreview:e.onPreview,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:!0,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive,changePaymentType:e.changePaymentType}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.memberVisible,width:"830px"},on:{"update:visible":function(t){e.memberVisible=t}}},[e.memberVisible?a("memberPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.memberVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?a("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{staticClass:"subjectPreview",attrs:{title:"报名声部预览",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dialogSubjectList,(function(t,i){return a("el-tab-pane",{key:i,attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[a("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1)],1)],1)},s=[],n=(a("6b54"),a("a481"),a("96cf"),a("1da1")),r=a("333d"),o=a("5a0c"),c=a.n(o),l=a("641c"),u=a("61f7"),p=a("1cc7"),m=a("b38b"),d=a("d349"),h=a("1672"),f=a("b3d0"),y=a("940a"),v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"注意事项",closable:!1,type:"info"}}),e._v(" "),e._m(0),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"会员设置",closable:!1,type:"info"}}),e._v(" "),a("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,showTime:!0}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],1)},b=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tilteWrap"},[a("h4",[e._v("会员团排课规则:")]),e._v(" "),a("p",[e._v("\n 1、会员团每学期赠送3960分钟(88课时x45分钟)免费课程时长,该时长可排声部课、集训声部课、合奏课、集训合奏课、综合课,课程时长以上类型课程共享;\n ")]),e._v(" "),a("p",[e._v("\n 2、在本学期内声部课、集训声部课总共最多能排课1980分钟(44课时x45分钟);合奏课、集训合奏课最多能排课1980分钟(44课时x45分钟);综合课最多能排课3960分钟(88课时x45分钟);\n ")]),e._v(" "),a("p",[e._v("\n 3、赠送课程仅可在该学期内完成排课,且不可将本学期课程调整至学期时间范围之外;\n ")]),e._v(" "),a("p",[e._v("4、学期时间段:9月1日至2月28/29日,3月1日至8月31日;")]),e._v(" "),a("p",[e._v("\n 5、排课时系统根据【开课日期】计算本学期最大可排课时长,计算方式为开课日期到本学期结束日期周次*4*45分钟,若超过3960分钟(88课时x45分钟),按3960分钟(88课时x45分钟)计算。即:若学期中途开始排课,则可能排课时长并不能达到3960分钟(88课时x45分钟)。\n ")])])}],g=a("5530"),_=a("15fd"),S=a("b85c"),w=a("ace5"),T=a("b133"),x=a("ed08"),k={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},P={components:{memberSetting:w["a"],otherform:T["a"]},props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],data:function(){return{memberForm:{memberRankSettingId:"",memberValidDate:6,memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[]},other:{memo:""},viewDetail:null}},mounted:function(){this.init()},computed:{isUserType:function(){return"user"===this.type}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.rowDetail){e.next=18;break}return this.$set(this.other,"memo",this.rowDetail.memo),e.prev=2,e.next=5,Object(h["i"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 5:a=e.sent,this.viewDetail=a.data,i=null===(t=this.viewDetail)||void 0===t?void 0:t.musicGroupPaymentCalenders[0],this.$set(this.memberForm,"memberRankSettingId",i.memberRankSettingId),this.$set(this.memberForm,"memberValidDate",i.memberValidDate),this.$set(this.memberForm,"memberPaymentAmount",i.memberPaymentAmount),this.$set(this.memberForm,"originalMemberPaymentAmount",i.originalMemberPaymentAmount),this.$set(this.memberForm,"paymentDate",[i.startPaymentDate,i.deadlinePaymentDate]),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),console.log(e.t0);case 18:case"end":return e.stop()}}),e,this,[[2,15]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.memberSetting,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,n,r,o,c,l,u,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],i=Object(S["a"])(t);try{for(n=function(){var e=s.value;e.validate((function(t){t&&a.push(e)}))},i.s();!(s=i.n()).done;)n()}catch(m){i.e(m)}finally{i.f()}if(a.length!==t.length){e.next=35;break}if(o=Object(g["a"])(Object(g["a"])(Object(g["a"])({musicGroupId:this.musicGroupId},this.memberForm),this.other),{},{paymentType:k[0==this.paymentType?this.paymentType:0],paymentPattern:1,payUserType:"user"===this.type?"STUDENT":"SCHOOL",musicGroupPaymentDateRangeList:[Object(g["a"])({},Object(x["a"])(this.memberForm.paymentDate,["startPaymentDate","deadlinePaymentDate"]))]}),o.paymentDate,c=Object(_["a"])(o,["paymentDate"]),null!==(r=this.rowDetail)&&void 0!==r&&r.batchNo){e.next=20;break}return e.prev=7,e.next=10,Object(h["e"])(c);case 10:l=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(l.data),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](7);case 18:e.next=35;break;case 20:return c.batchNo=this.rowDetail.batchNo,c.paymentType=null===(u=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===u?void 0:u.paymentType,console.log(c),e.prev=23,e.next=26,Object(h["h"])(c);case 26:p=e.sent,this.$listeners.close(),this.$listeners.submited(p.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:merge(this.$route.query,{type:"feeAudit"})}),e.next=35;break;case 32:e.prev=32,e.t1=e["catch"](23),console.log(e.t1);case 35:case"end":return e.stop()}}),e,this,[[7,16],[23,32]])})));function t(){return e.apply(this,arguments)}return t}()}},C=P,D=(a("b58c"),a("2877")),I=Object(D["a"])(C,v,b,!1,null,"58df1511",null),F=I.exports,O=a("e623"),L=a("86e8"),E=a("cd32"),$=a("3762"),A=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{background:"#F3F4F8"}},[i("h2",{staticClass:"title"},[e._v("注册说明")]),e._v(" "),e._m(0),e._v(" "),2==e.courseViewType?[i("h2",{staticClass:"title"},[e._v("学习工具包")]),e._v(" "),i("div",{staticClass:"yunTrain"},[i("img",{attrs:{src:e.trainBg}}),e._v(" "),i("div",{staticClass:"toolText"},[i("p",{staticClass:"toolTitle"},[e._v("乐器练习云教练\n\t\t\t\t\t\t"),i("i",{staticClass:"icon_video",on:{click:function(t){e.videoStatus=!0}}})]),e._v(" "),i("p",{staticClass:"toolDate"},[e._v("有效期说明:自开课之日起6个月内有效")])])])]:e._e(),e._v(" "),1==e.courseViewType&&e.courseShowInfo.length>0?[i("div",{staticClass:"yunTrain",staticStyle:{"margin-top":"12px"}},[i("img",{attrs:{src:e.trainBg}}),e._v(" "),i("div",{staticClass:"toolText"},[i("p",{staticClass:"toolTitle"},[e._v("服务")]),e._v(" "),e.serviceValidDate?i("p",{staticClass:"toolDate"},[e._v("服务有效期:"+e._s(e.serviceValidDate))]):e._e()])])]:e._e(),e._v(" "),0==e.courseViewType?i("h2",{staticClass:"titles",staticStyle:{"margin-top":"12px"}},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("乐团课程")])]):e._e(),e._v(" "),[e.courseShowStatus&&1==e.courseViewType?i("div",{staticClass:"section"},e._l(e.courseShowInfo,(function(t,a){return i("el-row",{key:a,staticClass:"option-row",class:[t.isStudentOptional?"":"disabled"],nativeOn:{click:function(a){return e.onCourseChange(t)}}},[i("el-col",{attrs:{span:16}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),i("span",{staticStyle:{display:"flex","align-items":"center"}},["PROJECT"==t.courseType?[e._v(e._s(e.chargeTypeName)+" ")]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),"PROJECT"==t.courseType?i("el-icon",{staticClass:"el-icon-question",nativeOn:{click:function(t){return e.onQuestions("amr")}}}):e._e()],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)})),1):e._e(),e._v(" "),2==e.courseViewType?i("div",{staticClass:"section"},e._l(e.toolsPackage,(function(t,a){return i("div",{key:a},[i("el-row",{staticClass:"option-row",staticStyle:{"padding-top":"0"},nativeOn:{click:function(a){return e.onTrainChange(t)}}},[i("el-col",{attrs:{span:18}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),i("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.name))]],2)]),e._v(" "),i("el-col",{attrs:{span:6}},[2==e.courseViewType?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.cloudTeacherFee)))]):e._e()])],1),e._v(" "),t.childGoodsList&&2==e.courseViewType?i("el-row",{staticStyle:{"padding-left":".24rem"}},e._l(t.childGoodsList,(function(a,s){return i("el-col",{key:a.name},[i("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+" "+e._s(t.childGoodsList.length-1==s?"":"、"))])])})),1):e._e()],1)})),0):e._e(),e._v(" "),0==e.courseViewType?i("div",{staticClass:"section"},[0==e.courseViewType?i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11,offset:1}},[e._v("现价")])],1):e._e(),e._v(" "),e._l(e.courseInfo,(function(t,a){return i("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"":"disabled"]}),"PROJECT"==t.courseType?[e._v(e._s(t.name))]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),i("el-col",{attrs:{span:11,offset:1}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)}))],2):e._e()],e._v(" "),e.courseInfo&&e.courseInfo.length>0&&e.isClickStatus&&1==e.courseViewType?i("div",{staticClass:"section"},[i("h2",{staticClass:"title"},[e._v(e._s("乐团课程"))]),e._v(" "),i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.courseInfo,(function(t,a){return[t.isStudentOptional?i("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"":"disabled"]}),"PROJECT"==t.courseType?[e._v(e._s(t.name))]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),i("el-col",{attrs:{span:11,offset:1}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1):e._e()]}))],2):e._e(),e._v(" "),e.instrumentResultList&&e.instrumentResultList.length>0?i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("乐器")])]):e._e(),e._v(" "),e.instrumentResultList&&e.instrumentResult.length>0?i("div",{staticClass:"section"},e._l(e.instrumentResultList,(function(t,a){return i("div",{key:a},[e.leBaoStatus&&"owned"==t[0].kitType?[i("el-row",{staticClass:"option-row",staticStyle:{"padding-bottom":"10px","margin-top":"8px","border-top":"1px solid #F0F0F0"},nativeOn:{click:function(t){return e.onLeBao(t)}}},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[e.buyMaintenance?"check_active":""]}),e._v("乐器保养(一年)"),i("el-icon",{staticStyle:{"padding-left":"0"},attrs:{name:"question"},nativeOn:{click:function(t){return t.stopPropagation(),e.onQuestions("instrument")}}})],1),e._v(" "),i("el-col",{attrs:{span:11,offset:1}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(300)))])])],1)]:e._e(),e._v(" "),i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},["GROUP"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t团购乐器"+e._s(2==e.courseViewType?"(赠送辅件一套)":null)+"\n\t\t\t\t\t\t")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t乐器租赁"+e._s(2==e.courseViewType?"(请自行购买辅件)":null)+"\n\t\t\t\t\t\t")]:e._e(),e._v(" "),"FREE"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t免费乐器"+e._s(2==e.courseViewType?"(请自行购买辅件)":null)+"\n\t\t\t\t\t\t")]:e._e(),e._v(" "),"owned"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t自备乐器"+e._s(2==e.courseViewType?"(请自行购买辅件)":null)+"\n\t\t\t\t\t\t")]:e._e()],2),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","LEASE","FREE"].includes(t[0]["kitType"])?[e._v("原价")]:e._e()],2),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","FREE"].includes(t[0]["kitType"])?[e._v("现价")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("租赁押金")]:e._e()],2)],1),e._v(" "),e._l(t,(function(t,a){return i("div",{key:a,on:{click:function(a){return e.instrumentF(t)}}},[i("el-row",{staticClass:"option-row"},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(" "),i("div",[e._v("\n "+e._s(t.name)+"\n "),t.goodsList?i("div",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v("\n "+e._s(t.goodsList[0].specification)+"\n ")]):e._e()])]),e._v(" "),i("el-col",{attrs:{span:6}},["owned"!=t.kitType?i("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.marketPrice)))]):e._e()]),e._v(" "),i("el-col",{attrs:{span:6}},["LEASE"==t.kitType?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))]):e._e(),e._v(" "),"FREE"==t.kitType?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))]):e._e(),e._v(" "),"GROUP"==t.kitType?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.price-t.coupon).toFixed(2)))))]):e._e()])],1),e._v(" "),t.childGoodsList&&"GROUP"==t.kitType?i("el-row",{staticStyle:{padding:"8px 0px 8px 24px","border-top":"1px solid rgb(240, 240, 240)"}},[i("el-col",{staticStyle:{"font-size":"14px",color:"#1A1A1A","padding-bottom":"3px"},attrs:{span:24}},[e._v("赠送辅件")]),e._v(" "),i("el-col",[i("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v("\n "+e._s(t.childGoodsNames)+"\n ")])])],1):e._e()],1)}))],2)})),0):e._e(),e._v(" "),e.accessOries.length>0&&e.accessIsShowStatus?i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("辅件")])]):e._e(),e._v(" "),e.accessOries.length>0&&e.accessIsShowStatus?i("div",{key:"accessOries",staticClass:"section"},[i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("服务项目")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("原价")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.accessOries,(function(t,a){return i("div",{key:a},[i("el-row",{staticClass:"option-row",nativeOn:{click:function(a){return e.onAuxiliarie(t)}}},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(e._s(t.name)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:6}},[i("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.goodsList[0]?t.goodsList[0].marketPrice:0)))])]),e._v(" "),i("el-col",{attrs:{span:6}},[0==t.price?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("免费")]):i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])])],1),e._v(" "),t.childGoodsList?i("el-row",{staticStyle:{"padding-left":"24px"}},[i("el-col",e._l(t.childGoodsList,(function(a,s){return i("span",{key:a.id,staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+" "+e._s(t.childGoodsList.length-1==s?"":","))])})),0)],1):e._e()],1)}))],2):e._e(),e._v(" "),i("div",{staticClass:"buy"},[i("div",{staticClass:"price"},[i("p",{staticClass:"oldprice"},[i("del",{staticClass:"text"},[e._v("原价")]),e._v(" "),i("del",{staticStyle:{"font-size":"13px"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),i("p",{staticClass:"now_price"},[i("span",{staticClass:"text"},[e._v("仅需支付")]),e._v(" "),i("span",{staticStyle:{"font-weight":"bold"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),i("a",{staticClass:"btn-submit"},[e._v("购买")])]),e._v(" "),i("el-dialog",{staticClass:"videoDialog",attrs:{title:"视屏",visible:e.videoStatus,"modal-append-to-body":!1,"append-to-body":!0,width:"30%"},on:{"update:visible":function(t){e.videoStatus=t}}},[e.videoStatus?i("video",{staticClass:"ql-video",staticStyle:{width:"100%"},attrs:{controls:"controls",src:"https://daya.ks3-cn-beijing.ksyun.com/202105/SWmqmvW.mp4",poster:a("df4f")}}):e._e()])],2)},R=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"noticeInfo"},[e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),a("br"),e._v("\n\t\t\t2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n\t\t")])}],j=(a("c5f6"),a("456d"),a("7f7f"),a("ac6a"),a("ec8a")),N={0:"按月",1:"按学期",2:"一次性"},G={props:["subjectId","calenderId"],data:function(){var e=this.$route.query;return{videoStatus:!1,trainBg:a("31f0"),trainSmallBg:a("9214"),musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,cloudTeacherFee:0,cloudTeacherPlusFee:0,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0,musicMarketClassFee:0,accessPrice:0,accessMarketPrice:0,goodsPrice:0,goodsMarketPrice:0},toolsPackage:[{isStatus:!0,name:"练习系统(六个月)",childGoodsList:[{name:""}]}],courseInfo:[],courseShowInfo:[],musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],instrumentResultList:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null,serviceValidDate:null,courseShowStatus:!1,chargeTypeList:[],chargeTypeName:null,courseViewType:0,leBaoStatus:!1,buyMaintenance:!1,isClickStatus:!1,accessStatus:!1,accessIsShowStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId,calenderId:this.calenderId},e.next=3,Object(p["Ub"])().then((function(e){var t=e.data;200==e.code&&(a.chargeTypeList=t.rows||[])}));case 3:return e.next=5,Object(p["Kb"])(t).then((function(e){var t=e;if(200==t.code){var i=t.data;a.courseViewType=i.musicGroup.courseViewType||0,a.cloudTeacherFee=i.cloudTeacherFee||0,a.cloudTeacherPlusFee=i.cloudTeacherPlusFee||0,a.paymentPattern=2,i.musicGroupPaymentCalender&&(a.paymentPattern=i.musicGroupPaymentCalender.paymentPattern,a.serviceValidDate=c()(i.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+c()(i.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var s=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null,n=i.memberPrivilegesItemList?i.memberPrivilegesItemList:[],r=[];if(n.forEach((function(e){e.memberPrivilegesItems&&e.memberPrivilegesItems.length>0&&e.memberPrivilegesItems.forEach((function(e){r.push(e.name)}))})),a.toolsPackage=[{isStatus:!0,name:"练习系统(六个月)",childGoodsList:[{name:r.join("、")}]}],s&&s.length>0){var o={courseCurrentPrice:0,courseOriginalPrice:0,courseType:null,name:"器乐练习系统"};s.forEach((function(e){e.isStudentOptional||(a.courseShowStatus=!0,o={courseCurrentPrice:e.courseCurrentPrice+o.courseCurrentPrice,courseOriginalPrice:e.courseCurrentPrice+o.courseCurrentPrice,courseType:"PROJECT",isStatus:!0,name:"器乐练习系统"})})),a.courseShowInfo=[o],a.courseInfo=s}else a.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}];a.isClickStatus=!1,a.courseInfo.forEach((function(e){e.isStudentOptional?(e.isStatus=!1,a.isClickStatus=!0):e.isStatus=!0})),a.musicGroupSubject=i.musicGroupSubjectPlan;var l={},u=[];if(i.musicGroupSubjectGoodsGroupList.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{},i=function(i){var s=Object.assign({},e);s.marketPrice=s.goodsList[0].marketPrice,s.kitType=i,s.coupon=t[i],l.id?(s.checked=!1,"GROUP"==i?("GROUP"==l.kitType&&l.price<s.price||"LEASE"==l.kitType||"FREE"==l.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),s.checked=!0,l={id:s.id,price:s.price,kitType:i}):"LEASE"==i?"LEASE"==l.kitType&&l.price<s.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),s.checked=!0,l={id:s.id,price:s.price,kitType:i}):"FREE"==i&&"FREE"==l.kitType&&l.price<s.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),s.checked=!0,l={id:s.id,price:s.price,kitType:i})):(s.checked=!0,l={id:s.id,price:s.price,kitType:i});var n=[];s.childGoodsList&&s.childGoodsList.length>0&&(s.childGoodsList.forEach((function(e){"INSTRUMENT"!=e.type&&"OTHER"!=e.type&&n.push(e.name)})),s.childGoodsNames=n.join("、")),a.instrumentResult.push(s),u.push(s)};for(var s in t)i(s)}else"ACCESSORIES"==e.type&&(e.checked=!0,a.accessOries.push(e))})),a.instrumentResult.length>0){var p={id:-1,kitType:"owned",name:"自备乐器",price:0,marketPrice:0,checked:!1};u.push(p),a.instrumentResult.push(p);var m=a.groupBy(u,(function(e){return[e.kitType]}));console.log(m),a.instrumentResultList=m,a.chargeTypeList.forEach((function(e){e.id==i.musicGroup.chargeTypeId&&(a.chargeTypeName=e.description)}));var d=!1;a.accessOries.forEach((function(e){e.childGoodsList&&e.childGoodsList.length>0&&e.childGoodsList.forEach((function(e){76==e.id&&(d=!0)})),76==e.goodsIdList&&(d=!0)})),a.accessStatus=d,23==a.subjectId&&(a.accessStatus=!0,d=!0),a.instrumentResult.forEach((function(e){e.checked&&"owned"!=e.kitType&&!d&&(a.leBaoStatus=!0,a.buyMaintenance=!0),e.checked&&"GROUP"!=e.kitType&&2==a.courseViewType&&(a.accessIsShowStatus=!0),2!=a.courseViewType&&(a.accessIsShowStatus=!0)}))}}a.calcPrice()}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onLeBao:function(){this.buyMaintenance=!this.buyMaintenance,this.calcPrice()},groupBy:function(e,t){var a={};return e.forEach((function(e){var i=JSON.stringify(t(e));a[i]=a[i]||[],a[i].push(e)})),Object.keys(a).map((function(e){return a[e]}))},onQuestions:function(e){"amr"==e?this.$alert("<b>革命性的“AMR器乐练习系统”</b><br />它的诞生是基于世界上最优秀的华人管乐指导专家唐嘉宏先生的教育理念,创新开发的一种新型“音乐感官植入程序”,这个程序抛弃了传统的“数线式识谱、机械式节奏、死记式乐理”,它营造出沉浸式可变速演奏过程,采用画面与音乐刺激序列组合而成的特定场景,在趣味性挑战的反复刺激中逐步促进器乐演奏的三核心:“音质→音准→音型”,从而达成演奏各环节水准的均匀提高,产生永久性条件反射式大脑记忆,将多板块知识融会贯通,让抽象的音乐知识刻入脑海里!<br /><br /><b>本练习系统的特点:</b><br /> 1.轻松快速掌握要点,让练习者沉浸其中,远离枯燥!<br /> 2.不假思索就能瞬间唤起反射式记忆,演奏识谱不再慢吞吞!<br /> 3.真正的实践记忆,摆脱纸上谈兵,与实际演奏紧密结合!<br />4.思维+肌肉的双重强化!无缝整合复习系统!<br /> 5.每条练习都经过严谨的编曲,你以为你只是在练习旋律线?其实是整个乐团在为你伴奏!","AMR器乐练习系统",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}}):"instrument"==e&&this.$alert('<p style="text-align: justify">1.乐器保养是管乐迷针对乐团学员提供的乐器检查、保养及维修优惠特权;<br />2.该特权为包年制,从开通特权之日起365天内有效;<br />3.特权用户可享受管乐迷提供专业的高级乐器维修技师一年不低于两次下校检查乐器使用情况;<br />4.特权有效期内凭该特权绑定的乐器编号可享受保养人工费减免、非返厂维修人工费优惠等特权;<br />感谢您的信任和支持!</p>',"乐器保养特权",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}})},onCourseChange:function(e){e.isStudentOptional&&(e.isStatus=!e.isStatus,this.calcPrice())},onTrainChange:function(e){e.isStatus=!e.isStatus;var t=this.courseShowInfo;t.forEach((function(t){t.isStatus=e.isStatus}));var a=this.courseInfo;a.forEach((function(t){t.isStudentOptional||(t.isStatus=e.isStatus)})),this.calcPrice()},onClickCheckbox:function(){this.payType?this.needPrice=this.orderInfo.amount:this.orderInfo.amount>=this.balance?this.needPrice=Number((this.orderInfo.amount-this.balance).toFixed(2)):this.needPrice=0,this.payType=!this.payType},onAuxiliarie:function(e){e.checked=!e.checked,this.calcPrice()},instrumentF:function(e){this.instrumentResult.forEach((function(e){e.checked=!1})),e.checked=!0,this.accessStatus||("owned"!=e.kitType?(this.leBaoStatus=!0,this.buyMaintenance=!0):(this.leBaoStatus=!1,this.buyMaintenance=!1)),2==this.courseViewType&&("GROUP"!=e.kitType?this.accessIsShowStatus=!0:this.accessIsShowStatus=!1),this.calcPrice()},calcPrice:function(){var e=this,t=[],a=[],i=0,s=0,n=0,r=0,o={},c=[],l=0,u=[],p=0,m=0,d=0,h=0,f=0,y=0,v="",b=this.musicGroupSubject,g=this.courseInfo;if(2==this.courseViewType&&this.toolsPackage[0].isStatus){var _=this.cloudTeacherFee;m+=parseFloat(_),s+=parseFloat(_)}if(b){var S=this.courseShowInfo;if(S.length>0&&1==this.courseViewType){var w=0;S.forEach((function(e){w+=parseFloat(e.courseCurrentPrice)})),s+=parseFloat(w),t.unshift({name:this.chargeTypeName,type:N[this.paymentPattern],price:Number(w.toFixed(2))})}g.forEach((function(t){t.isStatus&&(2!=e.courseViewType&&(m+=parseFloat(t.courseCurrentPrice)),t.id>0&&c.push(t.id),t.isStudentOptional?s+=parseFloat(t.courseCurrentPrice):y+=parseFloat(t.courseCurrentPrice),0!=e.courseViewType||t.isStudentOptional||(s+=parseFloat(t.courseCurrentPrice)))}))}var T=this.instrumentResult;T.length>0&&T.forEach((function(e){e.checked&&("自备乐器"!=e.name&&(v+=e.goodsIdList),"FREE"==e.kitType?(i+=0,l=0):"LEASE"==e.kitType?(l=e.coupon,"自备乐器"!=e.name?(i+=e.depositFee,n+=e.depositFee):i+=0):(i+=parseFloat(e.price),n+=parseFloat(e.price),l=e.coupon?e.coupon:0),"LEASE"==e.kitType?"自备乐器"!=e.name&&(s+=parseFloat(e.marketPrice),r+=e.depositFee):(s+=parseFloat(e.marketPrice),r+=parseFloat(e.marketPrice)),e.id&&(o[e.id]=e.kitType),"LEASE"==e.kitType?t.push({name:e.name,type:"租赁",price:e.depositFee}):"GROUP"==e.kitType?t.push({name:e.name,type:"团购",price:parseFloat(e.price-l)}):"FREE"==e.kitType&&t.push({name:e.name,type:"免费",price:0}),"GROUP"==e.kitType&&1==e.groupRemissionCourseFee&&(m=parseFloat(m-y)))})),this.leBaoStatus&&this.buyMaintenance&&(s+=300,i+=300,t.push({name:"乐器保养",time:"有效期:从发货之日起一年内有效",type:"包年",price:300})),i+=parseFloat(p+m),parseFloat(p+m)>0&&0==this.courseViewType&&t.unshift({name:"乐团课",type:N[this.paymentPattern],price:Number((p+m).toFixed(2))}),this.accessOries.length>0&&this.accessOries.forEach((function(a){a.checked&&e.accessIsShowStatus&&(h+=parseFloat(a.price),i+=parseFloat(a.price),a.goodsList&&a.goodsList.length>0&&a.goodsList.forEach((function(e){f+=parseFloat(e.marketPrice),s+=parseFloat(e.marketPrice)})),o[a.id]="ACCESSORIES",t.push({name:a.name,type:"团购",price:a.price}))}));var x=i;if(i-l>=0?(i=Number((i-l).toFixed(2)),this.errorPrice=!1):(i=0,this.errorPrice=!0),this.ids=a,this.payType){var k=Number((i-this.balance).toFixed(2));this.needPrice=k>0?k:0}else this.needPrice=Number(i.toFixed(2));this.buyList=t,this.orderInfo={amount:Number(i.toFixed(2)),marketPrice:Number(s.toFixed(2)),groupPurchasePrice:x,couponPrice:l,goodsGroupIds:o,goodsIds:u.join(","),contractGoodsIds:v,courseKeys:c,musicClassFee:m,musicMarketClassFee:d,accessMarketPrice:f,accessPrice:h,goodsPrice:n,goodsMarketPrice:r}},permission:function(e){return Object(j["a"])(e)}}},V=G,U=(a("c907"),Object(D["a"])(V,A,R,!1,null,"875c05ec",null)),M=U.exports,B=a("267e"),q=a("92e3"),z={props:["isNewGropu"],components:{pagination:r["a"],setStudentFee:f["default"],userPayForm:y["a"],memberPayForm:F,schoolPayForm:L["a"],QrCode:l["a"],review:E["a"],reviewDetail:$["a"],"pay-items":O["a"],subjectPreview:M},data:function(){return{paymentType:"PRE_BUILD_FEE"==this.team_status?0:1,musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,itemsVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",teamType:this.$route.query.type,payOrderTypeLists:q["y"],dialogSubjectVisible:!1,dialogSubjectList:[],activeName:null,dialogCalenderId:null,baseInfo:null,memberVisible:!1}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.paymentType="PRE_BUILD_FEE"==this.team_status?0:1,e.prev=1,e.next=4,Object(d["r"])({rows:9999});case 4:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](1);case 10:this.init();case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(x["b"])(B["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){return"PRE_BUILD_FEE"==this.team_status||"PROGRESS"==this.team_status},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["c"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getTeamInfo(),this.getList();case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),getTeamInfo:function(){var e=this;this.$route.query.id&&Object(p["Ob"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code&&(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo))}))},changePaymentType:function(e){this.paymentType=e},newUserPay:function(){var e,t;2==(null===(e=this.baseInfo)||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.courseViewType)&&"PRE_BUILD_FEE"==this.team_status?(this.payFormType="user",this.isNew=!0,this.activeRow=null,this.memberVisible=!0):(this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0)},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(m["c"])({page:this.rules.page,rows:this.rules.limit,search:t,payUserType:"STUDENT",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id+"&id="+this.$route.query.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){var t,a;this.diTitle="修改缴费",2==(null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.courseViewType)&&"MUSIC_APPLY"==e.paymentType?(this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.isNew=!1,this.activeRow=e,this.memberVisible=!0):(this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0)},revoke:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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:return e.next=5,Object(h["l"])({batchNo:t.batchNo});case 5:e.sent,this.$message.success("取消审批成功"),this.getList(),this.getTeamInfo(),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}(),changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.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:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),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(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["A"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},removeBatchNo:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(h["f"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(h["g"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(p["sc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?c()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?c()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getTeamInfo(),e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,i=new Date(a.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var s=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return s},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:this.getTeamInfo(),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}(),onPreview:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,a=this.$route.query.id,e.next=4,Object(p["J"])({musicGroupId:a}).then((function(e){200==e.code?(i.dialogSubjectList=e.data.musicGroupSubjectPlans,i.activeName=i.dialogSubjectList[0].subjectId.toString(),i.dialogSubjectVisible=!0):i.$message.warning("没有可预览的声部")}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},Y=z,J=(a("fbcf"),Object(D["a"])(Y,i,s,!1,null,"7a45152e",null));t["a"]=J.exports},"0e86":function(e,t,a){"use strict";a("beaa")},"11f5":function(e,t,a){},"15fd":function(e,t,a){"use strict";function i(e,t){if(null==e)return{};var a,i,s={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(s[a]=e[a]);return s}function s(e,t){if(null==e)return{};var a,s,n=i(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(s=0;s<r.length;s++)a=r[s],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}a.d(t,"a",(function(){return s}))},"160b":function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));var i=a("b775"),s=a("829b"),n="/api-web";function r(e){return Object(s["a"])({url:n+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(i["a"])({url:n+"/chargeType/queryPage",method:"get",params:e})}},"1aa8":function(e,t,a){"use strict";a("7619")},"1eeb":function(e,t,a){"use strict";a("282c")},"22f6":function(e,t,a){},"282c":function(e,t,a){},"2e3a":function(e,t,a){},3078:function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return c})),a.d(t,"g",(function(){return l})),a.d(t,"f",(function(){return u})),a.d(t,"k",(function(){return p})),a.d(t,"j",(function(){return m})),a.d(t,"h",(function(){return d})),a.d(t,"i",(function(){return h}));var i=a("829b"),s=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},n=function(e){return Object(i["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},r=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(i["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},c=function(e){return Object(i["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},l=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/getRegisterOrPreList",params:e,method:"get",requestType:"json"})},p=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/setNoneCloudTeacher",params:e,method:"get",requestType:"json"})},m=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/setCloudTeacherToFailed",params:e,method:"post",requestType:"json"})},d=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},h=function(e){return Object(i["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})}},"31f0":function(e,t,a){e.exports=a.p+"static/img/yunTrain_bg.ff0ffe89.png"},3273:function(e,t,a){"use strict";a("e4f0")},"328e":function(e,t,a){},"3a2e":function(e,t,a){},"47b0":function(e,t,a){"use strict";a("90ba")},"4ed3":function(e,t,a){"use strict";a("69df")},"51bf":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAABQCAYAAAB8racIAAAAAXNSR0IArs4c6QAABshJREFUaAXNmmtsFFUUx8+dfbTbLn3Sdnf7mN1teViCUUwwYoyYkBDUoLUNQhAKqDHqF/QDJmIiJmKCfsAvGj4olFeoPCVGDCFEEiOJJqgRWyrtPqav3ZbS59Jtu4/rObtM01ra7m5nZrnb9s7OzL3/X879z73n7hbckv9NeBhKm6d7zN3hW51uFgEBMqIRfq7N7y9OJ4zgDgwCcCiDID/NOdenC0Y46r4FQ6EJ1OfPutt9X6QNZCQ8AUfdTRDmUcCf3S6Pf0s6YMgj4L03DN93tMX1WfQbd0fPo1rDxEBI9HqfD36/6wfOISsaiZ6XpMF8LWEmQUj0bHsrdIyOoF14ZZgHT6J5p11XE2yaEPnkiLsZ7oVDyMI3eKSeT9QUn9r3NBC6MDgxBkc9zYDWpdded7t/49QGah3PACGhtpFB+LHLQ1FhONkdd3XeWaoWgNzvA0Ho4s89HfDXwB084jk8HL7Q29trlhupUc8KQmKNUgv4x0bJvNUjo5EGNQDkPucEmYhG4bDrHxiLhGmYal2S7wO5odL1nCAk1jcehBPelrguh/0uqWed0hDU37wgdFPz0F247JMoKjrOI43u7m6RzitZEgIhwcs+LwL1o1+gMDoB5z0enpkWEBI96b0VGyqEWcXBfyhtIEE07WFcqcnEOOHVu72+d5WCSXhoZEF/8B58J/0bexvlcLBN6nlavraQOmkQEvtzoDc24aFhDIxHz3i9d6wLgaC2KYFQQ1oCWjHNxCfJGobQWawNdD7VkjIILYrHcaUewEUSD9fgtuTLVCGoXcog1DiA6UIDpZloXozIO22Sr57Op1IWBEKCHaMBONfRGtNmnB9Cv6xKCwiJ/oYpJqWamGZmRnj4fGfncGGyMAuOiCxIybeESTgmU+J4ONBIy4F8LZFaMRBKM8kvgRClmbDO7fV/lgiAfI9iINQhbdQaKM1EEnztcUu+OllovlpREBKjLezFLldMF2feI5Lkq54Pgq4rDkKd/tLbBTf6eymzM4ej/IKrvz+Xzs9VVAEhwdPSbegKBnCIYCkfGj+G5mVpAQnxCBxxNcFoJIT6fKNL8n+UFhAS7cfp/4SnhaICGI59Lq/v+dlgVBsaWbBluB8uxfdIqMVPtrf3VMrXptaqg5DY1Z52uDnYR/NLXigSvdDdzbOmQtCxJiAkdAr3SL3jozS/rAxO+L+lc1OLZiBjkQgcbmvCPVIEI8M3u7zd76cFhEQpIhQZKhzYAY/Htzb2Bv9oFhFZcLZaU5DijCzYIi6PsWDussfhsF6TwTT7ODNTp4NdVSuAasZYY6XdelCGoFqziFAkKCIM2E2T0fL6VAg61iQi6ywirMxbjJGAQYMg1NhsDD/rmF5UB1mWUwAbbHYajihKb62oKInnCNM51B2aAmMmbHMsp3WG1pt96ItL/9OffKtaRAxMBzsrV0CWzkC++MEpWj6dVH3AgWpm3SQuhVKTmaLRCrkZ23BoaBGetagSkWeKS+GJAvzWhbGAnkGNWFAwNCvB/QuKR8RpzoOXSuMrvcBglyham+aDoOuKguQajLDDUQ0CPqf4+twpWs8kAkH3KDY0eibADucKMBvQnIxdRXN+mCgE3adYRGrKqkDMzqFISCZj9maEiSQDokhEniy0wFNFVpo5xzjjtTZbTl8yEIpEpDzLDLXlS2K6uGN4u0q03UgWgu5fUETMekPMF3pBIF98jTNnQyoQ1CZlj6A0bMcnJB+ncTy8jubcnSoEtUs5Ii+WOaFqUR5Fwq8DfR3WtJNKuaQE8nh+MawtLkNRFuJMqLOLRb6UCe43TBrEYsqGV8VlseY4c77nFEt+XSgEtU/KIyadHnbhpGVEc2I0jjnt1q+UgEgaZKv9EVicYSJz/qEDy1tKQVA/CQ/NeqsdqnMLCOKuYIRXHDaGH7AqVxICqc4thPVWkZ6QCGPCFqetRFIOId7TvB6hoXjNHt+LYDT2ojmvKA1B/c0JQqYkc2aiSTEa5ypF6wE1IOYF2Yx7EXpckaJ5UZZuh1oQ1O+sHnmupBweyy/CW9gw0+triouLApqD0NT9QqmDhoMLAtvuKCu6rSYE9T3DI3m4iNVTuofOxNd+R4XlotoQM0Ao3duJ5szG5R2j8ZNDLPlYC4gZIHUVS4ASHaRw65lpK8LQNlGTMmnWNYutsBpTPkz3RplOqBHL8wY0IbgvEvOIHZPel8ur4qe48IazvORvLSFIS79Ib4R69AX5A6fvg5V2yymtIWJ6V27e4vhvgvjru4af9k0OldYweocZvzhg0AmZbBOaM6w1gKxHERgXdKzWabHg9xppLA/Lv5H+BxiYV1F6ikd8AAAAAElFTkSuQmCC"},5513:function(e,t,a){"use strict";a("328e")},"5aa2":function(e,t,a){},"5f1a":function(e,t,a){"use strict";a("3a2e")},"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"),r=(a("5a0c"),a("ff14")),o={components:{soundSetCore:r["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,t=this.$refs.soundSetCore.checkSubmit();t&&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("4ed3"),a("2877")),u=Object(l["a"])(c,i,s,!1,null,"68fbd091",null);t["a"]=u.exports},6193:function(e,t,a){"use strict";a("aa6f")},"62f6":function(e,t,a){"use strict";a("9112")},"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("5530"),r=(a("7f7f"),a("070d")),o=a("f610"),c=a("ec8a"),l={props:["baseInfo"],components:{resetPayList:r["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)})}}},u=l,p=(a("0560"),a("2877")),m=Object(p["a"])(u,i,s,!1,null,"7352ac2c",null);t["a"]=m.exports},"68bd":function(e,t,a){},"69df":function(e,t,a){},"73b3":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("teambaseinfo"),e._v(" "),a("div",{staticClass:"wrap"},["look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},s=[],n=(a("1cc7"),a("80b0")),r=a("bc3a"),o=a.n(r),c=a("4328"),l=a.n(c),u=a("5f87"),p=a("3908"),m={components:{teambaseinfo:n["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},i={method:"POST",headers:{Authorization:Object(u["a"])()},data:l.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(i).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(t){if(-1!=t.indexOf("code")){var i=JSON.parse(t);e.$message.error(i.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),c=e.$route.query.id+"-"+o+"订货清单.xls";n.href=s,n.setAttribute("download",c),document.body.appendChild(n),n.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",a={musicGroupId:this.$route.query.id},i={method:"POST",headers:{Authorization:Object(u["a"])()},data:l.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(i).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(t){if(-1!=t.indexOf("code")){var i=JSON.parse(t);e.$message.error(i.msg)}else{var s=URL.createObjectURL(a),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),c=e.$route.query.id+"-"+o+"分发清单.xls";n.href=s,n.setAttribute("download",c),document.body.appendChild(n),n.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},d=m,h=(a("fc1a"),a("2877")),f=Object(h["a"])(d,i,s,!1,null,"546db682",null);t["a"]=f.exports},7619:function(e,t,a){},"77d6":function(e,t,a){},"808a":function(e,t,a){"use strict";a("04fb")},"80b0":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),a("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},e._l(e.courseViewTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:Number(t.value),disabled:e.checkCourseView(Number(t.value))}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!0,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,i){return a("el-option",{key:i,attrs:{label:t.realName,value:t.userId}},[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.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[a("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.bossList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[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.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"衔接老师",prop:"transactionTeacherId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.transactionTeacherId,callback:function(t){e.$set(e.topFrom,"transactionTeacherId","string"===typeof t?t.trim():t)},expression:"topFrom.transactionTeacherId"}},e._l(e.transactionList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[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.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,i){return a("el-option",{key:i,attrs:{label:t.userName,value:t.userId}},[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.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"自定义课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"标准课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,i){return a("el-option",{key:i,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._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},s=[],n=(a("28a5"),a("a481"),a("ac6a"),a("7f7f"),a("96cf"),a("1da1")),r=a("ade3"),o=a("1cc7"),c=a("a488"),l=a("5a0c"),u=a.n(l),p=a("7676"),m=a.n(p),d=a("99b4"),h=a("641c"),f=a("92e3"),y=a("61f7"),v=a("879d"),b={components:{mergeMusic:v["a"],qrCode:h["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(r["a"])({classStatus:f["g"],courseViewTypeList:f["n"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null,transactionTeacherId:null},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],transactionList:[],addList:[],activeTeam:[],teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null},"teamid","")},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,i,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(a=this.$helpers.lodash,i=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),a.isEqual(this.topFrom,i)||!i){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.gotoNext(t);case 2:return a=e.sent,console.log(a),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(s.teamid,"base")),!0)}));case 6:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",!0);case 10:e.next=14;break;case 12:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var a,i=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==i&&void 0!==i&&i.section)this.topFrom=i,null!==(a=this.topFrom)&&void 0!==a&&a.section&&this.getBaseList(this.topFrom.section);else Object(o["Ob"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var s,n=JSON.parse(localStorage.getItem("newTeambase"));n?this.topFrom=n:this.topFrom,null!==(s=this.topFrom)&&void 0!==s&&s.section&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["gb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Ub"])({rows:1e3}).then((function(e){200==e.code&&(t.typeList=e.data.rows)}))},changeSection:function(e){this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.getBaseList(e)},getBaseList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,i,s,n,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(d["C"])({organId:t}).then((function(e){200==e.code&&(r.cooperationList=e.data)})),Object(d["r"])({organId:t}).then((function(e){200==e.code&&(r.addList=e.data)})),Object(c["b"])().then((function(e){200==e.code&&(r.technician=e.data)})),e.prev=3,e.next=6,Object(o["Q"])({organId:t});case 6:n=e.sent,this.educationList=null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.EDUCATION,this.bossList=null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.TEAM_TEACHER,this.transactionList=null===n||void 0===n||null===(s=n.data)||void 0===s?void 0:s.TRANSACTION,e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](3),console.log(e.t0);case 15:Object(o["Mb"])({organId:t}).then((function(e){200==e.code&&(r.teacherList=e.data)}));case 16:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){var t=this;this.topFrom.teacher="",e&&(console.log(this.cooperationList),this.cooperationList.forEach((function(a){a.id==e&&(console.log(a),t.$set(t.topFrom,"teacher",a.educationUserId))}))),console.log("chioseSchool",this.topFrom.teacher)},gotoNext:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){i.$refs["topinfo"].validate(function(){var s=Object(n["a"])(regeneratorRuntime.mark((function s(n,r){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(n){s.next=5;break}i.$message.error("请填写建团必要参数"),e(!1),s.next=16;break;case 5:if(i.$store.dispatch("topinfo",i.topFrom),"teamAudit"!=i.teamStatus){s.next=10;break}i.$emit("handleClick",{name:"2"}),s.next=16;break;case 10:return i.$emit("getName",i.topFrom.name),s.next=13,i.resetSubmit(t);case 13:a=s.sent,console.log(a,"tempStatus"),e(a);case 16:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){a.$refs["topinfo"].validate(function(){var s=Object(n["a"])(regeneratorRuntime.mark((function s(r,c){var l,p;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(r){s.next=5;break}a.$message.error("请填写必要参数"),i(),s.next=26;break;case 5:l=null,s.t0=a.teamStatus,s.next="resetTeam"===s.t0?9:"newTeam"===s.t0?11:"teamList"===s.t0?13:"teamDraft"===s.t0?15:17;break;case 9:return l="PROGRESS",s.abrupt("break",17);case 11:return l="DRAFT",s.abrupt("break",17);case 13:return l=null,s.abrupt("break",17);case 15:return l="DRAFT",s.abrupt("break",17);case 17:if(p={},p.musicGroup={settlementType:a.topFrom.salary,applyExpireDate:u()(a.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:a.topFrom.type,cooperationOrganId:a.topFrom.school,courseViewType:a.topFrom.courseViewType,teamTeacherId:a.topFrom.boss,enrollClasses:a.topFrom.startClass.join(","),name:a.topFrom.name,paymentPattern:a.topFrom.paymentPattern,paymentValidStartDate:a.topFrom.paymentValidStartDate?u()(a.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):a.topFrom.paymentValidStartDate,paymentValidEndDate:a.topFrom.paymentValidEndDate?u()(a.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):a.topFrom.paymentValidEndDate,organId:a.topFrom.section,schoolId:a.topFrom.address,id:a.teamid,directorUserId:a.topFrom.head,isClassroomLessons:a.topFrom.isClass,status:l,expectStartGroupDate:a.topFrom.startTime,ownershipType:a.topFrom.ownershipType,repairUserId:a.topFrom.repairUserId||null,feeType:a.topFrom.feeType,transactionTeacherId:a.topFrom.transactionTeacherId},"newTeam"==a.teamStatus){s.next=25;break}return s.next=22,Object(o["yc"])(p).then(function(){var i=Object(n["a"])(regeneratorRuntime.mark((function i(s){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:200==s.code&&(localStorage.setItem("".concat(a.teamid,"base"),JSON.stringify(a.topFrom)),a.$emit("getBaseInfo"),"teamDraft"==a.teamStatus?(a.$message.success("保存成功"),t||a.$emit("handleClick",{name:"2"}),e(!0)):a.$message.success("修改乐团成功"),e(!0));case 1:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}());case 22:return s.abrupt("return",s.sent);case 25:Object(o["z"])(p).then((function(e){if(200==e.code){var t=a.$createElement;a.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新乐团基础信息创建完成"),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return a.$router.push({query:m()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.$emit("handleClick",{name:"2"}),!0})).catch((function(){return a.$router.push({query:m()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.init(),!0}))}}));case 26:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){musicGroupFound({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},payStart:function(){this.paymentStatus=!0},getStudentStatus:function(){var e=this,t={musicGroupId:this.teamid,page:1,rows:9999};this.teamid&&Object(o["Eb"])(t).then((function(t){200==t.code&&t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)}))}))},payDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(o["bc"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var a=this;this.$refs[e].validate((function(e){e&&(t?Object(o["F"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Ob"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["E"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Ob"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.applyExpireDate=e.data.musicGroup.applyExpireDate,a.setBase(e))}))):a.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(y["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(y["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(y["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:m()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,this.topFrom.transactionTeacherId=e.data.musicGroup.transactionTeacherId||"",localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))},checkCourseView:function(e){return"newTeam"!=this.teamStatus&&"teamDraft"!=this.teamStatus&&(0==this.topFrom.courseViewType||1==this.topFrom.courseViewType?2==e:0==e||1==e)}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},g=b,_=(a("6193"),a("1eeb"),a("2877")),S=Object(_["a"])(g,i,s,!1,null,"02df0392",null);t["a"]=S.exports},8550:function(e,t,a){},"86e8":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},s=[],n={},r=n,o=a("2877"),c=Object(o["a"])(r,i,s,!1,null,"21abf8f1",null);t["a"]=c.exports},"879d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"merge-music"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?a("empty",{attrs:{desc:"暂未选择乐团"}}):a("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,i){return a("el-collapse-item",{key:i,staticClass:"item",attrs:{name:i},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"header"},[a("span",{staticClass:"title"},[a("span",[e._v(e._s(t.name))])]),e._v(" "),a("span",{staticStyle:{width:"20%"}},[a("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),a("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(i)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),a("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),a("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[a("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),a("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?a("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},s=[],n=(a("96cf"),a("1da1")),r=a("5530"),o=a("b85c"),c=(a("ac6a"),a("456d"),a("160b")),l=a("3078"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container",staticStyle:{width:"100%"}},[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"musicGroupName"}},[a("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),a("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},p=[],m=(a("386d"),a("7f7f"),a("333d")),d={props:["visible","organId"],components:{pagination:m["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var a in e){var i={};i.id=e[a].id,i.name=e[a].name,t.push(i)}this.passed=t},FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["b"])(Object(r["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==a.$route.query.id})),this.rules.total=t.data.total,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}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},h=d,f=(a("1aa8"),a("2877")),y=Object(f["a"])(h,u,p,!1,null,"64b6b690",null),v=y.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},g=[],_=(a("6762"),a("2fdb"),a("1672")),S={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_["c"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,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}()}},w=S,T=Object(f["a"])(w,b,g,!1,null,null,null),x=T.exports,k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},P=[],C=a("1cc7"),D={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].userId);this.passed=t},removeStuden:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除已选择学员?","提示",{type:"warning"});case 3:return e.next=5,Object(l["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(C["Sb"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=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}()}},I=D,F=Object(f["a"])(I,k,P,!1,null,null,null),O=F.exports,L={props:["organId"],components:{selectMusic:v,selectItem:x,mergedStudents:O},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,a={},i=Object(o["a"])(e);try{for(i.s();!(t=i.n()).done;){var s=t.value;a[s.id]?a[s.id]=Object(r["a"])(Object(r["a"])({},a[s.id]),s):a[s.id]=Object(r["a"])(Object(r["a"])({},s),{},{num:0})}}catch(n){i.e(n)}finally{i.f()}this.items=a},remove:function(e){var t=Object(r["a"])({},this.items),a=Object(r["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(r["a"])({},t),this.studentsByMusicId=Object(r["a"])({},a)},selected:function(e,t){var a=this.studentsByMusicId;a[t]||(a[t]=[]),a[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=a},merge:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,a)&&(i=this.studentsByMusicId[a],t=t.concat(i));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(l["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t},FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["b"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},E=L,$=(a("f089"),Object(f["a"])(E,i,s,!1,null,"4c59032c",null));t["a"]=$.exports},"8da4":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,getName:e.getName,getBaseInfo:e.getBaseInfo}})],1),e._v(" "),1==e.activeIndex?a("div",[a("teamSoundMoney",{attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1):e._e()])])])},s=[],n=(a("7f7f"),a("80b0")),r=a("5f3d"),o=a("64cd"),c=a("7676"),l=a.n(c),u={components:{teamBaseInfo:n["a"],teamSoundMoney:r["a"],teamPayInfo:o["a"]},name:"teamDraft",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("draftIndex",0),this.$router.push({query:l()(this.$route.query,{clear:!1})})),this.init()},destroyed:function(){this.showSecond=!1},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):(console.log(this.$store.getters.draftIndex,this.activeIndex),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},getName:function(e){this.pageName=e}},computed:{showFlag:function(){return"newTeam"==this.teamStatus||"teamList"==this.teamStatus}}},p=u,m=(a("ebfc"),a("2877")),d=Object(m["a"])(p,i,s,!1,null,"3c5a3aa4",null);t["default"]=d.exports},"90ba":function(e,t,a){},9112:function(e,t,a){},9214:function(e,t,a){e.exports=a.p+"static/img/yunTrain_small_bg.b5242407.png"},"940a":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&2!=e.courseViewType?a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?a("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,rowDetail:e.rowDetail,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType,courseViewType:e.courseViewType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.changeActive}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"===e.paymentTypeString?[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClassUser",{ref:"eclass",attrs:{form:e.eclassuser,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclassuser=t},priceChange:e.priceChange,moneyChange:e.syncAllMoney}})]:e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?[2!=e.courseViewType||1!=e.paymentType?a("div",[a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}})],1):e._e()]:e._e():[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[2==e.courseViewType&&e.paymentType&&2!=e.paymentType&&2!=e.form.leixing?a("el-alert",{staticClass:"alert",staticStyle:{"margin-top":"20px"},attrs:{title:"会员设置",closable:!1,type:"info"}}):e._e(),e._v(" "),2==e.courseViewType&&e.paymentType&&2!=e.paymentType&&2!=e.form.leixing?a("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,viewDetail:e.nowDetail,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,addStudent:e.showMember,showTime:1==e.paymentType}}):e._e(),e._v(" "),2!=e.courseViewType||1!=e.paymentType||2==e.form.leixing?a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("el-form",{ref:"payment",attrs:{model:e.payment}},[a("el-form-item",{attrs:{"label-width":"160px",label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择缴费方式",disabled:2==e.courseViewType&&0!=e.paymentType},model:{value:e.payment.paymentPattern,callback:function(t){e.$set(e.payment,"paymentPattern",t)},expression:"payment.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),e.isMulticycle&&"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?[a("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,i){return a("el-collapse-item",{key:i,attrs:{name:i}},[a("template",{slot:"title"},[a("div",{staticClass:"collapse-title"},[a("span",[e._v("缴费周期 "+e._s(i+1))]),e._v(" "),e.cycles.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(i)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,paymentType:e.paymentType,hidePaymentPattern:!0,isCommon:e.isCommon,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType}})],2)})),1),e._v(" "),a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isCommon:e.isCommon,hidePaymentPattern:!0,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"===e.paymentType||"3"===e.form.leixing,courseViewType:e.courseViewType},on:{"update:form":function(t){e.cycle=t}}})],2):e._e()],e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["SPAN_GROUP_CLASS_ADJUST"!=e.paymentTypeString?a("p",[e._v("\n 缴费总金额:"+e._s(e.money||0)+"元\n ")]):e._e(),e._v(" "),a("div",[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("classrooms",{on:{close:e.closeNext}})],1)],2)},s=[],n=a("15fd"),r=(a("6762"),a("2fdb"),a("2909")),o=a("5530"),c=(a("96cf"),a("1da1")),l=a("b85c"),u=a("d349"),p=(a("1cc7"),a("1672")),m=a("267e"),d=a("ed08"),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[!e.rowDetail&&0!=e.paymentType&&(e.isUserType&&2==e.courseViewType||2!=e.courseViewType)?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto","margin-bottom":"20px"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,465223599)}):e._e()],1)},f=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail","courseViewType"],mounted:function(){},watch:{paymentType:function(){}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},v=y,b=(a("ea49"),a("2877")),g=Object(b["a"])(v,h,f,!1,null,"6abcb466",null),_=g.exports,S=a("7a3c"),w=a("0464"),T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"学员姓名",prop:"username"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),e._v(" "),a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.courseType[e.list.form[t.$index].courseType])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程时长(分钟)",prop:"courseTime",width:"130"}}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入现价"},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,disabled:"",placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable&&e.$listeners.remove?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},x=[],k=a("92e3"),P=a("6612"),C=a.n(P),D=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:m["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(d["b"])(m["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(k["b"])(k["h"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return C()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(a,i,s){var n=t.list.form[e].courseType;n&&i>1&&t.classTimeList[n]&&i<t.classTimeList[n]?s(new Error("单节课不得少于".concat(t.classTimeList[n],"分钟"))):s()}}}}),I=D,F=(a("3273"),Object(b["a"])(I,T,x,!1,null,"bc14b42a",null)),O=F.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},E=[],$={data:function(){return{list:[]}},methods:{submit:function(){}}},A=$,R=(a("62f6"),Object(b["a"])(A,L,E,!1,null,"37928f5f",null)),j=R.exports,N=a("b133"),G=a("ace5"),V=(a("73b3"),a("7676")),U=a.n(V),M=a("5a0c"),B=a.n(M),q={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},z={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:w["a"],extraClassUser:O,classrooms:j,otherform:N["a"],memberSetting:G["a"]},data:function(){return{options:[],form:{payUserType:"user"===this.type?"STUDENT":"SCHOOL",leixing:"1",musicGroupOrganizationCourseSettingId:null},chargeTypeName:"",other:{},cycles:[{}],cycle:{},eclass:[],eclassuser:[],collapse:[0],nextVisible:!1,typeList:[],charges:[],studentIds:"",payment:{paymentPattern:null},viewDetail:null,organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object(d["b"])(m["paymentPatternType"]),cloudFee:"",courseViewType:"",memberForm:{memberRankSettingId:"",memberValidDate:"",memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[]},money:"",isSetCourseSettingsId:!1}},computed:{showMember:function(){return 3==this.paymentType},musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},nowDetail:function(){return this.viewDetail},isCommon:function(){return"1"===this.form.leixing||"3"===this.form.leixing||2!=this.courseViewType&&"0"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},a=Object(l["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var i=e.value;t[i.id]=i}}catch(s){a.e(s)}finally{a.f()}return t},paymentAmountDisabled:function(){return(this.isUserType||this.isCommon&&this.isUserType)&&this.isDisabled},isMulticycle:function(){var e=!1,t="";if(this.viewDetail){var a,i=this.viewDetail,s=i.musicGroupPaymentCalenders;i.auditDto;t=null===(a=s[0])||void 0===a?void 0:a.paymentType,e=s.length>1||"ADD_COURSE"!=t,e&&(this.cycles=s.map((function(e){return{paymentAmount:e.paymentAmount,paymentDate:[null===e||void 0===e?void 0:e.startPaymentDate,null===e||void 0===e?void 0:e.deadlinePaymentDate],paymentValid:[null===e||void 0===e?void 0:e.paymentValidStartDate,null===e||void 0===e?void 0:e.paymentValidEndDate]}})))}return 0==this.payment.paymentPattern&&"2"!==this.form.leixing&&"ADD_COURSE"!==t||0==this.payment.paymentPattern&&e},paymentTypeString:function(){var e="";if(this.viewDetail){var t,a=this.viewDetail.musicGroupPaymentCalenders;e=null===(t=a[0])||void 0===t?void 0:t.paymentType}return e}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.formatCourse(),this.getCharges()},organizationCourseUnitPriceSettings:function(){this.formatCourse()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),this.$set(this.other,"memo",null),"1"===e?this.eclass=[]:"2"===e&&(this.payment.paymentPattern="1",this.eclass=[{}])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||this.isSetCourseSettingsId){e.next=11;break}return e.prev=1,e.next=4,Object(p["j"])({id:t});case 4:a=e.sent,this.eclass=a.data.filter((function(e){return!e.isStudentOptional||void 0!==i.paymentType}))||[{}],this.syncAllMoney(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:this.isSetCourseSettingsId=!1;case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t){return e.apply(this,arguments)}return t}(),"payment.paymentPattern":function(){this.syncAllMoney()},"memberForm.memberPaymentAmount":function(){this.syncAllMoney()}},mounted:function(){this.formatCourse(),this.init()},activated:function(){this.formatCourse(),this.init()},methods:{init:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,n,r,c,l,u,m,d,h,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.organId,this.courseViewType=null===(i=this.baseInfo)||void 0===i||null===(s=i.musicGroup)||void 0===s?void 0:s.courseViewType,2!=this.courseViewType||this.rowDetail||this.isUserType||(this.$set(this.form,"leixing","2"),this.addExtraClass()),this.getCharges(),!this.rowDetail){e.next=31;break}for(n in q)q.hasOwnProperty(n)&&(r=q[n],r===this.rowDetail.paymentType&&(this.$emit("changePaymentType",n),this.$set(this.form,"leixing",n+"")));return this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),e.prev=8,e.next=11,Object(p["i"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 11:m=e.sent,this.viewDetail=m.data,d=m.data.musicGroupPaymentCalenders[0]||{},this.eclass=(m.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==f.paymentType})),this.eclassuser=m.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===f.paymentTypeString?Object(o["a"])(Object(o["a"])({},e),{},{courseOriginalPrice:e.masterSubCoursePrice}):e})),this.$set(this.payment,"paymentPattern",String(null===(c=this.viewDetail.auditDto)||void 0===c?void 0:c.paymentPattern)),this.$set(this.memberForm,"memberRankSettingId",this.viewDetail.musicGroupPaymentCalenders[0].memberRankSettingId||null),this.$set(this.memberForm,"memberValidDate",this.viewDetail.musicGroupPaymentCalenders[0].memberValidDate||null),this.$set(this.memberForm,"memberPaymentAmount",this.viewDetail.musicGroupPaymentCalenders[0].memberPaymentAmount),this.$set(this.memberForm,"originalMemberPaymentAmount",this.viewDetail.musicGroupPaymentCalenders[0].originalMemberPaymentAmount),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",d.paymentPattern+""),h=[d.paymentValidStartDate,d.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[d.startPaymentDate,d.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",h)),this.studentIds=d.studentIds,null!==(l=m.data.auditDto)&&void 0!==l&&l.musicGroupOrganizationCourseSettingsId&&(this.isSetCourseSettingsId=!0),this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(u=m.data.auditDto)||void 0===u?void 0:u.musicGroupOrganizationCourseSettingsId),2==this.courseViewType&&1==this.form.leixing&&this.$set(this.memberForm,"paymentDate",[B()(d.startPaymentDate).format("YYYY-MM-DD"),B()(d.deadlinePaymentDate).format("YYYY-MM-DD")]),this.syncAllMoney(),e.next=31;break;case 29:e.prev=29,e.t0=e["catch"](8);case 31:case"end":return e.stop()}}),e,this,[[8,29]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,a,i=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,s=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,n={},r=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return i&&i==e.organId&&s&&s==e.chargeTypeId})),o=Object(l["a"])(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;n[c.courseType]=c}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=n,n},priceChange:function(e,t){var a=Object(r["a"])(this.eclass),i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},s=Math.round(C()(i.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=s,e.courseOriginalPrice=s,a[t]=e,this.eclass=Object(r["a"])(a),this.syncAllMoney()},syncAllMoney:function(){if("SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString){var e,t=null===(e=this.viewDetail)||void 0===e?void 0:e.musicGroupPaymentCalenders[0].paymentAmount;return this.$set(this.cycle,"paymentAmount",t),t}var a,i=0,s=0,n=0,r="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,c=Object(l["a"])(r);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(i+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)s+=u.courseCurrentPrice;else{var p=Math.floor(u.courseCurrentPrice/this.cycles.length),m=u.courseCurrentPrice%this.cycles.length;s+=p+m,n+=p}}}catch(d){c.e(d)}finally{c.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(o["a"])(Object(o["a"])({},e),{},{paymentAmount:0===t?s:n})}))),this.$set(this.cycle,"paymentAmount",i),i+=parseFloat(this.memberForm.memberPaymentAmount||0),this.money=i,i},getChargeTypeList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,n=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeId,this.chargeTypeName=null===(i=this.musicGroup)||void 0===i?void 0:i.chargeTypeName,e.prev=3,e.next=6,Object(u["z"])({row:9999,chargeTypeId:n,organId:s});case 6:r=e.sent,o=r.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=r.data.rows,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length-1),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,a){return a-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},closeNext:function(){this.nextVisible=!1},getForms:function(){var e=this.$refs;return[e.base,e.eclass,e.cycle].concat(Object(r["a"])(e.cycles||[]),[e.other,e.payment,e.memberSetting]).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},submit:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,c,u,m,h,f,y,v,b,g,_,S,w,T,x,k,P,C,D,I,F,O,L,E,$,A,R,j;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],i=Object(l["a"])(t);try{for(c=function(){var e=s.value;e.validate((function(t){t&&a.push(e)}))},i.s();!(s=i.n()).done;)c()}catch(N){i.e(N)}finally{i.f()}if(!(this.eclass.length<1&&this.eclassuser.length<1&&2!=this.courseViewType)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(a.length!==t.length){e.next=63;break}g=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.form),this.other),{},{paymentPattern:this.payment.paymentPattern,musicGroupPaymentDateRangeList:Object(r["a"])(this.cycles.map((function(e){var t=e.paymentDate,a=e.paymentValid,i=Object(n["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},i),Object(d["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(d["a"])(a,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),_=g.leixing,S=Object(n["a"])(g,["leixing"]),w=this.memberForm,T=w.paymentDate,x=Object(n["a"])(w,["paymentDate"]),2==this.courseViewType&&1==this.form.leixing&&(S.musicGroupPaymentDateRangeList[0]=Object(o["a"])({},Object(d["a"])(T,["startPaymentDate","deadlinePaymentDate"]))),this.$refs.cycle&&(k=this.cycle,P=k.paymentDate,C=k.paymentValid,D=Object(n["a"])(k,["paymentDate","paymentValid"]),S.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},D),Object(d["a"])(P,["startPaymentDate","deadlinePaymentDate"])),Object(d["a"])(C,["paymentValidStartDate","paymentValidEndDate"]))]),I=Object(o["a"])(Object(o["a"])(Object(o["a"])({},S),x),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:q[0==this.paymentType?this.paymentType:_],musicGroupId:this.musicGroupId}),F=null===(u=this.viewDetail)||void 0===u?void 0:u.musicGroupPaymentCalenders[0],F&&"ADD_STUDENT"===(null===(m=this.viewDetail)||void 0===m?void 0:m.auditDto.paymentType)&&(I.attribute1=F.attribute1),O=!1,L=Object(l["a"])(I.musicGroupPaymentCalenderCourseSettingsList),e.prev=16,L.s();case 18:if((E=L.n()).done){e.next=25;break}if($=E.value,!($.courseCurrentPrice>0||1==$.isStudentOptional)){e.next=23;break}return O=!0,e.abrupt("break",25);case 23:e.next=18;break;case 25:e.next=30;break;case 27:e.prev=27,e.t0=e["catch"](16),L.e(e.t0);case 30:return e.prev=30,L.f(),e.finish(30);case 33:if(2!=(null===(h=this.baseInfo)||void 0===h||null===(f=h.musicGroup)||void 0===f?void 0:f.courseViewType)&&3!=(null===(y=this.baseInfo)||void 0===y||null===(v=y.musicGroup)||void 0===v?void 0:v.courseViewType)||0!=this.paymentType||!O||"user"!==this.type){e.next=36;break}return this.$message.error("会员收费模式报名缴费项目课程费用不得大于0且不可选"),e.abrupt("return");case 36:if(null!==(b=this.rowDetail)&&void 0!==b&&b.batchNo){e.next=50;break}return e.prev=37,e.next=40,Object(p["e"])(I);case 40:A=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(A.data),e.next=48;break;case 46:e.prev=46,e.t1=e["catch"](37);case 48:e.next=63;break;case 50:return e.prev=50,I.batchNo=this.rowDetail.batchNo,I.paymentType=null===(R=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===R?void 0:R.paymentType,e.next=55,Object(p["h"])(I);case 55:j=e.sent,this.$listeners.close(),this.$listeners.submited(j.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:U()(this.$route.query,{type:"feeAudit"})}),e.next=63;break;case 61:e.prev=61,e.t2=e["catch"](50);case 63:case"end":return e.stop()}}),e,this,[[16,27,30,33],[37,46],[50,61]])})));function t(){return e.apply(this,arguments)}return t}()}},Y=z,J=(a("f57c"),Object(b["a"])(Y,i,s,!1,null,"53bbdd4a",null));t["a"]=J.exports},aa6f:function(e,t,a){},ace5:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": ",inline:!0}},[e.isUserType&&e.addStudent?a("el-form-item",{attrs:{label:"是否购买会员"}},[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:!0}},[e._v("购买会员")]),e._v(" "),a("el-radio",{attrs:{label:!1}},[e._v("不购买会员")])],1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"会员等级",prop:"memberRankSettingId",rules:[{required:!0,message:"请选择会员等级",trigger:"blur"}]}},[a("el-select",{staticStyle:{width:"620px !important"},attrs:{placeholder:"会员等级",clearable:"",filterable:""},on:{change:e.memberRankSettingIdChange},model:{value:e.form.memberRankSettingId,callback:function(t){e.$set(e.form,"memberRankSettingId","string"===typeof t?t.trim():t)},expression:"form.memberRankSettingId"}},e._l(e.memberRankList,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"会员有效期",prop:"memberValidDate",rules:[{required:!0,message:"请选择会员有效期",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"596px"},attrs:{disabled:!0},model:{value:e.form.memberValidDate,callback:function(t){e.$set(e.form,"memberValidDate",t)},expression:"form.memberValidDate"}},[a("template",{slot:"append"},[e._v("个月")])],2),e._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("自开课之日起6个月有效。")]),e._v(" "),a("i",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherSalary",expression:"'export/teacherSalary'"}],staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"现价",prop:"memberPaymentAmount",rules:[{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额"},{required:!0,message:"请输入现价",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"223px"},model:{value:e.form.memberPaymentAmount,callback:function(t){e.$set(e.form,"memberPaymentAmount",t)},expression:"form.memberPaymentAmount"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"原价",prop:"originalMemberPaymentAmount",rules:[{required:!0,message:"请输入原价",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"223px"},attrs:{disabled:!0},model:{value:e.form.originalMemberPaymentAmount,callback:function(t){e.$set(e.form,"originalMemberPaymentAmount",t)},expression:"form.originalMemberPaymentAmount"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&!e.addStudent&&e.showTime?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"620px"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e()],1)},s=[],n=(a("96cf"),a("1da1")),r=a("267e"),o=a("ed08"),c=a("1672"),l={props:["form","isUserType","organId","addStudent","showTime","viewDetail"],data:function(){return{paymentPatternTypeOptions:Object(o["b"])(r["paymentPatternType"]),pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},dataTime:["2021-05-14","2021-05-19"],memberRankList:[],radio:!0}},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["a"])({isDefault:0});case 3:t=e.sent,this.memberRankList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:this.$set(this.form,"memberValidDate",6);case 11:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){this.$set(this.form,"memo",null),this.$set(this.form,"memberRankSettingId",null),this.$set(this.form,"memberValidDate",null),this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"paymentDate",[])},methods:{memberRankSettingIdChange:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,i,s,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=11;break}return e.prev=1,e.next=4,Object(c["b"])({rankId:t,organId:this.organId});case 4:s=e.sent,null!==(a=s.data)&&void 0!==a&&a.currentHalfYearFee&&null!==(i=s.data)&&void 0!==i&&i.originalHalfYearFee?(this.$set(this.form,"memberPaymentAmount",null===(n=s.data)||void 0===n?void 0:n.currentHalfYearFee),this.$set(this.form,"originalMemberPaymentAmount",null===(r=s.data)||void 0===r?void 0:r.originalHalfYearFee)):this.$message.error("请设置该会员的默认价格"),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(t){return e.apply(this,arguments)}return t}()},watch:{radio:function(e){e?this.$set(this.form,"memberValidDate",6):(this.$set(this.form,"memberRankSettingId",null),this.$set(this.form,"memberValidDate",null),this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"paymentDate",[]))},viewDetail:{deep:!0,handler:function(e){var t;null!==(t=e.musicGroupPaymentCalenders[0])&&void 0!==t&&t.memberRankSettingId?this.radio=!0:this.radio=!1}}}},u=l,p=(a("0e86"),a("2877")),m=Object(p["a"])(u,i,s,!1,null,"56788b67",null);t["a"]=m.exports},b3d0: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-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学生编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList,"max-height":"300"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[a("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"应缴金额",rules:[{required:!0,message:"请输入预计缴费金额",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}],prop:"momey"}},[a("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},s=[],n=a("5530"),r=a("333d"),o=a("1cc7"),c={components:{pagination:r["a"]},props:["clearStduent","musicGroupPaymentCalenderId","batchNo"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["L"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList()},getList:function(){var e=this;this.searchForm.musicGroupId=this.teamid,Object(o["nc"])(Object(n["a"])(Object(n["a"])({},this.searchForm),{},{batchNo:this.batchNo})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;localStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,a={};a.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["uc"])(a).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.resetPayVisible=!1,t.getList(),t.$listeners.submited&&t.$listeners.submited())}))}},watch:{resetPayVisible:function(e){e||(this.resetPayForm={momey:null},this.$refs["resetPayForm"].resetFields())}}},l=c,u=(a("b5ca"),a("2877")),p=Object(u["a"])(l,i,s,!1,null,"2547eae8",null);t["default"]=p.exports},b58c:function(e,t,a){"use strict";a("8550")},b5ca:function(e,t,a){"use strict";a("2e3a")},ba30:function(e,t,a){},beaa:function(e,t,a){},c78f:function(e,t,a){},c907:function(e,t,a){"use strict";a("5aa2")},da26:function(e,t,a){},df4f:function(e,t,a){e.exports=a.p+"static/img/video_bg.0da9f0a8.png"},e323:function(e,t,a){"use strict";a("c78f")},e4f0:function(e,t,a){},e623:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",width:"120",label:"缴费单号",rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",width:"120",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"200","class-name":"table-btns"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["STUDENT"===e.payUserType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/strudentPayInfo",expression:"'/strudentPayInfo'"}],attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.row)}}},[e._v("查看")]):a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail/3882",expression:"'musicGroupPaymentCalender/auditListDetail/3882'"}],attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.row)}}},[e._v("查看")]),e._v(" "),e.$listeners.lookUserList?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(a){return e.$listeners.lookUserList(t.row)}}},[e._v("学员列表")]):e._e(),e._v(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(a){return e.$listeners.commmitGetMoney(t.row)}}},[e._v("确认收款")]):e._e(),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"STUDENT"===e.payUserType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$listeners.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.$listeners.onPreview&&"STUDENT"===e.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.permission("musicGroup/findMusicGroupSubjectInfo/966")&&e.permission("studentRegistration/getSubjectGoodsAndInfo/967")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$listeners.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")])],1)],1)},s=[],n=(a("96cf"),a("1da1")),r=a("1cc7"),o=(a("1672"),a("3908"),a("333d")),c=a("ec8a"),l={props:["batchNo","teamStatus","teamType","payUserType","isNewGropu"],components:{pagination:o["a"]},data:function(){return{list:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{permission:c["a"],getList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(r["rb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},u=l,p=(a("5513"),a("2877")),m=Object(p["a"])(u,i,s,!1,null,"3970826a",null);t["a"]=m.exports},ea49:function(e,t,a){"use strict";a("11f5")},ebfc:function(e,t,a){"use strict";a("22f6")},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));var i=a("ade3"),s=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),n=a.n(s);var r=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):{}}},f089:function(e,t,a){"use strict";a("054c")},f57c:function(e,t,a){"use strict";a("da26")},f610:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,"save-key":"resetPayListSchool",model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add/4359",expression:"'musicGroupPaymentCalender/add/4359'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("\n 新建学校缴费\n ")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("\n 学员缴费设置\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("auditType")(t.row.auditStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",prop:"courseCurrentPrice",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice:t.row.courseCurrentPrice))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage/3881",expression:"'musicGroupPaymentCalender/queryPage/3881'"}],attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd/4360",expression:"'musicGroupPaymentCalenderDetail/batchAdd/4360'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},["FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.auditStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),!e.teamStatus||"REJECT"!==t.row.auditStatus&&"DRAFT"!==t.row.auditStatus?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update/3883",expression:"'musicGroupPaymentCalender/update/3883'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]),e._v(" "),e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/delByBatchNo/3925",expression:"'musicGroupPaymentCalender/delByBatchNo/3925'"}],attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"resetPayListSchool",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?a("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"SCHOOL",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookUserList:e.lookUserList,lookDetail:e.lookDetail,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"查看缴费用户列表",visible:e.userListVisible,width:"850px"},on:{"update:visible":function(t){e.userListVisible=t}}},[e.userListVisible&&e.viewDetail?a("schoolPayUserList",{attrs:{detail:e.viewDetail}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive,changePaymentType:e.changePaymentType}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?a("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"确认收款",visible:e.getMoneyVisible,width:"600px"},on:{"update:visible":function(t){e.getMoneyVisible=t}}},[a("isGetMoney",{ref:"getMoney",attrs:{data:e.activeRow},on:{close:e.closeMoney}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.getMoneyVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitGetMoney}},[e._v("确 定")])],1)],1)],1)},s=[],n=(a("a481"),a("5530")),r=(a("96cf"),a("1da1")),o=a("333d"),c=a("5a0c"),l=a.n(c),u=a("641c"),p=a("61f7"),m=a("1cc7"),d=a("d349"),h=a("b38b"),f=a("1672"),y=a("b3d0"),v=a("940a"),b=a("e623"),g=a("86e8"),_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"学生编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.FetchList(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.storeState.sounds,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.FetchList}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchDel",expression:"'musicGroupPaymentCalenderDetail/batchDel'"}],attrs:{type:"primary",disabled:!e.activeChiose.length},on:{click:e.deleteUser}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"100",align:"center",prop:"studentId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?a("div",[a("copy-text",[e._v(e._s(t.row.sysUser.username))])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员声部"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"100%",text:e.row.studentRegistration&&e.row.studentRegistration.subjectName}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.studentRegistration?a("div",[e._v("\n "+e._s(e._f("studentTeamStatus")(t.row.studentRegistration.musicGroupStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"130",align:"center",prop:"studentId",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?a("div",[a("copy-text",[e._v(e._s(t.row.sysUser.phone))])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"110",align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}})],1)},S=[],w=a("704d"),T={search:"",subjectId:""},x={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(n["a"])({},T),list:[],activeChiose:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{storeState:function(){return w["a"].state}},mounted:function(){this.detail&&(w["a"].dispatch("getFindSound",{data:{musicGroupId:this.detail.musicGroupId}}),this.FetchList())},methods:{handleSelectionChange:function(e){this.activeChiose=e},onReSet:function(){this.searchForm=Object(n["a"])({},T),this.FetchList()},deleteUser:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除选中学员?","提示",{type:"warning"});case 3:return e.next=5,Object(m["B"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["Xb"])(Object(n["a"])({id:this.detail.id,page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:t=e.sent,this.rules.total=t.data.total,this.list=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}()}},k=x,P=a("2877"),C=Object(P["a"])(k,_,S,!1,null,"4d351015",null),D=C.exports,I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"moneyForm",attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)],1)},F=[],O={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(a){var i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}return i=t.data.id,s=t.form.memo,e.prev=3,e.next=6,Object(f["d"])({id:i,memo:s});case 6:e.sent,t.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.$emit("close")}}},L=O,E=Object(P["a"])(L,I,F,!1,null,"4b111bac",null),$=E.exports,A=a("cd32"),R=a("3762"),j=a("267e"),N=a("ed08"),G=a("92e3"),V={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:A["a"],reviewDetail:R["a"],teamType:"","pay-items":b["a"],schoolPayUserList:D,isGetMoney:$},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,userListVisible:!1,itemsVisible:!1,teamType:this.$route.query.type,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",payOrderTypeLists:G["y"],getMoneyVisible:!1,baseInfo:null,paymentType:""}},created:function(){},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.paymentType="PRE_BUILD_FEE"==this.team_status?0:1,e.prev=1,e.next=4,Object(d["r"])({rows:9999});case 4:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](1);case 10:this.init();case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(N["b"])(j["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["c"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getTeamInfo(),this.getList();case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),getTeamInfo:function(){var e=this;this.$route.query.id&&Object(m["Ob"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code&&(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo))}))},newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},changePaymentType:function(e){this.paymentType=e},newSchoolPay:function(){var e,t;2!=(null===(e=this.baseInfo)||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.courseViewType)||"PRE_BUILD_FEE"!=this.team_status?(this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0):this.$message.error("会员缴费乐团无法创建学校缴费")},getList:function(){var e=this,t=this.$route.query.id;return Object(h["c"])({page:this.rules.page,rows:this.rules.limit,search:t,payUserType:"SCHOOL",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){2===e&&(this.payForm.paymentValidEndDate=null)},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(p["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.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:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),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(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["A"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookUserList:function(e){console.log(Object(n["a"])({},e)),this.viewDetail=Object(n["a"])({},e),this.userListVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},removeBatchNo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(f["f"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(f["g"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(m["sc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getTeamInfo(),e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,i=new Date(a.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var s=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return s},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:this.getTeamInfo(),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}(),commmitGetMoney:function(e){this.activeRow=e,this.getMoneyVisible=!0},submitGetMoney:function(){this.$refs.getMoney.submitGetMoney()},closeMoney:function(){this.getMoneyVisible=!1,this.getList()},revoke:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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:return e.next=5,Object(f["l"])({batchNo:t.batchNo});case 5:e.sent,this.$message.success("取消审批成功"),this.getList(),this.getTeamInfo(),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},U=V,M=(a("5f1a"),Object(P["a"])(U,i,s,!1,null,"6606d6b4",null));t["a"]=M.exports},f8e4:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAABQCAYAAAB8racIAAAAAXNSR0IArs4c6QAABrFJREFUaAXNWk1sG0UUfrO7duLEiR0ndtZWG/9VHJC4IAECDoBUBEj8hRbUqoIifoSAC3CAAxzgAAc4wAXEBamqVFHRPwESHACpHOAGBxA9QOPEJbE3jp3Y8f/fDu+tu9XaxK7t7DodyZrZmfF737755u17swuxuPIi3Ajl8nKiEvs3efteYxEQwJja5OcuK4pvL8EIjnE7AId9UOZfcc6lvQIjzHtnQJJE1M/viV1JfrRnQERRABnBMMaAq/Da0rJydC/AMFwOToq38yXYyOQQEJSYKN4Z2T//xygBEVm1Mj01AfRDWBNqUz0fj2dn9LFR1NeAkLI5jwvGxmxIFx5t8PIpNFbbuJWA2hThsoDs8wDxBkE8tBxff89K5UbZ1zhi7CxXapBc36QuzgT2eGRB/sY4bkV7RyCkKLddhPTmNrbYNrNJt0X3ef+2AoAus21p9E6qXdOT4Jx0YItP80bjQiqVchrHzW53BUKKfHMusNs18t6cLzVPmK3cKK8nEHJysm8GREEj76GlePIt45/NbHfliFFJqVwFJbVFXU1gwoPR4PyPxnEz2j0toiuYcIzBjMtJW1rkvHk6lkgE9TGz6r6AkLIZtxMmJ8aRuzCr1uD88jLHC/NK30BIpW/ODTYbRgocbuWgfG4eDICBgAhCi7wCklcFfjy2knzVLDB9kbVTWbFUuUpeVgdBuO9AcP6XzjmDXg9kEV04ccWN5MU1sjGunllZ2fDrY8PWQwEhZbMzU+DA3YQ7yd+A+lms0fMNX4YGQiplr7sVZnK4C9OST4aHMSBZOxURacnzamEm569cjiePd87p93oosnYKzxfKkEpnKcysiGC7OxTy/t4553rXu1oaXfiU06E9rTHMHG/yxvnV1e1Zfazf2hQgpGzOMw3jmCNx4MFqo3CaHgf9gqB5pgEhYZSWSKKIOwkOxlaUD6iv32IKR4zKKtU6JJQMbWv0dezJSNB/1jjerW06EFKUwxwpjTkSsrdgY3BHMOi/1A2A3m/q0uhCXZgfTTkn0PFyZ0PlF5Y2N136WLfaEiCkzDvbypEwjbyJ56oncakwWeleLAOi5UhIXsqR0DSPLsWVd7rDwFVEpFru22vSbsYMOZKKch6Jhvzf7STPMovoyuj8xeOeol2EuvipK1fWo/qYsbYcCClzuyhHGif/4q431QuJBEcmt5eRACGVFGba7RJ53lvKNeWLdhgme9ZO4cZrLUfyetDJaTnSkaWVxBtt41aT1aiM2sVSFdY3ttAy0BA53B8O+y9S/8iWhpT1KiM9RazXm1rcQh4Dvdub4XDgog7Ocj+iKyLlq8k01GoNiuhOoz9pOzQc2dJQBKeBAPanwy4/rwPU65EsTTZXhEKxQqFk1iYIi4EAK+kA9NpyIOTiN7N5Wg5y8ccWFuaXdOXG2tKlaTSara2K/MDt+m635wwBsoysqBvWlDRUMWJjwL6NhOTH0CrYu3OxzCJ0it0CAf+Aa+zpXiAImiUcoVAxX0A+YqgoMVgMejwYN/YupluEgueMdiyKbpvBcxiv/tUbQmvUVCDNpgrreNbW8pzsQ4zgz/QDguaYStY1TCMquF2RDz9FgvIDWDf7BWKaRdKZ7RYIYHGHffLIICAIrClkpSQ8ly+S56xwxg8FAtPpfi2hz9u1Raq1uvbCiQRixvDygWDgN134IPWuLKKqqnaWppGTsc/Qc54YRLlx7q7ISq9S6FQaXeev0aD/XuRF3Sh8kPbQFsls5TUQqFwRQTq8GxAEeCggdLyZzRXw76yOb5YOh4Le5CB3v9PcgYHU6g0M91oeGz3n6xETzlgJ2EC7RlXx4Bs9J5EUrXEyEvJ/utPdDdM3EBAK9+poESTn7yLILw2jsNt/+l6arWwBc5IKgcgIdngiHGB4YV7pCwht0S0kJ7ltxoSjkcB83DwILUnXXZo6hnupjaz2REVrvI3k/MFsECSvp0Mjj7mWzAC5cbTGOfSch60AQTJ7WoS2KYFAFJemJsRn6Q9Wla4coRfQhWIZ9eILaEla9Pm85MEsKzsCoVyEXDguB8ez0mfCFr8Fp7v739I0KNyjYwPkB6YB74cX5K8tM4NBcBtZKRehU+NKVQv3vsdw72G0CrlRy0ubRdKbOQ0ErklMYo5jowJBd3mNI/RpD/0w3MNPe4TF4H639urbclNcVaBZhDKy1ica2MuFF0b9fRFhkSgXUXRyMuHjaEj+8irIkVZsLZnmtF3RX/yMIA4iL/DxOvoiaSAYrMI4e2qvQNBtE1mrgsgORWQ5NXo7GDTeKJ+R/gf1jqv318FwQAAAAABJRU5ErkJggg=="},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 r})),a.d(t,"d",(function(){return o}));var i=a("5530"),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(),r=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),c=n+"-"+r+"-"+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),r=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),l=r+"-"+o+"-"+c;return l},r=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)})}},fbcf:function(e,t,a){"use strict";a("68bd")},fc1a:function(e,t,a){"use strict";a("ba30")},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=[],r=a("5530"),o=(a("7f7f"),a("6762"),a("2fdb"),a("5df3"),a("4f7f"),a("2909")),c=(a("456d"),a("28a5"),a("ac6a"),a("96cf"),a("1da1")),l=a("ade3"),u=(a("4360"),a("fa7d"),a("1cc7")),p=(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)])}),m=[],d={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=d,f=(a("e323"),a("2877")),y=Object(f["a"])(h,p,m,!1,null,"6021a80f",null),v=y.exports,b=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 bigFlex"},[a("div",{staticClass:"chioseWrap"},[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:"chioseWrap"},[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:"chioseWrap"},[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("div",{staticClass:"chioseWrap"},[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.basdisabled||0!=i?e._e():a("i",{staticClass:"el-icon-circle-plus-outline marginLeft10 iconStyle",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:e.addMusic}}),e._v(" "),e.item.chioseMusic.length>1&&!e.basdisabled&&(t.type.includes("LEASE")||t.type.includes("GROUP"))?a("i",{staticClass:"el-icon-remove-outline marginLeft10 iconStyle",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)})),0)},g=[],_={props:["item","basdisabled","activeSoundList"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){this.item.chioseMusic.length<1&&this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:!1})},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)}}},S=_,w=(a("47b0"),Object(f["a"])(S,b,g,!1,null,"2087e2e7",null)),T=w.exports,x=a("2ef0"),k=(a("6612"),i={components:{chioseSoundList:v,chioseMusic:T},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(l["a"])(e,"soundList",[]),Object(l["a"])(e,"childSoundList",[]),Object(l["a"])(e,"teamStatus",""),Object(l["a"])(e,"checkList",[]),Object(l["a"])(e,"basdisabled",!1),Object(l["a"])(e,"teamid",""),Object(l["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(l["a"])(i,"deactivated",(function(){this.activeSoundList=[]})),Object(l["a"])(i,"methods",{setStore:function(){localStorage.setItem("".concat(this.teamid,"sound"),JSON.stringify(this.activeSoundList))},init:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0: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,t=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"sound"))),Object(u["Cb"])({tenantId:1}).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(i){var s,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=i.code){e.next=13;break}if(a.soundList=i.data.rows,!t||null===(s=t[0])||void 0===s||!s.id){e.next=12;break}return a.activeSoundList=t,n=[],a.activeSoundList.forEach((function(e){n.push(e.id)})),a.chioseActiveSound=n,a.activeSound=n,e.next=10,a.changeActiveSound(n.join(","));case 10:e.next=13;break;case 12:"newTeam"==a.teamStatus?a.getDefaultSubject():(a.teamid=a.$route.query.id,a.teamid&&Object(u["J"])({musicGroupId:a.teamid}).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var i,s,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=t.code){e.next=12;break}if(!((null===(i=t.data)||void 0===i||null===(s=i.musicGroupSubjectPlans)||void 0===s?void 0:s.length)>0)){e.next=11;break}return r=[],a.activeSoundList=null===(n=t.data)||void 0===n?void 0:n.musicGroupSubjectPlans.map((function(e){return r.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),a.activeSound=r,a.chioseActiveSound=r,t.data.musicGroupSubjectGoodsGroups.forEach((function(e){var t=Object(x["findIndex"])(a.activeSoundList,(function(t){return t.id==e.subjectId}));if(-1!=t)if("ACCESSORIES"==e.type)e.goodsIdList.split(",").forEach((function(e){a.activeSoundList[t].markChioseList.push(parseInt(e))}));else if("INSTRUMENT"==e.type){var i=Object.keys(JSON.parse(e.kitGroupPurchaseTypeJson));a.activeSoundList[t].chioseMusic.push({musical:parseInt(e.goodsIdList),type:i,groupPrice:e.price,borrowPrice:e.depositFee,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)})}})),e.next=9,a.changeActiveSound(r.join(","));case 9:e.next=12;break;case 11:a.getDefaultSubject();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Object(u["Hb"])({tenantId:1}).then((function(e){200==e.code&&(a.childSoundList=e.data)}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDefaultSubject:function(){var e=this,t=this.topfor.type,a=this.topfor.section;Object(u["fb"])({chargeTypeId:t,organId:a,number:1}).then(function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(a){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(200!=a.code){t.next=7;break}return i=[],e.activeSoundList=a.data.map((function(t){return i.push(t.id),e.initSound(t)})),e.activeSound=i,e.chioseActiveSound=i,t.next=7,e.changeActiveSound(i.join(","));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},lookCheck:function(e){this.checkList=Object(o["a"])(new Set(e))},chioseSound:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var a,i,s,n,r,c,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in this.activeSound=Object(o["a"])(new Set(t)),a=[],this.childSoundList)this.activeSound.includes(this.childSoundList[i].id)&&a.push(this.initSound(this.childSoundList[i]));for(n in s=this.activeSoundList.map((function(e){return e.id})),a)c=s.indexOf(null===(r=a[n])||void 0===r?void 0:r.id),c>-1&&(a[n]=this.activeSoundList[c]);return this.activeSoundList=a,l=[],this.activeSoundList.forEach((function(e){l.push(e.id)})),this.activeSound=l,this.chioseActiveSound=l,e.next=12,this.changeActiveSound(l.join(","));case 12:this.soundVisible=!1;case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),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(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u["Ib"])({subjectIds:t,chargeTypeId:this.topfor.type,musicGroupId:this.teamid,courseViewType:this.topfor.courseViewType}).then((function(e){if(200==e.code&&e.data){var t=Object.keys(e.data);a.activeSoundList.forEach((function(a){if(-1!=t.indexOf(a.id+"")){var i=[],s=[];e.data[a.id].forEach((function(e){"INSTRUMENT"==e.type?i.push(e):"ACCESSORIES"==e.type&&s.push(e)})),a.goodsList=i,a.markList=s}})),a.checkShopAndMark()}})));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),lookMusic:function(){},checkShopAndMark:function(){this.$helpers.lodash;var e=[],t=!1;this.activeSoundList.forEach((function(a){for(var i=a.markList.map((function(e){return e.id})),s=a.goodsList.map((function(e){return e.id})),n=0;n<a.markChioseList.length;n++)!i.includes(a.markChioseList[n])&&a.markChioseList[n]&&(e.push(a.markChioseList[n]),t=!0,a.markChioseList.splice(n--,1));for(var r=0;r<a.chioseMusic.length;r++)!s.includes(a.chioseMusic[r].musical)&&a.chioseMusic[r].musical&&(e.push(a.chioseMusic[r].musical),t=!0,a.chioseMusic[r].musical=null,a.chioseMusic[r].groupPrice=null)})),t&&this.$message.error("{".concat(e.join(","),"}商品已失效,请联系仓库主管")),this.$set(this,"activeSoundList",this.activeSoundList)},checkSubmit:function(){var e=this,t=!0;return this.activeSoundList.length<=0?(this.$message.error("请至少设置一个声部"),void(t=!1)):(this.activeSoundList.forEach((function(a){var i;return a.expectedStudentNum?null!==(i=a.chioseMusic[0])&&void 0!==i&&i.musical?void a.chioseMusic.forEach((function(i){-1!=i.type.indexOf("LEASE")&&(!i.borrowPrice||parseFloat(i.borrowPrice)<=0)&&(e.$message.error("请填写正确的".concat(a.sound,"租赁押金")),t=!1)})):(e.$message.error("请选择".concat(a.sound,"的可选乐器")),void(t=!1)):(e.$message.error("请填写".concat(a.sound,"的预计招生人数")),void(t=!1))})),t)},submitInfo:function(e){var t=this,a=this.checkSubmit();if(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,r=t.groupPrice;a=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(x["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:r,groupRemissionCourseFee:a};i.musicGroupSubjectGoodsGroups.push(l)}})),e.markChioseList.forEach((function(t){var a=Object(x["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(u["Vc"])(i).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))})).catch((function(){})):Object(u["Vc"])(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(r["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(l["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),P=k,C=(a("808a"),Object(f["a"])(P,s,n,!1,null,"29ec992b",null));t["a"]=C.exports}}]);