chunk-39a756e0.9de72ee9.js 335 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39a756e0","chunk-770fa607","chunk-8ec87c6a","chunk-f6294b9e"],{"0464":function(e,t,s){"use strict";var a=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,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[s("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(s){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(s){e.$set(e.list.form[t.$index],"courseType",s)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,a){return s("el-option",{key:a,attrs:{disabled:e.isOptionDisabled(a),label:e.courseType[a],value:a}})})),1)],1)]}}])}),e._v(" "),e.isCommon?s("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[s("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(s){e.$set(e.list.form[t.$index],"isStudentOptional",s)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),s("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",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,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(s){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(s){e.$set(e.list.form[t.$index],"courseTotalMinuties",s)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),s("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},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:"请输入现价"},on:{change:e.change},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)]}}])},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},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?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)},i=[],r=(s("6762"),s("2fdb"),s("267e")),n=s("ed08"),o=s("92e3"),c=s("6612"),l=s.n(c),u=(s("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:r["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(n["b"])(r["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(o["b"])(o["h"])}},methods:{change:function(e){this.$listeners.moneyChange()},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")},courseItemChange:function(e,t){this.$listeners.priceChange(e,t),this.$refs.form.validateField("form.".concat(t,".courseTotalMinuties"))},validatorCourseTotalMinuties:function(e){var t=this;return function(s,a,i){var r=t.list.form[e].courseType;r&&a>1&&t.classTimeList[r]&&a<t.classTimeList[r]?i(new Error("单节课不得少于".concat(t.classTimeList[r],"分钟"))):i()}}}}),p=u,d=(s("1139"),s("2877")),m=Object(d["a"])(p,a,i,!1,null,"a10777a0",null);t["a"]=m.exports},"054c":function(e,t,s){},"070d":function(e,t,s){"use strict";var a=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("\n 新建学员缴费\n ")]):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")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice: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(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"NO"!=t.row.auditStatus||!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():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":"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:"PRE_BUILD_FEE"==e.team_status?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",{staticClass:"subjectPreview",attrs:{title:"报名声部预览",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[s("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dialogSubjectList,(function(t,a){return s("el-tab-pane",{key:a,attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[s("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1)],1)],1)},i=[],r=(s("6b54"),s("a481"),s("96cf"),s("3b8d")),n=s("333d"),o=s("5a0c"),c=s.n(o),l=s("641c"),u=s("61f7"),p=s("1cc7"),d=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,a=e._self._c||t;return a("div",{staticStyle:{background:"#F3F4F8"}},[a("h2",{staticClass:"title"},[e._v("注册说明")]),e._v(" "),e._m(0),e._v(" "),2==e.courseViewType?[a("h2",{staticClass:"title"},[e._v("学习工具包")]),e._v(" "),a("div",{staticClass:"yunTrain"},[a("img",{attrs:{src:e.trainBg}}),e._v(" "),a("div",{staticClass:"toolText"},[a("p",{staticClass:"toolTitle"},[e._v("器乐练习云教练\n\t\t\t\t\t\t"),a("i",{staticClass:"icon_video",on:{click:function(t){e.videoStatus=!0}}})]),e._v(" "),a("p",{staticClass:"toolDate"},[e._v("有效期说明:自开课之日起6个月内有效")])])])]:e._e(),e._v(" "),1==e.courseViewType&&e.courseShowInfo.length>0?[a("div",{staticClass:"yunTrain",staticStyle:{"margin-top":"12px"}},[a("img",{attrs:{src:e.trainBg}}),e._v(" "),a("div",{staticClass:"toolText"},[a("p",{staticClass:"toolTitle"},[e._v("服务")]),e._v(" "),e.serviceValidDate?a("p",{staticClass:"toolDate"},[e._v("服务有效期:"+e._s(e.serviceValidDate))]):e._e()])])]:e._e(),e._v(" "),0==e.courseViewType?a("h2",{staticClass:"titles",staticStyle:{"margin-top":"12px"}},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("乐团课程")])]):e._e(),e._v(" "),[e.courseShowStatus&&1==e.courseViewType?a("div",{staticClass:"section"},e._l(e.courseShowInfo,(function(t,s){return a("el-row",{key:s,staticClass:"option-row",class:[t.isStudentOptional?"":"disabled"],nativeOn:{click:function(s){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:16}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),a("span",{staticStyle:{display:"flex","align-items":"center"}},["PROJECT"==t.courseType?[e._v(e._s(e.chargeTypeName)+" ")]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),"PROJECT"==t.courseType?a("el-icon",{staticClass:"el-icon-question",nativeOn:{click:function(t){return e.onQuestions("amr")}}}):e._e()],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)})),1):e._e(),e._v(" "),2==e.courseViewType?a("div",{staticClass:"section"},e._l(e.toolsPackage,(function(t,s){return a("div",{key:s},[a("el-row",{staticClass:"option-row",staticStyle:{"padding-top":"0"},on:{click:function(s){return e.onTrainChange(t)}}},[a("el-col",{attrs:{span:18}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),a("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.name))]],2)]),e._v(" "),a("el-col",{attrs:{span:6}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.cloudTeacherFee)))])])],1),e._v(" "),t.childGoodsList?a("el-row",{staticStyle:{"padding-left":".24rem"}},e._l(t.childGoodsList,(function(s,i){return a("el-col",{key:s.name},[a("span",{staticStyle:{"font-size":"12px",color:"#aaaaaa"}},[e._v(e._s(s.name)+" "+e._s(t.childGoodsList.length-1==i?"":"、"))])])})),1):e._e()],1)})),0):e._e(),e._v(" "),0==e.courseViewType?a("div",{staticClass:"section"},[0==e.courseViewType?a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11,offset:1}},[e._v("现价")])],1):e._e(),e._v(" "),e._l(e.courseInfo,(function(t,s){return a("el-row",{key:s,staticClass:"option-row",nativeOn:{click:function(s){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"":"disabled"]}),"PROJECT"==t.courseType?[e._v(e._s(t.name))]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),a("el-col",{attrs:{span:11,offset:1}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)}))],2):e._e()],e._v(" "),e.courseInfo&&e.courseInfo.length>0&&e.isClickStatus&&1==e.courseViewType?a("div",{staticClass:"section"},[a("h2",{staticClass:"title"},[e._v(e._s("乐团课程"))]),e._v(" "),a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.courseInfo,(function(t,s){return[t.isStudentOptional?a("el-row",{key:s,staticClass:"option-row",nativeOn:{click:function(s){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"":"disabled"]}),"PROJECT"==t.courseType?[e._v(e._s(t.name))]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),a("el-col",{attrs:{span:11,offset:1}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1):e._e()]}))],2):e._e(),e._v(" "),e.instrumentResultList&&e.instrumentResultList.length>0?a("h2",{staticClass:"titles"},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("乐器")])]):e._e(),e._v(" "),e.instrumentResultList&&e.instrumentResult.length>0?a("div",{staticClass:"section"},e._l(e.instrumentResultList,(function(t,s){return a("div",{key:s},[e.leBaoStatus&&"owned"==t[0].kitType?[a("el-row",{staticClass:"option-row",staticStyle:{"padding-bottom":"10px","margin-top":"8px","border-top":"1px solid #F0F0F0"},nativeOn:{click:function(t){return e.onLeBao(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[e.buyMaintenance?"check_active":""]}),e._v("乐器保养(一年)"),a("el-icon",{staticStyle:{"padding-left":"0"},attrs:{name:"question"},nativeOn:{click:function(t){return t.stopPropagation(),e.onQuestions("instrument")}}})],1),e._v(" "),a("el-col",{attrs:{span:11,offset:1}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(300)))])])],1)]:e._e(),e._v(" "),a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},["GROUP"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t团购乐器"+e._s(2==e.courseViewType?"(赠送辅件一套)":null)+"\n\t\t\t\t\t\t")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t乐器租赁"+e._s(2==e.courseViewType?"(请自行购买辅件)":null)+"\n\t\t\t\t\t\t")]:e._e(),e._v(" "),"FREE"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t免费乐器"+e._s(2==e.courseViewType?"(请自行购买辅件)":null)+"\n\t\t\t\t\t\t")]:e._e(),e._v(" "),"owned"==t[0]["kitType"]?[e._v("\n\t\t\t\t\t\t\t自备乐器"+e._s(2==e.courseViewType?"(请自行购买辅件)":null)+"\n\t\t\t\t\t\t")]:e._e()],2),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","LEASE","FREE"].includes(t[0]["kitType"])?[e._v("原价")]:e._e()],2),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","FREE"].includes(t[0]["kitType"])?[e._v("现价")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("租赁押金")]:e._e()],2)],1),e._v(" "),e._l(t,(function(t,s){return a("div",{key:s,on:{click:function(s){return e.instrumentF(t)}}},[a("el-row",{staticClass:"option-row"},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(" "),a("div",[e._v("\n "+e._s(t.name)+"\n "),t.goodsList?a("div",{staticStyle:{"font-size":"12px",color:"#aaa"}},[e._v("\n "+e._s(t.goodsList[0].specification)+"\n ")]):e._e()])]),e._v(" "),a("el-col",{attrs:{span:6}},["owned"!=t.kitType?a("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.marketPrice)))]):e._e()]),e._v(" "),a("el-col",{attrs:{span:6}},["LEASE"==t.kitType?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))]):e._e(),e._v(" "),"FREE"==t.kitType?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))]):e._e(),e._v(" "),"GROUP"==t.kitType?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.price-t.coupon).toFixed(2)))))]):e._e()])],1),e._v(" "),t.childGoodsList?a("van-row",{staticStyle:{"padding-left":"24px","padding-top":"8px","border-top":"1px solid #F0F0F0"}},[a("van-col",{staticStyle:{"font-size":"14px",color:"#1A1A1A"},attrs:{span:"24"}},[e._v("赠送辅件")]),e._v(" "),e._l(t.childGoodsList,(function(s,i){return a("van-col",{key:s.id},[a("span",{staticStyle:{"font-size":"12px",color:"#aaaaaa"}},[e._v(e._s(s.name)+" "+e._s(t.childGoodsList.length-1==i?"":"、"))])])}))],2):e._e()],1)}))],2)})),0):e._e(),e._v(" "),e.accessOries.length>0&&e.accessIsShowStatus?a("h2",{staticClass:"titles"},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("辅件")])]):e._e(),e._v(" "),e.accessOries.length>0&&e.accessIsShowStatus?a("div",{key:"accessOries",staticClass:"section"},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},[e._v("服务项目")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("原价")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.accessOries,(function(t,s){return a("div",{key:s},[a("el-row",{staticClass:"option-row",nativeOn:{click:function(s){return e.onAuxiliarie(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(e._s(t.name)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:6}},[a("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.goodsList[0]?t.goodsList[0].marketPrice:0)))])]),e._v(" "),a("el-col",{attrs:{span:6}},[0==t.price?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("免费")]):a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])])],1),e._v(" "),t.childGoodsList?a("el-row",{staticStyle:{"padding-left":"24px"}},[a("el-col",e._l(t.childGoodsList,(function(s,i){return a("span",{key:s.id,staticStyle:{"font-size":"12px",color:"#aaaaaa"}},[e._v(e._s(s.name)+" "+e._s(t.childGoodsList.length-1==i?"":","))])})),0)],1):e._e()],1)}))],2):e._e(),e._v(" "),a("div",{staticClass:"buy"},[a("div",{staticClass:"price"},[a("p",{staticClass:"oldprice"},[a("del",{staticClass:"text"},[e._v("原价")]),e._v(" "),a("del",{staticStyle:{"font-size":"13px"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),a("p",{staticClass:"now_price"},[a("span",{staticClass:"text"},[e._v("仅需支付")]),e._v(" "),a("span",{staticStyle:{"font-weight":"bold"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),a("a",{staticClass:"btn-submit"},[e._v("购买")])]),e._v(" "),a("el-dialog",{staticClass:"videoDialog",attrs:{title:"视屏",visible:e.videoStatus,"modal-append-to-body":!1,"append-to-body":!0,width:"30%"},on:{"update:visible":function(t){e.videoStatus=t}}},[e.videoStatus?a("video",{staticClass:"ql-video",staticStyle:{width:"100%"},attrs:{controls:"controls",src:"https://daya.ks3-cn-beijing.ksyun.com/202105/SWmqmvW.mp4",poster:s("df4f")}}):e._e()])],2)},w=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"noticeInfo"},[e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),s("br"),e._v("\n\t\t\t2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n\t\t")])}],k=(s("7f7f"),s("c5f6"),s("456d"),s("ac6a"),s("ec8a")),x={0:"按月",1:"按学期",2:"一次性"},C={props:["subjectId","calenderId"],data:function(){var e=this.$route.query;return{videoStatus:!1,trainBg:s("31f0"),trainSmallBg:s("9214"),musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,cloudTeacherFee:0,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0,musicMarketClassFee:0,accessPrice:0,accessMarketPrice:0,goodsPrice:0,goodsMarketPrice:0},toolsPackage:[{isStatus:!0,name:"练习系统(六个月)",childGoodsList:[{name:"同步乐团训练教程、五线谱跟播、演奏指法跟播、演奏速度自定义、任选小节循环播放、原音/伴奏一键切换"}]}],courseInfo:null,musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],instrumentResultList:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null,serviceValidDate:null,courseShowStatus:!1,chargeTypeList:[],chargeTypeName:null,courseViewType:0,leBaoStatus:!1,buyMaintenance:!1,isClickStatus:!1,accessStatus:!1,accessIsShowStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(r["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(p["Rb"])().then((function(e){var t=e.data;200==e.code&&(s.chargeTypeList=t.rows||[])}));case 3:return e.next=5,Object(p["Hb"])(t).then((function(e){var t=e;if(200==t.code){var a=t.data;s.courseViewType=a.musicGroup.courseViewType||0,s.cloudTeacherFee=a.cloudTeacherFee||0,s.paymentPattern=2,a.musicGroupPaymentCalender&&(s.paymentPattern=a.musicGroupPaymentCalender.paymentPattern,s.serviceValidDate=c()(a.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+c()(a.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var i=a.musicGroupPaymentCalender?a.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null;if(i&&i.length>0){var r={courseCurrentPrice:0,courseOriginalPrice:0,courseType:null,name:"器乐练习系统"};i.forEach((function(e){e.isStudentOptional||(s.courseShowStatus=!0,r={courseCurrentPrice:e.courseCurrentPrice+r.courseCurrentPrice,courseOriginalPrice:e.courseCurrentPrice+r.courseCurrentPrice,courseType:"PROJECT",isStatus:!0,name:"器乐练习系统"})})),s.courseShowInfo=[r],s.courseInfo=i}else s.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}];s.isClickStatus=!1,s.courseInfo.forEach((function(e){e.isStudentOptional?(e.isStatus=!1,s.isClickStatus=!0):e.isStatus=!0})),s.musicGroupSubject=a.musicGroupSubjectPlan;var n={},o=[];if(a.musicGroupSubjectGoodsGroupList.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{};for(var a in t){var i=Object.assign({},e);i.marketPrice=i.goodsList[0].marketPrice,i.kitType=a,i.coupon=t[a],n.id?(i.checked=!1,"GROUP"==a?("GROUP"==n.kitType&&n.price<i.price||"LEASE"==n.kitType||"FREE"==n.kitType)&&(s.instrumentResult.forEach((function(e){e.checked=!1})),i.checked=!0,n={id:i.id,price:i.price,kitType:a}):"LEASE"==a?"LEASE"==n.kitType&&n.price<i.price&&(s.instrumentResult.forEach((function(e){e.checked=!1})),i.checked=!0,n={id:i.id,price:i.price,kitType:a}):"FREE"==a&&"FREE"==n.kitType&&n.price<i.price&&(s.instrumentResult.forEach((function(e){e.checked=!1})),i.checked=!0,n={id:i.id,price:i.price,kitType:a})):(i.checked=!0,n={id:i.id,price:i.price,kitType:a}),s.instrumentResult.push(i),o.push(i)}}else"ACCESSORIES"==e.type&&(e.checked=!0,s.accessOries.push(e))})),s.instrumentResult.length>0){var l={id:-1,kitType:"owned",name:"自备乐器",price:0,marketPrice:0,checked:!1};o.push(l),s.instrumentResult.push(l);var u=s.groupBy(o,(function(e){return[e.kitType]}));s.instrumentResultList=u,s.chargeTypeList.forEach((function(e){e.id==a.musicGroup.chargeTypeId&&(s.chargeTypeName=e.description)}));var p=!1;s.accessOries.forEach((function(e){e.childGoodsList&&e.childGoodsList.length>0&&e.childGoodsList.forEach((function(e){76==e.id&&(p=!0)})),76==e.goodsIdList&&(p=!0)})),s.accessStatus=p,23==s.subjectId&&(s.accessStatus=!0,p=!0),s.instrumentResult.forEach((function(e){e.checked&&"owned"!=e.kitType&&!p&&(s.leBaoStatus=!0,s.buyMaintenance=!0),e.checked&&"GROUP"!=e.kitType&&2==s.courseViewType&&(s.accessIsShowStatus=!0),2!=s.courseViewType&&(s.accessIsShowStatus=!0)}))}}s.calcPrice()}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onLeBao:function(){this.buyMaintenance=!this.buyMaintenance,this.calcPrice()},groupBy:function(e,t){var s={};return e.forEach((function(e){var a=JSON.stringify(t(e));s[a]=s[a]||[],s[a].push(e)})),Object.keys(s).map((function(e){return s[e]}))},onQuestions:function(e){"amr"==e?this.$alert("<b>革命性的“AMR器乐练习系统”</b><br />它的诞生是基于世界上最优秀的华人管乐指导专家唐嘉宏先生的教育理念,创新开发的一种新型“音乐感官植入程序”,这个程序抛弃了传统的“数线式识谱、机械式节奏、死记式乐理”,它营造出沉浸式可变速演奏过程,采用画面与音乐刺激序列组合而成的特定场景,在趣味性挑战的反复刺激中逐步促进器乐演奏的三核心:“音质→音准→音型”,从而达成演奏各环节水准的均匀提高,产生永久性条件反射式大脑记忆,将多板块知识融会贯通,让抽象的音乐知识刻入脑海里!<br /><br /><b>本练习系统的特点:</b><br /> 1.轻松快速掌握要点,让练习者沉浸其中,远离枯燥!<br /> 2.不假思索就能瞬间唤起反射式记忆,演奏识谱不再慢吞吞!<br /> 3.真正的实践记忆,摆脱纸上谈兵,与实际演奏紧密结合!<br />4.思维+肌肉的双重强化!无缝整合复习系统!<br /> 5.每条练习都经过严谨的编曲,你以为你只是在练习旋律线?其实是整个乐团在为你伴奏!","AMR器乐练习系统",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}}):"instrument"==e&&this.$alert('<p style="text-align: justify">1.乐器保养是管乐迷针对乐团学员提供的乐器检查、保养及维修优惠特权;<br />2.该特权为包年制,从开通特权之日起365天内有效;<br />3.特权用户可享受管乐迷提供专业的高级乐器维修技师一年不低于两次下校检查乐器使用情况;<br />4.特权有效期内凭该特权绑定的乐器编号可享受保养人工费减免、非返厂维修人工费优惠等特权;<br />感谢您的信任和支持!</p>',"乐器保养特权",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}})},onCourseChange:function(e){e.isStudentOptional&&(e.isStatus=!e.isStatus,this.calcPrice())},onTrainChange:function(e){e.isStatus=!e.isStatus;var t=this.courseShowInfo;t.forEach((function(t){t.isStatus=e.isStatus}));var s=this.courseInfo;s.forEach((function(t){t.isStudentOptional||(t.isStatus=e.isStatus)})),this.calcPrice()},onClickCheckbox:function(){this.payType?this.needPrice=this.orderInfo.amount:this.orderInfo.amount>=this.balance?this.needPrice=Number((this.orderInfo.amount-this.balance).toFixed(2)):this.needPrice=0,this.payType=!this.payType},onAuxiliarie:function(e){e.checked=!e.checked,this.calcPrice()},instrumentF:function(e){this.instrumentResult.forEach((function(e){e.checked=!1})),e.checked=!0,this.accessStatus||("owned"!=e.kitType?(this.leBaoStatus=!0,this.buyMaintenance=!0):(this.leBaoStatus=!1,this.buyMaintenance=!1)),2==this.courseViewType&&("GROUP"!=e.kitType?this.accessIsShowStatus=!0:this.accessIsShowStatus=!1),this.calcPrice()},calcPrice:function(){var e=this,t=[],s=[],a=0,i=0,r=0,n=0,o={},l=[],u=0,p=[],d=0,m=0,h=0,f=0,y=0,v=0,b="",g=this.musicGroupSubject,_=this.courseInfo;if(g){var S=this.courseShowInfo;if(S.length>0&&1==this.courseViewType){var w=0;S.forEach((function(e){w+=parseFloat(e.courseCurrentPrice)})),i+=parseFloat(w),t.unshift({name:this.chargeTypeName,type:x[this.paymentPattern],price:Number(w.toFixed(2))})}_.forEach((function(t){t.isStatus&&(2!=e.courseViewType&&(m+=parseFloat(t.courseCurrentPrice)),t.id>0&&l.push(t.id),t.isStudentOptional?i+=parseFloat(t.courseCurrentPrice):v+=parseFloat(t.courseCurrentPrice),0!=e.courseViewType||t.isStudentOptional||(i+=parseFloat(t.courseCurrentPrice)))}))}var k=this.instrumentResult;k.length>0&&k.forEach((function(e){e.checked&&("自备乐器"!=e.name&&(b+=e.goodsIdList),"FREE"==e.kitType?(a+=0,u=0):"LEASE"==e.kitType?(u=e.coupon,"自备乐器"!=e.name?(a+=e.depositFee,r+=e.depositFee):a+=0):(a+=parseFloat(e.price),r+=parseFloat(e.price),u=e.coupon?e.coupon:0),"LEASE"==e.kitType?"自备乐器"!=e.name&&(i+=parseFloat(e.marketPrice),n+=e.depositFee):(i+=parseFloat(e.marketPrice),n+=parseFloat(e.marketPrice)),e.id&&(o[e.id]=e.kitType),"LEASE"==e.kitType?t.push({name:e.name,type:"租赁",price:e.depositFee}):"GROUP"==e.kitType?t.push({name:e.name,type:"团购",price:parseFloat(e.price-u)}):"FREE"==e.kitType&&t.push({name:e.name,type:"免费",price:0}),"GROUP"==e.kitType&&1==e.groupRemissionCourseFee&&(m=parseFloat(m-v)))})),this.leBaoStatus&&this.buyMaintenance&&(i+=300,a+=300,t.push({name:"乐器保养",time:c()().format("YYYY/MM/DD")+"~"+c()().add(365,"day").format("YYYY/MM/DD"),type:"包年",price:300})),a+=parseFloat(d+m),parseFloat(d+m)>0&&0==this.courseViewType&&t.unshift({name:"乐团课",type:x[this.paymentPattern],price:Number((d+m).toFixed(2))}),this.accessOries.length>0&&this.accessOries.forEach((function(s){s.checked&&e.accessIsShowStatus&&(f+=parseFloat(s.price),a+=parseFloat(s.price),s.goodsList&&s.goodsList.length>0&&s.goodsList.forEach((function(e){y+=parseFloat(e.marketPrice),i+=parseFloat(e.marketPrice)})),o[s.id]="ACCESSORIES",t.push({name:s.name,type:"团购",price:s.price}))}));var C=a;if(a-u>=0?(a=Number((a-u).toFixed(2)),this.errorPrice=!1):(a=0,this.errorPrice=!0),this.ids=s,this.payType){var F=Number((a-this.balance).toFixed(2));this.needPrice=F>0?F:0}else this.needPrice=Number(a.toFixed(2));this.buyList=t,this.orderInfo={amount:Number(a.toFixed(2)),marketPrice:Number(i.toFixed(2)),groupPurchasePrice:C,couponPrice:u,goodsGroupIds:o,goodsIds:p.join(","),contractGoodsIds:b,courseKeys:l,musicClassFee:m,musicMarketClassFee:h,accessMarketPrice:y,accessPrice:f,goodsPrice:r,goodsMarketPrice:n}},permission:function(e){return Object(k["a"])(e)}}},F=C,T=(s("151c"),s("2877")),P=Object(T["a"])(F,S,w,!1,null,"2f47ca0f",null),O=P.exports,I=s("267e"),j=s("ed08"),L=s("92e3"),D={props:["isNewGropu"],components:{pagination:n["a"],setStudentFee:f["default"],userPayForm:y["a"],schoolPayForm:b["a"],QrCode:l["a"],review:g["a"],reviewDetail:_["a"],"pay-items":v["a"],subjectPreview:O},data:function(){return{team_status:"",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:L["v"],dialogSubjectVisible:!1,dialogSubjectList:[],activeName:null,dialogCalenderId:null,baseInfo:null}},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(j["b"])(I["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e}},methods:{init: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:return this.team_status=this.$route.query.team_status,e.prev=1,e.next=4,Object(h["a"])({musicGroupId:this.$route.query.id});case 4:e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](1);case 9:Object(p["Lb"])({musicGroupId:this.$route.query.id}).then((function(e){200==e.code&&(t.baseInfo=e.data)})),this.getList();case 11:case"end":return e.stop()}}),e,this,[[1,7]])})));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(d["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(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["y"])({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:"/strudentPayInfo",query:t})},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(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(p["nc"])({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,a=new Date(s.replace(/-/g,"/"));a=new Date(1e3*(a/1e3+86400*t));var i=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate();return i},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}(),onPreview:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s,a=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(p["H"])({musicGroupId:s}).then((function(e){200==e.code?(a.dialogSubjectList=e.data.musicGroupSubjectPlans,a.activeName=a.dialogSubjectList[0].subjectId.toString(),a.dialogSubjectVisible=!0):a.$message.warning("没有可预览的声部")}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},G=D,N=(s("839d"),Object(T["a"])(G,a,i,!1,null,"8adb3028",null));t["a"]=N.exports},"0964":function(e,t,s){},"0c33":function(e,t,s){"use strict";var a=s("ba13"),i=s.n(a);i.a},"0e73":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACWVJREFUeAHtXFmMFFUUfff1hgTihhITIGREwETFJf64TpwZkMU4MzAkRkUTjYn44Y9xCRKNS2LUDxMTPlw+EKMmo9NGlpFZgLh84QdEEwkgUcbEDQUCRLp7up7nVk/1VHe9qq6qrq6eBl+mp1/dt9x7T913394kYgxKKcqvWX4tGePXK6LFQhmLwb5NKXEhEc1EnD8cTiHvKSJxEvEjguQBUuqAksl96U8Hv0deZeaK4R81mofqW3ZJYby4Ghp1Qum7wG9WXTyJ/oLQu/EZSSUTn1H/zn/qqq9G4YYApPr6ErniiZV46w+B/yoAk64hR6hkWFIeBbfBGjdnEhdtp/7+YqiKPApFCpB67LFU4djP6wzDeFYItcCDbwOS6LCU8rXUrPkf0DvvFKJiEBlA+d6uBw1DvQJg5kUlXLh66CgJ2pD5fPjDcOUrS9UNUK6n82o42U0Apr2y6mY/0R44+fWZ7MiP9UgiwxbmHinX0/UMgNk/9cBhrfiFqf0sI8saVs9QBVVPx6XwjltgOcvDMo6zHCxpEL3Eg5Qd/Tso38AA5XqWXqOUsQNvZ25QZs3NT2NEckUmO/RDEDkCNbFCT+dtQhW/bj1wGBK8UMhu6hAAId8AnV3dtcIQaggDvosC1D+lsrLsrAPr4lcwX02MUTfBUeICvxVP5XzwSf9KQUtT2ZFvaslZEyD2OWyarWw5OhCg+AlBidtr+SRPgLi3ygmxTygxR8ek9Wk0liF1g1fv5uqDeOzAXfm5Cw6/XjW3NFxxHye5ApTvXfp0q4xz6rFk1pF1datD28R4+gB096Nwyq3guUSH08bklpbopiVaCwIwm84XcPhFs66ss+6lOwDiWTmKtOsyh6YRvSspeX0imbgVb2okdD0oiJn6Gfx7Ep9FlKA1oIzVU99kWdWe6+56YPK5FKtoYryek/vzyGEAFNmSBYb3mzPZ4YctxryYlh8//hE6gbUWze83gyMlLUsNDH9rlTnb07EQSuyDBUQwRqOjmcvbFtjXkyosiBe7ogSHlZBCvWcpw9+86pe+rO0BKLXVTq8Vh584K5N0rx0cLjMtO3oQHe5Xtcr7S1fzShhM5i4DxG/WUMXnJpOiiRWJLqmuid9Qem66z29zYyeKgWpf6tPh0eq6+BnpDh66fH5ovBrKWFh5ywDB7FdhzHOllRDVNynjZTB0mD+9PZjLzJTd0K7cXHQ8se5chB3eD0vZpkvPdXeuRXO9WZcWjqYW8Hq6VbYMEAhoXtEH+IbrcoXjW7UgbRk6k5meWgHf8p2OM5oh1uPpUfiwfl362e6ly0H/QJdWD21is8GswnTSvDWTHy/+hjfRkN2HkrA0mkldfA980L/VwpcW4GgP+F9jT5NSPJEeGNV2vwwOCSOrhMrYy0QR592SdDJxBW8pmRZk7ls1FBwWW3W4WhJW+tLJdBcEO1RWkOjpZoBjSgosGBOOmwDBAXaWBWtoxAOk/h2/pzOyA+ObX+B0X5qWHXlDJ0ojLcfOz8JEwqzR5MwdT3t6A+MeIH0yNIb2clMmO/qCToC4wGHejAljQ7nVd1+nigXsTMQd3H2STpI4wbH4UyK1JElG4QaYU+QB/sTAe9iJXuAgRiqIOwO60y5Qv3CmVFLQA87AMOQO1LUJPZ4tUUnIvhD1L8PbtvfItjzho3zIIqlILsIpi/C1aEpCBUirVqayo19qkgOT0POdRiHXQWzJuorbAZYdvcB8qgvwCRToYR5BqU6r6xnLT7ujAsePINM+Hxpknn7yBsoDbNgs2wIV8pEZzeCYj2yRZgHPwJuCPgRoQy8mLvSRMVAWmHq7erg7tu0h5gWedwYS0kdmxgb7653H4OAu9ZE/UBY46b1K0osZKQ+KAvtSj5Ca8ceEnylnYscsCqdnlwm6SMqgnGEsJEO9CB0inI+VmEGHv5OIWsfedCKEppkCF9X2XLF2B0DjJ+8Do0/szPLjJ1cpUfzYTnPEJ04BeaPvKBWEMDPyrjEI91bIywCdagVBmyTjKZ5q/A+QC/qMTRITw5Pw1pEH1Hsao7b3MXQ7KAzvY7uppHM9KA1aoUDrPQWTGP0osRDiPwIdZnjmDZHI2LCTPoLPkhDlXYtgTJITSXFLun/ke9dMNRKwFoPNA8GfmiHX1/k+FcTeBqwNHcEhB3mgpgTBM4xm6gAnKLsJXtr16qB1VeQHNpJPsFcQI3lQ2PKOO0TPk7GRfLy/Aap0qN7lcxpQr7bKCV4d2sQ6iIwNL5bxaPpP1DOrjrqcRUn8ijn9myIhDiWwl+LMMElJUnI/Dez8bZKC5YDeZVeMq3FP31jEyXFRFFdhNeWpyE+h4MpDZmB4NnoxUgBoF4AKvNNpV8gRN88UGW9BAf7zDDi95hxJK3UneibvkbQ1Sm9EL8z3QYCNOZJGdzziqUEzEmHZzWBr8bQwMQEyb82ULoZY6c3/jvHKU7WysJw8Y8L0kgWVrhRpdy6rC58nz9usa1YmQKw0lhc3Tynlm9jE7FiUAeL7VljS9TVyjQXIpjUxOlzCoqRlGSA+lsL3rWJRfgozYQwYC0vEMkBM4MtosKKjVuL5901HSxhMal4BEJ/bwQmu5yeTmxhrgg/CJHuD/XQZa18BEBPSA8NbYEV7OB5XgLtxnKYlifWAWAPt0d1SdADEMmEdZD0+Eyu+MUhpqBsdXHQ0R6ZoCKwr66yrTQtQ6byw3Kgr0AgaZgqPF3o67rbq5jjTrOfGf8uNujPSzNd1OM+T2Hxv53bMh/gUV1zh5wlG8+NiCMsZTA+MrOR5l46n1oI4IxdIT5u+DrExXcEG0eajXv7EFGjMvKrpAg4L4QoQJ9LHW4/xNUaY2Ql+PpcC62TqVuMeqydADAjfp5JE98AUHWcLWxUw1oV1qnVXjPWrCRBn4pt5Sso15wJIrAPr4ue2Ievu6qQ5sTqYVzOV2gpvFtvBhGoZ6nnmZsWW4xcc5uXLgiyhzIpxjTFmx22xr/MbnQ1kDwIOMwwEEBfgdmteY0T3yM+tENCsBllmPz6nWp9ATcxeuDRO4pt6uGowRS/eARjMBuTG9MDQ627jHLtOunhogKzK+HYiAMJpeNVu0abGdzQ/blI3QBYYfBkNW7+vAqh5Fq0539H+PE5gH+SmNM+E+TKalIlH0Tf+5JavYXTwZN4sg25WHpZvZBZkFwDH5/7/iS47IF7xyH/kTQhMf2gX3mzr/sibG2Bmz9diPxP4H3WSoubemWpzAAAAAElFTkSuQmCC"},1139:function(e,t,s){"use strict";var a=s("44d1"),i=s.n(a);i.a},1452:function(e,t,s){"use strict";var a=s("6243"),i=s.n(a);i.a},"151c":function(e,t,s){"use strict";var a=s("cef6"),i=s.n(a);i.a},"160b":function(e,t,s){"use strict";s.d(t,"b",(function(){return n})),s.d(t,"a",(function(){return o}));var a=s("b775"),i=s("829b"),r="/api-web";function n(e){return Object(i["a"])({url:r+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(a["a"])({url:r+"/chargeType/queryPage",method:"get",params:e})}},1616:function(e,t,s){"use strict";var a=s("9c6e"),i=s.n(a);i.a},1672:function(e,t,s){"use strict";s.d(t,"c",(function(){return i})),s.d(t,"g",(function(){return r})),s.d(t,"a",(function(){return n})),s.d(t,"e",(function(){return o})),s.d(t,"f",(function(){return c})),s.d(t,"d",(function(){return l})),s.d(t,"h",(function(){return u})),s.d(t,"b",(function(){return p})),s.d(t,"i",(function(){return d}));var a=s("829b"),i=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},r=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},n=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},c=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},u=function(e){return Object(a["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},p=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},d=function(e){return Object(a["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})}},"1a3f":function(e,t,s){},"1aa8":function(e,t,s){"use strict";var a=s("7619"),i=s.n(a);i.a},"1af5":function(e,t,s){},"1c0e":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"buttonWrap"},[s("div",{staticClass:"left"},[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("el-select",{attrs:{placeholder:"班级类型",clearable:"",filterable:""},on:{change:e.changeClassGetList},model:{value:e.searchForm.classType,callback:function(t){e.$set(e.searchForm,"classType","string"===typeof t?t.trim():t)},expression:"searchForm.classType"}},e._l(e.classTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/create",expression:"'classGroup/create'"}],staticClass:"newBand",on:{click:e.newClass}},[e._v("\n 新建班级\n ")])],1)]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.selectionTable}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),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("\n "+e._s(t.row.studentNum+"/"+t.row.expectStudentNum)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",label:"主教老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?s("div",[e._v("\n "+e._s(e._f("getBishopName")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",label:"助教人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?s("div",[e._v("\n "+e._s(e._f("getTeachingNum")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"totalClassTimes",label:"排课课次"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"260px",prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",["HIGH"===t.row.type||"HIGH_ONLINE"===t.row.type?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/findAllStudent",expression:"'classGroupStudent/findAllStudent'"}],attrs:{type:"text"},on:{click:function(s){return e.lookDeatil(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/classGroupUpdate",expression:"'classGroup/classGroupUpdate'"}],attrs:{type:"text"},on:{click:function(s){return e.classAdjustment(t.row)}}},[e._v("老师调整")]),e._v(" "),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._v(" "),s("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/delSingle",expression:"'classGroup/delSingle'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[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[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(" "),s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")])],1)],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}})],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.classTypeList,(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("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop",t)},expression:"newClassForm.bishop"}})],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("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching",t)},expression:"newClassForm.teaching"}})],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(),e._v(" "),s("br")],1),e._v(" "),s("div",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[s("div",[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[s("div",{staticClass:"popoverWrap"},[s("p",[e._v("线上基础技能班规则:")]),e._v(" "),s("p",[e._v("班级数量:")]),e._v(" "),s("p",[e._v("\n 可创建班级数量=各个声部学员数/6向上取整+乐团在读学员数/30向上取整\n ")]),e._v(" "),s("p",[e._v("\n 上低音号、长号学员数合并计算\n ")]),e._v(" "),s("p",[e._v("班级人数:")]),e._v(" "),s("p",[e._v("线上基础技能班人数上限为6人")])]),e._v(" "),s("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("线上基础技能班规则")])],1)],1),e._v(" "),s("div",[s("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type||"HIGH"==e.newClassForm.type?s("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.newClassSecond}},[e._v("确 定")])],1)])],1),e._v(" "),s("el-dialog",{attrs:{title:"学员选择",width:"700px",visible:e.studentVisible,"modal-append-to-body":!0},on:{"update:visible":function(t){e.studentVisible=t}}},[s("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,isOnlyChangeUser:!0,activeType:e.activeType,isStudentRemove:e.isStudentRemove,type:"change"},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:e.searchStudent,submited:e.submited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"老师调整",width:"700px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[s("el-form",{ref:"teacherForm",attrs:{inline:!0,model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"100px;"}},[s("br"),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher"}},[s("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.teacherForm.coreTeacher,callback:function(t){e.$set(e.teacherForm,"coreTeacher",t)},expression:"teacherForm.coreTeacher"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant},model:{value:e.teacherForm.assistant,callback:function(t){e.$set(e.teacherForm,"assistant",t)},expression:"teacherForm.assistant"}})],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.teacherForm.courseType,callback:function(t){e.$set(e.teacherForm,"courseType","string"===typeof t?t.trim():t)},expression:"teacherForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),s("br"),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"排课次数",prop:"courseNum"}},[s("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.teacherForm.courseNum,callback:function(t){e.$set(e.teacherForm,"courseNum","string"===typeof t?t.trim():t)},expression:"teacherForm.courseNum"}})],1):e._e(),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[s("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.teacherForm.courseTime,callback:function(t){e.$set(e.teacherForm,"courseTime","string"===typeof t?t.trim():t)},expression:"teacherForm.courseTime"}}),e._v(" "),s("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.teacherForm.checked,callback:function(t){e.$set(e.teacherForm,"checked","string"===typeof t?t.trim():t)},expression:"teacherForm.checked"}},[e._v("是否跳过节假日")])],1):e._e()],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("div",{staticClass:"WeekWrap"},[s("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),s("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,a){return s("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[s("span",[e._v("循环周期:")]),e._v(" "),s("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(s){e.$set(t,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),s("span",[e._v("开始时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(s){e.$set(t,"startClassTime","string"===typeof s?s.trim():s)},expression:"item.startClassTime"}}),e._v(" "),s("span",[e._v("结束时间")]),e._v(" "),s("el-time-select",{attrs:{"picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(s){e.$set(t,"endClassTime",s)},expression:"item.endClassTime"}}),e._v(" "),s("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(s){return e.removeWeek(t)}}})],1)})),0)]):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.isNewClass?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(1)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isNewClass?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(3)}}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"批量排课",width:"700px",visible:e.arrangeVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.arrangeVisible=t}}},[s("el-form",{ref:"arrangeForm",attrs:{model:e.arrangeForm,"label-width":"100px","label-position":"right"}},[s("el-form-item",{attrs:{label:"选择班级数",prop:"classNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number",value:e.arrangeForm.classNum,disabled:""},nativeOn:{mousewheel:function(e){e.preventDefault()}}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程类型",prop:"courseType",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.arrangeForm.courseType,callback:function(t){e.$set(e.arrangeForm,"courseType","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"上课形式",prop:"teachMode",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[s("el-select",{attrs:{disabled:""},model:{value:e.arrangeForm.teachMode,callback:function(t){e.$set(e.arrangeForm,"teachMode","string"===typeof t?t.trim():t)},expression:"arrangeForm.teachMode"}},[s("el-option",{attrs:{value:"ONLINE",label:"线上"}}),e._v(" "),s("el-option",{attrs:{value:"OFFLINE",label:"线下"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"开始日期",prop:"courseTime",rules:[{required:!0,message:"请选择开始日期",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"选择日期"},model:{value:e.arrangeForm.courseTime,callback:function(t){e.$set(e.arrangeForm,"courseTime","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseTime"}}),e._v(" "),s("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.arrangeForm.checked,callback:function(t){e.$set(e.arrangeForm,"checked","string"===typeof t?t.trim():t)},expression:"arrangeForm.checked"}},[e._v("是否跳过节假日")])],1),e._v(" "),s("el-form-item",{attrs:{label:"排课次数",rules:[{required:!0,message:"请输入排课次数",trigger:"blur"}],prop:"courseNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.arrangeForm.courseNum,callback:function(t){e.$set(e.arrangeForm,"courseNum","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseNum"}})],1)],1),e._v(" "),s("div",{staticClass:"WeekWrap"},[s("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),s("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,a){return s("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[s("span",[e._v("循环周期:")]),e._v(" "),s("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(s){e.$set(t,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),s("span",[e._v("开始时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(s){e.$set(t,"startClassTime","string"===typeof s?s.trim():s)},expression:"item.startClassTime"}}),e._v(" "),s("span",[e._v("结束时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(s){e.$set(t,"endClassTime","string"===typeof s?s.trim():s)},expression:"item.endClassTime"}}),e._v(" "),s("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(s){return e.removeWeek(t)}}})],1)})),0)]),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.arrangeVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.arrangeFormSubmit}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"添加学员",width:"600px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[s("el-table",{ref:"studentList",attrs:{data:e.studentList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.selectStudent}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",label:"学生姓名"}}),e._v(" "),s("el-table-column",{attrs:{property:"classGroupName",label:"所在班级"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/addStudents",expression:"'classGroupStudent/addStudents'"}],attrs:{type:"primary"},on:{click:e.addStudnt}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"学员详情",width:"600px",visible:e.lookDeatilVisible},on:{"update:visible":function(t){e.lookDeatilVisible=t}}},[s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.classList}},[s("el-table-column",{attrs:{label:"学员姓名",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/del",expression:"'classGroupStudent/del'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[s("p",[e._v("确定删除该学生?")]),e._v(" "),s("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[s("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(s){return e.removeStudent(t)}}},[e._v("确定")])],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1)],1)]}}])})],1)],1)],1)},i=[],r=(s("7f7f"),s("bc3a"),s("5f87"),s("333d")),n=(s("3908"),s("f927")),o=s("b4ac"),c=s("1cc7"),l=s("5137"),u=s("a6e9"),p={components:{pagination:r["a"],selectStudent:n["a"]},props:{isSetSalary:{type:Boolean,required:!0}},data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},searchForm:{classType:null},activeType:null,activeClass:null,soundList:[],teacherList:[],tableList:[],classTypeList:[{value:"NORMAL",label:"声部班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能课"}],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},chioseStudent:[],activeListStudent:[],isNewClass:!0,studentVisible:!1,isSearch:!1,studentList:[],activeChioseSound:null,infoVisible:!1,teacherForm:{isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数",trigger:"blur"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}]},weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],weekList:[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}],cooperationList:[],courseTypeList:[],arrangeVisible:!1,arrangeForm:{courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},chioseTab:[],classCardList:[],teamid:null,maxMun:16,lookDeatilVisible:!1,addStudentVisible:!1,activeStudentList:[],classList:[],appoint:!1,activeSoundList:[],isStudentRemove:!1}},created:function(){},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(c["J"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList(),Object(u["b"])({group:"holiday"}).then((function(t){200==t.code&&t.data.length>0&&t.data[0].paranValue&&(e.holidayList=JSON.parse(t.data[0].paranValue))}))},changeActiveChioseSound:function(e){this.activeChioseSound=e},getList:function(){var e=this;this.teamid=this.$route.query.id,Object(c["nb"])({groupType:"MUSIC",musicGroupId:this.teamid,type:this.searchForm.classType,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},changeClassGetList:function(e){this.getList()},newClass:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.newClassVisible=!0,this.isStudentRemove=!1)},newClassSecond:function(){var e=this;this.$refs["newClassForm"].validate((function(t){if(t){e.isNewClass=!0;var s=e.newClassForm.type;e.isSearch=!0,e.getNoClassStudent(s,null),e.studentVisible=!0}}))},newClassHight:function(){var e=this;if("HIGH_ONLINE"==this.newClassForm.type&&(this.newClassForm.expectStudentNum>6||this.newClassForm.expectStudentNum<3))return this.$message.error("班级人数必须为3-6人");this.$refs["newClassForm"].validate((function(t){if(t){var s,a={};if(a.musicGroupId=e.teamid,a.name=e.newClassForm.className,a.type=e.newClassForm.type,a.groupType="MUSIC",a.expectStudentNum=e.newClassForm.expectStudentNum,a.teacherMapperList=[],a.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)s=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(a.memo=e.newClassForm.memo.join(","));else{for(var i in s=e.newClassForm.memo.length>0?e.newClassForm.memo.join(","):null,e.newClassForm.teaching)a.teacherMapperList.push({userId:e.newClassForm.teaching[i],teacherRole:"TEACHING"});a.memo=s}a.subjectIdList=s,Object(c["w"])(a).then((function(t){200==t.code&&(e.$message.success("创建成功"),e.resetClassFrom(),e.getList(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},removeStudent:function(e){var t=this;Object(l["q"])({classGroupId:this.activeClass,userId:e.row.userId}).then((function(s){200==s.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(l["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data,t.getNoClassStudent(t.activeType))})),"HIGH_ONLINE"!=t.activeType&&"HIGH"!=t.activeType||(e._self.$refs[e.$index].doClose(),Object(l["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.classList=e.data)}))))}))},addSomeStudent:function(e){var t=this;e.length<=0&&!this.isStudentRemove?this.$message.error("至少添加一名学员"):"HIGH_ONLINE"==this.activeType?Object(c["Gc"])({classGroupId:this.activeClass}).then((function(s){if(200==s.code){var a=s.data.rows[0].expectStudentNum;if(e.length>a)return void t.$message.error("超过预计招生人数");Object(o["c"])({classGroupId:t.activeClass,studentIds:e.join(",")}).then((function(e){if(200==e.code)return t.studentVisible=!1,t.$message.success("添加成功"),void t.getList()}))}})):Object(o["c"])({classGroupId:this.activeClass,studentIds:e.join(",")}).then((function(e){200==e.code&&(t.studentVisible=!1,t.$message.success("添加成功"),t.getList())}))},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={},a=[];for(var i in e)s[e[i][t]]||(a.push(e[i]),s[e[i][t]]=!0);return a},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")},getNoClassStudent:function(e,t){var s=this;if(!t);Object(c["sb"])({musicGroupId:this.teamid,type:e,actualSubjectId:t}).then((function(e){200==e.code&&(s.studentList=e.data)}))},searchStudent:function(e){this.getNoClassStudent(this.newClassForm.type,e)},submited:function(e){this.isNewClass?this.createMusiceClass((null===e||void 0===e?void 0:e.seleched)||[]):this.addSomeStudent((null===e||void 0===e?void 0:e.seleched)||[])},createMusiceClass:function(e){var t=this,s=null;e.length>0&&(s=e.join(","));var a,i={};for(var r in i.musicGroupId=this.teamid,i.name=this.newClassForm.className,i.type=this.newClassForm.type,i.groupType="MUSIC",i.userIds=s,i.teacherMapperList=[],i.expectStudentNum=this.newClassForm.expectStudentNum,a="HIGH_ONLINE"==this.newClassForm.type?this.newClassForm.subjectIdList:"MIX"==this.newClassForm.type?null:this.newClassForm.subjectIdList.length>0?this.newClassForm.subjectIdList.join(","):null,i.subjectIdList=a,i.teacherMapperList.push({userId:this.newClassForm.bishop,teacherRole:"BISHOP"}),this.newClassForm.teaching)i.teacherMapperList.push({userId:this.newClassForm.teaching[r],teacherRole:"TEACHING"});Object(c["w"])(i).then((function(e){200==e.code&&(t.$message.success("创建成功"),t.getList(),t.resetClassFrom(),t.studentVisible=!1,t.newClassVisible=!1)}))},classAdjustment:function(e){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else{for(var t in this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.teacherMapperList)"BISHOP"==e.teacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.teacherMapperList[t].userId),"TEACHING"==e.teacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.teacherMapperList[t].userId);console.log(this.teacherForm),this.infoVisible=!0}},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},setType:function(e){switch(e){case"NORMAL":this.courseTypeList=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":this.courseTypeList=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":this.courseTypeList=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":this.courseTypeList=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"SNAP":this.courseTypeList=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}},removeClass:function(e){var t=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):Object(c["kc"])({classGroupId:e.row.id}).then((function(s){200==s.code?(t.$message.success("删除成功"),e._self.$refs[e.$index].doClose(),t.getList()):(t.$message.error(s.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},setAssistant1:function(e){for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},SelectionStudent:function(e){this.chioseStudent=e},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate((function(s){if(s){var a=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||a[0]&&a[0].startClassTime&&a[0].endClassTime&&a[0].dayOfWeek){var i=t.className,r=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var n in t.teacherForm.assistant)r.push({userId:t.teacherForm.assistant[n],teacherRole:"TEACHING"});var o=t.teamid,l=t.teacherForm.courseTime,u=t.teacherForm.courseType,p=t.teacherForm.courseNum;if(p<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("请至少排一节课");else{var d=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&&(l=null,u=null,d=null,m=null,p=null,h=null,y=null);var y=t.activeType,v={classGroupName:i,classGroupTeacherMapperList:r,musicGroupId:o,startDate:l,courseType:u,students:d,holiday:m,courseTimes:p,courseTimeDtoList:h,type:y,courseAddType:t.teacherForm.isAdd};1==e?revisionClassGroup(v).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):2==e?revisionAddClassGroup(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(c["r"])([v]).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.getList())})))}}}else t.$message.error("至少排一节课")}else t.$message.error("请填写必要信息")}))},resetClass:function(e){var t=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.isStudentRemove=!0,this.newClassForm.type=e.type,this.activeChioseSound=null,Object(l["g"])({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))},arrangeStart:function(){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else if(this.chioseTab.length<1)this.$message.error("请至少选择一个班级");else{var e=this.chioseTab[0].type,t=this.chioseTab.every((function(t){return t.type==e}));if(!t)return this.$message.error("请选择相同类型的班级"),!1;this.setType(this.chioseTab[0].type),this.arrangeForm.courseType=this.courseTypeList[0].value,this.arrangeVisible=!0,"HIGH_ONLINE"==this.arrangeForm.courseType?this.arrangeForm.teachMode="ONLINE":this.arrangeForm.teachMode="OFFLINE",this.arrangeForm.classNum=this.chioseTab.length}},selectionTable:function(e){this.chioseTab=e,this.arrangeForm.classNum=e.length},arrangeFormSubmit:function(){var e=this;this.weekList.length<0||!this.weekList[0].dayOfWeek?this.$message.error("请设置排课周期"):this.arrangeForm.courseNum>this.maxMun||this.arrangeForm.courseNum<1?this.$message.error("排课数量必须大于1或小于".concat(this.maxMun)):this.$refs["arrangeForm"].validate((function(t){if(t){var s=e.arrangeForm.courseTime,a=e.arrangeForm.courseNum,i=e.weekList,r=e.arrangeForm.courseType,n=e.arrangeForm.teachMode;e.classCardList=[],e.workOut(s,a,i,r,n)}}))},workOut:function(e,t,s,a,i){var r=this,n=s.every((function(e){return e.dayOfWeek&&e.startClassTime&&e.endClassTime}));if(n){while(t&&t>0){for(var o in s){var l=new Date(e.getTime()),u=void 0;u=s[o].dayOfWeek-e.getDay()>=0?s[o].dayOfWeek-e.getDay():s[o].dayOfWeek-e.getDay()+7;var p=this.getThinkDate(e,u),d=this.getThinkDate(l,u);if(!this.arrangeForm.checked||-1==this.holidayList.indexOf(d)){var m=s[o].startClassTime,h=s[o].endClassTime;for(var f in this.chioseTab)this.classCardList.push({classDate:p,classGroupId:this.chioseTab[f].id,startClassTimeStr:m,endClassTimeStr:h,type:a,weekNum:s[o].dayOfWeek,teachMode:i,option:1});if(t--,0==t)break}}e.setDate(e.getDate()+7)}Object(c["Sc"])({musicGroupID:this.teamid,courseSchedules:this.classCardList}).then((function(e){200==e.code&&(r.$message.success("恭喜您排课成功"),r.classCardList=[],r.arrangeVisible=!1,r.getList())})).catch((function(e){console.log("排课来了"),r.classCardList=[],r.resetTime()}))}else this.$message.error("请保证循环周期信息完整")},getThinkDate:function(e,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=new Date(e.getTime());a.setDate(a.getDate()+parseInt(t));var i=a.getFullYear(),r=a.getMonth()+1,n="";n=r<10?"0"+r:r+"";var o=a.getDate(),c="";return c=o<10?"0"+o:o+"",2==s?n+c:i+"-"+n+"-"+c},resetTime:function(){this.arrangeForm.courseTime=null,this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}]},chioseHightype:function(e){this.changeMemo([]),"HIGH_ONLINE"==e&&(this.newClassForm.teaching=[]),this.newClassForm.subjectId="",this.$set(this.newClassForm,"subjectIdList",[]),this.$set(this.newClassForm,"memo",[])},lookDeatil:function(e){var t=this;console.log(e),this.lookDeatilVisible=!0,this.activeClass=e.id,this.activeType=e.type,Object(l["g"])({classGroupId:this.activeClass}).then((function(e){200==e.code&&(t.classList=e.data)}))},addstudentBtn:function(e){var t=this;this.activeClass=e.id;var s=e.type;Object(c["sb"])({musicGroupId:this.teamid,type:s}).then((function(e){200==e.code&&(t.studentList=e.data,t.addStudentVisible=!0)}))},selectStudent:function(e){this.activeStudentList=e},addStudnt:function(){var e=this,t=this.activeClass,s=this.activeStudentList.map((function(e){return e.userId})).join(",");Object(l["b"])({userIdsStr:s,classGroupId:t}).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.activeStudentList=[],e.addStudentVisible=!1,e.$refs.studentList.clearSelection(),e.getList())}))},changeMemo:function(e){},checkSubject:function(e){}},computed:{},filters:{getBishopName:function(e){var t="";if(e&&e.length>0)for(var s in e)"BISHOP"==e[s].teacherRole&&(t=e[s].userName);return t},getTeachingNum:function(e){var t=0;if(e&&e.length>0)for(var s in e)"TEACHING"==e[s].teacherRole&&t++;return t}},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())},studentVisible:function(e){e||(this.newClassVisible=!1,this.activeListStudent=[])},infoVisible:function(e){e||(this.teacherForm={isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},this.$refs["teacherForm"].resetFields())},arrangeVisible:function(e){e||(this.arrangeForm={courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},this.$refs["arrangeForm"].resetFields(),this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}])}}},d=p,m=(s("472b"),s("2877")),h=Object(m["a"])(d,a,i,!1,null,"8888a26a",null);t["a"]=h.exports},2666:function(e,t,s){"use strict";var a=s("1a3f"),i=s.n(a);i.a},"2a71":function(e,t,s){},"2e3a":function(e,t,s){},3004:function(e,t,s){},3078:function(e,t,s){"use strict";s.d(t,"e",(function(){return i})),s.d(t,"a",(function(){return r})),s.d(t,"b",(function(){return n})),s.d(t,"c",(function(){return o})),s.d(t,"d",(function(){return c})),s.d(t,"f",(function(){return l})),s.d(t,"g",(function(){return u})),s.d(t,"h",(function(){return p}));var a=s("829b"),i=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},r=function(e){return Object(a["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},c=function(e){return Object(a["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},l=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},p=function(e){return Object(a["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})}},"31f0":function(e,t,s){e.exports=s.p+"static/img/yunTrain_bg.ff0ffe89.png"},"346a":function(e,t,s){"use strict";var a=s("67c9"),i=s.n(a);i.a},3683:function(e,t,s){"use strict";var a=s("2a71"),i=s.n(a);i.a},3762:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.musicGroupPaymentCalenders[0]&&"ADD_STUDENT"===e.musicGroupPaymentCalenders[0].paymentType?s("el-alert",{staticClass:"alert",attrs:{title:"学员信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.musicGroupPaymentCalenders[0]&&"ADD_STUDENT"===e.musicGroupPaymentCalenders[0].paymentType?s("descriptions",{attrs:{column:2}},[s("descriptions-item",{attrs:{label:"学员姓名:"}},[e._v(e._s(e.username))]),e._v(" "),s("descriptions-item",{attrs:{label:"手机号码:"}},[e._v(e._s(e.phone))])],1):e._e(),e._v(" "),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)))]),e._v(" "),s("descriptions-item",{attrs:{span:3,label:"备注:"}},[s("span",{staticStyle:{display:"inline-block","max-width":"100%"}},[s("overflow-text",{attrs:{text:e.musicGroupPaymentCalenders[0]?e.musicGroupPaymentCalenders[0].memo:null}})],1)])],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:"现价(元)"}},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),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:"现价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseCurrentPrice))+"\n ")])]}}],null,!1,3280898274)},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("moneyFormat")(e.musicGroupPaymentCalenders[0]&&"SPAN_GROUP_CLASS_ADJUST"===e.musicGroupPaymentCalenders[0].paymentType?t.row.masterSubCoursePrice:t.row.courseOriginalPrice))+"\n ")])]}}],null,!1,850581136)})],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)},i=[],r=(s("96cf"),s("3b8d")),n=(s("7f7f"),s("db72")),o=s("2b0e"),c=s("6612"),l=s.n(c),u=s("1672"),p=s("ddec"),d=s("837c");o["default"].use(p["a"]);var m={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],musicGroupPaymentCalenderStudentDetails:[],simpleUserDto:[],musicGroupPaymentCalenders:[],studentNum:0,phone:"",username:""},h={components:{Item:d["a"]},props:["detail"],data:function(){return Object(n["a"])({payVisible:!1},m)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},methods:{numeral:l.a,init:function(){var e=Object(r["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,m)m.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}()}},f=h,y=(s("3683"),s("2877")),v=Object(y["a"])(f,a,i,!1,null,"c199f174",null);t["a"]=v.exports},4e3:function(e,t,s){"use strict";var a=s("3004"),i=s.n(a);i.a},"44d1":function(e,t,s){},"472b":function(e,t,s){"use strict";var a=s("6bfc"),i=s.n(a);i.a},5137:function(e,t,s){"use strict";s.d(t,"n",(function(){return o})),s.d(t,"e",(function(){return c})),s.d(t,"d",(function(){return l})),s.d(t,"f",(function(){return u})),s.d(t,"t",(function(){return p})),s.d(t,"o",(function(){return d})),s.d(t,"s",(function(){return m})),s.d(t,"m",(function(){return h})),s.d(t,"r",(function(){return f})),s.d(t,"j",(function(){return y})),s.d(t,"l",(function(){return v})),s.d(t,"a",(function(){return b})),s.d(t,"g",(function(){return g})),s.d(t,"b",(function(){return _})),s.d(t,"q",(function(){return S})),s.d(t,"i",(function(){return w})),s.d(t,"v",(function(){return k})),s.d(t,"u",(function(){return x})),s.d(t,"k",(function(){return C})),s.d(t,"p",(function(){return F})),s.d(t,"w",(function(){return T})),s.d(t,"c",(function(){return P})),s.d(t,"x",(function(){return O})),s.d(t,"y",(function(){return I})),s.d(t,"h",(function(){return j}));var a=s("b775"),i=s("4328"),r=s.n(i),n="/api-web";function o(e){return Object(a["a"])({url:n+"/studentManage/queryStudentList",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroups",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/studentWithdraw/queryPage",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/studentManage/queryStudentPayment",method:"get",params:e})}function m(e){return Object(a["a"])({url:n+"/order/queryPage",method:"get",params:e})}function h(e){return Object(a["a"])({url:n+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function f(e){return Object(a["a"])({url:n+"/studentRegistration/batchUpdateSubject",method:"post",data:r.a.stringify(e)})}function y(e){return Object(a["a"])({url:n+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function v(e){return Object(a["a"])({url:n+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function b(e){return Object(a["a"])({url:n+"/studentRegistration/insertStudent",method:"POST",data:e})}function g(e){return Object(a["a"])({url:n+"/classGroupStudent/findAllStudent",method:"POST",data:r.a.stringify(e)})}function _(e){return Object(a["a"])({url:n+"/classGroupStudent/addStudents",method:"POST",data:r.a.stringify(e)})}function S(e){return Object(a["a"])({url:n+"/classGroupStudent/del",method:"POST",data:r.a.stringify(e)})}function w(e){return Object(a["a"])({url:n+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function k(e){return Object(a["a"])({url:n+"/userCashAccount/updateCourseBalance",method:"post",data:r.a.stringify(e)})}function x(e){return Object(a["a"])({url:n+"/userCashAccount/updateBalance",method:"post",data:r.a.stringify(e)})}function C(e){return Object(a["a"])({url:n+"/studentManage/queryUserByPhone",method:"get",params:e})}function F(e){return Object(a["a"])({url:n+"/studentManage/register",method:"post",data:r.a.stringify(e)})}function T(e){return Object(a["a"])({url:n+"/studentManage/studentUpdate",method:"post",data:r.a.stringify(e)})}function P(e){return Object(a["a"])({url:n+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function O(e){return Object(a["a"])({url:n+"/userCashAccountDetail/queryPage",method:"get",params:e})}function I(e){return Object(a["a"])({url:n+"/userCoursesAccount/queryPage",method:"get",params:e})}function j(e){return Object(a["a"])({url:n+"/sysUserContracts/getLatest",method:"get",params:e})}},"5b65":function(e,t,s){"use strict";var a=s("b4ed"),i=s.n(a);i.a},6193:function(e,t,s){"use strict";var a=s("aa6f"),i=s.n(a);i.a},6243:function(e,t,s){},"62f6":function(e,t,s){"use strict";var a=s("9112"),i=s.n(a);i.a},"67c9":function(e,t,s){},"6bfc":function(e,t,s){},"6ca4":function(e,t,s){"use strict";var a=s("c477"),i=s.n(a);i.a},"6cc5":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[s("el-form-item",{attrs:{label:"原乐器",prop:"name"}},[s("span",[e._v(e._s(e.originalMusicalGoods||"无"))])]),e._v(" "),s("el-form-item",{attrs:{label:"原教辅",prop:"name"}},[s("span",[e._v(e._s(e.originalAccessoriesGoods||"无"))])]),e._v(" "),s("el-form-item",{attrs:{label:"更改声部",prop:"subjectId",rules:[{required:!0,message:"请选择更改声部",trigger:"change"}]}},[e.changeInfo?s("span",[e._v(e._s(e.changeSubjectName))]):s("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择声部"},on:{change:e.subjectChange},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId",t)},expression:"form.subjectId"}},e._l(e.filterVoiceList,(function(e){return s("el-option",{key:e.subjectId,attrs:{label:e.subjectName,value:e.subjectId}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"更改乐器",prop:"musicalGoods",rules:[{required:!0,message:"请选择更改乐器",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.changeMusicalGoods?s("span",[e._v(e._s(e.changeInfo.changeMusicalGoods.name))]):e._e():s("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择乐器"},on:{change:e.musicalGoodsChange},model:{value:e.form.musicalGoods,callback:function(t){e.$set(e.form,"musicalGoods",t)},expression:"form.musicalGoods"}},[s("el-option",{attrs:{label:"自备乐器",value:"OWNED"}}),e._v(" "),e._l(e.musicalGoods,(function(e){return s("el-option",{key:e.goodsIdList,attrs:{label:e.name,value:e.goodsIdList}})}))],2)],1),e._v(" "),e.changeInfo||e.form.musicalGoods&&e.musicalGoodsById[e.form.musicalGoods]&&e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse?s("el-form-item",{attrs:{label:"乐器提供方式",prop:"type",rules:[{required:!0,message:"请选择乐器提供方式",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.kitGroupPurchaseType?s("span",[e._v(e._s(e.kitGroupPurchaseTypeFormater[e.changeInfo.kitGroupPurchaseType]))]):e._e():s("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse,(function(t,a){return s("el-radio",{key:a,attrs:{label:a}},[e._v(e._s(e.kitGroupPurchaseTypeFormater[a]+" "+((e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[a]]||0)>0?e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[a]]+"元":"免费")))])})),1)],1):e._e(),e._v(" "),e.activeAccessories.length||e.groupList.length||e.changeInfo?s("el-form-item",{attrs:{label:"更换教辅",prop:"name"}},[e.changeInfo?e.changeInfo?s("span",[e._v(e._s(e.changeAccessoriesGoods))]):e._e():s("accessories",{attrs:{list:e.activeAccessories,groupList:e.groupList},on:{"update:list":function(t){e.activeAccessories=t},"update:groupList":function(t){e.groupList=t},"update:group-list":function(t){e.groupList=t},change:e.accessoriesChange}})],1):e._e(),e._v(" "),e.changeInfo?s("el-form-item",{attrs:{label:"查看链接",prop:"name"}},[s("div",{staticClass:"viewlink"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.copyLink,placement:"top"}},[s("span",{staticClass:"link"},[e._v(e._s(e.copyLink))])]),e._v(" "),s("el-popover",{attrs:{placement:"top",width:"220",trigger:"click"}},[s("div",{staticClass:"left-code"},[s("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}}),e._v(" "),e.copyLink?s("p",{staticClass:"code-url"},[e._v("\n "+e._s(e.copyLink)+"\n "),s("el-link",{staticClass:"linkbtn",attrs:{type:"primary"},on:{click:function(t){return e.copyUrl(e.copyLink)}}},[e._v("复制")])],1):e._e()]),e._v(" "),s("el-button",{staticClass:"btn",attrs:{slot:"reference",type:"primary"},on:{click:e.onCreateQRCode},slot:"reference"},[e._v("二维码")])],1)],1)]):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"支付差价",prop:"name"}},[e.changeInfo?s("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.editSpread))+"元")]):s("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.spread))+"元")])])],1),e._v(" "),s("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),e.changeInfo&&1!==e.changeInfo.status?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/cancel",expression:"'subjectChange/cancel'"}],attrs:{type:"danger"},on:{click:e.cancel}},[e._v("取消订单")]):e._e(),e._v(" "),e.changeInfo?e._e():s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/add",expression:"'subjectChange/add'"}],attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},i=[],r=(s("96cf"),s("3b8d")),n=(s("7f7f"),s("db72")),o=(s("ac6a"),s("456d"),s("2d63")),c=s("d044"),l=s.n(c),u=s("f904"),p=s.n(u),d=(s("6612"),s("1cc7")),m=s("61f7"),h=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),e.groupOptions.length?s("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.groupOptions,(function(t){return s("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[s("strong",[s("span",[e._v(e._s(t.name))]),e._v(" "),s("span",[e._v(e._s(e._f("moneyFormat")(t.price))+"元")])]),e._v(" "),e._l(t.subs,(function(t){return s("p",{key:t},[e._v(e._s(t))])}))],2)})),1):s("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.list,(function(t){return s("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[s("strong",[s("span",[e._v(e._s(t.name))]),e._v(" "),t.groupPurchasePrice>0?s("span",[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+" 元")]):s("span",[e._v("免费")])])])})),1)],1)},f=[],y=s("75fc"),v={props:["list","groupList"],data:function(){return{type:"list",checkAll:!1,checkeds:[],accessoriesByid:{},groupListById:{},selectMoney:0,isIndeterminate:!1}},watch:{checkeds:function(e){"list"===this.type?this.accessoriesByid:this.groupListById;var t=0;if("list"===this.type){var s,a=Object(o["a"])(e);try{for(a.s();!(s=a.n()).done;){var i=s.value,r=this.accessoriesByid[i];r&&(t+=parseFloat(r.groupPurchasePrice))}}catch(b){a.e(b)}finally{a.f()}}else{var n,c=Object(o["a"])(e);try{for(c.s();!(n=c.n()).done;){var l=n.value,u=this.groupListById[l];u&&(t+=parseFloat(u.price))}}catch(b){c.e(b)}finally{c.f()}}var p=[];if("list"!==this.type){var d,m=Object(o["a"])(e);try{for(m.s();!(d=m.n()).done;){var h=d.value,f=this.groupListById[h];if(f){var v=this.groupListById[h].goodsList;p=p.concat((v||[]).map((function(e){return e.id})))}}}catch(b){m.e(b)}finally{m.f()}}else p=Object(y["a"])(e);this.$listeners.change(p,t)}},mounted:function(){var e=this;this.$nextTick((function(){var t,s={},a=Object(o["a"])(e.list);try{for(a.s();!(t=a.n()).done;){var i=t.value;s[i.id]=i}}catch(u){a.e(u)}finally{a.f()}var r,n={},c=Object(o["a"])(e.groupList);try{for(c.s();!(r=c.n()).done;){var l=r.value;n[l.id]=l}}catch(u){c.e(u)}finally{c.f()}e.accessoriesByid=s,e.groupListById=n}))},computed:{groupOptions:function(){var e=this.groupList.map((function(e){return{name:e.name,price:e.price,id:e.id,subs:e.childGoodsList?e.childGoodsList.map((function(e){return e.name})):[]}}));return e.length&&(this.type="group"),e}},methods:{handleCheckAllChange:function(e){var t="list"===this.type?this.list:this.groupOptions,s=t.map((function(e){return e.id}));this.checkeds=e?s:[],this.isIndeterminate=!1},optionChange:function(e){var t="list"===this.type?this.list:this.groupOptions,s=e.length;this.checkAll=s===t.length,this.isIndeterminate=s>0&&s<t.length}}},b=v,g=(s("6ca4"),s("2877")),_=Object(g["a"])(b,h,f,!1,null,"72a63fe6",null),S=_.exports,w=s("267e"),k=function(e,t){var s=[],a={},i=[],r={},c=[],l={},u={};if(e){var p,d=e.musicGroupSubjectGoodsGroupList,m={},h=Object(o["a"])(d);try{for(h.s();!(p=h.n()).done;){var f=p.value;m[f.type]||(m[f.type]=[]),m[f.type].push(f)}}catch(I){h.e(I)}finally{h.f()}for(var y=Object.keys(m),v=0,b=y;v<b.length;v++){var g,_=b[v],S=Object(o["a"])(m[_]);try{for(S.s();!(g=S.n()).done;){var w=g.value;if("INSTRUMENT"===_){var k={},x={};try{k=JSON.parse(w.kitGroupPurchaseTypeJson)}catch(j){}try{x=JSON.parse(w.coursePurchaseTypeJson)}catch(j){}var C=Object(n["a"])(Object(n["a"])({},w),{},{kitGroupPurchaseTypeJsonParse:k,kitGroupPurchaseTypePrice:k[t]||0,coursePurchaseTypeJsonTypePrice:x[t]||0,_calculated_price:"FREE"===t?0:"LEASE"===t?w.depositFee:w.price});if(i.push(C),r[w.goodsIdList]=C,!m.ACCESSORIES){u[w.goodsIdList]||(u[w.goodsIdList]=[]);var F,T=w.goodsList[0].goodsList?w.goodsList[0].goodsList:[],P=Object(o["a"])(T);try{for(P.s();!(F=P.n()).done;){var O=F.value;u[w.goodsIdList].push(O),a[O.id]=O}}catch(I){P.e(I)}finally{P.f()}}}else"ACCESSORIES"===w.type&&(c.push(w),l[w.id]=w)}}catch(I){S.e(I)}finally{S.f()}}}return{accessories:s,accessoriesById:a,musicalGoods:i,musicalGoodsById:r,groupList:c,groupListById:l,accessoriesByGoods:u}},x={GROUP:"price",LEASE:"depositFee"},C={props:["detail","musicGroupId","voiceList"],components:{accessories:S},data:function(){return{typeAndprice:x,kitGroupPurchaseTypeFormater:w["kitGroupPurchaseType"],changeInfo:null,oldAllMoney:0,accessories:[],accessoriesByid:{},musicalGoods:[],musicalGoodsById:{},groupList:[],groupListById:{},accessoriesByGoods:{},selectAccessories:[],selectAccessoriesMoney:0,kitGroupPurchaseTypePrice:0,coursePurchaseTypeJsonTypePrice:0,form:{subjectId:"",accessories:"",musicalGoods:"",type:""},rules:{},item:{},originalMusicalGoods:"",originalAccessoriesGoods:"",originalAccessoriesPrice:0,originalMusicalPrice:0,originalCourseFee:0,musicGroupSubjectPlanFee:0,musicalPrice:0}},watch:{detail:function(){this.detail&&this.fetchDetail()},"form.musicalGoods":function(){this.$set(this.form,"type","")},"form.type":function(){this.musicalGoodsChange(this.form.musicalGoods)}},computed:{copyLink:function(){return this.changeInfo?Object(m["d"])()+"/#/change-voice?id="+this.changeInfo.id:""},filterVoiceList:function(){var e=this;return this.voiceList.filter((function(t){return t.subjectId!=e.detail.actualSubjectId}))},activeAccessories:function(){var e=this.form||{},t=e.musicalGoods;return t&&this.accessoriesByGoods[t]||[]},changeSubjectName:function(){var e="";if(this.item.changeSubjectId){var t,s=Object(o["a"])(this.voiceList);try{for(s.s();!(t=s.n()).done;){var a=t.value;if(a.subjectId===this.item.changeSubjectId){e=a.subjectName;break}}}catch(i){s.e(i)}finally{s.f()}}return e},changeAccessoriesGoods:function(){var e=this.changeInfo||{},t=(e.changeAccessoriesGoods||[]).map((function(e){return e.name})).join(",");return t||"未选择教辅"},editSpread:function(){var e=this.changeInfo||{},t=(e.originalAccessoriesPrice||0)+(e.originalCourseFee||0)+(e.originalMusicalPrice||0);return(e.changeMusicalPrice||0)+(e.changeAccessoriesPrice||0)+(e.changeCourseFee||0)-t},spread:function(){var e=this.numFormat(this.musicalPrice+this.selectAccessoriesMoney+this.musicGroupSubjectPlanFee-this.originalAccessoriesPrice-this.originalMusicalPrice-this.originalCourseFee-this.coursePurchaseTypeJsonTypePrice-this.kitGroupPurchaseTypePrice);return e}},mounted:function(){console.log(this.detail),this.detail&&this.detail.userId&&this.fetchDetail()},methods:{copyUrl:function(e){p()(e),this.$message.success("复制成功")},fetchDetail:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(e){var t=e.data;s.item=t||{},t&&(s.$set(s.form,"type",s.item.kitGroupPurchaseType),s.originalAccessoriesPrice=t.originalAccessoriesPrice,s.originalMusicalPrice=t.originalMusicalPrice,s.originalCourseFee=t.originalCourseFee,s.originalMusicalGoods=t.originalMusicalGoods&&t.originalMusicalGoods.name,s.originalAccessoriesGoods=(t.originalAccessoriesGoods||[]).map((function(e){return e.name})).join())},!this.detail.subjectChange){e.next=6;break}return e.next=4,Object(d["S"])({id:this.detail.subjectChange.id}).then((function(e){t(e),s.changeInfo=e.data}));case 4:e.next=9;break;case 6:return this.changeInfo=this.detail.subjectChange,e.next=9,Object(d["Cb"])({musicGroupId:this.musicGroupId,studentId:this.detail.studentId}).then(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),subjectChange:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s,a,i,r,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.form,"musicalGoods",""),s=null,!t){e.next=7;break}return e.next=5,Object(d["Gb"])({musicGroupId:this.musicGroupId,subjectId:t}).then((function(e){s=e.data,n.musicGroupSubjectPlanFee=e.data.musicGroupSubjectPlan.fee}));case 5:e.next=8;break;case 7:this.musicGroupSubjectPlanFee=0;case 8:for(i in a=k(s,this.item.kitGroupPurchaseType),a)a.hasOwnProperty(i)&&(r=a[i],this[i]=r);this.musicalGoodsChange();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),musicalGoodsChange:function(e){var t=this.musicalGoodsById[e];t?(this.musicalPrice=this.numFormat(t[x[this.form.type]]||0),this.coursePurchaseTypeJsonTypePrice=this.numFormat(t.coursePurchaseTypeJsonTypePrice),this.types=t.kitGroupPurchaseTypeJsonParse):(this.musicalPrice=0,this.coursePurchaseTypeJsonTypePrice=0,this.$set(this.form,"type",""))},accessoriesChange:function(e,t){this.selectAccessories=e,this.selectAccessoriesMoney=t},numFormat:function(e){var t=parseFloat(e);return isNaN(t)&&(t=0),parseFloat(t.toFixed(2))},onCreateQRCode:function(){var e=this;setTimeout((function(){e.$refs.qrCodeUrl.innerHTML="",e.qrcode=new l.a(e.$refs.qrCodeUrl,{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:l.a.CorrectLevel.H}),e.qrcode.makeCode(e.copyLink),e.codeUrl=e.copyLink}),500)},submit:function(){var e=this;this.$refs["form"].validate((function(t){var s;(e.detail.subjectId,t)&&Object(d["Dc"])({changeCourseFee:e.numFormat(e.musicGroupSubjectPlanFee-e.coursePurchaseTypeJsonTypePrice),changeAccessories:e.selectAccessories.join(",")||null,changeAccessoriesPrice:e.numFormat(e.selectAccessoriesMoney),changeMusicalPrice:e.numFormat(e.musicalPrice),originalCourseFee:e.originalCourseFee,originalMusicalPrice:e.originalMusicalPrice,originalMusical:e.item.originalMusical,originalAccessories:e.item.originalAccessories,originalAccessoriesPrice:e.originalAccessoriesPrice,cooperationOrganId:e.item.cooperationOrganId,kitGroupPurchaseType:"OWNED"===e.form.musicalGoods?e.form.musicalGoods:e.form.type,musicGroupId:e.musicGroupId,studentId:e.detail.studentId,changeMusical:"OWNED"===e.form.musicalGoods?0:e.form.musicalGoods,originalCost:e.item.originalCost,organId:e.item.organId,originalSubjectId:null===(s=e.detail)||void 0===s?void 0:s.actualSubjectId,changeSubjectId:e.form.subjectId}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("提交成功!")}))}))},cancel:function(){var e=this;this.$confirm("是否确认取消订单?","提示",{onfirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["Ec"])({id:e.detail.subjectChange.id}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("取消成功!")}))}))}}},F=C,T=(s("ebaf"),Object(g["a"])(F,a,i,!1,null,"f23a05fa",null));t["a"]=T.exports},"704d":function(e,t,s){"use strict";s("96cf");var a=s("3b8d"),i=s("75fc"),r=s("db72"),n=s("2f62"),o=s("1cc7"),c=new n["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(r["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(i["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,s){var a,i,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.commit,i=t.state,e.prev=1,(null===(r=s.data)||void 0===r?void 0:r.musicGroupId)===i.musicGroup.id&&!s.force){e.next=8;break}return e.next=5,Object(o["Lb"])(s.data);case 5:return n=e.sent,a("updateBaseinfo",n),e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",Promise.resolve(i.res));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,s){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,s){var a,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.commit,i=t.state,e.prev=1,!i.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(i.sounds));case 4:return e.next=6,Object(o["J"])(Object(r["a"])({},s.data));case 6:return n=e.sent,a("updateSound",n.data),e.abrupt("return",Promise.resolve(i.sounds));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,s){return e.apply(this,arguments)}return t}()}});t["a"]=c},7140:function(e,t,s){},"73b3":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"basea-container"},[s("div",{staticClass:"baseTop"},[s("div",{staticClass:"left"},[s("teambaseinfo"),e._v(" "),s("div",{staticClass:"wrap"},["look"!==e.lookType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},i=[],r=(s("1cc7"),s("80b0")),n=s("bc3a"),o=s.n(n),c=s("4328"),l=s.n(c),u=s("5f87"),p=s("3908"),d={components:{teambaseinfo:r["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",s={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(u["a"])()},data:l.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);e.$message.error(a.msg)}else{var i=URL.createObjectURL(s),r=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+"订货清单.xls";r.href=i,r.setAttribute("download",c),document.body.appendChild(r),r.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",s={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(u["a"])()},data:l.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);e.$message.error(a.msg)}else{var i=URL.createObjectURL(s),r=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+"分发清单.xls";r.href=i,r.setAttribute("download",c),document.body.appendChild(r),r.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},m=d,h=(s("fc1a"),s("2877")),f=Object(h["a"])(m,a,i,!1,null,"546db682",null);t["a"]=f.exports},7619:function(e,t,s){},7994:function(e,t,s){},"7a3c":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():s("el-form-item",{attrs:{label:"缴费金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[s("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"请输入缴费金额"},on:{change:e.paymentAmountChange},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),e.hidePaymentPattern?e._e():s("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.form.paymentPattern,callback:function(t){e.$set(e.form,"paymentPattern",t)},expression:"form.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return s("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?s("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentValid,callback:function(t){e.$set(e.form,"paymentValid",t)},expression:"form.paymentValid"}})],1)],1)},i=[],r=s("267e"),n=s("ed08"),o={props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney"],data:function(){return{paymentPatternTypeOptions:Object(n["b"])(r["paymentPatternType"]),pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}},c=o,l=(s("2666"),s("2877")),u=Object(l["a"])(c,a,i,!1,null,"e3750f40",null);t["a"]=u.exports},"7a7c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACaZJREFUeAHtXGtsVMcVnnPv7joEY9LgtQlNHUCNkhbSJrgv1CjkQSq1UqiUBKtSklaJmgLGa+pgUwlVKlWrUtkLFK/tgPIjKqItcUr7p1X/hBqiVqqUQpQAaVNF5VFkbK9JgWJj1rt3+p27D9+7u3efc9c2+Er2zpyZOXPOd8+851wSFXx2SKn1vLrrITLo81LK+wT+SIhlQsgaQWKBlGIBi0Mk/ick/gRdlUKcAeFDwp/U5Hstm7a+u4PIqJTYkM/d51Oh0JIJcf0ZKekJ1LQGYNxRXo10GeWPEckjt4l5h/8TCAyWxy93aVcAWvr667eNj196RsbktyWJJ2Apem4xSkwlipEUR0inA7ffvujw2RdfnCiRk2MxpQD5e3uryRjbKAVtRRNa7FirCwlogkMk5C6pzd8X3rz5mqoqlAD06MCA59Tpv7eSlNvRjyxSJVwpfNB/XZJEP1u54gvdRx97LFoKD2uZsgHy9wYfFobRB2AesDKe7jCAOik0rTm8uf0v5chSMkAr+vt9I8Png1LIFvQxJfMpR/i8ZdGTk6CeuvqG9tNNTZG8+bNkKEmx+r49y2PRaD9GpMYsPGcgiY7rHk/TcHPbv4sVrmiA6kNdj8eE/B3mKQuLrWxa85O4ogt6ejjQ8edi5NCKyewPda6PSfmnWQcOK4kXyrKzDsXoXDBAtd1dL6MjPgTmvmIqmGF5fawD61KoXAU1MUY9AU7BgBYqwDTlMzDKfSsc2PZmvvrzAmT2OdysZrflZMMhohN9PV+flBMgc7SKTZ6YlX1ONkjSadxx695VuUY3xybD8xxzKJ9to1U6CLni3HFjusK6OmVzBIgngbNnnuOkXiF02RjXNXverE2Mlw/SkG/P2Blydl1Kp/KMW6NHsi1LMiyIF568trplwGFYeakEnU3d02DOAIhX5TNt4ZkmsytR1pl1T2dua2K8nyOMsbPIPK1bFulCVirOWyVCm7/Uup9ksyBzs+sWBYdfAhsGY2B9ISkL4m3SsWujZxTuBA74SGvWRdVVa4Wqw9f1G3dRVL6GbZeHVPDmncn51bXLktu3niRTcw9Z4TYpkD8wGGj/Z5K/i7+D/p6uN4QhlADEBsJYQN5fscwpgHiDXa0S1Obv2TUidHExjKMatbzj3Pw4QhIx4160je+p5J/AwgTI7IP4aMY8fVBYC0z+c9KI/VFEY79VyNbOKmocwnztDfQdy+0J5cUYC8aEuZgATciJZ/EW3DmaEVRXnrjOpQGMO7yBBZ/lpQCSJPlQz5UHbbr67v7d81Qzb9y/34txp8xDSGepEgedQtuB42Ah6RHnrOWnTIzQZ8rnYudwITJ2v52iPLaGsTHPyt18Eyw2yaiSEcYKgUHGKmtcfVjewfcINL5IoJ65nSOG/C9bKXWhzm3+UHCLlZYrjE27ZbWhzt/XvfaL+lQ+Kb+UCrsUYGw09BH3ucQ/xRY3NJ4ym3KKIh6U0uhcsn9vwxTJOWQIuRN2+JTHoCrOBZlxiCvXOZdQk8LYoP+pAECYfPWG9nw1JbZOP8eVFm/kRuSnKZpDoLYv2IjRaj2s8ODghi3nOVt93+7V+LnboYg6MgOEipep45iDE8VSTWqkueN9TOl/CVt4IdcJwyd7ehZR1MA8iq5hPvLjJHfMrzJW3ck0lb+MjYZJ0UKVTJ14oZk9Xf9q18pkelWd1ozV8wlcnOr1d3dlKOzft/feiBwfwEWEe3DG/hw2189w2SWh4P1sUUk+7v7KGsIbvIQ3eae7FcW544387dHFSx9+s6kpxpTa/Xvuokj0MNr6ajS5ozgcCHq8ntOxySiu0MhmnKt7cKVl40jrtgOcP76gDv8VALk8gnFtsFtsf8ByZXU86v5/WNFXjg6fSzWV0Q1tFxt8NWvQ3HaiL8Q5v/xDdHLyDMD5AWjvktBWJ8Fh6bDbwLdIKgIO14e6FsCCOm8g7LirzxlVP7CMLeHWjm4r308f7K65/N+JLkxanxWa58nRlrYT1vTaULBNSGO3lVaBcIRwajoKpCq+gwjz3dvgW9hxfMOGyaSi/p7gd/DafhQOdCxP0hr6+j5xPTq2D1bVlKRV6jfexMzbpJWqcqoevJQt5yJX3lu8L/jZKao9xGnjsbGT0wGOKQmwQR9EV+1iVSpGHwup/WRoY/sHTjVyGt7iK2iSo0553KXTVQ0dpzl8uluRnTsUPoXRqnG0tf039pTMWLilo99b5WtEmfczU92lMDYaxrIP3a3Gzh2j00c0z7t2aFPbWXuKc4xn0Hp11VrkqKisjI0GgStWKZrLhEfzrBt5+fvDznBkTxl6qTUsNH0dLOl69hzqqYyNxtf71bPOzpGk9sOLm9v+kT01P3W0Zeu/sHu1PX9ONTkYG419H9BR8/V+t58L/sUNoXIrucdb0wvTP1cun/zl6TJjo+2IO4Ycy1+gzBwa7Sr1Kq61Zp43oePstNJcCh9jbDDM85pDHnGpkjhb+FTouvi1qjp887RDEDo1wVTF18oniYkJEHvNINGwZlAcPja8qWNEFc8L333lY3ZiUcUvgw9eaAKT+LEPuxRhdHgrI6M6wlF1rBKcNKGeZ4I1g590szItiOnsUpRIV/5DmnxHNVPMcJXzTMpoxSIFEPtbYdwfSmZS+Ss93sKmEtIYx+y1oKao+9yZWTMGjEVSf+xhTT04bWg3pOiaoigIoT23tLT7EqOlAoZTLLATOYGFrLmRP0UtL4Q96I6RwLZgkkvKgpjAzmi8xE8mqvhFex5xAxxTXhJKLZ51ZwysetsA4ptV7IxmzVBqGKb6kU76NzWv+FqpPPKV83jpGx5dfxw9qJL+iHW33i7j+m1NjAl8kfH0qXdOYL/mAY6X+uDW6HasxHeWWr6YcnU9wRcMwzhQTJn0vLCekytWfnFVupdiBkBcUMU1YN7SEEJvpqroYLowKuMyCldyg/Zi47/0+wU5rgFnBcgEKRTsxulnQKUyM5UXkRYKB9ozjp5YXlsfZFWA3RjRAo9baTdnmI7Hdc2unSNAvLBkN0b0UleyF70JqOzMAh1zLaIdAWL12QuG3RgRLMkhdoZDGDFdNPP4seYEyAQJPp7o4Z9H2M3FbKWxZIe65/P5irFQeQHiTHHPPOIL1jcDSNCBNhbibci6O45inJj+JFwzD4LuS0+bJfEIW06h4LBORQHEBW41t/CiATJBmvuwAMOQ+5n7NEVufFKpcx83SUHhHJj7PI4zNraUuQ8s2eBwjsx9ossZm4yU1EfehFgbd3ko178Cp8Ak38bw+9as/chbBkoJwvr+fn1g9PyDs+kzgf8Hz2nY3WMBjb4AAAAASUVORK5CYII="},"80b0":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"base-container"},[s("div",{staticClass:"banseLeft"},[s("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),s("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[s("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[s("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[s("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[s("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},[s("el-option",{attrs:{label:"课程收费",value:0}}),e._v(" "),s("el-option",{attrs:{label:"系统收费",value:1}}),e._v(" "),s("el-option",{attrs:{label:"云教练收费",value:2}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[s("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[s("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),s("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[s("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[s("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.bossList,(function(t){return s("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[s("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.userId}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[s("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,a){return s("el-option",{key:a,attrs:{label:t.userName,value:t.userId}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[s("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[s("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[s("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[s("el-option",{attrs:{label:"自定义课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),s("el-option",{attrs:{label:"标准课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[s("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[s("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),s("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[s("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"",prop:"isClass"}},[s("el-checkbox",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.isClass,callback:function(t){e.$set(e.topFrom,"isClass","string"===typeof t?t.trim():t)},expression:"topFrom.isClass"}},[e._v("课堂课乐团")])],1),e._v(" "),s("br"),e._v(" "),"teamDraft"==e.teamStatus?s("el-form-item",{attrs:{label:""}},[s("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),s("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():s("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?s("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},i=[],r=(s("28a5"),s("a481"),s("ac6a"),s("7f7f"),s("96cf"),s("3b8d")),n=s("bd86"),o=s("1cc7"),c=s("a488"),l=s("5a0c"),u=s.n(l),p=s("7676"),d=s.n(p),m=s("99b4"),h=s("641c"),f=s("92e3"),y=s("61f7"),v=s("879d"),b={components:{mergeMusic:v["a"],qrCode:h["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(n["a"])({classStatus:f["g"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],addList:[],activeTeam:[],teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null},"teamid","")},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(s=this.$helpers.lodash,a=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),s.isEqual(this.topFrom,a)||!a){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i.gotoNext(t);case 2:return s=e.sent,console.log(s),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(i.teamid,"base")),!0)}));case 6:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",!0);case 10:e.next=14;break;case 12:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var s,a=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null===a||void 0===a?void 0:a.section)this.topFrom=a,(null===(s=this.topFrom)||void 0===s?void 0:s.section)&&this.getBaseList(this.topFrom.section);else Object(o["Lb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var i,r=JSON.parse(localStorage.getItem("newTeambase"));r?this.topFrom=r:this.topFrom,(null===(i=this.topFrom)||void 0===i?void 0:i.section)&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["eb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Rb"])({rows:1e3}).then((function(e){200==e.code&&(t.typeList=e.data.rows)}))},changeSection:function(e){this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.getBaseList(e)},getBaseList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(m["z"])({organId:t}).then((function(e){200==e.code&&(i.cooperationList=e.data)})),Object(m["o"])({organId:t}).then((function(e){200==e.code&&(i.addList=e.data)})),Object(c["b"])().then((function(e){200==e.code&&(i.technician=e.data)})),e.prev=3,e.next=6,Object(o["O"])({organId:t,employeeRole:"EDUCATION"});case 6:s=e.sent,this.educationList=s.data,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),console.log(e.t0);case 13:return e.prev=13,e.next=16,Object(o["O"])({organId:t,employeeRole:"TEAM_TEACHER"});case 16:a=e.sent,this.bossList=a.data,e.next=23;break;case 20:e.prev=20,e.t1=e["catch"](13),console.log(e.t1);case 23:Object(o["Jb"])({organId:t}).then((function(e){200==e.code&&(i.teacherList=e.data)}));case 24:case"end":return e.stop()}}),e,this,[[3,10],[13,20]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){},gotoNext:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){a.$refs["topinfo"].validate(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(r,n){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(r){i.next=5;break}a.$message.error("请填写建团必要参数"),e(!1),i.next=16;break;case 5:if(a.$store.dispatch("topinfo",a.topFrom),"teamAudit"!=a.teamStatus){i.next=10;break}a.$emit("handleClick",{name:"2"}),i.next=16;break;case 10:return a.$emit("getName",a.topFrom.name),i.next=13,a.resetSubmit(t);case 13:s=i.sent,console.log(s,"tempStatus"),e(s);case 16:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){s.$refs["topinfo"].validate(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n,c){var l,p;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n){i.next=5;break}s.$message.error("请填写必要参数"),a(),i.next=26;break;case 5:l=null,i.t0=s.teamStatus,i.next="resetTeam"===i.t0?9:"newTeam"===i.t0?11:"teamList"===i.t0?13:"teamDraft"===i.t0?15:17;break;case 9:return l="PROGRESS",i.abrupt("break",17);case 11:return l="DRAFT",i.abrupt("break",17);case 13:return l=null,i.abrupt("break",17);case 15:return l="DRAFT",i.abrupt("break",17);case 17:if(p={},p.musicGroup={settlementType:s.topFrom.salary,applyExpireDate:u()(s.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:s.topFrom.type,cooperationOrganId:s.topFrom.school,courseViewType:s.topFrom.courseViewType,teamTeacherId:s.topFrom.boss,educationalTeacherId:s.topFrom.teacher,enrollClasses:s.topFrom.startClass.join(","),name:s.topFrom.name,paymentPattern:s.topFrom.paymentPattern,paymentValidStartDate:s.topFrom.paymentValidStartDate?u()(s.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):s.topFrom.paymentValidStartDate,paymentValidEndDate:s.topFrom.paymentValidEndDate?u()(s.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):s.topFrom.paymentValidEndDate,organId:s.topFrom.section,schoolId:s.topFrom.address,id:s.teamid,directorUserId:s.topFrom.head,isClassroomLessons:s.topFrom.isClass,status:l,expectStartGroupDate:s.topFrom.startTime,ownershipType:s.topFrom.ownershipType,repairUserId:s.topFrom.repairUserId||null,feeType:s.topFrom.feeType},"newTeam"==s.teamStatus){i.next=25;break}return i.next=22,Object(o["tc"])(p).then(function(){var a=Object(r["a"])(regeneratorRuntime.mark((function a(i){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:200==i.code&&(localStorage.setItem("".concat(s.teamid,"base"),JSON.stringify(s.topFrom)),s.$emit("getBaseInfo"),"teamDraft"==s.teamStatus?(s.$message.success("保存成功"),t||s.$emit("handleClick",{name:"2"}),e(!0)):s.$message.success("修改乐团成功"),e(!0));case 1:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}());case 22:return i.abrupt("return",i.sent);case 25:Object(o["x"])(p).then((function(e){if(200==e.code){var t=s.$createElement;s.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新建乐团成功 "),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return s.$router.push({query:d()(s.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),s.$emit("getName",s.topFrom.name),s.$emit("handleClick",{name:"2"}),!0})).catch((function(){return s.$router.push({query:d()(s.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),s.$emit("getName",s.topFrom.name),s.init(),!0}))}}));case 26:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){musicGroupFound({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},payStart:function(){this.paymentStatus=!0},getStudentStatus:function(){var e=this,t={musicGroupId:this.teamid,page:1,rows:9999};this.teamid&&Object(o["Bb"])(t).then((function(t){200==t.code&&t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)}))}))},payDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(o["Yb"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var s=this;this.$refs[e].validate((function(e){e&&(t?Object(o["D"])({musicGroupId:s.teamid,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长缴费成功"),s.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:s.teamid}).then((function(e){200==e.code&&(s.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):s.$message.error(e.msg)})):Object(o["C"])({musicGroupId:s.teamid,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长报名成功"),s.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:s.teamid}).then((function(e){200==e.code&&(s.applyExpireDate=e.data.musicGroup.applyExpireDate,s.setBase(e))}))):s.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(y["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var s=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(y["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(y["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:d()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var s in e.classStatus)if(t==e.classStatus[s].value)return e.classStatus[s].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},g=b,_=(s("6193"),s("5b65"),s("2877")),S=Object(_["a"])(g,a,i,!1,null,"75e6b3ad",null);t["a"]=S.exports},"839d":function(e,t,s){"use strict";var a=s("88ca3"),i=s.n(a);i.a},"86e8":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div")},i=[],r={},n=r,o=s("2877"),c=Object(o["a"])(n,a,i,!1,null,"21abf8f1",null);t["a"]=c.exports},8790:function(e,t,s){"use strict";var a=s("7994"),i=s.n(a);i.a},"879d":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"merge-music"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂未选择乐团"}}):s("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,a){return s("el-collapse-item",{key:a,staticClass:"item",attrs:{name:a},scopedSlots:e._u([{key:"title",fn:function(){return[s("div",{staticClass:"header"},[s("span",{staticClass:"title"},[s("span",[e._v(e._s(t.name))])]),e._v(" "),s("span",{staticStyle:{width:"20%"}},[s("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),s("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(a)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),s("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),s("div",{staticClass:"btns"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),s("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[s("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),s("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?s("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},i=[],r=(s("96cf"),s("3b8d")),n=s("db72"),o=s("2d63"),c=(s("ac6a"),s("456d"),s("160b")),l=s("3078"),u=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"container",staticStyle:{width:"100%"}},[s("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[s("el-form-item",{attrs:{prop:"musicGroupName"}},[s("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),s("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),s("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),s("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},p=[],d=(s("386d"),s("7f7f"),s("333d")),m={props:["visible","organId"],components:{pagination:d["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var s in e){var a={};a.id=e[s].id,a.name=e[s].name,t.push(a)}this.passed=t},FetchList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["b"])(Object(n["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==s.$route.query.id})),this.rules.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},h=m,f=(s("1aa8"),s("2877")),y=Object(f["a"])(h,u,p,!1,null,"64b6b690",null),v=y.exports,b=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[s("el-form-item",{attrs:{prop:"keyword"}},[s("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),s("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},g=[],_=(s("6762"),s("2fdb"),s("1672")),S={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var s=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return s}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var s in e)t.push(e[s].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail: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(_["a"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},w=S,k=Object(f["a"])(w,b,g,!1,null,null,null),x=k.exports,C=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[s("el-form-item",{attrs:{prop:"keyword"}},[s("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),s("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},F=[],T=s("1cc7"),P={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var s=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return s}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var s in e)t.push(e[s].userId);this.passed=t},removeStuden: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(l["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(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(T["Pb"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},O=P,I=Object(f["a"])(O,C,F,!1,null,null,null),j=I.exports,L={props:["organId"],components:{selectMusic:v,selectItem:x,mergedStudents:j},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,s={},a=Object(o["a"])(e);try{for(a.s();!(t=a.n()).done;){var i=t.value;s[i.id]?s[i.id]=Object(n["a"])(Object(n["a"])({},s[i.id]),i):s[i.id]=Object(n["a"])(Object(n["a"])({},i),{},{num:0})}}catch(r){a.e(r)}finally{a.f()}this.items=s},remove:function(e){var t=Object(n["a"])({},this.items),s=Object(n["a"])({},this.studentsByMusicId);delete t[e],delete s[e],this.items=Object(n["a"])({},t),this.studentsByMusicId=Object(n["a"])({},s)},selected:function(e,t){var s=this.studentsByMusicId;s[t]||(s[t]=[]),s[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=s},merge:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(s in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,s)&&(a=this.studentsByMusicId[s],t=t.concat(a));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(l["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var s in e)t.push(e[s].id);this.passed=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(c["b"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},D=L,G=(s("f089"),Object(f["a"])(D,a,i,!1,null,"4c59032c",null));t["a"]=G.exports},"88ca3":function(e,t,s){},"8ea54":function(e,t,s){},"8f19":function(e,t,s){"use strict";var a=s("7140"),i=s.n(a);i.a},"8fa7":function(e,t,s){"use strict";var a=s("b9e0"),i=s.n(a);i.a},9112:function(e,t,s){},9214:function(e,t,s){e.exports=s.p+"static/img/yunTrain_small_bg.b5242407.png"},"940a":function(e,t,s){"use strict";var a=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,a){return s("el-collapse-item",{key:a,attrs:{name:a}},[s("template",{slot:"title"},[s("div",{staticClass:"collapse-title"},[s("span",[e._v("缴费周期 "+e._s(a+1))]),e._v(" "),e.cycles.length>1?s("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(a)}}}):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)},i=[],r=s("a8db"),n=(s("6762"),s("2fdb"),s("75fc")),o=s("db72"),c=(s("96cf"),s("3b8d")),l=s("2d63"),u=s("d349"),p=(s("1cc7"),s("1672")),d=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:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,465223599)}):e._e()],1)},f=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail"],mounted:function(){},watch:{paymentType:function(){console.log(this.paymentType)}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},v=y,b=(s("d0f4"),s("2877")),g=Object(b["a"])(v,h,f,!1,null,"34827ebc",null),_=g.exports,S=s("7a3c"),w=s("0464"),k=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,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[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)]}}])},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),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)},x=[],C=s("92e3"),F=s("6612"),T=s.n(F),P=(s("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:d["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(m["b"])(d["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(C["b"])(C["h"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return T()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(s,a,i){var r=t.list.form[e].courseType;r&&a>1&&t.classTimeList[r]&&a<t.classTimeList[r]?i(new Error("单节课不得少于".concat(t.classTimeList[r],"分钟"))):i()}}}}),O=P,I=(s("1452"),Object(b["a"])(O,k,x,!1,null,"38e6cc3c",null)),j=I.exports,L=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)},D=[],G={data:function(){return{list:[]}},methods:{submit:function(){}}},N=G,A=(s("62f6"),Object(b["a"])(N,L,D,!1,null,"37928f5f",null)),E=A.exports,R=s("b133"),$=(s("73b3"),s("7676")),V=s.n($),M={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},q={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:w["a"],extraClassUser:j,classrooms:E,otherform:R["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"])(d["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(l["a"])(this.charges);try{for(s.s();!(e=s.n()).done;){var a=e.value;t[a.id]=a}}catch(i){s.e(i)}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,a=this.viewDetail,i=a.musicGroupPaymentCalenders;a.auditDto;t=null===(s=i[0])||void 0===s?void 0:s.paymentType,e=i.length>1||"ADD_COURSE"!=t,e&&(this.cycles=i.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(c["a"])(regeneratorRuntime.mark((function e(t){var s,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||this.rowDetail){e.next=11;break}return e.prev=1,e.next=4,Object(p["h"])({id:t});case 4:s=e.sent,this.eclass=s.data.filter((function(e){return!e.isStudentOptional||void 0!==a.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(c["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,r,n,c,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 M)M.hasOwnProperty(t)&&(s=M[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(p["g"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 8:r=e.sent,this.viewDetail=r.data,n=r.data.musicGroupPaymentCalenders[0]||{},this.eclass=(r.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==l.paymentType})),this.eclassuser=r.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===l.paymentTypeString?Object(o["a"])(Object(o["a"])({},e),{},{courseOriginalPrice:e.masterSubCoursePrice}):e})),this.$set(this.payment,"paymentPattern",String(null===(a=this.viewDetail.auditDto)||void 0===a?void 0:a.paymentPattern)),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",n.paymentPattern+""),c=[n.paymentValidStartDate,n.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[n.startPaymentDate,n.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",c)),this.studentIds=n.studentIds,this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(i=r.data.auditDto)||void 0===i?void 0:i.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,a=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,i=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,r={},n=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return a&&a==e.organId&&i&&i==e.chargeTypeId})),o=Object(l["a"])(n);try{for(o.s();!(s=o.n()).done;){var c=s.value;r[c.courseType]=c}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=r,r},priceChange:function(e,t){var s=Object(n["a"])(this.eclass),a=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=Math.round(T()(a.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=i,e.courseOriginalPrice=i,s[t]=e,this.eclass=Object(n["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,a=0,i=0,r=0,n="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,c=Object(l["a"])(n);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(a+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)i+=u.courseCurrentPrice;else{var p=Math.floor(u.courseCurrentPrice/this.cycles.length),d=u.courseCurrentPrice%this.cycles.length;i+=p+d,r+=p}}}catch(m){c.e(m)}finally{c.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(o["a"])(Object(o["a"])({},e),{},{paymentAmount:0===t?i:r})}))),this.$set(this.cycle,"paymentAmount",a),a},getChargeTypeList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,r,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,r=null===(s=this.musicGroup)||void 0===s?void 0:s.chargeTypeId,this.chargeTypeName=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeName,e.prev=3,e.next=6,Object(u["z"])({row:9999,chargeTypeId:r,organId:i});case 6:n=e.sent,o=n.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=n.data.rows,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length-1),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,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(n["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(c["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,c,u,d,h,f,y,v,b,g,_,S,w,k,x,C,F,T,P,O,I,j,L;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),s=[],a=Object(l["a"])(t);try{for(c=function(){var e=i.value;e.validate((function(t){t&&s.push(e)}))},a.s();!(i=a.n()).done;)c()}catch(D){a.e(D)}finally{a.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=61;break}v=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.form),this.other),{},{paymentPattern:this.payment.paymentPattern,musicGroupPaymentDateRangeList:Object(n["a"])(this.cycles.map((function(e){var t=e.paymentDate,s=e.paymentValid,a=Object(r["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),Object(m["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(s,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),b=v.leixing,g=Object(r["a"])(v,["leixing"]),this.$refs.cycle&&(_=this.cycle,S=_.paymentDate,w=_.paymentValid,k=Object(r["a"])(_,["paymentDate","paymentValid"]),g.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},k),Object(m["a"])(S,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(w,["paymentValidStartDate","paymentValidEndDate"]))]),x=Object(o["a"])(Object(o["a"])({},g),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:M[0==this.paymentType?this.paymentType:b],musicGroupId:this.musicGroupId}),C=null===(u=this.viewDetail)||void 0===u?void 0:u.musicGroupPaymentCalenders[0],C&&"ADD_STUDENT"===(null===(d=this.viewDetail)||void 0===d?void 0:d.auditDto.paymentType)&&(x.attribute1=C.attribute1),F=!1,T=Object(l["a"])(x.musicGroupPaymentCalenderCourseSettingsList),e.prev=14,T.s();case 16:if((P=T.n()).done){e.next=23;break}if(O=P.value,!(O.courseCurrentPrice>0)){e.next=21;break}return F=!0,e.abrupt("break",23);case 21:e.next=16;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](14),T.e(e.t0);case 28:return e.prev=28,T.f(),e.finish(28);case 31:if(2!=(null===(h=this.baseInfo)||void 0===h||null===(f=h.musicGroup)||void 0===f?void 0:f.courseViewType)||0!=this.paymentType||!F||"user"!==this.type){e.next=34;break}return this.$message.error("报名缴费系统收费模式课程费用不得大于0"),e.abrupt("return");case 34:if(null===(y=this.rowDetail)||void 0===y?void 0:y.batchNo){e.next=48;break}return e.prev=35,e.next=38,Object(p["c"])(x);case 38:I=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(I.data),e.next=46;break;case 44:e.prev=44,e.t1=e["catch"](35);case 46:e.next=61;break;case 48:return e.prev=48,x.batchNo=this.rowDetail.batchNo,x.paymentType=null===(j=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===j?void 0:j.paymentType,e.next=53,Object(p["f"])(x);case 53:L=e.sent,this.$listeners.close(),this.$listeners.submited(L.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:V()(this.$route.query,{type:"feeAudit"})}),e.next=61;break;case 59:e.prev=59,e.t2=e["catch"](48);case 61:case"end":return e.stop()}}),e,this,[[14,25,28,31],[35,44],[48,59]])})));function t(){return e.apply(this,arguments)}return t}()}},U=q,B=(s("b4d4"),Object(b["a"])(U,a,i,!1,null,"4e157e4b",null));t["a"]=B.exports},"9c6e":function(e,t,s){},"9deb":function(e,t,s){"use strict";var a=s("1af5"),i=s.n(a);i.a},"9fb2":function(e,t,s){"use strict";s.r(t);var a=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.name},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"}},[s("el-tab-pane",{attrs:{lazy:"",label:"基本信息",name:"1"}},["1"==e.activeIndex?s("baseInfo",{attrs:{teamid:e.teamid}}):e._e()],1),e._v(" "),s("el-tab-pane",{attrs:{lazy:"",label:"声部信息",name:"2"}},["2"==e.activeIndex?s("soundeDetail",{attrs:{teamid:e.teamid}}):e._e()],1),e._v(" "),s("el-tab-pane",{attrs:{lazy:"",label:"预报名信息",name:"5"}},["5"==e.activeIndex?s("forecastName",{attrs:{isedit:"PRE_APPLY"==e.team_status}}):e._e()],1),e._v(" "),"PREPARE"==e.team_status?s("el-tab-pane",{attrs:{lazy:"",label:"班级列表",name:"7"}},["7"==e.activeIndex?s("classSeting",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),"PRE_APPLY"!=e.team_status?s("el-tab-pane",{attrs:{lazy:"",label:"学员缴费信息",name:"3"}},["3"==e.activeIndex?s("resetPayList",{attrs:{isNewGropu:"PRE_BUILD_FEE"==e.team_status}}):e._e()],1):e._e(),e._v(" "),"PRE_APPLY"!=e.team_status?s("el-tab-pane",{attrs:{lazy:"",label:"学校缴费信息",name:"4"}},["4"==e.activeIndex?s("resetPayListSchool",{attrs:{isNewGropu:"PRE_BUILD_FEE"==e.team_status}}):e._e()],1):e._e()],1)],1)])},i=[],r=(s("7f7f"),s("80b0")),n=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)},o=[],c=s("ff14"),l={components:{soundSetCore:c["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()}}},u=l,p=s("2877"),d=Object(p["a"])(u,n,o,!1,null,"417cc28b",null),m=d.exports,h=s("070d"),f=s("f610"),y=s("d80b"),v=s("be2e"),b=s("1c0e"),g={data:function(){return{activeIndex:this.$route.query.checkIndex?this.$route.query.checkIndex:"1",teamid:"",name:"",stepImgs:{PROGRESS:s("7a7c"),PAUSE:s("c34d")},team_status:""}},created:function(){this.activeIndex=null,this.init(),this.activeIndex="1"},activated:function(){this.init()},methods:{init:function(){var e=this.$route.query;this.team_status=this.$route.query.team_status,console.log(this.team_status),this.teamid=e.id,this.name=e.name},handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getname:function(e){this.name=e,localStorage.setItem("teamName",e)}},components:{baseInfo:r["a"],soundeDetail:m,resetPayList:h["a"],resetPayListSchool:f["a"],forecastName:y["default"],signupList:v["default"],classSeting:b["a"]}},_=g,S=(s("8790"),Object(p["a"])(_,a,i,!1,null,"7098e715",null));t["default"]=S.exports},a05b:function(e,t,s){},a6e9:function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return c})),s.d(t,"a",(function(){return l}));var a=s("b775"),i=s("4328"),r=s.n(i),n="/api-web";function o(e){return Object(a["a"])({url:n+"/sysConfig/list",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/sysConfig/update",method:"post",data:r.a.stringify(e)})}function l(e){return Object(a["a"])({url:n+"/sysConfig/queryByParamName",method:"get",params:e})}},aa6f:function(e,t,s){},adb21:function(e,t,s){"use strict";s.d(t,"a",(function(){return o}));var a=s("bc3a"),i=s.n(a),r=(s("4328"),s("5f87")),n=s("3908"),o=function(e,t,s){var a=t.url,o={method:t.method?t.method:"get",headers:{Authorization:Object(r["a"])()},url:a,responseType:"blob"};"post"==o.method?o.data=t.params:o.params=t.params,e.$confirm(s||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),i()(o).then((function(s){var a=new Blob([s.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(s){if(-1!=s.indexOf("code")){var i=JSON.parse(s);e.$message.error(i.msg)}else{var r=URL.createObjectURL(a),n=document.createElement("a"),o=t.fileName||"导出文件.xls";n.href=r,n.setAttribute("download",o),document.body.appendChild(n),n.click()}})),n["a"].endLoading()})).catch((function(t){e.$message.error("下载失败,请联系管理员"),n["a"].endLoading()}))})).catch((function(){}))}},b133:function(e,t,s){"use strict";var a=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":": "}},[s("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[s("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},i=[],r={props:["form"]},n=r,o=(s("4000"),s("2877")),c=Object(o["a"])(n,a,i,!1,null,"55ad3016",null);t["a"]=c.exports},b38b:function(e,t,s){"use strict";s.d(t,"c",(function(){return o})),s.d(t,"a",(function(){return c})),s.d(t,"b",(function(){return l}));var a=s("b775"),i=s("4328"),r=s.n(i),n="/api-web";function o(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:r.a.stringify(e)})}function l(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:r.a.stringify(e)})}},b3d0:function(e,t,s){"use strict";s.r(t);var a=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)},i=[],r=s("db72"),n=s("333d"),o=s("1cc7"),c={components:{pagination:n["a"]},props:["clearStduent","musicGroupPaymentCalenderId","batchNo"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["J"])({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["ic"])(Object(r["a"])(Object(r["a"])({},this.searchForm),{},{batchNo:this.batchNo})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;localStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,s={};s.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["pc"])(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())}}},l=c,u=(s("b5ca"),s("2877")),p=Object(u["a"])(l,a,i,!1,null,"2547eae8",null);t["default"]=p.exports},b4ac:function(e,t,s){"use strict";s.d(t,"a",(function(){return i})),s.d(t,"c",(function(){return r})),s.d(t,"b",(function(){return n}));var a=s("829b"),i=function(e){return Object(a["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},r=function(e){return Object(a["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},n=function(e){return Object(a["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})}},b4d4:function(e,t,s){"use strict";var a=s("e3bd"),i=s.n(a);i.a},b4ed:function(e,t,s){},b5ca:function(e,t,s){"use strict";var a=s("2e3a"),i=s.n(a);i.a},b9e0:function(e,t,s){},ba13:function(e,t,s){},ba30:function(e,t,s){},be2e:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"sigup-container"},[s("div",{staticClass:"topWrap"},[s("div",[s("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[s("div",{staticStyle:{display:"flex","margin-bottom":"15px","font-size":"18px","font-weight":"400"}},[e.applyExpireDate?s("p",{staticStyle:{"margin-right":"10px"}},[e._v("\n 报名截止时间:"+e._s(e._f("formatTimer")(e.applyExpireDate))+"\n ")]):e._e(),e._v(" "),e.paymentExpireDate?s("p",[e._v("\n 缴费截止时间:"+e._s(e._f("formatTimer")(e.paymentExpireDate))+"\n ")]):e._e()])]),e._v(" "),s("div",{staticClass:"btnList"},["APPLY"==e.status?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/openPay",expression:"'musicGroup/openPay'"}],staticClass:"newBand",on:{click:e.payStart}},[e._v("\n 开始缴费\n ")]):e._e(),e._v(" "),"APPLY"==e.status||"PAY"==e.status?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/found",expression:"'musicGroup/found'"}],staticClass:"newBand",on:{click:e.onGoHome}},[e._v("\n 确认开团\n ")]):e._e(),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/extensionPayment",expression:"'musicGroup/extensionPayment'"},{name:"show",rawName:"v-show",value:"PAY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status,expression:"\n status == 'PAY' || status == 'PROGRESS' || status == 'PREPARE'\n "}],staticClass:"newBand",on:{click:function(t){return e.extendTime(!0)}}},[e._v("\n 延长缴费\n ")]),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/extensionApplyExpireDate",expression:"'musicGroup/extensionApplyExpireDate'"},{name:"show",rawName:"v-show",value:"PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status,expression:"\n status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE'\n "}],staticClass:"newBand",on:{click:function(t){return e.extendTime(!1)}}},[e._v("\n 延长报名\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status)&&e.ischeckCanReg,expression:"\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE') &&\n ischeckCanReg\n "}],staticClass:"newBand",on:{click:function(t){return e.onCreateQRCode("payment")}}},[e._v("\n 报名链接\n ")]),e._v(" "),s("div",{staticClass:"newBand",on:{click:function(t){return e.onCreateQRCode("detail")}}},[e._v("缴费详情")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:e.rightList.length>0,expression:"rightList.length > 0"},{name:"permission",rawName:"v-permission",value:"studentRegistration/queryStudentApplyDetailExport",expression:"'studentRegistration/queryStudentApplyDetailExport'"}],staticClass:"newBand",on:{click:e.onDownLoadExecl}},[e._v("\n 报表导出\n ")]),e._v(" "),s("auth",{attrs:{auths:"studentRegistration/queryPreApplyList"}},[s("div",{staticClass:"newBand",staticStyle:{"margin-right":"0"},on:{click:function(t){e.forecastVisible=!0}}},[e._v("\n 预报名名单\n ")])]),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/addMusicGroupRegs",expression:"'musicGroup/addMusicGroupRegs'"},{name:"show",rawName:"v-show",value:("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status)&&e.ischeckCanReg,expression:"\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE') &&\n ischeckCanReg\n "}],staticClass:"newBand",on:{click:function(t){e.mergeVisible=!0}}},[e._v("\n 合并学员\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status)&&e.ischeckCanReg,expression:"\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE') &&\n ischeckCanReg\n "}],staticClass:"newBand",staticStyle:{"background-color":"#f97215",border:"1px solid #f97215"},on:{click:function(t){return e.onCreateQRCode("rePayment")}}},[e._v("\n 报名链接(无乐器)\n ")])],1)]),e._v(" "),s("el-dialog",{attrs:{title:"选择合并乐团",visible:e.mergeVisible,width:"950px"},on:{"update:visible":function(t){e.mergeVisible=t}}},[e.mergeVisible?s("mergeMusic",{staticStyle:{padding:"0 20px"},attrs:{organId:e.organId},on:{close:function(t){e.mergeVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"预报名名单",visible:e.forecastVisible,width:"950px"},on:{"update:visible":function(t){e.forecastVisible=t}}},[e.forecastVisible?s("forecastList",{on:{close:function(t){e.forecastVisible=!1}}}):e._e()],1)],1),e._v(" "),s("div",{staticClass:"searchList"},[s("save-form",{attrs:{inline:!0,model:e.searchFrom},on:{submit:e.search,reset:e.onReset}},[s("el-form-item",[s("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择专业"},model:{value:e.searchFrom.subject,callback:function(t){e.$set(e.searchFrom,"subject","string"===typeof t?t.trim():t)},expression:"searchFrom.subject"}},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-select",{attrs:{filterable:"",placeholder:"请选择是否允许调剂",clearable:""},model:{value:e.searchFrom.isAllowAdjust,callback:function(t){e.$set(e.searchFrom,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchFrom.isAllowAdjust"}},[s("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),s("el-form-item",[s("el-input",{attrs:{placeholder:"请输入用户名或手机号",clearable:""},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name","string"===typeof t?t.trim():t)},expression:"searchFrom.name"}})],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入年级"},model:{value:e.searchFrom.currentGrade,callback:function(t){e.$set(e.searchFrom,"currentGrade","string"===typeof t?t.trim():t)},expression:"searchFrom.currentGrade"}},e._l(e.gradeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"报名缴费"},model:{value:e.searchFrom.paymentStatus,callback:function(t){e.$set(e.searchFrom,"paymentStatus","string"===typeof t?t.trim():t)},expression:"searchFrom.paymentStatus"}},[s("el-option",{attrs:{label:"未开启缴费",value:"0"}}),e._v(" "),s("el-option",{attrs:{label:"开启缴费",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"已缴费",value:"2"}})],1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否回访"},model:{value:e.searchFrom.visited,callback:function(t){e.$set(e.searchFrom,"visited","string"===typeof t?t.trim():t)},expression:"searchFrom.visited"}},[s("el-option",{attrs:{label:"否",value:"false"}}),e._v(" "),s("el-option",{attrs:{label:"是",value:"true"}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"search"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1)],1),e._v(" "),s("div",{staticClass:"sigup-core"},[s("div",{staticClass:"left"},[s("el-table",{staticStyle:{width:"100% !important"},attrs:{data:e.leftList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{label:"乐团声部",prop:"subjectName",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"计划招生",prop:"expectedStudentNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEdit,expression:"!isEdit"}]},[e._v(e._s(t.row.expectedStudentNum))]),e._v(" "),s("el-input",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"isEdit"}],model:{value:t.row.expectedStudentNum,callback:function(s){e.$set(t.row,"expectedStudentNum","string"===typeof s?s.trim():s)},expression:"scope.row.expectedStudentNum"}})],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"已报名",prop:"applyStudentNum",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"已缴费",prop:"payNum",align:"center"}})],1),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/updateExpectedStudentNum",expression:"'musicGroup/updateExpectedStudentNum'"}],staticClass:"btnWrap",staticStyle:{"margin-right":"20px","margin-top":"20px"}},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.isEdit&&("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status),expression:"\n !isEdit &&\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE')\n "}],on:{click:function(t){e.isEdit=!0}}},[e._v("编辑")]),e._v(" "),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"isEdit"}],on:{click:e.saveIsEdit}},[e._v("保存")])],1)],1),e._v(" "),s("div",{staticClass:"right"},[s("el-table",{ref:"multipleTable",attrs:{data:e.rightList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkboxSelect}}),e._v(" "),s("el-table-column",{attrs:{label:"学员姓名",prop:"studentName",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"家长姓名",prop:"parentsName",align:"center"}}),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("dayjsFormat")(t.row.createTime,"YYYY年"))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"年级班级",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.currentGrade+t.row.currentClass)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"性别",prop:"gender",align:"center"},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:{label:"服从调剂",prop:"isAllowAdjust",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("isAllowAdjust")(t.row.isAllowAdjust))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"报名专业",prop:"subjectName",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"调剂专业",prop:"actualSubjectName",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"联系电话",prop:"parentsPhone",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"是否回访",prop:"paymentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.visitNum?"是":"否")+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"报名缴费状态",fixed:"right",prop:"paymentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("paymentStatus")(t.row.paymentStatus))+"\n ")])]}}])}),e._v(" "),"PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status?s("el-table-column",{attrs:{label:"操作",fixed:"right",width:"240",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("auth",{attrs:{auths:"studentRegistration/batchUpdateSubject"}},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:2!=t.row.paymentStatus,expression:"scope.row.paymentStatus != 2"}],attrs:{type:"text"},on:{click:function(s){return e.resetSubject(t.row)}}},[e._v("修改专业")])],1),e._v(" "),s("el-popover",{directives:[{name:"show",rawName:"v-show",value:t.row.remark,expression:"scope.row.remark"}],attrs:{placement:"top-start",title:"备注",width:"200",trigger:"hover",content:t.row.remark}},[s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("备注")])],1),e._v(" "),s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"studentRegistration/queryFeeDetail"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.lookdetail(t.row)}}},[e._v("查看")])],1),e._v(" "),s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"musicGroupQuit/directQuitMusicGroup2"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.quitTeam(t.row)}}},[e._v("退团退费")])],1),e._v(" "),s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"musicGroupQuit/directQuitMusicGroup3"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.quieTeams(t.row)}}},[e._v("退团")])],1),e._v(" "),t.row.visitNum<=0?s("auth",{attrs:{auths:"visit/add/teamSignupList"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.addVisit(t.row)}}},[e._v("新增回访")])],1):e._e(),e._v(" "),s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"subjectChange/getStudentOriginal"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.openChangeVoice(t.row)}}},[e._v("更改声部")])],1)],1)]}}],null,!1,3106520180)}):e._e()],1),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status,expression:"\n status == 'APPLY' || status == 'PROGRESS' || status == 'PREPARE'\n "}],staticStyle:{"margin-top":"10px","margin-bottom":"10px"}},[s("el-button",{on:{click:e.onSelectAll}},[e._v("全选/取消")]),e._v(" "),s("auth",{attrs:{auths:"studentRegistration/openPayment"}},[s("el-button",{staticStyle:{"background-color":"#14928a",border:"1px solid #14928a"},attrs:{type:"primary"},on:{click:e.onPartPayment}},[e._v("开启缴费")])],1)],1),e._v(" "),s("pagination",{attrs:{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:{title:"修改专业",visible:e.subjectVisible,width:"400px"},on:{"update:visible":function(t){e.subjectVisible=t}}},[s("el-form",{attrs:{model:e.maskForm}},[s("el-form-item",{attrs:{label:"选择专业"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.maskForm.subject,callback:function(t){e.$set(e.maskForm,"subject","string"===typeof t?t.trim():t)},expression:"maskForm.subject"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.subjectVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.okReset}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:e.isPay?"延长缴费":"延长报名",visible:e.extendPaymentStatus,"destroy-on-close":"",width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t}}},[s("el-form",{ref:"extendForm",attrs:{model:e.extendForm,rules:e.extendRule}},[e.isPay?s("el-form-item",{attrs:{label:"延长缴费时间",prop:"expireDate"}},[s("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":e.payDate(),placeholder:"选择日期"},model:{value:e.extendForm.expireDate,callback:function(t){e.$set(e.extendForm,"expireDate","string"===typeof t?t.trim():t)},expression:"extendForm.expireDate"}})],1):s("el-form-item",{attrs:{label:"延长报名时间",prop:"expireDate"}},[s("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":e.applyDates,placeholder:"选择日期"},model:{value:e.extendForm.expireDate,callback:function(t){e.$set(e.extendForm,"expireDate","string"===typeof t?t.trim():t)},expression:"extendForm.expireDate"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),(e.isPay,s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm",e.isPay)}}},[e._v("确 定")]))],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"订单详情",visible:e.orderVisible,width:"600px"},on:{"update:visible":function(t){e.orderVisible=t}}},[s("el-form",{attrs:{model:e.orderForm,inline:!0}},[s("el-form-item",{attrs:{label:"学员姓名"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.name,callback:function(t){e.$set(e.orderForm,"name","string"===typeof t?t.trim():t)},expression:"orderForm.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"实缴金额"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.totalAmount,callback:function(t){e.$set(e.orderForm,"totalAmount","string"===typeof t?t.trim():t)},expression:"orderForm.totalAmount"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"实际专业"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.subject,callback:function(t){e.$set(e.orderForm,"subject","string"===typeof t?t.trim():t)},expression:"orderForm.subject"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程费用"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.subjectFee,callback:function(t){e.$set(e.orderForm,"subjectFee","string"===typeof t?t.trim():t)},expression:"orderForm.subjectFee"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"选择乐器"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.axe,callback:function(t){e.$set(e.orderForm,"axe","string"===typeof t?t.trim():t)},expression:"orderForm.axe"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"乐器价格"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.axePrice,callback:function(t){e.$set(e.orderForm,"axePrice","string"===typeof t?t.trim():t)},expression:"orderForm.axePrice"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"教辅组合"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.others,callback:function(t){e.$set(e.orderForm,"others","string"===typeof t?t.trim():t)},expression:"orderForm.others"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"组合价格"}},[s("el-input",{attrs:{disabled:""},model:{value:e.orderForm.othersPrice,callback:function(t){e.$set(e.orderForm,"othersPrice","string"===typeof t?t.trim():t)},expression:"orderForm.othersPrice"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.orderVisible=!1}}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"开始缴费",visible:e.paymentStatus,width:"400px","destroy-on-close":""},on:{"update:visible":function(t){e.paymentStatus=t}}},[s("el-form",{ref:"paymentForm",staticClass:"paymentForm",attrs:{model:e.paymentForm,"label-position":"top",rules:e.paymentRules}},[s("el-form-item",{attrs:{label:"请设置缴费截止日期",prop:"paymentExpireDate"}},[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd","picker-options":e.payDate(),placeholder:"选择日期"},model:{value:e.paymentForm.paymentExpireDate,callback:function(t){e.$set(e.paymentForm,"paymentExpireDate","string"===typeof t?t.trim():t)},expression:"paymentForm.paymentExpireDate"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.paymentStatus=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onStartPayment("paymentForm")}}},[e._v("确 定")])],1)],1),e._v(" "),s("qr-code",{attrs:{title:e.codeTitle,codeUrl:e.qrCodeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),s("el-dialog",{attrs:{title:"退团信息确认","destroy-on-close":!0,width:"640px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[s("el-form",{ref:"quitForm",attrs:{model:e.quitForm,rules:e.quitRules}},[s("el-form-item",{attrs:{label:"退还课程费用",prop:"isRefundCourseFee"}},[s("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundCourseFee,callback:function(t){e.$set(e.quitForm,"isRefundCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundCourseFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundCourseFee,callback:function(t){e.$set(e.quitForm,"isRefundCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundCourseFee"}},[e._v("否")])],1),e._v(" "),s("el-form-item",{attrs:{label:"退还乐器费用",prop:"isRefundInstrumentFee"}},[s("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundInstrumentFee,callback:function(t){e.$set(e.quitForm,"isRefundInstrumentFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundInstrumentFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundInstrumentFee,callback:function(t){e.$set(e.quitForm,"isRefundInstrumentFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundInstrumentFee"}},[e._v("否")])],1),e._v(" "),s("el-form-item",{attrs:{label:"退还教辅费用",prop:"isRefundTeachingAssistantsFee"}},[s("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundTeachingAssistantsFee,callback:function(t){e.$set(e.quitForm,"isRefundTeachingAssistantsFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundTeachingAssistantsFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundTeachingAssistantsFee,callback:function(t){e.$set(e.quitForm,"isRefundTeachingAssistantsFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundTeachingAssistantsFee"}},[e._v("否")])],1),e._v(" "),e.activeRow.hasMaintenance?s("el-form-item",{attrs:{label:"退还乐保费用",prop:"isMaintenanceFee"}},[s("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isMaintenanceFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isMaintenanceFee"}},[e._v("否")])],1):e._e(),e._v(" "),e.quitForm.isMaintenanceFee?s("el-form-item",{attrs:{label:"退还乐保金额",prop:"maintenanceFee"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.maintenanceFee,callback:function(t){e.$set(e.quitForm,"maintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.maintenanceFee"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"退团原因",prop:"reason"}},[s("el-input",{attrs:{type:"textarea"},model:{value:e.quitForm.reason,callback:function(t){e.$set(e.quitForm,"reason","string"===typeof t?t.trim():t)},expression:"quitForm.reason"}})],1)],1),e._v(" "),s("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[s("div",[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[s("div",{staticClass:"popoverWrap"},[s("p",[e._v("乐团退团退费规则:")]),e._v(" "),s("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),s("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),s("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")])]),e._v(" "),s("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),s("div",[s("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1),e._v(" "),s("el-dialog",{attrs:{title:"新增回访",width:"500px","destroy-on-close":"","close-on-click-modal":!1,visible:e.visitVisiable},on:{"update:visible":function(t){e.visitVisiable=t}}},[e.visitVisiable&&e.detail?s("visit",{attrs:{detail:e.detail},on:{close:function(t){e.visitVisiable=!1},submited:e.getList}}):e._e()],1),e._v(" "),e.changeVoiceVisible?s("el-dialog",{attrs:{title:"更改声部",visible:e.changeVoiceVisible,width:"600px"},on:{"update:visible":function(t){e.changeVoiceVisible=t}}},[s("changeVoice",{attrs:{detail:e.rowDetail,musicGroupId:e.id,voiceList:e.leftList},on:{close:e.closeChangeVoice,submited:e.getList,"update:detail":function(t){e.rowDetail=t}}})],1):e._e()],1)},i=[],r=s("db72"),n=s("2d63"),o=(s("ac6a"),s("7f7f"),s("96cf"),s("3b8d")),c=s("333d"),l=s("641c"),u=s("1cc7"),p=s("879d"),d=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"forecastName"},[s("div",{staticClass:"m-core"},[s("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[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.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"isAllowAdjust"}},[s("el-select",{attrs:{clearable:"",placeholder:"是否允许调剂"},model:{value:e.searchForm.isAllowAdjust,callback:function(t){e.$set(e.searchForm,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchForm.isAllowAdjust"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",placeholder:"所选专业"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),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:"userId",label:"学员编号"},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:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.gender?"男":"女")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentGrade)+e._s(t.row.currentClass)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectFirstName",label:"选报声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subjectFirstName?t.row.subjectFirstName:null)+"\n "+e._s(t.row.subjectFirstName||999!=t.row.subjectFirst?null:"听从老师安排")+",\n "+e._s(t.row.subjectSecondName?t.row.subjectSecondName:null)+"\n "+e._s(t.row.subjectSecondName||999!=t.row.subjectSecond?null:"听从老师安排")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isAllowAdjust",label:"是否服从调剂"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isAllowAdjust?"是":"否")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"realName",label:"乐器准备方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.kitPurchaseMethod))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isRegistered",label:"是否已报名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isRegistered?"是":"否")+"\n ")]}}])})],1),e._v(" "),s("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},m=[],h=(s("386d"),s("3078")),f={name:"forecastName",components:{pagination:c["a"]},data:function(){var e=this.$route.query;return{musicGroupId:e.id,searchForm:{name:null,subjectId:null,isAllowAdjust:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.$store.dispatch("setSubjects"),this.getList()},methods:{onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()},search:function(){this.pageInfo.page=1,this.getList()},getList: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,Object(h["f"])(Object(r["a"])(Object(r["a"])({},this.searchForm),{},{musicGroupId:this.musicGroupId,page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.tableList=t.data.rows,this.pageInfo.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},y=f,v=s("2877"),b=Object(v["a"])(y,d,m,!1,null,"51cef9a9",null),g=b.exports,_=s("5137"),S=s("61f7"),w=s("46f6"),k=s("d044"),x=s.n(k),C=s("92e3"),F=s("bc3a"),T=s.n(F),P=s("5f87"),O=s("3908"),I=s("4328"),j=s.n(I),L=s("ec8a"),D=s("e3eb"),G=s.n(D),N=s("6cc5"),A=s("4edf"),E={name:"signupList",components:{pagination:c["a"],qrCode:l["a"],changeVoice:N["a"],mergeMusic:p["a"],forecastList:g,visit:A["a"]},data:function(){return{multipleSelection:[],forecastVisible:!1,isEdit:!1,rowDetail:null,mergeVisible:!1,changeVoiceVisible:!1,subjectVisible:!1,orderVisible:!1,quitVisible:!1,leftList:[],rightList:[],searchFrom:{name:"",subject:"",isAllowAdjust:"",currentGrade:null,paymentStatus:"",visited:""},quitForm:{isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},stepImgs:{APPLY:s("cd89"),PAY:s("0e73")},status:"",id:"",rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]},teamName:"",maskForm:{subject:""},activeId:"",soundList:[],orderForm:{name:"",totalAmount:"",subject:"",subjectFee:"",axe:"",axePrice:"",others:"",othersPrice:""},paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},paymentNum:0,qrcodeStatus:!1,qrcodes:!0,qrcode:null,codeUrl:null,qrcodeStatus2:!1,qrcodes2:!0,qrcode2:null,codeUrl2:null,codeStatus:!1,codeTitle:null,qrCodeUrl:null,organId:"",extendPaymentStatus:!1,extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},quitRules:{isRefundCourseFee:[{required:!0,message:"请选择是否退还课程费用"}],isRefundInstrumentFee:[{required:!0,message:"选择是否退还乐器费用"}],isRefundTeachingAssistantsFee:[{required:!0,message:"选择是否退还教辅费用"}],isMaintenanceFee:[{required:!0,message:"选择是否退还乐保费用"}],maintenanceFee:[{required:!0,message:"请输入退还乐保金额"}],reason:[{required:!0,message:"请填写退团退费原因"}]},applyExpireDate:"",paymentExpireDate:"",activeRow:{hasMaintenance:!1},visitVisiable:!1,visitForm:{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:""},visitChiose:C["F"],visitRules:{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]},isPay:!1,applyDates:this.applyDate(),detail:null,gradeList:[],ischeckCanReg:!1}},created:function(){},mounted:function(){this.init()},activated:function(){this.init()},methods:{permission:function(e){return Object(L["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:return this.status=this.$route.query.team_status,this.id=this.$route.query.id,this.teamName=this.$route.query.name,this.pickerOptions=this.beginDate(new Date),e.prev=4,e.next=7,Object(u["o"])({musicGroupId:this.id});case 7:return e.next=9,e.sent.data;case 9:this.ischeckCanReg=e.sent,console.log(this.ischeckCanReg),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](4),console.log(e.t0);case 16:Object(u["ob"])({musicGroupId:this.id}).then((function(e){var s=e.data;if(200==e.code&&s)for(var a in s)t.gradeList.push({value:a,label:s[a]})})),Object(u["Lb"])({musicGroupId:this.id}).then((function(e){200==e.code&&(t.organId=e.data.musicGroup.organId,t.applyExpireDate=e.data.musicGroup.applyExpireDate,t.paymentExpireDate=e.data.musicGroup.paymentExpireDate)})),Object(u["J"])({musicGroupId:this.id}).then((function(e){200==e.code&&(t.soundList=e.data)})),this.getList();case 20:case"end":return e.stop()}}),e,this,[[4,13]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReset:function(){this.rules.page=1,this.rules.limit=10,this.searchFrom={name:null,subject:null,isAllowAdjust:null,currentGrade:null,paymentStatus:null,visited:null},this.getList()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},payStart:function(){var e=this;this.paymentStatus=!0,Object(u["Lb"])({musicGroupId:this.id}).then((function(t){200==t.code&&(e.applyExpireDate=t.data.musicGroup.applyExpireDate,e.paymentExpireDate=t.data.musicGroup.paymentExpireDate)}))},getList:function(){var e=this,t={musicGroupId:this.id,actualSubjectId:this.searchFrom.subject||null,isAllowAdjust:this.searchFrom.isAllowAdjust||null,name:this.searchFrom.name||null,currentGrade:this.searchFrom.currentGrade||null,paymentStatus:this.searchFrom.paymentStatus||null,visited:this.searchFrom.visited||null,page:this.rules.page,rows:this.rules.limit};return Object(u["Tb"])({musicGroupId:this.id}).then((function(t){200==t.code&&(e.leftList=t.data)})),Object(u["Bb"])(t).then((function(t){if(200==t.code)return t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)})),e.rightList=t.data.rows,e.rules.total=t.data.total,t}))},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(u["Yb"])({musicGroupId:t.id,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}),t.status="PAY",t.paymentExpireDate=t.paymentForm.paymentExpireDate,t.getList())}))}))},onSelectAll:function(){this.$refs.multipleTable.toggleAllSelection()},onPartPayment:function(){var e=this,t=this.multipleSelection;if(t.length<=0)return this.$message.error("您还没有选择学生"),!1;var s=[];t.forEach((function(e){s.push(e.id)})),this.$confirm("是否确认开启缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["ac"])({ids:s.join(",")}).then((function(t){200==t.code?(e.$message.success("开启成功"),e.getList()):e.$message.error(t.msg)}))})).catch((function(){}))},onCreateQRCode:function(e){var t=this.id;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(S["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var s=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(S["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(S["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},onCreateQRCode2:function(){var e=this;this.qrcodeStatus2=!0;var t=this.id,s=this.$route.query.name;setTimeout((function(){document.getElementById("qrcode2").innerHTML="",e.qrcode2=new x.a("qrcode2",{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:x.a.CorrectLevel.H}),e.qrcode2.makeCode(Object(S["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s),e.codeUrl2=Object(S["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s}),500)},onDownLoadExecl:function(){var e=this,t="/api-web/studentRegistration/queryStudentApplyDetailExport",s={musicGroupId:this.$route.query.id,page:1,rows:9999},a={method:"POST",headers:{Authorization:Object(P["a"])()},data:j.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){O["a"].startLoading(),T()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);e.$message.error(a.msg)}else{var i=URL.createObjectURL(s),r=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+".xls";r.href=i,r.setAttribute("download",c),document.body.appendChild(r),r.click()}})),O["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),O["a"].endLoading()}))})).catch((function(){}))},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["Xb"])({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},onClose:function(){var e=this;this.$confirm("您确定停止乐团吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["n"])({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&(e.$message.success("停止成功"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList"}))}))})).catch((function(){}))},handleSelectionChange:function(e){this.multipleSelection=e},resetSubject:function(e){console.log(e),this.activeId=e.studentId,this.maskForm.subject=e.actualSubjectId,this.subjectVisible=!0},okReset:function(){var e=this;this.maskForm.subject?Object(_["r"])({musicGroupId:this.id,userId:this.activeId,subId:this.maskForm.subject}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.subjectVisible=!1,e.maskForm.subject="",Object(u["Tb"])({musicGroupId:e.id}).then((function(t){200==t.code&&(e.leftList=t.data)})),e.getList())})):this.$message.error("请选择调剂专业")},onExtendPayment:function(e,t){var s=this;this.$refs[e].validate((function(e){e&&(t?Object(u["D"])({musicGroupId:s.id,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长缴费成功"),s.extendPaymentStatus=!1,Object(u["Lb"])({musicGroupId:s.id}).then((function(e){200==e.code&&(s.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):s.$message.error(e.msg)})):Object(u["C"])({musicGroupId:s.id,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长报名成功"),s.extendPaymentStatus=!1,Object(u["Lb"])({musicGroupId:s.id}).then((function(e){200==e.code&&(s.applyExpireDate=e.data.musicGroup.applyExpireDate)}))):s.$message.error(e.msg)})))}))},lookdetail:function(e){var t=this;this.orderVisible=!0,this.activeId=e.studentId,this.orderForm.name=e.studentName,this.orderForm.subject=e.subjectName,Object(_["j"])({musicGroupId:this.id,studentId:e.studentId}).then((function(e){if(200==e.code&&e.data){t.orderForm.totalAmount=e.data.totalAmount;var s="",a=0,i="",r=0;for(var n in e.data.goods)"INSTRUMENT"==e.data.goods[n].goodsType?(s+=e.data.goods[n].goodsName+",",a+=parseFloat(e.data.goods[n].musicalFee)):"ACCESSORIES"==e.data.goods[n].goodsType?(i+=e.data.goods[n].goodsName+",",r+=parseFloat(e.data.goods[n].musicalFee)):"COURSE"==e.data.goods[n].goodsType&&(t.orderForm.subjectFee=e.data.goods[n].musicalFee);t.orderForm.others=i.substring(0,i.length-1),t.orderForm.othersPrice=r,t.orderForm.axe=s.substring(0,s.length-1),t.orderForm.axePrice=a}}))},saveIsEdit:function(){this.isEdit=!1,Object(u["sc"])(this.leftList).then((function(e){}))},quitTeam:function(e){this.activeRow=e,this.quitVisible=!0},quieTeams:function(e){var t=this;this.$prompt("请输入退团原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputPattern:/\S/,inputErrorMessage:"请输入退团原因",type:"warning"}).then((function(s){Object(u["b"])({musicGroupId:t.id,userId:e.studentId,reason:s.value,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1}).then((function(e){t.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},200==e.code&&(t.$message.success("退团成功"),t.getList(),t.quitVisible=!1)}))})).catch((function(){}))},chioseType:function(){var e=this;this.$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow;Object(u["b"])({musicGroupId:e.id,userId:t.studentId,reason:e.quitForm.reason,isRefundCourseFee:e.quitForm.isRefundCourseFee,isRefundInstrumentFee:e.quitForm.isRefundInstrumentFee,isRefundTeachingAssistantsFee:e.quitForm.isRefundTeachingAssistantsFee,maintenanceFee:e.quitForm.maintenanceFee}).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))},addVisit:function(e){e.userId=e.studentId,this.detail=e,this.detail.musicGroupId=this.$route.query.id,this.visitVisiable=!0},openChangeVoice:function(e){var t=this;this.getList().then((function(s){var a,i=Object(n["a"])(s.data.rows);try{for(i.s();!(a=i.n()).done;){var o=a.value;o.id===e.id&&(t.rowDetail=Object(r["a"])(Object(r["a"])({},o),{},{userId:o.studentId}),t.changeVoiceVisible=!0)}}catch(c){i.e(c)}finally{i.f()}}))},closeChangeVoice:function(){this.changeVoiceVisible=!1},handleChange:function(e){this.visitForm.type=e[0],this.visitForm.purpose=e[1]},submitAddVisit:function(){var e=this;this.$refs.visitForm.validate((function(t){t&&(e.visitForm.visitType=null,e.visitForm.musicGroupId=e.id,Object(w["a"])(G()(e.visitForm)).then((function(t){200===t.code&&(e.$message.success("新增成功"),e.visitVisiable=!1)})))}))},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return t.getTime()>=e.getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},payDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}},applyDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}},checkboxSelect:function(e){return 0==e.paymentStatus}},watch:{"quitForm.isMaintenanceFee":function(e){this.quitForm.maintenanceFee=e?300:0},orderVisible:function(e){e||(this.orderForm={name:"",totalAmount:"",subject:"",subjectFee:"",axe:"",axePrice:"",others:"",othersPrice:""})},qrcodeStatus:function(e){e||this.qrcode.clear()},qrcodeStatus2:function(e){e||this.qrcode2.clear()},paymentStatus:function(e){e||(this.paymentForm={paymentExpireDate:null})},quitVisible:function(e){e||(this.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},this.$refs["quitForm"].resetFields())}}},R=E,$=(s("1616"),Object(v["a"])(R,a,i,!1,null,"6166f42f",null));t["default"]=$.exports},c34d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACM1JREFUeAHlnH9oVVUcwHtvm27kjwoXKkKspBGRuswEmTO1/pBI8UeWkKV/RGqipMU2Z7HAH5urkQqa+UeUQWiuhH6QYMtyQyxdKKKMyKW2TRtb+CNm7lef72Pn8fbe/fnuefdu88Dl3Ht+fL/f87nnfO859573Qnf5GHp6ekIlJSWPdnV1TQiHw7lcy5ETCoVGYMZwObjuIb5B2k3ia1w2cF7PeT3x6a1bt57j3LcQSrWm4uLibHQs6O7unkUDZ9JguU46IOMqMn4E8JGhQ4d+VVpa2pa0MAcVUwIIo4fcunVrHvqXcsyhQekObHFdBFi3qfQtx77MzMyv0dvpWohNBa2AKisrs1paWl6lt7yF3nE2urVmA+tPBJaPHTv24zVr1vynS7gWQAcOHEirq6tbSU95G8Pu12VcMnIA1Uy9UnzVXs7Fn3kKngHhY6YCZjdHnidLNFcGzgn81KotW7bUeRGdNKA9e/ZkXLhwoQzlb3AkLceL8XZ1gdTNUZaXl/fO4sWLu+zKG+Un1TAe1Q/wqN5Pr5lqJLS/pQHpWFpa2pLNmzc3urXNNaDCwsICFB4Czr1ulQVZHptbOJ7DN51wY0fYTeGioqL5KDk80OBIG7E5m6N6w4YNc9y0Oc1pYZzxchTso/wQp3X6YbkMbHqhoKDg92PHjp11Yp+jISY9BzhfINAxUCfKAyzTwUiYW1ZW9r2dDbaA6DkzmPgdRtBQO2EDLP9fpgGz7XySJaCNGzfmdHR0yDzingHWeEfmiuNmiTKJJUqTWQVTJy3znM7Ozv2DFY4AEcfNmvFzWQm4BsQkcBsCpphVHCzptLGAZdK7Zu0xHGJMBKfRe2qoZJhvJmwAp3cx3KbgtH+Lb0PCEJPuxix51x0ER5jIEJP1ZEKHSBh748ePX0vBV6TWHRbGVVdXN9bU1PRZ3PbpQRUVFXfzSC/xCobu2skj9HniD73KclC/kjJL0dXtoKxlEdpeumPHjj7TmT5v+tra2l5DwihLKTaZAociLzK/qKInVjGPkqfFCptqyWZXlpeXr5fKrBHvQvcn6Opz010KHtvc3LyMOntUveiYE3JNTU0NKBijMt3GCg7OrkrVRV4ISLuIdUOKwlG6gPSSBkgNWVlZD6vXt1HajY2NC73AwcgejFsSC0cMJ62H3rSKWOdwS4AjuuhNn6FnmZx7CDnt7e3PqvpRQCS8rBKTjEOM4clGdTVDMoSj9HKTn1DnHuIoi8gQ4xXAGB7tlxGY8FRLQkkZd7LYqJ6G4WYJh0X1dnSsMdLtJo0bKl9LRjMa/on0IOAsIkEHHLGjCF+wVU7ig8ee5AscsRnI8kpnvpxHAGH4bLnQGHRD8g2OYgCkCJMw3jrMxQyVoTHWBcl3OMKATjMzEjNuJwPopEYw8aK8+KRA4KgGMNl9JAypCSohRXGyPckOzgfcWM8O2arNyJ8owyvXqpCmPLeQnMBZq8k2UzHCxi9AYoRTSP0CTi+13BA+6DSkUj3MYu+SpU+SqUBs4dhzbJVhlfKeo3Riy3F5zI9QCT7Flj3JzAa/4fTaMVIAyc4uv4MpJCNDAoIjE8ZhQQESDo4gBQVHDGSIDY/MpOUioGD5lZY7KGtF+RoaWBBANwLSbvm0EpvEYfOqZDWxvCMPItwMCpAtHEUjYEg3BNB1ZYwfMQ1+X70mdaovKEgM8esCqMGpoV7LCRzesbxpJgeHvJNji1F+EJDQ2SAz6Xojg3SnOYGDLas5iu0gYdtu3faZyKuXxWrKATmFo4y0g0QvfN0PSKzm68Ps3TujDEtF7BaOskEgWb2Z9AMSgE6HJ06cKN+jrynDdMbJwomxwXQyieyeVEJC/tVNmzadD8v2WC5+ijFKy6kGOMqOoCBViwHyFJMJ2Q8S6woa4SiTfIekmEQA8auZgyR4/rYtrUkBHN8h0Qb57HNIFEcAyRY0nKLnXpRCOFFITAFkd39CQLc2nwSL71jitIqSCKBebZ8maHWXIJ+eZdOVYZBJIIpXG2a6SERGoRUkRJna4FQN7YiyiALig/1BBFxxKsSgnHx6PsCjeV58ni44Sq4ZJPQsoUy0caq8mxg4F3Nycr5RdaJfU48ePdo5ffp0AfaMykwiFnkL8/Pzz9TW1kYmoLrhxNiUj71ZbHg6ImkCB3D7OI22Kaas41MAlSAr+nOFyLd5VRtfNIydDRe5vk+lJRl3MMlajMGzOTwPKysbaFA5+fJeXQecZrYFPwiHW0pnH0CSCL31KHtPFfAQy8v3BPke5FlV1aIL2CuZfPbZphP1QUo7BLdT8Ky69hD7BUdM9KyLNv9K2z+Kb6+hYHaETcfh/hxfeLBeA6ebNelUfk92Mr6Nhg4Nx3cJBziKwk/GVxiM1wDaxrzH8OmXMMQUALqbbI6sU9eDNQZOLW3daNY+wyGmCvNjlofYcV+H0/b746IyIaUxcFoZWnkMrctmikx7kFRguf8Hj+sFCJK1yWAL7bRrnhUcabChD4olwS/zGpj4yf9mLCTdssfF1uvP57RFNrovwu/Yrj9tAUlDcdrngHQFwbI9dqBDkp+HL2e+I0sr2+AIkEgB0ikgnZduyaXjerYW+FugHXWL+OzkCI6Y5ro3MNOehdP+krojRcAACm0Mq7kMq1o3Nls6aSNBdM3qjIyMyfSkU0b5/TENW49jV55bONIW14CkkjzdmDtM447s5NJ0w5OUDTjIO6oKbC1gWF1KxhbXQyxeCe9/8kmTzQWPxecFfF2Xnp6+ksf4L17sSKoHxSrkztTwsu1xetN67lbkNWVsfgDnf6NzNTZN8QpHbPfcg2IByA/yWltbV+DE5fv76Ng8H87/4iZVZGdn7123bp08rbQErYCURbxwyuTn1vLzqqWkPc2RkmkBPbYTHYeJ5S+65P/MtM/4UwJIgZK495dEizidxfEUh9c/KWhDxlGOIwyjKqDIkEpZSDmgWMtpTPj27duTeNc0gTufy51P+JvA3vKy602Oa5SL/E0gZSN/E4hfOc25b0/O/wFGCwAhyqFeLQAAAABJRU5ErkJggg=="},c477:function(e,t,s){},c78f:function(e,t,s){},cd32:function(e,t,s){"use strict";var a=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(e.getFullPermission("musicGroupPaymentCalender/auditPass"))?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission(e.getFullPermission("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()},i=[],r=(s("96cf"),s("3b8d")),n=s("ec8a"),o=s("3762"),c=s("b38b"),l={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(r["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(c["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(c["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(n["a"])(e)}}},u=l,p=(s("346a"),s("2877")),d=Object(p["a"])(u,a,i,!1,null,"59fb2832",null);t["a"]=d.exports},cd89:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAADMElEQVRYR82YO2gUYRDH//897y74Ju52KmgsFKwEG43BQrSwSKUoNoKiEYx4p4KWKbRRkkDEVxEsDIpWESwUwSiJIEErwTQ+ULu7CCEG7na5/cuud/HyutvHgbftzsz3Y2a+mfmGCPnp4ppNxVLyAIl2CNtEbiSwyjMjYJrSdxCfJIymE85z3pj6GuYIBhF+fAiJzvXmIYFnCewCEUgPggS8JXRz+Gf+yeEnKNU7r65h5/y6fSWDAwS31jNW67+giYSr7mT/5MtacksC6ThanFazX+KpwB6pRyyI1L3kr/x53kdhMfFFgaa7V1qpZMszgDvrnRHtv8Ztp3Bw1cDv3Hz9BUBlmDcIF6KZsuEVwQE1YTuFjvlQc4C8MNmtpgcTyjMJqNMDKYHDwYH8ezme+pXvqA7fHCA7a94ReDqcUcCQ9no6LjkSVpfQ3VRvvquiNwvk3SaXxosoCRwHyCsNhtz9ldvnA/l1ZoP5MWTezDojFpBfUDXx9Ed+u1enfKBixjwC8mFYd1fk4wL5dqSj6b78Ix/IzlqjAnb/TyACY6neXDu93mSXUp+j5E5jPQSlEnYbCxmzi+TtqN7x9BoSMj9qOkM7az4QeKwZgAgN0c6Y70XuaAog6QPtrJUTYDYFEJBnMWt5XTcdF8gtlSaRWPYOxPIYtooNAQLUk+rN9xTPWVuwDIME2iNCFVnIWjnGDJl3OKFXruucTK+d+uZMW91ycS2st+SFrBFJXdUYfwPu5WTv5K1iZnWbwfSggD2BvfU3qeNf+wVDljTiyjmR7p/6VsxY3QZxVUCAWUlDDSmMS3hgRq57Jd0/eROX1mx2SslBgR21vOUXxka0jlqHEHrtOs6J9MDUF+eCeV3ihUXlVW4d3s9CxholozfXADkyI6nHINqWGgAljLX05dobMn4EAKovUj1+xB3Q6p9WW2LBgOaJxxlhYwEtNsJWDEYd8uMALTnk+1NkxGdQdKA6zyDPcMSHYgSmAA/FitWmekpXoJpq2VDtf//2GRyI+mb7Z0sTRpx1TDVUZWFF8qwUbmFF4q3UwIXV/GytrPSM8koP5EaVV3oEplFe6bkRV3p/ABNMtOh7n8IQAAAAAElFTkSuQmCC"},cef6:function(e,t,s){},d0f4:function(e,t,s){"use strict";var a=s("0964"),i=s.n(a);i.a},d349:function(e,t,s){"use strict";s.d(t,"e",(function(){return l})),s.d(t,"d",(function(){return u})),s.d(t,"f",(function(){return p})),s.d(t,"c",(function(){return d})),s.d(t,"s",(function(){return m})),s.d(t,"D",(function(){return h})),s.d(t,"E",(function(){return f})),s.d(t,"h",(function(){return y})),s.d(t,"l",(function(){return v})),s.d(t,"g",(function(){return b})),s.d(t,"m",(function(){return g})),s.d(t,"v",(function(){return _})),s.d(t,"t",(function(){return S})),s.d(t,"u",(function(){return w})),s.d(t,"i",(function(){return k})),s.d(t,"j",(function(){return x})),s.d(t,"p",(function(){return C})),s.d(t,"k",(function(){return F})),s.d(t,"w",(function(){return T})),s.d(t,"F",(function(){return P})),s.d(t,"n",(function(){return O})),s.d(t,"x",(function(){return I})),s.d(t,"A",(function(){return j})),s.d(t,"y",(function(){return L})),s.d(t,"z",(function(){return D})),s.d(t,"r",(function(){return G})),s.d(t,"b",(function(){return N})),s.d(t,"C",(function(){return A})),s.d(t,"q",(function(){return E})),s.d(t,"B",(function(){return R})),s.d(t,"a",(function(){return $})),s.d(t,"o",(function(){return V}));var a=s("a8db"),i=s("b775"),r=s("829b"),n=s("4328"),o=s.n(n),c="/api-web";function l(e){return Object(i["a"])({url:c+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(i["a"])({url:c+"/organization/add",method:"post",data:o.a.stringify(e)})}function p(e){return Object(i["a"])({url:c+"/organization/update",method:"post",data:o.a.stringify(e)})}function d(e){return Object(i["a"])({url:c+"/area/queryChild",method:"get",params:e})}function m(e){return Object(i["a"])({url:c+"/area/getParentArea/".concat(e.id),method:"get"})}function h(e){return Object(i["a"])({url:c+"/subject/queryPageTree",method:"get",params:e})}function f(e){return Object(i["a"])({url:c+"/subject/upset",method:"post",data:e})}function y(e){return Object(i["a"])({url:c+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(i["a"])({url:c+"/chargeType/upSet",method:"post",data:e})}function b(e){return Object(i["a"])({url:c+"/chargeType/del/".concat(e),method:"post"})}function g(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function k(e){return Object(i["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function x(e){return Object(i["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function C(e){return Object(i["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:e})}function F(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function T(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function P(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function O(e){var t=e.id,s=Object(a["a"])(e,["id"]);return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:s})}function I(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function j(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function D(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function G(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function N(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function A(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function E(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function R(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:e})}function $(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function V(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:e})}},d80b:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"forecastName"},[s("div",{staticClass:"btnList"},[e.isedit?s("auth",{attrs:{auths:["forecastName/forecastLink"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codeStatus=!0}}},[e._v("预报名链接")])],1):e._e(),e._v(" "),e.isedit?s("auth",{attrs:{auths:["musicGroup/sendParentMeetingNotice"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.extendPaymentStatus=!0}}},[e._v("家长会通知")])],1):e._e(),e._v(" "),s("auth",{attrs:{auths:["musicGroup/finishPreApply"]}},[e.isedit?s("el-button",{attrs:{type:"primary"},on:{click:e.onPaymentGroup}},[e._v("乐团缴费")]):e._e()],1),e._v(" "),e.isedit?s("auth",{attrs:{auths:["musicGroup/finishPreApply/item"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onPaymentGroup(1)}}},[e._v("特色乐团缴费")])],1):e._e(),e._v(" "),s("auth",{attrs:{auths:["studentRegistration/preRegisterExport"]}},[s("el-button",{attrs:{type:"primary"},on:{click:e.downloadFile}},[e._v("导出")])],1),e._v(" "),s("auth",{attrs:{auths:["studentRegistration/queryPreApplySubjectList"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subjectVisible=!0}}},[e._v("意向统计")])],1)],1),e._v(" "),s("div",{staticClass:"m-core"},[s("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[s("el-form-item",{attrs:{prop:"name"}},[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.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"isAllowAdjust"}},[s("el-select",{attrs:{clearable:"",placeholder:"是否允许调剂"},model:{value:e.searchForm.isAllowAdjust,callback:function(t){e.$set(e.searchForm,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchForm.isAllowAdjust"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"subjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"所选专业"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),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:"userId",label:"学员编号"},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:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.gender?"男":"女")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentGrade)+e._s(t.row.currentClass)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectFirstName",label:"选报声部1"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subjectFirstName?t.row.subjectFirstName:null)+"\n "+e._s(t.row.subjectFirstName||999!=t.row.subjectFirst?null:"听从老师安排")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectSecondName",label:"选报声部2"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subjectSecondName?t.row.subjectSecondName:null)+"\n "+e._s(t.row.subjectSecondName||999!=t.row.subjectSecond?null:"听从老师安排")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isAllowAdjust",label:"是否服从调剂"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isAllowAdjust?"是":"否")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"realName",label:"乐器准备方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.kitPurchaseMethod))+"\n ")]}}])}),e._v(" "),e.isedit?s("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("auth",{attrs:{auths:["visit/add/teamForecastName"]}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.addVisited(t.row)}}},[e._v("新增回访")])],1)]}}],null,!1,3377006125)}):e._e()],1),e._v(" "),s("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),s("qr-code",{attrs:{title:"预报名二维码",codeUrl:e.codeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),s("el-dialog",{attrs:{title:"发送家长会通知",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t},close:function(t){return e.onClose("extendForm")}}},[s("el-form",{ref:"extendForm",attrs:{"label-width":"110px",model:e.extendForm,rules:e.extendRule}},[s("el-form-item",{attrs:{label:"家长会时间",prop:"meetingDate"}},[s("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime","picker-options":e.applyDates,placeholder:"请选择家长会时间"},model:{value:e.extendForm.meetingDate,callback:function(t){e.$set(e.extendForm,"meetingDate","string"===typeof t?t.trim():t)},expression:"extendForm.meetingDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"家长会地址",prop:"address"}},[s("el-input",{attrs:{placeholder:"请输入家长会地址"},model:{value:e.extendForm.address,callback:function(t){e.$set(e.extendForm,"address",t)},expression:"extendForm.address"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm")}}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"新增回访",width:"600px","destroy-on-close":"","close-on-click-modal":!1,visible:e.visitVisible},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible?s("visit-model",{attrs:{detail:e.visitDetail},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"意向列表",width:"600px","destroy-on-close":"","close-on-click-modal":!1,visible:e.subjectVisible},on:{"update:visible":function(t){e.subjectVisible=t}}},[e.subjectVisible?s("intention-model",{on:{close:function(t){e.subjectVisible=!1}}}):e._e()],1)],1)},i=[],r=(s("96cf"),s("3b8d")),n=s("db72"),o=(s("386d"),s("7f7f"),s("333d")),c=s("641c"),l=s("ec8a"),u=s("61f7"),p=s("adb21"),d=s("4edf"),m=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[s("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"}}),e._v(" "),s("el-table-column",{attrs:{prop:"firstSubjectNum",align:"center",label:"首选人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.firstSubjectNum)+"人\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"secondSubjectNum",align:"center",label:"次选人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.secondSubjectNum)+"人\n ")]}}])})],1)],1)},h=[],f=s("3078"),y={data:function(){var e=this.$route.query;return{list:[],musicGroupId:e.id}},mounted:function(){this.FetchList()},methods:{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.next=2,Object(f["g"])({musicGroupId:this.musicGroupId});case 2:t=e.sent,this.list=t.data;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},v=y,b=(s("9deb"),s("2877")),g=Object(b["a"])(v,m,h,!1,null,"1a2dbaa6",null),_=g.exports,S={name:"forecastName",components:{pagination:o["a"],qrCode:c["a"],visitModel:d["a"],intentionModel:_},props:["isedit"],data:function(){var e=this.$route.query;return{teamName:e.name||null,codeStatus:!1,musicGroupId:e.id,codeUrl:Object(u["d"])()+"/project/forecastName/index.html?musicGroupId="+e.id,searchForm:{name:null,subjectId:null,isAllowAdjust:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},visitVisible:!1,subjectVisible:!1,visitDetail:null,extendPaymentStatus:!1,extendForm:{meetingDate:null,address:null},extendRule:{meetingDate:[{required:!0,message:"请选择家长会时间",trigger:"change"}],address:[{required:!0,message:"请输入家长会地址",trigger:"blur"}]}}},mounted:function(){this.$store.dispatch("setSubjects"),this.getList()},methods:{permission:l["a"],onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()},search:function(){this.pageInfo.page=1,this.getList()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},downloadFile:function(){var e=this.searchForm;Object(p["a"])(this,{url:"/api-web/studentRegistration/preRegisterExport",params:Object(n["a"])(Object(n["a"])({},e),{},{musicGroupId:this.musicGroupId}),fileName:"预报名列表.xls"},"是否确认导出报表?")},getList: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(f["f"])(Object(n["a"])(Object(n["a"])({},this.searchForm),{},{musicGroupId:this.musicGroupId,page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.tableList=t.data.rows,this.pageInfo.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),onPaymentGroup:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.$confirm("您是否确定开启乐团缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(f["d"])({isCheckStudentNum:1!=t,musicGroupId:s.musicGroupId});case 2:e.sent,s.$store.dispatch("delVisitedViews",s.$route),s.$router.push({path:"/teamList"});case 5:case"end":return e.stop()}}),e)}))))}catch(a){}case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addVisited:function(e){this.visitVisible=!0,this.visitDetail={musicGroupId:e.musicGroupId,overview:"",purpose:"",userId:e.userId,type:"",visitTime:"",visitType:"",feedback:"",realName:e.userName}},onClose:function(e){this.$refs[e].resetFields()},onExtendPayment:function(e){var t=this;this.$refs[e].validate(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}return e.prev=1,e.next=4,t.$confirm("您是否确定发送家长会通知?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:return e.next=6,Object(f["h"])(Object(n["a"])(Object(n["a"])({},t.extendForm),{},{musicGroupId:t.musicGroupId}));case 6:t.$message.success("家长会通知已发送"),t.extendPaymentStatus=!1,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](1);case 12:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}())},applyDates:function(){return{firstDayOfWeek:1,disabledDate:function(e){return end?new Date(end).getTime()-864e5>=e.getTime():e.getTime()+864e5<Date.now()}}}}},w=S,k=Object(b["a"])(w,a,i,!1,null,"80905a30",null);t["default"]=k.exports},dabb:function(e,t,s){"use strict";var a=s("8ea54"),i=s.n(a);i.a},df4f:function(e,t,s){e.exports=s.p+"static/img/video_bg.0da9f0a8.png"},e323:function(e,t,s){"use strict";var a=s("c78f"),i=s.n(a);i.a},e3bd:function(e,t,s){},e623:function(e,t,s){"use strict";var a=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:"缴费单号",rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]},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&&e.permission("musicGroup/findMusicGroupSubjectInfo/966")&&e.permission("studentRegistration/getSubjectGoodsAndInfo/967")?s("el-button",{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)},i=[],r=(s("96cf"),s("3b8d")),n=s("1cc7"),o=(s("1672"),s("3908"),s("333d")),c=s("ec8a"),l={props:["batchNo","teamStatus","teamType","payUserType","isNewGropu"],components:{pagination:o["a"]},data:function(){return{list:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{permission:c["a"],getList:function(){var e=Object(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(n["pb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},u=l,p=(s("0c33"),s("2877")),d=Object(p["a"])(u,a,i,!1,null,"7a109218",null);t["a"]=d.exports},eb49:function(e,t,s){"use strict";var a=s("f080"),i=s.n(a);i.a},ebaf:function(e,t,s){"use strict";var a=s("a05b"),i=s.n(a);i.a},f080:function(e,t,s){},f089:function(e,t,s){"use strict";var a=s("054c"),i=s.n(a);i.a},f610:function(e,t,s){"use strict";var a=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("\n 新建学校缴费\n ")]):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("\n 学员缴费设置\n ")]):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")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice: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(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"NO"!=t.row.auditStatus||!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():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:"PRE_BUILD_FEE"==e.team_status?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)},i=[],r=(s("a481"),s("db72")),n=(s("96cf"),s("3b8d")),o=s("333d"),c=s("5a0c"),l=s.n(c),u=s("641c"),p=s("61f7"),d=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=[],w=s("704d"),k={search:"",subjectId:""},x={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(r["a"])({},k),list:[],activeChiose:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{storeState:function(){return w["a"].state}},mounted:function(){this.detail&&(w["a"].dispatch("getFindSound",{data:{musicGroupId:this.detail.musicGroupId}}),this.FetchList())},methods:{handleSelectionChange:function(e){this.activeChiose=e},onReSet:function(){this.searchForm=Object(r["a"])({},k),this.FetchList()},deleteUser:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除选中学员?","提示",{type:"warning"});case 3:return e.next=5,Object(d["z"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["Ub"])(Object(r["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}()}},C=x,F=s("2877"),T=Object(F["a"])(C,_,S,!1,null,"4d351015",null),P=T.exports,O=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)},I=[],j={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(s){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}return a=t.data.id,i=t.form.memo,e.prev=3,e.next=6,Object(f["b"])({id:a,memo:i});case 6:e.sent,t.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.$emit("close")}}},L=j,D=Object(F["a"])(L,O,I,!1,null,"4b111bac",null),G=D.exports,N=s("cd32"),A=s("3762"),E=s("267e"),R=s("ed08"),$=s("92e3"),V={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:N["a"],reviewDetail:A["a"],teamType:"","pay-items":b["a"],schoolPayUserList:P,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:$["v"],getMoneyVisible:!1,baseInfo:null}},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(R["b"])(E["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.team_status=this.$route.query.team_status,e.prev=1,e.next=4,Object(f["a"])({musicGroupId:this.$route.query.id});case 4:e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](1);case 9:Object(d["Lb"])({musicGroupId:this.$route.query.id}).then((function(e){200==e.code&&(t.baseInfo=e.data)})),this.getList();case 11:case"end":return e.stop()}}),e,this,[[1,7]])})));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(p["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,s=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["y"])({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(r["a"])({},e)),this.viewDetail=Object(r["a"])({},e),this.userListVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},removeBatchNo:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(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(d["nc"])({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,a=new Date(s.replace(/-/g,"/"));a=new Date(1e3*(a/1e3+86400*t));var i=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate();return i},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}(),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())}}},M=V,q=(s("dabb"),Object(F["a"])(M,a,i,!1,null,"b2eb872c",null));t["a"]=q.exports},f927:function(e,t,s){"use strict";var a=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:"","label-width":"90px"}},[s("el-row",[s("el-col",{attrs:{span:10}},[e.isOnlyChangeUser?e._e():s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},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(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:10}},[e.isOnlyChangeUser||"HIGH"==e.activeType||"HIGH_ONLINE"==e.activeType||"MUSIC_NETWORK"==e.activeType?e._e():s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"","collapse-tags":"",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(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1)],1),e._v(" "),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:12}},[s("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:e.isOnlyChangeUser?"声部筛选":"声部",prop:"sound",rules:e.isOnlyChangeUser||"MUSIC_NETWORK"==e.activeType?null:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("select-all",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择声部"},model:{value:e.form.sound,callback:function(t){e.$set(e.form,"sound",t)},expression:"form.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(" "),e.showName?e._e():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}],null,!1,3605062098),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)},i=[],r=s("db72"),n=(s("96cf"),s("3b8d")),o=(s("7f7f"),s("6762"),s("2fdb"),s("75fc")),c=s("267e"),l=s("b4ac"),u=s("2ef0"),p={props:["studentList","soundList","activeType","activeListStudent","isOnlyChangeUser","classGroupId","type","teacherList","cooperationList","isStudentRemove"],computed:{data:function(){var e=this;return Object(u["uniqBy"])([].concat(Object(o["a"])(this.studentList),Object(o["a"])(this.activeListStudent)),"userId").filter((function(t){return!e.form.sound.length||(e.form.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:c["genderType"][e.gender]}}))},showName:function(){return!this.isOnlyChangeUser&&"MUSIC_NETWORK"!=this.activeType},canDelUser:function(){return"resetTeam"!==this.$route.query.type||!this.isOnlyChangeUser||this.isStudentRemove}},data:function(){return{sound:[],form:{name:"",coreTeacher:"",assistant:"",sound:[]},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(o["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人"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length<1&&!this.isStudentRemove?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=14;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(),e.$listeners.close(),t.next=15;break;case 14:e.$listeners.submited(Object(r["a"])(Object(r["a"])({seleched:e.seleched},e.form),{},{soundList:e.sound}));case 15:case"end":return t.stop()}}),t,null,[[2,8]])})));return function(e){return t.apply(this,arguments)}}())}}},d=p,m=(s("8f19"),s("2877")),h=Object(m["a"])(d,a,i,!1,null,"791703d4",null);t["a"]=h.exports},fa7d:function(e,t,s){"use strict";s.d(t,"b",(function(){return i})),s.d(t,"c",(function(){return r})),s.d(t,"a",(function(){return n})),s.d(t,"d",(function(){return o}));var a=s("db72"),i=(s("a481"),s("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e);0==s.getDay()&&(t-=6048e5);var a=t-24*(s.getDay()-1)*60*60*1e3,i=new Date(a),r=i.getFullYear(),n=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),c=r+"-"+n+"-"+o;return c}),r=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e),a=7-s.getDay();7==a&&(a=0);var i=t+24*a*60*60*1e3,r=new Date(i),n=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,c=r.getDate()<10?"0"+r.getDate():r.getDate(),l=n+"-"+o+"-"+c;return l},n=function(e){var t=[];switch(e){case"NORMAL":t=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":t=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":t=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":t=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":t=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":t=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}return t},o=function(e,t){e.$router.replace({query:Object(a["a"])(Object(a["a"])({},e.$route.query),t)})}},fc1a:function(e,t,s){"use strict";var a=s("ba30"),i=s.n(a);i.a},ff14:function(e,t,s){"use strict";var a,i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.basdisabled?e._e():s("div",{class:e.isField?"soundBtnWrap":"soundBtnFixed"},["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(" "),e.basdisabled?e._e():s("div",{staticClass:"wall"}),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,a){return s("el-collapse-item",{key:a,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("select-all",{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,a){return s("el-option",{key:a,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(" "),e.soundVisible?s("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[s("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1):e._e()],1)},r=[],n=s("db72"),o=(s("7f7f"),s("6762"),s("2fdb"),s("5df3"),s("4f7f"),s("75fc")),c=(s("456d"),s("28a5"),s("ac6a"),s("bd86")),l=(s("4360"),s("fa7d"),s("1cc7")),u=(s("5a0c"),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){return s("div",{key:t.id,staticClass:"categroy"},[s("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,a){return s("el-checkbox",{key:a,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=[],d={props:["soundList","childSoundList","activeSound"],data:function(){return{chioseSoundNum:"",activeSoundList:this.activeSound||[]}},mounted:function(){console.log(this.soundList)},activated:function(){},methods:{generates:function(){this.$emit("chioseSound",this.activeSoundList)},changeCheck:function(){}}},m=d,h=(s("e323"),s("2877")),f=Object(h["a"])(m,u,p,!1,null,"6021a80f",null),y=f.exports,v=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e._l(e.item.chioseMusic,(function(t,a){return s("div",{key:a},[s("div",{staticClass:"chioseMusic"},[s("div",{staticClass:"flexRow"},[s("p",{staticClass:"title"},[e._v("可选乐器"+e._s(a+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,a){return s("el-option",{key:a,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)},b=[],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,a){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,a){s.musical==e.musical&&t.item.chioseMusic.splice(a,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)}}},_=g,S=(s("eb49"),Object(h["a"])(_,v,b,!1,null,"15b4cece",null)),w=S.exports,k=s("2ef0"),x=(s("6612"),a={components:{chioseSoundList:y,chioseMusic:w},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(c["a"])(e,"soundList",[]),Object(c["a"])(e,"childSoundList",[]),Object(c["a"])(e,"teamStatus",""),Object(c["a"])(e,"checkList",[]),Object(c["a"])(e,"basdisabled",!1),Object(c["a"])(e,"teamid",""),Object(c["a"])(e,"isField",!0),e},mounted:function(){var e=this;this.$route.query.id&&(this.teamid=this.$route.query.id),window.addEventListener("scroll",this.getScroll),this.$nextTick((function(t){e.init()}))},deactivated:function(){window.removeEventListener("scroll",this.getScroll)},beforeDestroy:function(){this.setStore(),window.removeEventListener("scroll",this.getScroll)},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type||!this.teamid&&this.activeSoundList.length<1)&&this.init(),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1}},Object(c["a"])(a,"deactivated",(function(){this.activeSoundList=[]})),Object(c["a"])(a,"methods",{setStore:function(){localStorage.setItem("".concat(this.teamid,"sound"),JSON.stringify(this.activeSoundList))},init:function(){var e=this;this.topfor=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")))||this.$store.getters.topinfo,this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1;var t=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"sound")));Object(l["zb"])({tenantId:1}).then((function(s){var a;if(200==s.code)if(e.soundList=s.data.rows,t&&(null===(a=t[0])||void 0===a?void 0:a.id)){e.activeSoundList=t;var i=[];e.activeSoundList.forEach((function(e){i.push(e.id)})),e.chioseActiveSound=i,e.activeSound=i,e.changeActiveSound(i.join(","))}else"newTeam"==e.teamStatus?e.getDefaultSubject():(e.teamid=e.$route.query.id,e.teamid&&Object(l["H"])({musicGroupId:e.teamid}).then((function(t){var s,a;if(200==t.code)if((null===(s=t.data)||void 0===s||null===(a=s.musicGroupSubjectPlans)||void 0===a?void 0:a.length)>0){var i,r=[];e.activeSoundList=null===(i=t.data)||void 0===i?void 0:i.musicGroupSubjectPlans.map((function(e){return r.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),e.activeSound=r,e.chioseActiveSound=r,e.changeActiveSound(r.join(",")),t.data.musicGroupSubjectGoodsGroups.forEach((function(t){var s=Object(k["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 a=Object.keys(JSON.parse(t.kitGroupPurchaseTypeJson));e.activeSoundList[s].chioseMusic.push({musical:parseInt(t.goodsIdList),type:a,groupPrice:t.price,borrowPrice:t.depositFee,groupRemissionCourseFee:Boolean(t.groupRemissionCourseFee)})}}))}else e.getDefaultSubject()})))})),Object(l["Eb"])({tenantId:1}).then((function(t){200==t.code&&(e.childSoundList=t.data)}))},getDefaultSubject:function(){var e=this,t=this.topfor.type,s=this.topfor.section;Object(l["db"])({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(","))}}))},lookCheck:function(e){this.checkList=Object(o["a"])(new Set(e))},chioseSound:function(e){this.activeSound=Object(o["a"])(new Set(e));var t=[];for(var s in this.childSoundList)this.activeSound.includes(this.childSoundList[s].id)&&t.push(this.initSound(this.childSoundList[s]));var a=this.activeSoundList.map((function(e){return e.id}));for(var i in t){var r,n=a.indexOf(null===(r=t[i])||void 0===r?void 0:r.id);n>-1&&(t[i]=this.activeSoundList[n])}this.activeSoundList=t;var c=[];this.activeSoundList.forEach((function(e){c.push(e.id)})),this.activeSound=c,this.chioseActiveSound=c,this.changeActiveSound(c.join(",")),this.soundVisible=!1},initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(e){var t=this;Object(l["Fb"])({subjectIds:e,chargeTypeId:this.topfor.type,musicGroupId:this.teamid}).then((function(e){if(200==e.code&&e.data){var s=Object.keys(e.data);t.activeSoundList.forEach((function(t){if(-1!=s.indexOf(t.id+"")){var a=[],i=[];e.data[t.id].forEach((function(e){"INSTRUMENT"==e.type?a.push(e):"ACCESSORIES"==e.type&&i.push(e)})),t.goodsList=a,t.markList=i}}))}}))},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 a;return e.expectedStudentNum?(null===(a=e.chioseMusic[0])||void 0===a?void 0:a.musical)?void e.chioseMusic.forEach((function(a){-1!=a.type.indexOf("LEASE")&&(!a.borrowPrice||parseFloat(a.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 a={musicGroupSubjectGoodsGroups:[],musicGroupSubjectPlans:[]};this.activeSoundList.forEach((function(e){var t={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};a.musicGroupSubjectPlans.push(t),e.chioseMusic.forEach((function(t){var s,i=null,r=t.borrowPrice,n=t.groupPrice;s=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(k["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=o&&(i=e.goodsList[o]);var c={};if(t.type.forEach((function(e){c[e]=0})),c=JSON.stringify(c),i){var l={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:i.name,kitGroupPurchaseTypeJson:c,depositFee:r,price:n,groupRemissionCourseFee:s};a.musicGroupSubjectGoodsGroups.push(l)}})),e.markChioseList.forEach((function(t){var s=Object(k["findIndex"])(e.markList,(function(e){return e.id==t})),i=null;if(-1!=s&&(i=e.markList[s]),i){var r={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:i.name,price:i.groupPurchasePrice};a.musicGroupSubjectGoodsGroups.push(r)}}))})),"newTeam"==this.teamStatus||(a.musicGroupId=this.teamid,a.musicGroupStatus=e?"AUDIT":"DRAFT",2==e?this.$confirm("是否提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["Qc"])(a).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))})).catch((function(){})):Object(l["Qc"])(a).then((function(s){if(200==s.code)if(t.setStore(),1==e){t.$message.success("已提交审核");var a=t.$route.query;t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList",query:Object(n["a"])({},a)})}else t.$message.success("保存成功")})))}}},deleteRow:function(){var e=this;this.checkList.length<1?this.$message.error("请至少勾选一个"):this.$confirm("确定删除选中声部?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var t=0;t<e.activeSoundList.length;t++){var s=e.checkList.indexOf(e.activeSoundList[t].id);-1!=s&&(e.activeSoundList.splice(t,1),e.activeSound.splice(t,1),t--)}e.checkList=[],e.$message.success("删除成功")})).catch((function(){}))},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,s){e.checkList.push(t.id)}))},getScroll:function(){this.scrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,this.scrollTop&&this.scrollTop>=210?this.isField=!1:this.isField=!0}}),Object(c["a"])(a,"watch",{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,s=0;this.activeSoundList;if(e){var a=0;if(e.length>0)for(var i in e){var r;a+=parseInt(null===(r=e[i])||void 0===r?void 0:r.expectedStudentNum)||0}t=e.length,s=a,this.$emit("getNumber",t,s)}}}}),a),C=x,F=(s("8fa7"),Object(h["a"])(C,i,r,!1,null,"370e921d",null));t["a"]=F.exports}}]);