chunk-d1d8b1ac.5ee591fb.js 444 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d1d8b1ac","chunk-e1e767e6","chunk-73a87437","chunk-32214abf","chunk-5f657710","chunk-6e855f0c"],{"022b":function(e,t,s){"use strict";s("b230")},"0397":function(e,t,s){"use strict";s("140d")},"0464":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{model:e.list}},[s("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[s("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(s){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(s){e.$set(e.list.form[t.$index],"courseType",s)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,a){return s("el-option",{key:a,attrs:{disabled:e.isOptionDisabled(a),label:e.courseType[a],value:a}})})),1)],1)]}}])}),e._v(" "),e.isCommon?s("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[s("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(s){e.$set(e.list.form[t.$index],"isStudentOptional",s)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,1590784855)}):e._e(),e._v(" "),s("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(s){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(s){e.$set(e.list.form[t.$index],"courseTotalMinuties",s)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),s("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseCurrentPrice",s)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseOriginalPrice",s)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?s("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?s("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(s){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?s("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},r=[],i=(s("6762"),s("2fdb"),s("267e")),n=s("ed08"),o=s("92e3"),l=s("6612"),c=s.n(l),u=(s("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType: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["i"])}},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return c()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},courseItemChange:function(e,t){this.$listeners.priceChange(e,t),this.$refs.form.validateField("form.".concat(t,".courseTotalMinuties"))},validatorCourseTotalMinuties:function(e){var t=this;return function(s,a,r){var i=t.list.form[e].courseType;i&&a>1&&t.classTimeList[i]&&a<t.classTimeList[i]?r(new Error("单节课不得少于".concat(t.classTimeList[i],"分钟"))):r()}}}}),m=u,p=(s("1146"),s("2877")),d=Object(p["a"])(m,a,r,!1,null,"b2f49d9c",null);t["a"]=d.exports},"070d":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("save-form",{attrs:{inline:!0,"save-key":"resetPayList",model:e.searchForm},on:{submit:e.getList}},[s("el-form-item",[s("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),s("div",{staticClass:"topWrap"},[e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/createCalender/3895",expression:"'musicGroupPaymentCalender/createCalender/3895'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("\n 新建学员缴费\n ")]):e._e()]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.actualNum)+"/"+e._s(t.row.expectNum))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.lookDetail(t.row)}}},[e._v("查看")])],1),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?s("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),!e.teamStatus||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetPay(t.row)}}},[e._v("修改")])],1),e._v(" "),"FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.status||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType||"DRAFT"!=t.row.status&&"REJECT"!=t.row.status?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),!e.teamStatus||"ADD_STUDENT"!=t.row.paymentType||"DRAFT"!=t.row.status&&"REJECT"!=t.row.status?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"OPEN"==t.row.status?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),"STUDENT"===t.row.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.$helpers.permission("musicGroup/findMusicGroupSubjectInfo/966")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),s("pagination",{attrs:{"save-key":"resetPayList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),s("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?s("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"STUDENT",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookDetail:e.lookDetail,onPreview:e.onPreview,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[s("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[s("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[s("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[s("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),s("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),s("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:!0,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?s("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[s("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),s("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?s("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[s("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?s("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),e.reviewVisible?s("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},on:{"update:visible":function(t){e.reviewVisible=t}}},[s("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?s("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive,changePaymentType:e.changePaymentType}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:e.payFormTitle,visible:e.memberVisible,width:"830px"},on:{"update:visible":function(t){e.memberVisible=t}}},[e.memberVisible?s("memberPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.memberVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?s("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),s("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),s("el-dialog",{staticClass:"subjectPreview",attrs:{title:"报名声部预览",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[s("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dialogSubjectList,(function(t,a){return s("el-tab-pane",{key:a,staticStyle:{"max-height":"500px","overflow-y":"auto"},attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[s("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1)],1)],1)},r=[],i=(s("6b54"),s("a481"),s("5530")),n=(s("96cf"),s("1da1")),o=s("333d"),l=s("5a0c"),c=s.n(l),u=s("641c"),m=s("61f7"),p=s("1cc7"),d=s("b38b"),h=s("d349"),f=s("1672"),b=s("b3d0"),v=s("940a"),y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"注意事项",closable:!1,type:"info"}}),e._v(" "),e._m(0),e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"会员设置",closable:!1,type:"info"}}),e._v(" "),s("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,showTime:!0}}),e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),s("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],1)},g=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"tilteWrap"},[s("h4",[e._v("会员团排课规则:")]),e._v(" "),s("p",[e._v("\n 1、会员团每学期赠送3960分钟(88课时x45分钟)免费课程时长,该时长可排声部课、集训声部课、合奏课、集训合奏课、综合课,课程时长以上类型课程共享;\n ")]),e._v(" "),s("p",[e._v("\n 2、在本学期内声部课、集训声部课总共最多能排课1980分钟(44课时x45分钟);合奏课、集训合奏课最多能排课1980分钟(44课时x45分钟);综合课最多能排课3960分钟(88课时x45分钟);\n ")]),e._v(" "),s("p",[e._v("\n 3、赠送课程仅可在该学期内完成排课,且不可将本学期课程调整至学期时间范围之外;\n ")]),e._v(" "),s("p",[e._v("4、学期时间段:9月1日至2月28/29日,3月1日至8月31日;")]),e._v(" "),s("p",[e._v("\n 5、排课时系统根据【开课日期】计算本学期最大可排课时长,计算方式为开课日期到本学期结束日期周次*4*45分钟,若超过3960分钟(88课时x45分钟),按3960分钟(88课时x45分钟)计算。即:若学期中途开始排课,则可能排课时长并不能达到3960分钟(88课时x45分钟)。\n ")])])}],_=s("15fd"),S=s("b85c"),w=s("ace5"),k=s("b133"),x=s("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(n["a"])(regeneratorRuntime.mark((function e(){var t,s,a;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(f["l"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 5:s=e.sent,this.viewDetail=s.data,a=null===(t=this.viewDetail)||void 0===t?void 0:t.musicGroupPaymentCalenders[0],this.$set(this.memberForm,"memberRankSettingId",a.memberRankSettingId),this.$set(this.memberForm,"memberValidDate",a.memberValidDate),this.$set(this.memberForm,"memberPaymentAmount",a.memberPaymentAmount),this.$set(this.memberForm,"originalMemberPaymentAmount",a.originalMemberPaymentAmount),this.$set(this.memberForm,"paymentDate",[a.startPaymentDate,a.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(n["a"])(regeneratorRuntime.mark((function e(){var t,s,a,r,n,o,l,c,u,m,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),s=[],a=Object(S["a"])(t);try{for(n=function(){var e=r.value;e.validate((function(t){t&&s.push(e)}))},a.s();!(r=a.n()).done;)n()}catch(d){a.e(d)}finally{a.f()}if(s.length!==t.length){e.next=35;break}if(l=Object(i["a"])(Object(i["a"])(Object(i["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(i["a"])({},Object(x["a"])(this.memberForm.paymentDate,["startPaymentDate","deadlinePaymentDate"]))]}),l.paymentDate,c=Object(_["a"])(l,["paymentDate"]),null!==(o=this.rowDetail)&&void 0!==o&&o.batchNo){e.next=20;break}return e.prev=7,e.next=10,Object(f["h"])(c);case 10:u=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(u.data),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](7);case 18:e.next=35;break;case 20:return c.batchNo=this.rowDetail.batchNo,c.paymentType=null===(m=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===m?void 0:m.paymentType,console.log(c),e.prev=23,e.next=26,Object(f["k"])(c);case 26:p=e.sent,this.$listeners.close(),this.$listeners.submited(p.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,I=(s("b58c"),s("2877")),O=Object(I["a"])(C,y,g,!1,null,"58df1511",null),j=O.exports,P=s("e623"),L=s("86e8"),D=s("cd32"),R=s("3762"),A=s("81fd"),E=s("267e"),N=s("92e3"),G={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:b["default"],userPayForm:v["a"],memberPayForm:j,schoolPayForm:L["a"],QrCode:u["a"],review:D["a"],reviewDetail:R["a"],"pay-items":P["a"],subjectPreview:A["a"]},data:function(){return{paymentType:"PRE_BUILD_FEE"==this.team_status?0:1,musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,itemsVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",teamType:this.$route.query.type,payOrderTypeLists:N["E"],dialogSubjectVisible:!1,dialogSubjectList:[],activeName:null,dialogCalenderId:null,baseInfo:null,memberVisible:!1}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.paymentType="PRE_BUILD_FEE"==this.team_status?0:1,e.prev=1,e.next=4,Object(h["q"])({rows:9999});case 4:if(t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,!(this.organizationCourseUnitPriceSettings.length<=0)){e.next=9;break}return this.$bus.$emit("showguide",["teamCourseFee"]),e.abrupt("return");case 9:localStorage.setItem("organizationCourseUnitPriceSettings",JSON.stringify(this.organizationCourseUnitPriceSettings)),e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](1),localStorage.removeItem("organizationCourseUnitPriceSettings");case 15:this.init();case 16:case"end":return e.stop()}}),e,this,[[1,12]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(x["b"])(E["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(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["e"])({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["Rb"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code?(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo),localStorage.setItem("payMusicBase",JSON.stringify(e.baseInfo))):localStorage.removeItem("payMusicBase")}))},changePaymentType:function(e){this.paymentType=e},newUserPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(i["a"])(Object(i["a"])({},e),{},{payUserType:"STUDENT"})})},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(d["c"])({page:this.rules.page,rows:this.rules.limit,musicGroupId: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(m["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){if(this.diTitle="修改缴费","MUSIC_APPLY"==e.paymentType||"MUSIC_RENEW"==e.paymentType||"ADD_COURSE"==e.paymentType){this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.isNew=!1,this.activeRow=e;var t=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(i["a"])(Object(i["a"])({},t),{},{payUserType:"STUDENT",calenderId:e.id})})}else this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},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["r"])({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(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,s=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["B"])({id:s}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},removeBatchNo:function(){var e=Object(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["i"])({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["j"])(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["vc"])({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 s=e,a=new Date(s.replace(/-/g,"/"));a=new Date(1e3*(a/1e3+86400*t));var r=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.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}(),onPreview:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var s,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,s=this.$route.query.id,e.next=4,Object(p["K"])({musicGroupId:s}).then((function(e){200==e.code?(a.dialogSubjectList=e.data.musicGroupSubjectPlans,a.activeName=a.dialogSubjectList[0].subjectId.toString(),a.dialogSubjectVisible=!0):a.$message.warning("没有可预览的声部")}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},$=G,M=(s("78f2"),Object(I["a"])($,a,r,!1,null,"26bfc6b4",null));t["a"]=M.exports},"09f4":function(e,t,s){"use strict";s.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,s,a){return e/=a/2,e<1?s/2*e*e+t:(e--,-s/2*(e*(e-2)-1)+t)};var a=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,s){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?a(e):s&&"function"===typeof s&&s()};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"},1146:function(e,t,s){"use strict";s("45c1")},1390:function(e,t,s){"use strict";s("2947")},"140d":function(e,t,s){},"160b":function(e,t,s){"use strict";s.d(t,"b",(function(){return n})),s.d(t,"a",(function(){return o}));var a=s("b775"),r=s("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(a["a"])({url:i+"/chargeType/queryPage",method:"get",params:e})}},1672:function(e,t,s){"use strict";s.d(t,"h",(function(){return r})),s.d(t,"m",(function(){return i})),s.d(t,"n",(function(){return n})),s.d(t,"l",(function(){return o})),s.d(t,"g",(function(){return l})),s.d(t,"e",(function(){return c})),s.d(t,"j",(function(){return u})),s.d(t,"k",(function(){return m})),s.d(t,"i",(function(){return p})),s.d(t,"r",(function(){return d})),s.d(t,"o",(function(){return h})),s.d(t,"f",(function(){return f})),s.d(t,"p",(function(){return b})),s.d(t,"d",(function(){return v})),s.d(t,"c",(function(){return y})),s.d(t,"q",(function(){return g})),s.d(t,"a",(function(){return _})),s.d(t,"b",(function(){return S}));var a=s("829b"),r=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},i=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/createCalender",data:e,method:"post"})},n=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},c=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},u=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},m=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},p=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},d=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},h=function(e){return Object(a["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},f=function(e){return Object(a["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},b=function(e){return Object(a["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},v=function(e){return Object(a["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},y=function(e){return Object(a["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},g=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},_=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},S=function(e){return Object(a["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})}},"170f":function(e,t,s){"use strict";s("58bc")},"17a7":function(e,t,s){"use strict";s("eba0")},1824:function(e,t,s){"use strict";s("e9ad")},"19e1":function(e,t,s){},"1a42":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"extendForm",attrs:{"label-width":"110px",model:e.extendForm,rules:e.extendRule}},[s("el-form-item",{attrs:{label:"家长会时间",prop:"meetingDate"}},[s("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime","picker-options":e.applyDates,placeholder:"请选择家长会时间"},model:{value:e.extendForm.meetingDate,callback:function(t){e.$set(e.extendForm,"meetingDate","string"===typeof t?t.trim():t)},expression:"extendForm.meetingDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"家长会地址",prop:"address"}},[s("el-input",{attrs:{placeholder:"请输入家长会地址"},model:{value:e.extendForm.address,callback:function(t){e.$set(e.extendForm,"address",t)},expression:"extendForm.address"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"短信内容"}},[s("p",{staticClass:"msgP",domProps:{innerHTML:e._s(e.sysMsgStr)}})]),e._v(" "),s("p",{staticStyle:{color:"red"}},[e._v(e._s(e.msg))])],1)],1)},r=[],i={props:["extendForm","sysMsgStr","msg"],data:function(){return{extendRule:{meetingDate:[{required:!0,message:"请选择家长会时间",trigger:"change"}],address:[{required:!0,message:"请输入家长会地址",trigger:"blur"}]}}},methods:{applyDates:function(){return{firstDayOfWeek:1,disabledDate:function(e){return end?new Date(end).getTime()-864e5>=e.getTime():e.getTime()+864e5<Date.now()}}}}},n=i,o=s("2877"),l=Object(o["a"])(n,a,r,!1,null,"0f240446",null);t["a"]=l.exports},"1aa8":function(e,t,s){"use strict";s("7619")},"1c0e":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"buttonWrap"},[s("div",{staticClass:"left"},[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("el-select",{attrs:{placeholder:"班级类型",clearable:"",filterable:""},on:{change:e.changeClassGetList},model:{value:e.searchForm.classType,callback:function(t){e.$set(e.searchForm,"classType","string"===typeof t?t.trim():t)},expression:"searchForm.classType"}},e._l(e.classTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/create",expression:"'classGroup/create'"}],staticClass:"newBand",on:{click:e.newClass}},[e._v("\n 新建班级\n ")])],1)]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.selectionTable}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"实际/预计人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.studentNum+"/"+t.row.expectStudentNum)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",label:"主教老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?s("div",[e._v("\n "+e._s(e._f("getBishopName")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentId",label:"助教人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.teacherMapperList[0]?s("div",[e._v("\n "+e._s(e._f("getTeachingNum")(t.row.teacherMapperList))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"totalClassTimes",label:"排课课次"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",width:"260px",prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",["HIGH"===t.row.type||"HIGH_ONLINE"===t.row.type?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/findAllStudent",expression:"'classGroupStudent/findAllStudent'"}],attrs:{type:"text"},on:{click:function(s){return e.lookDeatil(t.row)}}},[e._v("查看")]):e._e(),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/classGroupUpdate",expression:"'classGroup/classGroupUpdate'"}],attrs:{type:"text"},on:{click:function(s){return e.classAdjustment(t.row)}}},[e._v("老师调整")]),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(s){return e.resetClass(t.row)}}},[e._v("学员调整")]),e._v(" "),s("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroup/delSingle",expression:"'classGroup/delSingle'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[s("p",[e._v("确定删除?")]),e._v(" "),s("div",{staticStyle:{"text-align":"right",margin:"0"}},[s("el-button",{attrs:{type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(s){return e.removeClass(t)}}},[e._v("确定")])],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")])],1)],1)]}}])})],1),e._v(" "),s("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),s("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[s("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"120px"}},[s("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[s("el-input",{staticStyle:{width:"180px"},model:{value:e.newClassForm.className,callback:function(t){e.$set(e.newClassForm,"className",t)},expression:"newClassForm.className"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请输入班级人数",trigger:"blur"}],prop:"type"}},[s("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.classTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[s("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop",t)},expression:"newClassForm.bishop"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"HIGH_ONLINE"==e.newClassForm.type},model:{value:e.newClassForm.expectStudentNum,callback:function(t){e.$set(e.newClassForm,"expectStudentNum",t)},expression:"newClassForm.expectStudentNum"}})],1),e._v(" "),"HIGH_ONLINE"!=e.newClassForm.type&&"HIGH"!=e.newClassForm.type&&e.newClassForm.type?s("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[s("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching",t)},expression:"newClassForm.teaching"}})],1):e._e(),e._v(" "),"NORMAL"==e.newClassForm.type?s("el-form-item",{key:"HIGH",attrs:{label:"声部",prop:"subjectIdList",rules:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.newClassForm.subjectIdList,callback:function(t){e.$set(e.newClassForm,"subjectIdList",t)},expression:"newClassForm.subjectIdList"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?s("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"网络教室声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:""},model:{value:e.newClassForm.subjectId,callback:function(t){e.$set(e.newClassForm,"subjectId",t)},expression:"newClassForm.subjectId"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),s("br")],1),e._v(" "),s("div",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[s("div",[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[s("div",{staticClass:"popoverWrap"},[s("p",[e._v("线上基础技能班规则:")]),e._v(" "),s("p",[e._v("班级数量:")]),e._v(" "),s("p",[e._v("\n 可创建班级数量=各个声部学员数/6向上取整+乐团在读学员数/30向上取整\n ")]),e._v(" "),s("p",[e._v("\n 上低音号、长号学员数合并计算\n ")]),e._v(" "),s("p",[e._v("班级人数:")]),e._v(" "),s("p",[e._v("线上基础技能班人数上限为6人")])]),e._v(" "),s("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("线上基础技能班规则")])],1)],1),e._v(" "),s("div",[s("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type||"HIGH"==e.newClassForm.type?s("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.newClassSecond}},[e._v("确 定")])],1)])],1),e._v(" "),s("el-dialog",{attrs:{title:"学员选择",width:"700px",visible:e.studentVisible,"modal-append-to-body":!0},on:{"update:visible":function(t){e.studentVisible=t}}},[s("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.activeSoundList,classGroupId:e.activeClass,isOnlyChangeUser:!0,activeType:e.activeType,isStudentRemove:e.isStudentRemove,type:"change"},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:e.searchStudent,submited:e.submited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),s("el-dialog",{attrs:{title:"老师调整",width:"700px",visible:e.infoVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.infoVisible=t}}},[s("el-form",{ref:"teacherForm",attrs:{inline:!0,model:e.teacherForm,rules:e.teacherRules,"label-position":"right","label-width":"100px;"}},[s("br"),e._v(" "),s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher"}},[s("remote-search",{attrs:{commit:"setTeachers"},model:{value:e.teacherForm.coreTeacher,callback:function(t){e.$set(e.teacherForm,"coreTeacher",t)},expression:"teacherForm.coreTeacher"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("remote-search",{attrs:{commit:"setTeachers",multiple:!0},on:{change:e.setAssistant},model:{value:e.teacherForm.assistant,callback:function(t){e.$set(e.teacherForm,"assistant",t)},expression:"teacherForm.assistant"}})],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"课程类型",prop:"courseType"}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.teacherForm.courseType,callback:function(t){e.$set(e.teacherForm,"courseType","string"===typeof t?t.trim():t)},expression:"teacherForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),s("br"),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"排课次数",prop:"courseNum"}},[s("el-input",{attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.teacherForm.courseNum,callback:function(t){e.$set(e.teacherForm,"courseNum","string"===typeof t?t.trim():t)},expression:"teacherForm.courseNum"}})],1):e._e(),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("el-form-item",{attrs:{label:"排课起始时间",prop:"courseTime"}},[s("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.teacherForm.courseTime,callback:function(t){e.$set(e.teacherForm,"courseTime","string"===typeof t?t.trim():t)},expression:"teacherForm.courseTime"}}),e._v(" "),s("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.teacherForm.checked,callback:function(t){e.$set(e.teacherForm,"checked","string"===typeof t?t.trim():t)},expression:"teacherForm.checked"}},[e._v("是否跳过节假日")])],1):e._e()],1),e._v(" "),"onlyUpdateTeacher"!=e.teacherForm.isAdd?s("div",{staticClass:"WeekWrap"},[s("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),s("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,a){return s("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[s("span",[e._v("循环周期:")]),e._v(" "),s("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(s){e.$set(t,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),s("span",[e._v("开始时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(s){e.$set(t,"startClassTime","string"===typeof s?s.trim():s)},expression:"item.startClassTime"}}),e._v(" "),s("span",[e._v("结束时间")]),e._v(" "),s("el-time-select",{attrs:{"picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(s){e.$set(t,"endClassTime",s)},expression:"item.endClassTime"}}),e._v(" "),s("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(s){return e.removeWeek(t)}}})],1)})),0)]):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.isNewClass?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(1)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isNewClass?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitTemporary(3)}}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"批量排课",width:"700px",visible:e.arrangeVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.arrangeVisible=t}}},[s("el-form",{ref:"arrangeForm",attrs:{model:e.arrangeForm,"label-width":"100px","label-position":"right"}},[s("el-form-item",{attrs:{label:"选择班级数",prop:"classNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number",value:e.arrangeForm.classNum,disabled:""},nativeOn:{mousewheel:function(e){e.preventDefault()}}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程类型",prop:"courseType",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[s("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.arrangeForm.courseType,callback:function(t){e.$set(e.arrangeForm,"courseType","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseType"}},e._l(e.courseTypeList,(function(e,t){return s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"上课形式",prop:"teachMode",rules:[{required:!0,message:"请选择课程类型",trigger:"blur"}]}},[s("el-select",{attrs:{disabled:""},model:{value:e.arrangeForm.teachMode,callback:function(t){e.$set(e.arrangeForm,"teachMode","string"===typeof t?t.trim():t)},expression:"arrangeForm.teachMode"}},[s("el-option",{attrs:{value:"ONLINE",label:"线上"}}),e._v(" "),s("el-option",{attrs:{value:"OFFLINE",label:"线下"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"开始日期",prop:"courseTime",rules:[{required:!0,message:"请选择开始日期",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"200px !important"},attrs:{"picker-options":e.pickerOptions,type:"date",placeholder:"选择日期"},model:{value:e.arrangeForm.courseTime,callback:function(t){e.$set(e.arrangeForm,"courseTime","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseTime"}}),e._v(" "),s("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:e.arrangeForm.checked,callback:function(t){e.$set(e.arrangeForm,"checked","string"===typeof t?t.trim():t)},expression:"arrangeForm.checked"}},[e._v("是否跳过节假日")])],1),e._v(" "),s("el-form-item",{attrs:{label:"排课次数",rules:[{required:!0,message:"请输入排课次数",trigger:"blur"}],prop:"courseNum"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.arrangeForm.courseNum,callback:function(t){e.$set(e.arrangeForm,"courseNum","string"===typeof t?t.trim():t)},expression:"arrangeForm.courseNum"}})],1)],1),e._v(" "),s("div",{staticClass:"WeekWrap"},[s("h3",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 循环次数\n "),s("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:e.addWeek}},[e._v("添加")])],1),e._v(" "),s("div",{staticClass:"countWrap",staticStyle:{"margin-bottom":"10px"}},e._l(e.weekList,(function(t,a){return s("div",{key:a,staticClass:"countItem",staticStyle:{"margin-bottom":"20px"}},[s("span",[e._v("循环周期:")]),e._v(" "),s("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.dayOfWeek,callback:function(s){e.$set(t,"dayOfWeek","string"===typeof s?s.trim():s)},expression:"item.dayOfWeek"}},e._l(e.weekDateList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),s("span",[e._v("开始时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55"}},model:{value:t.startClassTime,callback:function(s){e.$set(t,"startClassTime","string"===typeof s?s.trim():s)},expression:"item.startClassTime"}}),e._v(" "),s("span",[e._v("结束时间")]),e._v(" "),s("el-time-select",{attrs:{placeholder:"","picker-options":{start:"04:30",step:"00:05",end:"23:55",minTime:t.startClassTime}},model:{value:t.endClassTime,callback:function(s){e.$set(t,"endClassTime","string"===typeof s?s.trim():s)},expression:"item.endClassTime"}}),e._v(" "),s("el-button",{attrs:{type:"danger",icon:"el-icon-delete",circle:""},on:{click:function(s){return e.removeWeek(t)}}})],1)})),0)]),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.arrangeVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.arrangeFormSubmit}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"添加学员",width:"600px",visible:e.addStudentVisible},on:{"update:visible":function(t){e.addStudentVisible=t}}},[s("el-table",{ref:"studentList",attrs:{data:e.studentList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.selectStudent}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{prop:"name",label:"学生姓名"}}),e._v(" "),s("el-table-column",{attrs:{property:"classGroupName",label:"所在班级"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/addStudents",expression:"'classGroupStudent/addStudents'"}],attrs:{type:"primary"},on:{click:e.addStudnt}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{title:"学员详情",width:"600px",visible:e.lookDeatilVisible},on:{"update:visible":function(t){e.lookDeatilVisible=t}}},[s("el-table",{attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.classList}},[s("el-table-column",{attrs:{label:"学员姓名",prop:"name"}}),e._v(" "),s("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/del",expression:"'classGroupStudent/del'"}],ref:t.$index,attrs:{placement:"top",width:"160"}},[s("p",[e._v("确定删除该学生?")]),e._v(" "),s("div",{staticStyle:{"text-align":"right","margin-top":"20px"}},[s("el-button",{attrs:{type:"text"},on:{click:function(e){t._self.$refs[t.$index].doClose()}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(s){return e.removeStudent(t)}}},[e._v("确定")])],1),e._v(" "),s("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除")])],1)],1)]}}])})],1)],1)],1)},r=[],i=(s("7f7f"),s("bc3a"),s("5f87"),s("333d")),n=(s("3908"),s("f927")),o=s("b4ac"),l=s("1cc7"),c=s("5137"),u=s("a6e9"),m={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["M"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList(),Object(u["a"])({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["qb"])({groupType:"MUSIC",musicGroupId:this.teamid,type:this.searchForm.classType,page:this.rules.page,rows:this.rules.limit}).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))},changeClassGetList:function(e){this.getList()},newClass:function(){this.isSetSalary?this.$message.error("课酬确认后无法编辑"):(this.newClassVisible=!0,this.isStudentRemove=!1)},newClassSecond:function(){var e=this;this.$refs["newClassForm"].validate((function(t){if(t){e.isNewClass=!0;var s=e.newClassForm.type;e.isSearch=!0,e.getNoClassStudent(s,null),e.studentVisible=!0}}))},newClassHight:function(){var e=this;if("HIGH_ONLINE"==this.newClassForm.type&&(this.newClassForm.expectStudentNum>6||this.newClassForm.expectStudentNum<3))return this.$message.error("班级人数必须为3-6人");this.$refs["newClassForm"].validate((function(t){if(t){var s,a={};if(a.musicGroupId=e.teamid,a.name=e.newClassForm.className,a.type=e.newClassForm.type,a.groupType="MUSIC",a.expectStudentNum=e.newClassForm.expectStudentNum,a.teacherMapperList=[],a.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)s=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(a.memo=e.newClassForm.memo.join(","));else{for(var r in s=e.newClassForm.memo.length>0?e.newClassForm.memo.join(","):null,e.newClassForm.teaching)a.teacherMapperList.push({userId:e.newClassForm.teaching[r],teacherRole:"TEACHING"});a.memo=s}a.subjectIdList=s,Object(l["z"])(a).then((function(t){200==t.code&&(e.$message.success("创建成功"),e.resetClassFrom(),e.getList(),e.newClassVisible=!1)}))}}))},resetClassFrom:function(){this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:[],memo:[]},this.changeMemo([])},removeStudent:function(e){var t=this;Object(c["r"])({classGroupId:this.activeClass,userId:e.row.userId}).then((function(s){200==s.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["Oc"])({classGroupId:this.activeClass}).then((function(s){if(200==s.code){var a=s.data.rows[0].expectStudentNum;if(e.length>a)return void t.$message.error("超过预计招生人数");Object(o["c"])({classGroupId:t.activeClass,studentIds:e.join(",")}).then((function(e){if(200==e.code)return t.studentVisible=!1,t.$message.success("添加成功"),void t.getList()}))}})):Object(o["c"])({classGroupId:this.activeClass,studentIds:e.join(",")}).then((function(e){200==e.code&&(t.studentVisible=!1,t.$message.success("添加成功"),t.getList())}))},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var s in this.studentList)this.studentList[s].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var s={},a=[];for(var r in e)s[e[r][t]]||(a.push(e[r]),s[e[r][t]]=!0);return a},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},getNoClassStudent:function(e,t){var s=this;if(!t);Object(l["vb"])({musicGroupId:this.teamid,type:e,actualSubjectId:t}).then((function(e){200==e.code&&(s.studentList=e.data)}))},searchStudent:function(e){this.getNoClassStudent(this.newClassForm.type,e)},submited:function(e){this.isNewClass?this.createMusiceClass((null===e||void 0===e?void 0:e.seleched)||[]):this.addSomeStudent((null===e||void 0===e?void 0:e.seleched)||[])},createMusiceClass:function(e){var t=this,s=null;e.length>0&&(s=e.join(","));var a,r={};for(var i in r.musicGroupId=this.teamid,r.name=this.newClassForm.className,r.type=this.newClassForm.type,r.groupType="MUSIC",r.userIds=s,r.teacherMapperList=[],r.expectStudentNum=this.newClassForm.expectStudentNum,a="HIGH_ONLINE"==this.newClassForm.type?this.newClassForm.subjectIdList:"MIX"==this.newClassForm.type?null:this.newClassForm.subjectIdList.length>0?this.newClassForm.subjectIdList.join(","):null,r.subjectIdList=a,r.teacherMapperList.push({userId:this.newClassForm.bishop,teacherRole:"BISHOP"}),this.newClassForm.teaching)r.teacherMapperList.push({userId:this.newClassForm.teaching[i],teacherRole:"TEACHING"});Object(l["z"])(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["sc"])({classGroupId:e.row.id}).then((function(s){200==s.code?(t.$message.success("删除成功"),e._self.$refs[e.$index].doClose(),t.getList()):(t.$message.error(s.msg),e._self.$refs[e.$index].doClose())})).catch((function(t){e._self.$refs[e.$index].doClose()}))},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},setAssistant1:function(e){for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},SelectionStudent:function(e){this.chioseStudent=e},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",id:new Date})},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate((function(s){if(s){var a=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||a[0]&&a[0].startClassTime&&a[0].endClassTime&&a[0].dayOfWeek){var 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,m=t.teacherForm.courseNum;if(m<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("请至少排一节课");else{var p=t.activeListStudent.map((function(e){return e.userId})),d=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,d=null,m=null,h=null,b=null);var b=t.activeType,v={classGroupName:r,classGroupTeacherMapperList:i,musicGroupId:o,startDate:c,courseType:u,students:p,holiday:d,courseTimes:m,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["t"])([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 s=e.arrangeForm.courseTime,a=e.arrangeForm.courseNum,r=e.weekList,i=e.arrangeForm.courseType,n=e.arrangeForm.teachMode;e.classCardList=[],e.workOut(s,a,r,i,n)}}))},workOut:function(e,t,s,a,r){var i=this,n=s.every((function(e){return e.dayOfWeek&&e.startClassTime&&e.endClassTime}));if(n){while(t&&t>0){for(var o in s){var c=new Date(e.getTime()),u=void 0;u=s[o].dayOfWeek-e.getDay()>=0?s[o].dayOfWeek-e.getDay():s[o].dayOfWeek-e.getDay()+7;var m=this.getThinkDate(e,u),p=this.getThinkDate(c,u);if(!this.arrangeForm.checked||-1==this.holidayList.indexOf(p)){var d=s[o].startClassTime,h=s[o].endClassTime;for(var f in this.chioseTab)this.classCardList.push({classDate:m,classGroupId:this.chioseTab[f].id,startClassTimeStr:d,endClassTimeStr:h,type:a,weekNum:s[o].dayOfWeek,teachMode:r,option:1});if(t--,0==t)break}}e.setDate(e.getDate()+7)}Object(l["ad"])({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 s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=new Date(e.getTime());a.setDate(a.getDate()+parseInt(t));var r=a.getFullYear(),i=a.getMonth()+1,n="";n=i<10?"0"+i:i+"";var o=a.getDate(),l="";return l=o<10?"0"+o:o+"",2==s?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 s=e.type;Object(l["vb"])({musicGroupId:this.teamid,type:s}).then((function(e){200==e.code&&(t.studentList=e.data,t.addStudentVisible=!0)}))},selectStudent:function(e){this.activeStudentList=e},addStudnt:function(){var e=this,t=this.activeClass,s=this.activeStudentList.map((function(e){return e.userId})).join(",");Object(c["b"])({userIdsStr:s,classGroupId:t}).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.activeStudentList=[],e.addStudentVisible=!1,e.$refs.studentList.clearSelection(),e.getList())}))},changeMemo:function(e){},checkSubject:function(e){}},computed:{},filters:{getBishopName:function(e){var t="";if(e&&e.length>0)for(var s in e)"BISHOP"==e[s].teacherRole&&(t=e[s].userName);return t},getTeachingNum:function(e){var t=0;if(e&&e.length>0)for(var s in e)"TEACHING"==e[s].teacherRole&&t++;return t}},watch:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",6)},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],subjectId:"",expectStudentNum:null,bishop:null,teaching:null,memo:[]},this.resetClassFrom())},studentVisible:function(e){e||(this.newClassVisible=!1,this.activeListStudent=[])},infoVisible:function(e){e||(this.teacherForm={isAdd:"onlyUpdateTeacher",coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:""},this.$refs["teacherForm"].resetFields())},arrangeVisible:function(e){e||(this.arrangeForm={courseNum:null,classNum:null,courseType:null,courseTime:null,teachMode:null,checked:!0},this.$refs["arrangeForm"].resetFields(),this.weekList=[{week:"",startTime:"",endTime:"",id:(new Date).getTime()}])}}},p=m,d=(s("923a"),s("2877")),h=Object(d["a"])(p,a,r,!1,null,"00e8ca4b",null);t["a"]=h.exports},"1c40":function(e,t,s){"use strict";s("a8d2")},"1d55":function(e,t,s){"use strict";s("f514")},"1d5b":function(e,t,s){},"204b":function(e,t,s){"use strict";s("b50a")},"23f0":function(e,t,s){},2947:function(e,t,s){},"2e3a":function(e,t,s){},3004:function(e,t,s){},3078:function(e,t,s){"use strict";s.d(t,"g",(function(){return r})),s.d(t,"a",(function(){return i})),s.d(t,"b",(function(){return n})),s.d(t,"c",(function(){return o})),s.d(t,"d",(function(){return l})),s.d(t,"j",(function(){return c})),s.d(t,"h",(function(){return u})),s.d(t,"o",(function(){return m})),s.d(t,"n",(function(){return p})),s.d(t,"k",(function(){return d})),s.d(t,"m",(function(){return h})),s.d(t,"e",(function(){return f})),s.d(t,"f",(function(){return b})),s.d(t,"i",(function(){return v})),s.d(t,"l",(function(){return y}));var a=s("829b"),r=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},i=function(e){return Object(a["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},l=function(e){return Object(a["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getRegisterOrPreList",params:e,method:"get",requestType:"json"})},m=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/setNoneCloudTeacher",params:e,method:"get",requestType:"json"})},p=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/setCloudTeacherToFailed",params:e,method:"post",requestType:"json"})},d=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},h=function(e){return Object(a["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})},f=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/queryPage",params:e,method:"get",requestType:"form"})},b=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/musicEnlightenmentQuestionnaireStat",params:e,method:"get",requestType:"form"})},v=function(e){return Object(a["a"])({url:"/api-web/sysMessageConfig/getWithType",params:e,method:"get",requestType:"form"})},y=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/sendParentMeetingNotice",params:e,method:"post",requestType:"form"})}},"31f0":function(e,t,s){e.exports=s.p+"static/img/yunTrain_bg.ff0ffe89.png"},"328e":function(e,t,s){},"346a":function(e,t,s){"use strict";s("67c9")},3762:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.calender&&"ADD_STUDENT"===e.calender.paymentType?s("el-alert",{staticClass:"alert",attrs:{title:"学员信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.calender&&"ADD_STUDENT"===e.calender.paymentType?s("descriptions",{attrs:{column:2}},[s("descriptions-item",{attrs:{label:"学员姓名:"}},[e._v(e._s(e.username))]),e._v(" "),s("descriptions-item",{attrs:{label:"手机号码:"}},[e._v(e._s(e.phone))])],1):e._e(),e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"申请信息",closable:!1,type:"info"}}),e._v(" "),s("descriptions",{attrs:{column:2}},[s("descriptions-item",{attrs:{label:"分部名称:"}},[e._v(e._s(e.calender.organName))]),e._v(" "),s("descriptions-item",{attrs:{label:"乐团名称:"}},[s("overflow-text",{attrs:{text:e.calender.musicGroupName,width:"100%"}})],1),e._v(" "),s("descriptions-item",{attrs:{label:"乐团编号:"}},[s("copy-text",[e._v(e._s(e.calender.musicGroupId))])],1),e._v(" "),s("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.calender.createTime))]),e._v(" "),s("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.calender.paymentType)))]),e._v(" "),s("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.calender.payUserType)))]),e._v(" "),s("descriptions-item",{attrs:{label:"缴费金额:"}},[e._v(e._s(e.numeral(e.calender.currentTotalAmount).format("0,0")))]),e._v(" "),"SCHOOL"==e.calender.payUserType?s("descriptions-item",{attrs:{label:"缴费单号:"}},[e._v(e._s(e.calender.id))]):e._e(),e._v(" "),"SCHOOL"!==e.calender.payUserType?s("descriptions-item",{attrs:{span:3,label:"缴费日期:"}},[e._v(e._s(e._f("dayjsFormat")(e.calender.startPaymentDate))+" -\n "+e._s(e._f("dayjsFormat")(e.calender.deadlinePaymentDate)))]):e._e(),e._v(" "),s("descriptions-item",{staticStyle:{"border-bottom":"none !important"},attrs:{span:3,label:"备注:"}},[s("span",{staticStyle:{display:"inline-block","max-width":"100%"}},[s("overflow-text",{attrs:{text:e.calender?e.calender.memo:null}})],1)])],1),e._v(" "),e.course&&e.course.length>0?s("el-alert",{staticClass:"alert",attrs:{title:"乐团课",closable:!1,type:"info"}}):e._e(),e._v(" "),e.course&&e.course.length>0&&e.course[0].name?s("descriptions",{attrs:{column:3}},[e.course[0].name?s("descriptions-item",{attrs:{span:2,label:"收费标准:"}},[e._v(e._s(e.course[0].name))]):e._e()],1):e._e(),e._v(" "),e.course&&e.course.length?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.course,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{prop:"courseType",label:"课程信息",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),s("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}],null,!1,1952871020)}),e._v(" "),s("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)",width:"150px"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"售价(元)",width:"100px"}},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"100px"}}),e._v(" "),s("el-table-column")],1):e._e(),e._v(" "),e.musicMerger.length?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicMerger,stripe:""}},[s("el-table-column",{attrs:{prop:"username",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),s("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}],null,!1,1952871020)}),e._v(" "),s("el-table-column",{attrs:{prop:"courseTime",label:"课程总时长(分钟)"}}),e._v(" "),s("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"售价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseCurrentPrice))+"\n ")])]}}],null,!1,3280898274)},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseOriginalPrice))+"\n ")])]}}],null,!1,2255639858)})],1):e._e(),e._v(" "),e.memberRankSettingId?s("el-alert",{staticClass:"alert",attrs:{title:"团练宝",closable:!1,type:"info"}}):e._e(),e._v(" "),e.memberRankSettingId?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:[Object.assign({},e.member)],stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{prop:"name",label:"会员类型",width:"120"}}),e._v(" "),s("el-table-column",{attrs:{prop:"optionalFlag",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.optionalFlag?"是":"否"))]}}],null,!1,3883886131)}),e._v(" "),s("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"会员周期",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("memberEnumType")(t.row.period))+"\n ")])]}}],null,!1,3167416822)}),e._v(" "),s("el-table-column",{attrs:{prop:"num",label:"数量",width:"120"}}),e._v(" "),s("el-table-column",{attrs:{prop:"actualAmount",label:"售价(元)",width:"120"}},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{prop:"originalAmount",label:"原价(元)"}}),e._v(" "),s("el-table-column")],1):e._e(),e._v(" "),e.repair&&e.repair.calenderId?s("el-alert",{staticClass:"alert",attrs:{title:"乐保",closable:!1,type:"info"}}):e._e(),e._v(" "),e.repair&&e.repair.calenderId?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:[Object.assign({},e.repair)],stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{prop:"name",label:"服务",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("乐器保养")])]}}],null,!1,4257167650)}),e._v(" "),s("el-table-column",{attrs:{label:"年限",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.num))]}}],null,!1,1973759915)}),e._v(" "),s("el-table-column",{attrs:{prop:"num",label:"数量",width:"100px"}}),e._v(" "),s("el-table-column",{attrs:{prop:"actualAmount",label:"售价(元)",width:"100px"}},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{prop:"originalAmount",label:"原价(元)"}})],1):e._e(),e._v(" "),e.activity&&e.activity.length>0?s("el-alert",{staticClass:"alert",attrs:{title:"乐团活动",closable:!1,type:"info"}}):e._e(),e._v(" "),e.activity&&e.activity.length>0?s("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.activity,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{prop:"activityName",label:"活动方案",width:"120"}}),e._v(" "),s("el-table-column",{attrs:{prop:"optionalFlag",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.optionalFlag?"是":"否"))]}}],null,!1,3883886131)}),e._v(" "),s("el-table-column",{attrs:{label:"活动课程",prop:"categoryName",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.categoryName))]}}],null,!1,2585482186)}),e._v(" "),s("el-table-column",{attrs:{prop:"num",label:"数量",width:"100px"}}),e._v(" "),s("el-table-column",{attrs:{prop:"actualAmount",label:"售价(元)",width:"100px"}},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{prop:"originalAmount",label:"原价(元)"}})],1):e._e()],1)},r=[],i=(s("96cf"),s("1da1")),n=(s("7f7f"),s("5530")),o=s("2b0e"),l=s("6612"),c=s.n(l),u=s("1672"),m=s("ddec"),p=s("837c");o["default"].use(m["a"]);var d={calender:{},activity:[],musicGroupPaymentCalenderStudentDetails:[],course:[],member:[],repair:{},musicMerger:[],studentNum:0,phone:"",username:""},h={components:{Item:p["a"]},props:["detail"],data:function(){return Object(n["a"])({payVisible:!1},d)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""},memberRankSettingId:function(){var e,t=null===(e=this.member)||void 0===e?void 0:e.memberRankSettingId;return t||""}},mounted:function(){this.init()},methods:{numeral:c.a,init:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["l"])({id:this.detail.id,musicGroupId:this.detail.musicGroupId});case 3:for(s in t=e.sent,d)d.hasOwnProperty(s)&&(this[s]=t.data[s]);e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},f=h,b=(s("e084"),s("2877")),v=Object(b["a"])(f,a,r,!1,null,"79a86c1e",null);t["a"]=v.exports},"38a4":function(e,t,s){"use strict";s.d(t,"c",(function(){return r})),s.d(t,"b",(function(){return i})),s.d(t,"a",(function(){return n}));var a=s("829b"),r=function(e){return Object(a["a"])({url:"/api-web/musicGroupQuit/queryPage",params:e,method:"get",requestType:"form"})},i=function(e){return Object(a["a"])({url:"/api-web/webCurseHomework/getStudentHomeWorks",params:e})},n=function(e){return Object(a["a"])({url:"/api-web/musicGroupQuit/batchQuitMusicGroup",data:e,method:"post",requestType:"json"})}},"3bf7":function(e,t,s){},"3e15":function(e,t,s){"use strict";s.d(t,"d",(function(){return i})),s.d(t,"a",(function(){return n})),s.d(t,"b",(function(){return o})),s.d(t,"c",(function(){return l}));var a=s("b775"),r=(s("4328"),"/api-web");function i(e){return Object(a["a"])({url:r+"/extracurricularExercises/queryPageList",method:"get",params:e})}function n(e){return Object(a["a"])({url:r+"/extracurricularExercisesReply/queryPageList",method:"get",params:e})}function o(e){return Object(a["a"])({url:r+"/extracurricularExercises/findStudentExtraExerciseDetail",method:"get",params:e})}function l(e){return Object(a["a"])({url:r+"/exercisesSituation/findStudentExtracurricularExercisesSituations",method:"get",params:e})}},"3efb":function(e,t,s){"use strict";s("c461")},"3f6d":function(e,t,s){},"3f7d":function(e,t,s){},4e3:function(e,t,s){"use strict";s("3004")},"405f":function(e,t,s){"use strict";s("3bf7")},"4276d":function(e,t,s){"use strict";s("a996")},"45c1":function(e,t,s){},4678:function(e,t,s){var a={"./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 s(t)}function i(e){var t=a[e];if(!(t+1)){var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}return t}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id="4678"},"46f6":function(e,t,s){"use strict";s.d(t,"b",(function(){return o})),s.d(t,"a",(function(){return l}));var a=s("b775"),r=s("4328"),i=s.n(r),n="/api-web";function o(e){return Object(a["a"])({url:n+"/visit/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/visit/add",method:"post",data:i.a.stringify(e)})}},"475f":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"quitForm",attrs:{model:e.quitForm,"label-width":"150px",rules:e.quitRules,inline:!0}},[s("el-row",[s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"学员姓名"}},[s("span",[e._v(e._s(e.quitForm.studentName))])])],1),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{attrs:{label:"乐团名称"}},[s("overflow-text",{attrs:{text:e.quitForm.musicGroupName,width:"150px"}})],1)],1)],1),e._v(" "),s("el-row",[s("el-form-item",{attrs:{label:"是否回访",prop:"isVisit"}},[s("el-radio",{attrs:{label:!0,disabled:e.isDisabled},model:{value:e.quitForm.isVisit,callback:function(t){e.$set(e.quitForm,"isVisit","string"===typeof t?t.trim():t)},expression:"quitForm.isVisit"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isVisit,callback:function(t){e.$set(e.quitForm,"isVisit","string"===typeof t?t.trim():t)},expression:"quitForm.isVisit"}},[e._v("否")])],1),e._v(" "),e.quitForm.isVisit?s("el-form-item",{attrs:{label:"回访时间",rules:[{required:!0,message:"请选择回访回访时间"}]}},[s("el-date-picker",{staticStyle:{width:"180px !important"},attrs:{disabled:e.isDisabled,align:"right",type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd","picker-options":e.pickerOptions},model:{value:e.quitForm.visitTime,callback:function(t){e.$set(e.quitForm,"visitTime","string"===typeof t?t.trim():t)},expression:"quitForm.visitTime"}})],1):e._e()],1),e._v(" "),s("div",[s("el-row",[s("el-form-item",{attrs:{label:"退还课程费用",prop:"isReturnCourseFee",rules:[{required:!0,message:"请选择是否退还课程费用"}]}},[s("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnCourseFee,callback:function(t){e.$set(e.quitForm,"isReturnCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnCourseFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnCourseFee,callback:function(t){e.$set(e.quitForm,"isReturnCourseFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnCourseFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnCourseFee?s("el-form-item",{attrs:{label:"退还课程金额",prop:"courseFee"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"",type:"number"},model:{value:e.quitForm.courseFee,callback:function(t){e.$set(e.quitForm,"courseFee","string"===typeof t?t.trim():t)},expression:"quitForm.courseFee"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),s("el-row",[s("el-form-item",{attrs:{label:"退还乐器费用",prop:"isReturnMusicalFee",rules:[{required:!0,message:"请选择是否退还乐器费用"}]}},[s("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnMusicalFee,callback:function(t){e.$set(e.quitForm,"isReturnMusicalFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMusicalFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnMusicalFee,callback:function(t){e.$set(e.quitForm,"isReturnMusicalFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMusicalFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnMusicalFee?s("el-form-item",{attrs:{label:"退还乐器金额",prop:"musicalFee"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number",disabled:""},model:{value:e.quitForm.musicalFee,callback:function(t){e.$set(e.quitForm,"musicalFee","string"===typeof t?t.trim():t)},expression:"quitForm.musicalFee"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),s("el-row",[s("el-form-item",{attrs:{rules:[{required:!0,message:"请选择是否退还教辅费用"}],label:"退还教辅费用",prop:"isReturnAccessoriesFee"}},[s("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnAccessoriesFee,callback:function(t){e.$set(e.quitForm,"isReturnAccessoriesFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnAccessoriesFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnAccessoriesFee,callback:function(t){e.$set(e.quitForm,"isReturnAccessoriesFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnAccessoriesFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnAccessoriesFee?s("el-form-item",{attrs:{label:"退还教辅金额",prop:"accessoriesFee"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"",type:"number"},model:{value:e.quitForm.accessoriesFee,callback:function(t){e.$set(e.quitForm,"accessoriesFee","string"===typeof t?t.trim():t)},expression:"quitForm.accessoriesFee"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1),e._v(" "),1==e.$helpers.tenantId?s("el-row",[s("el-form-item",{attrs:{label:"退还乐保费用",rules:[{required:!0,message:"请选择是否退还乐保费用"}],prop:"isReturnMaintenanceFee"}},[s("el-radio",{attrs:{disabled:e.isDisabled,label:!0},model:{value:e.quitForm.isReturnMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isReturnMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMaintenanceFee"}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.isDisabled,label:!1},model:{value:e.quitForm.isReturnMaintenanceFee,callback:function(t){e.$set(e.quitForm,"isReturnMaintenanceFee","string"===typeof t?t.trim():t)},expression:"quitForm.isReturnMaintenanceFee"}},[e._v("否")])],1),e._v(" "),e.quitForm.isReturnMaintenanceFee?s("el-form-item",{attrs:{label:"退还乐保金额",rules:[{required:!0,message:"请输入乐保金额"}],prop:"maintenanceFee"}},[s("el-input",{staticStyle:{width:"180px"},attrs:{type:"number"},model:{value:e.quitForm.maintenanceFee,callback:function(t){e.$set(e.quitForm,"maintenanceFee",t)},expression:"quitForm.maintenanceFee"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e()],1):e._e()],1),e._v(" "),s("el-row",[s("el-form-item",{attrs:{label:"申请理由",prop:"userComment"}},[s("el-input",{staticStyle:{width:"455px !important"},attrs:{type:"textarea",rows:3,disabled:e.isDisabled},model:{value:e.quitForm.userComment,callback:function(t){e.$set(e.quitForm,"userComment","string"===typeof t?t.trim():t)},expression:"quitForm.userComment"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"审批理由",prop:"reason"}},[s("el-input",{staticStyle:{width:"455px !important"},attrs:{disabled:e.isDisabled,type:"textarea",rows:3},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","isDisabled"],mounted:function(){},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:"请选择是否退还会员费用"}]},pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()>(new Date).getTime()}}}}},n=i,o=s("2877"),l=Object(o["a"])(n,a,r,!1,null,"4628a9c8",null);t["a"]=l.exports},"4edf":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"visitBtnWrap"},[s("auth",{attrs:{auths:"studentAttendance/findStudentAttendance"}},[s("el-button",{attrs:{type:"text"},on:{click:function(t){e.recordVisible=!0}}},[e._v("学员考勤")])],1),e._v(" "),s("auth",{attrs:{auths:["webCurseHomework/getStudentHomeWorks","extracurricularExercisesReply/queryPageList"]}},[s("el-button",{attrs:{type:"text"},on:{click:function(t){e.workVisible=!0}}},[e._v("训练情况")])],1)],1),e._v(" "),s("el-form",{ref:"visitForm",attrs:{model:e.visitForm,"label-width":"120px","label-position":"right",rules:e.visitRules}},[s("el-form-item",{attrs:{label:"学生姓名"}},[s("p",[e._v(e._s(e.userName))])]),e._v(" "),s("el-form-item",{attrs:{label:"回访类型",prop:"visitType"}},[s("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(" "),s("el-form-item",{attrs:{label:"回访日期",prop:"visitTime"}},[s("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(" "),s("el-form-item",{attrs:{label:"学员情况",prop:"overview"}},[s("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(" "),s("el-form-item",{attrs:{label:"家长反馈",prop:"feedback"}},[s("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(" "),s("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right","margin-right":"15%"},attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitAddVisit}},[e._v("确 定")])],1),e._v(" "),e.recordVisible?s("el-dialog",{attrs:{title:"学员考勤",width:"1020px",visible:e.recordVisible,"append-to-body":""},on:{"update:visible":function(t){e.recordVisible=t}}},[s("record",{attrs:{studentId:this.detail.userId}})],1):e._e(),e._v(" "),e.workVisible?s("el-dialog",{attrs:{title:"训练列表",width:"1020px",visible:e.workVisible,"append-to-body":""},on:{"update:visible":function(t){e.workVisible=t}}},[s("studentWork",{attrs:{studentId:this.detail.userId}})],1):e._e()],1)},r=[],i=s("5530"),n=s("15fd"),o=s("e3eb"),l=s.n(o),c=s("92e3"),u=s("46f6"),m=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",{attrs:{prop:"dates"}},[s("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(" "),s("el-form-item",{attrs:{prop:"groupType"}},[s("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 s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"status"}},[s("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 s("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.courseScheduleId))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"courseSchedule.name",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{width:"180px",align:"center",prop:"startClassTime",label:"上课时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("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(" "),s("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程组类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.groupType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"startClassTime",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("coursesType")(t.row.courseSchedule.type))+"\n ")])]}}])}),e._v(" "),s("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?s("div",[e._v("\n "+e._s(e._f("clockingIn")(t.row.status))+"\n ")]):e._e()]}}])})],1),e._v(" "),s("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update: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=[],d=(s("386d"),s("333d")),h=s("1cc7"),f=s("ed08"),b={components:{pagination:d["a"]},props:["studentId"],data:function(){return{searchForm:{studentID:"",groupType:"",status:"",dates:[]},courseListType:c["o"],attendanceStatus:c["K"],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,s=t.dates,a=Object(n["a"])(t,["dates"]),r=Object(i["a"])(Object(i["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit},Object(f["a"])(s,["startDateOfCourse","endDateOfCourse"],"YYYY-MM-DD"));Object(h["N"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},v=b,y=s("2877"),g=Object(y["a"])(v,m,p,!1,null,"20eac814",null),_=g.exports,S=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"课程训练",name:"first",lazy:""}},[e.studentId&&"first"==e.activeName?s("courseWork",{attrs:{studentId:e.studentId}}):e._e()],1),e._v(" "),s("el-tab-pane",{attrs:{label:"课外训练",name:"second",lazy:""}},[e.studentId&&"second"==e.activeName?s("afterWork",{attrs:{studentId:e.studentId}}):e._e()],1)],1)],1)},w=[],k=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("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(" "),s("el-form-item",{attrs:{prop:"status"}},[s("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[s("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"isReplied"}},[s("el-select",{attrs:{placeholder:"是否评价",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[s("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",label:"课程编号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"courseName",label:"课程名称"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"groupName",label:"课程组名称"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",[s("overflow-text",{attrs:{text:e.row.groupName,width:"100%"}})],1)]}}])}),e._v(" "),s("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(" "),s("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"title",label:"训练内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",[s("overflow-text",{attrs:{text:e.row.content,width:"100%"}})],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"是否提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.status?"是":"否"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])})],1),e._v(" "),s("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)},x=[],T=(s("96cf"),s("1da1")),F=s("38a4"),C=s("5a0c"),I=s.n(C),O={props:["studentId"],components:{pagination:d["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=[I()((new Date).setDate(1)).format("YYYY-MM-DD"),I()(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,s,a,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,s=t.courseTimer,a=Object(n["a"])(t,["courseTimer"]),r=Object(i["a"])(Object(i["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit},Object(f["a"])(s,["startTime","endTime"],"YYYY-MM-DD")),e.prev=2,e.next=5,Object(F["b"])(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}()}},j=O,P=Object(y["a"])(j,k,x,!1,null,null,null),L=P.exports,D=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",{attrs:{prop:"timer"}},[s("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(" "),s("el-form-item",{attrs:{prop:"status"}},[s("el-select",{attrs:{placeholder:"是否提交",clearable:""},model:{value:e.searchForm.status,callback:function(t){e.$set(e.searchForm,"status",t)},expression:"searchForm.status"}},[s("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"isReplied"}},[s("el-select",{attrs:{placeholder:"是否评价",clearable:""},model:{value:e.searchForm.isReplied,callback:function(t){e.$set(e.searchForm,"isReplied",t)},expression:"searchForm.isReplied"}},[s("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReset}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("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(" "),s("el-table-column",{attrs:{align:"center",prop:"teacherName",label:"布置老师"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"title",label:"训练标题"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",[s("div",[s("overflow-text",{attrs:{text:e.row.title,width:"100%"}})],1)])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"title",label:"训练内容"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",[s("div",[s("overflow-text",{attrs:{text:e.row.content,width:"100%"}})],1)])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"是否提交"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.status?"是":"否"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isView",label:"是否查看"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.isView?"是":"否"))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isReplied",label:"是否评价"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.isReplied?"是":"否"))])]}}])})],1),e._v(" "),s("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)},R=[],A=s("3e15"),E={props:["studentId"],components:{pagination:d["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=[I()((new Date).setDate(1)).format("YYYY-MM-DD"),I()(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,s=t.timer,a=Object(n["a"])(t,["timer"]),r=Object(i["a"])(Object(i["a"])({},a),{},{page:this.rules.page,rows:this.rules.limit},Object(f["a"])(s,["submitStartTime","submitEndTime"],"YYYY-MM-DD"));Object(A["a"])(r).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.rules.total=t.data.total)}))}}},N=E,G=Object(y["a"])(N,D,R,!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["P"],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["Q"],this.$set(this.visitForm,"visitType",["常规回访","考勤申诉"])):this.useVisitType?(this.visitChiose=c["Q"],this.$set(this.visitForm,"visitType",this.useVisitType)):this.visitChiose=c["P"]},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 s=e.visitForm,a=s.visitType,r=Object(n["a"])(s,["visitType"]),o=Object(i["a"])(Object(i["a"])({},r),{},{objectId:e.detail.id,studentName:e.userName,musicGroupId:e.detail.musicGroupId,studentId:e.studentId,type:a[0],purpose:a[1]});Object(u["a"])(l()(o)).then((function(t){200===t.code&&(e.$message.success("保存成功"),e.$emit("close"),e.$emit("submited"))}))}}))}}},H=B,Y=(s("d4e7"),Object(y["a"])(H,a,r,!1,null,"6d000538",null));t["a"]=Y.exports},5137:function(e,t,s){"use strict";s.d(t,"o",(function(){return o})),s.d(t,"n",(function(){return l})),s.d(t,"e",(function(){return c})),s.d(t,"d",(function(){return u})),s.d(t,"f",(function(){return m})),s.d(t,"u",(function(){return p})),s.d(t,"p",(function(){return d})),s.d(t,"t",(function(){return h})),s.d(t,"m",(function(){return f})),s.d(t,"s",(function(){return b})),s.d(t,"j",(function(){return v})),s.d(t,"l",(function(){return y})),s.d(t,"a",(function(){return g})),s.d(t,"g",(function(){return _})),s.d(t,"b",(function(){return S})),s.d(t,"r",(function(){return w})),s.d(t,"i",(function(){return k})),s.d(t,"w",(function(){return x})),s.d(t,"v",(function(){return T})),s.d(t,"k",(function(){return F})),s.d(t,"q",(function(){return C})),s.d(t,"x",(function(){return I})),s.d(t,"c",(function(){return O})),s.d(t,"y",(function(){return j})),s.d(t,"z",(function(){return P})),s.d(t,"h",(function(){return L}));var a=s("b775"),r=s("4328"),i=s.n(r),n="/api-web";function o(e){return Object(a["a"])({url:n+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/studentManage/queryOrganStudentList",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function u(e){return Object(a["a"])({url:n+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function m(e){return Object(a["a"])({url:n+"/studentManage/findStudentVipGroups",method:"get",params:e})}function p(e){return Object(a["a"])({url:n+"/studentWithdraw/queryPage",method:"get",params:e})}function d(e){return Object(a["a"])({url:n+"/studentManage/queryStudentPayment",method:"get",params:e})}function h(e){return Object(a["a"])({url:n+"/order/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:n+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function b(e){return Object(a["a"])({url:n+"/studentRegistration/batchUpdateSubject",method:"post",data:i.a.stringify(e)})}function v(e){return Object(a["a"])({url:n+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function y(e){return Object(a["a"])({url:n+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function g(e){return Object(a["a"])({url:n+"/studentRegistration/insertStudent",method:"POST",data:e})}function _(e){return Object(a["a"])({url:n+"/classGroupStudent/findAllStudent",method:"POST",data:i.a.stringify(e)})}function S(e){return Object(a["a"])({url:n+"/classGroupStudent/addStudents",method:"POST",data:i.a.stringify(e)})}function w(e){return Object(a["a"])({url:n+"/classGroupStudent/del",method:"POST",data:i.a.stringify(e)})}function k(e){return Object(a["a"])({url:n+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function x(e){return Object(a["a"])({url:n+"/userCashAccount/updateCourseBalance",method:"post",data:i.a.stringify(e)})}function T(e){return Object(a["a"])({url:n+"/userCashAccount/updateBalance",method:"post",data:i.a.stringify(e)})}function F(e){return Object(a["a"])({url:n+"/studentManage/queryUserByPhone",method:"get",params:e})}function C(e){return Object(a["a"])({url:n+"/studentManage/register",method:"post",data:i.a.stringify(e)})}function I(e){return Object(a["a"])({url:n+"/studentManage/studentUpdate",method:"post",data:i.a.stringify(e)})}function O(e){return Object(a["a"])({url:n+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function j(e){return Object(a["a"])({url:n+"/userCashAccountDetail/queryPage",method:"get",params:e})}function P(e){return Object(a["a"])({url:n+"/userCoursesAccount/queryPage",method:"get",params:e})}function L(e){return Object(a["a"])({url:n+"/sysUserContracts/getLatest",method:"get",params:e})}},5513:function(e,t,s){"use strict";s("328e")},"58bc":function(e,t,s){},"5a6b":function(e,t,s){},6193:function(e,t,s){"use strict";s("aa6f")},"62f6":function(e,t,s){"use strict";s("9112")},"67c9":function(e,t,s){},"6cc5":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"110px"}},[s("el-form-item",{attrs:{label:"原乐器",prop:"name"}},[s("span",[e._v(e._s(e.originalMusicalGoods||"无"))])]),e._v(" "),s("el-form-item",{attrs:{label:"原教辅",prop:"name"}},[s("span",[e._v(e._s(e.originalAccessoriesGoods||"无"))])]),e._v(" "),s("el-form-item",{attrs:{label:"更改声部",prop:"subjectId",rules:[{required:!0,message:"请选择更改声部",trigger:"change"}]}},[e.changeInfo?s("span",[e._v(e._s(e.changeSubjectName))]):s("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择声部"},on:{change:e.subjectChange},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId",t)},expression:"form.subjectId"}},e._l(e.filterVoiceList,(function(e){return s("el-option",{key:e.subjectId,attrs:{label:e.subjectName,value:e.subjectId}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"更改乐器",prop:"musicalGoods",rules:[{required:!0,message:"请选择更改乐器",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.changeMusicalGoods?s("span",[e._v(e._s(e.changeInfo.changeMusicalGoods.name))]):e._e():s("el-select",{staticStyle:{width:"100% !important"},attrs:{clearable:"",placeholder:"请选择乐器"},on:{change:e.musicalGoodsChange},model:{value:e.form.musicalGoods,callback:function(t){e.$set(e.form,"musicalGoods",t)},expression:"form.musicalGoods"}},[s("el-option",{attrs:{label:"自备乐器",value:"OWNED"}}),e._v(" "),e._l(e.musicalGoods,(function(e){return s("el-option",{key:e.goodsIdList,attrs:{label:e.name,value:e.goodsIdList}})}))],2)],1),e._v(" "),e.changeInfo||e.form.musicalGoods&&e.musicalGoodsById[e.form.musicalGoods]&&e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse?s("el-form-item",{attrs:{label:"乐器提供方式",prop:"type",rules:[{required:!0,message:"请选择乐器提供方式",trigger:"change"}]}},[e.changeInfo?e.changeInfo&&e.changeInfo.kitGroupPurchaseType?s("span",[e._v(e._s(e.kitGroupPurchaseTypeFormater[e.changeInfo.kitGroupPurchaseType]))]):e._e():s("el-radio-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.musicalGoodsById[e.form.musicalGoods].kitGroupPurchaseTypeJsonParse,(function(t,a){return s("el-radio",{key:a,attrs:{label:a}},[e._v(e._s(e.kitGroupPurchaseTypeFormater[a]+" "+((e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[a]]||0)>0?e.musicalGoodsById[e.form.musicalGoods][e.typeAndprice[a]]+"元":"免费")))])})),1)],1):e._e(),e._v(" "),[(e.activeAccessories.length||e.groupList.length||e.changeInfo)&&e.form.musicalGoods?s("el-form-item",{attrs:{label:"更换教辅"}},[e.changeInfo?e.changeInfo?s("span",[e._v(e._s(e.changeAccessoriesGoods))]):e._e():s("accessories",{ref:"accessories",attrs:{list:e.activeAccessories,groupList:e.groupList},on:{"update:list":function(t){e.activeAccessories=t},"update:groupList":function(t){e.groupList=t},"update:group-list":function(t){e.groupList=t},change:e.accessoriesChange}})],1):e._e()],e._v(" "),e.changeInfo?s("el-form-item",{attrs:{label:"查看链接",prop:"name"}},[s("div",{staticClass:"viewlink"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.copyLink,placement:"top"}},[s("span",{staticClass:"link"},[e._v(e._s(e.copyLink))])]),e._v(" "),s("el-popover",{attrs:{placement:"top",width:"220",trigger:"click"}},[s("div",{staticClass:"left-code"},[s("div",{ref:"qrCodeUrl",staticClass:"qrcode code",attrs:{id:"qrcode"}}),e._v(" "),e.copyLink?s("p",{staticClass:"code-url"},[e._v("\n "+e._s(e.copyLink)+"\n "),s("el-link",{staticClass:"linkbtn",attrs:{type:"primary"},on:{click:function(t){return e.copyUrl(e.copyLink)}}},[e._v("复制")])],1):e._e()]),e._v(" "),s("el-button",{staticClass:"btn",attrs:{slot:"reference",type:"primary"},on:{click:e.onCreateQRCode},slot:"reference"},[e._v("二维码")])],1)],1)]):e._e(),e._v(" "),s("el-form-item",{attrs:{label:"支付差价",prop:"name"}},[e.changeInfo?s("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.editSpread))+"元")]):s("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(e.spread))+"元")])])],2),e._v(" "),s("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),e.changeInfo&&1!==e.changeInfo.status?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/cancel",expression:"'subjectChange/cancel'"}],attrs:{type:"danger"},on:{click:e.cancel}},[e._v("取消订单")]):e._e(),e._v(" "),e.changeInfo?e._e():s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subjectChange/add",expression:"'subjectChange/add'"}],attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},r=[],i=(s("96cf"),s("1da1")),n=(s("7f7f"),s("5530")),o=(s("ac6a"),s("456d"),s("b85c")),l=s("d044"),c=s.n(l),u=s("f904"),m=s.n(u),p=(s("6612"),s("1cc7")),d=s("61f7"),h=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),e._v(" "),e.groupOptions.length?s("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.groupOptions,(function(t){return s("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[s("strong",[s("span",[e._v(e._s(t.name))]),e._v(" "),s("span",[e._v(e._s(e._f("moneyFormat")(t.price))+"元")])]),e._v(" "),e._l(t.subs,(function(t){return s("p",{key:t},[e._v(e._s(t))])}))],2)})),1):s("el-checkbox-group",{staticClass:"options",on:{change:e.optionChange},model:{value:e.checkeds,callback:function(t){e.checkeds=t},expression:"checkeds"}},e._l(e.list,(function(t){return s("el-checkbox",{key:t.id,staticClass:"option",attrs:{label:t.id}},[s("strong",[s("span",[e._v(e._s(t.name))]),e._v(" "),t.groupPurchasePrice>0?s("span",[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+" 元")]):s("span",[e._v("免费")])])])})),1)],1)},f=[],b=s("2909"),v={props:["list","groupList"],data:function(){return{type:"list",checkAll:!1,checkeds:[],accessoriesByid:{},groupListById:{},selectMoney:0,isIndeterminate:!1}},watch:{checkeds:function(e){"list"===this.type?this.accessoriesByid:this.groupListById;var t=0;if("list"===this.type){var s,a=Object(o["a"])(e);try{for(a.s();!(s=a.n()).done;){var r=s.value,i=this.accessoriesByid[r];i&&(t+=parseFloat(i.groupPurchasePrice))}}catch(y){a.e(y)}finally{a.f()}}else{var n,l=Object(o["a"])(e);try{for(l.s();!(n=l.n()).done;){var c=n.value,u=this.groupListById[c];u&&(t+=parseFloat(u.price))}}catch(y){l.e(y)}finally{l.f()}}var m=[];if("list"!==this.type){var p,d=Object(o["a"])(e);try{for(d.s();!(p=d.n()).done;){var h=p.value,f=this.groupListById[h];if(f){var v=this.groupListById[h].goodsList;m=m.concat((v||[]).map((function(e){return e.id})))}}}catch(y){d.e(y)}finally{d.f()}}else m=Object(b["a"])(e);this.$listeners.change(m,t)},list:{deep:!0,immediate:!0,handler:function(e){var t=this;this.$nextTick((function(){var e,s={},a=Object(o["a"])(t.list);try{for(a.s();!(e=a.n()).done;){var r=e.value;s[r.id]=r}}catch(u){a.e(u)}finally{a.f()}var i,n={},l=Object(o["a"])(t.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()}t.accessoriesByid=s,t.groupListById=n}))}}},mounted:function(){this.init()},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:{init:function(){var e=this;this.$nextTick((function(){var t,s={},a=Object(o["a"])(e.list);try{for(a.s();!(t=a.n()).done;){var r=t.value;s[r.id]=r}}catch(u){a.e(u)}finally{a.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=s,e.groupListById=n}))},handleCheckAllChange:function(e){var t="list"===this.type?this.list:this.groupOptions,s=t.map((function(e){return e.id}));this.checkeds=e?s:[],this.isIndeterminate=!1},optionChange:function(e){var t="list"===this.type?this.list:this.groupOptions,s=e.length;this.checkAll=s===t.length,this.isIndeterminate=s>0&&s<t.length}}},y=v,g=(s("aae0"),s("2877")),_=Object(g["a"])(y,h,f,!1,null,"00c6d542",null),S=_.exports,w=s("267e"),k=function(e,t){var s=[],a={},r=[],i={},l=[],c={},u={};if(e){var m,p=e.musicGroupSubjectGoodsGroupList,d={},h=Object(o["a"])(p);try{for(h.s();!(m=h.n()).done;){var f=m.value;d[f.type]||(d[f.type]=[]),d[f.type].push(f)}}catch(j){h.e(j)}finally{h.f()}for(var b=Object.keys(d),v=0,y=b;v<y.length;v++){var g,_=y[v],S=Object(o["a"])(d[_]);try{for(S.s();!(g=S.n()).done;){var w=g.value;if("INSTRUMENT"===_){var k={},x={};try{k=JSON.parse(w.kitGroupPurchaseTypeJson)}catch(P){}try{x=JSON.parse(w.coursePurchaseTypeJson)}catch(P){}var T=Object(n["a"])(Object(n["a"])({},w),{},{kitGroupPurchaseTypeJsonParse:k,kitGroupPurchaseTypePrice:k[t]||0,coursePurchaseTypeJsonTypePrice:x[t]||0,_calculated_price:"FREE"===t?0:"LEASE"===t?w.depositFee:w.price});if(r.push(T),i[w.goodsIdList]=T,!d.ACCESSORIES){u[w.goodsIdList]||(u[w.goodsIdList]=[]);var F,C=w.goodsList[0].goodsList?w.goodsList[0].goodsList:[],I=Object(o["a"])(C);try{for(I.s();!(F=I.n()).done;){var O=F.value;u[w.goodsIdList].push(O),a[O.id]=O}}catch(j){I.e(j)}finally{I.f()}}}else"ACCESSORIES"===w.type&&(l.push(w),c[w.id]=w)}}catch(j){S.e(j)}finally{S.f()}}}return{accessories:s,accessoriesById:a,musicalGoods:r,musicalGoodsById:i,groupList:l,groupListById:c,accessoriesByGoods:u}},x={GROUP:"price",LEASE:"depositFee"},T={props:["detail","musicGroupId","voiceList","courseViewType"],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(d["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,s=t&&this.accessoriesByGoods[t]||[];return s},changeSubjectName:function(){var e="";if(this.item.changeSubjectId){var t,s=Object(o["a"])(this.voiceList);try{for(s.s();!(t=s.n()).done;){var a=t.value;if(a.subjectId===this.item.changeSubjectId){e=a.subjectName;break}}}catch(r){s.e(r)}finally{s.f()}}return e},changeAccessoriesGoods:function(){var e=this.changeInfo||{},t=(e.changeAccessoriesGoods||[]).map((function(e){return e.name})).join(",");return t||"未选择教辅"},editSpread:function(){var e=this.changeInfo||{},t=(e.originalAccessoriesPrice||0)+(e.originalCourseFee||0)+(e.originalMusicalPrice||0);return(e.changeMusicalPrice||0)+(e.changeAccessoriesPrice||0)+(e.changeCourseFee||0)-t},spread:function(){var e=this.numFormat(this.musicalPrice+this.selectAccessoriesMoney+this.musicGroupSubjectPlanFee-this.originalAccessoriesPrice-this.originalMusicalPrice-this.originalCourseFee-this.coursePurchaseTypeJsonTypePrice-this.kitGroupPurchaseTypePrice);return e}},mounted:function(){this.detail&&this.detail.userId&&this.fetchDetail()},methods:{copyUrl:function(e){m()(e),this.$message.success("复制成功")},fetchDetail:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=function(e){var t=e.data;s.item=t||{},t&&(s.$set(s.form,"type",s.item.kitGroupPurchaseType),s.originalAccessoriesPrice=t.originalAccessoriesPrice,s.originalMusicalPrice=t.originalMusicalPrice,s.originalCourseFee=t.originalCourseFee,s.originalMusicalGoods=t.originalMusicalGoods&&t.originalMusicalGoods.name,s.originalAccessoriesGoods=(t.originalAccessoriesGoods||[]).map((function(e){return e.name})).join())},!this.detail.subjectChange){e.next=6;break}return e.next=4,Object(p["V"])({id:this.detail.subjectChange.id}).then((function(e){t(e),s.changeInfo=e.data}));case 4:e.next=9;break;case 6:return this.changeInfo=this.detail.subjectChange,e.next=9,Object(p["Ib"])({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 s,a,r,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.form,"musicalGoods",""),s=null,!t){e.next=16;break}return e.prev=3,e.next=6,Object(p["Mb"])({musicGroupId:this.musicGroupId,subjectId:t});case 6:a=e.sent,s=a.data,this.musicGroupSubjectPlanFee=a.data.musicGroupSubjectPlan.fee,e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](3),console.log(e.t0);case 14:e.next=17;break;case 16:this.musicGroupSubjectPlanFee=0;case 17:for(i in r=k(s,this.item.kitGroupPurchaseType),r)r.hasOwnProperty(i)&&(n=r[i],this[i]=n);this.musicalGoodsChange();case 20:case"end":return e.stop()}}),e,this,[[3,11]])})));function t(t){return e.apply(this,arguments)}return t}(),musicalGoodsChange:function(e){this.$refs["form"].clearValidate(),this.accessoriesChange([],0),this.$refs.accessories&&(this.$set(this.$refs.accessories,"checkeds",[]),this.$set(this.$refs.accessories,"isIndeterminate",!1),this.$set(this.$refs.accessories,"checkAll",!1));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","")),this.$forceUpdate()},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){if(e.detail.subjectId,t){var s;if(2==e.courseViewType&&"OWNED"==e.form.musicalGoods&&e.selectAccessories&&e.selectAccessories.length<=0)return void e.$message.error("请至少选择一个教辅");Object(p["Lc"])({changeCourseFee:e.numFormat(e.musicGroupSubjectPlanFee-e.coursePurchaseTypeJsonTypePrice),changeAccessories:e.selectAccessories.join(",")||null,changeAccessoriesPrice:e.numFormat(e.selectAccessoriesMoney),changeMusicalPrice:e.numFormat(e.musicalPrice),originalCourseFee:e.originalCourseFee,originalMusicalPrice:e.originalMusicalPrice,originalMusical:e.item.originalMusical,originalAccessories:e.item.originalAccessories,originalAccessoriesPrice:e.originalAccessoriesPrice,cooperationOrganId:e.item.cooperationOrganId,kitGroupPurchaseType:"OWNED"===e.form.musicalGoods?e.form.musicalGoods:e.form.type,musicGroupId:e.musicGroupId,studentId:e.detail.studentId,changeMusical:"OWNED"===e.form.musicalGoods?0:e.form.musicalGoods,originalCost:e.item.originalCost,organId:e.item.organId,originalSubjectId:null===(s=e.detail)||void 0===s?void 0:s.actualSubjectId,changeSubjectId:e.form.subjectId}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("提交成功!")}))}}))},cancel:function(){var e=this;this.$confirm("是否确认取消订单?","提示",{onfirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["Mc"])({id:e.detail.subjectChange.id}).then((function(t){e.$listeners.close(),e.$listeners.submited(),e.$message.success("取消成功!")}))}))}}},F=T,C=(s("1d55"),Object(g["a"])(F,a,r,!1,null,"4791c9ae",null));t["a"]=C.exports},"704d":function(e,t,s){"use strict";s("96cf");var a=s("1da1"),r=s("2909"),i=s("5530"),n=s("2f62"),o=s("1cc7"),l=new n["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(i["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(r["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,s){var a,r,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.commit,r=t.state,e.prev=1,(null===(i=s.data)||void 0===i?void 0:i.musicGroupId)===r.musicGroup.id&&!s.force){e.next=8;break}return e.next=5,Object(o["Rb"])(s.data);case 5:return n=e.sent,a("updateBaseinfo",n),e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",Promise.resolve(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,s){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,s){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=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["M"])(Object(i["a"])({},s.data));case 6:return n=e.sent,a("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,s){return e.apply(this,arguments)}return t}()}});t["a"]=l},"720f":function(e,t,s){},"72a0":function(e,t,s){"use strict";s("3f6d")},"73b3":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"basea-container"},[s("div",{staticClass:"baseTop"},[s("div",{staticClass:"left"},[s("teambaseinfo"),e._v(" "),s("div",{staticClass:"wrap"},["look"!==e.lookType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},r=[],i=(s("1cc7"),s("80b0")),n=s("bc3a"),o=s.n(n),l=s("4328"),c=s.n(l),u=s("5f87"),m=s("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",s={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(u["b"])(),tenantId:Object(u["a"])()},data:c.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var r=URL.createObjectURL(s),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(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",s={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(u["b"])(),tenantId:Object(u["a"])()},data:c.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var r=URL.createObjectURL(s),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(){}))}}},d=p,h=(s("405f"),s("2877")),f=Object(h["a"])(d,a,r,!1,null,"41a5e02c",null);t["a"]=f.exports},7400:function(e,t,s){"use strict";s("720f")},"74f9":function(e,t,s){},7619:function(e,t,s){},"78f2":function(e,t,s){"use strict";s("74f9")},"798e":function(e,t,s){"use strict";s("af13")},"7a3c":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():s("el-form-item",{attrs:{label:"课程金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[s("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"请输入缴费金额"},on:{change:e.paymentAmountChange},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),e.isUserType?s("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e()],1)},r=[],i=(s("ed08"),{props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney","courseViewType","paymentType"],data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},mounted:function(){},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}}),n=i,o=(s("8d3c"),s("2877")),l=Object(o["a"])(n,a,r,!1,null,"1819868a",null);t["a"]=l.exports},"7a7c":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAACaZJREFUeAHtXGtsVMcVnnPv7joEY9LgtQlNHUCNkhbSJrgv1CjkQSq1UqiUBKtSklaJmgLGa+pgUwlVKlWrUtkLFK/tgPIjKqItcUr7p1X/hBqiVqqUQpQAaVNF5VFkbK9JgWJj1rt3+p27D9+7u3efc9c2+Er2zpyZOXPOd8+851wSFXx2SKn1vLrrITLo81LK+wT+SIhlQsgaQWKBlGIBi0Mk/ick/gRdlUKcAeFDwp/U5Hstm7a+u4PIqJTYkM/d51Oh0JIJcf0ZKekJ1LQGYNxRXo10GeWPEckjt4l5h/8TCAyWxy93aVcAWvr667eNj196RsbktyWJJ2Apem4xSkwlipEUR0inA7ffvujw2RdfnCiRk2MxpQD5e3uryRjbKAVtRRNa7FirCwlogkMk5C6pzd8X3rz5mqoqlAD06MCA59Tpv7eSlNvRjyxSJVwpfNB/XZJEP1u54gvdRx97LFoKD2uZsgHy9wYfFobRB2AesDKe7jCAOik0rTm8uf0v5chSMkAr+vt9I8Png1LIFvQxJfMpR/i8ZdGTk6CeuvqG9tNNTZG8+bNkKEmx+r49y2PRaD9GpMYsPGcgiY7rHk/TcHPbv4sVrmiA6kNdj8eE/B3mKQuLrWxa85O4ogt6ejjQ8edi5NCKyewPda6PSfmnWQcOK4kXyrKzDsXoXDBAtd1dL6MjPgTmvmIqmGF5fawD61KoXAU1MUY9AU7BgBYqwDTlMzDKfSsc2PZmvvrzAmT2OdysZrflZMMhohN9PV+flBMgc7SKTZ6YlX1ONkjSadxx695VuUY3xybD8xxzKJ9to1U6CLni3HFjusK6OmVzBIgngbNnnuOkXiF02RjXNXverE2Mlw/SkG/P2Blydl1Kp/KMW6NHsi1LMiyIF568trplwGFYeakEnU3d02DOAIhX5TNt4ZkmsytR1pl1T2dua2K8nyOMsbPIPK1bFulCVirOWyVCm7/Uup9ksyBzs+sWBYdfAhsGY2B9ISkL4m3SsWujZxTuBA74SGvWRdVVa4Wqw9f1G3dRVL6GbZeHVPDmncn51bXLktu3niRTcw9Z4TYpkD8wGGj/Z5K/i7+D/p6uN4QhlADEBsJYQN5fscwpgHiDXa0S1Obv2TUidHExjKMatbzj3Pw4QhIx4160je+p5J/AwgTI7IP4aMY8fVBYC0z+c9KI/VFEY79VyNbOKmocwnztDfQdy+0J5cUYC8aEuZgATciJZ/EW3DmaEVRXnrjOpQGMO7yBBZ/lpQCSJPlQz5UHbbr67v7d81Qzb9y/34txp8xDSGepEgedQtuB42Ah6RHnrOWnTIzQZ8rnYudwITJ2v52iPLaGsTHPyt18Eyw2yaiSEcYKgUHGKmtcfVjewfcINL5IoJ65nSOG/C9bKXWhzm3+UHCLlZYrjE27ZbWhzt/XvfaL+lQ+Kb+UCrsUYGw09BH3ucQ/xRY3NJ4ym3KKIh6U0uhcsn9vwxTJOWQIuRN2+JTHoCrOBZlxiCvXOZdQk8LYoP+pAECYfPWG9nw1JbZOP8eVFm/kRuSnKZpDoLYv2IjRaj2s8ODghi3nOVt93+7V+LnboYg6MgOEipep45iDE8VSTWqkueN9TOl/CVt4IdcJwyd7ehZR1MA8iq5hPvLjJHfMrzJW3ck0lb+MjYZJ0UKVTJ14oZk9Xf9q18pkelWd1ozV8wlcnOr1d3dlKOzft/feiBwfwEWEe3DG/hw2189w2SWh4P1sUUk+7v7KGsIbvIQ3eae7FcW544387dHFSx9+s6kpxpTa/Xvuokj0MNr6ajS5ozgcCHq8ntOxySiu0MhmnKt7cKVl40jrtgOcP76gDv8VALk8gnFtsFtsf8ByZXU86v5/WNFXjg6fSzWV0Q1tFxt8NWvQ3HaiL8Q5v/xDdHLyDMD5AWjvktBWJ8Fh6bDbwLdIKgIO14e6FsCCOm8g7LirzxlVP7CMLeHWjm4r308f7K65/N+JLkxanxWa58nRlrYT1vTaULBNSGO3lVaBcIRwajoKpCq+gwjz3dvgW9hxfMOGyaSi/p7gd/DafhQOdCxP0hr6+j5xPTq2D1bVlKRV6jfexMzbpJWqcqoevJQt5yJX3lu8L/jZKao9xGnjsbGT0wGOKQmwQR9EV+1iVSpGHwup/WRoY/sHTjVyGt7iK2iSo0553KXTVQ0dpzl8uluRnTsUPoXRqnG0tf039pTMWLilo99b5WtEmfczU92lMDYaxrIP3a3Gzh2j00c0z7t2aFPbWXuKc4xn0Hp11VrkqKisjI0GgStWKZrLhEfzrBt5+fvDznBkTxl6qTUsNH0dLOl69hzqqYyNxtf71bPOzpGk9sOLm9v+kT01P3W0Zeu/sHu1PX9ONTkYG419H9BR8/V+t58L/sUNoXIrucdb0wvTP1cun/zl6TJjo+2IO4Ycy1+gzBwa7Sr1Kq61Zp43oePstNJcCh9jbDDM85pDHnGpkjhb+FTouvi1qjp887RDEDo1wVTF18oniYkJEHvNINGwZlAcPja8qWNEFc8L333lY3ZiUcUvgw9eaAKT+LEPuxRhdHgrI6M6wlF1rBKcNKGeZ4I1g590szItiOnsUpRIV/5DmnxHNVPMcJXzTMpoxSIFEPtbYdwfSmZS+Ss93sKmEtIYx+y1oKao+9yZWTMGjEVSf+xhTT04bWg3pOiaoigIoT23tLT7EqOlAoZTLLATOYGFrLmRP0UtL4Q96I6RwLZgkkvKgpjAzmi8xE8mqvhFex5xAxxTXhJKLZ51ZwysetsA4ptV7IxmzVBqGKb6kU76NzWv+FqpPPKV83jpGx5dfxw9qJL+iHW33i7j+m1NjAl8kfH0qXdOYL/mAY6X+uDW6HasxHeWWr6YcnU9wRcMwzhQTJn0vLCekytWfnFVupdiBkBcUMU1YN7SEEJvpqroYLowKuMyCldyg/Zi47/0+wU5rgFnBcgEKRTsxulnQKUyM5UXkRYKB9ozjp5YXlsfZFWA3RjRAo9baTdnmI7Hdc2unSNAvLBkN0b0UleyF70JqOzMAh1zLaIdAWL12QuG3RgRLMkhdoZDGDFdNPP4seYEyAQJPp7o4Z9H2M3FbKWxZIe65/P5irFQeQHiTHHPPOIL1jcDSNCBNhbibci6O45inJj+JFwzD4LuS0+bJfEIW06h4LBORQHEBW41t/CiATJBmvuwAMOQ+5n7NEVufFKpcx83SUHhHJj7PI4zNraUuQ8s2eBwjsx9ossZm4yU1EfehFgbd3ko178Cp8Ak38bw+9as/chbBkoJwvr+fn1g9PyDs+kzgf8Hz2nY3WMBjb4AAAAASUVORK5CYII="},"80b0":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"base-container"},[s("div",{staticClass:"banseLeft"},[s("el-form",{ref:"topinfo",attrs:{model:e.topFrom,"label-width":"120px",inline:!0,"label-position":"left"}},[s("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),s("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[s("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[s("el-select",{staticClass:"width400",attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"乐团收费类型",prop:"type",rules:[{required:!0,message:"乐团收费类型不能为空"}]}},[s("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[s("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},e._l(e.courseViewTypeList,(function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:Number(t.value),disabled:e.checkCourseView(Number(t.value))}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[s("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[s("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),s("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[s("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),1==e.tenantId?s("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[s("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[s("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),s("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1):e._e(),e._v(" "),s("div",{staticClass:"head"},[e._v("人员配置:")]),e._v(" "),s("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[s("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,a){return s("el-option",{key:a,attrs:{label:t.userName,value:Number(t.userId)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[s("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[s("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,a){return s("el-option",{key:a,attrs:{label:t.userName,value:t.userId}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),s("el-form-item",{attrs:{label:"衔接老师",prop:"transactionTeacherId"}},[s("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,a){return s("el-option",{key:a,attrs:{label:t.userName,value:t.userId}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),s("div",{staticClass:"head"},[e._v("乐团设置:")]),e._v(" "),s("el-form-item",{attrs:{label:"同步群消息",prop:"homeworkPushFlag","label-width":"200px",rules:[{required:!0,message:"同步群消息不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[s("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 开课后作业同步群消息\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 学员提交乐团课后作业时,群聊中是否发送作业提交消息\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),s("el-switch",{attrs:{disabled:e.basdisabled,"active-value":1,"inactive-value":0},model:{value:e.topFrom.homeworkPushFlag,callback:function(t){e.$set(e.topFrom,"homeworkPushFlag",t)},expression:"topFrom.homeworkPushFlag"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"是否赠送辅件",prop:"memberCourseShowFlag","label-width":"200px",rules:[{required:!0,message:"是否赠送辅件不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[s("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 是否赠送辅件\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("购买团练宝是否赠送辅件")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),s("el-switch",{attrs:{disabled:e.basdisabled,"active-value":1,"inactive-value":0},model:{value:e.topFrom.isGiveAccessories,callback:function(t){e.$set(e.topFrom,"isGiveAccessories",t)},expression:"topFrom.isGiveAccessories"}})],1),e._v(" "),s("br"),e._v(" "),"teamDraft"==e.teamStatus?s("el-form-item",{attrs:{label:""}},[s("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),s("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():s("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?s("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},r=[],i=(s("28a5"),s("a481"),s("ac6a"),s("5df3"),s("7f7f"),s("96cf"),s("1da1")),n=s("1cc7"),o=s("5a0c"),l=s.n(o),c=s("7676"),u=s.n(c),m=s("99b4"),p=s("641c"),d=s("92e3"),h=s("61f7"),f=s("879d"),b={components:{mergeMusic:f["a"],qrCode:p["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return{classStatus:d["h"],courseViewTypeList:d["r"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:null,name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",homeworkPushFlag:1,isGiveAccessories:0,memberCourseShowFlag:0,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,tenantId:""}},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 s,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(s=this.$helpers.lodash,a=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),s.isEqual(this.topFrom,a)||!a){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(i["a"])(regeneratorRuntime.mark((function e(){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.gotoNext(t);case 2:return s=e.sent,console.log(s),e.abrupt("return",s);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(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.tenantId=this.$helpers.tenantId,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var s,a=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==a&&void 0!==a&&a.section)this.topFrom=a,null!==(s=this.topFrom)&&void 0!==s&&s.section&&this.getBaseList(this.topFrom.section);else Object(n["Rb"])({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),Promise.all([Object(n["Xb"])({rows:1e3}),Object(n["hb"])()]).then((function(e){200==e[0].code&&(t.typeList=e[0].data.rows),200==e[1].code&&(t.sectionList=e[1].data);var s=[];t.sectionList.length<=0?s.push("organ"):t.topFrom.section||(t.$set(t.topFrom,"section",t.sectionList[0].id),t.changeSection(t.sectionList[0].id)),t.typeList.length<=0&&s.push("teamPayType"),t.$bus.$emit("showguide",s)}))},changeSection:function(e){this.topFrom.teacher=null,this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",e&&this.getBaseList(e)},getBaseList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var s,a,r,i,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(n["xb"])({id:t});case 3:i=e.sent,this.educationList=null===i||void 0===i||null===(s=i.data)||void 0===s?void 0:s.EDUCATION,this.technician=null===i||void 0===i||null===(a=i.data)||void 0===a?void 0:a.REPAIR,this.transactionList=null===i||void 0===i||null===(r=i.data)||void 0===r?void 0:r.JOIN_TEACHER,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:Object(n["Pb"])({organId:t}).then((function(e){200==e.code&&(o.teacherList=e.data)})),Promise.all([Object(m["E"])({organId:t}),Object(m["t"])({organId:t})]).then((function(e){200==e[0].code&&(o.cooperationList=e[0].data),200==e[1].code&&(o.addList=e[1].data);var t=[];o.cooperationList.length<=0&&t.push("cooperationOrgan"),o.addList.length<=0&&t.push("school"),t.length>0&&o.$bus.$emit("showguide",t)}));case 14:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){var t=this;this.topFrom.teacher=null,e&&(console.log(this.cooperationList),this.cooperationList.forEach((function(s){s.id==e&&(console.log(s),t.$set(t.topFrom,"teacher",s.educationUserId),console.log(t.topFrom))}))),console.log("chioseSchool",this.topFrom.teacher)},gotoNext:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var s,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){a.$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}a.$message.error("请填写建团必要参数"),e(!1),r.next=16;break;case 5:if(a.$store.dispatch("topinfo",a.topFrom),"teamAudit"!=a.teamStatus){r.next=10;break}a.$emit("handleClick",{name:"2"}),r.next=16;break;case 10:return a.$emit("getName",a.topFrom.name),r.next=13,a.resetSubmit(t);case 13:s=r.sent,console.log(s,"tempStatus"),e(s);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 s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){s.$refs["topinfo"].validate(function(){var r=Object(i["a"])(regeneratorRuntime.mark((function r(o,c){var m,p;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o){r.next=5;break}s.$message.error("请填写必要参数"),a(),r.next=26;break;case 5:m=null,r.t0=s.teamStatus,r.next="resetTeam"===r.t0?9:"newTeam"===r.t0?11:"teamList"===r.t0?13:"teamDraft"===r.t0?15:17;break;case 9:return m="PROGRESS",r.abrupt("break",17);case 11:return m="DRAFT",r.abrupt("break",17);case 13:return m=null,r.abrupt("break",17);case 15:return m="DRAFT",r.abrupt("break",17);case 17:if(p={},p.musicGroup={settlementType:s.topFrom.salary,applyExpireDate:l()(s.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:s.topFrom.type,cooperationOrganId:s.topFrom.school,courseViewType:s.topFrom.courseViewType,teamTeacherId:s.topFrom.boss,enrollClasses:s.topFrom.startClass.join(","),name:s.topFrom.name,paymentPattern:s.topFrom.paymentPattern,paymentValidStartDate:s.topFrom.paymentValidStartDate?l()(s.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):s.topFrom.paymentValidStartDate,paymentValidEndDate:s.topFrom.paymentValidEndDate?l()(s.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):s.topFrom.paymentValidEndDate,organId:s.topFrom.section,schoolId:s.topFrom.address,id:s.teamid,directorUserId:s.topFrom.head,isClassroomLessons:s.topFrom.isClass,status:m,expectStartGroupDate:s.topFrom.startTime,ownershipType:s.topFrom.ownershipType,repairUserId:s.topFrom.repairUserId||null,feeType:s.topFrom.feeType,transactionTeacherId:s.topFrom.transactionTeacherId,homeworkPushFlag:s.topFrom.homeworkPushFlag,isGiveAccessories:s.topFrom.isGiveAccessories,memberCourseShowFlag:s.topFrom.memberCourseShowFlag},"newTeam"==s.teamStatus){r.next=25;break}return r.next=22,Object(n["Bc"])(p).then(function(){var a=Object(i["a"])(regeneratorRuntime.mark((function a(r){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:200==r.code&&(localStorage.setItem("".concat(s.teamid,"base"),JSON.stringify(s.topFrom)),s.$emit("getBaseInfo"),"teamDraft"==s.teamStatus?(s.$message.success("保存成功"),t||s.$emit("handleClick",{name:"2"}),e(!0)):s.$message.success("修改乐团成功"),e(!0));case 1:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}());case 22:return r.abrupt("return",r.sent);case 25:Object(n["A"])(p).then((function(e){if(200==e.code){var t=s.$createElement;s.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新乐团基础信息创建完成"),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return s.$router.push({query:u()(s.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),s.$emit("getName",s.topFrom.name),s.$emit("handleClick",{name:"2"}),!0})).catch((function(){return s.$router.push({query:u()(s.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),s.$emit("getName",s.topFrom.name),s.init(),!0}))}}));case 26:case"end":return 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,homeworkPushFlag:1,isGiveAccessories:0,memberCourseShowFlag:0},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(n["Hb"])(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(n["ec"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var s=this;this.$refs[e].validate((function(e){e&&(t?Object(n["G"])({musicGroupId:s.teamid,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长缴费成功"),s.extendPaymentStatus=!1,Object(n["Rb"])({musicGroupId:s.teamid}).then((function(e){200==e.code&&(s.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):s.$message.error(e.msg)})):Object(n["F"])({musicGroupId:s.teamid,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长报名成功"),s.extendPaymentStatus=!1,Object(n["Rb"])({musicGroupId:s.teamid}).then((function(e){200==e.code&&(s.applyExpireDate=e.data.musicGroup.applyExpireDate,s.setBase(e))}))):s.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(h["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var s=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(h["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(h["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:u()(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.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||"",this.topFrom.homeworkPushFlag=e.data.musicGroup.homeworkPushFlag,this.topFrom.isGiveAccessories=e.data.musicGroup.isGiveAccessories?1:0,this.topFrom.memberCourseShowFlag=e.data.musicGroup.memberCourseShowFlag?1:0,localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))},checkCourseView:function(e){return"newTeam"!=this.teamStatus&&"teamDraft"!=this.teamStatus&&(0!=this.topFrom.courseViewType&&1!=this.topFrom.courseViewType&&(0==e||1==e))}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var s in e.classStatus)if(t==e.classStatus[s].value)return e.classStatus[s].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},v=b,y=(s("6193"),s("bb76"),s("2877")),g=Object(y["a"])(v,a,r,!1,null,"11ba5201",null);t["a"]=g.exports},"81fd":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticStyle:{background:"#f3f4f8",overflow:"hidden"}},[s("tips"),e._v(" "),s("course-model",{attrs:{courseViewType:e.courseViewType,courseShowInfo:e.courseShowInfo,remissionCourseFeeStatus:e.remissionCourseFeeStatus,courseInfo:e.courseInfo,trainSmallBg:e.trainSmallBg,serviceValidDate:e.serviceValidDate,cloudTeacherFee:e.cloudTeacherFee,chargeTypeName:e.chargeTypeName,memberCoursePrice:e.memberCoursePrice,memberCourseShowFlag:e.memberCourseShowFlag},on:{onCourseChange:e.onCheckItem,onQuestions:e.onQuestions}}),e._v(" "),e.toolsPackage&&e.toolsPackage.length>0?s("member",{attrs:{toolsPackage:e.toolsPackage,isGiveAccessories:e.isGiveAccessories,accessStatus:e.accessOries.length>0},on:{onCheckItem:e.onCheckItem}}):e._e(),e._v(" "),s("instrument-model",{attrs:{instrumentResultList:e.instrumentResultList,buyMaintenance:e.buyMaintenance,trainSmallBg:e.trainSmallBg,courseViewType:e.courseViewType,toolsPackage:e.toolsPackage,organId:e.organId},on:{instrumentF:e.onCheckItem,onQuestions:e.onQuestions}}),e._v(" "),e.instrumentRepair&&e.instrumentRepair.length>0?s("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[s("h2",{staticClass:"titles"},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("乐器保养")])]),e._v(" "),s("div",{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:6}},[e._v("价格")])],1),e._v(" "),e._l(e.instrumentRepair,(function(t,a){return s("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(s){return e.onCheckItem(t)}}},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":"",t.noSelect?"noSelect":""]}),e._v("\n "+e._s(t.name)+"\n\t\t\t\t\t")]),e._v(" "),s("el-col",{attrs:{span:6}},[s("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"(年)")])]),e._v(" "),s("el-col",{attrs:{span:6}},[s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])])],1)}))],2)]):e._e(),e._v(" "),s("accessories",{attrs:{trainSmallBg:e.trainSmallBg,accessOries:e.accessOries,isGiveAccessories:e.giveAccessoriesStatus},on:{onAuxiliarie:e.onCheckItem}}),e._v(" "),e.activityList&&e.activityList.length>0?s("activity",{attrs:{trainSmallBg:e.trainSmallBg,activityList:e.activityList},on:{onCheckItem:e.onCheckItem}}):e._e()],1)},r=[],i=(s("c5f6"),s("456d"),s("2909")),n=(s("7f7f"),s("ac6a"),s("96cf"),s("1da1")),o=s("ec8a"),l=s("1cc7"),c=s("5a0c"),u=s.n(c),m=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},p=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"paymentTips"},[s("h2",{staticClass:"titleTips",staticStyle:{"padding-top":"12px"}},[e._v("注册说明")]),e._v(" "),s("div",{staticClass:"noticeInfo"},[e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),s("br"),e._v("\n 2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n ")])])}],d=(s("fc99"),s("2877")),h={},f=Object(d["a"])(h,m,p,!1,null,"338c14ea",null),b=f.exports,v=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[1==e.courseViewType&&e.courseShowInfo.length>0?[s("div",{staticClass:"yunTrain"},[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("\n 服务有效期:"+e._s(e.serviceValidDate)+"\n ")]):e._e()])])]:e._e(),e._v(" "),(0==e.courseViewType||2==e.courseViewType)&&e.courseInfo.length>0?s("h2",{staticClass:"titles"},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("乐团课程")])]):e._e(),e._v(" "),e.courseInfo?[(0==e.courseViewType||2==e.courseViewType)&&e.courseInfo.length>0?s("div",{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:6}},[e._v("价格")])],1),e._v(" "),e._l(e.courseInfo,(function(t,a){return s("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(s){return e.onCheckItem(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:6}},[s("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.courseTotalMinuties)+"(分钟)")])]),e._v(" "),s("el-col",{attrs:{span:6}},[s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.remissionCourseFeeStatus?0:t.courseCurrentPrice)))])])],1)}))],2):e._e(),e._v(" "),1==e.courseViewType&&e.courseShowInfo.length>0?s("div",{staticClass:"section"},e._l(e.courseShowInfo,(function(t,a){return s("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(s){return e.onCheckItem(t)}}},[s("el-col",{attrs:{span:16}},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"disabled":""]}),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",{attrs:{name:"question"},on:{click:function(t){return t.stopPropagation(),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(" "),e.memberCourseShowFlag&&2==e.courseViewType?s("div",{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:6}},[e._v("现价")])],1),e._v(" "),e._l(e.memberCoursePrice,(function(t){return s("el-row",{key:t.name,staticClass:"option-row",staticStyle:{"line-height":"20px","padding-top":"8px","font-size":"12px"}},[s("el-col",{staticStyle:{"padding-left":"24px",color:"#808080",position:"relative"},attrs:{span:12}},[s("i",{staticClass:"small_point"}),e._v(" "+e._s(t.name))]),e._v(" "),s("el-col",{attrs:{span:6}},[s("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])]),e._v(" "),s("el-col",{attrs:{span:6}},[s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))])])],1)}))],2):e._e()]:e._e()],2)},y=[],g={name:"courseModel",props:{courseViewType:[Number,String],courseShowInfo:Array,courseInfo:Array,toolsPackage:Array,trainSmallBg:String,cloudTeacherFee:[Number,String],serviceValidDate:String,chargeTypeName:String,memberCoursePrice:Array,memberCourseShowFlag:Boolean,remissionCourseFeeStatus:Boolean},components:{},data:function(){return{trainBg:s("31f0"),videoStatus:!1}},methods:{onCheckItem:function(e){this.$emit("onCourseChange",e)},onQuestions:function(e){this.$emit("onQuestions",e)}}},_=g,S=(s("1c40"),Object(d["a"])(_,v,y,!1,null,"83c4ef90",null)),w=S.exports,k=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"instrumentModel"},[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.length>0?s("div",{staticClass:"section"},e._l(e.instrumentResultList,(function(t,a){return s("div",{key:a},[s("el-row",{staticClass:"title-row"},[s("el-col",{attrs:{span:13}},["GROUP"==t[0]["kitType"]?[e._v("\n 团购乐器\n ")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("\n 乐器租赁\n ")]:e._e(),e._v(" "),"FREE"==t[0]["kitType"]?[e._v("\n 免费乐器\n ")]:e._e(),e._v(" "),"owned"==t[0]["kitType"]?[e._v("\n 自备乐器\n ")]:e._e()],2),e._v(" "),s("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[["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},[s("div",{on:{click:function(s){return e.instrumentF(t)}}},[s("el-row",{staticClass:"option-row"},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),s("div",[e._v("\n "+e._s(t.name)+"\n ")])]),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(" "),s("el-row",{staticStyle:{"padding-left":"26px","margin-bottom":"5px"}},[s("el-col",{attrs:{span:24}},[s("div",{staticStyle:{display:"flex","align-items":"center"}},[t.goodsList?s("div",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v("\n "+e._s(t.goodsList[0].specification)+"\n ")]):e._e(),e._v(" "),1==t.groupRemissionCourseFee&&"GROUP"==t.kitType?s("el-tag",{staticStyle:{"margin-left":"10px",color:"#ff4644"},attrs:{effect:"plain",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.onLookRule(t)}}},[e._v("课程减免")]):e._e()],1)])],1)],1)])}))],2)})),0):e._e()])},x=[],T={name:"instrumentModel",props:{courseViewType:[Number,String],instrumentResultList:Array,buyMaintenance:Boolean,trainSmallBg:String,toolsPackage:Array,organId:[Number,String,null]},methods:{instrumentF:function(e){this.$emit("instrumentF",e,"INSTRUMENT")},onQuestions:function(e){this.$emit("onQuestions",e)}},computed:{toolsPackages:function(){return this.toolsPackage[0].isStatus}}},F=T,C=(s("a358"),Object(d["a"])(F,k,x,!1,null,"e771b43e",null)),I=C.exports,O=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[e.accessOries.length>0?s("h2",{staticClass:"titles"},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("辅件")])]):e._e(),e._v(" "),e.accessOries.length>0?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(s){return e.onAuxiliarie(t)}}},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[t.isStatus?"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")(e.isGiveAccessories?0:t.price)))])])],1),e._v(" "),t.childGoodsList?s("el-row",{staticStyle:{"padding-left":"24px"}},e._l(t.childGoodsList,(function(a,r){return s("el-col",{key:a.id},[s("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+"\n "+e._s(t.childGoodsList.length-1==r?"":"、"))])])})),1):e._e()],1)}))],2):e._e()])},j=[],P={name:"courseModel",props:{trainSmallBg:String,accessOries:Array,isGiveAccessories:Boolean},data:function(){return{}},methods:{onAuxiliarie:function(e){this.$emit("onAuxiliarie",e)}}},L=P,D=(s("b56c"),Object(d["a"])(L,O,j,!1,null,"72518692",null)),R=D.exports,A=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[s("h2",{staticClass:"titles"},[s("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),s("span",[e._v("小班课")])]),e._v(" "),s("div",{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:6}},[e._v("价格")])],1),e._v(" "),e._l(e.activityList,(function(t,a){return s("div",{key:a},[s("el-row",{staticClass:"option-row",nativeOn:{click:function(s){return e.onCourseChange(t)}}},[s("el-col",{attrs:{span:12}},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":""]}),e._v(" "),s("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.categoryName))]],2)]),e._v(" "),s("el-col",{attrs:{span:6}},[s("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"(节)")])]),e._v(" "),s("el-col",{attrs:{span:6}},[s("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])])],1)],1)}))],2)])},E=[],N={name:"courseModel",props:{trainSmallBg:String,activityList:Array},methods:{onCourseChange:function(e){this.$emit("onCheckItem",e)}}},G=N,$=(s("7400"),Object(d["a"])(G,A,E,!1,null,"f72077ca",null)),M=$.exports,V=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[[a("div",{staticClass:"yunTrain"},[a("img",{attrs:{src:e.trainBg}}),e._v(" "),a("div",{staticClass:"toolText"},[a("p",{staticClass:"toolTitle"},[e._v("\n 团练宝\n "),a("span",{on:{click:function(t){e.videoStatus=!0}}},[e._v("查看视频"),a("i",{staticClass:"icon_video"})])]),e._v(" "),a("p",{staticClass:"toolDate"},[e._v("\n 购买后由机构根据教学情况,激活使用详细问题请咨询机构老师\n ")])])])],e._v(" "),a("div",{staticClass:"section"},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},[e._v("练习系统"+e._s(e.isGiveAccessories&&e.accessStatus?"(赠送辅件一套)":null))]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("时长")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[e._v("价格")])],1),e._v(" "),e._l(e.toolsPackage,(function(t,s){return a("div",{key:s},[a("el-row",{staticClass:"option-row",nativeOn:{click:function(s){return e.onTrainChange(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":""]}),e._v(" "),a("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.name))]],2)]),e._v(" "),a("el-col",{attrs:{span:6}},[a("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"("+e._s(e._f("unitFormat")(t.period))+")")])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])])],1),e._v(" "),t.childGoodsList?a("el-row",{staticStyle:{"padding-left":"24px"}},e._l(t.childGoodsList,(function(s,r){return a("el-col",{key:s.name},[a("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(s.name)+"\n "+e._s(t.childGoodsList.length-1==r?"":"、"))])])})),1):e._e()],1)}))],2),e._v(" "),a("el-dialog",{staticClass:"videoDialog",attrs:{title:"视频",visible:e.videoStatus,"modal-append-to-body":!1,"append-to-body":!0,width:"30%"},on:{"update:visible":function(t){e.videoStatus=t}}},[e.videoStatus?a("video",{staticClass:"ql-video",staticStyle:{width:"100%"},attrs:{controls:"controls",src:"https://daya.ks3-cn-beijing.ksyun.com/202105/SWmqmvW.mp4",poster:s("df4f")}}):e._e()])],2)},q=[],U={name:"courseModel",props:{courseViewType:[Number,String],toolsPackage:Array,trainSmallBg:String,isGiveAccessories:Boolean,accessStatus:Boolean},data:function(){return{trainBg:s("31f0"),videoStatus:!1}},methods:{onTrainChange:function(e){this.$emit("onCheckItem",e,"train")},onQuestions:function(e){this.$emit("onQuestions",e)}},filters:{unitFormat:function(e){var t={YEAR:"年",MONTH:"月",QUARTERLY:"季度",YEAR_HALF:"半年"};return t[e]}}},B=U,H=(s("1390"),Object(d["a"])(B,V,q,!1,null,"3c684646",null)),Y=H.exports,z={props:["subjectId","calenderId","preViewData"],components:{Tips:b,courseModel:w,InstrumentModel:I,accessories:R,activity:M,member:Y},data:function(){var e=this.$route.query;return{videoStatus:!1,trainBg:s("31f0"),trainSmallBg:s("9214"),musicGroupId:e.id,organId:null,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:[],instrumentRepair:[],activityList:[],courseInfo:[],courseShowInfo:[],musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,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,memberCoursePrice:[],memberCourseShowFlag:!1,buyCloudTeacher:!1,remissionCourseFeeStatus:!1,isGiveAccessories:!1,giveAccessoriesStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId,calenderId:this.calenderId},e.next=3,Object(l["Nb"])(t).then((function(e){var t=e;if(200==t.code){var a=t.data;s.__dataFormat(a)}s.calcPrice()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),__dataFormat:function(e){var t,s=this,a=this.preViewData?JSON.parse(JSON.stringify(this.preViewData)):null;this.courseViewType=e.musicGroup.courseViewType||0,this.isGiveAccessories=e.musicGroup&&e.musicGroup.isGiveAccessories||!1,this.organId=e.musicGroup.organId;var r=e.musicGroup.status;this.cloudTeacherFee=e.cloudTeacherFee||0,this.cloudTeacherPlusFee=e.cloudTeacherPlusFee||0;var n=e.memberCoursePrice||{};for(var o in n)this.memberCoursePrice.push({name:coursesType[o],price:n[o]});this.memberCourseShowFlag=e.musicGroup.memberCourseShowFlag||!1,this.paymentPattern=2,e.musicGroupPaymentCalender&&(this.paymentPattern=e.musicGroupPaymentCalender.paymentPattern,this.serviceValidDate=u()(e.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+u()(e.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var l=a?a.paymentCalender:e.paymentCalender||null,c=l&&l.course?l.course:[],m=e.memberPrivilegesItemList?e.memberPrivilegesItemList:[],p=[];m.forEach((function(e){e.memberPrivilegesItems&&e.memberPrivilegesItems.length>0&&e.memberPrivilegesItems.forEach((function(e){p.push(e.name)}))}));var d=l&&l.member?l.member:{};d.isStatus=!0,this.toolsPackage=d.actualAmount?[d]:[];var h=l&&l.repair?l.repair:{};h.name="乐器保养",h.isStatus=!0,this.instrumentRepair=h.actualAmount?[h]:[];var f=l&&l.activity?l.activity:[];f.map((function(e){e.isStatus=!0})),this.activityList=Object(i["a"])(f),c&&c.length>0&&(c.forEach((function(e){e.isStatus=!0})),this.courseInfo=c),this.musicGroupSubject=e.musicGroupSubjectPlan||[];var b={},v=[],y="SCHOOL"==(null===(t=this.preViewData)||void 0===t?void 0:t.payUserType)||"PROGRESS"==r?[]:e.musicGroupSubjectGoodsGroupList;if(null===y||void 0===y||y.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{},a=function(a){var r=Object.assign({},e);r.marketPrice=r.goodsList[0].marketPrice,r.kitType=a,r.coupon=t[a],r.discountPrice=r.goodsList[0].discountPrice,b.id?(r.isStatus=!1,"GROUP"==a?("GROUP"==b.kitType&&b.price<r.price||"LEASE"==b.kitType||"FREE"==b.kitType)&&(s.instrumentResult.forEach((function(e){e.isStatus=!1})),r.isStatus=!0,b={id:r.id,price:r.price,kitType:a,groupRemissionCourseFee:r.groupRemissionCourseFee}):"LEASE"==a?"LEASE"==b.kitType&&b.price<r.price&&(s.instrumentResult.forEach((function(e){e.isStatus=!1})),r.isStatus=!0,b={id:r.id,price:r.price,kitType:a,groupRemissionCourseFee:r.groupRemissionCourseFee}):"FREE"==a&&"FREE"==b.kitType&&b.price<r.price&&(s.instrumentResult.forEach((function(e){e.isStatus=!1})),r.isStatus=!0,b={id:r.id,price:r.price,kitType:a,groupRemissionCourseFee:r.groupRemissionCourseFee})):(r.isStatus=!0,b={id:r.id,price:r.price,kitType:a,groupRemissionCourseFee:r.groupRemissionCourseFee});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("、")),s.instrumentResult.push(r),v.push(r)};for(var r in t)a(r)}else"ACCESSORIES"==e.type&&(e.isStatus=!0,s.accessOries.push(e))})),this.instrumentResult.length>0){var g=this.groupBy(v,(function(e){return[e.kitType]}));this.instrumentResultList=g,this.instrumentGetStatus(),this.setLeBaoStatus()}this.giveAccessoriesSetStatus(),this.calcPrice()},groupBy:function(e,t){var s={};return e.forEach((function(e){var a=JSON.stringify(t(e));s[a]=s[a]||[],s[a].push(e)})),Object.keys(s).map((function(e){return s[e]}))},onQuestions:function(e){"amr"==e?this.$alert("<b>革命性的“AMR器乐练习系统”</b><br />它的诞生是基于世界上最优秀的华人管乐指导专家唐嘉宏先生的教育理念,创新开发的一种新型“音乐感官植入程序”,这个程序抛弃了传统的“数线式识谱、机械式节奏、死记式乐理”,它营造出沉浸式可变速演奏过程,采用画面与音乐刺激序列组合而成的特定场景,在趣味性挑战的反复刺激中逐步促进器乐演奏的三核心:“音质→音准→音型”,从而达成演奏各环节水准的均匀提高,产生永久性条件反射式大脑记忆,将多板块知识融会贯通,让抽象的音乐知识刻入脑海里!<br /><br /><b>本练习系统的特点:</b><br /> 1.轻松快速掌握要点,让练习者沉浸其中,远离枯燥!<br /> 2.不假思索就能瞬间唤起反射式记忆,演奏识谱不再慢吞吞!<br /> 3.真正的实践记忆,摆脱纸上谈兵,与实际演奏紧密结合!<br />4.思维+肌肉的双重强化!无缝整合复习系统!<br /> 5.每条练习都经过严谨的编曲,你以为你只是在练习旋律线?其实是整个乐团在为你伴奏!","AMR器乐练习系统",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}}):"instrument"==e&&this.$alert('<p style="text-align: justify">1.乐器保养是管乐迷针对乐团学员提供的乐器检查、保养及维修优惠特权;<br />2.该特权为包年制,从开通特权之日起365天内有效;<br />3.特权用户可享受管乐迷提供专业的高级乐器维修技师一年不低于两次下校检查乐器使用情况;<br />4.特权有效期内凭该特权绑定的乐器编号可享受保养人工费减免、非返厂维修人工费优惠等特权;<br />感谢您的信任和支持!</p>',"乐器保养特权",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}})},onCheckItem:function(e,t){e.optionalFlag||e.noSelect||("INSTRUMENT"==t&&this.instrumentResultList.forEach((function(t){t.forEach((function(t){(t.id!=e.id||t.id==e.id&&t.kitType!=e.kitType)&&(t.isStatus=!1)}))})),e.isStatus=!e.isStatus,"train"==t&&this.giveAccessoriesSetStatus(),this.instrumentGetStatus(),this.setLeBaoStatus(),this.calcPrice())},giveAccessoriesSetStatus:function(){var e=!1;this.toolsPackage.forEach((function(t){e=!!t.isStatus})),this.giveAccessoriesStatus=this.isGiveAccessories&&e},instrumentGetStatus:function(){var e={};this.instrumentResultList.forEach((function(t){t.forEach((function(t){t.isStatus&&(e=t)}))})),this.remissionCourseFeeStatus="GROUP"==e.kitType&&1==e.groupRemissionCourseFee},setLeBaoStatus:function(){var e=!1;this.instrumentResultList.forEach((function(t){t.forEach((function(t){t.isStatus&&(e=!0)}))})),this.instrumentRepair.forEach((function(t){e?t.noSelect=!1:(t.noSelect=!0,t.isStatus=!1)}))},calcPrice:function(){var e=this,t=[],s=0,a=0,r=0,i=0,n={},o=[],l=0,c=[],u=[],m=0,p=0,d=0,h=0,f=0,b="",v=this.musicGroupSubject,y=this.courseInfo;v&&y.forEach((function(e){e.isStatus&&(p+=parseFloat(e.courseCurrentPrice),e.id>0&&o.push(e.id),e.isStudentOptional||(f+=parseFloat(e.courseCurrentPrice)),a+=parseFloat(e.courseOriginalPrice))}));var g=this.toolsPackage;g.length>0&&g.forEach((function(t){t.isStatus?(e.buyCloudTeacher=!0,a+=parseFloat(t.originalAmount),s+=parseFloat(t.actualAmount)):e.buyCloudTeacher=!1}));var _=this.instrumentResult;_.length>0&&_.forEach((function(t){t.isStatus&&("自备乐器"!=t.name&&(b+=t.goodsIdList),"FREE"==t.kitType?(s+=0,l=0):"LEASE"==t.kitType?(l=t.coupon,"自备乐器"!=t.name?(s+=t.depositFee,r+=t.depositFee):s+=0):"GROUP"==t.kitType&&(2!=e.courseViewType||55!=e.organId||e.toolsPackage[0].isStatus?(s+=parseFloat(t.price),r+=parseFloat(t.price),l=t.coupon?t.coupon:0):(s+=parseFloat(t.discountPrice),r+=parseFloat(t.discountPrice),l=t.coupon?t.coupon:0)),"LEASE"==t.kitType?"自备乐器"!=t.name&&(a+=parseFloat(t.marketPrice),i+=t.depositFee):(a+=parseFloat(t.marketPrice),i+=parseFloat(t.marketPrice)),t.id&&(n[t.id]=t.kitType),"GROUP"==t.kitType&&1==t.groupRemissionCourseFee&&(p=parseFloat(p-f)))}));var S=this.instrumentRepair;S.length>0&&S.forEach((function(t){t.isStatus?(e.buyMaintenance=!0,a+=t.originalAmount,s+=parseFloat(t.actualAmount)):e.buyMaintenance=!1})),s+=parseFloat(m+p),this.accessOries.length>0&&this.accessOries.forEach((function(t){t.isStatus&&(d+=e.giveAccessoriesStatus?0:parseFloat(t.price),s+=e.giveAccessoriesStatus?0:parseFloat(t.price),t.goodsList&&t.goodsList.length>0&&t.goodsList.forEach((function(e){h+=parseFloat(e.marketPrice),a+=parseFloat(e.marketPrice)})),n[t.id]="ACCESSORIES")}));var w=this.activityList;w.length>0&&w.forEach((function(e){e.isStatus&&(u.push(e.id),a+=e.originalAmount,s+=parseFloat(e.actualAmount))}));var k=s;this.payCountMoney=s,this.ids=t,this.needPrice=Number(s.toFixed(2)),this.orderInfo={amount:Number(s.toFixed(2)),marketPrice:Number(a.toFixed(2)),groupPurchasePrice:k,couponPrice:l,goodsGroupIds:n,goodsIds:c.join(","),contractGoodsIds:b,buyCalenderActivityId:u,courseKeys:o,musicClassFee:p,accessMarketPrice:h,accessPrice:d,goodsPrice:r,goodsMarketPrice:i}},permission:function(e){return Object(o["a"])(e)}}},W=z,J=(s("eadf"),Object(d["a"])(W,a,r,!1,null,"50b34e56",null));t["a"]=J.exports},8550:function(e,t,s){},"86e8":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div")},r=[],i={},n=i,o=s("2877"),l=Object(o["a"])(n,a,r,!1,null,"21abf8f1",null);t["a"]=l.exports},"879d":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"merge-music"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?s("empty",{attrs:{desc:"暂未选择乐团"}}):s("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,a){return s("el-collapse-item",{key:a,staticClass:"item",attrs:{name:a},scopedSlots:e._u([{key:"title",fn:function(){return[s("div",{staticClass:"header"},[s("span",{staticClass:"title"},[s("span",[e._v(e._s(t.name))])]),e._v(" "),s("span",{staticStyle:{width:"20%"}},[s("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),s("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(a)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),s("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),s("div",{staticClass:"btns"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),s("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[s("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),s("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?s("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},r=[],i=(s("96cf"),s("1da1")),n=s("5530"),o=s("b85c"),l=(s("ac6a"),s("456d"),s("160b")),c=s("3078"),u=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"container",staticStyle:{width:"100%"}},[s("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[s("el-form-item",{attrs:{prop:"musicGroupName"}},[s("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),s("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),s("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),s("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},m=[],p=(s("386d"),s("7f7f"),s("333d")),d={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 s in e){var a={};a.id=e[s].id,a.name=e[s].name,t.push(a)}this.passed=t},FetchList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])(Object(n["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==s.$route.query.id})),this.rules.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},h=d,f=(s("1aa8"),s("2877")),b=Object(f["a"])(h,u,m,!1,null,"64b6b690",null),v=b.exports,y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[s("el-form-item",{attrs:{prop:"keyword"}},[s("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),s("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},g=[],_=(s("6762"),s("2fdb"),s("1672")),S={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var s=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return s}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var s in e)t.push(e[s].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(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(_["e"])({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,s=e._self._c||t;return s("div",[s("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[s("el-form-item",{attrs:{prop:"keyword"}},[s("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机、编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),s("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),s("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},F=[],C=s("1cc7"),I={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var s=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return s}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var s in e)t.push(e[s].userId);this.passed=t},removeStuden:function(){var e=Object(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["Vb"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},O=I,j=Object(f["a"])(O,T,F,!1,null,null,null),P=j.exports,L={props:["organId"],components:{selectMusic:v,selectItem:x,mergedStudents:P},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,s={},a=Object(o["a"])(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;s[r.id]?s[r.id]=Object(n["a"])(Object(n["a"])({},s[r.id]),r):s[r.id]=Object(n["a"])(Object(n["a"])({},r),{},{num:0})}}catch(i){a.e(i)}finally{a.f()}this.items=s},remove:function(e){var t=Object(n["a"])({},this.items),s=Object(n["a"])({},this.studentsByMusicId);delete t[e],delete s[e],this.items=Object(n["a"])({},t),this.studentsByMusicId=Object(n["a"])({},s)},selected:function(e,t){var s=this.studentsByMusicId;s[t]||(s[t]=[]),s[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=s},merge:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,s,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(s in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,s)&&(a=this.studentsByMusicId[s],t=t.concat(a));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(c["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var s in e)t.push(e[s].id);this.passed=t},FetchList:function(){var e=Object(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,R=(s("170f"),Object(f["a"])(D,a,r,!1,null,"7b47f2d4",null));t["a"]=R.exports},"8d3c":function(e,t,s){"use strict";s("996a")},"90d9":function(e,t,s){"use strict";s("aafa")},9112:function(e,t,s){},9214:function(e,t,s){e.exports=s.p+"static/img/yunTrain_small_bg.b5242407.png"},"923a":function(e,t,s){"use strict";s("1d5b")},"92e3":function(e,t,s){"use strict";s.d(t,"q",(function(){return l})),s.d(t,"z",(function(){return c})),s.d(t,"o",(function(){return u})),s.d(t,"c",(function(){return m})),s.d(t,"w",(function(){return p})),s.d(t,"L",(function(){return d})),s.d(t,"K",(function(){return h})),s.d(t,"d",(function(){return f})),s.d(t,"D",(function(){return b})),s.d(t,"s",(function(){return v})),s.d(t,"N",(function(){return y})),s.d(t,"p",(function(){return g})),s.d(t,"k",(function(){return _})),s.d(t,"M",(function(){return S})),s.d(t,"G",(function(){return w})),s.d(t,"P",(function(){return k})),s.d(t,"Q",(function(){return x})),s.d(t,"F",(function(){return T})),s.d(t,"I",(function(){return F})),s.d(t,"u",(function(){return C})),s.d(t,"h",(function(){return I})),s.d(t,"J",(function(){return O})),s.d(t,"O",(function(){return j})),s.d(t,"A",(function(){return P})),s.d(t,"i",(function(){return L})),s.d(t,"r",(function(){return D})),s.d(t,"E",(function(){return R})),s.d(t,"f",(function(){return A})),s.d(t,"e",(function(){return E})),s.d(t,"C",(function(){return N})),s.d(t,"B",(function(){return G})),s.d(t,"H",(function(){return $})),s.d(t,"y",(function(){return M})),s.d(t,"a",(function(){return V})),s.d(t,"t",(function(){return q})),s.d(t,"l",(function(){return U})),s.d(t,"j",(function(){return B})),s.d(t,"m",(function(){return H})),s.d(t,"g",(function(){return Y})),s.d(t,"x",(function(){return z})),s.d(t,"n",(function(){return W})),s.d(t,"v",(function(){return J})),s.d(t,"b",(function(){return K}));var a=s("b85c"),r=s("3835"),i=s("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var o=n.tenantId,l=null,c=null;1==o?(c=[{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:"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"}]):(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],l=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}]);var u=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],m=[{label:"正常签到",value:1},{label:"异常签到",value:0}],p=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],h=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],f=[].concat(h,[{value:"QUIT_SCHOOL",label:"退学"}]),b=[{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:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{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:"其他"}],v=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],y=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],_=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],S=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],w=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],k=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],x=[{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:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],T=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],F=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],C=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],I=[{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:"高三"}],O=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],j=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],P=Q(i["musicGroupType"]),L=Q(i["classTime"]),D=Q(i["courseViewType"]),R=Q(i["payOrderType"]),A=Q(i["auditType"]),E=Q(i["auditPaymentType"]),N=Q(i["orderServerType"]),G=Q(i["orderAuditType"]),$=Q(i["rewardModeType"]),M=Q(i["musicClassType"]),V=Q(i["ProbationPeriodStatus"]),q=Q(i["downListType"]),U=Q(i["conclusion"]),B=Q(i["clientType"]),H=Q(i["couponType"]),Y=Q(i["backType"]),z=Q(i["memberEnum"]),W=Q(i["coupontypeDetail"]),J=Q(i["issue"]);function Q(e){var t=[];for(var s in e)t.push({label:e[s],value:s});return t}var K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],s=Object(r["a"])(t,2),i=s[0],n=s[1],o={};if(e&&e.length){var l,c=Object(a["a"])(e);try{for(c.s();!(l=c.n()).done;){var u=l.value;o[u[i]]=u[n]}}catch(m){c.e(m)}finally{c.f()}}return o}},"940a":function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}]},["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&2!=e.courseViewType?s("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&"ADD_STUDENT"!==e.paymentTypeString?s("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,rowDetail:e.rowDetail,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType,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?[s("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),s("extraClassUser",{ref:"eclass",attrs:{form:e.eclassuser,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclassuser=t},priceChange:e.priceChange,moneyChange:e.syncAllMoney}})]:e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?[2!=e.courseViewType||1!=e.paymentType?s("div",[s("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}})],1):e._e()]:e._e():[s("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),s("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[e.paymentType&&2!=e.paymentType&&2!=e.form.leixing?s("el-alert",{staticClass:"alert",staticStyle:{"margin-top":"20px"},attrs:{title:"会员设置",closable:!1,type:"info"}}):e._e(),e._v(" "),e.paymentType&&2!=e.paymentType&&2!=e.form.leixing?s("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,viewDetail:e.nowDetail,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,addStudent:e.showMember,showTime:1==e.paymentType}}):e._e(),e._v(" "),2!=e.courseViewType||1!=e.paymentType||2==e.form.leixing?s("div",[s("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),s("el-form",{ref:"payment",attrs:{model:e.payment}}),e._v(" "),e.isMulticycle&&"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?[s("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,a){return s("el-collapse-item",{key:a,attrs:{name:a}},[s("template",{slot:"title"},[s("div",{staticClass:"collapse-title"},[s("span",[e._v("缴费周期 "+e._s(a+1))]),e._v(" "),e.cycles.length>1?s("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(a)}}}):e._e()])]),e._v(" "),s("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,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(" "),s("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:s("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isCommon:e.isCommon,hidePaymentPattern:!0,isUserType:e.isUserType,hideMoney:"SPAN_GROUP_CLASS_ADJUST"==e.paymentTypeString,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"===e.paymentType||"3"===e.form.leixing,courseViewType:e.courseViewType},on:{"update:form":function(t){e.cycle=t}}})],2):e._e()],e._v(" "),s("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),s("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["SPAN_GROUP_CLASS_ADJUST"!=e.paymentTypeString?s("p",[e._v("\n 缴费总金额:"+e._s(e.money||0)+"元\n ")]):e._e(),e._v(" "),s("div",[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)]),e._v(" "),s("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[s("classrooms",{on:{close:e.closeNext}})],1)],2)},r=[],i=s("15fd"),n=(s("6762"),s("2fdb"),s("2909")),o=s("5530"),l=(s("96cf"),s("1da1")),c=s("b85c"),u=s("d349"),m=s("1cc7"),p=s("1672"),d=s("267e"),h=s("ed08"),f=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[!e.rowDetail&&0!=e.paymentType&&(e.isUserType&&2==e.courseViewType||2!=e.courseViewType)?s("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[s("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[s("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),s("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?s("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[s("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return s("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?s("el-alert",{staticStyle:{"margin-left":"160px",width:"auto","margin-bottom":"20px"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[s("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"类型,若需创建其他类型的收费标准,请先修改乐团基本信息中的乐团收费类型\n "),s("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1196575070)}):e._e()],1)},b=[],v={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail","courseViewType"],mounted:function(){},watch:{paymentType:function(){}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},y=v,g=(s("b376"),s("2877")),_=Object(g["a"])(y,f,b,!1,null,"ff8c09ea",null),S=_.exports,w=s("7a3c"),k=s("0464"),x=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{model:e.list}},[s("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{label:"学员姓名",prop:"username"}}),e._v(" "),s("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),e._v(" "),s("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.courseType[e.list.form[t.$index].courseType])+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"课程时长(分钟)",prop:"courseTime",width:"130"}}),e._v(" "),s("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入现价"},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseCurrentPrice",s)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[s("template",{slot:"header"},[s("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,disabled:"",placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(s){e.$set(e.list.form[t.$index],"courseOriginalPrice",s)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable&&e.$listeners.remove?s("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?s("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(s){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?s("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},T=[],F=s("92e3"),C=s("6612"),I=s.n(C),O=(s("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:d["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(h["b"])(d["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(F["b"])(F["i"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return I()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(s,a,r){var i=t.list.form[e].courseType;i&&a>1&&t.classTimeList[i]&&a<t.classTimeList[i]?r(new Error("单节课不得少于".concat(t.classTimeList[i],"分钟"))):r()}}}}),j=O,P=(s("17a7"),Object(g["a"])(j,x,T,!1,null,"481dfba8",null)),L=P.exports,D=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[s("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),s("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},R=[],A={data:function(){return{list:[]}},methods:{submit:function(){}}},E=A,N=(s("62f6"),Object(g["a"])(E,D,R,!1,null,"37928f5f",null)),G=N.exports,$=s("b133"),M=s("ace5"),V=(s("73b3"),s("7676")),q=s.n(V),U=s("5a0c"),B=s.n(U),H={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},Y={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:S,paymentCycle:w["a"],extraClass:k["a"],extraClassUser:L,classrooms:G,otherform:$["a"],memberSetting:M["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(h["b"])(d["paymentPatternType"]),cloudFee:"",courseViewType:"",memberForm:{memberRankSettingId:"",memberValidDate:"",memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[],num:"",period:""},money:"",isSetCourseSettingsId:!1,isShow:!1}},computed:{showMember:function(){return 3==this.paymentType},musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},nowDetail:function(){return this.viewDetail},isCommon:function(){return"1"===this.form.leixing||"3"===this.form.leixing||2!=this.courseViewType&&"0"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},s=Object(c["a"])(this.charges);try{for(s.s();!(e=s.n()).done;){var a=e.value;t[a.id]=a}}catch(r){s.e(r)}finally{s.f()}return t},paymentAmountDisabled:function(){return(this.isUserType||this.isCommon&&this.isUserType)&&this.isDisabled},isMulticycle:function(){return!1},paymentTypeString:function(){var e="";if(this.viewDetail){var t,s,a,r;this.viewDetail.musicGroupPaymentCalenders;e=(null===(t=this.viewDetail)||void 0===t||null===(s=t.calender)||void 0===s?void 0:s.paymentType)||(null===(a=this.viewDetail)||void 0===a||null===(r=a.auditDto)||void 0===r?void 0:r.paymentType)}return e}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.formatCourse(),this.getCharges()},organizationCourseUnitPriceSettings:function(){this.formatCourse()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),this.$set(this.other,"memo",null),"1"===e?this.eclass=[]:"2"===e&&(this.eclass=[{}])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||this.isSetCourseSettingsId){e.next=11;break}return e.prev=1,e.next=4,Object(p["o"])({id:t});case 4:s=e.sent,this.eclass=s.data.filter((function(e){return!e.isStudentOptional||void 0!==a.paymentType}))||[{}],this.syncAllMoney(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11: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,s,a,r,i,n,l,c,u,d,h,f,b,v,y,g,_,S,w=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===(t=this.baseInfo)||void 0===t||null===(s=t.musicGroup)||void 0===s?void 0:s.organId,this.courseViewType=null===(a=this.baseInfo)||void 0===a||null===(r=a.musicGroup)||void 0===r?void 0:r.courseViewType,2!=this.courseViewType||this.rowDetail||this.isUserType||(this.$set(this.form,"leixing","2"),this.addExtraClass()),this.getCharges(),!this.rowDetail){e.next=50;break}for(i in H)H.hasOwnProperty(i)&&(n=H[i],n===this.rowDetail.paymentType&&(this.$emit("changePaymentType",i),this.$set(this.form,"leixing",i+"")));if(this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),"ADD_STUDENT"!=this.rowDetail.paymentType){e.next=30;break}return e.prev=8,e.next=11,Object(m["tb"])({id:this.rowDetail.id});case 11:f=e.sent,this.viewDetail=f.data,this.eclass=f.data.course||[],this.$set(this.memberForm,"memberRankSettingId",(null===(l=this.viewDetail.member)||void 0===l?void 0:l.memberRankSettingId)||null),this.$set(this.memberForm,"num",(null===(c=this.viewDetail.member)||void 0===c?void 0:c.num)||null),this.$set(this.memberForm,"period",(null===(u=this.viewDetail.member)||void 0===u?void 0:u.period)||null),this.$set(this.memberForm,"memberPaymentAmount",(null===(d=this.viewDetail.member)||void 0===d?void 0:d.actualAmount)||null),this.$set(this.memberForm,"originalMemberPaymentAmount",(null===(h=this.viewDetail.member)||void 0===h?void 0:h.originalAmount)||null),this.$set(this.memberForm,"memberValidDate",[this.viewDetail.calender.startPaymentDate,this.viewDetail.calender.deadlinePaymentDate]),this.$set(this.cycle,"paymentDate",[this.viewDetail.calender.startPaymentDate,this.viewDetail.calender.deadlinePaymentDate]),this.$set(this.other,"memo",this.viewDetail.calender.memo),this.syncAllMoney(),e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](8),console.log(e.t0);case 28:e.next=49;break;case 30:return e.prev=30,e.next=33,Object(p["g"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 33:g=e.sent,this.viewDetail=g.data,_=g.data.musicGroupPaymentCalenders[0]||{},this.eclass=(g.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==w.paymentType})),this.eclassuser=g.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===w.paymentTypeString?Object(o["a"])({},e):e})),this.$set(this.payment,"paymentPattern",String(null===(b=this.viewDetail.auditDto)||void 0===b?void 0:b.paymentPattern)),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",_.paymentPattern+""),S=[_.paymentValidStartDate,_.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[_.startPaymentDate,_.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",S)),this.studentIds=_.studentIds,null!==(v=g.data.auditDto)&&void 0!==v&&v.musicGroupOrganizationCourseSettingsId&&(this.isSetCourseSettingsId=!0),this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(y=g.data.auditDto)||void 0===y?void 0:y.musicGroupOrganizationCourseSettingsId),2==this.courseViewType&&1==this.form.leixing&&this.$set(this.memberForm,"paymentDate",[B()(_.startPaymentDate).format("YYYY-MM-DD"),B()(_.deadlinePaymentDate).format("YYYY-MM-DD")]),this.syncAllMoney(),e.next=49;break;case 47:e.prev=47,e.t1=e["catch"](30);case 49:this.isShow=!0;case 50:case"end":return e.stop()}}),e,this,[[8,25],[30,47]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,s,a=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,r=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,i={},n=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return a&&a==e.organId&&r&&r==e.chargeTypeId})),o=Object(c["a"])(n);try{for(o.s();!(s=o.n()).done;){var l=s.value;i[l.courseType]=l}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=i,i},priceChange:function(e,t){var s=Object(n["a"])(this.eclass),a=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},r=Math.round(I()(a.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=r,e.courseOriginalPrice=r,s[t]=e,this.eclass=Object(n["a"])(s),this.syncAllMoney()},syncAllMoney:function(){if("SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString){var e,t=null===(e=this.viewDetail)||void 0===e?void 0:e.musicGroupPaymentCalenders[0].paymentAmount;return this.$set(this.cycle,"paymentAmount",t),t}var s,a=0,r=0,i=0,n="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,l=Object(c["a"])(n);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(a+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)r+=u.courseCurrentPrice;else{var m=Math.floor(u.courseCurrentPrice/this.cycles.length),p=u.courseCurrentPrice%this.cycles.length;r+=m+p,i+=m}}}catch(d){l.e(d)}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",a),a+=parseFloat(this.memberForm.memberPaymentAmount||0),this.money=a,a},getChargeTypeList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,s,a,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===(s=this.musicGroup)||void 0===s?void 0:s.chargeTypeId,this.chargeTypeName=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeName,e.prev=3,e.next=6,Object(u["y"])({row:9999,chargeTypeId:i,organId:r});case 6:if(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,!(this.charges.length<=0)){e.next=13;break}return this.$bus.$emit("showguide",["teamCourseFee"]),e.abrupt("return");case 13:e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](3);case 17:case"end":return e.stop()}}),e,this,[[3,15]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length-1),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,s){return s-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},closeNext:function(){this.nextVisible=!1},getForms:function(){var e=this.$refs;return[e.base,e.eclass,e.cycle].concat(Object(n["a"])(e.cycles||[]),[e.other,e.payment,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,s,a,r,l,u,m,d,f,b,v,y,g,_,S,w,k,x,T,F,C,I,O,j,P,L,D,R,A,E,N,G;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),s=[],a=Object(c["a"])(t);try{for(l=function(){var e=r.value;e.validate((function(t){t&&s.push(e)}))},a.s();!(r=a.n()).done;)l()}catch($){a.e($)}finally{a.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(s.length!==t.length){e.next=78;break}if("ADD_STUDENT"!=this.rowDetail.paymentType){e.next=22;break}return u=Object(o["a"])(Object(o["a"])({calenderId:this.viewDetail.calender.id,calenderMember:Object(o["a"])(Object(o["a"])({},this.memberForm),{},{actualAmount:this.memberForm.memberPaymentAmount,originalAmount:this.memberForm.originalMemberPaymentAmount}),calenderAddStudent:{classGroupIds:this.viewDetail.calender.attribute1,studentIds:this.viewDetail.calender.studentIds}},Object(h["a"])(this.cycle.paymentDate,["startPaymentDate","deadlinePaymentDate"])),{},{musicGroupId:this.musicGroupId,paymentType:"ADD_STUDENT",payUserType:"STUDENT",musicGroupPaymentCalenderCourseSettingsList:this.eclass},this.other),e.prev=9,e.next=12,Object(p["n"])(u);case 12:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close(),e.next=20;break;case 17:e.prev=17,e.t0=e["catch"](9),console.log(e.t0);case 20:e.next=78;break;case 22:_=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.form),this.other),{},{musicGroupPaymentDateRangeList:Object(n["a"])(this.cycles.map((function(e){var t=e.paymentDate,s=e.paymentValid,a=Object(i["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),Object(h["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(h["a"])(s,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),S=_.leixing,w=Object(i["a"])(_,["leixing"]),k=this.memberForm,x=k.paymentDate,T=Object(i["a"])(k,["paymentDate"]),2==this.courseViewType&&1==this.form.leixing&&(w.musicGroupPaymentDateRangeList[0]=Object(o["a"])({},Object(h["a"])(x,["startPaymentDate","deadlinePaymentDate"]))),this.$refs.cycle&&(F=this.cycle,C=F.paymentDate,I=F.paymentValid,O=Object(i["a"])(F,["paymentDate","paymentValid"]),w.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},O),Object(h["a"])(C,["startPaymentDate","deadlinePaymentDate"])),Object(h["a"])(I,["paymentValidStartDate","paymentValidEndDate"]))]),j=Object(o["a"])(Object(o["a"])(Object(o["a"])({},w),T),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:H[0==this.paymentType?this.paymentType:S],musicGroupId:this.musicGroupId}),P=null===(m=this.viewDetail)||void 0===m?void 0:m.musicGroupPaymentCalenders[0],P&&"ADD_STUDENT"===(null===(d=this.viewDetail)||void 0===d?void 0:d.auditDto.paymentType)&&(j.attribute1=P.attribute1),L=!1,D=Object(c["a"])(j.musicGroupPaymentCalenderCourseSettingsList),e.prev=31,D.s();case 33:if((R=D.n()).done){e.next=40;break}if(A=R.value,!(A.courseCurrentPrice>0||1==A.isStudentOptional)){e.next=38;break}return L=!0,e.abrupt("break",40);case 38:e.next=33;break;case 40:e.next=45;break;case 42:e.prev=42,e.t1=e["catch"](31),D.e(e.t1);case 45:return e.prev=45,D.f(),e.finish(45);case 48:if(2!=(null===(f=this.baseInfo)||void 0===f||null===(b=f.musicGroup)||void 0===b?void 0:b.courseViewType)&&3!=(null===(v=this.baseInfo)||void 0===v||null===(y=v.musicGroup)||void 0===y?void 0:y.courseViewType)||0!=this.paymentType||!L||"user"!==this.type){e.next=51;break}return this.$message.error("会员收费模式报名缴费项目课程费用不得大于0且不可选"),e.abrupt("return");case 51:if(null!==(g=this.rowDetail)&&void 0!==g&&g.batchNo){e.next=65;break}return e.prev=52,e.next=55,Object(p["h"])(j);case 55:E=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(E.data),e.next=63;break;case 61:e.prev=61,e.t2=e["catch"](52);case 63:e.next=78;break;case 65:return e.prev=65,j.batchNo=this.rowDetail.batchNo,j.paymentType=null===(N=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===N?void 0:N.paymentType,e.next=70,Object(p["k"])(j);case 70:G=e.sent,this.$listeners.close(),this.$listeners.submited(G.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:q()(this.$route.query,{type:"feeAudit"})}),e.next=78;break;case 76:e.prev=76,e.t3=e["catch"](65);case 78:case"end":return e.stop()}}),e,this,[[9,17],[31,42,45,48],[52,61],[65,76]])})));function t(){return e.apply(this,arguments)}return t}()}},z=Y,W=(s("4276d"),Object(g["a"])(z,a,r,!1,null,"c3048b1a",null));t["a"]=W.exports},"956c":function(e,t,s){},9673:function(e,t,s){},"996a":function(e,t,s){},"9fb2":function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-container"},[s("h2",[s("el-page-header",{attrs:{content:e.name},on:{back:e.onCancel}})],1),e._v(" "),s("div",{staticClass:"m-core"},[s("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[s("el-tab-pane",{attrs:{lazy:"",label:"基本信息",name:"1"}},["1"==e.activeIndex?s("baseInfo",{attrs:{teamid:e.teamid}}):e._e()],1),e._v(" "),s("el-tab-pane",{attrs:{lazy:"",label:"声部信息",name:"2"}},["2"==e.activeIndex?s("soundeDetail",{attrs:{teamid:e.teamid}}):e._e()],1),e._v(" "),s("el-tab-pane",{attrs:{lazy:"",label:"预报名信息",name:"5"}},["5"==e.activeIndex?s("forecastName",{attrs:{isedit:"PRE_APPLY"==e.team_status}}):e._e()],1),e._v(" "),"PREPARE"==e.team_status?s("el-tab-pane",{attrs:{lazy:"",label:"班级列表",name:"7"}},["7"==e.activeIndex?s("classSeting",{attrs:{teamid:e.teamid}}):e._e()],1):e._e(),e._v(" "),"PRE_APPLY"!=e.team_status?s("el-tab-pane",{attrs:{lazy:"",label:"学员缴费信息",name:"3"}},["3"==e.activeIndex?s("resetPayList",{attrs:{isNewGropu:"PRE_BUILD_FEE"==e.team_status}}):e._e()],1):e._e(),e._v(" "),"PRE_APPLY"!=e.team_status?s("el-tab-pane",{attrs:{lazy:"",label:"学校缴费信息",name:"4"}},["4"==e.activeIndex?s("resetPayListSchool",{attrs:{isNewGropu:"PRE_BUILD_FEE"==e.team_status}}):e._e()],1):e._e()],1)],1)])},r=[],i=(s("7f7f"),s("80b0")),n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("soundSetCore",{ref:"soundSetCore"}),e._v(" "),"look"!==e.lookType?s("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"30px"}},[s("div",{staticClass:"closeBtn",on:{click:e.getSound}},[e._v("取消")]),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/updateSubjectInfo",parent:"/resetTeaming/resetSound"},expression:"{child: 'musicGroup/updateSubjectInfo', parent: '/resetTeaming/resetSound'}"}],staticClass:"okBtn",on:{click:e.saveInfo}},[e._v("保存")])]):e._e()],1)},o=[],l=s("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,m=s("2877"),p=Object(m["a"])(u,n,o,!1,null,"417cc28b",null),d=p.exports,h=s("070d"),f=s("f610"),b=s("d80b"),v=s("be2e"),y=s("1c0e"),g={data:function(){return{activeIndex:this.$route.query.checkIndex?this.$route.query.checkIndex:"1",teamid:"",name:"",stepImgs:{PROGRESS:s("7a7c"),PAUSE:s("c34d")},team_status:""}},created:function(){this.activeIndex=null,this.init(),this.activeIndex="1"},activated:function(){this.init()},methods:{init:function(){var e=this.$route.query;this.team_status=this.$route.query.team_status,console.log(this.team_status),this.teamid=e.id,this.name=e.name},handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getname:function(e){this.name=e,localStorage.setItem("teamName",e)}},components:{baseInfo:i["a"],soundeDetail:d,resetPayList:h["a"],resetPayListSchool:f["a"],forecastName:b["a"],signupList:v["default"],classSeting:y["a"]}},_=g,S=(s("1824"),Object(m["a"])(_,a,r,!1,null,"abefad8c",null));t["default"]=S.exports},a19b:function(e,t,s){},a2c4:function(e,t,s){},a358:function(e,t,s){"use strict";s("19e1")},a6e9:function(e,t,s){"use strict";s.d(t,"a",(function(){return i})),s.d(t,"b",(function(){return n}));var a=s("b775"),r=(s("4328"),"/api-web");function i(e){return Object(a["a"])({url:r+"/sysConfig/list",method:"get",params:e})}function n(e){return Object(a["a"])({url:r+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},a8d2:function(e,t,s){},a996:function(e,t,s){},aa6f:function(e,t,s){},aae0:function(e,t,s){"use strict";s("956c")},aafa:function(e,t,s){},ace5:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": ",inline:!0}},[e.isUserType&&e.addStudent?s("el-form-item",{attrs:{label:"是否购买会员"}},[s("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[s("el-radio",{attrs:{label:!0}},[e._v("购买会员")]),e._v(" "),s("el-radio",{attrs:{label:!1}},[e._v("不购买会员")])],1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?s("el-form-item",{attrs:{label:"会员等级",prop:"memberRankSettingId",rules:[{required:!0,message:"请选择会员等级",trigger:"blur"}]}},[s("el-select",{staticStyle:{width:"620px !important"},attrs:{placeholder:"会员等级",clearable:"",filterable:""},on:{change:e.changeMember},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 s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?s("el-form-item",{attrs:{label:"会员周期",prop:"num",rules:[{required:!0,message:"请选择会员周期",trigger:"blur"}]}},[s("el-input-number",{staticClass:"number-input",staticStyle:{width:"223px"},attrs:{controls:!1,precision:0,min:0,placeholder:"会员周期",disabled:!e.form.memberRankSettingId},on:{change:function(t){return e.changeMemberperiodEnum(e.form.period)}},model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],1):e._e(),e._v(" "),e.isUserType&&e.radio?s("el-form-item",{attrs:{label:"周期单位",prop:"period",rules:[{required:!0,message:"请选择周期单位",trigger:"blur"}]}},[s("el-select",{staticStyle:{width:"223px !important"},attrs:{disabled:!e.form.memberRankSettingId||!e.form.num},on:{change:e.changeMemberperiodEnum},model:{value:e.form.period,callback:function(t){e.$set(e.form,"period",t)},expression:"form.period"}},e._l(e.memberEnumList,(function(e){return s("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?s("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"},{validator:e.validateMember,trigger:"blur"}]}},[s("el-input",{staticStyle:{width:"223px"},model:{value:e.form.memberPaymentAmount,callback:function(t){e.$set(e.form,"memberPaymentAmount",t)},expression:"form.memberPaymentAmount"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&e.radio?s("el-form-item",{attrs:{label:"原价",prop:"originalMemberPaymentAmount",rules:[{required:!0,message:"请输入原价",trigger:"blur"}]}},[s("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"}},[s("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&!e.addStudent&&e.showTime?s("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[s("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=(s("c5f6"),s("ac6a"),s("96cf"),s("1da1")),n=(s("ed08"),s("1672")),o=s("92e3"),l=s("a6e9"),c={props:["form","isUserType","organId","addStudent","showTime","viewDetail"],data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},dataTime:["2021-05-14","2021-05-19"],memberEnumList:o["x"],memberRankList:[],radio:!0,memberPrice:{},getMemberFeeFlag:!0,rulesForm:{minMonthFee:null,maxMonthFee:null,minQuarterlyFee:null,maxQuarterlyFee:null,minHalfYearFee:null,maxHalfYearFee:null,minYearFee:null,maxYearFee:null}}},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(n["c"])({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.getMemberRules();case 11:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){this.$set(this.form,"memo",null),this.$set(this.form,"memberRankSettingId",null),this.$set(this.form,"memberValidDate",null),this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"paymentDate",[])},methods:{getMemberRules:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,s,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["a"])({group:"DEFAULT"});case 3:t=e.sent,s="cloud_price_range",t.data.forEach((function(e){if(e.paramName==s){var t=e.paranValue?JSON.parse(e.paranValue):null;t&&(a.rulesForm=t)}})),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),changeMemberperiodEnum:function(e){if(!this.form.num)return this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),void this.$set(this.form,"period",null);"DAY"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseDayFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalDayFee*this.form.num)),"MONTH"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseMonthFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalMonthFee*this.form.num)),"QUARTERLY"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseQuarterlyFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalQuarterlyFee*this.form.num)),"YEAR_HALF"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseHalfYearFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalHalfYearFee*this.form.num)),"YEAR"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseYearFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalYearFee*this.form.num))},changeMember:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=18;break}if(!this.getMemberFeeFlag){e.next=18;break}return this.getMemberFeeFlag=!1,e.prev=3,e.next=6,Object(n["d"])({rankId:t,organId:this.organId});case 6:if(s=e.sent,this.memberPrice=s.data,this.getMemberFeeFlag=!0,s.data){e.next=12;break}return this.$bus.$emit("showguide",["memberList"]),e.abrupt("return");case 12:e.next=18;break;case 14:e.prev=14,e.t0=e["catch"](3),console.log(e.t0),this.getMemberFeeFlag=!0;case 18:case"end":return e.stop()}}),e,this,[[3,14]])})));function t(t){return e.apply(this,arguments)}return t}(),memberRankSettingIdChange:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var s,a,r,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=14;break}return e.prev=1,e.next=4,Object(n["d"])({rankId:t,organId:this.organId});case 4:if(r=e.sent,null!==(s=r.data)&&void 0!==s&&s.groupPurchaseHalfYearFee&&null!==(a=r.data)&&void 0!==a&&a.originalHalfYearFee?(this.$set(this.form,"memberPaymentAmount",null===(i=r.data)||void 0===i?void 0:i.groupPurchaseHalfYearFee),this.$set(this.form,"originalMemberPaymentAmount",null===(o=r.data)||void 0===o?void 0:o.originalHalfYearFee)):this.$message.error("请设置该会员的默认价格"),r.data){e.next=9;break}return this.$bus.$emit("showguide",["memberList"]),e.abrupt("return");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));function t(t){return e.apply(this,arguments)}return t}(),validateMember:function(e,t,s){var a=Number(t),r=0,i=0;switch(this.form.period){case"MONTH":r=Number(this.rulesForm.minMonthFee)*this.form.num,i=Number(this.rulesForm.maxMonthFee)*this.form.num;break;case"QUARTERLY":r=Number(this.rulesForm.minQuarterlyFee)*this.form.num,i=Number(this.rulesForm.maxQuarterlyFee)*this.form.num,console.log(this.form.period,r,i,this.rulesForm);break;case"YEAR_HALF":r=Number(this.rulesForm.minHalfYearFee)*this.form.num,i=Number(this.rulesForm.maxHalfYearFee)*this.form.num;break;case"YEAR":r=Number(this.rulesForm.minYearFee)*this.form.num,i=Number(this.rulesForm.maxYearFee)*this.form.num;break}return a>=r&&a<=i?s():s(new Error("定价应在".concat(r,"-").concat(i,"之间")))}},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,"num",null),this.$set(this.form,"period",null),this.$set(this.form,"paymentDate",[]))},viewDetail:{deep:!0,handler:function(e){var t;null!==(t=e.member)&&void 0!==t&&t.memberRankSettingId?this.radio=!0:this.radio=!1}},"form.memberRankSettingId":function(e){e?this.changeMember(e):(this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"num",null),this.$set(this.form,"period",null))}}},u=c,m=(s("798e"),s("2877")),p=Object(m["a"])(u,a,r,!1,null,"3c482e26",null);t["a"]=p.exports},adb21:function(e,t,s){"use strict";s.d(t,"a",(function(){return c}));var a=s("bc3a"),r=s.n(a),i=(s("4328"),s("5f87")),n=s("3908"),o=s("e3eb"),l=s.n(o),c=function(e,t,s,a){var o=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(i["b"])(),tenantId:Object(i["a"])()},url:o,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(s||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n["a"].startLoading(),r()(l()(c)).then((function(s){var r=new Blob([s.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(r).text();i.then((function(s){if(-1!=s.indexOf("code")){var i=JSON.parse(s);if(403==i.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==i.code?e.$message.success(i.msg):e.$message.error(i.msg),a&&a()}else{var n=URL.createObjectURL(r),o=document.createElement("a"),l=t.fileName||"导出文件.xls";o.href=n,o.setAttribute("download",l),document.body.appendChild(o),o.click(),a&&a()}})),n["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),n["a"].endLoading()}))})).catch((function(){}))}},af13:function(e,t,s){},b133:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[s("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[s("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},r=[],i={props:["form"]},n=i,o=(s("4000"),s("2877")),l=Object(o["a"])(n,a,r,!1,null,"55ad3016",null);t["a"]=l.exports},b230:function(e,t,s){},b376:function(e,t,s){"use strict";s("c83b")},b38b:function(e,t,s){"use strict";s.d(t,"c",(function(){return o})),s.d(t,"a",(function(){return l})),s.d(t,"b",(function(){return c}));var a=s("b775"),r=s("4328"),i=s.n(r),n="/api-web";function o(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:i.a.stringify(e)})}function c(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:i.a.stringify(e)})}},b3d0:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("el-input",{attrs:{clearable:"",placeholder:"学生编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),s("el-form-item",[s("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList,"max-height":"300"},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),s("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[s("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[s("el-form-item",{attrs:{label:"应缴金额",rules:[{required:!0,message:"请输入预计缴费金额",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}],prop:"momey"}},[s("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},r=[],i=s("5530"),n=s("333d"),o=s("1cc7"),l={components:{pagination:n["a"]},props:["clearStduent","musicGroupPaymentCalenderId","batchNo"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["M"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList()},getList:function(){var e=this;this.searchForm.musicGroupId=this.teamid,Object(o["qc"])(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,s={};s.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["xc"])(s).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.resetPayVisible=!1,t.getList(),t.$listeners.submited&&t.$listeners.submited())}))}},watch:{resetPayVisible:function(e){e||(this.resetPayForm={momey:null},this.$refs["resetPayForm"].resetFields())}}},c=l,u=(s("b5ca"),s("2877")),m=Object(u["a"])(c,a,r,!1,null,"2547eae8",null);t["default"]=m.exports},b3dc:function(e,t,s){},b4ac:function(e,t,s){"use strict";s.d(t,"a",(function(){return r})),s.d(t,"c",(function(){return i})),s.d(t,"b",(function(){return n})),s.d(t,"d",(function(){return o}));var a=s("829b"),r=function(e){return Object(a["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},i=function(e){return Object(a["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})},n=function(e){return Object(a["a"])({url:"/api-web/studentManage/queryStudentSubTotalCourseTimes",params:e,method:"get",requestType:"form"})},o=function(e){return Object(a["a"])({url:"/api-web/studentManage/updateMemberExperience",data:e,method:"post",requestType:"form"})}},b50a:function(e,t,s){},b56c:function(e,t,s){"use strict";s("b3dc")},b58c:function(e,t,s){"use strict";s("8550")},b5ca:function(e,t,s){"use strict";s("2e3a")},bb76:function(e,t,s){"use strict";s("9673")},be2e:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"sigup-container"},[s("div",{staticClass:"topWrap"},[s("div",[s("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[s("div",{staticStyle:{display:"flex","margin-bottom":"15px","font-size":"18px","font-weight":"400"}},[e.applyExpireDate?s("p",{staticStyle:{"margin-right":"10px"}},[e._v("\n 报名截止时间:"+e._s(e._f("formatTimer")(e.applyExpireDate))+"\n ")]):e._e(),e._v(" "),e.paymentExpireDate?s("p",[e._v("\n 缴费截止时间:"+e._s(e._f("formatTimer")(e.paymentExpireDate))+"\n ")]):e._e()])]),e._v(" "),s("div",{staticClass:"btnList"},["APPLY"==e.status?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/openPay",expression:"'musicGroup/openPay'"}],staticClass:"newBand",on:{click:e.payStart}},[e._v("\n 开始缴费\n ")]):e._e(),e._v(" "),"APPLY"==e.status||"PAY"==e.status?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/found",expression:"'musicGroup/found'"}],staticClass:"newBand",on:{click:e.onGoHome}},[e._v("\n 确认开团\n ")]):e._e(),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/extensionApplyExpireDate",expression:"'musicGroup/extensionApplyExpireDate'"},{name:"show",rawName:"v-show",value:"APPLY"==e.status||"PAY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status,expression:"\n status == 'APPLY' ||\n status == 'PAY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE'\n "}],staticClass:"newBand",on:{click:function(t){return e.extendTime(!1)}}},[e._v("\n 延长报名\n ")]),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/extensionPayment",expression:"'musicGroup/extensionPayment'"},{name:"show",rawName:"v-show",value:"APPLY"==e.status||"PAY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status,expression:"\n status == 'APPLY' ||\n status == 'PAY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE'\n "}],staticClass:"newBand",on:{click:function(t){return e.extendTime(!0)}}},[e._v("\n 延长缴费\n ")]),e._v(" "),"PAY"==e.status?s("auth",{attrs:{auths:["musicGroup/sendParentMeetingNotice"]}},[s("div",{staticClass:"newBand",on:{click:function(t){e.meetingStatus=!0}}},[e._v("家长会通知")])]):e._e(),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status)&&e.ischeckCanReg,expression:"\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE') &&\n ischeckCanReg\n "}],staticClass:"newBand",on:{click:function(t){return e.onCreateQRCode("payment")}}},[e._v("\n 报名链接\n ")]),e._v(" "),s("div",{staticClass:"newBand",on:{click:function(t){return e.onCreateQRCode("detail")}}},[e._v("缴费详情")]),e._v(" "),s("auth",{attrs:{auths:"studentRegistration/queryPreApplyList/4263"}},[s("div",{staticClass:"newBand",staticStyle:{"margin-right":"0"},on:{click:function(t){e.forecastVisible=!0}}},[e._v("\n 预报名名单\n ")])]),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/addMusicGroupRegs",expression:"'musicGroup/addMusicGroupRegs'"},{name:"show",rawName:"v-show",value:("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status)&&e.ischeckCanReg,expression:"\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE') &&\n ischeckCanReg\n "}],staticClass:"newBand",on:{click:function(t){e.mergeVisible=!0}}},[e._v("\n 合并学员\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status)&&e.ischeckCanReg,expression:"\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE') &&\n ischeckCanReg\n "}],staticClass:"newBand",staticStyle:{"background-color":"#f97215",border:"1px solid #f97215"},on:{click:function(t){return e.onCreateQRCode("rePayment")}}},[e._v("\n 报名链接(无乐器)\n ")]),e._v(" "),s("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(" "),s("auth",{attrs:{auths:"studentRegistration/getRegisterOrPreList"}},[s("div",{staticClass:"newBand",staticStyle:{"margin-right":"0"},on:{click:function(t){e.newForecastVisible=!0}}},[e._v("\n 时间数据统计\n ")])]),e._v(" "),s("auth",{attrs:{auths:"subject/findSubApplyDetail"}},[s("el-popover",{attrs:{placement:"bottom",width:"1000",trigger:"click"}},[s("el-table",{staticStyle:{width:"100% !important"},attrs:{data:e.leftList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{label:"乐团声部",prop:"subjectName",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"计划招生",prop:"expectedStudentNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEdit,expression:"!isEdit"}]},[e._v(e._s(t.row.expectedStudentNum))]),e._v(" "),s("el-input",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"isEdit"}],model:{value:t.row.expectedStudentNum,callback:function(s){e.$set(t.row,"expectedStudentNum","string"===typeof s?s.trim():s)},expression:"scope.row.expectedStudentNum"}})],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"已报名",prop:"applyStudentNum",align:"center"}}),e._v(" "),s("el-table-column",{attrs:{label:"已缴费",prop:"payNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.getpayNum(t.row)}}},[e._v(e._s(t.row.payNum))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"缴费中",prop:"payingNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.getpayingNum(t.row)}}},[e._v(e._s(t.row.payingNum))])],1)]}}])},[s("template",{slot:"header"},[s("p",[e._v("\n 缴费中\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("提交订单尚未支付成功学员")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{label:"审核中",prop:"checkNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.getCheckNum(t.row)}}},[e._v(e._s(t.row.checkNum))])],1)]}}])},[s("template",{slot:"header"},[s("p",[e._v("\n 审核中\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 不购买团练宝系统学员数量,不包含已缴费学员\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{label:"购买团练宝人数",prop:"buyCloudTeacherNum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.getCheckNum(t.row,"buyCloud")}}},[e._v(e._s(t.row.buyCloudTeacherNum))])],1)]}}])},[s("template",{slot:"header"},[s("p",[e._v("\n 购买团练宝人数\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 已缴费学员中购买了团练宝系统的学员总数\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{label:"入团未购团练宝",prop:"noCloudTeacherStudentNumOfNormal",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.getCheckNum(t.row,"noCloud")}}},[e._v(e._s(t.row.noCloudTeacherStudentNumOfNormal))])],1)]}}])},[s("template",{slot:"header"},[s("p",[e._v("\n 入团未购团练宝\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 【在读】学员中,未购买【团练宝系统】学员数量\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),s("el-table-column",{attrs:{label:"收费金额",prop:"totalAmount",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(e._f("moneyFormat")(t.row.totalAmount))+"元")])]}}])})],1),e._v(" "),s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/updateExpectedStudentNum",expression:"'musicGroup/updateExpectedStudentNum'"}],staticClass:"leftbtnWrap",staticStyle:{"margin-right":"20px","margin-top":"20px"}},[s("p",{staticStyle:{color:"red"}},[e._v("\n 收费总额:"+e._s(e._f("moneyFormat")(e.allSubjectTotal))+"元\n ")]),e._v(" "),s("el-button",{directives:[{name:"show",rawName:"v-show",value:!e.isEdit&&("PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status),expression:"\n !isEdit &&\n (status == 'PAY' ||\n status == 'APPLY' ||\n status == 'PROGRESS' ||\n status == 'PREPARE')\n "}],on:{click:function(t){e.isEdit=!0}}},[e._v("编辑")]),e._v(" "),s("el-button",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"isEdit"}],on:{click:e.saveIsEdit}},[e._v("保存")])],1),e._v(" "),s("div",{staticClass:"newBand",attrs:{slot:"reference"},slot:"reference"},[e._v("人数统计")])],1)],1)],1)]),e._v(" "),s("el-dialog",{attrs:{title:"选择合并乐团",visible:e.mergeVisible,width:"950px"},on:{"update:visible":function(t){e.mergeVisible=t}}},[e.mergeVisible?s("mergeMusic",{staticStyle:{padding:"0 20px"},attrs:{organId:e.organId},on:{close:function(t){e.mergeVisible=!1},submited:e.getList}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"时间数据统计",visible:e.newForecastVisible,width:"1100px"},on:{"update:visible":function(t){e.newForecastVisible=t}}},[e.newForecastVisible?s("newForecastList",{on:{close:function(t){e.newForecastVisible=!1}}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"预报名名单",visible:e.forecastVisible,width:"1150px"},on:{"update:visible":function(t){e.forecastVisible=t}}},[e.forecastVisible?s("forecastList",{on:{close:function(t){e.forecastVisible=!1}}}):e._e()],1)],1),e._v(" "),s("div",{staticClass:"searchList"},[s("save-form",{attrs:{inline:!0,model:e.searchFrom},on:{submit:e.search,reset:e.onReset}},[s("el-form-item",[s("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择专业"},model:{value:e.searchFrom.subject,callback:function(t){e.$set(e.searchFrom,"subject","string"===typeof t?t.trim():t)},expression:"searchFrom.subject"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{filterable:"",placeholder:"请选择是否允许调剂",clearable:""},model:{value:e.searchFrom.isAllowAdjust,callback:function(t){e.$set(e.searchFrom,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchFrom.isAllowAdjust"}},[s("el-option",{attrs:{label:"是",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"否",value:"0"}})],1)],1),e._v(" "),s("el-form-item",[s("el-input",{attrs:{placeholder:"请输入用户名或手机号",clearable:""},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name","string"===typeof t?t.trim():t)},expression:"searchFrom.name"}})],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入年级"},model:{value:e.searchFrom.currentGrade,callback:function(t){e.$set(e.searchFrom,"currentGrade","string"===typeof t?t.trim():t)},expression:"searchFrom.currentGrade"}},e._l(e.gradeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"报名缴费"},model:{value:e.searchFrom.paymentStatus,callback:function(t){e.$set(e.searchFrom,"paymentStatus","string"===typeof t?t.trim():t)},expression:"searchFrom.paymentStatus"}},[s("el-option",{attrs:{label:"未开启缴费",value:"0"}}),e._v(" "),s("el-option",{attrs:{label:"开启缴费",value:"1"}}),e._v(" "),s("el-option",{attrs:{label:"已缴费",value:"2"}})],1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否回访"},model:{value:e.searchFrom.visited,callback:function(t){e.$set(e.searchFrom,"visited","string"===typeof t?t.trim():t)},expression:"searchFrom.visited"}},[s("el-option",{attrs:{label:"否",value:"false"}}),e._v(" "),s("el-option",{attrs:{label:"是",value:"true"}})],1)],1),e._v(" "),s("el-form-item",[s("el-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"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否解除限制"},model:{value:e.searchFrom.noneNeedCloudTeacher,callback:function(t){e.$set(e.searchFrom,"noneNeedCloudTeacher","string"===typeof t?t.trim():t)},expression:"searchFrom.noneNeedCloudTeacher"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",[s("el-select",{attrs:{clearable:"",filterable:"",placeholder:"订单状态"},model:{value:e.searchFrom.payingStatus,callback:function(t){e.$set(e.searchFrom,"payingStatus","string"===typeof t?t.trim():t)},expression:"searchFrom.payingStatus"}},[s("el-option",{attrs:{label:"缴费中",value:1}}),e._v(" "),s("el-option",{attrs:{label:"审核中",value:2}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"studentStatus"}},[s("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"}},[s("el-option",{attrs:{label:"在读",value:"NORMAL"}}),e._v(" "),s("el-option",{attrs:{label:"报名",value:"APPLY"}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"search"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary","native-type":"reset"}},[e._v("重置")])],1)],1)],1),e._v(" "),s("div",[s("el-table",{ref:"multipleTable",attrs:{data:e.rightList,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.checkboxSelect}}),e._v(" "),s("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[s("el-row",{staticStyle:{"margin-left":"64px"}},[s("el-col",{attrs:{span:4}},[s("el-form-item",{attrs:{label:"入团年份"}},[s("span",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.createTime,"YYYY年")))])])],1),e._v(" "),s("el-col",{attrs:{span:4}},[s("el-form-item",{attrs:{label:"报名专业"}},[s("span",[e._v(e._s(t.row.subjectName))])])],1),e._v(" "),s("el-col",{attrs:{span:4}},[s("el-form-item",{attrs:{label:"服从调剂:"}},[s("span",[e._v(e._s(e._f("isAllowAdjust")(t.row.isAllowAdjust)))])])],1),e._v(" "),s("el-col",{attrs:{span:4}},[s("div",{staticClass:"hiddenwrap"},[s("p",{staticStyle:{position:"relative",display:"flex","align-items":"center"}},[e._v("\n 解除限制\n "),s("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[s("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 学员是否受到不购买团练宝的缴费限制\n ")]),e._v(" "),s("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}}),e._v(":\n ")])],1),e._v(" "),s("span",[e._v("\n "+e._s(1==t.row.noneNeedCloudTeacher?"是":"否")+"\n ")])])])],1)],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"姓名",prop:"studentName",align:"center",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",{staticClass:"courseYellow left"},[e._v("\n 学员: "+e._s(t.row.studentName)+"("+e._s(e._f("sex")(t.row.gender))+")\n ")]),e._v(" "),s("p",{staticClass:"left"},[e._v("家长: "+e._s(t.row.parentsName))])])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"联系电话",prop:"parentsPhone",align:"center",width:"110px"}}),e._v(" "),s("el-table-column",{attrs:{label:"学员状态",prop:"studentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("musicGroupStudentType")(t.row.studentStatus))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"年级班级",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.gradeListObj[t.row.currentGrade]?s("div",[e._v("\n "+e._s(e.gradeListObj[t.row.currentGrade]+t.row.currentClass)+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"调剂专业",prop:"actualSubjectName",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",[e._v("\n "+e._s(t.row.actualSubjectName)+"\n ")])])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"是否回访",prop:"paymentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.visitNum?"是":"否")+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"报名缴费/订单状态",prop:"paymentStatus",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",[e._v(e._s(e._f("paymentStatus")(t.row.paymentStatus)))]),e._v(" "),s("p",[e._v(e._s(e._f("filtersPayingStatus")(t.row.payingStatus)))])])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"是否购买会员",prop:"hasCloudTeacher",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(1==t.row.hasCloudTeacher?"是":"否")+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"备注",prop:"remark",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("div",[s("overflow-text",{attrs:{text:e.row.remark}})],1)]}}])}),e._v(" "),"PAY"==e.status||"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status?s("el-table-column",{attrs:{label:"操作",width:"200px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("auth",{attrs:{auths:"studentRegistration/batchUpdateSubject"}},[s("el-button",{directives:[{name:"show",rawName:"v-show",value:2!=t.row.paymentStatus,expression:"scope.row.paymentStatus != 2"}],attrs:{type:"text"},on:{click:function(s){return e.resetSubject(t.row)}}},[e._v("修改专业")])],1),e._v(" "),s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"studentRegistration/queryFeeDetail"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.lookdetail(t.row)}}},[e._v("查看")])],1),e._v(" "),s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus&&e.isManage,expression:"scope.row.paymentStatus == 2 && isManage"}],attrs:{auths:"musicGroupQuit/apply2"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.quitTeam(t.row)}}},[e._v("退团")])],1),e._v(" "),t.row.visitNum<=0?s("auth",{attrs:{auths:"visit/add/teamSignupList"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.addVisit(t.row)}}},[e._v("新增回访")])],1):e._e(),e._v(" "),"PROGRESS"!=e.status?s("auth",{directives:[{name:"show",rawName:"v-show",value:2==t.row.paymentStatus,expression:"scope.row.paymentStatus == 2"}],attrs:{auths:"subjectChange/getStudentOriginal"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.openChangeVoice(t.row)}}},[e._v("更改声部")])],1):e._e(),e._v(" "),s("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"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.relieve(t.row)}}},[e._v("解除预约限制")])],1),e._v(" "),s("auth",{attrs:{auths:"studentRegistration/setCloudTeacherToFailed"}},[2==t.row.payingStatus?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.failedRelieve(t.row)}}},[e._v("拒绝审核")]):e._e()],1)],1)]}}],null,!1,2466682029)}):e._e()],1),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:"APPLY"==e.status||"PROGRESS"==e.status||"PREPARE"==e.status,expression:"\n status == 'APPLY' || status == 'PROGRESS' || status == 'PREPARE'\n "}],staticStyle:{"margin-top":"10px","margin-bottom":"10px"}},[s("el-button",{on:{click:e.onSelectAll}},[e._v("全选/取消")]),e._v(" "),s("auth",{attrs:{auths:"studentRegistration/openPayment"}},[s("el-button",{attrs:{type:"primary"},on:{click:e.onPartPayment}},[e._v("提前缴费")])],1)],1),e._v(" "),s("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),s("el-dialog",{attrs:{title:"修改专业",visible:e.subjectVisible,width:"400px"},on:{"update:visible":function(t){e.subjectVisible=t}}},[s("el-form",{attrs:{model:e.maskForm}},[s("el-form-item",{attrs:{label:"选择专业"}},[s("el-select",{attrs:{filterable:"",clearable:""},model:{value:e.maskForm.subject,callback:function(t){e.$set(e.maskForm,"subject","string"===typeof t?t.trim():t)},expression:"maskForm.subject"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.subjectVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.okReset}},[e._v("确 定")])],1)],1),e._v(" "),e.extendPaymentStatus?s("el-dialog",{attrs:{title:e.isPay?"延长缴费":"延长报名",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t}}},[s("el-form",{ref:"extendForm",attrs:{model:e.extendForm,rules:e.extendRule}},[e.isPay?s("el-form-item",{attrs:{label:"延长缴费时间",prop:"expireDate"}},[s("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":e.payDate(),placeholder:"选择日期"},model:{value:e.extendForm.expireDate,callback:function(t){e.$set(e.extendForm,"expireDate","string"===typeof t?t.trim():t)},expression:"extendForm.expireDate"}})],1):s("el-form-item",{attrs:{label:"延长报名时间",prop:"expireDate"}},[s("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":e.applyDates,placeholder:"选择日期"},model:{value:e.extendForm.expireDate,callback:function(t){e.$set(e.extendForm,"expireDate","string"===typeof t?t.trim():t)},expression:"extendForm.expireDate"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),(e.isPay,s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm",e.isPay)}}},[e._v("确 定")]))],1)],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"订单详情",visible:e.orderVisible,width:"800px"},on:{"update:visible":function(t){e.orderVisible=t}}},[e.orderForm.length>0?[s("descriptions",{attrs:{column:2}},[e._l(e.orderForm,(function(t,a){return[s("descriptions-item",{key:a,attrs:{label:t.name}},[e._v(e._s(e._f("moneyFormat")(t.price))+"元")]),e._v(" "),s("descriptions-item",{key:a,attrs:{label:"缴费时间"}},[e._v(e._s(t.createTime))])]}))],2)]:s("el-row",[s("el-col",{attrs:{span:24}},[s("empty",{attrs:{desc:"暂无订单详情"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.orderVisible=!1}}},[e._v("确 定")])],1)],2),e._v(" "),e.paymentStatus?s("el-dialog",{attrs:{title:"开始缴费",visible:e.paymentStatus,width:"400px"},on:{"update:visible":function(t){e.paymentStatus=t}}},[s("el-form",{ref:"paymentForm",staticClass:"paymentForm",attrs:{model:e.paymentForm,"label-position":"top",rules:e.paymentRules}},[s("el-form-item",{attrs:{label:"请设置缴费截止日期",prop:"paymentExpireDate"}},[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd","picker-options":e.payDate(),placeholder:"选择日期"},model:{value:e.paymentForm.paymentExpireDate,callback:function(t){e.$set(e.paymentForm,"paymentExpireDate","string"===typeof t?t.trim():t)},expression:"paymentForm.paymentExpireDate"}})],1)],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.paymentStatus=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onStartPayment("paymentForm")}}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),s("qr-code",{attrs:{title:e.codeTitle,codeUrl:e.qrCodeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),e.quitVisible?s("el-dialog",{attrs:{title:"退团信息确认",width:"700px",visible:e.quitVisible},on:{"update:visible":function(t){e.quitVisible=t}}},[s("quiteTeam",{ref:"quitForm",attrs:{quitForm:e.quitForm,activeRow:e.activeRow}}),e._v(" "),s("p",{staticStyle:{color:"red",paddingleft:"150px"}},[e._v("退费金额暂不进入账户余额")]),e._v(" "),s("span",{staticClass:"dialog-footer question",attrs:{slot:"footer"},slot:"footer"},[s("div",[s("el-popover",{attrs:{placement:"right",width:"500",trigger:"click"}},[s("div",{staticClass:"popoverWrap"},[s("p",[e._v("乐团退团退费规则:")]),e._v(" "),s("p",[e._v("退还团练宝费用:报名缴费时缴费的团练宝费用")]),e._v(" "),s("p",[e._v("退还课程费用:缴费总额-已结束课时单价之和")]),e._v(" "),s("p",[e._v("退还乐器费用:报名缴费时缴纳的乐器费用(团购、租金)")]),e._v(" "),s("p",[e._v("退还教辅费用:报名缴费时缴费的教辅费用")]),e._v(" "),1==e.$helpers.tenantId?s("p",[e._v("\n 退还乐保费用:报名缴费时缴费的乐保费用\n ")]):e._e()]),e._v(" "),s("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",icon:"el-icon-question"},slot:"reference"},[e._v("退团退费说明")])],1)],1),e._v(" "),s("div",[s("el-button",{on:{click:function(t){e.quitVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.chioseType}},[e._v("确 定")])],1)])],1):e._e(),e._v(" "),e.visitVisiable?s("el-dialog",{attrs:{title:"新增回访",width:"500px","close-on-click-modal":!1,visible:e.visitVisiable},on:{"update:visible":function(t){e.visitVisiable=t}}},[e.visitVisiable&&e.detail?s("visit",{attrs:{detail:e.detail},on:{close:function(t){e.visitVisiable=!1},submited:e.getList}}):e._e()],1):e._e(),e._v(" "),e.changeVoiceVisible?s("el-dialog",{attrs:{title:"更改声部",visible:e.changeVoiceVisible,width:"600px"},on:{"update:visible":function(t){e.changeVoiceVisible=t}}},[s("changeVoice",{attrs:{detail:e.rowDetail,courseViewType:e.courseViewType,musicGroupId:e.id,voiceList:e.leftList},on:{close:e.closeChangeVoice,submited:e.getList,"update:detail":function(t){e.rowDetail=t}}})],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"预报名家长会通知",visible:e.meetingStatus,width:"400px"},on:{"update:visible":function(t){e.meetingStatus=t},close:function(t){return e.onCloseMeet("extendForm")}}},[e.meetingStatus?s("parentsMeeting",{ref:"meetingForm",attrs:{extendForm:e.meetingForm,sysMsgStr:e.sysMsgStr,msg:"确认后该短信将发送给已缴费的学员"}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.meetingStatus=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onMeetingPayment("extendForm")}}},[e._v("确 定")])],1)],1)],1)},r=[],i=(s("c5f6"),s("28a5"),s("386d"),s("b85c")),n=s("ade3"),o=s("5530"),l=(s("ac6a"),s("7f7f"),s("96cf"),s("1da1")),c=s("333d"),u=s("641c"),m=s("1cc7"),p=s("3078"),d=s("879d"),h=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"forecastName"},[s("div",{staticClass:"m-core"},[s("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[s("el-form-item",{attrs:{prop:"name"}},[s("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"isAllowAdjust"}},[s("el-select",{attrs:{clearable:"",placeholder:"是否允许调剂"},model:{value:e.searchForm.isAllowAdjust,callback:function(t){e.$set(e.searchForm,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchForm.isAllowAdjust"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"teacherRecommandSubjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"老师推荐声部"},model:{value:e.searchForm.teacherRecommandSubjectId,callback:function(t){e.$set(e.searchForm,"teacherRecommandSubjectId",t)},expression:"searchForm.teacherRecommandSubjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"selectionSubjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"选报声部"},model:{value:e.searchForm.selectionSubjectId,callback:function(t){e.$set(e.searchForm,"selectionSubjectId",t)},expression:"searchForm.selectionSubjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"subjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"所选专业"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"kitPurchaseMethod"}},[s("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"}},[s("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),s("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"cloudTeacherMethod"}},[s("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"}},[s("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),s("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.gender?"男":"女")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentGrade)+e._s(t.row.currentClass)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.teacherRecommandSubjectId?t.row.teacherRecommandSubjectName:null)+"\n "+e._s(t.row.teacherRecommandSubjectName||999!=t.row.teacherRecommandSubjectId?null:"听从老师安排")+"\n "+e._s(t.row.teacherRecommandSubjectId||t.row.teacherRecommandSubjectName?null:"无")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"选报声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.selectionSubjectId?t.row.selectionSubjectName:null)+"\n "+e._s(t.row.selectionSubjectName||999!=t.row.selectionSubjectId?null:"听从老师安排")+"\n "+e._s(t.row.selectionSubjectId||t.row.selectionSubjectName?null:"无")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"subjectFirstName",label:"所选专业"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subjectFirstName?t.row.subjectFirstName:null)+"\n "+e._s(t.row.subjectFirstName||999!=t.row.subjectFirst?null:"听从老师安排")+e._s(t.row.subjectFirstName||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:"听从老师安排")+e._s(t.row.subjectSecondName||t.row.subjectSecond?null:"无")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"realName",label:"乐器准备方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.kitPurchaseMethod))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"系统意向"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("instrumentType")(t.row.cloudTeacherMethod))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isRegistered",label:"是否已报名"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.isRegistered?"是":"否")+"\n ")]}}])})],1),e._v(" "),s("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},f=[],b={name:"forecastName",components:{pagination:c["a"]},data:function(){var e=this.$route.query;return{musicGroupId:e.id,searchForm:{name:null,teacherRecommandSubjectId:null,selectionSubjectId: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(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(p["j"])(Object(o["a"])(Object(o["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}()}},v=b,y=s("2877"),g=Object(y["a"])(v,h,f,!1,null,"4aaa8ca1",null),_=g.exports,S=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"forecastName"},[s("div",{staticClass:"m-core"},[s("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{reset:e.onReSet,submit:e.search}},[s("el-form-item",[s("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),s("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(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"sort-change":e.changePayTime}},[s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"studentName",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"actualSubjectName",label:"声部"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"perRegisterTime",label:"预报名时间",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",[e._v(e._s(e._f("formatTimer")(t.row.perRegisterTime)))]),e._v(" "),s("p",[e._v(e._s(e._f("formatSecondTimer")(t.row.perRegisterTime)))])])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"预报名时间差"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.perRegIntervalStr)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"缴费时间",sortable:"custom",prop:"payTime"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("p",[e._v(e._s(e._f("formatTimer")(t.row.payTime)))]),e._v(" "),s("p",[e._v(e._s(e._f("formatSecondTimer")(t.row.payTime)))])])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"isRegistered",label:"缴费时间差"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.payIntervalStr)+"\n ")]}}])})],1),e._v(" "),s("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},w=[],k=s("e3eb"),x=s.n(k),T=s("c1df"),F=s.n(T),C=s("adb21"),I={name:"forecastName",components:{pagination:c["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(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(p["h"])(Object(o["a"])(Object(o["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?F()(1e3*e).format("mm分钟"):3600<e&&e<86400?F()(1e3*e).format("HH小时mm分钟"):e>86400?F()(1e3*e).format("DD天HH小时mm分钟"):"--"},exporOrPreList:function(){var e=this.searchForm;Object(C["a"])(this,{method:"get",url:"/api-web/studentRegistration/registerOrPreListExport",params:Object(o["a"])(Object(o["a"])({},e),{},{musicGroupId:this.musicGroupId}),fileName:"时间数据统计.xls"},"是否导出时间数据统计?")}}},O=I,j=Object(y["a"])(O,S,w,!1,null,"65fb4db0",null),P=j.exports,L=s("5137"),D=s("61f7"),R=s("46f6"),A=s("d044"),E=s.n(A),N=s("92e3"),G=s("bc3a"),$=s.n(G),M=s("5f87"),V=s("3908"),q=s("4328"),U=s.n(q),B=s("ec8a"),H=s("6cc5"),Y=s("4edf"),z=s("475f"),W=s("267e"),J=s("1a42"),Q={name:"signupList",components:{pagination:c["a"],qrCode:u["a"],changeVoice:H["a"],mergeMusic:d["a"],forecastList:_,visit:Y["a"],newForecastList:P,quiteTeam:z["a"],parentsMeeting:J["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,courseViewType:null,hasMaintenance:null,studentName:null,musicGroupName:null,isVisit:!1,reason:"",userComment:null},stepImgs:{APPLY:s("cd89"),PAY:s("0e73")},status:"",id:"",rules:{limit:10,page:1,total:0,page_size:[10,20,30,40]},teamName:"",maskForm:{subject:""},activeId:"",soundList:[],orderForm:[],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:N["P"],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,courseViewType:null,isManage:!1,gradeListObj:{},meetingStatus:!1,meetingForm:{meetingDate:null,address:null},sysMsg:"",submitList:[]}},created:function(){},mounted:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,s,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=this.$store.getters.isSuperAdmin,a=this.$store.getters.roles,s?this.isManage="super":(-1!=a.indexOf("1")&&(this.isManage="manage"),-1!=a.indexOf("2")&&(this.isManage="staff")),-1!=a.indexOf("1")&&-1!=a.indexOf("2")&&(this.isManage="super"),e.next=6,Object(p["i"])({type:"STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE"});case 6:r=e.sent,this.sysMsg=(null===(t=r.data)||void 0===t?void 0:t.content)||"",this.init();case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),activated:function(){this.init()},filters:{filtersPayingStatus:function(e){var t={0:"--",1:"缴费中",2:"审核中"};return t[e]}},methods:{permission:function(e){return Object(B["a"])(e)},init:function(){var e=Object(l["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(m["q"])({musicGroupId:this.id});case 7:return e.next=9,e.sent.data;case 9:this.ischeckCanReg=e.sent,e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](4),console.log(e.t0);case 15:return e.next=17,this.getAgreement();case 17:Object(m["rb"])({musicGroupId:this.id}).then((function(e){var s=e.data;if(t.gradeListObj=e.data,200==e.code&&s)for(var a in s)t.gradeList.push({value:a,label:s[a]})})),Object(m["Rb"])({musicGroupId:this.id}).then((function(e){200==e.code&&(t.organId=e.data.musicGroup.organId,t.courseViewType=e.data.musicGroup.courseViewType,t.applyExpireDate=e.data.musicGroup.applyExpireDate,t.paymentExpireDate=e.data.musicGroup.paymentExpireDate)})),Object(m["M"])({musicGroupId:this.id}).then((function(e){200==e.code&&(t.soundList=e.data)})),this.getList();case 21:case"end":return e.stop()}}),e,this,[[4,12]])})));function t(){return e.apply(this,arguments)}return t}(),getAgreement: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(m["R"])();case 3:t=e.sent,t.data||this.submitList.push("agreement"),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.submitList.length>0&&this.$bus.$emit("showguide",this.submitList);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));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(m["Rb"])({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(m["Zb"])({musicGroupId:this.id}).then((function(t){200==t.code&&(e.leftList=t.data)})),Object(m["Hb"])(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(m["ec"])({musicGroupId:t.id,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}),t.status="PAY",t.paymentExpireDate=t.paymentForm.paymentExpireDate,t.getList())}))}))},onSelectAll:function(){this.$refs.multipleTable.toggleAllSelection()},onPartPayment:function(){var e=this,t=this.multipleSelection;if(t.length<=0)return this.$message.error("您还没有选择学生"),!1;var s=[];t.forEach((function(e){s.push(e.id)})),this.$confirm("是否确认开启缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["hc"])({ids:s.join(",")}).then((function(t){200==t.code?(e.$message.success("开启成功"),e.getList()):e.$message.error(t.msg)}))})).catch((function(){}))},onCreateQRCode:function(e){var t=this.id;this.codeStatus=!0;var s=sessionStorage.getItem("tenantConfig");s=s?JSON.parse(s):{};var a=s.tenantId||0;if("payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(D["d"])()+"/#/login?musicGroupId="+t+"&organId="+this.organId+"&tenantId="+a;else if("detail"==e){var r=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(D["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+r}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(D["d"])()+"/#/login?musicGroupId="+t+"&organId="+this.organId+"&tenantId="+a+"&instrument=1")},onCreateQRCode2:function(){var e=this;this.qrcodeStatus2=!0;var t=this.id,s=this.$route.query.name;setTimeout((function(){document.getElementById("qrcode2").innerHTML="",e.qrcode2=new E.a("qrcode2",{width:200,height:200,colorDark:"#000000",colorLight:"#ffffff",correctLevel:E.a.CorrectLevel.H}),e.qrcode2.makeCode(Object(D["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s),e.codeUrl2=Object(D["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+s}),500)},onDownLoadExecl:function(){var e=this,t="/api-web/studentRegistration/queryStudentApplyDetailExport",s={musicGroupId:this.$route.query.id,page:1,rows:9999},a={method:"POST",headers:{Authorization:Object(M["b"])(),tenantId:Object(M["a"])()},data:U.a.stringify(s),url:t,responseType:"blob"};this.$confirm("您确定导出吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){V["a"].startLoading(),$()(a).then((function(t){var s=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(s).text();a.then((function(t){if(-1!=t.indexOf("code")){var a=JSON.parse(t);if(403==a.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(a.msg)}else{var r=URL.createObjectURL(s),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()}})),V["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),V["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(m["dc"])({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(m["o"])({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){this.activeId=e.studentId,this.maskForm.subject=e.actualSubjectId,this.subjectVisible=!0},okReset:function(){var e=this;this.maskForm.subject?Object(L["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(m["Zb"])({musicGroupId:e.id}).then((function(t){200==t.code&&(e.leftList=t.data)})),e.getList())})):this.$message.error("请选择调剂专业")},onExtendPayment:function(e,t){var s=this;this.$refs[e].validate((function(e){e&&(t?Object(m["G"])({musicGroupId:s.id,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长缴费成功"),s.extendPaymentStatus=!1,Object(m["Rb"])({musicGroupId:s.id}).then((function(e){200==e.code&&(s.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):s.$message.error(e.msg)})):Object(m["F"])({musicGroupId:s.id,expireDate:s.extendForm.expireDate}).then((function(e){200==e.code?(s.$message.success("延长报名成功"),s.extendPaymentStatus=!1,Object(m["Rb"])({musicGroupId:s.id}).then((function(e){200==e.code&&(s.applyExpireDate=e.data.musicGroup.applyExpireDate)}))):s.$message.error(e.msg)})))}))},lookdetail:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(L["j"])({musicGroupId:this.id,studentId:t.studentId}).then((function(e){if(200==e.code){var t=e.data||[];t.forEach((function(e){"MAINTENANCE"==e.type?e.name="乐器保养":"CLOUD_TEACHER"==e.type||"CLOUD_TEACHER_PLUS"==e.type?e.name="团练宝":"COURSE"==e.type&&(e.name="课程"),W["courseType"][e.type]&&(e.name=W["courseType"][e.type])})),s.orderForm=t}}));case 2:this.activeId=t.studentId,this.orderVisible=!0;case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),saveIsEdit:function(){this.isEdit=!1,Object(m["Ac"])(this.leftList).then((function(e){}))},quitTeam:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["Bb"])({musicGroupId:this.$route.query.id,userId:t.studentId});case 3:s=e.sent,this.quitForm=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.quitForm),s.data),{},{courseViewType:this.courseViewType,studentName:t.studentName,musicGroupName:this.teamName,hasMaintenance:t.hasMaintenance}),this.activeRow=Object(o["a"])(Object(o["a"])({},t),s.data),this.activeRow.courseViewType=this.courseViewType,this.quitVisible=!0,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(t){return e.apply(this,arguments)}return t}(),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,s=Object(o["a"])(Object(o["a"])({},e.quitForm),{},{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});s.returnFeeDto={accessoriesFee:s.accessoriesFee,courseFee:s.courseFee,isReturnAccessoriesFee:s.isReturnAccessoriesFee,isReturnCourseFee:s.isReturnCourseFee,isReturnMaintenanceFee:s.isReturnMaintenanceFee,isReturnMemberFee:s.isReturnMemberFee,isReturnMusicalFee:s.isReturnMusicalFee,maintenanceFee:s.maintenanceFee,memberFee:s.memberFee,musicalFee:s.musicalFee},"staff"!=e.isManage?s.status="APPROVED":s.status="PROCESSING",Object(m["f"])(s).then((function(t){var s;200==t.code&&(e.quitForm=(s={isRefundCourseFee:null,isRefundInstrumentFee:null,isRefundTeachingAssistantsFee:null,reason:"",courseViewType:null,hasMaintenance:null,studentName:null,musicGroupName:null,isVisit:!1},Object(n["a"])(s,"reason",""),Object(n["a"])(s,"userComment",null),s),"super"==e.isManage?e.$message.success("退团成功"):e.$message.success("退团申请成功"),e.getList(),e.quitVisible=!1)}))})).catch((function(){}))}))},addVisit:function(e){e.userId=e.studentId,this.detail=e,this.detail.musicGroupId=this.$route.query.id,this.visitVisiable=!0},openChangeVoice:function(e){var t=this;this.getList().then((function(s){var a,r=Object(i["a"])(s.data.rows);try{for(r.s();!(a=r.n()).done;){var n=a.value;n.id===e.id&&(t.rowDetail=Object(o["a"])(Object(o["a"])({},n),{},{userId:n.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(R["a"])(x()(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(l["a"])(regeneratorRuntime.mark((function s(){var a;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(p["o"])({id:e.id});case 3:a=s.sent,console.log("code",a.code),200==a.code?(t.$message.success("解除预约成功"),t.getList()):100==a.code&&t.$confirm(a.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var s=Object(l["a"])(regeneratorRuntime.mark((function s(a){var r;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.next=2,Object(p["o"])({id:e.id,isContinue:!0});case 2:r=s.sent,200==r.code&&(t.$message.success("解除预约成功"),t.getList());case 4:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}()),s.next=11;break;case 8:s.prev=8,s.t0=s["catch"](0),console.log("错误",s.t0);case 11:case"end":return s.stop()}}),s,null,[[0,8]])}))))},failedRelieve:function(e){var t=this;this.$confirm("拒绝后学员需购买会员方可入团","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(l["a"])(regeneratorRuntime.mark((function s(){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,Object(p["n"])({id:e.id});case 3:s.sent,t.$message.success("操作成功"),t.getList(),s.next=11;break;case 8:s.prev=8,s.t0=s["catch"](0),console.log(s.t0);case 11:case"end":return s.stop()}}),s,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()},onCloseMeet:function(){this.meetingForm={meetingDate:null,address:null}},onMeetingPayment:function(e){var t=this;console.log(this.$refs.meetingForm.$refs[e]),this.$refs.meetingForm.$refs[e].validate(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}return e.prev=1,e.next=4,t.$confirm("您是否确定发送家长会通知?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:return e.next=6,Object(p["m"])(Object(o["a"])(Object(o["a"])({},t.meetingForm),{},{musicGroupId:t.id}));case 6:t.$message.success("家长会通知已发送"),t.meetingStatus=!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)}}())}},watch:{"quitForm.isMaintenanceFee":function(e){this.quitForm.maintenanceFee=e?300:0},orderVisible:function(e){e||(this.orderForm=[])},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,courseViewType:null,hasMaintenance:null,studentName:null,musicGroupName:null,isVisit:!1,reason:"",userComment:null},this.$refs["quitForm"].$refs["quitForm"].resetFields())}},computed:{sysMsgStr:function(){var e=this.sysMsg.split("{}");return 3==e.length?"".concat(e[0],'<span style="color:red">"').concat(this.meetingForm.meetingDate?this.meetingForm.meetingDate:"--",'"</span>').concat(e[1],'<span style="color:red">"').concat(this.meetingForm.address?this.meetingForm.address:"--",'"</span>\n ').concat(e[2]):""},allSubjectTotal:function(){var e=0;return this.leftList.forEach((function(t){e+=Number(t.totalAmount)})),e}}},K=Q,X=(s("0397"),Object(y["a"])(K,a,r,!1,null,"0c6b2a35",null));t["default"]=X.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=="},c461:function(e,t,s){},c78f:function(e,t,s){},c83b:function(e,t,s){},cd32:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return e.detail?s("div",[e.detail?s("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?s("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?s("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission(e.getFullPermission("musicGroupPaymentCalender/auditPass"))?s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission(e.getFullPermission("musicGroupPaymentCalender/auditRefuse"))?s("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e(),e._v(" "),s("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关 闭")])],1):s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("关闭")])],1)],1):e._e()},r=[],i=(s("96cf"),s("1da1")),n=s("ec8a"),o=s("3762"),l=s("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(t){var s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(l["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(s.$message.success("审核通过"),s.$emit("close"))}));case 8:e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=23;break;case 14:return e.prev=14,e.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return e.next=19,Object(l["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(s.$message.success("驳回成功"),s.$emit("close"))}));case 19:e.next=23;break;case 21:e.prev=21,e.t1=e["catch"](14);case 23:case"end":return e.stop()}}),e,this,[[3,10],[14,21]])})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(n["a"])(e)}}},u=c,m=(s("346a"),s("2877")),p=Object(m["a"])(u,a,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,s){"use strict";s.d(t,"e",(function(){return c})),s.d(t,"d",(function(){return u})),s.d(t,"f",(function(){return m})),s.d(t,"c",(function(){return p})),s.d(t,"r",(function(){return d})),s.d(t,"G",(function(){return h})),s.d(t,"H",(function(){return f})),s.d(t,"I",(function(){return b})),s.d(t,"h",(function(){return v})),s.d(t,"l",(function(){return y})),s.d(t,"g",(function(){return g})),s.d(t,"m",(function(){return _})),s.d(t,"u",(function(){return S})),s.d(t,"s",(function(){return w})),s.d(t,"t",(function(){return k})),s.d(t,"i",(function(){return x})),s.d(t,"j",(function(){return T})),s.d(t,"k",(function(){return F})),s.d(t,"v",(function(){return C})),s.d(t,"J",(function(){return I})),s.d(t,"n",(function(){return O})),s.d(t,"w",(function(){return j})),s.d(t,"z",(function(){return P})),s.d(t,"x",(function(){return L})),s.d(t,"y",(function(){return D})),s.d(t,"q",(function(){return R})),s.d(t,"b",(function(){return A})),s.d(t,"F",(function(){return E})),s.d(t,"p",(function(){return N})),s.d(t,"E",(function(){return G})),s.d(t,"a",(function(){return $})),s.d(t,"o",(function(){return M})),s.d(t,"B",(function(){return V})),s.d(t,"A",(function(){return q})),s.d(t,"C",(function(){return U})),s.d(t,"D",(function(){return B}));var a=s("15fd"),r=s("b775"),i=s("829b"),n=s("4328"),o=s.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 m(e){return Object(r["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function p(e){return Object(i["a"])({url:l+"/area/queryChild",method:"get",hideLoading:!0,params:e})}function d(e){return Object(r["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function h(e){return Object(r["a"])({url:l+"/subject/queryPageByIdOrName",method:"post",data:o.a.stringify(e)})}function f(e){return Object(r["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function b(e){return Object(r["a"])({url:l+"/subject/upset",method:"post",data:e})}function v(e){return Object(r["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function y(e){return Object(r["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function g(e){return Object(r["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function _(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function S(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function w(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function k(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function x(e){return Object(r["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function T(e){return Object(r["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(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 I(e){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function O(e){var t=e.id,s=Object(a["a"])(e,["id"]);return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:s})}function j(e){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function P(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 R(e){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function A(e){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/save",method:"post",data:e})}function E(e){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function N(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})}function B(e,t){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/querySingle/".concat(e,"/").concat(t),method:"get"})}},d4e7:function(e,t,s){"use strict";s("3f7d")},d515:function(e,t,s){"use strict";s("a19b")},d80b:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"forecastName"},[s("div",{staticClass:"btnList"},[e.isedit||"PRE_BUILD_FEE"==e.$route.query.team_status?s("auth",{attrs:{auths:["musicGroup/sendParentMeetingNotice"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.extendPaymentStatus=!0}}},[e._v("预报名家长会通知")])],1):e._e(),e._v(" "),e.isedit?s("auth",{attrs:{auths:["forecastName/forecastLink"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codeStatus=!0}}},[e._v("预报名问卷")])],1):e._e(),e._v(" "),s("auth",{attrs:{auths:["studentRegistration/preRegisterExport"]}},[s("el-button",{attrs:{type:"primary"},on:{click:e.downloadFile}},[e._v("预报名信息导出")])],1),e._v(" "),s("auth",{attrs:{auths:["studentRegistration/queryPreApplySubjectList"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subjectVisible=!0}}},[e._v("意向统计")])],1),e._v(" "),s("auth",{attrs:{auths:["musicGroup/finishPreApply"]}},[e.isedit?s("el-button",{attrs:{type:"primary"},on:{click:e.onPaymentGroup}},[e._v("乐团缴费")]):e._e()],1),e._v(" "),e.isedit?s("auth",{attrs:{auths:["musicGroup/finishPreApply/item"]}},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onPaymentGroup(1)}}},[e._v("特色乐团缴费")])],1):e._e(),e._v(" "),e.isedit?s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.codedetailStatus=!0}}},[e._v("预报名H5统计")]):e._e()],1),e._v(" "),s("div",{staticClass:"m-core"},[s("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm,"save-key":"/forecastName"},on:{reset:e.onReSet,submit:e.search}},[s("el-form-item",{attrs:{prop:"name"}},[s("el-input",{attrs:{clearable:"",placeholder:"学生编号/姓名/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"isAllowAdjust"}},[s("el-select",{attrs:{clearable:"",placeholder:"是否允许调剂"},model:{value:e.searchForm.isAllowAdjust,callback:function(t){e.$set(e.searchForm,"isAllowAdjust","string"===typeof t?t.trim():t)},expression:"searchForm.isAllowAdjust"}},[s("el-option",{attrs:{label:"是",value:1}}),e._v(" "),s("el-option",{attrs:{label:"否",value:0}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"teacherRecommandSubjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"老师推荐声部"},model:{value:e.searchForm.teacherRecommandSubjectId,callback:function(t){e.$set(e.searchForm,"teacherRecommandSubjectId",t)},expression:"searchForm.teacherRecommandSubjectId"}},e._l(e.subjectList,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"selectionSubjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"选报声部"},model:{value:e.searchForm.selectionSubjectId,callback:function(t){e.$set(e.searchForm,"selectionSubjectId",t)},expression:"searchForm.selectionSubjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"subjectId"}},[s("el-select",{attrs:{clearable:"",placeholder:"所选专业"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return s("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"kitPurchaseMethod"}},[s("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"}},[s("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),s("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{prop:"cloudTeacherMethod"}},[s("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"}},[s("el-option",{attrs:{label:"团购",value:"GROUP"}}),e._v(" "),s("el-option",{attrs:{label:"自备",value:"OWNED"}})],1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"seach"}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"userName",label:"学员姓名"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.gender?"男":"女")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"年级班级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.currentGrade)+e._s(t.row.currentClass)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"teacherRecommandSubjectId",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.teacherRecommandSubjectId?t.row.teacherRecommandSubjectName:null)+"\n "+e._s(t.row.teacherRecommandSubjectName||999!=t.row.teacherRecommandSubjectId?null:"听从老师安排")+"\n "+e._s(-1!=t.row.teacherRecommandSubjectId||t.row.teacherRecommandSubjectName?null:"无")+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"selectionSubjectId",label:"选报声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.selectionSubjectId?t.row.selectionSubjectName:null)+"\n "+e._s(t.row.selectionSubjectName||999!=t.row.selectionSubjectId?null:"听从老师安排")+"\n "+e._s(t.row.selectionSubjectId||t.row.selectionSubjectName?null:"无")+"\n ")]}}])}),e._v(" "),s("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(" "),s("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?s("el-table-column",{attrs:{align:"center",prop:"courseScheduleId",width:"150",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("auth",{attrs:{auths:["visit/add/teamForecastName"]}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.addVisited(t.row)}}},[e._v("新增回访")])],1)]}}],null,!1,3377006125)}):e._e()],1),e._v(" "),s("pagination",{attrs:{"save-key":"/forecastName",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),s("qr-code",{attrs:{title:"预报名问卷",codeUrl:e.codeUrl,ispreLook:!0},on:{preLook:e.preLook},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),s("qr-code",{attrs:{title:"预报名H5统计",codeUrl:e.detailUrl},model:{value:e.codedetailStatus,callback:function(t){e.codedetailStatus=t},expression:"codedetailStatus"}}),e._v(" "),s("el-dialog",{attrs:{title:"预报名家长会通知",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t},close:function(t){return e.onClose("extendForm")}}},[e.extendPaymentStatus?s("parentsMeeting",{ref:"extendForm",attrs:{extendForm:e.extendForm,sysMsgStr:e.sysMsgStr,msg:"确认后该短信将发送给已填写预报名问卷的学员"}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm")}}},[e._v("确 定")])],1)],1),e._v(" "),e.visitVisible?s("el-dialog",{attrs:{title:"新增回访",width:"600px","close-on-click-modal":!1,visible:e.visitVisible},on:{"update:visible":function(t){e.visitVisible=t}}},[e.visitVisible?s("visit-model",{attrs:{detail:e.visitDetail},on:{close:function(t){e.visitVisible=!1},submited:e.getList}}):e._e()],1):e._e(),e._v(" "),e.subjectVisible?s("el-dialog",{attrs:{title:"意向统计",width:"600px","close-on-click-modal":!1,visible:e.subjectVisible},on:{"update:visible":function(t){e.subjectVisible=t}}},[e.subjectVisible?s("intention-model",{on:{close:function(t){e.subjectVisible=!1}}}):e._e()],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:"预览",width:"500px","close-on-click-modal":!1,"append-to-body":"",visible:e.preLookVisible},on:{"update:visible":function(t){e.preLookVisible=t}}},[s("iframe",{attrs:{width:"100%",height:"600px",src:e.codeUrl+"&look=true",frameborder:"0"}})])],1)},r=[],i=(s("28a5"),s("5530")),n=(s("386d"),s("2909")),o=(s("96cf"),s("1da1")),l=(s("7f7f"),s("333d")),c=s("641c"),u=s("ec8a"),m=s("61f7"),p=s("adb21"),d=s("4edf"),h=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.list}},[s("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"}}),e._v(" "),s("el-table-column",{attrs:{prop:"teacherRecommandSubjectNum",align:"center",label:"老师推荐声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.teacherRecommandSubjectNum)+"人\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"selectionSubjectNum",align:"center",label:"选报声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.selectionSubjectNum)+"人\n ")]}}])})],1)],1)},f=[],b=s("3078"),v={data:function(){var e=this.$route.query;return{list:[],musicGroupId:e.id}},mounted:function(){this.FetchList()},methods:{FetchList: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.next=2,Object(b["k"])({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}()}},y=v,g=(s("3efb"),s("2877")),_=Object(g["a"])(y,h,f,!1,null,"1caa218f",null),S=_.exports,w=s("1a42"),k={name:"forecastName",components:{pagination:l["a"],qrCode:c["a"],visitModel:d["a"],intentionModel:S,parentsMeeting:w["a"]},props:["isedit"],data:function(){var e=this.$route.query;return{codedetailStatus:!1,teamName:e.name||null,codeStatus:!1,musicGroupId:e.id,codeUrl:Object(m["d"])()+"/project/forecastName/index.html?musicGroupId="+e.id,searchForm:{name:null,subjectId:null,teacherRecommandSubjectId:null,selectionSubjectId: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"}]},preLookVisible:!1,sysMsg:"",subjectList:[],tenantId:null}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.tenantId=this.$helpers.tenantId,e.next=3,this.$store.dispatch("setSubjects");case 3:return this.subjectList=Object(n["a"])(this.selects.subjects),this.subjectList.push({id:-1,name:"无"}),e.next=7,Object(b["i"])({type:"STUDENT_SMS_IM_MUSIC_GROUP_PARENT_MEETING_NOTICE"});case 7:s=e.sent,this.sysMsg=(null===(t=s.data)||void 0===t?void 0:t.content)||"",this.getList();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{permission:u["a"],onReSet:function(){this.$refs["searchForm"].resetFields(),this.search()},search:function(){this.pageInfo.page=1,this.getList()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},downloadFile:function(){var e=this.searchForm;Object(p["a"])(this,{url:"/api-web/studentRegistration/preRegisterExport",params:Object(i["a"])(Object(i["a"])({},e),{},{musicGroupId:this.musicGroupId}),fileName:"预报名列表.xls"},"是否确认导出报表?")},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(b["j"])(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}(),onPaymentGroup:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:try{this.$confirm("您是否确定开启乐团缴费?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["d"])({isCheckStudentNum:1!=t,musicGroupId:s.musicGroupId});case 2:e.sent,s.$store.dispatch("delVisitedViews",s.$route),s.$router.push({path:"/teamList"});case 5:case"end":return e.stop()}}),e)}))))}catch(a){}case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addVisited:function(e){this.visitVisible=!0,this.visitDetail={musicGroupId:e.musicGroupId,overview:"",purpose:"",userId:e.userId,type:"",visitTime:"",visitType:"",feedback:"",realName:e.userName}},onClose:function(e){this.extendForm={meetingDate:null,address:null}},onExtendPayment:function(e){var t=this;this.$refs[e].$refs[e].validate(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(s){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}return e.prev=1,e.next=4,t.$confirm("您是否确定发送家长会通知?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 4:return e.next=6,Object(b["m"])(Object(i["a"])(Object(i["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()}}},preLook:function(e){this.preLookVisible=!0}},computed:{sysMsgStr:function(){var e=this.sysMsg.split("{}");return 3==e.length?"".concat(e[0],'<span style="color:red">"').concat(this.extendForm.meetingDate?this.extendForm.meetingDate:"--",'"</span>').concat(e[1],'<span style="color:red">"').concat(this.extendForm.address?this.extendForm.address:"--",'"</span>\n ').concat(e[2]):""},detailUrl:function(){return Object(m["f"])()+"/#/preApplySubject?musicGroupId="+this.$route.query.id+"&tenantId="+this.tenantId}}},x=k,T=(s("022b"),Object(g["a"])(x,a,r,!1,null,"7ebe576e",null));t["a"]=T.exports},df4f:function(e,t,s){e.exports=s.p+"static/img/video_bg.0da9f0a8.png"},e084:function(e,t,s){"use strict";s("5a6b")},e323:function(e,t,s){"use strict";s("c78f")},e623:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[s("el-table-column",{attrs:{align:"center",prop:"id",width:"120",label:"缴费单号",rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"status",width:"120",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v(e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum))])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"200","class-name":"table-btns"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{text:e.row.memo}})]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",["STUDENT"===e.payUserType?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/strudentPayInfo",expression:"'/strudentPayInfo'"}],attrs:{type:"text"},on:{click:function(s){return e.toDetail(t.row)}}},[e._v("查看")]):s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail/3882",expression:"'musicGroupPaymentCalender/auditListDetail/3882'"}],attrs:{type:"text"},on:{click:function(s){return e.toDetail(t.row)}}},[e._v("查看")]),e._v(" "),e.$listeners.lookUserList?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(s){return e.$listeners.lookUserList(t.row)}}},[e._v("学员列表")]):e._e(),e._v(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamStatus?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(s){return e.$listeners.commmitGetMoney(t.row)}}},[e._v("确认收款")]):e._e(),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"STUDENT"===e.payUserType?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.$listeners.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.$listeners.onPreview&&"STUDENT"===e.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.permission("musicGroup/findMusicGroupSubjectInfo/966")&&e.permission("studentRegistration/getSubjectGoodsAndInfo/967")?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.$listeners.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),s("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")])],1)],1)},r=[],i=(s("96cf"),s("1da1")),n=s("1cc7"),o=(s("1672"),s("3908"),s("333d")),l=s("ec8a"),c={props:["batchNo","teamStatus","teamType","payUserType","isNewGropu"],components:{pagination:o["a"]},data:function(){return{list:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{permission:l["a"],getList:function(){var e=Object(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["sb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},u=c,m=(s("5513"),s("2877")),p=Object(m["a"])(u,a,r,!1,null,"3970826a",null);t["a"]=p.exports},e9ad:function(e,t,s){},eadf:function(e,t,s){"use strict";s("a2c4")},eba0:function(e,t,s){},ed08:function(e,t,s){"use strict";s.d(t,"b",(function(){return n})),s.d(t,"a",(function(){return o}));var a=s("ade3"),r=(s("c5f6"),s("28a5"),s("a481"),s("6b54"),s("53ca"),s("5a0c")),i=s.n(r);var n=function(e){var t=[];for(var s in e)if(e.hasOwnProperty(s)){var a=e[s],r=s.toLocaleUpperCase();t.push({label:a,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:s})}return t},o=function(e){var t,s=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(a["a"])(t,s[0]||"start",i()(e[0]).isValid()?i()(e[0]).format(r):""),Object(a["a"])(t,s[1]||"end",i()(e[1]).isValid()?i()(e[1]).format(r):""),t):{}}},f514:function(e,t,s){},f610:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"m-core"},[s("save-form",{attrs:{inline:!0,"save-key":"resetPayListSchool",model:e.searchForm},on:{submit:e.getList}},[s("el-form-item",[s("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),s("div",{staticClass:"topWrap"},[e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/createCalender/4359",expression:"'musicGroupPaymentCalender/createCalender/4359'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("\n 新建学校缴费\n ")]):e._e(),e._v(" "),e.teamStatus?s("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("\n 学员缴费设置\n ")]):e._e()]),e._v(" "),s("div",{staticClass:"tableWrap"},[s("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[s("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.actualNum)+"/"+e._s(t.row.expectNum)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[s("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.lookDetail(t.row)}}},[e._v("查看")])],1),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?s("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),!e.teamStatus||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.resetPay(t.row)}}},[e._v("修改")])],1),e._v(" "),"FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.auditStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?s("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1):e._e(),e._v(" "),!e.teamStatus||"ADD_STUDENT"!=t.row.paymentType||"DRAFT"!=t.row.auditStatus&&"REJECT"!=t.row.auditStatus?e._e():s("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType?s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.isNewGropu?s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/findMusicGroupSubjectInfo/966",expression:"'musicGroup/findMusicGroupSubjectInfo/966'"}],attrs:{type:"text"},on:{click:function(s){return e.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),s("pagination",{attrs:{"save-key":"resetPayList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),s("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[s("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[s("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[s("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[s("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),s("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),s("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[s("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[s("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?s("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[s("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[s("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),s("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?s("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[s("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?s("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):s("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),s("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?s("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"SCHOOL",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookUserList:e.lookUserList,lookDetail:e.lookDetail,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),s("el-dialog",{attrs:{title:"查看缴费用户列表",visible:e.userListVisible,width:"850px"},on:{"update:visible":function(t){e.userListVisible=t}}},[e.userListVisible&&e.viewDetail?s("schoolPayUserList",{attrs:{detail:e.viewDetail}}):e._e()],1),e._v(" "),e.reviewVisible?s("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},on:{"update:visible":function(t){e.reviewVisible=t}}},[s("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1):e._e(),e._v(" "),s("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?s("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive,changePaymentType:e.changePaymentType}}):e._e()],1),e._v(" "),e.chioseStudentVisible?s("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?s("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),s("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),s("el-dialog",{attrs:{title:"确认收款",visible:e.getMoneyVisible,width:"600px"},on:{"update:visible":function(t){e.getMoneyVisible=t}}},[s("isGetMoney",{ref:"getMoney",attrs:{data:e.activeRow},on:{close:e.closeMoney}}),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.getMoneyVisible=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submitGetMoney}},[e._v("确 定")])],1)],1)],1)},r=[],i=(s("a481"),s("5530")),n=(s("96cf"),s("1da1")),o=s("333d"),l=s("5a0c"),c=s.n(l),u=s("641c"),m=s("61f7"),p=s("1cc7"),d=s("d349"),h=s("b38b"),f=s("1672"),b=s("b3d0"),v=s("940a"),y=s("e623"),g=s("86e8"),_=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{attrs:{inline:!0,model:e.searchForm}},[s("el-form-item",[s("el-input",{attrs:{placeholder:"学生编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.FetchList(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),s("el-form-item",[s("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.storeState.sounds,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"danger"},on:{click:e.FetchList}},[e._v("搜索")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),s("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchDel",expression:"'musicGroupPaymentCalenderDetail/batchDel'"}],attrs:{type:"primary",disabled:!e.activeChiose.length},on:{click:e.deleteUser}},[e._v("删除学员")])],1)],1),e._v(" "),s("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[s("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),s("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"100",align:"center",prop:"studentId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?s("div",[s("copy-text",[e._v(e._s(t.row.sysUser.username))])],1):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"学员声部"},scopedSlots:e._u([{key:"default",fn:function(e){return[s("overflow-text",{attrs:{width:"100%",text:e.row.studentRegistration&&e.row.studentRegistration.subjectName}})]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.studentRegistration?s("div",[e._v("\n "+e._s(e._f("studentTeamStatus")(t.row.studentRegistration.musicGroupStatus))+"\n ")]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"130",align:"center",prop:"studentId",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?s("div",[s("copy-text",[e._v(e._s(t.row.sysUser.phone))])],1):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{width:"110",align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])})],1),e._v(" "),s("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}})],1)},S=[],w=s("704d"),k={search:"",subjectId:""},x={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(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["C"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(p["ac"])(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=s("2877"),C=Object(F["a"])(T,_,S,!1,null,"4d351015",null),I=C.exports,O=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"moneyForm",attrs:{model:e.form}},[s("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[s("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)],1)},j=[],P={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(s){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!s){e.next=12;break}return a=t.data.id,r=t.form.memo,e.prev=3,e.next=6,Object(f["f"])({id:a,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=P,D=Object(F["a"])(L,O,j,!1,null,"4b111bac",null),R=D.exports,A=s("cd32"),E=s("3762"),N=s("267e"),G=s("ed08"),$=s("92e3"),M={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:b["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:A["a"],reviewDetail:E["a"],teamType:"","pay-items":y["a"],schoolPayUserList:I,isGetMoney:R},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,userListVisible:!1,itemsVisible:!1,teamType:this.$route.query.type,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",payOrderTypeLists:$["E"],getMoneyVisible:!1,baseInfo:null,paymentType:""}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.paymentType="PRE_BUILD_FEE"==this.team_status?0:1,e.prev=1,e.next=4,Object(d["q"])({rows:9999});case 4:if(t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,!(this.organizationCourseUnitPriceSettings.length<=0)){e.next=9;break}return this.$bus.$emit("showguide",["teamCourseFee"]),e.abrupt("return");case 9:e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](1);case 13:this.init();case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(G["b"])(N["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["e"])({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["Rb"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code&&(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo))}))},newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},changePaymentType:function(e){this.paymentType=e},newSchoolPay:function(){var e,t;if(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){var s=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(i["a"])(Object(i["a"])({},s),{},{payUserType:"SCHOOL"})},(function(e){e.meta.title="学校缴费设置"}))}else 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,musicGroupId: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(m["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){if("MUSIC_APPLY"==e.paymentType||"MUSIC_RENEW"==e.paymentType||"ADD_COURSE"==e.paymentType){this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.isNew=!1,this.activeRow=e;var t=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(i["a"])(Object(i["a"])({},t),{},{payUserType:"SCHOOL",calenderId:e.id})},(function(e){e.meta.title="学校缴费设置"}))}else this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,s=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["B"])({id:s}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookUserList:function(e){console.log(Object(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["i"])({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["j"])(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["vc"])({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 s=e,a=new Date(s.replace(/-/g,"/"));a=new Date(1e3*(a/1e3+86400*t));var r=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.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["r"])({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=(s("d515"),Object(F["a"])(V,a,r,!1,null,"280e8fe8",null));t["a"]=q.exports},f927:function(e,t,s){"use strict";var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": ",inline:"","label-width":"90px"}},[s("el-row",[s("el-col",{attrs:{span:10}},[e.isOnlyChangeUser?e._e():s("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher",rules:[{required:!0,message:"请选择主教老师"}]}},[s("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:String(t.id)}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1),e._v(" "),s("el-col",{attrs:{span:10}},[e.isOnlyChangeUser||"HIGH"==e.activeType||"HIGH_ONLINE"==e.activeType||"MUSIC_NETWORK"==e.activeType?e._e():s("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[s("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"","collapse-tags":"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1)],1)],1),e._v(" "),s("el-row",[e.showName?s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[s("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1):e._e(),e._v(" "),s("el-col",{attrs:{span:12}},[s("el-form-item",{staticStyle:{"margin-right":"0"},attrs:{label:e.isOnlyChangeUser?"声部筛选":"声部",prop:"sound",rules:e.isOnlyChangeUser||"MUSIC_NETWORK"==e.activeType?null:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[s("select-all",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择声部"},model:{value:e.form.sound,callback:function(t){e.$set(e.form,"sound",t)},expression:"form.sound"}},e._l(e.soundList,(function(e,t){return s("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),e.showName?e._e():s("el-transfer",{class:{hideReturn:!e.canDelUser},attrs:{filterable:"",titles:["所有学员","已选学员"],"filter-placeholder":"请输入学生姓名","filter-method":e.filterStudent,"render-content":e.renderFunc,data:e.data},scopedSlots:e._u([{key:"left-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0},{key:"right-footer",fn:function(){return[s("div",{staticClass:"footer line"},[s("span",[e._v("姓名")]),e._v(" "),s("span",[e._v("性别")]),e._v(" "),s("span",[e._v("专业")])])]},proxy:!0}],null,!1,3605062098),model:{value:e.seleched,callback:function(t){e.seleched=t},expression:"seleched"}})],1),e._v(" "),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},r=[],i=s("5530"),n=(s("96cf"),s("1da1")),o=(s("7f7f"),s("6762"),s("2fdb"),s("2909")),l=s("267e"),c=s("b4ac"),u=s("2ef0"),m={props:["studentList","soundList","activeType","activeListStudent","isOnlyChangeUser","classGroupId","type","teacherList","cooperationList","isStudentRemove"],computed:{data:function(){var e=this;return Object(u["uniqBy"])([].concat(Object(o["a"])(this.studentList),Object(o["a"])(this.activeListStudent)),"userId").filter((function(t){return!e.form.sound.length||(e.form.sound.includes(t.actualSubjectId)||e.seleched.includes(t.userId))})).map((function(e){return{value:e.userId,key:e.userId,name:e.name,subjectName:e.subjectName,gender:l["genderType"][e.gender]}}))},showName:function(){return!this.isOnlyChangeUser&&"MUSIC_NETWORK"!=this.activeType},canDelUser:function(){return"resetTeam"!==this.$route.query.type||!this.isOnlyChangeUser||this.isStudentRemove}},data:function(){return{sound:[],form:{name:"",coreTeacher:"",assistant:"",sound:[]},seleched:[]}},watch:{activeListStudent:function(){this.setSelectedUser()}},mounted:function(){this.setSelectedUser()},methods:{setSelectedUser:function(){var e=this.activeListStudent.map((function(e){return e.userId}));this.seleched=Object(o["a"])(e)},filterStudent:function(e,t){return t.name.indexOf(e)>-1||t.subjectName.indexOf(e)>-1||t.gender.indexOf(e)>-1},renderFunc:function(e,t){return e("div",{class:"line"},[e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.name]),e("span",{class:"select-item"},[t.name])]),e("span",[t.gender]),e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top","open-delay":300}},[e("span",{slot:"content"},[t.subjectName]),e("span",{class:"select-item"},[t.subjectName])])])},change:function(e){this.$listeners.changeActiveChioseSound(e),this.$listeners.searchStudent()},submit:function(){var e=this;return!this.isOnlyChangeUser&&"HIGH_ONLINE"==this.activeType&&(this.seleched.length<3||this.seleched.length>5)?this.$message.error("线上技能班必须为3-5人"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length<1&&!this.isStudentRemove?this.$message.error("请选择一名学生"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length>1?this.$message.error("乐团网管课仅可添加一名学生"):void this.$refs.form.validate(function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(s){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!s){t.next=15;break}if(!e.isOnlyChangeUser||"change"===e.type){t.next=14;break}return t.prev=2,t.next=5,Object(c["c"])({classGroupId:e.classGroupId,studentIds:e.seleched.join(",")});case 5:e.$message.success("提交成功"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](2);case 10:e.$listeners.submited(),e.$listeners.close(),t.next=15;break;case 14:e.$listeners.submited(Object(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=m,d=(s("204b"),s("2877")),h=Object(d["a"])(p,a,r,!1,null,"77602d7e",null);t["a"]=h.exports},fa7d:function(e,t,s){"use strict";s.d(t,"b",(function(){return r})),s.d(t,"c",(function(){return i})),s.d(t,"a",(function(){return n})),s.d(t,"d",(function(){return o}));var a=s("5530"),r=(s("a481"),s("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),s=new Date(e);0==s.getDay()&&(t-=6048e5);var a=t-24*(s.getDay()-1)*60*60*1e3,r=new Date(a),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(),s=new Date(e),a=7-s.getDay();7==a&&(a=0);var r=t+24*a*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(a["a"])(Object(a["a"])({},e.$route.query),t)})}},fc99:function(e,t,s){"use strict";s("23f0")},ff14:function(e,t,s){"use strict";var a,r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[e.basdisabled?e._e():s("div",{class:e.isField?"soundBtnWrap":"soundBtnFixed"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():s("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():s("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():s("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),e.basdisabled?e._e():s("div",{staticClass:"wall"}),e._v(" "),s("div",{staticClass:"coreWrap"},[s("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[s("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,a){return s("el-collapse-item",{key:a,attrs:{name:t.id}},[s("template",{slot:"title"},[s("div",{staticClass:"coreItemTitle"},[s("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),s("div",{staticClass:"coreItem"},[s("div",{staticClass:"coreItemRow"},[s("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),s("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(s){e.$set(t,"expectedStudentNum",s)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),s("el-divider"),e._v(" "),s("chioseMusic",{attrs:{activeSoundList:e.activeSoundList,item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),s("div",{staticClass:"coreItemRow"},[s("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),s("select-all",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(s){e.$set(t,"markChioseList",s)},expression:"item.markChioseList"}},e._l(t.markList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.name,value:t.id}},[s("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),s("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","padding-right":"20px"}},[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+"元")])])})),1)],1)],2)})),1)],1)],1),e._v(" "),e.soundVisible?s("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[s("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1):e._e()],1)},i=[],n=s("5530"),o=(s("7f7f"),s("6762"),s("2fdb"),s("5df3"),s("4f7f"),s("2909")),l=(s("456d"),s("28a5"),s("ac6a"),s("96cf"),s("1da1")),c=s("ade3"),u=(s("4360"),s("fa7d"),s("1cc7")),m=(s("5a0c"),function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("div",{staticClass:"soundWrap"},[s("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[s("div",{staticClass:"itemList"},e._l(e.soundList,(function(t){return s("div",{key:t.id,staticClass:"categroy"},[s("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,a){return s("el-checkbox",{key:a,attrs:{label:t.id,disabled:e.activeSound.includes(t.id)},on:{change:e.changeCheck}},[e._v(e._s(t.name))])}))],2)})),0)])],1),e._v(" "),s("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),s("div",{staticClass:"btnWraps"},[s("el-button",{attrs:{type:"primary"},on:{click:e.generates}},[e._v("\n 确定\n ")])],1)])}),p=[],d={props:["soundList","childSoundList","activeSound"],data:function(){return{chioseSoundNum:"",activeSoundList:this.activeSound||[]}},mounted:function(){console.log(this.soundList)},activated:function(){},methods:{generates:function(){this.$emit("chioseSound",this.activeSoundList)},changeCheck:function(){}}},h=d,f=(s("e323"),s("2877")),b=Object(f["a"])(h,m,p,!1,null,"6021a80f",null),v=b.exports,y=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",e._l(e.item.chioseMusic,(function(t,a){return s("div",{key:a},[s("div",{staticClass:"chioseMusic"},[s("div",{staticClass:"flexRow bigFlex"},[s("div",{staticClass:"chioseWrap"},[s("p",{staticClass:"title"},[e._v("可选乐器"+e._s(a+1)+":")]),e._v(" "),s("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled,clearable:""},on:{change:function(s){e.chioseMusic(s,t)}},model:{value:t.musical,callback:function(s){e.$set(t,"musical",s)},expression:"music.musical"}},e._l(e.item.goodsList,(function(t,a){return s("el-option",{key:a,attrs:{label:t.name,value:t.id,disabled:e.checkDisabled(t)}})})),1)],1),e._v(" "),s("div",{staticClass:"chioseWrap"},[s("p",{staticClass:"title"},[e._v("乐器提供方式:")]),e._v(" "),s("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(s){e.$set(t,"type",s)},expression:"music.type"}},[s("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),s("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),s("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),s("div",{staticClass:"chioseWrap"},[s("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticClass:"title"},[e._v("\n 团购价:\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{width:"180px"}},[s("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(s){e.$set(t,"groupPrice",s)},expression:"music.groupPrice"}},[s("template",{slot:"append"},[e._v("元")])],2)],1)]),e._v(" "),s("div",{staticClass:"chioseWrap"},[s("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticClass:"title"},[e._v("\n 租赁押金:\n ")]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticStyle:{width:"180px"}},[s("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(s){e.$set(t,"borrowPrice",s)},expression:"music.borrowPrice"}},[s("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.basdisabled||0!=a?e._e():s("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?s("i",{staticClass:"el-icon-remove-outline marginLeft10 iconStyle",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(s){return e.deleteMusic(t)}}}):e._e()])]),e._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{"margin-top":"5px"}},[s("div",{staticClass:"flexRow"},[s("p",{staticClass:"title"},[e._v("团购乐器减免课程费用:")]),e._v(" "),s("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],model:{value:t.groupRemissionCourseFee,callback:function(s){e.$set(t,"groupRemissionCourseFee",s)},expression:"music.groupRemissionCourseFee"}},[s("el-radio",{attrs:{disabled:e.basdisabled,label:!0}},[e._v("是")]),e._v(" "),s("el-radio",{attrs:{disabled:e.basdisabled,label:!1}},[e._v("否")])],1)],1)])]),e._v(" "),s("el-divider")],1)})),0)},g=[],_={props:["item","basdisabled","activeSoundList"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){console.log(Object(n["a"])({},this.item)),this.item.chioseMusic.length<1&&this.item.chioseMusic.push({musical:"",type:[],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:!1})},methods:{chioseMusic:function(e,t){this.item.goodsList.map((function(s,a){s.id==e&&(t.groupPrice=s.groupPurchasePrice)}))},addMusic:function(){this.item.chioseMusic.push({musical:"",type:[],groupPrice:null,borrowPrice:1500,groupRemissionCourseFee:0}),this.$emit("lookMusic")},deleteMusic:function(e){var t=this;this.item.chioseMusic.forEach((function(s,a){s.musical==e.musical&&t.item.chioseMusic.splice(a,1)}))},checkDisabled:function(e){var t=!1;return this.activeSoundList.forEach((function(s){s.chioseMusic.forEach((function(s){e.id==s.musical&&(t=!0)}))})),t},changeFee:function(e,t){this.$set(t,"groupRemissionCourseFee",e)}}},S=_,w=(s("72a0"),Object(f["a"])(S,y,g,!1,null,"52c08fdc",null)),k=w.exports,x=s("2ef0"),T=(s("6612"),a={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"])(a,"deactivated",(function(){this.activeSoundList=[]})),Object(c["a"])(a,"methods",{setStore:function(){localStorage.setItem("".concat(this.teamid,"sound"),JSON.stringify(this.activeSoundList))},init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,s=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["Fb"])({tenantId:1}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(a){var r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=a.code){e.next=13;break}if(s.soundList=a.data.rows,!t||null===(r=t[0])||void 0===r||!r.id){e.next=12;break}return s.activeSoundList=t,i=[],s.activeSoundList.forEach((function(e){i.push(e.id)})),s.chioseActiveSound=i,s.activeSound=i,e.next=10,s.changeActiveSound(i.join(","));case 10:e.next=13;break;case 12:"newTeam"==s.teamStatus?s.getDefaultSubject():(s.teamid=s.$route.query.id,s.teamid&&Object(u["K"])({musicGroupId:s.teamid}).then(function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var a,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===(a=t.data)||void 0===a||null===(r=a.musicGroupSubjectPlans)||void 0===r?void 0:r.length)>0)){e.next=11;break}return n=[],s.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:[]}})),s.activeSound=n,s.chioseActiveSound=n,t.data.musicGroupSubjectGoodsGroups.forEach((function(e){var t=Object(x["findIndex"])(s.activeSoundList,(function(t){return t.id==e.subjectId}));if(-1!=t)if("ACCESSORIES"==e.type)e.goodsIdList.split(",").forEach((function(e){s.activeSoundList[t].markChioseList.push(parseInt(e))}));else if("INSTRUMENT"==e.type){var a=Object.keys(JSON.parse(e.kitGroupPurchaseTypeJson));s.activeSoundList[t].chioseMusic.push({musical:parseInt(e.goodsIdList),type:a,groupPrice:e.price,borrowPrice:e.depositFee,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)})}})),e.next=9,s.changeActiveSound(n.join(","));case 9:e.next=12;break;case 11:s.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["Kb"])({tenantId:1}).then((function(e){200==e.code&&(s.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,s=this.topfor.section;Object(u["gb"])({chargeTypeId:t,organId:s,number:1}).then(function(){var t=Object(l["a"])(regeneratorRuntime.mark((function t(s){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(200!=s.code){t.next=7;break}return a=[],e.activeSoundList=s.data.map((function(t){return a.push(t.id),e.initSound(t)})),e.activeSound=a,e.chioseActiveSound=a,t.next=7,e.changeActiveSound(a.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 s,a,r,i,n,l,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in this.activeSound=Object(o["a"])(new Set(t)),s=[],this.childSoundList)this.activeSound.includes(this.childSoundList[a].id)&&s.push(this.initSound(this.childSoundList[a]));for(i in r=this.activeSoundList.map((function(e){return e.id})),s)l=r.indexOf(null===(n=s[i])||void 0===n?void 0:n.id),l>-1&&(s[i]=this.activeSoundList[l]);return this.activeSoundList=s,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:[],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 s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(u["Lb"])({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);s.activeSoundList.forEach((function(s){if(-1!=t.indexOf(s.id+"")){var a=[],r=[];e.data[s.id].forEach((function(e){"INSTRUMENT"==e.type?a.push(e):"ACCESSORIES"==e.type&&r.push(e)})),s.goodsList=a,s.markList=r}})),s.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(s){for(var a=s.markList.map((function(e){return e.id})),r=s.goodsList.map((function(e){return e.id})),i=0;i<s.markChioseList.length;i++)!a.includes(s.markChioseList[i])&&s.markChioseList[i]&&(e.push(s.markChioseList[i]),t=!0,s.markChioseList.splice(i--,1));for(var n=0;n<s.chioseMusic.length;n++)!r.includes(s.chioseMusic[n].musical)&&s.chioseMusic[n].musical&&(e.push(s.chioseMusic[n].musical),t=!0,s.chioseMusic[n].musical=null,s.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(s){if(!s.expectedStudentNum)return e.$message.error("请填写".concat(s.sound,"的预计招生人数")),void(t=!1);s.chioseMusic.forEach((function(a){-1!=a.type.indexOf("LEASE")&&(!a.borrowPrice||parseFloat(a.borrowPrice)<=0)&&(e.$message.error("请填写正确的".concat(s.sound,"租赁押金")),t=!1)}))})),t)},submitInfo:function(e){var t=this,s=this.checkSubmit();if(s){var a={musicGroupSubjectGoodsGroups:[],musicGroupSubjectPlans:[]},r=[];if(this.activeSoundList.forEach((function(e){var t;null!==(t=e.chioseMusic[0])&&void 0!==t&&t.musical||r.push(e.sound);var s={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};a.musicGroupSubjectPlans.push(s),e.chioseMusic.forEach((function(t){var s,r=null,i=t.borrowPrice,n=t.groupPrice;s=-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:s};a.musicGroupSubjectGoodsGroups.push(c)}})),e.markChioseList.forEach((function(t){var s=Object(x["findIndex"])(e.markList,(function(e){return e.id==t})),r=null;if(-1!=s&&(r=e.markList[s]),r){var i={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:r.name,price:r.groupPurchasePrice};a.musicGroupSubjectGoodsGroups.push(i)}}))})),"newTeam"==this.teamStatus);else if(a.musicGroupId=this.teamid,a.musicGroupStatus=e?"AUDIT":"DRAFT",e){var i="";i=r.length>0?r.join(",")+"尚未设置乐器,学员报名该声部时将无乐器可购买,是否确认?":"是否提交审核",this.$confirm(i,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["Yc"])(a).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))})).catch((function(){}))}else{var o="";o=r.length>0?r.join(",")+"尚未设置乐器,学员报名该声部时将无乐器可购买,是否确认?":"是否保存",this.$confirm(o,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["Yc"])(a).then((function(s){if(200==s.code)if(t.setStore(),1==e){t.$message.success("保存成功");var a=t.$route.query;t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList",query:Object(n["a"])({},a)})}else t.$message.success("保存成功")}))}))}}},deleteRow:function(){var e=this;this.checkList.length<1?this.$message.error("请至少勾选一个"):this.$confirm("确定删除选中声部?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var t=0;t<e.activeSoundList.length;t++){var s=e.checkList.indexOf(e.activeSoundList[t].id);-1!=s&&(e.activeSoundList.splice(t,1),e.activeSound.splice(t,1),t--)}e.checkList=[],e.$message.success("删除成功")})).catch((function(){}))},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,s){e.checkList.push(t.id)}))},getScroll:function(){this.scrollTop=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,this.scrollTop&&this.scrollTop>=190?this.isField=!1:this.isField=!0}}),Object(c["a"])(a,"watch",{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,s=0;this.activeSoundList;if(e){var a=0;if(e.length>0)for(var r in e){var i;a+=parseInt(null===(i=e[r])||void 0===i?void 0:i.expectedStudentNum)||0}t=e.length,s=a,this.$emit("getNumber",t,s)}}}}),a),F=T,C=(s("90d9"),Object(f["a"])(F,r,i,!1,null,"60d9a3f4",null));t["a"]=C.exports}}]);