chunk-1d43077c.366a9389.js 156 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d43077c"],{"054c":function(e,t,a){},"070d":function(e,t,a){"use strict";var i=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.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/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newUserPay}},[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:"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:"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.auditStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",prop:"courseCurrentPrice",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice:t.row.courseCurrentPrice))+"\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("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType&&"SPAN_GROUP_CLASS_ADJUST"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),e.teamStatus&&"REJECT"===t.row.auditStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"NO"!=t.row.auditStatus||!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/delByBatchNo",expression:"'musicGroupPaymentCalender/delByBatchNo'"}],attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],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.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(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:"PRE_BUILD_FEE"==e.team_status?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!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",{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,i){return a("el-tab-pane",{key:i,attrs:{label:t.subName,lazy:"",name:t.subjectId.toString()}},[a("subject-preview",{attrs:{subjectId:t.subjectId,calenderId:e.dialogCalenderId}})],1)})),1),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogSubjectVisible=!1}}},[e._v("取 消")])],1)],1)],1)},r=[],s=(a("6b54"),a("a481"),a("96cf"),a("1da1")),n=a("333d"),o=a("5a0c"),l=a.n(o),c=a("641c"),u=a("61f7"),p=a("1cc7"),m=a("b38b"),d=a("d349"),h=a("1672"),y=a("b3d0"),f=a("940a"),b=a("e623"),v=a("86e8"),g=a("cd32"),_=a("3762"),S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{background:"#F3F4F8"}},[e._m(0),e._v(" "),a("div",{staticClass:"section"},[a("h2",{staticClass:"title"},[e._v(e._s(1==e.courseViewType?"服务":"乐团课程"))]),e._v(" "),e.serviceValidDate&&1==e.courseViewType?a("p",{staticStyle:{"font-size":"14px",padding:"2px 0",color:"#f85043"}},[e._v("服务有效期:"+e._s(e.serviceValidDate))]):e._e(),e._v(" "),e.courseShowStatus&&1==e.courseViewType?e._l(e.courseShowInfo,(function(t,i){return a("el-row",{key:i,staticClass:"option-row",class:[t.isStudentOptional?"":"disabled"],nativeOn:{click:function(a){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:16}},[a("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]}),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",{staticClass:"el-icon-question",nativeOn:{click:function(t){return 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)})):e._e(),e._v(" "),0==e.courseViewType?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:11,offset:1}},[e._v("现价")])],1):e._e(),e._v(" "),e._l(e.courseInfo,(function(t,i){return[0==e.courseViewType?a("el-row",{key:i,staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:12}},[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:11,offset:1}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1):e._e()]}))],2),e._v(" "),e.courseInfo&&e.courseInfo.length>0&&e.isClickStatus&&1==e.courseViewType?a("div",{staticClass:"section"},[a("h2",{staticClass:"title"},[e._v(e._s("乐团课程"))]),e._v(" "),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:11,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.courseInfo,(function(t,i){return[t.isStudentOptional?a("el-row",{key:i,staticClass:"option-row",nativeOn:{click:function(a){return e.onCourseChange(t)}}},[a("el-col",{attrs:{span:12}},[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:11,offset:1}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseCurrentPrice)))])])],1):e._e()]}))],2):e._e(),e._v(" "),e.instrumentResult.length>0?a("div",{staticClass:"section"},[a("h2",{staticClass:"title"},[e._v("乐器")]),e._v(" "),e._l(e.instrumentResultList,(function(t,i){return a("div",{key:i},[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12}},["GROUP"==t[0]["kitType"]?[e._v("团购乐器")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("乐器租赁")]:e._e(),e._v(" "),"FREE"==t[0]["kitType"]?[e._v("免费使用")]:e._e(),e._v(" "),"owned"==t[0]["kitType"]?[e._v("自备乐器")]:e._e()],2),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","LEASE","FREE"].includes(t[0]["kitType"])?[e._v("原价")]:e._e()],2),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:5,offset:1}},[["GROUP","FREE"].includes(t[0]["kitType"])?[e._v("现价")]:e._e(),e._v(" "),"LEASE"==t[0]["kitType"]?[e._v("租赁押金")]:e._e()],2)],1),e._v(" "),e._l(t,(function(t,i){return a("el-row",{key:i,staticClass:"option-row",nativeOn:{click:function(a){return e.instrumentF(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(" "),a("div",[e._v("\n\t\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t\t\t"),t.goodsList?a("div",{staticStyle:{"font-size":".12rem",color:"#aaa"}},[e._v("\n\t\t\t\t\t\t\t\t"+e._s(t.goodsList[0].specification)+"\n\t\t\t\t\t\t\t")]):e._e()])]),e._v(" "),a("el-col",{attrs:{span:6}},["owned"!=t.kitType?a("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.marketPrice)))]):e._e()]),e._v(" "),a("el-col",{attrs:{span:6}},["LEASE"==t.kitType?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))]):e._e(),e._v(" "),"FREE"==t.kitType?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")(Number((t.price-t.coupon).toFixed(2)))))]):e._e()])],1)}))],2)})),e._v(" "),e.leBaoStatus?a("div",[a("el-row",{staticClass:"title-row"},[a("el-col",{attrs:{span:12,offset:1}},[e._v("服务项目")]),e._v(" "),a("el-col",{staticStyle:{"text-align":"right"},attrs:{span:11}},[e._v("现价")])],1),e._v(" "),a("el-row",{staticClass:"option-row",nativeOn:{click:function(t){return e.onLeBao(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[e.buyMaintenance?"check_active":""]}),e._v("乐器保养(一年)"),a("el-icon",{staticStyle:{"padding-left":"0"},attrs:{name:"question"},nativeOn:{click:function(t){return t.stopPropagation(),e.onQuestions("instrument")}}})],1),e._v(" "),a("el-col",{attrs:{span:11,offset:1}},[a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(300)))])])],1)],1):e._e()],2):e._e(),e._v(" "),e.accessOries.length>0?a("div",{key:"accessOries",staticClass:"section"},[a("h2",{staticClass:"title"},[e._v("辅件")]),e._v(" "),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:5,offset:1}},[e._v("现价")])],1),e._v(" "),e._l(e.accessOries,(function(t,i){return a("div",{key:i},[a("el-row",{staticClass:"option-row",nativeOn:{click:function(a){return e.onAuxiliarie(t)}}},[a("el-col",{attrs:{span:12}},[a("i",{staticClass:"check_default",class:[t.checked?"check_active":""]}),e._v(e._s(t.name)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:6}},[a("del",{staticStyle:{color:"#AAA","font-size":"12px"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.goodsList[0]?t.goodsList[0].marketPrice:0)))])]),e._v(" "),a("el-col",{attrs:{span:6}},[0==t.price?a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("免费")]):a("span",{staticStyle:{color:"#1A1A1A"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.price)))])])],1),e._v(" "),t.childGoodsList?a("el-row",{staticStyle:{"padding-left":"24px"}},[a("el-col",e._l(t.childGoodsList,(function(i,r){return a("span",{key:i.id,staticStyle:{"font-size":"12px",color:"#aaaaaa"}},[e._v(e._s(i.name)+" "+e._s(t.childGoodsList.length-1==r?"":","))])})),0)],1):e._e()],1)}))],2):e._e(),e._v(" "),a("div",{staticClass:"buy"},[a("div",{staticClass:"price"},[a("p",{staticClass:"oldprice"},[a("del",{staticClass:"text"},[e._v("原价")]),e._v(" "),a("del",{staticStyle:{"font-size":"13px"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),a("p",{staticClass:"now_price"},[a("span",{staticClass:"text"},[e._v("仅需支付")]),e._v(" "),a("span",{staticStyle:{"font-weight":"bold"}},[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),a("a",{staticClass:"btn-submit"},[e._v("购买")])])])},w=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"noticeInfo"},[a("h2",[e._v("注册说明")]),e._v("\n 1、您注册时所选择的乐团声部,即为乐团录取最终确认的声部,请您务必仔细填写;"),a("br"),e._v("\n\t\t\t2、为避免因部分已注册家长放弃名额导致乐团声部失衡,系统设定各声部限额放大20%比例开放注册,系统自动按照完全完成注册的先后顺序确认录取名单,因此,超员后有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,在您孩子的身体条件适合该乐器的前提下,我们将优先予以调配。\n\t\t")])}],x=(a("7f7f"),a("c5f6"),a("456d"),a("ac6a"),a("ec8a")),P={0:"按月",1:"按学期",2:"一次性"},k={props:["subjectId","calenderId"],data:function(){var e=this.$route.query;return{musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0,musicMarketClassFee:0,accessPrice:0,accessMarketPrice:0,goodsPrice:0,goodsMarketPrice:0},courseInfo:null,musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null,serviceValidDate:null,courseShowStatus:!1,chargeTypeList:[],chargeTypeName:null,courseViewType:0,leBaoStatus:!1,buyMaintenance:!1,isClickStatus:!1,accessStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId,calenderId:this.calenderId},e.next=3,Object(p["Rb"])().then((function(e){var t=e.data;200==e.code&&(a.chargeTypeList=t.rows||[])}));case 3:return e.next=5,Object(p["Hb"])(t).then((function(e){var t=e;if(200==t.code){var i=t.data;a.courseViewType=i.musicGroup.courseViewType||0,a.paymentPattern=2,i.musicGroupPaymentCalender&&(a.paymentPattern=i.musicGroupPaymentCalender.paymentPattern,a.serviceValidDate=l()(i.musicGroupPaymentCalender.paymentValidStartDate).format("YYYY/MM/DD")+"~"+l()(i.musicGroupPaymentCalender.paymentValidEndDate).format("YYYY/MM/DD"));var r=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null;if(r&&r.length>0){var s={courseCurrentPrice:0,courseOriginalPrice:0,courseType:null,name:"器乐练习系统"};r.forEach((function(e){e.isStudentOptional||(a.courseShowStatus=!0,s={courseCurrentPrice:e.courseCurrentPrice+s.courseCurrentPrice,courseOriginalPrice:e.courseCurrentPrice+s.courseCurrentPrice,courseType:"PROJECT",isStatus:!0,name:"器乐练习系统"})})),a.courseShowInfo=[s],a.courseInfo=r}else a.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}];a.isClickStatus=!1,a.courseInfo.forEach((function(e){e.isStudentOptional?(e.isStatus=!1,a.isClickStatus=!0):e.isStatus=!0})),a.musicGroupSubject=i.musicGroupSubjectPlan;var n={},o=[];if(i.musicGroupSubjectGoodsGroupList.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{};for(var i in t){var r=Object.assign({},e);r.marketPrice=r.goodsList[0].marketPrice,r.kitType=i,r.coupon=t[i],n.id?(r.checked=!1,"GROUP"==i?("GROUP"==n.kitType&&n.price<r.price||"LEASE"==n.kitType||"FREE"==n.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,n={id:r.id,price:r.price,kitType:i}):"LEASE"==i?"LEASE"==n.kitType&&n.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,n={id:r.id,price:r.price,kitType:i}):"FREE"==i&&"FREE"==n.kitType&&n.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,n={id:r.id,price:r.price,kitType:i})):(r.checked=!0,n={id:r.id,price:r.price,kitType:i}),a.instrumentResult.push(r),o.push(r)}}else"ACCESSORIES"==e.type&&(e.checked=!0,a.accessOries.push(e))})),a.instrumentResult.length>0){var c={id:-1,kitType:"owned",name:"自备乐器",price:0,marketPrice:0,checked:!1};o.push(c),a.instrumentResult.push(c);var u=a.groupBy(o,(function(e){return[e.kitType]}));a.instrumentResultList=u,a.chargeTypeList.forEach((function(e){e.id==i.musicGroup.chargeTypeId&&(a.chargeTypeName=e.description)}));var p=!1;a.accessOries.forEach((function(e){e.childGoodsList&&e.childGoodsList.length>0&&e.childGoodsList.forEach((function(e){76==e.id&&(p=!0)})),76==e.goodsIdList&&(p=!0)})),a.accessStatus=p,23==a.subjectId&&(a.accessStatus=!0,p=!0),a.instrumentResult.forEach((function(e){e.checked&&"GROUP"==e.kitType&&!p&&(a.leBaoStatus=!0,a.buyMaintenance=!0)}))}}a.calcPrice()}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onLeBao:function(){this.buyMaintenance=!this.buyMaintenance,this.calcPrice()},groupBy:function(e,t){var a={};return e.forEach((function(e){var i=JSON.stringify(t(e));a[i]=a[i]||[],a[i].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){}})},onCourseChange:function(e){e.isStudentOptional&&(e.isStatus=!e.isStatus,this.calcPrice())},onClickCheckbox:function(){this.payType?this.needPrice=this.orderInfo.amount:this.orderInfo.amount>=this.balance?this.needPrice=Number((this.orderInfo.amount-this.balance).toFixed(2)):this.needPrice=0,this.payType=!this.payType},onAuxiliarie:function(e){e.checked=!e.checked,this.calcPrice()},instrumentF:function(e){this.instrumentResult.forEach((function(e){e.checked=!1})),e.checked=!0,this.accessStatus||("owned"!=e.kitType?(this.leBaoStatus=!0,this.buyMaintenance=!0):(this.leBaoStatus=!1,this.buyMaintenance=!1)),this.calcPrice()},calcPrice:function(){var e=this,t=[],a=[],i=0,r=0,s=0,n=0,o={},c=[],u=0,p=[],m=0,d=0,h=0,y=0,f=0,b=0,v="",g=this.musicGroupSubject,_=this.courseInfo;if(g){var S=this.courseShowInfo;if(S.length>0&&1==this.courseViewType){var w=0;S.forEach((function(e){w+=parseFloat(e.courseCurrentPrice)})),r+=parseFloat(w),t.unshift({name:this.chargeTypeName,type:P[this.paymentPattern],price:Number(w.toFixed(2))})}_.forEach((function(t){t.isStatus&&(d+=parseFloat(t.courseCurrentPrice),t.id>0&&c.push(t.id),t.isStudentOptional?r+=parseFloat(t.courseCurrentPrice):b+=parseFloat(t.courseCurrentPrice),0!=e.courseViewType||t.isStudentOptional||(r+=parseFloat(t.courseCurrentPrice)))}))}var x=this.instrumentResult;x.length>0&&x.forEach((function(e){e.checked&&("自备"!=e.name&&(v+=e.goodsIdList),"FREE"==e.kitType?(i+=0,u=0):"LEASE"==e.kitType?(u=e.coupon,"自备"!=e.name?(i+=e.depositFee,s+=e.depositFee):i+=0):(i+=parseFloat(e.price),s+=parseFloat(e.price),u=e.coupon?e.coupon:0),"LEASE"==e.kitType?"自备"!=e.name&&(r+=parseFloat(e.marketPrice),n+=e.depositFee):(r+=parseFloat(e.marketPrice),n+=parseFloat(e.marketPrice)),e.id&&(o[e.id]=e.kitType),"LEASE"==e.kitType?t.push({name:e.name,type:"租赁",price:e.depositFee}):"GROUP"==e.kitType?t.push({name:e.name,type:"团购",price:parseFloat(e.price-u)}):"FREE"==e.kitType&&t.push({name:e.name,type:"免费",price:0}),"GROUP"==e.kitType&&1==e.groupRemissionCourseFee&&(d=parseFloat(d-b)))})),this.leBaoStatus&&this.buyMaintenance&&(r+=300,i+=300,t.push({name:"乐器保养",time:l()().format("YYYY/MM/DD")+"~"+l()().add(365,"day").format("YYYY/MM/DD"),type:"包年",price:300})),i+=parseFloat(m+d),parseFloat(m+d)>0&&0==this.courseViewType&&t.unshift({name:"乐团课",type:P[this.paymentPattern],price:Number((m+d).toFixed(2))}),this.accessOries.length>0&&this.accessOries.forEach((function(e){e.checked&&(y+=parseFloat(e.price),i+=parseFloat(e.price),e.goodsList&&e.goodsList.length>0&&e.goodsList.forEach((function(e){f+=parseFloat(e.marketPrice),r+=parseFloat(e.marketPrice)})),o[e.id]="ACCESSORIES",t.push({name:e.name,type:"团购",price:e.price}))}));var k=i;if(i-u>=0?(i=Number((i-u).toFixed(2)),this.errorPrice=!1):(i=0,this.errorPrice=!0),i-m-d>0&&a.push(1,2),parseFloat(m+d)>0&&a.push(3,4,5),this.ids=a,this.payType){var T=Number((i-this.balance).toFixed(2));this.needPrice=T>0?T:0}else this.needPrice=Number(i.toFixed(2));this.buyList=t,this.orderInfo={amount:Number(i.toFixed(2)),marketPrice:Number(r.toFixed(2)),groupPurchasePrice:k,couponPrice:u,goodsGroupIds:o,goodsIds:p.join(","),contractGoodsIds:v,courseKeys:c,musicClassFee:d,musicMarketClassFee:h,accessMarketPrice:f,accessPrice:y,goodsPrice:s,goodsMarketPrice:n}},permission:function(e){return Object(x["a"])(e)}}},T=k,C=(a("3d3f"),a("2877")),D=Object(C["a"])(T,S,w,!1,null,"cb32f586",null),F=D.exports,O=a("267e"),$=a("ed08"),I=a("92e3"),G={props:["isNewGropu"],components:{pagination:n["a"],setStudentFee:y["default"],userPayForm:f["a"],schoolPayForm:v["a"],QrCode:c["a"],review:g["a"],reviewDetail:_["a"],"pay-items":b["a"],subjectPreview:F},data:function(){return{team_status:"",musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,itemsVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",teamType:this.$route.query.type,payOrderTypeLists:I["v"],dialogSubjectVisible:!1,dialogSubjectList:[],activeName:null,dialogCalenderId:null,baseInfo:null}},created:function(){},mounted:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object($["b"])(O["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e}},methods:{init:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.team_status=this.$route.query.team_status,e.prev=1,e.next=4,Object(h["a"])({musicGroupId:this.$route.query.id});case 4:e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](1);case 9:Object(p["Lb"])({musicGroupId:this.$route.query.id}).then((function(e){200==e.code&&(t.baseInfo=e.data)})),this.getList();case 11:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(m["c"])({page:this.rules.page,rows:this.rules.limit,search:t,payUserType:"STUDENT",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id+"&id="+this.$route.query.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(p["y"])({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:"/strudentPayInfo",query:t})},removeBatchNo:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(h["d"])({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(h["e"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(p["nc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,i=new Date(a.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var r=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return r},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}(),onPreview:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.dialogCalenderId=t.id,a=this.$route.query.id,e.next=4,Object(p["H"])({musicGroupId:a}).then((function(e){200==e.code?(i.dialogSubjectList=e.data.musicGroupSubjectPlans,i.activeName=i.dialogSubjectList[0].subjectId.toString(),i.dialogSubjectVisible=!0):i.$message.warning("没有可预览的声部")}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},E=G,L=(a("de4b"),Object(C["a"])(E,i,r,!1,null,"2d6fa749",null));t["a"]=L.exports},"0964":function(e,t,a){},"0c33":function(e,t,a){"use strict";a("ba13")},1400:function(e,t,a){"use strict";a("b3f6")},1452:function(e,t,a){"use strict";a("6243")},"160b":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return o}));var i=a("b775"),r=a("829b"),s="/api-web";function n(e){return Object(r["a"])({url:s+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function o(e){return Object(i["a"])({url:s+"/chargeType/queryPage",method:"get",params:e})}},"1aa8":function(e,t,a){"use strict";a("7619")},2850:function(e,t,a){},"2a71":function(e,t,a){},"2e3a":function(e,t,a){},3078:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),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,"f",(function(){return c})),a.d(t,"g",(function(){return u})),a.d(t,"h",(function(){return p}));var i=a("829b"),r=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/getMusicGroupStuReBack",params:e,method:"get"})},s=function(e){return Object(i["a"])({url:"/api-web/musicGroup/addMusicGroupRegs",data:e,method:"post",requestType:"json"})},n=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/batchDel",data:e,method:"post",requestType:"json"})},o=function(e){return Object(i["a"])({url:"/api-web/musicGroup/closeMusicGroup",data:e,method:"post",requestType:"json"})},l=function(e){return Object(i["a"])({url:"/api-web/musicGroup/finishPreApply",data:e,method:"post",requestType:"form"})},c=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/queryPreApplyList",params:e,method:"get",requestType:"json"})},u=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/queryPreApplySubjectList",params:e,method:"get",requestType:"json"})},p=function(e){return Object(i["a"])({url:"/api-web/musicGroup/sendParentMeetingNotice",data:e,method:"post",requestType:"form"})}},"346a":function(e,t,a){"use strict";a("67c9")},3683:function(e,t,a){"use strict";a("2a71")},3762:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.musicGroupPaymentCalenders[0]&&"ADD_STUDENT"===e.musicGroupPaymentCalenders[0].paymentType?a("el-alert",{staticClass:"alert",attrs:{title:"学员信息",closable:!1,type:"info"}}):e._e(),e._v(" "),e.musicGroupPaymentCalenders[0]&&"ADD_STUDENT"===e.musicGroupPaymentCalenders[0].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.auditDto.organName))]),e._v(" "),a("descriptions-item",{attrs:{label:"乐团名称:"}},[a("overflow-text",{attrs:{text:e.auditDto.musicGroupName,width:"100%"}})],1),e._v(" "),a("descriptions-item",{attrs:{label:"乐团编号:"}},[a("copy-text",[e._v(e._s(e.auditDto.musicGroupId))])],1),e._v(" "),a("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.auditDto.createTime))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.auditDto.paymentType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.auditDto.payUserType)))]),e._v(" "),a("descriptions-item",{attrs:{span:3,label:"备注:"}},[a("span",{staticStyle:{display:"inline-block","max-width":"100%"}},[a("overflow-text",{attrs:{text:e.musicGroupPaymentCalenders[0]?e.musicGroupPaymentCalenders[0].memo:null}})],1)])],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"课程信息",closable:!1,type:"info"}}),e._v(" "),e.musicGroupPaymentCalenderCourseSettingName?a("descriptions",{attrs:{column:3}},[a("descriptions-item",{attrs:{span:2,label:"收费标准:"}},[e._v(e._s(e.musicGroupPaymentCalenderCourseSettingName))])],1):e._e(),e._v(" "),e.musicGroupPaymentCalenderCourseSettings.length?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderCourseSettings,stripe:""}},[a("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}],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,2601841068)}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}},[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:"原价(元)"}})],1):e._e(),e._v(" "),e.musicGroupPaymentCalenderStudentDetails.length?a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderStudentDetails,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,2601841068)}),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")(e.musicGroupPaymentCalenders[0]&&"SPAN_GROUP_CLASS_ADJUST"===e.musicGroupPaymentCalenders[0].paymentType?t.row.masterSubCoursePrice:t.row.courseOriginalPrice))+"\n ")])]}}],null,!1,850581136)})],1):e._e(),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}),e._v(" "),e._l(e.musicGroupPaymentCalenders,(function(t){return a("descriptions",{key:t.id,attrs:{column:2}},[a("descriptions-item",{attrs:{label:"缴费金额:"}},[e._v(e._s(e.numeral(t.paymentAmount).format("0,0")))]),e._v(" "),a("descriptions-item",{attrs:{label:"缴费方式:"}},[e._v(e._s(e._f("paymentPatternTypeFormat")(t.paymentPattern)))]),e._v(" "),"SCHOOL"!==t.payUserType?a("descriptions-item",{attrs:{span:3,label:"缴费日期:"}},[e._v(e._s(e._f("dayjsFormat")(t.startPaymentDate))+" -\n "+e._s(e._f("dayjsFormat")(t.deadlinePaymentDate)))]):e._e(),e._v(" "),a("descriptions-item",{attrs:{span:3,label:"缴费有效期:"}},[e._v(e._s(e._f("dayjsFormat")(t.paymentValidStartDate))+" -\n "+e._s(e._f("dayjsFormat")(t.paymentValidEndDate)))])],1)})),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,"append-to-body":"",width:"600px",title:"查看学员"},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-table",{attrs:{data:e.simpleUserDto}},[a("el-table-column",{attrs:{prop:"userId",label:"用户ID",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userName",label:"姓名",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectNames",label:"声部",width:"180"}})],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.payVisible=!1}}},[e._v("关 闭")])],1)],1)],2)},r=[],s=(a("96cf"),a("1da1")),n=(a("7f7f"),a("5530")),o=a("2b0e"),l=a("6612"),c=a.n(l),u=a("1672"),p=a("ddec"),m=a("837c");o["default"].use(p["a"]);var d={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],musicGroupPaymentCalenderStudentDetails:[],simpleUserDto:[],musicGroupPaymentCalenders:[],studentNum:0,phone:"",username:""},h={components:{Item:m["a"]},props:["detail"],data:function(){return Object(n["a"])({payVisible:!1},d)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},methods:{numeral:c.a,init:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["g"])({batchNo:this.detail.batchNo,musicGroupId:this.detail.musicGroupId});case 3:for(a in t=e.sent,d)d.hasOwnProperty(a)&&(this[a]=t.data[a]);e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},y=h,f=(a("3683"),a("2877")),b=Object(f["a"])(y,i,r,!1,null,"c199f174",null);t["a"]=b.exports},"3d3f":function(e,t,a){"use strict";a("e940")},6193:function(e,t,a){"use strict";a("aa6f")},6243:function(e,t,a){},"62f6":function(e,t,a){"use strict";a("9112")},"67c9":function(e,t,a){},"73b3":function(e,t,a){"use strict";var i=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)])])},r=[],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},i={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(i).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(t){if(-1!=t.indexOf("code")){var i=JSON.parse(t);e.$message.error(i.msg)}else{var r=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=r,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},i={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(i).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(t){if(-1!=t.indexOf("code")){var i=JSON.parse(t);e.$message.error(i.msg)}else{var r=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=r,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("fc1a"),a("2877")),y=Object(h["a"])(d,i,r,!1,null,"546db682",null);t["a"]=y.exports},7619:function(e,t,a){},"80b0":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"base-container"},[a("div",{staticClass:"banseLeft"},[a("div",{staticClass:"head"},[e._v("乐团基本信息:")]),e._v(" "),a("el-form",{ref:"topinfo",staticStyle:{"margin-left":"11px"},attrs:{model:e.topFrom,inline:!0,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"所属分部",prop:"section",rules:[{required:!0,message:"所属分部不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeSection},model:{value:e.topFrom.section,callback:function(t){e.$set(e.topFrom,"section","string"===typeof t?t.trim():t)},expression:"topFrom.section"}},e._l(e.sectionList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型",prop:"type",rules:[{required:!0,message:"收费类型不能为空"}]}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},on:{change:e.changeType},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return 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"}},[a("el-option",{attrs:{label:"课程收费",value:0}}),e._v(" "),a("el-option",{attrs:{label:"系统收费",value:1}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},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(" "),a("el-form-item",{attrs:{label:"乐团名称",prop:"name",rules:[{required:!0,message:"乐团名称不能为空"}]}},[a("el-input",{attrs:{placeholder:"请输入乐团名称",disabled:e.basdisabled},model:{value:e.topFrom.name,callback:function(t){e.$set(e.topFrom,"name","string"===typeof t?t.trim():t)},expression:"topFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"运营主管",prop:"boss",rules:[{required:!0,message:"运营主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.boss,callback:function(t){e.$set(e.topFrom,"boss","string"===typeof t?t.trim():t)},expression:"topFrom.boss"}},e._l(e.bossList,(function(t){return a("el-option",{key:t.userId,attrs:{label:t.realName,value:t.userId}},[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.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.educationList,(function(t,i){return a("el-option",{key:i,attrs:{label:t.realName,value:t.userId}},[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.userId)))])])})),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,i){return a("el-option",{key:i,attrs:{label:t.userName,value:t.userId}},[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.userId)))])])})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"自定义课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"标准课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:!e.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,i){return a("el-option",{key:i,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:"isClass"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.isClass,callback:function(t){e.$set(e.topFrom,"isClass","string"===typeof t?t.trim():t)},expression:"topFrom.isClass"}},[e._v("课堂课乐团")])],1),e._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],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)])},r=[],s=(a("28a5"),a("a481"),a("ac6a"),a("7f7f"),a("96cf"),a("1da1")),n=a("ade3"),o=a("1cc7"),l=a("a488"),c=a("5a0c"),u=a.n(c),p=a("7676"),m=a.n(p),d=a("99b4"),h=a("641c"),y=a("92e3"),f=a("61f7"),b=a("879d"),v={components:{mergeMusic:b["a"],qrCode:h["a"]},name:"teamBaseInfo",props:["getTeamList"],data:function(){return Object(n["a"])({classStatus:y["g"],organId:null,topFrom:{type:"",section:"",courseViewType:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],educationList:[],bossList:[],addList:[],activeTeam:[],teamid:"",teamStatus:"",isInit:!1,technician:[],basdisabled:!1,paymentExpireDate:"",applyExpireDate:null,mergeVisible:!1,team_status:"",paymentNum:0,paymentStatus:!1,paymentForm:{paymentExpireDate:null},paymentRules:{paymentExpireDate:[{required:!0,message:"请设置缴费截止日期",trigger:"blur"}]},extendForm:{expireDate:null},extendRule:{expireDate:[{required:!0,message:"请选择延长时间",trigger:"change"}]},isPay:!1,extendPaymentStatus:!1,codeStatus:!1,qrCodeUrl:null,codeTitle:null},"teamid","")},created:function(){},mounted:function(){"newTeam"==this.$route.query.type&&this.onReset(),this.init()},activated:function(){(this.teamid&&this.teamid!=this.$route.query.id||this.teamStatus!=this.$route.query.type)&&this.init(),"true"==this.$route.query.clear&&this.onReset(),"newTeam"==this.teamStatus&&this.$store.dispatch("buildIndex",0),"newTeam"!=this.teamStatus&&this.$store.dispatch("draftIndex",0),this.teamStatus=this.$route.query.type,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"APPLY"==this.teamStatus||"PAY"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1},deactivated:function(){},methods:{setStore:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.teamid){e.next=12;break}if(a=this.$helpers.lodash,i=JSON.parse(localStorage.getItem("".concat(this.teamid,"base"))),a.isEqual(this.topFrom,i)||!i){e.next=9;break}return e.next=6,this.$confirm("已修改当前页面数据是否保存","提示",{confirmButtonText:"是",cancelButtonText:"否",type:"warning",closeOnClickModal:!1,distinguishCancelAndClose:!0}).then(Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.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(r.teamid,"base")),!0)}));case 6:return e.abrupt("return",e.sent);case 9:return e.abrupt("return",!0);case 10:e.next=14;break;case 12:return localStorage.setItem("newTeambase",JSON.stringify(this.topFrom)),e.abrupt("return",!0);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e,t=this;if(this.isInit=!0,this.$route.query.id&&(this.teamid=this.$route.query.id),this.teamStatus=this.$route.query.type,this.team_status=this.$route.query.team_status,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus||"teamCanceled"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id){this.teamid=this.$route.query.id;var a,i=JSON.parse(localStorage.getItem("".concat(this.$route.query.id,"base")));if(null!==i&&void 0!==i&&i.section)this.topFrom=i,null!==(a=this.topFrom)&&void 0!==a&&a.section&&this.getBaseList(this.topFrom.section);else Object(o["Lb"])({musicGroupId:this.teamid}).then((function(e){200==e.code&&(t.setBase(e),e.data.musicGroup.organId&&t.getBaseList(e.data.musicGroup.organId),t.$emit("getBaseInfo",e.data))}))}else{var r,s=JSON.parse(localStorage.getItem("newTeambase"));s?this.topFrom=s:this.topFrom,null!==(r=this.topFrom)&&void 0!==r&&r.section&&this.getBaseList(this.topFrom.section)}this.getStudentStatus(),this.$emit("getName",null===(e=this.topFrom)||void 0===e?void 0:e.name),Object(o["eb"])().then((function(e){200==e.code&&(t.sectionList=e.data)})),Object(o["Rb"])({rows:1e3}).then((function(e){200==e.code&&(t.typeList=e.data.rows)}))},changeSection:function(e){this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",this.getBaseList(e)},getBaseList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,i,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return Object(d["z"])({organId:t}).then((function(e){200==e.code&&(r.cooperationList=e.data)})),Object(d["o"])({organId:t}).then((function(e){200==e.code&&(r.addList=e.data)})),Object(l["b"])().then((function(e){200==e.code&&(r.technician=e.data)})),e.prev=3,e.next=6,Object(o["O"])({organId:t,employeeRole:"EDUCATION"});case 6:a=e.sent,this.educationList=a.data,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),console.log(e.t0);case 13:return e.prev=13,e.next=16,Object(o["O"])({organId:t,employeeRole:"TEAM_TEACHER"});case 16:i=e.sent,this.bossList=i.data,e.next=23;break;case 20:e.prev=20,e.t1=e["catch"](13),console.log(e.t1);case 23:Object(o["Jb"])({organId:t}).then((function(e){200==e.code&&(r.teacherList=e.data)}));case 24:case"end":return e.stop()}}),e,this,[[3,10],[13,20]])})));function t(t){return e.apply(this,arguments)}return t}(),chioseSchool:function(e){},gotoNext:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,r){i.$refs["topinfo"].validate(function(){var r=Object(s["a"])(regeneratorRuntime.mark((function r(s,n){return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(s){r.next=5;break}i.$message.error("请填写建团必要参数"),e(!1),r.next=16;break;case 5:if(i.$store.dispatch("topinfo",i.topFrom),"teamAudit"!=i.teamStatus){r.next=10;break}i.$emit("handleClick",{name:"2"}),r.next=16;break;case 10:return i.$emit("getName",i.topFrom.name),r.next=13,i.resetSubmit(t);case 13:a=r.sent,console.log(a,"tempStatus"),e(a);case 16:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),resetSubmit:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,i){a.$refs["topinfo"].validate(function(){var r=Object(s["a"])(regeneratorRuntime.mark((function r(n,l){var c,p;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n){r.next=5;break}a.$message.error("请填写必要参数"),i(),r.next=26;break;case 5:c=null,r.t0=a.teamStatus,r.next="resetTeam"===r.t0?9:"newTeam"===r.t0?11:"teamList"===r.t0?13:"teamDraft"===r.t0?15:17;break;case 9:return c="PROGRESS",r.abrupt("break",17);case 11:return c="DRAFT",r.abrupt("break",17);case 13:return c=null,r.abrupt("break",17);case 15:return c="DRAFT",r.abrupt("break",17);case 17:if(p={},p.musicGroup={settlementType:a.topFrom.salary,applyExpireDate:u()(a.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:a.topFrom.type,cooperationOrganId:a.topFrom.school,courseViewType:a.topFrom.courseViewType,teamTeacherId:a.topFrom.boss,educationalTeacherId:a.topFrom.teacher,enrollClasses:a.topFrom.startClass.join(","),name:a.topFrom.name,paymentPattern:a.topFrom.paymentPattern,paymentValidStartDate:a.topFrom.paymentValidStartDate?u()(a.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):a.topFrom.paymentValidStartDate,paymentValidEndDate:a.topFrom.paymentValidEndDate?u()(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:c,expectStartGroupDate:a.topFrom.startTime,ownershipType:a.topFrom.ownershipType,repairUserId:a.topFrom.repairUserId||null,feeType:a.topFrom.feeType},"newTeam"==a.teamStatus){r.next=25;break}return r.next=22,Object(o["tc"])(p).then(function(){var i=Object(s["a"])(regeneratorRuntime.mark((function i(r){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:200==r.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 i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}());case 22:return r.abrupt("return",r.sent);case 25:Object(o["x"])(p).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:m()(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:m()(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 r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())})));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")},onReset:function(){this.topFrom={type:"",section:"",school:"",courseViewType:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},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["Bb"])(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["Yb"])({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["D"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长缴费成功"),a.extendPaymentStatus=!1,Object(o["Lb"])({musicGroupId:a.teamid}).then((function(e){200==e.code&&(a.paymentExpireDate=e.data.musicGroup.paymentExpireDate)}))):a.$message.error(e.msg)})):Object(o["C"])({musicGroupId:a.teamid,expireDate:a.extendForm.expireDate}).then((function(e){200==e.code?(a.$message.success("延长报名成功"),a.extendPaymentStatus=!1,Object(o["Lb"])({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["d"])()+"/#/login?musicGroupId="+t;else if("detail"==e){var a=this.$route.query.name;this.codeTitle="报名缴费详情",this.qrCodeUrl=Object(f["e"])()+"/#/order?musicGroupId="+t+"&musicGroupName="+a}else"rePayment"==e&&(this.codeTitle="学生报名链接(无乐器)",this.qrCodeUrl=Object(f["d"])()+"/#/login?musicGroupId="+t+"&instrument=1")},gotoStudentList:function(){this.$router.push({query:m()(this.$route.query,{tabrouter:7})})},setBase:function(e){this.topFrom.name=e.data.musicGroup.name,this.$emit("getName",this.topFrom.name),this.topFrom.time=e.data.musicGroup.applyExpireDate,this.topFrom.type=e.data.musicGroup.chargeTypeId,this.topFrom.startClass=e.data.musicGroup.enrollClasses.split(","),this.topFrom.paymentPattern=e.data.musicGroup.paymentPattern,this.topFrom.paymentValidStartDate=e.data.musicGroup.paymentValidStartDate,this.topFrom.paymentValidEndDate=e.data.musicGroup.paymentValidEndDate,this.topFrom.section=e.data.musicGroup.organId,this.topFrom.courseViewType=e.data.musicGroup.courseViewType,this.topFrom.school=e.data.musicGroup.cooperationOrganId,this.topFrom.teacher=e.data.musicGroup.educationalTeacherId,this.topFrom.boss=e.data.musicGroup.teamTeacherId,this.topFrom.address=e.data.musicGroup.schoolId,this.topFrom.salary=e.data.musicGroup.settlementType,this.topFrom.head=e.data.musicGroup.directorUserId?e.data.musicGroup.directorUserId:null,this.topFrom.isClass=e.data.musicGroup.isClassroomLessons,this.topFrom.startTime=e.data.musicGroup.expectStartGroupDate,this.topFrom.ownershipType=e.data.musicGroup.ownershipType,this.topFrom.repairUserId=e.data.musicGroup.repairUserId?e.data.musicGroup.repairUserId:null,this.topFrom.feeType=e.data.musicGroup.feeType?e.data.musicGroup.feeType:null,this.paymentExpireDate=e.data.musicGroup.paymentExpireDate,this.applyExpireDate=e.data.musicGroup.applyExpireDate,localStorage.setItem("".concat(this.teamid,"base"),JSON.stringify(this.topFrom))},changeType:function(e){e&&localStorage.removeItem("".concat(this.teamid,"sound"))}},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}}},g=v,_=(a("6193"),a("1400"),a("2877")),S=Object(_["a"])(g,i,r,!1,null,"76a299a1",null);t["a"]=S.exports},"86e8":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},r=[],s={},n=s,o=a("2877"),l=Object(o["a"])(n,i,r,!1,null,"21abf8f1",null);t["a"]=l.exports},"879d":function(e,t,a){"use strict";var i=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,i){return a("el-collapse-item",{key:i,staticClass:"item",attrs:{name:i},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(i)}}})])])]},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)},r=[],s=(a("96cf"),a("1da1")),n=a("5530"),o=a("b85c"),l=(a("ac6a"),a("456d"),a("160b")),c=a("3078"),u=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)},p=[],m=(a("386d"),a("7f7f"),a("333d")),d={props:["visible","organId"],components:{pagination:m["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 i={};i.id=e[a].id,i.name=e[a].name,t.push(i)}this.passed=t},FetchList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])(Object(n["a"])({rows:this.rules.limit,page:this.rules.page,organId:this.organId},this.search));case 3:t=e.sent,this.tableData=t.data.rows.filter((function(e){return e.id!==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)}}},h=d,y=(a("1aa8"),a("2877")),f=Object(y["a"])(h,u,p,!1,null,"64b6b690",null),b=f.exports,v=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)},g=[],_=(a("6762"),a("2fdb"),a("1672")),S={props:["id","active","name"],data:function(){return{list:[],filterlist:[],passed:[],search:{keyword:"",hastimer:""}}},watch:{active:{immediate:!0,handler:function(){this.active.includes(this.id)&&!this.list.length&&this.FetchDetail()}}},methods:{filter:function(){var e=this.search,t=e.keyword;e.hastimer;this.filterlist=this.list.filter((function(e){var 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(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(_["a"])({musicGroupId:this.id,studentStatus:"NORMAL",paymentStatus:1});case 3:t=e.sent,this.list=t.data,this.filterlist=t.data,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},w=S,x=Object(y["a"])(w,v,g,!1,null,null,null),P=x.exports,k=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)},T=[],C=a("1cc7"),D={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(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除已选择学员?","提示",{type:"warning"});case 3:return e.next=5,Object(c["b"])({musicGroupId:this.id,userIds:this.passed});case 5:this.$message.success("删除成功"),this.FetchDetail(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchDetail:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(C["Pb"])({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}()}},F=D,O=Object(y["a"])(F,k,T,!1,null,null,null),$=O.exports,I={props:["organId"],components:{selectMusic:b,selectItem:P,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={},i=Object(o["a"])(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;a[r.id]?a[r.id]=Object(n["a"])(Object(n["a"])({},a[r.id]),r):a[r.id]=Object(n["a"])(Object(n["a"])({},r),{},{num:0})}}catch(s){i.e(s)}finally{i.f()}this.items=a},remove:function(e){var t=Object(n["a"])({},this.items),a=Object(n["a"])({},this.studentsByMusicId);delete t[e],delete a[e],this.items=Object(n["a"])({},t),this.studentsByMusicId=Object(n["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(s["a"])(regeneratorRuntime.mark((function e(){var t,a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(a in t=[],this.studentsByMusicId)Object.hasOwnProperty.call(this.studentsByMusicId,a)&&(i=this.studentsByMusicId[a],t=t.concat(i));if(t.length){e.next=5;break}return this.$message.error("请至少选择一个需要合并的学生"),e.abrupt("return");case 5:return e.prev=5,e.next=8,this.$confirm("是否确认合并乐团?","提示",{type:"warning"});case 8:return e.next=10,Object(c["a"])({musicGroupId:this.$route.query.id,registerIds:t});case 10:this.$message.success("合并成功"),this.$emit("close"),this.$emit("submited"),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](5);case 17:case"end":return e.stop()}}),e,this,[[5,15]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=[];for(var a in e)t.push(e[a].id);this.passed=t},FetchList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["b"])({organId:this.organId});case 3:t=e.sent,this.tableData=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},G=I,E=(a("f089"),Object(y["a"])(G,i,r,!1,null,"4c59032c",null));t["a"]=E.exports},"8ea54":function(e,t,a){},9112:function(e,t,a){},"940a":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",["SPAN_GROUP_CLASS_ADJUST"!==e.paymentTypeString?a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}):e._e(),e._v(" "),"SPAN_GROUP_CLASS_ADJUST"!==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},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?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}}):e._e():[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isUserType:e.isUserType,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,clearable:!0},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("el-form",{ref:"payment",attrs:{model:e.payment}},[a("el-form-item",{attrs:{"label-width":"160px",label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.payment.paymentPattern,callback:function(t){e.$set(e.payment,"paymentPattern",t)},expression:"payment.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),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,i){return a("el-collapse-item",{key:i,attrs:{name:i}},[a("template",{slot:"title"},[a("div",{staticClass:"collapse-title"},[a("span",[e._v("缴费周期 "+e._s(i+1))]),e._v(" "),e.cycles.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.removeCycle(i)}}}):e._e()])]),e._v(" "),a("paymentCycle",{ref:"cycles",refInFor:!0,attrs:{form:t,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",size:"small"},on:{click:e.addCycle}},[e._v("新增缴费周期")])]:a("paymentCycle",{ref:"cycle",attrs:{form:e.cycle,isCommon:e.isCommon,hidePaymentPattern:!0,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"2"===e.form.leixing||"0"==e.paymentType},on:{"update:form":function(t){e.cycle=t}}})],e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1),e._v(" "),a("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("classrooms",{on:{close:e.closeNext}})],1)],2)},r=[],s=a("15fd"),n=(a("6762"),a("2fdb"),a("2909")),o=a("5530"),l=(a("96cf"),a("1da1")),c=a("b85c"),u=a("d349"),p=(a("1cc7"),a("1672")),m=a("267e"),d=a("ed08"),h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},["undefined"===typeof e.paymentType?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&!this.rowDetail?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),0!=e.paymentType&&e.isCommon&&!e.rowDetail?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:e.changeActive}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,465223599)}):e._e()],1)},y=[],f={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail"],mounted:function(){},watch:{paymentType:function(){console.log(this.paymentType)}},methods:{changeActive:function(){this.$listeners.changeActive({name:"1"})}}},b=f,v=(a("d0f4"),a("2877")),g=Object(v["a"])(b,h,y,!1,null,"34827ebc",null),_=g.exports,S=a("7a3c"),w=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",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min: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",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",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&&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",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},P=[],k=a("92e3"),T=a("6612"),C=a.n(T),D=(a("704d"),{props:["form","isCommon","isDisabled","isUserType","courseUnitPriceSettingsByType","clearable"],data:function(){return{courseType:m["courseType"],courseTypeOptions:this.courseUnitPriceSettingsByType,boolOptionsOptions:Object(d["b"])(m["boolOptions"])}},computed:{list:function(){return{form:this.form}},classTimeList:function(){return Object(k["b"])(k["h"])}},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,i,r){var s=t.list.form[e].courseType;s&&i>1&&t.classTimeList[s]&&i<t.classTimeList[s]?r(new Error("单节课不得少于".concat(t.classTimeList[s],"分钟"))):r()}}}}),F=D,O=(a("1452"),Object(v["a"])(F,x,P,!1,null,"38e6cc3c",null)),$=O.exports,I=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)},G=[],E={data:function(){return{list:[]}},methods:{submit:function(){}}},L=E,j=(a("62f6"),Object(v["a"])(L,I,G,!1,null,"37928f5f",null)),N=j.exports,V=a("b133"),R=(a("73b3"),a("7676")),A=a.n(R),U={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT",4:"SPAN_GROUP_CLASS_ADJUST"},q={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:w["a"],extraClassUser:$,classrooms:N,otherform:V["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(d["b"])(m["paymentPatternType"])}},computed:{musicGroup:function(){var e;return null===(e=this.baseInfo)||void 0===e?void 0:e.musicGroup},isCommon:function(){return"1"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},a=Object(c["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var i=e.value;t[i.id]=i}}catch(r){a.e(r)}finally{a.f()}return t},paymentAmountDisabled:function(){return(this.isUserType||this.isCommon&&this.isUserType)&&this.isDisabled},isMulticycle:function(){var e=!1,t="";if(this.viewDetail){var a,i=this.viewDetail,r=i.musicGroupPaymentCalenders;i.auditDto;t=null===(a=r[0])||void 0===a?void 0:a.paymentType,e=r.length>1||"ADD_COURSE"!=t,e&&(this.cycles=r.map((function(e){return{paymentAmount:e.paymentAmount,paymentDate:[null===e||void 0===e?void 0:e.startPaymentDate,null===e||void 0===e?void 0:e.deadlinePaymentDate],paymentValid:[null===e||void 0===e?void 0:e.paymentValidStartDate,null===e||void 0===e?void 0:e.paymentValidEndDate]}})))}return 0==this.payment.paymentPattern&&"2"!==this.form.leixing&&"ADD_COURSE"!==t||0==this.payment.paymentPattern&&e},paymentTypeString:function(){var e="";if(this.viewDetail){var t,a=this.viewDetail.musicGroupPaymentCalenders;e=null===(t=a[0])||void 0===t?void 0:t.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),"1"===e?this.eclass=[]:"2"===e&&(this.eclass=[{}])},"form.musicGroupOrganizationCourseSettingId":function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(t){var a,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||this.rowDetail){e.next=11;break}return e.prev=1,e.next=4,Object(p["h"])({id:t});case 4:a=e.sent,this.eclass=a.data.filter((function(e){return!e.isStudentOptional||void 0!==i.paymentType}))||[{}],this.syncAllMoney(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(t){return e.apply(this,arguments)}return t}(),"payment.paymentPattern":function(){this.syncAllMoney()}},mounted:function(){this.formatCourse(),this.init()},activated:function(){this.formatCourse(),this.init()},methods:{init:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,i,r,s,n,l,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getCharges(),!this.rowDetail){e.next=22;break}for(t in U)U.hasOwnProperty(t)&&(a=U[t],a===this.rowDetail.paymentType&&(this.paymentType=t));return this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo),e.prev=5,e.next=8,Object(p["g"])({musicGroupId:this.musicGroupId,batchNo:this.rowDetail.batchNo});case 8:s=e.sent,this.viewDetail=s.data,n=s.data.musicGroupPaymentCalenders[0]||{},this.eclass=(s.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==c.paymentType})),this.eclassuser=s.data.musicGroupPaymentCalenderStudentDetails.map((function(e){return"SPAN_GROUP_CLASS_ADJUST"===c.paymentTypeString?Object(o["a"])(Object(o["a"])({},e),{},{courseOriginalPrice:e.masterSubCoursePrice}):e})),this.$set(this.payment,"paymentPattern",String(null===(i=this.viewDetail.auditDto)||void 0===i?void 0:i.paymentPattern)),this.$refs.cycle&&(this.$set(this.cycle,"paymentPattern",n.paymentPattern+""),l=[n.paymentValidStartDate,n.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[n.startPaymentDate,n.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",l)),this.studentIds=n.studentIds,this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(r=s.data.auditDto)||void 0===r?void 0:r.musicGroupOrganizationCourseSettingsId),this.syncAllMoney(),e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](5);case 22:case"end":return e.stop()}}),e,this,[[5,20]])})));function t(){return e.apply(this,arguments)}return t}(),formatCourse:function(){var e,t,a,i=null===(e=this.musicGroup)||void 0===e?void 0:e.organId,r=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,s={},n=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return i&&i==e.organId&&r&&r==e.chargeTypeId})),o=Object(c["a"])(n);try{for(o.s();!(a=o.n()).done;){var l=a.value;s[l.courseType]=l}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=s,s},priceChange:function(e,t){var a=Object(n["a"])(this.eclass),i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},r=Math.round(C()(i.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=r,e.courseOriginalPrice=r,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,i=0,r=0,s=0,n="SPAN_GROUP_CLASS_ADJUST"===this.paymentTypeString?this.eclassuser:this.eclass,l=Object(c["a"])(n);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(i+=u.courseCurrentPrice,this.cycles&&this.cycles.length)if(u.isStudentOptional)r+=u.courseCurrentPrice;else{var p=Math.floor(u.courseCurrentPrice/this.cycles.length),m=u.courseCurrentPrice%this.cycles.length;r+=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?r:s})}))),this.$set(this.cycle,"paymentAmount",i),i},getChargeTypeList:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,i,r,s,n,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,s=null===(a=this.musicGroup)||void 0===a?void 0:a.chargeTypeId,this.chargeTypeName=null===(i=this.musicGroup)||void 0===i?void 0:i.chargeTypeName,e.prev=3,e.next=6,Object(u["z"])({row:9999,chargeTypeId:s,organId:r});case 6: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,e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](3);case 14:case"end":return e.stop()}}),e,this,[[3,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.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]).filter((function(e){return!!e})).map((function(e){return e.$refs.form||e}))},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},submit:function(){var e=Object(l["a"])(regeneratorRuntime.mark((function e(){var t,a,i,r,l,u,m,h,y,f,b,v,g,_,S,w,x,P,k,T;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],i=Object(c["a"])(t);try{for(l=function(){var e=r.value;e.validate((function(t){t&&a.push(e)}))},i.s();!(r=i.n()).done;)l()}catch(C){i.e(C)}finally{i.f()}if(!(this.eclass.length<1&&this.eclassuser.length<1)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(a.length!==t.length){e.next=39;break}if(y=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.form),this.other),{},{paymentPattern:this.payment.paymentPattern,musicGroupPaymentDateRangeList:Object(n["a"])(this.cycles.map((function(e){var t=e.paymentDate,a=e.paymentValid,i=Object(s["a"])(e,["paymentDate","paymentValid"]);return Object(o["a"])(Object(o["a"])(Object(o["a"])({},i),Object(d["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(d["a"])(a,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass,musicGroupPaymentCalenderStudentDetails:this.eclassuser}),f=y.leixing,b=Object(s["a"])(y,["leixing"]),this.$refs.cycle&&(v=this.cycle,g=v.paymentDate,_=v.paymentValid,S=Object(s["a"])(v,["paymentDate","paymentValid"]),b.musicGroupPaymentDateRangeList=[Object(o["a"])(Object(o["a"])(Object(o["a"])({},S),Object(d["a"])(g,["startPaymentDate","deadlinePaymentDate"])),Object(d["a"])(_,["paymentValidStartDate","paymentValidEndDate"]))]),w=Object(o["a"])(Object(o["a"])({},b),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:U[0==this.paymentType?this.paymentType:f],musicGroupId:this.musicGroupId}),x=null===(u=this.viewDetail)||void 0===u?void 0:u.musicGroupPaymentCalenders[0],x&&"ADD_STUDENT"===(null===(m=this.viewDetail)||void 0===m?void 0:m.auditDto.paymentType)&&(w.attribute1=x.attribute1),null!==(h=this.rowDetail)&&void 0!==h&&h.batchNo){e.next=26;break}return e.prev=13,e.next=16,Object(p["c"])(w);case 16:P=e.sent,"PRE_BUILD_FEE"==this.$route.query.team_status&&(this.$message.success("创建成功"),this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/teamList"})),this.$listeners.close(),this.$listeners.submited(P.data),e.next=24;break;case 22:e.prev=22,e.t0=e["catch"](13);case 24:e.next=39;break;case 26:return e.prev=26,w.batchNo=this.rowDetail.batchNo,w.paymentType=null===(k=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===k?void 0:k.paymentType,e.next=31,Object(p["f"])(w);case 31:T=e.sent,this.$listeners.close(),this.$listeners.submited(T.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:A()(this.$route.query,{type:"feeAudit"})}),e.next=39;break;case 37:e.prev=37,e.t1=e["catch"](26);case 39:case"end":return e.stop()}}),e,this,[[13,22],[26,37]])})));function t(){return e.apply(this,arguments)}return t}()}},M=q,B=(a("bdaf"),Object(v["a"])(M,i,r,!1,null,"5e99dea6",null));t["a"]=B.exports},aa6f: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 i=a("b775"),r=a("4328"),s=a.n(r),n="/api-web";function o(e){return Object(i["a"])({url:n+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function l(e){return Object(i["a"])({url:n+"/musicGroupPaymentCalender/auditPass",method:"post",data:s.a.stringify(e)})}function c(e){return Object(i["a"])({url:n+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:s.a.stringify(e)})}},b3d0:function(e,t,a){"use strict";a.r(t);var i=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)},r=[],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["J"])({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["ic"])(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["pc"])(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,i,r,!1,null,"2547eae8",null);t["default"]=p.exports},b3f6:function(e,t,a){},b5ca:function(e,t,a){"use strict";a("2e3a")},ba13:function(e,t,a){},ba30:function(e,t,a){},bdaf:function(e,t,a){"use strict";a("2850")},be55:function(e,t,a){},cd32:function(e,t,a){"use strict";var i=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()},r=[],s=(a("96cf"),a("1da1")),n=a("ec8a"),o=a("3762"),l=a("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(l["a"])({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(l["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(n["a"])(e)}}},u=c,p=(a("346a"),a("2877")),m=Object(p["a"])(u,i,r,!1,null,"59fb2832",null);t["a"]=m.exports},d0f4:function(e,t,a){"use strict";a("0964")},dabb:function(e,t,a){"use strict";a("8ea54")},de4b:function(e,t,a){"use strict";a("be55")},e623:function(e,t,a){"use strict";var i=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",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail",expression:"'musicGroupPaymentCalender/auditListDetail'"}],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)},r=[],s=(a("96cf"),a("1da1")),n=a("1cc7"),o=(a("1672"),a("3908"),a("333d")),l=a("ec8a"),c={props:["batchNo","teamStatus","teamType","payUserType","isNewGropu"],components:{pagination:o["a"]},data:function(){return{list:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{permission:l["a"],getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(n["pb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},u=c,p=(a("0c33"),a("2877")),m=Object(p["a"])(u,i,r,!1,null,"7a109218",null);t["a"]=m.exports},e940:function(e,t,a){},f089:function(e,t,a){"use strict";a("054c")},f610:function(e,t,a){"use strict";var i=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/add",expression:"'musicGroupPaymentCalender/add'"}],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:"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:"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.auditStatus))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"addCourseTotalTime",width:"150px",label:"加课总时长"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",prop:"courseCurrentPrice",label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("moneyFormat")("SPAN_GROUP_CLASS_ADJUST"===t.row.paymentType?t.row.courseOriginalPrice:t.row.courseCurrentPrice))+"\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("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/queryPage",expression:"'musicGroupPaymentCalender/queryPage'"}],attrs:{type:"text"},on:{click:function(a){return e.lookList(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),e.teamStatus&&"REJECT"===t.row.auditStatus?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),"REJECT"!=t.row.auditStatus&&"AUDITING"!=t.row.auditStatus&&"NO"!=t.row.auditStatus||!e.teamStatus||"ADD_STUDENT"==t.row.paymentType||"SPAN_GROUP_CLASS_ADJUST"==t.row.paymentType?e._e():a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/delByBatchNo",expression:"'musicGroupPaymentCalender/delByBatchNo'"}],attrs:{type:"text"},on:{click:function(a){return e.removeBatchNo(t.row)}}},[e._v("删除")])],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{"save-key":"resetPayListSchool",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(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:"PRE_BUILD_FEE"==e.team_status?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!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",{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)},r=[],s=(a("a481"),a("5530")),n=(a("96cf"),a("1da1")),o=a("333d"),l=a("5a0c"),c=a.n(l),u=a("641c"),p=a("61f7"),m=a("1cc7"),d=a("d349"),h=a("b38b"),y=a("1672"),f=a("b3d0"),b=a("940a"),v=a("e623"),g=a("86e8"),_=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)},S=[],w=a("704d"),x={search:"",subjectId:""},P={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(s["a"])({},x),list:[],activeChiose:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{storeState:function(){return w["a"].state}},mounted:function(){this.detail&&(w["a"].dispatch("getFindSound",{data:{musicGroupId:this.detail.musicGroupId}}),this.FetchList())},methods:{handleSelectionChange:function(e){this.activeChiose=e},onReSet:function(){this.searchForm=Object(s["a"])({},x),this.FetchList()},deleteUser:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除选中学员?","提示",{type:"warning"});case 3:return e.next=5,Object(m["z"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["Ub"])(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}()}},k=P,T=a("2877"),C=Object(T["a"])(k,_,S,!1,null,"4d351015",null),D=C.exports,F=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)},O=[],$={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.moneyForm.validate(function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(a){var i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}return i=t.data.id,r=t.form.memo,e.prev=3,e.next=6,Object(y["b"])({id:i,memo:r});case 6:e.sent,t.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.$emit("close")}}},I=$,G=Object(T["a"])(I,F,O,!1,null,"4b111bac",null),E=G.exports,L=a("cd32"),j=a("3762"),N=a("267e"),V=a("ed08"),R=a("92e3"),A={props:["isNewGropu"],components:{pagination:o["a"],setStudentFee:f["default"],userPayForm:b["a"],schoolPayForm:g["a"],QrCode:u["a"],review:L["a"],reviewDetail:j["a"],teamType:"","pay-items":v["a"],schoolPayUserList:D,isGetMoney:E},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:R["v"],getMoneyVisible:!1,baseInfo:null}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["r"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(V["b"])(N["userPaymentType"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.team_status;return"PRE_BUILD_FEE"==e||"PROGRESS"==e}},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.team_status=this.$route.query.team_status,e.prev=1,e.next=4,Object(y["a"])({musicGroupId:this.$route.query.id});case 4:e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](1);case 9:Object(m["Lb"])({musicGroupId:this.$route.query.id}).then((function(e){200==e.code&&(t.baseInfo=e.data)})),this.getList();case 11:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(h["c"])({page:this.rules.page,rows:this.rules.limit,search: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(p["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},changeActive:function(e){this.$listeners.changeActive&&this.$listeners.changeActive(e)},chioseStudentSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["y"])({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(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(y["d"])({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["e"])(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(m["nc"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?c()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?c()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.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,i=new Date(a.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var r=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return r},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}(),commmitGetMoney:function(e){this.activeRow=e,this.getMoneyVisible=!0},submitGetMoney:function(){this.$refs.getMoney.submitGetMoney()},closeMoney:function(){this.getMoneyVisible=!1,this.getList()}},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},U=A,q=(a("dabb"),Object(T["a"])(U,i,r,!1,null,"b2eb872c",null));t["a"]=q.exports},fc1a:function(e,t,a){"use strict";a("ba30")}}]);