1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65903cf3"],{"04bb":function(e,t,a){},"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)},r=[],s=(a("6b54"),a("a481"),a("96cf"),a("3b8d")),n=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"),y=a("b3d0"),f=a("940a"),b=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)},v=[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("ac4d"),a("8a81"),a("ac6a"),a("db72")),_=a("a8db"),S=a("ace5"),w=a("b133"),T=a("ed08"),x={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},k={components:{memberSetting:S["a"],otherform:w["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(s["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(s["a"])(regeneratorRuntime.mark((function e(){var t,a,i,r,s,n,o,c,l,u,p,m,d,y;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t=this.getForms(),a=[],i=!0,r=!1,s=void 0,e.prev=5,n=function(){var e=c.value;e.validate((function(t){t&&a.push(e)}))},o=t[Symbol.iterator]();!(i=(c=o.next()).done);i=!0)n();e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](5),r=!0,s=e.t0;case 14:e.prev=14,e.prev=15,i||null==o.return||o.return();case 17:if(e.prev=17,!r){e.next=20;break}throw s;case 20:return e.finish(17);case 21:return e.finish(14);case 22:if(a.length!==t.length){e.next=53;break}if(u=Object(g["a"])({musicGroupId:this.musicGroupId},this.memberForm,{},this.other,{paymentType:x[0==this.paymentType?this.paymentType:0],paymentPattern:1,payUserType:"user"===this.type?"STUDENT":"SCHOOL",musicGroupPaymentDateRangeList:[Object(g["a"])({},Object(T["a"])(this.memberForm.paymentDate,["startPaymentDate","deadlinePaymentDate"]))]}),u.paymentDate,p=Object(_["a"])(u,["paymentDate"]),null===(l=this.rowDetail)||void 0===l?void 0:l.batchNo){e.next=38;break}return e.prev=25,e.next=28,Object(h["e"])(p);case 28:m=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(m.data),e.next=36;break;case 34:e.prev=34,e.t1=e["catch"](25);case 36:e.next=53;break;case 38:return p.batchNo=this.rowDetail.batchNo,p.paymentType=null===(d=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===d?void 0:d.paymentType,console.log(p),e.prev=41,e.next=44,Object(h["h"])(p);case 44:y=e.sent,this.$listeners.close(),this.$listeners.submited(y.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:merge(this.$route.query,{type:"feeAudit"})}),e.next=53;break;case 50:e.prev=50,e.t2=e["catch"](41),console.log(e.t2);case 53:case"end":return e.stop()}}),e,this,[[5,10,14,22],[15,,17,21],[25,34],[41,50]])})));function t(){return e.apply(this,arguments)}return t}()}},P=k,D=(a("46a2"),a("2877")),C=Object(D["a"])(P,b,v,!1,null,"a9513aea",null),F=C.exports,O=a("e623"),I=a("86e8"),$=a("cd32"),L=a("3762"),V=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,r){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==r?"":"、"))])])})),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,r){return i("span",{key:a.id,staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+" "+e._s(t.childGoodsList.length-1==r?"":","))])})),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)},E=[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")])}],G=(a("c5f6"),a("456d"),a("7f7f"),a("ec8a")),R={0:"按月",1:"按学期",2:"一次性"},N={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(s["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["Wb"])().then((function(e){var t=e.data;200==e.code&&(a.chargeTypeList=t.rows||[])}));case 3:return e.next=5,Object(p["Mb"])(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 r=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null,s=i.memberPrivilegesItemList?i.memberPrivilegesItemList:[],n=[];if(s.forEach((function(e){e.memberPrivilegesItems&&e.memberPrivilegesItems.length>0&&e.memberPrivilegesItems.forEach((function(e){n.push(e.name)}))})),a.toolsPackage=[{isStatus:!0,name:"练习系统(六个月)",childGoodsList:[{name:n.join("、")}]}],r&&r.length>0){var o={courseCurrentPrice:0,courseOriginalPrice:0,courseType:null,name:"器乐练习系统"};r.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=r}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 r=Object.assign({},e);r.marketPrice=r.goodsList[0].marketPrice,r.kitType=i,r.coupon=t[i],l.id?(r.checked=!1,"GROUP"==i?("GROUP"==l.kitType&&l.price<r.price||"LEASE"==l.kitType||"FREE"==l.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,l={id:r.id,price:r.price,kitType:i}):"LEASE"==i?"LEASE"==l.kitType&&l.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,l={id:r.id,price:r.price,kitType:i}):"FREE"==i&&"FREE"==l.kitType&&l.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,l={id:r.id,price:r.price,kitType:i})):(r.checked=!0,l={id:r.id,price:r.price,kitType:i});var s=[];r.childGoodsList&&r.childGoodsList.length>0&&(r.childGoodsList.forEach((function(e){"INSTRUMENT"!=e.type&&"OTHER"!=e.type&&s.push(e.name)})),r.childGoodsNames=s.join("、")),a.instrumentResult.push(r),u.push(r)};for(var r in t)i(r)}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,r=0,s=0,n=0,o={},c=[],l=0,u=[],p=0,m=0,d=0,h=0,y=0,f=0,b="",v=this.musicGroupSubject,g=this.courseInfo;if(2==this.courseViewType&&this.toolsPackage[0].isStatus){var _=this.cloudTeacherFee;m+=parseFloat(_),r+=parseFloat(_)}if(v){var S=this.courseShowInfo;if(S.length>0&&1==this.courseViewType){var w=0;S.forEach((function(e){w+=parseFloat(e.courseCurrentPrice)})),r+=parseFloat(w),t.unshift({name:this.chargeTypeName,type:R[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?r+=parseFloat(t.courseCurrentPrice):f+=parseFloat(t.courseCurrentPrice),0!=e.courseViewType||t.isStudentOptional||(r+=parseFloat(t.courseCurrentPrice)))}))}var T=this.instrumentResult;T.length>0&&T.forEach((function(e){e.checked&&("自备乐器"!=e.name&&(b+=e.goodsIdList),"FREE"==e.kitType?(i+=0,l=0):"LEASE"==e.kitType?(l=e.coupon,"自备乐器"!=e.name?(i+=e.depositFee,s+=e.depositFee):i+=0):(i+=parseFloat(e.price),s+=parseFloat(e.price),l=e.coupon?e.coupon:0),"LEASE"==e.kitType?"自备乐器"!=e.name&&(r+=parseFloat(e.marketPrice),n+=e.depositFee):(r+=parseFloat(e.marketPrice),n+=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-f)))})),this.leBaoStatus&&this.buyMaintenance&&(r+=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:R[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){y+=parseFloat(e.marketPrice),r+=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(r.toFixed(2)),groupPurchasePrice:x,couponPrice:l,goodsGroupIds:o,goodsIds:u.join(","),contractGoodsIds:b,courseKeys:c,musicClassFee:m,musicMarketClassFee:d,accessMarketPrice:y,accessPrice:h,goodsPrice:s,goodsMarketPrice:n}},permission:function(e){return Object(G["a"])(e)}}},j=N,A=(a("1f83"),Object(D["a"])(j,V,E,!1,null,"1b9cf12d",null)),U=A.exports,M=a("267e"),q=a("92e3"),B={props:["isNewGropu"],components:{pagination:n["a"],setStudentFee:y["default"],userPayForm:f["a"],memberPayForm:F,schoolPayForm:I["a"],QrCode:l["a"],review:$["a"],reviewDetail:L["a"],"pay-items":O["a"],subjectPreview:U},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(s["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(T["b"])(M["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(s["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["Qb"])({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(s["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(s["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["B"])({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(s["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["uc"])({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 r=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return r},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(s["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(s["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["K"])({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())}}},z=B,Y=(a("d756"),Object(D["a"])(z,i,r,!1,null,"67f36eb4",null));t["a"]=Y.exports},"0e6e":function(e,t,a){"use strict";var i=a("b9a0"),r=a.n(i);r.a},"160b":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var i=a("b775"),r=a("829b"),s="/api-web";function n(e){return Object(r["a"])({url:s+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(i["a"])({url:s+"/chargeType/queryPage",method:"get",params:e})}},1842:function(e,t,a){},"1e55":function(e,t,a){},"1f83":function(e,t,a){"use strict";var i=a("c503"),r=a.n(i);r.a},"1fe7":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("h2",[a("el-page-header",{attrs:{content:e.teamName},on:{back:e.onCancel}})],1),e._v(" "),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",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.goHome}},[e._v("确定")])],1)],1)},r=[],s=(a("96cf"),a("3b8d")),n=(a("7f7f"),a("070d")),o=a("f610"),c=a("ec8a"),l=a("1cc7"),u={name:"createPayment",components:{resetPayList:n["a"],resetPayListSchool:o["a"]},data:function(){var e=this.$route.query;return{teamName:e.name,musicGroupId:e.id,activeIndex:"1",baseInfo:{}}},mounted:function(){this.getList()},methods:{permission:c["a"],handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(l["Qb"])({musicGroupId:this.musicGroupId}).then((function(e){200==e.code&&(t.baseInfo=e.data)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),goHome:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})}}},p=u,m=a("2877"),d=Object(m["a"])(p,i,r,!1,null,null,null);t["default"]=d.exports},"23d2":function(e,t,a){"use strict";var i=a("f07e"),r=a.n(i);r.a},"2a17":function(e,t,a){"use strict";var i=a("5ece"),r=a.n(i);r.a},3078:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n})),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"),r=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},s=function(e){return Object(i["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=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"},"46a2":function(e,t,a){"use strict";var i=a("c3f8"),r=a.n(i);r.a},5135:function(e,t,a){},"51bf":function(e,t,a){"use strict";var i=a("c781"),r=a.n(i);r.a},"54e9":function(e,t,a){},"5e28":function(e,t,a){"use strict";var i=a("54e9"),r=a.n(i);r.a},"5ece":function(e,t,a){},6193:function(e,t,a){"use strict";var i=a("aa6f"),r=a.n(i);r.a},"6aca":function(e,t,a){"use strict";var i=a("1842"),r=a.n(i);r.a},7204: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)])])},r=[],s=(a("1cc7"),a("80b0")),n=a("bc3a"),o=a.n(n),c=a("4328"),l=a.n(c),u=a("5f87"),p=a("3908"),m={components:{teambaseinfo:s["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 r=URL.createObjectURL(a),s=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+"订货清单.xls";s.href=r,s.setAttribute("download",c),document.body.appendChild(s),s.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 r=URL.createObjectURL(a),s=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+"分发清单.xls";s.href=r,s.setAttribute("download",c),document.body.appendChild(s),s.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},d=m,h=(a("f4eb"),a("2877")),y=Object(h["a"])(d,i,r,!1,null,"99a6338e",null);t["a"]=y.exports},"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)])},r=[],s=(a("28a5"),a("a481"),a("ac6a"),a("7f7f"),a("96cf"),a("3b8d")),n=a("bd86"),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"),y=a("92e3"),f=a("61f7"),b=a("879d"),v={components:{mergeMusic:b["a"],qrCode:h["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(n["a"])({classStatus:y["g"],courseViewTypeList:y["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(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,r=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(s["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,r.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(r.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?void 0:i.section)this.topFrom=i,(null===(a=this.topFrom)||void 0===a?void 0:a.section)&&this.getBaseList(this.topFrom.section);else Object(o["Qb"])({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 r,s=JSON.parse(localStorage.getItem("newTeambase"));s?this.topFrom=s:this.topFrom,(null===(r=this.topFrom)||void 0===r?void 0:r.section)&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["hb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Wb"])({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(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,r,s,n=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&&(n.cooperationList=e.data)})),Object(d["r"])({organId:t}).then((function(e){200==e.code&&(n.addList=e.data)})),Object(c["b"])().then((function(e){200==e.code&&(n.technician=e.data)})),e.prev=3,e.next=6,Object(o["R"])({organId:t});case 6:s=e.sent,this.educationList=null===s||void 0===s||null===(a=s.data)||void 0===a?void 0:a.EDUCATION,this.bossList=null===s||void 0===s||null===(i=s.data)||void 0===i?void 0:i.TEAM_TEACHER,this.transactionList=null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.TRANSACTION,e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](3),console.log(e.t0);case 15:Object(o["Ob"])({organId:t}).then((function(e){200==e.code&&(n.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(s["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,r){i.$refs["topinfo"].validate(function(){var r=Object(s["a"])(regeneratorRuntime.mark((function r(s,n){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(s){r.next=5;break}i.$message.error("请填写建团必要参数"),e(!1),r.next=16;break;case 5:if(i.$store.dispatch("topinfo",i.topFrom),"teamAudit"!=i.teamStatus){r.next=10;break}i.$emit("handleClick",{name:"2"}),r.next=16;break;case 10:return i.$emit("getName",i.topFrom.name),r.next=13,i.resetSubmit(t);case 13:a=r.sent,console.log(a,"tempStatus"),e(a);case 16:case"end":return r.stop()}}),r)})));return function(e,t){return r.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(s["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 r=Object(s["a"])(regeneratorRuntime.mark((function r(n,c){var l,p;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n){r.next=5;break}a.$message.error("请填写必要参数"),i(),r.next=26;break;case 5:l=null,r.t0=a.teamStatus,r.next="resetTeam"===r.t0?9:"newTeam"===r.t0?11:"teamList"===r.t0?13:"teamDraft"===r.t0?15:17;break;case 9:return l="PROGRESS",r.abrupt("break",17);case 11:return l="DRAFT",r.abrupt("break",17);case 13:return l=null,r.abrupt("break",17);case 15:return l="DRAFT",r.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){r.next=25;break}return r.next=22,Object(o["Ac"])(p).then(function(){var i=Object(s["a"])(regeneratorRuntime.mark((function i(r){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:200==r.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 r.abrupt("return",r.sent);case 25:Object(o["A"])(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 r.stop()}}),r)})));return function(e,t){return r.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["Gb"])(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["dc"])({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["G"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Qb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["F"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Qb"])({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(f["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(f["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(f["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&&(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=v,_=(a("6193"),a("a25b"),a("2877")),S=Object(_["a"])(g,i,r,!1,null,"c989d952",null);t["a"]=S.exports},"86e8":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},r=[],s={},n=s,o=a("2877"),c=Object(o["a"])(n,i,r,!1,null,"9c96b440",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)},r=[],s=(a("96cf"),a("3b8d")),n=a("db72"),o=(a("ac4d"),a("8a81"),a("ac6a"),a("456d"),a("160b")),c=a("3078"),l=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)},u=[],p=(a("386d"),a("7f7f"),a("333d")),m={props:["visible","organId"],components:{pagination:p["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(s["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(o["b"])(Object(n["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)}}},d=m,h=(a("d2c0"),a("2877")),y=Object(h["a"])(d,l,u,!1,null,"02979835",null),f=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)},v=[],g=(a("6762"),a("2fdb"),a("1672")),_={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(s["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(g["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}()}},S=_,w=Object(h["a"])(S,b,v,!1,null,null,null),T=w.exports,x=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)},k=[],P=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(s["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(c["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(s["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(P["Ub"])({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}()}},C=D,F=Object(h["a"])(C,x,k,!1,null,null,null),O=F.exports,I={props:["organId"],components:{selectMusic:f,selectItem:T,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=!0,i=!1,r=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done);a=!0){var c=s.value;t[c.id]?t[c.id]=Object(n["a"])({},t[c.id],{},c):t[c.id]=Object(n["a"])({},c,{num:0})}}catch(l){i=!0,r=l}finally{try{a||null==o.return||o.return()}finally{if(i)throw r}}this.items=t},remove:function(e){var t=Object(n["a"])({},this.items),a=Object(n["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(n["a"])({},t),this.studentsByMusicId=Object(n["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(s["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(c["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(s["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(o["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}()}},$=I,L=(a("23d2"),Object(h["a"])($,i,r,!1,null,"0efb73d2",null));t["a"]=L.exports},"8a98":function(e,t,a){"use strict";var i=a("1e55"),r=a.n(i);r.a},9214:function(e,t,a){e.exports=a.p+"static/img/yunTrain_small_bg.b5242407.png"},"92c6":function(e,t,a){"use strict";var i=a("5135"),r=a.n(i);r.a},"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)},r=[],s=a("a8db"),n=(a("6762"),a("2fdb"),a("75fc")),o=a("db72"),c=(a("96cf"),a("3b8d")),l=(a("ac4d"),a("8a81"),a("ac6a"),a("d349")),u=(a("1cc7"),a("1672")),p=a("267e"),m=a("ed08"),d=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)},h=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail","courseViewType"],mounted:function(){},watch:{paymentType:function(){}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},f=y,b=(a("2a17"),a("2877")),v=Object(b["a"])(f,d,h,!1,null,"5d22ac1f",null),g=v.exports,_=a("7a3c"),S=a("0464"),w=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)},T=[],x=a("92e3"),k=a("6612"),P=a.n(k),D=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:p["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(m["b"])(p["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(x["b"])(x["h"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return P()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(a,i,r){var s=t.list.form[e].courseType;s&&i>1&&t.classTimeList[s]&&i<t.classTimeList[s]?r(new Error("单节课不得少于".concat(t.classTimeList[s],"分钟"))):r()}}}}),C=D,F=(a("c805"),Object(b["a"])(C,w,T,!1,null,"6152cc08",null)),O=F.exports,I=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)},$=[],L={data:function(){return{list:[]}},methods:{submit:function(){}}},V=L,E=(a("0e6e"),Object(b["a"])(V,I,$,!1,null,"68a822a5",null)),G=E.exports,R=a("b133"),N=a("ace5"),j=(a("73b3"),a("7676")),A=a.n(j),U=a("5a0c"),M=a.n(U),q={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},B={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:g,paymentCycle:_["a"],extraClass:S["a"],extraClassUser:O,classrooms:G,otherform:R["a"],memberSetting:N["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(m["b"])(p["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=!0,a=!1,i=void 0;try{for(var r,s=this.charges[Symbol.iterator]();!(t=(r=s.next()).done);t=!0){var n=r.value;e[n.id]=n}}catch(o){a=!0,i=o}finally{try{t||null==s.return||s.return()}finally{if(a)throw i}}return e},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,r=i.musicGroupPaymentCalenders;i.auditDto;t=null===(a=r[0])||void 0===a?void 0:a.paymentType,e=r.length>1||"ADD_COURSE"!=t,e&&(this.cycles=r.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(u["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,r,s,n,c,l,p,m,d,h,y=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===(r=i.musicGroup)||void 0===r?void 0:r.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(s in q)q.hasOwnProperty(s)&&(n=q[s],n===this.rowDetail.paymentType&&(this.$emit("changePaymentType",s),this.$set(this.form,"leixing",s+"")));return this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),e.prev=8,e.next=11,Object(u["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!==y.paymentType})),this.eclassuser=m.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===y.paymentTypeString?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?void 0:l.musicGroupOrganizationCourseSettingsId)&&(this.isSetCourseSettingsId=!0),this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(p=m.data.auditDto)||void 0===p?void 0:p.musicGroupOrganizationCourseSettingsId),2==this.courseViewType&&1==this.form.leixing&&this.$set(this.memberForm,"paymentDate",[M()(d.startPaymentDate).format("YYYY-MM-DD"),M()(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=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,i=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,r={},s=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return a&&a==e.organId&&i&&i==e.chargeTypeId})),n=!0,o=!1,c=void 0;try{for(var l,u=s[Symbol.iterator]();!(n=(l=u.next()).done);n=!0){var p=l.value;r[p.courseType]=p}}catch(m){o=!0,c=m}finally{try{n||null==u.return||u.return()}finally{if(o)throw c}}return this.organizationCourseUnitPriceSettingsByType=r,r},priceChange:function(e,t){var a=Object(n["a"])(this.eclass),i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},r=Math.round(P()(i.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=r,e.courseOriginalPrice=r,a[t]=e,this.eclass=Object(n["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=0,i=0,r=0,s="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,n=!0,c=!1,l=void 0;try{for(var u,p=s[Symbol.iterator]();!(n=(u=p.next()).done);n=!0){var m=u.value;if(a+=m.courseCurrentPrice,this.cycles&&this.cycles.length)if(m.isStudentOptional)i+=m.courseCurrentPrice;else{var d=Math.floor(m.courseCurrentPrice/this.cycles.length),h=m.courseCurrentPrice%this.cycles.length;i+=d+h,r+=d}}}catch(y){c=!0,l=y}finally{try{n||null==p.return||p.return()}finally{if(c)throw l}}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(o["a"])({},e,{paymentAmount:0===t?i:r})}))),this.$set(this.cycle,"paymentAmount",a),a+=parseFloat(this.memberForm.memberPaymentAmount||0),this.money=a,a},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(l["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,r,s,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,s=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(l["z"])({row:9999,chargeTypeId:s,organId:r});case 6:n=e.sent,o=n.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=n.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(n["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,r,c,l,p,d,h,y,f,b,v,g,_,S,w,T,x,k,P,D,C,F,O,I,$,L,V,E,G,R,N,j,U,M,B;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t=this.getForms(),a=[],i=!0,r=!1,c=void 0,e.prev=5,l=function(){var e=d.value;e.validate((function(t){t&&a.push(e)}))},p=t[Symbol.iterator]();!(i=(d=p.next()).done);i=!0)l();e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](5),r=!0,c=e.t0;case 14:e.prev=14,e.prev=15,i||null==p.return||p.return();case 17:if(e.prev=17,!r){e.next=20;break}throw c;case 20:return e.finish(17);case 21:return e.finish(14);case 22:if(!(this.eclass.length<1&&this.eclassuser.length<1&&2!=this.courseViewType)){e.next=24;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 24:if(a.length!==t.length){e.next=90;break}S=Object(o["a"])({},this.form,{},this.other,{paymentPattern:this.payment.paymentPattern,musicGroupPaymentDateRangeList:Object(n["a"])(this.cycles.map((function(e){var t=e.paymentDate,a=e.paymentValid,i=Object(s["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])({},i,{},Object(m["a"])(t,["startPaymentDate","deadlinePaymentDate"]),{},Object(m["a"])(a,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),w=S.leixing,T=Object(s["a"])(S,["leixing"]),x=this.memberForm,k=x.paymentDate,P=Object(s["a"])(x,["paymentDate"]),2==this.courseViewType&&1==this.form.leixing&&(T.musicGroupPaymentDateRangeList[0]=Object(o["a"])({},Object(m["a"])(k,["startPaymentDate","deadlinePaymentDate"]))),this.$refs.cycle&&(D=this.cycle,C=D.paymentDate,F=D.paymentValid,O=Object(s["a"])(D,["paymentDate","paymentValid"]),T.musicGroupPaymentDateRangeList=[Object(o["a"])({},O,{},Object(m["a"])(C,["startPaymentDate","deadlinePaymentDate"]),{},Object(m["a"])(F,["paymentValidStartDate","paymentValidEndDate"]))]),I=Object(o["a"])({},T,{},P,{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:q[0==this.paymentType?this.paymentType:w],musicGroupId:this.musicGroupId}),$=null===(h=this.viewDetail)||void 0===h?void 0:h.musicGroupPaymentCalenders[0],$&&"ADD_STUDENT"===(null===(y=this.viewDetail)||void 0===y?void 0:y.auditDto.paymentType)&&(I.attribute1=$.attribute1),L=!1,V=!0,E=!1,G=void 0,e.prev=36,R=I.musicGroupPaymentCalenderCourseSettingsList[Symbol.iterator]();case 38:if(V=(N=R.next()).done){e.next=46;break}if(j=N.value,!(j.courseCurrentPrice>0||1==j.isStudentOptional)){e.next=43;break}return L=!0,e.abrupt("break",46);case 43:V=!0,e.next=38;break;case 46:e.next=52;break;case 48:e.prev=48,e.t1=e["catch"](36),E=!0,G=e.t1;case 52:e.prev=52,e.prev=53,V||null==R.return||R.return();case 55:if(e.prev=55,!E){e.next=58;break}throw G;case 58:return e.finish(55);case 59:return e.finish(52);case 60:if(2!=(null===(f=this.baseInfo)||void 0===f||null===(b=f.musicGroup)||void 0===b?void 0:b.courseViewType)&&3!=(null===(v=this.baseInfo)||void 0===v||null===(g=v.musicGroup)||void 0===g?void 0:g.courseViewType)||0!=this.paymentType||!L||"user"!==this.type){e.next=63;break}return this.$message.error("会员收费模式报名缴费项目课程费用不得大于0且不可选"),e.abrupt("return");case 63:if(null===(_=this.rowDetail)||void 0===_?void 0:_.batchNo){e.next=77;break}return e.prev=64,e.next=67,Object(u["e"])(I);case 67:U=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(U.data),e.next=75;break;case 73:e.prev=73,e.t2=e["catch"](64);case 75:e.next=90;break;case 77:return e.prev=77,I.batchNo=this.rowDetail.batchNo,I.paymentType=null===(M=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===M?void 0:M.paymentType,e.next=82,Object(u["h"])(I);case 82:B=e.sent,this.$listeners.close(),this.$listeners.submited(B.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:A()(this.$route.query,{type:"feeAudit"})}),e.next=90;break;case 88:e.prev=88,e.t3=e["catch"](77);case 90:case"end":return e.stop()}}),e,this,[[5,10,14,22],[15,,17,21],[36,48,52,60],[53,,55,59],[64,73],[77,88]])})));function t(){return e.apply(this,arguments)}return t}()}},z=B,Y=(a("8a98"),Object(b["a"])(z,i,r,!1,null,"01318fb3",null));t["a"]=Y.exports},a25b:function(e,t,a){"use strict";var i=a("04bb"),r=a.n(i);r.a},a4d2:function(e,t,a){},a8db:function(e,t,a){"use strict";var i=a("e265"),r=a.n(i),s=a("a4bb"),n=a.n(s);function o(e,t){if(null==e)return{};var a,i,r={},s=n()(e);for(i=0;i<s.length;i++)a=s[i],t.indexOf(a)>=0||(r[a]=e[a]);return r}function c(e,t){if(null==e)return{};var a,i,s=o(e,t);if(r.a){var n=r()(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}a.d(t,"a",(function(){return c}))},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)},r=[],s=(a("96cf"),a("3b8d")),n=a("267e"),o=a("ed08"),c=a("1672"),l={props:["form","isUserType","organId","addStudent","showTime","viewDetail"],data:function(){return{paymentPatternTypeOptions:Object(o["b"])(n["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(s["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(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,r,s,n;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:r=e.sent,(null===(a=r.data)||void 0===a?void 0:a.groupPurchaseHalfYearFee)&&(null===(i=r.data)||void 0===i?void 0:i.originalHalfYearFee)?(this.$set(this.form,"memberPaymentAmount",null===(s=r.data)||void 0===s?void 0:s.groupPurchaseHalfYearFee),this.$set(this.form,"originalMemberPaymentAmount",null===(n=r.data)||void 0===n?void 0:n.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?void 0:t.memberRankSettingId)?this.radio=!0:this.radio=!1}}}},u=l,p=(a("5e28"),a("2877")),m=Object(p["a"])(u,i,r,!1,null,"76465ce2",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)},r=[],s=a("db72"),n=a("333d"),o=a("1cc7"),c={components:{pagination:n["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["M"])({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["pc"])(Object(s["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["wc"])(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("6aca"),a("2877")),p=Object(u["a"])(l,i,r,!1,null,"0e8762dc",null);t["default"]=p.exports},b9a0:function(e,t,a){},c020:function(e,t,a){},c0a3:function(e,t,a){},c3f8:function(e,t,a){},c503:function(e,t,a){},c781:function(e,t,a){},c805:function(e,t,a){"use strict";var i=a("c020"),r=a.n(i);r.a},d2c0:function(e,t,a){"use strict";var i=a("c0a3"),r=a.n(i);r.a},d756:function(e,t,a){"use strict";var i=a("7204"),r=a.n(i);r.a},df4f:function(e,t,a){e.exports=a.p+"static/img/video_bg.0da9f0a8.png"},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)},r=[],s=(a("96cf"),a("3b8d")),n=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(s["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(n["sb"])({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("51bf"),a("2877")),m=Object(p["a"])(u,i,r,!1,null,"ef56f4ea",null);t["a"]=m.exports},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var i=a("bd86"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),s=a.n(r);var n=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a],r=a.toLocaleUpperCase();t.push({label:i,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(i["a"])(t,a[0]||"start",s()(e[0]).isValid()?s()(e[0]).format(r):""),Object(i["a"])(t,a[1]||"end",s()(e[1]).isValid()?s()(e[1]).format(r):""),t):{}}},f07e:function(e,t,a){},f4eb:function(e,t,a){"use strict";var i=a("a4d2"),r=a.n(i);r.a},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)},r=[],s=(a("a481"),a("db72")),n=(a("96cf"),a("3b8d")),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"),y=a("1672"),f=a("b3d0"),b=a("940a"),v=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(s["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(s["a"])({},T),this.FetchList()},deleteUser: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(m["C"])({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(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(m["Zb"])(Object(s["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"),D=Object(P["a"])(k,_,S,!1,null,"3fab0c9b",null),C=D.exports,F=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)},O=[],I={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(n["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(n["a"])(regeneratorRuntime.mark((function e(a){var i,r;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,r=t.form.memo,e.prev=3,e.next=6,Object(y["d"])({id:i,memo:r});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")}}},$=I,L=Object(P["a"])($,F,O,!1,null,"6e6161d2",null),V=L.exports,E=a("cd32"),G=a("3762"),R=a("267e"),N=a("ed08"),j=a("92e3"),A={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:f["default"],userPayForm:b["a"],schoolPayForm:g["a"],QrCode:u["a"],review:E["a"],reviewDetail:G["a"],teamType:"","pay-items":v["a"],schoolPayUserList:C,isGetMoney:V},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:j["y"],getMoneyVisible:!1,baseInfo:null,paymentType:""}},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(N["b"])(R["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(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(y["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["Qb"])({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(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(m["B"])({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(s["a"])({},e)),this.viewDetail=Object(s["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(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(y["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(y["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["uc"])({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 r=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return r},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}(),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(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(y["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=A,M=(a("92c6"),Object(P["a"])(U,i,r,!1,null,"c4f0a602",null));t["a"]=M.exports}}]);
|