1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2347dd1e","chunk-43e033dc","chunk-bd334e84","chunk-584f76a2","chunk-fbcd3e34","chunk-6e855f0c"],{"00af":function(e,t,a){},"0464":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(a){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(a){e.$set(e.list.form[t.$index],"courseType",a)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,s){return a("el-option",{key:s,attrs:{disabled:e.isOptionDisabled(s),label:e.courseType[s],value:s}})})),1)],1)]}}])}),e._v(" "),e.isCommon?a("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(a){e.$set(e.list.form[t.$index],"isStudentOptional",a)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),a("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(a){e.$set(e.list.form[t.$index],"courseTotalMinuties",a)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},r=[],i=(a("6762"),a("2fdb"),a("267e")),n=a("ed08"),o=a("92e3"),l=a("6612"),c=a.n(l),u=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:i["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(n["b"])(i["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(a,s,r){var i=t.list.form[e].courseType;i&&s>1&&t.classTimeList[i]&&s<t.classTimeList[i]?r(new Error("单节课不得少于".concat(t.classTimeList[i],"分钟"))):r()}}}}),d=u,p=(a("1139"),a("2877")),m=Object(p["a"])(d,s,r,!1,null,"a10777a0",null);t["a"]=m.exports},"04fb":function(e,t,a){},"054c":function(e,t,a){},"070d":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,"save-key":"resetPayList",model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add/3895",expression:"'musicGroupPaymentCalender/add/3895'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("\n 新建学员缴费\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("auditType")(t.row.auditStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseCurrentPrice",label:"课程费用"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice:t.row.courseCurrentPrice))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseCurrentPrice",label:"会员费用"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.memberPaymentAmount))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("查看")])],1),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},["REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e()],1),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[!e.teamStatus||"REJECT"!==t.row.auditStatus&&"DRAFT"!==t.row.auditStatus?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")])],1),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},["FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.auditStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")]):e._e()],1)],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"resetPayList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?a("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"STUDENT",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookDetail:e.lookDetail,onPreview:e.onPreview,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:!0,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:"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(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.memberVisible,width:"830px"},on:{"update:visible":function(t){e.memberVisible=t}}},[e.memberVisible?a("memberPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:"PRE_BUILD_FEE"==e.team_status?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.memberVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?a("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{staticClass:"subjectPreview",attrs:{title:"报名声部预览",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dialogSubjectList,(function(t,s){return a("el-tab-pane",{key:s,attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[a("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1)],1)],1)},r=[],i=(a("6b54"),a("a481"),a("96cf"),a("1da1")),n=a("333d"),o=a("5a0c"),l=a.n(o),c=a("641c"),u=a("61f7"),d=a("1cc7"),p=a("b38b"),m=a("d349"),h=a("1672"),f=a("b3d0"),b=a("940a"),v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"注意事项",closable:!1,type:"info"}}),e._v(" "),e._m(0),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"会员设置",closable:!1,type:"info"}}),e._v(" "),a("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,showTime:!0}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],1)},y=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tilteWrap"},[a("h4",[e._v("会员团排课规则:")]),e._v(" "),a("p",[e._v("\n 1、会员团每学期赠送3960分钟(88课时x45分钟)免费课程时长,该时长可排声部课、集训声部课、合奏课、集训合奏课、综合课,课程时长以上类型课程共享;\n ")]),e._v(" "),a("p",[e._v("\n 2、在本学期内声部课、集训声部课总共最多能排课1980分钟(44课时x45分钟);合奏课、集训合奏课最多能排课1980分钟(44课时x45分钟);综合课最多能排课3960分钟(88课时x45分钟);\n ")]),e._v(" "),a("p",[e._v("\n 3、赠送课程仅可在该学期内完成排课,且不可将本学期课程调整至学期时间范围之外;\n ")]),e._v(" "),a("p",[e._v("4、学期时间段:9月1日至2月28/29日,3月1日至8月31日;")]),e._v(" "),a("p",[e._v("\n 5、排课时系统根据【开课日期】计算本学期最大可排课时长,计算方式为开课日期到本学期结束日期周次*4*45分钟,若超过3960分钟(88课时x45分钟),按3960分钟(88课时x45分钟)计算。即:若学期中途开始排课,则可能排课时长并不能达到3960分钟(88课时x45分钟)。\n ")])])}],g=a("5530"),_=a("15fd"),S=a("b85c"),w=a("ace5"),k=a("b133"),x=a("ed08"),T={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},F={components:{memberSetting:w["a"],otherform:k["a"]},props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],data:function(){return{memberForm:{memberRankSettingId:"",memberValidDate:6,memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[]},other:{memo:""},viewDetail:null}},mounted:function(){this.init()},computed:{isUserType:function(){return"user"===this.type}},methods:{init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.rowDetail){e.next=18;break}return this.$set(this.other,"memo",this.rowDetail.memo),e.prev=2,e.next=5,Object(h["i"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 5:a=e.sent,this.viewDetail=a.data,s=null===(t=this.viewDetail)||void 0===t?void 0:t.musicGroupPaymentCalenders[0],this.$set(this.memberForm,"memberRankSettingId",s.memberRankSettingId),this.$set(this.memberForm,"memberValidDate",s.memberValidDate),this.$set(this.memberForm,"memberPaymentAmount",s.memberPaymentAmount),this.$set(this.memberForm,"originalMemberPaymentAmount",s.originalMemberPaymentAmount),this.$set(this.memberForm,"paymentDate",[s.startPaymentDate,s.deadlinePaymentDate]),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),console.log(e.t0);case 18:case"end":return e.stop()}}),e,this,[[2,15]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.memberSetting,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},submit:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i,n,o,l,c,u,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],s=Object(S["a"])(t);try{for(i=function(){var e=r.value;e.validate((function(t){t&&a.push(e)}))},s.s();!(r=s.n()).done;)i()}catch(p){s.e(p)}finally{s.f()}if(a.length!==t.length){e.next=35;break}if(o=Object(g["a"])(Object(g["a"])(Object(g["a"])({musicGroupId:this.musicGroupId},this.memberForm),this.other),{},{paymentType:T[0==this.paymentType?this.paymentType:0],paymentPattern:1,payUserType:"user"===this.type?"STUDENT":"SCHOOL",musicGroupPaymentDateRangeList:[Object(g["a"])({},Object(x["a"])(this.memberForm.paymentDate,["startPaymentDate","deadlinePaymentDate"]))]}),o.paymentDate,l=Object(_["a"])(o,["paymentDate"]),null!==(n=this.rowDetail)&&void 0!==n&&n.batchNo){e.next=20;break}return e.prev=7,e.next=10,Object(h["e"])(l);case 10:c=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(c.data),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](7);case 18:e.next=35;break;case 20:return l.batchNo=this.rowDetail.batchNo,l.paymentType=null===(u=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===u?void 0:u.paymentType,console.log(l),e.prev=23,e.next=26,Object(h["h"])(l);case 26:d=e.sent,this.$listeners.close(),this.$listeners.submited(d.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:merge(this.$route.query,{type:"feeAudit"})}),e.next=35;break;case 32:e.prev=32,e.t1=e["catch"](23),console.log(e.t1);case 35:case"end":return e.stop()}}),e,this,[[7,16],[23,32]])})));function t(){return e.apply(this,arguments)}return t}()}},C=F,P=(a("b58c"),a("2877")),I=Object(P["a"])(C,v,y,!1,null,"58df1511",null),O=I.exports,j=a("e623"),L=a("86e8"),D=a("cd32"),A=a("3762"),N=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticStyle:{background:"#F3F4F8"}},[s("h2",{staticClass:"title"},[e._v("注册说明")]),e._v(" "),e._m(0),e._v(" "),2==e.courseViewType?[s("h2",{staticClass:"title"},[e._v("学习工具包")]),e._v(" "),s("div",{staticClass:"yunTrain"},[s("img",{attrs:{src:e.trainBg}}),e._v(" "),s("div",{staticClass:"toolText"},[s("p",{staticClass:"toolTitle"},[e._v("乐器练习云教练\n\t\t\t\t\t\t"),s("i",{staticClass:"icon_video",on:{click:function(t){e.videoStatus=!0}}})]),e._v(" "),s("p",{staticClass:"toolDate"},[e._v("有效期说明:自开课之日起6个月内有效")])])])]:e._e(),e._v(" "),1==e.courseViewType&&e.courseShowInfo.length>0?[s("div",{staticClass:"yunTrain",staticStyle:{"margin-top":"12px"}},[s("img",{attrs:{src:e.trainBg}}),e._v(" "),s("div",{staticClass:"toolText"},[s("p",{staticClass:"toolTitle"},[e._v("服务")]),e._v(" "),e.serviceValidDate?s("p",{staticClass:"toolDate"},[e._v("服务有效期:"+e._s(e.serviceValidDate))]):e._e()])])]:e._e(),e._v(" "),0==e.courseViewType?s("h2",{staticClass:"titles",staticStyle:{"margin-top":"12px"}},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("乐团课程")])]):e._e(),e._v(" "),[e.courseShowStatus&&1==e.courseViewType?s("div",{staticClass:"section"},e._l(e.courseShowInfo,(function(t,a){return s("el-row",{key:a,staticClass:"option-row",class:[t.isStudentOptional?"":"disabled"],nativeOn:{click:function(a){return e.onCourseChange(t)}}},[s("el-col",{attrs:{span:16}},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),s("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?s("el-icon",{staticClass:"el-icon-question",nativeOn:{click:function(t){return e.onQuestions("amr")}}}):e._e()],1),e._v(" "),s("el-col",{attrs:{span:8}},[s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)})),1):e._e(),e._v(" "),2==e.courseViewType?s("div",{staticClass:"section"},e._l(e.toolsPackage,(function(t,a){return s("div",{key:a},[s("el-row",{staticClass:"option-row",staticStyle:{"padding-top":"0"},nativeOn:{click:function(a){return e.onTrainChange(t)}}},[s("el-col",{attrs:{span:18}},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),s("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.name))]],2)]),e._v(" "),s("el-col",{attrs:{span:6}},[2==e.courseViewType?s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.cloudTeacherFee)))]):e._e()])],1),e._v(" "),t.childGoodsList&&2==e.courseViewType?s("el-row",{staticStyle:{"padding-left":".24rem"}},e._l(t.childGoodsList,(function(a,r){return s("el-col",{key:a.name},[s("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+" "+e._s(t.childGoodsList.length-1==r?"":"、"))])])})),1):e._e()],1)})),0):e._e(),e._v(" "),0==e.courseViewType?s("div",{staticClass:"section"},[0==e.courseViewType?s("el-row",{staticClass:"title-row"},[s("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11,offset:1}},[e._v("现价")])],1):e._e(),e._v(" "),e._l(e.courseInfo,(function(t,a){return s("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[s("el-col",{attrs:{span:12}},[s("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(" "),s("el-col",{attrs:{span:11,offset:1}},[s("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?s("div",{staticClass:"section"},[s("h2",{staticClass:"title"},[e._v(e._s("乐团课程"))]),e._v(" "),s("el-row",{staticClass:"title-row"},[s("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.courseInfo,(function(t,a){return[t.isStudentOptional?s("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[s("el-col",{attrs:{span:12}},[s("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(" "),s("el-col",{attrs:{span:11,offset:1}},[s("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?s("h2",{staticClass:"titles"},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("乐器")])]):e._e(),e._v(" "),e.instrumentResultList&&e.instrumentResult.length>0?s("div",{staticClass:"section"},e._l(e.instrumentResultList,(function(t,a){return s("div",{key:a},[e.leBaoStatus&&"owned"==t[0].kitType?[s("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)}}},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[e.buyMaintenance?"check_active":""]}),e._v("乐器保养(一年)"),s("el-icon",{staticStyle:{"padding-left":"0"},attrs:{name:"question"},nativeOn:{click:function(t){return t.stopPropagation(),e.onQuestions("instrument")}}})],1),e._v(" "),s("el-col",{attrs:{span:11,offset:1}},[s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(300)))])])],1)]:e._e(),e._v(" "),s("el-row",{staticClass:"title-row"},[s("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(" "),s("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(" "),s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","FREE"].includes(t[0]["kitType"])?[e._v("现价")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("租赁押金")]:e._e()],2)],1),e._v(" "),e._l(t,(function(t,a){return s("div",{key:a,on:{click:function(a){return e.instrumentF(t)}}},[s("el-row",{staticClass:"option-row"},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(" "),s("div",[e._v("\n "+e._s(t.name)+"\n "),t.goodsList?s("div",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v("\n "+e._s(t.goodsList[0].specification)+"\n ")]):e._e()])]),e._v(" "),s("el-col",{attrs:{span:6}},["owned"!=t.kitType?s("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.marketPrice)))]):e._e()]),e._v(" "),s("el-col",{attrs:{span:6}},["LEASE"==t.kitType?s("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?s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))]):e._e(),e._v(" "),"GROUP"==t.kitType?s("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?s("el-row",{staticStyle:{padding:"8px 0px 8px 24px","border-top":"1px solid rgb(240, 240, 240)"}},[s("el-col",{staticStyle:{"font-size":"14px",color:"#1A1A1A","padding-bottom":"3px"},attrs:{span:24}},[e._v("赠送辅件")]),e._v(" "),s("el-col",[s("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?s("h2",{staticClass:"titles"},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("辅件")])]):e._e(),e._v(" "),e.accessOries.length>0&&e.accessIsShowStatus?s("div",{key:"accessOries",staticClass:"section"},[s("el-row",{staticClass:"title-row"},[s("el-col",{attrs:{span:12}},[e._v("服务项目")]),e._v(" "),s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("原价")]),e._v(" "),s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.accessOries,(function(t,a){return s("div",{key:a},[s("el-row",{staticClass:"option-row",nativeOn:{click:function(a){return e.onAuxiliarie(t)}}},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(e._s(t.name)+"\n ")]),e._v(" "),s("el-col",{attrs:{span:6}},[s("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.goodsList[0]?t.goodsList[0].marketPrice:0)))])]),e._v(" "),s("el-col",{attrs:{span:6}},[0==t.price?s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("免费")]):s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])])],1),e._v(" "),t.childGoodsList?s("el-row",{staticStyle:{"padding-left":"24px"}},[s("el-col",e._l(t.childGoodsList,(function(a,r){return s("span",{key:a.id,staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+" "+e._s(t.childGoodsList.length-1==r?"":","))])})),0)],1):e._e()],1)}))],2):e._e(),e._v(" "),s("div",{staticClass:"buy"},[s("div",{staticClass:"price"},[s("p",{staticClass:"oldprice"},[s("del",{staticClass:"text"},[e._v("原价")]),e._v(" "),s("del",{staticStyle:{"font-size":"13px"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),s("p",{staticClass:"now_price"},[s("span",{staticClass:"text"},[e._v("仅需支付")]),e._v(" "),s("span",{staticStyle:{"font-weight":"bold"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),s("a",{staticClass:"btn-submit"},[e._v("购买")])]),e._v(" "),s("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?s("video",{staticClass:"ql-video",staticStyle:{width:"100%"},attrs:{controls:"controls",src:"https://daya.ks3-cn-beijing.ksyun.com/202105/SWmqmvW.mp4",poster:a("df4f")}}):e._e()])],2)},E=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"noticeInfo"},[e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),a("br"),e._v("\n\t\t\t2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n\t\t")])}],R=(a("c5f6"),a("456d"),a("7f7f"),a("ac6a"),a("ec8a")),G={0:"按月",1:"按学期",2:"一次性"},$={props:["subjectId","calenderId"],data:function(){var e=this.$route.query;return{videoStatus:!1,trainBg:a("31f0"),trainSmallBg:a("9214"),musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,cloudTeacherFee:0,cloudTeacherPlusFee:0,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0,musicMarketClassFee:0,accessPrice:0,accessMarketPrice:0,goodsPrice:0,goodsMarketPrice:0},toolsPackage:[{isStatus:!0,name:"练习系统(六个月)",childGoodsList:[{name:""}]}],courseInfo:[],courseShowInfo:[],musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],instrumentResultList:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null,serviceValidDate:null,courseShowStatus:!1,chargeTypeList:[],chargeTypeName:null,courseViewType:0,leBaoStatus:!1,buyMaintenance:!1,isClickStatus:!1,accessStatus:!1,accessIsShowStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId,calenderId:this.calenderId},e.next=3,Object(d["Ub"])().then((function(e){var t=e.data;200==e.code&&(a.chargeTypeList=t.rows||[])}));case 3:return e.next=5,Object(d["Kb"])(t).then((function(e){var t=e;if(200==t.code){var s=t.data;a.courseViewType=s.musicGroup.courseViewType||0,a.cloudTeacherFee=s.cloudTeacherFee||0,a.cloudTeacherPlusFee=s.cloudTeacherPlusFee||0,a.paymentPattern=2,s.musicGroupPaymentCalender&&(a.paymentPattern=s.musicGroupPaymentCalender.paymentPattern,a.serviceValidDate=l()(s.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+l()(s.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var r=s.musicGroupPaymentCalender?s.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null,i=s.memberPrivilegesItemList?s.memberPrivilegesItemList:[],n=[];if(i.forEach((function(e){e.memberPrivilegesItems&&e.memberPrivilegesItems.length>0&&e.memberPrivilegesItems.forEach((function(e){n.push(e.name)}))})),a.toolsPackage=[{isStatus:!0,name:"练习系统(六个月)",childGoodsList:[{name:n.join("、")}]}],r&&r.length>0){var o={courseCurrentPrice:0,courseOriginalPrice:0,courseType:null,name:"器乐练习系统"};r.forEach((function(e){e.isStudentOptional||(a.courseShowStatus=!0,o={courseCurrentPrice:e.courseCurrentPrice+o.courseCurrentPrice,courseOriginalPrice:e.courseCurrentPrice+o.courseCurrentPrice,courseType:"PROJECT",isStatus:!0,name:"器乐练习系统"})})),a.courseShowInfo=[o],a.courseInfo=r}else a.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}];a.isClickStatus=!1,a.courseInfo.forEach((function(e){e.isStudentOptional?(e.isStatus=!1,a.isClickStatus=!0):e.isStatus=!0})),a.musicGroupSubject=s.musicGroupSubjectPlan;var c={},u=[];if(s.musicGroupSubjectGoodsGroupList.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{},s=function(s){var r=Object.assign({},e);r.marketPrice=r.goodsList[0].marketPrice,r.kitType=s,r.coupon=t[s],c.id?(r.checked=!1,"GROUP"==s?("GROUP"==c.kitType&&c.price<r.price||"LEASE"==c.kitType||"FREE"==c.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,c={id:r.id,price:r.price,kitType:s}):"LEASE"==s?"LEASE"==c.kitType&&c.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,c={id:r.id,price:r.price,kitType:s}):"FREE"==s&&"FREE"==c.kitType&&c.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,c={id:r.id,price:r.price,kitType:s})):(r.checked=!0,c={id:r.id,price:r.price,kitType:s});var i=[];r.childGoodsList&&r.childGoodsList.length>0&&(r.childGoodsList.forEach((function(e){"INSTRUMENT"!=e.type&&"OTHER"!=e.type&&i.push(e.name)})),r.childGoodsNames=i.join("、")),a.instrumentResult.push(r),u.push(r)};for(var r in t)s(r)}else"ACCESSORIES"==e.type&&(e.checked=!0,a.accessOries.push(e))})),a.instrumentResult.length>0){var d={id:-1,kitType:"owned",name:"自备乐器",price:0,marketPrice:0,checked:!1};u.push(d),a.instrumentResult.push(d);var p=a.groupBy(u,(function(e){return[e.kitType]}));console.log(p),a.instrumentResultList=p,a.chargeTypeList.forEach((function(e){e.id==s.musicGroup.chargeTypeId&&(a.chargeTypeName=e.description)}));var m=!1;a.accessOries.forEach((function(e){e.childGoodsList&&e.childGoodsList.length>0&&e.childGoodsList.forEach((function(e){76==e.id&&(m=!0)})),76==e.goodsIdList&&(m=!0)})),a.accessStatus=m,23==a.subjectId&&(a.accessStatus=!0,m=!0),a.instrumentResult.forEach((function(e){e.checked&&"owned"!=e.kitType&&!m&&(a.leBaoStatus=!0,a.buyMaintenance=!0),e.checked&&"GROUP"!=e.kitType&&2==a.courseViewType&&(a.accessIsShowStatus=!0),2!=a.courseViewType&&(a.accessIsShowStatus=!0)}))}}a.calcPrice()}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onLeBao:function(){this.buyMaintenance=!this.buyMaintenance,this.calcPrice()},groupBy:function(e,t){var a={};return e.forEach((function(e){var s=JSON.stringify(t(e));a[s]=a[s]||[],a[s].push(e)})),Object.keys(a).map((function(e){return a[e]}))},onQuestions:function(e){"amr"==e?this.$alert("<b>革命性的“AMR器乐练习系统”</b><br />它的诞生是基于世界上最优秀的华人管乐指导专家唐嘉宏先生的教育理念,创新开发的一种新型“音乐感官植入程序”,这个程序抛弃了传统的“数线式识谱、机械式节奏、死记式乐理”,它营造出沉浸式可变速演奏过程,采用画面与音乐刺激序列组合而成的特定场景,在趣味性挑战的反复刺激中逐步促进器乐演奏的三核心:“音质→音准→音型”,从而达成演奏各环节水准的均匀提高,产生永久性条件反射式大脑记忆,将多板块知识融会贯通,让抽象的音乐知识刻入脑海里!<br /><br /><b>本练习系统的特点:</b><br /> 1.轻松快速掌握要点,让练习者沉浸其中,远离枯燥!<br /> 2.不假思索就能瞬间唤起反射式记忆,演奏识谱不再慢吞吞!<br /> 3.真正的实践记忆,摆脱纸上谈兵,与实际演奏紧密结合!<br />4.思维+肌肉的双重强化!无缝整合复习系统!<br /> 5.每条练习都经过严谨的编曲,你以为你只是在练习旋律线?其实是整个乐团在为你伴奏!","AMR器乐练习系统",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}}):"instrument"==e&&this.$alert('<p style="text-align: justify">1.乐器保养是管乐迷针对乐团学员提供的乐器检查、保养及维修优惠特权;<br />2.该特权为包年制,从开通特权之日起365天内有效;<br />3.特权用户可享受管乐迷提供专业的高级乐器维修技师一年不低于两次下校检查乐器使用情况;<br />4.特权有效期内凭该特权绑定的乐器编号可享受保养人工费减免、非返厂维修人工费优惠等特权;<br />感谢您的信任和支持!</p>',"乐器保养特权",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}})},onCourseChange:function(e){e.isStudentOptional&&(e.isStatus=!e.isStatus,this.calcPrice())},onTrainChange:function(e){e.isStatus=!e.isStatus;var t=this.courseShowInfo;t.forEach((function(t){t.isStatus=e.isStatus}));var a=this.courseInfo;a.forEach((function(t){t.isStudentOptional||(t.isStatus=e.isStatus)})),this.calcPrice()},onClickCheckbox:function(){this.payType?this.needPrice=this.orderInfo.amount:this.orderInfo.amount>=this.balance?this.needPrice=Number((this.orderInfo.amount-this.balance).toFixed(2)):this.needPrice=0,this.payType=!this.payType},onAuxiliarie:function(e){e.checked=!e.checked,this.calcPrice()},instrumentF:function(e){this.instrumentResult.forEach((function(e){e.checked=!1})),e.checked=!0,this.accessStatus||("owned"!=e.kitType?(this.leBaoStatus=!0,this.buyMaintenance=!0):(this.leBaoStatus=!1,this.buyMaintenance=!1)),2==this.courseViewType&&("GROUP"!=e.kitType?this.accessIsShowStatus=!0:this.accessIsShowStatus=!1),this.calcPrice()},calcPrice:function(){var e=this,t=[],a=[],s=0,r=0,i=0,n=0,o={},c=[],u=0,d=[],p=0,m=0,h=0,f=0,b=0,v=0,y="",g=this.musicGroupSubject,_=this.courseInfo;if(2==this.courseViewType&&this.toolsPackage[0].isStatus){var S=this.cloudTeacherFee;m+=parseFloat(S),r+=parseFloat(S)}if(g){var w=this.courseShowInfo;if(w.length>0&&1==this.courseViewType){var k=0;w.forEach((function(e){k+=parseFloat(e.courseCurrentPrice)})),r+=parseFloat(k),t.unshift({name:this.chargeTypeName,type:G[this.paymentPattern],price:Number(k.toFixed(2))})}_.forEach((function(t){t.isStatus&&(2!=e.courseViewType&&(m+=parseFloat(t.courseCurrentPrice)),t.id>0&&c.push(t.id),t.isStudentOptional?r+=parseFloat(t.courseCurrentPrice):v+=parseFloat(t.courseCurrentPrice),0!=e.courseViewType||t.isStudentOptional||(r+=parseFloat(t.courseCurrentPrice)))}))}var x=this.instrumentResult;x.length>0&&x.forEach((function(e){e.checked&&("自备乐器"!=e.name&&(y+=e.goodsIdList),"FREE"==e.kitType?(s+=0,u=0):"LEASE"==e.kitType?(u=e.coupon,"自备乐器"!=e.name?(s+=e.depositFee,i+=e.depositFee):s+=0):(s+=parseFloat(e.price),i+=parseFloat(e.price),u=e.coupon?e.coupon:0),"LEASE"==e.kitType?"自备乐器"!=e.name&&(r+=parseFloat(e.marketPrice),n+=e.depositFee):(r+=parseFloat(e.marketPrice),n+=parseFloat(e.marketPrice)),e.id&&(o[e.id]=e.kitType),"LEASE"==e.kitType?t.push({name:e.name,type:"租赁",price:e.depositFee}):"GROUP"==e.kitType?t.push({name:e.name,type:"团购",price:parseFloat(e.price-u)}):"FREE"==e.kitType&&t.push({name:e.name,type:"免费",price:0}),"GROUP"==e.kitType&&1==e.groupRemissionCourseFee&&(m=parseFloat(m-v)))})),this.leBaoStatus&&this.buyMaintenance&&(r+=300,s+=300,t.push({name:"乐器保养",time:l()().format("YYYY/MM/DD")+"~"+l()().add(365,"day").format("YYYY/MM/DD"),type:"包年",price:300})),s+=parseFloat(p+m),parseFloat(p+m)>0&&0==this.courseViewType&&t.unshift({name:"乐团课",type:G[this.paymentPattern],price:Number((p+m).toFixed(2))}),this.accessOries.length>0&&this.accessOries.forEach((function(a){a.checked&&e.accessIsShowStatus&&(f+=parseFloat(a.price),s+=parseFloat(a.price),a.goodsList&&a.goodsList.length>0&&a.goodsList.forEach((function(e){b+=parseFloat(e.marketPrice),r+=parseFloat(e.marketPrice)})),o[a.id]="ACCESSORIES",t.push({name:a.name,type:"团购",price:a.price}))}));var T=s;if(s-u>=0?(s=Number((s-u).toFixed(2)),this.errorPrice=!1):(s=0,this.errorPrice=!0),this.ids=a,this.payType){var F=Number((s-this.balance).toFixed(2));this.needPrice=F>0?F:0}else this.needPrice=Number(s.toFixed(2));this.buyList=t,this.orderInfo={amount:Number(s.toFixed(2)),marketPrice:Number(r.toFixed(2)),groupPurchasePrice:T,couponPrice:u,goodsGroupIds:o,goodsIds:d.join(","),contractGoodsIds:y,courseKeys:c,musicClassFee:m,musicMarketClassFee:h,accessMarketPrice:b,accessPrice:f,goodsPrice:i,goodsMarketPrice:n}},permission:function(e){return Object(R["a"])(e)}}},M=$,V=(a("51f5"),Object(P["a"])(M,N,E,!1,null,"8390975c",null)),q=V.exports,U=a("267e"),B=a("92e3"),H={props:["isNewGropu"],components:{pagination:n["a"],setStudentFee:f["default"],userPayForm:b["a"],memberPayForm:O,schoolPayForm:L["a"],QrCode:c["a"],review:D["a"],reviewDetail:A["a"],"pay-items":j["a"],subjectPreview:q},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,itemsVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",teamType:this.$route.query.type,payOrderTypeLists:B["x"],dialogSubjectVisible:!1,dialogSubjectList:[],activeName:null,dialogCalenderId:null,baseInfo:null,memberVisible:!1}},created:function(){},mounted:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(x["b"])(U["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){return"PRE_BUILD_FEE"==this.team_status||"PROGRESS"==this.team_status},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["c"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getTeamInfo(),this.getList();case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),getTeamInfo:function(){var e=this;this.$route.query.id&&Object(d["Ob"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code&&(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo))}))},newUserPay:function(){var e,t;2==(null===(e=this.baseInfo)||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.courseViewType)&&"PRE_BUILD_FEE"==this.team_status?(this.payFormType="user",this.isNew=!0,this.activeRow=null,this.memberVisible=!0):(this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0)},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(p["c"])({page:this.rules.page,rows:this.rules.limit,search:t,payUserType:"STUDENT",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id+"&id="+this.$route.query.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){var t,a;this.diTitle="修改缴费",2==(null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.courseViewType)&&"MUSIC_APPLY"==e.paymentType?(this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.isNew=!1,this.activeRow=e,this.memberVisible=!0):(this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0)},revoke:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否撤回此缴费项目的审批?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(h["l"])({batchNo:t.batchNo});case 5:e.sent,this.$message.success("取消审批成功"),this.getList(),this.getTeamInfo(),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}(),changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["A"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},removeBatchNo:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(h["f"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(h["g"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(d["sc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getTeamInfo(),e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,s=new Date(a.replace(/-/g,"/"));s=new Date(1e3*(s/1e3+86400*t));var r=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate();return r},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:this.getTeamInfo(),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),onPreview:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,a=this.$route.query.id,e.next=4,Object(d["J"])({musicGroupId:a}).then((function(e){200==e.code?(s.dialogSubjectList=e.data.musicGroupSubjectPlans,s.activeName=s.dialogSubjectList[0].subjectId.toString(),s.dialogSubjectVisible=!0):s.$message.warning("没有可预览的声部")}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},z=H,Y=(a("7962"),Object(P["a"])(z,s,r,!1,null,"d2c88a1e",null));t["a"]=Y.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,s){return e/=s/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=i(),o=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var i=Math.easeInOutQuad(c,n,o,t);r(i),c<t?s(e):a&&"function"===typeof a&&a()};u()}},"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"},1004:function(e,t,a){"use strict";a("6ccb")},1139:function(e,t,a){"use strict";a("44d1")},"153a":function(e,t,a){"use strict";a("9c2d")},"160b":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var s=a("b775"),r=a("829b"),i="/api-web";function n(e){return Object(r["a"])({url:i+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(s["a"])({url:i+"/chargeType/queryPage",method:"get",params:e})}},1672:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"i",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"g",(function(){return o})),a.d(t,"h",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"l",(function(){return u})),a.d(t,"j",(function(){return d})),a.d(t,"d",(function(){return p})),a.d(t,"k",(function(){return m})),a.d(t,"b",(function(){return h})),a.d(t,"a",(function(){return f}));var s=a("829b"),r=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},i=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},n=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},o=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},l=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},c=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},u=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},d=function(e){return Object(s["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},p=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},m=function(e){return Object(s["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},h=function(e){return Object(s["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},f=function(e){return Object(s["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})}},"1aa8":function(e,t,a){"use strict";a("7619")},"1af5":function(e,t,a){},"1c0e":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"buttonWrap"},[a("div",{staticClass:"left"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"班级类型",clearable:"",filterable:""},on:{change:e.changeClassGetList},model:{value:e.searchForm.classType,callback:function(t){e.$set(e.searchForm,"classType","string"===typeof t?t.trim():t)},expression:"searchForm.classType"}},e._l(e.classTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/create",expression:"'classGroup/create'"}],staticClass:"newBand",on:{click:e.newClass}},[e._v("\n 新建班级\n ")])],1)]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.selectionTable}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"实际/预计人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.studentNum+"/"+t.row.expectStudentNum)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"主教老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?a("div",[e._v("\n "+e._s(e._f("getBishopName")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"助教人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?a("div",[e._v("\n "+e._s(e._f("getTeachingNum")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"totalClassTimes",label:"排课课次"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"260px",prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["HIGH"===t.row.type||"HIGH_ONLINE"===t.row.type?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/findAllStudent",expression:"'classGroupStudent/findAllStudent'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDeatil(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/classGroupUpdate",expression:"'classGroup/classGroupUpdate'"}],attrs:{type:"text"},on:{click:function(a){return e.classAdjustment(t.row)}}},[e._v("老师调整")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("学员调整")]),e._v(" "),a("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/delSingle",expression:"'classGroup/delSingle'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[a("p",[e._v("确定删除?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.removeClass(t)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")])],1)],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[a("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[a("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(" "),a("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请输入班级人数",trigger:"blur"}],prop:"type"}},[a("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.classTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[a("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop",t)},expression:"newClassForm.bishop"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[a("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?a("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[a("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching",t)},expression:"newClassForm.teaching"}})],1):e._e(),e._v(" "),"NORMAL"==e.newClassForm.type?a("el-form-item",{key:"HIGH",attrs:{label:"声部",prop:"subjectIdList",rules:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?a("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"网络教室声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),a("br")],1),e._v(" "),a("div",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[a("div",[a("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[a("div",{staticClass:"popoverWrap"},[a("p",[e._v("线上基础技能班规则:")]),e._v(" "),a("p",[e._v("班级数量:")]),e._v(" "),a("p",[e._v("\n 可创建班级数量=各个声部学员数/6向上取整+乐团在读学员数/30向上取整\n ")]),e._v(" "),a("p",[e._v("\n 上低音号、长号学员数合并计算\n ")]),e._v(" "),a("p",[e._v("班级人数:")]),e._v(" "),a("p",[e._v("线上基础技能班人数上限为6人")])]),e._v(" "),a("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("线上基础技能班规则")])],1)],1),e._v(" "),a("div",[a("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type||"HIGH"==e.newClassForm.type?a("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.newClassSecond}},[e._v("确 定")])],1)])],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",width:"700px",visible:e.studentVisible,"modal-append-to-body":!0},on:{"update:visible":function(t){e.studentVisible=t}}},[a("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,isOnlyChangeUser:!0,activeType:e.activeType,isStudentRemove:e.isStudentRemove,type:"change"},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:e.searchStudent,submited:e.submited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),a("el-dialog",{attrs:{title:"老师调整",width:"700px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[a("el-form",{ref:"teacherForm",attrs:{inline:!0,model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"100px;"}},[a("br"),e._v(" "),a("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher"}},[a("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.teacherForm.coreTeacher,callback:function(t){e.$set(e.teacherForm,"coreTeacher",t)},expression:"teacherForm.coreTeacher"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant},model:{value:e.teacherForm.assistant,callback:function(t){e.$set(e.teacherForm,"assistant",t)},expression:"teacherForm.assistant"}})],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?a("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.teacherForm.courseType,callback:function(t){e.$set(e.teacherForm,"courseType","string"===typeof t?t.trim():t)},expression:"teacherForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),a("br"),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?a("el-form-item",{attrs:{label:"排课次数",prop:"courseNum"}},[a("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.teacherForm.courseNum,callback:function(t){e.$set(e.teacherForm,"courseNum","string"===typeof t?t.trim():t)},expression:"teacherForm.courseNum"}})],1):e._e(),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?a("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[a("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.teacherForm.courseTime,callback:function(t){e.$set(e.teacherForm,"courseTime","string"===typeof t?t.trim():t)},expression:"teacherForm.courseTime"}}),e._v(" "),a("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.teacherForm.checked,callback:function(t){e.$set(e.teacherForm,"checked","string"===typeof t?t.trim():t)},expression:"teacherForm.checked"}},[e._v("是否跳过节假日")])],1):e._e()],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?a("div",{staticClass:"WeekWrap"},[a("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,s){return a("div",{key:s,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[a("span",[e._v("循环周期:")]),e._v(" "),a("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(a){e.$set(t,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("span",[e._v("开始时间")]),e._v(" "),a("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(a){e.$set(t,"startClassTime","string"===typeof a?a.trim():a)},expression:"item.startClassTime"}}),e._v(" "),a("span",[e._v("结束时间")]),e._v(" "),a("el-time-select",{attrs:{"picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(a){e.$set(t,"endClassTime",a)},expression:"item.endClassTime"}}),e._v(" "),a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return e.removeWeek(t)}}})],1)})),0)]):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.isNewClass?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(1)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isNewClass?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(3)}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"批量排课",width:"700px",visible:e.arrangeVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.arrangeVisible=t}}},[a("el-form",{ref:"arrangeForm",attrs:{model:e.arrangeForm,"label-width":"100px","label-position":"right"}},[a("el-form-item",{attrs:{label:"选择班级数",prop:"classNum"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{type:"number",value:e.arrangeForm.classNum,disabled:""},nativeOn:{mousewheel:function(e){e.preventDefault()}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课程类型",prop:"courseType",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[a("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.arrangeForm.courseType,callback:function(t){e.$set(e.arrangeForm,"courseType","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"上课形式",prop:"teachMode",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[a("el-select",{attrs:{disabled:""},model:{value:e.arrangeForm.teachMode,callback:function(t){e.$set(e.arrangeForm,"teachMode","string"===typeof t?t.trim():t)},expression:"arrangeForm.teachMode"}},[a("el-option",{attrs:{value:"ONLINE",label:"线上"}}),e._v(" "),a("el-option",{attrs:{value:"OFFLINE",label:"线下"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"开始日期",prop:"courseTime",rules:[{required:!0,message:"请选择开始日期",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"选择日期"},model:{value:e.arrangeForm.courseTime,callback:function(t){e.$set(e.arrangeForm,"courseTime","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseTime"}}),e._v(" "),a("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.arrangeForm.checked,callback:function(t){e.$set(e.arrangeForm,"checked","string"===typeof t?t.trim():t)},expression:"arrangeForm.checked"}},[e._v("是否跳过节假日")])],1),e._v(" "),a("el-form-item",{attrs:{label:"排课次数",rules:[{required:!0,message:"请输入排课次数",trigger:"blur"}],prop:"courseNum"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.arrangeForm.courseNum,callback:function(t){e.$set(e.arrangeForm,"courseNum","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseNum"}})],1)],1),e._v(" "),a("div",{staticClass:"WeekWrap"},[a("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,s){return a("div",{key:s,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[a("span",[e._v("循环周期:")]),e._v(" "),a("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(a){e.$set(t,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),a("span",[e._v("开始时间")]),e._v(" "),a("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(a){e.$set(t,"startClassTime","string"===typeof a?a.trim():a)},expression:"item.startClassTime"}}),e._v(" "),a("span",[e._v("结束时间")]),e._v(" "),a("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(a){e.$set(t,"endClassTime","string"===typeof a?a.trim():a)},expression:"item.endClassTime"}}),e._v(" "),a("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(a){return e.removeWeek(t)}}})],1)})),0)]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.arrangeVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.arrangeFormSubmit}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"添加学员",width:"600px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[a("el-table",{ref:"studentList",attrs:{data:e.studentList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.selectStudent}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"学生姓名"}}),e._v(" "),a("el-table-column",{attrs:{property:"classGroupName",label:"所在班级"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/addStudents",expression:"'classGroupStudent/addStudents'"}],attrs:{type:"primary"},on:{click:e.addStudnt}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"学员详情",width:"600px",visible:e.lookDeatilVisible},on:{"update:visible":function(t){e.lookDeatilVisible=t}}},[a("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.classList}},[a("el-table-column",{attrs:{label:"学员姓名",prop:"name"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/del",expression:"'classGroupStudent/del'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[a("p",[e._v("确定删除该学生?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.removeStudent(t)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1)],1)]}}])})],1)],1)],1)},r=[],i=(a("7f7f"),a("bc3a"),a("5f87"),a("333d")),n=(a("3908"),a("f927")),o=a("b4ac"),l=a("1cc7"),c=a("5137"),u=a("a6e9"),d={components:{pagination:i["a"],selectStudent:n["a"]},props:{isSetSalary:{type:Boolean,required:!0}},data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},searchForm:{classType:null},activeType:null,activeClass:null,soundList:[],teacherList:[],tableList:[],classTypeList:[{value:"NORMAL",label:"声部班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能课"}],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},chioseStudent:[],activeListStudent:[],isNewClass:!0,studentVisible:!1,isSearch:!1,studentList:[],activeChioseSound:null,infoVisible:!1,teacherForm:{isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数",trigger:"blur"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}]},weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],weekList:[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}],cooperationList:[],courseTypeList:[],arrangeVisible:!1,arrangeForm:{courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},chioseTab:[],classCardList:[],teamid:null,maxMun:16,lookDeatilVisible:!1,addStudentVisible:!1,activeStudentList:[],classList:[],appoint:!1,activeSoundList:[],isStudentRemove:!1}},created:function(){},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(l["L"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList(),Object(u["b"])({group:"holiday"}).then((function(t){200==t.code&&t.data.length>0&&t.data[0].paranValue&&(e.holidayList=JSON.parse(t.data[0].paranValue))}))},changeActiveChioseSound:function(e){this.activeChioseSound=e},getList:function(){var e=this;this.teamid=this.$route.query.id,Object(l["pb"])({groupType:"MUSIC",musicGroupId:this.teamid,type:this.searchForm.classType,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},changeClassGetList:function(e){this.getList()},newClass:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.newClassVisible=!0,this.isStudentRemove=!1)},newClassSecond:function(){var e=this;this.$refs["newClassForm"].validate((function(t){if(t){e.isNewClass=!0;var a=e.newClassForm.type;e.isSearch=!0,e.getNoClassStudent(a,null),e.studentVisible=!0}}))},newClassHight:function(){var e=this;if("HIGH_ONLINE"==this.newClassForm.type&&(this.newClassForm.expectStudentNum>6||this.newClassForm.expectStudentNum<3))return this.$message.error("班级人数必须为3-6人");this.$refs["newClassForm"].validate((function(t){if(t){var a,s={};if(s.musicGroupId=e.teamid,s.name=e.newClassForm.className,s.type=e.newClassForm.type,s.groupType="MUSIC",s.expectStudentNum=e.newClassForm.expectStudentNum,s.teacherMapperList=[],s.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)a=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(s.memo=e.newClassForm.memo.join(","));else{for(var r in a=e.newClassForm.memo.length>0?e.newClassForm.memo.join(","):null,e.newClassForm.teaching)s.teacherMapperList.push({userId:e.newClassForm.teaching[r],teacherRole:"TEACHING"});s.memo=a}s.subjectIdList=a,Object(l["y"])(s).then((function(t){200==t.code&&(e.$message.success("创建成功"),e.resetClassFrom(),e.getList(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},removeStudent:function(e){var t=this;Object(c["r"])({classGroupId:this.activeClass,userId:e.row.userId}).then((function(a){200==a.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(c["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.activeListStudent=e.data,t.getNoClassStudent(t.activeType))})),"HIGH_ONLINE"!=t.activeType&&"HIGH"!=t.activeType||(e._self.$refs[e.$index].doClose(),Object(c["g"])({classGroupId:t.activeClass}).then((function(e){200==e.code&&(t.classList=e.data)}))))}))},addSomeStudent:function(e){var t=this;e.length<=0&&!this.isStudentRemove?this.$message.error("至少添加一名学员"):"HIGH_ONLINE"==this.activeType?Object(l["Lc"])({classGroupId:this.activeClass}).then((function(a){if(200==a.code){var s=a.data.rows[0].expectStudentNum;if(e.length>s)return void t.$message.error("超过预计招生人数");Object(o["c"])({classGroupId:t.activeClass,studentIds:e.join(",")}).then((function(e){if(200==e.code)return t.studentVisible=!1,t.$message.success("添加成功"),void t.getList()}))}})):Object(o["c"])({classGroupId:this.activeClass,studentIds:e.join(",")}).then((function(e){200==e.code&&(t.studentVisible=!1,t.$message.success("添加成功"),t.getList())}))},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var a in this.studentList)this.studentList[a].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var a={},s=[];for(var r in e)a[e[r][t]]||(s.push(e[r]),a[e[r][t]]=!0);return s},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},getNoClassStudent:function(e,t){var a=this;if(!t);Object(l["ub"])({musicGroupId:this.teamid,type:e,actualSubjectId:t}).then((function(e){200==e.code&&(a.studentList=e.data)}))},searchStudent:function(e){this.getNoClassStudent(this.newClassForm.type,e)},submited:function(e){this.isNewClass?this.createMusiceClass((null===e||void 0===e?void 0:e.seleched)||[]):this.addSomeStudent((null===e||void 0===e?void 0:e.seleched)||[])},createMusiceClass:function(e){var t=this,a=null;e.length>0&&(a=e.join(","));var s,r={};for(var i in r.musicGroupId=this.teamid,r.name=this.newClassForm.className,r.type=this.newClassForm.type,r.groupType="MUSIC",r.userIds=a,r.teacherMapperList=[],r.expectStudentNum=this.newClassForm.expectStudentNum,s="HIGH_ONLINE"==this.newClassForm.type?this.newClassForm.subjectIdList:"MIX"==this.newClassForm.type?null:this.newClassForm.subjectIdList.length>0?this.newClassForm.subjectIdList.join(","):null,r.subjectIdList=s,r.teacherMapperList.push({userId:this.newClassForm.bishop,teacherRole:"BISHOP"}),this.newClassForm.teaching)r.teacherMapperList.push({userId:this.newClassForm.teaching[i],teacherRole:"TEACHING"});Object(l["y"])(r).then((function(e){200==e.code&&(t.$message.success("创建成功"),t.getList(),t.resetClassFrom(),t.studentVisible=!1,t.newClassVisible=!1)}))},classAdjustment:function(e){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else{for(var t in this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.teacherMapperList)"BISHOP"==e.teacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.teacherMapperList[t].userId),"TEACHING"==e.teacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.teacherMapperList[t].userId);console.log(this.teacherForm),this.infoVisible=!0}},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},setType:function(e){switch(e){case"NORMAL":this.courseTypeList=[{value:"SINGLE",label:"声部课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":this.courseTypeList=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":this.courseTypeList=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":this.courseTypeList=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"SNAP":this.courseTypeList=[{value:"SINGLE",label:"声部课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训声部课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}},removeClass:function(e){var t=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):Object(l["pc"])({classGroupId:e.row.id}).then((function(a){200==a.code?(t.$message.success("删除成功"),e._self.$refs[e.$index].doClose(),t.getList()):(t.$message.error(a.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},setAssistant1:function(e){for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},SelectionStudent:function(e){this.chioseStudent=e},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate((function(a){if(a){var s=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||s[0]&&s[0].startClassTime&&s[0].endClassTime&&s[0].dayOfWeek){var r=t.className,i=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var n in t.teacherForm.assistant)i.push({userId:t.teacherForm.assistant[n],teacherRole:"TEACHING"});var o=t.teamid,c=t.teacherForm.courseTime,u=t.teacherForm.courseType,d=t.teacherForm.courseNum;if(d<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("请至少排一节课");else{var p=t.activeListStudent.map((function(e){return e.userId})),m=t.teacherForm.checked,h=[];for(var f in t.weekList)h.push(t.weekList[f]);if(h.length<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("新增班级至少排一节课");else{"onlyUpdateTeacher"==t.teacherForm.isAdd&&(c=null,u=null,p=null,m=null,d=null,h=null,b=null);var b=t.activeType,v={classGroupName:r,classGroupTeacherMapperList:i,musicGroupId:o,startDate:c,courseType:u,students:p,holiday:m,courseTimes:d,courseTimeDtoList:h,type:b,courseAddType:t.teacherForm.isAdd};1==e?revisionClassGroup(v).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):2==e?revisionAddClassGroup(v).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):3==e&&(v.classGroupId=t.activeClass,Object(l["s"])([v]).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.getList())})))}}}else t.$message.error("至少排一节课")}else t.$message.error("请填写必要信息")}))},resetClass:function(e){var t=this;this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.isStudentRemove=!0,this.newClassForm.type=e.type,this.activeChioseSound=null,Object(c["g"])({classGroupId:e.id}).then((function(e){200==e.code&&(t.activeListStudent=e.data.map((function(e){return e.isVisible=!1,e})))})),this.activeSoundList=this.soundList,this.getNoClassStudent(e.type))},arrangeStart:function(){if(this.isSetSalary)this.$message.error("课酬确认后无法编辑");else if(this.chioseTab.length<1)this.$message.error("请至少选择一个班级");else{var e=this.chioseTab[0].type,t=this.chioseTab.every((function(t){return t.type==e}));if(!t)return this.$message.error("请选择相同类型的班级"),!1;this.setType(this.chioseTab[0].type),this.arrangeForm.courseType=this.courseTypeList[0].value,this.arrangeVisible=!0,"HIGH_ONLINE"==this.arrangeForm.courseType?this.arrangeForm.teachMode="ONLINE":this.arrangeForm.teachMode="OFFLINE",this.arrangeForm.classNum=this.chioseTab.length}},selectionTable:function(e){this.chioseTab=e,this.arrangeForm.classNum=e.length},arrangeFormSubmit:function(){var e=this;this.weekList.length<0||!this.weekList[0].dayOfWeek?this.$message.error("请设置排课周期"):this.arrangeForm.courseNum>this.maxMun||this.arrangeForm.courseNum<1?this.$message.error("排课数量必须大于1或小于".concat(this.maxMun)):this.$refs["arrangeForm"].validate((function(t){if(t){var a=e.arrangeForm.courseTime,s=e.arrangeForm.courseNum,r=e.weekList,i=e.arrangeForm.courseType,n=e.arrangeForm.teachMode;e.classCardList=[],e.workOut(a,s,r,i,n)}}))},workOut:function(e,t,a,s,r){var i=this,n=a.every((function(e){return e.dayOfWeek&&e.startClassTime&&e.endClassTime}));if(n){while(t&&t>0){for(var o in a){var c=new Date(e.getTime()),u=void 0;u=a[o].dayOfWeek-e.getDay()>=0?a[o].dayOfWeek-e.getDay():a[o].dayOfWeek-e.getDay()+7;var d=this.getThinkDate(e,u),p=this.getThinkDate(c,u);if(!this.arrangeForm.checked||-1==this.holidayList.indexOf(p)){var m=a[o].startClassTime,h=a[o].endClassTime;for(var f in this.chioseTab)this.classCardList.push({classDate:d,classGroupId:this.chioseTab[f].id,startClassTimeStr:m,endClassTimeStr:h,type:s,weekNum:a[o].dayOfWeek,teachMode:r,option:1});if(t--,0==t)break}}e.setDate(e.getDate()+7)}Object(l["Xc"])({musicGroupID:this.teamid,courseSchedules:this.classCardList}).then((function(e){200==e.code&&(i.$message.success("恭喜您排课成功"),i.classCardList=[],i.arrangeVisible=!1,i.getList())})).catch((function(e){console.log("排课来了"),i.classCardList=[],i.resetTime()}))}else this.$message.error("请保证循环周期信息完整")},getThinkDate:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=new Date(e.getTime());s.setDate(s.getDate()+parseInt(t));var r=s.getFullYear(),i=s.getMonth()+1,n="";n=i<10?"0"+i:i+"";var o=s.getDate(),l="";return l=o<10?"0"+o:o+"",2==a?n+l:r+"-"+n+"-"+l},resetTime:function(){this.arrangeForm.courseTime=null,this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}]},chioseHightype:function(e){this.changeMemo([]),"HIGH_ONLINE"==e&&(this.newClassForm.teaching=[]),this.newClassForm.subjectId="",this.$set(this.newClassForm,"subjectIdList",[]),this.$set(this.newClassForm,"memo",[])},lookDeatil:function(e){var t=this;console.log(e),this.lookDeatilVisible=!0,this.activeClass=e.id,this.activeType=e.type,Object(c["g"])({classGroupId:this.activeClass}).then((function(e){200==e.code&&(t.classList=e.data)}))},addstudentBtn:function(e){var t=this;this.activeClass=e.id;var a=e.type;Object(l["ub"])({musicGroupId:this.teamid,type:a}).then((function(e){200==e.code&&(t.studentList=e.data,t.addStudentVisible=!0)}))},selectStudent:function(e){this.activeStudentList=e},addStudnt:function(){var e=this,t=this.activeClass,a=this.activeStudentList.map((function(e){return e.userId})).join(",");Object(c["b"])({userIdsStr:a,classGroupId:t}).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.activeStudentList=[],e.addStudentVisible=!1,e.$refs.studentList.clearSelection(),e.getList())}))},changeMemo:function(e){},checkSubject:function(e){}},computed:{},filters:{getBishopName:function(e){var t="";if(e&&e.length>0)for(var a in e)"BISHOP"==e[a].teacherRole&&(t=e[a].userName);return t},getTeachingNum:function(e){var t=0;if(e&&e.length>0)for(var a in e)"TEACHING"==e[a].teacherRole&&t++;return t}},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())},studentVisible:function(e){e||(this.newClassVisible=!1,this.activeListStudent=[])},infoVisible:function(e){e||(this.teacherForm={isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},this.$refs["teacherForm"].resetFields())},arrangeVisible:function(e){e||(this.arrangeForm={courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},this.$refs["arrangeForm"].resetFields(),this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}])}}},p=d,m=(a("472b"),a("2877")),h=Object(m["a"])(p,s,r,!1,null,"8888a26a",null);t["a"]=h.exports},"1eeb":function(e,t,a){"use strict";a("282c")},"282c":function(e,t,a){},"2d79":function(e,t,a){},"2e3a":function(e,t,a){},3004:function(e,t,a){},3078:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"g",(function(){return c})),a.d(t,"f",(function(){return u})),a.d(t,"k",(function(){return d})),a.d(t,"j",(function(){return p})),a.d(t,"h",(function(){return m})),a.d(t,"i",(function(){return h}));var s=a("829b"),r=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},i=function(e){return Object(s["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(s["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},l=function(e){return Object(s["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/getRegisterOrPreList",params:e,method:"get",requestType:"json"})},d=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/setNoneCloudTeacher",params:e,method:"get",requestType:"json"})},p=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/setCloudTeacherToFailed",params:e,method:"post",requestType:"json"})},m=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},h=function(e){return Object(s["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})}},"313c":function(e,t,a){},"31f0":function(e,t,a){e.exports=a.p+"static/img/yunTrain_bg.ff0ffe89.png"},3273:function(e,t,a){"use strict";a("e4f0")},"328e":function(e,t,a){},"346a":function(e,t,a){"use strict";a("67c9")},3762:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.musicGroupPaymentCalenders[0]&&"ADD_STUDENT"===e.musicGroupPaymentCalenders[0].paymentType?a("el-alert",{staticClass:"alert",attrs:{title:"学员信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.musicGroupPaymentCalenders[0]&&"ADD_STUDENT"===e.musicGroupPaymentCalenders[0].paymentType?a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"学员姓名:"}},[e._v(e._s(e.username))]),e._v(" "),a("descriptions-item",{attrs:{label:"手机号码:"}},[e._v(e._s(e.phone))])],1):e._e(),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"申请信息",closable:!1,type:"info"}}),e._v(" "),a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"分部名称:"}},[e._v(e._s(e.auditDto.organName))]),e._v(" "),a("descriptions-item",{attrs:{label:"乐团名称:"}},[a("overflow-text",{attrs:{text:e.auditDto.musicGroupName,width:"100%"}})],1),e._v(" "),a("descriptions-item",{attrs:{label:"乐团编号:"}},[a("copy-text",[e._v(e._s(e.auditDto.musicGroupId))])],1),e._v(" "),a("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.auditDto.createTime))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.auditDto.paymentType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.auditDto.payUserType)))]),e._v(" "),a("descriptions-item",{attrs:{span:3,label:"备注:"}},[a("span",{staticStyle:{display:"inline-block","max-width":"100%"}},[a("overflow-text",{attrs:{text:e.musicGroupPaymentCalenders[0]?e.musicGroupPaymentCalenders[0].memo:null}})],1)])],1),e._v(" "),e.musicGroupPaymentCalenderCourseSettingName?a("el-alert",{staticClass:"alert",attrs:{title:"课程信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.musicGroupPaymentCalenderCourseSettingName?a("descriptions",{attrs:{column:3}},[a("descriptions-item",{attrs:{span:2,label:"收费标准:"}},[e._v(e._s(e.musicGroupPaymentCalenderCourseSettingName))])],1):e._e(),e._v(" "),e.musicGroupPaymentCalenderCourseSettings.length?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderCourseSettings,stripe:""}},[a("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(" "),a("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,1952871020)}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"}})],1):e._e(),e._v(" "),e.musicGroupPaymentCalenderStudentDetails.length?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderStudentDetails,stripe:""}},[a("el-table-column",{attrs:{prop:"username",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),a("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(" "),a("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,1952871020)}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTime",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseCurrentPrice))+"\n ")])]}}],null,!1,3280898274)},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("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,2064053072)})],1):e._e(),e._v(" "),e.memberRankSettingId?a("el-alert",{staticClass:"alert",attrs:{title:"会员信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.memberRankSettingId?a("div",e._l(e.musicGroupPaymentCalenders,(function(t){return a("descriptions",{key:t.id+"member",attrs:{column:2}},[a("descriptions-item",{attrs:{label:"会员等级:"}},[e._v(e._s(t.memberRankSettingName))]),e._v(" "),a("descriptions-item",{attrs:{label:"会员有效期:"}},[e._v(e._s(t.memberValidDate)+"个月")]),e._v(" "),a("descriptions-item",{attrs:{label:"现价"}},[e._v(e._s(e.numeral(t.memberPaymentAmount).format("0,0")))]),e._v(" "),a("descriptions-item",{attrs:{label:"原价"}},[e._v(e._s(e.numeral(t.originalMemberPaymentAmount).format("0,0")))])],1)})),1):e._e(),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}),e._v(" "),e._l(e.musicGroupPaymentCalenders,(function(t){return a("descriptions",{key:t.id,attrs:{column:2}},[a("descriptions-item",{attrs:{label:"缴费金额:"}},[e._v(e._s(e.numeral(t.paymentAmount+t.memberPaymentAmount).format("0,0")))]),e._v(" "),a("descriptions-item",{attrs:{label:"缴费方式:"}},[e._v(e._s(e._f("paymentPatternTypeFormat")(t.paymentPattern)))]),e._v(" "),"SCHOOL"!==t.payUserType?a("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(" "),e.musicGroupPaymentCalenderCourseSettingName?a("descriptions-item",{attrs:{span:3,label:"缴费有效期:"}},[e._v(e._s(e._f("dayjsFormat")(t.paymentValidStartDate))+" -\n "+e._s(e._f("dayjsFormat")(t.paymentValidEndDate)))]):e._e()],1)})),e._v(" "),a("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}}},[a("el-table",{attrs:{data:e.simpleUserDto}},[a("el-table-column",{attrs:{prop:"userId",label:"用户ID",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userName",label:"姓名",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectNames",label:"声部",width:"180"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.payVisible=!1}}},[e._v("关 闭")])],1)],1)],2)},r=[],i=(a("96cf"),a("1da1")),n=(a("7f7f"),a("5530")),o=a("2b0e"),l=a("6612"),c=a.n(l),u=a("1672"),d=a("ddec"),p=a("837c");o["default"].use(d["a"]);var m={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],musicGroupPaymentCalenderStudentDetails:[],simpleUserDto:[],musicGroupPaymentCalenders:[],studentNum:0,phone:"",username:""},h={components:{Item:p["a"]},props:["detail"],data:function(){return Object(n["a"])({payVisible:!1},m)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""},memberRankSettingId:function(){var e=this.musicGroupPaymentCalenders[0];return e?e.memberRankSettingId:""}},mounted:function(){this.init()},methods:{numeral:c.a,init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["i"])({batchNo:this.detail.batchNo,musicGroupId:this.detail.musicGroupId});case 3:for(a in t=e.sent,m)m.hasOwnProperty(a)&&(this[a]=t.data[a]);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,b=(a("75ee"),a("2877")),v=Object(b["a"])(f,s,r,!1,null,"64fe4b1c",null);t["a"]=v.exports},"38a4":function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return i}));var s=a("829b"),r=function(e){return Object(s["a"])({url:"/api-web/musicGroupQuit/queryPage",params:e})},i=function(e){return Object(s["a"])({url:"/api-web/webCurseHomework/getStudentHomeWorks",params:e})}},"3e15":function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return l}));var s=a("b775"),r=(a("4328"),"/api-web");function i(e){return Object(s["a"])({url:r+"/extracurricularExercises/queryPageList",method:"get",params:e})}function n(e){return Object(s["a"])({url:r+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function o(e){return Object(s["a"])({url:r+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function l(e){return Object(s["a"])({url:r+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},4e3:function(e,t,a){"use strict";a("3004")},"44d1":function(e,t,a){},4678:function(e,t,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"73332","./en-il.js":"73332","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df48","./fa.js":"8df48","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b46","./gd.js":"f6b46","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e9","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e9","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function r(e){var t=i(e);return a(t)}function i(e){var t=s[e];if(!(t+1)){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}return t}r.keys=function(){return Object.keys(s)},r.resolve=i,e.exports=r,r.id="4678"},"46f6":function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return l}));var s=a("b775"),r=a("4328"),i=a.n(r),n="/api-web";function o(e){return Object(s["a"])({url:n+"/visit/queryPage",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/visit/add",method:"post",data:i.a.stringify(e)})}},"472b":function(e,t,a){"use strict";a("6bfc")},"475f":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"quitForm",attrs:{model:e.quitForm,"label-width":"150px",rules:e.quitRules}},["APPROVED"==e.quitForm.status?a("el-form-item",{attrs:{label:"退还会员费用",prop:"isRefundMemberFee"}},[a("el-radio",{attrs:{label:!0},model:{value:e.quitForm.isRefundMemberFee,callback:function(t){e.$set(e.quitForm,"isRefundMemberFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundMemberFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1},model:{value:e.quitForm.isRefundMemberFee,callback:function(t){e.$set(e.quitForm,"isRefundMemberFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundMemberFee"}},[e._v("否")])],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"退还云教练费用",prop:"isRefundMemberFee"}},[a("el-radio",{attrs:{label:"true"},model:{value:e.quitForm.isRefundMemberFee,callback:function(t){e.$set(e.quitForm,"isRefundMemberFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundMemberFee"}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:"false"},model:{value:e.quitForm.isRefundMemberFee,callback:function(t){e.$set(e.quitForm,"isRefundMemberFee","string"===typeof t?t.trim():t)},expression:"quitForm.isRefundMemberFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isRefundMemberFee&&"false"!=e.quitForm.isRefundMemberFee?a("el-form-item",{attrs:{label:"退还云教练金额",prop:"cloudTeacherAmount"}},[a("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"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"退还课程费用",prop:"isRefundCourseFee"}},[a("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(" "),a("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(" "),a("el-form-item",{attrs:{label:"退还乐器费用",prop:"isRefundInstrumentFee"}},[a("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(" "),a("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(" "),a("el-form-item",{attrs:{label:"退还教辅费用",prop:"isRefundTeachingAssistantsFee"}},[a("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(" "),a("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?a("el-form-item",{attrs:{label:"退还乐保费用",prop:"isMaintenanceFee"}},[a("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(" "),a("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?a("el-form-item",{attrs:{label:"退还乐保金额",prop:"maintenanceFee"}},[a("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"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"退团原因",prop:"reason"}},[a("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)],1)},r=[],i={props:["quitForm","activeRow"],data:function(){return{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:"请填写退团退费原因"}],isRefundMemberFee:[{required:!0,message:"请选择是否退还会员费用"}]}}}},n=i,o=a("2877"),l=Object(o["a"])(n,s,r,!1,null,"520118b7",null);t["a"]=l.exports},"47b0":function(e,t,a){"use strict";a("90ba")},"4d9c":function(e,t,a){},"4edf":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"visitBtnWrap"},[a("auth",{attrs:{auths:"studentAttendance/findStudentAttendance"}},[a("el-button",{attrs:{type:"text"},on:{click:function(t){e.recordVisible=!0}}},[e._v("学员考勤")])],1),e._v(" "),a("auth",{attrs:{auths:["webCurseHomework/getStudentHomeWorks","extracurricularExercisesReply/queryPageList"]}},[a("el-button",{attrs:{type:"text"},on:{click:function(t){e.workVisible=!0}}},[e._v("作业情况")])],1)],1),e._v(" "),a("el-form",{ref:"visitForm",attrs:{model:e.visitForm,"label-width":"120px","label-position":"right",rules:e.visitRules}},[a("el-form-item",{attrs:{label:"学生姓名"}},[a("p",[e._v(e._s(e.userName))])]),e._v(" "),a("el-form-item",{attrs:{label:"回访类型",prop:"visitType"}},[a("el-cascader",{staticStyle:{width:"80% !important"},attrs:{disabled:e.isMainGo||!!e.useVisitType,"expand-trigger":"hover",clearable:"",placeholder:"请选择回访类型",options:e.visitChiose},model:{value:e.visitForm.visitType,callback:function(t){e.$set(e.visitForm,"visitType",t)},expression:"visitForm.visitType"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"回访日期",prop:"visitTime"}},[a("el-date-picker",{staticStyle:{width:"80% !important"},attrs:{align:"right",type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.visitForm.visitTime,callback:function(t){e.$set(e.visitForm,"visitTime","string"===typeof t?t.trim():t)},expression:"visitForm.visitTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"学员情况",prop:"overview"}},[a("el-input",{staticStyle:{width:"80% !important"},attrs:{type:"textarea",placeholder:"请输入学员情况",rows:3,maxlength:"50","show-word-limit":""},model:{value:e.visitForm.overview,callback:function(t){e.$set(e.visitForm,"overview",t)},expression:"visitForm.overview"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"家长反馈",prop:"feedback"}},[a("el-input",{staticStyle:{width:"80% !important"},attrs:{type:"textarea",placeholder:"请输入家长反馈",rows:3,maxlength:"50","show-word-limit":""},model:{value:e.visitForm.feedback,callback:function(t){e.$set(e.visitForm,"feedback",t)},expression:"visitForm.feedback"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right","margin-right":"15%"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitAddVisit}},[e._v("确 定")])],1),e._v(" "),e.recordVisible?a("el-dialog",{attrs:{title:"学员考勤",width:"1020px",visible:e.recordVisible,"append-to-body":""},on:{"update:visible":function(t){e.recordVisible=t}}},[a("record",{attrs:{studentId:this.detail.userId}})],1):e._e(),e._v(" "),e.workVisible?a("el-dialog",{attrs:{title:"作业列表",width:"1020px",visible:e.workVisible,"append-to-body":""},on:{"update:visible":function(t){e.workVisible=t}}},[a("studentWork",{attrs:{studentId:this.detail.userId}})],1):e._e()],1)},r=[],i=a("5530"),n=a("15fd"),o=a("e3eb"),l=a.n(o),c=a("92e3"),u=a("46f6"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",{attrs:{prop:"dates"}},[a("el-date-picker",{staticStyle:{width:"405px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"课程开始日期","end-placeholder":"课程结束日期"},model:{value:e.searchForm.dates,callback:function(t){e.$set(e.searchForm,"dates",t)},expression:"searchForm.dates"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"groupType"}},[a("el-select",{attrs:{placeholder:"请选择课程组类型"},model:{value:e.searchForm.groupType,callback:function(t){e.$set(e.searchForm,"groupType","string"===typeof t?t.trim():t)},expression:"searchForm.groupType"}},e._l(e.courseListType,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{placeholder:"请选择考勤状态",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status","string"===typeof t?t.trim():t)},expression:"searchForm.status"}},e._l(e.attendanceStatus,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.courseScheduleId))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseSchedule.name",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{width:"180px",align:"center",prop:"startClassTime",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.courseSchedule.classDate))+"\n "+e._s(e._f("dayjsFormatMinute")(t.row.courseSchedule.startClassTime))+"-"+e._s(e._f("dayjsFormatMinute")(t.row.courseSchedule.endClassTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程组类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.groupType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseSchedule.type))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"考勤状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.courseSchedule&&"NOT_START"!=t.row.courseSchedule.status?a("div",[e._v("\n "+e._s(e._f("clockingIn")(t.row.status))+"\n ")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update: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)},p=[],m=(a("386d"),a("333d")),h=a("1cc7"),f=a("ed08"),b={components:{pagination:m["a"]},props:["studentId"],data:function(){return{searchForm:{studentID:"",groupType:"",status:"",dates:[]},courseListType:c["k"],attendanceStatus:c["D"],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e;this.searchForm.studentID=this.studentId,(null===(e=this.searchForm.dates)||void 0===e?void 0:e.length)<1&&(this.searchForm.dates=[(new Date).setDate(1),new Date]),this.init()},methods:{init:function(){this.getList()},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs["searchForm"].resetFields(),this.searchForm.dates=[(new Date).setDate(1),new Date],this.search()},getList:function(){var e=this,t=this.searchForm,a=t.dates,s=Object(n["a"])(t,["dates"]),r=Object(i["a"])(Object(i["a"])({},s),{},{page:this.rules.page,rows:this.rules.limit},Object(f["a"])(a,["startDateOfCourse","endDateOfCourse"],"YYYY-MM-DD"));Object(h["M"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},v=b,y=a("2877"),g=Object(y["a"])(v,d,p,!1,null,"20eac814",null),_=g.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"课程作业",name:"first",lazy:""}},[e.studentId&&"first"==e.activeName?a("courseWork",{attrs:{studentId:e.studentId}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{label:"课外训练",name:"second",lazy:""}},[e.studentId&&"second"==e.activeName?a("afterWork",{attrs:{studentId:e.studentId}}):e._e()],1)],1)],1)},w=[],k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-date-picker",{staticStyle:{width:"400px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"上课开始日期","end-placeholder":"上课结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.courseTimer,callback:function(t){e.$set(e.searchForm,"courseTimer","string"===typeof t?t.trim():t)},expression:"searchForm.courseTimer"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isReplied"}},[a("el-select",{attrs:{placeholder:"是否评价",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"courseName",label:"课程名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"groupName",label:"课程组名称"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("overflow-text",{attrs:{text:e.row.groupName,width:"100%"}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"作业内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("overflow-text",{attrs:{text:e.row.content,width:"100%"}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.status?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)},x=[],T=(a("96cf"),a("1da1")),F=a("38a4"),C=a("5a0c"),P=a.n(C),I={props:["studentId"],components:{pagination:m["a"]},data:function(){return{searchForm:{courseTimer:[],status:"",isReplied:"",userId:""},tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e;(null===(e=this.searchForm.courseTimer)||void 0===e?void 0:e.length)<1&&(this.searchForm.courseTimer=[P()((new Date).setDate(1)).format("YYYY-MM-DD"),P()(new Date).format("YYYY-MM-DD")]),this.searchForm.userId=this.studentId,this.getList()},methods:{search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.$refs.searchForm.resetFields(),this.search()},getList:function(){var e=Object(T["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,a=t.courseTimer,s=Object(n["a"])(t,["courseTimer"]),r=Object(i["a"])(Object(i["a"])({},s),{},{page:this.rules.page,rows:this.rules.limit},Object(f["a"])(a,["startTime","endTime"],"YYYY-MM-DD")),e.prev=2,e.next=5,Object(F["a"])(r);case 5:o=e.sent,this.tableList=o.data.rows,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](2);case 11:case"end":return e.stop()}}),e,this,[[2,9]])})));function t(){return e.apply(this,arguments)}return t}()}},O=I,j=Object(y["a"])(O,k,x,!1,null,null,null),L=j.exports,D=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",{attrs:{prop:"timer"}},[a("el-date-picker",{staticStyle:{width:"400px"},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(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"isReplied"}},[a("el-select",{attrs:{placeholder:"是否评价",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReset}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"布置时间",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("dateForMinFormat")(t.row.createTime)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"训练标题"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("div",[a("overflow-text",{attrs:{text:e.row.title,width:"100%"}})],1)])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"title",label:"训练内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",[a("div",[a("overflow-text",{attrs:{text:e.row.content,width:"100%"}})],1)])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"是否提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.status?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)},A=[],N=a("3e15"),E={props:["studentId"],components:{pagination:m["a"]},data:function(){return{searchForm:{search:"",timer:[],status:null,isReplied:null,isRepliedTimely:null,isView:null},rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},tableList:[]}},mounted:function(){var e;(null===(e=this.searchForm.timer)||void 0===e?void 0:e.length)<1&&(this.searchForm.timer=[P()((new Date).setDate(1)).format("YYYY-MM-DD"),P()(new Date).format("YYYY-MM-DD")]),this.searchForm.search=this.studentId,this.getList()},methods:{onReset:function(){this.$refs.searchForm.resetFields(),this.search()},search:function(){this.rules.page=1,this.getList()},getList:function(){var e=this,t=this.searchForm,a=t.timer,s=Object(n["a"])(t,["timer"]),r=Object(i["a"])(Object(i["a"])({},s),{},{page:this.rules.page,rows:this.rules.limit},Object(f["a"])(a,["submitStartTime","submitEndTime"],"YYYY-MM-DD"));Object(N["a"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},R=E,G=Object(y["a"])(R,D,A,!1,null,null,null),$=G.exports,M={props:["studentId"],components:{courseWork:L,afterWork:$},data:function(){return{activeName:"first"}},mounted:function(){},methods:{}},V=M,q=Object(y["a"])(V,S,w,!1,null,null,null),U=q.exports,B={props:["detail","username","isMainGo","useVisitType"],components:{record:_,studentWork:U},data:function(){return{visitChiose:c["I"],visitForm:{musicGroupId:"",overview:"",purpose:"",studentId:"",type:"",visitTime:"",visitType:"",feedback:"",studentName:""},visitRules:{overview:[{required:!0,message:"请输入学生近况"}],feedback:[{required:!0,message:"请输入家长反馈"}],visitTime:[{required:!0,message:"请输入回访时间"}],visitType:[{required:!0,message:"请选择回访类型"}]},recordVisible:!1,workVisible:!1,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>(new Date).getTime()}}}},mounted:function(){this.isMainGo?(this.visitChiose=c["J"],this.$set(this.visitForm,"visitType",["常规回访","考勤申诉"])):this.useVisitType?(this.visitChiose=c["J"],this.$set(this.visitForm,"visitType",this.useVisitType)):this.visitChiose=c["I"]},computed:{userName:function(){var e;return this.username||(null===(e=this.detail.user)||void 0===e?void 0:e.username)||this.detail.realName||this.detail.userName||this.detail.studentName},studentId:function(){return this.detail.userId||this.detail.studentId}},methods:{submitAddVisit:function(){var e=this;this.$refs.visitForm.validate((function(t){if(t){var a=e.visitForm,s=a.visitType,r=Object(n["a"])(a,["visitType"]),o=Object(i["a"])(Object(i["a"])({},r),{},{objectId:e.detail.id,studentName:e.userName,musicGroupId:e.detail.musicGroupId,studentId:e.studentId,type:s[0],purpose:s[1]});Object(u["a"])(l()(o)).then((function(t){200===t.code&&(e.$message.success("保存成功"),e.$emit("close"),e.$emit("submited"))}))}}))}}},H=B,z=(a("809c"),Object(y["a"])(H,s,r,!1,null,"526cdd5e",null));t["a"]=z.exports},5137:function(e,t,a){"use strict";a.d(t,"o",(function(){return o})),a.d(t,"n",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"f",(function(){return d})),a.d(t,"u",(function(){return p})),a.d(t,"p",(function(){return m})),a.d(t,"t",(function(){return h})),a.d(t,"m",(function(){return f})),a.d(t,"s",(function(){return b})),a.d(t,"j",(function(){return v})),a.d(t,"l",(function(){return y})),a.d(t,"a",(function(){return g})),a.d(t,"g",(function(){return _})),a.d(t,"b",(function(){return S})),a.d(t,"r",(function(){return w})),a.d(t,"i",(function(){return k})),a.d(t,"w",(function(){return x})),a.d(t,"v",(function(){return T})),a.d(t,"k",(function(){return F})),a.d(t,"q",(function(){return C})),a.d(t,"x",(function(){return P})),a.d(t,"c",(function(){return I})),a.d(t,"y",(function(){return O})),a.d(t,"z",(function(){return j})),a.d(t,"h",(function(){return L}));var s=a("b775"),r=a("4328"),i=a.n(r),n="/api-web";function o(e){return Object(s["a"])({url:n+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/studentManage/queryOrganStudentList",method:"get",params:e})}function c(e){return Object(s["a"])({url:n+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function u(e){return Object(s["a"])({url:n+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(s["a"])({url:n+"/studentManage/findStudentVipGroups",method:"get",params:e})}function p(e){return Object(s["a"])({url:n+"/studentWithdraw/queryPage",method:"get",params:e})}function m(e){return Object(s["a"])({url:n+"/studentManage/queryStudentPayment",method:"get",params:e})}function h(e){return Object(s["a"])({url:n+"/order/queryPage",method:"get",params:e})}function f(e){return Object(s["a"])({url:n+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function b(e){return Object(s["a"])({url:n+"/studentRegistration/batchUpdateSubject",method:"post",data:i.a.stringify(e)})}function v(e){return Object(s["a"])({url:n+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function y(e){return Object(s["a"])({url:n+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function g(e){return Object(s["a"])({url:n+"/studentRegistration/insertStudent",method:"POST",data:e})}function _(e){return Object(s["a"])({url:n+"/classGroupStudent/findAllStudent",method:"POST",data:i.a.stringify(e)})}function S(e){return Object(s["a"])({url:n+"/classGroupStudent/addStudents",method:"POST",data:i.a.stringify(e)})}function w(e){return Object(s["a"])({url:n+"/classGroupStudent/del",method:"POST",data:i.a.stringify(e)})}function k(e){return Object(s["a"])({url:n+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function x(e){return Object(s["a"])({url:n+"/userCashAccount/updateCourseBalance",method:"post",data:i.a.stringify(e)})}function T(e){return Object(s["a"])({url:n+"/userCashAccount/updateBalance",method:"post",data:i.a.stringify(e)})}function F(e){return Object(s["a"])({url:n+"/studentManage/queryUserByPhone",method:"get",params:e})}function C(e){return Object(s["a"])({url:n+"/studentManage/register",method:"post",data:i.a.stringify(e)})}function P(e){return Object(s["a"])({url:n+"/studentManage/studentUpdate",method:"post",data:i.a.stringify(e)})}function I(e){return Object(s["a"])({url:n+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function O(e){return Object(s["a"])({url:n+"/userCashAccountDetail/queryPage",method:"get",params:e})}function j(e){return Object(s["a"])({url:n+"/userCoursesAccount/queryPage",method:"get",params:e})}function L(e){return Object(s["a"])({url:n+"/sysUserContracts/getLatest",method:"get",params:e})}},"51f5":function(e,t,a){"use strict";a("9620")},5513:function(e,t,a){"use strict";a("328e")},5614:function(e,t,a){},6193:function(e,t,a){"use strict";a("aa6f")},"62f6":function(e,t,a){"use strict";a("9112")},6314:function(e,t,a){},"67c9":function(e,t,a){},"6bfc":function(e,t,a){},"6ca4":function(e,t,a){"use strict";a("c477")},"6cc5":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"原乐器",prop:"name"}},[a("span",[e._v(e._s(e.originalMusicalGoods||"无"))])]),e._v(" "),a("el-form-item",{attrs:{label:"原教辅",prop:"name"}},[a("span",[e._v(e._s(e.originalAccessoriesGoods||"无"))])]),e._v(" "),a("el-form-item",{attrs:{label:"更改声部",prop:"subjectId",rules:[{required:!0,message:"请选择更改声部",trigger:"change"}]}},[e.changeInfo?a("span",[e._v(e._s(e.changeSubjectName))]):a("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 a("el-option",{key:e.subjectId,attrs:{label:e.subjectName,value:e.subjectId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"更改乐器",prop:"musicalGoods",rules:[{required:!0,message:"请选择更改乐器",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.changeMusicalGoods?a("span",[e._v(e._s(e.changeInfo.changeMusicalGoods.name))]):e._e():a("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"}},[a("el-option",{attrs:{label:"自备乐器",value:"OWNED"}}),e._v(" "),e._l(e.musicalGoods,(function(e){return a("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?a("el-form-item",{attrs:{label:"乐器提供方式",prop:"type",rules:[{required:!0,message:"请选择乐器提供方式",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.kitGroupPurchaseType?a("span",[e._v(e._s(e.kitGroupPurchaseTypeFormater[e.changeInfo.kitGroupPurchaseType]))]):e._e():a("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,s){return a("el-radio",{key:s,attrs:{label:s}},[e._v(e._s(e.kitGroupPurchaseTypeFormater[s]+" "+((e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[s]]||0)>0?e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[s]]+"元":"免费")))])})),1)],1):e._e(),e._v(" "),e.activeAccessories.length||e.groupList.length||e.changeInfo?a("el-form-item",{attrs:{label:"更换教辅",prop:"name"}},[e.changeInfo?e.changeInfo?a("span",[e._v(e._s(e.changeAccessoriesGoods))]):e._e():a("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?a("el-form-item",{attrs:{label:"查看链接",prop:"name"}},[a("div",{staticClass:"viewlink"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.copyLink,placement:"top"}},[a("span",{staticClass:"link"},[e._v(e._s(e.copyLink))])]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"220",trigger:"click"}},[a("div",{staticClass:"left-code"},[a("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}}),e._v(" "),e.copyLink?a("p",{staticClass:"code-url"},[e._v("\n "+e._s(e.copyLink)+"\n "),a("el-link",{staticClass:"linkbtn",attrs:{type:"primary"},on:{click:function(t){return e.copyUrl(e.copyLink)}}},[e._v("复制")])],1):e._e()]),e._v(" "),a("el-button",{staticClass:"btn",attrs:{slot:"reference",type:"primary"},on:{click:e.onCreateQRCode},slot:"reference"},[e._v("二维码")])],1)],1)]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"支付差价",prop:"name"}},[e.changeInfo?a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.editSpread))+"元")]):a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.spread))+"元")])])],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),e.changeInfo&&1!==e.changeInfo.status?a("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():a("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)},r=[],i=(a("96cf"),a("1da1")),n=(a("7f7f"),a("5530")),o=(a("ac6a"),a("456d"),a("b85c")),l=a("d044"),c=a.n(l),u=a("f904"),d=a.n(u),p=(a("6612"),a("1cc7")),m=a("61f7"),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("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?a("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 a("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[a("strong",[a("span",[e._v(e._s(t.name))]),e._v(" "),a("span",[e._v(e._s(e._f("moneyFormat")(t.price))+"元")])]),e._v(" "),e._l(t.subs,(function(t){return a("p",{key:t},[e._v(e._s(t))])}))],2)})),1):a("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 a("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[a("strong",[a("span",[e._v(e._s(t.name))]),e._v(" "),t.groupPurchasePrice>0?a("span",[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+" 元")]):a("span",[e._v("免费")])])])})),1)],1)},f=[],b=a("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 a,s=Object(o["a"])(e);try{for(s.s();!(a=s.n()).done;){var r=a.value,i=this.accessoriesByid[r];i&&(t+=parseFloat(i.groupPurchasePrice))}}catch(y){s.e(y)}finally{s.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(y){l.e(y)}finally{l.f()}}var d=[];if("list"!==this.type){var p,m=Object(o["a"])(e);try{for(m.s();!(p=m.n()).done;){var h=p.value,f=this.groupListById[h];if(f){var v=this.groupListById[h].goodsList;d=d.concat((v||[]).map((function(e){return e.id})))}}}catch(y){m.e(y)}finally{m.f()}}else d=Object(b["a"])(e);this.$listeners.change(d,t)}},mounted:function(){var e=this;this.$nextTick((function(){var t,a={},s=Object(o["a"])(e.list);try{for(s.s();!(t=s.n()).done;){var r=t.value;a[r.id]=r}}catch(u){s.e(u)}finally{s.f()}var i,n={},l=Object(o["a"])(e.groupList);try{for(l.s();!(i=l.n()).done;){var c=i.value;n[c.id]=c}}catch(u){l.e(u)}finally{l.f()}e.accessoriesByid=a,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,a=t.map((function(e){return e.id}));this.checkeds=e?a:[],this.isIndeterminate=!1},optionChange:function(e){var t="list"===this.type?this.list:this.groupOptions,a=e.length;this.checkAll=a===t.length,this.isIndeterminate=a>0&&a<t.length}}},y=v,g=(a("6ca4"),a("2877")),_=Object(g["a"])(y,h,f,!1,null,"72a63fe6",null),S=_.exports,w=a("267e"),k=function(e,t){var a=[],s={},r=[],i={},l=[],c={},u={};if(e){var d,p=e.musicGroupSubjectGoodsGroupList,m={},h=Object(o["a"])(p);try{for(h.s();!(d=h.n()).done;){var f=d.value;m[f.type]||(m[f.type]=[]),m[f.type].push(f)}}catch(O){h.e(O)}finally{h.f()}for(var b=Object.keys(m),v=0,y=b;v<y.length;v++){var g,_=y[v],S=Object(o["a"])(m[_]);try{for(S.s();!(g=S.n()).done;){var w=g.value;if("INSTRUMENT"===_){var k={},x={};try{k=JSON.parse(w.kitGroupPurchaseTypeJson)}catch(j){}try{x=JSON.parse(w.coursePurchaseTypeJson)}catch(j){}var 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(r.push(T),i[w.goodsIdList]=T,!m.ACCESSORIES){u[w.goodsIdList]||(u[w.goodsIdList]=[]);var F,C=w.goodsList[0].goodsList?w.goodsList[0].goodsList:[],P=Object(o["a"])(C);try{for(P.s();!(F=P.n()).done;){var I=F.value;u[w.goodsIdList].push(I),s[I.id]=I}}catch(O){P.e(O)}finally{P.f()}}}else"ACCESSORIES"===w.type&&(l.push(w),c[w.id]=w)}}catch(O){S.e(O)}finally{S.f()}}}return{accessories:a,accessoriesById:s,musicalGoods:r,musicalGoodsById:i,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(m["d"])()+"/#/change-voice?id="+this.changeInfo.id:""},filterVoiceList:function(){var e=this;return this.voiceList.filter((function(t){return t.subjectId!=e.detail.actualSubjectId}))},activeAccessories:function(){var e=this.form||{},t=e.musicalGoods;return t&&this.accessoriesByGoods[t]||[]},changeSubjectName:function(){var e="";if(this.item.changeSubjectId){var t,a=Object(o["a"])(this.voiceList);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(s.subjectId===this.item.changeSubjectId){e=s.subjectName;break}}}catch(r){a.e(r)}finally{a.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(i["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(e){var t=e.data;a.item=t||{},t&&(a.$set(a.form,"type",a.item.kitGroupPurchaseType),a.originalAccessoriesPrice=t.originalAccessoriesPrice,a.originalMusicalPrice=t.originalMusicalPrice,a.originalCourseFee=t.originalCourseFee,a.originalMusicalGoods=t.originalMusicalGoods&&t.originalMusicalGoods.name,a.originalAccessoriesGoods=(t.originalAccessoriesGoods||[]).map((function(e){return e.name})).join())},!this.detail.subjectChange){e.next=6;break}return e.next=4,Object(p["U"])({id:this.detail.subjectChange.id}).then((function(e){t(e),a.changeInfo=e.data}));case 4:e.next=9;break;case 6:return this.changeInfo=this.detail.subjectChange,e.next=9,Object(p["Fb"])({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(i["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.form,"musicalGoods",""),a=null,!t){e.next=7;break}return e.next=5,Object(p["Jb"])({musicGroupId:this.musicGroupId,subjectId:t}).then((function(e){a=e.data,n.musicGroupSubjectPlanFee=e.data.musicGroupSubjectPlan.fee}));case 5:e.next=8;break;case 7:this.musicGroupSubjectPlanFee=0;case 8:for(r in s=k(a,this.item.kitGroupPurchaseType),s)s.hasOwnProperty(r)&&(i=s[r],this[r]=i);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 a;(e.detail.subjectId,t)&&Object(p["Ic"])({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===(a=e.detail)||void 0===a?void 0:a.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(p["Jc"])({id:e.detail.subjectChange.id}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("取消成功!")}))}))}}},F=T,C=(a("ebaf"),Object(g["a"])(F,s,r,!1,null,"f23a05fa",null));t["a"]=C.exports},"6ccb":function(e,t,a){},"704d":function(e,t,a){"use strict";a("96cf");var s=a("1da1"),r=a("2909"),i=a("5530"),n=a("2f62"),o=a("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(i["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(r["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.commit,r=t.state,e.prev=1,(null===(i=a.data)||void 0===i?void 0:i.musicGroupId)===r.musicGroup.id&&!a.force){e.next=8;break}return e.next=5,Object(o["Ob"])(a.data);case 5:return n=e.sent,s("updateBaseinfo",n),e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",Promise.resolve(r.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,a){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t.commit,r=t.state,e.prev=1,!r.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(r.sounds));case 4:return e.next=6,Object(o["L"])(Object(i["a"])({},a.data));case 6:return n=e.sent,s("updateSound",n.data),e.abrupt("return",Promise.resolve(r.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,a){return e.apply(this,arguments)}return t}()}});t["a"]=l},7140:function(e,t,a){},"722e":function(e,t,a){"use strict";a("6314")},"73b3":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("teambaseinfo"),e._v(" "),a("div",{staticClass:"wrap"},["look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},r=[],i=(a("1cc7"),a("80b0")),n=a("bc3a"),o=a.n(n),l=a("4328"),c=a.n(l),u=a("5f87"),d=a("3908"),p={components:{teambaseinfo:i["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},s={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),o()(s).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(a).text();s.then((function(t){if(-1!=t.indexOf("code")){var s=JSON.parse(t);e.$message.error(s.msg)}else{var r=URL.createObjectURL(a),i=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";i.href=r,i.setAttribute("download",l),document.body.appendChild(i),i.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",a={musicGroupId:this.$route.query.id},s={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),o()(s).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(a).text();s.then((function(t){if(-1!=t.indexOf("code")){var s=JSON.parse(t);e.$message.error(s.msg)}else{var r=URL.createObjectURL(a),i=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";i.href=r,i.setAttribute("download",l),document.body.appendChild(i),i.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))}}},m=p,h=(a("fc1a"),a("2877")),f=Object(h["a"])(m,s,r,!1,null,"546db682",null);t["a"]=f.exports},"75ee":function(e,t,a){"use strict";a("2d79")},7619:function(e,t,a){},7626:function(e,t,a){"use strict";a("313c")},7962:function(e,t,a){"use strict";a("b833")},7994:function(e,t,a){},"7a3c":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():a("el-form-item",{attrs:{label:"课程金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[a("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():a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("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 a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("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(" "),2!=e.courseViewType||2==e.courseViewType&&void 0===e.paymentType?a("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[a("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):e._e()],1)},r=[],i=a("267e"),n=a("ed08"),o={props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney","courseViewType","paymentType"],data:function(){return{paymentPatternTypeOptions:Object(n["b"])(i["paymentPatternType"]),pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},mounted:function(){},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}},l=o,c=(a("1004"),a("2877")),u=Object(c["a"])(l,s,r,!1,null,"7a85dee4",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="},"808a":function(e,t,a){"use strict";a("04fb")},"809c":function(e,t,a){"use strict";a("00af")},"80b0":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),a("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},e._l(e.courseViewTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:Number(t.value),disabled:e.checkCourseView(Number(t.value))}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!0,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,s){return a("el-option",{key:s,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[a("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.bossList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"衔接老师",prop:"transactionTeacherId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.transactionTeacherId,callback:function(t){e.$set(e.topFrom,"transactionTeacherId","string"===typeof t?t.trim():t)},expression:"topFrom.transactionTeacherId"}},e._l(e.transactionList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,s){return a("el-option",{key:s,attrs:{label:t.userName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"自定义课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"标准课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,s){return a("el-option",{key:s,attrs:{label:t.realName,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},r=[],i=(a("28a5"),a("a481"),a("ac6a"),a("7f7f"),a("96cf"),a("1da1")),n=a("ade3"),o=a("1cc7"),l=a("a488"),c=a("5a0c"),u=a.n(c),d=a("7676"),p=a.n(d),m=a("99b4"),h=a("641c"),f=a("92e3"),b=a("61f7"),v=a("879d"),y={components:{mergeMusic:v["a"],qrCode:h["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(n["a"])({classStatus:f["g"],courseViewTypeList:f["m"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null,transactionTeacherId:null},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],transactionList:[],addList:[],activeTeam:[],teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null},"teamid","")},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a,s,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(a=this.$helpers.lodash,s=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),a.isEqual(this.topFrom,s)||!s){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(i["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.gotoNext(t);case 2:return a=e.sent,console.log(a),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(r.teamid,"base")),!0)}));case 6:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",!0);case 10:e.next=14;break;case 12:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var a,s=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==s&&void 0!==s&&s.section)this.topFrom=s,null!==(a=this.topFrom)&&void 0!==a&&a.section&&this.getBaseList(this.topFrom.section);else Object(o["Ob"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var r,i=JSON.parse(localStorage.getItem("newTeambase"));i?this.topFrom=i:this.topFrom,null!==(r=this.topFrom)&&void 0!==r&&r.section&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["gb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Ub"])({rows:1e3}).then((function(e){200==e.code&&(t.typeList=e.data.rows)}))},changeSection:function(e){this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.getBaseList(e)},getBaseList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(m["A"])({organId:t}).then((function(e){200==e.code&&(n.cooperationList=e.data)})),Object(m["p"])({organId:t}).then((function(e){200==e.code&&(n.addList=e.data)})),Object(l["b"])().then((function(e){200==e.code&&(n.technician=e.data)})),e.prev=3,e.next=6,Object(o["Q"])({organId:t});case 6:i=e.sent,this.educationList=null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.EDUCATION,this.bossList=null===i||void 0===i||null===(s=i.data)||void 0===s?void 0:s.TEAM_TEACHER,this.transactionList=null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.TRANSACTION,e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](3),console.log(e.t0);case 15:Object(o["Mb"])({organId:t}).then((function(e){200==e.code&&(n.teacherList=e.data)}));case 16:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){var t=this;this.topFrom.teacher="",e&&(console.log(this.cooperationList),this.cooperationList.forEach((function(a){a.id==e&&(console.log(a),t.$set(t.topFrom,"teacher",a.educationUserId))}))),console.log("chioseSchool",this.topFrom.teacher)},gotoNext:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){s.$refs["topinfo"].validate(function(){var r=Object(i["a"])(regeneratorRuntime.mark((function r(i,n){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(i){r.next=5;break}s.$message.error("请填写建团必要参数"),e(!1),r.next=16;break;case 5:if(s.$store.dispatch("topinfo",s.topFrom),"teamAudit"!=s.teamStatus){r.next=10;break}s.$emit("handleClick",{name:"2"}),r.next=16;break;case 10:return s.$emit("getName",s.topFrom.name),r.next=13,s.resetSubmit(t);case 13:a=r.sent,console.log(a,"tempStatus"),e(a);case 16:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){a.$refs["topinfo"].validate(function(){var r=Object(i["a"])(regeneratorRuntime.mark((function r(n,l){var c,d;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n){r.next=5;break}a.$message.error("请填写必要参数"),s(),r.next=26;break;case 5:c=null,r.t0=a.teamStatus,r.next="resetTeam"===r.t0?9:"newTeam"===r.t0?11:"teamList"===r.t0?13:"teamDraft"===r.t0?15:17;break;case 9:return c="PROGRESS",r.abrupt("break",17);case 11:return c="DRAFT",r.abrupt("break",17);case 13:return c=null,r.abrupt("break",17);case 15:return c="DRAFT",r.abrupt("break",17);case 17:if(d={},d.musicGroup={settlementType:a.topFrom.salary,applyExpireDate:u()(a.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:a.topFrom.type,cooperationOrganId:a.topFrom.school,courseViewType:a.topFrom.courseViewType,teamTeacherId:a.topFrom.boss,enrollClasses:a.topFrom.startClass.join(","),name:a.topFrom.name,paymentPattern:a.topFrom.paymentPattern,paymentValidStartDate:a.topFrom.paymentValidStartDate?u()(a.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):a.topFrom.paymentValidStartDate,paymentValidEndDate:a.topFrom.paymentValidEndDate?u()(a.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):a.topFrom.paymentValidEndDate,organId:a.topFrom.section,schoolId:a.topFrom.address,id:a.teamid,directorUserId:a.topFrom.head,isClassroomLessons:a.topFrom.isClass,status:c,expectStartGroupDate:a.topFrom.startTime,ownershipType:a.topFrom.ownershipType,repairUserId:a.topFrom.repairUserId||null,feeType:a.topFrom.feeType,transactionTeacherId:a.topFrom.transactionTeacherId},"newTeam"==a.teamStatus){r.next=25;break}return r.next=22,Object(o["yc"])(d).then(function(){var s=Object(i["a"])(regeneratorRuntime.mark((function s(r){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:200==r.code&&(localStorage.setItem("".concat(a.teamid,"base"),JSON.stringify(a.topFrom)),a.$emit("getBaseInfo"),"teamDraft"==a.teamStatus?(a.$message.success("保存成功"),t||a.$emit("handleClick",{name:"2"}),e(!0)):a.$message.success("修改乐团成功"),e(!0));case 1:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}());case 22:return r.abrupt("return",r.sent);case 25:Object(o["z"])(d).then((function(e){if(200==e.code){var t=a.$createElement;a.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新乐团基础信息创建完成"),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return a.$router.push({query:p()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.$emit("handleClick",{name:"2"}),!0})).catch((function(){return a.$router.push({query:p()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.init(),!0}))}}));case 26:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){musicGroupFound({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},payStart:function(){this.paymentStatus=!0},getStudentStatus:function(){var e=this,t={musicGroupId:this.teamid,page:1,rows:9999};this.teamid&&Object(o["Eb"])(t).then((function(t){200==t.code&&t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)}))}))},payDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(o["bc"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var a=this;this.$refs[e].validate((function(e){e&&(t?Object(o["F"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Ob"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["E"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Ob"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.applyExpireDate=e.data.musicGroup.applyExpireDate,a.setBase(e))}))):a.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(b["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(b["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(b["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:p()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,this.topFrom.transactionTeacherId=e.data.musicGroup.transactionTeacherId||"",localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))},checkCourseView:function(e){return"newTeam"!=this.teamStatus&&"teamDraft"!=this.teamStatus&&(0==this.topFrom.courseViewType||1==this.topFrom.courseViewType?2==e:0==e||1==e)}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},g=y,_=(a("6193"),a("1eeb"),a("2877")),S=Object(_["a"])(g,s,r,!1,null,"02df0392",null);t["a"]=S.exports},8550:function(e,t,a){},"86e8":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},r=[],i={},n=i,o=a("2877"),l=Object(o["a"])(n,s,r,!1,null,"21abf8f1",null);t["a"]=l.exports},8790:function(e,t,a){"use strict";a("7994")},"879d":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"merge-music"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?a("empty",{attrs:{desc:"暂未选择乐团"}}):a("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,s){return a("el-collapse-item",{key:s,staticClass:"item",attrs:{name:s},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"header"},[a("span",{staticClass:"title"},[a("span",[e._v(e._s(t.name))])]),e._v(" "),a("span",{staticStyle:{width:"20%"}},[a("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),a("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(s)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),a("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),a("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[a("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),a("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?a("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},r=[],i=(a("96cf"),a("1da1")),n=a("5530"),o=a("b85c"),l=(a("ac6a"),a("456d"),a("160b")),c=a("3078"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container",staticStyle:{width:"100%"}},[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"musicGroupName"}},[a("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),a("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},d=[],p=(a("386d"),a("7f7f"),a("333d")),m={props:["visible","organId"],components:{pagination:p["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var a in e){var s={};s.id=e[a].id,s.name=e[a].name,t.push(s)}this.passed=t},FetchList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(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!==a.$route.query.id})),this.rules.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},h=m,f=(a("1aa8"),a("2877")),b=Object(f["a"])(h,u,d,!1,null,"64b6b690",null),v=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},g=[],_=(a("6762"),a("2fdb"),a("1672")),S={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_["c"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},w=S,k=Object(f["a"])(w,y,g,!1,null,null,null),x=k.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},F=[],C=a("1cc7"),P={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].userId);this.passed=t},removeStuden:function(){var e=Object(i["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(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(C["Sb"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},I=P,O=Object(f["a"])(I,T,F,!1,null,null,null),j=O.exports,L={props:["organId"],components:{selectMusic:v,selectItem:x,mergedStudents:j},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,a={},s=Object(o["a"])(e);try{for(s.s();!(t=s.n()).done;){var r=t.value;a[r.id]?a[r.id]=Object(n["a"])(Object(n["a"])({},a[r.id]),r):a[r.id]=Object(n["a"])(Object(n["a"])({},r),{},{num:0})}}catch(i){s.e(i)}finally{s.f()}this.items=a},remove:function(e){var t=Object(n["a"])({},this.items),a=Object(n["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(n["a"])({},t),this.studentsByMusicId=Object(n["a"])({},a)},selected:function(e,t){var a=this.studentsByMusicId;a[t]||(a[t]=[]),a[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=a},merge:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,a)&&(s=this.studentsByMusicId[a],t=t.concat(s));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(c["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t},FetchList:function(){var e=Object(i["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=L,A=(a("f089"),Object(f["a"])(D,s,r,!1,null,"4c59032c",null));t["a"]=A.exports},"8f19":function(e,t,a){"use strict";a("7140")},"90ba":function(e,t,a){},9112:function(e,t,a){},9214:function(e,t,a){e.exports=a.p+"static/img/yunTrain_small_bg.b5242407.png"},"92e3":function(e,t,a){"use strict";a.d(t,"l",(function(){return n})),a.d(t,"s",(function(){return o})),a.d(t,"k",(function(){return l})),a.d(t,"c",(function(){return c})),a.d(t,"q",(function(){return u})),a.d(t,"E",(function(){return d})),a.d(t,"D",(function(){return p})),a.d(t,"d",(function(){return m})),a.d(t,"w",(function(){return h})),a.d(t,"n",(function(){return f})),a.d(t,"G",(function(){return b})),a.d(t,"i",(function(){return v})),a.d(t,"F",(function(){return y})),a.d(t,"z",(function(){return g})),a.d(t,"I",(function(){return _})),a.d(t,"J",(function(){return S})),a.d(t,"y",(function(){return w})),a.d(t,"B",(function(){return k})),a.d(t,"p",(function(){return x})),a.d(t,"g",(function(){return T})),a.d(t,"C",(function(){return F})),a.d(t,"H",(function(){return C})),a.d(t,"t",(function(){return P})),a.d(t,"h",(function(){return I})),a.d(t,"m",(function(){return O})),a.d(t,"x",(function(){return j})),a.d(t,"f",(function(){return L})),a.d(t,"e",(function(){return D})),a.d(t,"v",(function(){return A})),a.d(t,"u",(function(){return N})),a.d(t,"A",(function(){return E})),a.d(t,"r",(function(){return R})),a.d(t,"a",(function(){return G})),a.d(t,"o",(function(){return $})),a.d(t,"j",(function(){return M})),a.d(t,"b",(function(){return q}));var s=a("b85c"),r=a("3835"),i=a("267e"),n=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],l=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],c=[{label:"正常签到",value:1},{label:"异常签到",value:0}],u=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],p=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],m=[].concat(p,[{value:"QUIT_SCHOOL",label:"退学"}]),h=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"进行中乐团加学员"},{value:"REPLACEMENT",label:"乐器置换"},{value:"OTHER",label:"其他"}],f=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],b=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],v=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],y=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],g=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],S=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],w=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],k=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],x=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],T=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],F=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],C=V(i["vipResetType"]),P=V(i["musicGroupType"]),I=V(i["classTime"]),O=V(i["courseViewType"]),j=V(i["payOrderType"]),L=V(i["auditType"]),D=V(i["auditPaymentType"]),A=V(i["orderServerType"]),N=V(i["orderAuditType"]),E=V(i["rewardModeType"]),R=V(i["musicClassType"]),G=V(i["ProbationPeriodStatus"]),$=V(i["downListType"]),M=V(i["conclusion"]);function V(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),i=a[0],n=a[1],o={};if(e&&e.length){var l,c=Object(s["a"])(e);try{for(c.s();!(l=c.n()).done;){var u=l.value;o[u[i]]=u[n]}}catch(d){c.e(d)}finally{c.f()}}return o}},"93f9":function(e,t,a){"use strict";a("5614")},"940a":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&2!=e.courseViewType?a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?a("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,rowDetail:e.rowDetail,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType,courseViewType:e.courseViewType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.changeActive}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"===e.paymentTypeString?[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClassUser",{ref:"eclass",attrs:{form:e.eclassuser,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclassuser=t},priceChange:e.priceChange,moneyChange:e.syncAllMoney}})]:e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}}):e._e():[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[2==e.courseViewType&&e.paymentType&&2!=e.paymentType?a("el-alert",{staticClass:"alert",staticStyle:{"margin-top":"20px"},attrs:{title:"会员设置",closable:!1,type:"info"}}):e._e(),e._v(" "),2==e.courseViewType&&e.paymentType&&2!=e.paymentType?a("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,viewDetail:e.nowDetail,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,addStudent:e.showMember,showTime:!1}}):e._e(),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("el-form",{ref:"payment",attrs:{model:e.payment}},[a("el-form-item",{attrs:{"label-width":"160px",label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择缴费方式",disabled:2==e.courseViewType&&void 0!==e.paymentType},model:{value:e.payment.paymentPattern,callback:function(t){e.$set(e.payment,"paymentPattern",t)},expression:"payment.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),e.isMulticycle&&"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?[a("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,s){return a("el-collapse-item",{key:s,attrs:{name:s}},[a("template",{slot:"title"},[a("div",{staticClass:"collapse-title"},[a("span",[e._v("缴费周期 "+e._s(s+1))]),e._v(" "),e.cycles.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(s)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,paymentType:e.paymentType,hidePaymentPattern:!0,isCommon:e.isCommon,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType}})],2)})),1),e._v(" "),a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isCommon:e.isCommon,hidePaymentPattern:!0,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"===e.paymentType,courseViewType:e.courseViewType},on:{"update:form":function(t){e.cycle=t}}})],e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["SPAN_GROUP_CLASS_ADJUST"!=e.paymentTypeString?a("p",[e._v("缴费总金额:"+e._s(e.money||0)+"元")]):e._e(),e._v(" "),a("div",[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("classrooms",{on:{close:e.closeNext}})],1)],2)},r=[],i=a("15fd"),n=(a("6762"),a("2fdb"),a("2909")),o=a("5530"),l=(a("96cf"),a("1da1")),c=a("b85c"),u=a("d349"),d=(a("1cc7"),a("1672")),p=a("267e"),m=a("ed08"),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},["undefined"===typeof e.paymentType&&2!=e.courseViewType?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto","margin-bottom":"20px"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,465223599)}):e._e()],1)},f=[],b={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail","courseViewType"],mounted:function(){},watch:{paymentType:function(){console.log(this.paymentType)}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},v=b,y=(a("7626"),a("2877")),g=Object(y["a"])(v,h,f,!1,null,"f8d57c50",null),_=g.exports,S=a("7a3c"),w=a("0464"),k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"学员姓名",prop:"username"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),e._v(" "),a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.courseType[e.list.form[t.$index].courseType])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程时长(分钟)",prop:"courseTime",width:"130"}}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,placeholder:"请输入现价"},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:0,disabled:"",placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable&&e.$listeners.remove?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},x=[],T=a("92e3"),F=a("6612"),C=a.n(F),P=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:p["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(m["b"])(p["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(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 C()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(a,s,r){var i=t.list.form[e].courseType;i&&s>1&&t.classTimeList[i]&&s<t.classTimeList[i]?r(new Error("单节课不得少于".concat(t.classTimeList[i],"分钟"))):r()}}}}),I=P,O=(a("3273"),Object(y["a"])(I,k,x,!1,null,"bc14b42a",null)),j=O.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},D=[],A={data:function(){return{list:[]}},methods:{submit:function(){}}},N=A,E=(a("62f6"),Object(y["a"])(N,L,D,!1,null,"37928f5f",null)),R=E.exports,G=a("b133"),$=a("ace5"),M=(a("73b3"),a("7676")),V=a.n(M),q={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},U={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:w["a"],extraClassUser:j,classrooms:R,otherform:G["a"],memberSetting:$["a"]},data:function(){return{options:[],form:{payUserType:"user"===this.type?"STUDENT":"SCHOOL",leixing:"1",musicGroupOrganizationCourseSettingId:null},chargeTypeName:"",other:{},cycles:[{}],cycle:{},eclass:[],eclassuser:[],collapse:[0],nextVisible:!1,typeList:[],charges:[],studentIds:"",payment:{paymentPattern:null},viewDetail:null,organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object(m["b"])(p["paymentPatternType"]),cloudFee:"",courseViewType:"",memberForm:{memberRankSettingId:"",memberValidDate:"",memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[]},money:"",isSetCourseSettingsId:!1}},computed:{showMember:function(){return 3==this.paymentType},musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},nowDetail:function(){return this.viewDetail},isCommon:function(){return"1"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},a=Object(c["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var s=e.value;t[s.id]=s}}catch(r){a.e(r)}finally{a.f()}return t},paymentAmountDisabled:function(){return(this.isUserType||this.isCommon&&this.isUserType)&&this.isDisabled},isMulticycle:function(){var e=!1,t="";if(this.viewDetail){var a,s=this.viewDetail,r=s.musicGroupPaymentCalenders;s.auditDto;t=null===(a=r[0])||void 0===a?void 0:a.paymentType,e=r.length>1||"ADD_COURSE"!=t,e&&(this.cycles=r.map((function(e){return{paymentAmount:e.paymentAmount,paymentDate:[null===e||void 0===e?void 0:e.startPaymentDate,null===e||void 0===e?void 0:e.deadlinePaymentDate],paymentValid:[null===e||void 0===e?void 0:e.paymentValidStartDate,null===e||void 0===e?void 0:e.paymentValidEndDate]}})))}return 0==this.payment.paymentPattern&&"2"!==this.form.leixing&&"ADD_COURSE"!==t||0==this.payment.paymentPattern&&e},paymentTypeString:function(){var e="";if(this.viewDetail){var t,a=this.viewDetail.musicGroupPaymentCalenders;e=null===(t=a[0])||void 0===t?void 0:t.paymentType}return e}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.formatCourse(),this.getCharges()},organizationCourseUnitPriceSettings:function(){this.formatCourse()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),"1"===e?this.eclass=[]:"2"===e&&(this.eclass=[{}])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||this.isSetCourseSettingsId){e.next=11;break}return e.prev=1,e.next=4,Object(d["j"])({id:t});case 4:a=e.sent,this.eclass=a.data.filter((function(e){return!e.isStudentOptional||void 0!==s.paymentType}))||[{}],this.syncAllMoney(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:this.isSetCourseSettingsId=!1;case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t){return e.apply(this,arguments)}return t}(),"payment.paymentPattern":function(){this.syncAllMoney()},"memberForm.memberPaymentAmount":function(){this.syncAllMoney()}},mounted:function(){this.formatCourse(),this.init()},activated:function(){this.formatCourse(),this.init()},methods:{init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,i,n,l,c,u,p,m,h,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.organId,this.courseViewType=null===(s=this.baseInfo)||void 0===s||null===(r=s.musicGroup)||void 0===r?void 0:r.courseViewType,2!=this.courseViewType||this.rowDetail||(this.$set(this.form,"leixing","2"),this.addExtraClass()),this.getCharges(),!this.rowDetail){e.next=30;break}for(i in q)q.hasOwnProperty(i)&&(n=q[i],n===this.rowDetail.paymentType&&(this.paymentType=i));return this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),e.prev=8,e.next=11,Object(d["i"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 11:p=e.sent,this.viewDetail=p.data,m=p.data.musicGroupPaymentCalenders[0]||{},this.eclass=(p.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==f.paymentType})),this.eclassuser=p.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===f.paymentTypeString?Object(o["a"])(Object(o["a"])({},e),{},{courseOriginalPrice:e.masterSubCoursePrice}):e})),this.$set(this.payment,"paymentPattern",String(null===(l=this.viewDetail.auditDto)||void 0===l?void 0:l.paymentPattern)),this.$set(this.memberForm,"memberRankSettingId",this.viewDetail.musicGroupPaymentCalenders[0].memberRankSettingId||null),this.$set(this.memberForm,"memberValidDate",this.viewDetail.musicGroupPaymentCalenders[0].memberValidDate||null),this.$set(this.memberForm,"memberPaymentAmount",this.viewDetail.musicGroupPaymentCalenders[0].memberPaymentAmount),this.$set(this.memberForm,"originalMemberPaymentAmount",this.viewDetail.musicGroupPaymentCalenders[0].originalMemberPaymentAmount),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",m.paymentPattern+""),h=[m.paymentValidStartDate,m.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[m.startPaymentDate,m.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",h)),this.studentIds=m.studentIds,null!==(c=p.data.auditDto)&&void 0!==c&&c.musicGroupOrganizationCourseSettingsId&&(this.isSetCourseSettingsId=!0),this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(u=p.data.auditDto)||void 0===u?void 0:u.musicGroupOrganizationCourseSettingsId),this.syncAllMoney(),e.next=30;break;case 28:e.prev=28,e.t0=e["catch"](8);case 30:case"end":return e.stop()}}),e,this,[[8,28]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,a,s=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,r=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,i={},n=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return s&&s==e.organId&&r&&r==e.chargeTypeId})),o=Object(c["a"])(n);try{for(o.s();!(a=o.n()).done;){var l=a.value;i[l.courseType]=l}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=i,i},priceChange:function(e,t){var a=Object(n["a"])(this.eclass),s=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},r=Math.round(C()(s.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=r,e.courseOriginalPrice=r,a[t]=e,this.eclass=Object(n["a"])(a),this.syncAllMoney()},syncAllMoney:function(){if("SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString){var e,t=null===(e=this.viewDetail)||void 0===e?void 0:e.musicGroupPaymentCalenders[0].paymentAmount;return this.$set(this.cycle,"paymentAmount",t),t}var a,s=0,r=0,i=0,n="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,l=Object(c["a"])(n);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(s+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)r+=u.courseCurrentPrice;else{var d=Math.floor(u.courseCurrentPrice/this.cycles.length),p=u.courseCurrentPrice%this.cycles.length;r+=d+p,i+=d}}}catch(m){l.e(m)}finally{l.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(o["a"])(Object(o["a"])({},e),{},{paymentAmount:0===t?r:i})}))),this.$set(this.cycle,"paymentAmount",s),s+=parseFloat(this.memberForm.memberPaymentAmount||0),this.money=s,s},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,a,s,r,i,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,i=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeId,this.chargeTypeName=null===(s=this.musicGroup)||void 0===s?void 0:s.chargeTypeName,e.prev=3,e.next=6,Object(u["z"])({row:9999,chargeTypeId:i,organId:r});case 6:n=e.sent,o=n.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=n.data.rows,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length-1),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,a){return a-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},closeNext:function(){this.nextVisible=!1},getForms:function(){var e=this.$refs;return[e.base,e.eclass,e.cycle].concat(Object(n["a"])(e.cycles||[]),[e.other,e.payment,e.memberSetting]).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},submit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,s,r,l,u,p,h,f,b,v,y,g,_,S,w,k,x,T,F,C,P,I,O,j,L,D,A;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],s=Object(c["a"])(t);try{for(l=function(){var e=r.value;e.validate((function(t){t&&a.push(e)}))},s.s();!(r=s.n()).done;)l()}catch(N){s.e(N)}finally{s.f()}if(!(this.eclass.length<1&&this.eclassuser.length<1&&2!=this.courseViewType)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(a.length!==t.length){e.next=61;break}g=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,a=e.paymentValid,s=Object(i["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},s),Object(m["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(a,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),_=g.leixing,S=Object(i["a"])(g,["leixing"]),this.$refs.cycle&&(w=this.cycle,k=w.paymentDate,x=w.paymentValid,T=Object(i["a"])(w,["paymentDate","paymentValid"]),S.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},T),Object(m["a"])(k,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(x,["paymentValidStartDate","paymentValidEndDate"]))]),F=Object(o["a"])(Object(o["a"])(Object(o["a"])({},S),this.memberForm),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:q[0==this.paymentType?this.paymentType:_],musicGroupId:this.musicGroupId}),C=null===(u=this.viewDetail)||void 0===u?void 0:u.musicGroupPaymentCalenders[0],C&&"ADD_STUDENT"===(null===(p=this.viewDetail)||void 0===p?void 0:p.auditDto.paymentType)&&(F.attribute1=C.attribute1),P=!1,I=Object(c["a"])(F.musicGroupPaymentCalenderCourseSettingsList),e.prev=14,I.s();case 16:if((O=I.n()).done){e.next=23;break}if(j=O.value,!(j.courseCurrentPrice>0||1==j.isStudentOptional)){e.next=21;break}return P=!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),I.e(e.t0);case 28:return e.prev=28,I.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)&&3!=(null===(b=this.baseInfo)||void 0===b||null===(v=b.musicGroup)||void 0===v?void 0:v.courseViewType)||0!=this.paymentType||!P||"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&&y.batchNo){e.next=48;break}return e.prev=35,e.next=38,Object(d["e"])(F);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,F.batchNo=this.rowDetail.batchNo,F.paymentType=null===(D=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===D?void 0:D.paymentType,e.next=53,Object(d["h"])(F);case 53:A=e.sent,this.$listeners.close(),this.$listeners.submited(A.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:V()(this.$route.query,{type:"feeAudit"})}),e.next=61;break;case 59:e.prev=59,e.t2=e["catch"](48);case 61:case"end":return e.stop()}}),e,this,[[14,25,28,31],[35,44],[48,59]])})));function t(){return e.apply(this,arguments)}return t}()}},B=U,H=(a("722e"),Object(y["a"])(B,s,r,!1,null,"be96e994",null));t["a"]=H.exports},9620:function(e,t,a){},"9c2d":function(e,t,a){},"9deb":function(e,t,a){"use strict";a("1af5")},"9fb2":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:e.name},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[a("el-tab-pane",{attrs:{lazy:"",label:"基本信息",name:"1"}},["1"==e.activeIndex?a("baseInfo",{attrs:{teamid:e.teamid}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{lazy:"",label:"声部信息",name:"2"}},["2"==e.activeIndex?a("soundeDetail",{attrs:{teamid:e.teamid}}):e._e()],1),e._v(" "),a("el-tab-pane",{attrs:{lazy:"",label:"预报名信息",name:"5"}},["5"==e.activeIndex?a("forecastName",{attrs:{isedit:"PRE_APPLY"==e.team_status}}):e._e()],1),e._v(" "),"PREPARE"==e.team_status?a("el-tab-pane",{attrs:{lazy:"",label:"班级列表",name:"7"}},["7"==e.activeIndex?a("classSeting",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),"PRE_APPLY"!=e.team_status?a("el-tab-pane",{attrs:{lazy:"",label:"学员缴费信息",name:"3"}},["3"==e.activeIndex?a("resetPayList",{attrs:{isNewGropu:"PRE_BUILD_FEE"==e.team_status}}):e._e()],1):e._e(),e._v(" "),"PRE_APPLY"!=e.team_status?a("el-tab-pane",{attrs:{lazy:"",label:"学校缴费信息",name:"4"}},["4"==e.activeIndex?a("resetPayListSchool",{attrs:{isNewGropu:"PRE_BUILD_FEE"==e.team_status}}):e._e()],1):e._e()],1)],1)])},r=[],i=(a("7f7f"),a("80b0")),n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("soundSetCore",{ref:"soundSetCore"}),e._v(" "),"look"!==e.lookType?a("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"30px"}},[a("div",{staticClass:"closeBtn",on:{click:e.getSound}},[e._v("取消")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/updateSubjectInfo",parent:"/resetTeaming/resetSound"},expression:"{child: 'musicGroup/updateSubjectInfo', parent: '/resetTeaming/resetSound'}"}],staticClass:"okBtn",on:{click:e.saveInfo}},[e._v("保存")])]):e._e()],1)},o=[],l=a("ff14"),c={components:{soundSetCore:l["a"]},data:function(){return{lookType:""}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.lookType=this.$route.query.type},saveInfo:function(){this.$refs.soundSetCore.submitInfo()},getSound:function(){this.$refs.soundSetCore.init()}}},u=c,d=a("2877"),p=Object(d["a"])(u,n,o,!1,null,"417cc28b",null),m=p.exports,h=a("070d"),f=a("f610"),b=a("d80b"),v=a("be2e"),y=a("1c0e"),g={data:function(){return{activeIndex:this.$route.query.checkIndex?this.$route.query.checkIndex:"1",teamid:"",name:"",stepImgs:{PROGRESS:a("7a7c"),PAUSE:a("c34d")},team_status:""}},created:function(){this.activeIndex=null,this.init(),this.activeIndex="1"},activated:function(){this.init()},methods:{init:function(){var e=this.$route.query;this.team_status=this.$route.query.team_status,console.log(this.team_status),this.teamid=e.id,this.name=e.name},handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getname:function(e){this.name=e,localStorage.setItem("teamName",e)}},components:{baseInfo:i["a"],soundeDetail:m,resetPayList:h["a"],resetPayListSchool:f["a"],forecastName:b["default"],signupList:v["default"],classSeting:y["a"]}},_=g,S=(a("8790"),Object(d["a"])(_,s,r,!1,null,"7098e715",null));t["default"]=S.exports},a05b:function(e,t,a){},a6e9:function(e,t,a){"use strict";a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return c}));var s=a("b775"),r=a("4328"),i=a.n(r),n="/api-web";function o(e){return Object(s["a"])({url:n+"/sysConfig/list",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/sysConfig/update",method:"post",data:i.a.stringify(e)})}function c(e){return Object(s["a"])({url:n+"/sysConfig/queryByParamName",method:"get",params:e})}},aa6f:function(e,t,a){},ace5:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": ",inline:!0}},[e.isUserType&&e.addStudent?a("el-form-item",{attrs:{label:"是否购买会员"}},[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:!0}},[e._v("购买会员")]),e._v(" "),a("el-radio",{attrs:{label:!1}},[e._v("不购买会员")])],1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"会员等级",prop:"memberRankSettingId",rules:[{required:!0,message:"请选择会员等级",trigger:"blur"}]}},[a("el-select",{staticStyle:{width:"620px !important"},attrs:{placeholder:"会员等级",clearable:"",filterable:""},on:{change:e.memberRankSettingIdChange},model:{value:e.form.memberRankSettingId,callback:function(t){e.$set(e.form,"memberRankSettingId","string"===typeof t?t.trim():t)},expression:"form.memberRankSettingId"}},e._l(e.memberRankList,(function(e){return a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"会员有效期",prop:"memberValidDate",rules:[{required:!0,message:"请选择会员有效期",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"596px"},attrs:{disabled:!0},model:{value:e.form.memberValidDate,callback:function(t){e.$set(e.form,"memberValidDate",t)},expression:"form.memberValidDate"}},[a("template",{slot:"append"},[e._v("个月")])],2),e._v(" "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("自开课之日起6个月有效。")]),e._v(" "),a("i",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherSalary",expression:"'export/teacherSalary'"}],staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"现价",prop:"memberPaymentAmount",rules:[{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额"},{required:!0,message:"请输入现价",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"223px"},model:{value:e.form.memberPaymentAmount,callback:function(t){e.$set(e.form,"memberPaymentAmount",t)},expression:"form.memberPaymentAmount"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"原价",prop:"originalMemberPaymentAmount",rules:[{required:!0,message:"请输入原价",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"223px"},attrs:{disabled:!0},model:{value:e.form.originalMemberPaymentAmount,callback:function(t){e.$set(e.form,"originalMemberPaymentAmount",t)},expression:"form.originalMemberPaymentAmount"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&!e.addStudent&&e.showTime?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"620px"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e()],1)},r=[],i=(a("96cf"),a("1da1")),n=a("267e"),o=a("ed08"),l=a("1672"),c={props:["form","isUserType","organId","addStudent","showTime","viewDetail"],data:function(){return{paymentPatternTypeOptions:Object(o["b"])(n["paymentPatternType"]),pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},memberRankList:[],radio:!0}},mounted:function(){var e=Object(i["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["a"])({isDefault:0});case 3:t=e.sent,this.memberRankList=t.data,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:this.$set(this.form,"memberValidDate",6);case 11:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),methods:{memberRankSettingIdChange:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,i,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=12;break}return e.prev=1,e.next=4,Object(l["b"])({rankId:t,organId:this.organId});case 4:i=e.sent,null!==(a=i.data)&&void 0!==a&&a.currentHalfYearFee&&null!==(s=i.data)&&void 0!==s&&s.originalHalfYearFee?(this.$set(this.form,"memberPaymentAmount",null===(n=i.data)||void 0===n?void 0:n.currentHalfYearFee),this.$set(this.form,"originalMemberPaymentAmount",null===(o=i.data)||void 0===o?void 0:o.originalHalfYearFee)):this.$message.error("请设置该会员的默认价格"),console.log(this.form.memberPaymentAmount,null===(r=i.data)||void 0===r?void 0:r.currentHalfYearFee),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t){return e.apply(this,arguments)}return t}()},watch:{radio:function(e){e?this.$set(this.form,"memberValidDate",6):(this.$set(this.form,"memberRankSettingId",null),this.$set(this.form,"memberValidDate",null),this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"paymentDate",[]))},viewDetail:{deep:!0,handler:function(e){var t;null!==(t=e.musicGroupPaymentCalenders[0])&&void 0!==t&&t.memberRankSettingId?this.radio=!0:this.radio=!1}}}},u=c,d=(a("d357"),a("2877")),p=Object(d["a"])(u,s,r,!1,null,"5cf6df22",null);t["a"]=p.exports},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var s=a("bc3a"),r=a.n(s),i=(a("4328"),a("5f87")),n=a("3908"),o=a("e3eb"),l=a.n(o),c=function(e,t,a){var s=t.url,o={method:t.method?t.method:"get",headers:{Authorization:Object(i["a"])()},url:s,responseType:"blob"};"post"==o.method?o.data=t.params:o.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),r()(l()(o)).then((function(a){var s=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(s).text();r.then((function(a){if(-1!=a.indexOf("code")){var r=JSON.parse(a);e.$message.error(r.msg)}else{var i=URL.createObjectURL(s),n=document.createElement("a"),o=t.fileName||"导出文件.xls";n.href=i,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,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},r=[],i={props:["form"]},n=i,o=(a("4000"),a("2877")),l=Object(o["a"])(n,s,r,!1,null,"55ad3016",null);t["a"]=l.exports},b38b:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return c}));var s=a("b775"),r=a("4328"),i=a.n(r),n="/api-web";function o(e){return Object(s["a"])({url:n+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:i.a.stringify(e)})}function c(e){return Object(s["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:i.a.stringify(e)})}},b3d0:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学生编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList,"max-height":"300"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[a("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"应缴金额",rules:[{required:!0,message:"请输入预计缴费金额",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}],prop:"momey"}},[a("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},r=[],i=a("5530"),n=a("333d"),o=a("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["L"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList()},getList:function(){var e=this;this.searchForm.musicGroupId=this.teamid,Object(o["nc"])(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{batchNo:this.batchNo})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;localStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,a={};a.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["uc"])(a).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.resetPayVisible=!1,t.getList(),t.$listeners.submited&&t.$listeners.submited())}))}},watch:{resetPayVisible:function(e){e||(this.resetPayForm={momey:null},this.$refs["resetPayForm"].resetFields())}}},c=l,u=(a("b5ca"),a("2877")),d=Object(u["a"])(c,s,r,!1,null,"2547eae8",null);t["default"]=d.exports},b4ac:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return n}));var s=a("829b"),r=function(e){return Object(s["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},i=function(e){return Object(s["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},n=function(e){return Object(s["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})}},b58c:function(e,t,a){"use strict";a("8550")},b5ca:function(e,t,a){"use strict";a("2e3a")},b833:function(e,t,a){},ba30:function(e,t,a){},be2e:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sigup-container"},[a("div",{staticClass:"topWrap"},[a("div",[a("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[a("div",{staticStyle:{display:"flex","margin-bottom":"15px","font-size":"18px","font-weight":"400"}},[e.applyExpireDate?a("p",{staticStyle:{"margin-right":"10px"}},[e._v("\n 报名截止时间:"+e._s(e._f("formatTimer")(e.applyExpireDate))+"\n ")]):e._e(),e._v(" "),e.paymentExpireDate?a("p",[e._v("\n 缴费截止时间:"+e._s(e._f("formatTimer")(e.paymentExpireDate))+"\n ")]):e._e()])]),e._v(" "),a("div",{staticClass:"btnList"},["APPLY"==e.status?a("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?a("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(" "),a("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(" "),a("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(" "),a("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(" "),a("div",{staticClass:"newBand",on:{click:function(t){return e.onCreateQRCode("detail")}}},[e._v("缴费详情")]),e._v(" "),a("auth",{attrs:{auths:"studentRegistration/queryPreApplyList/4263"}},[a("div",{staticClass:"newBand",staticStyle:{"margin-right":"0"},on:{click:function(t){e.forecastVisible=!0}}},[e._v("\n 预报名名单\n ")])]),e._v(" "),a("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(" "),a("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 ")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/queryStudentApplyDetailExport",expression:"'studentRegistration/queryStudentApplyDetailExport'"}],staticClass:"newBand",on:{click:e.onDownLoadExecl}},[e._v("\n 名单导出\n ")]),e._v(" "),a("auth",{attrs:{auths:"studentRegistration/getRegisterOrPreList"}},[a("div",{staticClass:"newBand",staticStyle:{"margin-right":"0"},on:{click:function(t){e.newForecastVisible=!0}}},[e._v("\n 时间数据统计\n ")])]),e._v(" "),a("auth",{attrs:{auths:"subject/findSubApplyDetail"}},[a("el-popover",{attrs:{placement:"bottom",width:"1000",trigger:"hover"}},[a("el-table",{staticStyle:{width:"100% !important"},attrs:{data:e.leftList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"乐团声部",prop:"subjectName",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"计划招生",prop:"expectedStudentNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEdit,expression:"!isEdit"}]},[e._v(e._s(t.row.expectedStudentNum))]),e._v(" "),a("el-input",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"isEdit"}],model:{value:t.row.expectedStudentNum,callback:function(a){e.$set(t.row,"expectedStudentNum","string"===typeof a?a.trim():a)},expression:"scope.row.expectedStudentNum"}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"已报名",prop:"applyStudentNum",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"已缴费",prop:"payNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getpayNum(t.row)}}},[e._v(e._s(t.row.payNum))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"缴费中",prop:"payingNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getpayingNum(t.row)}}},[e._v(e._s(t.row.payingNum))])],1)]}}])},[a("template",{slot:"header"},[a("p",[e._v("\n 缴费中\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("提交订单尚未支付成功学员")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{label:"审核中",prop:"checkNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getCheckNum(t.row)}}},[e._v(e._s(t.row.checkNum))])],1)]}}])},[a("template",{slot:"header"},[a("p",[e._v("\n 审核中\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 不购买云教练系统学员数量,不包含已缴费学员\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{label:"购买云教练人数",prop:"buyCloudTeacherNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getCheckNum(t.row,"buyCloud")}}},[e._v(e._s(t.row.buyCloudTeacherNum))])],1)]}}])},[a("template",{slot:"header"},[a("p",[e._v("\n 购买云教练人数\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 已缴费学员中购买了云教练系统的学员总数\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{label:"入团未购云教练",prop:"noCloudTeacherStudentNumOfNormal",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.getCheckNum(t.row,"noCloud")}}},[e._v(e._s(t.row.noCloudTeacherStudentNumOfNormal))])],1)]}}])},[a("template",{slot:"header"},[a("p",[e._v("\n 入团未购云教练\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 【在读】学员中,未购买【云教练系统】学员数量\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2)],1),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/updateExpectedStudentNum",expression:"'musicGroup/updateExpectedStudentNum'"}],staticClass:"btnWrap",staticStyle:{"margin-right":"20px","margin-top":"20px"}},[a("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(" "),a("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"isEdit"}],on:{click:e.saveIsEdit}},[e._v("保存")])],1),e._v(" "),a("div",{staticClass:"newBand",attrs:{slot:"reference"},slot:"reference"},[e._v("人数统计")])],1)],1)],1)]),e._v(" "),a("el-dialog",{attrs:{title:"选择合并乐团",visible:e.mergeVisible,width:"950px"},on:{"update:visible":function(t){e.mergeVisible=t}}},[e.mergeVisible?a("mergeMusic",{staticStyle:{padding:"0 20px"},attrs:{organId:e.organId},on:{close:function(t){e.mergeVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"时间数据统计",visible:e.newForecastVisible,width:"1100px"},on:{"update:visible":function(t){e.newForecastVisible=t}}},[e.newForecastVisible?a("newForecastList",{on:{close:function(t){e.newForecastVisible=!1}}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"预报名名单",visible:e.forecastVisible,width:"1100px"},on:{"update:visible":function(t){e.forecastVisible=t}}},[e.forecastVisible?a("forecastList",{on:{close:function(t){e.forecastVisible=!1}}}):e._e()],1)],1),e._v(" "),a("div",{staticClass:"searchList"},[a("save-form",{attrs:{inline:!0,model:e.searchFrom},on:{submit:e.search,reset:e.onReset}},[a("el-form-item",[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("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"}},[a("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),a("el-form-item",[a("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(" "),a("el-form-item",[a("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 a("el-option",{key:t,attrs:{label:e.label,value:e.label}})})),1)],1),e._v(" "),a("el-form-item",[a("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"}},[a("el-option",{attrs:{label:"未开启缴费",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"开启缴费",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"已缴费",value:"2"}})],1)],1),e._v(" "),a("el-form-item",[a("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"}},[a("el-option",{attrs:{label:"否",value:"false"}}),e._v(" "),a("el-option",{attrs:{label:"是",value:"true"}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否购买云教练"},model:{value:e.searchFrom.hasCloudTeacher,callback:function(t){e.$set(e.searchFrom,"hasCloudTeacher","string"===typeof t?t.trim():t)},expression:"searchFrom.hasCloudTeacher"}},[a("el-option",{attrs:{label:"是",value:1}}),e._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否解除限制"},model:{value:e.searchFrom.noneNeedCloudTeacher,callback:function(t){e.$set(e.searchFrom,"noneNeedCloudTeacher","string"===typeof t?t.trim():t)},expression:"searchFrom.noneNeedCloudTeacher"}},[a("el-option",{attrs:{label:"是",value:1}}),e._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"订单状态"},model:{value:e.searchFrom.payingStatus,callback:function(t){e.$set(e.searchFrom,"payingStatus","string"===typeof t?t.trim():t)},expression:"searchFrom.payingStatus"}},[a("el-option",{attrs:{label:"缴费中",value:1}}),e._v(" "),a("el-option",{attrs:{label:"审核中",value:2}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"studentStatus"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"学员状态"},model:{value:e.searchFrom.studentStatus,callback:function(t){e.$set(e.searchFrom,"studentStatus","string"===typeof t?t.trim():t)},expression:"searchFrom.studentStatus"}},[a("el-option",{attrs:{label:"在读",value:"NORMAL"}}),e._v(" "),a("el-option",{attrs:{label:"报名",value:"APPLY"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"search"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1)],1),e._v(" "),a("div",[a("el-table",{ref:"multipleTable",attrs:{data:e.rightList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkboxSelect}}),e._v(" "),a("el-table-column",{attrs:{label:"学员姓名",prop:"studentName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.studentName)+"("+e._s(e._f("sex")(t.row.gender))+")")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"家长姓名",prop:"parentsName",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"入团年份"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.createTime,"YYYY年"))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"联系电话",prop:"parentsPhone",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"年级班级",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.currentGrade+t.row.currentClass)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"服从调剂",prop:"isAllowAdjust",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("isAllowAdjust")(t.row.isAllowAdjust))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报名/调剂专业",prop:"actualSubjectName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.subjectName)+" / "+e._s(t.row.actualSubjectName)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否回访",prop:"paymentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.visitNum?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"报名缴费状态",prop:"paymentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentStatus")(t.row.paymentStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"学员状态",prop:"studentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("musicGroupStudentType")(t.row.studentStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"订单状态",prop:"payingStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("filtersPayingStatus")(t.row.payingStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"是否购买云教练",fixed:"right",prop:"hasCloudTeacher",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(1==t.row.hasCloudTeacher?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"解除限制",fixed:"right",prop:"noneNeedCloudTeacher",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(1==t.row.noneNeedCloudTeacher?"是":"否")+"\n ")])]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative",display:"flex"}},[e._v("\n 解除限制\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学员是否受到不购买云教练的缴费限制")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),"PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status?a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"240",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"studentRegistration/batchUpdateSubject"}},[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2!=t.row.paymentStatus,expression:"scope.row.paymentStatus != 2"}],attrs:{type:"text"},on:{click:function(a){return e.resetSubject(t.row)}}},[e._v("修改专业")])],1),e._v(" "),a("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}},[a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("备注")])],1),e._v(" "),a("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"studentRegistration/queryFeeDetail"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookdetail(t.row)}}},[e._v("查看")])],1),e._v(" "),a("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"musicGroupQuit/directQuitMusicGroup2"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.quitTeam(t.row)}}},[e._v("退团退费")])],1),e._v(" "),a("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"musicGroupQuit/directQuitMusicGroup3"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.quieTeams(t.row)}}},[e._v("退团")])],1),e._v(" "),t.row.visitNum<=0?a("auth",{attrs:{auths:"visit/add/teamSignupList"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addVisit(t.row)}}},[e._v("新增回访")])],1):e._e(),e._v(" "),a("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"subjectChange/getStudentOriginal"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openChangeVoice(t.row)}}},[e._v("更改声部")])],1),e._v(" "),a("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.payingStatus&&0==t.row.noneNeedCloudTeacher,expression:"\n scope.row.payingStatus == 2 &&\n scope.row.noneNeedCloudTeacher == 0\n "}],attrs:{auths:"studentRegistration/setNoneCloudTeacher"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.relieve(t.row)}}},[e._v("解除预约限制")])],1),e._v(" "),a("auth",{attrs:{auths:"studentRegistration/setCloudTeacherToFailed"}},[2==t.row.payingStatus?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.failedRelieve(t.row)}}},[e._v("拒绝审核")]):e._e()],1)],1)]}}],null,!1,3110522432)}):e._e()],1),e._v(" "),a("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"}},[a("el-button",{on:{click:e.onSelectAll}},[e._v("全选/取消")]),e._v(" "),a("auth",{attrs:{auths:"studentRegistration/openPayment"}},[a("el-button",{staticStyle:{"background-color":"#14928a",border:"1px solid #14928a"},attrs:{type:"primary"},on:{click:e.onPartPayment}},[e._v("开启缴费")])],1)],1),e._v(" "),a("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(" "),a("el-dialog",{attrs:{title:"修改专业",visible:e.subjectVisible,width:"400px"},on:{"update:visible":function(t){e.subjectVisible=t}}},[a("el-form",{attrs:{model:e.maskForm}},[a("el-form-item",{attrs:{label:"选择专业"}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.subjectVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.okReset}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.isPay?"延长缴费":"延长报名",visible:e.extendPaymentStatus,"destroy-on-close":"",width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t}}},[a("el-form",{ref:"extendForm",attrs:{model:e.extendForm,rules:e.extendRule}},[e.isPay?a("el-form-item",{attrs:{label:"延长缴费时间",prop:"expireDate"}},[a("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):a("el-form-item",{attrs:{label:"延长报名时间",prop:"expireDate"}},[a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),(e.isPay,a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm",e.isPay)}}},[e._v("确 定")]))],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"订单详情",visible:e.orderVisible,width:"600px"},on:{"update:visible":function(t){e.orderVisible=t}}},[a("el-form",{attrs:{model:e.orderForm,inline:!0}},[a("el-form-item",{attrs:{label:"学员姓名"}},[a("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(" "),a("el-form-item",{attrs:{label:"实缴金额"}},[a("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(" "),a("el-form-item",{attrs:{label:"实际专业"}},[a("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(" "),a("el-form-item",{attrs:{label:"课程费用"}},[a("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(" "),a("el-form-item",{attrs:{label:"选择乐器"}},[a("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(" "),a("el-form-item",{attrs:{label:"乐器价格"}},[a("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(" "),a("el-form-item",{attrs:{label:"教辅组合"}},[a("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(" "),a("el-form-item",{attrs:{label:"组合价格"}},[a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.orderVisible=!1}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"开始缴费",visible:e.paymentStatus,width:"400px","destroy-on-close":""},on:{"update:visible":function(t){e.paymentStatus=t}}},[a("el-form",{ref:"paymentForm",staticClass:"paymentForm",attrs:{model:e.paymentForm,"label-position":"top",rules:e.paymentRules}},[a("el-form-item",{attrs:{label:"请设置缴费截止日期",prop:"paymentExpireDate"}},[a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.paymentStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onStartPayment("paymentForm")}}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:e.codeTitle,codeUrl:e.qrCodeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"退团信息确认","destroy-on-close":!0,width:"640px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[a("quiteTeam",{ref:"quitForm",attrs:{quitForm:e.quitForm,activeRow:e.activeRow}}),e._v(" "),a("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[a("div",[a("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[a("div",{staticClass:"popoverWrap"},[a("p",[e._v("乐团退团退费规则:")]),e._v(" "),a("p",[e._v("退还乐器练习云教练费用:报名缴费时缴费的乐器练习云教练费用")]),e._v(" "),a("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),a("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),a("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")]),e._v(" "),a("p",[e._v("退还乐保费用:报名缴费时缴费的乐保费用")])]),e._v(" "),a("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),a("div",[a("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1),e._v(" "),a("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?a("visit",{attrs:{detail:e.detail},on:{close:function(t){e.visitVisiable=!1},submited:e.getList}}):e._e()],1),e._v(" "),e.changeVoiceVisible?a("el-dialog",{attrs:{title:"更改声部",visible:e.changeVoiceVisible,width:"600px"},on:{"update:visible":function(t){e.changeVoiceVisible=t}}},[a("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)},r=[],i=(a("386d"),a("5530")),n=a("b85c"),o=(a("ac6a"),a("7f7f"),a("96cf"),a("1da1")),l=a("333d"),c=a("641c"),u=a("1cc7"),d=a("3078"),p=a("879d"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forecastName"},[a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"isAllowAdjust"}},[a("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"}},[a("el-option",{attrs:{label:"是",value:1}}),e._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),a("el-form-item",[a("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 a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"kitPurchaseMethod"}},[a("el-select",{attrs:{clearable:"",placeholder:"乐器准备方式"},model:{value:e.searchForm.kitPurchaseMethod,callback:function(t){e.$set(e.searchForm,"kitPurchaseMethod","string"===typeof t?t.trim():t)},expression:"searchForm.kitPurchaseMethod"}},[a("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),a("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"cloudTeacherMethod"}},[a("el-select",{attrs:{clearable:"",placeholder:"系统意向"},model:{value:e.searchForm.cloudTeacherMethod,callback:function(t){e.$set(e.searchForm,"cloudTeacherMethod","string"===typeof t?t.trim():t)},expression:"searchForm.cloudTeacherMethod"}},[a("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),a("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{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(" "),a("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(" "),a("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(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",label:"系统意向"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.cloudTeacherMethod))+"\n ")]}}])}),e._v(" "),a("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(" "),a("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)])},h=[],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,cloudTeacherMethod:null,kitPurchaseMethod: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(d["g"])(Object(i["a"])(Object(i["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}()}},b=f,v=a("2877"),y=Object(v["a"])(b,m,h,!1,null,"67eb707e",null),g=y.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forecastName"},[a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/registerOrPreListExport",expression:"'studentRegistration/registerOrPreListExport'"}],attrs:{type:"primary"},on:{click:e.exporOrPreList}},[e._v("导出")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"sort-change":e.changePayTime}},[a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualSubjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"perRegisterTime",label:"预报名时间",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("formatTimer")(t.row.perRegisterTime)))]),e._v(" "),a("p",[e._v(e._s(e._f("formatSecondTimer")(t.row.perRegisterTime)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"预报名时间差"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.perRegIntervalStr)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费时间",sortable:"custom",prop:"payTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("formatTimer")(t.row.payTime)))]),e._v(" "),a("p",[e._v(e._s(e._f("formatSecondTimer")(t.row.payTime)))])])]}}])}),e._v(" "),a("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.payIntervalStr)+"\n ")]}}])})],1),e._v(" "),a("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)])},S=[],w=a("e3eb"),k=a.n(w),x=a("c1df"),T=a.n(x),F=a("adb21"),C={name:"forecastName",components:{pagination:l["a"]},data:function(){var e=this.$route.query;return{musicGroupId:e.id,searchForm:{search:null,orderByPayTime:null,orderByPerRegister:null},tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.searchForm.orderByPerRegister=null,this.searchForm.orderByPayTime=null,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(d["f"])(Object(i["a"])(Object(i["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}(),changePayTime:function(e){this.searchForm.orderByPerRegister=null,this.searchForm.orderByPayTime=null;var t={perRegisterTime:"orderByPerRegister",payTime:"orderByPayTime",ascending:"ASC",descending:"DESC"};this.searchForm[t[e.prop]]=t[e.order],this.search()},formatterTimes:function(e){return e<60?e+"秒":60<e&&e<3600?T()(1e3*e).format("mm分钟"):3600<e&&e<86400?T()(1e3*e).format("HH小时mm分钟"):e>86400?T()(1e3*e).format("DD天HH小时mm分钟"):"--"},exporOrPreList:function(){var e=this.searchForm;Object(F["a"])(this,{method:"get",url:"/api-web/studentRegistration/registerOrPreListExport",params:Object(i["a"])(Object(i["a"])({},e),{},{musicGroupId:this.musicGroupId}),fileName:"时间数据统计.xls"},"是否导出时间数据统计?")}}},P=C,I=Object(v["a"])(P,_,S,!1,null,"65fb4db0",null),O=I.exports,j=a("5137"),L=a("61f7"),D=a("46f6"),A=a("d044"),N=a.n(A),E=a("92e3"),R=a("bc3a"),G=a.n(R),$=a("5f87"),M=a("3908"),V=a("4328"),q=a.n(V),U=a("ec8a"),B=a("6cc5"),H=a("4edf"),z=a("475f"),Y={name:"signupList",components:{pagination:l["a"],qrCode:c["a"],changeVoice:B["a"],mergeMusic:p["a"],forecastList:g,visit:H["a"],newForecastList:O,quiteTeam:z["a"]},data:function(){return{multipleSelection:[],forecastVisible:!1,newForecastVisible:!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:"",hasCloudTeacher:null,payingStatus:null,noneNeedCloudTeacher:null,studentStatus:null},quitForm:{isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,isMaintenanceFee:null,cloudTeacherAmount:null,isCloudTeacherAmount:null,isRefundMemberFee:null,maintenanceFee:0,reason:""},stepImgs:{APPLY:a("cd89"),PAY:a("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:E["I"],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()},filters:{filtersPayingStatus:function(e){var t={0:"--",1:"缴费中",2:"审核中"};return t[e]}},methods:{permission:function(e){return Object(U["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["p"])({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["qb"])({musicGroupId:this.id}).then((function(e){var a=e.data;if(200==e.code&&a)for(var s in a)t.gradeList.push({value:s,label:a[s]})})),Object(u["Ob"])({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["L"])({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,hasCloudTeacher:null,payingStatus:null,studentStatus:null,noneNeedCloudTeacher: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["Ob"])({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,hasCloudTeacher:this.searchFrom.hasCloudTeacher,payingStatus:this.searchFrom.payingStatus,studentStatus:this.searchFrom.studentStatus,noneNeedCloudTeacher:this.searchFrom.noneNeedCloudTeacher,page:this.rules.page,rows:this.rules.limit};return Object(u["Wb"])({musicGroupId:this.id}).then((function(t){200==t.code&&(e.leftList=t.data)})),Object(u["Eb"])(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["bc"])({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 a=[];t.forEach((function(e){a.push(e.id)})),this.$confirm("是否确认开启缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["ec"])({ids:a.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(L["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(L["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(L["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},onCreateQRCode2:function(){var e=this;this.qrcodeStatus2=!0;var t=this.id,a=this.$route.query.name;setTimeout((function(){document.getElementById("qrcode2").innerHTML="",e.qrcode2=new N.a("qrcode2",{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:N.a.CorrectLevel.H}),e.qrcode2.makeCode(Object(L["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a),e.codeUrl2=Object(L["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}),500)},onDownLoadExecl:function(){var e=this,t="/api-web/studentRegistration/queryStudentApplyDetailExport",a={musicGroupId:this.$route.query.id,page:1,rows:9999},s={method:"POST",headers:{Authorization:Object($["a"])()},data:q.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){M["a"].startLoading(),G()(s).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(a).text();s.then((function(t){if(-1!=t.indexOf("code")){var s=JSON.parse(t);e.$message.error(s.msg)}else{var r=URL.createObjectURL(a),i=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";i.href=r,i.setAttribute("download",l),document.body.appendChild(i),i.click()}})),M["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),M["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["ac"])({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(j["s"])({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["Wb"])({musicGroupId:e.id}).then((function(t){200==t.code&&(e.leftList=t.data)})),e.getList())})):this.$message.error("请选择调剂专业")},onExtendPayment:function(e,t){var a=this;this.$refs[e].validate((function(e){e&&(t?Object(u["F"])({musicGroupId:a.id,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(u["Ob"])({musicGroupId:a.id}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(u["E"])({musicGroupId:a.id,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(u["Ob"])({musicGroupId:a.id}).then((function(e){200==e.code&&(a.applyExpireDate=e.data.musicGroup.applyExpireDate)}))):a.$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["j"])({musicGroupId:this.id,studentId:e.studentId}).then((function(e){if(200==e.code&&e.data){t.orderForm.totalAmount=e.data.totalAmount;var a="",s=0,r="",i=0;for(var n in e.data.goods)"INSTRUMENT"==e.data.goods[n].goodsType?(a+=e.data.goods[n].goodsName+",",s+=parseFloat(e.data.goods[n].musicalFee)):"ACCESSORIES"==e.data.goods[n].goodsType?(r+=e.data.goods[n].goodsName+",",i+=parseFloat(e.data.goods[n].musicalFee)):"COURSE"==e.data.goods[n].goodsType&&(t.orderForm.subjectFee=e.data.goods[n].musicalFee);t.orderForm.others=r.substring(0,r.length-1),t.orderForm.othersPrice=i,t.orderForm.axe=a.substring(0,a.length-1),t.orderForm.axePrice=s}}))},saveIsEdit:function(){this.isEdit=!1,Object(u["xc"])(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(a){Object(u["b"])({musicGroupId:t.id,userId:e.studentId,reason:a.value,isRefundCourseFee:!1,isRefundInstrumentFee:!1,isRefundTeachingAssistantsFee:!1,isRefundMemberFee:!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"].$refs["quitForm"].validate((function(t){t&&e.$confirm("确定退团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.activeRow,a={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,isRefundMemberFee:e.quitForm.isRefundMemberFee};e.quitForm.isRefundMemberFee?a.cloudTeacherAmount=e.quitForm.cloudTeacherAmount:a.cloudTeacherAmount=0,Object(u["b"])(a).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(a){var s,r=Object(n["a"])(a.data.rows);try{for(r.s();!(s=r.n()).done;){var o=s.value;o.id===e.id&&(t.rowDetail=Object(i["a"])(Object(i["a"])({},o),{},{userId:o.studentId}),t.changeVoiceVisible=!0)}}catch(l){r.e(l)}finally{r.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(D["a"])(k()(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},relieve:function(e){var t=this;this.$confirm("操作后该学员即可不购买云教练缴费入团","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function a(){var s;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Object(d["k"])({id:e.id});case 3:s=a.sent,console.log("code",s.code),200==s.code?(t.$message.success("解除预约成功"),t.getList()):100==s.code&&t.$confirm(s.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a=Object(o["a"])(regeneratorRuntime.mark((function a(s){var r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,Object(d["k"])({id:e.id,isContinue:!0});case 2:r=a.sent,200==r.code&&(t.$message.success("解除预约成功"),t.getList());case 4:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()),a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](0),console.log("错误",a.t0);case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))))},failedRelieve:function(e){var t=this;this.$confirm("拒绝后学员需购买会员方可入团","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,Object(d["j"])({id:e.id});case 3:a.sent,t.$message.success("操作成功"),t.getList(),a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](0),console.log(a.t0);case 11:case"end":return a.stop()}}),a,null,[[0,8]])}))))},getCheckNum:function(e,t){this.rules.page=1,this.rules.limit=10,this.searchFrom={name:null,subject:null,isAllowAdjust:null,currentGrade:null,paymentStatus:null,visited:null,hasCloudTeacher:null,payingStatus:null,studentStatus:null,noneNeedCloudTeacher:null},this.searchFrom.subject=e.subjectId,"buyCloud"==t?this.searchFrom.hasCloudTeacher=1:"noCloud"==t?(this.searchFrom.hasCloudTeacher=0,this.searchFrom.studentStatus="NORMAL"):(this.searchFrom.payingStatus=2,this.searchFrom.hasCloudTeacher=0),this.search()},getpayingNum:function(e){this.rules.page=1,this.rules.limit=10,this.searchFrom={name:null,subject:null,isAllowAdjust:null,currentGrade:null,paymentStatus:null,visited:null,hasCloudTeacher:null,payingStatus:null,studentStatus:null,noneNeedCloudTeacher:null},this.searchFrom.subject=e.subjectId,this.searchFrom.payingStatus=1,this.search()},getpayNum:function(e){this.rules.page=1,this.rules.limit=10,this.searchFrom={name:null,subject:null,isAllowAdjust:null,currentGrade:null,paymentStatus:null,visited:null,hasCloudTeacher:null,payingStatus:null,studentStatus:null,noneNeedCloudTeacher:null},this.searchFrom.subject=e.subjectId,this.searchFrom.paymentStatus="2",this.search()}},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:"",isRefundMemberFee:null},this.$refs["quitForm"].$refs["quitForm"].resetFields())}}},W=Y,J=(a("93f9"),Object(v["a"])(W,s,r,!1,null,"1d91cff7",null));t["default"]=J.exports},c34d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACM1JREFUeAHlnH9oVVUcwHtvm27kjwoXKkKspBGRuswEmTO1/pBI8UeWkKV/RGqipMU2Z7HAH5urkQqa+UeUQWiuhH6QYMtyQyxdKKKMyKW2TRtb+CNm7lef72Pn8fbe/fnuefdu88Dl3Ht+fL/f87nnfO859573Qnf5GHp6ekIlJSWPdnV1TQiHw7lcy5ETCoVGYMZwObjuIb5B2k3ia1w2cF7PeT3x6a1bt57j3LcQSrWm4uLibHQs6O7unkUDZ9JguU46IOMqMn4E8JGhQ4d+VVpa2pa0MAcVUwIIo4fcunVrHvqXcsyhQekObHFdBFi3qfQtx77MzMyv0dvpWohNBa2AKisrs1paWl6lt7yF3nE2urVmA+tPBJaPHTv24zVr1vynS7gWQAcOHEirq6tbSU95G8Pu12VcMnIA1Uy9UnzVXs7Fn3kKngHhY6YCZjdHnidLNFcGzgn81KotW7bUeRGdNKA9e/ZkXLhwoQzlb3AkLceL8XZ1gdTNUZaXl/fO4sWLu+zKG+Un1TAe1Q/wqN5Pr5lqJLS/pQHpWFpa2pLNmzc3urXNNaDCwsICFB4Czr1ulQVZHptbOJ7DN51wY0fYTeGioqL5KDk80OBIG7E5m6N6w4YNc9y0Oc1pYZzxchTso/wQp3X6YbkMbHqhoKDg92PHjp11Yp+jISY9BzhfINAxUCfKAyzTwUiYW1ZW9r2dDbaA6DkzmPgdRtBQO2EDLP9fpgGz7XySJaCNGzfmdHR0yDzingHWeEfmiuNmiTKJJUqTWQVTJy3znM7Ozv2DFY4AEcfNmvFzWQm4BsQkcBsCpphVHCzptLGAZdK7Zu0xHGJMBKfRe2qoZJhvJmwAp3cx3KbgtH+Lb0PCEJPuxix51x0ER5jIEJP1ZEKHSBh748ePX0vBV6TWHRbGVVdXN9bU1PRZ3PbpQRUVFXfzSC/xCobu2skj9HniD73KclC/kjJL0dXtoKxlEdpeumPHjj7TmT5v+tra2l5DwihLKTaZAociLzK/qKInVjGPkqfFCptqyWZXlpeXr5fKrBHvQvcn6Opz010KHtvc3LyMOntUveiYE3JNTU0NKBijMt3GCg7OrkrVRV4ISLuIdUOKwlG6gPSSBkgNWVlZD6vXt1HajY2NC73AwcgejFsSC0cMJ62H3rSKWOdwS4AjuuhNn6FnmZx7CDnt7e3PqvpRQCS8rBKTjEOM4clGdTVDMoSj9HKTn1DnHuIoi8gQ4xXAGB7tlxGY8FRLQkkZd7LYqJ6G4WYJh0X1dnSsMdLtJo0bKl9LRjMa/on0IOAsIkEHHLGjCF+wVU7ig8ee5AscsRnI8kpnvpxHAGH4bLnQGHRD8g2OYgCkCJMw3jrMxQyVoTHWBcl3OMKATjMzEjNuJwPopEYw8aK8+KRA4KgGMNl9JAypCSohRXGyPckOzgfcWM8O2arNyJ8owyvXqpCmPLeQnMBZq8k2UzHCxi9AYoRTSP0CTi+13BA+6DSkUj3MYu+SpU+SqUBs4dhzbJVhlfKeo3Riy3F5zI9QCT7Flj3JzAa/4fTaMVIAyc4uv4MpJCNDAoIjE8ZhQQESDo4gBQVHDGSIDY/MpOUioGD5lZY7KGtF+RoaWBBANwLSbvm0EpvEYfOqZDWxvCMPItwMCpAtHEUjYEg3BNB1ZYwfMQ1+X70mdaovKEgM8esCqMGpoV7LCRzesbxpJgeHvJNji1F+EJDQ2SAz6Xojg3SnOYGDLas5iu0gYdtu3faZyKuXxWrKATmFo4y0g0QvfN0PSKzm68Ps3TujDEtF7BaOskEgWb2Z9AMSgE6HJ06cKN+jrynDdMbJwomxwXQyieyeVEJC/tVNmzadD8v2WC5+ijFKy6kGOMqOoCBViwHyFJMJ2Q8S6woa4SiTfIekmEQA8auZgyR4/rYtrUkBHN8h0Qb57HNIFEcAyRY0nKLnXpRCOFFITAFkd39CQLc2nwSL71jitIqSCKBebZ8maHWXIJ+eZdOVYZBJIIpXG2a6SERGoRUkRJna4FQN7YiyiALig/1BBFxxKsSgnHx6PsCjeV58ni44Sq4ZJPQsoUy0caq8mxg4F3Nycr5RdaJfU48ePdo5ffp0AfaMykwiFnkL8/Pzz9TW1kYmoLrhxNiUj71ZbHg6ImkCB3D7OI22Kaas41MAlSAr+nOFyLd5VRtfNIydDRe5vk+lJRl3MMlajMGzOTwPKysbaFA5+fJeXQecZrYFPwiHW0pnH0CSCL31KHtPFfAQy8v3BPke5FlV1aIL2CuZfPbZphP1QUo7BLdT8Ky69hD7BUdM9KyLNv9K2z+Kb6+hYHaETcfh/hxfeLBeA6ebNelUfk92Mr6Nhg4Nx3cJBziKwk/GVxiM1wDaxrzH8OmXMMQUALqbbI6sU9eDNQZOLW3daNY+wyGmCvNjlofYcV+H0/b746IyIaUxcFoZWnkMrctmikx7kFRguf8Hj+sFCJK1yWAL7bRrnhUcabChD4olwS/zGpj4yf9mLCTdssfF1uvP57RFNrovwu/Yrj9tAUlDcdrngHQFwbI9dqBDkp+HL2e+I0sr2+AIkEgB0ikgnZduyaXjerYW+FugHXWL+OzkCI6Y5ro3MNOehdP+krojRcAACm0Mq7kMq1o3Nls6aSNBdM3qjIyMyfSkU0b5/TENW49jV55bONIW14CkkjzdmDtM447s5NJ0w5OUDTjIO6oKbC1gWF1KxhbXQyxeCe9/8kmTzQWPxecFfF2Xnp6+ksf4L17sSKoHxSrkztTwsu1xetN67lbkNWVsfgDnf6NzNTZN8QpHbPfcg2IByA/yWltbV+DE5fv76Ng8H87/4iZVZGdn7123bp08rbQErYCURbxwyuTn1vLzqqWkPc2RkmkBPbYTHYeJ5S+65P/MtM/4UwJIgZK495dEizidxfEUh9c/KWhDxlGOIwyjKqDIkEpZSDmgWMtpTPj27duTeNc0gTufy51P+JvA3vKy602Oa5SL/E0gZSN/E4hfOc25b0/O/wFGCwAhyqFeLQAAAABJRU5ErkJggg=="},c477:function(e,t,a){},c78f:function(e,t,a){},cd32:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.detail?a("div",[e.detail?a("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("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?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission(e.getFullPermission("musicGroupPaymentCalender/auditPass"))?a("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"))?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关 闭")])],1):a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("关闭")])],1)],1):e._e()},r=[],i=(a("96cf"),a("1da1")),n=a("ec8a"),o=a("3762"),l=a("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var a=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&&(a.$message.success("审核通过"),a.$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&&(a.$message.success("驳回成功"),a.$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=(a("346a"),a("2877")),p=Object(d["a"])(u,s,r,!1,null,"59fb2832",null);t["a"]=p.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"},d349:function(e,t,a){"use strict";a.d(t,"e",(function(){return c})),a.d(t,"d",(function(){return u})),a.d(t,"f",(function(){return d})),a.d(t,"c",(function(){return p})),a.d(t,"s",(function(){return m})),a.d(t,"G",(function(){return h})),a.d(t,"H",(function(){return f})),a.d(t,"h",(function(){return b})),a.d(t,"l",(function(){return v})),a.d(t,"g",(function(){return y})),a.d(t,"m",(function(){return g})),a.d(t,"v",(function(){return _})),a.d(t,"t",(function(){return S})),a.d(t,"u",(function(){return w})),a.d(t,"i",(function(){return k})),a.d(t,"j",(function(){return x})),a.d(t,"p",(function(){return T})),a.d(t,"k",(function(){return F})),a.d(t,"w",(function(){return C})),a.d(t,"I",(function(){return P})),a.d(t,"n",(function(){return I})),a.d(t,"x",(function(){return O})),a.d(t,"A",(function(){return j})),a.d(t,"y",(function(){return L})),a.d(t,"z",(function(){return D})),a.d(t,"r",(function(){return A})),a.d(t,"b",(function(){return N})),a.d(t,"F",(function(){return E})),a.d(t,"q",(function(){return R})),a.d(t,"E",(function(){return G})),a.d(t,"a",(function(){return $})),a.d(t,"o",(function(){return M})),a.d(t,"C",(function(){return V})),a.d(t,"B",(function(){return q})),a.d(t,"D",(function(){return U}));var s=a("15fd"),r=a("b775"),i=a("829b"),n=a("4328"),o=a.n(n),l="/api-web";function c(e){return Object(r["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(r["a"])({url:l+"/organization/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(r["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function p(e){return Object(r["a"])({url:l+"/area/queryChild",method:"get",params:e})}function m(e){return Object(r["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function h(e){return Object(r["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function f(e){return Object(r["a"])({url:l+"/subject/upset",method:"post",data:e})}function b(e){return Object(r["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(r["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(r["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function g(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function k(e){return Object(r["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function x(e){return Object(r["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function T(e){return Object(r["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function F(e){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function C(e){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function P(e){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function I(e){var t=e.id,a=Object(s["a"])(e,["id"]);return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function O(e){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function j(e){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function D(e){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function A(e){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function N(e){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function E(e){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function R(e){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function G(e){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/update",method:"post",params:e})}function $(e){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function M(e){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/del",method:"post",data:e})}function V(e){return Object(i["a"])({url:l+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function q(e){return Object(i["a"])({url:l+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function U(e){return Object(i["a"])({url:l+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}},d357:function(e,t,a){"use strict";a("4d9c")},d80b:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"forecastName"},[a("div",{staticClass:"btnList"},[e.isedit?a("auth",{attrs:{auths:["forecastName/forecastLink"]}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codeStatus=!0}}},[e._v("预报名链接")])],1):e._e(),e._v(" "),e.isedit?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codedetailStatus=!0}}},[e._v("预报名详情")]):e._e(),e._v(" "),e.isedit?a("auth",{attrs:{auths:["musicGroup/sendParentMeetingNotice"]}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.extendPaymentStatus=!0}}},[e._v("家长会通知")])],1):e._e(),e._v(" "),a("auth",{attrs:{auths:["musicGroup/finishPreApply"]}},[e.isedit?a("el-button",{attrs:{type:"primary"},on:{click:e.onPaymentGroup}},[e._v("乐团缴费")]):e._e()],1),e._v(" "),e.isedit?a("auth",{attrs:{auths:["musicGroup/finishPreApply/item"]}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onPaymentGroup(1)}}},[e._v("特色乐团缴费")])],1):e._e(),e._v(" "),a("auth",{attrs:{auths:["studentRegistration/preRegisterExport"]}},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadFile}},[e._v("导出")])],1),e._v(" "),a("auth",{attrs:{auths:["studentRegistration/queryPreApplySubjectList"]}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subjectVisible=!0}}},[e._v("意向统计")])],1)],1),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"isAllowAdjust"}},[a("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"}},[a("el-option",{attrs:{label:"是",value:1}}),e._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"subjectId"}},[a("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 a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"kitPurchaseMethod"}},[a("el-select",{attrs:{clearable:"",placeholder:"乐器准备方式"},model:{value:e.searchForm.kitPurchaseMethod,callback:function(t){e.$set(e.searchForm,"kitPurchaseMethod","string"===typeof t?t.trim():t)},expression:"searchForm.kitPurchaseMethod"}},[a("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),a("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"cloudTeacherMethod"}},[a("el-select",{attrs:{clearable:"",placeholder:"系统意向"},model:{value:e.searchForm.cloudTeacherMethod,callback:function(t){e.$set(e.searchForm,"cloudTeacherMethod","string"===typeof t?t.trim():t)},expression:"searchForm.cloudTeacherMethod"}},[a("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),a("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{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(" "),a("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(" "),a("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(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",label:"乐器准备方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.kitPurchaseMethod))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"系统意向"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.cloudTeacherMethod))+"\n ")]}}])}),e._v(" "),e.isedit?a("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("auth",{attrs:{auths:["visit/add/teamForecastName"]}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.addVisited(t.row)}}},[e._v("新增回访")])],1)]}}],null,!1,3377006125)}):e._e()],1),e._v(" "),a("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(" "),a("qr-code",{attrs:{title:"预报名链接",codeUrl:e.codeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),a("qr-code",{attrs:{title:"预报名详情",codeUrl:e.detailUrl},model:{value:e.codedetailStatus,callback:function(t){e.codedetailStatus=t},expression:"codedetailStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"发送家长会通知",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t},close:function(t){return e.onClose("extendForm")}}},[a("el-form",{ref:"extendForm",attrs:{"label-width":"110px",model:e.extendForm,rules:e.extendRule}},[a("el-form-item",{attrs:{label:"家长会时间",prop:"meetingDate"}},[a("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(" "),a("el-form-item",{attrs:{label:"家长会地址",prop:"address"}},[a("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(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm")}}},[e._v("确 定")])],1)],1),e._v(" "),a("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?a("visit-model",{attrs:{detail:e.visitDetail},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),a("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?a("intention-model",{on:{close:function(t){e.subjectVisible=!1}}}):e._e()],1)],1)},r=[],i=(a("96cf"),a("1da1")),n=a("5530"),o=(a("386d"),a("7f7f"),a("333d")),l=a("641c"),c=a("ec8a"),u=a("61f7"),d=a("adb21"),p=a("4edf"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"}}),e._v(" "),a("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(" "),a("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=a("3078"),b={data:function(){var e=this.$route.query;return{list:[],musicGroupId:e.id}},mounted:function(){this.FetchList()},methods:{FetchList:function(){var e=Object(i["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["h"])({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=b,y=(a("9deb"),a("2877")),g=Object(y["a"])(v,m,h,!1,null,"1a2dbaa6",null),_=g.exports,S={name:"forecastName",components:{pagination:o["a"],qrCode:l["a"],visitModel:p["a"],intentionModel:_},props:["isedit"],data:function(){var e=this.$route.query;return{codedetailStatus:!1,teamName:e.name||null,codeStatus:!1,musicGroupId:e.id,codeUrl:Object(u["d"])()+"/project/forecastName/index.html?musicGroupId="+e.id,detailUrl:Object(u["f"])()+"/#/preApplySubject?musicGroupId="+e.id,searchForm:{name:null,subjectId:null,isAllowAdjust:null,cloudTeacherMethod:null,kitPurchaseMethod: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(i["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["g"])(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(i["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.$confirm("您是否确定开启乐团缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(i["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:a.musicGroupId});case 2:e.sent,a.$store.dispatch("delVisitedViews",a.$route),a.$router.push({path:"/teamList"});case 5:case"end":return e.stop()}}),e)}))))}catch(s){}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(i["a"])(regeneratorRuntime.mark((function e(a){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){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["i"])(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(y["a"])(w,s,r,!1,null,"adb83314",null);t["default"]=k.exports},df4f:function(e,t,a){e.exports=a.p+"static/img/video_bg.0da9f0a8.png"},e323:function(e,t,a){"use strict";a("c78f")},e4f0:function(e,t,a){},e623:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",width:"120",label:"缴费单号",rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",width:"120",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"200","class-name":"table-btns"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["STUDENT"===e.payUserType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/strudentPayInfo",expression:"'/strudentPayInfo'"}],attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.row)}}},[e._v("查看")]):a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail/3882",expression:"'musicGroupPaymentCalender/auditListDetail/3882'"}],attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.row)}}},[e._v("查看")]),e._v(" "),e.$listeners.lookUserList?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(a){return e.$listeners.lookUserList(t.row)}}},[e._v("学员列表")]):e._e(),e._v(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(a){return e.$listeners.commmitGetMoney(t.row)}}},[e._v("确认收款")]):e._e(),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"STUDENT"===e.payUserType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$listeners.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.$listeners.onPreview&&"STUDENT"===e.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.permission("musicGroup/findMusicGroupSubjectInfo/966")&&e.permission("studentRegistration/getSubjectGoodsAndInfo/967")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$listeners.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")])],1)],1)},r=[],i=(a("96cf"),a("1da1")),n=a("1cc7"),o=(a("1672"),a("3908"),a("333d")),l=a("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(i["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["rb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},u=c,d=(a("5513"),a("2877")),p=Object(d["a"])(u,s,r,!1,null,"3970826a",null);t["a"]=p.exports},ebaf:function(e,t,a){"use strict";a("a05b")},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var s=a("ade3"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),i=a.n(r);var n=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],r=a.toLocaleUpperCase();t.push({label:s,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(s["a"])(t,a[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(r):""),Object(s["a"])(t,a[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(r):""),t):{}}},f089:function(e,t,a){"use strict";a("054c")},f610:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,"save-key":"resetPayListSchool",model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add/4359",expression:"'musicGroupPaymentCalender/add/4359'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("\n 新建学校缴费\n ")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("\n 学员缴费设置\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("auditType")(t.row.auditStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",prop:"courseCurrentPrice",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice:t.row.courseCurrentPrice))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage/3881",expression:"'musicGroupPaymentCalender/queryPage/3881'"}],attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd/4360",expression:"'musicGroupPaymentCalenderDetail/batchAdd/4360'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),a("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},["FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.auditStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),!e.teamStatus||"REJECT"!==t.row.auditStatus&&"DRAFT"!==t.row.auditStatus?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update/3883",expression:"'musicGroupPaymentCalender/update/3883'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]),e._v(" "),e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/delByBatchNo/3925",expression:"'musicGroupPaymentCalender/delByBatchNo/3925'"}],attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"resetPayListSchool",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?a("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"SCHOOL",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookUserList:e.lookUserList,lookDetail:e.lookDetail,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"查看缴费用户列表",visible:e.userListVisible,width:"850px"},on:{"update:visible":function(t){e.userListVisible=t}}},[e.userListVisible&&e.viewDetail?a("schoolPayUserList",{attrs:{detail:e.viewDetail}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:"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(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?a("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"确认收款",visible:e.getMoneyVisible,width:"600px"},on:{"update:visible":function(t){e.getMoneyVisible=t}}},[a("isGetMoney",{ref:"getMoney",attrs:{data:e.activeRow},on:{close:e.closeMoney}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.getMoneyVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitGetMoney}},[e._v("确 定")])],1)],1)],1)},r=[],i=(a("a481"),a("5530")),n=(a("96cf"),a("1da1")),o=a("333d"),l=a("5a0c"),c=a.n(l),u=a("641c"),d=a("61f7"),p=a("1cc7"),m=a("d349"),h=a("b38b"),f=a("1672"),b=a("b3d0"),v=a("940a"),y=a("e623"),g=a("86e8"),_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"学生编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.FetchList(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.storeState.sounds,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.FetchList}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchDel",expression:"'musicGroupPaymentCalenderDetail/batchDel'"}],attrs:{type:"primary",disabled:!e.activeChiose.length},on:{click:e.deleteUser}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"100",align:"center",prop:"studentId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?a("div",[a("copy-text",[e._v(e._s(t.row.sysUser.username))])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员声部"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"100%",text:e.row.studentRegistration&&e.row.studentRegistration.subjectName}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.studentRegistration?a("div",[e._v("\n "+e._s(e._f("studentTeamStatus")(t.row.studentRegistration.musicGroupStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"130",align:"center",prop:"studentId",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?a("div",[a("copy-text",[e._v(e._s(t.row.sysUser.phone))])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"110",align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}})],1)},S=[],w=a("704d"),k={search:"",subjectId:""},x={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(i["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(i["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(p["B"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(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["Xb"])(Object(i["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,F=a("2877"),C=Object(F["a"])(T,_,S,!1,null,"4d351015",null),P=C.exports,I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"moneyForm",attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)],1)},O=[],j={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}return s=t.data.id,r=t.form.memo,e.prev=3,e.next=6,Object(f["d"])({id:s,memo:r});case 6:e.sent,t.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.$emit("close")}}},L=j,D=Object(F["a"])(L,I,O,!1,null,"4b111bac",null),A=D.exports,N=a("cd32"),E=a("3762"),R=a("267e"),G=a("ed08"),$=a("92e3"),M={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:b["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:N["a"],reviewDetail:E["a"],teamType:"","pay-items":y["a"],schoolPayUserList:P,isGetMoney:A},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:$["x"],getMoneyVisible:!1,baseInfo:null}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(G["b"])(R["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["c"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getTeamInfo(),this.getList();case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),getTeamInfo:function(){var e=this;this.$route.query.id&&Object(p["Ob"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code&&(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo))}))},newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){var e,t;2!=(null===(e=this.baseInfo)||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.courseViewType)||"PRE_BUILD_FEE"!=this.team_status?(this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0):this.$message.error("会员缴费乐团无法创建学校缴费")},getList:function(){var e=this,t=this.$route.query.id;return Object(h["c"])({page:this.rules.page,rows:this.rules.limit,search:t,payUserType:"SCHOOL",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){2===e&&(this.payForm.paymentValidEndDate=null)},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(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,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["A"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookUserList:function(e){console.log(Object(i["a"])({},e)),this.viewDetail=Object(i["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["f"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(f["g"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(p["sc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?c()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?c()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getTeamInfo(),e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,s=new Date(a.replace(/-/g,"/"));s=new Date(1e3*(s/1e3+86400*t));var r=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate();return r},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:this.getTeamInfo(),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),commmitGetMoney:function(e){this.activeRow=e,this.getMoneyVisible=!0},submitGetMoney:function(){this.$refs.getMoney.submitGetMoney()},closeMoney:function(){this.getMoneyVisible=!1,this.getList()},revoke:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否撤回此缴费项目的审批?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(f["l"])({batchNo:t.batchNo});case 5:e.sent,this.$message.success("取消审批成功"),this.getList(),this.getTeamInfo(),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},V=M,q=(a("153a"),Object(F["a"])(V,s,r,!1,null,"37bef17c",null));t["a"]=q.exports},f927:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": ",inline:"","label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:10}},[e.isOnlyChangeUser?e._e():a("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher",rules:[{required:!0,message:"请选择主教老师"}]}},[a("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,s){return a("el-option",{key:s,attrs:{label:t.realName,value:String(t.id)}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1),e._v(" "),a("el-col",{attrs:{span:10}},[e.isOnlyChangeUser||"HIGH"==e.activeType||"HIGH_ONLINE"==e.activeType||"MUSIC_NETWORK"==e.activeType?e._e():a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("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,s){return a("el-option",{key:s,attrs:{label:t.realName,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1)],1),e._v(" "),a("el-row",[e.showName?a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[a("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(" "),a("el-col",{attrs:{span:12}},[a("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"}]}},[a("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 a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),e.showName?e._e():a("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[a("div",{staticClass:"footer line"},[a("span",[e._v("姓名")]),e._v(" "),a("span",[e._v("性别")]),e._v(" "),a("span",[e._v("专业")])])]},proxy:!0},{key:"right-footer",fn:function(){return[a("div",{staticClass:"footer line"},[a("span",[e._v("姓名")]),e._v(" "),a("span",[e._v("性别")]),e._v(" "),a("span",[e._v("专业")])])]},proxy:!0}],null,!1,3605062098),model:{value:e.seleched,callback:function(t){e.seleched=t},expression:"seleched"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},r=[],i=a("5530"),n=(a("96cf"),a("1da1")),o=(a("7f7f"),a("6762"),a("2fdb"),a("2909")),l=a("267e"),c=a("b4ac"),u=a("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(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){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(i["a"])(Object(i["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)}}())}}},p=d,m=(a("8f19"),a("2877")),h=Object(m["a"])(p,s,r,!1,null,"791703d4",null);t["a"]=h.exports},fa7d:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return o}));var s=a("5530"),r=(a("a481"),a("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var s=t-24*(a.getDay()-1)*60*60*1e3,r=new Date(s),i=r.getFullYear(),n=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,o=r.getDate()<10?"0"+r.getDate():r.getDate(),l=i+"-"+n+"-"+o;return l}),i=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),s=7-a.getDay();7==s&&(s=0);var r=t+24*s*60*60*1e3,i=new Date(r),n=i.getFullYear(),o=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,l=i.getDate()<10?"0"+i.getDate():i.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(s["a"])(Object(s["a"])({},e.$route.query),t)})}},fc1a:function(e,t,a){"use strict";a("ba30")},ff14:function(e,t,a){"use strict";var s,r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.basdisabled?e._e():a("div",{class:e.isField?"soundBtnWrap":"soundBtnFixed"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),e.basdisabled?e._e():a("div",{staticClass:"wall"}),e._v(" "),a("div",{staticClass:"coreWrap"},[a("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,s){return a("el-collapse-item",{key:s,attrs:{name:t.id}},[a("template",{slot:"title"},[a("div",{staticClass:"coreItemTitle"},[a("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),a("div",{staticClass:"coreItem"},[a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),a("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(a){e.$set(t,"expectedStudentNum",a)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),a("el-divider"),e._v(" "),a("chioseMusic",{attrs:{activeSoundList:e.activeSoundList,item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),a("select-all",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(a){e.$set(t,"markChioseList",a)},expression:"item.markChioseList"}},e._l(t.markList,(function(t,s){return a("el-option",{key:s,attrs:{label:t.name,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","padding-right":"20px"}},[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+"元")])])})),1)],1)],2)})),1)],1)],1),e._v(" "),e.soundVisible?a("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[a("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1):e._e()],1)},i=[],n=a("5530"),o=(a("7f7f"),a("6762"),a("2fdb"),a("5df3"),a("4f7f"),a("2909")),l=(a("456d"),a("28a5"),a("ac6a"),a("96cf"),a("1da1")),c=a("ade3"),u=(a("4360"),a("fa7d"),a("1cc7")),d=(a("5a0c"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"soundWrap"},[a("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[a("div",{staticClass:"itemList"},e._l(e.soundList,(function(t){return a("div",{key:t.id,staticClass:"categroy"},[a("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,s){return a("el-checkbox",{key:s,attrs:{label:t.id,disabled:e.activeSound.includes(t.id)},on:{change:e.changeCheck}},[e._v(e._s(t.name))])}))],2)})),0)])],1),e._v(" "),a("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),a("div",{staticClass:"btnWraps"},[a("el-button",{attrs:{type:"primary"},on:{click:e.generates}},[e._v("\n 确定\n ")])],1)])}),p=[],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(){}}},h=m,f=(a("e323"),a("2877")),b=Object(f["a"])(h,d,p,!1,null,"6021a80f",null),v=b.exports,y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",e._l(e.item.chioseMusic,(function(t,s){return a("div",{key:s},[a("div",{staticClass:"chioseMusic"},[a("div",{staticClass:"flexRow bigFlex"},[a("div",{staticClass:"chioseWrap"},[a("p",{staticClass:"title"},[e._v("可选乐器"+e._s(s+1)+":")]),e._v(" "),a("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},on:{change:function(a){e.chioseMusic(a,t)}},model:{value:t.musical,callback:function(a){e.$set(t,"musical",a)},expression:"music.musical"}},e._l(e.item.goodsList,(function(t,s){return a("el-option",{key:s,attrs:{label:t.name,value:t.id,disabled:e.checkDisabled(t)}})})),1)],1),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("p",{staticClass:"title"},[e._v("乐器提供方式:")]),e._v(" "),a("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(a){e.$set(t,"type",a)},expression:"music.type"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticClass:"title"},[e._v("\n 团购价:\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(a){e.$set(t,"groupPrice",a)},expression:"music.groupPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1)]),e._v(" "),a("div",{staticClass:"chioseWrap"},[a("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticClass:"title"},[e._v("\n 租赁押金:\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(a){e.$set(t,"borrowPrice",a)},expression:"music.borrowPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.basdisabled||0!=s?e._e():a("i",{staticClass:"el-icon-circle-plus-outline marginLeft10 iconStyle",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:e.addMusic}}),e._v(" "),e.item.chioseMusic.length>1&&!e.basdisabled&&(t.type.includes("LEASE")||t.type.includes("GROUP"))?a("i",{staticClass:"el-icon-remove-outline marginLeft10 iconStyle",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(a){return e.deleteMusic(t)}}}):e._e()])]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("团购乐器减免课程费用:")]),e._v(" "),a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],model:{value:t.groupRemissionCourseFee,callback:function(a){e.$set(t,"groupRemissionCourseFee",a)},expression:"music.groupRemissionCourseFee"}},[a("el-radio",{attrs:{disabled:e.basdisabled,label:!0}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{disabled:e.basdisabled,label:!1}},[e._v("否")])],1)],1)])]),e._v(" "),a("el-divider")],1)})),0)},g=[],_={props:["item","basdisabled","activeSoundList"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){this.item.chioseMusic.length<1&&this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:!1})},methods:{chioseMusic:function(e,t){this.item.goodsList.map((function(a,s){a.id==e&&(t.groupPrice=a.groupPurchasePrice)}))},addMusic:function(){this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:null,borrowPrice:1500,groupRemissionCourseFee:0}),this.$emit("lookMusic")},deleteMusic:function(e){var t=this;this.item.chioseMusic.forEach((function(a,s){a.musical==e.musical&&t.item.chioseMusic.splice(s,1)}))},checkDisabled:function(e){var t=!1;return this.activeSoundList.forEach((function(a){a.chioseMusic.forEach((function(a){e.id==a.musical&&(t=!0)}))})),t},changeFee:function(e,t){this.$set(t,"groupRemissionCourseFee",e)}}},S=_,w=(a("47b0"),Object(f["a"])(S,y,g,!1,null,"2087e2e7",null)),k=w.exports,x=a("2ef0"),T=(a("6612"),s={components:{chioseSoundList:v,chioseMusic:k},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(c["a"])(e,"soundList",[]),Object(c["a"])(e,"childSoundList",[]),Object(c["a"])(e,"teamStatus",""),Object(c["a"])(e,"checkList",[]),Object(c["a"])(e,"basdisabled",!1),Object(c["a"])(e,"teamid",""),Object(c["a"])(e,"isField",!0),e},mounted:function(){var e=this;this.$route.query.id&&(this.teamid=this.$route.query.id),window.addEventListener("scroll",this.getScroll),this.$nextTick((function(t){e.init()}))},deactivated:function(){window.removeEventListener("scroll",this.getScroll)},beforeDestroy:function(){this.setStore(),window.removeEventListener("scroll",this.getScroll)},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type||!this.teamid&&this.activeSoundList.length<1)&&this.init(),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1}},Object(c["a"])(s,"deactivated",(function(){this.activeSoundList=[]})),Object(c["a"])(s,"methods",{setStore:function(){localStorage.setItem("".concat(this.teamid,"sound"),JSON.stringify(this.activeSoundList))},init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.topfor=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")))||this.$store.getters.topinfo,this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,t=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"sound"))),Object(u["Cb"])({tenantId:1}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(s){var r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=s.code){e.next=13;break}if(a.soundList=s.data.rows,!t||null===(r=t[0])||void 0===r||!r.id){e.next=12;break}return a.activeSoundList=t,i=[],a.activeSoundList.forEach((function(e){i.push(e.id)})),a.chioseActiveSound=i,a.activeSound=i,e.next=10,a.changeActiveSound(i.join(","));case 10:e.next=13;break;case 12:"newTeam"==a.teamStatus?a.getDefaultSubject():(a.teamid=a.$route.query.id,a.teamid&&Object(u["J"])({musicGroupId:a.teamid}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s,r,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=t.code){e.next=12;break}if(!((null===(s=t.data)||void 0===s||null===(r=s.musicGroupSubjectPlans)||void 0===r?void 0:r.length)>0)){e.next=11;break}return n=[],a.activeSoundList=null===(i=t.data)||void 0===i?void 0:i.musicGroupSubjectPlans.map((function(e){return n.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),a.activeSound=n,a.chioseActiveSound=n,t.data.musicGroupSubjectGoodsGroups.forEach((function(e){var t=Object(x["findIndex"])(a.activeSoundList,(function(t){return t.id==e.subjectId}));if(-1!=t)if("ACCESSORIES"==e.type)e.goodsIdList.split(",").forEach((function(e){a.activeSoundList[t].markChioseList.push(parseInt(e))}));else if("INSTRUMENT"==e.type){var s=Object.keys(JSON.parse(e.kitGroupPurchaseTypeJson));a.activeSoundList[t].chioseMusic.push({musical:parseInt(e.goodsIdList),type:s,groupPrice:e.price,borrowPrice:e.depositFee,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)})}})),e.next=9,a.changeActiveSound(n.join(","));case 9:e.next=12;break;case 11:a.getDefaultSubject();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),Object(u["Hb"])({tenantId:1}).then((function(e){200==e.code&&(a.childSoundList=e.data)}));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDefaultSubject:function(){var e=this,t=this.topfor.type,a=this.topfor.section;Object(u["fb"])({chargeTypeId:t,organId:a,number:1}).then(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(a){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(200!=a.code){t.next=7;break}return s=[],e.activeSoundList=a.data.map((function(t){return s.push(t.id),e.initSound(t)})),e.activeSound=s,e.chioseActiveSound=s,t.next=7,e.changeActiveSound(s.join(","));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},lookCheck:function(e){this.checkList=Object(o["a"])(new Set(e))},chioseSound:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,i,n,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(s in this.activeSound=Object(o["a"])(new Set(t)),a=[],this.childSoundList)this.activeSound.includes(this.childSoundList[s].id)&&a.push(this.initSound(this.childSoundList[s]));for(i in r=this.activeSoundList.map((function(e){return e.id})),a)l=r.indexOf(null===(n=a[i])||void 0===n?void 0:n.id),l>-1&&(a[i]=this.activeSoundList[l]);return this.activeSoundList=a,c=[],this.activeSoundList.forEach((function(e){c.push(e.id)})),this.activeSound=c,this.chioseActiveSound=c,e.next=12,this.changeActiveSound(c.join(","));case 12:this.soundVisible=!1;case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u["Ib"])({subjectIds:t,chargeTypeId:this.topfor.type,musicGroupId:this.teamid,courseViewType:this.topfor.courseViewType}).then((function(e){if(200==e.code&&e.data){var t=Object.keys(e.data);a.activeSoundList.forEach((function(a){if(-1!=t.indexOf(a.id+"")){var s=[],r=[];e.data[a.id].forEach((function(e){"INSTRUMENT"==e.type?s.push(e):"ACCESSORIES"==e.type&&r.push(e)})),a.goodsList=s,a.markList=r}})),a.checkShopAndMark()}})));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),lookMusic:function(){},checkShopAndMark:function(){this.$helpers.lodash;var e=[],t=!1;this.activeSoundList.forEach((function(a){for(var s=a.markList.map((function(e){return e.id})),r=a.goodsList.map((function(e){return e.id})),i=0;i<a.markChioseList.length;i++)!s.includes(a.markChioseList[i])&&a.markChioseList[i]&&(e.push(a.markChioseList[i]),t=!0,a.markChioseList.splice(i--,1));for(var n=0;n<a.chioseMusic.length;n++)!r.includes(a.chioseMusic[n].musical)&&a.chioseMusic[n].musical&&(e.push(a.chioseMusic[n].musical),t=!0,a.chioseMusic[n].musical=null,a.chioseMusic[n].groupPrice=null)})),t&&this.$message.error("{".concat(e.join(","),"}商品已失效,请联系仓库主管")),this.$set(this,"activeSoundList",this.activeSoundList)},checkSubmit:function(){var e=this,t=!0;return this.activeSoundList.length<=0?(this.$message.error("请至少设置一个声部"),void(t=!1)):(this.activeSoundList.forEach((function(a){var s;return a.expectedStudentNum?null!==(s=a.chioseMusic[0])&&void 0!==s&&s.musical?void a.chioseMusic.forEach((function(s){-1!=s.type.indexOf("LEASE")&&(!s.borrowPrice||parseFloat(s.borrowPrice)<=0)&&(e.$message.error("请填写正确的".concat(a.sound,"租赁押金")),t=!1)})):(e.$message.error("请选择".concat(a.sound,"的可选乐器")),void(t=!1)):(e.$message.error("请填写".concat(a.sound,"的预计招生人数")),void(t=!1))})),t)},submitInfo:function(e){var t=this,a=this.checkSubmit();if(a){var s={musicGroupSubjectGoodsGroups:[],musicGroupSubjectPlans:[]};this.activeSoundList.forEach((function(e){var t={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};s.musicGroupSubjectPlans.push(t),e.chioseMusic.forEach((function(t){var a,r=null,i=t.borrowPrice,n=t.groupPrice;a=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(x["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=o&&(r=e.goodsList[o]);var l={};if(t.type.forEach((function(e){l[e]=0})),l=JSON.stringify(l),r){var c={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:r.name,kitGroupPurchaseTypeJson:l,depositFee:i,price:n,groupRemissionCourseFee:a};s.musicGroupSubjectGoodsGroups.push(c)}})),e.markChioseList.forEach((function(t){var a=Object(x["findIndex"])(e.markList,(function(e){return e.id==t})),r=null;if(-1!=a&&(r=e.markList[a]),r){var i={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:r.name,price:r.groupPurchasePrice};s.musicGroupSubjectGoodsGroups.push(i)}}))})),"newTeam"==this.teamStatus||(s.musicGroupId=this.teamid,s.musicGroupStatus=e?"AUDIT":"DRAFT",2==e?this.$confirm("是否提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["Vc"])(s).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))})).catch((function(){})):Object(u["Vc"])(s).then((function(a){if(200==a.code)if(t.setStore(),1==e){t.$message.success("已提交审核");var s=t.$route.query;t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList",query:Object(n["a"])({},s)})}else t.$message.success("保存成功")})))}},deleteRow:function(){var e=this;this.checkList.length<1?this.$message.error("请至少勾选一个"):this.$confirm("确定删除选中声部?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var t=0;t<e.activeSoundList.length;t++){var a=e.checkList.indexOf(e.activeSoundList[t].id);-1!=a&&(e.activeSoundList.splice(t,1),e.activeSound.splice(t,1),t--)}e.checkList=[],e.$message.success("删除成功")})).catch((function(){}))},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,a){e.checkList.push(t.id)}))},getScroll:function(){this.scrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,this.scrollTop&&this.scrollTop>=210?this.isField=!1:this.isField=!0}}),Object(c["a"])(s,"watch",{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,a=0;this.activeSoundList;if(e){var s=0;if(e.length>0)for(var r in e){var i;s+=parseInt(null===(i=e[r])||void 0===i?void 0:i.expectedStudentNum)||0}t=e.length,a=s,this.$emit("getNumber",t,a)}}}}),s),F=T,C=(a("808a"),Object(f["a"])(F,r,i,!1,null,"29ec992b",null));t["a"]=C.exports}}]);
|