chunk-8597befe.5b6de501.js 254 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8597befe","chunk-9501e3c6","chunk-6e855f0c"],{"03e5":function(e,t,a){"use strict";a("d062")},"0464":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(a){return e.courseItemChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(a){e.$set(e.list.form[t.$index],"courseType",a)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseUnitPriceSettingsByType,(function(t,r){return a("el-option",{key:r,attrs:{disabled:e.isOptionDisabled(r),label:e.courseType[r],value:r}})})),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:{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,839949015)}):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:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(a){e.$set(e.list.form[t.$index],"courseTotalMinuties",a)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},i=[],s=(a("6762"),a("2fdb"),a("267e")),n=a("ed08"),o=a("92e3"),l=a("6612"),c=a.n(l),u=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:s["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(n["e"])(s["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(o["b"])(o["m"])}},mounted:function(){console.log(this.list,"list"),console.log(this.courseTypeOptions,"courseTypeOptions")},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return c()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},courseItemChange:function(e,t){this.$listeners.priceChange(e,t),this.$refs.form.validateField("form.".concat(t,".courseTotalMinuties"))},validatorCourseTotalMinuties:function(e){var t=this;return function(a,r,i){var s=t.list.form[e].courseType;s&&r>1&&t.classTimeList[s]&&r<t.classTimeList[s]?i(new Error("单节课不得少于".concat(t.classTimeList[s],"分钟"))):i()}}}}),p=u,m=(a("5ead"),a("2877")),d=Object(m["a"])(p,r,i,!1,null,"4045048c",null);t["a"]=d.exports},"0703":function(e,t,a){},"070d":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,"save-key":"resetPayList",model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费种类",clearable:"",filterable:""},model:{value:e.searchForm.payUserType,callback:function(t){e.$set(e.searchForm,"payUserType",t)},expression:"searchForm.payUserType"}},e._l(e.payUserTypeList,(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-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/createCalender/3895",expression:"'musicGroupPaymentCalender/createCalender/3895'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("\n 新建学员缴费\n ")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/createCalender/4359",expression:"'musicGroupPaymentCalender/createCalender/4359'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("\n 新建学校缴费\n ")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/createCalender/4459",expression:"'musicGroupPaymentCalender/createCalender/4459'"}],staticClass:"newBand",on:{click:e.newGoodsPay}},[e._v("\n 新建商品采购\n ")]):e._e(),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/extensionPayment",expression:"'musicGroup/extensionPayment'"}],staticClass:"newBand",on:{click:e.extendTime}},[e._v("\n 延长缴费\n ")])]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费种类"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payUserTypeFormat")(t.row.payUserType))+"\n ")])]}}])}),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:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费人数"},scopedSlots:e._u([{key:"default",fn:function(t){return["STUDENT"==t.row.payUserType?a("div",[e._v("\n "+e._s(t.row.actualNum)+"/"+e._s(t.row.expectNum)+"\n ")]):a("div",[e._v("--")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"currentTotalAmount",label:"缴费金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")])],1),e._v(" "),"REJECT"!=t.row.status&&"AUDITING"!=t.row.status&&"DRAFT"!=t.row.status&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType&&"GOODS_PURCHASE"!=t.row.paymentType?a("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),"GOODS_PURCHASE"!=t.row.paymentType?[!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")])],1),e._v(" "),"FEE_AUDIT_FAILED"!=e.team_status||"ADD_STUDENT"==t.row.paymentType||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")])],1)]:["AUDITING"!=t.row.status?a("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")])],1):e._e()],e._v(" "),"FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.status||"ADD_STUDENT"==t.row.paymentType?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"DRAFT"!=t.row.status&&"REJECT"!=t.row.status?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),!e.teamStatus||"ADD_STUDENT"!=t.row.paymentType||"DRAFT"!=t.row.status&&"REJECT"!=t.row.status?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),e._v(" "),e.isNewGropu||!e.teamStatus||"MUSIC_APPLY"==t.row.paymentType||"OPEN"!=t.row.status&&"OVER"!=t.row.status||"STUDENT"!==t.row.payUserType?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]),e._v(" "),"STUDENT"===t.row.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.$helpers.permission("musicGroup/findMusicGroupSubjectInfo/966")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onPreview(t.row)}}},[e._v("预览")]):e._e()],2)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"resetPayList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?a("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"STUDENT",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookDetail:e.lookDetail,onPreview:e.onPreview,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:!0,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),e.reviewVisible?a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},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._e(),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.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive,changePaymentType:e.changePaymentType}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.memberVisible,width:"830px"},on:{"update:visible":function(t){e.memberVisible=t}}},[e.memberVisible?a("memberPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.memberVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?a("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{staticClass:"subjectPreview",attrs:{title:"报名声部预览",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[a("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.dialogSubjectList,(function(t,r){return a("el-tab-pane",{key:r,staticStyle:{"max-height":"500px","overflow-y":"auto"},attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[a("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1)],1),e._v(" "),e.extendPaymentStatus?a("el-dialog",{attrs:{title:"延长缴费",visible:e.extendPaymentStatus,width:"400px"},on:{"update:visible":function(t){e.extendPaymentStatus=t}}},[a("el-form",{ref:"extendForm",attrs:{model:e.extendForm,rules:e.extendRule}},[a("el-form-item",{attrs:{label:"缴费时间",prop:"expireDate"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date","picker-options":e.applyDates,placeholder:"选择日期"},model:{value:e.extendForm.expireDate,callback:function(t){e.$set(e.extendForm,"expireDate","string"===typeof t?t.trim():t)},expression:"extendForm.expireDate"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.extendPaymentStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onExtendPayment("extendForm")}}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),"DRAFT"==e.team_status||"AUDIT_FAILED"==e.team_status?a("el-button",{attrs:{type:"primary"},on:{click:e.submitAudit}},[e._v("提交审核")]):e._e(),e._v(" "),"AUDIT"==e.team_status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditSuccess",expression:"'musicGroup/auditSuccess'"}],attrs:{type:"primary"},on:{click:e.approval}},[e._v("审核通过")]):e._e(),e._v(" "),"AUDIT"==e.team_status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/auditFailed",expression:"'musicGroup/auditFailed'"}],attrs:{type:"danger"},on:{click:e.refuse}},[e._v("驳回")]):e._e()],1)},i=[],s=(a("6b54"),a("a481"),a("5530")),n=a("c7eb"),o=(a("96cf"),a("1da1")),l=a("333d"),c=a("5a0c"),u=a.n(c),p=a("641c"),m=a("61f7"),d=a("1cc7"),h=a("b38b"),f=a("d349"),y=a("1672"),b=a("b3d0"),v=a("940a"),g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"注意事项",closable:!1,type:"info"}}),e._v(" "),e._m(0),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"会员设置",closable:!1,type:"info"}}),e._v(" "),a("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,showTime:!0}}),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)],1)},_=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tilteWrap"},[a("h4",[e._v("会员团排课规则:")]),e._v(" "),a("p",[e._v("\n 1、会员团每学期赠送3960分钟(88课时x45分钟)免费课程时长,该时长可排声部课、集训声部课、合奏课、集训合奏课、综合课,课程时长以上类型课程共享;\n ")]),e._v(" "),a("p",[e._v("\n 2、在本学期内声部课、集训声部课总共最多能排课1980分钟(44课时x45分钟);合奏课、集训合奏课最多能排课1980分钟(44课时x45分钟);综合课最多能排课3960分钟(88课时x45分钟);\n ")]),e._v(" "),a("p",[e._v("\n 3、赠送课程仅可在该学期内完成排课,且不可将本学期课程调整至学期时间范围之外;\n ")]),e._v(" "),a("p",[e._v("4、学期时间段:9月1日至2月28/29日,3月1日至8月31日;")]),e._v(" "),a("p",[e._v("\n 5、排课时系统根据【开课日期】计算本学期最大可排课时长,计算方式为开课日期到本学期结束日期周次*4*45分钟,若超过3960分钟(88课时x45分钟),按3960分钟(88课时x45分钟)计算。即:若学期中途开始排课,则可能排课时长并不能达到3960分钟(88课时x45分钟)。\n ")])])}],S=a("15fd"),w=a("b85c"),T=a("ace5"),P=a("b133"),x=a("ed08"),O=["paymentDate"],k={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},F={components:{memberSetting:T["a"],otherform:P["a"]},props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],data:function(){return{memberForm:{memberRankSettingId:"",memberValidDate:6,memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[]},other:{memo:""},viewDetail:null}},mounted:function(){this.init()},computed:{isUserType:function(){return"user"===this.type}},methods:{init:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t,a,r;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.rowDetail){e.next=18;break}return this.$set(this.other,"memo",this.rowDetail.memo),e.prev=2,e.next=5,Object(y["p"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 5:a=e.sent,this.viewDetail=a.data,r=null===(t=this.viewDetail)||void 0===t?void 0:t.musicGroupPaymentCalenders[0],this.$set(this.memberForm,"memberRankSettingId",r.memberRankSettingId),this.$set(this.memberForm,"memberValidDate",r.memberValidDate),this.$set(this.memberForm,"memberPaymentAmount",r.memberPaymentAmount),this.$set(this.memberForm,"originalMemberPaymentAmount",r.originalMemberPaymentAmount),this.$set(this.memberForm,"paymentDate",[r.startPaymentDate,r.deadlinePaymentDate]),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),console.log(e.t0);case 18:case"end":return e.stop()}}),e,this,[[2,15]])})));function t(){return e.apply(this,arguments)}return t}(),getForms:function(){var e=this.$refs;return[e.memberSetting,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},submit:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t,a,r,i,o,l,c,u,p,m,d;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],r=Object(w["a"])(t);try{for(o=function(){var e=i.value;e.validate((function(t){t&&a.push(e)}))},r.s();!(i=r.n()).done;)o()}catch(n){r.e(n)}finally{r.f()}if(a.length!==t.length){e.next=35;break}if(c=Object(s["a"])(Object(s["a"])(Object(s["a"])({musicGroupId:this.musicGroupId},this.memberForm),this.other),{},{paymentType:k[0==this.paymentType?this.paymentType:0],paymentPattern:1,payUserType:"user"===this.type?"STUDENT":"SCHOOL",musicGroupPaymentDateRangeList:[Object(s["a"])({},Object(x["d"])(this.memberForm.paymentDate,["startPaymentDate","deadlinePaymentDate"]))]}),c.paymentDate,u=Object(S["a"])(c,O),null!==(l=this.rowDetail)&&void 0!==l&&l.batchNo){e.next=20;break}return e.prev=7,e.next=10,Object(y["l"])(u);case 10:p=e.sent,"DRAFT"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(p.data),e.next=18;break;case 16:e.prev=16,e.t0=e["catch"](7);case 18:e.next=35;break;case 20:return u.batchNo=this.rowDetail.batchNo,u.paymentType=null===(m=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===m?void 0:m.paymentType,console.log(u),e.prev=23,e.next=26,Object(y["o"])(u);case 26:d=e.sent,this.$listeners.close(),this.$listeners.submited(d.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:merge(this.$route.query,{type:"feeAudit"})}),e.next=35;break;case 32:e.prev=32,e.t1=e["catch"](23),console.log(e.t1);case 35:case"end":return e.stop()}}),e,this,[[7,16],[23,32]])})));function t(){return e.apply(this,arguments)}return t}()}},C=F,D=(a("ba9e"),a("2877")),I=Object(D["a"])(C,g,_,!1,null,"5671fc59",null),$=I.exports,j=a("e623"),E=a("86e8"),A=a("cd32"),G=a("3762"),N=a("81fd"),L=a("267e"),R=a("92e3"),M={props:["isNewGropu"],components:{pagination:l["a"],setStudentFee:b["default"],userPayForm:v["a"],memberPayForm:$,schoolPayForm:E["a"],QrCode:p["a"],review:A["a"],reviewDetail:G["a"],"pay-items":j["a"],subjectPreview:N["a"]},data:function(){return{paymentType:"DRAFT"==this.team_status?0:1,musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,itemsVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null,payUserType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",teamType:this.$route.query.type,payOrderTypeLists:R["N"],dialogSubjectVisible:!1,dialogSubjectList:[],activeName:null,dialogCalenderId:null,baseInfo:null,memberVisible:!1,payUserTypeList:R["O"],extendPaymentStatus:"",extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},applyDates:this.applyDate()}},created:function(){},mounted:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.teamid=this.$route.query.id,this.paymentType="DRAFT"==this.team_status?0:1,e.prev=2,e.next=5,Object(f["n"])({rows:9999});case 5:if(t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,!(this.organizationCourseUnitPriceSettings.length<=0)){e.next=10;break}return this.$bus.$emit("showguide",["teamCourseFee"]),e.abrupt("return");case 10:localStorage.setItem("organizationCourseUnitPriceSettings",JSON.stringify(this.organizationCourseUnitPriceSettings)),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](2),localStorage.removeItem("organizationCourseUnitPriceSettings");case 16:this.init();case 17:case"end":return e.stop()}}),e,this,[[2,13]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(x["e"])(L["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){return"DRAFT"==this.team_status||"PROGRESS"==this.team_status||"AUDIT_FAILED"==this.team_status},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(y["i"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getTeamInfo(),this.getList();case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),getTeamInfo:function(){var e=this;this.$route.query.id&&Object(d["Qb"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code?(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo),localStorage.setItem("payMusicBase",JSON.stringify(e.baseInfo))):localStorage.removeItem("payMusicBase")}))},changePaymentType:function(e){this.paymentType=e},newUserPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(s["a"])(Object(s["a"])({},e),{},{payUserType:"STUDENT"})})},newSchoolPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(s["a"])(Object(s["a"])({},e),{},{payUserType:"SCHOOL"})},(function(e){e.meta.title="学校缴费设置"}))},newGoodsPay:function(){var e=this.$route.query;this.$router.push({path:"/business/goodsPaySet",query:Object(s["a"])(Object(s["a"])({},e),{},{payUserType:"SCHOOL"})},(function(e){e.meta.title="商品采购设置"}))},getList:function(){var e=this,t=this.$route.query.id;return Object(h["c"])({page:this.rules.page,rows:this.rules.limit,musicGroupId:t,payUserType:this.searchForm.payUserType,paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(m["e"])()+"/#/musicGroupRenew?calenderId="+e.id+"&id="+this.$route.query.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){if(this.diTitle="修改缴费","MUSIC_APPLY"==e.paymentType||"MUSIC_RENEW"==e.paymentType||"ADD_COURSE"==e.paymentType){this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.isNew=!1,this.activeRow=e;var t=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(s["a"])(Object(s["a"])({},t),{},{payUserType:e.payUserType,calenderId:e.id})})}else if("GOODS_PURCHASE"==e.paymentType){this.isNew=!1,this.activeRow=e;var a=this.$route.query;this.$router.push({path:"/business/goodsPaySet",query:Object(s["a"])(Object(s["a"])({},a),{},{payUserType:e.payUserType,calenderId:e.id})})}},revoke:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否撤回此缴费项目的审批?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(y["w"])({batchNo:t.batchNo});case 5:e.sent,this.$message.success("取消审批成功"),this.getList(),this.getTeamInfo(),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}(),changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().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["B"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},submitAudit:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("确定提交审核?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(d["cc"])({musicGroupId:this.teamid});case 5:e.sent,this.$message.success("提交成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"}),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),extendTime:function(){this.extendPaymentStatus=!0},onExtendPayment:function(e){var t=this;this.$refs[e].validate((function(e){e&&Object(d["G"])({musicGroupId:t.$route.query.id,expireDate:t.extendForm.expireDate}).then((function(e){200==e.code?(t.$message.success("延长缴费成功"),t.extendPaymentStatus=!1,t.getList()):t.$message.error(e.msg)}))}))},removeBatchNo:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(y["m"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(y["n"])(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["vc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?u()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?u()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getTeamInfo(),e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,r=new Date(a.replace(/-/g,"/"));r=new Date(1e3*(r/1e3+86400*t));var i=r.getFullYear()+"-"+(r.getMonth()+1)+"-"+r.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.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:this.getTeamInfo(),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),onPreview:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){var a,r=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.dialogCalenderId=t.id,a=this.$route.query.id,Object(d["K"])({musicGroupId:a}).then((function(e){if(200==e.code){if(r.dialogSubjectList=e.data.musicGroupSubjectPlans,r.dialogSubjectList.length<=0)return void r.$message.error("请先设置声部信息");r.activeName=r.dialogSubjectList[0].subjectId.toString(),r.dialogSubjectVisible=!0}else r.$message.warning("没有可预览的声部")}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),approval:function(){var e=this;this.$confirm("是否审核通过?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["h"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("审核通过"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))}))})).catch((function(){}))},refuse:function(){var e=this;this.$prompt("请输入拒绝原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var a=t.value;a?Object(d["g"])({musicGroupId:e.teamid,memo:a}).then((function(t){200==t.code&&(e.$message.success("已拒绝"),e.$store.dispatch("delVisitedViews",e.$route),e.$router.push({path:"/teamList",query:{search:e.Fsearch,rules:e.Frules}}))})):e.$message.error("请输入驳回原因")}))},applyDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}}},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())}}},U=M,V=(a("29fe"),Object(D["a"])(U,r,i,!1,null,"0e1dd216",null));t["a"]=V.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=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 s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=s(),o=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var s=Math.easeInOutQuad(c,n,o,t);i(s),c<t?r(e):a&&"function"===typeof a&&a()};u()}},"160b":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n}));a("b775");var r=a("829b"),i="/api-web";function s(e){return Object(r["a"])({url:i+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function n(e){return Object(r["a"])({url:i+"/musicGroup/queryPage",method:"post",data:e,requestType:"form",hideLoading:!0})}},1672:function(e,t,a){"use strict";a.d(t,"l",(function(){return i})),a.d(t,"r",(function(){return s})),a.d(t,"q",(function(){return n})),a.d(t,"s",(function(){return o})),a.d(t,"p",(function(){return l})),a.d(t,"k",(function(){return c})),a.d(t,"i",(function(){return u})),a.d(t,"n",(function(){return p})),a.d(t,"o",(function(){return m})),a.d(t,"m",(function(){return d})),a.d(t,"w",(function(){return h})),a.d(t,"t",(function(){return f})),a.d(t,"j",(function(){return y})),a.d(t,"u",(function(){return b})),a.d(t,"g",(function(){return v})),a.d(t,"e",(function(){return g})),a.d(t,"h",(function(){return _})),a.d(t,"f",(function(){return S})),a.d(t,"v",(function(){return w})),a.d(t,"b",(function(){return T})),a.d(t,"c",(function(){return P})),a.d(t,"d",(function(){return x})),a.d(t,"a",(function(){return O}));var r=a("829b"),i=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},s=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/createCalender",data:e,method:"post"})},n=function(e){return Object(r["a"])({url:"/api-web/musicGroupCalenderRefundPeriod/batchUpdate",data:e,method:"post"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/updateCalender",data:e,method:"post"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/getDetail",data:{},params:e,method:"get"})},c=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},u=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},p=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},m=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})},d=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/delByBatchNo",params:e,method:"post"})},h=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/revoke",data:{},params:e,method:"post"})},f=function(e){return Object(r["a"])({url:"/api-web/musicGroupOrganizationCourseSettingsDetail/queryByMusicGroupOrganizationCourseSettingsId",data:{},params:e,method:"get"})},y=function(e){return Object(r["a"])({url:"/api-web/musicGroupPaymentCalender/makesureSchoolePaid",data:e,method:"post",requestType:"form"})},b=function(e){return Object(r["a"])({url:"/api-web/organizationCourseDurationSettings/queryByOrganId",data:{},params:e,method:"get",requestType:"form"})},v=function(e){return Object(r["a"])({url:"/api-web/memberFeeSetting/findByRankId",data:{},params:e,method:"get",requestType:"form"})},g=function(e){return Object(r["a"])({url:"/api-web/memberRankSetting/findAll",method:"get",params:e})},_=function(e){return Object(r["a"])({url:"/api-web/memberRankSetting/queryTree",method:"get",params:e})},S=function(e){return Object(r["a"])({url:"/api-web/tenantConfig/autoActivationFlag",method:"get",params:e})},w=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/queryInactive",method:"post",data:e})},T=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/cancelInactive",method:"post",data:e})},P=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/pay",method:"post",data:e})},x=function(e){return Object(r["a"])({url:"/api-web/cloudTeacherOrder/payCheck",method:"get",hideLoading:!0,params:e})},O=function(e){return Object(r["a"])({url:"/api-web/goods/queryPage",method:"get",params:e})}},"1fe7":function(e,t,a){"use strict";a.r(t);var r=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("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"}},[a("resetPayList",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}})],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetSound")?a("el-tab-pane",{attrs:{label:"学校缴费",name:"2"}},[2==e.activeIndex?a("resetPayListSchool",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}}):e._e()],1):e._e()],1),e._v(" "),a("div",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.goHome}},[e._v("确定")])],1)],1)},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=(a("7f7f"),a("070d")),l=a("f610"),c=a("ec8a"),u=a("1cc7"),p={name:"createPayment",components:{resetPayList:o["a"],resetPayListSchool:l["a"]},data:function(){var e=this.$route.query;return{teamName:e.name,musicGroupId:e.id,activeIndex:"1",baseInfo:{}}},mounted:function(){this.getList()},methods:{permission:c["a"],handleClick:function(e){this.activeIndex=e.name},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})},getList:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(u["Qb"])({musicGroupId:this.musicGroupId}).then((function(e){200==e.code&&(t.baseInfo=e.data)}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),goHome:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})}}},m=p,d=a("2877"),h=Object(d["a"])(m,r,i,!1,null,null,null);t["default"]=h.exports},"23f0":function(e,t,a){},2677:function(e,t,a){},"29fe":function(e,t,a){"use strict";a("4217")},"2be0":function(e,t,a){"use strict";a("5686")},"2e3a":function(e,t,a){},3078:function(e,t,a){"use strict";a.d(t,"g",(function(){return i})),a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return l})),a.d(t,"j",(function(){return c})),a.d(t,"h",(function(){return u})),a.d(t,"o",(function(){return p})),a.d(t,"n",(function(){return m})),a.d(t,"k",(function(){return d})),a.d(t,"m",(function(){return h})),a.d(t,"e",(function(){return f})),a.d(t,"f",(function(){return y})),a.d(t,"i",(function(){return b})),a.d(t,"l",(function(){return v}));var r=a("829b"),i=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},s=function(e){return Object(r["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(r["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},l=function(e){return Object(r["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/getRegisterOrPreList",params:e,method:"get",requestType:"json"})},p=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/setNoneCloudTeacher",params:e,method:"get",requestType:"json"})},m=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/setCloudTeacherToFailed",params:e,method:"post",requestType:"json"})},d=function(e){return Object(r["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},h=function(e){return Object(r["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})},f=function(e){return Object(r["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/queryPage",params:e,method:"get",requestType:"form"})},y=function(e){return Object(r["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/musicEnlightenmentQuestionnaireStat",params:e,method:"get",requestType:"form"})},b=function(e){return Object(r["a"])({url:"/api-web/sysMessageConfig/getWithType",params:e,method:"get",requestType:"form"})},v=function(e){return Object(r["a"])({url:"/api-web/musicEnlightenmentQuestionnaire/sendParentMeetingNotice",params:e,method:"post",requestType:"form"})}},"31f0":function(e,t,a){e.exports=a.p+"static/img/yunTrain_bg.ff0ffe89.png"},"328e":function(e,t,a){},"346a":function(e,t,a){"use strict";a("67c9")},"347d":function(e,t,a){},"36c9":function(e,t,a){},3762:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.calender&&"ADD_STUDENT"===e.calender.paymentType?a("el-alert",{staticClass:"alert",attrs:{title:"学员信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.calender&&"ADD_STUDENT"===e.calender.paymentType?a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"学员姓名:"}},[e._v(e._s(e.username))]),e._v(" "),a("descriptions-item",{attrs:{label:"手机号码:"}},[e._v(e._s(e.phone))])],1):e._e(),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"申请信息",closable:!1,type:"info"}}),e._v(" "),a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"分部名称:"}},[e._v(e._s(e.calender.organName))]),e._v(" "),a("descriptions-item",{attrs:{label:"乐团名称:"}},[a("overflow-text",{attrs:{text:e.calender.musicGroupName,width:"100%"}})],1),e._v(" "),a("descriptions-item",{attrs:{label:"乐团编号:"}},[a("copy-text",[e._v(e._s(e.calender.musicGroupId))])],1),e._v(" "),a("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.calender.createTime))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.calender.paymentType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.calender.payUserType)))]),e._v(" "),e.calenderFeeJson&&e.calenderFeeJson.sutdentNumber&&"STUDENT"==e.calender.calenderFeeType?a("descriptions-item",{attrs:{label:"学生人数:"}},[e._v(e._s(e.calenderFeeJson.sutdentNumber))]):e._e(),e._v(" "),e.calenderFeeJson&&e.calenderFeeJson.allTotal?a("descriptions-item",{attrs:{label:"缴费总金额:"}},[e._v(e._s(e.numeral(e.calenderFeeJson.allTotal).format("0,0")))]):e._e(),e._v(" "),e.calenderFeeJson&&e.calenderFeeJson.discountTotal?a("descriptions-item",{attrs:{label:"优惠金额:"}},[e._v(e._s(e.numeral(e.calenderFeeJson.discountTotal).format("0,0")))]):e._e(),e._v(" "),a("descriptions-item",{attrs:{label:"实缴金额"}},[e._v(e._s(e.numeral(e.calender.currentTotalAmount).format("0,0")))]),e._v(" "),"SCHOOL"==e.calender.payUserType?a("descriptions-item",{attrs:{label:"缴费单号:"}},[e._v(e._s(e.calender.id))]):e._e(),e._v(" "),"SCHOOL"!==e.calender.payUserType?a("descriptions-item",{attrs:{span:3,label:"缴费日期:"}},[e._v(e._s(e._f("dayjsFormat")(e.calender.startPaymentDate))+" -\n "+e._s(e._f("dayjsFormat")(e.calender.deadlinePaymentDate)))]):e._e(),e._v(" "),a("descriptions-item",{staticStyle:{"border-bottom":"none !important"},attrs:{span:3,label:"备注:"}},[a("span",{staticStyle:{display:"inline-block","max-width":"100%"}},[a("overflow-text",{attrs:{text:e.calender?e.calender.memo:null}})],1)])],1),e._v(" "),e.course&&e.course.length>0?a("el-alert",{staticClass:"alert",attrs:{title:"乐团课",closable:!1,type:"info"}}):e._e(),e._v(" "),e.course&&e.course.length>0&&e.course[0].name?a("descriptions",{attrs:{column:3}},[e.course[0].name?a("descriptions-item",{attrs:{span:2,label:"收费标准:"}},[e._v(e._s(e.course[0].name))]):e._e()],1):e._e(),e._v(" "),e.course&&e.course.length?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.course,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"courseType",label:"课程信息",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),a("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}],null,!1,1952871020)}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)",width:"150px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"售价(元)",width:"100px"}},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"100px"}}),e._v(" "),a("el-table-column")],1):e._e(),e._v(" "),e.musicMerger.length?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicMerger,stripe:""}},[a("el-table-column",{attrs:{prop:"username",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),a("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}],null,!1,1952871020)}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTime",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"售价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseCurrentPrice))+"\n ")])]}}],null,!1,3280898274)},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")(t.row.courseOriginalPrice))+"\n ")])]}}],null,!1,2255639858)})],1):e._e(),e._v(" "),e.member.length>0?a("el-alert",{staticClass:"alert",attrs:{title:"学练宝",closable:!1,type:"info"}}):e._e(),e._v(" "),e.member.length>0?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.member,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"name",label:"学练宝版本",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"optionalFlag",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.optionalFlag?"是":"否"))]}}],null,!1,3883886131)}),e._v(" "),a("el-table-column",{attrs:{prop:"autoActivationFlag",label:"自动激活",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.autoActivationFlag?"是":"否"))]}}],null,!1,655522214)}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"会员周期",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("memberEnumType")(t.row.period))+"\n ")])]}}],null,!1,3167416822)}),e._v(" "),a("el-table-column",{attrs:{prop:"num",label:"数量",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"actualAmount",label:"团购价(元)",width:"120"}},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 团购价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"originalAmount",label:"原价(元)"}}),e._v(" "),a("el-table-column")],1):e._e(),e._v(" "),e.repair&&e.repair.calenderId?a("el-alert",{staticClass:"alert",attrs:{title:"乐保",closable:!1,type:"info"}}):e._e(),e._v(" "),e.repair&&e.repair.calenderId?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:[Object.assign({},e.repair)],stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"name",label:"服务",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("乐器保养")])]}}],null,!1,4257167650)}),e._v(" "),a("el-table-column",{attrs:{label:"年限",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.num))]}}],null,!1,1973759915)}),e._v(" "),a("el-table-column",{attrs:{prop:"num",label:"数量",width:"100px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"actualAmount",label:"售价(元)",width:"100px"}},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"originalAmount",label:"原价(元)"}})],1):e._e(),e._v(" "),e.activity&&e.activity.length>0?a("el-alert",{staticClass:"alert",attrs:{title:"乐团活动",closable:!1,type:"info"}}):e._e(),e._v(" "),e.activity&&e.activity.length>0?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.activity,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"activityName",label:"活动方案",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"optionalFlag",label:"是否必选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.optionalFlag?"是":"否"))]}}],null,!1,3883886131)}),e._v(" "),a("el-table-column",{attrs:{label:"活动课程",prop:"categoryName",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.categoryName))]}}],null,!1,2585482186)}),e._v(" "),a("el-table-column",{attrs:{prop:"num",label:"数量",width:"100px"}}),e._v(" "),a("el-table-column",{attrs:{prop:"actualAmount",label:"售价(元)",width:"100px"}},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 售价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{attrs:{prop:"originalAmount",label:"原价(元)"}})],1):e._e(),e._v(" "),e.calenderFeeJson&&e.calenderFeeJson.teacherFeeList&&"TEACHER"==e.calender.calenderFeeType?a("el-alert",{staticClass:"alert",attrs:{title:"老师及课程配置",closable:!1,type:"info"}}):e._e(),e._v(" "),e.calenderFeeJson&&e.calenderFeeJson.teacherFeeList&&"TEACHER"==e.calender.calenderFeeType?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.calenderFeeJson.teacherFeeList,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"courseType",label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],null,!1,3837642631)}),e._v(" "),a("el-table-column",{attrs:{prop:"teacherNumber",label:"老师人数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseNumber",label:"课程数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"单课时售价(元)"}})],1):e._e(),e._v(" "),e.goods&&e.goods.length>0?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.goods,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"goodsName",label:"商品名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.goodsName)+"\n ")]}}],null,!1,2530940906)}),e._v(" "),a("el-table-column",{attrs:{prop:"goodsSn",label:"商品货号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"singlePrice",label:"采购价格"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",label:"采购数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"totalPrice",label:"总价格"}})],1):e._e(),e._v(" "),e.address&&e.address.id?a("el-alert",{staticClass:"alert",attrs:{title:"收货信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.address&&e.address.id?a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"收货人:"}},[e._v(e._s(e.address.name))]),e._v(" "),a("descriptions-item",{attrs:{label:"手机号:"}},[e._v(e._s(e.address.phone))]),e._v(" "),a("descriptions-item",{attrs:{label:"详细地址:",span:2}},[e._v("\n "+e._s(e.address.provinceName)+" "+e._s(e.address.cityName)+"\n "+e._s(e.address.regionName)+"\n "+e._s(e.address.address)+"\n ")])],1):e._e(),e._v(" "),e.calenderRefundPeriods&&e.calenderRefundPeriods.length>0?a("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}):e._e(),e._v(" "),e.calenderRefundPeriods&&e.calenderRefundPeriods.length>0?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.calenderRefundPeriods,stripe:"","header-cell-style":{background:"#EDEEF0",color:"#444"}}},[e.calender&&"GOODS_PURCHASE"===e.calender.paymentType?a("el-table-column",{attrs:{prop:"responsiblePersonName",label:"责任人"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.responsiblePersonName)+"\n ("+e._s(t.row.responsiblePersonPhone)+")\n ")]}}],null,!1,3396876824)}):e._e(),e._v(" "),a("el-table-column",{attrs:{prop:"refundAmount",label:"回款金额"}}),e._v(" "),a("el-table-column",{attrs:{prop:"refundDate",label:"回款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return["NO"==e.calender.status||"OPEN"==e.calender.status||"OVER"==e.calender.status||"PAID"==e.calender.status?a("div",[e._v("\n "+e._s(t.row.refundFlag?"已回款":"回款中")+"\n ")]):a("div",[e._v("\n --\n ")])]}}],null,!1,3468044804)}),e._v(" "),a("el-table-column",{attrs:{prop:"refundDate",label:"回款时间"}})],1):e._e()],1)},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=(a("7f7f"),a("5530")),l=a("2b0e"),c=a("6612"),u=a.n(c),p=a("1672"),m=a("ddec"),d=a("837c");l["default"].use(m["a"]);var h={calender:{},activity:[],musicGroupPaymentCalenderStudentDetails:[],course:[],member:[],goods:[],address:{},repair:{},musicMerger:[],studentNum:0,phone:"",username:"",calenderRefundPeriods:[]},f={components:{Item:d["a"]},props:["detail"],data:function(){return Object(o["a"])({payVisible:!1},h)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""},calenderFeeJson:function(){var e,t=null===(e=this.calender)||void 0===e?void 0:e.calenderFeeJson;return t?JSON.parse(t):null}},mounted:function(){this.init()},methods:{numeral:u.a,init:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t,a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(p["p"])({id:this.detail.id,musicGroupId:this.detail.musicGroupId});case 3:for(a in t=e.sent,h)h.hasOwnProperty(a)&&(this[a]=t.data[a]);consoe.log(this),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},y=f,b=(a("6287"),a("2877")),v=Object(b["a"])(y,r,i,!1,null,"4d1a24fe",null);t["a"]=v.exports},"38ab":function(e,t,a){"use strict";a("5ea6")},"3fa6":function(e,t,a){"use strict";a("a731")},4217:function(e,t,a){},"4c9b":function(e,t,a){"use strict";a("2677")},5513:function(e,t,a){"use strict";a("328e")},5686:function(e,t,a){},"5b17":function(e,t,a){"use strict";a("347d")},"5ea6":function(e,t,a){},"5ead":function(e,t,a){"use strict";a("b294")},6193:function(e,t,a){"use strict";a("aa6f")},6287:function(e,t,a){"use strict";a("9391")},"62f6":function(e,t,a){"use strict";a("9112")},"67c9":function(e,t,a){},"704d":function(e,t,a){"use strict";var r=a("c7eb"),i=(a("96cf"),a("1da1")),s=a("2909"),n=a("5530"),o=a("2f62"),l=a("1cc7"),c=new o["a"].Store({state:{res:null,baseInfo:null,musicGroup:{},sounds:[]},mutations:{updateBaseinfo:function(e,t){e.res=t,e.baseInfo=t.data,t.data.musicGroup?e.musicGroup=Object(n["a"])({},t.data.musicGroup):e.musicGroup={}},updateSound:function(e,t){e.sounds=Object(s["a"])(t)}},actions:{getBaseInfo:function(){var e=Object(i["a"])(Object(r["a"])().mark((function e(t,a){var i,s,n,o;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.commit,s=t.state,e.prev=1,(null===(n=a.data)||void 0===n?void 0:n.musicGroupId)===s.musicGroup.id&&!a.force){e.next=8;break}return e.next=5,Object(l["Qb"])(a.data);case 5:return o=e.sent,i("updateBaseinfo",o),e.abrupt("return",Promise.resolve(o));case 8:return e.abrupt("return",Promise.resolve(s.res));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}(),getFindSound:function(){var e=Object(i["a"])(Object(r["a"])().mark((function e(t,a){var i,s,o;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=t.commit,s=t.state,e.prev=1,!s.sounds.length){e.next=4;break}return e.abrupt("return",Promise.resolve(s.sounds));case 4:return e.next=6,Object(l["M"])(Object(n["a"])({},a.data));case 6:return o=e.sent,i("updateSound",o.data),e.abrupt("return",Promise.resolve(s.sounds));case 11:e.prev=11,e.t0=e["catch"](1);case 13:return e.abrupt("return",Promise.reject());case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));function t(t,a){return e.apply(this,arguments)}return t}()}});t["a"]=c},"73b3":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("teambaseinfo"),e._v(" "),a("div",{staticClass:"wrap"},["look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)],1)])])},i=[],s=(a("1cc7"),a("80b0")),n=a("bc3a"),o=a.n(n),l=a("4328"),c=a.n(l),u=a("5f87"),p=a("3908"),m={components:{teambaseinfo:s["a"]},name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:"",teamTeacherName:"",ownershipType:"",repairUserName:""},name:"",processList:[],lookType:""}},created:function(){},activated:function(){},methods:{musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(u["b"])(),tenantId:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);if(403==r.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(r.msg)}else{var i=URL.createObjectURL(a),s=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),l=e.$route.query.id+"-"+o+"订货清单.xls";s.href=i,s.setAttribute("download",l),document.body.appendChild(s),s.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))},musicalListDetailExport:function(){var e=this,t="/api-web/order/musicalListDetailExport",a={musicGroupId:this.$route.query.id},r={method:"POST",headers:{Authorization:Object(u["b"])(),tenantId:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(r).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(t){if(-1!=t.indexOf("code")){var r=JSON.parse(t);if(403==r.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);e.$message.error(r.msg)}else{var i=URL.createObjectURL(a),s=document.createElement("a"),n=new Date,o=n.getFullYear()+""+(n.getMonth()+1)+n.getDate()+n.getHours()+n.getMinutes(),l=e.$route.query.id+"-"+o+"分发清单.xls";s.href=i,s.setAttribute("download",l),document.body.appendChild(s),s.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},d=m,h=(a("4c9b"),a("2877")),f=Object(h["a"])(d,r,i,!1,null,"74af3a8d",null);t["a"]=f.exports},"73bb":function(e,t,a){"use strict";a("0703")},"7a3c":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[e.hideMoney?e._e():a("el-form-item",{attrs:{label:"课程金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:0,min:0,disabled:e.isDisabled,placeholder:"请输入缴费金额"},on:{change:e.paymentAmountChange},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),e.isUserType?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e()],1)},i=[],s=(a("ed08"),{props:["form","className","isUserType","isDisabled","isCommon","hidePaymentPattern","hideMoney","courseViewType","paymentType"],data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}}}},mounted:function(){},methods:{paymentAmountChange:function(){this.$set(this.form,"changeed",!0)}}}),n=s,o=(a("bc63"),a("2877")),l=Object(o["a"])(n,r,i,!1,null,"335a3792",null);t["a"]=l.exports},"80b0":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("el-form",{ref:"topinfo",attrs:{model:e.topFrom,"label-width":"150px",inline:!0,"label-position":"right"}},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),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:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{staticClass:"width400",attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费模式",prop:"courseViewType",rules:[{required:!0,message:"收费模式不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.courseViewType,callback:function(t){e.$set(e.topFrom,"courseViewType","string"===typeof t?t.trim():t)},expression:"topFrom.courseViewType"}},e._l(e.courseViewTypeList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:Number(t.value),disabled:e.checkCourseView(Number(t.value))}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled||e.cooperDisabled,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:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 教学地点\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 如果已生成课表,则会修改未上课时的教学点\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-select",{attrs:{filterable:"",clearable:"",disabled:!e.topFrom.section||e.basdisabled},model:{value:e.topFrom.address,callback:function(t){e.$set(e.topFrom,"address","string"===typeof t?t.trim():t)},expression:"topFrom.address"}},e._l(e.addList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),1==e.tenantId?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._e(),e._v(" "),1==e.tenantId?a("el-form-item",{attrs:{label:"课外练习布置老师",prop:"extracurricularTeacher"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.extracurricularTeacher,callback:function(t){e.$set(e.topFrom,"extracurricularTeacher","string"===typeof t?t.trim():t)},expression:"topFrom.extracurricularTeacher"}},[a("el-option",{attrs:{label:"声部班老师",value:"NORMAL"}}),e._v(" "),a("el-option",{attrs:{label:"合奏班老师",value:"MIX"}})],1)],1):e._e(),e._v(" "),1==e.tenantId?a("el-form-item",{attrs:{label:"年级分部",prop:"gradeType",rules:[{required:!0,message:"请选择年级分部"}]}},[a("el-select",{attrs:{disabled:e.basdisabled},on:{change:function(){e.$forceUpdate()}},model:{value:e.topFrom.gradeType,callback:function(t){e.$set(e.topFrom,"gradeType","string"===typeof t?t.trim():t)},expression:"topFrom.gradeType"}},[a("el-option",{attrs:{label:"小学团",value:"PRIMARY"}}),e._v(" "),a("el-option",{attrs:{label:"初中团",value:"MIDDLE"}}),e._v(" "),a("el-option",{attrs:{label:"高中团",value:"HIGH"}}),e._v(" "),a("el-option",{attrs:{label:"混合团",value:"MIXED"}})],1)],1):e._e(),e._v(" "),a("div",{staticClass:"head"},[e._v("人员配置:")]),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!0,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.userName,value:Number(t.userId)}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:!e.topFrom.section||e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.teacherList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.realName,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.realName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.id)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(t,r){return a("el-option",{key:r,attrs:{label:t.userName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"衔接老师",prop:"transactionTeacherId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.transactionTeacherId,callback:function(t){e.$set(e.topFrom,"transactionTeacherId","string"===typeof t?t.trim():t)},expression:"topFrom.transactionTeacherId"}},e._l(e.transactionList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.userName,value:t.userId}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.userName))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(String(t.userId)))])])})),1)],1),e._v(" "),1==e.tenantId?a("div",[a("div",{staticClass:"head"},[e._v("建团信息:")]),e._v(" "),a("el-form-item",{attrs:{label:"建团编制",prop:"musicGroupPlanMakingId",rules:[{required:!0,message:"建团编制不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.musicGroupPlanMakingId,callback:function(t){e.$set(e.topFrom,"musicGroupPlanMakingId","string"===typeof t?t.trim():t)},expression:"topFrom.musicGroupPlanMakingId"}},e._l(e.musicGroupPlanMakingList,(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:"firstRecruitGrade",rules:[{required:!0,message:"成团年级不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled||!e.topFrom.section,clearable:"",multiple:""},on:{change:function(){e.topFrom.graduateGrade=null}},model:{value:e.topFrom.firstRecruitGrade,callback:function(t){e.$set(e.topFrom,"firstRecruitGrade","string"===typeof t?t.trim():t)},expression:"topFrom.firstRecruitGrade"}},e._l(e.gradeList,(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:"defaultChargeStandard",rules:[{required:!0,message:"收费标准不能为空"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入收费标准",disabled:e.basdisabled},model:{value:e.topFrom.defaultChargeStandard,callback:function(t){e.$set(e.topFrom,"defaultChargeStandard","string"===typeof t?t.trim():t)},expression:"topFrom.defaultChargeStandard"}},[a("i",{staticClass:"el-input__icon",staticStyle:{"padding-right":"5px"},attrs:{slot:"suffix"},slot:"suffix"},[e._v("元")])])],1),e._v(" "),a("el-form-item",{attrs:{label:"单次练习时长",prop:"singleTrainMinutes",rules:[{required:!0,message:"请输入单次练习时长"},{pattern:/(^[0-9+]*$)/,message:"请输入正确的时长"}]}},[a("el-select",{ref:"singleTrainMinutesRef",attrs:{filterable:"",disabled:e.basdisabled,"allow-create":"","default-first-option":"",clearable:""},on:{blur:e.onSingleTrainMin},model:{value:e.topFrom.singleTrainMinutes,callback:function(t){e.$set(e.topFrom,"singleTrainMinutes","string"===typeof t?t.trim():t)},expression:"topFrom.singleTrainMinutes"}},e._l(e.singleTrainMinutesList,(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:"coursePlan",rules:[{required:!0,message:"请选择课程配置"}]}},[a("el-select",{ref:"coursePlanRef",attrs:{filterable:"",disabled:e.basdisabled,"allow-create":"","default-first-option":"",clearable:""},on:{blur:e.onCoursePlan},model:{value:e.topFrom.coursePlan,callback:function(t){e.$set(e.topFrom,"coursePlan","string"===typeof t?t.trim():t)},expression:"topFrom.coursePlan"}},e._l(e.coursePlanList,(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:"graduateGrade",rules:[{required:!0,message:"毕业年级不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled||!e.topFrom.firstRecruitGrade,clearable:""},model:{value:e.topFrom.graduateGrade,callback:function(t){e.$set(e.topFrom,"graduateGrade","string"===typeof t?t.trim():t)},expression:"topFrom.graduateGrade"}},e._l(e.gradeList,(function(t,r){return a("el-option",{key:r,attrs:{label:t.label,value:t.value,disabled:t.value<=(e.topFrom.firstRecruitGrade.length>0?Math.max.apply(Math,e.topFrom.firstRecruitGrade):0)}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"学生基数",prop:"graduateGrade"}},[a("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:e.topFrom.basicStudentNum,callback:function(t){e.$set(e.topFrom,"basicStudentNum",t)},expression:"topFrom.basicStudentNum"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方",prop:"paymentUserType"}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:function(){e.topFrom.chargeMode=""}},model:{value:e.topFrom.paymentUserType,callback:function(t){e.$set(e.topFrom,"paymentUserType","string"===typeof t?t.trim():t)},expression:"topFrom.paymentUserType"}},[a("el-option",{attrs:{label:"学校",value:"SCHOOL"}}),e._v(" "),a("el-option",{attrs:{label:"学员",value:"STUDENT"}}),e._v(" "),a("el-option",{attrs:{label:"第三方",value:"THIRDPARTY"}})],1)],1),e._v(" "),"STUDENT"!=e.topFrom.paymentUserType?a("el-form-item",{attrs:{label:"计费方式",prop:"chargeMode"}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.chargeMode,callback:function(t){e.$set(e.topFrom,"chargeMode","string"===typeof t?t.trim():t)},expression:"topFrom.chargeMode"}},[a("el-option",{attrs:{label:"学员计费",value:"STUDENT"}}),e._v(" "),a("el-option",{attrs:{label:"老师计费",value:"TEACHER"}})],1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"销售活动",prop:"saleActivityDesc"}},[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入销售活动",maxlength:100,"show-word-limit":"",type:"textarea",rows:3,disabled:e.basdisabled},model:{value:e.topFrom.saleActivityDesc,callback:function(t){e.$set(e.topFrom,"saleActivityDesc","string"===typeof t?t.trim():t)},expression:"topFrom.saleActivityDesc"}})],1)],1):e._e(),e._v(" "),a("div",{staticClass:"head"},[e._v("乐团设置:")]),e._v(" "),a("el-form-item",{attrs:{label:"同步群消息",prop:"homeworkPushFlag","label-width":"200px",rules:[{required:!0,message:"同步群消息不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 开课后练习同步群消息\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 学员提交乐团课后练习时,群聊中是否发送练习提交消息\n ")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-switch",{attrs:{disabled:e.basdisabled,"active-value":1,"inactive-value":0},model:{value:e.topFrom.homeworkPushFlag,callback:function(t){e.$set(e.topFrom,"homeworkPushFlag",t)},expression:"topFrom.homeworkPushFlag"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否赠送辅件",prop:"isGiveAccessories","label-width":"200px",rules:[{required:!0,message:"是否赠送辅件不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v("\n 是否赠送辅件\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("购买管乐AI学练宝是否赠送辅件")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)]},proxy:!0}])},[e._v(" "),a("el-switch",{attrs:{disabled:e.basdisabled,"active-value":"true","inactive-value":"false"},model:{value:e.topFrom.isGiveAccessories,callback:function(t){e.$set(e.topFrom,"isGiveAccessories",t)},expression:"topFrom.isGiveAccessories"}})],1)],1),e._v(" "),a("div",{staticClass:"btnWrap"},[e.basdisabled?e._e():a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n "+e._s("teamDraft"==this.teamStatus?"下一步":"保存")+"\n ")]),e._v(" "),"teamAudit"==this.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext()}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},i=[],s=(a("28a5"),a("a481"),a("ac6a"),a("5df3"),a("7f7f"),a("c7eb")),n=(a("96cf"),a("1da1")),o=a("1cc7"),l=a("5a0c"),c=a.n(l),u=a("7676"),p=a.n(u),m=a("99b4"),d=a("641c"),h=a("92e3"),f=a("61f7"),y=a("84ee"),b=a("879d"),v=[{name:"90+90",id:"90+90"},{name:"90+90+45",id:"90+90+45"}],g=[{name:"PlanS",id:"PlanS"},{name:"PlanA",id:"PlanA"},{name:"PlanB",id:"PlanB"},{name:"PlanC",id:"PlanC"},{name:"PlanD",id:"PlanD"},{name:"PlanE",id:"PlanE"}],_={components:{mergeMusic:b["a"],qrCode:d["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return{classStatus:h["l"],courseViewTypeList:h["w"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:null,name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",homeworkPushFlag:1,isGiveAccessories:0,memberCourseShowFlag:0,isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null,transactionTeacherId:null,extracurricularTeacher:"NORMAL",musicGroupPlanMakingId:"",firstRecruitGrade:[],defaultChargeStandard:"",singleTrainMinutes:"",coursePlan:"",graduateGrade:"",saleActivityDesc:"",basicStudentNum:"",paymentUserType:"",chargeMode:""},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],transactionList:[],addList:[],activeTeam:[],gradeList:[],gradeListObj:null,teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,cooperDisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null,tenantId:"",coursePlanList:g,musicGroupPlanMakingList:[],singleTrainMinutesList:v}},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),console.log("12121212"),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,console.log(this.$route.query.type,"teamStatus"),"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus||"FEE_AUDIT_FAILED"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,"PROGRESS"==this.team_status||"PAUSE"==this.team_status?this.cooperDisabled=!0:this.cooperDisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a,r,i=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=13;break}if(a=this.$helpers.lodash,r=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),console.log(r,this.topFrom),a.isEqual(this.topFrom,r)||!r){e.next=10;break}return e.next=7,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(n["a"])(Object(s["a"])().mark((function e(){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i.gotoNext(t);case 2:return a=e.sent,console.log(a),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})))).catch((function(e){return console.log(e),"close"!=e&&(localStorage.removeItem("".concat(i.teamid,"base")),!0)}));case 7:return e.abrupt("return",e.sent);case 10:return e.abrupt("return",!0);case 11:e.next=15;break;case 13:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),onSingleTrainMin:function(){console.log(this.$refs.singleTrainMinutesRef,"this.$refs.singleTrainMinutesRef"),this.topFrom.singleTrainMinutes=this.$refs.singleTrainMinutesRef.selectedLabel},onCoursePlan:function(){this.topFrom.coursePlan=this.$refs.coursePlanRef.selectedLabel},isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.tenantId=this.$helpers.tenantId,Object(y["c"])().then((function(e){200==e.code&&(t.musicGroupPlanMakingList=e.data)})),this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus||"FEE_AUDIT_FAILED"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,"PROGRESS"==this.team_status||"PAUSE"==this.team_status?this.cooperDisabled=!0:this.cooperDisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var a,r=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==r&&void 0!==r&&r.section)this.topFrom=r,null!==(a=this.topFrom)&&void 0!==a&&a.section&&this.getBaseList(this.topFrom.section);else Object(o["Qb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var i,s=JSON.parse(localStorage.getItem("newTeambase"));s?this.topFrom=s:this.topFrom,null!==(i=this.topFrom)&&void 0!==i&&i.section&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Promise.all([Object(o["gb"])()]).then((function(e){console.log(e,"--------"),200==e[0].code&&(t.sectionList=e[0].data);var a=[];t.sectionList.length<=0?a.push("organ"):t.topFrom.section||(t.$set(t.topFrom,"section",t.sectionList[0].id),t.changeSection(t.sectionList[0].id)),t.$bus.$emit("showguide",a)}))},changeSection:function(e){this.topFrom.teacher=null,this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.topFrom.firstRecruitGrade=[],this.topFrom.graduateGrade="",e&&this.getBaseList(e)},getBaseList:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a,r,i,n,l=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["wb"])({id:t});case 3:n=e.sent,this.educationList=null===n||void 0===n||null===(a=n.data)||void 0===a?void 0:a.EDUCATION,this.technician=null===n||void 0===n||null===(r=n.data)||void 0===r?void 0:r.REPAIR,this.transactionList=null===n||void 0===n||null===(i=n.data)||void 0===i?void 0:i.JOIN_TEACHER,e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:Object(o["Ob"])({organId:t}).then((function(e){200==e.code&&(l.teacherList=e.data)})),Object(o["ib"])({id:t}).then((function(e){var t=e.data;if(l.gradeListObj=e.data,200==e.code&&t)for(var a in t)l.gradeList.push({value:a,label:t[a]})})),Promise.all([Object(m["E"])({organId:t}),Object(m["t"])({organId:t})]).then((function(e){200==e[0].code&&(l.cooperationList=e[0].data),200==e[1].code&&(l.addList=e[1].data);var t=[];l.cooperationList.length<=0&&t.push("cooperationOrgan"),l.addList.length<=0&&t.push("school"),t.length>0&&l.$bus.$emit("showguide",t)}));case 15:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){var t=this;this.topFrom.teacher=null,e&&(console.log(this.cooperationList),this.cooperationList.forEach((function(a){a.id==e&&(console.log(a),t.$set(t.topFrom,"teacher",a.educationUserId),console.log(t.topFrom))}))),console.log("chioseSchool",this.topFrom.teacher)},gotoNext:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a,r=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){r.$refs["topinfo"].validate(function(){var i=Object(n["a"])(Object(s["a"])().mark((function i(n,o){return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n){i.next=5;break}r.$message.error("请填写建团必要参数"),e(!1),i.next=16;break;case 5:if(r.$store.dispatch("topinfo",r.topFrom),"teamAudit"!=r.teamStatus){i.next=10;break}r.$emit("handleClick",{name:"2"}),i.next=16;break;case 10:return r.$emit("getName",r.topFrom.name),i.next=13,r.resetSubmit(t);case 13:a=i.sent,console.log(a,"tempStatus"),e(a);case 16:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){a.$refs["topinfo"].validate(function(){var i=Object(n["a"])(Object(s["a"])().mark((function i(l,u){var m,d;return Object(s["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(l){i.next=5;break}a.$message.error("请填写必要参数"),r(),i.next=26;break;case 5:m=null,i.t0=a.teamStatus,i.next="resetTeam"===i.t0?9:"newTeam"===i.t0?11:"teamList"===i.t0?13:"teamDraft"===i.t0?15:17;break;case 9:return m="PROGRESS",i.abrupt("break",17);case 11:return m="DRAFT",i.abrupt("break",17);case 13:return m=null,i.abrupt("break",17);case 15:return m="DRAFT",i.abrupt("break",17);case 17:if(d={},d.musicGroup={settlementType:a.topFrom.salary,applyExpireDate:a.topFrom.time?c()(a.topFrom.time).format("YYYY-MM-DD HH:mm:ss"):null,cooperationOrganId:a.topFrom.school,courseViewType:a.topFrom.courseViewType,teamTeacherId:a.topFrom.boss,enrollClasses:a.topFrom.startClass.join(","),name:a.topFrom.name,paymentPattern:a.topFrom.paymentPattern,paymentValidStartDate:a.topFrom.paymentValidStartDate?c()(a.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):a.topFrom.paymentValidStartDate,paymentValidEndDate:a.topFrom.paymentValidEndDate?c()(a.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):a.topFrom.paymentValidEndDate,organId:a.topFrom.section,schoolId:a.topFrom.address,id:a.teamid,directorUserId:a.topFrom.head,isClassroomLessons:a.topFrom.isClass,status:m,expectStartGroupDate:a.topFrom.startTime,ownershipType:a.topFrom.ownershipType,repairUserId:a.topFrom.repairUserId||null,feeType:a.topFrom.feeType,transactionTeacherId:a.topFrom.transactionTeacherId,homeworkPushFlag:a.topFrom.homeworkPushFlag,isGiveAccessories:a.topFrom.isGiveAccessories,memberCourseShowFlag:a.topFrom.memberCourseShowFlag,extracurricularTeacher:a.topFrom.extracurricularTeacher,musicGroupPlanMakingId:a.topFrom.musicGroupPlanMakingId,firstRecruitGrade:a.topFrom.firstRecruitGrade.join(","),defaultChargeStandard:a.topFrom.defaultChargeStandard,singleTrainMinutes:a.topFrom.singleTrainMinutes,coursePlan:a.topFrom.coursePlan,graduateGrade:a.topFrom.graduateGrade,saleActivityDesc:a.topFrom.saleActivityDesc,basicStudentNum:a.topFrom.basicStudentNum,paymentUserType:a.topFrom.paymentUserType,chargeMode:a.topFrom.chargeMode,gradeType:a.topFrom.gradeType},"newTeam"==a.teamStatus){i.next=25;break}return i.next=22,Object(o["Bc"])(d).then(function(){var r=Object(n["a"])(Object(s["a"])().mark((function r(i){return Object(s["a"])().wrap((function(r){while(1)switch(r.prev=r.next){case 0:200==i.code&&(localStorage.setItem("".concat(a.teamid,"base"),JSON.stringify(a.topFrom)),a.$emit("getBaseInfo"),"teamDraft"==a.teamStatus?(a.$message.success("保存成功"),t||a.$emit("handleClick",{name:"2"}),e(!0)):a.$message.success("修改乐团成功"),e(!0));case 1:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}());case 22:return i.abrupt("return",i.sent);case 25:Object(o["A"])(d).then((function(e){if(200==e.code){var t=a.$createElement;a.$msgbox({title:"提示",message:t("p",null,[t("p",null,"新乐团基础信息创建完成"),t("p",null,"请设置声部信息")]),type:"warning",confirmButtonText:"是",cancelButtonText:"否",showCancelButton:!0,customClass:"messageBox-prompt-test"}).then((function(){return a.$router.push({query:p()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.$emit("handleClick",{name:"2"}),!0})).catch((function(){return a.$router.push({query:p()(a.$route.query,{type:"teamDraft",id:e.data,team_status:"DRAFT"})},(function(e){console.log(e),e.meta.title="乐团编辑中"})),a.$emit("getName",a.topFrom.name),a.init(),!0}))}}));case 26:case"end":return i.stop()}}),i)})));return function(e,t){return i.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null,homeworkPushFlag:1,isGiveAccessories:!1,memberCourseShowFlag:0,extracurricularTeacher:"NORMAL",musicGroupPlanMakingId:"",firstRecruitGrade:[],defaultChargeStandard:"",singleTrainMinutes:"",coursePlan:"",graduateGrade:"",saleActivityDesc:"",paymentUserType:"",chargeMode:"",basicStudentNum:""},this.$refs["topinfo"].resetFields()},onGoHome:function(){var e=this;this.paymentNum<=0?this.$message.error("当前缴费人数为0,无法开团"):this.$confirm("是否确认开团?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){musicGroupFound({musicGroupId:e.$route.query.id}).then((function(t){200==t.code&&e.onCancel()}))})).catch((function(){}))},payStart:function(){this.paymentStatus=!0},getStudentStatus:function(){var e=this,t={musicGroupId:this.teamid,page:1,rows:9999};this.teamid&&Object(o["Gb"])(t).then((function(t){200==t.code&&t.data.rows.forEach((function(t){2==t.paymentStatus&&(e.paymentNum+=1)}))}))},payDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.applyExpireDate&&t.getTime()<=new Date(e.applyExpireDate.replace(/-/g,"/")).getTime()}}},onStartPayment:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;Object(o["ec"])({musicGroupId:t.teamid,expireDate:t.paymentForm.paymentExpireDate}).then((function(e){200==e.code&&(t.$message.success("开启成功"),t.paymentStatus=!1,t.$store.dispatch("delVisitedViews",t.$route),t.$router.push({path:"/teamList"}))}))}))},applyDate:function(){var e=this;return{firstDayOfWeek:1,disabledDate:function(t){return!!e.paymentExpireDate&&t.getTime()>new Date(e.paymentExpireDate.replace(/-/g,"/")).getTime()}}},extendTime:function(e){this.isPay=e,this.extendForm.expireDate=e?this.paymentExpireDate:this.applyExpireDate,this.extendPaymentStatus=!0},onExtendPayment:function(e,t){var a=this;this.$refs[e].validate((function(e){e&&(t?Object(o["G"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Qb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["F"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Qb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.applyExpireDate=e.data.musicGroup.applyExpireDate,a.setBase(e))}))):a.$message.error(e.msg)})))}))},onCreateQRCode:function(e){var t=this.teamid;if(this.codeStatus=!0,"payment"==e)this.codeTitle="学员报名链接",this.qrCodeUrl=Object(f["e"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(f["f"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(f["e"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:p()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,this.topFrom.transactionTeacherId=e.data.musicGroup.transactionTeacherId||"",this.topFrom.homeworkPushFlag=e.data.musicGroup.homeworkPushFlag,this.topFrom.isGiveAccessories=e.data.musicGroup.isGiveAccessories+"",console.log(this.topFrom.isGiveAccessories,"isGiveAccessories"),this.topFrom.memberCourseShowFlag=e.data.musicGroup.memberCourseShowFlag?1:0,this.topFrom.extracurricularTeacher=e.data.musicGroup.extracurricularTeacher,this.topFrom.musicGroupPlanMakingId=e.data.musicGroup.musicGroupPlanMakingId,this.topFrom.firstRecruitGrade=e.data.musicGroup.firstRecruitGrade?e.data.musicGroup.firstRecruitGrade.split(","):[],this.topFrom.defaultChargeStandard=e.data.musicGroup.defaultChargeStandard,this.topFrom.singleTrainMinutes=e.data.musicGroup.singleTrainMinutes,this.topFrom.coursePlan=e.data.musicGroup.coursePlan,this.topFrom.graduateGrade=e.data.musicGroup.graduateGrade+"",this.topFrom.saleActivityDesc=e.data.musicGroup.saleActivityDesc,this.topFrom.basicStudentNum=e.data.musicGroup.basicStudentNum,this.topFrom.paymentUserType=e.data.musicGroup.paymentUserType,this.topFrom.chargeMode=e.data.musicGroup.chargeMode,this.topFrom.gradeType=e.data.musicGroup.gradeType,localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))},checkCourseView:function(e){return"newTeam"!=this.teamStatus&&"teamDraft"!=this.teamStatus&&(0!=this.topFrom.courseViewType&&1!=this.topFrom.courseViewType&&(0==e||1==e))}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")},showNext:function(){var e=this.teamStatus;return"newTeam"==e||"teamDraft"==e||"teamAudit"==e||"feeAudit"==e}}},S=_,w=(a("6193"),a("f152"),a("2877")),T=Object(w["a"])(S,r,i,!1,null,"6d383cdf",null);t["a"]=T.exports},"81fd":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{background:"#f3f4f8",overflow:"hidden"}},[r("tips"),e._v(" "),e.mypreViewData&&e.mypreViewData.isShowMusicCourseForPay?r("course-model",{attrs:{isShowSalePrice:e.isShowSalePrice,courseViewType:e.courseViewType,courseShowInfo:e.courseShowInfo,remissionCourseFeeStatus:e.remissionCourseFeeStatus,courseInfo:e.courseInfo,trainSmallBg:e.trainSmallBg,serviceValidDate:e.serviceValidDate,cloudTeacherFee:e.cloudTeacherFee,chargeTypeName:e.chargeTypeName,memberCoursePrice:e.memberCoursePrice,memberCourseShowFlag:e.memberCourseShowFlag},on:{onCourseChange:e.onCheckItem,onQuestions:e.onQuestions}}):e._e(),e._v(" "),e.toolsPackage&&e.toolsPackage.length>0&&e.mypreViewData&&e.mypreViewData.isShowMemberForPay?r("member",{attrs:{isShowSalePrice:e.isShowSalePrice,toolsPackage:e.toolsPackage,isGiveAccessories:e.isGiveAccessories,accessStatus:e.accessOries.length>0},on:{onCheckItem:e.onCheckItem}},[e.toolsPackage.length>0?e._l(e.toolsPackage,(function(t,a){return r("div",{key:a},[r("div",{staticClass:"yunTrain"},[r("img",{attrs:{src:e.trainBg}}),e._v(" "),r("div",{staticClass:"toolText"},[r("p",{staticClass:"toolTitle"},[r("span",{staticClass:"title-name"},[e._v(e._s(t.name))]),e._v(" "),r("span",{staticClass:"lookVideo"},[e._v("查看视频"),r("i",{staticClass:"icon_video",on:{click:function(t){e.videoStatus=!0}}})])]),e._v(" "),r("p",{staticClass:"toolDate"},[e._v("\n 购买后根据教学情况激活使用,详情咨询机构老师\n ")])])]),e._v(" "),r("div",{staticClass:"section"},[r("el-row",{staticClass:"title-row"},[r("el-col",{attrs:{span:12}},[e._v("学练宝版本"+e._s(e.isGiveAccessories&&e.accessStatus?"(赠送辅件一套)":null))]),e._v(" "),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("时长")]),e._v(" "),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:7}},[e._v("原价")])],1),e._v(" "),r("div",[r("el-row",{key:a,staticClass:"option-row",staticStyle:{cursor:"default"}},[r("el-col",{staticStyle:{"padding-left":"0.05rem"},attrs:{span:12}},[r("span",{staticStyle:{display:"flex","align-items":"center"}},[e._v("\n "+e._s(t.name)+"\n ")])]),e._v(" "),r("el-col",{attrs:{span:5}},[r("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+e._s(e._f("unitFormat")(t.period)))])]),e._v(" "),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:7}},[r("del",{staticStyle:{color:"#1A1A1A","font-size":"14px",width:"100%"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.originalAmount)))])])],1),e._v(" "),r("el-row",{staticClass:"option-intro"},[r("el-col",{staticStyle:{"padding-left":"0.05rem"},attrs:{span:24}},[e._v("\n "+e._s(t.intro)+"\n ")])],1),e._v(" "),r("div",{staticClass:"paymentSection",on:{click:function(a){return e.onCheckItem(t,"train")}}},[r("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":""]}),e._v(" "),r("div",{staticClass:"paymentPrice"},[r("span",[e._v("优惠价:¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])])])],1)],1)])})):e._e()],2):e._e(),e._v(" "),r("instrument-model",{attrs:{isShowSalePrice:e.isShowSalePrice,instrumentResultList:e.instrumentResultList,buyMaintenance:e.buyMaintenance,trainSmallBg:e.trainSmallBg,courseViewType:e.courseViewType,toolsPackage:e.toolsPackage,organId:e.organId},on:{instrumentF:e.onCheckItem,onQuestions:e.onQuestions}}),e._v(" "),e.instrumentRepair&&e.instrumentRepair.length>0&&e.mypreViewData&&e.mypreViewData.isShowMusicInsuranceForPay?r("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[r("h2",{staticClass:"titles"},[r("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),r("span",[e._v("乐器保养")])]),e._v(" "),r("div",{staticClass:"section"},[r("el-row",{staticClass:"title-row"},[r("el-col",{attrs:{span:e.isShowSalePrice?9:14}},[e._v("服务项目")]),e._v(" "),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("时间")]),e._v(" "),r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("原价")]),e._v(" "),e.isShowSalePrice?r("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("售价")]):e._e()],1),e._v(" "),e._l(e.instrumentRepair,(function(t,a){return r("el-row",{key:a,staticClass:"option-row",nativeOn:{click:function(a){return e.onCheckItem(t)}}},[r("el-col",{attrs:{span:e.isShowSalePrice?9:14}},[r("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":"",t.noSelect?"noSelect":""]}),e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),r("el-col",{attrs:{span:5}},[r("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"(年)")])]),e._v(" "),r("el-col",{attrs:{span:5}},[r("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.originalAmount)))])]),e._v(" "),e.isShowSalePrice?r("el-col",{attrs:{span:5}},[r("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])]):e._e()],1)}))],2)]):e._e(),e._v(" "),r("accessories",{attrs:{isShowSalePrice:e.isShowSalePrice,trainSmallBg:e.trainSmallBg,accessOries:e.accessOries,isGiveAccessories:e.giveAccessoriesStatus},on:{onAuxiliarie:e.onCheckItem}}),e._v(" "),e.activityList&&e.activityList.length>0&&e.mypreViewData&&e.mypreViewData.isShowVipCourseForPay?r("activity",{attrs:{isShowSalePrice:e.isShowSalePrice,trainSmallBg:e.trainSmallBg,activityList:e.activityList},on:{onCheckItem:e.onCheckItem}}):e._e(),e._v(" "),r("el-dialog",{staticClass:"videoDialog",attrs:{title:"视频",visible:e.videoStatus,"modal-append-to-body":!1,"append-to-body":!0,width:"576px"},on:{"update:visible":function(t){e.videoStatus=t}}},[e.videoStatus?r("videoTcplayer",{staticClass:"ql-video",staticStyle:{width:"100%"},attrs:{controls:"controls",src:"https://oss.dayaedu.com/daya/202105/SWmqmvW.mp4",poster:a("df4f")}}):e._e()],1)],1)},i=[],s=(a("456d"),a("7f7f"),a("2909")),n=(a("c5f6"),a("ac6a"),a("c7eb")),o=(a("96cf"),a("1da1")),l=a("8793"),c=a("ec8a"),u=a("1cc7"),p=a("5a0c"),m=a.n(p),d=(a("6612"),function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)}),h=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"paymentTips"},[a("h2",{staticClass:"titleTips",staticStyle:{"padding-top":"12px"}},[e._v("注册说明")]),e._v(" "),a("div",{staticClass:"noticeInfo"},[e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),a("br"),e._v("\n 2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n ")])])}],f=(a("fc99"),a("2877")),y={},b=Object(f["a"])(y,d,h,!1,null,"338c14ea",null),v=b.exports,g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[1==e.courseViewType&&e.courseShowInfo.length>0?[a("div",{staticClass:"yunTrain"},[a("img",{attrs:{src:e.trainBg}}),e._v(" "),a("div",{staticClass:"toolText"},[a("p",{staticClass:"toolTitle"},[e._v("服务")]),e._v(" "),e.serviceValidDate?a("p",{staticClass:"toolDate"},[e._v("\n 服务有效期:"+e._s(e.serviceValidDate)+"\n ")]):e._e()])])]:e._e(),e._v(" "),(0==e.courseViewType||2==e.courseViewType||3==e.courseViewType)&&e.courseInfo.length>0?a("h2",{staticClass:"titles"},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("乐团课程")])]):e._e(),e._v(" "),e.courseInfo?[(0==e.courseViewType||2==e.courseViewType||3==e.courseViewType)&&e.courseInfo.length>0?a("div",{staticClass:"section"},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:e.isShowSalePrice?9:14}},[e._v("课程类型")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("时长")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("原价")]),e._v(" "),e.isShowSalePrice?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("售价")]):e._e()],1),e._v(" "),e._l(e.courseInfo,(function(t,r){return a("el-row",{key:r,staticClass:"option-row",nativeOn:{click:function(a){return e.onCheckItem(t)}}},[a("el-col",{attrs:{span:e.isShowSalePrice?9:14}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"disabled":""]}),"PROJECT"==t.courseType?[e._v(e._s(t.name))]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),a("el-col",{attrs:{span:5}},[a("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.courseTotalMinuties)+"(分钟)")])]),e._v(" "),a("el-col",{attrs:{span:5}},[a("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseOriginalPrice)))])]),e._v(" "),e.isShowSalePrice?a("el-col",{attrs:{span:5}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.remissionCourseFeeStatus?0:t.courseCurrentPrice)))])]):e._e()],1)}))],2):e._e(),e._v(" "),1==e.courseViewType&&e.courseShowInfo.length>0?a("div",{staticClass:"section"},e._l(e.courseShowInfo,(function(t,r){return a("el-row",{key:r,staticClass:"option-row",nativeOn:{click:function(a){return e.onCheckItem(t)}}},[a("el-col",{attrs:{span:16}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.isStudentOptional?"disabled":""]}),e._v(" "),a("span",{staticStyle:{display:"flex","align-items":"center"}},["PROJECT"==t.courseType?[e._v(e._s(e.chargeTypeName)+" ")]:[e._v(e._s(e._f("coursesType")(t.courseType)))]],2),e._v(" "),"PROJECT"==t.courseType?a("el-icon",{attrs:{name:"question"},on:{click:function(t){return t.stopPropagation(),e.onQuestions("amr")}}}):e._e()],1),e._v(" "),a("el-col",{attrs:{span:8}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1)})),1):e._e(),e._v(" "),e.memberCourseShowFlag&&2==e.courseViewType?a("div",{staticClass:"section"},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},[e._v("赠送课程")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[e._v("原价")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[e._v("现价")])],1),e._v(" "),e._l(e.memberCoursePrice,(function(t){return a("el-row",{key:t.name,staticClass:"option-row",staticStyle:{"line-height":"20px","padding-top":"8px","font-size":"12px"}},[a("el-col",{staticStyle:{"padding-left":"24px",color:"#808080",position:"relative"},attrs:{span:12}},[a("i",{staticClass:"small_point"}),e._v(" "+e._s(t.name))]),e._v(" "),a("el-col",{attrs:{span:6}},[a("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])]),e._v(" "),a("el-col",{attrs:{span:6}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))])])],1)}))],2):e._e()]:e._e()],2)},_=[],S={name:"courseModel",props:{courseViewType:[Number,String],courseShowInfo:Array,courseInfo:Array,toolsPackage:Array,trainSmallBg:String,cloudTeacherFee:[Number,String],serviceValidDate:String,chargeTypeName:String,memberCoursePrice:Array,memberCourseShowFlag:Boolean,remissionCourseFeeStatus:Boolean,isShowSalePrice:Boolean},components:{},data:function(){return{trainBg:a("31f0"),videoStatus:!1}},methods:{onCheckItem:function(e){this.$emit("onCourseChange",e)},onQuestions:function(e){this.$emit("onQuestions",e)}}},w=S,T=(a("ef76"),Object(f["a"])(w,g,_,!1,null,"5bf08f6a",null)),P=T.exports,x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"instrumentModel"},[e.instrumentResultList.length>0?a("h2",{staticClass:"titles"},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("乐器")])]):e._e(),e._v(" "),e.instrumentResultList.length>0?a("div",{staticClass:"section"},e._l(e.instrumentResultList,(function(t,r){return a("div",{key:r},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:"LEASE"==t[0]["kitType"]||e.isShowSalePrice?14:19}},["GROUP"==t[0]["kitType"]?[e._v("\n 团购乐器\n ")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("\n 乐器租赁\n ")]:e._e(),e._v(" "),"FREE"==t[0]["kitType"]?[e._v("\n 免费乐器\n ")]:e._e(),e._v(" "),"owned"==t[0]["kitType"]?[e._v("\n 自备乐器\n ")]:e._e()],2),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[["GROUP","LEASE","FREE"].includes(t[0]["kitType"])?[e._v("原价")]:e._e()],2),e._v(" "),["GROUP","FREE"].includes(t[0]["kitType"])&&e.isShowSalePrice?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("\n 售价\n ")]):e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("租赁押金\n ")]):e._e()],1),e._v(" "),e._l(t,(function(t,r){return a("div",{key:r},[a("div",{on:{click:function(a){return e.instrumentF(t)}}},[a("el-row",{staticClass:"option-row"},[a("el-col",{attrs:{span:"LEASE"==t.kitType||e.isShowSalePrice?14:19}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(" "),a("div",[e._v("\n "+e._s(t.name)+"\n ")])]),e._v(" "),a("el-col",{attrs:{span:5}},["owned"!=t.kitType?a("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.marketPrice)))]):e._e()]),e._v(" "),["FREE","GROUP"].includes(t.kitType)&&e.isShowSalePrice?a("el-col",{attrs:{span:5}},["FREE"==t.kitType?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(0)))]):e._e(),e._v(" "),"GROUP"==t.kitType?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(2!=e.courseViewType||55!=e.organId||e.toolsPackages?Number((t.price-t.coupon+t.organShareProfit).toFixed(2)):Number((t.discountPrice-t.coupon+t.organShareProfit).toFixed(2)))))]):e._e()]):e._e(),e._v(" "),"LEASE"==t.kitType?a("el-col",{attrs:{span:5}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))])]):e._e()],1),e._v(" "),a("el-row",{staticStyle:{"padding-left":"26px","margin-bottom":"5px"}},[a("el-col",{attrs:{span:24}},[a("div",{staticStyle:{display:"flex","align-items":"center"}},[t.goodsList?a("div",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v("\n "+e._s(t.goodsList[0].specification)+"\n ")]):e._e(),e._v(" "),1==t.groupRemissionCourseFee&&"GROUP"==t.kitType?a("el-tag",{staticStyle:{"margin-left":"10px",color:"#ff4644","border-color":"#ff4644"},attrs:{effect:"plain",size:"mini"},on:{click:function(t){return t.stopPropagation(),e.onLookRule(t)}}},[e._v("课程减免")]):e._e()],1)])],1)],1)])}))],2)})),0):e._e()])},O=[],k={name:"instrumentModel",props:{courseViewType:[Number,String],instrumentResultList:Array,buyMaintenance:Boolean,trainSmallBg:String,toolsPackage:Array,organId:[Number,String,null],isShowSalePrice:Boolean},methods:{instrumentF:function(e){this.$emit("instrumentF",e,"INSTRUMENT")},onQuestions:function(e){this.$emit("onQuestions",e)}},computed:{toolsPackages:function(){var e=!1;return this.toolsPackage.forEach((function(t){t.isStatus&&(e=!0)})),e}}},F=k,C=(a("03e5"),Object(f["a"])(F,x,O,!1,null,"5524106f",null)),D=C.exports,I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[e.accessOries.length>0?a("h2",{staticClass:"titles"},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("辅件")])]):e._e(),e._v(" "),e.accessOries.length>0?a("div",{key:"accessOries",staticClass:"section"},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:e.isShowSalePrice?14:19}},[e._v("辅件商品")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("原价")]),e._v(" "),e.isShowSalePrice?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("现价")]):e._e()],1),e._v(" "),e._l(e.accessOries,(function(t,r){return a("div",{key:r},[a("el-row",{staticClass:"option-row",nativeOn:{click:function(a){return e.onAuxiliarie(t)}}},[a("el-col",{attrs:{span:e.isShowSalePrice?14:19}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),e._v(e._s(t.name)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:5}},[a("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.goodsList[0]?t.goodsList[0].marketPrice:0)))])]),e._v(" "),e.isShowSalePrice?a("el-col",{attrs:{span:5}},[0==t.price?a("span",{staticStyle:{color:"#1a1a1a"}},[e._v("免费")]):a("span",{staticStyle:{color:"#1a1a1a"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.isGiveAccessories?0:t.price)))])]):e._e()],1),e._v(" "),t.childGoodsList?a("el-row",{staticStyle:{"padding-left":"24px"}},e._l(t.childGoodsList,(function(r,i){return a("el-col",{key:r.id},[a("span",{staticStyle:{"font-size":"12px",color:"#808080"}},[e._v(e._s(r.name)+"\n "+e._s(t.childGoodsList.length-1==i?"":"、"))])])})),1):e._e()],1)}))],2):e._e()])},$=[],j={name:"courseModel",props:{trainSmallBg:String,accessOries:Array,isGiveAccessories:Boolean,isShowSalePrice:Boolean},data:function(){return{}},methods:{onAuxiliarie:function(e){this.$emit("onAuxiliarie",e)}}},E=j,A=(a("e75c"),Object(f["a"])(E,I,$,!1,null,"70eb5954",null)),G=A.exports,N=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[a("h2",{staticClass:"titles"},[a("img",{attrs:{src:e.trainSmallBg}}),e._v(" "),a("span",[e._v("小班课")])]),e._v(" "),a("div",{staticClass:"section"},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:e.isShowSalePrice?9:14}},[e._v("课程类型")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("课程数")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("原价")]),e._v(" "),e.isShowSalePrice?a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5}},[e._v("售价")]):e._e()],1),e._v(" "),e._l(e.activityList,(function(t,r){return a("div",{key:r},[a("el-row",{staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:e.isShowSalePrice?9:14}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":"",t.optionalFlag?"disabled":""]}),e._v(" "),a("span",{staticStyle:{display:"flex","align-items":"center"}},[[e._v(e._s(t.categoryName))]],2)]),e._v(" "),a("el-col",{attrs:{span:5}},[a("span",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v(e._s(t.num)+"(节)")])]),e._v(" "),a("el-col",{attrs:{span:5}},[a("del",{staticStyle:{color:"#808080","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.originalAmount)))])]),e._v(" "),e.isShowSalePrice?a("el-col",{attrs:{span:5}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.actualAmount)))])]):e._e()],1)],1)}))],2)])},L=[],R={name:"courseModel",props:{trainSmallBg:String,activityList:Array,isShowSalePrice:Boolean},methods:{onCourseChange:function(e){this.$emit("onCheckItem",e)}}},M=R,U=(a("ab55"),Object(f["a"])(M,N,L,!1,null,"0965b489",null)),V=U.exports,q=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.toolsPackage.length>0?a("div",{key:"toolsPackage",staticClass:"courseModel",staticStyle:{"margin-top":"12px"}},[e._t("default")],2):e._e()},B=[],Y={name:"MemberModal",components:{videoTcplayer:l["a"]},filters:{unitFormat:function(e){var t={YEAR:"年",MONTH:"月",YEAR_HALF:"半年"};return t[e]}},props:{courseViewType:[Number,String],toolsPackage:Array,trainSmallBg:String,isGiveAccessories:Boolean,accessStatus:Boolean,isShowSalePrice:Boolean},data:function(){return{trainBg:a("31f0"),videoStatus:!1}},watch:{toolsPackage:{handler:function(e){console.log(e,"heandler")},immediate:!0,deep:!0}},methods:{onTrainChange:function(e){this.$emit("onCheckItem",e,"train")},onQuestions:function(e){this.$emit("onQuestions",e)}}},z=Y,H=(a("ef5c"),Object(f["a"])(z,q,B,!1,null,"0342998a",null)),J=H.exports,Q={props:["subjectId","calenderId","preViewData"],components:{Tips:v,courseModel:P,InstrumentModel:D,accessories:G,activity:V,member:J,videoTcplayer:l["a"]},data:function(){var e=this.$route.query;return{videoStatus:!1,trainBg:a("31f0"),trainSmallBg:a("9214"),musicGroupId:e.id,organId:null,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,cloudTeacherFee:0,cloudTeacherPlusFee:0,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0,musicMarketClassFee:0,accessPrice:0,accessMarketPrice:0,goodsPrice:0,goodsMarketPrice:0},toolsPackage:[],instrumentRepair:[],activityList:[],courseInfo:[],courseShowInfo:[],musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,ids:[],instrumentResultList:[],paymentStatus:null,paymentPattern:null,serviceValidDate:null,courseShowStatus:!1,chargeTypeList:[],chargeTypeName:null,courseViewType:0,leBaoStatus:!1,buyMaintenance:!1,isClickStatus:!1,accessStatus:!1,accessIsShowStatus:!1,memberCoursePrice:[],memberCourseShowFlag:!1,buyCloudTeacher:!1,remissionCourseFeeStatus:!1,isGiveAccessories:!1,giveAccessoriesStatus:!1,mypreViewData:{isShowMemberForPay:!0,isShowMusicInsuranceForPay:!0,isShowVipCourseForPay:!0,isShowMusicCourseForPay:!0},isShowSalePrice:!0,formatList:[{title:"双师云教程",monthPrice:330,halfYearPrice:1980},{title:"基础云练",monthPrice:114,halfYearPrice:680},{title:"合奏云练",monthPrice:114,halfYearPrice:680},{title:"独奏云练",monthPrice:114,halfYearPrice:680}],tempNum:{YEAR:12,MONTH:1,QUARTERLY:3,YEAR_HALF:6}}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t,a=this;return Object(n["a"])().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(u["Mb"])(t).then((function(e){var t=e;if(200==t.code){var r=t.data;a.__dataFormat(r)}a.calcPrice()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),__dataFormat:function(e){var t,a=this;this.mypreViewData=this.preViewData&&this.preViewData.paymentCalender?JSON.parse(JSON.stringify(this.preViewData)):{isShowMemberForPay:!0,isShowMusicInsuranceForPay:!0,isShowVipCourseForPay:!0,isShowMusicCourseForPay:!0},console.log(this.preViewData),this.courseViewType=e.musicGroup.courseViewType||0,this.isGiveAccessories=e.musicGroup&&e.musicGroup.isGiveAccessories||!1,this.organId=e.musicGroup.organId;var r=e.musicGroup.status;this.cloudTeacherFee=e.cloudTeacherFee||0,this.cloudTeacherPlusFee=e.cloudTeacherPlusFee||0;var i=e.memberCoursePrice||{};for(var n in i)this.memberCoursePrice.push({name:coursesType[n],price:i[n]});this.memberCourseShowFlag=e.musicGroup.memberCourseShowFlag||!1,this.paymentPattern=2,e.musicGroupPaymentCalender&&(this.paymentPattern=e.musicGroupPaymentCalender.paymentPattern,this.serviceValidDate=m()(e.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+m()(e.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var o=this.mypreViewData&&this.mypreViewData.paymentCalender?this.mypreViewData.paymentCalender:e.paymentCalender||null;if(o&&o.calender&&(this.isShowSalePrice=o.calender.isShowSalePrice||!1,o.calender.paymentItemShowState)){var l=JSON.parse(o.calender.paymentItemShowState);for(var c in l)this.mypreViewData[c]=l[c]}var u=o&&o.course?o.course:[];console.log(o,"paymentCalender");var p=o&&o.member?o.member:[];p.forEach((function(e){e.isStatus=!0})),this.toolsPackage=p;var d=o&&o.repair?o.repair:{};d.name="乐器保养",d.isStatus=!0,this.instrumentRepair=Number(d.actualAmount)?[d]:[];var h=o&&o.activity?o.activity:[];h.map((function(e){e.isStatus=!0})),this.activityList=Object(s["a"])(h),u&&u.length>0&&(u.forEach((function(e){e.isStatus=!0})),this.courseInfo=u),this.musicGroupSubject=e.musicGroupSubjectPlan||[];var f={},y=[],b="SCHOOL"==(null===(t=this.preViewData)||void 0===t?void 0:t.payUserType)||"PROGRESS"==r?[]:e.musicGroupSubjectGoodsGroupList;if(null===b||void 0===b||b.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{},r=function(r){var i=Object.assign({},e);i.marketPrice=i.goodsList[0].marketPrice,i.kitType=r,i.coupon=t[r],i.discountPrice=i.goodsList[0].discountPrice,f.id?(i.isStatus=!1,"GROUP"==r?("GROUP"==f.kitType&&f.price<i.price||"LEASE"==f.kitType||"FREE"==f.kitType)&&(a.instrumentResult.forEach((function(e){e.isStatus=!1})),i.isStatus=!0,f={id:i.id,price:i.price,kitType:r,groupRemissionCourseFee:i.groupRemissionCourseFee}):"LEASE"==r?"LEASE"==f.kitType&&f.price<i.price&&(a.instrumentResult.forEach((function(e){e.isStatus=!1})),i.isStatus=!0,f={id:i.id,price:i.price,kitType:r,groupRemissionCourseFee:i.groupRemissionCourseFee}):"FREE"==r&&"FREE"==f.kitType&&f.price<i.price&&(a.instrumentResult.forEach((function(e){e.isStatus=!1})),i.isStatus=!0,f={id:i.id,price:i.price,kitType:r,groupRemissionCourseFee:i.groupRemissionCourseFee})):(i.isStatus=!0,f={id:i.id,price:i.price,kitType:r,groupRemissionCourseFee:i.groupRemissionCourseFee});var s=[];i.childGoodsList&&i.childGoodsList.length>0&&(i.childGoodsList.forEach((function(e){"INSTRUMENT"!=e.type&&"OTHER"!=e.type&&s.push(e.name)})),i.childGoodsNames=s.join("、")),a.instrumentResult.push(i),y.push(i)};for(var i in t)r(i)}else"ACCESSORIES"==e.type&&(e.isStatus=!0,a.accessOries.push(e))})),this.instrumentResult.length>0){var v=this.groupBy(y,(function(e){return[e.kitType]}));this.instrumentResultList=v,this.instrumentGetStatus(),this.setLeBaoStatus()}this.giveAccessoriesSetStatus(),this.calcPrice(),console.log({toolsPackage:this.toolsPackage,instrumentRepair:this.instrumentRepair,activityList:this.activityList,courseInfo:this.courseInfo,instrumentResult:this.instrumentResult,accessOries:this.accessOries,musicGroupSubject:this.musicGroupSubject}),this.$forceUpdate()},groupBy:function(e,t){var a={};return e.forEach((function(e){var r=JSON.stringify(t(e));a[r]=a[r]||[],a[r].push(e)})),Object.keys(a).map((function(e){return a[e]}))},onQuestions:function(e){"amr"==e?this.$alert("<b>革命性的“AMR器乐练习系统”</b><br />它的诞生是基于世界上最优秀的华人管乐指导专家唐嘉宏先生的教育理念,创新开发的一种新型“音乐感官植入程序”,这个程序抛弃了传统的“数线式识谱、机械式节奏、死记式乐理”,它营造出沉浸式可变速演奏过程,采用画面与音乐刺激序列组合而成的特定场景,在趣味性挑战的反复刺激中逐步促进器乐演奏的三核心:“音质→音准→音型”,从而达成演奏各环节水准的均匀提高,产生永久性条件反射式大脑记忆,将多板块知识融会贯通,让抽象的音乐知识刻入脑海里!<br /><br /><b>本练习系统的特点:</b><br /> 1.轻松快速掌握要点,让练习者沉浸其中,远离枯燥!<br /> 2.不假思索就能瞬间唤起反射式记忆,演奏识谱不再慢吞吞!<br /> 3.真正的实践记忆,摆脱纸上谈兵,与实际演奏紧密结合!<br />4.思维+肌肉的双重强化!无缝整合复习系统!<br /> 5.每条练习都经过严谨的编曲,你以为你只是在练习旋律线?其实是整个乐团在为你伴奏!","AMR器乐练习系统",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}}):"instrument"==e&&this.$alert('<p style="text-align: justify">1.乐器保养是管乐迷针对乐团学员提供的乐器检查、保养及维修优惠特权;<br />2.该特权为包年制,从开通特权之日起365天内有效;<br />3.特权用户可享受管乐迷提供专业的高级乐器维修技师一年不低于两次下校检查乐器使用情况;<br />4.特权有效期内凭该特权绑定的乐器编号可享受保养人工费减免、非返厂维修人工费优惠等特权;<br />感谢您的信任和支持!</p>',"乐器保养特权",{confirmButtonText:"确定",dangerouslyUseHTMLString:!0,callback:function(e){}})},onCheckItem:function(e,t){e.optionalFlag||e.noSelect||("INSTRUMENT"==t&&this.instrumentResultList.forEach((function(t){t.forEach((function(t){(t.id!=e.id||t.id==e.id&&t.kitType!=e.kitType)&&(t.isStatus=!1)}))})),e.isStatus=!e.isStatus,console.log(e.isStatus,"onCheckItem"),"train"==t&&this.giveAccessoriesSetStatus(),this.instrumentGetStatus(),this.setLeBaoStatus(),this.calcPrice(),this.$forceUpdate())},giveAccessoriesSetStatus:function(){var e=!1;this.toolsPackage.forEach((function(t){e=!!t.isStatus})),this.giveAccessoriesStatus=this.isGiveAccessories&&e,this.$forceUpdate()},instrumentGetStatus:function(){var e={};this.instrumentResultList.forEach((function(t){t.forEach((function(t){t.isStatus&&(e=t)}))})),this.remissionCourseFeeStatus="GROUP"==e.kitType&&1==e.groupRemissionCourseFee},setLeBaoStatus:function(){var e=!1;this.instrumentResultList.forEach((function(t){t.forEach((function(t){t.isStatus&&(e=!0)}))})),this.instrumentRepair.forEach((function(t){e?t.noSelect=!1:(t.noSelect=!0,t.isStatus=!1)})),this.$forceUpdate()},calcPrice:function(){var e=this,t=[],a=0,r=0,i=0,s=0,n={},o=[],l=0,c=[],u=[],p=0,m=0,d=0,h=0,f=0,y="",b=this.musicGroupSubject,v=this.courseInfo;b&&v.forEach((function(e){e.isStatus&&(m+=parseFloat(e.courseCurrentPrice),e.id>0&&o.push(e.id),e.isStudentOptional||(f+=parseFloat(e.courseCurrentPrice)),r+=parseFloat(e.courseOriginalPrice))}));var g=this.toolsPackage;g.length>0&&g.forEach((function(t){if(t.isStatus){e.buyCloudTeacher=!0;var i=(e.tempNum[t.period]||1)*t.num,s=0;if(i%6===0){var n=Number(i/6);e.formatList.forEach((function(e){s+=Number(e.halfYearPrice*n)}))}else e.formatList.forEach((function(e){s+=Number(e.monthPrice*i)}));r+=parseFloat(s),a+=parseFloat(t.actualAmount)}else e.buyCloudTeacher=!1}));var _=this.instrumentResult;_.length>0&&_.forEach((function(t){if(t.isStatus){if("自备乐器"!=t.name&&(y+=t.goodsIdList),"FREE"==t.kitType)a+=0,l=0;else if("LEASE"==t.kitType)l=t.coupon,"自备乐器"!=t.name?(a+=t.depositFee,i+=t.depositFee):a+=0;else if("GROUP"==t.kitType){var o=!1;e.toolsPackage.forEach((function(e){e.isStatus&&(o=!0)})),2!=e.courseViewType||55!=e.organId||o?(a+=parseFloat(t.price),i+=parseFloat(t.price),l=t.coupon?t.coupon:0):(a+=parseFloat(t.discountPrice),i+=parseFloat(t.discountPrice),l=t.coupon?t.coupon:0)}"LEASE"==t.kitType?"自备乐器"!=t.name&&(r+=parseFloat(t.marketPrice),s+=t.depositFee):(r+=parseFloat(t.marketPrice),s+=parseFloat(t.marketPrice)),t.id&&(n[t.id]=t.kitType),"GROUP"==t.kitType&&1==t.groupRemissionCourseFee&&(m=parseFloat(m-f))}}));var S=this.instrumentRepair;S.length>0&&S.forEach((function(t){t.isStatus?(e.buyMaintenance=!0,r+=t.originalAmount,a+=parseFloat(t.actualAmount)):e.buyMaintenance=!1})),a+=parseFloat(p+m),this.accessOries.length>0&&this.accessOries.forEach((function(t){t.isStatus&&(d+=e.giveAccessoriesStatus?0:parseFloat(t.price),a+=e.giveAccessoriesStatus?0:parseFloat(t.price),t.goodsList&&t.goodsList.length>0&&t.goodsList.forEach((function(e){h+=parseFloat(e.marketPrice),r+=parseFloat(e.marketPrice)})),n[t.id]="ACCESSORIES")}));var w=this.activityList;w.length>0&&w.forEach((function(e){e.isStatus&&(u.push(e.id),r+=e.originalAmount,a+=parseFloat(e.actualAmount))}));var T=a;this.payCountMoney=a,this.ids=t,this.needPrice=Number(a.toFixed(2)),this.orderInfo={amount:Number(a.toFixed(2)),marketPrice:Number(r.toFixed(2)),groupPurchasePrice:T,couponPrice:l,goodsGroupIds:n,goodsIds:c.join(","),contractGoodsIds:y,buyCalenderActivityId:u,courseKeys:o,musicClassFee:m,accessMarketPrice:h,accessPrice:d,goodsPrice:i,goodsMarketPrice:s}},permission:function(e){return Object(c["a"])(e)}},filters:{unitFormat:function(e){var t={YEAR:"(年)",MONTH:"(月)",YEAR_HALF:"(半年)"};return t[e]}}},W=Q,X=(a("e3d4"),Object(f["a"])(W,r,i,!1,null,"333021a8",null));t["a"]=X.exports},"84ee":function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"b",(function(){return l}));var r=a("829b"),i=(a("4328"),"/api-web");function s(e){return Object(r["a"])({url:i+"/musicGroupPlanMaking/queryAll",method:"get",requestType:"form"})}function n(e){return Object(r["a"])({url:i+"/musicGroupPlanMaking/add",method:"post",data:e})}function o(e){return Object(r["a"])({url:i+"/musicGroupPlanMaking/update",method:"post",data:e})}function l(e){return Object(r["a"])({url:i+"/musicGroupPlanMaking/query",method:"get",requestType:"form",params:e})}},"86e8":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},i=[],s={},n=s,o=a("2877"),l=Object(o["a"])(n,r,i,!1,null,"21abf8f1",null);t["a"]=l.exports},"879d":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"merge-music"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visible=!0}}},[e._v("选择乐团")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.studentsVisible=!0}}},[e._v("学员列表")]),e._v(" "),e.isEmpty?a("empty",{attrs:{desc:"暂未选择乐团"}}):a("el-collapse",{staticClass:"items",on:{change:e.changeActive},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.items,(function(t,r){return a("el-collapse-item",{key:r,staticClass:"item",attrs:{name:r},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"header"},[a("span",{staticClass:"title"},[a("span",[e._v(e._s(t.name))])]),e._v(" "),a("span",{staticStyle:{width:"20%"}},[a("span",[e._v("学员人数:已选"+e._s(t.num)+"人")]),e._v(" "),a("i",{staticClass:"icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.remove(r)}}})])])]},proxy:!0}],null,!0)},[e._v(" "),a("selectItem",{attrs:{active:e.active,id:t.id},on:{selected:e.selected}})],1)})),1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.merge}},[e._v("确认合并")])],1),e._v(" "),a("el-dialog",{attrs:{title:"选择乐团",visible:e.visible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[a("selectMusic",{attrs:{visible:e.visible,organId:e.organId},on:{close:function(t){e.visible=!1},submited:e.submited}})],1),e._v(" "),a("el-dialog",{attrs:{title:"查看已合并学生",visible:e.studentsVisible,width:"700px","append-to-body":""},on:{"update:visible":function(t){e.studentsVisible=t}}},[e.studentsVisible?a("mergedStudents",{on:{close:function(t){e.studentsVisible=!1},submited:e.submited}}):e._e()],1)],1)},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=a("5530"),l=a("b85c"),c=(a("ac6a"),a("456d"),a("160b")),u=a("3078"),p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"container",staticStyle:{width:"100%"}},[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"musicGroupName"}},[a("el-input",{attrs:{clearable:"",placeholder:"乐团名称"},model:{value:e.search.musicGroupName,callback:function(t){e.$set(e.search,"musicGroupName","string"===typeof t?t.trim():t)},expression:"search.musicGroupName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelectable,width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",width:"200px",align:"center",label:"乐团名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"cooperationOrganName","max-width":"274",label:"合作单位"}})],1),e._v(" "),a("pagination",{staticStyle:{padding:"10px"},attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,layout:"prev, pager, next"},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),a("div",{staticClass:"footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submited}},[e._v("确认")])],1)],1)},m=[],d=(a("386d"),a("7f7f"),a("333d")),h={props:["visible","organId"],components:{pagination:d["a"]},data:function(){return{tableData:[],passed:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},search:{musicGroupName:"",hastimer:""}}},mounted:function(){this.FetchList()},watch:{visible:function(){this.$refs.table.clearSelection(),this.passed=[]}},methods:{submit:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.FetchList()},reset:function(e){this.rules.page=1,e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={musicGroupName:"",hastimer:""},this.FetchList()},checkSelectable:function(e){return!0},handleSelectionChange:function(e){var t=[];for(var a in e){var r={};r.id=e[a].id,r.name=e[a].name,t.push(r)}this.passed=t},FetchList:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t,a=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["a"])(Object(o["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==a.$route.query.id})),this.rules.total=t.data.total,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),submited:function(){this.$emit("close"),this.$emit("submited",this.passed)}}},f=h,y=(a("f6ab"),a("2877")),b=Object(y["a"])(f,p,m,!1,null,"a1db0832",null),v=b.exports,g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机/编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"id",width:"100",align:"center",label:"乐团编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsName",align:"center",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentsPhone",align:"center",label:"家长电话"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.parentsPhone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},_=[],S=(a("6762"),a("2fdb"),a("1672")),w={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.parentsName).indexOf(t)>-1||(""+e.parentsPhone).indexOf(t)>-1||(""+e.name).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t,this.$emit("selected",this.passed,this.id)},FetchDetail:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(S["i"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},T=w,P=Object(y["a"])(T,g,_,!1,null,null,null),x=P.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"search",attrs:{model:e.search,inline:""},nativeOn:{submit:function(t){return t.stopPropagation(),e.submit(t)},reset:function(t){return t.stopPropagation(),e.reset(t)}}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{attrs:{clearable:"",placeholder:"学生姓名(手机/编号)"},model:{value:e.search.keyword,callback:function(t){e.$set(e.search,"keyword","string"===typeof t?t.trim():t)},expression:"search.keyword"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:!e.passed.length},on:{click:e.removeStuden}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{"max-height":"300px","header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.filterlist},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),a("el-table-column",{attrs:{prop:"realName",align:"center",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",align:"center",label:"手机号码"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.subjectName))])]}}])})],1)],1)},k=[],F=a("1cc7"),C={data:function(){return{id:this.$route.query.id,list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},mounted:function(){this.FetchDetail()},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var a=!t||(""+e.userId).indexOf(t)>-1||(""+e.phone).indexOf(t)>-1||(""+e.realName).indexOf(t)>-1;return a}))},submit:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.filter()},reset:function(e){e.stopPropagation(),e.stopImmediatePropagation(),e.preventDefault(),this.search={keyword:"",hastimer:""},this.filter()},handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].userId);this.passed=t},removeStuden:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除已选择学员?","提示",{type:"warning"});case 3:return e.next=5,Object(u["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(F["Ub"])({musicGroupId:this.id});case 3:t=e.sent,this.list=t.data.rows,this.filterlist=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},D=C,I=Object(y["a"])(D,O,k,!1,null,null,null),$=I.exports,j={props:["organId"],components:{selectMusic:v,selectItem:x,mergedStudents:$},data:function(){return{active:"",visible:!1,studentsVisible:!1,tableData:[],passed:[],items:{},studentsByMusicId:{}}},computed:{isEmpty:function(){return 0===Object.keys(this.items).length}},mounted:function(){},methods:{changeActive:function(e){this.active=e},submited:function(e){var t,a={},r=Object(l["a"])(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;a[i.id]?a[i.id]=Object(o["a"])(Object(o["a"])({},a[i.id]),i):a[i.id]=Object(o["a"])(Object(o["a"])({},i),{},{num:0})}}catch(s){r.e(s)}finally{r.f()}this.items=a},remove:function(e){var t=Object(o["a"])({},this.items),a=Object(o["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(o["a"])({},t),this.studentsByMusicId=Object(o["a"])({},a)},selected:function(e,t){var a=this.studentsByMusicId;a[t]||(a[t]=[]),a[t]=e,this.items[t].num=e.length,this.items=this.items,this.studentsByMusicId=a},merge:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t,a,r;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,a)&&(r=this.studentsByMusicId[a],t=t.concat(r));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(u["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t},FetchList:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["a"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},E=j,A=(a("b409"),Object(y["a"])(E,r,i,!1,null,"7c80868a",null));t["a"]=A.exports},"8c19":function(e,t,a){},"8fc1":function(e,t,a){},9112:function(e,t,a){},9214:function(e,t,a){e.exports=a.p+"static/img/yunTrain_small_bg.b5242407.png"},"92e3":function(e,t,a){"use strict";a.d(t,"v",(function(){return l})),a.d(t,"I",(function(){return c})),a.d(t,"t",(function(){return u})),a.d(t,"c",(function(){return p})),a.d(t,"E",(function(){return m})),a.d(t,"bb",(function(){return d})),a.d(t,"Z",(function(){return h})),a.d(t,"d",(function(){return f})),a.d(t,"M",(function(){return y})),a.d(t,"x",(function(){return b})),a.d(t,"db",(function(){return v})),a.d(t,"u",(function(){return g})),a.d(t,"o",(function(){return _})),a.d(t,"cb",(function(){return S})),a.d(t,"Q",(function(){return w})),a.d(t,"fb",(function(){return T})),a.d(t,"gb",(function(){return P})),a.d(t,"P",(function(){return x})),a.d(t,"U",(function(){return O})),a.d(t,"C",(function(){return k})),a.d(t,"l",(function(){return F})),a.d(t,"Y",(function(){return C})),a.d(t,"eb",(function(){return D})),a.d(t,"J",(function(){return I})),a.d(t,"m",(function(){return $})),a.d(t,"w",(function(){return j})),a.d(t,"N",(function(){return E})),a.d(t,"f",(function(){return A})),a.d(t,"e",(function(){return G})),a.d(t,"L",(function(){return N})),a.d(t,"K",(function(){return L})),a.d(t,"T",(function(){return R})),a.d(t,"H",(function(){return M})),a.d(t,"a",(function(){return U})),a.d(t,"y",(function(){return V})),a.d(t,"p",(function(){return q})),a.d(t,"n",(function(){return B})),a.d(t,"q",(function(){return Y})),a.d(t,"g",(function(){return z})),a.d(t,"G",(function(){return H})),a.d(t,"r",(function(){return J})),a.d(t,"D",(function(){return Q})),a.d(t,"B",(function(){return W})),a.d(t,"A",(function(){return X})),a.d(t,"h",(function(){return K})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"S",(function(){return ae})),a.d(t,"O",(function(){return re})),a.d(t,"F",(function(){return ie})),a.d(t,"z",(function(){return se})),a.d(t,"R",(function(){return ne})),a.d(t,"V",(function(){return oe})),a.d(t,"X",(function(){return le})),a.d(t,"s",(function(){return ce})),a.d(t,"ab",(function(){return ue})),a.d(t,"W",(function(){return pe})),a.d(t,"b",(function(){return de}));var r=a("b85c"),i=a("3835"),s=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var o=n.tenantId,l=null,c=null;1==o?(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],l=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],l=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var u=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],p=[{label:"正常签到",value:1},{label:"异常签到",value:0}],m=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],h=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],f=[].concat(h,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),y=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],b=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],v=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],g=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],_=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],S=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],w=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],T=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],P=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],x=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],O=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],k=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],F=[{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:"高三"}],C=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],D=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],I=me(s["musicGroupType"]),$=me(s["classTime"]),j=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],E=me(s["payOrderType"]),A=me(s["auditType"]),G=me(s["auditPaymentType"]),N=me(s["orderServerType"]),L=me(s["orderAuditType"]),R=me(s["rewardModeType"]),M=me(s["musicClassType"]),U=me(s["ProbationPeriodStatus"]),V=me(s["downListType"]),q=me(s["conclusion"]),B=me(s["clientType"]),Y=me(s["couponType"]),z=me(s["backType"]),H=me(s["memberEnum"]),J=me(s["coupontypeDetail"]),Q=me(s["issue"]),W=me(s["feedbackType"]),X=me(s["feedbackTypeDesc"]),K=me(s["campState"]),Z=me(s["catgGoupType"]),ee=me(s["catRole"]),te=me(s["catType"]),ae=me(s["quiteReason"]),re=me(s["payUserType"]),ie=me(s["levelStatus"]),se=me(s["evaluateStatus"]),ne=me(s["problemType"]),oe=me(s["schoolUserType"]),le=me(s["shareLiveType"]),ce=me(s["courseEmnu"]),ue=me(s["suggestionType"]),pe=me(s["scoreType"]);function me(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(i["a"])(t,2),s=a[0],n=a[1],o={};if(e&&e.length){var l,c=Object(r["a"])(e);try{for(c.s();!(l=c.n()).done;){var u=l.value;o[u[s]]=u[n]}}catch(p){c.e(p)}finally{c.f()}}return o}},9391:function(e,t,a){},"940a":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}]},["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&2!=e.courseViewType?a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString&&"ADD_STUDENT"!==e.paymentTypeString?a("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,rowDetail:e.rowDetail,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType,courseViewType:e.courseViewType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.changeActive}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"===e.paymentTypeString?[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClassUser",{ref:"eclass",attrs:{form:e.eclassuser,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclassuser=t},priceChange:e.priceChange,moneyChange:e.syncAllMoney}})]:e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?[2!=e.courseViewType||1!=e.paymentType?a("div",[a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}})],1):e._e()]: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(" "),[e.paymentType&&2!=e.paymentType&&2!=e.form.leixing?a("el-alert",{staticClass:"alert",staticStyle:{"margin-top":"20px"},attrs:{title:"会员设置",closable:!1,type:"info"}}):e._e(),e._v(" "),e.paymentType&&2!=e.paymentType&&2!=e.form.leixing?a("memberSetting",{ref:"memberSetting",attrs:{form:e.memberForm,viewDetail:e.nowDetail,isUserType:e.isUserType,organId:e.baseInfo.musicGroup.organId,addStudent:e.showMember,showTime:1==e.paymentType}}):e._e(),e._v(" "),2!=e.courseViewType||1!=e.paymentType||2==e.form.leixing?a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("el-form",{ref:"payment",attrs:{model:e.payment}}),e._v(" "),e.isMulticycle&&"SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?[a("el-collapse",{attrs:{value:e.collapse},on:{change:e.collapseChange}},e._l(e.cycles,(function(t,r){return a("el-collapse-item",{key:r,attrs:{name:r}},[a("template",{slot:"title"},[a("div",{staticClass:"collapse-title"},[a("span",[e._v("缴费周期 "+e._s(r+1))]),e._v(" "),e.cycles.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(r)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,paymentType:e.paymentType,hidePaymentPattern:!0,isCommon:e.isCommon,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType}})],2)})),1),e._v(" "),a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isCommon:e.isCommon,hidePaymentPattern:!0,isUserType:e.isUserType,hideMoney:"SPAN_GROUP_CLASS_ADJUST"==e.paymentTypeString,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"===e.paymentType||"3"===e.form.leixing,courseViewType:e.courseViewType},on:{"update:form":function(t){e.cycle=t}}})],2):e._e()],e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["SPAN_GROUP_CLASS_ADJUST"!=e.paymentTypeString?a("p",[e._v("\n 缴费总金额:"+e._s(e.money||0)+"元\n ")]):e._e(),e._v(" "),a("div",[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1)]),e._v(" "),a("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("classrooms",{on:{close:e.closeNext}})],1)],2)},i=[],s=a("15fd"),n=(a("6762"),a("2fdb"),a("2909")),o=a("5530"),l=a("c7eb"),c=(a("96cf"),a("1da1")),u=a("b85c"),p=a("d349"),m=a("1cc7"),d=a("1672"),h=a("267e"),f=a("ed08"),y=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":": "}},[!e.rowDetail&&0!=e.paymentType&&(e.isUserType&&2==e.courseViewType||2!=e.courseViewType)?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&2!=e.courseViewType?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto","margin-bottom":"20px"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"类型,若需创建其他类型的收费标准,请先修改乐团基本信息中的乐团收费类型\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1196575070)}):e._e()],1)},b=[],v={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail","courseViewType"],mounted:function(){},watch:{paymentType:function(){}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},g=v,_=(a("ef8e"),a("2877")),S=Object(_["a"])(g,y,b,!1,null,"4fd71742",null),w=S.exports,T=a("7a3c"),P=a("0464"),x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{label:"学员姓名",prop:"username"}}),e._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"phone"}}),e._v(" "),a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.courseType[e.list.form[t.$index].courseType])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"课程时长(分钟)",prop:"courseTime",width:"130"}}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,placeholder:"请输入现价"},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])},[a("template",{slot:"header"},[a("p",{staticStyle:{position:"relative"}},[e._v("\n 现价(元)\n "),a("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("学生实际缴费金额")]),e._v(" "),a("i",{staticClass:"el-icon-question",staticStyle:{"font-size":"18px",color:"#f56c6c"}})])],1)])],2),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{staticClass:"tableItem",attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{controls:!1,precision:0,min:0,disabled:"",placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.clearable&&e.$listeners.remove?a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",staticStyle:{"margin-bottom":"24px",cursor:"pointer"},on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,4278559538)}):e._e()],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},O=[],k=a("92e3"),F=a("6612"),C=a.n(F),D=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:h["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(f["e"])(h["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(k["b"])(k["m"])}},methods:{isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return C()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")},validatorCourseTotalMinuties:function(e){var t=this;return function(a,r,i){var s=t.list.form[e].courseType;s&&r>1&&t.classTimeList[s]&&r<t.classTimeList[s]?i(new Error("单节课不得少于".concat(t.classTimeList[s],"分钟"))):i()}}}}),I=D,$=(a("38ab"),Object(_["a"])(I,x,O,!1,null,"de513a92",null)),j=$.exports,E=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)},A=[],G={data:function(){return{list:[]}},methods:{submit:function(){}}},N=G,L=(a("62f6"),Object(_["a"])(N,E,A,!1,null,"37928f5f",null)),R=L.exports,M=a("b133"),U=a("ace5"),V=(a("73b3"),a("7676")),q=a.n(V),B=a("5a0c"),Y=a.n(B),z=["leixing"],H=["paymentDate","paymentValid"],J=["paymentDate"],Q=["paymentDate","paymentValid"],W={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},X={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:w,paymentCycle:T["a"],extraClass:P["a"],extraClassUser:j,classrooms:R,otherform:M["a"],memberSetting:U["a"]},data:function(){return{options:[],form:{payUserType:"user"===this.type?"STUDENT":"SCHOOL",leixing:"1",musicGroupOrganizationCourseSettingId:null},chargeTypeName:"",other:{},cycles:[{}],cycle:{},eclass:[],eclassuser:[],collapse:[0],nextVisible:!1,typeList:[],charges:[],studentIds:"",payment:{paymentPattern:null},viewDetail:null,organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object(f["e"])(h["paymentPatternType"]),cloudFee:"",courseViewType:"",memberForm:{memberRankSettingId:"",memberValidDate:"",memberPaymentAmount:"",originalMemberPaymentAmount:"",paymentDate:[],num:"",period:""},money:"",isSetCourseSettingsId:!1,isShow:!1}},computed:{showMember:function(){return 3==this.paymentType},musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},nowDetail:function(){return this.viewDetail},isCommon:function(){return"1"===this.form.leixing||"3"===this.form.leixing||2!=this.courseViewType&&"0"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},a=Object(u["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var r=e.value;t[r.id]=r}}catch(i){a.e(i)}finally{a.f()}return t},paymentAmountDisabled:function(){return(this.isUserType||this.isCommon&&this.isUserType)&&this.isDisabled},isMulticycle:function(){return!1},paymentTypeString:function(){var e="";if(this.viewDetail){var t,a,r,i;this.viewDetail.musicGroupPaymentCalenders;e=(null===(t=this.viewDetail)||void 0===t||null===(a=t.calender)||void 0===a?void 0:a.paymentType)||(null===(r=this.viewDetail)||void 0===r||null===(i=r.auditDto)||void 0===i?void 0:i.paymentType)}return e}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.formatCourse(),this.getCharges()},organizationCourseUnitPriceSettings:function(){this.formatCourse()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),this.$set(this.other,"memo",null),"1"===e?this.eclass=[]:"2"===e&&(this.eclass=[{}])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(c["a"])(Object(l["a"])().mark((function e(t){var a,r=this;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||this.isSetCourseSettingsId){e.next=11;break}return e.prev=1,e.next=4,Object(d["t"])({id:t});case 4:a=e.sent,this.eclass=a.data.filter((function(e){return!e.isStudentOptional||void 0!==r.paymentType}))||[{}],this.syncAllMoney(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:this.isSetCourseSettingsId=!1;case 12:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t){return e.apply(this,arguments)}return t}(),"payment.paymentPattern":function(){this.syncAllMoney()},"memberForm.memberPaymentAmount":function(){this.syncAllMoney()}},mounted:function(){this.formatCourse(),this.init()},activated:function(){this.formatCourse(),this.init()},methods:{init:function(){var e=Object(c["a"])(Object(l["a"])().mark((function e(){var t,a,r,i,s,n,c,u,p,h,f,y,b,v,g,_,S,w,T=this;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.organId,this.courseViewType=null===(r=this.baseInfo)||void 0===r||null===(i=r.musicGroup)||void 0===i?void 0:i.courseViewType,2!=this.courseViewType||this.rowDetail||this.isUserType||(this.$set(this.form,"leixing","2"),this.addExtraClass()),this.getCharges(),!this.rowDetail){e.next=50;break}for(s in W)W.hasOwnProperty(s)&&(n=W[s],n===this.rowDetail.paymentType&&(this.$emit("changePaymentType",s),this.$set(this.form,"leixing",s+"")));if(this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),"ADD_STUDENT"!=this.rowDetail.paymentType){e.next=30;break}return e.prev=8,e.next=11,Object(m["sb"])({id:this.rowDetail.id});case 11:y=e.sent,this.viewDetail=y.data,this.eclass=y.data.course||[],this.$set(this.memberForm,"memberRankSettingId",(null===(c=this.viewDetail.member)||void 0===c?void 0:c.memberRankSettingId)||null),this.$set(this.memberForm,"num",(null===(u=this.viewDetail.member)||void 0===u?void 0:u.num)||null),this.$set(this.memberForm,"period",(null===(p=this.viewDetail.member)||void 0===p?void 0:p.period)||null),this.$set(this.memberForm,"memberPaymentAmount",(null===(h=this.viewDetail.member)||void 0===h?void 0:h.actualAmount)||null),this.$set(this.memberForm,"originalMemberPaymentAmount",(null===(f=this.viewDetail.member)||void 0===f?void 0:f.originalAmount)||null),this.$set(this.memberForm,"memberValidDate",[this.viewDetail.calender.startPaymentDate,this.viewDetail.calender.deadlinePaymentDate]),this.$set(this.cycle,"paymentDate",[this.viewDetail.calender.startPaymentDate,this.viewDetail.calender.deadlinePaymentDate]),this.$set(this.other,"memo",this.viewDetail.calender.memo),this.syncAllMoney(),e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](8),console.log(e.t0);case 28:e.next=49;break;case 30:return e.prev=30,e.next=33,Object(d["k"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 33:_=e.sent,this.viewDetail=_.data,S=_.data.musicGroupPaymentCalenders[0]||{},this.eclass=(_.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==T.paymentType})),this.eclassuser=_.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===T.paymentTypeString?Object(o["a"])({},e):e})),this.$set(this.payment,"paymentPattern",String(null===(b=this.viewDetail.auditDto)||void 0===b?void 0:b.paymentPattern)),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",S.paymentPattern+""),w=[S.paymentValidStartDate,S.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[S.startPaymentDate,S.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",w)),this.studentIds=S.studentIds,null!==(v=_.data.auditDto)&&void 0!==v&&v.musicGroupOrganizationCourseSettingsId&&(this.isSetCourseSettingsId=!0),this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(g=_.data.auditDto)||void 0===g?void 0:g.musicGroupOrganizationCourseSettingsId),2==this.courseViewType&&1==this.form.leixing&&this.$set(this.memberForm,"paymentDate",[Y()(S.startPaymentDate).format("YYYY-MM-DD"),Y()(S.deadlinePaymentDate).format("YYYY-MM-DD")]),this.syncAllMoney(),e.next=49;break;case 47:e.prev=47,e.t1=e["catch"](30);case 49:this.isShow=!0;case 50:case"end":return e.stop()}}),e,this,[[8,25],[30,47]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,a,r=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,i=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,s={},n=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return r&&r==e.organId&&i&&i==e.chargeTypeId})),o=Object(u["a"])(n);try{for(o.s();!(a=o.n()).done;){var l=a.value;s[l.courseType]=l}}catch(c){o.e(c)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=s,s},priceChange:function(e,t){var a=Object(n["a"])(this.eclass),r=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},i=Math.round(C()(r.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=i,e.courseOriginalPrice=i,a[t]=e,this.eclass=Object(n["a"])(a),this.syncAllMoney()},syncAllMoney:function(){if("SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString){var e,t=null===(e=this.viewDetail)||void 0===e?void 0:e.musicGroupPaymentCalenders[0].paymentAmount;return this.$set(this.cycle,"paymentAmount",t),t}var a,r=0,i=0,s=0,n="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,l=Object(u["a"])(n);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(r+=c.courseCurrentPrice,this.cycles&&this.cycles.length)if(c.isStudentOptional)i+=c.courseCurrentPrice;else{var p=Math.floor(c.courseCurrentPrice/this.cycles.length),m=c.courseCurrentPrice%this.cycles.length;i+=p+m,s+=p}}}catch(d){l.e(d)}finally{l.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(o["a"])(Object(o["a"])({},e),{},{paymentAmount:0===t?i:s})}))),this.$set(this.cycle,"paymentAmount",r),r+=parseFloat(this.memberForm.memberPaymentAmount||0),this.money=r,r},getChargeTypeList:function(){var e=Object(c["a"])(Object(l["a"])().mark((function e(){var t;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["Wb"])({});case 3:t=e.sent,this.typeList=t.data,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(c["a"])(Object(l["a"])().mark((function e(){var t,a,r,i,s,n,o;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,s=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeId,this.chargeTypeName=null===(r=this.musicGroup)||void 0===r?void 0:r.chargeTypeName,e.prev=3,e.next=6,Object(p["v"])({row:9999,chargeTypeId:s,organId:i});case 6:if(n=e.sent,o=n.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=n.data.rows,!(this.charges.length<=0)){e.next=13;break}return this.$bus.$emit("showguide",["teamCourseFee"]),e.abrupt("return");case 13:e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](3);case 17:case"end":return e.stop()}}),e,this,[[3,15]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.cycles.length-1),this.syncAllMoney()},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.includes(e)&&(this.collapse.splice(e,1),this.collapse=this.collapse.map((function(t,a){return a-1>=e?t--:t}))),this.syncAllMoney()},collapseChange:function(e){this.collapse=e},closeNext:function(){this.nextVisible=!1},getForms:function(){var e=this.$refs;return[e.base,e.eclass,e.cycle].concat(Object(n["a"])(e.cycles||[]),[e.other,e.payment,e.memberSetting]).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},submit:function(){var e=Object(c["a"])(Object(l["a"])().mark((function e(){var t,a,r,i,c,p,m,h,y,b,v,g,_,S,w,T,P,x,O,k,F,C,D,I,$,j,E,A,G,N,L,R,M;return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],r=Object(u["a"])(t);try{for(c=function(){var e=i.value;e.validate((function(t){t&&a.push(e)}))},r.s();!(i=r.n()).done;)c()}catch(l){r.e(l)}finally{r.f()}if(!(this.eclass.length<1&&this.eclassuser.length<1&&2!=this.courseViewType)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(a.length!==t.length){e.next=86;break}if("ADD_STUDENT"!=this.rowDetail.paymentType){e.next=30;break}return p=Object(o["a"])(Object(o["a"])({calenderId:this.viewDetail.calender.id,calenderMember:Object(o["a"])(Object(o["a"])({},this.memberForm),{},{actualAmount:this.memberForm.memberPaymentAmount,originalAmount:this.memberForm.originalMemberPaymentAmount}),calenderAddStudent:{classGroupIds:this.viewDetail.calender.attribute1,studentIds:this.viewDetail.calender.studentIds}},Object(f["d"])(this.cycle.paymentDate,["startPaymentDate","deadlinePaymentDate"])),{},{musicGroupId:this.musicGroupId,paymentType:"ADD_STUDENT",payUserType:"STUDENT",musicGroupPaymentCalenderCourseSettingsList:this.eclass},this.other),e.prev=9,e.next=12,Object(d["s"])(p);case 12:if(m=e.sent,200==m.code&&(this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close()),207!=m.code){e.next=23;break}return e.next=17,this.$confirm(m.msg||"当前乐团存在未排课的缴费项目,请再次确认操作","提示",{type:"warning"});case 17:return p.confirmCreate=!0,e.next=20,Object(d["s"])(p);case 20:this.$message.success("提交成功"),this.$listeners.submited(),this.$listeners.close();case 23:e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](9),console.log(e.t0);case 28:e.next=86;break;case 30:w=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.form),this.other),{},{musicGroupPaymentDateRangeList:Object(n["a"])(this.cycles.map((function(e){var t=e.paymentDate,a=e.paymentValid,r=Object(s["a"])(e,H);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},r),Object(f["d"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(f["d"])(a,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),T=w.leixing,P=Object(s["a"])(w,z),x=this.memberForm,O=x.paymentDate,k=Object(s["a"])(x,J),2==this.courseViewType&&1==this.form.leixing&&(P.musicGroupPaymentDateRangeList[0]=Object(o["a"])({},Object(f["d"])(O,["startPaymentDate","deadlinePaymentDate"]))),this.$refs.cycle&&(F=this.cycle,C=F.paymentDate,D=F.paymentValid,I=Object(s["a"])(F,Q),P.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},I),Object(f["d"])(C,["startPaymentDate","deadlinePaymentDate"])),Object(f["d"])(D,["paymentValidStartDate","paymentValidEndDate"]))]),$=Object(o["a"])(Object(o["a"])(Object(o["a"])({},P),k),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:W[0==this.paymentType?this.paymentType:T],musicGroupId:this.musicGroupId}),j=null===(h=this.viewDetail)||void 0===h?void 0:h.musicGroupPaymentCalenders[0],j&&"ADD_STUDENT"===(null===(y=this.viewDetail)||void 0===y?void 0:y.auditDto.paymentType)&&($.attribute1=j.attribute1),E=!1,A=Object(u["a"])($.musicGroupPaymentCalenderCourseSettingsList),e.prev=39,A.s();case 41:if((G=A.n()).done){e.next=48;break}if(N=G.value,!(N.courseCurrentPrice>0||1==N.isStudentOptional)){e.next=46;break}return E=!0,e.abrupt("break",48);case 46:e.next=41;break;case 48:e.next=53;break;case 50:e.prev=50,e.t1=e["catch"](39),A.e(e.t1);case 53:return e.prev=53,A.f(),e.finish(53);case 56:if(2!=(null===(b=this.baseInfo)||void 0===b||null===(v=b.musicGroup)||void 0===v?void 0:v.courseViewType)&&3!=(null===(g=this.baseInfo)||void 0===g||null===(_=g.musicGroup)||void 0===_?void 0:_.courseViewType)||0!=this.paymentType||!E||"user"!==this.type){e.next=59;break}return this.$message.error("会员收费模式报名缴费项目课程费用不得大于0且不可选"),e.abrupt("return");case 59:if(null!==(S=this.rowDetail)&&void 0!==S&&S.batchNo){e.next=73;break}return e.prev=60,e.next=63,Object(d["l"])($);case 63:L=e.sent,"DRAFT"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(L.data),e.next=71;break;case 69:e.prev=69,e.t2=e["catch"](60);case 71:e.next=86;break;case 73:return e.prev=73,$.batchNo=this.rowDetail.batchNo,$.paymentType=null===(R=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===R?void 0:R.paymentType,e.next=78,Object(d["o"])($);case 78:M=e.sent,this.$listeners.close(),this.$listeners.submited(M.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:q()(this.$route.query,{type:"feeAudit"})}),e.next=86;break;case 84:e.prev=84,e.t3=e["catch"](73);case 86:case"end":return e.stop()}}),e,this,[[9,25],[39,50,53,56],[60,69],[73,84]])})));function t(){return e.apply(this,arguments)}return t}()}},K=X,Z=(a("73bb"),Object(_["a"])(K,r,i,!1,null,"53fda24c",null));t["a"]=Z.exports},"9d64":function(e,t,a){e.exports=a.p+"static/img/logo.ae7b11a3.png"},a6e9:function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"b",(function(){return n}));var r=a("b775"),i=(a("4328"),"/api-web");function s(e){return Object(r["a"])({url:i+"/sysConfig/list",method:"get",params:e})}function n(e){return Object(r["a"])({url:i+"/sysConfig/batchUpdate",method:"post",data:e,headers:{"Content-Type":"application/json"}})}},a731:function(e,t,a){},aa6f:function(e,t,a){},ab55:function(e,t,a){"use strict";a("dec2")},ace5:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": ",inline:!0}},[e.isUserType&&e.addStudent?a("el-form-item",{attrs:{label:"是否购买学练宝"}},[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:!0}},[e._v("购买")]),e._v(" "),a("el-radio",{attrs:{label:!1}},[e._v("不购买")])],1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"学练宝版本",prop:"memberRankSettingId",rules:[{required:!0,message:"请选择学练宝版本",trigger:"blur"}]}},[a("el-cascader",{staticStyle:{width:"620px !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择学练宝版本",options:e.memberRankList,props:{value:"id",label:"name"}},on:{change:function(t){return e.changeMember(t,e.scope.$index)}},model:{value:e.form.memberRankSettingId,callback:function(t){e.$set(e.form,"memberRankSettingId",t)},expression:"form.memberRankSettingId"}})],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"数量",prop:"num",rules:[{required:!0,message:"请选择数量",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"223px"},attrs:{controls:!1,precision:0,min:0,placeholder:"数量",disabled:!e.form.memberRankSettingId},on:{change:function(t){return e.changeMemberperiodEnum(e.form.period)}},model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"周期",prop:"period",rules:[{required:!0,message:"请选择周期",trigger:"blur"}]}},[a("el-select",{staticStyle:{width:"223px !important"},attrs:{disabled:!e.form.memberRankSettingId||!e.form.num},on:{change:e.changeMemberperiodEnum},model:{value:e.form.period,callback:function(t){e.$set(e.form,"period",t)},expression:"form.period"}},e._l(e.memberEnumList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"团购价",prop:"memberPaymentAmount",rules:[{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额"},{required:!0,message:"请输入现价",trigger:"blur"},{validator:e.validateMember,trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"223px"},model:{value:e.form.memberPaymentAmount,callback:function(t){e.$set(e.form,"memberPaymentAmount",t)},expression:"form.memberPaymentAmount"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&e.radio?a("el-form-item",{attrs:{label:"原价",prop:"originalMemberPaymentAmount",rules:[{required:!0,message:"请输入原价",trigger:"blur"}]}},[a("el-input",{staticStyle:{width:"223px"},attrs:{disabled:!0},model:{value:e.form.originalMemberPaymentAmount,callback:function(t){e.$set(e.form,"originalMemberPaymentAmount",t)},expression:"form.originalMemberPaymentAmount"}},[a("template",{slot:"append"},[e._v("元")])],2)],1):e._e(),e._v(" "),e.isUserType&&!e.addStudent&&e.showTime?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"620px"},attrs:{type:"daterange","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e()],1)},i=[],s=(a("c5f6"),a("ac6a"),a("c7eb")),n=(a("96cf"),a("1da1")),o=(a("ed08"),a("1672")),l=a("92e3"),c=a("a6e9"),u={props:["form","musicGroupId","isUserType","organId","addStudent","showTime","viewDetail"],data:function(){return{pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},dataTime:["2021-05-14","2021-05-19"],memberEnumList:l["G"],memberRankList:[],radio:!0,memberPrice:{},getMemberFeeFlag:!0,rulesForm:{minMonthFee:null,maxMonthFee:null,minQuarterlyFee:null,maxQuarterlyFee:null,minHalfYearFee:null,maxHalfYearFee:null,minYearFee:null,maxYearFee:null}}},mounted:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t,a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["h"])({musicGroupId:this.musicGroupId});case 3:t=e.sent,a=t.data,this.memberRankList=a||[],e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:this.getMemberRules();case 12:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){this.$set(this.form,"memo",null),this.$set(this.form,"memberRankSettingId",null),this.$set(this.form,"memberValidDate",null),this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"paymentDate",[])},methods:{getMemberRules:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t,a,r=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["a"])({group:"DEFAULT"});case 3:t=e.sent,a="cloud_price_range",t.data.forEach((function(e){if(e.paramName==a){var t=e.paranValue?JSON.parse(e.paranValue):null;t&&(r.rulesForm=t)}})),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),changeMemberperiodEnum:function(e){if(!this.form.num)return this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),void this.$set(this.form,"period",null);"DAY"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseDayFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalDayFee*this.form.num)),"MONTH"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseMonthFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalMonthFee*this.form.num)),"QUARTERLY"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseQuarterlyFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalQuarterlyFee*this.form.num)),"YEAR_HALF"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseHalfYearFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalHalfYearFee*this.form.num)),"YEAR"==e&&(this.$set(this.form,"memberPaymentAmount",this.memberPrice.groupPurchaseYearFee*this.form.num),this.$set(this.form,"originalMemberPaymentAmount",this.memberPrice.originalYearFee*this.form.num))},changeMember:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(t&&t.length>0)){e.next=18;break}if(!this.getMemberFeeFlag){e.next=18;break}return this.getMemberFeeFlag=!1,e.prev=3,e.next=6,Object(o["g"])({rankId:t[t.length-1],organId:this.organId});case 6:if(a=e.sent,this.memberPrice=a.data,this.getMemberFeeFlag=!0,a.data){e.next=12;break}return this.$bus.$emit("showguide",["memberList"]),e.abrupt("return");case 12:e.next=18;break;case 14:e.prev=14,e.t0=e["catch"](3),console.log(e.t0),this.getMemberFeeFlag=!0;case 18:case"end":return e.stop()}}),e,this,[[3,14]])})));function t(t){return e.apply(this,arguments)}return t}(),memberRankSettingIdChange:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a,r,i,n,l;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=14;break}return e.prev=1,e.next=4,Object(o["g"])({rankId:t,organId:this.organId});case 4:if(i=e.sent,null!==(a=i.data)&&void 0!==a&&a.groupPurchaseHalfYearFee&&null!==(r=i.data)&&void 0!==r&&r.originalHalfYearFee?(this.$set(this.form,"memberPaymentAmount",null===(n=i.data)||void 0===n?void 0:n.groupPurchaseHalfYearFee),this.$set(this.form,"originalMemberPaymentAmount",null===(l=i.data)||void 0===l?void 0:l.originalHalfYearFee)):this.$message.error("请设置该会员的默认价格"),i.data){e.next=9;break}return this.$bus.$emit("showguide",["memberList"]),e.abrupt("return");case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));function t(t){return e.apply(this,arguments)}return t}(),validateMember:function(e,t,a){var r=Number(t),i=0,s=0;switch(this.form.period){case"MONTH":i=Number(this.rulesForm.minMonthFee)*this.form.num,s=Number(this.rulesForm.maxMonthFee)*this.form.num;break;case"QUARTERLY":i=Number(this.rulesForm.minQuarterlyFee)*this.form.num,s=Number(this.rulesForm.maxQuarterlyFee)*this.form.num,console.log(this.form.period,i,s,this.rulesForm);break;case"YEAR_HALF":i=Number(this.rulesForm.minHalfYearFee)*this.form.num,s=Number(this.rulesForm.maxHalfYearFee)*this.form.num;break;case"YEAR":i=Number(this.rulesForm.minYearFee)*this.form.num,s=Number(this.rulesForm.maxYearFee)*this.form.num;break}return r>=i&&r<=s?a():a(new Error("定价应在".concat(i,"-").concat(s,"之间")))}},watch:{radio:function(e){e?this.$set(this.form,"memberValidDate",6):(this.$set(this.form,"memberRankSettingId",null),this.$set(this.form,"memberValidDate",null),this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"num",null),this.$set(this.form,"period",null),this.$set(this.form,"paymentDate",[]))},viewDetail:{deep:!0,handler:function(e){var t;null!==(t=e.member)&&void 0!==t&&t.memberRankSettingId?this.radio=!0:this.radio=!1}},"form.memberRankSettingId":function(e){e?this.changeMember(e):(this.$set(this.form,"memberPaymentAmount",null),this.$set(this.form,"originalMemberPaymentAmount",null),this.$set(this.form,"num",null),this.$set(this.form,"period",null))}}},p=u,m=(a("2be0"),a("2877")),d=Object(m["a"])(p,r,i,!1,null,"50d13736",null);t["a"]=d.exports},b133:function(e,t,a){"use strict";var r=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)},i=[],s={props:["form"]},n=s,o=(a("3fa6"),a("2877")),l=Object(o["a"])(n,r,i,!1,null,"8cbe7b52",null);t["a"]=l.exports},b294: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 r=a("b775"),i=a("4328"),s=a.n(i),n="/api-web";function o(e){return Object(r["a"])({url:n+"/musicGroupPaymentCalender/queryPage",method:"get",params:e})}function l(e){return Object(r["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:s.a.stringify(e)})}function c(e){return Object(r["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:s.a.stringify(e)})}},b3d0:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学生编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList,"max-height":"300"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[a("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"应缴金额",rules:[{required:!0,message:"请输入预计缴费金额",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}],prop:"momey"}},[a("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},i=[],s=a("5530"),n=a("333d"),o=a("1cc7"),l={components:{pagination:n["a"]},props:["clearStduent","musicGroupPaymentCalenderId","batchNo"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["M"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList()},getList:function(){var e=this;this.searchForm.musicGroupId=this.teamid,Object(o["qc"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{batchNo:this.batchNo})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;localStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,a={};a.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["xc"])(a).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.resetPayVisible=!1,t.getList(),t.$listeners.submited&&t.$listeners.submited())}))}},watch:{resetPayVisible:function(e){e||(this.resetPayForm={momey:null},this.$refs["resetPayForm"].resetFields())}}},c=l,u=(a("b5ca"),a("2877")),p=Object(u["a"])(c,r,i,!1,null,"2547eae8",null);t["default"]=p.exports},b409:function(e,t,a){"use strict";a("c35d")},b5ca:function(e,t,a){"use strict";a("2e3a")},b66e:function(e,t,a){},ba9e:function(e,t,a){"use strict";a("8fc1")},bc63:function(e,t,a){"use strict";a("d37a")},c35d:function(e,t,a){},cd32:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.detail?a("div",[e.detail?a("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission(e.getFullPermission("musicGroupPaymentCalender/auditPass"))?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission(e.getFullPermission("musicGroupPaymentCalender/auditRefuse"))?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e(),e._v(" "),a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关 闭")])],1):a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.$listeners.close}},[e._v("关闭")])],1)],1):e._e()},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=a("ec8a"),l=a("3762"),c=a("b38b"),u={props:["detail"],components:{reviewDetail:l["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(t){var a=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(c["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(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(c["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("驳回成功"),a.$emit("close"))}));case 19:e.next=23;break;case 21:e.prev=21,e.t1=e["catch"](14);case 23:case"end":return e.stop()}}),e,this,[[3,10],[14,21]])})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(o["a"])(e)}}},p=u,m=(a("346a"),a("2877")),d=Object(m["a"])(p,r,i,!1,null,"59fb2832",null);t["a"]=d.exports},cf5b:function(e,t,a){},d062:function(e,t,a){},d349:function(e,t,a){"use strict";a.d(t,"e",(function(){return u})),a.d(t,"d",(function(){return p})),a.d(t,"f",(function(){return m})),a.d(t,"c",(function(){return d})),a.d(t,"o",(function(){return h})),a.d(t,"D",(function(){return f})),a.d(t,"E",(function(){return y})),a.d(t,"F",(function(){return b})),a.d(t,"i",(function(){return v})),a.d(t,"g",(function(){return g})),a.d(t,"j",(function(){return _})),a.d(t,"r",(function(){return S})),a.d(t,"p",(function(){return w})),a.d(t,"q",(function(){return T})),a.d(t,"h",(function(){return P})),a.d(t,"s",(function(){return x})),a.d(t,"G",(function(){return O})),a.d(t,"k",(function(){return k})),a.d(t,"t",(function(){return F})),a.d(t,"w",(function(){return C})),a.d(t,"u",(function(){return D})),a.d(t,"v",(function(){return I})),a.d(t,"n",(function(){return $})),a.d(t,"b",(function(){return j})),a.d(t,"C",(function(){return E})),a.d(t,"m",(function(){return A})),a.d(t,"B",(function(){return G})),a.d(t,"a",(function(){return N})),a.d(t,"l",(function(){return L})),a.d(t,"y",(function(){return R})),a.d(t,"x",(function(){return M})),a.d(t,"z",(function(){return U})),a.d(t,"A",(function(){return V}));var r=a("15fd"),i=a("b775"),s=a("829b"),n=a("4328"),o=a.n(n),l=["id"],c="/api-web";function u(e){return Object(i["a"])({url:c+"/organization/queryPage",method:"get",params:e})}function p(e){return Object(i["a"])({url:c+"/organization/add",method:"post",data:o.a.stringify(e)})}function m(e){return Object(i["a"])({url:c+"/organization/update",method:"post",data:o.a.stringify(e)})}function d(e){return Object(s["a"])({url:c+"/area/queryChild",method:"get",hideLoading:!0,params:e})}function h(e){return Object(i["a"])({url:c+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(i["a"])({url:c+"/subject/queryPageByIdOrName",method:"post",data:o.a.stringify(e)})}function y(e){return Object(i["a"])({url:c+"/subject/queryPageTree",method:"get",params:e})}function b(e){return Object(i["a"])({url:c+"/subject/upset",method:"post",data:e})}function v(e){return Object(i["a"])({url:c+"/chargeType/upSet",method:"post",data:e})}function g(e){return Object(i["a"])({url:c+"/chargeType/del/".concat(e),method:"post"})}function _(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function S(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function w(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function T(e){return Object(i["a"])({url:c+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function P(e){return Object(s["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function x(e){return Object(s["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function O(e){return Object(s["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function k(e){var t=e.id,a=Object(r["a"])(e,l);return Object(s["a"])({url:c+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function F(e){return Object(s["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function C(e){return Object(s["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function D(e){return Object(s["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function I(e){return Object(s["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function $(e){return Object(s["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function j(e){return Object(s["a"])({url:c+"/organizationCourseUnitPriceSettings/save",method:"post",data:e})}function E(e){return Object(s["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function A(e){return Object(s["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function G(e){return Object(s["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:e})}function N(e){return Object(s["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function L(e){return Object(s["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:e})}function R(e){return Object(s["a"])({url:c+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function M(e){return Object(s["a"])({url:c+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function U(e){return Object(s["a"])({url:c+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}function V(e,t){return Object(s["a"])({url:c+"/organizationCourseUnitPriceSettings/querySingle/".concat(e,"/").concat(t),method:"get"})}},d37a:function(e,t,a){},dec2:function(e,t,a){},df4f:function(e,t,a){e.exports=a.p+"static/img/video_bg.0da9f0a8.png"},e3d4:function(e,t,a){"use strict";a("eb7d")},e623:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",width:"120",label:"缴费单号",rules:[{pattern:/^[0-9]*$/,message:"请输入正确的缴费单号",trigger:"blur"}]},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.id))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",width:"120",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"200",label:"缴费人数(预计/实际)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(t.row.expectNum)+"/"+e._s(t.row.actualNum))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"200",label:"缴费有效期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+" ~\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注",width:"200","class-name":"table-btns"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["STUDENT"===e.payUserType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/strudentPayInfo",expression:"'/strudentPayInfo'"}],attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.row)}}},[e._v("查看")]):a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail/3882",expression:"'musicGroupPaymentCalender/auditListDetail/3882'"}],attrs:{type:"text"},on:{click:function(a){return e.toDetail(t.row)}}},[e._v("查看")]),e._v(" "),e.$listeners.lookUserList?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(a){return e.$listeners.lookUserList(t.row)}}},[e._v("学员列表")]):e._e(),e._v(" "),"OPEN"==t.row.status&&"resetTeam"==e.teamStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/makesureSchoolePaid",expression:"'musicGroupPaymentCalender/makesureSchoolePaid'"}],attrs:{type:"text"},on:{click:function(a){return e.$listeners.commmitGetMoney(t.row)}}},[e._v("确认收款")]):e._e(),e._v(" "),!e.isNewGropu&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"STUDENT"===e.payUserType?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$listeners.onCreateQRCode(t.row)}}},[e._v("续费二维码")]):e._e(),e._v(" "),e.$listeners.onPreview&&"STUDENT"===e.payUserType&&"MUSIC_APPLY"==t.row.paymentType&&e.permission("musicGroup/findMusicGroupSubjectInfo/966")&&e.permission("studentRegistration/getSubjectGoodsAndInfo/967")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.$listeners.onPreview(t.row)}}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")])],1)],1)},i=[],s=a("c7eb"),n=(a("96cf"),a("1da1")),o=a("1cc7"),l=(a("1672"),a("3908"),a("333d")),c=a("ec8a"),u={props:["batchNo","teamStatus","teamType","payUserType","isNewGropu"],components:{pagination:l["a"]},data:function(){return{list:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{permission:c["a"],getList:function(){var e=Object(n["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["rb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},p=u,m=(a("5513"),a("2877")),d=Object(m["a"])(p,r,i,!1,null,"3970826a",null);t["a"]=d.exports},e75c:function(e,t,a){"use strict";a("ea7c")},ea7c:function(e,t,a){},eb7d:function(e,t,a){},ef5c:function(e,t,a){"use strict";a("f494c")},ef76:function(e,t,a){"use strict";a("b66e")},ef8e:function(e,t,a){"use strict";a("8c19")},f152:function(e,t,a){"use strict";a("cf5b")},f494c:function(e,t,a){},f610:function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,"save-key":"resetPayListSchool",model:e.searchForm},on:{submit:e.getList}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/createCalender/4359",expression:"'musicGroupPaymentCalender/createCalender/4359'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("\n 新建学校缴费\n ")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("\n 学员缴费设置\n ")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("copy-text",[e._v(e._s(t.row.batchNo))])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentType",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"auditStatus",label:"审核状态",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("auditType")(t.row.status))+"\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(t.row.actualNum)+"/"+e._s(t.row.expectNum)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",width:"200px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"200px",text:e.row.memo}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"musicGroupPaymentCalender/queryPage/4315"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")])],1),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"DRAFT"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("auth",{attrs:{auths:"musicGroupPaymentCalenderDetail/batchAdd/3890"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")])],1):e._e(),e._v(" "),!e.teamStatus||"REJECT"!==t.row.status&&"DRAFT"!==t.row.status?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/update/4313"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")])],1),e._v(" "),"FEE_AUDIT"!=e.team_status&&"PROGRESS"!=e.team_status||"AUDITING"!==t.row.auditStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/revoke"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.revoke(t.row)}}},[e._v("撤回")])],1),e._v(" "),e.teamStatus&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1):e._e(),e._v(" "),!e.teamStatus||"ADD_STUDENT"!=t.row.paymentType||"DRAFT"!=t.row.auditStatus&&"REJECT"!=t.row.auditStatus?e._e():a("auth",{attrs:{auths:"musicGroupPaymentCalender/delByBatchNo/4305"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1),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:{"save-key":"resetPayList",sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.itemsVisible,title:"查看缴费计划",width:"1000px"},on:{"update:visible":function(t){e.itemsVisible=t}}},[e.itemsVisible?a("pay-items",{ref:"payItems",attrs:{batchNo:e.viewDetail&&e.viewDetail.batchNo,payUserType:"SCHOOL",teamStatus:e.teamStatus,teamType:e.teamType,isNewGropu:e.isNewGropu},on:{lookUserList:e.lookUserList,lookDetail:e.lookDetail,openChioseStudent:e.openChioseStudent,resetPay:e.resetPay,close:function(t){e.itemsVisible=!1},onCreateQRCode:e.onCreateQRCode}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"查看缴费用户列表",visible:e.userListVisible,width:"850px"},on:{"update:visible":function(t){e.userListVisible=t}}},[e.userListVisible&&e.viewDetail?a("schoolPayUserList",{attrs:{detail:e.viewDetail}}):e._e()],1),e._v(" "),e.reviewVisible?a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px"},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id},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._e(),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.paymentType,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.changeActive,changePaymentType:e.changePaymentType}}):e._e()],1),e._v(" "),e.chioseStudentVisible?a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[e.chioseStudentVisible?a("setStudentFee",{ref:"setStudentFee",attrs:{batchNo:e.batchNo,musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1):e._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.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=[],s=(a("a481"),a("5530")),n=a("c7eb"),o=(a("96cf"),a("1da1")),l=a("333d"),c=a("5a0c"),u=a.n(c),p=a("641c"),m=a("61f7"),d=a("1cc7"),h=a("d349"),f=a("b38b"),y=a("1672"),b=a("b3d0"),v=a("940a"),g=a("e623"),_=a("86e8"),S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"学生编号",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.FetchList(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.storeState.sounds,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.FetchList}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchDel",expression:"'musicGroupPaymentCalenderDetail/batchDel'"}],attrs:{type:"primary",disabled:!e.activeChiose.length},on:{click:e.deleteUser}},[e._v("删除学员")])],1)],1),e._v(" "),a("el-table",{attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.userId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"100",align:"center",prop:"studentId",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?a("div",[a("copy-text",[e._v(e._s(t.row.sysUser.username))])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员声部"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("overflow-text",{attrs:{width:"100%",text:e.row.studentRegistration&&e.row.studentRegistration.subjectName}})]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"学员状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.studentRegistration?a("div",[e._v("\n "+e._s(e._f("studentTeamStatus")(t.row.studentRegistration.musicGroupStatus))+"\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"130",align:"center",prop:"studentId",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.sysUser?a("div",[a("copy-text",[e._v(e._s(t.row.sysUser.phone))])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"110",align:"center",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}})],1)},w=[],T=a("704d"),P={search:"",subjectId:""},x={props:["detail"],components:{pagination:l["a"]},data:function(){return{searchForm:Object(s["a"])({},P),list:[],activeChiose:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{storeState:function(){return T["a"].state}},mounted:function(){this.detail&&(T["a"].dispatch("getFindSound",{data:{musicGroupId:this.detail.musicGroupId}}),this.FetchList())},methods:{handleSelectionChange:function(e){this.activeChiose=e},onReSet:function(){this.searchForm=Object(s["a"])({},P),this.FetchList()},deleteUser:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除选中学员?","提示",{type:"warning"});case 3:return e.next=5,Object(d["C"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["Zb"])(Object(s["a"])({id:this.detail.id,page:this.rules.page,rows:this.rules.limit},this.searchForm));case 3:t=e.sent,this.rules.total=t.data.total,this.list=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},O=x,k=a("2877"),F=Object(k["a"])(O,S,w,!1,null,"4d351015",null),C=F.exports,D=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)},I=[],$={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(a){var r,i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}return r=t.data.id,i=t.form.memo,e.prev=3,e.next=6,Object(y["j"])({id:r,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")}}},j=$,E=Object(k["a"])(j,D,I,!1,null,"4b111bac",null),A=E.exports,G=a("cd32"),N=a("3762"),L=a("267e"),R=a("ed08"),M=a("92e3"),U={props:["isNewGropu"],components:{pagination:l["a"],setStudentFee:b["default"],userPayForm:v["a"],schoolPayForm:_["a"],QrCode:p["a"],review:G["a"],reviewDetail:N["a"],teamType:"","pay-items":g["a"],schoolPayUserList:C,isGetMoney:A},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,userListVisible:!1,itemsVisible:!1,teamType:this.$route.query.type,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",payOrderTypeLists:M["N"],getMoneyVisible:!1,baseInfo:null,paymentType:""}},created:function(){},mounted:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.paymentType="DRAFT"==this.team_status?0:1,e.prev=1,e.next=4,Object(h["n"])({rows:9999});case 4:if(t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,!(this.organizationCourseUnitPriceSettings.length<=0)){e.next=9;break}return this.$bus.$emit("showguide",["teamCourseFee"]),e.abrupt("return");case 9:e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](1);case 13:this.init();case 14:case"end":return e.stop()}}),e,this,[[1,11]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(R["e"])(L["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.team_status;return"DRAFT"==e||"PROGRESS"==e},team_status:function(){return this.$route.query.team_status}},methods:{init:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(y["i"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getTeamInfo(),this.getList();case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),getTeamInfo:function(){var e=this;this.$route.query.id&&Object(d["Qb"])({musicGroupId:this.$route.query.id}).then((function(t){200==t.code&&(e.baseInfo=t.data,e.$emit("getBaseInfo",e.baseInfo))}))},newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},changePaymentType:function(e){this.paymentType=e},newSchoolPay:function(){var e,t;if(2!=(null===(e=this.baseInfo)||void 0===e||null===(t=e.musicGroup)||void 0===t?void 0:t.courseViewType)||"DRAFT"!=this.team_status){var a=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(s["a"])(Object(s["a"])({},a),{},{payUserType:"SCHOOL"})},(function(e){e.meta.title="学校缴费设置"}))}else this.$message.error("会员缴费乐团无法创建学校缴费")},getList:function(){var e=this,t=this.$route.query.id;return Object(f["c"])({page:this.rules.page,rows:this.rules.limit,musicGroupId:t,payUserType:"SCHOOL",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){2===e&&(this.payForm.paymentValidEndDate=null)},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(m["e"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){if("MUSIC_APPLY"==e.paymentType||"MUSIC_RENEW"==e.paymentType||"ADD_COURSE"==e.paymentType){this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.isNew=!1,this.activeRow=e;var t=this.$route.query;this.$router.push({path:"/business/studentPaySet",query:Object(s["a"])(Object(s["a"])({},t),{},{payUserType:"SCHOOL",calenderId:e.id})},(function(e){e.meta.title="学校缴费设置"}))}else this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().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["B"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookUserList:function(e){console.log(Object(s["a"])({},e)),this.viewDetail=Object(s["a"])({},e),this.userListVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},removeBatchNo:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(y["m"])({batchNo:t.batchNo});case 5:this.$message.success("删除成功"),this.getList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.batchNo=this.batchNo,Object(y["n"])(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["vc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?u()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?u()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getTeamInfo(),e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,r=new Date(a.replace(/-/g,"/"));r=new Date(1e3*(r/1e3+86400*t));var i=r.getFullYear()+"-"+(r.getMonth()+1)+"-"+r.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.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:this.getTeamInfo(),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),commmitGetMoney:function(e){this.activeRow=e,this.getMoneyVisible=!0},submitGetMoney:function(){this.$refs.getMoney.submitGetMoney()},closeMoney:function(){this.getMoneyVisible=!1,this.getList()},revoke:function(){var e=Object(o["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否撤回此缴费项目的审批?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(y["w"])({batchNo:t.batchNo});case 5:e.sent,this.$message.success("取消审批成功"),this.getList(),this.getTeamInfo(),e.next=13;break;case 11:e.prev=11,e.t0=e["catch"](0);case 13:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},V=U,q=(a("5b17"),Object(k["a"])(V,r,i,!1,null,"6bf1e278",null));t["a"]=q.exports},f6ab:function(e,t,a){"use strict";a("36c9")},fc99:function(e,t,a){"use strict";a("23f0")}}]);