1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f7d2e39","chunk-41e3d60a"],{"070d":function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("save-form",{attrs:{inline:!0,"save-key":"resetPayList",model:e.searchForm},on:{submit:e.getList}},[s("el-form-item",[s("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 s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),s("div",{staticClass:"topWrap"},[e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("新建学员缴费")]):e._e(),e._v(" "),e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")]):e._e()]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("auditType")(t.row.auditStatus))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"150px",prop:"courseCurrentPrice",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseCurrentPrice))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(s){return e.lookList(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(s){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),e.teamStatus&&"REJECT"===t.row.auditStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(s){return e.resetPay(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/delByBatchNo",expression:"'musicGroupPaymentCalender/delByBatchNo'"}],attrs:{type:"text"},on:{click:function(s){return e.removeBatchNo(t.row)}}},[e._v("删除")]):e._e()],1)]}}])})],1),e._v(" "),s("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(" "),s("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?s("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(" "),s("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[s("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[s("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[s("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(" "),s("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[s("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(" "),s("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[s("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"}},[s("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),s("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),s("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[s("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(" "),s("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:!0,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[s("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?s("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[s("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"}},[s("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),s("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?s("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[s("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(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?s("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[s("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(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?s("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.isNewGropu?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive}}):e._e()],1),e._v(" "),s("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?s("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),s("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),s("el-dialog",{attrs:{title:"选择预览声部",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[s("el-radio-group",{model:{value:e.dialogSubjectId,callback:function(t){e.dialogSubjectId=t},expression:"dialogSubjectId"}},e._l(e.dialogSubjectList,(function(t,i){return s("el-radio",{key:i,staticStyle:{"margin-right":"15px"},attrs:{border:"",size:"medium",label:t.subjectId}},[e._v(e._s(t.subName))])})),1),e._v(" "),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dialogSubjectVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/getSubjectGoodsAndInfo/967",expression:"'studentRegistration/getSubjectGoodsAndInfo/967'"}],attrs:{type:"primary"},on:{click:e.onPreviewSubmit}},[e._v("预 览")])],1)],1),e._v(" "),e.previewVisible?s("el-dialog",{staticClass:"previewContainer",attrs:{title:"预览",visible:e.previewVisible,width:"400px"},on:{"update:visible":function(t){e.previewVisible=t}}},[s("subject-preview",{attrs:{subjectId:e.dialogSubjectId,calenderId:e.dialogCalenderId}}),e._v(" "),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.previewVisible=!1}}},[e._v("确 定")])],1)],1):e._e()],1)},a=[],n=(s("a481"),s("96cf"),s("1da1")),r=(s("bc3a"),s("5f87"),s("333d")),o=(s("3908"),s("4328"),s("5a0c")),l=s.n(o),c=s("641c"),u=s("61f7"),d=s("1cc7"),p=s("b38b"),m=s("d349"),h=s("1672"),f=s("b3d0"),y=s("940a"),v=s("e623"),b=s("86e8"),g=s("cd32"),_=s("3762"),S=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{background:"#F3F4F8"}},[e._m(0),e._v(" "),i("div",{staticClass:"section"},[i("h2",{staticClass:"title"},[e._v("乐团课程")]),e._v(" "),i("div",{staticClass:"options"},e._l(e.courseInfo,(function(t,s){return i("div",{key:s,staticClass:"option",class:[t.isStudentOptional?"":"disabled"],on:{click:function(s){return e.onCourseChange(t)}}},[i("div",{staticClass:"o_hd"},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]})]),e._v(" "),i("div",{staticClass:"o_bd"},[e._v(e._s(e._f("coursesType")(t.courseType)))]),e._v(" "),i("span",{staticClass:"o_ft",staticStyle:{color:"#1a1a1a"}},[e._v("\n\t\t\t\t\t\t原价:"),i("del",{staticStyle:{"font-size":"16px",color:"#1a1a1a"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseOriginalPrice)))])])])})),0),e._v(" "),i("div",{staticClass:"options sale lines"},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_bd"}),e._v(" "),i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t现价 ¥"),i("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(e.orderInfo.musicClassFee)))])])])])]),e._v(" "),e.instrumentResult.length>0?i("div",{staticClass:"section"},[i("h2",{staticClass:"title"},[e._v("乐器")]),e._v(" "),i("div",{staticClass:"options"},e._l(e.instrumentResult,(function(t,s){return i("div",{key:s,class:[e.instrumentResult.length>1?"oc":""],on:{click:function(s){return e.instrumentF(t)}}},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_hd"},[i("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),e._v(" "),i("div",{staticClass:"o_bd"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t\t")]),e._v(" "),t.price&&"FREE"==t.kitType?i("span",{staticClass:"o_ft o_ft_price"},[e._v("\n\t\t\t\t\t\t\t原价"),i("del",[e._v(":¥"+e._s(e._f("moneyFormat")(t.marketPrice)))])]):e._e(),e._v(" "),t.price&&"GROUP"==t.kitType?i("span",{staticClass:"o_ft o_ft_price"},[e._v("\n\t\t\t\t\t\t\t原价"),i("del",[e._v(":¥"+e._s(e._f("moneyFormat")(t.marketPrice)))])]):e._e()]),e._v(" "),t.marketPrice?i("div",{staticClass:"configuration"},[i("div",{staticClass:"config config_line"},[e._m(1,!0),e._v(" "),i("div",{staticClass:"content"},[i("p",[e._v(e._s(t.goodsList[0].specification))])])])]):e._e(),e._v(" "),t.marketPrice?i("div",{staticClass:"options sale",staticStyle:{"margin-bottom":"5px"}},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_bd"}),e._v(" "),"LEASE"==t.kitType?[i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t\t押金:¥"),i("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))])])]:e._e(),e._v(" "),t.price&&"FREE"==t.kitType?[i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t\t免费领用\n\t\t\t\t\t\t\t\t")])]:e._e(),e._v(" "),t.price&&"GROUP"==t.kitType?i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t现价:¥"),i("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(Number((t.price-t.coupon).toFixed(2)))))])]):e._e()],2)]):e._e()])})),0)]):e._e(),e._v(" "),e.accessOries.length>0?i("div",{key:"accessOries",staticClass:"section"},[i("h2",{staticClass:"title"},[e._v("辅件")]),e._v(" "),e._l(e.accessOries,(function(t,s){return i("div",{key:s,staticClass:"options",on:{click:function(s){return e.onAuxiliarie(t)}}},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_hd"},[i("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),e._v(" "),i("div",{staticClass:"o_bd"},[e._v(e._s(t.name))]),e._v(" "),i("span",{staticClass:"o_ft",staticStyle:{"font-size":"14px"}},[0==t.price?[e._v("免费")]:[e._v("现价:¥"+e._s(e._f("moneyFormat")(t.price)))]],2)]),e._v(" "),t.goodsList.length>1?i("div",{staticClass:"configuration"},[i("div",{staticClass:"config config_other"},[e._m(2,!0),e._v(" "),e._l(t.goodsList,(function(t){return i("div",{key:t.id,staticClass:"content"},[i("div",{staticClass:"option",staticStyle:{padding:"0 5px"}},[i("div",{staticClass:"o_bd",staticStyle:{"font-size":"14px"}},[e._v(e._s(t.name))])])])}))],2)]):e._e()])}))],2):e._e(),e._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"needprice markerprice"},[i("del",[e._v("原价")]),e._v(" "),i("del",[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),i("div",{staticClass:"needprice grouopprice"},[i("span",[e._v("仅需支付")]),e._v(" "),i("span",[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.amount)))])])]),e._v(" "),i("div",{staticClass:"buy"},[i("div",{staticClass:"price"},[i("p",{staticClass:"use_price"},[i("img",{staticClass:"logo",attrs:{src:s("2965"),alt:""}}),e._v(" "),i("span",[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),i("a",{staticClass:"btn-submit"},[e._v("购买")])])])},C=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"noticeInfo"},[s("h2",[e._v("缴费说明")]),e._v("\n\t\t\t1、为确保声部平衡,请家长确认 注册声部为孩子的最终录取声部。"),s("br"),e._v("\n\t\t\t2、为保障每个声部人数达标,我们都进行了超员20%的录取,系统将按照提交注册的先后顺序安排名额。超员后 有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,我们将优先调配您的孩子;\n\t\t\t"),s("div",{staticClass:"line_bottom",staticStyle:{margin:"20px 0 0"}})])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"title"},[s("span",[e._v("配置")])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"title"},[s("span",[e._v("配置")])])}],w=(s("7f7f"),s("c5f6"),s("ac6a"),s("ec8a")),T={0:"按月",1:"按学期",2:"一次性"},k={props:["subjectId","calenderId"],data:function(){var e=this.$route.query;return{musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0},courseInfo:null,musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,s=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(d["Bb"])(t).then((function(e){var t=e;if(200==t.code){var i=t.data;s.paymentPattern=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.paymentPattern:2;var a=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null;a&&a.length>0?s.courseInfo=a:s.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}],s.courseInfo.forEach((function(e){e.isStatus=!0})),s.musicGroupSubject=i.musicGroupSubjectPlan;var n={};i.musicGroupSubjectGoodsGroupList.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{};for(var i in t){var a=Object.assign({},e);a.marketPrice=a.goodsList[0].marketPrice,a.kitType=i,a.coupon=t[i],n.id?(a.checked=!1,"GROUP"==i?("GROUP"==n.kitType&&n.price<a.price||"LEASE"==n.kitType||"FREE"==n.kitType)&&(s.instrumentResult.forEach((function(e){e.checked=!1})),a.checked=!0,n={id:a.id,price:a.price,kitType:i}):"LEASE"==i?"LEASE"==n.kitType&&n.price<a.price&&(s.instrumentResult.forEach((function(e){e.checked=!1})),a.checked=!0,n={id:a.id,price:a.price,kitType:i}):"FREE"==i&&"FREE"==n.kitType&&n.price<a.price&&(s.instrumentResult.forEach((function(e){e.checked=!1})),a.checked=!0,n={id:a.id,price:a.price,kitType:i})):(a.checked=!0,n={id:a.id,price:a.price,kitType:i}),s.instrumentResult.push(a)}}else"ACCESSORIES"==e.type&&(e.checked=!0,s.accessOries.push(e))})),s.instrumentResult.length>0&&s.instrumentResult.push({id:-1,kitType:"owned",name:"自备",price:0,marketPrice:0,checked:!1})}s.calcPrice()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onCourseChange:function(e){e.isStudentOptional&&(e.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.calcPrice()},calcPrice:function(){var e=[],t=[],s=0,i=0,a={},n=[],r=0,o=[],l=0,c=0,u=0,d="",p=this.musicGroupSubject,m=this.courseInfo;p&&m.forEach((function(e){e.isStatus&&(c+=parseFloat(e.courseCurrentPrice),i+=parseFloat(e.courseOriginalPrice),e.id>0&&n.push(e.id),e.isStudentOptional||(u+=parseFloat(e.courseCurrentPrice)))}));var h=this.instrumentResult;if(h.length>0&&h.forEach((function(t){t.checked&&("自备"!=t.name&&(d+=t.goodsIdList),"FREE"==t.kitType?(s+=0,r=0):"LEASE"==t.kitType?(r=t.coupon,"自备"!=t.name?s+=t.depositFee:s+=0):(s+=parseFloat(t.price),r=t.coupon?t.coupon:0),"LEASE"==t.kitType?"自备"!=t.name&&(i+=t.depositFee):i+=parseFloat(t.marketPrice),t.id&&(a[t.id]=t.kitType),"LEASE"==t.kitType?e.push({name:t.name,type:"租赁",price:t.depositFee}):"GROUP"==t.kitType?e.push({name:t.name,type:"团购",price:parseFloat(t.price-r)}):"FREE"==t.kitType&&e.push({name:t.name,type:"免费",price:0}),"GROUP"==t.kitType&&1==t.groupRemissionCourseFee&&(c=parseFloat(c-u)))})),s+=parseFloat(l+c),e.unshift({name:"乐团课",type:T[this.paymentPattern],price:Number((l+c).toFixed(2))}),this.accessOries.length>0){var f=0;this.accessOries.forEach((function(e){e.checked&&(f+=parseFloat(e.price),s+=parseFloat(e.price),e.goodsList&&e.goodsList.length>0&&e.goodsList.forEach((function(e){i+=parseFloat(e.marketPrice)})),a[e.id]="ACCESSORIES")})),e.push({name:"辅件",type:"团购",price:f})}var y=s;if(s-r>=0?(s=Number((s-r).toFixed(2)),this.errorPrice=!1):(s=0,this.errorPrice=!0),s-l-c>0&&t.push(1,2),parseFloat(l+c)>0&&t.push(3,4,5),this.ids=t,this.payType){var v=Number((s-this.balance).toFixed(2));this.needPrice=v>0?v:0}else this.needPrice=Number(s.toFixed(2));this.buyList=e,this.orderInfo={amount:Number(s.toFixed(2)),marketPrice:Number(i.toFixed(2)),groupPurchasePrice:y,couponPrice:r,goodsGroupIds:a,goodsIds:o.join(","),contractGoodsIds:d,courseKeys:n,musicClassFee:c}},permission:function(e){return Object(w["a"])(e)}}},x=k,L=(s("92ec"),s("2877")),I=Object(L["a"])(x,S,C,!1,null,"2bfa4200",null),P=I.exports,O=s("267e"),D=s("ed08"),F=s("92e3"),j={props:["baseInfo","isNewGropu"],components:{pagination:r["a"],setStudentFee:f["default"],userPayForm:y["a"],schoolPayForm:b["a"],QrCode:c["a"],review:g["a"],reviewDetail:_["a"],"pay-items":v["a"],subjectPreview:P},data:function(){return{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:F["t"],dialogSubjectVisible:!1,dialogSubjectList:[],dialogSubjectId:null,dialogCalenderId:null,previewVisible:!1}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(D["b"])(O["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.type;return"teamDraft"==e||"resetTeam"==e||"PRE_BUILD_FEE"==e}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["a"])({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.getList();case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){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(p["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){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,s=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["v"])({id:s}).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})},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(h["d"])({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["e"])(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(d["hc"])({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.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var s=e,i=new Date(s.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var a=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return a},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:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}(),onPreview:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var s,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,s=this.$route.query.id,e.next=4,Object(d["E"])({musicGroupId:s}).then((function(e){200==e.code?(i.dialogSubjectList=e.data.musicGroupSubjectPlans,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}(),onPreviewSubmit:function(){this.previewVisible=!0}},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())}}},G=j,$=(s("4c37"),Object(L["a"])(G,i,a,!1,null,"1e390e63",null));t["a"]=$.exports},"0ede":function(e,t,s){"use strict";s("8b0a")},"0f71":function(e,t,s){},"0fbe":function(e,t,s){"use strict";s("0f71")},"145f":function(e,t,s){"use strict";s("e4e7")},"152a":function(e,t,s){"use strict";s("ebe4")},"1a92":function(e,t,s){},2243:function(e,t,s){"use strict";s("676a")},2965:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB0klEQVRoQ+1ZvUoDQRD+xpBcVIKIhYiINvYi2PgOVpJ0XmFhIgg+gCkCxlqsTARBTyt/Ol/CB5CAhdFCLCyChT8X8UYUFJFcyO6OkUs29Xwz38/sHmwIEf9RxPnDCvjvBG0CNgFDBzp3hfgoHau/DBaJaJkZ/YZGacGJ8MjM24lkLU+Z47dGTUITePVyawG4qDVZGNQDysfd0oaSAN9bugZoXJiLZju+cdydCUUBWdac9icwxy033JbQFfI9K0A0ie5LoO7ltkQtNGyWcEurSofYcF7b4J37Jfa97GnbbGxhkOOW55VWyF6jLbiqUtJ916hdIZX9aKHWrtCHSUR4YEatBcN+lwwD6NXAfUMkErhIJPtmKLP5rErkaT83GkNQAVFKFftVby6AcOIslNO6BPyD7CUYk7p4cwHgOkDrRLhVJREEPE1EK6q4n/UCAkzGm2OtAHMPzToIJUAVAt+FUWF8HtIxM6qN0RICzhNXI7NUKARhBO93F1MD8XiVgSFpERICzhy3PNeMGDOofpirgln8PUlCQADwHqgn/BplngLQVKRuMhICdGeL4LpRQMTfRiP/Oh35/wdETl4bmnTuw1YbzBMZYRMQsdGgiU3AwDwR6DsIG88xSgAlnwAAAABJRU5ErkJggg=="},3762:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"申请信息",closable:!1,type:"info"}}),e._v(" "),s("descriptions",{attrs:{column:2}},[s("descriptions-item",{attrs:{label:"分部名称:"}},[e._v(e._s(e.auditDto.organName))]),e._v(" "),s("descriptions-item",{attrs:{label:"乐团名称:"}},[s("overflow-text",{attrs:{text:e.auditDto.musicGroupName,width:"100%"}})],1),e._v(" "),s("descriptions-item",{attrs:{label:"乐团编号:"}},[s("copy-text",[e._v(e._s(e.auditDto.musicGroupId))])],1),e._v(" "),s("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.auditDto.createTime))]),e._v(" "),s("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.auditDto.paymentType)))]),e._v(" "),s("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.auditDto.payUserType)))])],1),e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"课程信息",closable:!1,type:"info"}}),e._v(" "),e.musicGroupPaymentCalenderCourseSettingName?s("descriptions",{attrs:{column:3}},[s("descriptions-item",{attrs:{span:2,label:"收费标准:"}},[e._v(e._s(e.musicGroupPaymentCalenderCourseSettingName))])],1):e._e(),e._v(" "),e.musicGroupPaymentCalenderCourseSettings.length?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderCourseSettings,stripe:""}},[s("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),s("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否可选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}],null,!1,2601841068)}),e._v(" "),s("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"}})],1):e._e(),e._v(" "),e.musicGroupPaymentCalenderStudentDetails.length?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderStudentDetails,stripe:""}},[s("el-table-column",{attrs:{prop:"username",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),s("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否可选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}],null,!1,2601841068)}),e._v(" "),s("el-table-column",{attrs:{prop:"courseTime",label:"课程总时长(分钟)"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"}})],1):e._e(),e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}),e._v(" "),e._l(e.musicGroupPaymentCalenders,(function(t){return s("descriptions",{key:t.id,attrs:{column:2}},[s("descriptions-item",{attrs:{label:"缴费金额:"}},[e._v(e._s(e.numeral(t.paymentAmount).format("0,0")))]),e._v(" "),s("descriptions-item",{attrs:{label:"缴费方式:"}},[e._v(e._s(e._f("paymentPatternTypeFormat")(t.paymentPattern)))]),e._v(" "),"SCHOOL"!==t.payUserType?s("descriptions-item",{attrs:{span:3,label:"缴费日期:"}},[e._v(e._s(e._f("dayjsFormat")(t.startPaymentDate))+" -\n "+e._s(e._f("dayjsFormat")(t.deadlinePaymentDate)))]):e._e(),e._v(" "),s("descriptions-item",{attrs:{span:3,label:"缴费有效期:"}},[e._v(e._s(e._f("dayjsFormat")(t.paymentValidStartDate))+" -\n "+e._s(e._f("dayjsFormat")(t.paymentValidEndDate)))])],1)})),e._v(" "),s("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,"append-to-body":"",width:"600px",title:"查看学员"},on:{"update:visible":function(t){e.payVisible=t}}},[s("el-table",{attrs:{data:e.simpleUserDto}},[s("el-table-column",{attrs:{prop:"userId",label:"用户ID",width:"180"}}),e._v(" "),s("el-table-column",{attrs:{prop:"userName",label:"姓名",width:"180"}}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",label:"声部",width:"180"}})],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.payVisible=!1}}},[e._v("关 闭")])],1)],1)],2)},a=[],n=(s("96cf"),s("1da1")),r=(s("7f7f"),s("5530")),o=s("2b0e"),l=s("6612"),c=s.n(l),u=s("1672"),d=s("ddec");o["default"].use(d["a"]);var p={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],musicGroupPaymentCalenderStudentDetails:[],simpleUserDto:[],musicGroupPaymentCalenders:[],studentNum:0},m={props:["detail"],data:function(){return Object(r["a"])({payVisible:!1},p)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},methods:{numeral:c.a,init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["g"])({batchNo:this.detail.batchNo,musicGroupId:this.detail.musicGroupId});case 3:for(s in t=e.sent,p)p.hasOwnProperty(s)&&(this[s]=t.data[s]);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}()}},h=m,f=(s("a5b4"),s("2877")),y=Object(f["a"])(h,i,a,!1,null,"01ab22a4",null);t["a"]=y.exports},"3ba9":function(e,t,s){},4226:function(e,t,s){"use strict";s("55f7")},"43d0":function(e,t,s){},"4aad":function(e,t,s){},"4c37":function(e,t,s){"use strict";s("ab2e")},"4ddf":function(e,t,s){},"4dfd":function(e,t,s){},5137:function(e,t,s){"use strict";s.d(t,"o",(function(){return o})),s.d(t,"f",(function(){return l})),s.d(t,"c",(function(){return c})),s.d(t,"e",(function(){return u})),s.d(t,"g",(function(){return d})),s.d(t,"u",(function(){return p})),s.d(t,"p",(function(){return m})),s.d(t,"t",(function(){return h})),s.d(t,"n",(function(){return f})),s.d(t,"s",(function(){return y})),s.d(t,"k",(function(){return v})),s.d(t,"m",(function(){return b})),s.d(t,"a",(function(){return g})),s.d(t,"h",(function(){return _})),s.d(t,"b",(function(){return S})),s.d(t,"r",(function(){return C})),s.d(t,"j",(function(){return w})),s.d(t,"x",(function(){return T})),s.d(t,"w",(function(){return k})),s.d(t,"l",(function(){return x})),s.d(t,"q",(function(){return L})),s.d(t,"y",(function(){return I})),s.d(t,"v",(function(){return P})),s.d(t,"d",(function(){return O})),s.d(t,"z",(function(){return D})),s.d(t,"A",(function(){return F})),s.d(t,"i",(function(){return j}));var i=s("b775"),a=s("4328"),n=s.n(a),r="/api-web";function o(e){return Object(i["a"])({url:r+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(i["a"])({url:r+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(e){return Object(i["a"])({url:r+"/studentManage/findStudentBaseInfo",method:"get",params:e})}function u(e){return Object(i["a"])({url:r+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(i["a"])({url:r+"/studentManage/findStudentVipGroups",method:"get",params:e})}function p(e){return Object(i["a"])({url:r+"/studentWithdraw/queryPage",method:"get",params:e})}function m(e){return Object(i["a"])({url:r+"/studentManage/queryStudentPayment",method:"get",params:e})}function h(e){return Object(i["a"])({url:r+"/order/queryPage",method:"get",params:e})}function f(e){return Object(i["a"])({url:r+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function y(e){return Object(i["a"])({url:r+"/studentRegistration/batchUpdateSubject",method:"post",data:n.a.stringify(e)})}function v(e){return Object(i["a"])({url:r+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function b(e){return Object(i["a"])({url:r+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function g(e){return Object(i["a"])({url:r+"/studentRegistration/insertStudent",method:"POST",data:e})}function _(e){return Object(i["a"])({url:r+"/classGroupStudent/findAllStudent",method:"POST",data:n.a.stringify(e)})}function S(e){return Object(i["a"])({url:r+"/classGroupStudent/addStudents",method:"POST",data:n.a.stringify(e)})}function C(e){return Object(i["a"])({url:r+"/classGroupStudent/del",method:"POST",data:n.a.stringify(e)})}function w(e){return Object(i["a"])({url:r+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function T(e){return Object(i["a"])({url:r+"/userCashAccount/updateCourseBalance",method:"post",data:n.a.stringify(e)})}function k(e){return Object(i["a"])({url:r+"/userCashAccount/updateBalance",method:"post",data:n.a.stringify(e)})}function x(e){return Object(i["a"])({url:r+"/studentManage/queryUserByPhone",method:"get",params:e})}function L(e){return Object(i["a"])({url:r+"/studentManage/register",method:"post",data:n.a.stringify(e)})}function I(e){return Object(i["a"])({url:r+"/studentManage/studentUpdate",method:"post",data:n.a.stringify(e)})}function P(e){return Object(i["a"])({url:r+"/userCashAccount/transferCourseBalanceToBalance",method:"post",data:n.a.stringify(e)})}function O(e){return Object(i["a"])({url:r+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function D(e){return Object(i["a"])({url:r+"/userCashAccountDetail/queryPage",method:"get",params:e})}function F(e){return Object(i["a"])({url:r+"/userCoursesAccount/queryPage",method:"get",params:e})}function j(e){return Object(i["a"])({url:r+"/sysUserContracts/getLatest",method:"get",params:e})}},"526c":function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-container"},[s("h2",[s("el-page-header",{attrs:{content:e.teamName},on:{back:e.onCancel}})],1),e._v(" "),s("div",{staticClass:"m-core"},[s("tab-router",{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")?s("el-tab-pane",{attrs:{label:"基本信息",lazy:"",name:"1"}},[1==e.activeIndex?s("teamBaseInfo",{attrs:{baseInfo:e.baseInfo},on:{getBaseInfo:e.getBaseInfo,getName:e.getName}}):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetSound")?s("el-tab-pane",{attrs:{label:"声部设置",lazy:"",name:"2"}},[2==e.activeIndex?s("resetSound"):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetPayList")?s("el-tab-pane",{attrs:{label:"学员缴费设置",lazy:"",name:"3"}},[3==e.activeIndex?s("resetPayList",{attrs:{baseInfo:e.baseInfo},on:{changeActive:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetPayList")?s("el-tab-pane",{attrs:{label:"学校缴费设置",lazy:"",name:"6"}},[6==e.activeIndex?s("resetPayListSchool",{attrs:{baseInfo:e.baseInfo},on:{changeActive:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetClass")?s("el-tab-pane",{attrs:{label:"班级调整",lazy:"",name:"5"}},[5==e.activeIndex?s("resetClass",{attrs:{musicGroupInfo:e.musicGroupInfo}}):e._e()],1):e._e()],1)],1)])},a=[],n=(s("7f7f"),s("80b0")),r=s("f10d"),o=s("8f2a"),l=s("070d"),c=s("f610"),u=s("b3d0"),d=s("ec8a"),p={components:{teamBaseInfo:n["a"],resetSound:r["a"],resetClass:o["default"],resetPayList:l["a"],resetPayListSchool:c["a"],studentPayBase:u["default"]},name:"resetTeaming",data:function(){return{activeIndex:"1",teamid:"",baseInfo:null,name:null,teamName:"乐团修改",musicGroupInfo:null}},created:function(){},beforeDestroy:function(){},mounted:function(){var e={};e.name=this.activeIndex,this.handleClick(e),this.__init()},activated:function(){var e={};e.name=this.activeIndex,this.handleClick(e),this.__init()},methods:{__init:function(){this.teamid=this.$route.query.id},onCancel:function(){this.$router.push({path:"/business/teamDetail"})},getBaseInfo:function(e){this.baseInfo=e,this.teamName=e.musicGroup.name,this.musicGroupInfo=e.musicGroup},handleClick:function(e){this.activeIndex=e.name},permission:function(e){return Object(d["a"])(e)},getName:function(e){}}},m=p,h=s("2877"),f=Object(h["a"])(m,i,a,!1,null,"e07a80e6",null);t["default"]=f.exports},5309:function(e,t,s){},"55f7":function(e,t,s){},"5e97":function(e,t,s){},"62f6":function(e,t,s){"use strict";s("9112")},"676a":function(e,t,s){},6845:function(e,t,s){"use strict";s("1a92")},"73ce":function(e,t,s){"use strict";s("f672")},"78a0":function(e,t,s){"use strict";s("4ddf")},"7b2e":function(e,t,s){"use strict";s("4aad")},"7f06":function(e,t,s){"use strict";s("4dfd")},"802b":function(e,t,s){},8450:function(e,t,s){},"86e8":function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div")},a=[],n={},r=n,o=s("2877"),l=Object(o["a"])(r,i,a,!1,null,"21abf8f1",null);t["a"]=l.exports},"8b0a":function(e,t,s){},"8b8d":function(e,t,s){"use strict";s("8450")},"8f2a":function(e,t,s){"use strict";s.r(t);var i,a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{},[s("div",{staticClass:"m-core"},[s("el-form",{attrs:{inline:!0,model:e.topForm}},[s("el-form-item",{attrs:{label:"班级类型"}},[s("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.changeMixClass},model:{value:e.topForm.classType,callback:function(t){e.$set(e.topForm,"classType","string"===typeof t?t.trim():t)},expression:"topForm.classType"}},e._l(e.musicClassTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{ref:"multipleTable",attrs:{data:e.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"当前班级人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.studentNum)+"人")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?s("div",e._l(t.row.classGroupTeacherMapperList,(function(t,i){return"BISHOP"==t.teacherRole?s("p",{key:i},[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()})),0):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?s("div",e._l(t.row.classGroupTeacherMapperList,(function(t,i){return"TEACHING"==t.teacherRole?s("p",{key:i},[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()})),0):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.currentClassTimes))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.totalClassTimes))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"220px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",["MUSIC_NETWORK"!=t.row.type?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("学员调整")]):e._e(),e._v(" "),e.permission("classGroup/classGroupUpdate")||e.permission("classGroup/revisionClassGroup")||e.permission("classGroup/revisionAddClassGroup")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.classAdjustment(t.row)}}},[e._v("班级调整")]):e._e(),e._v(" "),s("el-popover",{ref:"popover-"+t.$index,attrs:{placement:"top",width:"200"}},[s("p",[e._v("确定删除?")]),e._v(" "),s("div",{staticStyle:{"text-align":"right",margin:"0"}},[s("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs["popover-"+t.$index].doClose()}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(s){return e.removeClass(t)}}},[e._v("确定")])],1),e._v(" "),"0"==t.row.studentNum||"0"==t.row.totalClassTimes?s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")]):e._e()],1)],1)]}}])})],1),e._v(" "),s("div",{staticClass:"floor"},[s("div",{staticClass:"left"},[e.permission("classGroup/mergeClassSplitClassAffirm")?s("div",{staticClass:"add",on:{click:function(t){e.studentResetVisiable=!0}}},[e._v("\n 拆分班级\n ")]):e._e()]),e._v(" "),s("div",{staticClass:"right"},[s("div",{staticClass:"add",on:{click:e.temporary}},[e._v("新建临时班")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("NORMAL")}}},[e._v("新建声部班")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MIX")}}},[e._v("新建合奏班")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MUSIC_NETWORK")}}},[e._v("\n 新建乐团网管课\n ")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){e.newClassVisible=!0}}},[e._v("基础技能班")])])])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"学员选择",width:"750px",visible:e.studentVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentVisible=t}}},[s("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,isOnlyChangeUser:e.isOnlyChangeUser,activeType:e.activeType},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:function(t){return e.searchStudent(e.activeClass)},submited:e.studentSubmited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"班级设置",width:"950px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[e.infoVisible?s("classroomSetting",{attrs:{classType:e.classType,teacherList:e.teacherList,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,cooperationList:e.cooperationList,detail:e.infoDetail,studentSubmitedData:e.studentSubmitedData},on:{close:function(t){e.infoVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"新增合奏班",width:"700px",visible:e.MixVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.MixVisible=t}}},[s("div",{staticClass:"studentMask"},[s("div",{staticClass:"left"},[s("div",{staticClass:"wrap"},[s("el-input",{attrs:{placeholder:"请输入合奏班名称"},model:{value:e.className,callback:function(t){e.className="string"===typeof t?t.trim():t},expression:"className"}})],1),e._v(" "),s("div",{staticClass:"chioseStudentList"},[s("h4",{staticStyle:{"padding-left":"10px"}},[e._v("当前已选学生")]),e._v(" "),e._l(e.activeListStudent,(function(t,i){return s("div",{key:i,staticClass:"studentItem"},[e._v("\n "+e._s(t.name)+"\n "),s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeSiginforMix(t)}}},[e._v("删除班级")])],1)}))],2)]),e._v(" "),s("div",{staticClass:"right"},[s("div",{staticClass:"tableList"},[s("el-table",{ref:"mixList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.singleList},on:{"selection-change":e.SelectionMix}},[s("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",width:"120",align:"center",label:"学员声部"}})],1)],1)])]),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNewClass?e._e():s("el-button",{attrs:{type:"primary"},on:{click:e.addSomeStudent}},[e._v("确 定")]),e._v(" "),e.isNewClass?s("el-button",{attrs:{type:"primary"},on:{click:e.setInfoMsg}},[e._v("确 定")]):e._e()],1)]),e._v(" "),s("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[s("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"120px"}},[s("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[s("el-input",{staticStyle:{width:"180px"},model:{value:e.newClassForm.className,callback:function(t){e.$set(e.newClassForm,"className",t)},expression:"newClassForm.className"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请选择班级类型",trigger:"blur"}],prop:"type"}},[s("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.highTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop","string"===typeof t?t.trim():t)},expression:"newClassForm.bishop"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.realName,value:String(e.id)}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"HIGH_ONLINE"==e.newClassForm.type},model:{value:e.newClassForm.expectStudentNum,callback:function(t){e.$set(e.newClassForm,"expectStudentNum",t)},expression:"newClassForm.expectStudentNum"}})],1),e._v(" "),"HIGH_ONLINE"!=e.newClassForm.type&&"HIGH"!=e.newClassForm.type&&e.newClassForm.type?s("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching","string"===typeof t?t.trim():t)},expression:"newClassForm.teaching"}},e._l(e.cooperationList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1):e._e(),e._v(" "),"NORMAL"==e.newClassForm.type?s("el-form-item",{key:"HIGH",attrs:{label:"声部",prop:"subjectIdList",rules:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.newClassForm.subjectIdList,callback:function(t){e.$set(e.newClassForm,"subjectIdList",t)},expression:"newClassForm.subjectIdList"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?s("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"网络教室声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:""},model:{value:e.newClassForm.subjectId,callback:function(t){e.$set(e.newClassForm,"subjectId",t)},expression:"newClassForm.subjectId"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"学员列表",visible:e.studentListModalVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[s("viewStudentList",{attrs:{list:e.studentListModal,showOk:!0},on:{close:function(t){e.studentListModalVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"学员班级调整",width:"800px",visible:e.studentResetVisiable},on:{"update:visible":function(t){e.studentResetVisiable=t}}},[e.studentResetVisiable?s("studentResetView",{attrs:{teacherList:e.teacherList,courseTypesByType:e.courseTypesByType,classList:e.mergeList},on:{close:e.closeStudentReset}}):e._e()],1)],1)},n=[],r=(s("ac6a"),s("7f7f"),s("b85c")),o=(s("96cf"),s("1da1")),l=s("1cc7"),c=s("5137"),u=s("d349"),d=(s("99b4"),s("c466")),p=s("5a0c"),m=s.n(p),h=(s("bc3a"),s("92e3")),f=s("a792"),y=s("f927"),v=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[5==e.classType?s("el-row",[s("el-form-item",{attrs:{label:"班级名称",prop:"className","label-width":"88px",rules:[{required:!0,message:"请填写班级名称"}]}},[s("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.className,callback:function(t){e.$set(e.form,"className","string"===typeof t?t.trim():t)},expression:"form.className"}})],1)],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher","label-width":"88px",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},on:{change:e.changecoreTeacher},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.realName,value:String(e.id)}})})),1)],1),e._v(" "),"HIGH"!=e.activeType&&"HIGH_ONLINE"!=e.activeType?s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1):e._e(),e._v(" "),Object.keys(e.allClasss).length?s("el-form-item",{staticStyle:{display:"block"},attrs:{label:"排课类型","label-width":"88px"}},e._l(e.allClasss,(function(t,i){return s("el-tag",{key:i,staticClass:"tag",attrs:{effect:e.form.classs[i]?"dark":"plain"},on:{click:function(t){return e.changeTag(i)}}},[e._v(e._s(e.courseTypeListByName[i]))])})),1):e._e(),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂无可排课时长"}}):e._e(),e._v(" "),s("el-collapse",{on:{change:e.collapseChange},model:{value:e.collapses,callback:function(t){e.collapses=t},expression:"collapses"}},e._l(e.form.classs,(function(t,i,a){return s("el-collapse-item",{key:i,attrs:{name:a},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",{staticClass:"title"},[e._v("\n "+e._s(e.courseTypeListByName[i])+",\n "),s("span",[e._v("可排课时长"+e._s(e.musicCourseSettings[i])+"分钟")])])]},proxy:!0}],null,!0)},[e._v(" "),s("courseItem",{attrs:{surplustime:e.surplustime[i],type:i,form:t,prices:e.prices,selectPrice:e.selectPrices?e.selectPrices[i]:""}})],1)})),1)],1),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:e.isEmpty},on:{click:e.submit}},[e._v("确 定")])],1):e._e()],1)},b=[],g=s("5530"),_=(s("456d"),function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form-item",{attrs:{label:"排课起始时间","label-width":"112px",prop:"classs."+e.type+".courseTime",rules:[{required:!0,message:"请选择排课起始时间"}]}},[s("el-date-picker",{staticStyle:{width:"100%!important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.form.courseTime,callback:function(t){e.$set(e.form,"courseTime","string"===typeof t?t.trim():t)},expression:"form.courseTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"跳过节假日",prop:"classs."+e.type+".holiday",rules:[{required:!0,message:"否跳过节假日"}]}},[s("el-radio-group",{model:{value:e.form.holiday,callback:function(t){e.$set(e.form,"holiday",t)},expression:"form.holiday"}},[s("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form&&e.form.cycle?s("el-table",{attrs:{data:e.form.cycle}},[s("el-table-column",{attrs:{prop:"dayOfWeek",label:"循环周期",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{"inline-message":"",rules:[{required:!0,message:"请选择循环周期"}],prop:"classs."+e.type+".cycle."+t.$index+".dayOfWeek"}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择循环周期",clearable:"",filterable:""},model:{value:t.row.dayOfWeek,callback:function(s){e.$set(t.row,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"scope.row.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,4175215940)}),e._v(" "),s("el-table-column",{attrs:{prop:"time",label:"课程时长(分)",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".time",rules:[{required:!0,message:"请选择课程时长"}],"inline-message":""}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择课程时长",clearable:"",disabled:!!e.selectPrice,filterable:""},on:{change:function(s){return e.startTimeChange(t.row)}},model:{value:t.row.time,callback:function(s){e.$set(t.row,"time","string"===typeof s?s.trim():s)},expression:"scope.row.time"}},e._l(e.pricesArray,(function(i,a){return s("el-option",{key:a,attrs:{disabled:e.surplustime+(parseFloat(t.row.time)||0)<i,label:i,value:i}})})),1)],1)]}}],null,!1,3569340815)}),e._v(" "),s("el-table-column",{attrs:{prop:"startClassTime",label:"开始时间",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".startClassTime",rules:[{required:!0,message:"请选择开始时间"}],"inline-message":""}},[s("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:["04:30:00 - 23:59:59"]}},on:{change:function(s){return e.startTimeChange(t.row)}},model:{value:t.row.startClassTime,callback:function(s){e.$set(t.row,"startClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.startClassTime"}})],1)]}}],null,!1,2204707810)}),e._v(" "),s("el-table-column",{attrs:{prop:"endClassTime",label:"结束时间",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".endClassTime","inline-message":""}},[s("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm",disabled:"","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:[t.row.startClassTime+":00 - 23:59:59"]}},model:{value:t.row.endClassTime,callback:function(s){e.$set(t.row,"endClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.endClassTime"}})],1)]}}],null,!1,3285712210)}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.cycle.length>1?s("i",{staticClass:"close-icon el-icon-circle-close",on:{click:function(s){return e.remove(t.$index)}}}):e._e()]}}],null,!1,2187597216)})],1):e._e(),e._v(" "),s("el-button",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{icon:"el-icon-circle-plus-outline",type:"info",size:"small",plain:"",disabled:e.surplustime<(e.selectPrice||Math.min.apply(Math,e.pricesArray))},on:{click:e.create}},[e._v("添加循环")])],1)}),S=[],C=(s("28a5"),{}),w=Object(r["a"])(h["g"]);try{for(w.s();!(i=w.n()).done;){var T=i.value;C[T.value]=T.label}}catch(Ee){w.e(Ee)}finally{w.f()}var k,x={props:["form","type","surplustime","prices","selectPrice"],data:function(){return{classTimeListByType:C}},computed:{pickerOptions:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},weekDateList:function(){return[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]},pricesArray:function(){return(this.prices[this.type]||"").split(",").filter((function(e){return!!e}))}},methods:{create:function(){var e={};this.selectPrice&&(e.time=this.selectPrice),this.form.cycle.push(e)},remove:function(e){this.form.cycle.splice(e,1)},startTimeChange:function(e){if(e.time&&e.startClassTime){var t=m()(new Date).format("YYYY-MM-DD");this.$set(e,"endClassTime",Object(d["a"])(t,e.startClassTime,e.time))}else this.$set(e,"endClassTime","")}}},L=x,I=(s("f180"),s("2877")),P=Object(I["a"])(L,_,S,!1,null,"7181542c",null),O=P.exports,D=s("704d"),F=s("1672"),j=s("2ef0"),G={},$=Object(r["a"])(h["g"]);try{for($.s();!(k=$.n()).done;){var N=k.value;G[N.value]=N.label}}catch(Ee){$.e(Ee)}finally{$.f()}var V=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var i,a=Object(r["a"])(t);try{for(a.s();!(i=a.n()).done;){var n=i.value;s.push({userId:n,teacherRole:"TEACHING"})}}catch(Ee){a.e(Ee)}finally{a.f()}}return s},E=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0,i=0,a=Object(r["a"])(t);try{for(a.s();!(e=a.n()).done;){var n=e.value;i+=parseFloat(parseFloat(n[s]||0).toFixed(2)||0)}}catch(Ee){a.e(Ee)}finally{a.f()}return i},R={props:["activeType","courseTypeList","musicGroupId","detail","studentSubmitedData","classType","musicGroupPaymentCalenderDtos","classIdList","classGroupStudents","selectPrices","classCouresTimeList","teacherList","cooperationList"],components:{courseItem:O},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},allClasss:{},prices:{},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:G,musicCourseSettings:{}}},watch:{courseTypeList:function(){this.setCourseTypeListByName()},studentSubmitedData:function(){this.formatClasss()},detail:function(){this.formatClasss()}},computed:{surplustime:function(){var e={};for(var t in this.form.classs)if(this.form.classs.hasOwnProperty(t)){var s=this.form.classs[t];e[t]=s.courseTotalMinuties-E(s.cycle,"time")}return e},isEmpty:function(){return Object(j["isEmpty"])(this.form.classs)},musicGroup:function(){return D["a"].state.musicGroup}},mounted:function(){var e=Object(o["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,D["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.musicGroupId}});case 3:return e.next=5,Object(F["i"])({organId:this.musicGroup.organId});case 5:t=e.sent,this.prices=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:this.setCourseTypeListByName(),this.formatClasss();case 13:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{setCourseTypeListByName:function(){var e,t={},s=Object(r["a"])(this.courseTypeList);try{for(s.s();!(e=s.n()).done;){var i=e.value;t[i.value]=i.label}}catch(Ee){s.e(Ee)}finally{s.f()}this.courseTypeListByName=t},formatClasss:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,s,i,a,n,o,c,u,d,p,m,h,f,y,v,b;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.detail){i="",a=[],n=this.detail.classGroupTeacherMapperList,o=Object(r["a"])(n||[]);try{for(o.s();!(c=o.n()).done;)u=c.value,"BISHOP"===u.teacherRole&&(i=String(u.userId)),"TEACHING"===u.teacherRole&&a.push(u.userId)}catch(Ee){o.e(Ee)}finally{o.f()}this.$set(this.form,"coreTeacher",String(i)),this.$set(this.form,"assistant",a)}if(d=this.detail||null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),p=null===(s=this.detail)||void 0===s?void 0:s.id,d||p){e.next=5;break}return e.abrupt("return");case 5:if(m={},5!=this.classType){e.next=10;break}m.data=this.classCouresTimeList,e.next=19;break;case 10:return e.prev=10,e.next=13,Object(l["fb"])({musicGroupId:this.musicGroupId,studentIds:d,classGroupId:p});case 13:m=e.sent,e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](10),console.log(e.t0);case 19:if(!(Object.keys(m).length<=0)){e.next=21;break}return e.abrupt("return");case 21:this.musicCourseSettings=m.data,h={},f=Object(r["a"])(this.courseTypeList);try{for(f.s();!(y=f.n()).done;)v=y.value,b=v.value,m.data[b]&&(h[b]={courseTotalMinuties:m.data[b],cycle:[{time:this.selectPrices?this.selectPrices[b]:void 0}]})}catch(Ee){f.e(Ee)}finally{f.f()}this.allClasss=Object(g["a"])({},h),this.$set(this.form,"classs",h);case 27:case"end":return e.stop()}}),e,this,[[10,16]])})));function t(){return e.apply(this,arguments)}return t}(),changeTag:function(e){var t=Object(g["a"])({},this.form.classs);t[e]?delete t[e]:t[e]=this.allClasss[e],this.$set(this.form,"classs",t)},submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(s){var i,a,n,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=46;break}for(n in i=[],a=function(t){if(e.form.classs.hasOwnProperty(t)){var s,a,n,r,o=e.form.classs[t];i.push({type:e.detail?void 0:e.activeType,courseType:t,classGroupName:(null===(s=e.studentSubmitedData)||void 0===s?void 0:s.name)||(null===(a=e.detail)||void 0===a?void 0:a.name)||e.form.className,classGroupId:null===(n=e.detail)||void 0===n?void 0:n.id,musicGroupId:e.musicGroupId,startDate:o.courseTime,classGroupTeacherMapperList:V(e.form.coreTeacher,e.form.assistant),holiday:o.holiday,students:null===(r=e.studentSubmitedData)||void 0===r?void 0:r.seleched,courseTimes:o.cycle.length,courseTimeDtoList:o.cycle.map((function(e){return{courseType:t,dayOfWeek:e.dayOfWeek,endClassTime:e.endClassTime,startClassTime:e.startClassTime}}))})}},e.form.classs)a(n);if(t.prev=4,!e.detail){t.next=11;break}return t.next=8,Object(l["o"])(i);case 8:e.$message.success("排课修改成功"),t.next=37;break;case 11:if(1!=e.classType){t.next=17;break}return t.next=14,Object(l["qc"])(i);case 14:e.$message.success("排课成功"),t.next=37;break;case 17:if(2!=e.classType&&3!=e.classType&&4!=e.classType){t.next=23;break}return t.next=20,Object(l["pc"])(i);case 20:e.$message.success("排课成功"),t.next=37;break;case 23:if(5!=e.classType){t.next=37;break}return r={},r.musicGroupPaymentCalenderDtos=e.musicGroupPaymentCalenderDtos,r.classGroup4MixDtos=i,r.classGroupIds=e.classIdList,r.studentIds=e.studentSubmitedData.seleched,r.classGroupStudents=e.classGroupStudents,r.classCourseMinuteMap=e.selectPrices,t.next=33,Object(l["Qb"])(r);case 33:return o=e.$parent.$parent.$parent.$parent.$parent.$parent.$parent,o.closeStudentReset(),o.getList(),t.abrupt("return");case 37:e.$listeners.submited(),e.$listeners.close(),t.next=44;break;case 41:t.prev=41,t.t0=t["catch"](4),console.log(t.t0);case 44:t.next=47;break;case 46:e.$message.error("请先填写所有表单");case 47:case"end":return t.stop()}}),t,null,[[4,41]])})));return function(e){return t.apply(this,arguments)}}())},collapseChange:function(e){this.collapses=e},changecoreTeacher:function(e){}}},M=R,A=(s("b81d"),Object(I["a"])(M,v,b,!1,null,"59c12ba2",null)),U=A.exports,q=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"学员班级调整仅支持相同【班级类型】调整,且所选班级的剩余【课程类型】须完全相同若仅选择一个班级,则会为将所选学员从原班级中移除并新建班级",type:"warning",closable:!1,"show-icon":""}}),e._v(" "),s("classListGroup",{ref:"classListGroup",attrs:{classList:e.classList,courseTypesByType:e.courseTypesByType,teacherList:e.teacherList}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.gotoSecond}},[e._v("下一步")])],1),e._v(" "),s("div",{staticStyle:{clear:"both"}})],1)},B=[],H=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form}},e._l(e.form.classList,(function(t,i){return s("classListItem",{key:i,attrs:{index:i,item:t,form:e.form,classList:e.activeClassList},on:{deteleClass:e.deteleClass,filterClassList:e.filterClassList}})})),1),e._v(" "),s("el-dialog",{attrs:{visible:e.showSecondVisable,title:"缴费信息设置","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.showSecondVisable=t}}},[e.showSecondVisable?s("classPayList",{attrs:{classIdList:e.classIdList,addCourseType:e.addCourseType,courseTypesByType:e.courseTypesByType,classMaxCourseNumMap:e.classMaxCourseNumMap,form:e.form,teacherList:e.teacherList,payInfo:e.payInfo},on:{"update:payInfo":function(t){e.payInfo=t},"update:pay-info":function(t){e.payInfo=t},resetPayInfo:e.resetPayInfo,close:function(t){e.showSecondVisable=!1}}}):e._e()],1)],1)},z=[],Y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级"+(e.index+1),type:"info",closable:e.index>0},on:{close:e.deteleClass}}),e._v(" "),s("el-form-item",{staticStyle:{"padding-left":"20px"},attrs:{label:"选择班级",rules:[{required:!0,message:"请选择班级",trigger:"change"}],prop:"classList."+e.index+".classId"}},[s("el-select",{staticStyle:{"margin-right":"20px"},attrs:{clearable:""},on:{change:e.changeValue},model:{value:e.item.classId,callback:function(t){e.$set(e.item,"classId",t)},expression:"item.classId"}},e._l(e.classList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id,disabled:e.disabled}})})),1),e._v(" "),s("el-button",{staticClass:"studentTitle",attrs:{type:"text",disabled:!e.item.classId},on:{click:e.lookStudentList}},[e._v("学员列表>>")])],1),e._v(" "),s("div",{staticClass:"infomsg"},[e.isNoCourse?s("div",{staticClass:"left"},[s("div",[e._v("暂无剩余课时")])]):s("div",{staticClass:"left"},[e._v("\n 剩余课时:\n "),e._l(e.item.courseList,(function(t,i){return s("div",{key:i},[s("p",{staticStyle:{"margin-right":"5px"}},[e._v("\n "+e._s(e._f("courseTypeFormat")(i))+":"),s("span",[e._v(e._s(t))]),e._v("节\n ")])])}))],2),e._v(" "),s("div",{staticClass:"right"},[e._v("\n 已选学员:\n "),s("p",[s("span",[e._v(e._s(e.item.studentList.length))]),e._v("人\n ")])])]),e._v(" "),s("el-dialog",{attrs:{title:"学员列表",width:"700px",visible:e.studentListModalVisible,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?s("viewStudentList",{attrs:{list:e.studentList,chioseList:e.item.studentList,showOk:!0,isChiose:!0},on:{close:e.closeStudentView}}):e._e()],1)],1)},W=[],J=s("7a3c"),Q=s("0464"),K={props:["item","index","classList","form"],components:{viewStudentList:f["a"],paymentCycle:J["a"],extraClass:Q["a"]},data:function(){return{studentList:[],studentListModalVisible:!1,organizationCourseUnitPriceSettingsByType:[],eclass:[],isNoCourse:!1,activeClassList:[]}},mounted:function(){this.activeClassList=this.classList},methods:{changeValue:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.item.studentList=[],!t){e.next=14;break}return e.prev=2,e.next=5,Object(l["Q"])({classGroupId:t});case 5:s=e.sent,this.setClassCourse(s.data),this.$emit("filterClassList",t),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](2);case 12:e.next=16;break;case 14:this.setClassCourse({}),this.$emit("filterClassList",null);case 16:case"end":return e.stop()}}),e,this,[[2,10]])})));function t(t){return e.apply(this,arguments)}return t}(),deteleClass:function(){this.$emit("deteleClass",this.index)},lookStudentList:function(){var e=this;this.item.classId?Object(c["h"])({classGroupId:this.item.classId}).then((function(t){200==t.code&&(e.studentList=t.data.map((function(e){return{userId:e.userId,nickName:e.name,gender:e.gender,phone:e.parentsPhone,subjectNames:e.subjectName}})),e.studentListModalVisible=!0)})):this.$message.error("请先选择班级,再查询学生列表")},closeStudentView:function(e){this.item.studentList=e,this.studentListModalVisible=!1},setClassCourse:function(e){Object.keys(e).length>0?(this.item.courseList=e,this.isNoCourse=!1):this.isNoCourse=!0},priceChange:function(){},syncAllMoney:function(){}}},X=K,Z=(s("0ede"),Object(I["a"])(X,Y,W,!1,null,"4678052b",null)),ee=Z.exports,te=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{attrs:{title:"课程时长设置",type:"info",closable:!1}}),e._v(" "),s("el-form",{ref:"courseTimeForms",staticStyle:{"margin-top":"20px"},attrs:{model:e.courseTimeForm,inline:!0}},e._l(e.courseTimeForm.timeList,(function(t,i){return s("el-form-item",{key:i,attrs:{label:t.label,prop:"timeList."+i+".value",rules:[{required:!0,message:"请选择课程时长",trigger:"blur"}],"label-width":"100px"}},[s("el-select",{attrs:{clearable:"",placeholder:"请选择课程时长"},on:{change:function(s){return e.setCourseTime(t,s)}},model:{value:t.value,callback:function(s){e.$set(t,"value",s)},expression:"item.value"}},e._l(t.list,(function(e,t){return s("el-option",{key:t,attrs:{value:e,label:e}})})),1)],1)})),1),e._v(" "),e._l(e.form.classList,(function(t,i){return s("classPayListItem",{key:i,ref:"base",refInFor:!0,attrs:{payInfo:e.payInfo,courseTypesByType:e.courseTypesByType,item:t,index:i}})})),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.close}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.gotoLast}},[e._v("下一步")])],1),e._v(" "),s("div",{staticStyle:{clear:"both"}}),e._v(" "),s("el-dialog",{attrs:{visible:e.showLastVisable,title:"合并结果确认","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.showLastVisable=t}}},[e.showLastVisable?s("classSetting",{ref:"classSetting",attrs:{form:e.form,musicGroupPaymentCalenderDtos:e.musicGroupPaymentCalenderDtos,classType:5,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,studentSubmitedData:e.studentSubmitedData,classIdList:e.classIdList,classGroupStudents:e.classGroupStudents,selectPrices:e.classCourseMinuteMap,classCouresTimeList:e.classCouresTimeList,teacherList:e.teacherList,cooperationList:e.teacherList},on:{close:function(t){e.showLastVisable=!1}}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.showLastVisable=!1}}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)],2)},se=[],ie=s("2909"),ae=s("ade3"),ne=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程名称",prop:"name"}},[s("el-input",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请输入课程名称"},model:{value:e.maskForm.name,callback:function(t){e.$set(e.maskForm,"name","string"===typeof t?t.trim():t)},expression:"maskForm.name"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1)],1),e._v(" "),s("viewStudentList",{attrs:{list:e.studentList,isChiose:!1,showOk:!1}})],1)],1)},re=[],oe=(s("0a1a"),{props:["musicGroupPaymentCalenderDtos","form"],components:{viewStudentList:f["a"]},data:function(){return{maskForm:{teacher:null,assistant:null,name:null},maskRules:{name:[{required:!0,message:"请输入课程名称",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}]},studentList:[],teacherList:[]}},mounted:function(){var e=this;this.$store.dispatch("setTeachers"),this.teacherList=this.selects.teachers,this.studentList=[],this.form.classList.forEach((function(t){e.studentList=e.studentList.concat(t.studentList)}))},methods:{submitResetClass:function(){}}}),le=oe,ce=Object(I["a"])(le,ne,re,!1,null,"2eee3911",null),ue=ce.exports,de=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级"+(e.index+1),type:"info",closable:!1}}),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("p",{staticClass:"classTitle"},[e._v("\n 班级: "),s("span",[e._v(e._s(e.className))])])]),e._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"rightBtn"},[s("el-button",{staticClass:"studentTitle",attrs:{type:"text",disabled:!e.item.classId},on:{click:function(t){e.studentListModalVisible=!0}}},[e._v("学员列表>>")])],1)])],1),e._v(" "),s("div",{staticClass:"infomsg"},[Object.keys(e.item.courseList).length>0?s("div",{staticClass:"left"},[e._v("\n 剩余课时:\n "),e._l(e.item.courseList,(function(t,i){return s("div",{key:i},[s("p",{staticStyle:{"margin-right":"5px"}},[e._v("\n "+e._s(e._f("courseTypeFormat")(i))+":"),s("span",[e._v(e._s(t))]),e._v("节\n ")])])}))],2):s("div",{staticClass:"left"},[s("div",[e._v("暂无剩余课时")])]),e._v(" "),s("div",{staticClass:"right"},[e._v("\n 已选学员:\n "),s("p",[s("span",[e._v(e._s(e.item.studentList.length))]),e._v("人\n ")])])]),e._v(" "),Object.keys(e.payItem).length>0?s("extraClass",{ref:"eclass",staticClass:"extraClass",attrs:{form:e.corusePayList,isUserType:!0,isCommon:!1,isDisabled:!0,courseUnitPriceSettingsByType:e.courseTypesByType},on:{priceChange:e.priceChange,moneyChange:e.syncAllMoney}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?s("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isUserType:!0,isCommon:!0,isDisabled:!0}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?s("otherform",{ref:"other",attrs:{form:e.other}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?e._e():s("p",{staticClass:"noMore"},[e._v("\n 无需增加缴费周期\n ")]),e._v(" "),s("el-dialog",{attrs:{title:"学员列表",width:"700px",visible:e.studentListModalVisible,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?s("viewStudentList",{attrs:{list:e.item.studentList,showOk:!0,isChiose:!1},on:{close:function(t){e.studentListModalVisible=!1}}}):e._e()],1)],1)},pe=[],me=s("15fd"),he=s("ed08"),fe=s("b133"),ye={props:["item","index","payInfo","courseTypesByType"],components:{viewStudentList:f["a"],paymentCycle:J["a"],extraClass:Q["a"],otherform:fe["a"]},data:function(){return{corusePayList:[],eclass:[],className:"",studentListModalVisible:!1,isNoCourse:!1,payItem:{},cycle:{paymentAmount:null,paymentPattern:null},other:{}}},mounted:function(){var e,t,s=this;this.musicGroupId=this.$route.query.id;null===(e=this.item)||void 0===e||null===(t=e.classList)||void 0===t||t.map((function(e){return e.id==s.item.classId&&(s.className=e.name),e.id}));for(var i in this.payInfo)if(this.payInfo.hasOwnProperty(i)&&this.item.classId==i){this.payItem=this.payInfo[i];break}if(Object.keys(this.payItem).length>0)for(var a in this.corusePayList=[],this.payItem)this.payItem.hasOwnProperty(a)&&this.corusePayList.push(this.payItem[a])},methods:{priceChange:function(e,t){var s=Object(ie["a"])(this.corusePayList);console.log("_",s);var i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},a=((e.courseTotalMinuties||1)*(i.unitPrice||1)).toFixed(2);e.courseCurrentPrice=a,e.courseOriginalPrice=a,s[t]=e,this.corusePayList=Object(ie["a"])(s),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,s=Object(r["a"])(this.corusePayList);try{for(s.s();!(e=s.n()).done;){var i=e.value;t+=i.courseCurrentPrice}}catch(Ee){s.e(Ee)}finally{s.f()}this.cycle=Object(g["a"])(Object(g["a"])({},this.cycle),{},{paymentAmount:t})},getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},getData:function(){var e,t=this.getForms(),s=[],i=Object(r["a"])(t);try{var a=function(){var t=e.value;t.validate((function(e){e&&s.push(t)}))};for(i.s();!(e=i.n()).done;)a()}catch(Ee){i.e(Ee)}finally{i.f()}if(console.log(s.length,t.length),s.length===t.length){if(Object.keys(this.payItem).length>0){var n=Object(g["a"])(Object(g["a"])(Object(g["a"])({},this.form),this.other),{},{musicGroupPaymentCalenderCourseSettingsList:this.corusePayList}),o=(n.leixing,Object(me["a"])(n,["leixing"]));if(this.$refs.cycle){var l,c,u=this.cycle,d=u.paymentDate,p=u.paymentValid,m=u.paymentPattern,h=Object(me["a"])(u,["paymentDate","paymentValid","paymentPattern"]);o.paymentPattern=m,o.payUserType="STUDENT",o.paymentType="ADD_COURSE",o.studentIds=null===(l=this.item)||void 0===l||null===(c=l.studentList)||void 0===c?void 0:c.map((function(e){return e.userId})).join(","),o.musicGroupPaymentDateRangeList=[Object(g["a"])(Object(g["a"])(Object(g["a"])({},h),Object(he["a"])(d,["startPaymentDate","deadlinePaymentDate"])),Object(he["a"])(p,["paymentValidStartDate","paymentValidEndDate"]))]}var f=Object(g["a"])(Object(g["a"])({},o),{},{isGiveMusicNetwork:!1,musicGroupId:this.musicGroupId});return f}return null}return this.$message.error("请填写必要信息"),"error"}},watch:{payInfo:{deep:!0,immediate:!0,handler:function(e,t){console.log("调用了change方法"),this.syncAllMoney()}}}},ve=ye,be=(s("145f"),Object(I["a"])(ve,de,pe,!1,null,"3ee1ea26",null)),ge=be.exports,_e=s("fa7d"),Se=s("267e"),Ce={props:["form","payInfo","courseTypesByType","classIdList","addCourseType","classMaxCourseNumMap","teacherList"],components:{classNewInfo:ue,classPayListItem:ge,classSetting:U},data:function(){return{showLastVisable:!1,musicGroupPaymentCalenderDtos:null,teacherList:[],studentList:[],teamid:"",activeType:"",courseTypeList:[],studentSubmitedData:{},classGroupStudents:[],courseTimeForm:{timeList:[]},organId:"",organCourseTime:{},classCourseMinuteMap:{}}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,D["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.teamid}}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(s){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.organId=s.data.musicGroup.organId,e.prev=1,e.next=4,Object(l["nb"])({organId:t.organId});case 4:i=e.sent,t.organCourseTime=i.data,t.setTimeList(i.data),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){var e=this;this.studentList=[];var t=[];for(var s in this.form.classList.forEach((function(s){e.studentList=e.studentList.concat(s.studentList);var i=[];s.studentList.forEach((function(e){i.push(e.userId)})),t.push(Object(ae["a"])({},s.classId,i.join(",")))})),this.classGroupStudents=t,this.teamid=this.$route.query.id,this.activeType=this.form.classList[0].type,this.courseTypeList=Object(_e["a"])(this.activeType),this.studentSubmitedData={name:"",seleched:this.studentList.map((function(e){return e.userId}))},this.courseTimeForm.timeList.map((function(t){e.classCourseMinuteMap[t.type]=t.value})),this.classCouresTimeList={},this.classCourseMinuteMap)this.classCouresTimeList[s]=this.classMaxCourseNumMap[s]*this.classCourseMinuteMap[s];this.showLastVisable=!0},close:function(){this.$emit("close")},getForms:function(){var e=this.$refs;return Object(ie["a"])(e.base).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},gotoLast:function(){var e=this;this.$refs.courseTimeForms.validate((function(t){if(t){var s,i=e.getForms(),a=[],n=[],o=Object(r["a"])(i);try{for(o.s();!(s=o.n()).done;){var l=s.value,c=l.getData();"error"==c&&n.push(c),c&&"error"!=c&&a.push(c)}}catch(Ee){o.e(Ee)}finally{o.f()}if(n.length>0)return;e.musicGroupPaymentCalenderDtos=a,e.init()}}))},submitResetClass:function(){this.$refs.classSetting.submit()},setTimeList:function(e){var t=this;this.addCourseType.map((function(s){var i=[];i=e[s]?e[s].split(","):[Se["classTime"][s]],t.courseTimeForm.timeList.push({type:s,value:"",label:Se["courseType"][s],list:i})}))},setCourseTime:function(e,t){console.log(this.payInfo);var s=Object(g["a"])({},this.payInfo);for(var i in s)if(s[i][e.type]){var a=t?t*s[[i]][e.type].unitPrice:0,n=t?t*s[[i]][e.type].courseTotalNum:0;this.$emit("resetPayInfo",e.type,a,n)}this.payInfo=s}}},we=Ce,Te=(s("152a"),Object(I["a"])(we,te,se,!1,null,"690cbfcb",null)),ke=Te.exports,xe={props:["classList","courseTypesByType","teacherList"],components:{classListItem:ee,classPayList:ke},data:function(){return{form:{classList:[{classId:"",studentList:[],courseList:{},index:"",type:"",classList:this.classList}]},showSecondVisable:!1,classIdList:[],activeClassList:[],addCourseType:[]}},mounted:function(){this.activeClassList=this.classList},methods:{addClass:function(){this.form.classList.push({classId:"",studentList:[],courseList:{},index:"",type:"",classList:this.classList})},deteleClass:function(e){this.form.classList.splice(e,1)},gotoSecond:function(){var e=this;this.$refs.form.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(s){var i,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=19;break}if(i=!1,e.form.classList.forEach((function(e){e.studentList.length<=0&&(i=!0)})),!i){t.next=6;break}return e.$message.error("每个班级至少勾选一名学员"),t.abrupt("return");case 6:return e.classIdList=e.form.classList.map((function(e){return e.classId})),t.prev=7,t.next=10,Object(l["Y"])(e.classIdList);case 10:a=t.sent,e.payInfo=a.data.defaultPaymentCalender,e.addCourseType=a.data.groupTypeSet,e.classMaxCourseNumMap=a.data.classMaxCourseNumMap,e.showSecondVisable=!0,t.next=19;break;case 17:t.prev=17,t.t0=t["catch"](7);case 19:case"end":return t.stop()}}),t,null,[[7,17]])})));return function(e){return t.apply(this,arguments)}}())},filterClassList:function(e){var t,s=[];(this.form.classList.forEach((function(e){e.classId&&s.push(e.classId)})),e)?(this.classList.forEach((function(s){s.id==e&&(t=s)})),this.form.classList.forEach((function(s){s.classId==e&&(s.type=t.type)})),this.activeClassList=this.classList.filter((function(e){return t.type==e.type})),this.addDisabled(s)):0==s.length?this.activeClassList=this.classList:this.addDisabled(s)},addDisabled:function(e){this.activeClassList=this.activeClassList.map((function(t){return Object(g["a"])(Object(g["a"])({},t),{},{disabled:-1!=e.indexOf(t.id)})}))},resetPayInfo:function(e,t,s){console.log(t,s),console.log(this.payInfo);var i=Object(g["a"])({},this.payInfo);for(var a in i)i[a][e]&&(i[a][e].courseCurrentPrice=t,i[a][e].courseOriginalPrice=t,i[a][e].courseTotalMinuties=parseInt(s));this.payInfo=i}}},Le=xe,Ie=Object(I["a"])(Le,H,z,!1,null,"89c22e1e",null),Pe=Ie.exports,Oe={props:["classList","courseTypesByType","teacherList"],components:{classListGroup:Pe},data:function(){return{}},methods:{close:function(){this.$emit("close")},gotoSecond:function(){this.$refs.classListGroup.gotoSecond()}}},De=Oe,Fe=(s("6845"),Object(I["a"])(De,q,B,!1,null,"62092cc6",null)),je=Fe.exports,Ge=(s("4328"),s("ec8a")),$e={props:["musicGroupInfo"],name:"tresetClass",components:{viewStudentList:f["a"],selectStudent:y["a"],classroomSetting:U,studentResetView:je},data:function(){return{musicGroupInfos:this.musicGroupInfo,classType:0,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},step:"00:05",teamid:"",topForm:{classType:""},studentSubmitedData:null,infoDetail:null,classTimeList:h["g"],tableList:[],maxClassList:[],activeSingleList:[],studentListModal:[],studentListModalVisible:!1,resetCourseVisible:!1,resetClassVisible:!1,studentVisible:!1,MixVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!1,isOnlyChangeUser:!1,isSearch:!1,isTemporary:!1,className:"",activeClass:"",soundList:[],infoVisible:!1,teacherForm:{isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}],sound:[{required:!0,message:"请选择合声部"}],expectStudentNum:[{required:!0,message:"请填写预计招生人数"}]},weekList:[],teacherList:[],courseTypeList:[],weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],classTypeList:[{value:"NORMAL",label:"声部班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"SNAP",label:"临时班"},{value:"HIGH_ONLINE",label:"线上基础技能班"},{value:"MUSIC_NETWORK",label:"乐团网管课"}],musicClassTypeList:h["n"],highTypeList:[{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能班"}],cooperationList:[],singleList:[],activeSingleLists:[],activeType:"",resetClassForm:{startTime:"",endTime:"",assistant:[],coreTeacher:""},recourseForm:{courseType:"",checked:!1,courseTime:"",courseNum:""},organId:"",newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:[],memo:[],subjectId:null},classGroupIds:null,maxMun:16,courseTime:"",studentResetVisiable:!1,courseTypesByType:null,mergeList:[],activeSoundList:[],appoint:!1}},created:function(){this.init()},mounted:function(){},methods:{permission:function(e){return Object(Ge["a"])(e)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,this.musicGroupInfo?(this.organId=this.musicGroupInfos.organId,this.chargeTypeId=this.musicGroupInfos.chargeTypeId):Object(l["Fb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.musicGroupInfos=e.data.musicGroup,t.organId=t.musicGroupInfos.organId,t.chargeTypeId=t.musicGroupInfos.chargeTypeId)})),this.$nextTick(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(s){var i,a,n,o,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!t.organId||!t.chargeTypeId){e.next=11;break}return e.next=4,Object(u["r"])({chargeTypeId:t.chargeTypeId,organId:t.organId,rows:9999});case 4:i=e.sent,a={},t.courseTypes=i.data.rows,n=Object(r["a"])(t.courseTypes);try{for(n.s();!(o=n.n()).done;)c=o.value,a[c.courseType]=c}catch(Ee){n.e(Ee)}finally{n.f()}t.courseTypesByType=a,console.log(t.courseTypesByType);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:Object(l["Db"])({organId:t.organId}).then((function(e){200==e.code&&(t.cooperationList=e.data,t.teacherList=e.data)})),Object(l["L"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&(t.maxClassList=e.data)})),t.changeMixClass(),Object(l["G"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)}));case 19:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),studentSubmited:function(e){this.isOnlyChangeUser?this.getList():(this.studentSubmitedData=e,this.infoVisible=!0)},recourse:function(e){this.weekList=[{week:"",startTime:"",endTime:"",id:new Date}],this.resetCourseVisible=!0},addMix:function(){this.MixVisible=!0},changeActiveChioseSound:function(e){this.activeChioseSound=e},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},changeMixClass:function(e){this.getList(e),this.activeMixClass=e},getList:function(e){var t=this;Object(l["N"])({musicGroupId:this.teamid,type:e}).then((function(e){var s;200==e.code&&(t.activeSingleList=e.data,(null===(s=e.data)||void 0===s?void 0:s.length)>0&&(t.mergeList=e.data.filter((function(e){return"MUSIC_NETWORK"!=e.type}))))}))},temporary:function(){this.classType=1,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isOnlyChangeUser=!1,this.isSearch=!0,this.className="",this.isTemporary=!0,this.activeType="SPAN",this.activeChioseSound=null,this.setType("SNAP"),this.getNoClassStudent("SNAP")},setType:function(e){this.courseTypeList=Object(_e["a"])(e),this.activeSoundList=this.soundList},addNewClass:function(e){var t={NORMAL:2,MUSIC_NETWORK:4};this.isOnlyChangeUser=!1,this.classType=t[e]||3,this.setType(e),this.activeType=e,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.activeChioseSound=null,this.getNoClassStudent(e)},searchStudent:function(e){var t=this;console.log(this.activeChioseSound),"SPAN"==this.activeType?Object(l["Bc"])({musicGroupId:this.teamid,actualSubjectId:this.activeChioseSound}).then((function(e){200==e.code&&(t.studentList=e.data)})):this.getNoClassStudent(this.activeType,this.activeChioseSound,e)},SelectionStudent:function(e){this.chioseStudent=e},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},clearCourse:function(e){var t=this;Object(l["q"])({classGroupId:e.row.id}).then((function(s){200==s.code?(t.$message.success("清除成功"),e._self.$refs[e.$index].doClose(),t.getList(t.activeMixClass)):(t.$message.error(s.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},removeClass:function(e){var t=this;Object(l["ec"])({classGroupId:e.row.id}).then((function(s){200==s.code?(e._self.$refs["popover-".concat(e.$index)].doClose(),t.$message.success("删除成功"),t.getList(t.activeMixClass)):(t.$message.error(s.msg),e._self.$refs["popover-".concat(e.$index)].doClose())})).catch((function(t){e._self.$refs["popover-".concat(e.$index)].doClose()}))},resetClass:function(e){var t=this;this.isOnlyChangeUser=!0,this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.activeChioseSound=null,Object(c["h"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.activeListStudent=e.data.map((function(e){return e.isVisible=!1,e})))})),this.activeSoundList=this.soundList,this.getNoClassStudent(e.type)},classAdjustment:function(e){for(var t in this.infoDetail=e,this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.classGroupTeacherMapperList[t].userId),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.classGroupTeacherMapperList[t].userId);this.infoVisible=!0},getNoClassStudent:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,s,i){var a,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={musicGroupId:this.teamid,type:t,actualSubjectId:s,classGroupId:i},e.next=3,Object(l["mb"])(a).then((function(e){200==e.code&&(n.studentList=e.data)}));case 3:case"end":return e.stop()}}),e,this)})));function t(t,s,i){return e.apply(this,arguments)}return t}(),removeStudent:function(e){var t=this;"HIGH_ONLINE"==this.activeType&&this.activeListStudent.length<=3?this.$message.error("线上基础技能课不能小于3人"):Object(c["r"])({classGroupId:this.activeClass,userId:e.userId}).then((function(s){200==s.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(c["h"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data)})),t.getNoClassStudent(t.activeType,null,t.activeClass))}))},addSomeStudent:function(){var e=this,t=this.chioseStudent.map((function(e){return e.userId}));if(t.length<=0)return this.isNewClass?void this.$message.error("至少添加一名学员"):void(this.studentVisible=!1);"HIGH_ONLINE"==this.activeType?Object(l["yc"])({classGroupId:this.activeClass}).then((function(s){if(200==s.code){if(e.activeListStudent.length+e.chioseStudent.length>6||e.activeListStudent.length+e.chioseStudent.length<3)return void e.$message.error("线上技能班必须为3-6人");Object(c["b"])({classGroupId:e.activeClass,userIdsStr:t.join(",")}).then((function(t){if(200==t.code)return e.studentVisible=!1,e.$message.success("添加成功"),void e.getList()}))}})):Object(c["b"])({classGroupId:this.activeClass,userIdsStr:t.join(",")}).then((function(t){200==t.code&&(e.studentVisible=!1,e.$message.success("添加成功"),e.getList())}))},SelectionMix:function(e){this.activeSingleLists=e},removeSiginforMix:function(e){for(var t in this.activeSingleLists)this.activeSingleLists[t].id==e.id&&this.$refs["mixList"].toggleRowSelection(e,!1)},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var s in this.studentList)this.studentList[s].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var s={},i=[];for(var a in e)s[e[a][t]]||(i.push(e[a]),s[e[a][t]]=!0);return i},setInfoMsg:function(){if(this.className)if(this.activeListStudent.length<=0)this.$message.error("班级里至少要有一名学生");else{if("HIGH_ONLINE"==this.activeType){if(this.activeListStudent.length>6||this.activeListStudent.length<3)return void this.$message.error("线上技能班必须为3-6人");this.teacherForm.expectStudentNum=this.activeListStudent.length}this.infoVisible=!0}else this.$message.error("请输入班级名称")},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",time:this.courseTime,id:(new Date).getTime()})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate((function(s){if(s){var i=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||i[0]&&i[0].startClassTime&&i[0].endClassTime&&i[0].dayOfWeek){var a=t.className,n=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var r in t.teacherForm.assistant)n.push({userId:t.teacherForm.assistant[r],teacherRole:"TEACHING"});var o=t.teamid,c=t.teacherForm.courseTime,u=t.teacherForm.courseType,d=t.teacherForm.courseNum;if(d<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("请至少排一节课");else if(d>t.maxMun)t.$message.error("一次最多排".concat(t.maxMun,"节课"));else{var p=t.activeListStudent.map((function(e){return e.userId})),m=t.teacherForm.checked,h=[];for(var f in t.weekList)h.push(t.weekList[f]);if(h.length<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("新增班级至少排一节课");else{"onlyUpdateTeacher"==t.teacherForm.isAdd&&(c=null,u=null,p=null,m=null,d=null,h=null,y=null);var y=t.activeType,v={classGroupName:a,classGroupTeacherMapperList:n,musicGroupId:o,startDate:c,courseType:u,students:p,holiday:m,courseTimes:d,courseTimeDtoList:h,type:y,courseAddType:t.teacherForm.isAdd};1==e?Object(l["qc"])(v).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):2==e?(v.subjectId=t.teacherForm.sound,v.expectStudentNum=t.teacherForm.expectStudentNum,Object(l["pc"])(v).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())}))):3==e&&(v.classGroupId=t.activeClass,Object(l["o"])(v).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.getList())})))}}}else t.$message.error("至少排一节课")}else t.$message.error("请填写必要信息")}))},newClassHight:function(){var e=this;this.$refs["newClassForm"].validate((function(t){if(t){var s,i={};if(i.musicGroupId=e.teamid,i.name=e.newClassForm.className,i.type=e.newClassForm.type,i.groupType="MUSIC",i.expectStudentNum=e.newClassForm.expectStudentNum,i.teacherMapperList=[],i.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)s=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(i.memo=e.newClassForm.memo.join(","));else{for(var a in s=e.newClassForm.memo.length>0?e.newClassForm.memo.join(","):null,e.newClassForm.teaching)i.teacherMapperList.push({userId:e.newClassForm.teaching[a],teacherRole:"TEACHING"});i.memo=s}i.subjectIdList=s,Object(l["t"])(i).then((function(t){200==t.code&&(e.$message.success("创建成功"),e.getList(),e.resetClassFrom(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},setAssistant1:function(e){if(e)for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},handleSelectionChange:function(e){e.length>0?this.classGroupIds=e.map((function(e){return e.id})).join(","):this.classGroupIds=null},chkstu:function(e,t){return"HIGH_ONLINE"==e.type&&e.totalClassTimes<=0||"HIGH"==e.type&&e.totalClassTimes<=0},startRegest:function(){var e=this;this.classGroupIds?this.$confirm("是否开启报名?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["bc"])({classGroupIds:e.classGroupIds,musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("开启成功,已推送".concat(t.data,"名学生")),e.getList())}))})).catch((function(){})):this.$message.error("请至少选择1个基础技能班")},toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},chioseHightype:function(e){this.changeMemo([]),"HIGH_ONLINE"==e&&(this.newClassForm.teaching=[]),this.newClassForm.subjectId="",this.$set(this.newClassForm,"subjectIdList",[]),this.$set(this.newClassForm,"memo",[])},changeStartClassTime:function(e){this.$set(e,"endClassTime","")},changeEndClassTime:function(e,t){this.$set(e,"endClassTime",t)},changeCourseType:function(e){var t=this;console.log(e),e?(this.classTimeList.forEach((function(s){s.value==e&&(t.courseTime=s.label)})),this.weekList=[{week:"",startTime:"",endTime:"",time:this.courseTime,id:(new Date).getTime()}]):(this.courseTime=null,this.weekList=[])},changeStartTimes:function(e,t){if(e&&t.time){var s=m()(new Date).format("YYYY-MM-DD");this.$set(t,"endClassTime",Object(d["a"])(s,e,t.time))}else this.$set(t,"endClassTime",""),this.$message.error("请先设置课程时间");t.endClassTime||this.$set(t,"startClassTime","")},setItem:function(e,t){this.weekList[t].startClassTime="",this.weekList[t].endClassTime="",console.log()},closeStudentReset:function(){this.studentResetVisiable=!1},changeMemo:function(e){}},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},infoVisible:function(e){e||(this.teacherForm={isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},this.infoDetail=null,this.weekList=[])},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())}}},Ne=$e,Ve=(s("2243"),Object(I["a"])(Ne,a,n,!1,null,"741a3246",null));t["default"]=Ve.exports},9112:function(e,t,s){},"92ec":function(e,t,s){"use strict";s("f635")},"940a":function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?s("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?s("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},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.changeActive}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"===e.paymentTypeString?[s("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),s("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?s("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}}):e._e():[s("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),s("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(" "),[s("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),s("el-form",{ref:"payment",attrs:{model:e.payment}},[s("el-form-item",{attrs:{"label-width":"160px",label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.payment.paymentPattern,callback:function(t){e.$set(e.payment,"paymentPattern",t)},expression:"payment.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return s("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?[s("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,i){return s("el-collapse-item",{key:i,attrs:{name:i}},[s("template",{slot:"title"},[s("div",{staticClass:"collapse-title"},[s("span",[e._v("缴费周期 "+e._s(i+1))]),e._v(" "),e.cycles.length>1?s("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(i)}}}):e._e()])]),e._v(" "),s("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,hidePaymentPattern:!0,isCommon:e.isCommon,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType}})],2)})),1),e._v(" "),s("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("新增缴费周期")])]:s("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},on:{"update:form":function(t){e.cycle=t}}})],e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),s("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1),e._v(" "),s("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[s("classrooms",{on:{close:e.closeNext}})],1)],2)},a=[],n=s("15fd"),r=(s("6762"),s("2fdb"),s("5530")),o=s("2909"),l=(s("96cf"),s("1da1")),c=s("b85c"),u=s("d349"),d=(s("1cc7"),s("1672")),p=s("267e"),m=s("ed08"),h=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},["undefined"===typeof e.paymentType?s("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[s("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[s("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),s("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&!this.rowDetail?s("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[s("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 s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),0!=e.paymentType&&e.isCommon&&!e.rowDetail?s("el-alert",{staticStyle:{"margin-left":"160px",width:"auto"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),s("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:function(t){return e.$listeners.changeActive({name:"1"})}}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1890774724)}):e._e()],1)},f=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail"],mounted:function(){},watch:{paymentType:function(){console.log(this.paymentType)}}},v=y,b=(s("9fd8"),s("2877")),g=Object(b["a"])(v,h,f,!1,null,"1b1fc70b",null),_=g.exports,S=s("7a3c"),C=s("0464"),w=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{model:e.list}},[s("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form}},[s("el-table-column",{attrs:{label:"学员姓名",prop:"username"}}),e._v(" "),s("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),e._v(" "),s("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(" "),s("el-table-column",{attrs:{label:"课程时长(分钟)",prop:"courseTime",width:"130"}}),e._v(" "),s("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[s("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(s){e.$set(e.list.form[t.$index],"courseCurrentPrice",s)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])}),e._v(" "),s("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[s("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].courseOriginalPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseOriginalPrice",s)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable&&e.$listeners.remove?s("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?s("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(s){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?s("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=[],k=s("92e3"),x=s("6612"),L=s.n(x),I=(s("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(k["a"])(k["g"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return L()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(s,i,a){var n=t.list.form[e].courseType;n&&i>1&&t.classTimeList[n]&&i<t.classTimeList[n]?a(new Error("单节课不得少于".concat(t.classTimeList[n],"分钟"))):a()}}}}),P=I,O=(s("8b8d"),Object(b["a"])(P,w,T,!1,null,"620c5cef",null)),D=O.exports,F=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[s("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},j=[],G={data:function(){return{list:[]}},methods:{submit:function(){}}},$=G,N=(s("62f6"),Object(b["a"])($,F,j,!1,null,"37928f5f",null)),V=N.exports,E=s("b133"),R=(s("73b3"),s("7676")),M=s.n(R),A={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},U={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:C["a"],extraClassUser:D,classrooms:V,otherform:E["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"])}},computed:{musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},isCommon:function(){return"1"===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={},s=Object(c["a"])(this.charges);try{for(s.s();!(e=s.n()).done;){var i=e.value;t[i.id]=i}}catch(a){s.e(a)}finally{s.f()}return t},paymentAmountDisabled:function(){return(this.isUserType||this.isCommon&&this.isUserType)&&this.isDisabled},isMulticycle:function(){var e=!1,t="";if(this.viewDetail){var s,i=this.viewDetail,a=i.musicGroupPaymentCalenders;i.auditDto;t=null===(s=a[0])||void 0===s?void 0:s.paymentType,e=a.length>1||"ADD_COURSE"!=t,e&&(this.cycles=a.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,s=this.viewDetail.musicGroupPaymentCalenders;e=null===(t=s[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),"1"===e?this.eclass=[]:"2"===e&&(this.eclass=[{}])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s,i=this;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(d["h"])({id:t});case 4:s=e.sent,this.eclass=s.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:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t){return e.apply(this,arguments)}return t}(),"payment.paymentPattern":function(){this.syncAllMoney()}},mounted:function(){this.formatCourse(),this.init()},activated:function(){this.formatCourse(),this.init()},methods:{init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,s,i,a,n,r,o,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getCharges(),!this.rowDetail){e.next=22;break}for(t in A)A.hasOwnProperty(t)&&(s=A[t],s===this.rowDetail.paymentType&&(this.paymentType=t));return this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),e.prev=5,e.next=8,Object(d["g"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 8:n=e.sent,this.viewDetail=n.data,this.eclass=(n.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==l.paymentType})),this.eclassuser=n.data.musicGroupPaymentCalenderStudentDetails,r=n.data.musicGroupPaymentCalenders[0]||{},this.$set(this.payment,"paymentPattern",String(null===(i=this.viewDetail.auditDto)||void 0===i?void 0:i.paymentPattern)),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",r.paymentPattern+""),o=[r.paymentValidStartDate,r.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[r.startPaymentDate,r.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",o)),this.studentIds=r.studentIds,this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(a=n.data.auditDto)||void 0===a?void 0:a.musicGroupOrganizationCourseSettingsId),this.syncAllMoney(),e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](5);case 22:case"end":return e.stop()}}),e,this,[[5,20]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,s,i=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,a=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,n={},r=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return i&&i==e.organId&&a&&a==e.chargeTypeId})),o=Object(c["a"])(r);try{for(o.s();!(s=o.n()).done;){var l=s.value;n[l.courseType]=l}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=n,n},priceChange:function(e,t){var s=Object(o["a"])(this.eclass),i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},a=Math.round(L()(i.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=a,e.courseOriginalPrice=a,s[t]=e,this.eclass=Object(o["a"])(s),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 s,i=0,a=0,n=0,o="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,l=Object(c["a"])(o);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(i+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)a+=u.courseCurrentPrice;else{var d=Math.floor(u.courseCurrentPrice/this.cycles.length),p=u.courseCurrentPrice%this.cycles.length;a+=d+p,n+=d}}}catch(m){l.e(m)}finally{l.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(r["a"])(Object(r["a"])({},e),{},{paymentAmount:0===t?a:n})}))),this.$set(this.cycle,"paymentAmount",i),i},getChargeTypeList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,s,i,a,n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,n=null===(s=this.musicGroup)||void 0===s?void 0:s.chargeTypeId,this.chargeTypeName=null===(i=this.musicGroup)||void 0===i?void 0:i.chargeTypeName,e.prev=3,e.next=6,Object(u["z"])({row:9999,chargeTypeId:n,organId:a});case 6:r=e.sent,o=r.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=r.data.rows,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length-1),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,s){return s-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(o["a"])(e.cycles||[]),[e.other,e.payment]).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(l["a"])(regeneratorRuntime.mark((function e(){var t,s,i,a,l,u,p,h,f,y,v,b,g,_,S,C,w;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),s=[],i=Object(c["a"])(t);try{for(l=function(){var e=a.value;e.validate((function(t){t&&s.push(e)}))},i.s();!(a=i.n()).done;)l()}catch(T){i.e(T)}finally{i.f()}if(!(this.eclass.length<1&&this.eclassuser.length<1)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(s.length!==t.length){e.next=37;break}if(p=Object(r["a"])(Object(r["a"])(Object(r["a"])({},this.form),this.other),{},{paymentPattern:this.payment.paymentPattern,musicGroupPaymentDateRangeList:Object(o["a"])(this.cycles.map((function(e){var t=e.paymentDate,s=e.paymentValid,i=Object(n["a"])(e,["paymentDate","paymentValid"]);return Object(r["a"])(Object(r["a"])(Object(r["a"])({},i),Object(m["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(s,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),h=p.leixing,f=Object(n["a"])(p,["leixing"]),this.$refs.cycle&&(y=this.cycle,v=y.paymentDate,b=y.paymentValid,g=Object(n["a"])(y,["paymentDate","paymentValid"]),f.musicGroupPaymentDateRangeList=[Object(r["a"])(Object(r["a"])(Object(r["a"])({},g),Object(m["a"])(v,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(b,["paymentValidStartDate","paymentValidEndDate"]))]),_=Object(r["a"])(Object(r["a"])({},f),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:A[0==this.paymentType?this.paymentType:h],musicGroupId:this.musicGroupId}),null!==(u=this.rowDetail)&&void 0!==u&&u.batchNo){e.next=24;break}return e.prev=11,e.next=14,Object(d["c"])(_);case 14:S=e.sent,this.$listeners.close(),this.$listeners.submited(S.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:M()(this.$route.query,{type:"feeAudit"})}),e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](11);case 22:e.next=37;break;case 24:return e.prev=24,_.batchNo=this.rowDetail.batchNo,_.paymentType=null===(C=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===C?void 0:C.paymentType,e.next=29,Object(d["f"])(_);case 29:w=e.sent,this.$listeners.close(),this.$listeners.submited(w.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:M()(this.$route.query,{type:"feeAudit"})}),e.next=37;break;case 35:e.prev=35,e.t1=e["catch"](24);case 37:case"end":return e.stop()}}),e,this,[[11,20],[24,35]])})));function t(){return e.apply(this,arguments)}return t}()}},q=U,B=(s("78a0"),Object(b["a"])(q,i,a,!1,null,"041c18fa",null));t["a"]=B.exports},"9fd8":function(e,t,s){"use strict";s("f171")},a544:function(e,t,s){},a5b4:function(e,t,s){"use strict";s("43d0")},a792:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{ref:"studentTable",attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark","max-height":"300px"},on:{"selection-change":e.handleSelectionChange}},[e.isChiose?s("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"55"}}):e._e(),e._v(" "),s("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),e._v(" "),s("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("sex")(t.row.gender))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"专业"}})],1),e._v(" "),e.showOk?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$listeners.close(e.selectList)}}},[e._v("确 定")])],1):e._e(),e._v(" "),e.showOk?s("div",{staticStyle:{clear:"both"}}):e._e()],1)},a=[],n=(s("ac6a"),{props:["list","isChiose","chioseList","showOk","disabledList"],data:function(){return{selectList:this.chioseList}},mounted:function(){var e=this;if(this.chioseList){var t=this.chioseList.map((function(e,t){return e.userId}));this.list.forEach((function(s,i){-1!=t.indexOf(s.userId)&&e.$refs.studentTable.toggleRowSelection(s,!0)}))}},methods:{handleSelectionChange:function(e){this.selectList=e},checkSelectable:function(e){var t=!0;return this.disabledList&&this.disabledList.length>0&&this.disabledList.forEach((function(s){s.userId==e.userId&&(t=!1)})),t}}}),r=n,o=(s("7b2e"),s("2877")),l=Object(o["a"])(r,i,a,!1,null,"b0949258",null);t["a"]=l.exports},ab09:function(e,t,s){"use strict";s("5e97")},ab2e:function(e,t,s){},b38b:function(e,t,s){"use strict";s.d(t,"c",(function(){return o})),s.d(t,"a",(function(){return l})),s.d(t,"b",(function(){return c}));var i=s("b775"),a=s("4328"),n=s.n(a),r="/api-web";function o(e){return Object(i["a"])({url:r+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function l(e){return Object(i["a"])({url:r+"/musicGroupPaymentCalender/auditPass",method:"post",data:n.a.stringify(e)})}function c(e){return Object(i["a"])({url:r+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:n.a.stringify(e)})}},b3d0:function(e,t,s){"use strict";s.r(t);var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("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(" "),s("el-form-item",[s("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 s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("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}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),s("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[s("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[s("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"}},[s("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},a=[],n=s("5530"),r=s("333d"),o=s("1cc7"),l={components:{pagination:r["a"]},props:["clearStduent","musicGroupPaymentCalenderId","batchNo"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["G"])({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["cc"])(Object(n["a"])(Object(n["a"])({},this.searchForm),{},{batchNo:this.batchNo})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;sessionStorage.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,s={};s.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["jc"])(s).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())}}},c=l,u=(s("e668"),s("2877")),d=Object(u["a"])(c,i,a,!1,null,"37c6bfc0",null);t["default"]=d.exports},b4ac:function(e,t,s){"use strict";s.d(t,"a",(function(){return a})),s.d(t,"c",(function(){return n})),s.d(t,"b",(function(){return r}));var i=s("829b"),a=function(e){return Object(i["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},n=function(e){return Object(i["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},r=function(e){return Object(i["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})}},b81d:function(e,t,s){"use strict";s("802b")},c466:function(e,t,s){"use strict";s.d(t,"h",(function(){return r})),s.d(t,"c",(function(){return o})),s.d(t,"d",(function(){return l})),s.d(t,"e",(function(){return c})),s.d(t,"f",(function(){return u})),s.d(t,"g",(function(){return d})),s.d(t,"b",(function(){return p})),s.d(t,"a",(function(){return m}));s("a481");var i=s("5a0c"),a=s.n(i),n=s("56d7");function r(e){var t=e.getFullYear(),s=e.getMonth()+1,i=e.getDate();return s=s<10?"0"+s:s,i=i<10?"0"+i:i,t+"-"+s+"-"+i}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),s=++t,i=new Date(e.getFullYear(),s,1),a=864e5;return new Date(i-a)}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e);0==s.getDay()&&(t-=6048e5);var i=t-24*(s.getDay()-1)*60*60*1e3,a=new Date(i),n=a.getFullYear(),r=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,o=a.getDate()<10?"0"+a.getDate():a.getDate(),l=n+"-"+r+"-"+o;return l}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e),i=7-s.getDay();7==i&&(i=0);var a=t+24*i*60*60*1e3,n=new Date(a),r=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),c=r+"-"+o+"-"+l;return c}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function p(e,t,s){return Math.abs(a()(e+" "+t).diff(e+" "+s,"Minute"))}function m(e,t,s){var i=a()(e+" "+t).add(s,"minute");return console.log(),a()(e+" 23:59").isBefore(i)?(n["$message"].error("课程时间无法跨天请重新设置开始时间"),""):i.format("HH:mm")}},cd32:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.detail?s("div",[e.detail?s("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?s("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?s("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission("musicGroupPaymentCalender/auditPass")?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/auditRefuse")?s("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e(),e._v(" "),s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关 闭")])],1):s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("关闭")])],1)],1):e._e()},a=[],n=(s("96cf"),s("1da1")),r=s("ec8a"),o=s("3762"),l=s("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(l["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(s.$message.success("审核通过"),s.$emit("close"))}));case 8:e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=23;break;case 14:return e.prev=14,e.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return e.next=19,Object(l["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(s.$message.success("驳回成功"),s.$emit("close"))}));case 19:e.next=23;break;case 21:e.prev=21,e.t1=e["catch"](14);case 23:case"end":return e.stop()}}),e,this,[[3,10],[14,21]])})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(r["a"])(e)}}},u=c,d=(s("73ce"),s("2877")),p=Object(d["a"])(u,i,a,!1,null,"290cb116",null);t["a"]=p.exports},d2df:function(e,t,s){"use strict";s("5309")},e4e7:function(e,t,s){},e623:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",prop:"id",width:"120",label:"缴费单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"status",width:"120",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"200","class-name":"table-btns"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{text:e.row.memo}})]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail",expression:"'musicGroupPaymentCalender/auditListDetail'"}],attrs:{type:"text"},on:{click:function(s){return e.toDetail(t.row)}}},[e._v("查看")]),e._v(" "),e.$listeners.lookUserList?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(s){return e.$listeners.lookUserList(t.row)}}},[e._v("学员列表")]):e._e(),e._v(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(s){return e.$listeners.commmitGetMoney(t.row)}}},[e._v("确认收款")]):e._e(),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"STUDENT"===e.payUserType?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.$listeners.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.$listeners.onPreview&&"STUDENT"===e.payUserType&&"MUSIC_APPLY"==t.row.paymentType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/findMusicGroupSubjectInfo/966",expression:"'musicGroup/findMusicGroupSubjectInfo/966'"}],attrs:{type:"text"},on:{click:function(s){return e.$listeners.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),s("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(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")])],1)],1)},a=[],n=(s("96cf"),s("1da1")),r=s("1cc7"),o=(s("1672"),s("3908"),s("333d")),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:{getList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(r["jb"])({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)}))}}},c=l,u=(s("d2df"),s("2877")),d=Object(u["a"])(c,i,a,!1,null,"ff8abc50",null);t["a"]=d.exports},e668:function(e,t,s){"use strict";s("3ba9")},eb49:function(e,t,s){"use strict";s("f080")},ebe4:function(e,t,s){},f080:function(e,t,s){},f10d:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("soundSetCore",{ref:"soundSetCore"}),e._v(" "),"look"!==e.lookType?s("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"30px"}},[s("div",{staticClass:"closeBtn",on:{click:e.getSound}},[e._v("取消")]),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/updateSubjectInfo",parent:"/resetTeaming/resetSound"},expression:"{child: 'musicGroup/updateSubjectInfo', parent: '/resetTeaming/resetSound'}"}],staticClass:"okBtn",on:{click:e.saveInfo}},[e._v("保存")])]):e._e()],1)},a=[],n=s("ff14"),r={components:{soundSetCore:n["a"]},data:function(){return{lookType:""}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.lookType=this.$route.query.type},saveInfo:function(){this.$refs.soundSetCore.submitInfo()},getSound:function(){this.$refs.soundSetCore.init()}}},o=r,l=s("2877"),c=Object(l["a"])(o,i,a,!1,null,"417cc28b",null);t["a"]=c.exports},f171:function(e,t,s){},f180:function(e,t,s){"use strict";s("a544")},f610:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("save-form",{attrs:{inline:!0,"save-key":"resetPayListSchool",model:e.searchForm},on:{submit:e.getList}},[s("el-form-item",[s("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 s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),s("div",{staticClass:"topWrap"},[e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("新建学校缴费")]):e._e(),e._v(" "),e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")]):e._e()]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("auditType")(t.row.auditStatus))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"150px",prop:"courseCurrentPrice",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseCurrentPrice))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(s){return e.lookList(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(s){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),e.teamStatus&&"REJECT"===t.row.auditStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(s){return e.resetPay(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/delByBatchNo",expression:"'musicGroupPaymentCalender/delByBatchNo'"}],attrs:{type:"text"},on:{click:function(s){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1)]}}])})],1),e._v(" "),s("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(" "),s("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[s("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[s("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[s("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(" "),s("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[s("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(" "),s("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[s("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"}},[s("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),s("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),s("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[s("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(" "),s("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[s("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?s("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[s("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"}},[s("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),s("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?s("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[s("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(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?s("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?s("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(" "),s("el-dialog",{attrs:{title:"查看缴费用户列表",visible:e.userListVisible,width:"850px"},on:{"update:visible":function(t){e.userListVisible=t}}},[e.userListVisible&&e.viewDetail?s("schoolPayUserList",{attrs:{detail:e.viewDetail}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[s("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(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?s("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.isNewGropu?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive}}):e._e()],1),e._v(" "),s("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?s("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),s("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),s("el-dialog",{attrs:{title:"确认收款",visible:e.getMoneyVisible,width:"600px"},on:{"update:visible":function(t){e.getMoneyVisible=t}}},[s("isGetMoney",{ref:"getMoney",attrs:{data:e.activeRow},on:{close:e.closeMoney}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.getMoneyVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitGetMoney}},[e._v("确 定")])],1)],1)],1)},a=[],n=(s("a481"),s("5530")),r=(s("96cf"),s("1da1")),o=(s("bc3a"),s("5f87"),s("333d")),l=(s("3908"),s("4328"),s("5a0c")),c=s.n(l),u=s("641c"),d=s("61f7"),p=s("1cc7"),m=s("d349"),h=s("b38b"),f=s("1672"),y=s("b3d0"),v=s("940a"),b=s("e623"),g=s("86e8"),_=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("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(" "),s("el-form-item",[s("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 s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.FetchList}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),s("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(" "),s("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"100",align:"center",prop:"studentId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?s("div",[s("copy-text",[e._v(e._s(t.row.sysUser.username))])],1):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"学员声部"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{width:"100%",text:e.row.studentRegistration&&e.row.studentRegistration.subjectName}})]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.studentRegistration?s("div",[e._v("\n "+e._s(e._f("studentTeamStatus")(t.row.studentRegistration.musicGroupStatus))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"130",align:"center",prop:"studentId",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?s("div",[s("copy-text",[e._v(e._s(t.row.sysUser.phone))])],1):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"110",align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])})],1),e._v(" "),s("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=[],C=s("704d"),w={search:"",subjectId:""},T={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(n["a"])({},w),list:[],activeChiose:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{storeState:function(){return C["a"].state}},mounted:function(){this.detail&&(C["a"].dispatch("getFindSound",{data:{musicGroupId:this.detail.musicGroupId}}),this.FetchList())},methods:{handleSelectionChange:function(e){this.activeChiose=e},onReSet:function(){this.searchForm=Object(n["a"])({},w),this.FetchList()},deleteUser:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除选中学员?","提示",{type:"warning"});case 3:return e.next=5,Object(p["w"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(p["Ob"])(Object(n["a"])({id:this.detail.id,page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:t=e.sent,this.rules.total=t.data.total,this.list=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},k=T,x=s("2877"),L=Object(x["a"])(k,_,S,!1,null,"4d351015",null),I=L.exports,P=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"moneyForm",attrs:{model:e.form}},[s("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[s("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=[],D={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(s){var i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}return i=t.data.id,a=t.form.memo,e.prev=3,e.next=6,Object(f["b"])({id:i,memo:a});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")}}},F=D,j=Object(x["a"])(F,P,O,!1,null,"4b111bac",null),G=j.exports,$=s("cd32"),N=s("3762"),V=s("267e"),E=s("ed08"),R=s("92e3"),M={props:["baseInfo","isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:$["a"],reviewDetail:N["a"],teamType:"","pay-items":b["a"],schoolPayUserList:I,isGetMoney:G},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:R["t"],getMoneyVisible:!1}},created:function(){},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(E["b"])(V["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.type;return"teamDraft"==e||"resetTeam"==e||"PRE_BUILD_FEE"==e}},methods:{init:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["a"])({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.getList();case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){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(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(d["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,s=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["v"])({id:s}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookUserList:function(e){console.log(Object(n["a"])({},e)),this.viewDetail=Object(n["a"])({},e),this.userListVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},removeBatchNo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(f["d"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(f["e"])(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["hc"])({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.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var s=e,i=new Date(s.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var a=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return a},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));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()}},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())}}},A=M,U=(s("ab09"),Object(x["a"])(A,i,a,!1,null,"ed1c9656",null));t["a"]=U.exports},f635:function(e,t,s){},f672:function(e,t,s){},f927:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": ",inline:""}},[s("el-row",[e.showName?s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1):e._e(),e._v(" "),s("el-col",{attrs:{span:10,offset:e.showName?4:0}},[s("el-form-item",{attrs:{label:"声部"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择声部"},model:{value:e.sound,callback:function(t){e.sound=t},expression:"sound"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),s("el-transfer",{class:{hideReturn:!e.canDelUser},attrs:{filterable:"",titles:["所有学员","已选学员"],"filter-placeholder":"请输入学生姓名","filter-method":e.filterStudent,"render-content":e.renderFunc,data:e.data},scopedSlots:e._u([{key:"left-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0},{key:"right-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0}]),model:{value:e.seleched,callback:function(t){e.seleched=t},expression:"seleched"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},a=[],n=(s("96cf"),s("1da1")),r=(s("7f7f"),s("6762"),s("2fdb"),s("2909")),o=s("267e"),l=s("b4ac"),c=s("2ef0"),u={props:["studentList","soundList","activeType","activeListStudent","isOnlyChangeUser","classGroupId","type"],computed:{data:function(){var e=this;return Object(c["uniqBy"])([].concat(Object(r["a"])(this.studentList),Object(r["a"])(this.activeListStudent)),"userId").filter((function(t){return!e.sound.length||(e.sound.includes(t.actualSubjectId)||e.seleched.includes(t.userId))})).map((function(e){return{value:e.userId,key:e.userId,name:e.name,subjectName:e.subjectName,gender:o["genderType"][e.gender]}}))},showName:function(){return!this.isOnlyChangeUser&&"MUSIC_NETWORK"!=this.activeType},canDelUser:function(){return"resetTeam"!==this.$route.query.type||!this.isOnlyChangeUser}},data:function(){return{sound:[],form:{name:""},seleched:[]}},watch:{activeListStudent:function(){this.setSelectedUser()}},mounted:function(){this.setSelectedUser()},methods:{setSelectedUser:function(){var e=this.activeListStudent.map((function(e){return e.userId}));this.seleched=Object(r["a"])(e)},filterStudent:function(e,t){return t.name.indexOf(e)>-1||t.subjectName.indexOf(e)>-1||t.gender.indexOf(e)>-1},renderFunc:function(e,t){return e("div",{class:"line"},[e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.name]),e("span",{class:"select-item"},[t.name])]),e("span",[t.gender]),e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.subjectName]),e("span",{class:"select-item"},[t.subjectName])])])},change:function(e){this.$listeners.changeActiveChioseSound(e),this.$listeners.searchStudent()},submit:function(){var e=this;return!this.isOnlyChangeUser&&"HIGH_ONLINE"==this.activeType&&(this.seleched.length<3||this.seleched.length>5)?this.$message.error("线上技能班必须为3-5人"):this.seleched.length<1?this.$message.error("请至少选择一名学生"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length>1?this.$message.error("乐团网管课仅可添加一名学生"):void this.$refs.form.validate(function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=15;break}if(!e.isOnlyChangeUser||"change"===e.type){t.next=13;break}return t.prev=2,t.next=5,Object(l["c"])({classGroupId:e.classGroupId,studentIds:e.seleched.join(",")});case 5:e.$message.success("提交成功"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](2);case 10:e.$listeners.submited(),t.next=14;break;case 13:e.$listeners.submited({seleched:e.seleched,name:e.form.name});case 14:e.$listeners.close();case 15:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}())}}},d=u,p=(s("0fbe"),s("2877")),m=Object(p["a"])(d,i,a,!1,null,"0828250a",null);t["a"]=m.exports},ff14:function(e,t,s){"use strict";var i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"soundBtnWrap"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():s("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():s("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"coreWrap"},[s("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[s("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,i){return s("el-collapse-item",{key:i,attrs:{name:t.id}},[s("template",{slot:"title"},[s("div",{staticClass:"coreItemTitle"},[s("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),s("div",{staticClass:"coreItem"},[s("div",{staticClass:"coreItemRow"},[s("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(s){e.$set(t,"expectedStudentNum",s)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),s("el-divider"),e._v(" "),s("chioseMusic",{attrs:{activeSoundList:e.activeSoundList,item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),s("div",{staticClass:"coreItemRow"},[s("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),s("el-select",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(s){e.$set(t,"markChioseList",s)},expression:"item.markChioseList"}},e._l(t.markList,(function(t,i){return s("el-option",{key:i,attrs:{label:t.name,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","padding-right":"20px"}},[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+"元")])])})),1)],1)],2)})),1)],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.soundVisible=t}}},[s("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1)],1)},a=[],n=s("5530"),r=(s("7f7f"),s("6762"),s("2fdb"),s("5df3"),s("4f7f"),s("2909")),o=(s("456d"),s("28a5"),s("ac6a"),s("386d"),s("ade3")),l=(s("4360"),s("fa7d"),s("1cc7")),c=s("5a0c"),u=s.n(c),d=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"soundWrap"},[s("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[s("div",{staticClass:"itemList"},e._l(e.soundList,(function(t,i){return s("div",{key:i,staticClass:"categroy"},[s("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,i){return s("el-checkbox",{key:i,attrs:{label:t.id,disabled:e.activeSound.includes(t.id)},on:{change:e.changeCheck}},[e._v(e._s(t.name))])}))],2)})),0)])],1),e._v(" "),s("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),s("div",{staticClass:"btnWraps"},[s("el-button",{attrs:{type:"primary"},on:{click:e.generates}},[e._v("\n 确定\n ")])],1)])},p=[],m={props:["soundList","childSoundList","activeSound"],data:function(){return{chioseSoundNum:"",activeSoundList:this.activeSound||[]}},mounted:function(){console.log(this.soundList)},activated:function(){console.log(this.soundList)},methods:{generates:function(){this.$emit("chioseSound",this.activeSoundList)},changeCheck:function(){}}},h=m,f=(s("4226"),s("2877")),y=Object(f["a"])(h,d,p,!1,null,"c28cee18",null),v=y.exports,b=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e._l(e.item.chioseMusic,(function(t,i){return s("div",{key:i},[s("div",{staticClass:"chioseMusic"},[s("div",{staticClass:"flexRow"},[s("p",{staticClass:"title"},[e._v("可选乐器"+e._s(i+1)+":")]),e._v(" "),s("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},on:{change:function(s){e.chioseMusic(s,t)}},model:{value:t.musical,callback:function(s){e.$set(t,"musical",s)},expression:"music.musical"}},e._l(e.item.goodsList,(function(t,i){return s("el-option",{key:i,attrs:{label:t.name,value:t.id,disabled:e.checkDisabled(t)}})})),1)],1),e._v(" "),s("div",{staticClass:"flexRow"},[s("p",{staticClass:"title"},[e._v("乐器提供方式:")]),e._v(" "),s("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(s){e.$set(t,"type",s)},expression:"music.type"}},[s("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),s("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),s("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),s("div",{staticClass:"flexRow"},[s("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticClass:"title"},[e._v("\n 团购价:\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{width:"180px"}},[s("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(s){e.$set(t,"groupPrice",s)},expression:"music.groupPrice"}},[s("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),s("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticClass:"title"},[e._v("\n 租赁押金:\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticStyle:{width:"180px"}},[s("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(s){e.$set(t,"borrowPrice",s)},expression:"music.borrowPrice"}},[s("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.item.chioseMusic.length>1&&!e.basdisabled&&(t.type.includes("LEASE")||t.type.includes("GROUP"))?s("i",{staticClass:"el-icon-close marginLeft10",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(s){return e.deleteMusic(t)}}}):e._e()]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{"margin-top":"5px"}},[s("div",{staticClass:"flexRow"},[s("p",{staticClass:"title"},[e._v("团购乐器减免课程费用:")]),e._v(" "),s("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],model:{value:t.groupRemissionCourseFee,callback:function(s){e.$set(t,"groupRemissionCourseFee",s)},expression:"music.groupRemissionCourseFee"}},[s("el-radio",{attrs:{disabled:e.basdisabled,label:!0}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.basdisabled,label:!1}},[e._v("否")])],1)],1)])]),e._v(" "),s("el-divider")],1)})),e._v(" "),e.basdisabled?e._e():s("div",{staticClass:"coreItemRow"},[s("p",{staticClass:"title"}),e._v(" "),s("el-button",{staticStyle:{width:"558px"},attrs:{type:"info",plain:"",size:"mini",icon:"el-icon-plus"},on:{click:e.addMusic}},[e._v("新增可选乐器")])],1)],2)},g=[],_={props:["item","basdisabled","activeSoundList"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){},methods:{chioseMusic:function(e,t){this.item.goodsList.map((function(s,i){s.id==e&&(t.groupPrice=s.groupPurchasePrice)}))},addMusic:function(){this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:null,borrowPrice:1500,groupRemissionCourseFee:0}),this.$emit("lookMusic")},deleteMusic:function(e){var t=this;this.item.chioseMusic.forEach((function(s,i){s.musical==e.musical&&t.item.chioseMusic.splice(i,1)}))},checkDisabled:function(e){var t=!1;return this.activeSoundList.forEach((function(s){s.chioseMusic.forEach((function(s){e.id==s.musical&&(t=!0)}))})),t},changeFee:function(e,t){this.$set(t,"groupRemissionCourseFee",e)}}},S=_,C=(s("eb49"),Object(f["a"])(S,b,g,!1,null,"15b4cece",null)),w=C.exports,T=s("2ef0"),k=(s("6612"),{components:{chioseSoundList:v,chioseMusic:w},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(o["a"])(e,"soundList",[]),Object(o["a"])(e,"childSoundList",[]),Object(o["a"])(e,"teamStatus",""),Object(o["a"])(e,"checkList",[]),Object(o["a"])(e,"basdisabled",!1),e},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.topfor=this.$store.getters.topinfo;var t=this.topfor.type,s=this.topfor.section;this.teamStatus=this.$route.query.type,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,Object(l["tb"])({tenantId:1}).then((function(i){200==i.code&&(e.soundList=i.data.rows,"newTeam"==e.teamStatus&&t&&s?Object(l["Z"])({chargeTypeId:t,organId:s,number:1}).then((function(t){if(200==t.code){var s=[];e.activeSoundList=t.data.map((function(t){return s.push(t.id),e.initSound(t)})),e.activeSound=s,e.chioseActiveSound=s,e.changeActiveSound(s.join(","))}})):(e.teamid=e.$route.query.id,e.teamid&&Object(l["E"])({musicGroupId:e.teamid}).then((function(t){if(200==t.code){var s,i=[];e.activeSoundList=null===(s=t.data)||void 0===s?void 0:s.musicGroupSubjectPlans.map((function(e){return i.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),e.activeSound=i,e.chioseActiveSound=i,e.changeActiveSound(i.join(",")),t.data.musicGroupSubjectGoodsGroups.forEach((function(t){var s=Object(T["findIndex"])(e.activeSoundList,(function(e){return e.id==t.subjectId}));if(-1!=s)if("ACCESSORIES"==t.type)t.goodsIdList.split(",").forEach((function(t){e.activeSoundList[s].markChioseList.push(parseInt(t))}));else if("INSTRUMENT"==t.type){var i=Object.keys(JSON.parse(t.kitGroupPurchaseTypeJson));e.activeSoundList[s].chioseMusic.push({musical:parseInt(t.goodsIdList),type:i,groupPrice:t.price,borrowPrice:t.depositFee,groupRemissionCourseFee:Boolean(t.groupRemissionCourseFee)})}}))}}))))})),Object(l["yb"])({tenantId:1}).then((function(t){200==t.code&&(e.childSoundList=t.data)}))},lookCheck:function(e){this.checkList=Object(r["a"])(new Set(e))},chioseSound:function(e){this.activeSound=Object(r["a"])(new Set(e));var t=[];for(var s in this.childSoundList)this.activeSound.includes(this.childSoundList[s].id)&&t.push(this.initSound(this.childSoundList[s]));var i=this.activeSoundList.map((function(e){return e.id}));for(var a in t){var n,o=i.indexOf(null===(n=t[a])||void 0===n?void 0:n.id);o>-1&&(t[a]=this.activeSoundList[o])}this.activeSoundList=t;var l=[];this.activeSoundList.forEach((function(e){l.push(e.id)})),this.activeSound=l,this.chioseActiveSound=l,this.changeActiveSound(l.join(",")),this.soundVisible=!1},initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(e){var t=this;Object(l["zb"])({subjectIds:e,chargeTypeId:this.topfor.type}).then((function(e){if(200==e.code&&e.data){var s=Object.keys(e.data);t.activeSoundList.forEach((function(t){if(-1!=s.indexOf(t.id+"")){var i=[],a=[];e.data[t.id].forEach((function(e){"INSTRUMENT"==e.type?i.push(e):"ACCESSORIES"==e.type&&a.push(e)})),t.goodsList=i,t.markList=a}}))}}))},lookMusic:function(){},submitInfo:function(e){var t=this;if(this.activeSoundList.length<=0)this.$message.error("请至少设置一个声部");else{var s=!0;if(this.activeSoundList.forEach((function(e){var i;return e.expectedStudentNum?null!==(i=e.chioseMusic[0])&&void 0!==i&&i.musical?void e.chioseMusic.forEach((function(i){-1!=i.type.indexOf("LEASE")&&(!i.borrowPrice||parseFloat(i.borrowPrice)<=0)&&(t.$message.error("请填写正确的".concat(e.sound,"租赁押金")),s=!1)})):(t.$message.error("请至少一个选择".concat(e.sound,"的可选乐器")),void(s=!1)):(t.$message.error("请填写".concat(e.sound,"的预计招生人数")),void(s=!1))})),s){var i={};"newTeam"==this.teamStatus&&this.initCreateTeam(i),i.musicGroupSubjectGoodsGroups=[],i.musicGroupSubjectPlans=[],this.activeSoundList.forEach((function(e){var t={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};i.musicGroupSubjectPlans.push(t),e.chioseMusic.forEach((function(t){var s,a=null,n=t.borrowPrice,r=t.groupPrice;s=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(T["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=o&&(a=e.goodsList[o]);var l={};if(t.type.forEach((function(e){l[e]=0})),l=JSON.stringify(l),a){var c={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:a.name,kitGroupPurchaseTypeJson:l,depositFee:n,price:r,groupRemissionCourseFee:s};i.musicGroupSubjectGoodsGroups.push(c)}})),e.markChioseList.forEach((function(t){var s=Object(T["findIndex"])(e.markList,(function(e){return e.id==t})),a=null;if(-1!=s&&(a=e.markList[s]),a){var n={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:a.name,price:a.groupPurchasePrice};i.musicGroupSubjectGoodsGroups.push(n)}}))})),"newTeam"==this.teamStatus?Object(l["u"])(i).then((function(e){200==e.code&&t.$confirm("乐团创建成功,是否提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.teamStatus="teamDraft",t.teamid=e.data,t.submitInfo(1)})).catch((function(){t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/business/teamDetail"})}))})):(i.musicGroupId=this.teamid,i.musicGroupStatus=e?"AUDIT":"DRAFT",Object(l["Gc"])(i).then((function(e){if(200==e.code){t.$message.success("提交成功");var s=t.$route.query;t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/business/teamDetail",query:Object(n["a"])({},s)})}})))}}},deleteRow:function(){if(this.checkList.length<1)this.$message.error("请至少勾选一个");else{for(var e=0;e<this.activeSoundList.length;e++){var t=this.checkList.indexOf(this.activeSoundList[e].id);-1!=t&&(this.activeSoundList.splice(e,1),this.activeSound.splice(e,1),e--)}this.checkList=[]}},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,s){e.checkList.push(t.id)}))},initCreateTeam:function(e){var t;return t=this.topfor.startClass?this.topfor.startClass.join(","):null,e.musicGroup={settlementType:this.topfor.salary,applyExpireDate:u()(this.topfor.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:this.topfor.type,cooperationOrganId:this.topfor.school,teamTeacherId:this.topfor.boss,educationalTeacherId:this.topfor.teacher,enrollClasses:t,name:this.topfor.name,organId:this.topfor.section,paymentPattern:this.topfor.paymentPattern,paymentValidStartDate:this.topfor.paymentValidStartDate?u()(this.topfor.paymentValidStartDate).format("YYYY-MM-DD"):this.topfor.paymentValidStartDate,paymentValidEndDate:this.topfor.paymentValidEndDate?u()(this.topfor.paymentValidEndDate).format("YYYY-MM-DD"):this.topfor.paymentValidEndDate,schoolId:this.topfor.address,expectStartGroupDate:this.topfor.startTime,isClassroomLessons:this.topfor.isClass,status:"DRAFT",ownershipType:this.topfor.ownershipType,repairUserId:this.topfor.repairUserId,feeType:this.topfor.feeType,directorUserId:this.topfor.head},e}},watch:{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,s=0;this.activeSoundList;if(e){var i=0;if(e.length>0)for(var a in e){var n;i+=parseInt(null===(n=e[a])||void 0===n?void 0:n.expectedStudentNum)||0}t=e.length,s=i,this.$emit("getNumber",t,s)}}}}}),x=k,L=(s("7f06"),Object(f["a"])(x,i,a,!1,null,"dd47baec",null));t["a"]=L.exports}}]);
|