chunk-ecbe1406.9b1429a1.js 200 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ecbe1406","chunk-2cd5f41c","chunk-37bf19f8"],{"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.courseUnitPriceSettingsByType,(function(t,s){return a("el-option",{key:s,attrs:{disabled:e.isOptionDisabled(s),label:e.courseType[s],value:s}})})),1)],1)]}}])}),e._v(" "),e.isCommon?a("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(a){e.$set(e.list.form[t.$index],"isStudentOptional",a)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),a("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:{required:!0,message:"请输入课程时长",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min: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:2,min:0,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.isUserType,controls:!1,precision:2,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,206159554)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},i=[],n=(a("6762"),a("2fdb"),a("267e")),r=a("ed08"),o=a("6612"),l=a.n(o),c={props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:n["d"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(r["b"])(n["c"])}},computed:{list:function(){return console.log(this.form),{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("b90c"),a("2877")),p=Object(d["a"])(u,s,i,!1,null,"45698d19",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"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("新建学员缴费")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"订单编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"startPaymentDate",width:"200",label:"缴费日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDate))+" ~ "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~ "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),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:"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&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?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&&e.teamStatus?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.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),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:function(a){return e.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],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,calenderId:e.dialogCalenderId}}),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=[],n=(a("a481"),a("96cf"),a("1da1")),r=(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"),b=a("cd32"),v=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("配置")])])}],S=(a("7f7f"),a("c5f6"),a("ac6a"),a("ec8a")),C={0:"按月",1:"按学期",2:"一次性"},w={props:["subjectId","calenderId"],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,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(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId,calenderId:this.calenderId},e.next=3,Object(d["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 n={};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],n.id?(i.checked=!1,"GROUP"==s?("GROUP"==n.kitType&&n.price<i.price||"LEASE"==n.kitType||"FREE"==n.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),i.checked=!0,n={id:i.id,price:i.price,kitType:s}):"LEASE"==s?"LEASE"==n.kitType&&n.price<i.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),i.checked=!0,n={id:i.id,price:i.price,kitType:s}):"FREE"==s&&"FREE"==n.kitType&&n.price<i.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),i.checked=!0,n={id:i.id,price:i.price,kitType:s})):(i.checked=!0,n={id:i.id,price:i.price,kitType:s}),a.instrumentResult.push(i)}}else"ACCESSORIES"==e.type&&(e.checked=!0,a.accessOries.push(e))})),a.instrumentResult.length>0&&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={},n=[],r=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&&n.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,r=0):"LEASE"==t.kitType?(r=t.coupon,"自备"!=t.name?a+=t.depositFee:a+=0):(a+=parseFloat(t.price),r=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-r)>0&&e.push({name:t.name,type:"团购",price:parseFloat(t.price-r)}))})),a+=parseFloat(l+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-r>=0?(a=Number((a-r).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:r,goodsGroupIds:i,goodsIds:o.join(","),contractGoodsIds:u,courseKeys:n,musicClassFee:c}},permission:function(e){return Object(S["a"])(e)}}},T=w,k=(a("7eeb"),a("2877")),x=Object(k["a"])(T,g,_,!1,null,"21c3d807",null),I=x.exports,O=a("267e"),L=a("ed08"),F=a("92e3"),P={props:["baseInfo","isNewGropu"],components:{pagination:r["a"],setStudentFee:f["default"],userPayForm:h["a"],schoolPayForm:y["a"],QrCode:c["a"],review:b["a"],reviewDetail:v["a"],subjectPreview:I},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:F["s"],dialogSubjectVisible:!1,dialogSubjectList:[],dialogSubjectId:null,dialogCalenderId:null,previewVisible:!1}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 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(L["b"])(O["o"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.type;return"teamDraft"==e||"resetTeam"==e}},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(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["f"])({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+"&id="+this.$route.query.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},chioseStudentSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(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["d"])(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<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}(),onPreview:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,s=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,a=this.$route.query.id,e.next=4,Object(d["C"])({musicGroupId:a}).then((function(e){200==e.code?(s.dialogSubjectList=e.data.musicGroupSubjectPlans,s.dialogSubjectVisible=!0):s.$message.warning("没有可预览的声部")}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onPreviewSubmit:function(){this.previewVisible=!0}},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},D=P,j=(a("2449"),Object(k["a"])(D,s,i,!1,null,"819be47e",null));t["a"]=j.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),Math.easeInOutQuad=function(e,t,a,s){return e/=s/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,a){var r=n(),o=e-r,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var n=Math.easeInOutQuad(c,r,o,t);i(n),c<t?s(e):a&&"function"===typeof a&&a()};u()}},1234:function(e,t,a){},1672:function(e,t,a){"use strict";a.d(t,"f",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"g",(function(){return r})),a.d(t,"a",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"e",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return d}));var s=a("829b"),i=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/queryPage",data:{},params:e,requestType:"form"})},n=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},r=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},o=function(e){return Object(s["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},l=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},c=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},u=function(e){return Object(s["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},d=function(e){return Object(s["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})}},1973:function(e,t,a){"use strict";a("9617")},2449:function(e,t,a){"use strict";a("fb31")},2965:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB0klEQVRoQ+1ZvUoDQRD+xpBcVIKIhYiINvYi2PgOVpJ0XmFhIgg+gCkCxlqsTARBTyt/Ol/CB5CAhdFCLCyChT8X8UYUFJFcyO6OkUs29Xwz38/sHmwIEf9RxPnDCvjvBG0CNgFDBzp3hfgoHau/DBaJaJkZ/YZGacGJ8MjM24lkLU+Z47dGTUITePVyawG4qDVZGNQDysfd0oaSAN9bugZoXJiLZju+cdydCUUBWdac9icwxy033JbQFfI9K0A0ie5LoO7ltkQtNGyWcEurSofYcF7b4J37Jfa97GnbbGxhkOOW55VWyF6jLbiqUtJ916hdIZX9aKHWrtCHSUR4YEatBcN+lwwD6NXAfUMkErhIJPtmKLP5rErkaT83GkNQAVFKFftVby6AcOIslNO6BPyD7CUYk7p4cwHgOkDrRLhVJREEPE1EK6q4n/UCAkzGm2OtAHMPzToIJUAVAt+FUWF8HtIxM6qN0RICzhNXI7NUKARhBO93F1MD8XiVgSFpERICzhy3PNeMGDOofpirgln8PUlCQADwHqgn/BplngLQVKRuMhICdGeL4LpRQMTfRiP/Oh35/wdETl4bmnTuw1YbzBMZYRMQsdGgiU3AwDwR6DsIG88xSgAlnwAAAABJRU5ErkJggg=="},3004:function(e,t,a){},3517:function(e,t,a){"use strict";a("f267")},3762: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("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"分部名称:"}},[e._v(e._s(e.auditDto.organName))]),e._v(" "),a("descriptions-item",{attrs:{label:"乐团名称:"}},[e._v(e._s(e.auditDto.musicGroupName))]),e._v(" "),a("descriptions-item",{attrs:{label:"乐团编号:"}},[e._v(e._s(e.auditDto.musicGroupId))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.auditDto.createTime))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.auditDto.paymentType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.auditDto.payUserType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"学员数量:"}},[a("span",[e._v(e._s(e.studentNum)+" "),e.studentNum>0?a("el-link",{attrs:{type:"primary"},on:{click:function(t){e.payVisible=!0}}},[e._v("查看学员")]):e._e()],1)])],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"课程信息",closable:!1,type:"info"}}),e._v(" "),e.musicGroupPaymentCalenderCourseSettingName?a("descriptions",{attrs:{column:3}},[a("descriptions-item",{attrs:{label:"收费标准:"}},[e._v(e._s(e.musicGroupPaymentCalenderCourseSettingName))])],1):e._e(),e._v(" "),a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderCourseSettings,stripe:""}},[a("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否免费",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"}})],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}),e._v(" "),a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"缴费金额:"}},[e._v(e._s(e._f("moneyFormat")(e.auditDto.paymentAmount)))]),e._v(" "),a("descriptions-item",{attrs:{label:"缴费方式:"}},[e._v(e._s(e._f("paymentPatternTypeFormat")(e.auditDto.paymentPattern)))]),e._v(" "),"SCHOOL"!==e.auditDto.payUserType?a("descriptions-item",{attrs:{label:"缴费日期:"}},[e._v(e._s(e._f("dayjsFormat")(e.auditDto.startPaymentDate))+" -\n "+e._s(e._f("dayjsFormat")(e.auditDto.deadlinePaymentDate)))]):e._e(),e._v(" "),a("descriptions-item",{attrs:{label:"缴费有效期:"}},[e._v(e._s(e.auditDto.paymentValidStartDate)+" -\n "+e._s(e.auditDto.paymentValidEndDate))])],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,"append-to-body":"",width:"600px",title:"查看学员"},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-table",{attrs:{data:e.simpleUserDto}},[a("el-table-column",{attrs:{prop:"userName",label:"姓名",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectNames",label:"声部",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号",width:"180"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.payVisible=!1}}},[e._v("关 闭")])],1)],1)],1)},i=[],n=(a("96cf"),a("1da1")),r=(a("7f7f"),a("5530")),o=a("2b0e"),l=a("1672"),c=a("ddec");o["default"].use(c["a"]);var u={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],simpleUserDto:[],studentNum:0},d={props:["detail"],data:function(){return Object(r["a"])({payVisible:!1},u)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["g"])({calenderId:this.detail.id,musicGroupId:this.detail.musicGroupId});case 3:for(a in t=e.sent,u)u.hasOwnProperty(a)&&(this[a]=t.data[a]);e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},p=d,m=(a("37d1"),a("2877")),f=Object(m["a"])(p,s,i,!1,null,"7a4bf9b6",null);t["a"]=f.exports},"37d1":function(e,t,a){"use strict";a("4696")},4e3:function(e,t,a){"use strict";a("3004")},"40b9":function(e,t,a){},4226:function(e,t,a){"use strict";a("55f7")},4696:function(e,t,a){},5137:function(e,t,a){"use strict";a.d(t,"q",(function(){return o})),a.d(t,"h",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"g",(function(){return u})),a.d(t,"f",(function(){return d})),a.d(t,"i",(function(){return p})),a.d(t,"c",(function(){return m})),a.d(t,"w",(function(){return f})),a.d(t,"r",(function(){return h})),a.d(t,"v",(function(){return y})),a.d(t,"p",(function(){return b})),a.d(t,"u",(function(){return v})),a.d(t,"m",(function(){return g})),a.d(t,"o",(function(){return _})),a.d(t,"a",(function(){return S})),a.d(t,"j",(function(){return C})),a.d(t,"b",(function(){return w})),a.d(t,"t",(function(){return T})),a.d(t,"l",(function(){return k})),a.d(t,"z",(function(){return x})),a.d(t,"y",(function(){return I})),a.d(t,"n",(function(){return O})),a.d(t,"s",(function(){return L})),a.d(t,"A",(function(){return F})),a.d(t,"x",(function(){return P})),a.d(t,"e",(function(){return D})),a.d(t,"B",(function(){return j})),a.d(t,"C",(function(){return N})),a.d(t,"k",(function(){return $}));var s=a("b775"),i=a("4328"),n=a.n(i),r="/api-web";function o(e){return Object(s["a"])({url:r+"/studentManage/queryStudentList",method:"get",params:e})}function l(e){return Object(s["a"])({url:r+"/studentManage/findStudentVipGroupClass",method:"get",params:e})}function c(e){return Object(s["a"])({url:r+"/studentManage/findStudentBaseInfo",method:"get",params:e})}function u(e){return Object(s["a"])({url:r+"/studentManage/findStudentMusicGroups",method:"get",params:e})}function d(e){return Object(s["a"])({url:r+"/studentManage/findStudentCourses",method:"get",params:e})}function p(e){return Object(s["a"])({url:r+"/studentManage/findStudentVipGroups",method:"get",params:e})}function m(e){return Object(s["a"])({url:r+"/studentManage/findStudentAttendances",method:"get",params:e})}function f(e){return Object(s["a"])({url:r+"/studentWithdraw/queryPage",method:"get",params:e})}function h(e){return Object(s["a"])({url:r+"/studentManage/queryStudentPayment",method:"get",params:e})}function y(e){return Object(s["a"])({url:r+"/order/queryPage",method:"get",params:e})}function b(e){return Object(s["a"])({url:r+"/studentManage/getUserCashAccountBaseInfo",method:"get",params:e})}function v(e){return Object(s["a"])({url:r+"/studentRegistration/batchUpdateSubject",method:"post",data:n.a.stringify(e)})}function g(e){return Object(s["a"])({url:r+"/studentRegistration/queryFeeDetail",method:"get",params:e})}function _(e){return Object(s["a"])({url:r+"/studentManage/queryMusicGroupStudentsSign",method:"get",params:e})}function S(e){return Object(s["a"])({url:r+"/studentRegistration/insertStudent",method:"POST",data:e})}function C(e){return Object(s["a"])({url:r+"/classGroupStudent/findAllStudent",method:"POST",data:n.a.stringify(e)})}function w(e){return Object(s["a"])({url:r+"/classGroupStudent/addStudents",method:"POST",data:n.a.stringify(e)})}function T(e){return Object(s["a"])({url:r+"/classGroupStudent/del",method:"POST",data:n.a.stringify(e)})}function k(e){return Object(s["a"])({url:r+"/studentManage/queryStudentClassGroup",method:"get",params:e})}function x(e){return Object(s["a"])({url:r+"/userCashAccount/updateCourseBalance",method:"post",data:n.a.stringify(e)})}function I(e){return Object(s["a"])({url:r+"/userCashAccount/updateBalance",method:"post",data:n.a.stringify(e)})}function O(e){return Object(s["a"])({url:r+"/studentManage/queryUserByPhone",method:"get",params:e})}function L(e){return Object(s["a"])({url:r+"/studentManage/register",method:"post",data:n.a.stringify(e)})}function F(e){return Object(s["a"])({url:r+"/studentManage/studentUpdate",method:"post",data:n.a.stringify(e)})}function P(e){return Object(s["a"])({url:r+"/userCashAccount/transferCourseBalanceToBalance",method:"post",data:n.a.stringify(e)})}function D(e){return Object(s["a"])({url:r+"/coursesGroupController/findStudentCourseGroupsWithWeb",method:"get",params:e})}function j(e){return Object(s["a"])({url:r+"/userCashAccountDetail/queryPage",method:"get",params:e})}function N(e){return Object(s["a"])({url:r+"/userCoursesAccount/queryPage",method:"get",params:e})}function $(e){return Object(s["a"])({url:r+"/sysUserContracts/getLatest",method:"get",params:e})}},"526c":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:e.teamName},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/resetTeaming/teamBaseInfo")?a("el-tab-pane",{attrs:{label:"基本信息",name:"1"}},[1==e.activeIndex?a("teamBaseInfo",{attrs:{baseInfo:e.baseInfo},on:{getBaseInfo:e.getBaseInfo,getName:e.getName}}):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetSound")?a("el-tab-pane",{attrs:{label:"声部设置",name:"2"}},[2==e.activeIndex?a("resetSound"):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetPayList")?a("el-tab-pane",{attrs:{label:"学员缴费设置",name:"3"}},[3==e.activeIndex?a("resetPayList",{attrs:{baseInfo:e.baseInfo},on:{changeActive:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetPayList")?a("el-tab-pane",{attrs:{label:"学校缴费设置",name:"6"}},[6==e.activeIndex?a("resetPayListSchool",{attrs:{baseInfo:e.baseInfo},on:{changeActive:e.handleClick}}):e._e()],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetClass")?a("el-tab-pane",{attrs:{label:"班级调整",name:"5"}},[5==e.activeIndex?a("resetClass"):e._e()],1):e._e()],1)],1)])},i=[],n=(a("7f7f"),a("386d"),a("80b0")),r=a("f10d"),o=a("8f2a"),l=a("070d"),c=a("f610"),u=a("b3d0"),d=a("ec8a"),p={components:{teamBaseInfo:n["a"],resetSound:r["a"],resetClass:o["default"],resetPayList:l["a"],resetPayListSchool:c["a"],studentPayBase:u["default"]},name:"resetTeaming",data:function(){return{activeIndex:"1",teamid:"",baseInfo:null,Fsearch:null,Frules:null,name:null,teamName:"乐团修改"}},created:function(){},beforeDestroy:function(){sessionStorage.setItem("setStep",0),sessionStorage.setItem("resetCode",1)},mounted:function(){var e={};e.name=this.activeIndex,this.handleClick(e),this.__init()},activated:function(){var e={};e.name=this.activeIndex,this.handleClick(e),this.__init()},methods:{__init:function(){this.activeIndex=sessionStorage.getItem("resetCode")||"1",this.teamid=this.$route.query.id,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules)},onCancel:function(){this.$router.push({path:"/business/teamDetail",query:{search:this.Fsearch,rules:this.Frules}})},getBaseInfo:function(e){this.baseInfo=e,this.teamName=e.musicGroup.name},handleClick:function(e){this.activeIndex=e.name},permission:function(e){return Object(d["a"])(e)},getName:function(e){}}},m=p,f=a("2877"),h=Object(f["a"])(m,s,i,!1,null,"0dbb4714",null);t["default"]=h.exports},"556d":function(e,t,a){"use strict";a("b596")},"55f7":function(e,t,a){},5900:function(e,t,a){"use strict";a("d102")},6193:function(e,t,a){"use strict";a("aa6f")},"62f6":function(e,t,a){"use strict";a("9112")},6979:function(e,t,a){},"73b3":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("el-form",{attrs:{inline:!0,model:e.topForm}},[a("el-form-item",{attrs:{label:"乐团编号"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.num,callback:function(t){e.$set(e.topForm,"num","string"===typeof t?t.trim():t)},expression:"topForm.num"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"教务老师"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.teacher,callback:function(t){e.$set(e.topForm,"teacher","string"===typeof t?t.trim():t)},expression:"topForm.teacher"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分部"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.section,callback:function(t){e.$set(e.topForm,"section","string"===typeof t?t.trim():t)},expression:"topForm.section"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.boss,callback:function(t){e.$set(e.topForm,"boss","string"===typeof t?t.trim():t)},expression:"topForm.boss"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.cooperate,callback:function(t){e.$set(e.topForm,"cooperate","string"===typeof t?t.trim():t)},expression:"topForm.cooperate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"上课地点"}},[a("el-input",{staticStyle:{width:"370px"},attrs:{disabled:""},model:{value:e.topForm.add,callback:function(t){e.$set(e.topForm,"add","string"===typeof t?t.trim():t)},expression:"topForm.add"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.type,callback:function(t){e.$set(e.topForm,"type","string"===typeof t?t.trim():t)},expression:"topForm.type"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:"",disabled:""},model:{value:e.topForm.paymentPattern,callback:function(t){e.$set(e.topForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"topForm.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:"缴费有效期开始",prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:"","value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},model:{value:e.topForm.paymentValidStartDate,callback:function(t){e.$set(e.topForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"topForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:"","value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.topForm.paymentValidEndDate,callback:function(t){e.$set(e.topForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"topForm.paymentValidEndDate"}})],1)],1),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)])])},i=[],n=(a("7f7f"),a("1cc7")),r=a("bc3a"),o=a.n(r),l=a("4328"),c=a.n(l),u=a("5f87"),d=a("3908"),p={name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:""},name:"",processList:[],lookType:""}},created:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,this.lookType=this.$route.query.type,Object(n["ab"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.topForm.num=t.data.id,e.topForm.teacher=t.data.educationalTeacherName,e.topForm.boss=t.data.directorUserName,e.topForm.paymentPattern=t.data.paymentPattern,e.topForm.paymentValidStartDate=t.data.paymentValidStartDate,e.topForm.paymentValidEndDate=t.data.paymentValidEndDate,e.topForm.cooperate=t.data.schoolName,e.topForm.type=t.data.chargeTypeName,e.topForm.section=t.data.organName,e.topForm.add=t.data.address,e.$emit("getname",t.data.name))}))},musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},s={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),o()(s).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(a).text();s.then((function(t){if(-1!=t.indexOf("code")){var s=JSON.parse(t);e.$message.error(s.msg)}else{var i=URL.createObjectURL(a),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),l=e.$route.query.id+"-"+o+"订货清单";n.href=i,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",a={musicGroupId:this.$route.query.id},s={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].startLoading(),o()(s).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),s=new Response(a).text();s.then((function(t){if(-1!=t.indexOf("code")){var s=JSON.parse(t);e.$message.error(s.msg)}else{var i=URL.createObjectURL(a),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),l=e.$route.query.id+"-"+o+"分发清单";n.href=i,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),d["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),d["a"].endLoading()}))})).catch((function(){}))}}},m=p,f=(a("7558"),a("2877")),h=Object(f["a"])(m,s,i,!1,null,null,null);t["a"]=h.exports},7558:function(e,t,a){"use strict";a("cfc6")},"7a3c":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"缴费金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:2,min:0,disabled:(e.isUserType||e.isCommon&&e.isUserType)&&e.isDisabled,placeholder:"请输入缴费金额"},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.form.paymentPattern,callback:function(t){e.$set(e.form,"paymentPattern",t)},expression:"form.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentValid,callback:function(t){e.$set(e.form,"paymentValid",t)},expression:"form.paymentValid"}})],1)],1)},i=[],n=a("267e"),r=a("ed08"),o={props:["form","className","isUserType","isDisabled","isCommon"],data:function(){return{paymentPatternTypeOptions:Object(r["b"])(n["m"])}}},l=o,c=(a("ea6e"),a("2877")),u=Object(c["a"])(l,s,i,!1,null,"05b36fda",null);t["a"]=u.exports},"7eeb":function(e,t,a){"use strict";a("b106")},"80b0":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),a("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]}},[a("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[a("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.orgianList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教务老师",prop:"teacher",rules:[{required:!0,message:"教务老师不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.orgianList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(e,t){return a("el-option",{key:t,attrs:{label:e.userName,value:e.userId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),e.basdisabled?a("el-form-item",{attrs:{label:"招生年级"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.startClassString,placement:"top-start"}},[a("div",{staticStyle:{width:"180px",overflow:"hidden"}},[e._v("\n "+e._s(e.startClassString)+"\n ")])])],1):a("el-form-item",{attrs:{label:"招生年级",prop:"startClass",rules:[{required:!0,message:"请选择招生年纪"}]}},[a("el-select",{attrs:{placeholder:"起始年级",clearable:"",multiple:"","collapse-tags":"",filterable:""},model:{value:e.topFrom.startClass,callback:function(t){e.$set(e.topFrom,"startClass","string"===typeof t?t.trim():t)},expression:"topFrom.startClass"}},e._l(e.classStatus,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"默认课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"3.0课酬",value:"GRADIENT_SALARY"}}),e._v(" "),a("el-option",{attrs:{label:"课堂课酬",value:"CLASSROOM_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.orgianList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"isClass"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.isClass,callback:function(t){e.$set(e.topFrom,"isClass","string"===typeof t?t.trim():t)},expression:"topFrom.isClass"}},[e._v("课堂课乐团")])],1),e._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("修改【收费类型】会重置乐团声部与缴费信息")])]):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},["resetTeam"==e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/update",parent:"/resetTeaming/teamBaseInfo"},expression:"{\n child: 'musicGroup/update',\n parent: '/resetTeaming/teamBaseInfo',\n }"}],staticClass:"nextBtn",on:{click:e.resetSubmit}},[e._v("\n 修改\n ")]):e._e(),e._v(" "),"newTeam"==e.teamStatus||"teamDraft"==e.teamStatus||"teamAudit"==e.teamStatus||"feeAudit"==e.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext(1)}}},[e._v("\n 下一步\n ")]):e._e(),e._v(" "),"teamList"==e.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext(2)}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},i=[],n=(a("28a5"),a("7f7f"),a("1cc7")),r=a("a488"),o=a("5a0c"),l=a.n(o),c=a("99b4"),u=a("92e3"),d=(a("09f4"),a("bc3a"),a("4360"),a("6612"),a("fa7d"),a("4328"),{name:"teamBaseInfo",props:["getTeamList"],data:function(){return{classStatus:u["e"],organId:null,topFrom:{type:"",section:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null},checkList:{soundInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},allInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},baseInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},holidayInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},networkInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},submit:{ischeck:!1,value:"年度安排个月共xxx课时,课时,原价xxx元,现价xxxx元/月(约 xxxx元/课时 )"}},newStudentList:{baseInfo:{ischeck:!1,value:"",checkBuy:!0,nowValue:"",isNew:1,isStatus:!1}},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],addList:[],payList:{school:{ischeck:!1,value:"",price:"",chiose:""},company:{ischeck:!1,value:"",price:"",chiose:""},student:{ischeck:!0,chiose:"loop"},chioseMonth:[]},activeTeam:[],teamid:"",teamStatus:"",orgianList:[],isInit:!1,technician:[],basdisabled:!1}},created:function(){},activated:function(){this.payList={school:{ischeck:!1,value:"",price:"",chiose:""},company:{ischeck:!1,value:"",price:"",chiose:""},student:{ischeck:!0,chiose:"loop"},chioseMonth:[]},this.init(),this.$forceUpdate()},mounted:function(){this.init(),this.$forceUpdate()},beforeDestroy:function(){},methods:{isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){2===e&&this.$set(this.topFrom,"paymentValidEndDate","")},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e=this;this.isInit=!0,this.teamStatus=this.$route.query.type,console.log(this.teamStatus),this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id?(this.teamid=this.$route.query.id,Object(n["xb"])({musicGroupId:this.teamid}).then((function(t){if(200==t.code){e.$listeners.getBaseInfo&&e.$listeners.getBaseInfo(t.data),e.topFrom.name=t.data.musicGroup.name,e.$emit("getName",e.topFrom.name),e.topFrom.time=t.data.musicGroup.applyExpireDate,e.topFrom.type=t.data.musicGroup.chargeTypeId,e.topFrom.startClass=t.data.musicGroup.enrollClasses.split(","),e.topFrom.paymentPattern=t.data.musicGroup.paymentPattern,e.topFrom.paymentValidStartDate=t.data.musicGroup.paymentValidStartDate,e.topFrom.paymentValidEndDate=t.data.musicGroup.paymentValidEndDate,e.topFrom.section=t.data.musicGroup.organId,e.topFrom.school=t.data.musicGroup.cooperationOrganId,e.topFrom.teacher=t.data.musicGroup.educationalTeacherId,e.topFrom.boss=t.data.musicGroup.teamTeacherId,e.topFrom.address=t.data.musicGroup.schoolId,e.topFrom.salary=t.data.musicGroup.settlementType,e.topFrom.head=t.data.musicGroup.directorUserId?t.data.musicGroup.directorUserId:null,e.topFrom.isClass=t.data.musicGroup.isClassroomLessons,e.topFrom.startTime=t.data.musicGroup.expectStartGroupDate,e.topFrom.ownershipType=t.data.musicGroup.ownershipType,e.topFrom.repairUserId=t.data.musicGroup.repairUserId?t.data.musicGroup.repairUserId:null,e.topFrom.feeType=t.data.musicGroup.feeType?t.data.musicGroup.feeType:null,e.checkList;var a=t.data.musicGroup.courseForm?JSON.parse(t.data.musicGroup.courseForm):{};for(var s in e.checkList)a[s]&&!a[s].isNew?e.checkList[s]=a[s]:a[s]&&a[s].isNew&&(e.newStudentList[s]=a[s],e.newStudentList[s].checkBuy=!0);for(var i in t.data.musicGroupPaymentEntities){var n,o;"学校"==t.data.musicGroupPaymentEntities[i].name&&(e.payList.school.ischeck=!0,e.payList.school.value=t.data.musicGroupPaymentEntities[i].memo,e.payList.school.price=t.data.musicGroupPaymentEntities[i].amount,e.payList.school.chiose=t.data.musicGroupPaymentEntities[i].paymentMethod),"公司"==t.data.musicGroupPaymentEntities[i].name&&(e.payList.company.ischeck=!0,e.payList.company.value=t.data.musicGroupPaymentEntities[i].memo,e.payList.company.price=t.data.musicGroupPaymentEntities[i].amount,e.payList.company.chiose=t.data.musicGroupPaymentEntities[i].paymentMethod),(null===(n=t.data)||void 0===n||null===(o=n.months)||void 0===o?void 0:o.length)>0?(e.payList.student.ischeck=!0,e.payList.student.chiose="loop",e.chioseMonth=t.data.months):(e.payList.student.ischeck=!0,e.payList.student.chiose="ONE_OFF")}e.payList.chioseMonth=t.data.months,t.data.musicGroup.organId&&(Object(c["A"])({organId:t.data.musicGroup.organId,rows:1e3}).then((function(t){200==t.code&&(e.orgianList=t.data.rows)})),Object(c["z"])({organId:t.data.musicGroup.organId}).then((function(t){200==t.code&&(e.cooperationList=t.data)})),Object(c["o"])({organId:t.data.musicGroup.organId}).then((function(t){200==t.code&&(e.addList=t.data,e.isInit=!1)})),Object(r["a"])().then((function(t){200==t.code&&(e.technician=t.data)}))),e.$emit("getBaseInfo",t.data)}}))):(this.topFrom={type:"",section:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()),Object(n["U"])().then((function(t){200==t.code&&(e.sectionList=t.data)})),Object(n["Db"])({rows:1e3}).then((function(t){200==t.code&&(e.typeList=t.data.rows)})),sessionStorage.setItem("resetCode","1")},changeSection:function(e){var t=this;this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",Object(c["A"])({organId:e,rows:1e3}).then((function(e){200==e.code&&(t.orgianList=e.data.rows)})),Object(c["z"])({organId:e}).then((function(e){200==e.code&&(t.cooperationList=e.data)})),Object(c["o"])({organId:e}).then((function(e){200==e.code&&(t.addList=e.data)})),Object(r["a"])().then((function(e){200==e.code&&(t.technician=e.data)}))},chioseSchool:function(e){},gotoNext:function(e){var t=this,a=[];for(var s in this.checkList)this.checkList[s]&&"submit"!=s&&a.push(this.checkList[s].ischeck);var i=!1;a.forEach((function(e){i=i||e})),this.$refs["topinfo"].validate((function(a,s){if(a){var i=[];for(var n in t.checkList)t.checkList[n].ischeck&&!t.checkList[n].value?i.push(!1):i.push(!0);for(var r in t.newStudentList)t.newStudentList[r].ischeck&&!t.newStudentList[r].value||t.newStudentList[r].ischeck&&!t.newStudentList[r].nowValue?i.push(!1):i.push(!0);var o=i.every((function(e){return 1==e}));if(!o)return void t.$message.error("课程价格不能为空");t.$store.dispatch("topinfo",t.topFrom),console.log(t.teamStatus),"teamDraft"==t.teamStatus?t.resetSubmit():t.$emit("chiosetab",e)}else t.$message.error("请填写建团必要参数")}))},resetSubmit:function(){var e=this,t=[];for(var a in this.checkList)this.checkList[a]&&"submit"!=a&&t.push(this.checkList[a].ischeck);this.$refs["topinfo"].validate((function(t,a){if(t){var s=[];for(var i in e.checkList)e.checkList[i].ischeck&&!e.checkList[i].value?s.push(!1):s.push(!0);for(var r in e.newStudentList)e.newStudentList[r].ischeck&&!e.newStudentList[r].value||e.newStudentList[r].ischeck&&!e.newStudentList[r].nowValue?s.push(!1):s.push(!0);var o=s.every((function(e){return 1==e}));if(!o)return void e.$message.error("课程价格不能为空");var c=null;switch(e.teamStatus){case"resetTeam":c="PROGRESS";break;case"newTeam":c=null;break;case"teamList":c=null;break;case"teamDraft":c="DRAFT";break}var u={},d={};for(var p in e.checkList)e.checkList[p].ischeck&&(d[p]=e.checkList[p]);for(var m in e.newStudentList)e.newStudentList[m].ischeck&&(d[m]=e.newStudentList[m]);"loop"==e.payList.student.chiose?u.months=e.payList.chioseMonth:u.months=[],u.musicGroup={settlementType:e.topFrom.salary,applyExpireDate:l()(e.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:e.topFrom.type,cooperationOrganId:e.topFrom.school,teamTeacherId:e.topFrom.boss,educationalTeacherId:e.topFrom.teacher,enrollClasses:e.topFrom.startClass.join(","),name:e.topFrom.name,paymentPattern:e.topFrom.paymentPattern,paymentValidStartDate:e.topFrom.paymentValidStartDate?l()(e.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):e.topFrom.paymentValidStartDate,paymentValidEndDate:e.topFrom.paymentValidEndDate?l()(e.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):e.topFrom.paymentValidEndDate,organId:e.topFrom.section,schoolId:e.topFrom.address,courseForm:JSON.stringify(d),id:e.teamid,directorUserId:e.topFrom.head,isClassroomLessons:e.topFrom.isClass,status:c,expectStartGroupDate:e.topFrom.startTime,ownershipType:e.topFrom.ownershipType,repairUserId:e.topFrom.repairUserId||null,feeType:e.topFrom.feeType},u.musicGroupPaymentEntities=[],e.payList.school.ischeck&&u.musicGroupPaymentEntities.push({amount:e.payList.school.price,memo:e.payList.school.value,paymentMethod:e.payList.school.chiose,name:"学校"}),e.payList.company.ischeck&&u.musicGroupPaymentEntities.push({amount:e.payList.company.price,memo:e.payList.company.value,paymentMethod:e.payList.company.chiose,name:"公司"}),e.payList.student.ischeck&&u.musicGroupPaymentEntities.push({paymentMethod:e.payList.student.chiose,name:"学生"}),Object(n["dc"])(u).then((function(t){200==t.code&&("teamDraft"==e.teamStatus?(e.$message.success("保存成功"),e.$emit("chiosetab",1)):e.$message.success("修改乐团成功"),e.init())}))}else e.$message.error("请填写必要参数")}))},changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")}},watch:{newStudentList:{handler:function(e){e.baseInfo.ischeck&&(this.checkList.baseInfo.ischeck=!1)},deep:!0},checkList:{handler:function(e){e.baseInfo.ischeck&&(this.newStudentList.baseInfo.ischeck=!1)},deep:!0}}}),p=d,m=(a("6193"),a("e491"),a("2877")),f=Object(m["a"])(p,s,i,!1,null,"60702ee6",null);t["a"]=f.exports},"820d":function(e,t,a){},"86e8":function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},i=[],n={},r=n,o=a("2877"),l=Object(o["a"])(r,s,i,!1,null,"21abf8f1",null);t["a"]=l.exports},"8f2a":function(e,t,a){"use strict";a.r(t);var s,i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.topForm}},[a("el-form-item",{attrs:{label:"班级类型"}},[a("el-select",{attrs:{clearable:"",filterable:""},on:{change:e.changeMixClass},model:{value:e.topForm.classType,callback:function(t){e.$set(e.topForm,"classType","string"===typeof t?t.trim():t)},expression:"topForm.classType"}},e._l(e.classTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleTable",attrs:{data:e.activeSingleList,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.chkstu,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"type",label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("classType")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentNum",label:"班级人数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.studentNum+"/"+t.row.expectStudentNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"",label:"主教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?a("div",e._l(t.row.classGroupTeacherMapperList,(function(t,s){return"BISHOP"==t.teacherRole?a("p",{key:s},[e._v(e._s(t.userName))]):e._e()})),0):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"助教老师"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.classGroupTeacherMapperList?a("div",e._l(t.row.classGroupTeacherMapperList,(function(t,s){return"TEACHING"==t.teacherRole?a("p",{key:s},[e._v(e._s(t.userName))]):e._e()})),0):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"已上课时"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.currentClassTimes))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"总课数"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.totalClassTimes))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"220px",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["MUSIC_NETWORK"!=t.row.type?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"classGroupStudent/updateClassGroupStudents",expression:"'classGroupStudent/updateClassGroupStudents'"}],attrs:{type:"text"},on:{click:function(a){return e.resetClass(t.row)}}},[e._v("学员调整")]):e._e(),e._v(" "),e.permission("classGroup/classGroupUpdate")||e.permission("classGroup/revisionClassGroup")||e.permission("classGroup/revisionAddClassGroup")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.classAdjustment(t.row)}}},[e._v("班级调整")]):e._e(),e._v(" "),a("el-popover",{ref:"popover-"+t.$index,attrs:{placement:"top",width:"200"}},[a("p",[e._v("确定删除?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t._self.$refs["popover-"+t.$index].doClose()}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.removeClass(t)}}},[e._v("确定")])],1),e._v(" "),"0"==t.row.studentNum||"0"==t.row.totalClassTimes?a("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("删除班级")]):e._e()],1)],1)]}}])})],1),e._v(" "),a("div",{staticClass:"floor"},[a("div",{staticClass:"add",on:{click:e.temporary}},[e._v("新建临时班")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("NORMAL")}}},[e._v("新建单技班")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MIX")}}},[e._v("新建合奏班")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){return e.addNewClass("MUSIC_NETWORK")}}},[e._v("新建乐团网管课")]),e._v(" "),a("div",{staticClass:"add",on:{click:function(t){e.newClassVisible=!0}}},[e._v("基础技能班")])])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",width:"750px",visible:e.studentVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentVisible=t}}},[a("selectStudent",{attrs:{activeListStudent:e.activeListStudent,studentList:e.studentList,soundList:e.soundList,classGroupId:e.activeClass,isOnlyChangeUser:e.isOnlyChangeUser,activeType:e.activeType},on:{changeActiveChioseSound:e.changeActiveChioseSound,searchStudent:e.searchStudent,submited:e.studentSubmited,close:function(t){e.studentVisible=!1}}})],1),e._v(" "),a("el-dialog",{attrs:{title:"班级设置",width:"950px",visible:e.infoVisible,"modal-append-to-body":!1,"destroy-on-close":""},on:{"update:visible":function(t){e.infoVisible=t}}},[a("classroomSetting",{attrs:{classType:e.classType,teacherList:e.teacherList,musicGroupId:e.teamid,activeType:e.activeType,courseTypeList:e.courseTypeList,cooperationList:e.cooperationList,detail:e.infoDetail,studentSubmitedData:e.studentSubmitedData},on:{close:function(t){e.infoVisible=!1},submited:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{title:"新增合奏班",width:"700px",visible:e.MixVisible,"modal-append-to-body":!1},on:{"update:visible":function(t){e.MixVisible=t}}},[a("div",{staticClass:"studentMask"},[a("div",{staticClass:"left"},[a("div",{staticClass:"wrap"},[a("el-input",{attrs:{placeholder:"请输入合奏班名称"},model:{value:e.className,callback:function(t){e.className="string"===typeof t?t.trim():t},expression:"className"}})],1),e._v(" "),a("div",{staticClass:"chioseStudentList"},[a("h4",{staticStyle:{"padding-left":"10px"}},[e._v("当前已选学生")]),e._v(" "),e._l(e.activeListStudent,(function(t,s){return a("div",{key:s,staticClass:"studentItem"},[e._v("\n "+e._s(t.name)+"\n "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeSiginforMix(t)}}},[e._v("删除班级")])],1)}))],2)]),e._v(" "),a("div",{staticClass:"right"},[a("div",{staticClass:"tableList"},[a("el-table",{ref:"mixList",staticStyle:{width:"100%","margin-top":"10px"},attrs:{"tooltip-effect":"dark",data:e.singleList},on:{"selection-change":e.SelectionMix}},[a("el-table-column",{attrs:{type:"selection",align:"center",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"gender",align:"center",width:"100",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("sex")(t.row.gender)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",width:"120",align:"center",label:"学员声部"}})],1)],1)])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.studentVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNewClass?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.addSomeStudent}},[e._v("确 定")]),e._v(" "),e.isNewClass?a("el-button",{attrs:{type:"primary"},on:{click:e.setInfoMsg}},[e._v("确 定")]):e._e()],1)]),e._v(" "),a("el-dialog",{attrs:{visible:e.newClassVisible,width:"700px",title:"新增班级"},on:{"update:visible":function(t){e.newClassVisible=t}}},[a("el-form",{ref:"newClassForm",staticClass:"newClassForm",attrs:{model:e.newClassForm,inline:!0,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"班级名称",rules:[{required:!0,message:"请输入班级姓名",trigger:"blur"}],prop:"className"}},[a("el-input",{staticStyle:{width:"180px"},model:{value:e.newClassForm.className,callback:function(t){e.$set(e.newClassForm,"className",t)},expression:"newClassForm.className"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"班级类型",rules:[{required:!0,message:"请输入班级人数",trigger:"blur"}],prop:"type"}},[a("el-select",{attrs:{clearable:""},on:{change:e.chioseHightype},model:{value:e.newClassForm.type,callback:function(t){e.$set(e.newClassForm,"type","string"===typeof t?t.trim():t)},expression:"newClassForm.type"}},e._l(e.highTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"主教老师",prop:"bishop",rules:[{required:!0,message:"请选择主教老师",trigger:"blur"}]}},[a("el-select",{attrs:{placeholder:"请选择主教老师",clearable:"",filterable:""},model:{value:e.newClassForm.bishop,callback:function(t){e.$set(e.newClassForm,"bishop",t)},expression:"newClassForm.bishop"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"预计招生数",prop:"expectStudentNum",type:"number",rules:[{required:!0,message:"请输入预计招生数",trigger:"blur"}]},nativeOn:{mousewheel:function(e){e.preventDefault()}}},[a("el-input",{staticStyle:{width:"180px"},attrs:{disabled:"HIGH_ONLINE"==e.newClassForm.type},model:{value:e.newClassForm.expectStudentNum,callback:function(t){e.$set(e.newClassForm,"expectStudentNum",t)},expression:"newClassForm.expectStudentNum"}})],1),e._v(" "),"HIGH_ONLINE"!=e.newClassForm.type?a("el-form-item",{attrs:{label:"助教老师",prop:"teaching"}},[a("el-select",{attrs:{placeholder:"请选择助教老师",clearable:"",multiple:"",filterable:""},on:{change:e.setAssistant1},model:{value:e.newClassForm.teaching,callback:function(t){e.$set(e.newClassForm,"teaching",t)},expression:"newClassForm.teaching"}},e._l(e.teacherList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH"==e.newClassForm.type||"NORMAL"==e.newClassForm.type?a("el-form-item",{key:"HIGH",attrs:{label:"声部",prop:"subjectIdList",rules:[{required:!0,message:"请选择声部",trigger:"blur"}]}},[a("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.newClassForm.subjectIdList,callback:function(t){e.$set(e.newClassForm,"subjectIdList",t)},expression:"newClassForm.subjectIdList"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?a("el-form-item",{attrs:{label:"可报名声部",prop:"memo",rules:[{required:!0,message:"请选择可报名声部",trigger:"blur"}]}},[a("el-select",{attrs:{multiple:"",clearable:""},model:{value:e.newClassForm.memo,callback:function(t){e.$set(e.newClassForm,"memo","string"===typeof t?t.trim():t)},expression:"newClassForm.memo"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),"HIGH_ONLINE"==e.newClassForm.type?a("el-form-item",{key:"HIGH_ONLINE",staticClass:"higheSelect",attrs:{label:"声部",prop:"subjectId",rules:[{required:!0,message:"请选择线上声部",trigger:"blur"}]}},[a("el-select",{attrs:{clearable:""},model:{value:e.newClassForm.subjectId,callback:function(t){e.$set(e.newClassForm,"subjectId",t)},expression:"newClassForm.subjectId"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.newClassVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.newClassHight}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"学员列表",visible:e.studentListModalVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.studentListModalVisible=t}}},[a("viewStudentList",{attrs:{list:e.studentListModal},on:{close:function(t){e.studentListModalVisible=!1}}})],1)],1)},n=[],r=(a("ac6a"),a("96cf"),a("1da1")),o=(a("7f7f"),a("1cc7")),l=a("5137"),c=(a("99b4"),a("c466")),u=a("5a0c"),d=a.n(u),p=(a("bc3a"),a("92e3")),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"},"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"性别"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"联系电话"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",width:"120",label:"专业"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("确 定")])],1)],1)},f=[],h={props:["list"]},y=h,b=a("2877"),v=Object(b["a"])(y,m,f,!1,null,null,null),g=v.exports,_=a("f927"),S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,inline:"","label-suffix":": ","label-width":"130px"}},[a("el-form-item",{attrs:{label:"主教老师",prop:"coreTeacher","label-width":"88px",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)},C=[],w=a("b85c"),T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form-item",{attrs:{label:"排课起始时间","label-width":"112px",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.surplustime<e.classTimeListByType[e.type]},on:{click:e.create}},[e._v("添加循环")])],1)},k=[],x={},I=Object(w["a"])(p["f"]);try{for(I.s();!(s=I.n()).done;){var O=s.value;x[O.value]=O.label}}catch(W){I.e(W)}finally{I.f()}var L,F={props:["form","type","surplustime"],data:function(){return{classTimeListByType:x}},computed:{pickerOptions:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}},weekDateList:function(){return[{value:"1",label:"星期一"},{value:"2",label:"星期二"},{value:"3",label:"星期三"},{value:"4",label:"星期四"},{value:"5",label:"星期五"},{value:"6",label:"星期六"},{value:"7",label:"星期日"}]}},methods:{create:function(){this.form.cycle.push({time:x[this.type]})},remove:function(e){this.form.cycle.splice(e,1)},startTimeChange:function(e,t){if(e){var a=d()(new Date).format("YYYY-MM-DD");this.$set(t,"endClassTime",Object(c["a"])(a,e,t.time))}else this.$set(t,"endClassTime","")}}},P=F,D=(a("fa4f"),Object(b["a"])(P,T,k,!1,null,"6117374a",null)),j=D.exports,N=a("2ef0"),$={},G=Object(w["a"])(p["f"]);try{for(G.s();!(L=G.n()).done;){var E=L.value;$[E.value]=E.label}}catch(W){G.e(W)}finally{G.f()}var M=function(e,t){var a=[];if(e&&a.push({userId:e,teacherRole:"BISHOP"}),t){var s,i=Object(w["a"])(t);try{for(i.s();!(s=i.n()).done;){var n=s.value;a.push({userId:n,teacherRole:"TEACHING"})}}catch(W){i.e(W)}finally{i.f()}}return a},V=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,s=0,i=Object(w["a"])(t);try{for(i.s();!(e=i.n()).done;){var n=e.value;s+=parseFloat(parseFloat(n[a]||0).toFixed(2)||0)}}catch(W){i.e(W)}finally{i.f()}return s},R={props:["teacherList","activeType","courseTypeList","cooperationList","musicGroupId","detail","studentSubmitedData","classType"],components:{courseItem:j},data:function(){return{form:{coreTeacher:"",assistant:"",classs:{}},collapses:[0],courseTimes:{},courseTypeListByName:{},classTimeListByType:$,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-V(a.cycle,"time")}return e},isEmpty:function(){return Object(N["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={},a=Object(w["a"])(this.courseTypeList);try{for(a.s();!(e=a.n()).done;){var s=e.value;t[s.value]=s.label}}catch(W){a.e(W)}finally{a.f()}this.courseTypeListByName=t},formatClasss:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,a,s,i,n,r,l,c,u,d,p,m,f,h,y,b;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.detail){s="",i=[],n=this.detail.classGroupTeacherMapperList,r=Object(w["a"])(n||[]);try{for(r.s();!(l=r.n()).done;)c=l.value,"BISHOP"===c.teacherRole&&(s=String(c.userId)),"TEACHING"===c.teacherRole&&i.push(c.userId)}catch(W){r.e(W)}finally{r.f()}this.$set(this.form,"coreTeacher",String(s)),this.$set(this.form,"assistant",i)}if(u=this.detail||null===(t=this.studentSubmitedData)||void 0===t?void 0:t.seleched.join(","),d=null===(a=this.detail)||void 0===a?void 0:a.id,u||d){e.next=5;break}return e.abrupt("return");case 5:return e.prev=5,e.next=8,Object(o["Z"])({musicGroupId:this.musicGroupId,studentIds:u,classGroupId:d});case 8:p=e.sent,this.musicCourseSettings=p.data,m={},f=Object(w["a"])(this.courseTypeList);try{for(f.s();!(h=f.n()).done;)y=h.value,b=y.value,p.data[b]&&(m[b]={courseTotalMinuties:p.data[b],cycle:[{time:$[b]}]})}catch(W){f.e(W)}finally{f.f()}this.$set(this.form,"classs",m),e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](5),console.log(e.t0);case 19:case"end":return e.stop()}}),e,this,[[5,16]])})));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,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=30;break}for(n in s=[],i=function(t){if(e.form.classs.hasOwnProperty(t)){var a,i,n,r,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===(n=e.detail)||void 0===n?void 0:n.id,musicGroupId:e.musicGroupId,startDate:o.courseTime,classGroupTeacherMapperList:M(e.form.coreTeacher,e.form.assistant),holiday:o.holiday,students:null===(r=e.studentSubmitedData)||void 0===r?void 0:r.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(n);if(t.prev=4,!e.detail){t.next=11;break}return t.next=8,Object(o["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(o["gc"])(s);case 14:e.$message.success("排课成功"),t.next=21;break;case 17:if(2!=e.classType&&3!=e.classType&&4!=e.classType){t.next=21;break}return t.next=20,Object(o["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}}},A=R,U=(a("e6d9"),Object(b["a"])(A,S,C,!1,null,"db24fa9e",null)),q=U.exports,H=(a("4328"),a("ec8a")),B={name:"tresetClass",components:{viewStudentList:g,selectStudent:_["a"],classroomSetting:q},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:p["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:{permission:function(e){return Object(H["a"])(e)},init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["xb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.organId=t.data.musicGroup.organId,Object(o["ub"])({organId:e.organId}).then((function(t){200==t.code&&(e.cooperationList=t.data,e.teacherList=t.data)})))})),Object(o["J"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.maxClassList=t.data)})),this.changeMixClass(),Object(o["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(o["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){var t={NORMAL:2,MUSIC_NETWORK:4};this.isOnlyChangeUser=!1,this.classType=t[e]||3,this.setType(e),this.activeType=e,this.activeClass="",this.activeListStudent=[],this.studentList=[],this.isNewClass=!0,this.studentVisible=!0,this.isSearch=!1,this.className="",this.isTemporary=!1,this.activeChioseSound=null,this.getNoClassStudent(e)},searchStudent:function(){var e=this;console.log(this.activeChioseSound),"SPAN"==this.activeType?Object(o["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(o["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(o["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(l["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(o["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(l["t"])({classGroupId:this.activeClass,userId:e.userId}).then((function(a){200==a.code&&(t.$message.success("删除成功"),e.isVisible=!1,t.getList(t.activeMixClass),Object(l["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(o["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(l["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(l["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,n=[{userId:t.teacherForm.coreTeacher,teacherRole:"BISHOP"}];for(var r in t.teacherForm.assistant)n.push({userId:t.teacherForm.assistant[r],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,b={classGroupName:i,classGroupTeacherMapperList:n,musicGroupId:l,startDate:c,courseType:u,students:p,holiday:m,courseTimes:d,courseTimeDtoList:f,type:y,courseAddType:t.teacherForm.isAdd};1==e?Object(o["gc"])(b).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())})):2==e?(b.subjectId=t.teacherForm.sound,b.expectStudentNum=t.teacherForm.expectStudentNum,Object(o["fc"])(b).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.infoVisible=!1,t.studentVisible=!1,t.getList())}))):3==e&&(b.classGroupId=t.activeClass,Object(o["n"])(b).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(o["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(o["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=d()(new Date).format("YYYY-MM-DD");this.$set(t,"endClassTime",Object(c["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:{"newClassForm.type":function(){"HIGH_ONLINE"===this.newClassForm.type&&this.$set(this.newClassForm,"expectStudentNum",5)},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:[]})}}},Y=B,z=(a("556d"),Object(b["a"])(Y,i,n,!1,null,"d3f3e708",null));t["default"]=z.exports},9112:function(e,t,a){},"92e3":function(e,t,a){"use strict";a.d(t,"j",(function(){return i})),a.d(t,"n",(function(){return n})),a.d(t,"h",(function(){return r})),a.d(t,"a",(function(){return o})),a.d(t,"m",(function(){return l})),a.d(t,"x",(function(){return c})),a.d(t,"b",(function(){return u})),a.d(t,"r",(function(){return d})),a.d(t,"k",(function(){return p})),a.d(t,"o",(function(){return m})),a.d(t,"z",(function(){return f})),a.d(t,"i",(function(){return h})),a.d(t,"g",(function(){return y})),a.d(t,"y",(function(){return b})),a.d(t,"u",(function(){return v})),a.d(t,"A",(function(){return g})),a.d(t,"t",(function(){return _})),a.d(t,"v",(function(){return S})),a.d(t,"l",(function(){return C})),a.d(t,"e",(function(){return w})),a.d(t,"w",(function(){return T})),a.d(t,"f",(function(){return k})),a.d(t,"s",(function(){return x})),a.d(t,"d",(function(){return I})),a.d(t,"c",(function(){return O})),a.d(t,"q",(function(){return L})),a.d(t,"p",(function(){return F}));var s=a("267e"),i=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训单技课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}],n=[{label:"单技课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训单技课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"}],r=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"正常签到",value:1},{label:"异常签到",value:0}],l=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],c=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],u=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"},{value:"QUIT_SCHOOL",label:"退学"}],d=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"}],p=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],m=[{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"PAUSE",text:"暂停"},{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"CANCELED",text:"取消"},{value:"FEE_AUDIT",text:"费用审核中"}],f=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],h=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],y=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],b=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],v=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"}],g=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],_=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],S=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],C=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],w=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],T=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],k=[{label:"90",value:"SINGLE"},{label:"90",value:"MIX"},{label:"45",value:"HIGH"},{label:"45",value:"HIGH_ONLINE"},{label:"90",value:"COMPREHENSIVE"},{label:"25",value:"PRACTICE"},{label:"25",value:"MUSIC_NETWORK"},{label:"180",value:"TRAINING_SINGLE"},{label:"180",value:"TRAINING_MIX"},{label:"40",value:"CLASSROOM"}],x=P(s["j"]),I=P(s["b"]),O=P(s["a"]),L=P(s["i"]),F=P(s["h"]);function P(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}},"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,rowDetail:e.rowDetail,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.changeActive}}),e._v(" "),e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}}):e._e():[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[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:!0},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=[],n=a("5530"),r=a("15fd"),o=(a("6762"),a("2fdb"),a("2909")),l=(a("96cf"),a("1da1")),c=a("b85c"),u=a("d349"),d=a("1cc7"),p=a("1672"),m=a("ed08"),f=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&&0!=e.form.musicGroupOrganizationCourseSettingId&&!this.rowDetail?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&&!e.rowDetail?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)},h=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail"],mounted:function(){},watch:{paymentType:function(){console.log(this.paymentType)}}},b=y,v=(a("9fd8"),a("2877")),g=Object(v["a"])(b,f,h,!1,null,"1b1fc70b",null),_=g.exports,S=a("7a3c"),C=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)},T=[],k={data:function(){return{list:[]}},methods:{submit:function(){}}},x=k,I=(a("62f6"),Object(v["a"])(x,w,T,!1,null,"37928f5f",null)),O=I.exports,L=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},F=[],P={props:["form"]},D=P,j=(a("4000"),Object(v["a"])(D,L,F,!1,null,"55ad3016",null)),N=j.exports,$=(a("73b3"),a("7ce2")),G=a.n($),E={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT"},M={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:C["a"],classrooms:O,otherform:N},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:[],organizationCourseUnitPriceSettingsByType:{}}},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={},a=Object(c["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var s=e.value;t[s.id]=s}}catch(i){a.e(i)}finally{a.f()}return t}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.formatCourse(),this.getCharges()},organizationCourseUnitPriceSettings:function(){this.formatCourse()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),("1"===e||"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(p["h"])({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.formatCourse(),this.init()},activated:function(){this.formatCourse(),this.init()},methods:{init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getCharges(),!this.rowDetail){e.next=19;break}for(t in E)E.hasOwnProperty(t)&&(a=E[t],a===this.rowDetail.paymentType&&(this.paymentType=t));if(this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),!this.rowDetail.musicGroupOrganizationCourseSettingId){e.next=9;break}this.form.musicGroupOrganizationCourseSettingId=this.rowDetail.musicGroupOrganizationCourseSettingId,e.next=19;break;case 9:return e.prev=9,e.next=12,Object(d["db"])({id:this.rowDetail.id});case 12:s=e.sent,this.eclass=s.data.musicGroupPaymentCalenderCourseSettings,this.syncAllMoney(),e.next=19;break;case 17:e.prev=17,e.t0=e["catch"](9);case 19:case"end":return e.stop()}}),e,this,[[9,17]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,a,s,i,n=null===(e=this.baseInfo)||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.organId,r=null===(a=this.baseInfo)||void 0===a||null===(s=a.musicGroup)||void 0===s?void 0:s.chargeTypeId,o={},l=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return n&&n==e.organId&&r&&r==e.chargeTypeId})),u=Object(c["a"])(l);try{for(u.s();!(i=u.n()).done;){var d=i.value;o[d.courseType]=d}}catch(p){u.e(p)}finally{u.f()}return this.organizationCourseUnitPriceSettingsByType=o,o},priceChange:function(e,t){var a=Object(o["a"])(this.eclass),s=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=((e.courseTotalMinuties||1)*(s.unitPrice||1)).toFixed(2);e.courseCurrentPrice=i,e.courseOriginalPrice=i,a[t]=e,this.eclass=Object(o["a"])(a),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,a=Object(c["a"])(this.eclass);try{for(a.s();!(e=a.n()).done;){var s=e.value;t+=s.courseCurrentPrice}}catch(d){a.e(d)}finally{a.f()}if(t?this.$set(this.cycle,"paymentAmount",t):this.$set(this.cycle,"paymentAmount",void 0),this.rowDetail){var i,n,r,o,l;this.$set(this.cycle,"paymentPattern",(null===(i=this.rowDetail)||void 0===i?void 0:i.paymentPattern)+"");var u=[null===(n=this.rowDetail)||void 0===n?void 0:n.paymentValidStartDate,null===(r=this.rowDetail)||void 0===r?void 0:r.paymentValidEndDate];this.$set(this.cycle,"paymentDate",[null===(o=this.rowDetail)||void 0===o?void 0:o.startPaymentDate,null===(l=this.rowDetail)||void 0===l?void 0:l.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",u)}return t},getChargeTypeList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["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,n,r,o,l,c,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.organId,l=null===(s=this.baseInfo)||void 0===s||null===(i=s.musicGroup)||void 0===i?void 0:i.chargeTypeId,this.chargeTypeName=null===(n=this.baseInfo)||void 0===n||null===(r=n.musicGroup)||void 0===r?void 0:r.chargeTypeName,e.prev=3,e.next=6,Object(u["w"])({row:9999,chargeTypeId:l,organId:o});case 6:c=e.sent,d=c.data.rows.map((function(e){return e.id})),d.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=c.data.rows,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.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}))},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},submit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,s,i,o,l,u,d,f,h,y,b,v,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],s=Object(c["a"])(t);try{for(o=function(){var e=i.value;e.validate((function(t){t&&a.push(e)}))},s.s();!(i=s.n()).done;)o()}catch(_){s.e(_)}finally{s.f()}if(!(this.eclass.length<1)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(a.length!==t.length){e.next=36;break}if(u=Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])({},this.form),this.other),this.cycle),{},{musicGroupPaymentCalenderCourseSettingsList:this.eclass}),d=u.paymentDate,f=u.paymentValid,h=u.leixing,y=Object(r["a"])(u,["paymentDate","paymentValid","leixing"]),b=Object(n["a"])(Object(n["a"])(Object(n["a"])({},y),{},{isGiveMusicNetwork:!1,paymentType:E[0==this.paymentType?this.paymentType:h],musicGroupId:this.musicGroupId},Object(m["a"])(d,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(f,["paymentValidStartDate","paymentValidEndDate"])),null===(l=this.rowDetail)||void 0===l?void 0:l.id){e.next=23;break}return e.prev=10,e.next=13,Object(p["c"])(b);case 13:v=e.sent,this.$listeners.close(),this.$listeners.submited(v.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:G()(this.$route.query,{type:"feeAudit"})}),e.next=21;break;case 19:e.prev=19,e.t0=e["catch"](10);case 21:e.next=36;break;case 23:return e.prev=23,b.id=this.rowDetail.id,b.paymentType=this.rowDetail.paymentType,e.next=28,Object(p["e"])(b);case 28:g=e.sent,this.$listeners.close(),this.$listeners.submited(g.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:G()(this.$route.query,{type:"feeAudit"})}),e.next=36;break;case 34:e.prev=34,e.t1=e["catch"](23);case 36:case"end":return e.stop()}}),e,this,[[10,19],[23,34]])})));function t(){return e.apply(this,arguments)}return t}()}},V=M,R=(a("f5b8"),Object(v["a"])(V,s,i,!1,null,"101f6201",null));t["a"]=R.exports},9617:function(e,t,a){},"97d6":function(e,t,a){},"99b4":function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"e",(function(){return l})),a.d(t,"d",(function(){return c})),a.d(t,"B",(function(){return u})),a.d(t,"z",(function(){return d})),a.d(t,"H",(function(){return p})),a.d(t,"G",(function(){return m})),a.d(t,"I",(function(){return f})),a.d(t,"A",(function(){return h})),a.d(t,"j",(function(){return y})),a.d(t,"l",(function(){return b})),a.d(t,"p",(function(){return v})),a.d(t,"k",(function(){return g})),a.d(t,"E",(function(){return _})),a.d(t,"n",(function(){return S})),a.d(t,"F",(function(){return C})),a.d(t,"D",(function(){return w})),a.d(t,"f",(function(){return T})),a.d(t,"h",(function(){return k})),a.d(t,"g",(function(){return x})),a.d(t,"i",(function(){return I})),a.d(t,"r",(function(){return O})),a.d(t,"s",(function(){return L})),a.d(t,"u",(function(){return F})),a.d(t,"t",(function(){return P})),a.d(t,"o",(function(){return D})),a.d(t,"x",(function(){return j})),a.d(t,"v",(function(){return N})),a.d(t,"y",(function(){return $})),a.d(t,"w",(function(){return G})),a.d(t,"m",(function(){return E})),a.d(t,"b",(function(){return M})),a.d(t,"a",(function(){return V})),a.d(t,"C",(function(){return R})),a.d(t,"q",(function(){return A})),a.d(t,"J",(function(){return U}));var s=a("b775"),i=a("4328"),n=a.n(i),r="/api-web";function o(e){return Object(s["a"])({url:r+"/cooperationOrgan/add",method:"post",data:n.a.stringify(e)})}function l(e){return Object(s["a"])({url:r+"/cooperationOrgan/update",method:"put",data:n.a.stringify(e)})}function c(e){return Object(s["a"])({url:r+"/cooperationOrgan/del/".concat(e),method:"post"})}function u(e){return Object(s["a"])({url:r+"/cooperationOrgan/queryPage",method:"get",params:e})}function d(e){return Object(s["a"])({url:r+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function p(e){return Object(s["a"])({url:r+"/school/queryPage",method:"get",params:e})}function m(e){return Object(s["a"])({url:r+"/school/add",method:"post",data:n.a.stringify(e)})}function f(e){return Object(s["a"])({url:r+"/school/update",method:"post",data:n.a.stringify(e)})}function h(e){return Object(s["a"])({url:r+"/employee/queryEmployByOrganId",method:"get",params:e})}function y(e){return Object(s["a"])({url:r+"/employee/add",method:"post",data:e})}function b(e){return Object(s["a"])({url:r+"/employee/update",method:"post",data:e})}function v(e){return Object(s["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function g(e){return Object(s["a"])({url:r+"/employee/employeeOperate",method:"post",data:n.a.stringify(e)})}function _(e){return Object(s["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function S(e){return Object(s["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function C(e){return Object(s["a"])({url:"/api-auth/role/update",method:"post",data:e})}function w(e){return Object(s["a"])({url:"/api-auth/role/add",method:"post",data:e})}function T(e){return Object(s["a"])({url:r+"/courseScheduleRewards/queryPage",method:"get",params:e})}function k(e){return Object(s["a"])({url:r+"/courseScheduleRewards/query",method:"get",params:e})}function x(e){return Object(s["a"])({url:r+"/courseScheduleRewards/add",method:"post",data:n.a.stringify(e)})}function I(e){return Object(s["a"])({url:r+"/courseScheduleRewards/update",method:"post",data:n.a.stringify(e)})}function O(e){return Object(s["a"])({url:r+"/hotWordLabelManage/queryPage",method:"get",params:e})}function L(e){return Object(s["a"])({url:r+"/hotWordLabelManage/add",method:"post",data:n.a.stringify(e)})}function F(e){return Object(s["a"])({url:r+"/hotWordLabelManage/update",method:"post",data:n.a.stringify(e)})}function P(e){return Object(s["a"])({url:r+"/hotWordLabelManage/del/".concat(e),method:"post"})}function D(e){return Object(s["a"])({url:r+"/school/queryByOrganId",method:"get",params:e})}function j(e){return Object(s["a"])({url:r+"/paymentConfig/queryPage",method:"get",params:e})}function N(e){return Object(s["a"])({url:r+"/paymentConfig/add",method:"post",data:n.a.stringify(e)})}function $(e){return Object(s["a"])({url:r+"/paymentConfig/update",method:"post",data:n.a.stringify(e)})}function G(e){return Object(s["a"])({url:r+"/paymentConfig/del/"+e.id,method:"post"})}function E(e){return Object(s["a"])({url:r+"/teacher/findTeacherByOrganId",method:"get",params:e})}function M(e){return Object(s["a"])({url:r+"/appVersionInfo/list",method:"get",params:e})}function V(e){return Object(s["a"])({url:r+"/appVersionInfo/add",method:"post",data:n.a.stringify(e)})}function R(e){return Object(s["a"])({url:r+"/appVersionInfo/update",method:"post",data:n.a.stringify(e)})}function A(e){return Object(s["a"])({url:r+"/employee/hasCourseGroupRelation",method:"post",data:n.a.stringify(e)})}function U(e){return Object(s["a"])({url:r+"/employee/updateEducationTeacherId",method:"post",data:n.a.stringify(e)})}},"99ca":function(e,t,a){},"9fd8":function(e,t,a){"use strict";a("f171")},a488:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return l})),a.d(t,"b",(function(){return c}));var s=a("b775"),i=a("4328"),n=a.n(i),r="/api-web";function o(e){return Object(s["a"])({url:r+"/employee/findTechnician",method:"get",params:e})}function l(e){return Object(s["a"])({url:r+"/studentRepair/queryPage",method:"get",params:e})}function c(e){return Object(s["a"])({url:r+"/studentRepair/repairSuccess",method:"post",data:n.a.stringify(e)})}},aa6f:function(e,t,a){},b106:function(e,t,a){},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"),n=a.n(i),r="/api-web";function o(e){return Object(s["a"])({url:r+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function l(e){return Object(s["a"])({url:r+"/musicGroupPaymentCalender/auditPass",method:"post",data:n.a.stringify(e)})}function c(e){return Object(s["a"])({url:r+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:n.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=[],n=a("5530"),r=a("333d"),o=a("1cc7"),l={components:{pagination:r["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(n["a"])(Object(n["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("e597"),a("2877")),d=Object(u["a"])(c,s,i,!1,null,"3a694394",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 n}));var s=a("829b"),i=function(e){return Object(s["a"])({url:"/api-web/classGroup/queryRemainCourseTypeDuration",data:{},params:e,requestType:"form"})},n=function(e){return Object(s["a"])({url:"/api-web/classGroupStudent/updateClassGroupStudents",data:e,method:"post",requestType:"form"})}},b596:function(e,t,a){},b90c:function(e,t,a){"use strict";a("d148d")},b9d7:function(e,t,a){"use strict";a("97d6")},c466:function(e,t,a){"use strict";a.d(t,"h",(function(){return r})),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),n=a("56d7");function r(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),n=i.getFullYear(),r=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),l=n+"-"+r+"-"+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,n=new Date(i),r=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),c=r+"-"+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)?(n["$message"].error("课程时间无法跨天请重新设置开始时间"),""):s.format("HH:mm")}},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):a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("关闭")])],1)],1):e._e()},i=[],n=(a("96cf"),a("1da1")),r=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(n["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(l["a"])({calenderId:this.detail.id,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("审核通过"),a.$emit("close"))}));case 8:e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=23;break;case 14:return e.prev=14,e.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return e.next=19,Object(l["b"])({calenderId:this.detail.id,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("驳回成功"),a.$emit("close"))}));case 19:e.next=23;break;case 21:e.prev=21,e.t1=e["catch"](14);case 23:case"end":return e.stop()}}),e,this,[[3,10],[14,21]])})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(r["a"])(e)}}},u=c,d=(a("5900"),a("2877")),p=Object(d["a"])(u,s,i,!1,null,"3b75a0a0",null);t["a"]=p.exports},cfc6:function(e,t,a){},d102:function(e,t,a){},d148d:function(e,t,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 b})),a.d(t,"f",(function(){return v})),a.d(t,"l",(function(){return g})),a.d(t,"s",(function(){return _})),a.d(t,"q",(function(){return S})),a.d(t,"r",(function(){return C})),a.d(t,"h",(function(){return w})),a.d(t,"i",(function(){return T})),a.d(t,"n",(function(){return k})),a.d(t,"j",(function(){return x})),a.d(t,"t",(function(){return I})),a.d(t,"B",(function(){return O})),a.d(t,"m",(function(){return L})),a.d(t,"u",(function(){return F})),a.d(t,"x",(function(){return P})),a.d(t,"v",(function(){return D})),a.d(t,"w",(function(){return j})),a.d(t,"o",(function(){return N})),a.d(t,"a",(function(){return $})),a.d(t,"y",(function(){return G}));var s=a("15fd"),i=a("b775"),n=a("829b"),r=a("4328"),o=a.n(r),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 b(e){return Object(i["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function v(e){return Object(i["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function g(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function C(e){return Object(i["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function w(e){return Object(i["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function T(e){return Object(i["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function k(e){return Object(i["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function x(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function I(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function O(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function L(e){var t=e.id,a=Object(s["a"])(e,["id"]);return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function F(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function P(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function D(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function j(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function N(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function $(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function G(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}},e491:function(e,t,a){"use strict";a("6979")},e597:function(e,t,a){"use strict";a("f2ec")},e6d9:function(e,t,a){"use strict";a("99ca")},ea6e:function(e,t,a){"use strict";a("f403")},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 r})),a.d(t,"a",(function(){return o}));var s=a("ade3"),i=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("53ca"),a("5a0c")),n=a.n(i);var r=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",n()(e[0]).isValid()?n()(e[0]).format("YYYY-MM-DD"):""),Object(s["a"])(t,a[1]||"end",n()(e[1]).isValid()?n()(e[1]).format("YYYY-MM-DD"):""),t):{}}},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=[],n=a("ff14"),r={components:{soundSetCore:n["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=r,l=a("2877"),c=Object(l["a"])(o,s,i,!1,null,"417cc28b",null);t["a"]=c.exports},f171:function(e,t,a){},f267:function(e,t,a){},f2ec:function(e,t,a){},f403:function(e,t,a){},f5b8:function(e,t,a){"use strict";a("40b9")},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"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("新建学校缴费")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"订单编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~ "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),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:"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&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?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&&e.teamStatus?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(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(a){return e.commmitGetMoney(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"}}),e._v(" "),a("el-dialog",{attrs:{title:"确认收款",visible:e.getMoneyVisible,width:"600px"},on:{"update:visible":function(t){e.getMoneyVisible=t}}},[a("isGetMoney",{ref:"getMoney",attrs:{data:e.activeRow},on:{close:e.closeMoney}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.getMoneyVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitGetMoney}},[e._v("确 定")])],1)],1)],1)},i=[],n=(a("a481"),a("96cf"),a("1da1")),r=(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"),b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"moneyForm",attrs:{model:e.form}},[a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea",rows:4},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)],1)},v=[],g={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a){var s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}return s=t.data.id,i=t.form.memo,e.prev=3,e.next=6,Object(m["b"])({id:s,memo:i});case 6:e.sent,t.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.$emit("close")}}},_=g,S=a("2877"),C=Object(S["a"])(_,b,v,!1,null,"4b111bac",null),w=C.exports,T=a("cd32"),k=a("3762"),x=a("267e"),I=a("ed08"),O=a("92e3"),L={props:["baseInfo","isNewGropu"],components:{pagination:r["a"],setStudentFee:f["default"],userPayForm:h["a"],schoolPayForm:y["a"],QrCode:c["a"],review:T["a"],reviewDetail:k["a"],teamType:"",isGetMoney:w},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,teamType:this.$route.query.type,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,musicGroupPaymentCalenderId:"",payOrderTypeLists:O["s"],getMoneyVisible:!1}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return 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"])(x["o"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.type;return"teamDraft"==e||"resetTeam"==e}},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(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["f"])({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(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(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["d"])(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<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}(),commmitGetMoney:function(e){this.activeRow=e,this.getMoneyVisible=!0},submitGetMoney:function(){this.$refs.getMoney.submitGetMoney()},closeMoney:function(){this.getMoneyVisible=!1,this.getList()}},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},F=L,P=(a("1973"),Object(S["a"])(F,s,i,!1,null,"0a19f653",null));t["a"]=P.exports},f8cc:function(e,t,a){"use strict";a("820d")},f927:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":": ",inline:""}},[a("el-row",[e.showName?a("el-col",{attrs:{span:10}},[a("el-form-item",{attrs:{label:"班级名称",prop:"name",rules:[{required:!0,message:"请输入班级名称",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入班级名称"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1):e._e(),e._v(" "),a("el-col",{attrs:{span:10,offset:e.showName?4:0}},[a("el-form-item",{attrs:{label:"声部"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:"","collapse-tags":"",filterable:"",placeholder:"请选择声部"},model:{value:e.sound,callback:function(t){e.sound=t},expression:"sound"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1),e._v(" "),a("el-transfer",{class:{hideReturn:!e.canDelUser},attrs:{filterable:"",titles:["所有学员","已选学员"],"filter-placeholder":"请输入学生姓名","filter-method":e.filterStudent,"render-content":e.renderFunc,data:e.data},scopedSlots:e._u([{key:"left-footer",fn:function(){return[a("div",{staticClass:"footer line"},[a("span",[e._v("姓名")]),e._v(" "),a("span",[e._v("性别")]),e._v(" "),a("span",[e._v("专业")])])]},proxy:!0},{key:"right-footer",fn:function(){return[a("div",{staticClass:"footer line"},[a("span",[e._v("姓名")]),e._v(" "),a("span",[e._v("性别")]),e._v(" "),a("span",[e._v("专业")])])]},proxy:!0}]),model:{value:e.seleched,callback:function(t){e.seleched=t},expression:"seleched"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},i=[],n=(a("96cf"),a("1da1")),r=(a("7f7f"),a("6762"),a("2fdb"),a("2909")),o=a("267e"),l=a("b4ac"),c=a("2ef0"),u={props:["studentList","soundList","activeType","activeListStudent","isOnlyChangeUser","classGroupId","type"],computed:{data:function(){var e=this;return Object(c["uniqBy"])([].concat(Object(r["a"])(this.studentList),Object(r["a"])(this.activeListStudent)),"userId").filter((function(t){return!e.sound.length||(e.sound.includes(t.subjectId)||e.seleched.includes(t.userId))})).map((function(e){return{value:e.userId,key:e.userId,name:e.name,subjectName:e.subjectName,gender:o["g"][e.gender]}}))},showName:function(){return!this.isOnlyChangeUser&&"MUSIC_NETWORK"!=this.activeType},canDelUser:function(){return"resetTeam"!==this.$route.query.type||!this.isOnlyChangeUser}},data:function(){return{sound:[],form:{name:""},seleched:[]}},watch:{activeListStudent:function(){this.setSelectedUser()}},mounted:function(){this.setSelectedUser()},methods:{setSelectedUser:function(){var e=this.activeListStudent.map((function(e){return e.userId}));this.seleched=Object(r["a"])(e)},filterStudent:function(e,t){return t.name.indexOf(e)>-1||t.subjectName.indexOf(e)>-1||t.gender.indexOf(e)>-1},renderFunc:function(e,t){return e("div",{class:"line"},[e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top"}},[e("span",{slot:"content"},[t.name]),e("span",{class:"select-item"},[t.name])]),e("span",[t.gender]),e("el-tooltip",{class:"item",attrs:{effect:"dark",placement:"top"}},[e("span",{slot:"content"},[t.subjectName]),e("span",{class:"select-item"},[t.subjectName])])])},change:function(e){this.$listeners.changeActiveChioseSound(e),this.$listeners.searchStudent()},submit:function(){var e=this;return!this.isOnlyChangeUser&&"HIGH_ONLINE"==this.activeType&&(this.seleched.length<3||this.seleched.length>5)?this.$message.error("线上技能班必须为3-5人"):this.seleched.length<1?this.$message.error("请至少选择一名学生"):"MUSIC_NETWORK"==this.activeType&&this.seleched.length>1?this.$message.error("乐团网管课仅可添加一名学生"):void this.$refs.form.validate(function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=15;break}if(!e.isOnlyChangeUser||"change"===e.type){t.next=13;break}return t.prev=2,t.next=5,Object(l["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)}}())}}},d=u,p=(a("b9d7"),a("2877")),m=Object(p["a"])(d,s,i,!1,null,"21b0c6be",null);t["a"]=m.exports},fa4f:function(e,t,a){"use strict";a("1234")},fa7d:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return i}));a("a481"),a("5a0c");var s=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e);0==a.getDay()&&(t-=6048e5);var s=t-24*(a.getDay()-1)*60*60*1e3,i=new Date(s),n=i.getFullYear(),r=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,o=i.getDate()<10?"0"+i.getDate():i.getDate(),l=n+"-"+r+"-"+o;return l},i=function(e){var t=new Date(e.replace(/-/g,"/")).getTime(),a=new Date(e),s=7-a.getDay();7==s&&(s=0);var i=t+24*s*60*60*1e3,n=new Date(i),r=n.getFullYear(),o=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,l=n.getDate()<10?"0"+n.getDate():n.getDate(),c=r+"-"+o+"-"+l;return c}},fb31:function(e,t,a){},ff14:function(e,t,a){"use strict";var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"soundBtnWrap"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"coreWrap"},[a("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,s){return a("el-collapse-item",{key:s,attrs:{name:t.id}},[a("template",{slot:"title"},[a("div",{staticClass:"coreItemTitle"},[a("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),a("div",{staticClass:"coreItem"},[a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),a("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(a){e.$set(t,"expectedStudentNum",a)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),a("chioseMusic",{attrs:{item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),a("el-select",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(a){e.$set(t,"markChioseList",a)},expression:"item.markChioseList"}},e._l(t.markList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1)],2)})),1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.soundVisible=t}}},[a("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1)],1)},i=[],n=a("5530"),r=(a("7f7f"),a("6762"),a("2fdb"),a("5df3"),a("4f7f"),a("2909")),o=(a("456d"),a("28a5"),a("ac6a"),a("386d"),a("ade3")),l=(a("4360"),a("fa7d"),a("1cc7")),c=a("5a0c"),u=a.n(c),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"soundWrap"},[a("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[a("div",{staticClass:"itemList"},e._l(e.soundList,(function(t,s){return a("div",{key:s,staticClass:"categroy"},[a("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,s){return a("el-checkbox",{key:s,attrs:{label:t.id,disabled:e.activeSound.includes(t.id)},on:{change:e.changeCheck}},[e._v(e._s(t.name))])}))],2)})),0)])],1),e._v(" "),a("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),a("div",{staticClass:"btnWraps"},[a("el-button",{attrs:{type:"primary"},on:{click:e.generates}},[e._v("\n 确定\n ")])],1)])},p=[],m={props:["soundList","childSoundList","activeSound"],data:function(){return{chioseSoundNum:"",activeSoundList:this.activeSound||[]}},mounted:function(){console.log(this.soundList)},activated:function(){console.log(this.soundList)},methods:{generates:function(){this.$emit("chioseSound",this.activeSoundList)},changeCheck:function(){}}},f=m,h=(a("4226"),a("2877")),y=Object(h["a"])(f,d,p,!1,null,"c28cee18",null),b=y.exports,v=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._l(e.item.chioseMusic,(function(t,s){return a("div",{key:s},[a("div",{staticClass:"chioseMusic"},[a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("可选乐器"+e._s(s+1)+":")]),e._v(" "),a("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},on:{change:function(a){e.chioseMusic(a,t)}},model:{value:t.musical,callback:function(a){e.$set(t,"musical",a)},expression:"music.musical"}},e._l(e.item.goodsList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1),e._v(" "),a("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(a){e.$set(t,"type",a)},expression:"music.type"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("团购价:")]),e._v(" "),t.type&&t.type.length>0&&t.type.includes("GROUP")?a("div",{staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(a){e.$set(t,"groupPrice",a)},expression:"music.groupPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):a("div",{staticStyle:{width:"180px"}},[a("el-input",{attrs:{value:"--",disabled:""}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("p",{staticClass:"title"},[e._v("租赁押金:")]),e._v(" "),t.type&&t.type.length>0&&t.type.includes("LEASE")?a("div",{staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(a){e.$set(t,"borrowPrice",a)},expression:"music.borrowPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):a("div",{staticStyle:{width:"180px"}},[a("el-input",{attrs:{value:"--",disabled:""}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.item.chioseMusic.length>1&&!e.basdisabled?a("i",{staticClass:"el-icon-close marginLeft10",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(a){return e.deleteMusic(t)}}}):e._e()])])])})),e._v(" "),e.basdisabled?e._e():a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"}),e._v(" "),a("el-button",{staticStyle:{width:"558px"},attrs:{type:"info",plain:"",size:"mini",icon:"el-icon-plus"},on:{click:e.addMusic}},[e._v("新增可选乐器")])],1)],2)},g=[],_={props:["item","basdisabled"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){},methods:{chioseMusic:function(e,t){this.item.goodsList.map((function(a,s){a.id==e&&(t.groupPrice=a.groupPurchasePrice)}))},addMusic:function(){this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:null,borrowPrice:1500}),this.$emit("lookMusic")},deleteMusic:function(e){var t=this;this.item.chioseMusic.forEach((function(a,s){a.musical==e.musical&&t.item.chioseMusic.splice(s,1)}))}}},S=_,C=(a("3517"),Object(h["a"])(S,v,g,!1,null,"e84285d0",null)),w=C.exports,T=a("2ef0"),k=(a("6612"),{components:{chioseSoundList:b,chioseMusic:w},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(o["a"])(e,"soundList",[]),Object(o["a"])(e,"childSoundList",[]),Object(o["a"])(e,"teamStatus",""),Object(o["a"])(e,"checkList",[]),Object(o["a"])(e,"basdisabled",!1),e},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.topfor=this.$store.getters.topinfo;var t=this.topfor.type,a=this.topfor.section;this.teamStatus=this.$route.query.type,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,Object(l["lb"])({tenantId:1}).then((function(s){200==s.code&&(e.soundList=s.data.rows,"newTeam"==e.teamStatus&&t&&a?Object(l["T"])({chargeTypeId:t,organId:a,number:1}).then((function(t){if(200==t.code){var a=[];e.activeSoundList=t.data.map((function(t){return a.push(t.id),e.initSound(t)})),e.activeSound=a,e.chioseActiveSound=a,e.changeActiveSound(a.join(","))}})):(e.teamid=e.$route.query.id,e.teamid&&Object(l["C"])({musicGroupId:e.teamid}).then((function(t){if(200==t.code){var a,s=[];e.activeSoundList=null===(a=t.data)||void 0===a?void 0:a.musicGroupSubjectPlans.map((function(e){return s.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),e.activeSound=s,e.chioseActiveSound=s,e.changeActiveSound(s.join(",")),t.data.musicGroupSubjectGoodsGroups.forEach((function(t){var a=Object(T["findIndex"])(e.activeSoundList,(function(e){return e.id==t.subjectId}));if(-1!=a)if("ACCESSORIES"==t.type)t.goodsIdList.split(",").forEach((function(t){e.activeSoundList[a].markChioseList.push(parseInt(t))}));else if("INSTRUMENT"==t.type){var s=Object.keys(JSON.parse(t.kitGroupPurchaseTypeJson));e.activeSoundList[a].chioseMusic.push({musical:parseInt(t.goodsIdList),type:s,groupPrice:t.price,borrowPrice:t.depositFee})}}))}}))))})),Object(l["pb"])({tenantId:1}).then((function(t){200==t.code&&(e.childSoundList=t.data)}))},lookCheck:function(e){this.checkList=Object(r["a"])(new Set(e))},chioseSound:function(e){this.activeSound=Object(r["a"])(new Set(e));var t=[];for(var a in this.childSoundList)this.activeSound.includes(this.childSoundList[a].id)&&t.push(this.initSound(this.childSoundList[a]));var s=this.activeSoundList.map((function(e){return e.id}));for(var i in t){var n,o=s.indexOf(null===(n=t[i])||void 0===n?void 0:n.id);o>-1&&(t[i]=this.activeSoundList[o])}this.activeSoundList=t;var l=[];this.activeSoundList.forEach((function(e){l.push(e.id)})),this.activeSound=l,this.chioseActiveSound=l,this.changeActiveSound(l.join(",")),this.soundVisible=!1},initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(e){var t=this;Object(l["qb"])({subjectIds:e,chargeTypeId:this.topfor.type}).then((function(e){if(200==e.code&&e.data){var a=Object.keys(e.data);t.activeSoundList.forEach((function(t){if(-1!=a.indexOf(t.id+"")){var s=[],i=[];e.data[t.id].forEach((function(e){"INSTRUMENT"==e.type?s.push(e):"ACCESSORIES"==e.type&&i.push(e)})),t.goodsList=s,t.markList=i}}))}}))},lookMusic:function(){},submitInfo:function(e){var t=this;if(this.activeSoundList.length<=0)this.$message.error("请至少设置一个声部");else{var a=!0;if(this.activeSoundList.forEach((function(e){var s;return e.expectedStudentNum?(null===(s=e.chioseMusic[0])||void 0===s?void 0:s.musical)?void e.chioseMusic.forEach((function(s){-1!=s.type.indexOf("LEASE")&&(!s.borrowPrice||parseFloat(s.borrowPrice)<=0)&&(t.$message.error("请填写正确的".concat(e.sound,"租赁押金")),a=!1)})):(t.$message.error("请至少一个选择".concat(e.sound,"的可选乐器")),void(a=!1)):(t.$message.error("请填写".concat(e.sound,"的预计招生人数")),void(a=!1))})),a){var s={};"newTeam"==this.teamStatus&&this.initCreateTeam(s),s.musicGroupSubjectGoodsGroups=[],s.musicGroupSubjectPlans=[],this.activeSoundList.forEach((function(e){var t={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};s.musicGroupSubjectPlans.push(t),e.chioseMusic.forEach((function(t){var a=null,i=t.borrowPrice,n=t.groupPrice,r=Object(T["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=r&&(a=e.goodsList[r]);var o={};if(t.type.forEach((function(e){o[e]=0})),o=JSON.stringify(o),a){var l={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:a.name,kitGroupPurchaseTypeJson:o,depositFee:i,price:n};s.musicGroupSubjectGoodsGroups.push(l)}})),e.markChioseList.forEach((function(t){var a=Object(T["findIndex"])(e.markList,(function(e){return e.id==t})),i=null;if(-1!=a&&(i=e.markList[a]),i){var n={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:i.name,price:i.groupPurchasePrice};s.musicGroupSubjectGoodsGroups.push(n)}}))})),"newTeam"==this.teamStatus?Object(l["s"])(s).then((function(e){if(200==e.code){var a=t.$route.query;a.type="teamDraft",t.$router.push({query:Object(n["a"])(Object(n["a"])({},a),{},{id:e.data})}),t.$emit("chiosetab",2),t.$emit("getBaseInfo",s)}})):(s.musicGroupId=this.teamid,s.musicGroupStatus=e?"AUDIT":"DRAFT",Object(l["vc"])(s).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$emit("chiosetab",2))})))}}},deleteRow:function(){if(this.checkList.length<1)this.$message.error("请至少勾选一个");else{for(var e=0;e<this.activeSoundList.length;e++){var t=this.checkList.indexOf(this.activeSoundList[e].id);-1!=t&&(this.activeSoundList.splice(e,1),this.activeSound.splice(e,1),e--)}this.checkList=[]}},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,a){e.checkList.push(t.id)}))},initCreateTeam:function(e){var t;return t=this.topfor.startClass?this.topfor.startClass.join(","):null,e.musicGroup={settlementType:this.topfor.salary,applyExpireDate:u()(this.topfor.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:this.topfor.type,cooperationOrganId:this.topfor.school,teamTeacherId:this.topfor.boss,educationalTeacherId:this.topfor.teacher,enrollClasses:t,name:this.topfor.name,organId:this.topfor.section,paymentPattern:this.topfor.paymentPattern,paymentValidStartDate:this.topfor.paymentValidStartDate?u()(this.topfor.paymentValidStartDate).format("YYYY-MM-DD"):this.topfor.paymentValidStartDate,paymentValidEndDate:this.topfor.paymentValidEndDate?u()(this.topfor.paymentValidEndDate).format("YYYY-MM-DD"):this.topfor.paymentValidEndDate,schoolId:this.topfor.address,expectStartGroupDate:this.topfor.startTime,isClassroomLessons:this.topfor.isClass,status:"DRAFT",ownershipType:this.topfor.ownershipType,repairUserId:this.topfor.repairUserId,feeType:this.topfor.feeType},e}},watch:{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,a=0;this.activeSoundList;if(e){var s=0;if(e.length>0)for(var i in e){var n;s+=parseInt(null===(n=e[i])||void 0===n?void 0:n.expectedStudentNum)||0}t=e.length,a=s,this.$emit("getNumber",t,a)}}}}}),x=k,I=(a("f8cc"),Object(h["a"])(x,s,i,!1,null,"1adb5760",null));t["a"]=I.exports}}]);