chunk-ae94934c.40047600.js 157 KB

1234567891011121314151617181920
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ae94934c","chunk-0ca85e10"],{"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("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("新建学员缴费")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},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")(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.status&&"AUDITING"!=t.row.status&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),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(" "),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:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.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:e.isNewGropu?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-radio-group",{model:{value:e.dialogSubjectId,callback:function(t){e.dialogSubjectId=t},expression:"dialogSubjectId"}},e._l(e.dialogSubjectList,(function(t,i){return a("el-radio",{key:i,staticStyle:{"margin-right":"15px"},attrs:{border:"",size:"medium",label:t.subjectId}},[e._v(e._s(t.subName))])})),1),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogSubjectVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"studentRegistration/getSubjectGoodsAndInfo/967",expression:"'studentRegistration/getSubjectGoodsAndInfo/967'"}],attrs:{type:"primary"},on:{click:e.onPreviewSubmit}},[e._v("预 览")])],1)],1),e._v(" "),e.previewVisible?a("el-dialog",{staticClass:"previewContainer",attrs:{title:"预览",visible:e.previewVisible,width:"400px"},on:{"update:visible":function(t){e.previewVisible=t}}},[a("subject-preview",{attrs:{subjectId:e.dialogSubjectId,calenderId:e.dialogCalenderId}}),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.previewVisible=!1}}},[e._v("确 定")])],1)],1):e._e()],1)},s=[],n=(a("a481"),a("96cf"),a("1da1")),r=(a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("4328"),a("5a0c")),c=a.n(o),l=a("641c"),u=a("61f7"),p=a("1cc7"),d=a("b38b"),m=a("d349"),f=a("1672"),h=a("b3d0"),y=a("940a"),v=a("e623"),b=a("86e8"),g=a("cd32"),_=a("3762"),S=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{background:"#F3F4F8"}},[e._m(0),e._v(" "),i("div",{staticClass:"section"},[i("h2",{staticClass:"title"},[e._v("乐团课程")]),e._v(" "),i("div",{staticClass:"options"},e._l(e.courseInfo,(function(t,a){return i("div",{key:a,staticClass:"option",class:[t.isStudentOptional?"":"disabled"],on:{click:function(a){return e.onCourseChange(t)}}},[i("div",{staticClass:"o_hd"},[i("i",{staticClass:"check_default",class:[t.isStatus?"check_active":""]})]),e._v(" "),i("div",{staticClass:"o_bd"},[e._v(e._s(e._f("coursesType")(t.courseType)))]),e._v(" "),i("span",{staticClass:"o_ft",staticStyle:{color:"#1a1a1a"}},[e._v("\n\t\t\t\t\t\t原价:"),i("del",{staticStyle:{"font-size":"16px",color:"#1a1a1a"}},[e._v("¥"+e._s(e._f("moneyFormat")(t.courseOriginalPrice)))])])])})),0),e._v(" "),i("div",{staticClass:"options sale lines"},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_bd"}),e._v(" "),i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t现价 ¥"),i("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(e.orderInfo.musicClassFee)))])])])])]),e._v(" "),e.instrumentResult.length>0?i("div",{staticClass:"section"},[i("h2",{staticClass:"title"},[e._v("乐器")]),e._v(" "),i("div",{staticClass:"options"},e._l(e.instrumentResult,(function(t,a){return i("div",{key:a,class:[e.instrumentResult.length>1?"oc":""],on:{click:function(a){return e.instrumentF(t)}}},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_hd"},[i("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),e._v(" "),i("div",{staticClass:"o_bd"},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t\t")]),e._v(" "),t.price&&"FREE"==t.kitType?i("span",{staticClass:"o_ft o_ft_price"},[e._v("\n\t\t\t\t\t\t\t原价"),i("del",[e._v(":¥"+e._s(e._f("moneyFormat")(t.marketPrice)))])]):e._e(),e._v(" "),t.price&&"GROUP"==t.kitType?i("span",{staticClass:"o_ft o_ft_price"},[e._v("\n\t\t\t\t\t\t\t原价"),i("del",[e._v(":¥"+e._s(e._f("moneyFormat")(t.marketPrice)))])]):e._e()]),e._v(" "),t.marketPrice?i("div",{staticClass:"configuration"},[i("div",{staticClass:"config config_line"},[e._m(1,!0),e._v(" "),i("div",{staticClass:"content"},[i("p",[e._v(e._s(t.goodsList[0].specification))])])])]):e._e(),e._v(" "),t.marketPrice?i("div",{staticClass:"options sale",staticStyle:{"margin-bottom":"5px"}},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_bd"}),e._v(" "),"LEASE"==t.kitType?[i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t\t押金:¥"),i("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(Number((t.depositFee-t.coupon).toFixed(2)))))])])]:e._e(),e._v(" "),t.price&&"FREE"==t.kitType?[i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t\t免费领用\n\t\t\t\t\t\t\t\t")])]:e._e(),e._v(" "),t.price&&"GROUP"==t.kitType?i("span",{staticClass:"o_ft"},[e._v("\n\t\t\t\t\t\t\t\t现价:¥"),i("span",{staticStyle:{"font-size":"20px"}},[e._v(e._s(e._f("moneyFormat")(Number((t.price-t.coupon).toFixed(2)))))])]):e._e()],2)]):e._e()])})),0)]):e._e(),e._v(" "),e.accessOries.length>0?i("div",{key:"accessOries",staticClass:"section"},[i("h2",{staticClass:"title"},[e._v("辅件")]),e._v(" "),e._l(e.accessOries,(function(t,a){return i("div",{key:a,staticClass:"options",on:{click:function(a){return e.onAuxiliarie(t)}}},[i("div",{staticClass:"option"},[i("div",{staticClass:"o_hd"},[i("i",{staticClass:"check_default",class:[t.checked?"check_active":""]})]),e._v(" "),i("div",{staticClass:"o_bd"},[e._v(e._s(t.name))]),e._v(" "),i("span",{staticClass:"o_ft",staticStyle:{"font-size":"14px"}},[0==t.price?[e._v("免费")]:[e._v("现价:¥"+e._s(e._f("moneyFormat")(t.price)))]],2)]),e._v(" "),t.goodsList.length>1?i("div",{staticClass:"configuration"},[i("div",{staticClass:"config config_other"},[e._m(2,!0),e._v(" "),e._l(t.goodsList,(function(t){return i("div",{key:t.id,staticClass:"content"},[i("div",{staticClass:"option",staticStyle:{padding:"0 5px"}},[i("div",{staticClass:"o_bd",staticStyle:{"font-size":"14px"}},[e._v(e._s(t.name))])])])}))],2)]):e._e()])}))],2):e._e(),e._v(" "),i("div",{staticClass:"section"},[i("div",{staticClass:"needprice markerprice"},[i("del",[e._v("原价")]),e._v(" "),i("del",[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.marketPrice)))])]),e._v(" "),i("div",{staticClass:"needprice grouopprice"},[i("span",[e._v("仅需支付")]),e._v(" "),i("span",[e._v("¥"+e._s(e._f("moneyFormat")(e.orderInfo.amount)))])])]),e._v(" "),i("div",{staticClass:"buy"},[i("div",{staticClass:"price"},[i("p",{staticClass:"use_price"},[i("img",{staticClass:"logo",attrs:{src:a("2965"),alt:""}}),e._v(" "),i("span",[e._v("¥"+e._s(e._f("moneyFormat")(e.needPrice)))])])]),e._v(" "),i("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\t\t\t1、为确保声部平衡,请家长确认 注册声部为孩子的最终录取声部。"),a("br"),e._v("\n\t\t\t2、为保障每个声部人数达标,我们都进行了超员20%的录取,系统将按照提交注册的先后顺序安排名额。超员后 有可能出现无法注册的情况,请您理解。如果其他声部仍有名额,我们将优先调配您的孩子;\n\t\t\t"),a("div",{staticClass:"line_bottom",staticStyle:{margin:"20px 0 0"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"title"},[a("span",[e._v("配置")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"title"},[a("span",[e._v("配置")])])}],C=(a("7f7f"),a("c5f6"),a("ac6a"),a("ec8a")),k={0:"按月",1:"按学期",2:"一次性"},x={props:["subjectId","calenderId"],data:function(){var e=this.$route.query;return{musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0},courseInfo:null,musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t={musicGroupId:this.musicGroupId,subjectId:this.subjectId,calenderId:this.calenderId},e.next=3,Object(p["yb"])(t).then((function(e){var t=e;if(200==t.code){var i=t.data;a.paymentPattern=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.paymentPattern:2;var s=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null;s&&s.length>0?a.courseInfo=s:a.courseInfo=[{id:-1,courseCurrentPrice:0,courseOriginalPrice:0,isStudentOptional:!1,courseType:"MUSIC"}],a.courseInfo.forEach((function(e){e.isStatus=!0})),a.musicGroupSubject=i.musicGroupSubjectPlan;var n={};i.musicGroupSubjectGoodsGroupList.forEach((function(e){if("INSTRUMENT"==e.type){var t=e.kitGroupPurchaseTypeJson?JSON.parse(e.kitGroupPurchaseTypeJson):{};for(var i in t){var s=Object.assign({},e);s.marketPrice=s.goodsList[0].marketPrice,s.kitType=i,s.coupon=t[i],n.id?(s.checked=!1,"GROUP"==i?("GROUP"==n.kitType&&n.price<s.price||"LEASE"==n.kitType||"FREE"==n.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),s.checked=!0,n={id:s.id,price:s.price,kitType:i}):"LEASE"==i?"LEASE"==n.kitType&&n.price<s.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),s.checked=!0,n={id:s.id,price:s.price,kitType:i}):"FREE"==i&&"FREE"==n.kitType&&n.price<s.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),s.checked=!0,n={id:s.id,price:s.price,kitType:i})):(s.checked=!0,n={id:s.id,price:s.price,kitType:i}),a.instrumentResult.push(s)}}else"ACCESSORIES"==e.type&&(e.checked=!0,a.accessOries.push(e))})),a.instrumentResult.length>0&&a.instrumentResult.push({id:-1,kitType:"owned",name:"自备",price:0,marketPrice:0,checked:!1})}a.calcPrice()}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onCourseChange:function(e){e.isStudentOptional&&(e.isStatus=!e.isStatus,this.calcPrice())},onClickCheckbox:function(){this.payType?this.needPrice=this.orderInfo.amount:this.orderInfo.amount>=this.balance?this.needPrice=Number((this.orderInfo.amount-this.balance).toFixed(2)):this.needPrice=0,this.payType=!this.payType},onAuxiliarie:function(e){e.checked=!e.checked,this.calcPrice()},instrumentF:function(e){this.instrumentResult.forEach((function(e){e.checked=!1})),e.checked=!0,this.calcPrice()},calcPrice:function(){var e=[],t=[],a=0,i=0,s={},n=[],r=0,o=[],c=0,l=0,u=0,p="",d=this.musicGroupSubject,m=this.courseInfo;d&&m.forEach((function(e){e.isStatus&&(l+=parseFloat(e.courseCurrentPrice),i+=parseFloat(e.courseOriginalPrice),e.id>0&&n.push(e.id),e.isStudentOptional||(u+=parseFloat(e.courseCurrentPrice)))}));var f=this.instrumentResult;if(f.length>0&&f.forEach((function(t){t.checked&&("自备"!=t.name&&(p+=t.goodsIdList),"FREE"==t.kitType?(a+=0,r=0):"LEASE"==t.kitType?(r=t.coupon,"自备"!=t.name?a+=t.depositFee:a+=0):(a+=parseFloat(t.price),r=t.coupon?t.coupon:0),"LEASE"==t.kitType?"自备"!=t.name&&(i+=t.depositFee):i+=parseFloat(t.marketPrice),t.id&&(s[t.id]=t.kitType),"LEASE"==t.kitType?e.push({name:t.name,type:"租赁",price:t.depositFee}):"GROUP"==t.kitType?e.push({name:t.name,type:"团购",price:parseFloat(t.price-r)}):"FREE"==t.kitType&&e.push({name:t.name,type:"免费",price:0}),"GROUP"==t.kitType&&1==t.groupRemissionCourseFee&&(l=parseFloat(l-u)))})),a+=parseFloat(c+l),e.unshift({name:"乐团课",type:k[this.paymentPattern],price:Number((c+l).toFixed(2))}),this.accessOries.length>0){var h=0;this.accessOries.forEach((function(e){e.checked&&(h+=parseFloat(e.price),a+=parseFloat(e.price),e.goodsList&&e.goodsList.length>0&&e.goodsList.forEach((function(e){i+=parseFloat(e.marketPrice)})),s[e.id]="ACCESSORIES")})),e.push({name:"辅件",type:"团购",price:h})}var y=a;if(a-r>=0?(a=Number((a-r).toFixed(2)),this.errorPrice=!1):(a=0,this.errorPrice=!0),a-c-l>0&&t.push(1,2),parseFloat(c+l)>0&&t.push(3,4,5),this.ids=t,this.payType){var v=Number((a-this.balance).toFixed(2));this.needPrice=v>0?v:0}else this.needPrice=Number(a.toFixed(2));this.buyList=e,this.orderInfo={amount:Number(a.toFixed(2)),marketPrice:Number(i.toFixed(2)),groupPurchasePrice:y,couponPrice:r,goodsGroupIds:s,goodsIds:o.join(","),contractGoodsIds:p,courseKeys:n,musicClassFee:l}},permission:function(e){return Object(C["a"])(e)}}},F=x,P=(a("92ec"),a("2877")),T=Object(P["a"])(F,S,w,!1,null,"2bfa4200",null),I=T.exports,D=a("267e"),O=a("ed08"),L=a("92e3"),E={props:["baseInfo","isNewGropu"],components:{pagination:r["a"],setStudentFee:h["default"],userPayForm:y["a"],schoolPayForm:b["a"],QrCode:l["a"],review:g["a"],reviewDetail:_["a"],"pay-items":v["a"],subjectPreview:I},data:function(){return{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:L["s"],dialogSubjectVisible:!1,dialogSubjectList:[],dialogSubjectId:null,dialogCalenderId:null,previewVisible:!1}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["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(O["b"])(D["y"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.type;return"teamDraft"==e||"resetTeam"==e}},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["a"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getList();case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(d["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(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(p["u"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookList:function(e){this.viewDetail=e,this.itemsVisible=!0},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},removeBatchNo:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除该缴费批次?","提示",{type:"warning"});case 3:return e.next=5,Object(f["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(f["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["ec"])({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 s=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return s},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getList();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e["catch"](0);case 7:case"end":return e.stop()}}),e,this,[[0,5]])})));function t(t){return e.apply(this,arguments)}return t}(),onPreview:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a,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["D"])({musicGroupId:a}).then((function(e){200==e.code?(i.dialogSubjectList=e.data.musicGroupSubjectPlans,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}(),onPreviewSubmit:function(){this.previewVisible=!0}},watch:{chioseStudentVisible:function(){this.chioseStudentList=[]},payVisible:function(e){e||(this.payForm={startPaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null,deadlinePaymentDate:null},this.$refs["payForm"].resetFields())}}},A=E,j=(a("36b1"),Object(P["a"])(A,i,s,!1,null,"a3ba7e6c",null));t["a"]=j.exports},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),Math.easeInOutQuad=function(e,t,a,i){return e/=i/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,t,a){var r=n(),o=e-r,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var n=Math.easeInOutQuad(l,r,o,t);s(n),l<t?i(e):a&&"function"===typeof a&&a()};u()}},"0c32":function(e,t,a){},"17ac":function(e,t,a){"use strict";a("26ae")},"1cd7":function(e,t,a){"use strict";a("f734")},"26ae":function(e,t,a){},2965:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAB0klEQVRoQ+1ZvUoDQRD+xpBcVIKIhYiINvYi2PgOVpJ0XmFhIgg+gCkCxlqsTARBTyt/Ol/CB5CAhdFCLCyChT8X8UYUFJFcyO6OkUs29Xwz38/sHmwIEf9RxPnDCvjvBG0CNgFDBzp3hfgoHau/DBaJaJkZ/YZGacGJ8MjM24lkLU+Z47dGTUITePVyawG4qDVZGNQDysfd0oaSAN9bugZoXJiLZju+cdydCUUBWdac9icwxy033JbQFfI9K0A0ie5LoO7ltkQtNGyWcEurSofYcF7b4J37Jfa97GnbbGxhkOOW55VWyF6jLbiqUtJ916hdIZX9aKHWrtCHSUR4YEatBcN+lwwD6NXAfUMkErhIJPtmKLP5rErkaT83GkNQAVFKFftVby6AcOIslNO6BPyD7CUYk7p4cwHgOkDrRLhVJREEPE1EK6q4n/UCAkzGm2OtAHMPzToIJUAVAt+FUWF8HtIxM6qN0RICzhNXI7NUKARhBO93F1MD8XiVgSFpERICzhy3PNeMGDOofpirgln8PUlCQADwHqgn/BplngLQVKRuMhICdGeL4LpRQMTfRiP/Oh35/wdETl4bmnTuw1YbzBMZYRMQsdGgiU3AwDwR6DsIG88xSgAlnwAAAABJRU5ErkJggg=="},"36b1":function(e,t,a){"use strict";a("5980")},3762: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-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)))])],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(" "),a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderCourseSettings,stripe:""}},[a("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否可选",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isStudentOptional?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"}})],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}),e._v(" "),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)},s=[],n=(a("96cf"),a("1da1")),r=(a("7f7f"),a("5530")),o=a("2b0e"),c=a("6612"),l=a.n(c),u=a("1672"),p=a("ddec");o["default"].use(p["a"]);var d={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],simpleUserDto:[],musicGroupPaymentCalenders:[],studentNum:0},m={props:["detail"],data:function(){return Object(r["a"])({payVisible:!1},d)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},methods:{numeral:l.a,init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(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}()}},f=m,h=(a("1cd7"),a("2877")),y=Object(h["a"])(f,i,s,!1,null,"0118353e",null);t["a"]=y.exports},"3b74":function(e,t,a){"use strict";function i(e){return e instanceof RegExp}function s(e){return e&&"[object Function]"==={}.toString.call(e)}function n(e){return null!==e&&"object"===typeof e}function r(e){return"undefined"===typeof e}t.__esModule=!0,t.isUndefined=t.isPlainObject=t.isFunction=t.isRegex=void 0,t.isRegex=i,t.isFunction=s,t.isPlainObject=n,t.isUndefined=r},"3ba9":function(e,t,a){},"3d90":function(e,t,a){},4085:function(e,t,a){"use strict";a("f696")},"419e":function(e,t,a){"use strict";var i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var i,s,n=a.call(e),r=[];try{while((void 0===t||t-- >0)&&!(i=n.next()).done)r.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(a=n["return"])&&a.call(n)}finally{if(s)throw s.error}}return r},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e};function n(e,t,a){return function(i,n,o){return o===e&&s(r(i,n,(function(e){return t.indexOf(a(e))})),n)}}function r(e,t,a){var i=e.filter((function(e,i){var s=a(e),n=a(t[i]||{});return!(s>=0&&n>=0)||s!==n}));return i}t.__esModule=!0,t["default"]=n},4226:function(e,t,a){"use strict";a("55f7")},"51bf":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAABQCAYAAAB8racIAAAAAXNSR0IArs4c6QAABshJREFUaAXNmmtsFFUUx8+dfbTbLn3Sdnf7mN1teViCUUwwYoyYkBDUoLUNQhAKqDHqF/QDJmIiJmKCfsAvGj4olFeoPCVGDCFEEiOJJqgRWyrtPqav3ZbS59Jtu4/rObtM01ra7m5nZrnb9s7OzL3/X879z73n7hbckv9NeBhKm6d7zN3hW51uFgEBMqIRfq7N7y9OJ4zgDgwCcCiDID/NOdenC0Y46r4FQ6EJ1OfPutt9X6QNZCQ8AUfdTRDmUcCf3S6Pf0s6YMgj4L03DN93tMX1WfQbd0fPo1rDxEBI9HqfD36/6wfOISsaiZ6XpMF8LWEmQUj0bHsrdIyOoF14ZZgHT6J5p11XE2yaEPnkiLsZ7oVDyMI3eKSeT9QUn9r3NBC6MDgxBkc9zYDWpdded7t/49QGah3PACGhtpFB+LHLQ1FhONkdd3XeWaoWgNzvA0Ho4s89HfDXwB084jk8HL7Q29trlhupUc8KQmKNUgv4x0bJvNUjo5EGNQDkPucEmYhG4bDrHxiLhGmYal2S7wO5odL1nCAk1jcehBPelrguh/0uqWed0hDU37wgdFPz0F247JMoKjrOI43u7m6RzitZEgIhwcs+LwL1o1+gMDoB5z0enpkWEBI96b0VGyqEWcXBfyhtIEE07WFcqcnEOOHVu72+d5WCSXhoZEF/8B58J/0bexvlcLBN6nlavraQOmkQEvtzoDc24aFhDIxHz3i9d6wLgaC2KYFQQ1oCWjHNxCfJGobQWawNdD7VkjIILYrHcaUewEUSD9fgtuTLVCGoXcog1DiA6UIDpZloXozIO22Sr57Op1IWBEKCHaMBONfRGtNmnB9Cv6xKCwiJ/oYpJqWamGZmRnj4fGfncGGyMAuOiCxIybeESTgmU+J4ONBIy4F8LZFaMRBKM8kvgRClmbDO7fV/lgiAfI9iINQhbdQaKM1EEnztcUu+OllovlpREBKjLezFLldMF2feI5Lkq54Pgq4rDkKd/tLbBTf6eymzM4ej/IKrvz+Xzs9VVAEhwdPSbegKBnCIYCkfGj+G5mVpAQnxCBxxNcFoJIT6fKNL8n+UFhAS7cfp/4SnhaICGI59Lq/v+dlgVBsaWbBluB8uxfdIqMVPtrf3VMrXptaqg5DY1Z52uDnYR/NLXigSvdDdzbOmQtCxJiAkdAr3SL3jozS/rAxO+L+lc1OLZiBjkQgcbmvCPVIEI8M3u7zd76cFhEQpIhQZKhzYAY/Htzb2Bv9oFhFZcLZaU5DijCzYIi6PsWDussfhsF6TwTT7ODNTp4NdVSuAasZYY6XdelCGoFqziFAkKCIM2E2T0fL6VAg61iQi6ywirMxbjJGAQYMg1NhsDD/rmF5UB1mWUwAbbHYajihKb62oKInnCNM51B2aAmMmbHMsp3WG1pt96ItL/9OffKtaRAxMBzsrV0CWzkC++MEpWj6dVH3AgWpm3SQuhVKTmaLRCrkZ23BoaBGetagSkWeKS+GJAvzWhbGAnkGNWFAwNCvB/QuKR8RpzoOXSuMrvcBglyham+aDoOuKguQajLDDUQ0CPqf4+twpWs8kAkH3KDY0eibADucKMBvQnIxdRXN+mCgE3adYRGrKqkDMzqFISCZj9maEiSQDokhEniy0wFNFVpo5xzjjtTZbTl8yEIpEpDzLDLXlS2K6uGN4u0q03UgWgu5fUETMekPMF3pBIF98jTNnQyoQ1CZlj6A0bMcnJB+ncTy8jubcnSoEtUs5Ii+WOaFqUR5Fwq8DfR3WtJNKuaQE8nh+MawtLkNRFuJMqLOLRb6UCe43TBrEYsqGV8VlseY4c77nFEt+XSgEtU/KIyadHnbhpGVEc2I0jjnt1q+UgEgaZKv9EVicYSJz/qEDy1tKQVA/CQ/NeqsdqnMLCOKuYIRXHDaGH7AqVxICqc4thPVWkZ6QCGPCFqetRFIOId7TvB6hoXjNHt+LYDT2ojmvKA1B/c0JQqYkc2aiSTEa5ypF6wE1IOYF2Yx7EXpckaJ5UZZuh1oQ1O+sHnmupBweyy/CW9gw0+triouLApqD0NT9QqmDhoMLAtvuKCu6rSYE9T3DI3m4iNVTuofOxNd+R4XlotoQM0Ao3duJ5szG5R2j8ZNDLPlYC4gZIHUVS4ASHaRw65lpK8LQNlGTMmnWNYutsBpTPkz3RplOqBHL8wY0IbgvEvOIHZPel8ur4qe48IazvORvLSFIS79Ib4R69AX5A6fvg5V2yymtIWJ6V27e4vhvgvjru4af9k0OldYweocZvzhg0AmZbBOaM6w1gKxHERgXdKzWabHg9xppLA/Lv5H+BxiYV1F6ikd8AAAAAElFTkSuQmCC"},"52f6":function(e,t,a){"use strict";(function(t){
  2. /*!
  3. * shallow-clone <https://github.com/jonschlinkert/shallow-clone>
  4. *
  5. * Copyright (c) 2015-present, Jon Schlinkert.
  6. * Released under the MIT License.
  7. */
  8. const i=Symbol.prototype.valueOf,s=a("ef5d");function n(e,t){switch(s(e)){case"array":return e.slice();case"object":return Object.assign({},e);case"date":return new e.constructor(Number(e));case"map":return new Map(e);case"set":return new Set(e);case"buffer":return l(e);case"symbol":return u(e);case"arraybuffer":return o(e);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return c(e);case"regexp":return r(e);case"error":return Object.create(e);default:return e}}function r(e){const t=void 0!==e.flags?e.flags:/\w+$/.exec(e)||void 0,a=new e.constructor(e.source,t);return a.lastIndex=e.lastIndex,a}function o(e){const t=new e.constructor(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}function c(e,t){return new e.constructor(e.buffer,e.byteOffset,e.length)}function l(e){const a=e.length,i=t.allocUnsafe?t.allocUnsafe(a):t.from(a);return e.copy(i),i}function u(e){return i?Object(i.call(e)):{}}e.exports=n}).call(this,a("b639").Buffer)},5309:function(e,t,a){},"55f7":function(e,t,a){},5980:function(e,t,a){},"5f69":function(e,t,a){"use strict";a("3d90")},6193:function(e,t,a){"use strict";a("aa6f")},"62f6":function(e,t,a){"use strict";a("9112")},"6f71":function(e,t,a){"use strict";var i=/(\*|\?)/g;function s(e,t){this.text=e=e||"",this.hasWild=e.indexOf("*")>=0,this.separator=t,this.parts=e.split(t).map(this.classifyPart.bind(this))}s.prototype.match=function(e){var t,a,i=!0,s=this.parts,n=s.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(a=(e||"").split(this.separator),t=0;i&&t<n;t++)"*"!==s[t]&&(i=t<a.length&&(s[t]instanceof RegExp?s[t].test(a[t]):s[t]===a[t]));i=i&&a}else i=!1;else if("function"==typeof e.splice)for(i=[],t=e.length;t--;)this.match(e[t])&&(i[i.length]=e[t]);else if("object"==typeof e)for(var r in i={},e)this.match(r)&&(i[r]=e[r]);return i},s.prototype.classifyPart=function(e){return"*"===e?e:e.indexOf("*")>=0||e.indexOf("?")>=0?new RegExp(e.replace(i,".$1")):e},e.exports=function(e,t,a){var i=new s(e,a||/[\/\.]/);return"undefined"!=typeof t?i.match(t):i}},"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)])])},s=[],n=(a("1cc7"),a("80b0")),r=a("bc3a"),o=a.n(r),c=a("4328"),l=a.n(c),u=a("5f87"),p=a("3908"),d={components:{teambaseinfo:n["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:l.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 s=URL.createObjectURL(a),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),c=e.$route.query.id+"-"+o+"订货清单";n.href=s,n.setAttribute("download",c),document.body.appendChild(n),n.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:l.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 s=URL.createObjectURL(a),n=document.createElement("a"),r=new Date,o=r.getFullYear()+""+(r.getMonth()+1)+r.getDate()+r.getHours()+r.getMinutes(),c=e.$route.query.id+"-"+o+"分发清单";n.href=s,n.setAttribute("download",c),document.body.appendChild(n),n.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},m=d,f=(a("4085"),a("2877")),h=Object(f["a"])(m,i,s,!1,null,"27b2ecb0",null);t["a"]=h.exports},"73ce":function(e,t,a){"use strict";a("f672")},7676:function(e,t,a){"use strict";var i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var i,s,n=a.call(e),r=[];try{while((void 0===t||t-- >0)&&!(i=n.next()).done)r.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(a=n["return"])&&a.call(n)}finally{if(s)throw s.error}}return r},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.unique=t.mergeWithRules=t.mergeWithCustomize=t["default"]=t.merge=t.CustomizeRule=t.customizeObject=t.customizeArray=void 0;var r=n(a("6f71")),o=n(a("d540")),c=n(a("c4d8")),l=n(a("419e"));t.unique=l["default"];var u=a("8a52");t.CustomizeRule=u.CustomizeRule;var p=a("3b74");function d(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];return m({}).apply(void 0,s([e],t))}function m(e){return function(t){for(var a=[],i=1;i<arguments.length;i++)a[i-1]=arguments[i];if(p.isUndefined(t)||a.some(p.isUndefined))throw new TypeError("Merging undefined is not supported");if(t.then)throw new TypeError("Promises are not supported");if(!t)return{};if(0===a.length){if(Array.isArray(t)){if(0===t.length)return{};if(t.some(p.isUndefined))throw new TypeError("Merging undefined is not supported");if(t[0].then)throw new TypeError("Promises are not supported");return o["default"](t,c["default"](e))}return t}return o["default"]([t].concat(a),c["default"](e))}}function f(e){return function(t,a,i){var n=Object.keys(e).find((function(e){return r["default"](e,i)}))||"";if(n)switch(e[n]){case u.CustomizeRule.Prepend:return s(a,t);case u.CustomizeRule.Replace:return a;case u.CustomizeRule.Append:default:return s(t,a)}}}function h(e){return m({customizeArray:function(t,a,i){var s=e;if(i.split(".").forEach((function(e){s&&(s=s[e])})),p.isPlainObject(s))return v({currentRule:s,a:t,b:a})}})}t.merge=d,t["default"]=d,t.mergeWithCustomize=m,t.customizeArray=f,t.mergeWithRules=h;var y=Array.isArray;function v(e){var t=e.currentRule,a=e.a,n=e.b;if(!y(a))return a;var r=[],o=a.map((function(e){if(!p.isPlainObject(t))return e;var a={},o=[],c={};Object.entries(t).forEach((function(e){var t=i(e,2),a=t[0],s=t[1];s===u.CustomizeRule.Match?o.push(a):c[a]=s}));var l=n.filter((function(t){var a=o.every((function(a){var i,s;return(null===(i=e[a])||void 0===i?void 0:i.toString())===(null===(s=t[a])||void 0===s?void 0:s.toString())}));return a&&r.push(t),a}));return Object.entries(e).forEach((function(e){var n=i(e,2),r=n[0],o=n[1],p=t;switch(t[r]){case u.CustomizeRule.Match:a[r]=o,Object.entries(p).forEach((function(e){var t=i(e,2),s=t[0],n=t[1];if(n===u.CustomizeRule.Replace&&l.length>0){var r=b(l)[s];"undefined"!==typeof r&&(a[s]=r)}}));break;case u.CustomizeRule.Append:a[r]=l.length>0?o.concat(b(l)[r]):o;break;case u.CustomizeRule.Prepend:a[r]=l.length>0?b(l)[r].concat(o):o;break;case u.CustomizeRule.Replace:a[r]=l.length>0?b(l)[r]:o;break;default:var d=c[r],m=l.map((function(e){return e[r]})).reduce((function(e,t){return y(e)&&y(t)?s(e,t):e}),[]);a[r]=v({currentRule:d,a:o,b:m});break}})),a}));return o.concat(n.filter((function(e){return!r.includes(e)})))}function b(e){return e[e.length-1]}function g(e){return function(t,a,i){switch(e[i]){case u.CustomizeRule.Prepend:return o["default"]([a,t],c["default"]());case u.CustomizeRule.Replace:return a;case u.CustomizeRule.Append:return o["default"]([t,a],c["default"]())}}}t.customizeObject=g},"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:""},model:{value:e.topFrom.type,callback:function(t){e.$set(e.topFrom,"type","string"===typeof t?t.trim():t)},expression:"topFrom.type"}},e._l(e.typeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"school",rules:[{required:!0,message:"合作单位不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},on:{change:e.chioseSchool},model:{value:e.topFrom.school,callback:function(t){e.$set(e.topFrom,"school","string"===typeof t?t.trim():t)},expression:"topFrom.school"}},e._l(e.cooperationList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"教学地点",prop:"address",rules:[{required:!0,message:"教学地点不能为空"}]},scopedSlots:e._u([{key:"label",fn:function(){return[a("p",{staticStyle:{position:"relative",display:"inline-block"}},[e._v(" 教学地点\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.orgianList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐团主管",prop:"teacher",rules:[{required:!0,message:"乐团主管不能为空"}]}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.teacher,callback:function(t){e.$set(e.topFrom,"teacher","string"===typeof t?t.trim():t)},expression:"topFrom.teacher"}},e._l(e.orgianList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"维修技师",prop:"repairUserId"}},[a("el-select",{attrs:{disabled:!e.topFrom.section||e.basdisabled,filterable:"",clearable:""},model:{value:e.topFrom.repairUserId,callback:function(t){e.$set(e.topFrom,"repairUserId","string"===typeof t?t.trim():t)},expression:"topFrom.repairUserId"}},e._l(e.technician,(function(e,t){return a("el-option",{key:t,attrs:{label:e.userName,value:e.userId}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"报名截止时间",prop:"time",rules:[{required:!0,message:"请输入报名截止时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.time,callback:function(t){e.$set(e.topFrom,"time","string"===typeof t?t.trim():t)},expression:"topFrom.time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"预计开团时间",prop:"startTime",rules:[{required:!0,message:"请输入预计开团时间"}]}},[a("el-date-picker",{attrs:{disabled:e.basdisabled,type:"date","value-format":"yyyy-MM-dd","picker-options":e.beginDate(),placeholder:"选择日期"},model:{value:e.topFrom.startTime,callback:function(t){e.$set(e.topFrom,"startTime","string"===typeof t?t.trim():t)},expression:"topFrom.startTime"}})],1),e._v(" "),e.basdisabled?a("el-form-item",{attrs:{label:"招生年级"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.startClassString,placement:"top-start"}},[a("div",{staticStyle:{width:"180px",overflow:"hidden"}},[e._v("\n "+e._s(e.startClassString)+"\n ")])])],1):a("el-form-item",{attrs:{label:"招生年级",prop:"startClass",rules:[{required:!0,message:"请选择招生年纪"}]}},[a("el-select",{attrs:{placeholder:"起始年级",clearable:"",multiple:"","collapse-tags":"",filterable:""},model:{value:e.topFrom.startClass,callback:function(t){e.$set(e.topFrom,"startClass","string"===typeof t?t.trim():t)},expression:"topFrom.startClass"}},e._l(e.classStatus,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"课酬结算标准",rules:[{required:!0,message:"请选择课酬结算标准"}],prop:"salary"}},[a("el-select",{attrs:{clearable:"",disabled:e.basdisabled,filterable:""},model:{value:e.topFrom.salary,callback:function(t){e.$set(e.topFrom,"salary","string"===typeof t?t.trim():t)},expression:"topFrom.salary"}},[a("el-option",{attrs:{label:"默认课酬",value:"TEACHER_DEFAULT"}}),e._v(" "),a("el-option",{attrs:{label:"3.0课酬",value:"GRADIENT_SALARY"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"机构类型",prop:"ownershipType"}},[a("el-select",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.ownershipType,callback:function(t){e.$set(e.topFrom,"ownershipType","string"===typeof t?t.trim():t)},expression:"topFrom.ownershipType"}},[a("el-option",{attrs:{label:"自有",value:"OWN"}}),e._v(" "),a("el-option",{attrs:{label:"三方",value:"COOPERATION"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导",prop:"head"}},[a("el-select",{attrs:{filterable:"",disabled:e.basdisabled,clearable:""},model:{value:e.topFrom.head,callback:function(t){e.$set(e.topFrom,"head","string"===typeof t?t.trim():t)},expression:"topFrom.head"}},e._l(e.orgianList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.realName,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"isClass"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled},model:{value:e.topFrom.isClass,callback:function(t){e.$set(e.topFrom,"isClass","string"===typeof t?t.trim():t)},expression:"topFrom.isClass"}},[e._v("课堂课乐团")])],1),e._v(" "),a("br"),e._v(" "),"teamDraft"==e.teamStatus?a("el-form-item",{attrs:{label:""}},[a("p",{staticStyle:{color:"red","padding-left":"50px"}},[e._v("\n 修改【收费类型】会重置乐团声部与缴费信息\n ")])]):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},["resetTeam"==e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/update",parent:"/resetTeaming/teamBaseInfo"},expression:"{\n child: 'musicGroup/update',\n parent: '/resetTeaming/teamBaseInfo',\n }"}],staticClass:"nextBtn",on:{click:e.resetSubmit}},[e._v("\n 修改\n ")]):e._e(),e._v(" "),"newTeam"==e.teamStatus||"teamDraft"==e.teamStatus||"teamAudit"==e.teamStatus||"feeAudit"==e.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext(1)}}},[e._v("\n 下一步\n ")]):e._e(),e._v(" "),"teamList"==e.teamStatus?a("div",{staticClass:"nextBtn",on:{click:function(t){return e.gotoNext(2)}}},[e._v("\n 下一步\n ")]):e._e()])],1)])},s=[],n=(a("28a5"),a("7f7f"),a("1cc7")),r=a("a488"),o=a("5a0c"),c=a.n(o),l=a("99b4"),u=a("92e3"),p=(a("4360"),a("6612"),a("fa7d"),a("4328"),a("704d"),{name:"teamBaseInfo",props:["getTeamList"],data:function(){return{classStatus:u["f"],organId:null,topFrom:{type:"",section:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],address:"",salary:"",head:"",isClass:!1,startTime:"",feeType:null,paymentPattern:"",paymentValid:[],paymentValidStartDate:null,paymentValidEndDate:null,ownershipType:"OWN",repairUserId:null},checkList:{soundInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},allInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},baseInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},holidayInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},networkInfo:{ischeck:!1,value:"",checkBuy:!1,isNew:0,isStatus:!1},submit:{ischeck:!1,value:"年度安排个月共xxx课时,课时,原价xxx元,现价xxxx元/月(约 xxxx元/课时 )"}},newStudentList:{baseInfo:{ischeck:!1,value:"",checkBuy:!0,nowValue:"",isNew:1,isStatus:!1}},baseInfo:{},money:580,orderInfo:{marketPrice:0,referencePrice:0},sectionList:[],typeList:[],cooperationList:[],teacherList:[],addList:[],payList:{school:{ischeck:!1,value:"",price:"",chiose:""},company:{ischeck:!1,value:"",price:"",chiose:""},student:{ischeck:!0,chiose:"loop"},chioseMonth:[]},activeTeam:[],teamid:"",teamStatus:"",orgianList:[],isInit:!1,technician:[],basdisabled:!1}},created:function(){},activated:function(){this.payList={school:{ischeck:!1,value:"",price:"",chiose:""},company:{ischeck:!1,value:"",price:"",chiose:""},student:{ischeck:!0,chiose:"loop"},chioseMonth:[]},this.init(),this.$forceUpdate()},mounted:function(){this.init(),this.$forceUpdate()},beforeDestroy:function(){},methods:{isNotEditing:function(){return!("teamDraft"===this.teamStatus||"newTeam"===this.teamStatus||"teamList"===this.teamStatus)},changeFeeType:function(e){},changePaymentValidStartDate:function(e){e&&this.$set(this.topFrom,"paymentValidEndDate","")},changePaymentPattern:function(e){},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},init:function(){var e=this;this.isInit=!0,this.teamStatus=this.$route.query.type,this.activeTeam=this.getTeamList,"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,this.$route.query.id?(this.teamid=this.$route.query.id,Object(n["Cb"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.topFrom.name=t.data.musicGroup.name,e.$emit("getName",e.topFrom.name),e.topFrom.time=t.data.musicGroup.applyExpireDate,e.topFrom.type=t.data.musicGroup.chargeTypeId,e.topFrom.startClass=t.data.musicGroup.enrollClasses.split(","),e.topFrom.paymentPattern=t.data.musicGroup.paymentPattern,e.topFrom.paymentValidStartDate=t.data.musicGroup.paymentValidStartDate,e.topFrom.paymentValidEndDate=t.data.musicGroup.paymentValidEndDate,e.topFrom.section=t.data.musicGroup.organId,e.topFrom.school=t.data.musicGroup.cooperationOrganId,e.topFrom.teacher=t.data.musicGroup.educationalTeacherId,e.topFrom.boss=t.data.musicGroup.teamTeacherId,e.topFrom.address=t.data.musicGroup.schoolId,e.topFrom.salary=t.data.musicGroup.settlementType,e.topFrom.head=t.data.musicGroup.directorUserId?t.data.musicGroup.directorUserId:null,e.topFrom.isClass=t.data.musicGroup.isClassroomLessons,e.topFrom.startTime=t.data.musicGroup.expectStartGroupDate,e.topFrom.ownershipType=t.data.musicGroup.ownershipType,e.topFrom.repairUserId=t.data.musicGroup.repairUserId?t.data.musicGroup.repairUserId:null,e.topFrom.feeType=t.data.musicGroup.feeType?t.data.musicGroup.feeType:null,t.data.musicGroup.organId&&(Object(l["A"])({organId:t.data.musicGroup.organId,rows:1e3}).then((function(t){200==t.code&&(e.orgianList=t.data.rows)})),Object(l["z"])({organId:t.data.musicGroup.organId}).then((function(t){200==t.code&&(e.cooperationList=t.data)})),Object(l["o"])({organId:t.data.musicGroup.organId}).then((function(t){200==t.code&&(e.addList=t.data,e.isInit=!1)})),Object(r["a"])().then((function(t){200==t.code&&(e.technician=t.data)}))),e.$emit("getBaseInfo",t.data))}))):(this.topFrom={type:"",section:"",school:"",teacher:"",name:"",boss:"",time:"",startClass:[],paymentValid:[],address:"",salary:"",head:"",paymentPattern:"",isClass:!1,startTime:"",ownershipType:"OWN",feeType:null},this.$refs["topinfo"].resetFields()),Object(n["Y"])().then((function(t){200==t.code&&(e.sectionList=t.data)})),Object(n["Ib"])({rows:1e3}).then((function(t){200==t.code&&(e.typeList=t.data.rows)})),sessionStorage.setItem("resetCode","1")},changeSection:function(e){var t=this;this.topFrom.teacher="",this.topFrom.boss="",this.topFrom.head="",this.topFrom.school="",this.topFrom.address="",Object(l["A"])({organId:e,rows:1e3}).then((function(e){200==e.code&&(t.orgianList=e.data.rows)})),Object(l["z"])({organId:e}).then((function(e){200==e.code&&(t.cooperationList=e.data)})),Object(l["o"])({organId:e}).then((function(e){200==e.code&&(t.addList=e.data)})),Object(r["a"])().then((function(e){200==e.code&&(t.technician=e.data)}))},chioseSchool:function(e){},gotoNext:function(e){var t=this;this.$refs["topinfo"].validate((function(a,i){a?(t.$store.dispatch("topinfo",t.topFrom),"teamDraft"==t.teamStatus?t.resetSubmit():t.$emit("chiosetab",e)):t.$message.error("请填写建团必要参数")}))},resetSubmit:function(){var e=this;this.$refs["topinfo"].validate((function(t,a){if(t){var i=null;switch(e.teamStatus){case"resetTeam":i="PROGRESS";break;case"newTeam":i=null;break;case"teamList":i=null;break;case"teamDraft":i="DRAFT";break}var s={};s.musicGroup={settlementType:e.topFrom.salary,applyExpireDate:c()(e.topFrom.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:e.topFrom.type,cooperationOrganId:e.topFrom.school,teamTeacherId:e.topFrom.boss,educationalTeacherId:e.topFrom.teacher,enrollClasses:e.topFrom.startClass.join(","),name:e.topFrom.name,paymentPattern:e.topFrom.paymentPattern,paymentValidStartDate:e.topFrom.paymentValidStartDate?c()(e.topFrom.paymentValidStartDate).format("YYYY-MM-DD"):e.topFrom.paymentValidStartDate,paymentValidEndDate:e.topFrom.paymentValidEndDate?c()(e.topFrom.paymentValidEndDate).format("YYYY-MM-DD"):e.topFrom.paymentValidEndDate,organId:e.topFrom.section,schoolId:e.topFrom.address,id:e.teamid,directorUserId:e.topFrom.head,isClassroomLessons:e.topFrom.isClass,status:i,expectStartGroupDate:e.topFrom.startTime,ownershipType:e.topFrom.ownershipType,repairUserId:e.topFrom.repairUserId||null,feeType:e.topFrom.feeType},s.musicGroupPaymentEntities=[],Object(n["kc"])(s).then((function(t){200==t.code&&("teamDraft"==e.teamStatus?(e.$message.success("保存成功"),e.$emit("chiosetab",1)):e.$message.success("修改乐团成功"),e.init())}))}else e.$message.error("请填写必要参数")}))},changeApplyTime:function(e){this.$set(this.topFrom,"paymentValidStartDate",""),this.$set(this.topFrom,"paymentValidEndDate","")}},computed:{startClassString:function(){var e=this;return this.topFrom.startClass.map((function(t){for(var a in e.classStatus)if(t==e.classStatus[a].value)return e.classStatus[a].label})).join(",")}}}),d=p,m=(a("6193"),a("9022"),a("2877")),f=Object(m["a"])(d,i,s,!1,null,"6c209eb1",null);t["a"]=f.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")},s=[],n={},r=n,o=a("2877"),c=Object(o["a"])(r,i,s,!1,null,"21abf8f1",null);t["a"]=c.exports},"8a52":function(e,t,a){"use strict";t.__esModule=!0,t.CustomizeRule=void 0,function(e){e["Match"]="match",e["Append"]="append",e["Prepend"]="prepend",e["Replace"]="replace"}(t.CustomizeRule||(t.CustomizeRule={}))},9022:function(e,t,a){"use strict";a("b269")},9112:function(e,t,a){},"92ec":function(e,t,a){"use strict";a("f635")},"940a":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-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}),e._v(" "),a("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,rowDetail:e.rowDetail,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.changeActive}}),e._v(" "),e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,courseUnitPriceSettingsByType:e.organizationCourseUnitPriceSettingsByType,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"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?[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)},s=[],n=a("15fd"),r=(a("6762"),a("2fdb"),a("5530")),o=a("2909"),c=(a("96cf"),a("1da1")),l=a("b85c"),u=a("d349"),p=(a("1cc7"),a("1672")),d=a("267e"),m=a("ed08"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},["undefined"===typeof e.paymentType?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团续费")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon&&0!=e.form.musicGroupOrganizationCourseSettingId&&!this.rowDetail?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),0!=e.paymentType&&e.isCommon&&!e.rowDetail?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:function(t){return e.$listeners.changeActive({name:"1"})}}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1890774724)}):e._e()],1)},h=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName","rowDetail"],mounted:function(){},watch:{paymentType:function(){console.log(this.paymentType)}}},v=y,b=(a("9fd8"),a("2877")),g=Object(b["a"])(v,f,h,!1,null,"1b1fc70b",null),_=g.exports,S=a("7a3c"),w=a("0464"),C=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)},k=[],x={data:function(){return{list:[]}},methods:{submit:function(){}}},F=x,P=(a("62f6"),Object(b["a"])(F,C,k,!1,null,"37928f5f",null)),T=P.exports,I=a("b133"),D=(a("73b3"),a("7676")),O=a.n(D),L=a("6612"),E=a.n(L),A={0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT"},j={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:_,paymentCycle:S["a"],extraClass:w["a"],classrooms:T,otherform:I["a"]},data:function(){return{options:[],form:{payUserType:"user"===this.type?"STUDENT":"SCHOOL",leixing:"1",musicGroupOrganizationCourseSettingId:null},chargeTypeName:"",other:{},cycles:[{}],cycle:{},eclass:[],collapse:[0],nextVisible:!1,typeList:[],charges:[],studentIds:"",payment:{paymentPattern:null},viewDetail:null,organizationCourseUnitPriceSettingsByType:{},paymentPatternTypeOptions:Object(m["b"])(d["s"])}},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(l["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var i=e.value;t[i.id]=i}}catch(s){a.e(s)}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,s=i.musicGroupPaymentCalenders;i.auditDto;t=null===(a=s[0])||void 0===a?void 0:a.paymentType,e=s.length>1||"ADD_COURSE"!=t,e&&(this.cycles=s.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}},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(c["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){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(c["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,n,r,o,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getCharges(),!this.rowDetail){e.next=21;break}for(t in A)A.hasOwnProperty(t)&&(a=A[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:n=e.sent,this.viewDetail=n.data,this.eclass=(n.data.musicGroupPaymentCalenderCourseSettings||[]).filter((function(e){return!e.isStudentOptional||void 0!==c.paymentType})),r=n.data.musicGroupPaymentCalenders[0]||{},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",r.paymentPattern+""),o=[r.paymentValidStartDate,r.paymentValidEndDate],this.$set(this.cycle,"paymentDate",[r.startPaymentDate,r.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",o)),this.studentIds=r.studentIds,this.$set(this.form,"musicGroupOrganizationCourseSettingId",null===(s=n.data.auditDto)||void 0===s?void 0:s.musicGroupOrganizationCourseSettingsId),this.syncAllMoney(),e.next=21;break;case 19:e.prev=19,e.t0=e["catch"](5);case 21:case"end":return e.stop()}}),e,this,[[5,19]])})));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,s=null===(t=this.musicGroup)||void 0===t?void 0:t.chargeTypeId,n={},r=(this.organizationCourseUnitPriceSettings||[]).filter((function(e){return i&&i==e.organId&&s&&s==e.chargeTypeId})),o=Object(l["a"])(r);try{for(o.s();!(a=o.n()).done;){var c=a.value;n[c.courseType]=c}}catch(u){o.e(u)}finally{o.f()}return this.organizationCourseUnitPriceSettingsByType=n,n},priceChange:function(e,t){var a=Object(o["a"])(this.eclass),i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},s=Math.round(E()(i.unitPrice||1).multiply(e.courseTotalMinuties||1).value());e.courseCurrentPrice=s,e.courseOriginalPrice=s,a[t]=e,this.eclass=Object(o["a"])(a),this.syncAllMoney()},syncAllMoney:function(){var e,t=0,a=0,i=0,s=Object(l["a"])(this.eclass);try{for(s.s();!(e=s.n()).done;){var n=e.value;if(t+=n.courseCurrentPrice,this.cycles&&this.cycles.length)if(n.isStudentOptional)a+=n.courseCurrentPrice;else{var o=Math.floor(n.courseCurrentPrice/this.cycles.length),c=n.courseCurrentPrice%this.cycles.length;console.log(c),a+=o+c,i+=o}}}catch(u){s.e(u)}finally{s.f()}return this.cycles&&this.cycles.length&&(this.cycles=this.cycles.map((function(e,t){return Object(r["a"])(Object(r["a"])({},e),{},{paymentAmount:0===t?a:i})}))),this.$set(this.cycle,"paymentAmount",t),t},getChargeTypeList:function(){var e=Object(c["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(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(c["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,n,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=null===(t=this.musicGroup)||void 0===t?void 0:t.organId,n=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:n,organId:s});case 6:r=e.sent,o=r.data.rows.map((function(e){return e.id})),o.includes(this.form.musicGroupOrganizationCourseSettingId)||this.$set(this.form,"musicGroupOrganizationCourseSettingId",null),this.charges=r.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(o["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(c["a"])(regeneratorRuntime.mark((function e(){var t,a,i,s,c,u,d,f,h,y,v,b,g,_,S,w,C;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],i=Object(l["a"])(t);try{for(c=function(){var e=s.value;e.validate((function(t){t&&a.push(e)}))},i.s();!(s=i.n()).done;)c()}catch(k){i.e(k)}finally{i.f()}if(!(this.eclass.length<1)){e.next=6;break}return e.abrupt("return",this.$message.error("请至少选择一条加课信息"));case 6:if(a.length!==t.length){e.next=37;break}if(d=Object(r["a"])(Object(r["a"])(Object(r["a"])({},this.form),this.other),{},{paymentPattern:this.payment.paymentPattern,musicGroupPaymentDateRangeList:Object(o["a"])(this.cycles.map((function(e){var t=e.paymentDate,a=e.paymentValid,i=Object(n["a"])(e,["paymentDate","paymentValid"]);return Object(r["a"])(Object(r["a"])(Object(r["a"])({},i),Object(m["a"])(t,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(a,["paymentValidStartDate","paymentValidEndDate"]))}))),musicGroupPaymentCalenderCourseSettingsList:this.eclass}),f=d.leixing,h=Object(n["a"])(d,["leixing"]),this.$refs.cycle&&(y=this.cycle,v=y.paymentDate,b=y.paymentValid,g=Object(n["a"])(y,["paymentDate","paymentValid"]),h.musicGroupPaymentDateRangeList=[Object(r["a"])(Object(r["a"])(Object(r["a"])({},g),Object(m["a"])(v,["startPaymentDate","deadlinePaymentDate"])),Object(m["a"])(b,["paymentValidStartDate","paymentValidEndDate"]))]),_=Object(r["a"])(Object(r["a"])({},h),{},{isGiveMusicNetwork:!1,studentIds:this.studentIds,paymentType:A[0==this.paymentType?this.paymentType:f],musicGroupId:this.musicGroupId}),null!==(u=this.rowDetail)&&void 0!==u&&u.batchNo){e.next=24;break}return e.prev=11,e.next=14,Object(p["c"])(_);case 14:S=e.sent,this.$listeners.close(),this.$listeners.submited(S.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:O()(this.$route.query,{type:"feeAudit"})}),e.next=22;break;case 20:e.prev=20,e.t0=e["catch"](11);case 22:e.next=37;break;case 24:return e.prev=24,_.batchNo=this.rowDetail.batchNo,_.paymentType=null===(w=this.viewDetail.musicGroupPaymentCalenders[0])||void 0===w?void 0:w.paymentType,e.next=29,Object(p["f"])(_);case 29:C=e.sent,this.$listeners.close(),this.$listeners.submited(C.data),"teamDraft"==this.$route.query.type&&this.$router.push({query:O()(this.$route.query,{type:"feeAudit"})}),e.next=37;break;case 35:e.prev=35,e.t1=e["catch"](24);case 37:case"end":return e.stop()}}),e,this,[[11,20],[24,35]])})));function t(){return e.apply(this,arguments)}return t}()}},N=j,G=(a("b0bf"),Object(b["a"])(N,i,s,!1,null,"bb2e347e",null));t["a"]=G.exports},9675:function(e,t,a){"use strict";const i=a("52f6"),s=a("ef5d"),n=a("fb48");function r(e,t){switch(s(e)){case"object":return o(e,t);case"array":return c(e,t);default:return i(e)}}function o(e,t){if("function"===typeof t)return t(e);if(t||n(e)){const a=new e.constructor;for(let i in e)a[i]=r(e[i],t);return a}return e}function c(e,t){const a=new e.constructor(e.length);for(let i=0;i<e.length;i++)a[i]=r(e[i],t);return a}e.exports=r},"9a00":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-container"},[a("div",{staticClass:"line"}),e._v(" "),a("h2",[a("el-page-header",{attrs:{content:e.pageName},on:{back:e.goBack}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("div",{staticClass:"stepbox"},[a("span",{staticClass:"stepspan stepspan1"},[a("div",{staticClass:"step1 sptep",class:e.activeIndex>=0?"activestep":""},[e._v("\n 基本信息\n ")]),e._v(" "),a("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=0?e.stepImgs.nol:e.stepImgs.active,alt:""}})]),e._v(" "),!e.showFlag||e.activeIndex>=1?a("span",{staticClass:"stepspan stepspan2"},[a("div",{staticClass:"step2 sptep",class:e.activeIndex>=1?"activestep":""},[e._v("\n 声部设置\n ")]),e._v(" "),a("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=1?e.stepImgs.nol:e.stepImgs.active,alt:""}})]):e._e(),e._v(" "),!e.showFlag||e.activeIndex>=2?a("span",{staticClass:"stepspan stepspan3"},[a("div",{staticClass:"step2 sptep",class:e.activeIndex>=2?"activestep":""},[e._v("\n 创建缴费\n ")]),e._v(" "),a("img",{staticClass:"arrow",attrs:{src:e.activeIndex>=2?e.stepImgs.nol:e.stepImgs.active,alt:""}})]):e._e()]),e._v(" "),a("div",{staticClass:"stepcontent"},[a("div",{directives:[{name:"show",rawName:"v-show",value:0==e.activeIndex,expression:"activeIndex == 0"}]},[a("teamBaseInfo",{ref:"teamBaseInfo",attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1),e._v(" "),1==e.activeIndex?a("div",[a("teamSoundMoney",{attrs:{getTeamList:e.getTeamList},on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo}})],1):e._e(),e._v(" "),2==e.activeIndex?a("div",[a("teamPayInfo",{attrs:{getTeamList:e.getTeamList,baseInfo:e.baseInfo},on:{chiosetab:e.chiosetab}})],1):e._e()])])])},s=[],n=(a("7f7f"),a("80b0")),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sound-container"},[a("div",{staticClass:"topMsg"},[a("p",[e._v("当前选择声部数(个):"+e._s(e.chioseSoundNum))]),e._v(" "),a("p",{staticStyle:{"margin-left":"30px"}},[e._v("计划招生人数(个):"+e._s(e.PlannedCount))])]),e._v(" "),a("soundSetCore",{ref:"soundSetCore",on:{chiosetab:e.chiosetab,getBaseInfo:e.getBaseInfo,getNumber:e.getNumber}}),e._v(" "),a("div",{staticClass:"btnWrap"},[a("div",{staticClass:"PrevBtn",on:{click:e.goback}},[e._v("上一步")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/createGroup",parent:"/teamBuild/soundMoney"},expression:"{\n child: 'musicGroup/createGroup',\n parent: '/teamBuild/soundMoney',\n }"}],staticClass:"submitBtn",on:{click:function(t){return e.submitInfo()}}},[e._v("\n 下一步\n ")]),e._v(" "),"teamAudit"==e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/auditSuccess",parent:"/teamBuild/teamAudit/soundMoney"},expression:"{child: 'musicGroup/auditSuccess', parent: '/teamBuild/teamAudit/soundMoney'}"}],staticClass:"submitBtn",on:{click:e.approval}},[e._v("\n 审核通过\n ")]):e._e(),e._v(" "),"teamAudit"==e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:{child:"musicGroup/auditFailed",parent:"/teamBuild/teamAudit/soundMoney"},expression:"{child: 'musicGroup/auditFailed', parent: '/teamBuild/teamAudit/soundMoney'}"}],staticClass:"submitBtn",on:{click:e.refuse}},[e._v("\n 驳回\n ")]):e._e()])],1)},o=[],c=(a("4360"),a("fa7d"),a("1cc7")),l=(a("5a0c"),a("ff14")),u={components:{soundSetCore:l["a"]},data:function(){return{topfor:null,Fsearch:null,Frules:null,activeSoundList:[],chioseSoundNum:0,PlannedCount:0,teamStatus:null,teamid:null}},mounted:function(){this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type},activated:function(){this.teamid=this.$route.query.id,this.teamStatus=this.$route.query.type},methods:{goback:function(){this.$emit("chiosetab",0)},submitInfo:function(){this.$refs.soundSetCore.submitInfo()},chiosetab:function(e){this.$emit("chiosetab",e)},submitAudit:function(e){this.$refs.soundSetCore.submitInfo(e)},getNumber:function(e,t){this.chioseSoundNum=e,this.PlannedCount=t},getBaseInfo:function(e){this.$emit("getBaseInfo",e)},approval:function(){var e=this;this.$confirm("是否审核通过?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["f"])({musicGroupId:e.teamid}).then((function(t){200==t.code&&(e.$message.success("审核通过"),e.$router.push({path:"/business/teamDetail",query:{search:e.Fsearch,rules:e.Frules}}))}))})).catch((function(){}))},refuse:function(){var e=this;this.$prompt("请输入拒绝原因","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(t){var a=t.value;a?Object(c["e"])({musicGroupId:e.teamid,memo:a}).then((function(t){200==t.code&&(e.$message.success("已拒绝"),e.$router.push({path:"/business/teamDetail",query:{search:e.Fsearch,rules:e.Frules}}))})):e.$message.error("请输入驳回原因")}))}},computed:{}},p=u,d=(a("5f69"),a("2877")),m=Object(d["a"])(p,r,o,!1,null,"947e96c8",null),f=m.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pay-container"},[a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permission("/resetTeaming/teamBaseInfo")?a("el-tab-pane",{attrs:{label:"学员缴费",name:"1"}},[a("resetPayList",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}})],1):e._e(),e._v(" "),e.permission("/resetTeaming/resetSound")?a("el-tab-pane",{attrs:{label:"学校缴费",name:"2"}},[2==e.activeIndex?a("resetPayListSchool",{attrs:{isNewGropu:!0,baseInfo:e.baseInfo}}):e._e()],1):e._e()],1),e._v(" "),a("div",{staticClass:"btnWrap"},[a("div",{staticClass:"PrevBtn",on:{click:e.goback}},[e._v("上一步")]),e._v(" "),a("div",{staticClass:"submitBtn",on:{click:e.goHome}},[e._v("确定")])])],1)},y=[],v=a("5530"),b=a("070d"),g=a("f610"),_=a("ec8a"),S={props:["baseInfo"],components:{resetPayList:b["a"],resetPayListSchool:g["a"]},data:function(){return{activeIndex:"1"}},created:function(){console.log(this.baseInfo)},methods:{goback:function(){this.$emit("chiosetab",1)},submitAudit:function(){this.$route.query.id},handleClick:function(e){this.activeIndex=e.name},permission:function(e){return Object(_["a"])(e)},goHome:function(){var e=this.$route.query;this.$router.push({path:"/business/teamDetail",query:Object(v["a"])({},e)})}}},w=S,C=(a("b8e5"),Object(d["a"])(w,h,y,!1,null,"6e325748",null)),k=C.exports,x={components:{teamBaseInfo:n["a"],teamSoundMoney:f,teamPayInfo:k},name:"teamBuild",data:function(){return{activeIndex:0,stepImgs:{nol:a("51bf"),active:a("f8e4")},pageName:"建团申请",getTeamList:[],teamStatus:""}},created:function(){this.activeIndex=0,this.init()},activated:function(){this.init()},methods:{init:function(){this.teamStatus=this.$route.query.type,this.$route.query.teamList&&(this.getTeamList=this.$route.query.teamList),"newTeam"==this.teamStatus?(this.pageName="建团申请",this.activeIndex=0):(this.pageName="乐团修改",this.activeIndex=0)},chiosetab:function(e){this.activeIndex=e,(0==e&&"newTeam"!=this.teamStatus||0==e&&"feeAudit"!=this.teamStatus)&&this.$refs.teamBaseInfo.init()},goBack:function(){this.$router.push({path:"/business/teamDetail"})},getBaseInfo:function(e){var t;this.baseInfo=e,this.pageName=null===(t=e.musicGroup)||void 0===t?void 0:t.name}},computed:{showFlag:function(){return"newTeam"==this.teamStatus||"teamList"==this.teamStatus}}},F=x,P=(a("f54a"),Object(d["a"])(F,i,s,!1,null,"1a8b58ee",null));t["default"]=P.exports},"9f90":function(e,t,a){"use strict";a("a328")},"9fd8":function(e,t,a){"use strict";a("f171")},a328:function(e,t,a){},a488:function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return c})),a.d(t,"b",(function(){return l}));var i=a("b775"),s=a("4328"),n=a.n(s),r="/api-web";function o(e){return Object(i["a"])({url:r+"/employee/findTechnician",method:"get",params:e})}function c(e){return Object(i["a"])({url:r+"/studentRepair/queryPage",method:"get",params:e})}function l(e){return Object(i["a"])({url:r+"/studentRepair/repairSuccess",method:"post",data:n.a.stringify(e)})}},a832:function(e,t,a){"use strict";
  9. /*!
  10. * isobject <https://github.com/jonschlinkert/isobject>
  11. *
  12. * Copyright (c) 2014-2017, Jon Schlinkert.
  13. * Released under the MIT License.
  14. */e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},aa6f:function(e,t,a){},aea5:function(e,t,a){},b0bf:function(e,t,a){"use strict";a("0c32")},b269:function(e,t,a){},b38b:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return l}));var i=a("b775"),s=a("4328"),n=a.n(s),r="/api-web";function o(e){return Object(i["a"])({url:r+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function c(e){return Object(i["a"])({url:r+"/musicGroupPaymentCalender/auditPass",method:"post",data:n.a.stringify(e)})}function l(e){return Object(i["a"])({url:r+"/musicGroupPaymentCalender/auditRefuse",method:"post",data:n.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)},s=[],n=a("5530"),r=a("333d"),o=a("1cc7"),c={components:{pagination:r["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["F"])({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["Zb"])(Object(n["a"])(Object(n["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;sessionStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,a={};a.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["gc"])(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())}}},l=c,u=(a("e668"),a("2877")),p=Object(u["a"])(l,i,s,!1,null,"37c6bfc0",null);t["default"]=p.exports},b69a:function(e,t,a){"use strict";a("e4c5")},b8e5:function(e,t,a){"use strict";a("be5c")},be5c:function(e,t,a){},c4d8:function(e,t,a){"use strict";var i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var i,s,n=a.call(e),r=[];try{while((void 0===t||t-- >0)&&!(i=n.next()).done)r.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(a=n["return"])&&a.call(n)}finally{if(s)throw s.error}}return r},s=this&&this.__spread||function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(i(arguments[t]));return e},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var r=n(a("9675")),o=n(a("d540")),c=a("3b74"),l=Array.isArray;function u(e){var t=void 0===e?{}:e,a=t.customizeArray,i=t.customizeObject,n=t.key;return function e(t,p,d){var m=n?n+"."+d:d;if(c.isFunction(t)&&c.isFunction(p))return function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return e(t.apply(void 0,s(a)),p.apply(void 0,s(a)),d)};if(l(t)&&l(p)){var f=a&&a(t,p,m);return f||s(t,p)}if(c.isRegex(p))return p;if(c.isPlainObject(t)&&c.isPlainObject(p)){f=i&&i(t,p,m);return f||o["default"]([t,p],u({customizeArray:a,customizeObject:i,key:m}))}return c.isPlainObject(p)?r["default"](p):l(p)?s(p):p}}t["default"]=u},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("musicGroupPaymentCalender/auditPass")?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/auditRefuse")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e(),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()},s=[],n=(a("96cf"),a("1da1")),r=a("ec8a"),o=a("3762"),c=a("b38b"),l={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:if(!t){e.next=14;break}return e.prev=3,e.next=6,this.$confirm("是否确认审核通过","提示",{type:"warning"});case 6:return e.next=8,Object(c["a"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("审核通过"),a.$emit("close"))}));case 8:e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:e.next=23;break;case 14:return e.prev=14,e.next=17,this.$confirm("是否确认驳回","提示",{type:"warning"});case 17:return e.next=19,Object(c["b"])({batchNo:this.detail.batchNo,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("驳回成功"),a.$emit("close"))}));case 19:e.next=23;break;case 21:e.prev=21,e.t1=e["catch"](14);case 23:case"end":return e.stop()}}),e,this,[[3,10],[14,21]])})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(r["a"])(e)}}},u=l,p=(a("73ce"),a("2877")),d=Object(p["a"])(u,i,s,!1,null,"290cb116",null);t["a"]=d.exports},d2df:function(e,t,a){"use strict";a("5309")},d540:function(e,t,a){"use strict";var i=this&&this.__read||function(e,t){var a="function"===typeof Symbol&&e[Symbol.iterator];if(!a)return e;var i,s,n=a.call(e),r=[];try{while((void 0===t||t-- >0)&&!(i=n.next()).done)r.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(a=n["return"])&&a.call(n)}finally{if(s)throw s.error}}return r};function s(e,t){var a=i(e),s=a[0],r=a.slice(1),o=s;return r.forEach((function(e){o=n(o,e,t)})),o}function n(e,t,a){var i={};return Object.keys(e).concat(Object.keys(t)).forEach((function(s){var n=a(e[s],t[s],s);i[s]="undefined"===typeof n?e[s]:n})),i}t.__esModule=!0,t["default"]=s},e4c5:function(e,t,a){},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:"缴费单号"},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?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroup/findMusicGroupSubjectInfo/966",expression:"'musicGroup/findMusicGroupSubjectInfo/966'"}],attrs:{type:"text"},on:{click:function(a){return e.$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)},s=[],n=(a("96cf"),a("1da1")),r=a("1cc7"),o=(a("1672"),a("3908"),a("333d")),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:{getList: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(r["hb"])({batchNo:this.batchNo,page:"1",rows:10});case 3:t=e.sent,this.list=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),toDetail:function(e){var t=this;"STUDENT"===this.payUserType&&this.$listeners.close(),this.$nextTick((function(){t.$listeners.lookDetail(e)}))}}},l=c,u=(a("d2df"),a("2877")),p=Object(u["a"])(l,i,s,!1,null,"ff8abc50",null);t["a"]=p.exports},e668:function(e,t,a){"use strict";a("3ba9")},ef5d:function(e,t){var a=Object.prototype.toString;function i(e){return"function"===typeof e.constructor?e.constructor.name:null}function s(e){return Array.isArray?Array.isArray(e):e instanceof Array}function n(e){return e instanceof Error||"string"===typeof e.message&&e.constructor&&"number"===typeof e.constructor.stackTraceLimit}function r(e){return e instanceof Date||"function"===typeof e.toDateString&&"function"===typeof e.getDate&&"function"===typeof e.setDate}function o(e){return e instanceof RegExp||"string"===typeof e.flags&&"boolean"===typeof e.ignoreCase&&"boolean"===typeof e.multiline&&"boolean"===typeof e.global}function c(e,t){return"GeneratorFunction"===i(e)}function l(e){return"function"===typeof e.throw&&"function"===typeof e.return&&"function"===typeof e.next}function u(e){try{if("number"===typeof e.length&&"function"===typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}function p(e){return!(!e.constructor||"function"!==typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return c(e)?"generatorfunction":"function";if(s(e))return"array";if(p(e))return"buffer";if(u(e))return"arguments";if(r(e))return"date";if(n(e))return"error";if(o(e))return"regexp";switch(i(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(l(e))return"generator";switch(t=a.call(e),t){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},f171:function(e,t,a){},f54a:function(e,t,a){"use strict";a("aea5")},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("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"缴费类型",clearable:"",filterable:""},model:{value:e.searchForm.paymentType,callback:function(t){e.$set(e.searchForm,"paymentType",t)},expression:"searchForm.paymentType"}},e._l(e.payOrderTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"topWrap"},[e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("新建学校缴费")]):e._e(),e._v(" "),e.teamStatus?a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")]):e._e()]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"batchNo",width:"200",label:"缴费批次"},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")(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.status&&"AUDITING"!=t.row.status&&e.teamStatus&&"MUSIC_APPLY"!=t.row.paymentType&&"ADD_STUDENT"!=t.row.paymentType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),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(" "),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:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{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:e.isNewGropu?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)},s=[],n=(a("a481"),a("5530")),r=(a("96cf"),a("1da1")),o=(a("bc3a"),a("5f87"),a("333d")),c=(a("3908"),a("4328"),a("5a0c")),l=a.n(c),u=a("641c"),p=a("61f7"),d=a("1cc7"),m=a("d349"),f=a("b38b"),h=a("1672"),y=a("b3d0"),v=a("940a"),b=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("重置")])],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:{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"),C={search:"",subjectId:""},k={props:["detail"],components:{pagination:o["a"]},data:function(){return{searchForm:Object(n["a"])({},C),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(n["a"])({},C),this.FetchList()},deleteUser:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除选中学员?","提示",{type:"warning"});case 3:return e.next=5,Object(d["v"])({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(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["Lb"])(Object(n["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}()}},x=k,F=a("2877"),P=Object(F["a"])(x,_,S,!1,null,"7c7161a2",null),T=P.exports,I=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)},D=[],O={props:["data"],data:function(){return{form:{memo:""}}},mounted:function(){},methods:{submitGetMoney:function(){var e=Object(r["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(r["a"])(regeneratorRuntime.mark((function e(a){var i,s;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,s=t.form.memo,e.prev=3,e.next=6,Object(h["b"])({id:i,memo:s});case 6:e.sent,t.$emit("close"),e.next=12;break;case 10:e.prev=10,e.t0=e["catch"](3);case 12:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),close:function(){this.$emit("close")}}},L=O,E=Object(F["a"])(L,I,D,!1,null,"4b111bac",null),A=E.exports,j=a("cd32"),N=a("3762"),G=a("267e"),R=a("ed08"),V=a("92e3"),$={props:["baseInfo","isNewGropu"],components:{pagination:o["a"],setStudentFee:y["default"],userPayForm:v["a"],schoolPayForm:g["a"],QrCode:u["a"],review:j["a"],reviewDetail:N["a"],teamType:"","pay-items":b["a"],schoolPayUserList:T,isGetMoney:A},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,userListVisible:!1,itemsVisible:!1,teamType:this.$route.query.type,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,batchNo:"",musicGroupPaymentCalenderId:"",payOrderTypeLists:V["s"],getMoneyVisible:!1}},created:function(){},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["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(R["b"])(G["y"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"},teamStatus:function(){var e=this.$route.query.type;return"teamDraft"==e||"resetTeam"==e}},activated:function(){this.init()},methods:{init:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(h["a"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getList();case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(f["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(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("缴费创建完成, 是否立即排课?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:this.$listeners.changeActive&&this.$listeners.changeActive({name:"5"}),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),detelePay:function(e){var t=this,a=e.id;this.$confirm("确定删除该缴费周期?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(d["u"])({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(n["a"])({},e)),this.viewDetail=Object(n["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(r["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(d["ec"])({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 s=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return s},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.batchNo=e.batchNo,this.musicGroupPaymentCalenderId=e.id},payedSubmited:function(){var e=Object(r["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=$,M=(a("9f90"),Object(F["a"])(U,i,s,!1,null,"6feaf492",null));t["a"]=M.exports},f635:function(e,t,a){},f672:function(e,t,a){},f696:function(e,t,a){},f734:function(e,t,a){},f8e4:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAABQCAYAAAB8racIAAAAAXNSR0IArs4c6QAABrFJREFUaAXNWk1sG0UUfrO7duLEiR0ndtZWG/9VHJC4IAECDoBUBEj8hRbUqoIifoSAC3CAAxzgAAc4wAXEBamqVFHRPwESHACpHOAGBxA9QOPEJbE3jp3Y8f/fDu+tu9XaxK7t7DodyZrZmfF737755u17swuxuPIi3Ajl8nKiEvs3efteYxEQwJja5OcuK4pvL8EIjnE7AId9UOZfcc6lvQIjzHtnQJJE1M/viV1JfrRnQERRABnBMMaAq/Da0rJydC/AMFwOToq38yXYyOQQEJSYKN4Z2T//xygBEVm1Mj01AfRDWBNqUz0fj2dn9LFR1NeAkLI5jwvGxmxIFx5t8PIpNFbbuJWA2hThsoDs8wDxBkE8tBxff89K5UbZ1zhi7CxXapBc36QuzgT2eGRB/sY4bkV7RyCkKLddhPTmNrbYNrNJt0X3ef+2AoAus21p9E6qXdOT4Jx0YItP80bjQiqVchrHzW53BUKKfHMusNs18t6cLzVPmK3cKK8nEHJysm8GREEj76GlePIt45/NbHfliFFJqVwFJbVFXU1gwoPR4PyPxnEz2j0toiuYcIzBjMtJW1rkvHk6lkgE9TGz6r6AkLIZtxMmJ8aRuzCr1uD88jLHC/NK30BIpW/ODTYbRgocbuWgfG4eDICBgAhCi7wCklcFfjy2knzVLDB9kbVTWbFUuUpeVgdBuO9AcP6XzjmDXg9kEV04ccWN5MU1sjGunllZ2fDrY8PWQwEhZbMzU+DA3YQ7yd+A+lms0fMNX4YGQiplr7sVZnK4C9OST4aHMSBZOxURacnzamEm569cjiePd87p93oosnYKzxfKkEpnKcysiGC7OxTy/t4553rXu1oaXfiU06E9rTHMHG/yxvnV1e1Zfazf2hQgpGzOMw3jmCNx4MFqo3CaHgf9gqB5pgEhYZSWSKKIOwkOxlaUD6iv32IKR4zKKtU6JJQMbWv0dezJSNB/1jjerW06EFKUwxwpjTkSsrdgY3BHMOi/1A2A3m/q0uhCXZgfTTkn0PFyZ0PlF5Y2N136WLfaEiCkzDvbypEwjbyJ56oncakwWeleLAOi5UhIXsqR0DSPLsWVd7rDwFVEpFru22vSbsYMOZKKch6Jhvzf7STPMovoyuj8xeOeol2EuvipK1fWo/qYsbYcCClzuyhHGif/4q431QuJBEcmt5eRACGVFGba7RJ53lvKNeWLdhgme9ZO4cZrLUfyetDJaTnSkaWVxBtt41aT1aiM2sVSFdY3ttAy0BA53B8O+y9S/8iWhpT1KiM9RazXm1rcQh4Dvdub4XDgog7Ocj+iKyLlq8k01GoNiuhOoz9pOzQc2dJQBKeBAPanwy4/rwPU65EsTTZXhEKxQqFk1iYIi4EAK+kA9NpyIOTiN7N5Wg5y8ccWFuaXdOXG2tKlaTSara2K/MDt+m635wwBsoysqBvWlDRUMWJjwL6NhOTH0CrYu3OxzCJ0it0CAf+Aa+zpXiAImiUcoVAxX0A+YqgoMVgMejwYN/YupluEgueMdiyKbpvBcxiv/tUbQmvUVCDNpgrreNbW8pzsQ4zgz/QDguaYStY1TCMquF2RDz9FgvIDWDf7BWKaRdKZ7RYIYHGHffLIICAIrClkpSQ8ly+S56xwxg8FAtPpfi2hz9u1Raq1uvbCiQRixvDygWDgN134IPWuLKKqqnaWppGTsc/Qc54YRLlx7q7ISq9S6FQaXeev0aD/XuRF3Sh8kPbQFsls5TUQqFwRQTq8GxAEeCggdLyZzRXw76yOb5YOh4Le5CB3v9PcgYHU6g0M91oeGz3n6xETzlgJ2EC7RlXx4Bs9J5EUrXEyEvJ/utPdDdM3EBAK9+poESTn7yLILw2jsNt/+l6arWwBc5IKgcgIdngiHGB4YV7pCwht0S0kJ7ltxoSjkcB83DwILUnXXZo6hnupjaz2REVrvI3k/MFsECSvp0Mjj7mWzAC5cbTGOfSch60AQTJ7WoS2KYFAFJemJsRn6Q9Wla4coRfQhWIZ9eILaEla9Pm85MEsKzsCoVyEXDguB8ez0mfCFr8Fp7v739I0KNyjYwPkB6YB74cX5K8tM4NBcBtZKRehU+NKVQv3vsdw72G0CrlRy0ubRdKbOQ0ErklMYo5jowJBd3mNI/RpD/0w3MNPe4TF4H639urbclNcVaBZhDKy1ica2MuFF0b9fRFhkSgXUXRyMuHjaEj+8irIkVZsLZnmtF3RX/yMIA4iL/DxOvoiaSAYrMI4e2qvQNBtE1mrgsgORWQ5NXo7GDTeKJ+R/gf1jqv318FwQAAAAABJRU5ErkJggg=="},fb48:function(e,t,a){"use strict";
  15. /*!
  16. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  17. *
  18. * Copyright (c) 2014-2017, Jon Schlinkert.
  19. * Released under the MIT License.
  20. */var i=a("a832");function s(e){return!0===i(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,a;return!1!==s(e)&&(t=e.constructor,"function"===typeof t&&(a=t.prototype,!1!==s(a)&&!1!==a.hasOwnProperty("isPrototypeOf")))}},ff14:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"soundBtnWrap"},["resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.allin}},[e._v("全选")]),e._v(" "),"resetTeam"==e.teamStatus||e.basdisabled?e._e():a("el-button",{attrs:{type:"danger"},on:{click:e.deleteRow}},[e._v("删除")]),e._v(" "),e.basdisabled?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.soundVisible=!0}}},[e._v("添加")])],1),e._v(" "),a("div",{staticClass:"coreWrap"},[a("el-checkbox-group",{on:{change:e.lookCheck},model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},[a("el-collapse",{model:{value:e.chioseActiveSound,callback:function(t){e.chioseActiveSound=t},expression:"chioseActiveSound"}},e._l(e.activeSoundList,(function(t,i){return a("el-collapse-item",{key:i,attrs:{name:t.id}},[a("template",{slot:"title"},[a("div",{staticClass:"coreItemTitle"},[a("el-checkbox",{attrs:{label:t.id,disabled:e.basdisabled}},[e._v(e._s(t.sound))])],1)]),e._v(" "),a("div",{staticClass:"coreItem"},[a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("计划招生人数:")]),e._v(" "),a("el-input",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},model:{value:t.expectedStudentNum,callback:function(a){e.$set(t,"expectedStudentNum",a)},expression:"item.expectedStudentNum"}})],1)]),e._v(" "),a("el-divider"),e._v(" "),a("chioseMusic",{attrs:{activeSoundList:e.activeSoundList,item:t,basdisabled:e.basdisabled},on:{lookMusic:e.lookMusic}}),e._v(" "),a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"},[e._v("教辅:")]),e._v(" "),a("el-select",{staticStyle:{width:"558px !important"},attrs:{disabled:e.basdisabled,clearable:"",filterable:"",multiple:""},model:{value:t.markChioseList,callback:function(a){e.$set(t,"markChioseList",a)},expression:"item.markChioseList"}},e._l(t.markList,(function(t,i){return a("el-option",{key:i,attrs:{label:t.name,value:t.id}},[a("span",{staticStyle:{float:"left"}},[e._v(e._s(t.name))]),e._v(" "),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","padding-right":"20px"}},[e._v(e._s(e._f("moneyFormat")(t.groupPurchasePrice))+"元")])])})),1)],1)],2)})),1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"声部选择",visible:e.soundVisible,"destroy-on-close":""},on:{"update:visible":function(t){e.soundVisible=t}}},[a("chioseSoundList",{attrs:{soundList:e.soundList,activeSound:e.activeSound},on:{chioseSound:e.chioseSound}})],1)],1)},s=[],n=a("5530"),r=(a("7f7f"),a("6762"),a("2fdb"),a("5df3"),a("4f7f"),a("2909")),o=(a("456d"),a("28a5"),a("ac6a"),a("386d"),a("ade3")),c=(a("4360"),a("fa7d"),a("1cc7")),l=a("5a0c"),u=a.n(l),p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"soundWrap"},[a("el-checkbox-group",{model:{value:e.activeSoundList,callback:function(t){e.activeSoundList="string"===typeof t?t.trim():t},expression:"activeSoundList"}},[a("div",{staticClass:"itemList"},e._l(e.soundList,(function(t,i){return a("div",{key:i,staticClass:"categroy"},[a("p",[e._v(e._s(t.name))]),e._v(" "),e._l(t.subjects,(function(t,i){return a("el-checkbox",{key:i,attrs:{label:t.id,disabled:e.activeSound.includes(t.id)},on:{change:e.changeCheck}},[e._v(e._s(t.name))])}))],2)})),0)])],1),e._v(" "),a("p",{staticClass:"soundSubP"},[e._v("当前选择声部数:"+e._s(e.activeSoundList.length))]),e._v(" "),a("div",{staticClass:"btnWraps"},[a("el-button",{attrs:{type:"primary"},on:{click:e.generates}},[e._v("\n 确定\n ")])],1)])},d=[],m={props:["soundList","childSoundList","activeSound"],data:function(){return{chioseSoundNum:"",activeSoundList:this.activeSound||[]}},mounted:function(){console.log(this.soundList)},activated:function(){console.log(this.soundList)},methods:{generates:function(){this.$emit("chioseSound",this.activeSoundList)},changeCheck:function(){}}},f=m,h=(a("4226"),a("2877")),y=Object(h["a"])(f,p,d,!1,null,"c28cee18",null),v=y.exports,b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._l(e.item.chioseMusic,(function(t,i){return a("div",{key:i},[a("div",{staticClass:"chioseMusic"},[a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("可选乐器"+e._s(i+1)+":")]),e._v(" "),a("el-select",{staticStyle:{width:"180px"},attrs:{disabled:e.basdisabled},on:{change:function(a){e.chioseMusic(a,t)}},model:{value:t.musical,callback:function(a){e.$set(t,"musical",a)},expression:"music.musical"}},e._l(e.item.goodsList,(function(t,i){return a("el-option",{key:i,attrs:{label:t.name,value:t.id,disabled:e.checkDisabled(t)}})})),1)],1),e._v(" "),a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("乐器选择方式:")]),e._v(" "),a("el-checkbox-group",{staticClass:"marginLeft10",model:{value:t.type,callback:function(a){e.$set(t,"type",a)},expression:"music.type"}},[a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"GROUP"}},[e._v("团购")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"LEASE"}},[e._v("租赁")]),e._v(" "),a("el-checkbox",{attrs:{disabled:e.basdisabled,label:"FREE"}},[e._v("免费")])],1)],1),e._v(" "),a("div",{staticClass:"flexRow"},[a("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticClass:"title"},[e._v("\n 团购价:\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:""},model:{value:t.groupPrice,callback:function(a){e.$set(t,"groupPrice",a)},expression:"music.groupPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticClass:"title"},[e._v("\n 租赁押金:\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("LEASE"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('LEASE')\n : false\n "}],staticStyle:{width:"180px"}},[a("el-input",{attrs:{type:"number",disabled:e.basdisabled},model:{value:t.borrowPrice,callback:function(a){e.$set(t,"borrowPrice",a)},expression:"music.borrowPrice"}},[a("template",{slot:"append"},[e._v("元")])],2)],1),e._v(" "),e.item.chioseMusic.length>1&&!e.basdisabled&&(t.type.includes("LEASE")||t.type.includes("GROUP"))?a("i",{staticClass:"el-icon-close marginLeft10",staticStyle:{"font-size":"20px",cursor:"pointer"},on:{click:function(a){return e.deleteMusic(t)}}}):e._e()]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],staticStyle:{"margin-top":"5px"}},[a("div",{staticClass:"flexRow"},[a("p",{staticClass:"title"},[e._v("团购乐器减免课程费用:")]),e._v(" "),a("el-radio-group",{directives:[{name:"show",rawName:"v-show",value:!!(t.type&&t.type.length>0)&&t.type.includes("GROUP"),expression:"\n music.type && music.type.length > 0\n ? music.type.includes('GROUP')\n : false\n "}],model:{value:t.groupRemissionCourseFee,callback:function(a){e.$set(t,"groupRemissionCourseFee",a)},expression:"music.groupRemissionCourseFee"}},[a("el-radio",{attrs:{disabled:e.basdisabled,label:!0}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{disabled:e.basdisabled,label:!1}},[e._v("否")])],1)],1)])]),e._v(" "),a("el-divider")],1)})),e._v(" "),e.basdisabled?e._e():a("div",{staticClass:"coreItemRow"},[a("p",{staticClass:"title"}),e._v(" "),a("el-button",{staticStyle:{width:"558px"},attrs:{type:"info",plain:"",size:"mini",icon:"el-icon-plus"},on:{click:e.addMusic}},[e._v("新增可选乐器")])],1)],2)},g=[],_={props:["item","basdisabled","activeSoundList"],data:function(){return{radio:"",goods:""}},created:function(){},mounted:function(){},methods:{chioseMusic:function(e,t){this.item.goodsList.map((function(a,i){a.id==e&&(t.groupPrice=a.groupPurchasePrice)}))},addMusic:function(){this.item.chioseMusic.push({musical:"",type:["GROUP"],groupPrice:null,borrowPrice:1500,groupRemissionCourseFee:0}),this.$emit("lookMusic")},deleteMusic:function(e){var t=this;this.item.chioseMusic.forEach((function(a,i){a.musical==e.musical&&t.item.chioseMusic.splice(i,1)}))},checkDisabled:function(e){var t=!1;return this.activeSoundList.forEach((function(a){a.chioseMusic.forEach((function(a){e.id==a.musical&&(t=!0)}))})),t},changeFee:function(e,t){this.$set(t,"groupRemissionCourseFee",e)}}},S=_,w=(a("17ac"),Object(h["a"])(S,b,g,!1,null,"2156a184",null)),C=w.exports,k=a("2ef0"),x=(a("6612"),{components:{chioseSoundList:v,chioseMusic:C},data:function(){var e;return e={soundList:[],soundVisible:!1,childSoundList:[],activeSoundList:[],activeSound:null,chioseActiveSound:[]},Object(o["a"])(e,"soundList",[]),Object(o["a"])(e,"childSoundList",[]),Object(o["a"])(e,"teamStatus",""),Object(o["a"])(e,"checkList",[]),Object(o["a"])(e,"basdisabled",!1),e},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.topfor=this.$store.getters.topinfo;var t=this.topfor.type,a=this.topfor.section;this.teamStatus=this.$route.query.type,this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),"look"==this.teamStatus||"teamAudit"==this.teamStatus||"feeAudit"==this.teamStatus?this.basdisabled=!0:this.basdisabled=!1,Object(c["rb"])({tenantId:1}).then((function(i){200==i.code&&(e.soundList=i.data.rows,"newTeam"==e.teamStatus&&t&&a?Object(c["X"])({chargeTypeId:t,organId:a,number:1}).then((function(t){if(200==t.code){var a=[];e.activeSoundList=t.data.map((function(t){return a.push(t.id),e.initSound(t)})),e.activeSound=a,e.chioseActiveSound=a,e.changeActiveSound(a.join(","))}})):(e.teamid=e.$route.query.id,e.teamid&&Object(c["D"])({musicGroupId:e.teamid}).then((function(t){if(200==t.code){var a,i=[];e.activeSoundList=null===(a=t.data)||void 0===a?void 0:a.musicGroupSubjectPlans.map((function(e){return i.push(e.subjectId),{id:parseInt(e.subjectId),sound:e.subName,expectedStudentNum:e.expectedStudentNum,chioseMusic:[],markChioseList:[],goodsList:[],markList:[]}})),e.activeSound=i,e.chioseActiveSound=i,e.changeActiveSound(i.join(",")),t.data.musicGroupSubjectGoodsGroups.forEach((function(t){var a=Object(k["findIndex"])(e.activeSoundList,(function(e){return e.id==t.subjectId}));if(-1!=a)if("ACCESSORIES"==t.type)t.goodsIdList.split(",").forEach((function(t){e.activeSoundList[a].markChioseList.push(parseInt(t))}));else if("INSTRUMENT"==t.type){var i=Object.keys(JSON.parse(t.kitGroupPurchaseTypeJson));e.activeSoundList[a].chioseMusic.push({musical:parseInt(t.goodsIdList),type:i,groupPrice:t.price,borrowPrice:t.depositFee,groupRemissionCourseFee:Boolean(t.groupRemissionCourseFee)})}}))}console.log(e.activeSoundList)}))))})),Object(c["vb"])({tenantId:1}).then((function(t){200==t.code&&(e.childSoundList=t.data)}))},lookCheck:function(e){this.checkList=Object(r["a"])(new Set(e))},chioseSound:function(e){this.activeSound=Object(r["a"])(new Set(e));var t=[];for(var a in this.childSoundList)this.activeSound.includes(this.childSoundList[a].id)&&t.push(this.initSound(this.childSoundList[a]));var i=this.activeSoundList.map((function(e){return e.id}));for(var s in t){var n,o=i.indexOf(null===(n=t[s])||void 0===n?void 0:n.id);o>-1&&(t[s]=this.activeSoundList[o])}this.activeSoundList=t;var c=[];this.activeSoundList.forEach((function(e){c.push(e.id)})),this.activeSound=c,this.chioseActiveSound=c,this.changeActiveSound(c.join(",")),this.soundVisible=!1},initSound:function(e){var t={id:e.id,sound:e.name,expectedStudentNum:e.expectedStudentNum,chioseMusic:[{musical:"",type:["GROUP"],groupPrice:0,borrowPrice:1500,groupRemissionCourseFee:Boolean(e.groupRemissionCourseFee)}],markChioseList:[],goodsList:[],markList:[]};return t},changeActiveSound:function(e){var t=this;Object(c["wb"])({subjectIds:e,chargeTypeId:this.topfor.type}).then((function(e){if(200==e.code&&e.data){var a=Object.keys(e.data);t.activeSoundList.forEach((function(t){if(-1!=a.indexOf(t.id+"")){var i=[],s=[];e.data[t.id].forEach((function(e){"INSTRUMENT"==e.type?i.push(e):"ACCESSORIES"==e.type&&s.push(e)})),t.goodsList=i,t.markList=s}}))}}))},lookMusic:function(){},submitInfo:function(e){var t=this;if(this.activeSoundList.length<=0)this.$message.error("请至少设置一个声部");else{var a=!0;if(this.activeSoundList.forEach((function(e){var i;return e.expectedStudentNum?null!==(i=e.chioseMusic[0])&&void 0!==i&&i.musical?void e.chioseMusic.forEach((function(i){-1!=i.type.indexOf("LEASE")&&(!i.borrowPrice||parseFloat(i.borrowPrice)<=0)&&(t.$message.error("请填写正确的".concat(e.sound,"租赁押金")),a=!1)})):(t.$message.error("请至少一个选择".concat(e.sound,"的可选乐器")),void(a=!1)):(t.$message.error("请填写".concat(e.sound,"的预计招生人数")),void(a=!1))})),a){var i={};"newTeam"==this.teamStatus&&this.initCreateTeam(i),i.musicGroupSubjectGoodsGroups=[],i.musicGroupSubjectPlans=[],this.activeSoundList.forEach((function(e){var t={expectedStudentNum:e.expectedStudentNum,subName:e.sound,subjectId:e.id};i.musicGroupSubjectPlans.push(t),e.chioseMusic.forEach((function(t){console.log(t);var a,s=null,n=t.borrowPrice,r=t.groupPrice;a=-1!=t.type.indexOf("GROUP")?1*t.groupRemissionCourseFee:0;var o=Object(k["findIndex"])(e.goodsList,(function(e){return e.id==t.musical}));-1!=o&&(s=e.goodsList[o]);var c={};if(t.type.forEach((function(e){c[e]=0})),c=JSON.stringify(c),s){var l={subjectId:e.id,type:"INSTRUMENT",goodsIdList:t.musical,name:s.name,kitGroupPurchaseTypeJson:c,depositFee:n,price:r,groupRemissionCourseFee:a};i.musicGroupSubjectGoodsGroups.push(l)}})),e.markChioseList.forEach((function(t){var a=Object(k["findIndex"])(e.markList,(function(e){return e.id==t})),s=null;if(-1!=a&&(s=e.markList[a]),s){var n={subjectId:e.id,type:"ACCESSORIES",goodsIdList:t,name:s.name,price:s.groupPurchasePrice};i.musicGroupSubjectGoodsGroups.push(n)}}))})),"newTeam"==this.teamStatus?Object(c["t"])(i).then((function(e){if(200==e.code){var a=t.$route.query;a.type="teamDraft",t.$router.push({query:Object(n["a"])(Object(n["a"])({},a),{},{id:e.data})}),t.$emit("chiosetab",2),t.$emit("getBaseInfo",i)}})):(i.musicGroupId=this.teamid,i.musicGroupStatus=e?"AUDIT":"DRAFT",Object(c["Cc"])(i).then((function(e){200==e.code&&(t.$message.success("提交成功"),t.$emit("chiosetab",2))})))}}},deleteRow:function(){if(this.checkList.length<1)this.$message.error("请至少勾选一个");else{for(var e=0;e<this.activeSoundList.length;e++){var t=this.checkList.indexOf(this.activeSoundList[e].id);-1!=t&&(this.activeSoundList.splice(e,1),this.activeSound.splice(e,1),e--)}this.checkList=[]}},allin:function(){var e=this;this.checkList=[],this.activeSoundList.forEach((function(t,a){e.checkList.push(t.id)}))},initCreateTeam:function(e){var t;return t=this.topfor.startClass?this.topfor.startClass.join(","):null,e.musicGroup={settlementType:this.topfor.salary,applyExpireDate:u()(this.topfor.time).format("YYYY-MM-DD HH:mm:ss"),chargeTypeId:this.topfor.type,cooperationOrganId:this.topfor.school,teamTeacherId:this.topfor.boss,educationalTeacherId:this.topfor.teacher,enrollClasses:t,name:this.topfor.name,organId:this.topfor.section,paymentPattern:this.topfor.paymentPattern,paymentValidStartDate:this.topfor.paymentValidStartDate?u()(this.topfor.paymentValidStartDate).format("YYYY-MM-DD"):this.topfor.paymentValidStartDate,paymentValidEndDate:this.topfor.paymentValidEndDate?u()(this.topfor.paymentValidEndDate).format("YYYY-MM-DD"):this.topfor.paymentValidEndDate,schoolId:this.topfor.address,expectStartGroupDate:this.topfor.startTime,isClassroomLessons:this.topfor.isClass,status:"DRAFT",ownershipType:this.topfor.ownershipType,repairUserId:this.topfor.repairUserId,feeType:this.topfor.feeType},e}},watch:{activeSoundList:{immediate:!0,deep:!0,handler:function(e){var t=0,a=0;this.activeSoundList;if(e){var i=0;if(e.length>0)for(var s in e){var n;i+=parseInt(null===(n=e[s])||void 0===n?void 0:n.expectedStudentNum)||0}t=e.length,a=i,this.$emit("getNumber",t,a)}}}}}),F=x,P=(a("b69a"),Object(h["a"])(F,i,s,!1,null,"0004f262",null));t["a"]=P.exports}}]);