chunk-c9d5d3c6.27c6732f.js 510 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c9d5d3c6","chunk-770fa607","chunk-398e6ef3","chunk-9fafe858","chunk-c8c7f280"],{"027d":function(e,t,s){},"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"),l=s("6612"),c=s.n(l),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 c()(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()}}}}),d=u,m=(s("1139"),s("2877")),p=Object(m["a"])(d,a,i,!1,null,"a10777a0",null);t["a"]=p.exports},"054c":function(e,t,s){},"05aa":function(e,t,s){"use strict";s("027d")},"05f5":function(e,t,s){"use strict";s("5dd4")},"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("1da1")),n=s("333d"),o=s("5a0c"),l=s.n(o),c=s("641c"),u=s("61f7"),d=s("1cc7"),m=s("b38b"),p=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"},nativeOn:{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:"#808080"}},[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:"#808080"}},[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:"#808080","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&&"GROUP"==t.kitType?a("el-row",{staticStyle:{padding:"8px 0px 8px 24px","border-top":"1px solid rgb(240, 240, 240)"}},[a("el-col",{staticStyle:{"font-size":"14px",color:"#1A1A1A","padding-bottom":"3px"},attrs:{span:24}},[e._v("赠送辅件")]),e._v(" "),a("el-col",[a("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v("\n "+e._s(t.childGoodsNames)+"\n ")])])],1):e._e()],1)}))],2)})),0):e._e(),e._v(" "),e.accessOries.length>0&&e.accessIsShowStatus?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:"#808080","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:"#808080"}},[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("c5f6"),s("456d"),s("7f7f"),s("ac6a"),s("ec8a")),x={0:"按月",1:"按学期",2:"一次性"},T={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(d["Rb"])().then((function(e){var t=e.data;200==e.code&&(s.chargeTypeList=t.rows||[])}));case 3:return e.next=5,Object(d["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=l()(a.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+l()(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):{},a=function(a){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});var r=[];i.childGoodsList&&i.childGoodsList.length>0&&(i.childGoodsList.forEach((function(e){"INSTRUMENT"!=e.type&&"OTHER"!=e.type&&r.push(e.name)})),i.childGoodsNames=r.join("、")),s.instrumentResult.push(i),o.push(i)};for(var i in t)a(i)}else"ACCESSORIES"==e.type&&(e.checked=!0,s.accessOries.push(e))})),s.instrumentResult.length>0){var c={id:-1,kitType:"owned",name:"自备乐器",price:0,marketPrice:0,checked:!1};o.push(c),s.instrumentResult.push(c);var u=s.groupBy(o,(function(e){return[e.kitType]}));console.log(u),s.instrumentResultList=u,s.chargeTypeList.forEach((function(e){e.id==a.musicGroup.chargeTypeId&&(s.chargeTypeName=e.description)}));var d=!1;s.accessOries.forEach((function(e){e.childGoodsList&&e.childGoodsList.length>0&&e.childGoodsList.forEach((function(e){76==e.id&&(d=!0)})),76==e.goodsIdList&&(d=!0)})),s.accessStatus=d,23==s.subjectId&&(s.accessStatus=!0,d=!0),s.instrumentResult.forEach((function(e){e.checked&&"owned"!=e.kitType&&!d&&(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={},c=[],u=0,d=[],m=0,p=0,h=0,f=0,y=0,v=0,b="",g=this.musicGroupSubject,_=this.courseInfo;if(2==this.courseViewType&&this.toolsPackage[0].isStatus&&(p+=parseFloat(this.cloudTeacherFee),i+=parseFloat(this.cloudTeacherFee)),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&&(p+=parseFloat(t.courseCurrentPrice)),t.id>0&&c.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&&(p=parseFloat(p-v)))})),this.leBaoStatus&&this.buyMaintenance&&(i+=300,a+=300,t.push({name:"乐器保养",time:l()().format("YYYY/MM/DD")+"~"+l()().add(365,"day").format("YYYY/MM/DD"),type:"包年",price:300})),a+=parseFloat(m+p),parseFloat(m+p)>0&&0==this.courseViewType&&t.unshift({name:"乐团课",type:x[this.paymentPattern],price:Number((m+p).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 T=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 C=Number((a-this.balance).toFixed(2));this.needPrice=C>0?C:0}else this.needPrice=Number(a.toFixed(2));this.buyList=t,this.orderInfo={amount:Number(a.toFixed(2)),marketPrice:Number(i.toFixed(2)),groupPurchasePrice:T,couponPrice:u,goodsGroupIds:o,goodsIds:d.join(","),contractGoodsIds:b,courseKeys:c,musicClassFee:p,musicMarketClassFee:h,accessMarketPrice:y,accessPrice:f,goodsPrice:r,goodsMarketPrice:n}},permission:function(e){return Object(k["a"])(e)}}},C=T,F=(s("7f99"),s("2877")),I=Object(F["a"])(C,S,w,!1,null,"71799c66",null),O=I.exports,L=s("267e"),P=s("ed08"),j=s("92e3"),D={props:["isNewGropu"],components:{pagination:n["a"],setStudentFee:f["default"],userPayForm:y["a"],schoolPayForm:b["a"],QrCode:c["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:j["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(p["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(P["b"])(L["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(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(m["c"])({page:this.rules.page,rows:this.rules.limit,search:t,payUserType:"STUDENT",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id+"&id="+this.$route.query.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){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(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},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},removeBatchNo:function(){var e=Object(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(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(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(d["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,$=(s("a249"),Object(F["a"])(G,a,i,!1,null,"8aa5ea4e",null));t["a"]=$.exports},"078c":function(e,t,s){},"0964":function(e,t,s){},"0c33":function(e,t,s){"use strict";s("ba13")},"0cc3":function(e,t,s){"use strict";s("dab9")},"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"},"0ede":function(e,t,s){"use strict";s("8b0a")},"10cc":function(e,t,s){},"111e":function(e,t,s){},1139:function(e,t,s){"use strict";s("44d1")},1452:function(e,t,s){"use strict";s("6243")},"145f":function(e,t,s){"use strict";s("e4e7")},"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})}},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 l})),s.d(t,"d",(function(){return c})),s.d(t,"h",(function(){return u})),s.d(t,"b",(function(){return d})),s.d(t,"i",(function(){return m}));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"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},c=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"})},d=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},m=function(e){return Object(a["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})}},"1a3f":function(e,t,s){},"1a92":function(e,t,s){},"1aa8":function(e,t,s){"use strict";s("7619")},"1af5":function(e,t,s){},"250d":function(e,t,s){"use strict";s("6f81")},2666:function(e,t,s){"use strict";s("1a3f")},"272e":function(e,t,s){"use strict";s("da35")},"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 l})),s.d(t,"f",(function(){return c})),s.d(t,"g",(function(){return u})),s.d(t,"h",(function(){return d}));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"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=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"})},d=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";s("67c9")},3683:function(e,t,s){"use strict";s("2a71")},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("1da1")),n=(s("7f7f"),s("5530")),o=s("2b0e"),l=s("6612"),c=s.n(l),u=s("1672"),d=s("ddec"),m=s("837c");o["default"].use(d["a"]);var p={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],musicGroupPaymentCalenderStudentDetails:[],simpleUserDto:[],musicGroupPaymentCalenders:[],studentNum:0,phone:"",username:""},h={components:{Item:m["a"]},props:["detail"],data:function(){return Object(n["a"])({payVisible:!1},p)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},methods:{numeral:c.a,init:function(){var e=Object(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,p)p.hasOwnProperty(s)&&(this[s]=t.data[s]);e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},f=h,y=(s("3683"),s("2877")),v=Object(y["a"])(f,a,i,!1,null,"c199f174",null);t["a"]=v.exports},"3c3d":function(e,t,s){},"3de3":function(e,t,s){"use strict";s.d(t,"l",(function(){return l})),s.d(t,"m",(function(){return c})),s.d(t,"n",(function(){return u})),s.d(t,"r",(function(){return d})),s.d(t,"q",(function(){return m})),s.d(t,"t",(function(){return p})),s.d(t,"a",(function(){return h})),s.d(t,"u",(function(){return f})),s.d(t,"v",(function(){return y})),s.d(t,"z",(function(){return v})),s.d(t,"s",(function(){return b})),s.d(t,"w",(function(){return g})),s.d(t,"g",(function(){return _})),s.d(t,"d",(function(){return S})),s.d(t,"p",(function(){return w})),s.d(t,"e",(function(){return k})),s.d(t,"j",(function(){return x})),s.d(t,"y",(function(){return T})),s.d(t,"o",(function(){return C})),s.d(t,"f",(function(){return F})),s.d(t,"k",(function(){return I})),s.d(t,"i",(function(){return O})),s.d(t,"h",(function(){return L})),s.d(t,"b",(function(){return P})),s.d(t,"x",(function(){return j})),s.d(t,"c",(function(){return D}));var a=s("b775"),i=s("829b"),r=s("4328"),n=s.n(r),o="/api-web";function l(e){return Object(a["a"])({url:o+"/order/queryPage",method:"get",params:e})}function c(e){return Object(a["a"])({url:o+"/order/queryPage1",method:"get",params:e})}function u(e){return Object(a["a"])({url:o+"/order/queryPage2",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/routeOrder/finance",method:"get",params:e})}function m(e){return Object(a["a"])({url:o+"/routeOrder/add",method:"post",headers:{"Content-Type":"application/json"},data:e})}function p(e){return Object(a["a"])({url:o+"/studentRefunds/queryPage",method:"get",params:e})}function h(e){return Object(a["a"])({url:o+"/vipGroupManage/applyRefundAudit",method:"post",data:n.a.stringify(e)})}function f(e){return Object(a["a"])({url:o+"/studentWithdraw/queryPage",method:"get",params:e})}function y(e){return Object(a["a"])({url:o+"/studentWithdraw/confirm",method:"post",data:n.a.stringify(e)})}function v(e){return Object(a["a"])({url:o+"/order/verifyMusicalList",method:"GET",params:e})}function b(e){return Object(a["a"])({url:o+"/studentRecharge/queryPage",method:"GET",params:e})}function g(e){return Object(a["a"])({url:o+"/tenantPaymentOrder/queryPage",method:"GET",params:e})}function _(e){return Object(a["a"])({url:o+"/order/getOrderStatus",method:"GET",params:e})}function S(e){return Object(a["a"])({url:o+"/financialExpenditure/queryPage",method:"GET",params:e})}function w(e){return Object(a["a"])({url:o+"/financialExpenditure/batchDel",method:"POST",params:e})}function k(e){return Object(a["a"])({url:o+"/operatingReport/queryPage",method:"GET",params:e})}function x(e){return Object(a["a"])({url:o+"/sellOrder/queryPage",method:"GET",params:e})}function T(e){return Object(a["a"])({url:o+"/sellOrder/update",method:"POST",params:e})}function C(e){return Object(i["a"])({url:o+"/sellOrder/refund",method:"POST",params:e,hint:!0})}function F(e){return Object(a["a"])({url:o+"/routeOrder/getOrderInfo",method:"GET",params:e})}function I(e){return Object(a["a"])({url:o+"/routeOrder/delete",method:"POST",data:n.a.stringify(e)})}function O(e){return Object(a["a"])({url:o+"/routeOrder/queryPage",method:"get",params:e})}function L(e){return Object(a["a"])({url:o+"/routeOrder/query",method:"get",params:e})}function P(e){return Object(a["a"])({url:o+"/routeOrder/auditOutOrder",method:"post",data:n.a.stringify(e)})}function j(e){return Object(a["a"])({url:o+"/routeOrder/update",method:"post",data:e,headers:{"Content-Type":"application/json"}})}function D(e){return Object(i["a"])({url:o+"/cooperationOrgan/getCalenders",method:"get",params:e})}},4e3:function(e,t,s){"use strict";s("3004")},"44d1":function(e,t,s){},"46f7":function(e,t,s){},"4aad":function(e,t,s){},5137:function(e,t,s){"use strict";s.d(t,"n",(function(){return o})),s.d(t,"e",(function(){return l})),s.d(t,"d",(function(){return c})),s.d(t,"f",(function(){return u})),s.d(t,"t",(function(){return d})),s.d(t,"o",(function(){return m})),s.d(t,"s",(function(){return p})),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 T})),s.d(t,"p",(function(){return C})),s.d(t,"w",(function(){return F})),s.d(t,"c",(function(){return I})),s.d(t,"x",(function(){return O})),s.d(t,"y",(function(){return L})),s.d(t,"h",(function(){return P}));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 l(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(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 d(e){return Object(a["a"])({url:n+"/studentWithdraw/queryPage",method:"get",params:e})}function m(e){return Object(a["a"])({url:n+"/studentManage/queryStudentPayment",method:"get",params:e})}function p(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 T(e){return Object(a["a"])({url:n+"/studentManage/queryUserByPhone",method:"get",params:e})}function C(e){return Object(a["a"])({url:n+"/studentManage/register",method:"post",data:r.a.stringify(e)})}function F(e){return Object(a["a"])({url:n+"/studentManage/studentUpdate",method:"post",data:r.a.stringify(e)})}function I(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 L(e){return Object(a["a"])({url:n+"/userCoursesAccount/queryPage",method:"get",params:e})}function P(e){return Object(a["a"])({url:n+"/sysUserContracts/getLatest",method:"get",params:e})}},"51c1":function(e,t,s){"use strict";var a,i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"stu-container"},["PROGRESS"==e.team_status?s("div",{staticClass:"studentListWrap"},[s("div",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/insertStudent",expression:"'studentRegistration/insertStudent'"}],staticClass:"newBand",on:{click:e.createStudentFrom}},[e._v("\n 新增学员\n ")])]):e._e(),e._v(" "),s("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":e.saveKey,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[s("el-form-item",{attrs:{prop:"search"}},[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",{attrs:{prop:"studentStatus"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"学员状态"},model:{value:e.searchForm.studentStatus,callback:function(t){e.$set(e.searchForm,"studentStatus","string"===typeof t?t.trim():t)},expression:"searchForm.studentStatus"}},[s("el-option",{attrs:{label:"在读",value:"NORMAL"}}),e._v(" "),s("el-option",{attrs:{label:"请假",value:"LEAVE"}}),e._v(" "),s("el-option",{attrs:{label:"退团",value:"QUIT"}}),e._v(" "),s("el-option",{attrs:{label:"报名",value:"APPLY"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"createYear"}},[s("el-date-picker",{attrs:{type:"year","value-format":"yyyy",placeholder:"选择入团年份"},model:{value:e.searchForm.createYear,callback:function(t){e.$set(e.searchForm,"createYear",t)},expression:"searchForm.createYear"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"currentGrade"}},[s("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入年级"},model:{value:e.searchForm.currentGrade,callback:function(t){e.$set(e.searchForm,"currentGrade","string"===typeof t?t.trim():t)},expression:"searchForm.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",{attrs:{prop:"classGroupId"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择班级"},model:{value:e.searchForm.classGroupId,callback:function(t){e.$set(e.searchForm,"classGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.classGroupId"}},e._l(e.classList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"major"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"所选专业"},model:{value:e.searchForm.major,callback:function(t){e.$set(e.searchForm,"major","string"===typeof t?t.trim():t)},expression:"searchForm.major"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"isPay"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"报名缴费"},model:{value:e.searchForm.isPay,callback:function(t){e.$set(e.searchForm,"isPay","string"===typeof t?t.trim():t)},expression:"searchForm.isPay"}},[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:{prop:"oweFlag"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否欠费"},model:{value:e.searchForm.oweFlag,callback:function(t){e.$set(e.searchForm,"oweFlag","string"===typeof t?t.trim():t)},expression:"searchForm.oweFlag"}},[s("el-option",{attrs:{label:"否",value:"0"}}),e._v(" "),s("el-option",{attrs:{label:"是",value:"1"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"isActive"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否激活"},model:{value:e.searchForm.isActive,callback:function(t){e.$set(e.searchForm,"isActive","string"===typeof t?t.trim():t)},expression:"searchForm.isActive"}},[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:"hasCourse"}},[s("el-select",{attrs:{clearable:"",placeholder:"VIP/网管是否有课"},model:{value:e.searchForm.hasCourse,callback:function(t){e.$set(e.searchForm,"hasCourse","string"===typeof t?t.trim():t)},expression:"searchForm.hasCourse"}},[s("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"carePackage"}},[s("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"关心包"},model:{value:e.searchForm.carePackage,callback:function(t){e.$set(e.searchForm,"carePackage","string"===typeof t?t.trim():t)},expression:"searchForm.carePackage"}},[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:{prop:"comeOnPackage"}},[s("el-select",{staticClass:"multiple",attrs:{clearable:"",placeholder:"加油包"},model:{value:e.searchForm.comeOnPackage,callback:function(t){e.$set(e.searchForm,"comeOnPackage","string"===typeof t?t.trim():t)},expression:"searchForm.comeOnPackage"}},[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-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")]),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/musicGroupStudent",expression:"'export/musicGroupStudent'"}],attrs:{type:"primary"},on:{click:e.onMusicGroupExport}},[e._v("导出")])],1)],1),e._v(" "),s("div",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[e._v("\n 在读人数:"+e._s(e.studentListInfo.studying)),s("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v(" 退团人数:"+e._s(e.studentListInfo.quit)),s("i",{staticStyle:{width:"10px",display:"inline-block"}}),e._v(" VIP&网管转化率:"+e._s(e.studentListInfo.courseRate)),s("i",{staticStyle:{width:"10px",display:"inline-block"}})]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.tableList,"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:"学员编号",width:"120px;",prop:"userId"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.userId)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"学员姓名",width:"120px;",prop:"realName"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.realName)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"gender",width:"50px;",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.phone)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"入团年份"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("dayjsFormat")(t.row.registerTime,"YYYY年")))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.currentGrade+t.row.currentClass))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"报名专业",prop:"subjectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.regSubjectName)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"入团专业",prop:"subjectName"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.subjectName)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentStatus",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("musicGroupStudentType")(t.row.studentStatus)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"报名缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("paymentStatus")(t.row.paymentStatus)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"是否激活"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.isActive?"是":"否"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"VIP/网管是否有课"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.hasCourse?"是":"否"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"关心包"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentPackage")(t.row.carePackage)))]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"加油包"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentPackage")(t.row.comeOnPackage)))]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"欠费金额(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",{class:[t.row.noPaymentAmount>0?"error":null]},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.noPaymentAmount))+"\n "),e._v(" "),s("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/queryPage/studentList",router:["/teamLists"]}},[s("i",{staticClass:"el-icon-view",staticStyle:{color:"#14928a","font-size":"17px"},attrs:{title:"缴费记录"},on:{click:function(s){return e.onPaymentDetail(t.row)}}})])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"退团原因",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",[s("Tooltip",{attrs:{content:e.row.quitReason}})],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",fixed:"right",width:"360px;",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e.permission("studentManage/queryStudentClassGroup")&&"QUIT"!=t.row.studentStatus?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.lookClass(t.row)}}},[e._v("查看班级")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/add")&&"APPLY"==t.row.studentStatus&&"2"!=t.row.paymentStatus&&"PROGRESS"==e.team_status?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.addPay(t.row)}}},[e._v("添加缴费")]):e._e(),e._v(" "),e.permission("musicGroupQuit/directQuitMusicGroup/3852")&&"QUIT"!=t.row.studentStatus?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.quieTeamMask(t.row)}}},[e._v("退团")]):e._e(),e._v(" "),e.permission("musicGroupQuit/directQuitMusicGroup/3851")&&"QUIT"!=t.row.studentStatus?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.quieTeam(t.row)}}},[e._v("退团不退费")]):e._e(),e._v(" "),e.permission("visit/add/teamStudentList")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.addVisit(t.row)}}},[e._v("新增回访")]):e._e(),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)],1)]}}])})],1),e._v(" "),s("pagination",{attrs:{"save-key":e.saveKey,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",{staticClass:"studentInfo",attrs:{title:"新增学员",width:"700px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[s("el-form",{ref:"maskForm",attrs:{model:e.maskForm,"label-position":"right","label-width":"120px",rules:e.maskRules,inline:!0}},[s("el-alert",{staticClass:"alert",attrs:{title:"基本信息",closable:!1,type:"info"}}),e._v(" "),s("el-form-item",{attrs:{label:"联系电话",prop:"phone",rules:[{required:!0,message:"请输入手机号"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[s("el-input",{attrs:{placeholder:"联系电话"},on:{blur:function(t){return e.checkPhone(e.maskForm.phone)}},model:{value:e.maskForm.phone,callback:function(t){e.$set(e.maskForm,"phone","string"===typeof t?t.trim():t)},expression:"maskForm.phone"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"学员姓名",prop:"studentName"}},[s("el-input",{attrs:{placeholder:"学员姓名"},model:{value:e.maskForm.studentName,callback:function(t){e.$set(e.maskForm,"studentName","string"===typeof t?t.trim():t)},expression:"maskForm.studentName"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"学员性别",prop:"sex"}},[s("el-select",{attrs:{clearable:""},model:{value:e.maskForm.sex,callback:function(t){e.$set(e.maskForm,"sex","string"===typeof t?t.trim():t)},expression:"maskForm.sex"}},[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:{label:"家长姓名",prop:"parentName"}},[s("el-input",{attrs:{placeholder:"家长姓名"},model:{value:e.maskForm.parentName,callback:function(t){e.$set(e.maskForm,"parentName","string"===typeof t?t.trim():t)},expression:"maskForm.parentName"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"年级",prop:"currentGradeNum"}},[s("el-select",{attrs:{placeholder:"起始年级",filterable:"",clearable:""},model:{value:e.maskForm.currentGradeNum,callback:function(t){e.$set(e.maskForm,"currentGradeNum","string"===typeof t?t.trim():t)},expression:"maskForm.currentGradeNum"}},e._l(e.gradeList,(function(e){return s("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"班级",prop:"course"}},[s("el-input",{attrs:{placeholder:"班级"},model:{value:e.maskForm.course,callback:function(t){e.$set(e.maskForm,"course","string"===typeof t?t.trim():t)},expression:"maskForm.course"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"学员声部",prop:"sound"}},[s("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.onSoundChange},model:{value:e.maskForm.sound,callback:function(t){e.$set(e.maskForm,"sound","string"===typeof t?t.trim():t)},expression:"maskForm.sound"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:"出生日期",prop:"timer"}},[s("el-col",{attrs:{span:24}},[s("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer","string"===typeof t?t.trim():t)},expression:"maskForm.timer"}})],1)],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:e.addStudent}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"学员所在班级",width:"640px",visible:e.studentClassVisible},on:{"update:visible":function(t){e.studentClassVisible=t}}},[s("el-form",{attrs:{model:e.classMask}},[s("el-form-item",{attrs:{label:"学生姓名"}},[e._v(e._s(e.classMask.studentName))]),e._v(" "),e._l(e.classLists,(function(t,a){return s("el-form-item",{key:a,attrs:{label:"所在班级"}},[e._v(e._s(t.name))])}))],2)],1),e._v(" "),s("el-dialog",{attrs:{title:"退团信息确认",width:"640px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[s("el-form",{ref:"quitForm",attrs:{model:e.quitForm,"label-width":"150px",rules:e.quitRules}},[e.activeRow.cloudTeacherAmount>0?s("el-form-item",{attrs:{label:"退还云教练费用",prop:"isCloudTeacherAmount"}},[s("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isCloudTeacherAmount,callback:function(t){e.$set(e.quitForm,"isCloudTeacherAmount","string"===typeof t?t.trim():t)},expression:"quitForm.isCloudTeacherAmount"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isCloudTeacherAmount,callback:function(t){e.$set(e.quitForm,"isCloudTeacherAmount","string"===typeof t?t.trim():t)},expression:"quitForm.isCloudTeacherAmount"}},[e._v("否")])],1):e._e(),e._v(" "),e.quitForm.isCloudTeacherAmount?s("el-form-item",{attrs:{label:"退还云教练金额",prop:"cloudTeacherAmount"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.cloudTeacherAmount,callback:function(t){e.$set(e.quitForm,"cloudTeacherAmount","string"===typeof t?t.trim():t)},expression:"quitForm.cloudTeacherAmount"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),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",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("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:"修改缴费周期","before-close":e.closePayVisible,width:"600px",visible:e.payVisible},on:{"update:visible":function(t){e.payVisible=t}}},[s("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0}},[s("el-form-item",{attrs:{label:"学生姓名",prop:"studentName"}},[s("el-input",{attrs:{disabled:""},model:{value:e.payForm.studentName,callback:function(t){e.$set(e.payForm,"studentName","string"===typeof t?t.trim():t)},expression:"payForm.studentName"}})],1),e._v(" "),s("br"),e._v(" "),s("el-form-item",{attrs:{label:"缴费金额",prop:"payMoney"}},[s("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.payForm.payMoney,callback:function(t){e.$set(e.payForm,"payMoney","string"===typeof t?t.trim():t)},expression:"payForm.payMoney"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费月份",prop:"payMonth"}},[s("el-checkbox-group",{attrs:{fill:"#14928A","text-color":"#474747"},model:{value:e.payForm.payMonth,callback:function(t){e.$set(e.payForm,"payMonth","string"===typeof t?t.trim():t)},expression:"payForm.payMonth"}},[s("el-checkbox",{attrs:{label:"1"}},[e._v("一月")]),e._v(" "),s("el-checkbox",{attrs:{label:"2"}},[e._v("二月")]),e._v(" "),s("el-checkbox",{attrs:{label:"3"}},[e._v("三月")]),e._v(" "),s("el-checkbox",{attrs:{label:"4"}},[e._v("四月")]),e._v(" "),s("el-checkbox",{attrs:{label:"5"}},[e._v("五月")]),e._v(" "),s("el-checkbox",{attrs:{label:"6"}},[e._v("六月")]),e._v(" "),s("el-checkbox",{attrs:{label:"7"}},[e._v("七月")]),e._v(" "),s("el-checkbox",{attrs:{label:"8"}},[e._v("八月")]),e._v(" "),s("el-checkbox",{attrs:{label:"9"}},[e._v("九月")]),e._v(" "),s("el-checkbox",{attrs:{label:"10"}},[e._v("十月")]),e._v(" "),s("el-checkbox",{attrs:{label:"11"}},[e._v("十一月")]),e._v(" "),s("el-checkbox",{attrs:{label:"12"}},[e._v("十二月")])],1)],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitPay}},[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(" "),s("el-dialog",{attrs:{title:"选择班级","destroy-on-close":"",width:"700px",visible:e.createUserPayVisible},on:{"update:visible":function(t){e.createUserPayVisible=t}}},[s("createUserPay",{attrs:{signList:e.signList,mixList:e.mixList,highList:e.highList,snapList:e.snapList,highonlineList:e.highonlineList,musicGroupId:this.teamid,organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,createdUserId:e.createdUserId,baseInfo:e.baseInfo},on:{submited:e.getList,close:function(t){e.createUserPayVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"缴费记录",width:"900px",visible:e.paymentDetailVisible},on:{"update:visible":function(t){e.paymentDetailVisible=t}}},[e.paymentDetailVisible?s("payment-list",{attrs:{paymentDetail:e.paymentDetail},on:{close:function(t){e.paymentDetailVisible=!1}}}):e._e()],1),e._v(" "),e.orderVisible?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._e()],1)},r=[],n=(s("a481"),s("28a5"),s("3b2b"),s("ade3")),o=(s("7f7f"),s("386d"),s("ac6a"),s("96cf"),s("1da1")),l=s("1cc7"),c=s("5137"),u=s("641c"),d=s("d349"),m=s("92e3"),p=s("333d"),h=(s("61f7"),s("d044"),s("bc3a")),f=s.n(h),y=s("5f87"),v=s("ec8a"),b=s("46f6"),g=s("e3eb"),_=s.n(g),S=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级信息",closable:!1,type:"info"}}),e._v(" "),s("el-form",{attrs:{model:e.form,"label-width":"120px"}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"声部班"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.signClass,callback:function(t){e.$set(e.form,"signClass","string"===typeof t?t.trim():t)},expression:"form.signClass"}},e._l(e.signList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"合奏班"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.mixClass,callback:function(t){e.$set(e.form,"mixClass","string"===typeof t?t.trim():t)},expression:"form.mixClass"}},e._l(e.mixList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"基础技能班"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.highClass,callback:function(t){e.$set(e.form,"highClass","string"===typeof t?t.trim():t)},expression:"form.highClass"}},e._l(e.highList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"临时班"}},[s("select-all",{attrs:{filterable:"",clearable:"",multiple:""},model:{value:e.form.snapClass,callback:function(t){e.$set(e.form,"snapClass","string"===typeof t?t.trim():t)},expression:"form.snapClass"}},e._l(e.snapList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"线上基础技能班"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.form.highonline,callback:function(t){e.$set(e.form,"highonline","string"===typeof t?t.trim():t)},expression:"form.highonline"}},e._l(e.highonlineList.filter((function(e){return 1!=e.lockFlag})),(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1)],1)],1)],1),e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}),e._v(" "),s("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:!0,isCommon:!1,isDisabled:!0,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType},on:{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:"缴费方式",prop:"paymentPattern","label-width":"160px",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(" "),0==e.payment.paymentPattern?[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,isUserType:!0,isCommon:!1,isDisabled:!0}})],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:{isUserType:!0,hidePaymentPattern:!0,form:e.cycle,isCommon:!1,isDisabled:!0},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)],2)},w=[],k=s("15fd"),x=(s("6762"),s("2fdb"),s("5530")),T=s("b85c"),C=s("2909"),F=s("6612"),I=s.n(F),O=s("7a3c"),L=s("b133"),P=s("0464"),j=s("1672"),D=s("b4ac"),G=s("267e"),$=s("ed08"),N={props:["snapList","highList","mixList","signList","highonlineList","createdUserId","organizationCourseUnitPriceSettings","musicGroupId","baseInfo"],components:{paymentCycle:O["a"],otherform:L["a"],extraClass:P["a"]},data:function(){return{courseTypeOptions:G["courseType"],ids:"",form:{signClass:"",mixClass:"",highClass:"",snapClass:"",highonline:""},payment:{paymentPattern:null},other:{},cycle:{},eclass:[],collapse:[0],cycles:[{}],organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object($["b"])(G["paymentPatternType"])}},watch:{"form.signClass":function(){this.classChange()},"form.mixClass":function(){this.classChange()},"form.highClass":function(){this.classChange()},"form.snapClass":function(){this.classChange()},"form.highonline":function(){this.classChange()},"payment.paymentPattern":function(){this.syncAllMoney()},baseInfo:function(){this.formatCourse()}},mounted:function(){this.formatCourse()},methods:{addExtraClass:function(){this.eclass.push({})},priceChange:function(e,t){var s=Object(C["a"])(this.eclass),a=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=Math.round(I()(e.courseTotalMinuties||1).multiply(a.unitPrice||1).value());e.courseCurrentPrice=i,e.courseOriginalPrice=i,s[t]=e,this.eclass=Object(C["a"])(s),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,s=0,a=0,i=Object(T["a"])(this.eclass);try{for(i.s();!(e=i.n()).done;){var r=e.value;if(t+=r.courseCurrentPrice,this.cycles&&this.cycles.length)if(r.isStudentOptional)s+=r.courseCurrentPrice;else{var n=Math.floor(r.courseCurrentPrice/this.cycles.length),o=r.courseCurrentPrice%this.cycles.length;s+=n+o,a+=n}}}catch(l){i.e(l)}finally{i.f()}if(this.cycles.length){Math.floor(t/this.cycles.length),this.cycles.length;this.cycles=this.cycles.map((function(e,t){return Object(x["a"])(Object(x["a"])({},e),{},{paymentAmount:0===t?s:a})}))}return this.$refs.cycle&&this.$set(this.cycle,"paymentAmount",t),t},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},formatCourse:function(){var e,t,s,a=null===(e=this.baseInfo)||void 0===e?void 0:e.organId,i=null===(t=this.baseInfo)||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(T["a"])(n);try{for(o.s();!(s=o.n()).done;){var l=s.value;r[l.courseType]=l}}catch(c){o.e(c)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=r,r},getAllIds:function(){return[this.form.signClass,this.form.mixClass,this.form.highClass,this.form.highonline].concat(Object(C["a"])(this.form.snapClass)).filter((function(e){return!!e}))},classChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.getAllIds().join(","),!t){e.next=10;break}return e.next=5,Object(D["a"])({classGroupIdList:t});case 5:s=e.sent,this.ids=t,a=s.data.map((function(e){var t=i.organizationCourseUnitPriceSettingsByType[e.courseType]||{},s=Math.round(I()(t.unitPrice||1).multiply(e.remainMinutes||1).value());return{courseType:e.courseType,courseTotalMinuties:e.remainMinutes,courseOriginalPrice:s,courseCurrentPrice:s}})),this.eclass=Object(C["a"])(a),this.syncAllMoney();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.payment,e.other].concat(Object(C["a"])(e.cycles||[])).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length),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},submit:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,r,n,o,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),s=[],a=Object(T["a"])(t);try{for(r=function(){var e=i.value;e.validate((function(t){t&&s.push(e)}))},a.s();!(i=a.n()).done;)r()}catch(c){a.e(c)}finally{a.f()}if(this.getAllIds().length){e.next=7;break}return this.$message.error("请至少选择一个班级"),e.abrupt("return");case 7:if(t.length!==s.length){e.next=21;break}return n=0==this.payment.paymentPattern?this.cycles:[this.cycle],o=Object(x["a"])({attribute1:this.ids,musicGroupPaymentDateRangeList:n.map((function(e){var t=e.paymentDate,s=e.paymentValid,a=Object(k["a"])(e,["paymentDate","paymentValid"]);return Object(x["a"])(Object(x["a"])(Object(x["a"])(Object(x["a"])({},a),Object($["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object($["a"])(s,["paymentValidStartDate","paymentValidEndDate"])),{},{paymentPattern:l.payment.paymentPattern})})),paymentPattern:this.payment.paymentPattern,musicGroupId:this.musicGroupId,paymentType:"ADD_STUDENT",payUserType:"STUDENT",studentIds:this.createdUserId,musicGroupPaymentCalenderCourseSettingsList:this.eclass},this.other),e.prev=10,e.next=13,Object(j["c"])(o);case 13:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close(),e.next=21;break;case 18:e.prev=18,e.t0=e["catch"](10),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[10,18]])})));function t(){return e.apply(this,arguments)}return t}()}},A=N,R=(s("612d"),s("2877")),E=Object(R["a"])(A,S,w,!1,null,"25d18796",null),M=E.exports,V=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",{attrs:{prop:"hastimer"}},[s("el-select",{attrs:{clearable:"",placeholder:"是否存在剩余时长"},model:{value:e.search.hastimer,callback:function(t){e.$set(e.search,"hastimer","string"===typeof t?t.trim():t)},expression:"search.hastimer"}},[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-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",{attrs:{data:e.filterlist,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{prop:"userId",label:"学生编号",width:"120",align:"center"},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:{prop:"username",label:"学生姓名",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",label:"学生手机号",width:"140",align:"center"},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:{label:"课程时长"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.mapDtos,(function(t){return s("el-tag",{key:t.key,staticStyle:{"margin-right":"5px","margin-bottom":"5px"},attrs:{type:"info",size:"small"}},[e._v(e._s(e.courseType[t.key])+": "+e._s(t.value)+"分钟")])}))}}])})],1)],1)},q=[],U={props:["detail"],data:function(){return{courseType:G["courseType"],list:[],filterlist:[],extra:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{array2object:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s={},a=Object(T["a"])(t);try{for(a.s();!(e=a.n()).done;){var i=e.value;s[i.key]=i.value}}catch(r){a.e(r)}finally{a.f()}return s},filter:function(){var e=this.search,t=e.keyword,s=e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.username).indexOf(t)>-1,i=e.mapDtos.filter((function(e){return e.value>0})).length,r=!s||"1"==s&&i||"0"==s&&!i;return a&&r}))},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()},FetchDetail: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(D["b"])({musicGroupId:this.$route.query.id});case 3:t=e.sent,this.list=t.data,this.filter(),t.data[0]&&(this.extra=t.data[0].mapDtos),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}()}},B=U,H=Object(R["a"])(B,V,q,!1,null,null,null),z=H.exports,Y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"paymentList tableWrap"},[s("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",label:"缴费单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.musicGroupPaymentCalenderId))])]}}])}),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("formatTimer")(t.row.startPaymentDateMgpc))+"\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("formatTimer")(t.row.deadlinePaymentDateMgpc))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"expectAmount",label:"预计缴费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\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(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 ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",width:"150px",label:"支付时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.payTime))+"\n ")])]}}])})],1),e._v(" "),s("pagination",{attrs:{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.getDetail}})],1)},W=[],J={name:"paymentList",props:["paymentDetail"],components:{pagination:p["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getDetail()},methods:{getDetail:function(){var e=Object(o["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=this.paymentDetail,e.next=3,Object(l["Ub"])({musicGroupId:t.musicGroupId,userId:t.userId}).then((function(e){console.log(e),s.tableList=e.data.rows,s.pageInfo.total=e.data.total}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},K=J,Q=Object(R["a"])(K,Y,W,!1,null,null,null),X=Q.exports,Z=s("a5b0"),ee=s("6cc5"),te=s("4edf"),se=s("879d"),ae={name:"tstudentList",data:function(){return{detail:null,teamid:"",paymentDetailVisible:!1,paymentDetail:{},payVisible:!1,quitVisible:!1,studentClassVisible:!1,addStudentVisible:!1,timesVisible:!1,timerDetail:null,topFrom:{expect:"2",studing:"5",allmoney:"100",students:"5",signout:"10"},searchForm:{studentStatus:"",major:"",isPay:"",search:"",isActive:"",oweFlag:"",currentGrade:null,createYear:null,classGroupId:null,hasCourse:null,carePackage:null,comeOnPackage:null},organizationCourseUnitPriceSettings:[],quitForm:{isCloudTeacherAmount:null,cloudTeacherAmount:null,isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,maintenanceFee:0,reason:""},classMask:{studentName:""},baseInfo:{},searchLsit:[],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},studentListInfo:{add:"",quit:"",studying:"",courseRate:""},signList:[],mixList:[],highList:[],snapList:[],soundList:[],highonlineList:[],muiscnetworkList:[],qrcodeStatus:!1,qrcodes:!0,qrcode:null,codeUrl:null,gradeList:[],maskForm:{studentName:"",sex:"",parentName:"",course:"",phone:"",sound:"",timer:"",signClass:"",mixClass:"",highClass:"",snapClass:[],highonline:"",muiscnetwork:"",startClass:"",currentGradeNum:null,id:"",temporaryCourseFee:null,musicGoodsIdList:null,kitGroupPurchaseType:"GROUP",musicPrice:null,instrGoodsIdList:[],instrPrice:null},remark:"",classList:[],quitRules:{isCloudTeacherAmount:[{required:!0,message:"请输入云教练费用"}],cloudTeacherAmount:[{required:!0,message:"请输入云教练金额",trigger:"blur"}],isRefundCourseFee:[{required:!0,message:"请选择是否退还课程费用"}],isRefundInstrumentFee:[{required:!0,message:"选择是否退还乐器费用"}],isRefundTeachingAssistantsFee:[{required:!0,message:"选择是否退还教辅费用"}],isMaintenanceFee:[{required:!0,message:"选择是否退还乐保费用"}],maintenanceFee:[{required:!0,message:"请输入退还乐保金额"}],reason:[{required:!0,message:"请填写退团退费原因"}]},maskRules:{studentName:[{required:!0,message:"请输入学生姓名"}],sex:[{required:!0,message:"请选择学生姓名"}],parentName:[{required:!0,message:"请输入家长姓名"}],course:[{required:!0,message:"请输入班级"}],sound:[{required:!0,message:"请选择声部"}],timer:[{required:!0,message:"请选择出生日期"}],signClass:[{required:!0,message:"请选择声部班"}],currentGradeNum:[{required:!0,message:"请选择年级"}],id:[{required:!0,message:"请输入证件号"}],temporaryCourseFee:[{required:!0,message:"请输课程费用"}],musicGoodsIdList:[{required:!0,message:"请选择乐器",trigger:"change"}],musicPrice:[{required:!0,message:"请输入乐器购买金额"}],instrGoodsIdList:[{required:!0,message:"请选择辅件"}],instrPrice:[{required:!0,message:"请输入辅件金额"}]},INSTRUMENTLIST:[],ACCESSORIESLIST:[],activeRow:{hasMaintenance:!1},Fsearch:null,Frules:null,payForm:{studentName:"",payMoney:"",payMonth:[]},kitStatus:!1,visitVisiable:!1,visitForm:{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:""},cycles:[{}],collapse:[0],visitChiose:m["F"],visitRules:{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]},pickerOptions:null,classLists:null,createdUserId:0,createUserPayVisible:!1,team_status:"",orderVisible:!1,orderForm:{name:"",totalAmount:"",subject:"",subjectFee:"",axe:"",axePrice:"",others:"",othersPrice:""},maskSoundForm:{subject:""},subjectVisible:!1,multipleSelection:[],isCanReg:!1,organId:""}},components:{pagination:p["a"],paymentCycle:O["a"],createUserPay:M,Tooltip:Z["a"],"times-view":z,paymentList:X,visit:te["a"],qrCode:u["a"],changeVoice:ee["a"],mergeMusic:se["a"]},created:function(){},filters:{studentPays:function(e){var t={0:"未缴费",1:"已缴费"};return t[e]}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["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}(),methods:(a={onPaymentDetail:function(e){this.paymentDetail=e,this.paymentDetailVisible=!0},viewTimer:function(e){this.timesVisible=!0},permission:function(e){return Object(v["a"])(e)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,this.team_status=this.$route.query.team_status,Object(l["ob"])({musicGroupId:this.teamid}).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]})})),this.pickerOptions=this.beginDate(),this.getList(),Object(l["J"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)})),Object(l["lb"])({musicGroupId:this.teamid}).then((function(e){return t.baseInfo=e.data}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getMusicClass:function(){var e=this;Object(l["mb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.classList=t.data,e.signList=[],e.mixList=[],e.highList=[],e.snapList=[],e.highonlineList=[],e.classList.forEach((function(t){"NORMAL"==t.type?e.signList.push(t):"MIX"==t.type?e.mixList.push(t):"HIGH"==t.type?e.highList.push(t):"HIGH_ONLINE"==t.type&&t.studentNum<6?e.highonlineList.push(t):"SNAP"==t.type?e.snapList.push(t):"MUSIC_NETWORK"==t.type&&e.muiscnetworkList.push(t)})))}))},getTeamStudent:function(){var e=this;Object(l["Ob"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.studentListInfo=t.data)}))}},Object(n["a"])(a,"permission",(function(e){return Object(v["a"])(e)})),Object(n["a"])(a,"onInstrumentChange",(function(){})),Object(n["a"])(a,"onKitGroupChnage",(function(e){this.kitStatus=!1,"FREE"==e?(this.kitStatus=!0,this.maskForm.musicPrice=0):this.maskForm.musicPrice=null})),Object(n["a"])(a,"onMusicGroupExport",(function(){var e=this,t="/api-web/export/musicGroupStudent",s={musicGroupId:this.teamid,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null,currentGrade:this.searchForm.currentGrade||null,createYear:this.searchForm.createYear||null,hasCourse:this.searchForm.hasCourse||null,comeOnPackage:this.searchForm.comeOnPackage,carePackage:this.searchForm.carePackage},a={method:"get",headers:{Authorization:Object(y["a"])()},url:t,params:s,responseType:"blob"};this.$confirm("您确定导出学员列表?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){f()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=URL.createObjectURL(s),i=document.createElement("a"),r=e.$route.query.name+"学员列表.xls";i.href=a,i.setAttribute("download",r),document.body.appendChild(i),i.click()}))})).catch((function(){}))})),Object(n["a"])(a,"search",(function(){this.rules.page=1,this.getList()})),Object(n["a"])(a,"onReSet",(function(){this.$refs.searchForm.resetFields(),this.search()})),Object(n["a"])(a,"getList",(function(){var e,t=this;this.getTeamStudent();var s=(e={musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,studentStatus:this.searchForm.studentStatus||null,paymentStatus:this.searchForm.isPay||null,subjectId:this.searchForm.major||null,search:this.searchForm.search||null,isActive:this.searchForm.isActive||null,classGroupId:this.searchForm.classGroupId||null,currentGrade:this.searchForm.currentGrade||null,createYear:this.searchForm.createYear||null,oweFlag:this.searchForm.oweFlag||null,hasCourse:this.searchForm.hasCourse||null},Object(n["a"])(e,"oweFlag",this.searchForm.oweFlag||null),Object(n["a"])(e,"comeOnPackage",this.searchForm.comeOnPackage),Object(n["a"])(e,"carePackage",this.searchForm.carePackage),e);return Object(l["Pb"])(s).then((function(e){if(200==e.code)return t.tableList=e.data.rows,t.rules.total=e.data.total,e}))})),Object(n["a"])(a,"addPay",(function(e){this.createUserPayVisible=!0,this.createdUserId=e.userId})),Object(n["a"])(a,"addCycle",(function(){this.cycles.push({}),this.collapse.push(this.collapse.length)})),Object(n["a"])(a,"removeCycle",(function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.pop()})),Object(n["a"])(a,"collapseChange",(function(e){this.collapse=e})),Object(n["a"])(a,"gotoSignin",(function(){this.$router.push({path:"/business/studentSignin",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name,rules:this.Frules,search:this.Fsearch}})})),Object(n["a"])(a,"chioseType",(function(){var e=this;this.$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow,s={musicGroupId:e.teamid,userId:t.userId,reason:e.quitForm.reason,isRefundCourseFee:e.quitForm.isRefundCourseFee,isRefundInstrumentFee:e.quitForm.isRefundInstrumentFee,isRefundTeachingAssistantsFee:e.quitForm.isRefundTeachingAssistantsFee,maintenanceFee:e.quitForm.maintenanceFee};e.quitForm.isCloudTeacherAmount?s.cloudTeacherAmount=e.quitForm.cloudTeacherAmount:s.cloudTeacherAmount=0,Object(l["b"])(s).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,maintenanceFee:0,reason:""},200==t.code&&(e.$message.success("退团成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))})),Object(n["a"])(a,"addStudent",(function(){var e=this;this.$refs["maskForm"].validate((function(t){if(t){var s,a=e.maskForm;if(a.musicGoodsIdList&&(""===a.musicPrice||null===a.musicPrice))return void e.$message.error("请输入乐器金额");if(a.instrGoodsIdList&&a.instrGoodsIdList.length>0&&(""===a.instrPrice||null===a.instrPrice))return void e.$message.error("请输入辅件金额");s=a.snapClass?a.snapClass.join(","):null;var i={signClassId:a.signClass,mixClassId:a.mixClass,snapClassIds:s,highClassId:a.highClass,courseFee:a.courseFee,temporaryCourseFee:a.temporaryCourseFee,studentRegistration:{name:a.studentName,gender:a.sex,birthdate:a.timer,parentsName:a.parentName,parentsPhone:a.phone,currentGrade:a.startClass,currentGradeNum:a.currentGradeNum,currentClass:a.course,subjectId:a.sound,musicGroupId:e.teamid},studentPaymentOrderDetails:[]};a.musicGoodsIdList&&i.studentPaymentOrderDetails.push({goodsIdList:a.musicGoodsIdList,kitGroupPurchaseType:a.kitGroupPurchaseType,type:"MUSICAL",price:a.musicPrice}),a.instrGoodsIdList&&""!=a.instrGoodsIdList&&i.studentPaymentOrderDetails.push({goodsIdList:a.instrGoodsIdList.join(","),type:"ACCESSORIES",price:a.instrPrice}),Object(c["a"])(i).then((function(t){200==t.code&&(e.$message.success("添加学生成功"),e.getList(),e.addStudentVisible=!1,e.createUserPayVisible=!0,e.createdUserId=t.data),e.$refs.maskForm.resetFields()}))}}))})),Object(n["a"])(a,"onSoundChange",(function(e){this.ACCESSORIESLIST=[],this.maskForm.instrGoodsIdList=[],this.maskForm.instrPrice=null,this.INSTRUMENTLIST=[],this.maskForm.musicPrice=null,this.maskForm.musicGoodsIdList=null,this.getGoodsList(e,"INSTRUMENT"),this.getGoodsList(e,"ACCESSORIES")})),Object(n["a"])(a,"findSubjectPlan",(function(e){var t=this;Object(l["M"])({musicGroupId:this.teamid,subjectId:e}).then((function(e){var s=e.data;200==e.code&&(t.maskForm.musicMode=t.getBranchType(s.kitGroupPurchaseType))}))})),Object(n["a"])(a,"getGoodsList",(function(e,t){var s=this;Object(l["gb"])({subjectId:e,type:t}).then((function(e){var a=e.data;if(200==e.code){var i=[];a.forEach((function(e){i.push({label:e.name,value:e.id,marketPrice:e.marketPrice})})),"ACCESSORIES"==t&&(s.ACCESSORIESLIST=i),"INSTRUMENT"==t&&(s.INSTRUMENTLIST=i)}}))})),Object(n["a"])(a,"getBranchType",(function(e){var t={FREE:"免费",GROUP:"团购",LEASE:"租赁"};return t[e]})),Object(n["a"])(a,"lookClass",(function(e){var t=this;this.classMask.studentName=e.realName,Object(c["i"])({musicGroupId:this.teamid,teacherId:e.userId}).then((function(e){200==e.code&&(t.classLists=e.data,t.studentClassVisible=!0)}))})),Object(n["a"])(a,"quieTeamMask",(function(e){this.activeRow=e,this.quitVisible=!0,this.quitForm.cloudTeacherAmount=e.cloudTeacherAmount})),Object(n["a"])(a,"quieTeam",(function(e){var t=this;this.$prompt("请输入退团原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",inputPattern:/\S/,inputErrorMessage:"请输入退团原因"}).then((function(s){Object(l["b"])({musicGroupId:t.teamid,userId:e.userId,reason:s.value,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1}).then((function(e){t.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,maintenanceFee:0,reason:""},200==e.code&&(t.$message.success("退团成功"),t.getList(),t.quitVisible=!1)}))})).catch((function(){}))})),Object(n["a"])(a,"checkPhone",(function(e){var t=this,s=/^1[3456789]\d{9}$/,a=new RegExp(s);a.test(e)&&Object(c["k"])({mobile:this.maskForm.phone}).then((function(s){200==s.code&&s.data&&(t.maskForm.studentName=s.data.name,t.maskForm.sex=s.data.gender,t.maskForm.parentName=s.data.parentsName,t.maskForm.course=s.data.currentClass,t.maskForm.startClass=s.data.currentGrade,t.maskForm.currentGradeNum=s.data.currentGradeNum?s.data.currentGradeNum+"":null,t.maskForm.phone=e,t.maskForm.timer=s.data.birthdate)}))})),Object(n["a"])(a,"lockStudent",(function(e){var t=this;this.$confirm("是否锁定/解锁学生缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var s,a=t.teamid,i=e.userId;s=0==e.isLock?1:0,Object(l["a"])({musicGroupId:a,studentId:i,isLock:s}).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.getList())}))})).catch((function(){}))})),Object(n["a"])(a,"resetPay",(function(e){this.activeRow=e,this.payVisible=!0,this.payForm.studentName=e.realName,this.payForm.payMoney=e.courseFee,this.payForm.payMonth=e.paymentPeriodList.split(","),""==this.payForm.payMonth[0]&&(this.payForm.payMonth=[])})),Object(n["a"])(a,"submitPay",(function(){var e=this,t=this.activeRow.userId,s=this.teamid,a=this.payForm.payMonth.join(",")||null,i=this.payForm.payMoney,r={studentId:t,musicGroupId:s,month:a,amount:i};Object(l["Oc"])(r).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))})),Object(n["a"])(a,"closePayVisible",(function(){this.$refs["payForm"].resetFields(),this.payVisible=!1})),Object(n["a"])(a,"addVisit",(function(e){console.log(e),this.detail=e,this.visitVisiable=!0})),Object(n["a"])(a,"handleChange",(function(e){this.visitForm.type=e[0],this.visitForm.purpose=e[1]})),Object(n["a"])(a,"submitAddVisit",(function(){var e=this;console.log(this.$refs.visitForm),this.$refs.visitForm.validate((function(t){t&&Object(b["a"])(_()(e.visitForm)).then((function(t){200===t.code&&(e.$message.success("新增成功"),e.visitVisiable=!1)}))}))})),Object(n["a"])(a,"beginDate",(function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>=(new Date).getTime()}}})),Object(n["a"])(a,"createStudentFrom",(function(){this.addStudentVisible=!0})),Object(n["a"])(a,"payDate",(function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}})),Object(n["a"])(a,"applyDate",(function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}})),Object(n["a"])(a,"handleSelectionChange",(function(e){this.multipleSelection=e})),Object(n["a"])(a,"checkboxSelect",(function(e){return 0==e.paymentStatus})),a),watch:{createUserPayVisible:function(e){e&&this.getMusicClass()},"quitForm.isMaintenanceFee":function(e){this.quitForm.maintenanceFee=e?300:0},quitVisible:function(e){e||(this.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:""},this.$refs["quitForm"].resetFields())}},computed:{saveKey:function(){return"teamDetails-studentList|id|"+this.$route.query.id}}},ie=ae,re=(s("c353"),Object(R["a"])(ie,i,r,!1,null,"ad84c42c",null));t["a"]=re.exports},5251:function(e,t,s){"use strict";s("c29b")},"526c":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.teamName},on:{back:e.onCancel}})],1),e._v(" "),s("div",{staticClass:"m-core"},[s("el-popover",{attrs:{placement:"left",width:"1000",trigger:"hover"}},[s("teamJournal",{attrs:{teamid:e.teamid}}),e._v(" "),s("p",{staticClass:"msg",class:e.team_status,attrs:{slot:"reference"},slot:"reference"},[e.stepImgs[e.team_status]?s("img",{attrs:{src:e.stepImgs[e.team_status],alt:""}}):e._e(),e._v("\n "+e._s(e.musicGroupType[e.team_status])+"\n ")])],1),e._v(" "),s("tab-router",{ref:"tab",attrs:{type:"card","before-leave":e.checkGoTo},model:{value:e.activeIndex,callback:function(t){e.activeIndex=t},expression:"activeIndex"}},[e.permission("/teamBaseInfo")?s("el-tab-pane",{attrs:{label:"基本信息",lazy:"",name:"1"}},["1"==e.activeIndex?s("teamBaseInfo",{ref:"teamBaseInfo",attrs:{baseInfo:e.baseInfo},on:{getBaseInfo:e.getBaseInfo,getName:e.getName,handleClick:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamSoundMoney")?s("el-tab-pane",{attrs:{label:"声部设置",lazy:"",name:"2",disabled:!e.teamid}},["2"==e.activeIndex?s("resetSound"):e._e()],1):e._e(),e._v(" "),e.permission("/teamForecastName")?s("el-tab-pane",{attrs:{lazy:"",label:"预报名信息",name:"9",disabled:!e.teamid}},["9"==e.activeIndex?s("forecastName",{attrs:{isedit:"PRE_APPLY"==e.team_status}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamStudentPayList")?s("el-tab-pane",{attrs:{label:"学员缴费设置",lazy:"",name:"3",disabled:!e.teamid}},["3"==e.activeIndex?s("resetPayList",{on:{changeActive:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamSchoolPayList")?s("el-tab-pane",{attrs:{label:"学校缴费设置",lazy:"",name:"6",disabled:!e.teamid}},["6"==e.activeIndex?s("resetPayListSchool",{on:{changeActive:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamSignupList")?s("el-tab-pane",{attrs:{label:"报名缴费",disabled:!e.teamid,name:"11"}},[11==e.activeIndex?s("teamSignupList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamMusicList")?s("el-tab-pane",{attrs:{lazy:"",label:"乐器清单",name:"10",disabled:!e.teamid}},["10"==e.activeIndex?s("musicOrder"):e._e()],1):e._e(),e._v(" "),e.permission("/teamTeacherList")?s("el-tab-pane",{attrs:{label:"老师列表",name:"4",disabled:!e.teamid}},["4"==e.activeIndex?s("teacherList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamStudentList")?s("el-tab-pane",{attrs:{label:"学生列表",name:"7",disabled:!e.teamid}},["7"==e.activeIndex?s("studentList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamRemainTime")?s("el-tab-pane",{attrs:{label:"剩余时长",lazy:"",name:"12",disabled:!e.teamid}},["12"==e.activeIndex&&e.musicGroupInfo?s("teamRemainTime",{attrs:{musicGroupInfo:e.musicGroupInfo}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamClassListInfo")?s("el-tab-pane",{attrs:{label:"班级列表",lazy:"",name:"5",disabled:!e.teamid}},["5"==e.activeIndex&&e.musicGroupInfo?s("resetClass",{attrs:{musicGroupInfo:e.musicGroupInfo}}):e._e()],1):e._e(),e._v(" "),e.permission("/teamCourseListInfo")?s("el-tab-pane",{attrs:{label:"课表详情",lazy:"",name:"8",disabled:!e.teamid}},["8"==e.activeIndex?s("courseList",{attrs:{teamid:e.teamid}}):e._e()],1):e._e()],1)],1)])},i=[],r=(s("7f7f"),s("96cf"),s("1da1")),n=s("80b0"),o=s("5f3d"),l=s("8f2a"),c=s("be2e"),u=s("070d"),d=s("f610"),m=s("b3d0"),p=s("51c1"),h=s("e3de"),f=s("7472"),y=s("d80b"),v=s("670a"),b=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.processList}},[s("el-table-column",{attrs:{align:"center",prop:"userId",label:"操作人",width:"150px"},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:{align:"center",prop:"userId",label:"操作时间",width:"180px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.createTime)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"userId",label:"操作内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n\n "+e._s(t.row.event)+"\n "),s("span",{staticStyle:{color:"red"}},[e._v(e._s(e.getMemo(t.row)))])]}}])})],1)],1)])},g=[],_=(s("6762"),s("2fdb"),s("1cc7")),S={data:function(){return{processList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},teamid:""}},mounted:function(){this.teamid=this.$route.query.id,this.getProcess()},methods:{getProcess:function(){var e=this;Object(_["rb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.processList=t.data)}))},getMemo:function(e){return e.memo&&!e.memo.includes("{")?e.memo:""}}},w=S,k=s("2877"),x=Object(k["a"])(w,b,g,!1,null,null,null),T=x.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",{attrs:{prop:"hastimer"}},[s("el-select",{attrs:{clearable:"",placeholder:"是否存在剩余时长"},model:{value:e.search.hastimer,callback:function(t){e.$set(e.search,"hastimer","string"===typeof t?t.trim():t)},expression:"search.hastimer"}},[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-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",{attrs:{data:e.filterlist,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{prop:"userId",label:"学生编号",width:"120",align:"center"},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:{prop:"username",label:"学生姓名",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.username))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",label:"学生手机号",width:"140",align:"center"},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:{label:"课程时长"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.mapDtos,(function(t){return s("el-tag",{key:t.key,staticStyle:{"margin-right":"5px","margin-bottom":"5px"},attrs:{type:"info",size:"small"}},[e._v(e._s(e.courseType[t.key])+": "+e._s(t.value)+"分钟")])}))}}])})],1)],1)},F=[],I=(s("386d"),s("b85c")),O=s("b4ac"),L=s("267e"),P={props:["detail"],data:function(){return{courseType:L["courseType"],list:[],filterlist:[],extra:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{array2object:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s={},a=Object(I["a"])(t);try{for(a.s();!(e=a.n()).done;){var i=e.value;s[i.key]=i.value}}catch(r){a.e(r)}finally{a.f()}return s},filter:function(){var e=this.search,t=e.keyword,s=e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.username).indexOf(t)>-1,i=e.mapDtos.filter((function(e){return e.value>0})).length,r=!s||"1"==s&&i||"0"==s&&!i;return a&&r}))},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()},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(O["b"])({musicGroupId:this.$route.query.id});case 3:t=e.sent,this.list=t.data,this.filter(),t.data[0]&&(this.extra=t.data[0].mapDtos),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}()}},j=P,D=Object(k["a"])(j,C,F,!1,null,null,null),G=D.exports,$=s("ec8a"),N={components:{teamBaseInfo:n["a"],resetSound:o["a"],resetClass:l["default"],resetPayList:u["a"],resetPayListSchool:d["a"],studentPayBase:m["default"],studentList:p["a"],teacherList:h["a"],courseList:f["a"],forecastName:y["default"],musicOrder:v["default"],teamJournal:T,teamRemainTime:G,teamSignupList:c["default"]},name:"resetTeaming",data:function(){return{activeIndex:"1",teamid:"",baseInfo:null,name:null,teamName:"新建乐团",musicGroupInfo:null,musicGroupType:L["musicGroupType"],team_status:"",stepImgs:{AUDIT_FAILED:s("c34d"),CANCELED:s("c34d"),CLOSE:s("c34d"),PAUSE:s("c34d"),PROGRESS:s("7a7c"),DRAFT:s("7a7c"),AUDIT:s("7a7c"),PRE_APPLY:s("7a7c"),PRE_BUILD_FEE:s("7a7c"),FEE_AUDIT:s("7a7c"),APPLY:s("cd89"),PAY:s("0e73"),PREPARE:s("7a7c")}}},created:function(){},beforeDestroy:function(){},mounted:function(){this.__init()},beforeRouteLeave:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,s,a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(1!=this.activeIndex){e.next=7;break}return e.next=3,this.$refs.teamBaseInfo.setStore("go");case 3:if(!e.sent){e.next=5;break}a();case 5:e.next=8;break;case 7:a();case 8:case"end":return e.stop()}}),e,this)})));function t(t,s,a){return e.apply(this,arguments)}return t}(),methods:{__init:function(){var e=this;this.teamid=this.$route.query.id,this.team_status=this.$route.query.team_status,1!=this.$route.query.tabrouter&&this.teamid&&Object(_["Lb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&e.getBaseInfo(t.data)}))},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getBaseInfo:function(e){if(e){var t,s;if(this.baseInfo=e,null===e||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.name)this.teamName=null===e||void 0===e||null===(s=e.musicGroup)||void 0===s?void 0:s.name;this.musicGroupInfo=null===e||void 0===e?void 0:e.musicGroup}else this.__init()},handleClick:function(e){this.teamid=this.$route.query.id,this.$refs.tab.tab(e)},permission:function(e){return Object($["a"])(e)},getName:function(e){e&&(this.teamName=e),this.teamid=this.$route.query.id},checkGoTo:function(){var e=this,t=new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(s,a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(1!=e.activeIndex||!e.$refs.teamBaseInfo){t.next=7;break}return t.next=3,e.$refs.teamBaseInfo.setStore("go");case 3:if(!t.sent){t.next=5;break}s();case 5:t.next=8;break;case 7:s();case 8:case"end":return t.stop()}}),t)})));return function(e,s){return t.apply(this,arguments)}}());return t}},watch:{}},A=N,R=(s("5251"),Object(k["a"])(A,a,i,!1,null,"1319097c",null));t["default"]=R.exports},"533e":function(e,t,s){"use strict";s("7d51")},"5b65":function(e,t,s){"use strict";s("b4ed")},"5dd4":function(e,t,s){},"5f3d":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"sound-container"},[s("div",{staticClass:"topMsg"},[s("p",[e._v("当前选择声部数(个):"+e._s(e.chioseSoundNum))]),e._v(" "),s("p",{staticStyle:{"margin-left":"30px"}},[e._v("计划招生人数(个):"+e._s(e.PlannedCount))])]),e._v(" "),s("soundSetCore",{ref:"soundSetCore",on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo,getNumber:e.getNumber}}),e._v(" "),s("div",{staticClass:"btnWrap"},["newTeam"==e.teamStatus?s("el-button",{attrs:{type:"primary"},on:{click:e.goback}},[e._v("上一步")]):e._e(),e._v(" "),"newTeam"==e.teamStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/createGroup",parent:"/teamBuild/soundMoney"},expression:"{\n child: 'musicGroup/createGroup',\n parent: '/teamBuild/soundMoney',\n }"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo(2)}}},[e._v("提交")]):e._e(),e._v(" "),"teamDraft"==e.teamStatus?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitAudit(1)}}},[e._v("提交审核")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditSuccess",expression:"'musicGroup/auditSuccess'"}],attrs:{type:"primary"},on:{click:e.approval}},[e._v("审核通过")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditFailed",expression:"'musicGroup/auditFailed'"}],attrs:{type:"danger"},on:{click:e.refuse}},[e._v("驳回")]):e._e(),e._v(" "),"resetTeam"==e.teamStatus||"teamDraft"==e.teamStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/updateSubjectInfo",expression:"'musicGroup/updateSubjectInfo'"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo()}}},[e._v("\n 保存\n ")]):e._e()],1)],1)},i=[],r=s("1cc7"),n=(s("5a0c"),s("ff14")),o={components:{soundSetCore:n["a"]},data:function(){return{topfor:null,Fsearch:null,Frules:null,activeSoundList:[],chioseSoundNum:0,PlannedCount:0,teamStatus:null,teamid:null}},mounted:function(){this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type,"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",1),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",1)},activated:function(){"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",1),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",1),this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type},methods:{handleClick:function(e){},goback:function(){this.$emit("chiosetab",0)},submitInfo:function(e){this.$refs.soundSetCore.submitInfo(e)},chiosetab:function(e){this.$emit("chiosetab",e)},submitAudit:function(e){var t=this;this.$confirm("是否提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$refs.soundSetCore.submitInfo(e)})).catch((function(){}))},selectMusic:function(){this.$refs.soundSetCore.submitInfo(),this.$emit("chiosetab",3)},getNumber:function(e,t){this.chioseSoundNum=e,this.PlannedCount=t},getBaseInfo:function(e){this.$emit("getBaseInfo",e)},approval:function(){var e=this;this.$confirm("是否审核通过?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["g"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("审核通过"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))}))})).catch((function(){}))},refuse:function(){var e=this;this.$prompt("请输入拒绝原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var s=t.value;s?Object(r["f"])({musicGroupId:e.teamid,memo:s}).then((function(t){200==t.code&&(e.$message.success("已拒绝"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))})):e.$message.error("请输入驳回原因")}))}},computed:{}},l=o,c=(s("947e"),s("2877")),u=Object(c["a"])(l,a,i,!1,null,"c6b06f98",null);t["a"]=u.exports},"612d":function(e,t,s){"use strict";s("f03b")},6193:function(e,t,s){"use strict";s("aa6f")},6243:function(e,t,s){},"62f6":function(e,t,s){"use strict";s("9112")},"670a":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",{},[s("div",{staticClass:"m-core"},[s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{label:"商品编号",prop:"sn",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"商品名称",align:"center",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"商品类型",align:"center",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("shopType")(t.row.type))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"具体型号",align:"center",prop:"specification"}}),e._v(" "),s("el-table-column",{attrs:{label:"数量统计",align:"center",prop:"sellCount"}})],1)],1)]),e._v(" "),s("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"20px"}},[e.tableList.length>0?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"primary"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),e.tableList.length>0?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"primary"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e(),e._v(" "),"PREPARE"!=e.team_status||e.hasVerifyMusicalList?e._e():s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/verifyMusicalList",expression:"'order/verifyMusicalList'"}],attrs:{type:"warning okBtn"},on:{click:e.okDetailList}},[e._v("确认")])],1)])},i=[],r=s("1cc7"),n=s("160b"),o=s("3de3"),l=s("bc3a"),c=s.n(l),u=s("4328"),d=s.n(u),m=s("5f87"),p=s("3908"),h={data:function(){return{teamid:"",tableList:[],Fsearch:null,Frules:null,team_status:"",hasVerifyMusicalList:!0}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.team_status=this.$route.query.team_status,this.teamid=this.$route.query.id,this.teamid&&(Object(n["b"])({musicGroupId:this.teamid}).then((function(t){var s,a;200==t.code&&(e.hasVerifyMusicalList=null===t||void 0===t||null===(s=t.data)||void 0===s||null===(a=s.rows[0])||void 0===a?void 0:a.hasVerifyMusicalList)})),Object(r["Nb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.tableList=t.data?t.data:[])})))},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},okDetailList:function(){var e=this;this.$confirm("是否确认发放清单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["z"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))}))})).catch((function(){}))},musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",s={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(m["a"])()},data:d.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),c()(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(),l=e.$route.query.id+"-"+o+"订货清单.xls";r.href=i,r.setAttribute("download",l),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(m["a"])()},data:d.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),c()(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(),l=e.$route.query.id+"-"+o+"分发清单.xls";r.href=i,r.setAttribute("download",l),document.body.appendChild(r),r.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},f=h,y=s("2877"),v=Object(y["a"])(f,a,i,!1,null,null,null);t["default"]=v.exports},"67c9":function(e,t,s){},6814:function(e,t,s){"use strict";s("b2df")},6845:function(e,t,s){"use strict";s("1a92")},"6ca4":function(e,t,s){"use strict";s("c477")},"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("1da1")),n=(s("7f7f"),s("5530")),o=(s("ac6a"),s("456d"),s("b85c")),l=s("d044"),c=s.n(l),u=s("f904"),d=s.n(u),m=(s("6612"),s("1cc7")),p=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("2909"),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,l=Object(o["a"])(e);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=this.groupListById[c];u&&(t+=parseFloat(u.price))}}catch(b){l.e(b)}finally{l.f()}}var d=[];if("list"!==this.type){var m,p=Object(o["a"])(e);try{for(p.s();!(m=p.n()).done;){var h=m.value,f=this.groupListById[h];if(f){var v=this.groupListById[h].goodsList;d=d.concat((v||[]).map((function(e){return e.id})))}}}catch(b){p.e(b)}finally{p.f()}}else d=Object(y["a"])(e);this.$listeners.change(d,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={},l=Object(o["a"])(e.groupList);try{for(l.s();!(r=l.n()).done;){var c=r.value;n[c.id]=c}}catch(u){l.e(u)}finally{l.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={},l=[],c={},u={};if(e){var d,m=e.musicGroupSubjectGoodsGroupList,p={},h=Object(o["a"])(m);try{for(h.s();!(d=h.n()).done;){var f=d.value;p[f.type]||(p[f.type]=[]),p[f.type].push(f)}}catch(L){h.e(L)}finally{h.f()}for(var y=Object.keys(p),v=0,b=y;v<b.length;v++){var g,_=b[v],S=Object(o["a"])(p[_]);try{for(S.s();!(g=S.n()).done;){var w=g.value;if("INSTRUMENT"===_){var k={},x={};try{k=JSON.parse(w.kitGroupPurchaseTypeJson)}catch(P){}try{x=JSON.parse(w.coursePurchaseTypeJson)}catch(P){}var T=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(T),r[w.goodsIdList]=T,!p.ACCESSORIES){u[w.goodsIdList]||(u[w.goodsIdList]=[]);var C,F=w.goodsList[0].goodsList?w.goodsList[0].goodsList:[],I=Object(o["a"])(F);try{for(I.s();!(C=I.n()).done;){var O=C.value;u[w.goodsIdList].push(O),a[O.id]=O}}catch(L){I.e(L)}finally{I.f()}}}else"ACCESSORIES"===w.type&&(l.push(w),c[w.id]=w)}}catch(L){S.e(L)}finally{S.f()}}}return{accessories:s,accessoriesById:a,musicalGoods:i,musicalGoodsById:r,groupList:l,groupListById:c,accessoriesByGoods:u}},x={GROUP:"price",LEASE:"depositFee"},T={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(p["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){d()(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(m["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(m["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(m["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 c.a(e.$refs.qrCodeUrl,{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:c.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(m["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(m["Ec"])({id:e.detail.subjectChange.id}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("取消成功!")}))}))}}},C=T,F=(s("ebaf"),Object(g["a"])(C,a,i,!1,null,"f23a05fa",null));t["a"]=F.exports},"6f81":function(e,t,s){},"704d":function(e,t,s){"use strict";s("96cf");var a=s("1da1"),i=s("2909"),r=s("5530"),n=s("2f62"),o=s("1cc7"),l=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"]=l},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),l=s("4328"),c=s.n(l),u=s("5f87"),d=s("3908"),m={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:c.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["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(),l=e.$route.query.id+"-"+o+"订货清单.xls";r.href=i,r.setAttribute("download",l),document.body.appendChild(r),r.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["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:c.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["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(),l=e.$route.query.id+"-"+o+"分发清单.xls";r.href=i,r.setAttribute("download",l),document.body.appendChild(r),r.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))}}},p=m,h=(s("fc1a"),s("2877")),f=Object(h["a"])(p,a,i,!1,null,"546db682",null);t["a"]=f.exports},7472:function(e,t,s){"use strict";var a,i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"cl-container"},[s("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"teamDetails-courseList",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[s("el-form-item",{attrs:{prop:"courseStatus"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程类型"},model:{value:e.searchForm.courseStatus,callback:function(t){e.$set(e.searchForm,"courseStatus","string"===typeof t?t.trim():t)},expression:"searchForm.courseStatus"}},e._l(e.courseArray,(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:{prop:"classStatus"}},[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"课程状态"},model:{value:e.searchForm.classStatus,callback:function(t){e.$set(e.searchForm,"classStatus","string"===typeof t?t.trim():t)},expression:"searchForm.classStatus"}},[s("el-option",{attrs:{label:"未开始",value:"NOT_START"}}),e._v(" "),s("el-option",{attrs:{label:"进行中",value:"UNDERWAY"}}),e._v(" "),s("el-option",{attrs:{label:"已结束",value:"OVER"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"class"}},[s("el-select",{attrs:{placeholder:"班级名称",filterable:"",clearable:""},model:{value:e.searchForm.class,callback:function(t){e.$set(e.searchForm,"class","string"===typeof t?t.trim():t)},expression:"searchForm.class"}},e._l(e.classList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"isSettlement"}},[s("el-select",{attrs:{placeholder:"是否结算",filterable:"",clearable:""},model:{value:e.searchForm.isSettlement,callback:function(t){e.$set(e.searchForm,"isSettlement","string"===typeof t?t.trim():t)},expression:"searchForm.isSettlement"}},[s("el-option",{attrs:{value:"0",label:"未结算"}}),e._v(" "),s("el-option",{attrs:{value:"1",label:"已结算"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"timer"}},[s("el-date-picker",{staticStyle:{width:"420px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.timer,callback:function(t){e.$set(e.searchForm,"timer","string"===typeof t?t.trim():t)},expression:"searchForm.timer"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),s("div",{staticClass:"btnWraps"}),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"180px",label:"时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.classDate)+" "+e._s(t.row.startClassTime?t.row.startClassTime.substr(0,5):"")+"-"+e._s(t.row.endClassTime?t.row.endClassTime.substr(0,5):""))]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"courseScheduleName",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"courseScheduleType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("coursesType")(t.row.courseScheduleType)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"courseScheduleStatus",label:"课程状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("coursesStatus")(t.row.courseScheduleStatus)))])]}}])},[e._v("s\n ")]),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"老师签到"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?s("div",[e._v(e._s(e._f("attendanceType")(t.row.signInStatus)))]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"老师签退"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?s("div",[e._v(e._s(e._f("attendanceOutType")(t.row.signOutStatus)))]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"masterTeacherName",label:"指导老师"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"结算状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.settlementTime?"已结算":"未结算"))]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"remark",label:"是否点名"},scopedSlots:e._u([{key:"default",fn:function(t){return["NOT_START"!=t.row.courseScheduleStatus?s("div",[e._v("\n "+e._s(t.row.isCallNames?"已点名":"未点名")+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"remark",label:"备注"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"280px",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",["OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("teacherAttendance/updateTeacherAttendance?t=568")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.onMarkAttendance(t.row)}}},[e._v("补考勤")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&e.permission("studentAttendance/updateStudentAttendances?t=570")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.onCallName(t.row)}}},[e._v("点名表")]):e._e(),e._v(" "),!t.row.settlementTime&&e.permission("courseSchedule/classStartDateAdjust/teamCourseListInfo")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("调整")]):e._e(),e._v(" "),"OVER"==t.row.courseScheduleStatus&&!t.row.settlementTime&&e.permission("courseSchedule/cleanAttendancecourseSchedule/classStartDateAdjust/teamCourseListInfo")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.clearAttend(t.row)}}},[e._v("清除考勤")]):e._e()],1)]}}])})],1),e._v(" "),s("pagination",{attrs:{"save-key":"teamDetails-courseList",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:"课程调整",width:"400px","before-close":e.handleClose,visible:e.courseVisible},on:{"update:visible":function(t){e.courseVisible=t}}},[e.courseVisible?s("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[s("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[s("remote-search",{attrs:{commit:"setTeachers",width:220},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher",t)},expression:"maskForm.teacher"}})],1),e._v(" "),"MUSIC_NETWORK"!=e.maskForm.courseScheduleType&&"HIGH_ONLINE"!=e.maskForm.courseScheduleType?s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("remote-search",{attrs:{commit:"setTeachers",width:220,multiple:!0},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant",t)},expression:"maskForm.assistant"}})],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"上课日期",prop:"date"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(),"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.maskForm.date,callback:function(t){e.$set(e.maskForm,"date","string"===typeof t?t.trim():t)},expression:"maskForm.date"}})],1),e._v(" "),e.courseVisible?s("el-form-item",{attrs:{label:"课程时长",prop:"timer"}},[s("el-select",{on:{change:e.changeTime},model:{value:e.maskForm.timer,callback:function(t){e.$set(e.maskForm,"timer",t)},expression:"maskForm.timer"}},e._l(e.typeTimeList,(function(e,t){return s("el-option",{key:t,attrs:{value:parseInt(e),label:e}})})),1)],1):e._e(),e._v(" "),e.courseVisible?s("el-form-item",{attrs:{label:"开始时间",prop:"startTime"}},[s("el-time-picker",{attrs:{placeholder:"起始时间",format:"HH:mm","value-format":"HH:mm","picker-options":{selectableRange:e.nowTime+" - 23:30:00"}},on:{change:e.changeStartTime},model:{value:e.maskForm.startTime,callback:function(t){e.$set(e.maskForm,"startTime","string"===typeof t?t.trim():t)},expression:"maskForm.startTime"}})],1):e._e(),e._v(" "),e.courseVisible?s("el-form-item",{attrs:{label:"结束时间",prop:"endTime"}},[s("el-time-select",{attrs:{placeholder:"结束时间",disabled:"","picker-options":{start:"04:30",step:"00:05",end:"23:30",minTime:e.maskForm.startTime}},model:{value:e.maskForm.endTime,callback:function(t){e.$set(e.maskForm,"endTime","string"===typeof t?t.trim():t)},expression:"maskForm.endTime"}})],1):e._e(),e._v(" "),"HIGH_ONLINE"!=e.maskForm.courseScheduleType&&"MUSIC_NETWORK"!=e.maskForm.courseScheduleType?s("el-form-item",{attrs:{label:"教学地点",prop:"schoolId"}},[s("el-select",{staticStyle:{width:"220px!important"},attrs:{filterable:"",clearable:""},model:{value:e.maskForm.schoolId,callback:function(t){e.$set(e.maskForm,"schoolId","string"===typeof t?t.trim():t)},expression:"\n maskForm.schoolId"}},e._l(e.schoolList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1):e._e()],1):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.courseVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"修改时间",width:"400px","before-close":e.handleCloseTimer,visible:e.timerVisible},on:{"update:visible":function(t){e.timerVisible=t}}},[s("el-form",{attrs:{model:e.timerMask}},[s("el-form-item",{attrs:{label:"上课日期",rules:[{required:!0,message:"请选择日期",trigger:"blur"}]}},[s("el-date-picker",{attrs:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},placeholder:"选择日期"},model:{value:e.timerMask.timer,callback:function(t){e.$set(e.timerMask,"timer","string"===typeof t?t.trim():t)},expression:"timerMask.timer"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.timerVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.batchAdjustmentTime}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"补考勤",width:"400px",visible:e.markAttendance.status},on:{"update:visible":function(t){return e.$set(e.markAttendance,"status",t)}}},[s("el-form",[s("el-form-item",{attrs:{label:"签到状态"}},[e._v(e._s(e._f("attendanceType")(e.markAttendance.dataInfo.signInStatus)))]),e._v(" "),s("el-form-item",{attrs:{label:"签到时间"}},[e._v(e._s(e.markAttendance.dataInfo.signInTime))]),e._v(" "),s("el-form-item",{attrs:{label:"签退状态"}},[e._v(e._s(e._f("attendanceOutType")(e.markAttendance.dataInfo.signOutStatus)))]),e._v(" "),s("el-form-item",{attrs:{label:"签退时间"}},[e._v(e._s(e.markAttendance.dataInfo.signOutTime))])],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.markAttendance.status=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:1==e.markAttendance.dataInfo.signOutStatus&&1==e.markAttendance.dataInfo.signInStatus},on:{click:e.batchAdjustmentTime}},[e._v("确定补卡")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"点名表",width:"800px",visible:e.rollCall.status},on:{"update:visible":function(t){return e.$set(e.rollCall,"status",t)}}},[s("el-table",{attrs:{data:e.rollCall.gridData}},[s("el-table-column",{attrs:{align:"center",property:"userName",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",property:"phone",label:"手机号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",property:"subjectName",label:"学员声部"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"到课状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("studentCallName")(t.row.status)))]}}])}),e._v(" "),e.rollCall.selectItem.settlementTime?e._e():s("el-table-column",{attrs:{align:"center",label:"操作",width:"240px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:function(s){return e.onChangeRollCall("TRUANT",t.row)}}},[e._v("未到")]),e._v(" "),s("el-button",{attrs:{size:"small",type:"warning",round:""},on:{click:function(s){return e.onChangeRollCall("LEAVE",t.row)}}},[e._v("请假")]),e._v(" "),s("el-button",{attrs:{size:"small",type:"success",round:""},on:{click:function(s){return e.onChangeRollCall("NORMAL",t.row)}}},[e._v("到课")])]}}],null,!1,3311584737)})],1),e._v(" "),s("pagination",{attrs:{sync:"",total:e.rollCall.total,page:e.rollCall.page,limit:e.rollCall.limit,"page-sizes":e.rollCall.page_size},on:{"update:total":function(t){return e.$set(e.rollCall,"total",t)},"update:page":function(t){return e.$set(e.rollCall,"page",t)},"update:limit":function(t){return e.$set(e.rollCall,"limit",t)},pagination:e.getCallName}})],1)],1)},r=[],n=(s("386d"),s("28a5"),s("96cf"),s("1da1")),o=s("5a0c"),l=s.n(o),c=s("333d"),u=s("7e78"),d=s("1cc7"),m=s("ec8a"),p=s("c466"),h=s("92e3"),f=s("99b4"),y=s("e3eb"),v=s.n(y),b={name:"tcourseList",data:function(){return{classTimeList:h["h"],courseArray:h["q"],typeVisible:!1,timerVisible:!1,courseVisible:!1,searchForm:{courseStatus:"",classStatus:"",timer:[],class:"",isSettlement:""},tableList:[],searchLsit:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},maskForm:{teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",type:"",timer:"",courseScheduleType:null,address:"",teachMode:"",schoolId:""},typeForm:{teacher:"",assistant:"",date:"",startTime:"",endTime:"",type:null,id:null},maskRules:{schoolId:[{required:!0,message:"请选教学地点",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}],date:[{required:!0,message:"请选择上课时间",trigger:"blur"}]},typeRules:{type:[{required:!0,message:"请选择课程类型",trigger:"blur"}]},teacherList:[],classList:[],activeCourseList:[],timerMask:{timer:""},markAttendance:{status:!1,dataInfo:{}},rollCall:{status:!1,gridData:[],selectItem:{},limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:"",schoolList:[],courseTimeList:{},typeTimeList:[]}},components:{pagination:c["a"]},created:function(){a=this},mounted:function(){var e=this;this.init(),Object(f["o"])({organId:this.$route.query.organId}).then((function(t){200==t.code&&(e.schoolList=t.data)}))},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.teamid=this.$route.query.id,this.organId=this.$route.query.organId,e.prev=2,e.next=5,Object(d["tb"])({organId:this.organId});case 5:t=e.sent,this.courseTimeList=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](2);case 11:this.getList(),Object(d["mb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(s.classList=e.data)}));case 13:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}(),onMarkAttendance:function(e){this.markAttendance={status:!0,dataInfo:e}},onCallName:function(e){this.rollCall.page=1,this.rollCall.selectItem=e,this.getCallName()},getCallName:function(){var e=this.rollCall,t={page:e.page,rows:e.limit,courseScheduleId:e.selectItem.courseScheduleId};Object(d["E"])(t).then((function(t){var s=t.data;e.status=!0,200==t.code&&(e.gridData=s.rows,e.total=s.total)}))},onChangeRollCall:function(e,t){var s=this,a=this.rollCall,i={courseScheduleId:a.selectItem.courseScheduleId,studentAttendances:[{userId:t.studentId,status:e}]};Object(d["Nc"])(i).then((function(a){200==a.code?(s.$message.success("修改成功"),t.status=e,s.getList()):s.$message.error(a.msg)}))},permission:function(e,t){return Object(m["a"])(e,t)},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm;t.timer||(t.timer=[]);var s={classScheduleStatus:t.classStatus||null,classScheduleType:t.courseStatus||null,musicGroupId:this.teamid,startTime:t.timer[0]||null,endTime:t.timer[1]||null,page:this.rules.page,rows:this.rules.limit,classGroupId:t.class||null,isSettlement:t.isSettlement||null};Object(d["Y"])(s).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},resetClass:function(e){for(var t in this.maskForm.teacher=parseInt(e.masterTeacherId),this.maskForm.courseScheduleType=e.courseScheduleType,this.courseTimeList)t==e.courseScheduleType&&(this.typeTimeList=this.courseTimeList[t].split(","));for(var s in this.maskForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[s].teacherRole&&this.maskForm.assistant.push(e.teachingTeachers[s].userId);this.maskForm.date=e.classDate,this.$set(this.maskForm,"startTime",e.startClassTimeStr.substring(0,5));var a=Object(p["b"])(e.classDate,e.startClassTimeStr,e.endClassTimeStr);this.maskForm.timer=a,this.maskForm.endTime=Object(p["a"])(e.classDate,e.startClassTimeStr,a),this.maskForm.id=e.courseScheduleId,this.maskForm.schoolId=e.schoolId,this.courseVisible=!0},removeSingleClass:function(e){var t=this;this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var s=e.courseScheduleId;Object(u["g"])({courseScheduleIds:s}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},removeCourses:function(){var e=this;if(this.activeCourseList.length<1)this.$message.error("请至少选择一节课");else{var t=[];t=this.activeCourseList.map((function(e){return e.courseScheduleId})),this.$confirm("是否删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var s=t.join(",");Object(u["g"])({courseScheduleIds:s}).then((function(t){200==t.code&&(e.$message.success("删除成功"),e.getList())}))})).catch((function(){}))}},submitResetClass:function(){var e=this,t=this.maskForm,s=l()(t.date+" "+t.startTime).diff(new Date,"second");s<=0?this.$message.error("课程开始时间必须大于当前时间"):t.startTime&&t.endTime?this.$confirm("是否确定?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var s=t.assistant.join(",");if(s.length<=0);var a={actualTeacherId:t.teacher,startClassTimeStr:t.startTime,endClassTimeStr:t.endTime,id:t.id,teachingTeacherIdList:s,classDate:t.date,type:t.type,groupType:"MUSIC",schoolId:t.schoolId};Object(d["lc"])(v()(a)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1),206==t.code&&e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(t){a.allowZeroSalary=!0,Object(d["lc"])(v()(a)).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.courseVisible=!1)}))}))}))})).catch((function(){})):this.$message.error("请填写开始时间或结束时间")},handleClose:function(){this.courseVisible=!1,this.maskForm={teacher:"",assistant:"",date:"",id:"",startTime:"",endTime:"",schoolId:null},this.$refs["maskForm"].resetFields()},handleSelectionChange:function(e){this.activeCourseList=e},checkSelectable:function(e){return"NOT_START"==e.courseScheduleStatus},batchAdjustmentTime:function(){var e=this,t=this.markAttendance.dataInfo,s={teacherId:t.masterTeacherId,courseScheduleId:t.courseScheduleId,signInStatus:1,signOutStatus:1};Object(d["Rc"])(s).then((function(t){200==t.code?(e.$message.success("补卡成功"),e.markAttendance.status=!1,e.getList()):e.$message.error(t.msg)}))},handleCloseTimer:function(){this.timerVisible=!1,this.timerMask.timer=""},resetTimer:function(){this.activeCourseList.length<1?this.$message.error("请至少选择一节课"):this.timerVisible=!0},resetType:function(e){for(var t in this.typeForm.type=e.courseScheduleType,this.typeForm.id=e.courseScheduleId,this.typeForm.teacher=parseInt(e.masterTeacherId),this.typeForm.assistant=[],e.teachingTeachers)"TEACHING"==e.teachingTeachers[t].teacherRole&&this.typeForm.assistant.push(e.teachingTeachers[t].userId);this.typeForm.date=e.classDate,this.$set(this.typeForm,"startTime",e.startClassTimeStr.substring(0,5)),this.typeForm.endTime=e.endClassTimeStr.substring(0,5),this.typeVisible=!0},submitResetType:function(){var e=this;this.$refs.typeForm.validate((function(t){if(t){var s=e.typeForm.assistant.join(",");if(s.length<=0);var a={actualTeacherId:e.typeForm.teacher,startClassTimeStr:e.typeForm.startTime,endClassTimeStr:e.typeForm.endTime,id:e.typeForm.id,type:e.typeForm.type,teachingTeacherIdList:s,classDate:e.typeForm.date};Object(d["lc"])(a).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.getList(),e.typeVisible=!1)}))}}))},clearAttend:function(e){var t=this;this.$confirm("是否清除考勤记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["s"])({courseScheduleIds:e.courseScheduleId}).then((function(e){200==e.code?(t.$message.success("清除成功"),t.getList()):t.$message.error(e.msg)}))})).catch((function(){}))},changeStartTime:function(e){var t=this;this.$nextTick((function(s){t.maskForm.endTime=Object(p["a"])(t.maskForm.date,e,t.maskForm.timer)}))},changeTime:function(e){var t=this;this.$nextTick((function(s){t.maskForm.endTime=Object(p["a"])(t.maskForm.date,t.maskForm.startTime,e)}))},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},filters:{studentCallName:function(e){var t={NORMAL:"到课",TRUANT:"未到",LEAVE:"请假",DROP_OUT:"退学","":"未到"};return t[e]}},watch:{"maskForm.timer":function(e){this.maskForm.endTime=Object(p["a"])(this.maskForm.date,this.maskForm.startTime,e)}},computed:{nowTime:function(){var e="04:30:00";return a.maskForm.date==l()(new Date).format("YYYY-MM-DD")&&(e=l()(new Date).format("HH:mm:ss")),e}}},g=b,_=(s("272e"),s("2877")),S=Object(_["a"])(g,i,r,!1,null,"78b28c4d",null);t["a"]=S.exports},7619: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)}}},l=o,c=(s("2666"),s("2877")),u=Object(c["a"])(l,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="},"7b2e":function(e,t,s){"use strict";s("4aad")},"7d51":function(e,t,s){},"7f99":function(e,t,s){"use strict";s("85c2")},"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("1da1")),n=s("ade3"),o=s("1cc7"),l=s("a488"),c=s("5a0c"),u=s.n(c),d=s("7676"),m=s.n(d),p=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(p["z"])({organId:t}).then((function(e){200==e.code&&(i.cooperationList=e.data)})),Object(p["o"])({organId:t}).then((function(e){200==e.code&&(i.addList=e.data)})),Object(l["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,l){var c,d;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:c=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 c="PROGRESS",i.abrupt("break",17);case 11:return c="DRAFT",i.abrupt("break",17);case 13:return c=null,i.abrupt("break",17);case 15:return c="DRAFT",i.abrupt("break",17);case 17:if(d={},d.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:c,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"])(d).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"])(d).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:m()(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:m()(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:m()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,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},"85c2":function(e,t,s){},"86cd":function(e,t,s){},"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"),l=Object(o["a"])(n,a,i,!1,null,"21abf8f1",null);t["a"]=l.exports},"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("1da1")),n=s("5530"),o=s("b85c"),l=(s("ac6a"),s("456d"),s("160b")),c=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)},d=[],m=(s("386d"),s("7f7f"),s("333d")),p={props:["visible","organId"],components:{pagination:m["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var 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(l["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=p,f=(s("1aa8"),s("2877")),y=Object(f["a"])(h,u,d,!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,T=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)},C=[],F=s("1cc7"),I={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(c["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(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["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=I,L=Object(f["a"])(O,T,C,!1,null,null,null),P=L.exports,j={props:["organId"],components:{selectMusic:v,selectItem:x,mergedStudents:P},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(c["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var 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(l["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=j,G=(s("f089"),Object(f["a"])(D,a,i,!1,null,"4c59032c",null));t["a"]=G.exports},"8b0a":function(e,t,s){},"8ea54":function(e,t,s){},"8f19":function(e,t,s){"use strict";s("7140")},"8f2a":function(e,t,s){"use strict";s.r(t);var a,i=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{},[s("div",{staticClass:"m-core"},[s("div",{staticClass:"topWrap"},[s("el-form",{attrs:{inline:!0,model:e.topForm}},[s("el-form-item",{attrs:{label:"班级类型"}},[s("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.changeMixClass},model:{value:e.topForm.classType,callback:function(t){e.$set(e.topForm,"classType","string"===typeof t?t.trim():t)},expression:"topForm.classType"}},e._l(e.musicClassTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),"PROGRESS"==e.team_status?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseSchedule/coursePostpone",expression:"'courseSchedule/coursePostpone'"}],staticClass:"newBand",staticStyle:{width:"120px"},on:{click:e.postpone}},[e._v("\n 课程顺延\n ")]):e._e(),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{ref:"multipleTable",attrs:{data:e.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},["PROGRESS"==e.team_status?s("el-table-column",{attrs:{selectable:e.checkSignPostpone,type:"selection",width:"55"}}):e._e(),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(e._s(t.row.studentNum)+"人")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?s("div",e._l(t.row.classGroupTeacherMapperList,(function(t,a){return"BISHOP"==t.teacherRole?s("p",{key:a},[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()})),0):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?s("div",e._l(t.row.classGroupTeacherMapperList,(function(t,a){return"TEACHING"==t.teacherRole?s("p",{key:a},[e._v("\n "+e._s(t.userName)+"\n ")]):e._e()})),0):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.currentClassTimes))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.totalClassTimes))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"是否冻结"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("yesOrNo")(t.row.lockFlag)))])]}}])}),e._v(" "),"PREPARE"==e.team_status||"PROGRESS"==e.team_status?s("el-table-column",{attrs:{align:"center",width:"240px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return 1!=t.row.lockFlag?[s("div",["MUSIC_NETWORK"!=t.row.type?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("学员调整")]):e._e(),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/classGroupUpdate",expression:"'classGroup/classGroupUpdate'"}],attrs:{type:"text"},on:{click:function(s){return e.resetTeacher(t.row)}}},[e._v("老师调整")]),e._v(" "),(e.permission("classGroup/classGroupUpdate")||e.permission("classGroup/revisionClassGroup")||e.permission("classGroup/revisionAddClassGroup"))&&t.row.studentNum>0&&"PROGRESS"==e.team_status?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.classAdjustment(t.row)}}},[e._v("排课")]):e._e(),e._v(" "),"0"!=t.row.studentNum&&"0"!=t.row.totalClassTimes||!e.permission("classGroup/delSingle")?e._e():s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeClass(t)}}},[e._v("删除")]),e._v(" "),"PROGRESS"==e.team_status&&e.permission("courseSchedule/coursePostpone")&&e.checkSignPostpone(t.row)?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.signPostpone(t.row)}}},[e._v("顺延课程")]):e._e()],1)]:void 0}}],null,!0)}):e._e()],1),e._v(" "),s("div",{staticClass:"floor"},[s("div",{staticClass:"left"},[e.permission("classGroup/mergeClassSplitClassAffirm")&&"PROGRESS"==e.team_status?s("div",{staticClass:"add",on:{click:function(t){e.studentResetVisiable=!0}}},[e._v("\n 拆分班级\n ")]):e._e()]),e._v(" "),"PREPARE"==e.team_status||"PROGRESS"==e.team_status?s("div",{staticClass:"right"},[s("div",{staticClass:"add",on:{click:e.temporary}},[e._v("新建临时班")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("NORMAL")}}},[e._v("新建声部班")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MIX")}}},[e._v("新建合奏班")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MUSIC_NETWORK")}}},[e._v("\n 新建乐团网管课\n ")]),e._v(" "),s("div",{staticClass:"add",on:{click:function(t){e.newClassVisible=!0}}},[e._v("基础技能班")])]):e._e()])],1)]),e._v(" "),s("el-dialog",{attrs:{title:"老师调整",width:"750px",visible:e.teacherVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.teacherVisible=t}}},[e.teacherVisible&&e.teacherDetail?s("changeTeacher",{attrs:{classGroupId:e.activeClass,activeType:e.activeType,teacherList:e.teacherList,cooperationList:e.cooperationList,detail:e.teacherDetail},on:{submited:e.teacherSubmited,close:function(t){e.teacherVisible=!1}}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:e.isOnlyChangeUser?"学员调整":"新建班级",width:"750px",visible:e.studentVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentVisible=t}}},[s("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,teacherList:e.teacherList,cooperationList:e.cooperationList,isOnlyChangeUser:e.isOnlyChangeUser,isStudentRemove:e.isStudentRemove,activeType:e.activeType},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:function(t){return e.searchStudent(e.activeClass)},submited:e.studentSubmited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"班级排课",width:"1200px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[e.infoVisible?s("classroomSetting",{attrs:{classType:e.classType,teacherList:e.teacherList,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,cooperationList:e.cooperationList,detail:e.infoDetail,studentSubmitedData:e.studentSubmitedData},on:{close:function(t){e.infoVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"新增合奏班",width:"700px",visible:e.MixVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.MixVisible=t}}},[s("div",{staticClass:"studentMask"},[s("div",{staticClass:"left"},[s("div",{staticClass:"wrap"},[s("el-input",{attrs:{placeholder:"请输入合奏班名称"},model:{value:e.className,callback:function(t){e.className="string"===typeof t?t.trim():t},expression:"className"}})],1),e._v(" "),s("div",{staticClass:"chioseStudentList"},[s("h4",{staticStyle:{"padding-left":"10px"}},[e._v("当前已选学生")]),e._v(" "),e._l(e.activeListStudent,(function(t,a){return s("div",{key:a,staticClass:"studentItem"},[e._v("\n "+e._s(t.name)+"\n "),s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeSiginforMix(t)}}},[e._v("删除班级")])],1)}))],2)]),e._v(" "),s("div",{staticClass:"right"},[s("div",{staticClass:"tableList"},[s("el-table",{ref:"mixList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.singleList},on:{"selection-change":e.SelectionMix}},[s("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",width:"120",align:"center",label:"学员声部"}})],1)],1)])]),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNewClass?e._e():s("el-button",{attrs:{type:"primary"},on:{click:e.addSomeStudent}},[e._v("确 定")]),e._v(" "),e.isNewClass?s("el-button",{attrs:{type:"primary"},on:{click:e.setInfoMsg}},[e._v("确 定")]):e._e()],1)]),e._v(" "),s("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[s("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"120px"}},[s("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[s("el-input",{staticStyle:{width:"180px"},model:{value:e.newClassForm.className,callback:function(t){e.$set(e.newClassForm,"className",t)},expression:"newClassForm.className"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请选择班级类型",trigger:"blur"}],prop:"type"}},[s("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.highTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop","string"===typeof t?t.trim():t)},expression:"newClassForm.bishop"}},e._l(e.teacherList,(function(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),e._v(" "),s("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"HIGH_ONLINE"==e.newClassForm.type},model:{value:e.newClassForm.expectStudentNum,callback:function(t){e.$set(e.newClassForm,"expectStudentNum",t)},expression:"newClassForm.expectStudentNum"}})],1),e._v(" "),"HIGH_ONLINE"!=e.newClassForm.type&&"HIGH"!=e.newClassForm.type&&e.newClassForm.type?s("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching","string"===typeof t?t.trim():t)},expression:"newClassForm.teaching"}},e._l(e.cooperationList,(function(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._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"==e.newClassForm.type?s("el-form-item",{attrs:{label:"可报名声部",prop:"memo",rules:[{required:!0,message:"请选择可报名声部",trigger:"blur"}]}},[s("select-all",{attrs:{multiple:"",clearable:""},on:{change:e.changeMemo},model:{value:e.newClassForm.memo,callback:function(t){e.$set(e.newClassForm,"memo","string"===typeof t?t.trim():t)},expression:"newClassForm.memo"}},e._l(e.soundList,(function(t,a){return s("el-option",{key:a,attrs:{disabled:t.disabled||e.appoint,label:t.name,value:t.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?s("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"网络教室声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:""},model:{value:e.newClassForm.subjectId,callback:function(t){e.$set(e.newClassForm,"subjectId",t)},expression:"newClassForm.subjectId"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer 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(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")])],1)])],1),e._v(" "),s("el-dialog",{attrs:{title:"学员列表",visible:e.studentListModalVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[s("viewStudentList",{attrs:{list:e.studentListModal,showOk:!0},on:{close:function(t){e.studentListModalVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"学员班级调整",width:"800px",visible:e.studentResetVisiable},on:{"update:visible":function(t){e.studentResetVisiable=t}}},[e.studentResetVisiable?s("studentResetView",{attrs:{teacherList:e.teacherList,courseTypesByType:e.courseTypesByType,classList:e.mergeList},on:{close:e.closeStudentReset}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"课程顺延",visible:e.postponeVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.postponeVisible=t}}},[s("el-form",{ref:"postponeForm",attrs:{model:e.postponeForm,rules:e.postponeRules}},[s("el-form-item",{attrs:{label:"开始日期",prop:"stopTime"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.bigin,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.stopTime,callback:function(t){e.$set(e.postponeForm,"stopTime","string"===typeof t?t.trim():t)},expression:"postponeForm.stopTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"顺延日期",prop:"resetTime"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.options,"value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.postponeForm.resetTime,callback:function(t){e.$set(e.postponeForm,"resetTime","string"===typeof t?t.trim():t)},expression:"postponeForm.resetTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"跳过节假日"}},[s("el-checkbox",{model:{value:e.postponeForm.holiday,callback:function(t){e.$set(e.postponeForm,"holiday","string"===typeof t?t.trim():t)},expression:"postponeForm.holiday"}})],1)],1),e._v(" "),s("span",{staticStyle:{color:"#f56c6c"}},[e._v("注意:将会把所选班级的课表,「开始日期」之后的全部未开始课程;\n 调整到「顺延日期」之后重新排课,可以勾选跳过节假日;")]),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.postponeVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitInfo}},[e._v("确 定")])],1)],1)],1)},r=[],n=(s("ac6a"),s("7f7f"),s("5530")),o=(s("96cf"),s("1da1")),l=s("b85c"),c=s("1cc7"),u=s("5137"),d=s("d349"),m=(s("99b4"),s("c466")),p=s("5a0c"),h=s.n(p),f=(s("bc3a"),s("92e3")),y=s("a792"),v=s("f927"),b=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-position":"right","label-width":"80px;",inline:!0}},[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),e._v(" "),"HIGH"!=e.type&&"HIGH_ONLINE"!=e.type&&"MUSIC_NETWORK"!=e.type?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):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},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.subresetTeacher}},[e._v("确 定")])],1)],1)},g=[],_={props:["teacherList","cooperationList","detail","activeType"],data:function(){return{form:{coreTeacher:"",assistant:[]}}},computed:{type:function(){var e;return null===(e=this.detail)||void 0===e?void 0:e.type}},mounted:function(){var e=this.detail;for(var t in e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.form.coreTeacher=String(e.classGroupTeacherMapperList[t].userId)),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.form.assistant.push(e.classGroupTeacherMapperList[t].userId)},methods:{subresetTeacher:function(){var e=this;this.$refs.form.validate((function(t){t&&e.$emit("submited",Object(n["a"])({},e.form))}))}}},S=_,w=s("2877"),k=Object(w["a"])(S,b,g,!1,null,null,null),x=k.exports,T=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[5==e.classType?s("el-row",[s("el-form-item",{attrs:{label:"班级名称",prop:"className","label-width":"88px",rules:[{required:!0,message:"请填写班级名称"}]}},[s("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.className,callback:function(t){e.$set(e.form,"className","string"===typeof t?t.trim():t)},expression:"form.className"}})],1)],1):e._e(),e._v(" "),Object.keys(e.allClasss).length?s("el-form-item",{staticStyle:{display:"block"},attrs:{label:"排课类型","label-width":"88px"}},e._l(e.allClasss,(function(t,a){return s("el-tag",{key:a,staticClass:"tag",attrs:{effect:e.form.classs[a]?"dark":"plain"},on:{click:function(t){return e.changeTag(a)}}},[e._v(e._s(e.courseTypeListByName[a]))])})),1):e._e(),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂无可排课时长"}}):e._e(),e._v(" "),s("el-collapse",{on:{change:e.collapseChange},model:{value:e.collapses,callback:function(t){e.collapses=t},expression:"collapses"}},e._l(e.form.classs,(function(t,a,i){return s("el-collapse-item",{key:a,attrs:{name:i},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",{staticClass:"title"},[e._v("\n "+e._s(e.courseTypeListByName[a])+",\n "),s("span",[e._v("可排课时长:"+e._s(e.musicCourseSettings[a])+"分钟")]),e._v(" "),s("span",{staticStyle:{color:"#333"}},[e._v("已排课时长:"+e._s(e.musicSurplus[a])+"分钟")])])]},proxy:!0}],null,!0)},[e._v(" "),s("courseItem",{attrs:{surplustime:e.surplustime[a],teacherList:e.teacherList,activeType:e.activeType,cooperationList:e.cooperationList,coreid:e.coreid,assistant:e.assistant,type:a,form:t,prices:e.prices,holidays:e.holidays,selectPrice:e.selectPrices?e.selectPrices[a]:""},on:{setUserTime:e.setUserTime}})],1)})),1)],1),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:e.isEmpty},on:{click:e.submit}},[e._v("下一步")])],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"班级预览",visible:e.previewVisible,"append-to-body":"",width:"900px"},on:{"update:visible":function(t){e.previewVisible=t}}},[s("classrome-preview",{attrs:{types:e.form.classs,details:e.previewList,courseTypeListByName:e.courseTypeListByName,teacherList:e.teacherList,cooperationList:e.cooperationList,coreTeacher:e.form.coreTeacher,assistant:e.form.assistant}}),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.previewVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit("confirmGenerate")}}},[e._v("确认排课")])],1):e._e()],1)],1)},C=[],F=(s("456d"),function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.form&&e.form.cycle?s("el-table",{attrs:{data:e.form.cycle,"show-header":!1}},[s("el-table-column",{scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".coreTeacher","label-width":"88px",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:t.row.coreTeacher,callback:function(s){e.$set(t.row,"coreTeacher","string"===typeof s?s.trim():s)},expression:"scope.row.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),e._v(" "),"HIGH"!=e.activeType&&"HIGH_ONLINE"!=e.activeType&&"MUSIC_NETWORK"!=e.activeType&&"HIGH"!=e.type&&"HIGH_ONLINE"!=e.type&&"MUSIC_NETWORK"!=e.type?s("el-form-item",{attrs:{prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:"","collapse-tags":""},model:{value:t.row.assistant,callback:function(s){e.$set(t.row,"assistant","string"===typeof s?s.trim():s)},expression:"scope.row.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):e._e(),e._v(" "),s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".time",rules:[{required:!0,message:"请选择课程时长"}],"inline-message":""}},[s("el-select",{staticStyle:{width:"180px !important"},attrs:{placeholder:"请选择课程时长",clearable:"",disabled:!!e.selectPrice,filterable:""},on:{change:function(s){e.startTimeChange(t,s)}},model:{value:t.row.time,callback:function(s){e.$set(t.row,"time","string"===typeof s?s.trim():s)},expression:"scope.row.time"}},e._l(e.pricesArray,(function(a,i){return s("el-option",{key:i,attrs:{disabled:e.surplustime+(parseFloat(t.row.time)||0)<a,label:a,value:a}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".expectCourseNum",rules:[{required:!0,message:"请输入预计课时数"},{pattern:/^\+?[1-9]\d*$/,message:"请输入大于0的正整数"}],"inline-message":""}},[s("el-input",{staticStyle:{width:"180px !important"},attrs:{type:"number",placeholder:"请输入预计课数"},on:{input:function(s){e.getUseTime(t.row)}},model:{value:t.row.expectCourseNum,callback:function(s){e.$set(t.row,"expectCourseNum","string"===typeof s?s.trim():s)},expression:"scope.row.expectCourseNum"}})],1),e._v(" "),s("el-form-item",{attrs:{"inline-message":"",rules:[{required:!0,message:"请选择循环周期"}],prop:"classs."+e.type+".cycle."+t.$index+".dayOfWeek"}},[s("el-select",{staticStyle:{width:"180px !important"},attrs:{placeholder:"请选择循环周期",clearable:"",filterable:""},on:{change:function(s){e.getUseTime(t.row)}},model:{value:t.row.dayOfWeek,callback:function(s){e.$set(t.row,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"scope.row.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".startClassTime",rules:[{required:!0,message:"请选择开始时间"}],"inline-message":""}},[s("el-time-picker",{staticStyle:{width:"180px !important"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"请选择开始时间","picker-options":{selectableRange:["04:30:00 - 23:59:59"]}},on:{change:function(s){return e.timeChange(t.row)}},model:{value:t.row.startClassTime,callback:function(s){e.$set(t.row,"startClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.startClassTime"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".endClassTime","inline-message":""}},[s("el-time-picker",{staticStyle:{width:"180px !important"},attrs:{format:"HH:mm",disabled:"","value-format":"HH:mm",placeholder:"请选择结束时间","picker-options":{selectableRange:[t.row.startClassTime+":00 - 23:59:59"]}},model:{value:t.row.endClassTime,callback:function(s){e.$set(t.row,"endClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.endClassTime"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".holiday",rules:[{required:!0,message:"请选择是否跳过节假日"}],"inline-message":""}},[s("el-select",{staticStyle:{width:"180px !important"},attrs:{placeholder:"是否跳过节假日",filterable:""},on:{change:function(s){return e.holidayChange(t.row)}},model:{value:t.row.holiday,callback:function(s){e.$set(t.row,"holiday","string"===typeof s?s.trim():s)},expression:"scope.row.holiday"}},[s("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),s("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),s("el-form-item",{attrs:{"inline-message":"",prop:"classs."+e.type+".cycle."+t.$index+".startDate",rules:[{required:!0,message:"请选择排课起始时间"}]}},[s("el-date-picker",{staticStyle:{width:"180px !important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},on:{change:function(s){e.changeStartDate(s,t.row)}},model:{value:t.row.startDate,callback:function(s){e.$set(t.row,"startDate","string"===typeof s?s.trim():s)},expression:"scope.row.startDate"}})],1),e._v(" "),s("el-form-item",{attrs:{"inline-message":"",prop:"classs."+e.type+".cycle."+t.$index+".endDate",rules:[{required:!0,message:"请选择排课结束时间"}]}},[s("el-date-picker",{staticStyle:{width:"180px !important"},attrs:{disabled:!0,"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:t.row.endDate,callback:function(s){e.$set(t.row,"endDate","string"===typeof s?s.trim():s)},expression:"scope.row.endDate"}})],1),e._v(" "),e.form.cycle.length>1?s("i",{staticClass:"close-icon el-icon-circle-close",on:{click:function(s){return e.remove(t.$index,t)}}}):e._e()],1)]}}],null,!1,1261250874)})],1):e._e(),e._v(" "),s("el-button",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{icon:"el-icon-circle-plus-outline",type:"info",size:"small",plain:"",disabled:e.surplustime<(e.selectPrice||Math.min.apply(Math,e.pricesArray))},on:{click:e.create}},[e._v("添加循环")])],1)}),I=[],O=(s("6762"),s("2fdb"),s("28a5"),{}),L=Object(l["a"])(f["h"]);try{for(L.s();!(a=L.n()).done;){var P=a.value;O[P.value]=P.label}}catch(gt){L.e(gt)}finally{L.f()}var j,D={props:["form","type","surplustime","prices","selectPrice","holidays","teacherList","activeType","cooperationList","coreid","assistant"],data:function(){return{classTimeListByType:O,useTime:0}},mounted:function(){},computed:{pickerOptions:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},weekDateList:function(){return[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]},pricesArray:function(){return(this.prices[this.type]||"").split(",").filter((function(e){return!!e}))}},methods:{updateUseTime:function(){var e,t=0,s=Object(l["a"])(this.form.cycle);try{for(s.s();!(e=s.n()).done;){var a=e.value;t+=(a.time||0)*(a.expectCourseNum||0)}}catch(gt){s.e(gt)}finally{s.f()}this.useTime=t,this.$emit("setUserTime",t,this.type)},create:function(){if(this.surplustime<=this.useTime)this.$message.error("已排课时长使用完毕,请修改预计课时数");else{var e={coreTeacher:this.coreid,assistant:this.assistant};this.selectPrice&&(e.time=this.selectPrice),this.form.cycle.push(e),this.updateUseTime()}},remove:function(e){this.form.cycle.splice(e,1),this.updateUseTime()},startTimeChange:function(e,t){if(this.getUseTime(e.row),e.row.time&&e.row.startClassTime){var s=h()(new Date).format("YYYY-MM-DD");this.$set(e.row,"endClassTime",Object(m["a"])(s,e.row.startClassTime,e.row.time))}else this.$set(e.row,"endClassTime","");if(t){var a=t*Math.max(e.row.expectCourseNum||0,0);this.$set(e.row,"expectCourseNum",parseInt((this.surplustime-this.useTime+a)/t))}else this.$set(e.row,"expectCourseNum",0);this.getUseTime(e.row)},timeChange:function(e){if(e.time&&e.startClassTime){var t=h()(new Date).format("YYYY-MM-DD");this.$set(e,"endClassTime",Object(m["a"])(t,e.startClassTime,e.time))}else this.$set(e,"endClassTime","");this.updateUseTime()},holidayChange:function(e){this.updateEndTime(e)},getUseTime:function(e){var t=this;this.updateEndTime(e),this.useTime=0,this.form.cycle.forEach((function(e){t.useTime+=(e.expectCourseNum?parseInt(e.expectCourseNum):0)*parseInt(e.time)})),this.updateUseTime()},addData:function(e,t){var s,a=this.$helpers.dayjs,i=a(e).toDate();return s=t-i.getDay()>=0?t-i.getDay():t-i.getDay()+7,s},updateEndTime:function(e){if(console.log(e),e.dayOfWeek&&e.startDate&&"boolean"===typeof e.holiday){var t=7==e.dayOfWeek?0:e.dayOfWeek,s=Math.max(e.expectCourseNum,0),a=h()(e.startDate);if(e.holiday)while(s>0)t!=a.get("day")||this.holidays.includes(a.format("YYYY-MM-DD"))||s--,a=a.add(1,"day"),0===s&&(a=a.subtract(1,"day"));else while(s>0)t==a.get("day")&&s--,a=a.add(1,"day"),0===s&&(a=a.subtract(1,"day"));var i=this.addData(a.format("YYYY-MM-DD"),e.dayOfWeek);console.log(i),this.$set(e,"endDate",a.format("YYYY-MM-DD"))}else this.$set(e,"endDate","")},changeStartDate:function(e,t){this.updateEndTime(t),this.updateUseTime()}}},G=D,$=(s("0cc3"),Object(w["a"])(G,F,I,!1,null,"cabe2220",null)),N=$.exports,A=s("704d"),R=s("a6e9"),E=s("1672"),M=s("2ef0"),V=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.typelist}},[s("el-table-column",{attrs:{label:"课程类型",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"课时数",prop:"surplus"}}),e._v(" "),s("el-table-column",{attrs:{label:"总排课时长(分钟)",prop:"courseTotalMinuties"}}),e._v(" "),s("el-table-column",{attrs:{label:"剩余时长(分钟)",prop:"surplusTime"}})],1),e._v(" "),s("div",{staticStyle:{color:"red","font-weight":"bold",margin:"20px 0"}},[e._v("确认排课后剩余时长将被系统删除,不可排课")]),e._v(" "),s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.details,"max-height":"300px"}},[s("el-table-column",{attrs:{label:"主教老师",prop:"actualTeacherName"}}),e._v(" "),s("el-table-column",{attrs:{label:"助教老师",prop:"teachingTeacherNames"}}),e._v(" "),s("el-table-column",{attrs:{label:"课程类型",prop:"type"},scopedSlots:e._u([{key:"default",fn:function(t){return s("span",{},[e._v(e._s(e.courseTypeListByName[t.row.type]))])}}])}),e._v(" "),s("el-table-column",{key:"week",attrs:{label:"周次"},scopedSlots:e._u([{key:"default",fn:function(t){return s("span",{},[e._v(e._s(e.weeks[e.$helpers.dayjs(t.row.startClassTime).day()]))])}}])}),e._v(" "),s("el-table-column",{attrs:{label:"开始时间",prop:"startClassTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.startClassTime))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{key:"time",attrs:{label:"课程时长(分钟)"},scopedSlots:e._u([{key:"default",fn:function(t){return s("span",{},[e._v(e._s(e.getTimers(t.row)))])}}])})],1)],1)},q=[],U={props:{types:{type:Object,default:{}},details:{type:Array,default:[]},courseTypeListByName:{type:Object,default:{}},teacherList:{type:Array,default:[]},cooperationList:{type:Array,default:[]},coreTeacher:{type:String},assistant:{type:Array,default:[]}},data:function(){return{weeks:{0:"星期天",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"}}},computed:{coreTeacherName:function(){var e,t="",s=Object(l["a"])(this.teacherList);try{for(s.s();!(e=s.n()).done;){var a=e.value;if(this.coreTeacher==a.id){t=a.realName;break}}}catch(gt){s.e(gt)}finally{s.f()}return t},assistantName:function(){var e,t=[],s=Object(l["a"])(this.cooperationList);try{for(s.s();!(e=s.n()).done;){var a=e.value;this.assistant.includes(a.id)&&t.push(a.realName)}}catch(gt){s.e(gt)}finally{s.f()}return t.join(" ")},typelist:function(){var e=[];for(var t in this.types)if(Object.hasOwnProperty.call(this.types,t)){var s,a=this.types[t],i=0,r=0,n=Object(l["a"])(a.cycle);try{for(n.s();!(s=n.n()).done;){var o=s.value;r+=parseFloat(o.expectCourseNum),i+=parseFloat(o.expectCourseNum)*parseFloat(o.time)}}catch(gt){n.e(gt)}finally{n.f()}i=a.courseTotalMinuties-i,e.push({name:this.courseTypeListByName[t],cycles:a.cycle.length,courseTotalMinuties:a.courseTotalMinuties,surplus:r,surplusTime:i})}return e}},mounted:function(){console.log(this)},methods:{getTimers:function(e){var t=Object(m["b"])(h()(e.classDate).format("YYYY-MM-DD"),h()(e.startClassTime).format("HH:mm"),h()(e.endClassTime).format("HH:mm"));return t}}},B=U,H=Object(w["a"])(B,V,q,!1,null,"6c3e4637",null),z=H.exports,Y={},W=Object(l["a"])(f["h"]);try{for(W.s();!(j=W.n()).done;){var J=j.value;Y[J.value]=J.label}}catch(gt){W.e(gt)}finally{W.f()}var K,Q=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var a,i=Object(l["a"])(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;s.push({userId:r,teacherRole:"TEACHING"})}}catch(gt){i.e(gt)}finally{i.f()}}return s},X={props:["activeType","courseTypeList","musicGroupId","detail","studentSubmitedData","classType","musicGroupPaymentCalenderDtos","classIdList","classGroupStudents","selectPrices","classCouresTimeList","teacherList","cooperationList"],components:{courseItem:N,"classrome-preview":z},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},allClasss:{},prices:{},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:Y,musicCourseSettings:{},musicSurplus:{},previewVisible:!1,previewList:[],holidays:[]}},watch:{courseTypeList:function(){this.setCourseTypeListByName()},studentSubmitedData:function(){this.formatClasss()},detail:function(){this.formatClasss()}},computed:{surplustime:function(){var e={};for(var t in this.form.classs)if(this.form.classs.hasOwnProperty(t)){var s=this.form.classs[t];e[t]=s.courseTotalMinuties}return e},isEmpty:function(){return Object(M["isEmpty"])(this.form.classs)},musicGroup:function(){return A["a"].state.musicGroup}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.musicGroupId}});case 3:return e.next=5,Object(E["i"])({organId:this.musicGroup.organId});case 5:t=e.sent,this.prices=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:this.setCourseTypeListByName(),this.formatClasss(),this.FetchHoliday();case 14:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{FetchHoliday: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(R["b"])({group:"holiday"});case 3:t=e.sent,this.holidays=JSON.parse(t.data[0].paranValue),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}(),setCourseTypeListByName:function(){var e,t={},s=Object(l["a"])(this.courseTypeList);try{for(s.s();!(e=s.n()).done;){var a=e.value;t[a.value]=a.label}}catch(gt){s.e(gt)}finally{s.f()}this.courseTypeListByName=t},formatClasss:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,r,o,u,d,m,p,h,f,y,v,b;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.coreid="",this.assistant=[],this.detail){a=this.detail.classGroupTeacherMapperList,i=Object(l["a"])(a||[]);try{for(i.s();!(r=i.n()).done;)o=r.value,"BISHOP"===o.teacherRole&&(this.coreid=String(o.userId)),"TEACHING"===o.teacherRole&&this.assistant.push(o.userId)}catch(gt){i.e(gt)}finally{i.f()}this.$set(this.form,"coreTeacher",String(this.coreid)),this.$set(this.form,"assistant",this.assistant)}if(u=this.detail||null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),d=null===(s=this.detail)||void 0===s?void 0:s.id,u||d){e.next=7;break}return e.abrupt("return");case 7:if(m={},5!=this.classType){e.next=12;break}m.data=this.classCouresTimeList,e.next=21;break;case 12:return e.prev=12,e.next=15,Object(c["kb"])({musicGroupId:this.musicGroupId,studentIds:u,classGroupId:d});case 15:m=e.sent,e.next=21;break;case 18:e.prev=18,e.t0=e["catch"](12),console.log(e.t0);case 21:if(!(Object.keys(m).length<=0)){e.next=23;break}return e.abrupt("return");case 23:for(p in this.musicCourseSettings=m.data,this.musicCourseSettings)this.musicSurplus[p]=0;h={},f=Object(l["a"])(this.courseTypeList);try{for(f.s();!(y=f.n()).done;)v=y.value,b=v.value,m.data[b]&&(h[b]={courseTotalMinuties:m.data[b],cycle:[{time:this.selectPrices?this.selectPrices[b]:void 0,coreTeacher:this.coreid,assistant:this.assistant}]})}catch(gt){f.e(gt)}finally{f.f()}this.allClasss=Object(n["a"])({},h),this.$set(this.form,"classs",h);case 30:case"end":return e.stop()}}),e,this,[[12,18]])})));function t(){return e.apply(this,arguments)}return t}(),changeTag:function(e){var t=Object(n["a"])({},this.form.classs);t[e]?delete t[e]:t[e]=this.allClasss[e],this.$set(this.form,"classs",t)},submit:function(e){var t=this;for(var s in this.musicCourseSettings)if(Object.hasOwnProperty.call(this.musicCourseSettings,s)){var a=this.musicCourseSettings[s],i=this.musicSurplus[s];if(i>a)return void this.$message.error(this.courseTypeListByName[s]+" 课程时长不足")}this.$refs.form.validate(function(){var s=Object(o["a"])(regeneratorRuntime.mark((function s(a){var i,r,n,o,l,u;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(!a){s.next=61;break}for(n in i=[],r=function(s){if(t.form.classs.hasOwnProperty(s)){var a,r,n,o,l=t.form.classs[s],c={type:t.detail?void 0:t.activeType,courseType:s,classGroupName:(null===(a=t.studentSubmitedData)||void 0===a?void 0:a.name)||(null===(r=t.detail)||void 0===r?void 0:r.name)||t.form.className,classGroupId:null===(n=t.detail)||void 0===n?void 0:n.id,musicGroupId:t.musicGroupId,startDate:l.courseTime,classGroupTeacherMapperList:Q(t.form.coreTeacher,t.form.assistant),holiday:l.holiday,students:null===(o=t.studentSubmitedData)||void 0===o?void 0:o.seleched,courseTimes:l.cycle.length,courseTimeDtoList:l.cycle.map((function(e){return{classGroupTeacherMapperList:t.formatTeacher(e),courseType:s,dayOfWeek:e.dayOfWeek,endClassTime:e.endClassTime,startClassTime:e.startClassTime,startDate:e.startDate,endDate:e.endDate,holiday:e.holiday,expectCourseNum:e.expectCourseNum}}))};e&&"string"===typeof e&&(c[e]=!0),i.push(c)}},t.form.classs)r(n);if(s.prev=4,!t.detail){s.next=26;break}return s.next=8,Object(c["r"])(i);case 8:if(o=s.sent,t.previewVisible=!1,207!=o.code){s.next=19;break}return s.next=13,t.$confirm(o.msg||"当前课程课酬预计为0,是否继续","提示",{type:"warning"});case 13:return i.forEach((function(e){e.allowZeroSalary=!0})),s.next=16,Object(c["r"])(i);case 16:return t.$listeners.submited(),t.$listeners.close(),s.abrupt("return");case 19:if(206!=o.code){s.next=23;break}return t.previewVisible=!0,t.previewList=o.data,s.abrupt("return");case 23:t.$message.success("排课修改成功"),s.next=52;break;case 26:if(1!=t.classType){s.next=32;break}return s.next=29,Object(c["wc"])(i);case 29:t.$message.success("排课成功"),s.next=52;break;case 32:if(2!=t.classType&&3!=t.classType&&4!=t.classType){s.next=38;break}return s.next=35,Object(c["vc"])(i);case 35:t.$message.success("排课成功"),s.next=52;break;case 38:if(5!=t.classType){s.next=52;break}return l={},l.musicGroupPaymentCalenderDtos=t.musicGroupPaymentCalenderDtos,l.classGroup4MixDtos=i,l.classGroupIds=t.classIdList,l.studentIds=t.studentSubmitedData.seleched,l.classGroupStudents=t.classGroupStudents,l.classCourseMinuteMap=t.selectPrices,s.next=48,Object(c["Wb"])(l);case 48:return u=t.$parent.$parent.$parent.$parent.$parent.$parent.$parent,u.closeStudentReset(),u.getList(),s.abrupt("return");case 52:t.$listeners.submited(),t.$listeners.close(),s.next=59;break;case 56:s.prev=56,s.t0=s["catch"](4),console.log(s.t0);case 59:s.next=62;break;case 61:t.$message.error("请先填写所有表单");case 62:case"end":return s.stop()}}),s,null,[[4,56]])})));return function(e){return s.apply(this,arguments)}}())},collapseChange:function(e){this.collapses=e},changecoreTeacher:function(e){},updateMusicSurplus:function(){},setUserTime:function(e,t){this.$set(this.musicSurplus,t,e||0),this.$forceUpdate()},formatTeacher:function(e){var t;console.log(e);var s=[];if(e.coreTeacher){var a={teacherRole:"BISHOP"};a.userId=e.coreTeacher,s.push(a)}return(null===(t=e.assistant)||void 0===t?void 0:t.length)>0&&e.assistant.forEach((function(e){s.push({teacherRole:"TEACHING",userId:e})})),s}}},Z=X,ee=(s("8fca"),Object(w["a"])(Z,T,C,!1,null,"368ab3b3",null)),te=ee.exports,se=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"学员班级调整仅支持相同【班级类型】调整,且所选班级的剩余【课程类型】须完全相同若仅选择一个班级,则会为将所选学员从原班级中移除并新建班级",type:"warning",closable:!1,"show-icon":""}}),e._v(" "),s("classListGroup",{ref:"classListGroup",attrs:{classList:e.classList,courseTypesByType:e.courseTypesByType,teacherList:e.teacherList}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.gotoSecond}},[e._v("下一步")])],1),e._v(" "),s("div",{staticStyle:{clear:"both"}})],1)},ae=[],ie=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form}},e._l(e.form.classList,(function(t,a){return s("classListItem",{key:a,attrs:{index:a,item:t,form:e.form,classList:e.activeClassList},on:{deteleClass:e.deteleClass,filterClassList:e.filterClassList}})})),1),e._v(" "),s("el-dialog",{attrs:{visible:e.showSecondVisable,title:"缴费信息设置","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.showSecondVisable=t}}},[e.showSecondVisable?s("classPayList",{attrs:{classIdList:e.classIdList,addCourseType:e.addCourseType,courseTypesByType:e.courseTypesByType,classMaxCourseNumMap:e.classMaxCourseNumMap,form:e.form,teacherList:e.teacherList,payInfo:e.payInfo},on:{"update:payInfo":function(t){e.payInfo=t},"update:pay-info":function(t){e.payInfo=t},resetPayInfo:e.resetPayInfo,close:function(t){e.showSecondVisable=!1}}}):e._e()],1)],1)},re=[],ne=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级"+(e.index+1),type:"info",closable:e.index>0},on:{close:e.deteleClass}}),e._v(" "),s("el-form-item",{staticStyle:{"padding-left":"20px"},attrs:{label:"选择班级",rules:[{required:!0,message:"请选择班级",trigger:"change"}],prop:"classList."+e.index+".classId"}},[s("el-select",{staticStyle:{"margin-right":"20px"},attrs:{clearable:""},on:{change:e.changeValue},model:{value:e.item.classId,callback:function(t){e.$set(e.item,"classId",t)},expression:"item.classId"}},e._l(e.classList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id,disabled:e.disabled}})})),1),e._v(" "),s("el-button",{staticClass:"studentTitle",attrs:{type:"text",disabled:!e.item.classId},on:{click:e.lookStudentList}},[e._v("学员列表>>")])],1),e._v(" "),s("div",{staticClass:"infomsg"},[e.isNoCourse?s("div",{staticClass:"left"},[s("div",[e._v("暂无剩余课时")])]):s("div",{staticClass:"left"},[e._v("\n 剩余课时:\n "),e._l(e.item.courseList,(function(t,a){return s("div",{key:a},[s("p",{staticStyle:{"margin-right":"5px"}},[e._v("\n "+e._s(e._f("courseTypeFormat")(a))+":"),s("span",[e._v(e._s(t))]),e._v("节\n ")])])}))],2),e._v(" "),s("div",{staticClass:"right"},[e._v("\n 已选学员:\n "),s("p",[s("span",[e._v(e._s(e.item.studentList.length))]),e._v("人\n ")])])]),e._v(" "),s("el-dialog",{attrs:{title:"学员列表",width:"700px",visible:e.studentListModalVisible,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?s("viewStudentList",{attrs:{list:e.studentList,chioseList:e.item.studentList,showOk:!0,isChiose:!0},on:{close:e.closeStudentView}}):e._e()],1)],1)},oe=[],le=s("7a3c"),ce=s("0464"),ue={props:["item","index","classList","form"],components:{viewStudentList:y["a"],paymentCycle:le["a"],extraClass:ce["a"]},data:function(){return{studentList:[],studentListModalVisible:!1,organizationCourseUnitPriceSettingsByType:[],eclass:[],isNoCourse:!1,activeClassList:[]}},mounted:function(){this.activeClassList=this.classList},methods:{changeValue:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.item.studentList=[],!t){e.next=14;break}return e.prev=2,e.next=5,Object(c["U"])({classGroupId:t});case 5:s=e.sent,this.setClassCourse(s.data),this.$emit("filterClassList",t),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](2);case 12:e.next=16;break;case 14:this.setClassCourse({}),this.$emit("filterClassList",null);case 16:case"end":return e.stop()}}),e,this,[[2,10]])})));function t(t){return e.apply(this,arguments)}return t}(),deteleClass:function(){this.$emit("deteleClass",this.index)},lookStudentList:function(){var e=this;this.item.classId?Object(u["g"])({classGroupId:this.item.classId}).then((function(t){200==t.code&&(e.studentList=t.data.map((function(e){return{userId:e.userId,nickName:e.name,gender:e.gender,phone:e.parentsPhone,subjectNames:e.subjectName}})),e.studentListModalVisible=!0)})):this.$message.error("请先选择班级,再查询学生列表")},closeStudentView:function(e){this.item.studentList=e,this.studentListModalVisible=!1},setClassCourse:function(e){Object.keys(e).length>0?(this.item.courseList=e,this.isNoCourse=!1):this.isNoCourse=!0},priceChange:function(){},syncAllMoney:function(){}}},de=ue,me=(s("0ede"),Object(w["a"])(de,ne,oe,!1,null,"4678052b",null)),pe=me.exports,he=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{attrs:{title:"课程时长设置",type:"info",closable:!1}}),e._v(" "),s("el-form",{ref:"courseTimeForms",staticStyle:{"margin-top":"20px"},attrs:{model:e.courseTimeForm,inline:!0}},e._l(e.courseTimeForm.timeList,(function(t,a){return s("el-form-item",{key:a,attrs:{label:t.label,prop:"timeList."+a+".value",rules:[{required:!0,message:"请选择课程时长",trigger:"blur"}],"label-width":"100px"}},[s("el-select",{attrs:{clearable:"",placeholder:"请选择课程时长"},on:{change:function(s){return e.setCourseTime(t,s)}},model:{value:t.value,callback:function(s){e.$set(t,"value",s)},expression:"item.value"}},e._l(t.list,(function(e,t){return s("el-option",{key:t,attrs:{value:e,label:e}})})),1)],1)})),1),e._v(" "),e._l(e.form.classList,(function(t,a){return s("classPayListItem",{key:a,ref:"base",refInFor:!0,attrs:{payInfo:e.payInfo,courseTypesByType:e.courseTypesByType,item:t,index:a}})})),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.close}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.gotoLast}},[e._v("下一步")])],1),e._v(" "),s("div",{staticStyle:{clear:"both"}}),e._v(" "),s("el-dialog",{attrs:{visible:e.showLastVisable,title:"结果确认","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.showLastVisable=t}}},[e.showLastVisable?s("classSetting",{ref:"classSetting",attrs:{form:e.form,musicGroupPaymentCalenderDtos:e.musicGroupPaymentCalenderDtos,classType:5,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,studentSubmitedData:e.studentSubmitedData,classIdList:e.classIdList,classGroupStudents:e.classGroupStudents,selectPrices:e.classCourseMinuteMap,classCouresTimeList:e.classCouresTimeList,teacherList:e.teacherList,cooperationList:e.teacherList},on:{close:function(t){e.showLastVisable=!1}}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.showLastVisable=!1}}},[e._v("上一步")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitResetClass}},[e._v("确 定")])],1)],1)],2)},fe=[],ye=s("2909"),ve=s("ade3"),be=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"maskForm",staticClass:"maskForm",attrs:{model:e.maskForm,rules:e.maskRules,"label-position":"right","label-width":"120px",inline:!0}},[s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"课程名称",prop:"name"}},[s("el-input",{staticStyle:{width:"220px !important"},attrs:{placeholder:"请输入课程名称"},model:{value:e.maskForm.name,callback:function(t){e.$set(e.maskForm,"name","string"===typeof t?t.trim():t)},expression:"maskForm.name"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"主教老师",prop:"teacher"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:""},model:{value:e.maskForm.teacher,callback:function(t){e.$set(e.maskForm,"teacher","string"===typeof t?t.trim():t)},expression:"maskForm.teacher"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.maskForm.assistant,callback:function(t){e.$set(e.maskForm,"assistant","string"===typeof t?t.trim():t)},expression:"maskForm.assistant"}},e._l(e.teacherList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.id,label:e.realName}})})),1)],1)],1)],1),e._v(" "),s("viewStudentList",{attrs:{list:e.studentList,isChiose:!1,showOk:!1}})],1)],1)},ge=[],_e=(s("0a1a"),{props:["musicGroupPaymentCalenderDtos","form"],components:{viewStudentList:y["a"]},data:function(){return{maskForm:{teacher:null,assistant:null,name:null},maskRules:{name:[{required:!0,message:"请输入课程名称",trigger:"blur"}],teacher:[{required:!0,message:"请选择主教老师名称",trigger:"blur"}]},studentList:[],teacherList:[]}},mounted:function(){var e=this;this.$store.dispatch("setTeachers"),this.teacherList=this.selects.teachers,this.studentList=[],this.form.classList.forEach((function(t){e.studentList=e.studentList.concat(t.studentList)}))},methods:{submitResetClass:function(){}}}),Se=_e,we=Object(w["a"])(Se,be,ge,!1,null,"2eee3911",null),ke=we.exports,xe=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"班级"+(e.index+1),type:"info",closable:!1}}),e._v(" "),s("el-row",[s("el-col",{attrs:{span:12}},[s("p",{staticClass:"classTitle"},[e._v("\n 班级: "),s("span",[e._v(e._s(e.className))])])]),e._v(" "),s("el-col",{attrs:{span:12}},[s("div",{staticClass:"rightBtn"},[s("el-button",{staticClass:"studentTitle",attrs:{type:"text",disabled:!e.item.classId},on:{click:function(t){e.studentListModalVisible=!0}}},[e._v("学员列表>>")])],1)])],1),e._v(" "),s("div",{staticClass:"infomsg"},[Object.keys(e.item.courseList).length>0?s("div",{staticClass:"left"},[e._v("\n 剩余课时:\n "),e._l(e.item.courseList,(function(t,a){return s("div",{key:a},[s("p",{staticStyle:{"margin-right":"5px"}},[e._v("\n "+e._s(e._f("courseTypeFormat")(a))+":"),s("span",[e._v(e._s(t))]),e._v("节\n ")])])}))],2):s("div",{staticClass:"left"},[s("div",[e._v("暂无剩余课时")])]),e._v(" "),s("div",{staticClass:"right"},[e._v("\n 已选学员:\n "),s("p",[s("span",[e._v(e._s(e.item.studentList.length))]),e._v("人\n ")])])]),e._v(" "),Object.keys(e.payItem).length>0?s("extraClass",{ref:"eclass",staticClass:"extraClass",attrs:{form:e.corusePayList,isUserType:!0,isCommon:!1,isDisabled:!0,courseUnitPriceSettingsByType:e.courseTypesByType},on:{priceChange:e.priceChange,moneyChange:e.syncAllMoney}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?s("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isUserType:!0,isCommon:!0,isDisabled:!0}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?s("otherform",{ref:"other",attrs:{form:e.other}}):e._e(),e._v(" "),Object.keys(e.payItem).length>0?e._e():s("p",{staticClass:"noMore"},[e._v("\n 无需增加缴费周期\n ")]),e._v(" "),s("el-dialog",{attrs:{title:"学员列表",width:"700px",visible:e.studentListModalVisible,"append-to-body":"","destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[e.studentListModalVisible?s("viewStudentList",{attrs:{list:e.item.studentList,showOk:!0,isChiose:!1},on:{close:function(t){e.studentListModalVisible=!1}}}):e._e()],1)],1)},Te=[],Ce=s("15fd"),Fe=s("ed08"),Ie=s("b133"),Oe={props:["item","index","payInfo","courseTypesByType"],components:{viewStudentList:y["a"],paymentCycle:le["a"],extraClass:ce["a"],otherform:Ie["a"]},data:function(){return{corusePayList:[],eclass:[],className:"",studentListModalVisible:!1,isNoCourse:!1,payItem:{},cycle:{paymentAmount:null,paymentPattern:null},other:{}}},mounted:function(){var e,t,s=this;this.musicGroupId=this.$route.query.id;null===(e=this.item)||void 0===e||null===(t=e.classList)||void 0===t||t.map((function(e){return e.id==s.item.classId&&(s.className=e.name),e.id}));for(var a in this.payInfo)if(this.payInfo.hasOwnProperty(a)&&this.item.classId==a){this.payItem=this.payInfo[a];break}if(Object.keys(this.payItem).length>0)for(var i in this.corusePayList=[],this.payItem)this.payItem.hasOwnProperty(i)&&this.corusePayList.push(this.payItem[i])},methods:{priceChange:function(e,t){var s=Object(ye["a"])(this.corusePayList);console.log("_",s);var a=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=((e.courseTotalMinuties||1)*(a.unitPrice||1)).toFixed(2);e.courseCurrentPrice=i,e.courseOriginalPrice=i,s[t]=e,this.corusePayList=Object(ye["a"])(s),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,s=Object(l["a"])(this.corusePayList);try{for(s.s();!(e=s.n()).done;){var a=e.value;t+=a.courseCurrentPrice}}catch(gt){s.e(gt)}finally{s.f()}this.cycle=Object(n["a"])(Object(n["a"])({},this.cycle),{},{paymentAmount:t})},getForms:function(){var e=this.$refs;return[e.eclass,e.cycle,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},getData:function(){var e,t=this.getForms(),s=[],a=Object(l["a"])(t);try{var i=function(){var t=e.value;t.validate((function(e){e&&s.push(t)}))};for(a.s();!(e=a.n()).done;)i()}catch(gt){a.e(gt)}finally{a.f()}if(console.log(s.length,t.length),s.length===t.length){if(Object.keys(this.payItem).length>0){var r=Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.form),this.other),{},{musicGroupPaymentCalenderCourseSettingsList:this.corusePayList}),o=(r.leixing,Object(Ce["a"])(r,["leixing"]));if(this.$refs.cycle){var c,u,d=this.cycle,m=d.paymentDate,p=d.paymentValid,h=d.paymentPattern,f=Object(Ce["a"])(d,["paymentDate","paymentValid","paymentPattern"]);o.paymentPattern=h,o.payUserType="STUDENT",o.paymentType="ADD_COURSE",o.studentIds=null===(c=this.item)||void 0===c||null===(u=c.studentList)||void 0===u?void 0:u.map((function(e){return e.userId})).join(","),o.musicGroupPaymentDateRangeList=[Object(n["a"])(Object(n["a"])(Object(n["a"])({},f),Object(Fe["a"])(m,["startPaymentDate","deadlinePaymentDate"])),Object(Fe["a"])(p,["paymentValidStartDate","paymentValidEndDate"]))]}var y=Object(n["a"])(Object(n["a"])({},o),{},{isGiveMusicNetwork:!1,musicGroupId:this.musicGroupId});return y}return null}return this.$message.error("请填写必要信息"),"error"}},watch:{payInfo:{deep:!0,immediate:!0,handler:function(e,t){console.log("调用了change方法"),this.syncAllMoney()}}}},Le=Oe,Pe=(s("145f"),Object(w["a"])(Le,xe,Te,!1,null,"3ee1ea26",null)),je=Pe.exports,De=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[5==e.classType?s("el-row",[s("el-form-item",{attrs:{label:"班级名称",prop:"className","label-width":"88px",rules:[{required:!0,message:"请填写班级名称"}]}},[s("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.className,callback:function(t){e.$set(e.form,"className","string"===typeof t?t.trim():t)},expression:"form.className"}})],1)],1):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher","label-width":"88px",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},on:{change:e.changecoreTeacher},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(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),e._v(" "),"HIGH"!=e.activeType&&"HIGH_ONLINE"!=e.activeType&&"MUSIC_NETWORK"!=e.activeType?s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(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._e(),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂无可排课时长"}}):e._e(),e._v(" "),s("el-collapse",{on:{change:e.collapseChange},model:{value:e.collapses,callback:function(t){e.collapses=t},expression:"collapses"}},e._l(e.form.classs,(function(t,a,i){return s("el-collapse-item",{key:a,attrs:{name:i},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",{staticClass:"title"},[e._v("\n "+e._s(e.courseTypeListByName[a])+",\n "),s("span",[e._v("可排课时长"+e._s(e.musicCourseSettings[a])+"分钟")])])]},proxy:!0}],null,!0)},[e._v(" "),s("courseItem",{attrs:{surplustime:e.surplustime[a],type:a,form:t,prices:e.prices,selectPrice:e.selectPrices?e.selectPrices[a]:""}})],1)})),1)],1),e._v(" "),5!=e.classType?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:e.isEmpty},on:{click:e.submit}},[e._v("确 定")])],1):e._e()],1)},Ge=[],$e=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form-item",{attrs:{label:"排课起始时间","label-width":"112px",prop:"classs."+e.type+".courseTime",rules:[{required:!0,message:"请选择排课起始时间"}]}},[s("el-date-picker",{staticStyle:{width:"100%!important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.form.courseTime,callback:function(t){e.$set(e.form,"courseTime","string"===typeof t?t.trim():t)},expression:"form.courseTime"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"跳过节假日",prop:"classs."+e.type+".holiday",rules:[{required:!0,message:"否跳过节假日"}]}},[s("el-radio-group",{model:{value:e.form.holiday,callback:function(t){e.$set(e.form,"holiday",t)},expression:"form.holiday"}},[s("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form&&e.form.cycle?s("el-table",{attrs:{data:e.form.cycle}},[s("el-table-column",{attrs:{prop:"dayOfWeek",label:"循环周期",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{"inline-message":"",rules:[{required:!0,message:"请选择循环周期"}],prop:"classs."+e.type+".cycle."+t.$index+".dayOfWeek"}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择循环周期",clearable:"",filterable:""},model:{value:t.row.dayOfWeek,callback:function(s){e.$set(t.row,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"scope.row.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,4175215940)}),e._v(" "),s("el-table-column",{attrs:{prop:"time",label:"课程时长(分)",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".time",rules:[{required:!0,message:"请选择课程时长"}],"inline-message":""}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择课程时长",clearable:"",disabled:!!e.selectPrice,filterable:""},on:{change:function(s){return e.startTimeChange(t.row)}},model:{value:t.row.time,callback:function(s){e.$set(t.row,"time","string"===typeof s?s.trim():s)},expression:"scope.row.time"}},e._l(e.pricesArray,(function(a,i){return s("el-option",{key:i,attrs:{disabled:e.surplustime+(parseFloat(t.row.time)||0)<a,label:a,value:a}})})),1)],1)]}}],null,!1,3569340815)}),e._v(" "),s("el-table-column",{attrs:{prop:"startClassTime",label:"开始时间",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".startClassTime",rules:[{required:!0,message:"请选择开始时间"}],"inline-message":""}},[s("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:["04:30:00 - 23:59:59"]}},on:{change:function(s){return e.startTimeChange(t.row)}},model:{value:t.row.startClassTime,callback:function(s){e.$set(t.row,"startClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.startClassTime"}})],1)]}}],null,!1,2204707810)}),e._v(" "),s("el-table-column",{attrs:{prop:"endClassTime",label:"结束时间",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".endClassTime","inline-message":""}},[s("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm",disabled:"","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:[t.row.startClassTime+":00 - 23:59:59"]}},model:{value:t.row.endClassTime,callback:function(s){e.$set(t.row,"endClassTime","string"===typeof s?s.trim():s)},expression:"scope.row.endClassTime"}})],1)]}}],null,!1,3285712210)}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.cycle.length>1?s("i",{staticClass:"close-icon el-icon-circle-close",on:{click:function(s){return e.remove(t.$index)}}}):e._e()]}}],null,!1,2187597216)})],1):e._e(),e._v(" "),s("el-button",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{icon:"el-icon-circle-plus-outline",type:"info",size:"small",plain:"",disabled:e.surplustime<(e.selectPrice||Math.min.apply(Math,e.pricesArray))},on:{click:e.create}},[e._v("添加循环")])],1)},Ne=[],Ae={},Re=Object(l["a"])(f["h"]);try{for(Re.s();!(K=Re.n()).done;){var Ee=K.value;Ae[Ee.value]=Ee.label}}catch(gt){Re.e(gt)}finally{Re.f()}var Me,Ve={props:["form","type","surplustime","prices","selectPrice"],data:function(){return{classTimeListByType:Ae}},computed:{pickerOptions:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},weekDateList:function(){return[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]},pricesArray:function(){return(this.prices[this.type]||"").split(",").filter((function(e){return!!e}))}},methods:{create:function(){var e={};this.selectPrice&&(e.time=this.selectPrice),this.form.cycle.push(e)},remove:function(e){this.form.cycle.splice(e,1)},startTimeChange:function(e){if(e.time&&e.startClassTime){var t=h()(new Date).format("YYYY-MM-DD");this.$set(e,"endClassTime",Object(m["a"])(t,e.startClassTime,e.time))}else this.$set(e,"endClassTime","")}}},qe=Ve,Ue=(s("05aa"),Object(w["a"])(qe,$e,Ne,!1,null,"e3c0e0be",null)),Be=Ue.exports,He={},ze=Object(l["a"])(f["h"]);try{for(ze.s();!(Me=ze.n()).done;){var Ye=Me.value;He[Ye.value]=Ye.label}}catch(gt){ze.e(gt)}finally{ze.f()}var We=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var a,i=Object(l["a"])(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;s.push({userId:r,teacherRole:"TEACHING"})}}catch(gt){i.e(gt)}finally{i.f()}}return s},Je=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0,a=0,i=Object(l["a"])(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;a+=parseFloat(parseFloat(r[s]||0).toFixed(2)||0)}}catch(gt){i.e(gt)}finally{i.f()}return a},Ke={props:["activeType","courseTypeList","musicGroupId","detail","studentSubmitedData","classType","musicGroupPaymentCalenderDtos","classIdList","classGroupStudents","selectPrices","classCouresTimeList","teacherList","cooperationList"],components:{courseItem:Be},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},allClasss:{},prices:{},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:He,musicCourseSettings:{}}},watch:{courseTypeList:function(){this.setCourseTypeListByName()},studentSubmitedData:function(){this.formatClasss()},detail:function(){this.formatClasss()}},computed:{surplustime:function(){var e={};for(var t in this.form.classs)if(this.form.classs.hasOwnProperty(t)){var s=this.form.classs[t];e[t]=s.courseTotalMinuties-Je(s.cycle,"time")}return e},isEmpty:function(){return Object(M["isEmpty"])(this.form.classs)},musicGroup:function(){return A["a"].state.musicGroup}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.musicGroupId}});case 3:return e.next=5,Object(E["i"])({organId:this.musicGroup.organId});case 5:t=e.sent,this.prices=t.data,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:this.setCourseTypeListByName(),this.formatClasss();case 13:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{setCourseTypeListByName:function(){var e,t={},s=Object(l["a"])(this.courseTypeList);try{for(s.s();!(e=s.n()).done;){var a=e.value;t[a.value]=a.label}}catch(gt){s.e(gt)}finally{s.f()}this.courseTypeListByName=t},formatClasss:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,r,o,u,d,m,p,h,f,y,v,b,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.detail){a="",i=[],r=this.detail.classGroupTeacherMapperList,o=Object(l["a"])(r||[]);try{for(o.s();!(u=o.n()).done;)d=u.value,"BISHOP"===d.teacherRole&&(a=String(d.userId)),"TEACHING"===d.teacherRole&&i.push(d.userId)}catch(gt){o.e(gt)}finally{o.f()}this.$set(this.form,"coreTeacher",String(a)),this.$set(this.form,"assistant",i)}if(m=this.detail||null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),p=null===(s=this.detail)||void 0===s?void 0:s.id,m||p){e.next=5;break}return e.abrupt("return");case 5:if(h={},5!=this.classType){e.next=10;break}h.data=this.classCouresTimeList,e.next=19;break;case 10:return e.prev=10,e.next=13,Object(c["kb"])({musicGroupId:this.musicGroupId,studentIds:m,classGroupId:p});case 13:h=e.sent,e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](10),console.log(e.t0);case 19:if(!(Object.keys(h).length<=0)){e.next=21;break}return e.abrupt("return");case 21:this.musicCourseSettings=h.data,f={},y=Object(l["a"])(this.courseTypeList);try{for(y.s();!(v=y.n()).done;)b=v.value,g=b.value,h.data[g]&&(f[g]={courseTotalMinuties:h.data[g],cycle:[{time:this.selectPrices?this.selectPrices[g]:void 0}]})}catch(gt){y.e(gt)}finally{y.f()}this.allClasss=Object(n["a"])({},f),this.$set(this.form,"classs",f);case 27:case"end":return e.stop()}}),e,this,[[10,16]])})));function t(){return e.apply(this,arguments)}return t}(),changeTag:function(e){var t=Object(n["a"])({},this.form.classs);t[e]?delete t[e]:t[e]=this.allClasss[e],this.$set(this.form,"classs",t)},submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(s){var a,i,r,n,l,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=50;break}for(r in a=[],i=function(t){if(e.form.classs.hasOwnProperty(t)){var s,i,r,n,o=e.form.classs[t];a.push({type:e.detail?void 0:e.activeType,courseType:t,classGroupName:(null===(s=e.studentSubmitedData)||void 0===s?void 0:s.name)||(null===(i=e.detail)||void 0===i?void 0:i.name)||e.form.className,classGroupId:null===(r=e.detail)||void 0===r?void 0:r.id,musicGroupId:e.musicGroupId,startDate:o.courseTime,classGroupTeacherMapperList:We(e.form.coreTeacher,e.form.assistant),holiday:o.holiday,students:null===(n=e.studentSubmitedData)||void 0===n?void 0:n.seleched,courseTimes:o.cycle.length,courseTimeDtoList:o.cycle.map((function(e){return{courseType:t,dayOfWeek:e.dayOfWeek,endClassTime:e.endClassTime,startClassTime:e.startClassTime}}))})}},e.form.classs)i(r);if(t.prev=4,!e.detail){t.next=15;break}return t.next=8,Object(c["r"])(a);case 8:if(n=t.sent,206!=n.code){t.next=12;break}return e.$confirm("当前课程课酬预计为0,是否继续","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.forEach((function(e){e.allowZeroSalary=!0})),t.next=3,Object(c["r"])(a);case 3:e.$listeners.submited(),e.$listeners.close();case 5:case"end":return t.stop()}}),t)})))).catch((function(){})),t.abrupt("return");case 12:e.$message.success("排课修改成功"),t.next=41;break;case 15:if(1!=e.classType){t.next=21;break}return t.next=18,Object(c["wc"])(a);case 18:e.$message.success("排课成功"),t.next=41;break;case 21:if(2!=e.classType&&3!=e.classType&&4!=e.classType){t.next=27;break}return t.next=24,Object(c["vc"])(a);case 24:e.$message.success("排课成功"),t.next=41;break;case 27:if(5!=e.classType){t.next=41;break}return l={},l.musicGroupPaymentCalenderDtos=e.musicGroupPaymentCalenderDtos,l.classGroup4MixDtos=a,l.classGroupIds=e.classIdList,l.studentIds=e.studentSubmitedData.seleched,l.classGroupStudents=e.classGroupStudents,l.classCourseMinuteMap=e.selectPrices,t.next=37,Object(c["Wb"])(l);case 37:return u=e.$parent.$parent.$parent.$parent.$parent.$parent.$parent,u.closeStudentReset(),u.getList(),t.abrupt("return");case 41:e.$listeners.submited(),e.$listeners.close(),t.next=48;break;case 45:t.prev=45,t.t0=t["catch"](4),console.log(t.t0);case 48:t.next=51;break;case 50:e.$message.error("请先填写所有表单");case 51:case"end":return t.stop()}}),t,null,[[4,45]])})));return function(e){return t.apply(this,arguments)}}())},collapseChange:function(e){this.collapses=e},changecoreTeacher:function(e){}}},Qe=Ke,Xe=(s("533e"),Object(w["a"])(Qe,De,Ge,!1,null,"0357535c",null)),Ze=Xe.exports,et=s("fa7d"),tt=s("267e"),st={props:["form","payInfo","courseTypesByType","classIdList","addCourseType","classMaxCourseNumMap","teacherList"],components:{classNewInfo:ke,classPayListItem:je,classSetting:Ze},data:function(){return{showLastVisable:!1,musicGroupPaymentCalenderDtos:null,teacherList:[],studentList:[],teamid:"",activeType:"",courseTypeList:[],studentSubmitedData:{},classGroupStudents:[],courseTimeForm:{timeList:[]},organId:"",organCourseTime:{},classCourseMinuteMap:{}}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,A["a"].dispatch("getBaseInfo",{data:{musicGroupId:this.teamid}}).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(s){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.organId=s.data.musicGroup.organId,e.prev=1,e.next=4,Object(c["tb"])({organId:t.organId});case 4:a=e.sent,t.organCourseTime=a.data,t.setTimeList(a.data),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}());case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{init:function(){var e=this;this.studentList=[];var t=[];for(var s in this.form.classList.forEach((function(s){e.studentList=e.studentList.concat(s.studentList);var a=[];s.studentList.forEach((function(e){a.push(e.userId)})),t.push(Object(ve["a"])({},s.classId,a.join(",")))})),this.classGroupStudents=t,this.teamid=this.$route.query.id,this.activeType=this.form.classList[0].type,this.courseTypeList=Object(et["a"])(this.activeType),this.studentSubmitedData={name:"",seleched:this.studentList.map((function(e){return e.userId}))},this.courseTimeForm.timeList.map((function(t){e.classCourseMinuteMap[t.type]=t.value})),this.classCouresTimeList={},this.classCourseMinuteMap)this.classCouresTimeList[s]=this.classMaxCourseNumMap[s]*this.classCourseMinuteMap[s];this.showLastVisable=!0},close:function(){this.$emit("close")},getForms:function(){var e=this.$refs;return Object(ye["a"])(e.base).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},gotoLast:function(){var e=this;this.$refs.courseTimeForms.validate((function(t){if(t){var s,a=e.getForms(),i=[],r=[],n=Object(l["a"])(a);try{for(n.s();!(s=n.n()).done;){var o=s.value,c=o.getData();"error"==c&&r.push(c),c&&"error"!=c&&i.push(c)}}catch(gt){n.e(gt)}finally{n.f()}if(r.length>0)return;e.musicGroupPaymentCalenderDtos=i,e.init()}}))},submitResetClass:function(){this.$refs.classSetting.submit()},setTimeList:function(e){var t=this;this.addCourseType.map((function(s){var a=[];a=e[s]?e[s].split(","):[tt["classTime"][s]],t.courseTimeForm.timeList.push({type:s,value:"",label:tt["courseType"][s],list:a})}))},setCourseTime:function(e,t){console.log(this.payInfo);var s=Object(n["a"])({},this.payInfo);for(var a in s)if(s[a][e.type]){var i=t?t*s[[a]][e.type].unitPrice:0,r=t?t*s[[a]][e.type].courseTotalNum:0;this.$emit("resetPayInfo",e.type,i,r)}this.payInfo=s}}},at=st,it=(s("05f5"),Object(w["a"])(at,he,fe,!1,null,"20975088",null)),rt=it.exports,nt={props:["classList","courseTypesByType","teacherList"],components:{classListItem:pe,classPayList:rt},data:function(){return{form:{classList:[{classId:"",studentList:[],courseList:{},index:"",type:"",classList:this.classList}]},showSecondVisable:!1,classIdList:[],activeClassList:[],addCourseType:[]}},mounted:function(){this.activeClassList=this.classList},methods:{addClass:function(){this.form.classList.push({classId:"",studentList:[],courseList:{},index:"",type:"",classList:this.classList})},deteleClass:function(e){this.form.classList.splice(e,1)},gotoSecond:function(){var e=this;this.$refs.form.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(s){var a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=19;break}if(a=!1,e.form.classList.forEach((function(e){e.studentList.length<=0&&(a=!0)})),!a){t.next=6;break}return e.$message.error("每个班级至少勾选一名学员"),t.abrupt("return");case 6:return e.classIdList=e.form.classList.map((function(e){return e.classId})),t.prev=7,t.next=10,Object(c["cb"])(e.classIdList);case 10:i=t.sent,e.payInfo=i.data.defaultPaymentCalender,e.addCourseType=i.data.groupTypeSet,e.classMaxCourseNumMap=i.data.classMaxCourseNumMap,e.showSecondVisable=!0,t.next=19;break;case 17:t.prev=17,t.t0=t["catch"](7);case 19:case"end":return t.stop()}}),t,null,[[7,17]])})));return function(e){return t.apply(this,arguments)}}())},filterClassList:function(e){var t,s=[];(this.form.classList.forEach((function(e){e.classId&&s.push(e.classId)})),e)?(this.classList.forEach((function(s){s.id==e&&(t=s)})),this.form.classList.forEach((function(s){s.classId==e&&(s.type=t.type)})),this.activeClassList=this.classList.filter((function(e){return t.type==e.type})),this.addDisabled(s)):0==s.length?this.activeClassList=this.classList:this.addDisabled(s)},addDisabled:function(e){this.activeClassList=this.activeClassList.map((function(t){return Object(n["a"])(Object(n["a"])({},t),{},{disabled:-1!=e.indexOf(t.id)})}))},resetPayInfo:function(e,t,s){console.log(t,s),console.log(this.payInfo);var a=Object(n["a"])({},this.payInfo);for(var i in a)a[i][e]&&(a[i][e].courseCurrentPrice=t,a[i][e].courseOriginalPrice=t,a[i][e].courseTotalMinuties=parseInt(s));this.payInfo=a}}},ot=nt,lt=Object(w["a"])(ot,ie,re,!1,null,"89c22e1e",null),ct=lt.exports,ut={props:["classList","courseTypesByType","teacherList"],components:{classListGroup:ct},data:function(){return{}},methods:{close:function(){this.$emit("close")},gotoSecond:function(){this.$refs.classListGroup.gotoSecond()}}},dt=ut,mt=(s("6845"),Object(w["a"])(dt,se,ae,!1,null,"62092cc6",null)),pt=mt.exports,ht=(s("4328"),s("ec8a")),ft=function(e,t){var s=[];if(e&&s.push({userId:e,teacherRole:"BISHOP"}),t){var a,i=Object(l["a"])(t);try{for(i.s();!(a=i.n()).done;){var r=a.value;s.push({userId:r,teacherRole:"TEACHING"})}}catch(gt){i.e(gt)}finally{i.f()}}return s},yt={props:["musicGroupInfo"],name:"tresetClass",components:{viewStudentList:y["a"],selectStudent:v["a"],classroomSetting:te,studentResetView:pt,changeTeacher:x},data:function(){return{teacherVisible:!1,musicGroupInfos:this.musicGroupInfo,classType:0,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},step:"00:05",teamid:"",topForm:{classType:""},studentSubmitedData:null,infoDetail:null,classTimeList:f["h"],tableList:[],maxClassList:[],activeSingleList:[],studentListModal:[],studentListModalVisible:!1,resetCourseVisible:!1,resetClassVisible:!1,studentVisible:!1,MixVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!1,isOnlyChangeUser:!1,isStudentRemove:!1,isSearch:!1,isTemporary:!1,className:"",activeClass:"",soundList:[],infoVisible:!1,teacherForm:{isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}],sound:[{required:!0,message:"请选择合声部"}],expectStudentNum:[{required:!0,message:"请填写预计招生人数"}]},weekList:[],teacherList:[],courseTypeList:[],weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],classTypeList:[{value:"NORMAL",label:"声部班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"SNAP",label:"临时班"},{value:"HIGH_ONLINE",label:"线上基础技能班"},{value:"MUSIC_NETWORK",label:"乐团网管课"}],musicClassTypeList:f["p"],highTypeList:[{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能班"}],cooperationList:[],singleList:[],activeSingleLists:[],activeType:"",resetClassForm:{startTime:"",endTime:"",assistant:[],coreTeacher:""},recourseForm:{courseType:"",checked:!1,courseTime:"",courseNum:""},teacherDetail:null,organId:"",newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:[],memo:[],subjectId:null},classGroupIds:null,maxMun:16,courseTime:"",studentResetVisiable:!1,courseTypesByType:null,mergeList:[],activeSoundList:[],appoint:!1,postponeForm:{stopTime:"",resetTime:"",holiday:!1},postponeVisible:!1,postponeRules:{stopTime:[{required:!0,message:"请选择开始日期",trigger:"blur"}],resetTime:[{required:!0,message:"请选择顺延日期",trigger:"blur"}]},bigin:this.beginDate(),options:this.processDate(),team_status:"",activeList:[]}},created:function(){this.init()},mounted:function(){},methods:{permission:function(e){return Object(ht["a"])(e)},init:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.teamid=this.$route.query.id,this.team_status=this.$route.query.team_status,this.musicGroupInfo?(this.organId=this.musicGroupInfos.organId,this.chargeTypeId=this.musicGroupInfos.chargeTypeId):Object(c["Lb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.musicGroupInfos=e.data.musicGroup,t.organId=t.musicGroupInfos.organId,t.chargeTypeId=t.musicGroupInfos.chargeTypeId)})),this.$nextTick(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(s){var a,i,r,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!t.organId||!t.chargeTypeId){e.next=11;break}return e.next=4,Object(d["r"])({chargeTypeId:t.chargeTypeId,organId:t.organId,rows:9999});case 4:a=e.sent,i={},t.courseTypes=a.data.rows,r=Object(l["a"])(t.courseTypes);try{for(r.s();!(n=r.n()).done;)o=n.value,i[o.courseType]=o}catch(gt){r.e(gt)}finally{r.f()}t.courseTypesByType=i,console.log(t.courseTypesByType);case 11:e.next=15;break;case 13:e.prev=13,e.t0=e["catch"](0);case 15:Object(c["Jb"])({organId:t.organId}).then((function(e){200==e.code&&(t.cooperationList=e.data,t.teacherList=e.data)})),t.changeMixClass(),Object(c["J"])({musicGroupId:t.teamid}).then((function(e){200==e.code&&(t.soundList=e.data)}));case 18:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),resetTeacher:function(e){this.teacherVisible=!0,this.teacherDetail=e},teacherSubmited:function(e){var t,s=this,a=this.getSubmitData(e,{classGroupId:null===(t=this.teacherDetail)||void 0===t?void 0:t.id,courseAddType:"onlyUpdateTeacher"});Object(c["r"])(a).then((function(e){200==e.code&&(s.$message.success("修改成功"),s.teacherVisible=!1,s.getList())}))},getSubmitData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[Object(n["a"])({type:this.activeType,classGroupName:null===e||void 0===e?void 0:e.name,musicGroupId:this.teamid,classGroupTeacherMapperList:ft(e.coreTeacher,e.assistant),students:null===e||void 0===e?void 0:e.seleched},t)]},getClassDate:function(e){return{type:this.activeType,name:null===e||void 0===e?void 0:e.name,musicGroupId:this.teamid,subjectIdList:(null===e||void 0===e?void 0:e.sound.length)>0?null===e||void 0===e?void 0:e.sound.join(","):null,teacherMapperList:ft(e.coreTeacher,e.assistant),groupType:"MUSIC"}},submitClass:function(){var e=Object(o["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(s=this.getSubmitData(t,{onlyCreateClassGroup:!0}),a=this.getClassDate(t),"MUSIC_NETWORK"!=this.activeType){e.next=16;break}return e.prev=3,e.next=6,Object(c["vc"])(s);case 6:this.$message.success("提交成功"),this.studentVisible=!1,this.getList(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](3),console.log(e.t0);case 14:e.next=17;break;case 16:Object(c["w"])(a).then((function(e){200==e.code&&(i.studentVisible=!1,i.$message.success("提交成功"),i.getList())}));case 17:return e.abrupt("return");case 25:this.$message.success("提交成功"),e.next=34;break;case 28:if(2!=this.classType&&3!=this.classType&&4!=this.classType){e.next=34;break}return console.log(s,"submitClass"),e.abrupt("return");case 33:this.$message.success("提交成功");case 34:this.studentVisible=!1,this.getList(),e.next=41;break;case 38:e.prev=38,e.t1=e["catch"](19),console.log(e.t1);case 41:case"end":return e.stop()}}),e,this,[[3,11],[19,38]])})));function t(t){return e.apply(this,arguments)}return t}(),studentSubmited:function(e){this.isOnlyChangeUser?this.getList():this.submitClass(e)},recourse:function(e){this.weekList=[{week:"",startTime:"",endTime:"",id:new Date}],this.resetCourseVisible=!0},addMix:function(){this.MixVisible=!0},changeActiveChioseSound:function(e){this.activeChioseSound=e},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},changeMixClass:function(e){this.getList(e),this.activeMixClass=e},getList:function(e){var t=this;Object(c["R"])({musicGroupId:this.teamid,type:e}).then((function(e){var s;200==e.code&&(t.activeSingleList=e.data,(null===(s=e.data)||void 0===s?void 0:s.length)>0&&(t.mergeList=e.data.filter((function(e){return"MUSIC_NETWORK"!=e.type}))))}))},temporary:function(){this.classType=1,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isOnlyChangeUser=!1,this.isSearch=!0,this.className="",this.isTemporary=!0,this.activeType="SNAP",this.activeChioseSound=null,this.setType("SNAP"),this.getNoClassStudent("SNAP")},setType:function(e){this.courseTypeList=Object(et["a"])(e),this.activeSoundList=this.soundList},addNewClass:function(e){var t={NORMAL:2,MUSIC_NETWORK:4};this.isOnlyChangeUser=!1,this.classType=t[e]||3,this.setType(e),this.activeType=e,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.activeChioseSound=null,this.getNoClassStudent(e)},searchStudent:function(e){var t=this;console.log(this.activeChioseSound),"SNAP"==this.activeType?Object(c["Jc"])({musicGroupId:this.teamid,actualSubjectId:this.activeChioseSound}).then((function(e){200==e.code&&(t.studentList=e.data)})):this.getNoClassStudent(this.activeType,this.activeChioseSound,e)},SelectionStudent:function(e){this.chioseStudent=e},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},clearCourse:function(e){var t=this;Object(c["t"])({classGroupId:e.row.id}).then((function(s){200==s.code?(t.$message.success("清除成功"),e._self.$refs[e.$index].doClose(),t.getList(t.activeMixClass)):(t.$message.error(s.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},removeClass:function(e){var t=this;this.$confirm("是否确定删除该班级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["kc"])({classGroupId:e.row.id}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList(t.activeMixClass))})).catch((function(e){}))})).catch((function(){}))},resetClass:function(e){var t=this;this.isOnlyChangeUser=!0,this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.activeChioseSound=null,this.isStudentRemove=e.currentClassTimes==e.totalClassTimes,Object(u["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)},classAdjustment:function(e){for(var t in this.infoDetail=e,this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.classGroupTeacherMapperList[t].userId),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.classGroupTeacherMapperList[t].userId);this.infoVisible=!0},getNoClassStudent:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,s,a){var i,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i={musicGroupId:this.teamid,type:t,actualSubjectId:s,classGroupId:a},e.next=3,Object(c["sb"])(i).then((function(e){200==e.code&&(r.studentList=e.data)}));case 3:case"end":return e.stop()}}),e,this)})));function t(t,s,a){return e.apply(this,arguments)}return t}(),removeStudent:function(e){var t=this;"HIGH_ONLINE"==this.activeType&&this.activeListStudent.length<=3?this.$message.error("线上基础技能课不能小于3人"):Object(u["q"])({classGroupId:this.activeClass,userId:e.userId}).then((function(s){200==s.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(u["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data)})),t.getNoClassStudent(t.activeType,null,t.activeClass))}))},addSomeStudent:function(){var e=this,t=this.chioseStudent.map((function(e){return e.userId}));if(t.length<=0)return this.isNewClass?void this.$message.error("至少添加一名学员"):void(this.studentVisible=!1);"HIGH_ONLINE"==this.activeType?Object(c["Gc"])({classGroupId:this.activeClass}).then((function(s){if(200==s.code){if(e.activeListStudent.length+e.chioseStudent.length>6||e.activeListStudent.length+e.chioseStudent.length<3)return void e.$message.error("线上技能班必须为3-6人");Object(u["b"])({classGroupId:e.activeClass,userIdsStr:t.join(",")}).then((function(t){if(200==t.code)return e.studentVisible=!1,e.$message.success("添加成功"),void e.getList()}))}})):Object(u["b"])({classGroupId:this.activeClass,userIdsStr:t.join(",")}).then((function(t){200==t.code&&(e.studentVisible=!1,e.$message.success("添加成功"),e.getList())}))},SelectionMix:function(e){this.activeSingleLists=e},removeSiginforMix:function(e){for(var t in this.activeSingleLists)this.activeSingleLists[t].id==e.id&&this.$refs["mixList"].toggleRowSelection(e,!1)},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var s in this.studentList)this.studentList[s].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var s={},a=[];for(var i in e)s[e[i][t]]||(a.push(e[i]),s[e[i][t]]=!0);return a},setInfoMsg:function(){if(this.className)if(this.activeListStudent.length<=0)this.$message.error("班级里至少要有一名学生");else{if("HIGH_ONLINE"==this.activeType){if(this.activeListStudent.length>6||this.activeListStudent.length<3)return void this.$message.error("线上技能班必须为3-6人");this.teacherForm.expectStudentNum=this.activeListStudent.length}this.infoVisible=!0}else this.$message.error("请输入班级名称")},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",time:this.courseTime,id:(new Date).getTime()})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},newClassHight:function(){var e=this;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.getList(),e.resetClassFrom(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},setAssistant1:function(e){if(e)for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},handleSelectionChange:function(e){this.activeList=e;var t=e.map((function(e){return e.id}));this.activeClass=t.join(",")},chkstu:function(e,t){return"HIGH_ONLINE"==e.type&&e.totalClassTimes<=0||"HIGH"==e.type&&e.totalClassTimes<=0},startRegest:function(){var e=this;this.classGroupIds?this.$confirm("是否开启报名?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["hc"])({classGroupIds:e.classGroupIds,musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("开启成功,已推送".concat(t.data,"名学生")),e.getList())}))})).catch((function(){})):this.$message.error("请至少选择1个基础技能班")},toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},chioseHightype:function(e){this.changeMemo([]),"HIGH_ONLINE"==e&&(this.newClassForm.teaching=[]),this.newClassForm.subjectId="",this.$set(this.newClassForm,"subjectIdList",[]),this.$set(this.newClassForm,"memo",[])},changeStartClassTime:function(e){this.$set(e,"endClassTime","")},changeEndClassTime:function(e,t){this.$set(e,"endClassTime",t)},changeCourseType:function(e){var t=this;console.log(e),e?(this.classTimeList.forEach((function(s){s.value==e&&(t.courseTime=s.label)})),this.weekList=[{week:"",startTime:"",endTime:"",time:this.courseTime,id:(new Date).getTime()}]):(this.courseTime=null,this.weekList=[])},changeStartTimes:function(e,t){if(e&&t.time){var s=h()(new Date).format("YYYY-MM-DD");this.$set(t,"endClassTime",Object(m["a"])(s,e,t.time))}else this.$set(t,"endClassTime",""),this.$message.error("请先设置课程时间");t.endClassTime||this.$set(t,"startClassTime","")},setItem:function(e,t){this.weekList[t].startClassTime="",this.weekList[t].endClassTime="",console.log()},closeStudentReset:function(){this.studentResetVisiable=!1},changeMemo:function(e){},submitInfo:function(){var e=this;this.$refs["postponeForm"].validate((function(t){if(t){var s=e.activeClass,a=e.postponeForm.stopTime,i=e.postponeForm.resetTime,r=e.postponeForm.holiday,n={classGroupIds:s,pauseDate:a,recoveryDate:i,skipHoliday:r};Object(c["v"])(n).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.postponeVisible=!1)}))}}))},postpone:function(){this.activeList.length<=0?this.$message.error("请至少选择一个班级"):this.postponeVisible=!0},checkSignPostpone:function(e){return e.totalClassTimes-e.currentClassTimes>0},handleClose:function(){this.postponeVisible=!1,this.$refs["postponeForm"].resetFields()},beginDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},processDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return e.postponeForm.stopTime?new Date(e.postponeForm.stopTime).getTime()>t.getTime():t.getTime()>Date.now()}}},signPostpone:function(e){this.activeClass=e.id,this.postponeVisible=!0}},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},infoVisible:function(e){e||(this.teacherForm={isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},this.infoDetail=null,this.weekList=[])},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())}}},vt=yt,bt=(s("ab3d"),Object(w["a"])(vt,i,r,!1,null,"6e20acea",null));t["default"]=bt.exports},"8fca":function(e,t,s){"use strict";s("46f7")},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("15fd"),n=(s("6762"),s("2fdb"),s("2909")),o=s("5530"),l=(s("96cf"),s("1da1")),c=s("b85c"),u=s("d349"),d=(s("1cc7"),s("1672")),m=s("267e"),p=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=[],T=s("92e3"),C=s("6612"),F=s.n(C),I=(s("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:m["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(p["b"])(m["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(T["b"])(T["h"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return F()(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=I,L=(s("1452"),Object(b["a"])(O,k,x,!1,null,"38e6cc3c",null)),P=L.exports,j=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(){}}},$=G,N=(s("62f6"),Object(b["a"])($,j,D,!1,null,"37928f5f",null)),A=N.exports,R=s("b133"),E=(s("73b3"),s("7676")),M=s.n(E),V={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:P,classrooms:A,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(p["b"])(m["paymentPatternType"])}},computed:{musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},isCommon:function(){return"1"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},s=Object(c["a"])(this.charges);try{for(s.s();!(e=s.n()).done;){var 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(l["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(d["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(l["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,r,n,l,c=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 V)V.hasOwnProperty(t)&&(s=V[t],s===this.rowDetail.paymentType&&(this.paymentType=t));return this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),e.prev=5,e.next=8,Object(d["g"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 8: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!==c.paymentType})),this.eclassuser=r.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===c.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+""),l=[n.paymentValidStartDate,n.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[n.startPaymentDate,n.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",l)),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(c["a"])(n);try{for(o.s();!(s=o.n()).done;){var l=s.value;r[l.courseType]=l}}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(F()(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,l=Object(c["a"])(n);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(a+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)i+=u.courseCurrentPrice;else{var d=Math.floor(u.courseCurrentPrice/this.cycles.length),m=u.courseCurrentPrice%this.cycles.length;i+=d+m,r+=d}}}catch(p){l.e(p)}finally{l.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(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,s,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(l["a"])(regeneratorRuntime.mark((function e(){var t,s,a,i,l,u,m,h,f,y,v,b,g,_,S,w,k,x,T,C,F,I,O,L,P,j;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),s=[],a=Object(c["a"])(t);try{for(l=function(){var e=i.value;e.validate((function(t){t&&s.push(e)}))},a.s();!(i=a.n()).done;)l()}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(p["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(p["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(p["a"])(S,["startPaymentDate","deadlinePaymentDate"])),Object(p["a"])(w,["paymentValidStartDate","paymentValidEndDate"]))]),x=Object(o["a"])(Object(o["a"])({},g),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:V[0==this.paymentType?this.paymentType:b],musicGroupId:this.musicGroupId}),T=null===(u=this.viewDetail)||void 0===u?void 0:u.musicGroupPaymentCalenders[0],T&&"ADD_STUDENT"===(null===(m=this.viewDetail)||void 0===m?void 0:m.auditDto.paymentType)&&(x.attribute1=T.attribute1),C=!1,F=Object(c["a"])(x.musicGroupPaymentCalenderCourseSettingsList),e.prev=14,F.s();case 16:if((I=F.n()).done){e.next=23;break}if(O=I.value,!(O.courseCurrentPrice>0||1==O.isStudentOptional)){e.next=21;break}return C=!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),F.e(e.t0);case 28:return e.prev=28,F.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||!C||"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(d["c"])(x);case 38:L=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(L.data),e.next=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===(P=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===P?void 0:P.paymentType,e.next=53,Object(d["f"])(x);case 53:j=e.sent,this.$listeners.close(),this.$listeners.submited(j.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:M()(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("e7d6"),Object(b["a"])(U,a,i,!1,null,"538615a5",null));t["a"]=B.exports},"947e":function(e,t,s){"use strict";s("078c")},"9deb":function(e,t,s){"use strict";s("1af5")},a05b:function(e,t,s){},a249:function(e,t,s){"use strict";s("10cc")},a6e9:function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return l})),s.d(t,"a",(function(){return c}));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 l(e){return Object(a["a"])({url:n+"/sysConfig/update",method:"post",data:r.a.stringify(e)})}function c(e){return Object(a["a"])({url:n+"/sysConfig/queryByParamName",method:"get",params:e})}},a792: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",{ref:"studentTable",attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark","max-height":"300px"},on:{"selection-change":e.handleSelectionChange}},[e.isChiose?s("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"55"}}):e._e(),e._v(" "),s("el-table-column",{attrs:{prop:"userId",align:"center",width:"120",label:"学员编号"}}),e._v(" "),s("el-table-column",{attrs:{prop:"nickName",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("sex")(t.row.gender))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",width:"120",label:"联系电话"}}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectNames",align:"center",label:"专业"}})],1),e._v(" "),e.showOk?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$listeners.close(e.selectList)}}},[e._v("确 定")])],1):e._e(),e._v(" "),e.showOk?s("div",{staticStyle:{clear:"both"}}):e._e()],1)},i=[],r=(s("ac6a"),{props:["list","isChiose","chioseList","showOk","disabledList"],data:function(){return{selectList:this.chioseList}},mounted:function(){var e=this;if(this.chioseList){var t=this.chioseList.map((function(e,t){return e.userId}));this.list.forEach((function(s,a){-1!=t.indexOf(s.userId)&&e.$refs.studentTable.toggleRowSelection(s,!0)}))}},methods:{handleSelectionChange:function(e){this.selectList=e},checkSelectable:function(e){var t=!0;return this.disabledList&&this.disabledList.length>0&&this.disabledList.forEach((function(s){s.userId==e.userId&&(t=!1)})),t}}}),n=r,o=(s("7b2e"),s("2877")),l=Object(o["a"])(n,a,i,!1,null,"b0949258",null);t["a"]=l.exports},aa6f:function(e,t,s){},ab3d:function(e,t,s){"use strict";s("86cd")},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")),l=Object(o["a"])(n,a,i,!1,null,"55ad3016",null);t["a"]=l.exports},b2df:function(e,t,s){},b38b:function(e,t,s){"use strict";s.d(t,"c",(function(){return o})),s.d(t,"a",(function(){return l})),s.d(t,"b",(function(){return c}));var 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 l(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:r.a.stringify(e)})}function c(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("5530"),n=s("333d"),o=s("1cc7"),l={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())}}},c=l,u=(s("b5ca"),s("2877")),d=Object(u["a"])(c,a,i,!1,null,"2547eae8",null);t["default"]=d.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"})}},b4ed:function(e,t,s){},b5ca:function(e,t,s){"use strict";s("2e3a")},b7ed:function(e,t,s){"use strict";s("d1aa")},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/4263"}},[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,"label-width":"150px",rules:e.quitRules}},[e.activeRow.cloudTeacherAmount>0?s("el-form-item",{attrs:{label:"退还云教练费用",prop:"isCloudTeacherAmount"}},[s("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isCloudTeacherAmount,callback:function(t){e.$set(e.quitForm,"isCloudTeacherAmount","string"===typeof t?t.trim():t)},expression:"quitForm.isCloudTeacherAmount"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isCloudTeacherAmount,callback:function(t){e.$set(e.quitForm,"isCloudTeacherAmount","string"===typeof t?t.trim():t)},expression:"quitForm.isCloudTeacherAmount"}},[e._v("否")])],1):e._e(),e._v(" "),e.quitForm.isCloudTeacherAmount?s("el-form-item",{attrs:{label:"退还云教练金额",prop:"cloudTeacherAmount"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.cloudTeacherAmount,callback:function(t){e.$set(e.quitForm,"cloudTeacherAmount","string"===typeof t?t.trim():t)},expression:"quitForm.cloudTeacherAmount"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),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("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("5530"),n=s("b85c"),o=(s("ac6a"),s("7f7f"),s("96cf"),s("1da1")),l=s("333d"),c=s("641c"),u=s("1cc7"),d=s("879d"),m=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)])},p=[],h=(s("386d"),s("3078")),f={name:"forecastName",components:{pagination:l["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,m,p,!1,null,"51cef9a9",null),g=b.exports,_=s("5137"),S=s("61f7"),w=s("46f6"),k=s("d044"),x=s.n(k),T=s("92e3"),C=s("bc3a"),F=s.n(C),I=s("5f87"),O=s("3908"),L=s("4328"),P=s.n(L),j=s("ec8a"),D=s("e3eb"),G=s.n(D),$=s("6cc5"),N=s("4edf"),A={name:"signupList",components:{pagination:l["a"],qrCode:c["a"],changeVoice:$["a"],mergeMusic:d["a"],forecastList:g,visit:N["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,cloudTeacherAmount:null,isCloudTeacherAmount: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:{isCloudTeacherAmount:[{required:!0,message:"请输入云教练费用"}],cloudTeacherAmount:[{required:!0,message:"请输入云教练金额",trigger:"blur"}],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:T["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(j["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(I["a"])()},data:P.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){O["a"].startLoading(),F()(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(),l=e.$route.query.id+"-"+o+".xls";r.href=i,r.setAttribute("download",l),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,this.quitForm.cloudTeacherAmount=e.cloudTeacherAmount},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,cloudTeacherAmount:null,isCloudTeacherAmount: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,s={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};e.quitForm.isCloudTeacherAmount?s.cloudTeacherAmount=e.quitForm.cloudTeacherAmount:s.cloudTeacherAmount=0,Object(u["b"])(s).then((function(t){e.quitForm={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount: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(l){i.e(l)}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,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,maintenanceFee:0,reason:""},this.$refs["quitForm"].resetFields())}}},R=A,E=(s("250d"),Object(v["a"])(R,a,i,!1,null,"226a06da",null));t["default"]=E.exports},c29b:function(e,t,s){},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=="},c353:function(e,t,s){"use strict";s("111e")},c466:function(e,t,s){"use strict";s.d(t,"h",(function(){return n})),s.d(t,"c",(function(){return o})),s.d(t,"d",(function(){return l})),s.d(t,"e",(function(){return c})),s.d(t,"f",(function(){return u})),s.d(t,"g",(function(){return d})),s.d(t,"b",(function(){return m})),s.d(t,"a",(function(){return p}));s("a481");var a=s("5a0c"),i=s.n(a),r=s("56d7");function n(e){var t=e.getFullYear(),s=e.getMonth()+1,a=e.getDate();return s=s<10?"0"+s:s,a=a<10?"0"+a:a,t+"-"+s+"-"+a}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),s=++t,a=new Date(e.getFullYear(),s,1),i=864e5;return new Date(a-i)}function c(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(),l=r+"-"+n+"-"+o;return l}function u(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,l=r.getDate()<10?"0"+r.getDate():r.getDate(),c=n+"-"+o+"-"+l;return c}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function m(e,t,s){return Math.abs(i()(e+" "+t).diff(e+" "+s,"Minute"))}function p(e,t,s){var a=i()(e+" "+t).add(s,"minute");return i()(e+" 23:59").isBefore(a)?(r["$message"].error("课程时间无法跨天请重新设置开始时间"),""):a.format("HH:mm")}},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("1da1")),n=s("ec8a"),o=s("3762"),l=s("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(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(l["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(s.$message.success("审核通过"),s.$emit("close"))}));case 8:e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=23;break;case 14:return e.prev=14,e.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return e.next=19,Object(l["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(s.$message.success("驳回成功"),s.$emit("close"))}));case 19:e.next=23;break;case 21:e.prev=21,e.t1=e["catch"](14);case 23:case"end":return e.stop()}}),e,this,[[3,10],[14,21]])})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(n["a"])(e)}}},u=c,d=(s("346a"),s("2877")),m=Object(d["a"])(u,a,i,!1,null,"59fb2832",null);t["a"]=m.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"},d0f4:function(e,t,s){"use strict";s("0964")},d1aa:function(e,t,s){},d349:function(e,t,s){"use strict";s.d(t,"e",(function(){return c})),s.d(t,"d",(function(){return u})),s.d(t,"f",(function(){return d})),s.d(t,"c",(function(){return m})),s.d(t,"s",(function(){return p})),s.d(t,"G",(function(){return h})),s.d(t,"H",(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 T})),s.d(t,"k",(function(){return C})),s.d(t,"w",(function(){return F})),s.d(t,"I",(function(){return I})),s.d(t,"n",(function(){return O})),s.d(t,"x",(function(){return L})),s.d(t,"A",(function(){return P})),s.d(t,"y",(function(){return j})),s.d(t,"z",(function(){return D})),s.d(t,"r",(function(){return G})),s.d(t,"b",(function(){return $})),s.d(t,"F",(function(){return N})),s.d(t,"q",(function(){return A})),s.d(t,"E",(function(){return R})),s.d(t,"a",(function(){return E})),s.d(t,"o",(function(){return M})),s.d(t,"C",(function(){return V})),s.d(t,"B",(function(){return q})),s.d(t,"D",(function(){return U}));var a=s("15fd"),i=s("b775"),r=s("829b"),n=s("4328"),o=s.n(n),l="/api-web";function c(e){return Object(i["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(i["a"])({url:l+"/organization/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(i["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function m(e){return Object(i["a"])({url:l+"/area/queryChild",method:"get",params:e})}function p(e){return Object(i["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function h(e){return Object(i["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function f(e){return Object(i["a"])({url:l+"/subject/upset",method:"post",data:e})}function y(e){return Object(i["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(i["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function b(e){return Object(i["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function g(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function k(e){return Object(i["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function x(e){return Object(i["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function T(e){return Object(i["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function C(e){return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function F(e){return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function I(e){return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function O(e){var t=e.id,s=Object(a["a"])(e,["id"]);return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:s})}function L(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function P(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function j(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function D(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function G(e){return Object(r["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function $(e){return Object(r["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function N(e){return Object(r["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function A(e){return Object(r["a"])({url:l+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function R(e){return Object(r["a"])({url:l+"/organizationCourseDurationSettings/update",method:"post",params:e})}function E(e){return Object(r["a"])({url:l+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function M(e){return Object(r["a"])({url:l+"/organizationCourseDurationSettings/del",method:"post",data:e})}function V(e){return Object(r["a"])({url:l+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function q(e){return Object(r["a"])({url:l+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function U(e){return Object(r["a"])({url:l+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",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("1da1")),n=s("5530"),o=(s("386d"),s("7f7f"),s("333d")),l=s("641c"),c=s("ec8a"),u=s("61f7"),d=s("adb21"),m=s("4edf"),p=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,p,h,!1,null,"1a2dbaa6",null),_=g.exports,S={name:"forecastName",components:{pagination:o["a"],qrCode:l["a"],visitModel:m["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:c["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(d["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},da35:function(e,t,s){},dab9:function(e,t,s){},dabb:function(e,t,s){"use strict";s("8ea54")},df4f:function(e,t,s){e.exports=s.p+"static/img/video_bg.0da9f0a8.png"},e323:function(e,t,s){"use strict";s("c78f")},e3de:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"t-container"},[s("save-form",{staticClass:"searchForm",attrs:{inline:!0,"save-key":e.saveKey,model:e.searchForm},on:{submit:e.search}},[s("el-form-item",[s("el-input",{attrs:{placeholder:"老师姓名 编号 手机号",clearable:""},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-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")])],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",prop:"teacherId",label:"老师编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.teacherId)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"老师姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.teacherName)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"teacherPhone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v("\n "+e._s(t.row.teacherPhone)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"jobNature",label:"工作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("jobNature")(t.row.jobNature))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"classGroupName",label:"执教班级"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"num",label:"出勤次数"}})],1),e._v(" "),s("pagination",{attrs:{"save-key":e.saveKey,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)],1)},i=[],r=(s("7f7f"),s("386d"),s("333d")),n=s("1cc7"),o={name:"tteacherList",data:function(){return{searchForm:{status:"",teachingClass:"",attendance:"",search:""},searchLsit:[],tableList:[],mixCourseList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]}}},components:{pagination:r["a"]},mounted:function(){this.teamid=this.$route.query.id,this.getList()},activated:function(){this.teamid=this.$route.query.id,this.getList()},computed:{saveKey:function(){return"teamDetails-teacherList|id|"+this.$route.query.id}},methods:{search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this;Object(n["Qb"])({musicGroupId:this.teamid,page:this.rules.page,rows:this.rules.limit,search:this.searchForm.search||null}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},gotoRecord:function(){this.$router.push({path:"/business/teamTeacherRecord",query:{id:this.teamid,status:this.$route.query.status,name:this.$route.query.name}})}}},l=o,c=(s("6814"),s("2877")),u=Object(c["a"])(l,a,i,!1,null,null,null);t["a"]=u.exports},e4e7: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("1da1")),n=s("1cc7"),o=(s("1672"),s("3908"),s("333d")),l=s("ec8a"),c={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:l["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=c,d=(s("0c33"),s("2877")),m=Object(d["a"])(u,a,i,!1,null,"7a109218",null);t["a"]=m.exports},e7d6:function(e,t,s){"use strict";s("3c3d")},eb49:function(e,t,s){"use strict";s("f080")},ebaf:function(e,t,s){"use strict";s("a05b")},f03b:function(e,t,s){},f080:function(e,t,s){},f089:function(e,t,s){"use strict";s("054c")},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("5530")),n=(s("96cf"),s("1da1")),o=s("333d"),l=s("5a0c"),c=s.n(l),u=s("641c"),d=s("61f7"),m=s("1cc7"),p=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(m["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(m["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}()}},T=x,C=s("2877"),F=Object(C["a"])(T,_,S,!1,null,"4d351015",null),I=F.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)},L=[],P={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")}}},j=P,D=Object(C["a"])(j,O,L,!1,null,"4b111bac",null),G=D.exports,$=s("cd32"),N=s("3762"),A=s("267e"),R=s("ed08"),E=s("92e3"),M={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:$["a"],reviewDetail:N["a"],teamType:"","pay-items":b["a"],schoolPayUserList:I,isGetMoney:G},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,userListVisible:!1,itemsVisible:!1,teamType:this.$route.query.type,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",payOrderTypeLists:E["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(p["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"])(A["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(m["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(d["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(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(m["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(m["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(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())}}},V=M,q=(s("dabb"),Object(C["a"])(V,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("5530"),n=(s("96cf"),s("1da1")),o=(s("7f7f"),s("6762"),s("2fdb"),s("2909")),l=s("267e"),c=s("b4ac"),u=s("2ef0"),d={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:l["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(c["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)}}())}}},m=d,p=(s("8f19"),s("2877")),h=Object(p["a"])(m,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("5530"),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(),l=r+"-"+n+"-"+o;return l}),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,l=r.getDate()<10?"0"+r.getDate():r.getDate(),c=n+"-"+o+"-"+l;return c},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";s("ba30")},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("5530"),o=(s("7f7f"),s("6762"),s("2fdb"),s("5df3"),s("4f7f"),s("2909")),l=(s("456d"),s("28a5"),s("ac6a"),s("ade3")),c=(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)])}),d=[],m={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(){}}},p=m,h=(s("e323"),s("2877")),f=Object(h["a"])(p,u,d,!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(l["a"])(e,"soundList",[]),Object(l["a"])(e,"childSoundList",[]),Object(l["a"])(e,"teamStatus",""),Object(l["a"])(e,"checkList",[]),Object(l["a"])(e,"basdisabled",!1),Object(l["a"])(e,"teamid",""),Object(l["a"])(e,"isField",!0),e},mounted:function(){var e=this;this.$route.query.id&&(this.teamid=this.$route.query.id),window.addEventListener("scroll",this.getScroll),this.$nextTick((function(t){e.init()}))},deactivated:function(){window.removeEventListener("scroll",this.getScroll)},beforeDestroy:function(){this.setStore(),window.removeEventListener("scroll",this.getScroll)},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type||!this.teamid&&this.activeSoundList.length<1)&&this.init(),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1}},Object(l["a"])(a,"deactivated",(function(){this.activeSoundList=[]})),Object(l["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(c["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(c["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(c["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(c["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 l=[];this.activeSoundList.forEach((function(e){l.push(e.id)})),this.activeSound=l,this.chioseActiveSound=l,this.changeActiveSound(l.join(",")),this.soundVisible=!1},initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(e){var t=this;Object(c["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 l={};if(t.type.forEach((function(e){l[e]=0})),l=JSON.stringify(l),i){var c={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:i.name,kitGroupPurchaseTypeJson:l,depositFee:r,price:n,groupRemissionCourseFee:s};a.musicGroupSubjectGoodsGroups.push(c)}})),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(c["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(c["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(l["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),T=x,C=(s("b7ed"),Object(h["a"])(T,i,r,!1,null,"02b3b190",null));t["a"]=C.exports}}]);