chunk-34d93907.4c582d88.js 241 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34d93907"],{"011c":function(e,t,i){"use strict";i("d280")},"0464":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",attrs:{model:e.list}},[i("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[i("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(i){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(i){e.$set(e.list.form[t.$index],"courseType",i)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,a){return i("el-option",{key:a,attrs:{disabled:e.isOptionDisabled(a),label:e.courseType[a],value:a}})})),1)],1)]}}])}),e._v(" "),e.isCommon?i("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[i("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(i){e.$set(e.list.form[t.$index],"isStudentOptional",i)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,1590784855)}):e._e(),e._v(" "),i("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:[{required:!0,message:"请输入课程时长",trigger:"blur"}]}},[i("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(i){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(i){e.$set(e.list.form[t.$index],"courseTotalMinuties",i)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),i("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[i("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(i){e.$set(e.list.form[t.$index],"courseCurrentPrice",i)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[i("template",{slot:"header"},[i("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),i("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),i("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),i("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[i("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(i){e.$set(e.list.form[t.$index],"courseOriginalPrice",i)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?i("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?i("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(i){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?i("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)},s=[],r=(i("6762"),i("2fdb"),i("267e")),n=i("ed08"),o=i("92e3"),c=i("6612"),u=i.n(c),l=(i("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:r["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(n["b"])(r["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(o["b"])(o["m"])}},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 u()(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(i,a,s){var r=t.list.form[e].courseType;r&&a>1&&t.classTimeList[r]&&a<t.classTimeList[r]?s(new Error("单节课不得少于".concat(t.classTimeList[r],"分钟"))):s()}}}}),m=l,p=(i("011c"),i("2877")),d=Object(p["a"])(m,a,s,!1,null,"02e08165",null);t["a"]=d.exports},"070d":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-core"},[i("save-form",{attrs:{inline:!0,"save-key":"resetPayList",model:e.searchForm},on:{submit:e.getList}},[i("el-form-item",[i("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 i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),i("div",{staticClass:"topWrap"},[e.teamStatus?i("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(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[i("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.actualNum)+"/"+e._s(t.row.expectNum))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){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?i("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),!e.teamStatus||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():i("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){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?e._e():i("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"DRAFT"!=t.row.status&&"REJECT"!=t.row.status?e._e():i("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){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():i("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),e.isNewGropu||!e.teamStatus||"MUSIC_APPLY"==t.row.paymentType||"OPEN"!=t.row.status&&"OVER"!=t.row.status?e._e():i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]),e._v(" "),"STUDENT"===t.row.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.$helpers.permission("musicGroup/findMusicGroupSubjectInfo/966")?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),i("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(" "),i("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?i("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(" "),i("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[i("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[i("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[i("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(" "),i("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[i("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(" "),i("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[i("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"}},[i("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),i("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[i("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(" "),i("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:!0,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[i("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?i("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[i("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"}},[i("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),i("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?i("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[i("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(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?i("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):i("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),e.reviewVisible?i("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},on:{"update:visible":function(t){e.reviewVisible=t}}},[i("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(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?i("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(" "),i("el-dialog",{attrs:{title:e.payFormTitle,visible:e.memberVisible,width:"830px"},on:{"update:visible":function(t){e.memberVisible=t}}},[e.memberVisible?i("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(" "),i("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?i("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),i("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),i("el-dialog",{staticClass:"subjectPreview",attrs:{title:"报名声部预览",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[i("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 i("el-tab-pane",{key:a,staticStyle:{"max-height":"500px","overflow-y":"auto"},attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[i("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1)],1)],1)},s=[],r=(i("6b54"),i("a481"),i("5530")),n=(i("96cf"),i("1da1")),o=i("333d"),c=i("5a0c"),u=i.n(c),l=i("641c"),m=i("61f7"),p=i("1cc7"),d=i("b38b"),h=i("d349"),f=i("1672"),y=i("b3d0"),b=i("940a"),v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-alert",{staticClass:"alert",attrs:{title:"注意事项",closable:!1,type:"info"}}),e._v(" "),e._m(0),e._v(" "),i("el-alert",{staticClass:"alert",attrs:{title:"会员设置",closable:!1,type:"info"}}),e._v(" "),i("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,showTime:!0}}),e._v(" "),i("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),i("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],1)},g=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tilteWrap"},[i("h4",[e._v("会员团排课规则:")]),e._v(" "),i("p",[e._v("\n 1、会员团每学期赠送3960分钟(88课时x45分钟)免费课程时长,该时长可排声部课、集训声部课、合奏课、集训合奏课、综合课,课程时长以上类型课程共享;\n ")]),e._v(" "),i("p",[e._v("\n 2、在本学期内声部课、集训声部课总共最多能排课1980分钟(44课时x45分钟);合奏课、集训合奏课最多能排课1980分钟(44课时x45分钟);综合课最多能排课3960分钟(88课时x45分钟);\n ")]),e._v(" "),i("p",[e._v("\n 3、赠送课程仅可在该学期内完成排课,且不可将本学期课程调整至学期时间范围之外;\n ")]),e._v(" "),i("p",[e._v("4、学期时间段:9月1日至2月28/29日,3月1日至8月31日;")]),e._v(" "),i("p",[e._v("\n 5、排课时系统根据【开课日期】计算本学期最大可排课时长,计算方式为开课日期到本学期结束日期周次*4*45分钟,若超过3960分钟(88课时x45分钟),按3960分钟(88课时x45分钟)计算。即:若学期中途开始排课,则可能排课时长并不能达到3960分钟(88课时x45分钟)。\n ")])])}],S=i("15fd"),_=i("b85c"),w=i("ace5"),x=i("b133"),T=i("ed08"),k={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},C={components:{memberSetting:w["a"],otherform:x["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,i,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["m"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 5:i=e.sent,this.viewDetail=i.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,i,a,s,n,o,c,u,l,m,p;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),i=[],a=Object(_["a"])(t);try{for(n=function(){var e=s.value;e.validate((function(t){t&&i.push(e)}))},a.s();!(s=a.n()).done;)n()}catch(d){a.e(d)}finally{a.f()}if(i.length!==t.length){e.next=35;break}if(c=Object(r["a"])(Object(r["a"])(Object(r["a"])({musicGroupId:this.musicGroupId},this.memberForm),this.other),{},{paymentType:k[0==this.paymentType?this.paymentType:0],paymentPattern:1,payUserType:"user"===this.type?"STUDENT":"SCHOOL",musicGroupPaymentDateRangeList:[Object(r["a"])({},Object(T["a"])(this.memberForm.paymentDate,["startPaymentDate","deadlinePaymentDate"]))]}),c.paymentDate,u=Object(S["a"])(c,["paymentDate"]),null!==(o=this.rowDetail)&&void 0!==o&&o.batchNo){e.next=20;break}return e.prev=7,e.next=10,Object(f["i"])(u);case 10:l=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(l.data),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](7);case 18:e.next=35;break;case 20:return u.batchNo=this.rowDetail.batchNo,u.paymentType=null===(m=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===m?void 0:m.paymentType,console.log(u),e.prev=23,e.next=26,Object(f["l"])(u);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}()}},P=C,F=(i("b58c"),i("2877")),D=Object(F["a"])(P,v,g,!1,null,"58df1511",null),O=D.exports,I=i("e623"),$=i("86e8"),A=i("cd32"),L=i("3762"),E=i("81fd"),j=i("267e"),R=i("92e3"),N={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:b["a"],memberPayForm:O,schoolPayForm:$["a"],QrCode:l["a"],review:A["a"],reviewDetail:L["a"],"pay-items":I["a"],subjectPreview:E["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:R["K"],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(T["b"])(j["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["f"])({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(r["a"])(Object(r["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(r["a"])(Object(r["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["s"])({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,i=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["B"])({id:i}).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["j"])({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["k"])(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?u()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?u()(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 i=e,a=new Date(i.replace(/-/g,"/"));a=new Date(1e3*(a/1e3+86400*t));var s=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate();return s},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 i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,i=this.$route.query.id,e.next=4,Object(p["K"])({musicGroupId:i}).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=N,M=(i("418a"),Object(F["a"])(G,a,s,!1,null,"f4940de8",null));t["a"]=M.exports},"08cd":function(e,t,i){"use strict";i("4753")},"0d3b":function(e,t,i){},"160b":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}));var a=i("b775"),s=i("829b"),r="/api-web";function n(e){return Object(s["a"])({url:r+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(a["a"])({url:r+"/chargeType/queryPage",method:"get",params:e})}},"19e1":function(e,t,i){},"1c40":function(e,t,i){"use strict";i("a8d2")},"21e6":function(e,t,i){"use strict";i("9038")},"23f0":function(e,t,i){},2588:function(e,t,i){"use strict";i("378b")},2677:function(e,t,i){},"2e3a":function(e,t,i){},3078:function(e,t,i){"use strict";i.d(t,"g",(function(){return s})),i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"d",(function(){return c})),i.d(t,"j",(function(){return u})),i.d(t,"h",(function(){return l})),i.d(t,"o",(function(){return m})),i.d(t,"n",(function(){return p})),i.d(t,"k",(function(){return d})),i.d(t,"m",(function(){return h})),i.d(t,"e",(function(){return f})),i.d(t,"f",(function(){return y})),i.d(t,"i",(function(){return b})),i.d(t,"l",(function(){return v}));var a=i("829b"),s=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},r=function(e){return Object(a["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(a["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},c=function(e){return Object(a["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},u=function(e){return Object(a["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},l=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"})},y=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/musicEnlightenmentQuestionnaireStat",params:e,method:"get",requestType:"form"})},b=function(e){return Object(a["a"])({url:"/api-web/sysMessageConfig/getWithType",params:e,method:"get",requestType:"form"})},v=function(e){return Object(a["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/sendParentMeetingNotice",params:e,method:"post",requestType:"form"})}},"31f0":function(e,t,i){e.exports=i.p+"static/img/yunTrain_bg.ff0ffe89.png"},"328e":function(e,t,i){},"346a":function(e,t,i){"use strict";i("67c9")},3664:function(e,t,i){"use strict";i("0d3b")},"36c9":function(e,t,i){},"378b":function(e,t,i){},"38ab":function(e,t,i){"use strict";i("5ea6")},"3f6d":function(e,t,i){},"3fa6":function(e,t,i){"use strict";i("a731")},"418a":function(e,t,i){"use strict";i("45e5")},"45e5":function(e,t,i){},4753:function(e,t,i){},"4c9b":function(e,t,i){"use strict";i("2677")},"4cf2":function(e,t,i){"use strict";i("a73e")},"51bf":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAABQCAYAAAB8racIAAAAAXNSR0IArs4c6QAABshJREFUaAXNmmtsFFUUx8+dfbTbLn3Sdnf7mN1teViCUUwwYoyYkBDUoLUNQhAKqDHqF/QDJmIiJmKCfsAvGj4olFeoPCVGDCFEEiOJJqgRWyrtPqav3ZbS59Jtu4/rObtM01ra7m5nZrnb9s7OzL3/X879z73n7hbckv9NeBhKm6d7zN3hW51uFgEBMqIRfq7N7y9OJ4zgDgwCcCiDID/NOdenC0Y46r4FQ6EJ1OfPutt9X6QNZCQ8AUfdTRDmUcCf3S6Pf0s6YMgj4L03DN93tMX1WfQbd0fPo1rDxEBI9HqfD36/6wfOISsaiZ6XpMF8LWEmQUj0bHsrdIyOoF14ZZgHT6J5p11XE2yaEPnkiLsZ7oVDyMI3eKSeT9QUn9r3NBC6MDgxBkc9zYDWpdded7t/49QGah3PACGhtpFB+LHLQ1FhONkdd3XeWaoWgNzvA0Ho4s89HfDXwB084jk8HL7Q29trlhupUc8KQmKNUgv4x0bJvNUjo5EGNQDkPucEmYhG4bDrHxiLhGmYal2S7wO5odL1nCAk1jcehBPelrguh/0uqWed0hDU37wgdFPz0F247JMoKjrOI43u7m6RzitZEgIhwcs+LwL1o1+gMDoB5z0enpkWEBI96b0VGyqEWcXBfyhtIEE07WFcqcnEOOHVu72+d5WCSXhoZEF/8B58J/0bexvlcLBN6nlavraQOmkQEvtzoDc24aFhDIxHz3i9d6wLgaC2KYFQQ1oCWjHNxCfJGobQWawNdD7VkjIILYrHcaUewEUSD9fgtuTLVCGoXcog1DiA6UIDpZloXozIO22Sr57Op1IWBEKCHaMBONfRGtNmnB9Cv6xKCwiJ/oYpJqWamGZmRnj4fGfncGGyMAuOiCxIybeESTgmU+J4ONBIy4F8LZFaMRBKM8kvgRClmbDO7fV/lgiAfI9iINQhbdQaKM1EEnztcUu+OllovlpREBKjLezFLldMF2feI5Lkq54Pgq4rDkKd/tLbBTf6eymzM4ej/IKrvz+Xzs9VVAEhwdPSbegKBnCIYCkfGj+G5mVpAQnxCBxxNcFoJIT6fKNL8n+UFhAS7cfp/4SnhaICGI59Lq/v+dlgVBsaWbBluB8uxfdIqMVPtrf3VMrXptaqg5DY1Z52uDnYR/NLXigSvdDdzbOmQtCxJiAkdAr3SL3jozS/rAxO+L+lc1OLZiBjkQgcbmvCPVIEI8M3u7zd76cFhEQpIhQZKhzYAY/Htzb2Bv9oFhFZcLZaU5DijCzYIi6PsWDussfhsF6TwTT7ODNTp4NdVSuAasZYY6XdelCGoFqziFAkKCIM2E2T0fL6VAg61iQi6ywirMxbjJGAQYMg1NhsDD/rmF5UB1mWUwAbbHYajihKb62oKInnCNM51B2aAmMmbHMsp3WG1pt96ItL/9OffKtaRAxMBzsrV0CWzkC++MEpWj6dVH3AgWpm3SQuhVKTmaLRCrkZ23BoaBGetagSkWeKS+GJAvzWhbGAnkGNWFAwNCvB/QuKR8RpzoOXSuMrvcBglyham+aDoOuKguQajLDDUQ0CPqf4+twpWs8kAkH3KDY0eibADucKMBvQnIxdRXN+mCgE3adYRGrKqkDMzqFISCZj9maEiSQDokhEniy0wFNFVpo5xzjjtTZbTl8yEIpEpDzLDLXlS2K6uGN4u0q03UgWgu5fUETMekPMF3pBIF98jTNnQyoQ1CZlj6A0bMcnJB+ncTy8jubcnSoEtUs5Ii+WOaFqUR5Fwq8DfR3WtJNKuaQE8nh+MawtLkNRFuJMqLOLRb6UCe43TBrEYsqGV8VlseY4c77nFEt+XSgEtU/KIyadHnbhpGVEc2I0jjnt1q+UgEgaZKv9EVicYSJz/qEDy1tKQVA/CQ/NeqsdqnMLCOKuYIRXHDaGH7AqVxICqc4thPVWkZ6QCGPCFqetRFIOId7TvB6hoXjNHt+LYDT2ojmvKA1B/c0JQqYkc2aiSTEa5ypF6wE1IOYF2Yx7EXpckaJ5UZZuh1oQ1O+sHnmupBweyy/CW9gw0+triouLApqD0NT9QqmDhoMLAtvuKCu6rSYE9T3DI3m4iNVTuofOxNd+R4XlotoQM0Ao3duJ5szG5R2j8ZNDLPlYC4gZIHUVS4ASHaRw65lpK8LQNlGTMmnWNYutsBpTPkz3RplOqBHL8wY0IbgvEvOIHZPel8ur4qe48IazvORvLSFIS79Ib4R69AX5A6fvg5V2yymtIWJ6V27e4vhvgvjru4af9k0OldYweocZvzhg0AmZbBOaM6w1gKxHERgXdKzWabHg9xppLA/Lv5H+BxiYV1F6ikd8AAAAAElFTkSuQmCC"},5363:function(e,t,i){"use strict";i("e62e")},5513:function(e,t,i){"use strict";i("328e")},"5cf5":function(e,t,i){},"5ea6":function(e,t,i){},"5f3d":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sound-container"},[i("div",{staticClass:"topMsg"},[i("p",[e._v("当前选择声部数(个):"+e._s(e.chioseSoundNum))]),e._v(" "),i("p",{staticStyle:{"margin-left":"30px"}},[e._v("计划招生人数(个):"+e._s(e.PlannedCount))])]),e._v(" "),i("soundSetCore",{ref:"soundSetCore",on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo,getNumber:e.getNumber}}),e._v(" "),i("div",{staticClass:"btnWrap"},["newTeam"==e.teamStatus?i("el-button",{attrs:{type:"primary"},on:{click:e.goback}},[e._v("上一步")]):e._e(),e._v(" "),"newTeam"==e.teamStatus?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/createGroup",parent:"/teamBuild/soundMoney"},expression:"{\n child: 'musicGroup/createGroup',\n parent: '/teamBuild/soundMoney',\n }"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo(2)}}},[e._v("提交")]):e._e(),e._v(" "),"teamDraft"==e.teamStatus?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitAudit(1)}}},[e._v("提交审核")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditSuccess",expression:"'musicGroup/auditSuccess'"}],attrs:{type:"primary"},on:{click:e.approval}},[e._v("审核通过")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditFailed",expression:"'musicGroup/auditFailed'"}],attrs:{type:"danger"},on:{click:e.refuse}},[e._v("驳回")]):e._e(),e._v(" "),"resetTeam"==e.teamStatus||"teamDraft"==e.teamStatus?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/updateSubjectInfo",expression:"'musicGroup/updateSubjectInfo'"}],attrs:{type:"primary"},on:{click:function(t){return e.submitInfo()}}},[e._v("\n 保存\n ")]):e._e()],1)],1)},s=[],r=i("1cc7"),n=(i("5a0c"),i("ff14")),o={components:{soundSetCore:n["a"]},data:function(){return{topfor:null,Fsearch:null,Frules:null,activeSoundList:[],chioseSoundNum:0,PlannedCount:0,teamStatus:null,teamid:null}},mounted:function(){this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type,"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",1),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",1)},activated:function(){"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",1),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",1),this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type},methods:{handleClick:function(e){},goback:function(){this.$emit("chiosetab",0)},submitInfo:function(e){this.$refs.soundSetCore.submitInfo(e)},chiosetab:function(e){this.$emit("chiosetab",e)},submitAudit:function(e){this.$refs.soundSetCore.submitInfo(e)},selectMusic:function(){this.$refs.soundSetCore.submitInfo(),this.$emit("chiosetab",3)},getNumber:function(e,t){this.chioseSoundNum=e,this.PlannedCount=t},getBaseInfo:function(e){this.$emit("getBaseInfo",e)},approval:function(){var e=this,t=this.$refs.soundSetCore.checkSubmit();t&&this.$confirm("是否审核通过?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r["h"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("审核通过"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))}))})).catch((function(){}))},refuse:function(){var e=this;this.$prompt("请输入拒绝原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var i=t.value;i?Object(r["g"])({musicGroupId:e.teamid,memo:i}).then((function(t){200==t.code&&(e.$message.success("已拒绝"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))})):e.$message.error("请输入驳回原因")}))}},computed:{}},c=o,u=(i("2588"),i("2877")),l=Object(u["a"])(c,a,s,!1,null,"5a628664",null);t["a"]=l.exports},6193:function(e,t,i){"use strict";i("aa6f")},"62f6":function(e,t,i){"use strict";i("9112")},"64cd":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"pay-container"},[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/resetTeaming/teamBaseInfo")?i("el-tab-pane",{attrs:{label:"学员缴费",name:"1"}},[i("resetPayList",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}})],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetSound")?i("el-tab-pane",{attrs:{label:"学校缴费",name:"2"}},[2==e.activeIndex?i("resetPayListSchool",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}}):e._e()],1):e._e()],1),e._v(" "),i("div",{staticClass:"btnWrap"},[i("div",{staticClass:"PrevBtn",on:{click:e.goback}},[e._v("上一步")]),e._v(" "),i("div",{staticClass:"submitBtn",on:{click:e.goHome}},[e._v("确定")])])],1)},s=[],r=i("5530"),n=(i("7f7f"),i("070d")),o=i("f610"),c=i("ec8a"),u={props:["baseInfo"],components:{resetPayList:n["a"],resetPayListSchool:o["a"]},data:function(){return{activeIndex:"1"}},created:function(){console.log(this.baseInfo)},methods:{goback:function(){this.$emit("chiosetab",1)},submitAudit:function(){this.$route.query.id},handleClick:function(e){this.activeIndex=e.name},permission:function(e){return Object(c["a"])(e)},goHome:function(){var e=this.$route.query;this.$router.push({path:"/teamList",query:Object(r["a"])({},e)})}}},l=u,m=(i("08cd"),i("2877")),p=Object(m["a"])(l,a,s,!1,null,"036ff7c2",null);t["a"]=p.exports},"67c9":function(e,t,i){},"704d":function(e,t,i){"use strict";i("96cf");var a=i("1da1"),s=i("2909"),r=i("5530"),n=i("2f62"),o=i("1cc7"),c=new n["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(r["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(s["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,i){var a,s,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.commit,s=t.state,e.prev=1,(null===(r=i.data)||void 0===r?void 0:r.musicGroupId)===s.musicGroup.id&&!i.force){e.next=8;break}return e.next=5,Object(o["Rb"])(i.data);case 5:return n=e.sent,a("updateBaseinfo",n),e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",Promise.resolve(s.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,i){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t,i){var a,s,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.commit,s=t.state,e.prev=1,!s.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(s.sounds));case 4:return e.next=6,Object(o["M"])(Object(r["a"])({},i.data));case 6:return n=e.sent,a("updateSound",n.data),e.abrupt("return",Promise.resolve(s.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,i){return e.apply(this,arguments)}return t}()}});t["a"]=c},"720f":function(e,t,i){},"72a0":function(e,t,i){"use strict";i("3f6d")},"73b3":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"basea-container"},[i("div",{staticClass:"baseTop"},[i("div",{staticClass:"left"},[i("teambaseinfo"),e._v(" "),i("div",{staticClass:"wrap"},["look"!==e.lookType?i("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?i("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)])])},s=[],r=(i("1cc7"),i("80b0")),n=i("bc3a"),o=i.n(n),c=i("4328"),u=i.n(c),l=i("5f87"),m=i("3908"),p={components:{teambaseinfo:r["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",i={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(l["b"])(),tenantId:Object(l["a"])()},data:u.a.stringify(i),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(a).then((function(t){var i=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(i).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 s=URL.createObjectURL(i),r=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+"订货清单.xls";r.href=s,r.setAttribute("download",c),document.body.appendChild(r),r.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",i={musicGroupId:this.$route.query.id},a={method:"POST",headers:{Authorization:Object(l["b"])(),tenantId:Object(l["a"])()},data:u.a.stringify(i),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){m["a"].startLoading(),o()(a).then((function(t){var i=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),a=new Response(i).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 s=URL.createObjectURL(i),r=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),c=e.$route.query.id+"-"+o+"分发清单.xls";r.href=s,r.setAttribute("download",c),document.body.appendChild(r),r.click()}})),m["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),m["a"].endLoading()}))})).catch((function(){}))}}},d=p,h=(i("4c9b"),i("2877")),f=Object(h["a"])(d,a,s,!1,null,"74af3a8d",null);t["a"]=f.exports},7400:function(e,t,i){"use strict";i("720f")},"787c":function(e,t,i){"use strict";i("5cf5")},"7a3c":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():i("el-form-item",{attrs:{label:"课程金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[i("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?i("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[i("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)},s=[],r=(i("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=r,o=(i("bc63"),i("2877")),c=Object(o["a"])(n,a,s,!1,null,"335a3792",null);t["a"]=c.exports},"80b0":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-container"},[i("div",{staticClass:"banseLeft"},[i("el-form",{ref:"topinfo",attrs:{model:e.topFrom,"label-width":"150px",inline:!0,"label-position":"left"}},[i("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),i("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[i("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(" "),i("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"乐团收费类型",prop:"type",rules:[{required:!0,message:"乐团收费类型不能为空"}]}},[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[i("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 i("el-option",{key:t.value,attrs:{label:t.label,value:Number(t.value),disabled:e.checkCourseView(Number(t.value))}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[i("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),i("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),i("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[i("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?i("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[i("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"}},[i("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),i("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1):e._e(),e._v(" "),1==e.tenantId?i("el-form-item",{attrs:{label:"课外训练布置老师",prop:"extracurricularTeacher"}},[i("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.extracurricularTeacher,callback:function(t){e.$set(e.topFrom,"extracurricularTeacher","string"===typeof t?t.trim():t)},expression:"topFrom.extracurricularTeacher"}},[i("el-option",{attrs:{label:"声部班老师",value:"NORMAL"}}),e._v(" "),i("el-option",{attrs:{label:"合奏班老师",value:"MIX"}})],1)],1):e._e(),e._v(" "),i("div",{staticClass:"head"},[e._v("人员配置:")]),e._v(" "),i("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[i("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 i("el-option",{key:a,attrs:{label:t.userName,value:Number(t.userId)}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[i("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 i("el-option",{key:a,attrs:{label:t.realName,value:t.id}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[i("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 i("el-option",{key:a,attrs:{label:t.userName,value:t.userId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"衔接老师",prop:"transactionTeacherId"}},[i("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 i("el-option",{key:a,attrs:{label:t.userName,value:t.userId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),i("div",{staticClass:"head"},[e._v("乐团设置:")]),e._v(" "),i("el-form-item",{attrs:{label:"同步群消息",prop:"homeworkPushFlag","label-width":"200px",rules:[{required:!0,message:"同步群消息不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[i("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 开课后作业同步群消息\n "),i("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 学员提交乐团课后作业时,群聊中是否发送作业提交消息\n ")]),e._v(" "),i("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),i("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(" "),i("el-form-item",{attrs:{label:"是否赠送辅件",prop:"memberCourseShowFlag","label-width":"200px",rules:[{required:!0,message:"是否赠送辅件不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[i("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 是否赠送辅件\n "),i("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("购买团练宝是否赠送辅件")]),e._v(" "),i("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),i("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(" "),i("br"),e._v(" "),"teamDraft"==e.teamStatus?i("el-form-item",{attrs:{label:""}},[i("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),i("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():i("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?i("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},s=[],r=(i("28a5"),i("a481"),i("ac6a"),i("5df3"),i("7f7f"),i("96cf"),i("1da1")),n=i("1cc7"),o=i("5a0c"),c=i.n(o),u=i("7676"),l=i.n(u),m=i("99b4"),p=i("641c"),d=i("92e3"),h=i("61f7"),f=i("879d"),y={components:{mergeMusic:f["a"],qrCode:p["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return{classStatus:d["l"],courseViewTypeList:d["v"],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,extracurricularTeacher:"NORMAL"},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(r["a"])(regeneratorRuntime.mark((function e(t){var i,a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(i=this.$helpers.lodash,a=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),i.isEqual(this.topFrom,a)||!a){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function e(){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,s.gotoNext(t);case 2:return i=e.sent,console.log(i),e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(s.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 i,a=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==a&&void 0!==a&&a.section)this.topFrom=a,null!==(i=this.topFrom)&&void 0!==i&&i.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 s,r=JSON.parse(localStorage.getItem("newTeambase"));console.log(r,this.topFrom),r?this.topFrom=r:this.topFrom,null!==(s=this.topFrom)&&void 0!==s&&s.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 i=[];t.sectionList.length<=0?i.push("organ"):t.topFrom.section||(t.$set(t.topFrom,"section",t.sectionList[0].id),t.changeSection(t.sectionList[0].id)),t.typeList.length<=0&&i.push("teamPayType"),t.$bus.$emit("showguide",i)}))},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(r["a"])(regeneratorRuntime.mark((function e(t){var i,a,s,r,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:r=e.sent,this.educationList=null===r||void 0===r||null===(i=r.data)||void 0===i?void 0:i.EDUCATION,this.technician=null===r||void 0===r||null===(a=r.data)||void 0===a?void 0:a.REPAIR,this.transactionList=null===r||void 0===r||null===(s=r.data)||void 0===s?void 0:s.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(i){i.id==e&&(console.log(i),t.$set(t.topFrom,"teacher",i.educationUserId),console.log(t.topFrom))}))),console.log("chioseSchool",this.topFrom.teacher)},gotoNext:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,s){a.$refs["topinfo"].validate(function(){var s=Object(r["a"])(regeneratorRuntime.mark((function s(r,n){return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(r){s.next=5;break}a.$message.error("请填写建团必要参数"),e(!1),s.next=16;break;case 5:if(a.$store.dispatch("topinfo",a.topFrom),"teamAudit"!=a.teamStatus){s.next=10;break}a.$emit("handleClick",{name:"2"}),s.next=16;break;case 10:return a.$emit("getName",a.topFrom.name),s.next=13,a.resetSubmit(t);case 13:i=s.sent,console.log(i,"tempStatus"),e(i);case 16:case"end":return s.stop()}}),s)})));return function(e,t){return s.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,a){i.$refs["topinfo"].validate(function(){var s=Object(r["a"])(regeneratorRuntime.mark((function s(o,u){var m,p;return regeneratorRuntime.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(o){s.next=5;break}i.$message.error("请填写必要参数"),a(),s.next=26;break;case 5:m=null,s.t0=i.teamStatus,s.next="resetTeam"===s.t0?9:"newTeam"===s.t0?11:"teamList"===s.t0?13:"teamDraft"===s.t0?15:17;break;case 9:return m="PROGRESS",s.abrupt("break",17);case 11:return m="DRAFT",s.abrupt("break",17);case 13:return m=null,s.abrupt("break",17);case 15:return m="DRAFT",s.abrupt("break",17);case 17:if(p={},p.musicGroup={settlementType:i.topFrom.salary,applyExpireDate:c()(i.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:i.topFrom.type,cooperationOrganId:i.topFrom.school,courseViewType:i.topFrom.courseViewType,teamTeacherId:i.topFrom.boss,enrollClasses:i.topFrom.startClass.join(","),name:i.topFrom.name,paymentPattern:i.topFrom.paymentPattern,paymentValidStartDate:i.topFrom.paymentValidStartDate?c()(i.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):i.topFrom.paymentValidStartDate,paymentValidEndDate:i.topFrom.paymentValidEndDate?c()(i.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):i.topFrom.paymentValidEndDate,organId:i.topFrom.section,schoolId:i.topFrom.address,id:i.teamid,directorUserId:i.topFrom.head,isClassroomLessons:i.topFrom.isClass,status:m,expectStartGroupDate:i.topFrom.startTime,ownershipType:i.topFrom.ownershipType,repairUserId:i.topFrom.repairUserId||null,feeType:i.topFrom.feeType,transactionTeacherId:i.topFrom.transactionTeacherId,homeworkPushFlag:i.topFrom.homeworkPushFlag,isGiveAccessories:i.topFrom.isGiveAccessories,memberCourseShowFlag:i.topFrom.memberCourseShowFlag,extracurricularTeacher:i.topFrom.extracurricularTeacher},"newTeam"==i.teamStatus){s.next=25;break}return s.next=22,Object(n["Bc"])(p).then(function(){var a=Object(r["a"])(regeneratorRuntime.mark((function a(s){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:200==s.code&&(localStorage.setItem("".concat(i.teamid,"base"),JSON.stringify(i.topFrom)),i.$emit("getBaseInfo"),"teamDraft"==i.teamStatus?(i.$message.success("保存成功"),t||i.$emit("handleClick",{name:"2"}),e(!0)):i.$message.success("修改乐团成功"),e(!0));case 1:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}());case 22:return s.abrupt("return",s.sent);case 25:Object(n["A"])(p).then((function(e){if(200==e.code){var t=i.$createElement;i.$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 i.$router.push({query:l()(i.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),i.$emit("getName",i.topFrom.name),i.$emit("handleClick",{name:"2"}),!0})).catch((function(){return i.$router.push({query:l()(i.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),i.$emit("getName",i.topFrom.name),i.init(),!0}))}}));case 26:case"end":return s.stop()}}),s)})));return function(e,t){return s.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,extracurricularTeacher:"NORMAL"},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 i=this;this.$refs[e].validate((function(e){e&&(t?Object(n["G"])({musicGroupId:i.teamid,expireDate:i.extendForm.expireDate}).then((function(e){200==e.code?(i.$message.success("延长缴费成功"),i.extendPaymentStatus=!1,Object(n["Rb"])({musicGroupId:i.teamid}).then((function(e){200==e.code&&(i.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):i.$message.error(e.msg)})):Object(n["F"])({musicGroupId:i.teamid,expireDate:i.extendForm.expireDate}).then((function(e){200==e.code?(i.$message.success("延长报名成功"),i.extendPaymentStatus=!1,Object(n["Rb"])({musicGroupId:i.teamid}).then((function(e){200==e.code&&(i.applyExpireDate=e.data.musicGroup.applyExpireDate,i.setBase(e))}))):i.$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 i=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(h["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+i}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(h["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:l()(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,this.topFrom.extracurricularTeacher=e.data.musicGroup.extracurricularTeacher,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 i in e.classStatus)if(t==e.classStatus[i].value)return e.classStatus[i].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},b=y,v=(i("6193"),i("21e6"),i("2877")),g=Object(v["a"])(b,a,s,!1,null,"527e6723",null);t["a"]=g.exports},"81fd":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{background:"#f3f4f8",overflow:"hidden"}},[i("tips"),e._v(" "),i("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?i("member",{attrs:{toolsPackage:e.toolsPackage,isGiveAccessories:e.isGiveAccessories,accessStatus:e.accessOries.length>0},on:{onCheckItem:e.onCheckItem}}):e._e(),e._v(" "),i("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?i("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("乐器保养")])]),e._v(" "),i("div",{staticClass:"section"},[i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("服务项目")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("时间")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[e._v("价格")])],1),e._v(" "),e._l(e.instrumentRepair,(function(t,a){return i("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(i){return e.onCheckItem(t)}}},[i("el-col",{attrs:{span:12}},[i("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(" "),i("el-col",{attrs:{span:6}},[i("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"(年)")])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])])],1)}))],2)]):e._e(),e._v(" "),i("accessories",{attrs:{trainSmallBg:e.trainSmallBg,accessOries:e.accessOries,isGiveAccessories:e.giveAccessoriesStatus},on:{onAuxiliarie:e.onCheckItem}}),e._v(" "),e.activityList&&e.activityList.length>0?i("activity",{attrs:{trainSmallBg:e.trainSmallBg,activityList:e.activityList},on:{onCheckItem:e.onCheckItem}}):e._e()],1)},s=[],r=(i("c5f6"),i("456d"),i("2909")),n=(i("7f7f"),i("ac6a"),i("96cf"),i("1da1")),o=i("ec8a"),c=i("1cc7"),u=i("5a0c"),l=i.n(u),m=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},p=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"paymentTips"},[i("h2",{staticClass:"titleTips",staticStyle:{"padding-top":"12px"}},[e._v("注册说明")]),e._v(" "),i("div",{staticClass:"noticeInfo"},[e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),i("br"),e._v("\n 2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n ")])])}],d=(i("fc99"),i("2877")),h={},f=Object(d["a"])(h,m,p,!1,null,"338c14ea",null),y=f.exports,b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[1==e.courseViewType&&e.courseShowInfo.length>0?[i("div",{staticClass:"yunTrain"},[i("img",{attrs:{src:e.trainBg}}),e._v(" "),i("div",{staticClass:"toolText"},[i("p",{staticClass:"toolTitle"},[e._v("服务")]),e._v(" "),e.serviceValidDate?i("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?i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("乐团课程")])]):e._e(),e._v(" "),e.courseInfo?[(0==e.courseViewType||2==e.courseViewType)&&e.courseInfo.length>0?i("div",{staticClass:"section"},[i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("时长")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[e._v("价格")])],1),e._v(" "),e._l(e.courseInfo,(function(t,a){return i("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(i){return e.onCheckItem(t)}}},[i("el-col",{attrs:{span:12}},[i("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(" "),i("el-col",{attrs:{span:6}},[i("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.courseTotalMinuties)+"(分钟)")])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("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?i("div",{staticClass:"section"},e._l(e.courseShowInfo,(function(t,a){return i("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(i){return e.onCheckItem(t)}}},[i("el-col",{attrs:{span:16}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"disabled":""]}),e._v(" "),i("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?i("el-icon",{attrs:{name:"question"},on:{click:function(t){return t.stopPropagation(),e.onQuestions("amr")}}}):e._e()],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)})),1):e._e(),e._v(" "),e.memberCourseShowFlag&&2==e.courseViewType?i("div",{staticClass:"section"},[i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("赠送课程")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("原价")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[e._v("现价")])],1),e._v(" "),e._l(e.memberCoursePrice,(function(t){return i("el-row",{key:t.name,staticClass:"option-row",staticStyle:{"line-height":"20px","padding-top":"8px","font-size":"12px"}},[i("el-col",{staticStyle:{"padding-left":"24px",color:"#808080",position:"relative"},attrs:{span:12}},[i("i",{staticClass:"small_point"}),e._v(" "+e._s(t.name))]),e._v(" "),i("el-col",{attrs:{span:6}},[i("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))])])],1)}))],2):e._e()]:e._e()],2)},v=[],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:i("31f0"),videoStatus:!1}},methods:{onCheckItem:function(e){this.$emit("onCourseChange",e)},onQuestions:function(e){this.$emit("onQuestions",e)}}},S=g,_=(i("1c40"),Object(d["a"])(S,b,v,!1,null,"83c4ef90",null)),w=_.exports,x=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"instrumentModel"},[e.instrumentResultList.length>0?i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("乐器")])]):e._e(),e._v(" "),e.instrumentResultList.length>0?i("div",{staticClass:"section"},e._l(e.instrumentResultList,(function(t,a){return i("div",{key:a},[i("el-row",{staticClass:"title-row"},[i("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(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[["GROUP","LEASE","FREE"].includes(t[0]["kitType"])?[e._v("原价")]:e._e()],2),e._v(" "),i("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 i("div",{key:a},[i("div",{on:{click:function(i){return e.instrumentF(t)}}},[i("el-row",{staticClass:"option-row"},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),i("div",[e._v("\n "+e._s(t.name)+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:6}},["owned"!=t.kitType?i("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.marketPrice)))]):e._e()]),e._v(" "),i("el-col",{attrs:{span:6}},["LEASE"==t.kitType?i("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?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))]):e._e(),e._v(" "),"GROUP"==t.kitType?i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.price-t.coupon).toFixed(2)))))]):e._e()])],1),e._v(" "),i("el-row",{staticStyle:{"padding-left":"26px","margin-bottom":"5px"}},[i("el-col",{attrs:{span:24}},[i("div",{staticStyle:{display:"flex","align-items":"center"}},[t.goodsList?i("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?i("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()])},T=[],k={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}}},C=k,P=(i("a358"),Object(d["a"])(C,x,T,!1,null,"e771b43e",null)),F=P.exports,D=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[e.accessOries.length>0?i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("辅件")])]):e._e(),e._v(" "),e.accessOries.length>0?i("div",{key:"accessOries",staticClass:"section"},[i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("辅件商品")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("原价")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.accessOries,(function(t,a){return i("div",{key:a},[i("el-row",{staticClass:"option-row",nativeOn:{click:function(i){return e.onAuxiliarie(t)}}},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(e._s(t.name)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:6}},[i("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.goodsList[0]?t.goodsList[0].marketPrice:0)))])]),e._v(" "),i("el-col",{attrs:{span:6}},[0==t.price?i("span",{staticStyle:{color:"#1a1a1a"}},[e._v("免费")]):i("span",{staticStyle:{color:"#1a1a1a"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.isGiveAccessories?0:t.price)))])])],1),e._v(" "),t.childGoodsList?i("el-row",{staticStyle:{"padding-left":"24px"}},e._l(t.childGoodsList,(function(a,s){return i("el-col",{key:a.id},[i("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(a.name)+"\n "+e._s(t.childGoodsList.length-1==s?"":"、"))])])})),1):e._e()],1)}))],2):e._e()])},O=[],I={name:"courseModel",props:{trainSmallBg:String,accessOries:Array,isGiveAccessories:Boolean},data:function(){return{}},methods:{onAuxiliarie:function(e){this.$emit("onAuxiliarie",e)}}},$=I,A=(i("b56c"),Object(d["a"])($,D,O,!1,null,"72518692",null)),L=A.exports,E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[i("h2",{staticClass:"titles"},[i("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),i("span",[e._v("小班课")])]),e._v(" "),i("div",{staticClass:"section"},[i("el-row",{staticClass:"title-row"},[i("el-col",{attrs:{span:12}},[e._v("课程类型")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("课程数")]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[e._v("价格")])],1),e._v(" "),e._l(e.activityList,(function(t,a){return i("div",{key:a},[i("el-row",{staticClass:"option-row",nativeOn:{click:function(i){return e.onCourseChange(t)}}},[i("el-col",{attrs:{span:12}},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":""]}),e._v(" "),i("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.categoryName))]],2)]),e._v(" "),i("el-col",{attrs:{span:6}},[i("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"(节)")])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])])],1)],1)}))],2)])},j=[],R={name:"courseModel",props:{trainSmallBg:String,activityList:Array},methods:{onCourseChange:function(e){this.$emit("onCheckItem",e)}}},N=R,G=(i("7400"),Object(d["a"])(N,E,j,!1,null,"f72077ca",null)),M=G.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,i){return a("div",{key:i},[a("el-row",{staticClass:"option-row",nativeOn:{click:function(i){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(i,s){return a("el-col",{key:i.name},[a("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(i.name)+"\n "+e._s(t.childGoodsList.length-1==s?"":"、"))])])})),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:i("df4f")}}):e._e()])],2)},U=[],q={name:"courseModel",props:{courseViewType:[Number,String],toolsPackage:Array,trainSmallBg:String,isGiveAccessories:Boolean,accessStatus:Boolean},data:function(){return{trainBg:i("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=q,z=(i("c388"),Object(d["a"])(B,V,U,!1,null,"54806c67",null)),Y=z.exports,Q={props:["subjectId","calenderId","preViewData"],components:{Tips:y,courseModel:w,InstrumentModel:F,accessories:L,activity:M,member:Y},data:function(){var e=this.$route.query;return{videoStatus:!1,trainBg:i("31f0"),trainSmallBg:i("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,i=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(c["Nb"])(t).then((function(e){var t=e;if(200==t.code){var a=t.data;i.__dataFormat(a)}i.calcPrice()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),__dataFormat:function(e){var t,i=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 s=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=l()(e.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+l()(e.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var c=a?a.paymentCalender:e.paymentCalender||null,u=c&&c.course?c.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=c&&c.member?c.member:{};d.isStatus=!0,this.toolsPackage=d.actualAmount?[d]:[];var h=c&&c.repair?c.repair:{};h.name="乐器保养",h.isStatus=!0,this.instrumentRepair=h.actualAmount?[h]:[];var f=c&&c.activity?c.activity:[];f.map((function(e){e.isStatus=!0})),this.activityList=Object(r["a"])(f),u&&u.length>0&&(u.forEach((function(e){e.isStatus=!0})),this.courseInfo=u),this.musicGroupSubject=e.musicGroupSubjectPlan||[];var y={},b=[],v="SCHOOL"==(null===(t=this.preViewData)||void 0===t?void 0:t.payUserType)||"PROGRESS"==s?[]:e.musicGroupSubjectGoodsGroupList;if(null===v||void 0===v||v.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{},a=function(a){var s=Object.assign({},e);s.marketPrice=s.goodsList[0].marketPrice,s.kitType=a,s.coupon=t[a],s.discountPrice=s.goodsList[0].discountPrice,y.id?(s.isStatus=!1,"GROUP"==a?("GROUP"==y.kitType&&y.price<s.price||"LEASE"==y.kitType||"FREE"==y.kitType)&&(i.instrumentResult.forEach((function(e){e.isStatus=!1})),s.isStatus=!0,y={id:s.id,price:s.price,kitType:a,groupRemissionCourseFee:s.groupRemissionCourseFee}):"LEASE"==a?"LEASE"==y.kitType&&y.price<s.price&&(i.instrumentResult.forEach((function(e){e.isStatus=!1})),s.isStatus=!0,y={id:s.id,price:s.price,kitType:a,groupRemissionCourseFee:s.groupRemissionCourseFee}):"FREE"==a&&"FREE"==y.kitType&&y.price<s.price&&(i.instrumentResult.forEach((function(e){e.isStatus=!1})),s.isStatus=!0,y={id:s.id,price:s.price,kitType:a,groupRemissionCourseFee:s.groupRemissionCourseFee})):(s.isStatus=!0,y={id:s.id,price:s.price,kitType:a,groupRemissionCourseFee:s.groupRemissionCourseFee});var r=[];s.childGoodsList&&s.childGoodsList.length>0&&(s.childGoodsList.forEach((function(e){"INSTRUMENT"!=e.type&&"OTHER"!=e.type&&r.push(e.name)})),s.childGoodsNames=r.join("、")),i.instrumentResult.push(s),b.push(s)};for(var s in t)a(s)}else"ACCESSORIES"==e.type&&(e.isStatus=!0,i.accessOries.push(e))})),this.instrumentResult.length>0){var g=this.groupBy(b,(function(e){return[e.kitType]}));this.instrumentResultList=g,this.instrumentGetStatus(),this.setLeBaoStatus()}this.giveAccessoriesSetStatus(),this.calcPrice()},groupBy:function(e,t){var i={};return e.forEach((function(e){var a=JSON.stringify(t(e));i[a]=i[a]||[],i[a].push(e)})),Object.keys(i).map((function(e){return i[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=[],i=0,a=0,s=0,r=0,n={},o=[],c=0,u=[],l=[],m=0,p=0,d=0,h=0,f=0,y="",b=this.musicGroupSubject,v=this.courseInfo;b&&v.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),i+=parseFloat(t.actualAmount)):e.buyCloudTeacher=!1}));var S=this.instrumentResult;S.length>0&&S.forEach((function(t){t.isStatus&&("自备乐器"!=t.name&&(y+=t.goodsIdList),"FREE"==t.kitType?(i+=0,c=0):"LEASE"==t.kitType?(c=t.coupon,"自备乐器"!=t.name?(i+=t.depositFee,s+=t.depositFee):i+=0):"GROUP"==t.kitType&&(2!=e.courseViewType||55!=e.organId||e.toolsPackage[0].isStatus?(i+=parseFloat(t.price),s+=parseFloat(t.price),c=t.coupon?t.coupon:0):(i+=parseFloat(t.discountPrice),s+=parseFloat(t.discountPrice),c=t.coupon?t.coupon:0)),"LEASE"==t.kitType?"自备乐器"!=t.name&&(a+=parseFloat(t.marketPrice),r+=t.depositFee):(a+=parseFloat(t.marketPrice),r+=parseFloat(t.marketPrice)),t.id&&(n[t.id]=t.kitType),"GROUP"==t.kitType&&1==t.groupRemissionCourseFee&&(p=parseFloat(p-f)))}));var _=this.instrumentRepair;_.length>0&&_.forEach((function(t){t.isStatus?(e.buyMaintenance=!0,a+=t.originalAmount,i+=parseFloat(t.actualAmount)):e.buyMaintenance=!1})),i+=parseFloat(m+p),this.accessOries.length>0&&this.accessOries.forEach((function(t){t.isStatus&&(d+=e.giveAccessoriesStatus?0:parseFloat(t.price),i+=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&&(l.push(e.id),a+=e.originalAmount,i+=parseFloat(e.actualAmount))}));var x=i;this.payCountMoney=i,this.ids=t,this.needPrice=Number(i.toFixed(2)),this.orderInfo={amount:Number(i.toFixed(2)),marketPrice:Number(a.toFixed(2)),groupPurchasePrice:x,couponPrice:c,goodsGroupIds:n,goodsIds:u.join(","),contractGoodsIds:y,buyCalenderActivityId:l,courseKeys:o,musicClassFee:p,accessMarketPrice:h,accessPrice:d,goodsPrice:s,goodsMarketPrice:r}},permission:function(e){return Object(o["a"])(e)}}},J=Q,H=(i("4cf2"),Object(d["a"])(J,a,s,!1,null,"4aae2390",null));t["a"]=H.exports},8550:function(e,t,i){},"86e8":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div")},s=[],r={},n=r,o=i("2877"),c=Object(o["a"])(n,a,s,!1,null,"21abf8f1",null);t["a"]=c.exports},"879d":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"merge-music"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?i("empty",{attrs:{desc:"暂未选择乐团"}}):i("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 i("el-collapse-item",{key:a,staticClass:"item",attrs:{name:a},scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticClass:"header"},[i("span",{staticClass:"title"},[i("span",[e._v(e._s(t.name))])]),e._v(" "),i("span",{staticStyle:{width:"20%"}},[i("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),i("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(a)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),i("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),i("div",{staticClass:"btns"},[i("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),i("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[i("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),i("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?i("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},s=[],r=(i("96cf"),i("1da1")),n=i("5530"),o=i("b85c"),c=(i("ac6a"),i("456d"),i("160b")),u=i("3078"),l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container",staticStyle:{width:"100%"}},[i("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)}}},[i("el-form-item",{attrs:{prop:"musicGroupName"}},[i("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(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),i("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}},[i("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),i("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(" "),i("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},m=[],p=(i("386d"),i("7f7f"),i("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 i in e){var a={};a.id=e[i].id,a.name=e[i].name,t.push(a)}this.passed=t},FetchList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["b"])(Object(n["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==i.$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=(i("f6ab"),i("2877")),y=Object(f["a"])(h,l,m,!1,null,"a1db0832",null),b=y.exports,v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("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)}}},[i("el-form-item",{attrs:{prop:"keyword"}},[i("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(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},g=[],S=(i("6762"),i("2fdb"),i("1672")),_={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 i=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return i}))},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 i in e)t.push(e[i].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(S["f"])({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=_,x=Object(f["a"])(w,v,g,!1,null,null,null),T=x.exports,k=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("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)}}},[i("el-form-item",{attrs:{prop:"keyword"}},[i("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(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},C=[],P=i("1cc7"),F={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 i=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return i}))},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 i in e)t.push(e[i].userId);this.passed=t},removeStuden:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除已选择学员?","提示",{type:"warning"});case 3:return e.next=5,Object(u["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(P["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}()}},D=F,O=Object(f["a"])(D,k,C,!1,null,null,null),I=O.exports,$={props:["organId"],components:{selectMusic:b,selectItem:T,mergedStudents:I},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,i={},a=Object(o["a"])(e);try{for(a.s();!(t=a.n()).done;){var s=t.value;i[s.id]?i[s.id]=Object(n["a"])(Object(n["a"])({},i[s.id]),s):i[s.id]=Object(n["a"])(Object(n["a"])({},s),{},{num:0})}}catch(r){a.e(r)}finally{a.f()}this.items=i},remove:function(e){var t=Object(n["a"])({},this.items),i=Object(n["a"])({},this.studentsByMusicId);delete t[e],delete i[e],this.items=Object(n["a"])({},t),this.studentsByMusicId=Object(n["a"])({},i)},selected:function(e,t){var i=this.studentsByMusicId;i[t]||(i[t]=[]),i[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=i},merge:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,i)&&(a=this.studentsByMusicId[i],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(u["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 i in e)t.push(e[i].id);this.passed=t},FetchList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["b"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},A=$,L=(i("b409"),Object(f["a"])(A,a,s,!1,null,"7c80868a",null));t["a"]=L.exports},"8c19":function(e,t,i){},9038:function(e,t,i){},9112:function(e,t,i){},9214:function(e,t,i){e.exports=i.p+"static/img/yunTrain_small_bg.b5242407.png"},"940a":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}]},["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&2!=e.courseViewType?i("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&"ADD_STUDENT"!==e.paymentTypeString?i("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?[i("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),i("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?i("div",[i("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():[i("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),i("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?i("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?i("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?i("div",[i("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),i("el-form",{ref:"payment",attrs:{model:e.payment}}),e._v(" "),e.isMulticycle&&"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?[i("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,a){return i("el-collapse-item",{key:a,attrs:{name:a}},[i("template",{slot:"title"},[i("div",{staticClass:"collapse-title"},[i("span",[e._v("缴费周期 "+e._s(a+1))]),e._v(" "),e.cycles.length>1?i("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(a)}}}):e._e()])]),e._v(" "),i("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(" "),i("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:i("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(" "),i("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),i("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["SPAN_GROUP_CLASS_ADJUST"!=e.paymentTypeString?i("p",[e._v("\n 缴费总金额:"+e._s(e.money||0)+"元\n ")]):e._e(),e._v(" "),i("div",[i("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)]),e._v(" "),i("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[i("classrooms",{on:{close:e.closeNext}})],1)],2)},s=[],r=i("15fd"),n=(i("6762"),i("2fdb"),i("2909")),o=i("5530"),c=(i("96cf"),i("1da1")),u=i("b85c"),l=i("d349"),m=i("1cc7"),p=i("1672"),d=i("267e"),h=i("ed08"),f=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("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)?i("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[i("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),i("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?i("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[i("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 i("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?i("el-alert",{staticStyle:{"margin-left":"160px",width:"auto","margin-bottom":"20px"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[i("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"类型,若需创建其他类型的收费标准,请先修改乐团基本信息中的乐团收费类型\n "),i("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1196575070)}):e._e()],1)},y=[],b={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail","courseViewType"],mounted:function(){},watch:{paymentType:function(){}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},v=b,g=(i("ef8e"),i("2877")),S=Object(g["a"])(v,f,y,!1,null,"4fd71742",null),_=S.exports,w=i("7a3c"),x=i("0464"),T=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",attrs:{model:e.list}},[i("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("el-table-column",{attrs:{label:"学员姓名",prop:"username"}}),e._v(" "),i("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{label:"课程时长(分钟)",prop:"courseTime",width:"130"}}),e._v(" "),i("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[i("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(i){e.$set(e.list.form[t.$index],"courseCurrentPrice",i)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[i("template",{slot:"header"},[i("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),i("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),i("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),i("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[i("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(i){e.$set(e.list.form[t.$index],"courseOriginalPrice",i)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable&&e.$listeners.remove?i("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?i("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(i){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?i("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)},k=[],C=i("92e3"),P=i("6612"),F=i.n(P),D=(i("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(C["b"])(C["m"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return F()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(i,a,s){var r=t.list.form[e].courseType;r&&a>1&&t.classTimeList[r]&&a<t.classTimeList[r]?s(new Error("单节课不得少于".concat(t.classTimeList[r],"分钟"))):s()}}}}),O=D,I=(i("38ab"),Object(g["a"])(O,T,k,!1,null,"de513a92",null)),$=I.exports,A=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[i("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},L=[],E={data:function(){return{list:[]}},methods:{submit:function(){}}},j=E,R=(i("62f6"),Object(g["a"])(j,A,L,!1,null,"37928f5f",null)),N=R.exports,G=i("b133"),M=i("ace5"),V=(i("73b3"),i("7676")),U=i.n(V),q=i("5a0c"),B=i.n(q),z={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:_,paymentCycle:w["a"],extraClass:x["a"],extraClassUser:$,classrooms:N,otherform:G["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={},i=Object(u["a"])(this.charges);try{for(i.s();!(e=i.n()).done;){var a=e.value;t[a.id]=a}}catch(s){i.e(s)}finally{i.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,i,a,s;this.viewDetail.musicGroupPaymentCalenders;e=(null===(t=this.viewDetail)||void 0===t||null===(i=t.calender)||void 0===i?void 0:i.paymentType)||(null===(a=this.viewDetail)||void 0===a||null===(s=a.auditDto)||void 0===s?void 0:s.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(c["a"])(regeneratorRuntime.mark((function e(t){var i,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["p"])({id:t});case 4:i=e.sent,this.eclass=i.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(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a,s,r,n,c,u,l,d,h,f,y,b,v,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===(i=t.musicGroup)||void 0===i?void 0:i.organId,this.courseViewType=null===(a=this.baseInfo)||void 0===a||null===(s=a.musicGroup)||void 0===s?void 0:s.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(r in z)z.hasOwnProperty(r)&&(n=z[r],n===this.rowDetail.paymentType&&(this.$emit("changePaymentType",r),this.$set(this.form,"leixing",r+"")));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===(c=this.viewDetail.member)||void 0===c?void 0:c.memberRankSettingId)||null),this.$set(this.memberForm,"num",(null===(u=this.viewDetail.member)||void 0===u?void 0:u.num)||null),this.$set(this.memberForm,"period",(null===(l=this.viewDetail.member)||void 0===l?void 0:l.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["h"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 33:g=e.sent,this.viewDetail=g.data,S=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===(y=this.viewDetail.auditDto)||void 0===y?void 0:y.paymentPattern)),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",S.paymentPattern+""),_=[S.paymentValidStartDate,S.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[S.startPaymentDate,S.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",_)),this.studentIds=S.studentIds,null!==(b=g.data.auditDto)&&void 0!==b&&b.musicGroupOrganizationCourseSettingsId&&(this.isSetCourseSettingsId=!0),this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(v=g.data.auditDto)||void 0===v?void 0:v.musicGroupOrganizationCourseSettingsId),2==this.courseViewType&&1==this.form.leixing&&this.$set(this.memberForm,"paymentDate",[B()(S.startPaymentDate).format("YYYY-MM-DD"),B()(S.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,i,a=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,s=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,r={},n=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return a&&a==e.organId&&s&&s==e.chargeTypeId})),o=Object(u["a"])(n);try{for(o.s();!(i=o.n()).done;){var c=i.value;r[c.courseType]=c}}catch(l){o.e(l)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=r,r},priceChange:function(e,t){var i=Object(n["a"])(this.eclass),a=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},s=Math.round(F()(a.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=s,e.courseOriginalPrice=s,i[t]=e,this.eclass=Object(n["a"])(i),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 i,a=0,s=0,r=0,n="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,c=Object(u["a"])(n);try{for(c.s();!(i=c.n()).done;){var l=i.value;if(a+=l.courseCurrentPrice,this.cycles&&this.cycles.length)if(l.isStudentOptional)s+=l.courseCurrentPrice;else{var m=Math.floor(l.courseCurrentPrice/this.cycles.length),p=l.courseCurrentPrice%this.cycles.length;s+=m+p,r+=m}}}catch(d){c.e(d)}finally{c.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(o["a"])(Object(o["a"])({},e),{},{paymentAmount:0===t?s:r})}))),this.$set(this.cycle,"paymentAmount",a),a+=parseFloat(this.memberForm.memberPaymentAmount||0),this.money=a,a},getChargeTypeList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a,s,r,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,r=null===(i=this.musicGroup)||void 0===i?void 0:i.chargeTypeId,this.chargeTypeName=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeName,e.prev=3,e.next=6,Object(l["y"])({row:9999,chargeTypeId:r,organId:s});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,i){return i-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(c["a"])(regeneratorRuntime.mark((function e(){var t,i,a,s,c,l,m,d,f,y,b,v,g,S,_,w,x,T,k,C,P,F,D,O,I,$,A,L,E,j,R,N,G;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),i=[],a=Object(u["a"])(t);try{for(c=function(){var e=s.value;e.validate((function(t){t&&i.push(e)}))},a.s();!(s=a.n()).done;)c()}catch(M){a.e(M)}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(i.length!==t.length){e.next=86;break}if("ADD_STUDENT"!=this.rowDetail.paymentType){e.next=30;break}return l=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["o"])(l);case 12:if(m=e.sent,200==m.code&&(this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close()),207!=m.code){e.next=23;break}return e.next=17,this.$confirm(m.msg||"当前乐团存在未排课的缴费项目,请再次确认操作","提示",{type:"warning"});case 17:return l.confirmCreate=!0,e.next=20,Object(p["o"])(l);case 20:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close();case 23:e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](9),console.log(e.t0);case 28:e.next=86;break;case 30:_=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,i=e.paymentValid,a=Object(r["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},a),Object(h["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(h["a"])(i,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),w=_.leixing,x=Object(r["a"])(_,["leixing"]),T=this.memberForm,k=T.paymentDate,C=Object(r["a"])(T,["paymentDate"]),2==this.courseViewType&&1==this.form.leixing&&(x.musicGroupPaymentDateRangeList[0]=Object(o["a"])({},Object(h["a"])(k,["startPaymentDate","deadlinePaymentDate"]))),this.$refs.cycle&&(P=this.cycle,F=P.paymentDate,D=P.paymentValid,O=Object(r["a"])(P,["paymentDate","paymentValid"]),x.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},O),Object(h["a"])(F,["startPaymentDate","deadlinePaymentDate"])),Object(h["a"])(D,["paymentValidStartDate","paymentValidEndDate"]))]),I=Object(o["a"])(Object(o["a"])(Object(o["a"])({},x),C),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:z[0==this.paymentType?this.paymentType:w],musicGroupId:this.musicGroupId}),$=null===(d=this.viewDetail)||void 0===d?void 0:d.musicGroupPaymentCalenders[0],$&&"ADD_STUDENT"===(null===(f=this.viewDetail)||void 0===f?void 0:f.auditDto.paymentType)&&(I.attribute1=$.attribute1),A=!1,L=Object(u["a"])(I.musicGroupPaymentCalenderCourseSettingsList),e.prev=39,L.s();case 41:if((E=L.n()).done){e.next=48;break}if(j=E.value,!(j.courseCurrentPrice>0||1==j.isStudentOptional)){e.next=46;break}return A=!0,e.abrupt("break",48);case 46:e.next=41;break;case 48:e.next=53;break;case 50:e.prev=50,e.t1=e["catch"](39),L.e(e.t1);case 53:return e.prev=53,L.f(),e.finish(53);case 56:if(2!=(null===(y=this.baseInfo)||void 0===y||null===(b=y.musicGroup)||void 0===b?void 0:b.courseViewType)&&3!=(null===(v=this.baseInfo)||void 0===v||null===(g=v.musicGroup)||void 0===g?void 0:g.courseViewType)||0!=this.paymentType||!A||"user"!==this.type){e.next=59;break}return this.$message.error("会员收费模式报名缴费项目课程费用不得大于0且不可选"),e.abrupt("return");case 59:if(null!==(S=this.rowDetail)&&void 0!==S&&S.batchNo){e.next=73;break}return e.prev=60,e.next=63,Object(p["i"])(I);case 63:R=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(R.data),e.next=71;break;case 69:e.prev=69,e.t2=e["catch"](60);case 71:e.next=86;break;case 73:return e.prev=73,I.batchNo=this.rowDetail.batchNo,I.paymentType=null===(N=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===N?void 0:N.paymentType,e.next=78,Object(p["l"])(I);case 78:G=e.sent,this.$listeners.close(),this.$listeners.submited(G.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:U()(this.$route.query,{type:"feeAudit"})}),e.next=86;break;case 84:e.prev=84,e.t3=e["catch"](73);case 86:case"end":return e.stop()}}),e,this,[[9,25],[39,50,53,56],[60,69],[73,84]])})));function t(){return e.apply(this,arguments)}return t}()}},Q=Y,J=(i("5363"),Object(g["a"])(Q,a,s,!1,null,"9d0e49fc",null));t["a"]=J.exports},"9a00":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-container"},[i("div",{staticClass:"line"}),e._v(" "),i("h2",[i("el-page-header",{attrs:{content:e.pageName},on:{back:e.goBack}})],1),e._v(" "),i("div",{staticClass:"m-core"},[i("div",{staticClass:"stepbox"},[i("span",{staticClass:"stepspan stepspan1"},[i("div",{staticClass:"step1 sptep",class:e.activeIndex>=0?"activestep":""},[e._v("\n 基本信息\n ")]),e._v(" "),i("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=0?e.stepImgs.nol:e.stepImgs.active,alt:""}})]),e._v(" "),!e.showFlag||e.activeIndex>=1?i("span",{staticClass:"stepspan stepspan2"},[i("div",{staticClass:"step2 sptep",class:e.activeIndex>=1?"activestep":""},[e._v("\n 声部设置\n ")]),e._v(" "),i("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=1?e.stepImgs.nol:e.stepImgs.active,alt:""}})]):e._e()]),e._v(" "),i("div",{staticClass:"stepcontent"},[i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.activeIndex,expression:"activeIndex == 0"}]},[i("teamBaseInfo",{ref:"teamBaseInfo",attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1),e._v(" "),e.showSecond?i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.activeIndex,expression:"activeIndex == 1"}]},[i("teamSoundMoney",{attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1):e._e()])])])},s=[],r=(i("7f7f"),i("7676")),n=i.n(r),o=i("80b0"),c=i("5f3d"),u=i("64cd"),l={components:{teamBaseInfo:o["a"],teamSoundMoney:c["a"],teamPayInfo:u["a"]},name:"teamBuild",data:function(){return{activeIndex:0,stepImgs:{nol:i("51bf"),active:i("f8e4")},pageName:"建团申请",getTeamList:[],teamStatus:"",showSecond:!1}},created:function(){this.init()},activated:function(){"true"==this.$route.query.clear&&(this.showSecond=!1,this.$store.dispatch("buildIndex",0),this.$router.push({query:n()(this.$route.query,{clear:!1})})),this.init()},destroyed:function(){this.showSecond=!1,console.log("页面销毁")},methods:{init:function(){this.teamStatus=this.$route.query.type,this.$route.query.teamList&&(this.getTeamList=this.$route.query.teamList),"newTeam"==this.teamStatus?(this.pageName="建团申请",this.activeIndex=this.$store.getters.buildIndex||0):(this.pageName="乐团修改",this.activeIndex=this.$store.getters.draftIndex||0)},chiosetab:function(e){this.activeIndex=e,(0==e&&"newTeam"!=this.teamStatus||0==e&&"feeAudit"!=this.teamStatus)&&this.$refs.teamBaseInfo.init(),this.showSecond=!0},goBack:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getBaseInfo:function(e){var t;this.baseInfo=e,this.pageName=null===(t=e.musicGroup)||void 0===t?void 0:t.name}},computed:{showFlag:function(){return"newTeam"==this.teamStatus||"teamList"==this.teamStatus}}},m=l,p=(i("ca6d"),i("2877")),d=Object(p["a"])(m,a,s,!1,null,"74404687",null);t["default"]=d.exports},"9c2c2":function(e,t,i){},"9d64":function(e,t,i){e.exports=i.p+"static/img/logo.ae7b11a3.png"},a19b:function(e,t,i){},a1ab:function(e,t,i){},a358:function(e,t,i){"use strict";i("19e1")},a6e9:function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return n}));var a=i("b775"),s=(i("4328"),"/api-web");function r(e){return Object(a["a"])({url:s+"/sysConfig/list",method:"get",params:e})}function n(e){return Object(a["a"])({url:s+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},a731:function(e,t,i){},a73e:function(e,t,i){},a8d2:function(e,t,i){},aa6f:function(e,t,i){},ace5:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": ",inline:!0}},[e.isUserType&&e.addStudent?i("el-form-item",{attrs:{label:"是否购买会员"}},[i("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[i("el-radio",{attrs:{label:!0}},[e._v("购买会员")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("不购买会员")])],1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?i("el-form-item",{attrs:{label:"会员等级",prop:"memberRankSettingId",rules:[{required:!0,message:"请选择会员等级",trigger:"blur"}]}},[i("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 i("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?i("el-form-item",{attrs:{label:"会员周期",prop:"num",rules:[{required:!0,message:"请选择会员周期",trigger:"blur"}]}},[i("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?i("el-form-item",{attrs:{label:"周期单位",prop:"period",rules:[{required:!0,message:"请选择周期单位",trigger:"blur"}]}},[i("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 i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?i("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"}]}},[i("el-input",{staticStyle:{width:"223px"},model:{value:e.form.memberPaymentAmount,callback:function(t){e.$set(e.form,"memberPaymentAmount",t)},expression:"form.memberPaymentAmount"}},[i("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&e.radio?i("el-form-item",{attrs:{label:"原价",prop:"originalMemberPaymentAmount",rules:[{required:!0,message:"请输入原价",trigger:"blur"}]}},[i("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"}},[i("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&!e.addStudent&&e.showTime?i("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[i("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)},s=[],r=(i("c5f6"),i("ac6a"),i("96cf"),i("1da1")),n=(i("ed08"),i("1672")),o=i("92e3"),c=i("a6e9"),u={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["D"],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(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(n["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(r["a"])(regeneratorRuntime.mark((function e(){var t,i,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["a"])({group:"DEFAULT"});case 3:t=e.sent,i="cloud_price_range",t.data.forEach((function(e){if(e.paramName==i){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(r["a"])(regeneratorRuntime.mark((function e(t){var i;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["e"])({rankId:t,organId:this.organId});case 6:if(i=e.sent,this.memberPrice=i.data,this.getMemberFeeFlag=!0,i.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(r["a"])(regeneratorRuntime.mark((function e(t){var i,a,s,r,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["e"])({rankId:t,organId:this.organId});case 4:if(s=e.sent,null!==(i=s.data)&&void 0!==i&&i.groupPurchaseHalfYearFee&&null!==(a=s.data)&&void 0!==a&&a.originalHalfYearFee?(this.$set(this.form,"memberPaymentAmount",null===(r=s.data)||void 0===r?void 0:r.groupPurchaseHalfYearFee),this.$set(this.form,"originalMemberPaymentAmount",null===(o=s.data)||void 0===o?void 0:o.originalHalfYearFee)):this.$message.error("请设置该会员的默认价格"),s.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,i){var a=Number(t),s=0,r=0;switch(this.form.period){case"MONTH":s=Number(this.rulesForm.minMonthFee)*this.form.num,r=Number(this.rulesForm.maxMonthFee)*this.form.num;break;case"QUARTERLY":s=Number(this.rulesForm.minQuarterlyFee)*this.form.num,r=Number(this.rulesForm.maxQuarterlyFee)*this.form.num,console.log(this.form.period,s,r,this.rulesForm);break;case"YEAR_HALF":s=Number(this.rulesForm.minHalfYearFee)*this.form.num,r=Number(this.rulesForm.maxHalfYearFee)*this.form.num;break;case"YEAR":s=Number(this.rulesForm.minYearFee)*this.form.num,r=Number(this.rulesForm.maxYearFee)*this.form.num;break}return a>=s&&a<=r?i():i(new Error("定价应在".concat(s,"-").concat(r,"之间")))}},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))}}},l=u,m=(i("3664"),i("2877")),p=Object(m["a"])(l,a,s,!1,null,"2a8e73c0",null);t["a"]=p.exports},b133:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[i("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},s=[],r={props:["form"]},n=r,o=(i("3fa6"),i("2877")),c=Object(o["a"])(n,a,s,!1,null,"8cbe7b52",null);t["a"]=c.exports},b38b:function(e,t,i){"use strict";i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return c})),i.d(t,"b",(function(){return u}));var a=i("b775"),s=i("4328"),r=i.n(s),n="/api-web";function o(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/queryPage",method:"get",params:e})}function c(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:r.a.stringify(e)})}function u(e){return Object(a["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:r.a.stringify(e)})}},b3d0:function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-core"},[i("el-form",{attrs:{inline:!0,model:e.searchForm}},[i("el-form-item",[i("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(" "),i("el-form-item",[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),i("div",{staticClass:"tableWrap"},[i("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}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),i("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[i("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[i("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"}},[i("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},s=[],r=i("5530"),n=i("333d"),o=i("1cc7"),c={components:{pagination:n["a"]},props:["clearStduent","musicGroupPaymentCalenderId","batchNo"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["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(r["a"])(Object(r["a"])({},this.searchForm),{},{batchNo:this.batchNo})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;localStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,i={};i.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["xc"])(i).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())}}},u=c,l=(i("b5ca"),i("2877")),m=Object(l["a"])(u,a,s,!1,null,"2547eae8",null);t["default"]=m.exports},b3dc:function(e,t,i){},b409:function(e,t,i){"use strict";i("c35d")},b56c:function(e,t,i){"use strict";i("b3dc")},b58c:function(e,t,i){"use strict";i("8550")},b5ca:function(e,t,i){"use strict";i("2e3a")},bc63:function(e,t,i){"use strict";i("d37a")},c35d:function(e,t,i){},c388:function(e,t,i){"use strict";i("a1ab")},c78f:function(e,t,i){},ca6d:function(e,t,i){"use strict";i("9c2c2")},cd32:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.detail?i("div",[e.detail?i("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?i("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?i("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?i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission(e.getFullPermission("musicGroupPaymentCalender/auditPass"))?i("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"))?i("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e(),e._v(" "),i("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关 闭")])],1):i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("关闭")])],1)],1):e._e()},s=[],r=(i("96cf"),i("1da1")),n=i("ec8a"),o=i("3762"),c=i("b38b"),u={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(c["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(i.$message.success("审核通过"),i.$emit("close"))}));case 8:e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=23;break;case 14:return e.prev=14,e.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return e.next=19,Object(c["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(i.$message.success("驳回成功"),i.$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)}}},l=u,m=(i("346a"),i("2877")),p=Object(m["a"])(l,a,s,!1,null,"59fb2832",null);t["a"]=p.exports},d280:function(e,t,i){},d349:function(e,t,i){"use strict";i.d(t,"e",(function(){return u})),i.d(t,"d",(function(){return l})),i.d(t,"f",(function(){return m})),i.d(t,"c",(function(){return p})),i.d(t,"r",(function(){return d})),i.d(t,"G",(function(){return h})),i.d(t,"H",(function(){return f})),i.d(t,"I",(function(){return y})),i.d(t,"h",(function(){return b})),i.d(t,"l",(function(){return v})),i.d(t,"g",(function(){return g})),i.d(t,"m",(function(){return S})),i.d(t,"u",(function(){return _})),i.d(t,"s",(function(){return w})),i.d(t,"t",(function(){return x})),i.d(t,"i",(function(){return T})),i.d(t,"j",(function(){return k})),i.d(t,"k",(function(){return C})),i.d(t,"v",(function(){return P})),i.d(t,"J",(function(){return F})),i.d(t,"n",(function(){return D})),i.d(t,"w",(function(){return O})),i.d(t,"z",(function(){return I})),i.d(t,"x",(function(){return $})),i.d(t,"y",(function(){return A})),i.d(t,"q",(function(){return L})),i.d(t,"b",(function(){return E})),i.d(t,"F",(function(){return j})),i.d(t,"p",(function(){return R})),i.d(t,"E",(function(){return N})),i.d(t,"a",(function(){return G})),i.d(t,"o",(function(){return M})),i.d(t,"B",(function(){return V})),i.d(t,"A",(function(){return U})),i.d(t,"C",(function(){return q})),i.d(t,"D",(function(){return B}));var a=i("15fd"),s=i("b775"),r=i("829b"),n=i("4328"),o=i.n(n),c="/api-web";function u(e){return Object(s["a"])({url:c+"/organization/queryPage",method:"get",params:e})}function l(e){return Object(s["a"])({url:c+"/organization/add",method:"post",data:o.a.stringify(e)})}function m(e){return Object(s["a"])({url:c+"/organization/update",method:"post",data:o.a.stringify(e)})}function p(e){return Object(r["a"])({url:c+"/area/queryChild",method:"get",hideLoading:!0,params:e})}function d(e){return Object(s["a"])({url:c+"/area/getParentArea/".concat(e.id),method:"get"})}function h(e){return Object(s["a"])({url:c+"/subject/queryPageByIdOrName",method:"post",data:o.a.stringify(e)})}function f(e){return Object(s["a"])({url:c+"/subject/queryPageTree",method:"get",params:e})}function y(e){return Object(s["a"])({url:c+"/subject/upset",method:"post",data:e})}function b(e){return Object(s["a"])({url:c+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(s["a"])({url:c+"/chargeType/upSet",method:"post",data:e})}function g(e){return Object(s["a"])({url:c+"/chargeType/del/".concat(e),method:"post"})}function S(e){return Object(s["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(s["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function w(e){return Object(s["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function x(e){return Object(s["a"])({url:c+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function T(e){return Object(s["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function k(e){return Object(s["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function C(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function P(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function F(e){return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function D(e){var t=e.id,i=Object(a["a"])(e,["id"]);return Object(r["a"])({url:c+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:i})}function O(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function I(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function $(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function A(e){return Object(r["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function L(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function E(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/save",method:"post",data:e})}function j(e){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function R(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function N(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:e})}function G(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function M(e){return Object(r["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:e})}function V(e){return Object(r["a"])({url:c+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function U(e){return Object(r["a"])({url:c+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function q(e){return Object(r["a"])({url:c+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}function B(e,t){return Object(r["a"])({url:c+"/organizationCourseUnitPriceSettings/querySingle/".concat(e,"/").concat(t),method:"get"})}},d37a:function(e,t,i){},d515:function(e,t,i){"use strict";i("a19b")},df4f:function(e,t,i){e.exports=i.p+"static/img/video_bg.0da9f0a8.png"},e323:function(e,t,i){"use strict";i("c78f")},e623:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[i("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[i("div",[i("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"status",width:"120",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"200","class-name":"table-btns"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("overflow-text",{attrs:{text:e.row.memo}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",["STUDENT"===e.payUserType?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/strudentPayInfo",expression:"'/strudentPayInfo'"}],attrs:{type:"text"},on:{click:function(i){return e.toDetail(t.row)}}},[e._v("查看")]):i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail/3882",expression:"'musicGroupPaymentCalender/auditListDetail/3882'"}],attrs:{type:"text"},on:{click:function(i){return e.toDetail(t.row)}}},[e._v("查看")]),e._v(" "),e.$listeners.lookUserList?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(i){return e.$listeners.lookUserList(t.row)}}},[e._v("学员列表")]):e._e(),e._v(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamStatus?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(i){return e.$listeners.commmitGetMoney(t.row)}}},[e._v("确认收款")]):e._e(),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"STUDENT"===e.payUserType?i("el-button",{attrs:{type:"text"},on:{click:function(i){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")?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.$listeners.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),i("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(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")])],1)],1)},s=[],r=(i("96cf"),i("1da1")),n=i("1cc7"),o=(i("1672"),i("3908"),i("333d")),c=i("ec8a"),u={props:["batchNo","teamStatus","teamType","payUserType","isNewGropu"],components:{pagination:o["a"]},data:function(){return{list:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{permission:c["a"],getList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(n["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)}))}}},l=u,m=(i("5513"),i("2877")),p=Object(m["a"])(l,a,s,!1,null,"3970826a",null);t["a"]=p.exports},e62e:function(e,t,i){},ed08:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return o}));var a=i("ade3"),s=(i("c5f6"),i("28a5"),i("a481"),i("6b54"),i("53ca"),i("5a0c")),r=i.n(s);var n=function(e){var t=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i],s=i.toLocaleUpperCase();t.push({label:a,value:"TRUE"===s||"FALSE"===s?"TRUE"===s:i})}return t},o=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(a["a"])(t,i[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(s):""),Object(a["a"])(t,i[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(s):""),t):{}}},ef8e:function(e,t,i){"use strict";i("8c19")},f610:function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-core"},[i("save-form",{attrs:{inline:!0,"save-key":"resetPayListSchool",model:e.searchForm},on:{submit:e.getList}},[i("el-form-item",[i("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 i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),i("div",{staticClass:"topWrap"},[e.teamStatus?i("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?i("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(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[i("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(t.row.actualNum)+"/"+e._s(t.row.expectNum)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){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?i("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),!e.teamStatus||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():i("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){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():i("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?i("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){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():i("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.isNewGropu?i("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/findMusicGroupSubjectInfo/966",expression:"'musicGroup/findMusicGroupSubjectInfo/966'"}],attrs:{type:"text"},on:{click:function(i){return e.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),i("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(" "),i("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[i("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[i("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[i("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(" "),i("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[i("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(" "),i("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[i("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"}},[i("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),i("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[i("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(" "),i("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[i("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?i("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[i("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"}},[i("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),i("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?i("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[i("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(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?i("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):i("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),i("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?i("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(" "),i("el-dialog",{attrs:{title:"查看缴费用户列表",visible:e.userListVisible,width:"850px"},on:{"update:visible":function(t){e.userListVisible=t}}},[e.userListVisible&&e.viewDetail?i("schoolPayUserList",{attrs:{detail:e.viewDetail}}):e._e()],1),e._v(" "),e.reviewVisible?i("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},on:{"update:visible":function(t){e.reviewVisible=t}}},[i("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?i("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?i("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?i("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),i("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),i("el-dialog",{attrs:{title:"确认收款",visible:e.getMoneyVisible,width:"600px"},on:{"update:visible":function(t){e.getMoneyVisible=t}}},[i("isGetMoney",{ref:"getMoney",attrs:{data:e.activeRow},on:{close:e.closeMoney}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.getMoneyVisible=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.submitGetMoney}},[e._v("确 定")])],1)],1)],1)},s=[],r=(i("a481"),i("5530")),n=(i("96cf"),i("1da1")),o=i("333d"),c=i("5a0c"),u=i.n(c),l=i("641c"),m=i("61f7"),p=i("1cc7"),d=i("d349"),h=i("b38b"),f=i("1672"),y=i("b3d0"),b=i("940a"),v=i("e623"),g=i("86e8"),S=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{attrs:{inline:!0,model:e.searchForm}},[i("el-form-item",[i("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(" "),i("el-form-item",[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"danger"},on:{click:e.FetchList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),i("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(" "),i("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"100",align:"center",prop:"studentId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?i("div",[i("copy-text",[e._v(e._s(t.row.sysUser.username))])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"学员声部"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("overflow-text",{attrs:{width:"100%",text:e.row.studentRegistration&&e.row.studentRegistration.subjectName}})]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.studentRegistration?i("div",[e._v("\n "+e._s(e._f("studentTeamStatus")(t.row.studentRegistration.musicGroupStatus))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"130",align:"center",prop:"studentId",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?i("div",[i("copy-text",[e._v(e._s(t.row.sysUser.phone))])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"110",align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])})],1),e._v(" "),i("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)},_=[],w=i("704d"),x={search:"",subjectId:""},T={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(r["a"])({},x),list:[],activeChiose:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{storeState:function(){return w["a"].state}},mounted:function(){this.detail&&(w["a"].dispatch("getFindSound",{data:{musicGroupId:this.detail.musicGroupId}}),this.FetchList())},methods:{handleSelectionChange:function(e){this.activeChiose=e},onReSet:function(){this.searchForm=Object(r["a"])({},x),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(r["a"])({id:this.detail.id,page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:t=e.sent,this.rules.total=t.data.total,this.list=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},k=T,C=i("2877"),P=Object(C["a"])(k,S,_,!1,null,"4d351015",null),F=P.exports,D=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"moneyForm",attrs:{model:e.form}},[i("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[i("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)],1)},O=[],I={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(i){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i){e.next=12;break}return a=t.data.id,s=t.form.memo,e.prev=3,e.next=6,Object(f["g"])({id:a,memo:s});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")}}},$=I,A=Object(C["a"])($,D,O,!1,null,"4b111bac",null),L=A.exports,E=i("cd32"),j=i("3762"),R=i("267e"),N=i("ed08"),G=i("92e3"),M={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:b["a"],schoolPayForm:g["a"],QrCode:l["a"],review:E["a"],reviewDetail:j["a"],teamType:"","pay-items":v["a"],schoolPayUserList:F,isGetMoney:L},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:G["K"],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(N["b"])(R["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["f"])({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 i=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(r["a"])(Object(r["a"])({},i),{},{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(r["a"])(Object(r["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,i=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["B"])({id:i}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookUserList:function(e){console.log(Object(r["a"])({},e)),this.viewDetail=Object(r["a"])({},e),this.userListVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},removeBatchNo:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(f["j"])({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["k"])(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?u()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?u()(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 i=e,a=new Date(i.replace(/-/g,"/"));a=new Date(1e3*(a/1e3+86400*t));var s=a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate();return s},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["s"])({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,U=(i("d515"),Object(C["a"])(V,a,s,!1,null,"280e8fe8",null));t["a"]=U.exports},f6ab:function(e,t,i){"use strict";i("36c9")},f8e4:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAABQCAYAAAB8racIAAAAAXNSR0IArs4c6QAABrFJREFUaAXNWk1sG0UUfrO7duLEiR0ndtZWG/9VHJC4IAECDoBUBEj8hRbUqoIifoSAC3CAAxzgAAc4wAXEBamqVFHRPwESHACpHOAGBxA9QOPEJbE3jp3Y8f/fDu+tu9XaxK7t7DodyZrZmfF737755u17swuxuPIi3Ajl8nKiEvs3efteYxEQwJja5OcuK4pvL8EIjnE7AId9UOZfcc6lvQIjzHtnQJJE1M/viV1JfrRnQERRABnBMMaAq/Da0rJydC/AMFwOToq38yXYyOQQEJSYKN4Z2T//xygBEVm1Mj01AfRDWBNqUz0fj2dn9LFR1NeAkLI5jwvGxmxIFx5t8PIpNFbbuJWA2hThsoDs8wDxBkE8tBxff89K5UbZ1zhi7CxXapBc36QuzgT2eGRB/sY4bkV7RyCkKLddhPTmNrbYNrNJt0X3ef+2AoAus21p9E6qXdOT4Jx0YItP80bjQiqVchrHzW53BUKKfHMusNs18t6cLzVPmK3cKK8nEHJysm8GREEj76GlePIt45/NbHfliFFJqVwFJbVFXU1gwoPR4PyPxnEz2j0toiuYcIzBjMtJW1rkvHk6lkgE9TGz6r6AkLIZtxMmJ8aRuzCr1uD88jLHC/NK30BIpW/ODTYbRgocbuWgfG4eDICBgAhCi7wCklcFfjy2knzVLDB9kbVTWbFUuUpeVgdBuO9AcP6XzjmDXg9kEV04ccWN5MU1sjGunllZ2fDrY8PWQwEhZbMzU+DA3YQ7yd+A+lms0fMNX4YGQiplr7sVZnK4C9OST4aHMSBZOxURacnzamEm569cjiePd87p93oosnYKzxfKkEpnKcysiGC7OxTy/t4553rXu1oaXfiU06E9rTHMHG/yxvnV1e1Zfazf2hQgpGzOMw3jmCNx4MFqo3CaHgf9gqB5pgEhYZSWSKKIOwkOxlaUD6iv32IKR4zKKtU6JJQMbWv0dezJSNB/1jjerW06EFKUwxwpjTkSsrdgY3BHMOi/1A2A3m/q0uhCXZgfTTkn0PFyZ0PlF5Y2N136WLfaEiCkzDvbypEwjbyJ56oncakwWeleLAOi5UhIXsqR0DSPLsWVd7rDwFVEpFru22vSbsYMOZKKch6Jhvzf7STPMovoyuj8xeOeol2EuvipK1fWo/qYsbYcCClzuyhHGif/4q431QuJBEcmt5eRACGVFGba7RJ53lvKNeWLdhgme9ZO4cZrLUfyetDJaTnSkaWVxBtt41aT1aiM2sVSFdY3ttAy0BA53B8O+y9S/8iWhpT1KiM9RazXm1rcQh4Dvdub4XDgog7Ocj+iKyLlq8k01GoNiuhOoz9pOzQc2dJQBKeBAPanwy4/rwPU65EsTTZXhEKxQqFk1iYIi4EAK+kA9NpyIOTiN7N5Wg5y8ccWFuaXdOXG2tKlaTSara2K/MDt+m635wwBsoysqBvWlDRUMWJjwL6NhOTH0CrYu3OxzCJ0it0CAf+Aa+zpXiAImiUcoVAxX0A+YqgoMVgMejwYN/YupluEgueMdiyKbpvBcxiv/tUbQmvUVCDNpgrreNbW8pzsQ4zgz/QDguaYStY1TCMquF2RDz9FgvIDWDf7BWKaRdKZ7RYIYHGHffLIICAIrClkpSQ8ly+S56xwxg8FAtPpfi2hz9u1Raq1uvbCiQRixvDygWDgN134IPWuLKKqqnaWppGTsc/Qc54YRLlx7q7ISq9S6FQaXeev0aD/XuRF3Sh8kPbQFsls5TUQqFwRQTq8GxAEeCggdLyZzRXw76yOb5YOh4Le5CB3v9PcgYHU6g0M91oeGz3n6xETzlgJ2EC7RlXx4Bs9J5EUrXEyEvJ/utPdDdM3EBAK9+poESTn7yLILw2jsNt/+l6arWwBc5IKgcgIdngiHGB4YV7pCwht0S0kJ7ltxoSjkcB83DwILUnXXZo6hnupjaz2REVrvI3k/MFsECSvp0Mjj7mWzAC5cbTGOfSch60AQTJ7WoS2KYFAFJemJsRn6Q9Wla4coRfQhWIZ9eILaEla9Pm85MEsKzsCoVyEXDguB8ez0mfCFr8Fp7v739I0KNyjYwPkB6YB74cX5K8tM4NBcBtZKRehU+NKVQv3vsdw72G0CrlRy0ubRdKbOQ0ErklMYo5jowJBd3mNI/RpD/0w3MNPe4TF4H639urbclNcVaBZhDKy1ica2MuFF0b9fRFhkSgXUXRyMuHjaEj+8irIkVZsLZnmtF3RX/yMIA4iL/DxOvoiaSAYrMI4e2qvQNBtE1mrgsgORWQ5NXo7GDTeKJ+R/gf1jqv318FwQAAAAABJRU5ErkJggg=="},fa7d:function(e,t,i){"use strict";i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n})),i.d(t,"d",(function(){return o}));var a=i("5530"),s=(i("a481"),i("5a0c"),function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),i=new Date(e);0==i.getDay()&&(t-=6048e5);var a=t-24*(i.getDay()-1)*60*60*1e3,s=new Date(a),r=s.getFullYear(),n=s.getMonth()+1<10?"0"+(s.getMonth()+1):s.getMonth()+1,o=s.getDate()<10?"0"+s.getDate():s.getDate(),c=r+"-"+n+"-"+o;return c}),r=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),i=new Date(e),a=7-i.getDay();7==a&&(a=0);var s=t+24*a*60*60*1e3,r=new Date(s),n=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,c=r.getDate()<10?"0"+r.getDate():r.getDate(),u=n+"-"+o+"-"+c;return u},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,i){"use strict";i("23f0")},ff14:function(e,t,i){"use strict";var a,s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.basdisabled?e._e():i("div",{class:e.isField?"soundBtnWrap":"soundBtnFixed"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():i("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():i("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),e.basdisabled?e._e():i("div",{staticClass:"wall"}),e._v(" "),i("div",{staticClass:"coreWrap"},[i("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[i("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,a){return i("el-collapse-item",{key:a,attrs:{name:t.id}},[i("template",{slot:"title"},[i("div",{staticClass:"coreItemTitle"},[i("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),i("div",{staticClass:"coreItem"},[i("div",{staticClass:"coreItemRow"},[i("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),i("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(i){e.$set(t,"expectedStudentNum",i)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),i("el-divider"),e._v(" "),i("chioseMusic",{attrs:{activeSoundList:e.activeSoundList,item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),i("div",{staticClass:"coreItemRow"},[i("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),i("select-all",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(i){e.$set(t,"markChioseList",i)},expression:"item.markChioseList"}},e._l(t.markList,(function(t,a){return i("el-option",{key:a,attrs:{label:t.name,value:t.id}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),i("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?i("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible},on:{"update:visible":function(t){e.soundVisible=t}}},[i("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1):e._e()],1)},r=[],n=i("5530"),o=(i("7f7f"),i("6762"),i("2fdb"),i("5df3"),i("4f7f"),i("2909")),c=(i("456d"),i("28a5"),i("ac6a"),i("96cf"),i("1da1")),u=i("ade3"),l=(i("4360"),i("fa7d"),i("1cc7")),m=(i("5a0c"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"soundWrap"},[i("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[i("div",{staticClass:"itemList"},e._l(e.soundList,(function(t){return i("div",{key:t.id,staticClass:"categroy"},[i("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,a){return i("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(" "),i("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),i("div",{staticClass:"btnWraps"},[i("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=(i("e323"),i("2877")),y=Object(f["a"])(h,m,p,!1,null,"6021a80f",null),b=y.exports,v=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._l(e.item.chioseMusic,(function(t,a){return i("div",{key:a},[i("div",{staticClass:"chioseMusic"},[i("div",{staticClass:"flexRow bigFlex"},[i("div",{staticClass:"chioseWrap"},[i("p",{staticClass:"title"},[e._v("可选乐器"+e._s(a+1)+":")]),e._v(" "),i("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled,clearable:""},on:{change:function(i){e.chioseMusic(i,t)}},model:{value:t.musical,callback:function(i){e.$set(t,"musical",i)},expression:"music.musical"}},e._l(e.item.goodsList,(function(t,a){return i("el-option",{key:a,attrs:{label:t.name,value:t.id,disabled:e.checkDisabled(t)}})})),1)],1),e._v(" "),i("div",{staticClass:"chioseWrap"},[i("p",{staticClass:"title"},[e._v("乐器提供方式:")]),e._v(" "),i("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(i){e.$set(t,"type",i)},expression:"music.type"}},[i("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),i("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),i("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),i("div",{staticClass:"chioseWrap"},[i("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(" "),i("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"}},[i("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(i){e.$set(t,"groupPrice",i)},expression:"music.groupPrice"}},[i("template",{slot:"append"},[e._v("元")])],2)],1)]),e._v(" "),i("div",{staticClass:"chioseWrap"},[i("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(" "),i("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"}},[i("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(i){e.$set(t,"borrowPrice",i)},expression:"music.borrowPrice"}},[i("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.basdisabled||0!=a?e._e():i("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?i("i",{staticClass:"el-icon-remove-outline marginLeft10 iconStyle",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(i){return e.deleteMusic(t)}}}):e._e()])]),e._v(" "),i("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"}},[i("div",{staticClass:"flexRow"},[i("p",{staticClass:"title"},[e._v("团购乐器减免课程费用:")]),e._v(" "),i("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(i){e.$set(t,"groupRemissionCourseFee",i)},expression:"music.groupRemissionCourseFee"}},[i("el-radio",{attrs:{disabled:e.basdisabled,label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{disabled:e.basdisabled,label:!1}},[e._v("否")])],1)],1)])]),e._v(" "),i("el-divider")],1)})),0)},g=[],S={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(i,a){i.id==e&&(t.groupPrice=i.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(i,a){i.musical==e.musical&&t.item.chioseMusic.splice(a,1)}))},checkDisabled:function(e){var t=!1;return this.activeSoundList.forEach((function(i){i.chioseMusic.forEach((function(i){e.id==i.musical&&(t=!0)}))})),t},changeFee:function(e,t){this.$set(t,"groupRemissionCourseFee",e)}}},_=S,w=(i("72a0"),Object(f["a"])(_,v,g,!1,null,"52c08fdc",null)),x=w.exports,T=i("2ef0"),k=(i("6612"),a={components:{chioseSoundList:b,chioseMusic:x},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(u["a"])(e,"soundList",[]),Object(u["a"])(e,"childSoundList",[]),Object(u["a"])(e,"teamStatus",""),Object(u["a"])(e,"checkList",[]),Object(u["a"])(e,"basdisabled",!1),Object(u["a"])(e,"teamid",""),Object(u["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(u["a"])(a,"deactivated",(function(){this.activeSoundList=[]})),Object(u["a"])(a,"methods",{setStore:function(){localStorage.setItem("".concat(this.teamid,"sound"),JSON.stringify(this.activeSoundList))},init:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t,i=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(l["Fb"])({tenantId:1}).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(a){var s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!=a.code){e.next=13;break}if(i.soundList=a.data.rows,!t||null===(s=t[0])||void 0===s||!s.id){e.next=12;break}return i.activeSoundList=t,r=[],i.activeSoundList.forEach((function(e){r.push(e.id)})),i.chioseActiveSound=r,i.activeSound=r,e.next=10,i.changeActiveSound(r.join(","));case 10:e.next=13;break;case 12:"newTeam"==i.teamStatus?i.getDefaultSubject():(i.teamid=i.$route.query.id,i.teamid&&Object(l["K"])({musicGroupId:i.teamid}).then(function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(t){var a,s,r,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===(s=a.musicGroupSubjectPlans)||void 0===s?void 0:s.length)>0)){e.next=11;break}return n=[],i.activeSoundList=null===(r=t.data)||void 0===r?void 0:r.musicGroupSubjectPlans.map((function(e){return n.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),i.activeSound=n,i.chioseActiveSound=n,t.data.musicGroupSubjectGoodsGroups.forEach((function(e){var t=Object(T["findIndex"])(i.activeSoundList,(function(t){return t.id==e.subjectId}));if(-1!=t)if("ACCESSORIES"==e.type)e.goodsIdList.split(",").forEach((function(e){i.activeSoundList[t].markChioseList.push(parseInt(e))}));else if("INSTRUMENT"==e.type){var a=Object.keys(JSON.parse(e.kitGroupPurchaseTypeJson));i.activeSoundList[t].chioseMusic.push({musical:parseInt(e.goodsIdList),type:a,groupPrice:e.price,borrowPrice:e.depositFee,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)})}})),e.next=9,i.changeActiveSound(n.join(","));case 9:e.next=12;break;case 11:i.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(l["Kb"])({tenantId:1}).then((function(e){200==e.code&&(i.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,i=this.topfor.section;Object(l["gb"])({chargeTypeId:t,organId:i,number:1}).then(function(){var t=Object(c["a"])(regeneratorRuntime.mark((function t(i){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(200!=i.code){t.next=7;break}return a=[],e.activeSoundList=i.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(c["a"])(regeneratorRuntime.mark((function e(t){var i,a,s,r,n,c,u;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)),i=[],this.childSoundList)this.activeSound.includes(this.childSoundList[a].id)&&i.push(this.initSound(this.childSoundList[a]));for(r in s=this.activeSoundList.map((function(e){return e.id})),i)c=s.indexOf(null===(n=i[r])||void 0===n?void 0:n.id),c>-1&&(i[r]=this.activeSoundList[c]);return this.activeSoundList=i,u=[],this.activeSoundList.forEach((function(e){u.push(e.id)})),this.activeSound=u,this.chioseActiveSound=u,e.next=12,this.changeActiveSound(u.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(c["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(l["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);i.activeSoundList.forEach((function(i){if(-1!=t.indexOf(i.id+"")){var a=[],s=[];e.data[i.id].forEach((function(e){"INSTRUMENT"==e.type?a.push(e):"ACCESSORIES"==e.type&&s.push(e)})),i.goodsList=a,i.markList=s}})),i.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(i){for(var a=i.markList.map((function(e){return e.id})),s=i.goodsList.map((function(e){return e.id})),r=0;r<i.markChioseList.length;r++)!a.includes(i.markChioseList[r])&&i.markChioseList[r]&&(e.push(i.markChioseList[r]),t=!0,i.markChioseList.splice(r--,1));for(var n=0;n<i.chioseMusic.length;n++)!s.includes(i.chioseMusic[n].musical)&&i.chioseMusic[n].musical&&(e.push(i.chioseMusic[n].musical),t=!0,i.chioseMusic[n].musical=null,i.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(i){if(!i.expectedStudentNum)return e.$message.error("请填写".concat(i.sound,"的预计招生人数")),void(t=!1);i.chioseMusic.forEach((function(a){-1!=a.type.indexOf("LEASE")&&(!a.borrowPrice||parseFloat(a.borrowPrice)<=0)&&(e.$message.error("请填写正确的".concat(i.sound,"租赁押金")),t=!1)}))})),t)},submitInfo:function(e){var t=this,i=this.checkSubmit();if(i){var a={musicGroupSubjectGoodsGroups:[],musicGroupSubjectPlans:[]},s=[];if(this.activeSoundList.forEach((function(e){var t;null!==(t=e.chioseMusic[0])&&void 0!==t&&t.musical||s.push(e.sound);var i={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};a.musicGroupSubjectPlans.push(i),e.chioseMusic.forEach((function(t){var i,s=null,r=t.borrowPrice,n=t.groupPrice;i=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(T["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=o&&(s=e.goodsList[o]);var c={};if(t.type.forEach((function(e){c[e]=0})),c=JSON.stringify(c),s){var u={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:s.name,kitGroupPurchaseTypeJson:c,depositFee:r,price:n,groupRemissionCourseFee:i};a.musicGroupSubjectGoodsGroups.push(u)}})),e.markChioseList.forEach((function(t){var i=Object(T["findIndex"])(e.markList,(function(e){return e.id==t})),s=null;if(-1!=i&&(s=e.markList[i]),s){var r={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:s.name,price:s.groupPurchasePrice};a.musicGroupSubjectGoodsGroups.push(r)}}))})),"newTeam"==this.teamStatus);else if(a.musicGroupId=this.teamid,a.musicGroupStatus=e?"AUDIT":"DRAFT",e){var r="";r=s.length>0?s.join(",")+"尚未设置乐器,学员报名该声部时将无乐器可购买,是否确认?":"是否提交审核",this.$confirm(r,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["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=s.length>0?s.join(",")+"尚未设置乐器,学员报名该声部时将无乐器可购买,是否确认?":"是否保存",this.$confirm(o,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["Yc"])(a).then((function(i){if(200==i.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 i=e.checkList.indexOf(e.activeSoundList[t].id);-1!=i&&(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,i){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(u["a"])(a,"watch",{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,i=0;this.activeSoundList;if(e){var a=0;if(e.length>0)for(var s in e){var r;a+=parseInt(null===(r=e[s])||void 0===r?void 0:r.expectedStudentNum)||0}t=e.length,i=a,this.$emit("getNumber",t,i)}}}}),a),C=k,P=(i("787c"),Object(f["a"])(C,s,r,!1,null,"6f83c8e6",null));t["a"]=P.exports}}]);