(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56d8503c"],{"0464":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form}},[a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(a){e.$set(e.list.form[t.$index],"courseType",a)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseTypeOptions,function(t,s){return a("el-option",{key:s,attrs:{disabled:e.isOptionDisabled(t.value),label:t.label,value:t.value}})}),1)],1)]}}])}),e._v(" "),e.isCommon?a("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(a){e.$set(e.list.form[t.$index],"isStudentOptional",a)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),a("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:{required:!0,message:"请输入课程时长",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:1,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(a){e.$set(e.list.form[t.$index],"courseTotalMinuties",a)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:1,disabled:!e.isUserType,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",disabled:e.isDisabled,controls:!1,precision:0,min:1,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.isCommon?e._e():a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,206159554)})],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},i=[],r=(a("6762"),a("2fdb"),a("267e")),n=a("ed08"),o=a("6612"),l=a.n(o),c={props:["form","isCommon","isDisabled","isUserType"],data:function(){return{courseTypeOptions:Object(n["b"])(r["d"]),boolOptionsOptions:Object(n["b"])(r["c"])}},computed:{list:function(){return{form:this.form}}},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map(function(e){return e.courseType});return t.includes(e)},getOldMoney:function(e){return l()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")}}},u=c,d=(a("8d7e"),a("2877")),p=Object(d["a"])(u,s,i,!1,null,"7f153cbd",null);t["a"]=p.exports},"070d":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("新建学员缴费")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")])]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"120",label:"订单编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startPaymentDate",width:"120",label:"缴费开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"120",prop:"deadlinePaymentDate",label:"缴费结束日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"120",label:"预计缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"150",label:"缴费有效期开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidEndDate",width:"150",label:"缴费有效期结束日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualNum",width:"120",label:"实际缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isGiveMusicNetwork",width:"120",label:"是否赠送网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.isGiveMusicNetwork?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"260px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail",expression:"'musicGroupPaymentCalender/auditListDetail'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.status&&"AUDITING"!=t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),"REJECT"==t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),e.isNewGropu?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]),e._v(" "),e.isNewGropu?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/findMusicGroupSubjectInfo/966",expression:"'musicGroup/findMusicGroupSubjectInfo/966'"}],attrs:{type:"text"},on:{click:e.onPreview}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.isNewGropu?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.$listeners.changeActive}}):e._e()],1),e._v(" "),e.chioseStudentVisible?a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[a("setStudentFee",{ref:"setStudentFee",attrs:{musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"选择预览声部",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[a("el-radio-group",{model:{value:e.dialogSubjectId,callback:function(t){e.dialogSubjectId=t},expression:"dialogSubjectId"}},e._l(e.dialogSubjectList,function(t,s){return a("el-radio",{key:s,staticStyle:{"margin-right":"15px"},attrs:{border:"",size:"medium",label:t.subjectId}},[e._v(e._s(t.subName))])}),1),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogSubjectVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/getSubjectGoodsAndInfo/967",expression:"'studentRegistration/getSubjectGoodsAndInfo/967'"}],attrs:{type:"primary"},on:{click:e.onPreviewSubmit}},[e._v("预 览")])],1)],1),e._v(" "),e.previewVisible?a("el-dialog",{staticClass:"previewContainer",attrs:{title:"预览",visible:e.previewVisible,width:"400px"},on:{"update:visible":function(t){e.previewVisible=t}}},[a("subject-preview",{attrs:{subjectId:e.dialogSubjectId}}),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewVisible=!1}}},[e._v("确 定")])],1)],1):e._e()],1)},i=[],r=(a("a481"),a("96cf"),a("3b8d")),n=(a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("4328"),a("5a0c")),l=a.n(o),c=a("641c"),u=a("61f7"),d=a("1cc7"),p=a("d349"),m=a("1672"),f=a("b3d0"),h=a("940a"),y=a("86e8"),v=a("cd32"),b=a("3762"),g=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticStyle:{background:"#F3F4F8"}},[e._m(0),e._v(" "),s("div",{staticClass:"section"},[s("h2",{staticClass:"title"},[e._v("乐团课程")]),e._v(" "),s("div",{staticClass:"options"},e._l(e.courseInfo,function(t,a){return s("div",{key:a,staticClass:"option",class:[t.isStudentOptional?"":"disabled"],on:{click:function(a){return e.onCourseChange(t)}}},[s("div",{staticClass:"o_hd"},[s("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]})]),e._v(" "),s("div",{staticClass:"o_bd"},[e._v(e._s(e._f("coursesType")(t.courseType)))]),e._v(" "),s("span",{staticClass:"o_ft",staticStyle:{color:"#1a1a1a"}},[e._v("\n\t\t\t\t\t\t原价:"),s("del",{staticStyle:{"font-size":"16px",color:"#1a1a1a"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseOriginalPrice)))])])])}),0),e._v(" "),s("div",{staticClass:"options sale lines"},[s("div",{staticClass:"option"},[s("div",{staticClass:"o_bd"}),e._v(" "),s("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t现价 ¥"),s("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(e.orderInfo.musicClassFee)))])])])])]),e._v(" "),e.instrumentResult.length>0?s("div",{staticClass:"section"},[s("h2",{staticClass:"title"},[e._v("乐器")]),e._v(" "),s("div",{staticClass:"options"},e._l(e.instrumentResult,function(t,a){return s("div",{key:a,class:[e.instrumentResult.length>1?"oc":""],on:{click:function(a){return e.instrumentF(t)}}},[s("div",{staticClass:"option"},[s("div",{staticClass:"o_hd"},[s("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),e._v(" "),s("div",{staticClass:"o_bd"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t\t")]),e._v(" "),t.price&&"FREE"==t.kitType?s("span",{staticClass:"o_ft o_ft_price"},[e._v("\n\t\t\t\t\t\t\t原价"),s("del",[e._v(":¥"+e._s(e._f("moneyFormat")(t.marketPrice)))])]):e._e(),e._v(" "),t.price&&"GROUP"==t.kitType?s("span",{staticClass:"o_ft o_ft_price"},[e._v("\n\t\t\t\t\t\t\t原价"),s("del",[e._v(":¥"+e._s(e._f("moneyFormat")(t.marketPrice)))])]):e._e()]),e._v(" "),t.marketPrice?s("div",{staticClass:"configuration"},[s("div",{staticClass:"config config_line"},[e._m(1,!0),e._v(" "),s("div",{staticClass:"content"},[s("p",[e._v(e._s(t.goodsList[0].specification))])])])]):e._e(),e._v(" "),t.marketPrice?s("div",{staticClass:"options sale",staticStyle:{"margin-bottom":"5px"}},[s("div",{staticClass:"option"},[s("div",{staticClass:"o_bd"}),e._v(" "),"LEASE"==t.kitType?[s("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t\t押金:¥"),s("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))])])]:e._e(),e._v(" "),t.price&&"FREE"==t.kitType?[s("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t\t免费领用\n\t\t\t\t\t\t\t\t")])]:e._e(),e._v(" "),t.price&&"GROUP"==t.kitType?s("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t现价:¥"),s("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(Number((t.price-t.coupon).toFixed(2)))))])]):e._e()],2)]):e._e()])}),0)]):e._e(),e._v(" "),e.accessOries.length>0?s("div",{key:"accessOries",staticClass:"section"},[s("h2",{staticClass:"title"},[e._v("辅件")]),e._v(" "),e._l(e.accessOries,function(t,a){return s("div",{key:a,staticClass:"options",on:{click:function(a){return e.onAuxiliarie(t)}}},[s("div",{staticClass:"option"},[s("div",{staticClass:"o_hd"},[s("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),e._v(" "),s("div",{staticClass:"o_bd"},[e._v(e._s(t.name))]),e._v(" "),s("span",{staticClass:"o_ft",staticStyle:{"font-size":"14px"}},[0==t.price?[e._v("免费")]:[e._v("现价:¥"+e._s(e._f("moneyFormat")(t.price)))]],2)]),e._v(" "),t.goodsList.length>1?s("div",{staticClass:"configuration"},[s("div",{staticClass:"config config_other"},[e._m(2,!0),e._v(" "),e._l(t.goodsList,function(t){return s("div",{key:t.id,staticClass:"content"},[s("div",{staticClass:"option",staticStyle:{padding:"0 5px"}},[s("div",{staticClass:"o_bd",staticStyle:{"font-size":"14px"}},[e._v(e._s(t.name))])])])})],2)]):e._e()])})],2):e._e(),e._v(" "),s("div",{staticClass:"section"},[s("div",{staticClass:"needprice markerprice"},[s("del",[e._v("原价")]),e._v(" "),s("del",[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),s("div",{staticClass:"needprice grouopprice"},[s("span",[e._v("仅需支付")]),e._v(" "),s("span",[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.amount)))])])]),e._v(" "),s("div",{staticClass:"buy"},[s("div",{staticClass:"price"},[s("p",{staticClass:"use_price"},[s("img",{staticClass:"logo",attrs:{src:a("2965"),alt:""}}),e._v(" "),s("span",[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),s("a",{staticClass:"btn-submit"},[e._v("购买")])])])},_=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"noticeInfo"},[a("h2",[e._v("缴费说明")]),e._v("\n\t\t\t1、为确保声部平衡,请家长确认 注册声部为孩子的最终录取声部。"),a("br"),e._v("\n\t\t\t2、为保障每个声部人数达标,我们都进行了超员20%的录取,系统将按照提交注册的先后顺序安排名额。超员后 有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,我们将优先调配您的孩子;\n\t\t\t"),a("div",{staticClass:"line_bottom",staticStyle:{margin:"20px 0 0"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"title"},[a("span",[e._v("配置")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"title"},[a("span",[e._v("配置")])])}],w=(a("7f7f"),a("c5f6"),a("ac6a"),a("ec8a")),C={0:"按月",1:"按学期",2:"一次性"},S={props:["subjectId"],data:function(){var e=this.$route.query;return{musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0},courseInfo:null,courseScheduleStatus:!1,musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){var t,a=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId},e.next=3,Object(d["sb"])(t).then(function(e){var t=e;if(200==t.code){var s=t.data;a.paymentPattern=s.musicGroupPaymentCalender?s.musicGroupPaymentCalender.paymentPattern:2;var i=s.musicGroupPaymentCalender?s.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null;i&&i.length>0?a.courseInfo=i:a.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}],a.courseInfo.forEach(function(e){e.isStatus=!0}),a.musicGroupSubject=s.musicGroupSubjectPlan;var r={};s.musicGroupSubjectGoodsGroupList.forEach(function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{};for(var s in t){var i=Object.assign({},e);i.marketPrice=i.goodsList[0].marketPrice,i.kitType=s,i.coupon=t[s],r.id?(i.checked=!1,"GROUP"==s?("GROUP"==r.kitType&&r.price0&&a.instrumentResult.push({id:-1,kitType:"owned",name:"自备",price:0,marketPrice:0,checked:!1})}a.calcPrice()});case 3:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),onCourseChange:function(e){e.isStudentOptional&&(e.isStatus=!e.isStatus,this.calcPrice())},onClickCheckbox:function(){this.payType?this.needPrice=this.orderInfo.amount:this.orderInfo.amount>=this.balance?this.needPrice=Number((this.orderInfo.amount-this.balance).toFixed(2)):this.needPrice=0,this.payType=!this.payType},onAuxiliarie:function(e){e.checked=!e.checked,this.calcPrice()},instrumentF:function(e){this.instrumentResult.forEach(function(e){e.checked=!1}),e.checked=!0,this.calcPrice()},calcPrice:function(){var e=[],t=[],a=0,s=0,i={},r=[],n=0,o=[],l=0,c=0,u="",d=this.musicGroupSubject,p=this.courseInfo;d&&p.forEach(function(e){e.isStatus&&(c+=parseFloat(e.courseCurrentPrice),s+=parseFloat(e.courseOriginalPrice),e.id>0&&r.push(e.id))});var m=this.instrumentResult;if(m.length>0&&m.forEach(function(t){t.checked&&("自备"!=t.name&&(u+=t.goodsIdList),"FREE"==t.kitType?(a+=0,n=0):"LEASE"==t.kitType?(n=t.coupon,"自备"!=t.name?a+=t.depositFee:a+=0):(a+=parseFloat(t.price),n=t.coupon?t.coupon:0),"LEASE"==t.kitType?"自备"!=t.name&&(s+=t.depositFee):s+=parseFloat(t.marketPrice),t.id&&(i[t.id]=t.kitType),"LEASE"==t.kitType?e.push({name:t.name,type:"租赁",price:t.depositFee}):"GROUP"==t.kitType&&parseFloat(t.price-n)>0&&e.push({name:t.name,type:"团购",price:parseFloat(t.price-n)}))}),a+=parseFloat(l+c),this.courseScheduleStatus||(s+=parseFloat(c)),parseFloat(l+c)>0&&e.unshift({name:"乐团课",type:C[this.paymentPattern],price:Number((l+c).toFixed(2))}),this.accessOries.length>0){var f=0;this.accessOries.forEach(function(e){e.checked&&(f+=parseFloat(e.price),a+=parseFloat(e.price),e.goodsList&&e.goodsList.length>0&&e.goodsList.forEach(function(e){s+=parseFloat(e.marketPrice)}),i[e.id]="ACCESSORIES")}),f>0&&e.push({name:"辅件",type:"团购",price:f})}var h=a;if(a-n>=0?(a=Number((a-n).toFixed(2)),this.errorPrice=!1):(a=0,this.errorPrice=!0),a-l-c>0&&t.push(1,2),parseFloat(l+c)>0&&t.push(3,4,5),this.ids=t,this.payType){var y=Number((a-this.balance).toFixed(2));this.needPrice=y>0?y:0}else this.needPrice=Number(a.toFixed(2));this.buyList=e,this.orderInfo={amount:Number(a.toFixed(2)),marketPrice:Number(s.toFixed(2)),groupPurchasePrice:h,couponPrice:n,goodsGroupIds:i,goodsIds:o.join(","),contractGoodsIds:u,courseKeys:r,musicClassFee:c}},permission:function(e){return Object(w["a"])(e)}}},k=S,T=(a("24f9"),a("2877")),x=Object(T["a"])(k,g,_,!1,null,"1d7ed104",null),O=x.exports,F=a("267e"),I=a("ed08"),D=a("92e3"),P={props:["baseInfo","isNewGropu"],components:{pagination:n["a"],setStudentFee:f["default"],userPayForm:h["a"],schoolPayForm:y["a"],QrCode:c["a"],review:v["a"],reviewDetail:b["a"],subjectPreview:O},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!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,musicGroupPaymentCalenderId:"",payOrderTypeLists:D["q"],dialogSubjectVisible:!1,dialogSubjectList:[],dialogSubjectId:null,previewVisible:!1}},created:function(){},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(p["o"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}},e,this,[[0,7]])}));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(I["b"])(F["m"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"}},activated:function(){this.init()},methods:{init: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,Object(m["a"])({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.getList();case 9:case"end":return e.stop()}},e,this,[[0,6]])}));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(m["e"])({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){2===e&&(this.payForm.paymentValidEndDate=null)},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},chioseStudentSubmited:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}},e,this,[[0,6]])}));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(d["t"])({id:a}).then(function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())})}).catch(function(){})},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})},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.musicGroupPaymentCalenderId=this.musicGroupPaymentCalenderId,Object(m["c"])(t).then(function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())})}},resetPayDate:function(){var e=this;Object(d["Xb"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())})},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,s=new Date(a.replace(/-/g,"/"));s=new Date(1e3*(s/1e3+86400*t));var i=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate();return i},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5-1||t.subjectName.indexOf(e)>-1||t.gender.indexOf(e)>-1},renderFunc:function(e,t){return e("div",{class:"line"},[e("span",[t.name]),e("span",[t.gender]),e("span",[t.subjectName])])},change:function(e){this.$listeners.changeActiveChioseSound(e),this.$listeners.searchStudent()},submit:function(){var e=this;return"HIGH_ONLINE"==this.activeType&&(this.seleched.length<3||this.seleched.length>5)?this.$message.error("线上技能班必须为3-5人"):this.seleched.length<1?this.$message.error("请至少选择一名学生"):void this.$refs.form.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(a){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=15;break}if(!e.isOnlyChangeUser){t.next=13;break}return t.prev=2,t.next=5,Object(S["b"])({classGroupId:e.classGroupId,studentIds:e.seleched.join(",")});case 5:e.$message.success("提交成功"),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](2);case 10:e.$listeners.submited(),t.next=14;break;case 13:e.$listeners.submited({seleched:e.seleched,name:e.form.name});case 14:e.$listeners.close();case 15:case"end":return t.stop()}},t,null,[[2,8]])}));return function(e){return t.apply(this,arguments)}}())}}},x=T,O=(a("217bd"),Object(y["a"])(x,g,_,!1,null,"6c35d781",null)),F=O.exports,I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[a("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher","label-width":"auto",rules:[{required:!0,message:"请选择主教老师"}]}},[a("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.form.coreTeacher,callback:function(t){e.$set(e.form,"coreTeacher","string"===typeof t?t.trim():t)},expression:"form.coreTeacher"}},e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:String(e.id)}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"助教老师",prop:"assistant"}},[a("el-select",{attrs:{placeholder:"请选择助教老师",filterable:"",clearable:"",multiple:""},model:{value:e.form.assistant,callback:function(t){e.$set(e.form,"assistant","string"===typeof t?t.trim():t)},expression:"form.assistant"}},e._l(e.cooperationList,function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})}),1)],1),e._v(" "),e.isEmpty?a("el-alert",{staticStyle:{"margin-bottom":"20px"},attrs:{closable:!1,title:"暂无可排课时长",type:"warning"}}):e._e(),e._v(" "),a("el-collapse",{on:{change:e.collapseChange},model:{value:e.collapses,callback:function(t){e.collapses=t},expression:"collapses"}},e._l(e.form.classs,function(t,s,i){return a("el-collapse-item",{key:s,attrs:{name:i},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",{staticClass:"title"},[e._v(e._s(e.courseTypeListByName[s])+", "),a("span",[e._v("可排课时长"+e._s(e.musicCourseSettings[s])+"分钟")])])]},proxy:!0}],null,!0)},[e._v(" "),a("courseItem",{attrs:{surplustime:e.surplustime[s],type:s,form:t}})],1)}),1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),e.isEmpty?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},D=[],P=(a("ac4d"),a("8a81"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form-item",{attrs:{label:"排课起始时间","label-width":"auto",prop:"classs."+e.type+".courseTime",rules:[{required:!0,message:"请选择排课起始时间"}]}},[a("el-date-picker",{staticStyle:{width:"100%!important"},attrs:{"picker-options":e.pickerOptions,type:"date","value-format":"yyyy-MM-dd",placeholder:"选择日期"},model:{value:e.form.courseTime,callback:function(t){e.$set(e.form,"courseTime","string"===typeof t?t.trim():t)},expression:"form.courseTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"跳过节假日",prop:"classs."+e.type+".holiday",rules:[{required:!0,message:"否跳过节假日"}]}},[a("el-radio-group",{model:{value:e.form.holiday,callback:function(t){e.$set(e.form,"holiday",t)},expression:"form.holiday"}},[a("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form&&e.form.cycle?a("el-table",{attrs:{data:e.form.cycle}},[a("el-table-column",{attrs:{prop:"dayOfWeek",label:"循环周期",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{"inline-message":"",rules:[{required:!0,message:"请选择循环周期"}],prop:"classs."+e.type+".cycle."+t.$index+".dayOfWeek"}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择循环周期",clearable:"",filterable:""},model:{value:t.row.dayOfWeek,callback:function(a){e.$set(t.row,"dayOfWeek","string"===typeof a?a.trim():a)},expression:"scope.row.dayOfWeek"}},e._l(e.weekDateList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1)]}}],null,!1,4175215940)}),e._v(" "),a("el-table-column",{attrs:{prop:"time",label:"课程时长(分)",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".time","inline-message":""}},[a("el-input",{attrs:{disabled:"",placeholder:"请输入课程时长"},model:{value:t.row.time,callback:function(a){e.$set(t.row,"time",a)},expression:"scope.row.time"}})],1)]}}],null,!1,2833840600)}),e._v(" "),a("el-table-column",{attrs:{prop:"startClassTime",label:"开始时间",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".startClassTime",rules:[{required:!0,message:"请选择开始时间"}],"inline-message":""}},[a("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:["04:30:00 - 23:59:59"]}},on:{change:function(a){return e.startTimeChange(a,t.row)}},model:{value:t.row.startClassTime,callback:function(a){e.$set(t.row,"startClassTime","string"===typeof a?a.trim():a)},expression:"scope.row.startClassTime"}})],1)]}}],null,!1,2070508970)}),e._v(" "),a("el-table-column",{attrs:{prop:"endClassTime",label:"结束时间",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"classs."+e.type+".cycle."+t.$index+".endClassTime","inline-message":""}},[a("el-time-picker",{staticStyle:{width:"100%!important"},attrs:{format:"HH:mm",disabled:"","value-format":"HH:mm",placeholder:"请选择时间","picker-options":{selectableRange:[t.row.startClassTime+":00 - 23:59:59"]}},model:{value:t.row.endClassTime,callback:function(a){e.$set(t.row,"endClassTime","string"===typeof a?a.trim():a)},expression:"scope.row.endClassTime"}})],1)]}}],null,!1,3285712210)}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.cycle.length>1?a("i",{staticClass:"close-icon el-icon-circle-close",on:{click:function(a){return e.remove(t.$index)}}}):e._e()]}}],null,!1,2187597216)})],1):e._e(),e._v(" "),a("el-button",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{icon:"el-icon-circle-plus-outline",type:"info",size:"small",plain:"",disabled:e.surplustime0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,a=0,s=!0,i=!1,r=void 0;try{for(var n,o=e[Symbol.iterator]();!(s=(n=o.next()).done);s=!0){var l=n.value;a+=parseFloat(parseFloat(l[t]||0).toFixed(2)||0)}}catch(ne){i=!0,r=ne}finally{try{s||null==o.return||o.return()}finally{if(i)throw r}}return a},Z={props:["teacherList","activeType","courseTypeList","cooperationList","musicGroupId","detail","studentSubmitedData","classType"],components:{courseItem:q},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:H,musicCourseSettings:{}}},watch:{courseTypeList:function(){this.setCourseTypeListByName()},studentSubmitedData:function(){this.formatClasss()},detail:function(){this.formatClasss()}},computed:{surplustime:function(){var e={};for(var t in this.form.classs)if(this.form.classs.hasOwnProperty(t)){var a=this.form.classs[t];e[t]=a.courseTotalMinuties-K(a.cycle,"time")}return e},isEmpty:function(){return Object(k["isEmpty"])(this.form.classs)}},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:this.setCourseTypeListByName(),this.formatClasss();case 2:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),methods:{setCourseTypeListByName:function(){var e={},t=!0,a=!1,s=void 0;try{for(var i,r=this.courseTypeList[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var n=i.value;e[n.value]=n.label}}catch(ne){a=!0,s=ne}finally{try{t||null==r.return||r.return()}finally{if(a)throw s}}this.courseTypeListByName=e},formatClasss:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){var t,a,s,i,r,o,l,c,u,d,p,m,f,h,y,v,b,g,_,w,C,S;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.detail){e.next=25;break}for(s="",i=[],r=this.detail.classGroupTeacherMapperList,o=!0,l=!1,c=void 0,e.prev=7,u=(r||[])[Symbol.iterator]();!(o=(d=u.next()).done);o=!0)p=d.value,"BISHOP"===p.teacherRole&&(s=String(p.userId)),"TEACHING"===p.teacherRole&&i.push(p.userId);e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](7),l=!0,c=e.t0;case 15:e.prev=15,e.prev=16,o||null==u.return||u.return();case 18:if(e.prev=18,!l){e.next=21;break}throw c;case 21:return e.finish(18);case 22:return e.finish(15);case 23:this.$set(this.form,"coreTeacher",String(s)),this.$set(this.form,"assistant",i);case 25:if(m=this.detail?void 0:null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),f=null===(a=this.detail)||void 0===a?void 0:a.id,m||f){e.next=29;break}return e.abrupt("return");case 29:return e.prev=29,e.next=32,Object(n["Z"])({musicGroupId:this.musicGroupId,studentIds:m,classGroupId:f});case 32:for(h=e.sent,this.musicCourseSettings=h.data,y={},v=!0,b=!1,g=void 0,e.prev=38,_=this.courseTypeList[Symbol.iterator]();!(v=(w=_.next()).done);v=!0)C=w.value,S=C.value,h.data[S]&&(y[S]={courseTotalMinuties:h.data[S],cycle:[{time:H[S]}]});e.next=46;break;case 42:e.prev=42,e.t1=e["catch"](38),b=!0,g=e.t1;case 46:e.prev=46,e.prev=47,v||null==_.return||_.return();case 49:if(e.prev=49,!b){e.next=52;break}throw g;case 52:return e.finish(49);case 53:return e.finish(46);case 54:this.$set(this.form,"classs",y),e.next=60;break;case 57:e.prev=57,e.t2=e["catch"](29),console.log(e.t2);case 60:case"end":return e.stop()}},e,this,[[7,11,15,23],[16,,18,22],[29,57],[38,42,46,54],[47,,49,53]])}));function t(){return e.apply(this,arguments)}return t}(),submit:function(){var e=this;this.$refs.form.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(a){var s,i,r;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=30;break}for(r in s=[],i=function(t){if(e.form.classs.hasOwnProperty(t)){var a,i,r,n,o=e.form.classs[t];s.push({type:e.detail?void 0:e.activeType,courseType:t,classGroupName:(null===(a=e.studentSubmitedData)||void 0===a?void 0:a.name)||(null===(i=e.detail)||void 0===i?void 0:i.name),classGroupId:null===(r=e.detail)||void 0===r?void 0:r.id,musicGroupId:e.musicGroupId,startDate:o.courseTime,classGroupTeacherMapperList:Q(e.form.coreTeacher,e.form.assistant),holiday:o.holiday,students:null===(n=e.studentSubmitedData)||void 0===n?void 0:n.seleched,courseTimes:o.cycle.length,courseTimeDtoList:o.cycle.map(function(e){return{courseType:t,dayOfWeek:e.dayOfWeek,endClassTime:e.endClassTime,startClassTime:e.startClassTime}})})}},e.form.classs)i(r);if(t.prev=4,!e.detail){t.next=11;break}return t.next=8,Object(n["n"])(s);case 8:e.$message.success("排课修改成功"),t.next=21;break;case 11:if(1!==e.classType){t.next=17;break}return t.next=14,Object(n["gc"])(s);case 14:e.$message.success("排课成功"),t.next=21;break;case 17:if(2!==e.classType&&3!==e.classType){t.next=21;break}return t.next=20,Object(n["fc"])(s);case 20:e.$message.success("排课成功");case 21:e.$listeners.submited(),e.$listeners.close(),t.next=28;break;case 25:t.prev=25,t.t0=t["catch"](4),console.log(t.t0);case 28:t.next=31;break;case 30:e.$message.error("请先填写所有表单");case 31:case"end":return t.stop()}},t,null,[[4,25]])}));return function(e){return t.apply(this,arguments)}}())},collapseChange:function(e){this.collapses=e}}},ee=Z,te=(a("07ee"),Object(y["a"])(ee,I,D,!1,null,"0ea3e981",null)),ae=te.exports,se=(a("4328"),{name:"tresetClass",components:{viewStudentList:b,selectStudent:F,classroomSetting:ae},data:function(){return{classType:0,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},step:"00:05",teamid:"",topForm:{classType:""},studentSubmitedData:null,infoDetail:null,classTimeList:d["f"],tableList:[],maxClassList:[],activeSingleList:[],studentListModal:[],studentListModalVisible:!1,resetCourseVisible:!1,resetClassVisible:!1,studentVisible:!1,MixVisible:!1,activeListStudent:[],activeChioseSound:"",chioseSoundList:[],studentList:[],activeMixClass:"",chioseStudent:[],isNewClass:!1,isOnlyChangeUser:!1,isSearch:!1,isTemporary:!1,className:"",activeClass:"",soundList:[],infoVisible:!1,teacherForm:{isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},teacherRules:{isAdd:[{required:!0,message:"请选择调整类型"}],coreTeacher:[{required:!0,message:"请选择主教老师"}],courseType:[{required:!0,message:"请选择上课类型"}],courseTime:[{required:!0,message:"请选择开始时间"}],courseNum:[{required:!0,message:"请输入排课次数"}],mixClassGroupId:[{required:!0,message:"请选择合奏班"}],sound:[{required:!0,message:"请选择合声部"}],expectStudentNum:[{required:!0,message:"请填写预计招生人数"}]},weekList:[],teacherList:[],courseTypeList:[],weekDateList:[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}],classTypeList:[{value:"NORMAL",label:"单技班"},{value:"MIX",label:"合奏班"},{value:"HIGH",label:"基础技能班"},{value:"SNAP",label:"临时班"},{value:"HIGH_ONLINE",label:"线上基础技能班"},{value:"MUSIC_NETWORK",label:"乐团网管课"}],highTypeList:[{value:"HIGH",label:"基础技能班"},{value:"HIGH_ONLINE",label:"线上基础技能班"}],cooperationList:[],singleList:[],activeSingleLists:[],activeType:"",resetClassForm:{startTime:"",endTime:"",assistant:[],coreTeacher:""},recourseForm:{courseType:"",checked:!1,courseTime:"",courseNum:""},organId:"",newClassVisible:!1,newClassForm:{className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:[],memo:[],subjectId:null},classGroupIds:null,maxMun:16,courseTime:""}},created:function(){this.init()},activated:function(){this.init()},mounted:function(){},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(n["xb"])({musicGroupId:this.teamid}).then(function(t){200==t.code&&(e.organId=t.data.musicGroup.organId,Object(n["ub"])({organId:e.organId}).then(function(t){200==t.code&&(e.cooperationList=t.data,e.teacherList=t.data)}))}),Object(n["J"])({musicGroupId:this.teamid}).then(function(t){200==t.code&&(e.maxClassList=t.data)}),this.changeMixClass(),Object(n["E"])({musicGroupId:this.teamid}).then(function(t){200==t.code&&(e.soundList=t.data)})},studentSubmited:function(e){this.isOnlyChangeUser?this.getList():(this.studentSubmitedData=e,this.infoVisible=!0)},recourse:function(e){this.weekList=[{week:"",startTime:"",endTime:"",id:new Date}],this.resetCourseVisible=!0},addMix:function(){this.MixVisible=!0},changeActiveChioseSound:function(e){this.activeChioseSound=e},setAssistant:function(e){for(var t in e)e[t]==this.teacherForm.coreTeacher&&e.splice(t,1)},changeMixClass:function(e){this.getList(e),this.activeMixClass=e},getList:function(e){var t=this;Object(n["L"])({musicGroupId:this.teamid,type:e}).then(function(e){200==e.code&&(t.activeSingleList=e.data)})},temporary:function(){this.classType=1,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isOnlyChangeUser=!1,this.isSearch=!0,this.className="",this.isTemporary=!0,this.activeType="SPAN",this.activeChioseSound=null,this.setType("SNAP"),this.getNoClassStudent("SNAP")},setType:function(e){switch(e){case"NORMAL":this.courseTypeList=[{value:"SINGLE",label:"单技课"},{value:"TRAINING_SINGLE",label:"集训单技课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"MIX":this.courseTypeList=[{value:"MIX",label:"合奏课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}];break;case"HIGH":this.courseTypeList=[{value:"HIGH",label:"基础技能课"}];break;case"HIGH_ONLINE":this.courseTypeList=[{value:"HIGH_ONLINE",label:"线上基础技能课"}];break;case"MUSIC_NETWORK":this.courseTypeList=[{value:"MUSIC_NETWORK",label:"乐团网管课"}];break;case"SNAP":this.courseTypeList=[{value:"SINGLE",label:"单技课"},{value:"MIX",label:"合奏课"},{value:"TRAINING_SINGLE",label:"集训单技课"},{value:"TRAINING_MIX",label:"集训合奏课"},{value:"HIGH",label:"基础技能课"},{value:"COMPREHENSIVE",label:"综合课"},{value:"CLASSROOM",label:"课堂课"}]}},addNewClass:function(e){this.isOnlyChangeUser=!1,this.classType="NORMAL"===e?2:3,this.setType(e),this.activeType=e,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.activeChioseSound=null,this.getNoClassStudent(e)},searchStudent:function(){var e=this;console.log(this.activeChioseSound),"SPAN"==this.activeType?Object(n["qc"])({musicGroupId:this.teamid,actualSubjectId:this.activeChioseSound}).then(function(t){200==t.code&&(e.studentList=t.data)}):this.getNoClassStudent(this.activeType,this.activeChioseSound)},SelectionStudent:function(e){this.chioseStudent=e},NewselectionStudent:function(e){this.chioseStudent=e,this.chioseStudent.length>0?this.chioseStudent=this.chioseStudent.concat(e):this.chioseStudent=e,this.activeListStudent=this.activeListStudent.concat(this.chioseStudent),this.activeListStudent=this.objArrayRemoval(this.activeListStudent,"userId")},clearCourse:function(e){var t=this;Object(n["p"])({classGroupId:e.row.id}).then(function(a){200==a.code?(t.$message.success("清除成功"),e._self.$refs[e.$index].doClose(),t.getList(t.activeMixClass)):(t.$message.error(a.msg),e._self.$refs[e.$index].doClose())}).catch(function(t){e._self.$refs[e.$index].doClose()})},removeClass:function(e){var t=this;Object(n["Ub"])({classGroupId:e.row.id}).then(function(a){200==a.code?(e._self.$refs["popover-".concat(e.$index)].doClose(),t.$message.success("删除成功"),t.getList(t.activeMixClass)):(t.$message.error(a.msg),e._self.$refs["popover-".concat(e.$index)].doClose())}).catch(function(t){e._self.$refs["popover-".concat(e.$index)].doClose()})},resetClass:function(e){var t=this;this.isOnlyChangeUser=!0,this.isNewClass=!1,this.className=e.name,this.studentVisible=!0,this.activeClass=e.id,this.isSearch=!1,this.activeType=e.type,this.activeChioseSound=null,Object(o["j"])({classGroupId:e.id}).then(function(e){200==e.code&&(t.activeListStudent=e.data.map(function(e){return e.isVisible=!1,e}))}),this.getNoClassStudent(e.type)},classAdjustment:function(e){for(var t in this.infoDetail=e,this.activeType=e.type,this.activeClass=e.id,this.setType(e.type),this.isNewClass=!1,this.teacherForm.assistant=[],e.classGroupTeacherMapperList)"BISHOP"==e.classGroupTeacherMapperList[t].teacherRole&&(this.teacherForm.coreTeacher=e.classGroupTeacherMapperList[t].userId),"TEACHING"==e.classGroupTeacherMapperList[t].teacherRole&&this.teacherForm.assistant.push(e.classGroupTeacherMapperList[t].userId);this.infoVisible=!0},getNoClassStudent:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(t,a){var s,i=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return s={musicGroupId:this.teamid,type:t,actualSubjectId:a},e.next=3,Object(n["fb"])(s).then(function(e){200==e.code&&(i.studentList=e.data)});case 3:case"end":return e.stop()}},e,this)}));function t(t,a){return e.apply(this,arguments)}return t}(),removeStudent:function(e){var t=this;"HIGH_ONLINE"==this.activeType&&this.activeListStudent.length<=3?this.$message.error("线上基础技能课不能小于3人"):Object(o["s"])({classGroupId:this.activeClass,userId:e.userId}).then(function(a){200==a.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(o["j"])({classGroupId:t.activeClass}).then(function(e){200==e.code&&(t.activeListStudent=e.data)}),t.getNoClassStudent(t.activeType))})},addSomeStudent:function(){var e=this,t=this.chioseStudent.map(function(e){return e.userId});if(t.length<=0)return this.isNewClass?void this.$message.error("至少添加一名学员"):void(this.studentVisible=!1);"HIGH_ONLINE"==this.activeType?Object(n["nc"])({classGroupId:this.activeClass}).then(function(a){if(200==a.code){if(e.activeListStudent.length+e.chioseStudent.length>5||e.activeListStudent.length+e.chioseStudent.length<3)return void e.$message.error("线上技能班必须为3-5人");Object(o["b"])({classGroupId:e.activeClass,userIdsStr:t.join(",")}).then(function(t){if(200==t.code)return e.studentVisible=!1,e.$message.success("添加成功"),void e.getList()})}}):Object(o["b"])({classGroupId:this.activeClass,userIdsStr:t.join(",")}).then(function(t){200==t.code&&(e.studentVisible=!1,e.$message.success("添加成功"),e.getList())})},SelectionMix:function(e){this.activeSingleLists=e},removeSiginforMix:function(e){for(var t in this.activeSingleLists)this.activeSingleLists[t].id==e.id&&this.$refs["mixList"].toggleRowSelection(e,!1)},temporaryRemoveStudent:function(e){for(var t in this.activeListStudent)this.activeListStudent[t].userId==e.userId&&this.activeListStudent.splice(t,1);for(var a in this.studentList)this.studentList[a].userId==e.userId&&this.$refs["temporaryStudentList"].toggleRowSelection(e,!1)},objArrayRemoval:function(e,t){var a={},s=[];for(var i in e)a[e[i][t]]||(s.push(e[i]),a[e[i][t]]=!0);return s},setInfoMsg:function(){if(this.className)if(this.activeListStudent.length<=0)this.$message.error("班级里至少要有一名学生");else{if("HIGH_ONLINE"==this.activeType){if(this.activeListStudent.length>5||this.activeListStudent.length<3)return void this.$message.error("线上技能班必须为3-5人");this.teacherForm.expectStudentNum=this.activeListStudent.length}this.infoVisible=!0}else this.$message.error("请输入班级名称")},addWeek:function(){this.weekList.push({dayOfWeek:"",startClassTime:"",endClassTime:"",time:this.courseTime,id:(new Date).getTime()})},removeWeek:function(e){for(var t in this.weekList)this.weekList[t].id==e.id&&this.weekList.splice(t,1)},submitTemporary:function(e){var t=this;this.isTemporary=1==e,this.$refs["teacherForm"].validate(function(a){if(a){var s=t.weekList;if("onlyUpdateTeacher"==t.teacherForm.isAdd||s[0]&&s[0].startClassTime&&s[0].endClassTime&&s[0].dayOfWeek){var i=t.className,r=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var o in t.teacherForm.assistant)r.push({userId:t.teacherForm.assistant[o],teacherRole:"TEACHING"});var l=t.teamid,c=t.teacherForm.courseTime,u=t.teacherForm.courseType,d=t.teacherForm.courseNum;if(d<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("请至少排一节课");else if(d>t.maxMun)t.$message.error("一次最多排".concat(t.maxMun,"节课"));else{var p=t.activeListStudent.map(function(e){return e.userId}),m=t.teacherForm.checked,f=[];for(var h in t.weekList)f.push(t.weekList[h]);if(f.length<=0&&"onlyUpdateTeacher"!=t.teacherForm.isAdd)t.$message.error("新增班级至少排一节课");else{"onlyUpdateTeacher"==t.teacherForm.isAdd&&(c=null,u=null,p=null,m=null,d=null,f=null,y=null);var y=t.activeType,v={classGroupName:i,classGroupTeacherMapperList:r,musicGroupId:l,startDate:c,courseType:u,students:p,holiday:m,courseTimes:d,courseTimeDtoList:f,type:y,courseAddType:t.teacherForm.isAdd};1==e?Object(n["gc"])(v).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())}):2==e?(v.subjectId=t.teacherForm.sound,v.expectStudentNum=t.teacherForm.expectStudentNum,Object(n["fc"])(v).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):3==e&&(v.classGroupId=t.activeClass,Object(n["n"])(v).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.getList())}))}}}else t.$message.error("至少排一节课")}else t.$message.error("请填写必要信息")})},newClassHight:function(){var e=this;this.$refs["newClassForm"].validate(function(t){if(t){var a,s={};if(s.musicGroupId=e.teamid,s.name=e.newClassForm.className,s.type=e.newClassForm.type,s.groupType="MUSIC",s.expectStudentNum=e.newClassForm.expectStudentNum,s.teacherMapperList=[],s.teacherMapperList.push({userId:e.newClassForm.bishop,teacherRole:"BISHOP"}),"HIGH_ONLINE"==e.newClassForm.type)a=e.newClassForm.subjectId,e.newClassForm.memo.length>0&&(s.memo=e.newClassForm.memo.join(","));else{for(var i in a=e.newClassForm.subjectIdList.length>0?e.newClassForm.subjectIdList.join(","):null,e.newClassForm.teaching)s.teacherMapperList.push({userId:e.newClassForm.teaching[i],teacherRole:"TEACHING"});s.memo=null}s.subjectIdList=a,Object(n["r"])(s).then(function(t){200==t.code&&(e.$message.success("创建成功"),e.getList(),e.newClassVisible=!1)})}})},setAssistant1:function(e){for(var t in e)e[t]==this.newClassForm.bishop&&e.splice(t,1)},handleSelectionChange:function(e){e.length>0?this.classGroupIds=e.map(function(e){return e.id}).join(","):this.classGroupIds=null},chkstu:function(e,t){return"HIGH_ONLINE"==e.type&&e.totalClassTimes<=0||"HIGH"==e.type&&e.totalClassTimes<=0},startRegest:function(){var e=this;this.classGroupIds?this.$confirm("是否开启报名?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n["Sb"])({classGroupIds:e.classGroupIds,musicGroupId:e.teamid}).then(function(t){200==t.code&&(e.$message.success("开启成功,已推送".concat(t.data,"名学生")),e.getList())})}).catch(function(){}):this.$message.error("请至少选择1个基础技能班")},toggleSelection:function(e){var t=this;e?e.forEach(function(e){t.$refs.multipleTable.toggleRowSelection(e)}):this.$refs.multipleTable.clearSelection()},chioseHightype:function(e){"HIGH_ONLINE"==e?(this.newClassForm.teaching=[],this.$set(this.newClassForm,"subjectIdList",[])):(this.newClassForm.memo=[],this.newClassForm.subjectId="")},changeStartClassTime:function(e){this.$set(e,"endClassTime","")},changeEndClassTime:function(e,t){this.$set(e,"endClassTime",t)},changeCourseType:function(e){var t=this;console.log(e),e?(this.classTimeList.forEach(function(a){a.value==e&&(t.courseTime=a.label)}),this.weekList=[{week:"",startTime:"",endTime:"",time:this.courseTime,id:(new Date).getTime()}]):(this.courseTime=null,this.weekList=[])},changeStartTimes:function(e,t){if(e&&t.time){var a=u()(new Date).format("YYYY-MM-DD");this.$set(t,"endClassTime",Object(l["a"])(a,e,t.time))}else this.$set(t,"endClassTime",""),this.$message.error("请先设置课程时间");t.endClassTime||this.$set(t,"startClassTime","")},setItem:function(e,t){this.weekList[t].startClassTime="",this.weekList[t].endClassTime="",console.log()}},watch:{infoVisible:function(e){e||(this.teacherForm={isAdd:null,coreTeacher:"",assistant:[],courseType:"",courseTime:"",checked:!0,courseNum:"",mixClassGroupId:"",sound:"",expectStudentNum:""},this.infoDetail=null,this.weekList=[])},newClassVisible:function(e){e||(this.newClassForm={className:null,type:null,subjectIdList:[],expectStudentNum:null,bishop:null,teaching:null,memo:[]})}}}),ie=se,re=(a("b94d"),Object(y["a"])(ie,s,i,!1,null,"d4ccf45e",null));t["default"]=re.exports},"940a":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}),e._v(" "),a("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.$listeners.changeActive}}),e._v(" "),e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}}):e._e():[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("paymentCycle",{ref:"cycle",attrs:{isUserType:e.isUserType,form:e.cycle,isCommon:e.isCommon,isDisabled:"1"===e.form.leixing||"0"==e.paymentType},on:{"update:form":function(t){e.cycle=t}}})],e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1),e._v(" "),a("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("classrooms",{on:{close:e.closeNext}})],1)],2)},i=[],r=a("db72"),n=a("a8db"),o=a("75fc"),l=(a("96cf"),a("3b8d")),c=(a("ac4d"),a("8a81"),a("ac6a"),a("d349")),u=a("1672"),d=a("ed08"),p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},["undefined"===typeof e.paymentType?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团课程")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1):e._e(),e._v(" "),0!=e.paymentType&&e.isCommon?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:function(t){return e.$listeners.changeActive({name:"1"})}}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1890774724)}):e._e()],1)},m=[],f={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName"],mounted:function(){console.log(this.form)}},h=f,y=(a("b72b"),a("2877")),v=Object(y["a"])(h,p,m,!1,null,"3bb8195c",null),b=v.exports,g=a("7a3c"),_=a("0464"),w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},C=[],S={data:function(){return{list:[]}},methods:{submit:function(){}}},k=S,T=(a("0e6e"),Object(y["a"])(k,w,C,!1,null,"68a822a5",null)),x=T.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"是否赠送乐团网管课",prop:"isGiveMusicNetwork",rules:[{required:!0,message:"请选择是否赠送乐团网管课",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.isGiveMusicNetwork,callback:function(t){e.$set(e.form,"isGiveMusicNetwork",t)},expression:"form.isGiveMusicNetwork"}},[a("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},F=[],I={props:["form"]},D=I,P=(a("6e49"),Object(y["a"])(D,O,F,!1,null,"4d2c96e9",null)),L=P.exports,$=(a("73b3"),{0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT"}),j={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:b,paymentCycle:g["a"],extraClass:_["a"],classrooms:x,otherform:L},data:function(){return{options:[],form:{payUserType:"user"===this.type?"STUDENT":"SCHOOL",leixing:"1",musicGroupOrganizationCourseSettingId:null},chargeTypeName:"",other:{},cycles:[{}],cycle:{},eclass:[],collapse:[],nextVisible:!1,typeList:[],charges:[]}},computed:{isCommon:function(){return"1"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e={},t=!0,a=!1,s=void 0;try{for(var i,r=this.charges[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var n=i.value;e[n.id]=n}}catch(o){a=!0,s=o}finally{try{t||null==r.return||r.return()}finally{if(a)throw s}}return e},organizationCourseUnitPriceSettingsByType:function(){var e={},t=!0,a=!1,s=void 0;try{for(var i,r=this.organizationCourseUnitPriceSettings[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var n=i.value;e[n.courseType]=n}}catch(o){a=!0,s=o}finally{try{t||null==r.return||r.return()}finally{if(a)throw s}}return e}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.getCharges()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),"1"===e?this.eclass=[]:"2"===e&&(this.eclass=[])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t){var a,s=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["g"])({id:t});case 3:a=e.sent,this.eclass=a.data.filter(function(e){return!e.isStudentOptional||void 0!==s.paymentType})||[{}],this.syncAllMoney(),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(t){return e.apply(this,arguments)}return t}()},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.getCharges(),this.rowDetail&&(this.form.musicGroupOrganizationCourseSettingId=this.rowDetail.musicGroupOrganizationCourseSettingId,this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo))},priceChange:function(e,t){var a=Object(o["a"])(this.eclass),s=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=Math.ceil((e.courseTotalMinuties||1)*(s.unitPrice||1));e.courseCurrentPrice=i,e.courseOriginalPrice=i,a[t]=e,this.eclass=Object(o["a"])(a)},syncAllMoney:function(){var e=0,t=!0,a=!1,s=void 0;try{for(var i,r=this.eclass[Symbol.iterator]();!(t=(i=r.next()).done);t=!0){var n=i.value;e+=n.courseCurrentPrice}}catch(m){a=!0,s=m}finally{try{t||null==r.return||r.return()}finally{if(a)throw s}}if(e?this.$set(this.cycle,"paymentAmount",e):this.$set(this.cycle,"paymentAmount",void 0),this.rowDetail){var o,l,c,u,d;this.$set(this.cycle,"paymentPattern",(null===(o=this.rowDetail)||void 0===o?void 0:o.paymentPattern)+"");var p=[null===(l=this.rowDetail)||void 0===l?void 0:l.paymentValidStartDate,null===(c=this.rowDetail)||void 0===c?void 0:c.paymentValidEndDate];this.$set(this.cycle,"paymentDate",[null===(u=this.rowDetail)||void 0===u?void 0:u.startPaymentDate,null===(d=this.rowDetail)||void 0===d?void 0:d.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",p)}return e},getChargeTypeList:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["g"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}},e,this,[[0,7]])}));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){var t,a,s,i,r,n,o,l,u;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return o=null===(t=this.baseInfo)||void 0===t?void 0:null===(a=t.musicGroup)||void 0===a?void 0:a.organId,l=null===(s=this.baseInfo)||void 0===s?void 0:null===(i=s.musicGroup)||void 0===i?void 0:i.chargeTypeId,this.chargeTypeName=null===(r=this.baseInfo)||void 0===r?void 0:null===(n=r.musicGroup)||void 0===n?void 0:n.chargeTypeName,e.prev=3,e.next=6,Object(c["w"])({row:9999,chargeTypeId:l,organId:o});case 6:u=e.sent,this.charges=u.data.rows,e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}},e,this,[[3,10]])}));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.collapse.length)},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter(function(e){return!!e}),this.collapse.pop()},collapseChange:function(e){this.collapse=e},closeNext:function(){this.nextVisible=!1},getForms:function(){var e=this.$refs;return[e.base,e.eclass,e.cycle,e.other].filter(function(e){return!!e}).map(function(e){return e.$refs.form})},submit:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){var t,a,s,i,o,l,c,p,m,f,h,y,v,b,g,_,w;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:for(t=this.getForms(),a=[],s=!0,i=!1,o=void 0,e.prev=5,l=function(){var e=p.value;e.validate(function(t){t&&a.push(e)})},c=t[Symbol.iterator]();!(s=(p=c.next()).done);s=!0)l();e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](5),i=!0,o=e.t0;case 14:e.prev=14,e.prev=15,s||null==c.return||c.return();case 17:if(e.prev=17,!i){e.next=20;break}throw o;case 20:return e.finish(17);case 21:return e.finish(14);case 22:if(!(this.eclass.length<1)){e.next=24;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 24:if(a.length!==t.length){e.next=51;break}if(f=Object(r["a"])({},this.form,{},this.other,{},this.cycle,{musicGroupPaymentCalenderCourseSettingsList:this.eclass}),h=f.paymentDate,y=f.paymentValid,v=f.leixing,b=Object(n["a"])(f,["paymentDate","paymentValid","leixing"]),g=Object(r["a"])({},b,{paymentType:$[0==this.paymentType?this.paymentType:v],musicGroupId:this.musicGroupId},Object(d["a"])(h,["startPaymentDate","deadlinePaymentDate"]),{},Object(d["a"])(y,["paymentValidStartDate","paymentValidEndDate"])),null===(m=this.rowDetail)||void 0===m?void 0:m.id){e.next=40;break}return e.prev=28,e.next=31,Object(u["b"])(g);case 31:_=e.sent,this.$listeners.close(),this.$listeners.submited(_.data),e.next=38;break;case 36:e.prev=36,e.t1=e["catch"](28);case 38:e.next=51;break;case 40:return e.prev=40,g.id=this.rowDetail.id,e.next=44,Object(u["d"])(g);case 44:w=e.sent,this.$listeners.close(),this.$listeners.submited(w.data),e.next=51;break;case 49:e.prev=49,e.t2=e["catch"](40);case 51:case"end":return e.stop()}},e,this,[[5,10,14,22],[15,,17,21],[28,36],[40,49]])}));function t(){return e.apply(this,arguments)}return t}()}},N=j,G=(a("f09e"),Object(y["a"])(N,s,i,!1,null,"36e65990",null));t["a"]=G.exports},"95dd":function(e,t,a){},a8db:function(e,t,a){"use strict";var s=a("e265"),i=a.n(s),r=a("a4bb"),n=a.n(r);function o(e,t){if(null==e)return{};var a,s,i={},r=n()(e);for(s=0;s=0||(i[a]=e[a]);return i}function l(e,t){if(null==e)return{};var a,s,r=o(e,t);if(i.a){var n=i()(e);for(s=0;s=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}a.d(t,"a",function(){return l})},b38b:function(e,t,a){"use strict";a.d(t,"c",function(){return o}),a.d(t,"a",function(){return l}),a.d(t,"b",function(){return c});var s=a("b775"),i=a("4328"),r=a.n(i),n="/api-web";function o(e){return Object(s["a"])({url:n+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function l(e){return Object(s["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:r.a.stringify(e)})}function c(e){return Object(s["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:r.a.stringify(e)})}},b3d0:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"学生编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[a("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"应缴金额",rules:[{required:!0,message:"请输入预计缴费金额",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}],prop:"momey"}},[a("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},i=[],r=a("db72"),n=a("333d"),o=a("1cc7"),l={components:{pagination:n["a"]},props:["clearStduent","musicGroupPaymentCalenderId"],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["E"])({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["Tb"])(Object(r["a"])({},this.searchForm,{musicGroupPaymentCalenderId:this.musicGroupPaymentCalenderId})).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;sessionStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,a={};a.ids=e?this.activeRow.id:this.activeChiose.map(function(e){return e.id}).join(","),Object(o["Zb"])(a).then(function(e){200==e.code&&(t.$message.success("修改成功"),t.resetPayVisible=!1,t.getList(),t.$listeners.submited&&t.$listeners.submited())})}},watch:{resetPayVisible:function(e){e||(this.resetPayForm={momey:null},this.$refs["resetPayForm"].resetFields())}}},c=l,u=(a("3656"),a("2877")),d=Object(u["a"])(c,s,i,!1,null,"45031050",null);t["default"]=d.exports},b4ac:function(e,t,a){"use strict";a.d(t,"a",function(){return i}),a.d(t,"b",function(){return r});var s=a("829b"),i=function(e){return Object(s["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},r=function(e){return Object(s["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})}},b72b:function(e,t,a){"use strict";var s=a("1024"),i=a.n(s);i.a},b94d:function(e,t,a){"use strict";var s=a("8bbc3"),i=a.n(s);i.a},c028:function(e,t,a){"use strict";var s=a("0f8d"),i=a.n(s);i.a},c466:function(e,t,a){"use strict";a.d(t,"h",function(){return n}),a.d(t,"c",function(){return o}),a.d(t,"d",function(){return l}),a.d(t,"e",function(){return c}),a.d(t,"f",function(){return u}),a.d(t,"g",function(){return d}),a.d(t,"b",function(){return p}),a.d(t,"a",function(){return m});a("a481");var s=a("5a0c"),i=a.n(s),r=a("56d7");function n(e){var t=e.getFullYear(),a=e.getMonth()+1,s=e.getDate();return a=a<10?"0"+a:a,s=s<10?"0"+s:s,t+"-"+a+"-"+s}function o(e){return e.setDate(1),e}function l(e){var t=e.getMonth(),a=++t,s=new Date(e.getFullYear(),a,1),i=864e5;return new Date(s-i)}function c(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var s=t-24*(a.getDay()-1)*60*60*1e3,i=new Date(s),r=i.getFullYear(),n=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),l=r+"-"+n+"-"+o;return l}function u(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),s=7-a.getDay();7==s&&(s=0);var i=t+24*s*60*60*1e3,r=new Date(i),n=r.getFullYear(),o=r.getMonth()+1<10?"0"+(r.getMonth()+1):r.getMonth()+1,l=r.getDate()<10?"0"+r.getDate():r.getDate(),c=n+"-"+o+"-"+l;return c}function d(e){var t=new Date(e.replace(/-/g,"/")).getDay();return 0===t&&(t=7),t}function p(e,t,a){return Math.abs(i()(e+" "+t).diff(e+" "+a,"Minute"))}function m(e,t,a){var s=i()(e+" "+t).add(a,"minute");return console.log(),i()(e+" 23:59").isBefore(s)?(r["$message"].error("课程时间无法跨天请重新设置开始时间"),""):s.format("HH:mm")}},c606:function(e,t,a){},cd32:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.detail?a("div",[e.detail&&e.detail.id?a("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission("musicGroupPaymentCalender/auditPass")?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/auditRefuse")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e()],1):e._e()],1):e._e()},i=[],r=(a("96cf"),a("3b8d")),n=a("ec8a"),o=a("3762"),l=a("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(t){var a=this;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:t?Object(l["a"])({calenderId:this.detail.id,auditMemo:this.remark}).then(function(e){200==e.code&&(a.$message.success("审核通过"),a.$emit("close"))}):Object(l["b"])({calenderId:this.detail.id,auditMemo:this.remark}).then(function(e){200==e.code&&(a.$message.success("驳回成功"),a.$emit("close"))});case 3:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(n["a"])(e)}}},u=c,d=(a("c028"),a("2877")),p=Object(d["a"])(u,s,i,!1,null,"7aa2d0b2",null);t["a"]=p.exports},d31b:function(e,t,a){"use strict";var s=a("2e39"),i=a.n(s);i.a},d349:function(e,t,a){"use strict";a.d(t,"d",function(){return c}),a.d(t,"c",function(){return u}),a.d(t,"e",function(){return d}),a.d(t,"b",function(){return p}),a.d(t,"p",function(){return m}),a.d(t,"z",function(){return f}),a.d(t,"A",function(){return h}),a.d(t,"g",function(){return y}),a.d(t,"k",function(){return v}),a.d(t,"f",function(){return b}),a.d(t,"l",function(){return g}),a.d(t,"s",function(){return _}),a.d(t,"q",function(){return w}),a.d(t,"r",function(){return C}),a.d(t,"h",function(){return S}),a.d(t,"i",function(){return k}),a.d(t,"n",function(){return T}),a.d(t,"j",function(){return x}),a.d(t,"t",function(){return O}),a.d(t,"B",function(){return F}),a.d(t,"m",function(){return I}),a.d(t,"u",function(){return D}),a.d(t,"x",function(){return P}),a.d(t,"v",function(){return L}),a.d(t,"w",function(){return $}),a.d(t,"o",function(){return j}),a.d(t,"a",function(){return N}),a.d(t,"y",function(){return G});var s=a("a8db"),i=a("b775"),r=a("829b"),n=a("4328"),o=a.n(n),l="/api-web";function c(e){return Object(i["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(i["a"])({url:l+"/organization/add",method:"post",data:o.a.stringify(e)})}function d(e){return Object(i["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function p(e){return Object(i["a"])({url:l+"/area/queryChild",method:"get",params:e})}function m(e){return Object(i["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(i["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function h(e){return Object(i["a"])({url:l+"/subject/upset",method:"post",data:e})}function y(e){return Object(i["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(i["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function b(e){return Object(i["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function g(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function w(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function C(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function S(e){return Object(i["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function k(e){return Object(i["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function T(e){return Object(i["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function x(e){return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function O(e){return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function F(e){return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function I(e){var t=e.id,a=Object(s["a"])(e,["id"]);return Object(r["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function D(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function P(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function $(e){return Object(r["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function j(e){return Object(r["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function N(e){return Object(r["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function G(e){return Object(r["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}},e665:function(e,t,a){},ec6b:function(e,t,a){"use strict";var s=a("8c4f5"),i=a.n(s);i.a},ec8a:function(e,t,a){"use strict";a.d(t,"a",function(){return s});a("6762"),a("2fdb"),a("28a5");function s(e,t){var a=window.localStorage.getItem("permission");return a=a.split(","),t=t||null,!(!a.includes(e)||t)||!(!a.includes(e)||!a.includes(t))}},ed08:function(e,t,a){"use strict";a.d(t,"b",function(){return n}),a.d(t,"a",function(){return o});var s=a("bd86"),i=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),r=a.n(i);var n=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a],i=a.toLocaleUpperCase();t.push({label:s,value:"TRUE"===i||"FALSE"===i?"TRUE"===i:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&e.length?(t={},Object(s["a"])(t,a[0]||"start",r()(e[0]).isValid()?r()(e[0]).format("YYYY-MM-DD"):""),Object(s["a"])(t,a[1]||"end",r()(e[1]).isValid()?r()(e[1]).format("YYYY-MM-DD"):""),t):{}}},efa0:function(e,t,a){"use strict";var s=a("5818"),i=a.n(s);i.a},f09e:function(e,t,a){"use strict";var s=a("6ff1"),i=a.n(s);i.a},f10d:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("soundSetCore",{ref:"soundSetCore"}),e._v(" "),"look"!==e.lookType?a("div",{staticClass:"btnWrap",staticStyle:{"margin-top":"30px"}},[a("div",{staticClass:"closeBtn",on:{click:e.getSound}},[e._v("取消")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/updateSubjectInfo",parent:"/resetTeaming/resetSound"},expression:"{child: 'musicGroup/updateSubjectInfo', parent: '/resetTeaming/resetSound'}"}],staticClass:"okBtn",on:{click:e.saveInfo}},[e._v("保存")])]):e._e()],1)},i=[],r=a("ff14"),n={components:{soundSetCore:r["a"]},data:function(){return{lookType:""}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.lookType=this.$route.query.type},saveInfo:function(){this.$refs.soundSetCore.submitInfo()},getSound:function(){this.$refs.soundSetCore.init()}}},o=n,l=a("2877"),c=Object(l["a"])(o,s,i,!1,null,"49e14354",null);t["a"]=c.exports},f610:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("新建学校缴费")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")])]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"120",label:"订单编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"120",label:"预计缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"150",label:"缴费有效期开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidEndDate",width:"150",label:"缴费有效期结束日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualNum",width:"120",label:"实际缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isGiveMusicNetwork",width:"120",label:"是否赠送网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.isGiveMusicNetwork?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"260px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail",expression:"'musicGroupPaymentCalender/auditListDetail'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.status&&"AUDITING"!=t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),"REJECT"==t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.isNewGropu?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.$listeners.changeActive}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[a("setStudentFee",{ref:"setStudentFee",attrs:{musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}})],1)},i=[],r=(a("a481"),a("96cf"),a("3b8d")),n=(a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("4328"),a("5a0c")),l=a.n(o),c=a("641c"),u=a("61f7"),d=a("1cc7"),p=a("d349"),m=a("1672"),f=a("b3d0"),h=a("940a"),y=a("86e8"),v=a("cd32"),b=a("3762"),g=a("267e"),_=a("ed08"),w=a("92e3"),C={props:["baseInfo","isNewGropu"],components:{pagination:n["a"],setStudentFee:f["default"],userPayForm:h["a"],schoolPayForm:y["a"],QrCode:c["a"],review:v["a"],reviewDetail:b["a"]},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!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,musicGroupPaymentCalenderId:"",payOrderTypeLists:w["q"]}},created:function(){},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(p["o"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}},e,this,[[0,7]])}));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(_["b"])(g["m"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"}},activated:function(){this.init()},methods:{init: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,Object(m["a"])({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.getList();case 9:case"end":return e.stop()}},e,this,[[0,6]])}));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(m["e"])({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(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},chioseStudentSubmited:function(){var e=Object(r["a"])(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}},e,this,[[0,6]])}));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(d["t"])({id:a}).then(function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())})}).catch(function(){})},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})},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.musicGroupPaymentCalenderId=this.musicGroupPaymentCalenderId,Object(m["c"])(t).then(function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())})}},resetPayDate:function(){var e=this;Object(d["Xb"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then(function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())})},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,s=new Date(a.replace(/-/g,"/"));s=new Date(1e3*(s/1e3+86400*t));var i=s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate();return i},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5