chunk-62ca2760.c1af7fee.js 110 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62ca2760"],{"0464":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.list}},[a("el-table",{staticStyle:{width:"100%","text-alogn":"center"},attrs:{data:e.form}},[a("el-table-column",{key:"courseType",attrs:{label:"课程类型",prop:"courseType",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseType",rules:{required:!0,message:"请选择课程类型",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"课程类型",clearable:"",disabled:e.isDisabled},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseType,callback:function(a){e.$set(e.list.form[t.$index],"courseType",a)},expression:"list.form[scope.$index].courseType"}},e._l(e.courseTypeOptions,(function(t,i){return a("el-option",{key:i,attrs:{disabled:e.isOptionDisabled(t.value),label:t.label,value:t.value}})})),1)],1)]}}])}),e._v(" "),e.isCommon?a("el-table-column",{key:"isStudentOptional",attrs:{label:"是否可选",prop:"isStudentOptional",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".isStudentOptional",rules:{required:!0,message:"请选择是否可选",trigger:"change"}}},[a("el-select",{staticStyle:{width:"90%!important"},attrs:{size:"small",placeholder:"是否可选",disabled:e.isDisabled,clearable:""},model:{value:e.list.form[t.$index].isStudentOptional,callback:function(a){e.$set(e.list.form[t.$index],"isStudentOptional",a)},expression:"list.form[scope.$index].isStudentOptional"}},e._l(e.boolOptionsOptions,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)]}}],null,!1,629554011)}):e._e(),e._v(" "),a("el-table-column",{key:"courseTotalMinuties",attrs:{label:"课程时长(分钟)",prop:"courseTotalMinuties",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseTotalMinuties",rules:{required:!0,message:"请输入课程时长",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:1,disabled:e.isDisabled,placeholder:"课程时长"},on:{change:function(a){return e.$listeners.priceChange(t.row,t.$index)}},model:{value:e.list.form[t.$index].courseTotalMinuties,callback:function(a){e.$set(e.list.form[t.$index],"courseTotalMinuties",a)},expression:"list.form[scope.$index].courseTotalMinuties"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseCurrentPrice",attrs:{label:"现价(元)",prop:"courseCurrentPrice",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseCurrentPrice",rules:{required:!0,message:"请输入现价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",controls:!1,precision:0,min:1,disabled:!e.isUserType,placeholder:"请输入现价"},on:{change:e.change},model:{value:e.list.form[t.$index].courseCurrentPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseCurrentPrice",a)},expression:"list.form[scope.$index].courseCurrentPrice"}})],1)]}}])}),e._v(" "),a("el-table-column",{key:"courseOriginalPrice",attrs:{prop:"courseOriginalPrice",label:"原价(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form-item",{attrs:{prop:"form."+t.$index+".courseOriginalPrice",rules:{required:!0,message:"请输入原价",trigger:"blur"}}},[a("el-input-number",{staticClass:"number-input",staticStyle:{width:"90%!important"},attrs:{size:"small",disabled:e.isDisabled,controls:!1,precision:0,min:1,placeholder:"请输入原价"},model:{value:e.list.form[t.$index].courseOriginalPrice,callback:function(a){e.$set(e.list.form[t.$index],"courseOriginalPrice",a)},expression:"list.form[scope.$index].courseOriginalPrice"}})],1)]}}])}),e._v(" "),e.isCommon?e._e():a("el-table-column",{key:"close",attrs:{prop:"close",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.form.length>1?a("i",{staticClass:"el-icon-circle-close",on:{click:function(a){e.$listeners.remove&&e.$listeners.remove(t.$index)}}}):e._e()]}}],null,!1,206159554)})],1),e._v(" "),!e.isCommon&&e.$listeners.create?a("el-button",{staticStyle:{width:"100%",margin:"20px 0"},attrs:{icon:"el-icon-circle-plus-outline",plain:"",type:"info",size:"small"},on:{click:e.$listeners.create}},[e._v("新增课程类型")]):e._e()],1)},r=[],n=(a("6762"),a("2fdb"),a("267e")),s=a("ed08"),o=a("6612"),l=a.n(o),c={props:["form","isCommon","isDisabled","isUserType"],data:function(){return{courseTypeOptions:Object(s["b"])(n["d"]),boolOptionsOptions:Object(s["b"])(n["c"])}},computed:{list:function(){return{form:this.form}}},methods:{change:function(e){this.$listeners.moneyChange()},isOptionDisabled:function(e){var t=this.form.map((function(e){return e.courseType}));return t.includes(e)},getOldMoney:function(e){return l()(this.list.form[e].courseTotalMinuties*this.list.form[e].unitPrice).format("0,0.00")}}},u=c,p=(a("bb63"),a("2877")),d=Object(p["a"])(u,i,r,!1,null,"f0a4f314",null);t["a"]=d.exports},"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"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newUserPay}},[e._v("新建学员缴费")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")])]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"startPaymentDate",width:"120",label:"缴费开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"120",prop:"deadlinePaymentDate",label:"缴费结束日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"120",label:"预计缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"150",label:"缴费有效期开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidEndDate",width:"150",label:"缴费有效期结束日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualNum",width:"120",label:"实际缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isGiveMusicNetwork",width:"120",label:"是否赠送网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.isGiveMusicNetwork?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"260px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail",expression:"'musicGroupPaymentCalender/auditListDetail'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.status&&"AUDITING"!=t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),"REJECT"==t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]):e._e(),e._v(" "),e.isNewGropu?e._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onCreateQRCode(t.row)}}},[e._v("续费二维码")]),e._v(" "),e.isNewGropu?a("el-button",{attrs:{type:"text"},on:{click:e.onPreview}},[e._v("预览")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.isNewGropu?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.$listeners.changeActive}}):e._e()],1),e._v(" "),e.chioseStudentVisible?a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[a("setStudentFee",{ref:"setStudentFee",attrs:{musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1):e._e(),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}}),e._v(" "),a("el-dialog",{attrs:{title:"选择预览声部",visible:e.dialogSubjectVisible,width:"400px"},on:{"update:visible":function(t){e.dialogSubjectVisible=t}}},[a("el-radio-group",{model:{value:e.dialogSubjectId,callback:function(t){e.dialogSubjectId=t},expression:"dialogSubjectId"}},e._l(e.dialogSubjectList,(function(t,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",{attrs:{type:"primary"},on:{click:e.onPreviewSubmit}},[e._v("预 览")])],1)],1),e._v(" "),e.previewVisible?a("el-dialog",{staticClass:"previewContainer",attrs:{title:"预览",visible:e.previewVisible,width:"400px"},on:{"update:visible":function(t){e.previewVisible=t}}},[a("subject-preview",{attrs:{subjectId:e.dialogSubjectId}}),e._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.previewVisible=!1}}},[e._v("确 定")])],1)],1):e._e()],1)},r=[],n=(a("a481"),a("96cf"),a("3b8d")),s=(a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("4328"),a("5a0c")),l=a.n(o),c=a("641c"),u=a("61f7"),p=a("1cc7"),d=a("d349"),m=a("1672"),f=a("b3d0"),y=a("940a"),h=a("86e8"),v=a("cd32"),b=a("3762"),g=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("购买")])])])},_=[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")),w={0:"按月",1:"按学期",2:"一次性"},S={props:["subjectId"],data:function(){var e=this.$route.query;return{musicGroupId:e.id,result:{},instrument:{},baseInfo:{},money:580,balance:0,needPrice:0,payType:!1,orderInfo:{marketPrice:0,amount:0,groupPurchasePrice:0,goodsGroupIds:null,goodsIds:null,contractGoodsIds:null,couponPrice:0,musicClassFee:0},courseInfo:null,courseScheduleStatus:!1,musicGroupSubject:null,instrumentResult:[],accessOries:[],agreeStatus:!0,authStatus:!1,buyList:[],ids:[],chargeTypeId:null,paymentStatus:null,paymentPattern:null}},mounted:function(){this.__init()},methods:{__init:function(){var e=Object(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},e.next=3,Object(p["sb"])(t).then((function(e){var t=e;if(200==t.code){var i=t.data;a.paymentPattern=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.paymentPattern:2;var r=i.musicGroupPaymentCalender?i.musicGroupPaymentCalender.musicGroupPaymentCalenderCourseSettingsList:null;r&&r.length>0?a.courseInfo=r: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 r=Object.assign({},e);r.marketPrice=r.goodsList[0].marketPrice,r.kitType=i,r.coupon=t[i],n.id?(r.checked=!1,"GROUP"==i?("GROUP"==n.kitType&&n.price<r.price||"LEASE"==n.kitType||"FREE"==n.kitType)&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,n={id:r.id,price:r.price,kitType:i}):"LEASE"==i?"LEASE"==n.kitType&&n.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,n={id:r.id,price:r.price,kitType:i}):"FREE"==i&&"FREE"==n.kitType&&n.price<r.price&&(a.instrumentResult.forEach((function(e){e.checked=!1})),r.checked=!0,n={id:r.id,price:r.price,kitType:i})):(r.checked=!0,n={id:r.id,price:r.price,kitType:i}),a.instrumentResult.push(r)}}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,r={},n=[],s=0,o=[],l=0,c=0,u="",p=this.musicGroupSubject,d=this.courseInfo;p&&d.forEach((function(e){e.isStatus&&(c+=parseFloat(e.courseCurrentPrice),i+=parseFloat(e.courseOriginalPrice),e.id>0&&n.push(e.id))}));var m=this.instrumentResult;if(m.length>0&&m.forEach((function(t){t.checked&&("自备"!=t.name&&(u+=t.goodsIdList),"FREE"==t.kitType?(a+=0,s=0):"LEASE"==t.kitType?(s=t.coupon,"自备"!=t.name?a+=t.depositFee:a+=0):(a+=parseFloat(t.price),s=t.coupon?t.coupon:0),"LEASE"==t.kitType?"自备"!=t.name&&(i+=t.depositFee):i+=parseFloat(t.marketPrice),t.id&&(r[t.id]=t.kitType),"LEASE"==t.kitType?e.push({name:t.name,type:"租赁",price:t.depositFee}):"GROUP"==t.kitType&&parseFloat(t.price-s)>0&&e.push({name:t.name,type:"团购",price:parseFloat(t.price-s)}))})),a+=parseFloat(l+c),this.courseScheduleStatus||(i+=parseFloat(c)),parseFloat(l+c)>0&&e.unshift({name:"乐团课",type:w[this.paymentPattern],price:Number((l+c).toFixed(2))}),this.accessOries.length>0){var f=0;this.accessOries.forEach((function(e){e.checked&&(f+=parseFloat(e.price),a+=parseFloat(e.price),e.goodsList&&e.goodsList.length>0&&e.goodsList.forEach((function(e){i+=parseFloat(e.marketPrice)})),r[e.id]="ACCESSORIES")})),f>0&&e.push({name:"辅件",type:"团购",price:f})}var y=a;if(a-s>=0?(a=Number((a-s).toFixed(2)),this.errorPrice=!1):(a=0,this.errorPrice=!0),a-l-c>0&&t.push(1,2),parseFloat(l+c)>0&&t.push(3,4,5),this.ids=t,this.payType){var h=Number((a-this.balance).toFixed(2));this.needPrice=h>0?h: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:s,goodsGroupIds:r,goodsIds:o.join(","),contractGoodsIds:u,courseKeys:n,musicClassFee:c}},permission:function(e){return Object(C["a"])(e)}}},k=S,x=(a("dac8"),a("2877")),D=Object(x["a"])(k,g,_,!1,null,"888e3694",null),P=D.exports,F=a("267e"),T=a("ed08"),O=a("92e3"),I={props:["baseInfo","isNewGropu"],components:{pagination:s["a"],setStudentFee:f["default"],userPayForm:y["a"],schoolPayForm:h["a"],QrCode:c["a"],review:v["a"],reviewDetail:b["a"],subjectPreview:P},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,musicGroupPaymentCalenderId:"",payOrderTypeLists:O["q"],dialogSubjectVisible:!1,dialogSubjectList:[],dialogSubjectId: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(d["o"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(T["b"])(F["m"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"}},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["a"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getList();case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(m["e"])({page:this.rules.page,rows:this.rules.limit,musicGroupId:t,payUserType:"STUDENT",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){2===e&&(this.payForm.paymentValidEndDate=null)},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},chioseStudentSubmited:function(){var e=Object(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["t"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.musicGroupPaymentCalenderId=this.musicGroupPaymentCalenderId,Object(m["c"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(p["Xb"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,i=new Date(a.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var r=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return r},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.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(){var t,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.query.id,e.next=3,Object(p["C"])({musicGroupId:t}).then((function(e){200==e.code?(a.dialogSubjectList=e.data.musicGroupSubjectPlans,a.dialogSubjectVisible=!0):a.$message.warning("没有可预览的声部")}));case 3:case"end":return e.stop()}}),e,this)})));function 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())}}},E=I,A=(a("40f1"),Object(x["a"])(E,i,r,!1,null,"20329062",null));t["a"]=A.exports},"0eb7":function(e,t,a){},"13d9":function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,a=[],i=0;i<e.rangeCount;i++)a.push(e.getRangeAt(i));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||a.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},1672:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"f",(function(){return s})),a.d(t,"a",(function(){return o})),a.d(t,"c",(function(){return l})),a.d(t,"d",(function(){return c}));var i=a("829b"),r=function(e){return Object(i["a"])({url:"/api-web/musicGroupPaymentCalender/queryPage",data:{},params:e,requestType:"form"})},n=function(e){return Object(i["a"])({url:"/api-web/musicGroupPaymentCalender/add",data:e,method:"post"})},s=function(e){return Object(i["a"])({url:"/api-web/musicGroupPaymentCalender/auditListDetail",data:{},params:e,method:"get"})},o=function(e){return Object(i["a"])({url:"/api-web/studentRegistration/getMusicGroupStu",data:{},params:e,method:"get"})},l=function(e){return Object(i["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/batchAdd",data:e,method:"post"})},c=function(e){return Object(i["a"])({url:"/api-web/musicGroupPaymentCalender/update",data:e,method:"post"})}},"17ee":function(e,t,a){},"1b4b":function(e,t,a){"use strict";var i=a("e63a"),r=a.n(i);r.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=="},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:"乐团名称:"}},[e._v(e._s(e.auditDto.musicGroupName))]),e._v(" "),a("descriptions-item",{attrs:{label:"乐团编号:"}},[e._v(e._s(e.auditDto.musicGroupId))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请时间:"}},[e._v(e._s(e.auditDto.createTime))]),e._v(" "),a("descriptions-item",{attrs:{label:"申请类型:"}},[e._v(e._s(e._f("userPaymentTypeFormat")(e.auditDto.paymentType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"订单类型:"}},[e._v(e._s(e._f("payUserTypeFormat")(e.auditDto.payUserType)))]),e._v(" "),a("descriptions-item",{attrs:{label:"学员数量:"}},[e._v(e._s(e.studentNum))])],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"课程信息",closable:!1,type:"info"}}),e._v(" "),a("descriptions",{attrs:{column:3}},[a("descriptions-item",{attrs:{label:"收费标准:"}},[e._v(e._s(e.musicGroupPaymentCalenderCourseSettingName))])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.musicGroupPaymentCalenderCourseSettings,stripe:""}},[a("el-table-column",{attrs:{prop:"courseType",label:"课程类型",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("courseTypeFormat")(t.row.courseType))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"isStudentOptional",label:"是否免费",width:"100"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseTotalMinuties",label:"课程总时长(分钟)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseCurrentPrice",label:"现价(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"courseOriginalPrice",label:"原价(元)"}})],1),e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"缴费周期",closable:!1,type:"info"}}),e._v(" "),a("descriptions",{attrs:{column:2}},[a("descriptions-item",{attrs:{label:"缴费金额:"}},[e._v(e._s(e._f("moneyFormat")(e.auditDto.paymentAmount)))]),e._v(" "),a("descriptions-item",{attrs:{label:"缴费方式:"}},[e._v(e._s(e._f("paymentPatternTypeFormat")(e.auditDto.paymentPattern)))]),e._v(" "),"SCHOOL"!==e.auditDto.payUserType?a("descriptions-item",{attrs:{label:"缴费日期:"}},[e._v(e._s(e._f("dayjsFormat")(e.auditDto.startPaymentDate))+" -\n "+e._s(e._f("dayjsFormat")(e.auditDto.deadlinePaymentDate)))]):e._e(),e._v(" "),a("descriptions-item",{attrs:{label:"缴费有效期:"}},[e._v(e._s(e.auditDto.paymentValidStartDate)+" -\n "+e._s(e.auditDto.paymentValidEndDate))])],1),e._v(" "),a("el-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.isGiveMusicNetwork?"是":"否"))]),e._v(" "),a("descriptions-item",{attrs:{label:"备注:"}},[e._v(e._s(e.auditDto.memo))])],1)],1)},r=[],n=(a("96cf"),a("3b8d")),s=(a("7f7f"),a("db72")),o=a("2b0e"),l=a("1672"),c=a("ddec");o["default"].use(c["a"]);var u={auditDto:{},musicGroupPaymentCalenderCourseSettings:[],simpleUserDto:[],studentNum:0},p={props:["detail"],data:function(){return Object(s["a"])({},u)},computed:{musicGroupPaymentCalenderCourseSettingName:function(){var e=this.musicGroupPaymentCalenderCourseSettings[0];return e?e.name:""}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l["f"])({calenderId:this.detail.id,musicGroupId:this.detail.musicGroupId});case 3:for(a in t=e.sent,u)u.hasOwnProperty(a)&&(this[a]=t.data[a]);e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}()}},d=p,m=(a("5618"),a("2877")),f=Object(m["a"])(d,i,r,!1,null,"ee78111e",null);t["a"]=f.exports},"38a8":function(e,t,a){},"38ac":function(e,t,a){},"40f1":function(e,t,a){"use strict";var i=a("f93b"),r=a.n(i);r.a},4233:function(e,t,a){},4959:function(e,t,a){"use strict";var i=a("88fd"),r=a.n(i);r.a},"4b29":function(e,t,a){},"4f6e":function(e,t,a){},"51bf":function(e,t){e.exports="data:image/png;base64,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"},5618:function(e,t,a){"use strict";var i=a("17ee"),r=a.n(i);r.a},"62f6":function(e,t,a){"use strict";var i=a("9112"),r=a.n(i);r.a},"641c":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"qrCode"},[a("el-dialog",{attrs:{title:e.title,visible:e.status,width:"300px"},on:{"update:visible":function(t){e.status=t},close:e.onDialogClose}},[a("div",{staticClass:"left-code"},[a("vue-qr",{staticStyle:{width:"100%"},attrs:{text:e.codeUrl,margin:0}}),e._v(" "),e.codeUrl?a("p",{staticClass:"code-url"},[e._v(e._s(e.codeUrl)+" "),a("el-link",{staticClass:"link-btn",attrs:{type:"primary"},on:{click:function(t){return e.copyUrl(e.codeUrl)}}},[e._v("复制")])],1):e._e()],1)])],1)},r=[],n=a("658f"),s=a.n(n),o=a("f904"),l=a.n(o),c={data:function(){return{status:!1}},components:{VueQr:s.a},props:{value:{type:Boolean,required:!0,default:function(){return!1}},title:{type:String,default:function(){return"查看二维码"}},codeUrl:{type:String}},mounted:function(){this.status=this.value},methods:{onDialogClose:function(){this.status=!1,this.$emit("input",!1)},copyUrl:function(e){l()(e),this.$message.success("复制成功")}},watch:{value:function(e){this.status=e},title:function(e,t){e!=t&&(this.title=e)}},beforeDestroy:function(){}},u=c,p=(a("ec6b"),a("2877")),d=Object(p["a"])(u,i,r,!1,null,null,null);t["a"]=d.exports},"65f3":function(e,t,a){},"6af0":function(e,t,a){"use strict";var i=a("4f6e"),r=a.n(i);r.a},"73a8":function(e,t,a){},"73b3":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"basea-container"},[a("div",{staticClass:"baseTop"},[a("div",{staticClass:"left"},[a("el-form",{attrs:{inline:!0,model:e.topForm}},[a("el-form-item",{attrs:{label:"乐团编号"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.num,callback:function(t){e.$set(e.topForm,"num","string"===typeof t?t.trim():t)},expression:"topForm.num"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"教务老师"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.teacher,callback:function(t){e.$set(e.topForm,"teacher","string"===typeof t?t.trim():t)},expression:"topForm.teacher"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分部"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.section,callback:function(t){e.$set(e.topForm,"section","string"===typeof t?t.trim():t)},expression:"topForm.section"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"乐队指导"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.boss,callback:function(t){e.$set(e.topForm,"boss","string"===typeof t?t.trim():t)},expression:"topForm.boss"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.cooperate,callback:function(t){e.$set(e.topForm,"cooperate","string"===typeof t?t.trim():t)},expression:"topForm.cooperate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"上课地点"}},[a("el-input",{staticStyle:{width:"370px"},attrs:{disabled:""},model:{value:e.topForm.add,callback:function(t){e.$set(e.topForm,"add","string"===typeof t?t.trim():t)},expression:"topForm.add"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"收费类型"}},[a("el-input",{attrs:{disabled:""},model:{value:e.topForm.type,callback:function(t){e.$set(e.topForm,"type","string"===typeof t?t.trim():t)},expression:"topForm.type"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:"",disabled:""},model:{value:e.topForm.paymentPattern,callback:function(t){e.$set(e.topForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"topForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:"","value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},model:{value:e.topForm.paymentValidStartDate,callback:function(t){e.$set(e.topForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"topForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:"","value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.topForm.paymentValidEndDate,callback:function(t){e.$set(e.topForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"topForm.paymentValidEndDate"}})],1)],1),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListExport",expression:"'order/musicalListExport'"}],attrs:{type:"text"},on:{click:e.musicalListExport}},[e._v("订货清单导出")]):e._e(),e._v(" "),"look"!==e.lookType?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"order/musicalListDetailExport",expression:"'order/musicalListDetailExport'"}],attrs:{type:"text"},on:{click:e.musicalListDetailExport}},[e._v("分发清单导出")]):e._e()],1)])])},r=[],n=(a("7f7f"),a("1cc7")),s=a("bc3a"),o=a.n(s),l=a("4328"),c=a.n(l),u=a("5f87"),p=a("3908"),d={name:"tbaseInfo",data:function(){return{id:"",topForm:{num:"",teacher:"",section:"",paymentPattern:"",paymentValidStartDate:"",paymentValidEndDate:"",boss:"",cooperate:"",add:"",type:"",salary:""},name:"",processList:[],lookType:""}},created:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,this.lookType=this.$route.query.type,Object(n["ab"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.topForm.num=t.data.id,e.topForm.teacher=t.data.educationalTeacherName,e.topForm.boss=t.data.directorUserName,e.topForm.paymentPattern=t.data.paymentPattern,e.topForm.paymentValidStartDate=t.data.paymentValidStartDate,e.topForm.paymentValidEndDate=t.data.paymentValidEndDate,e.topForm.cooperate=t.data.schoolName,e.topForm.type=t.data.chargeTypeName,e.topForm.section=t.data.organName,e.topForm.add=t.data.address,e.$emit("getname",t.data.name))}))},musicalListExport:function(){var e=this,t="/api-web/order/musicalListExport",a={musicGroupId:this.$route.query.id},i={method:"POST",headers:{Authorization:Object(u["a"])()},data:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出订货清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(i).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(t){if(-1!=t.indexOf("code")){var i=JSON.parse(t);e.$message.error(i.msg)}else{var r=URL.createObjectURL(a),n=document.createElement("a"),s=new Date,o=s.getFullYear()+""+(s.getMonth()+1)+s.getDate()+s.getHours()+s.getMinutes(),l=e.$route.query.id+"-"+o+"订货清单";n.href=r,n.setAttribute("download",l),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:c.a.stringify(a),url:t,responseType:"blob"};this.$confirm("您确定导出分发清单","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["a"].startLoading(),o()(i).then((function(t){var a=new Blob([t.data],{type:"application/vnd.ms-excel;charset=utf-8"}),i=new Response(a).text();i.then((function(t){if(-1!=t.indexOf("code")){var i=JSON.parse(t);e.$message.error(i.msg)}else{var r=URL.createObjectURL(a),n=document.createElement("a"),s=new Date,o=s.getFullYear()+""+(s.getMonth()+1)+s.getDate()+s.getHours()+s.getMinutes(),l=e.$route.query.id+"-"+o+"分发清单";n.href=r,n.setAttribute("download",l),document.body.appendChild(n),n.click()}})),p["a"].endLoading()})).catch((function(t){e.$message.error("导出数据失败,请联系管理员"),p["a"].endLoading()}))})).catch((function(){}))}}},m=d,f=(a("7558"),a("2877")),y=Object(f["a"])(m,i,r,!1,null,null,null);t["a"]=y.exports},7558:function(e,t,a){"use strict";var i=a("cfc6"),r=a.n(i);r.a},"7a3c":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",class:e.className,attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},[a("el-form-item",{attrs:{label:"缴费金额(元)",prop:"paymentAmount",rules:[{required:!0,message:"请输入缴费金额",trigger:"blur"}]}},[a("el-input-number",{staticClass:"number-input",attrs:{controls:!1,precision:2,min:1,disabled:e.isUserType&&e.isCommon,placeholder:"请输入缴费金额"},model:{value:e.form.paymentAmount,callback:function(t){e.$set(e.form,"paymentAmount",t)},expression:"form.paymentAmount"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择缴费方式"},model:{value:e.form.paymentPattern,callback:function(t){e.$set(e.form,"paymentPattern",t)},expression:"form.paymentPattern"}},e._l(e.paymentPatternTypeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isUserType?a("el-form-item",{attrs:{label:"缴费时间",prop:"paymentDate",rules:[{required:!0,message:"请选择缴费时间",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentDate,callback:function(t){e.$set(e.form,"paymentDate",t)},expression:"form.paymentDate"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期",prop:"paymentValid",rules:[{required:!0,message:"请选择缴费有效期",trigger:"blur"}]}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.paymentValid,callback:function(t){e.$set(e.form,"paymentValid",t)},expression:"form.paymentValid"}})],1)],1)},r=[],n=a("267e"),s=a("ed08"),o={props:["form","className","isUserType","isDisabled","isCommon"],data:function(){return{paymentPatternTypeOptions:Object(s["b"])(n["k"])}}},l=o,c=(a("a7ba"),a("2877")),u=Object(c["a"])(l,i,r,!1,null,"14c7e788",null);t["a"]=u.exports},"86e8":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},r=[],n={},s=n,o=a("2877"),l=Object(o["a"])(s,i,r,!1,null,"21abf8f1",null);t["a"]=l.exports},"88fd":function(e,t,a){},9112:function(e,t,a){},"940a":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-alert",{staticClass:"alert",attrs:{title:"课程信息设置",closable:!1,type:"info"}}),e._v(" "),a("userBaseinfo",{ref:"base",attrs:{form:e.form,isCommon:e.isCommon,isUserType:e.isUserType,typeList:e.typeList,charges:e.charges,chargeTypeName:e.chargeTypeName,paymentType:e.paymentType},on:{"update:form":function(t){e.form=t},getCharges:e.getCharges,changeActive:e.$listeners.changeActive}}),e._v(" "),e.isCommon?!e.isCommon&&e.eclass.length||e.isCommon?a("extraClass",{ref:"eclass",attrs:{form:e.eclass,isCommon:e.isCommon,isUserType:e.isUserType,isDisabled:"1"===e.form.leixing||"0"==e.paymentType},on:{create:e.addExtraClass,remove:e.removeExtraClass,moneyChange:e.syncAllMoney}}):e._e():[a("el-alert",{staticClass:"alert",attrs:{title:"加课信息设置",closable:!1,type:"info"}}),e._v(" "),a("extraClass",{ref:"eclass",attrs:{form:e.eclass,organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings},on:{"update:form":function(t){e.eclass=t},create:e.addExtraClass,remove:e.removeExtraClass,priceChange:e.priceChange,moneyChange:e.syncAllMoney}})],e._v(" "),[a("el-alert",{staticClass:"alert",attrs:{title:"缴费设置",closable:!1,type:"info"}}),e._v(" "),a("paymentCycle",{ref:"cycle",attrs:{isUserType:e.isUserType,form:e.cycle,isCommon:e.isCommon,isDisabled:"1"===e.form.leixing||"0"==e.paymentType},on:{"update:form":function(t){e.cycle=t}}})],e._v(" "),a("el-alert",{staticClass:"alert",attrs:{title:"其它",closable:!1,type:"info"}}),e._v(" "),a("otherform",{ref:"other",attrs:{form:e.other}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确认")])],1),e._v(" "),a("el-dialog",{attrs:{title:e.nextTitle,visible:e.nextVisible,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.nextVisible=t}}},[a("classrooms",{on:{close:e.closeNext}})],1)],2)},r=[],n=a("a8db"),s=a("db72"),o=(a("96cf"),a("3b8d")),l=a("75fc"),c=a("2d63"),u=a("d349"),p=a("1672"),d=a("ed08"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{"label-width":"160px",model:e.form,"label-suffix":": "}},["undefined"===typeof e.paymentType?a("el-form-item",{attrs:{label:"缴费类型",prop:"leixing",rules:[{required:!0,message:"请选择缴费类型",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.leixing,callback:function(t){e.$set(e.form,"leixing",t)},expression:"form.leixing"}},[a("el-radio",{attrs:{label:"1"}},[e._v("乐团课程")]),e._v(" "),a("el-radio",{attrs:{label:"2"}},[e._v("临时加课")])],1)],1):e._e(),e._v(" "),e.isCommon?a("el-form-item",{attrs:{label:"收费标准",prop:"musicGroupOrganizationCourseSettingId",rules:[{required:!0,message:"请选择收费标准",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%!important"},attrs:{placeholder:"请选择收费标准"},model:{value:e.form.musicGroupOrganizationCourseSettingId,callback:function(t){e.$set(e.form,"musicGroupOrganizationCourseSettingId",t)},expression:"form.musicGroupOrganizationCourseSettingId"}},e._l(e.charges,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),0!=e.paymentType&&e.isCommon?a("el-alert",{staticStyle:{"margin-left":"160px",width:"auto"},attrs:{closable:!1,type:"warning"},scopedSlots:e._u([{key:"title",fn:function(){return[a("p",[e._v("该乐团为"+e._s(e.chargeTypeName)+"模式,若需创建其他模式的收费标准,请先修改乐团基本信息中的乐团模式\n "),a("strong",{staticStyle:{"font-weight":"600","margin-left":"10px",cursor:"pointer"},on:{click:function(t){return e.$listeners.changeActive({name:"1"})}}},[e._v("立即修改>>")])])]},proxy:!0}],null,!1,1890774724)}):e._e()],1)},f=[],y={props:["form","isCommon","isUserType","typeList","charges","paymentType","chargeTypeName"],mounted:function(){console.log(this.form)}},h=y,v=(a("cc35"),a("2877")),b=Object(v["a"])(h,m,f,!1,null,"5de1eeb9",null),g=b.exports,_=a("7a3c"),C=a("0464"),w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"date",label:"班级名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级类型",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"date",label:"班级人数",width:"180"}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.$listeners.close}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)],1)},S=[],k={data:function(){return{list:[]}},methods:{submit:function(){}}},x=k,D=(a("62f6"),Object(v["a"])(x,w,S,!1,null,"37928f5f",null)),P=D.exports,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":": "}},[a("el-form-item",{attrs:{label:"是否赠送乐团网管课",prop:"isGiveMusicNetwork",rules:[{required:!0,message:"请选择是否赠送乐团网管课",trigger:"change"}]}},[a("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.isGiveMusicNetwork,callback:function(t){e.$set(e.form,"isGiveMusicNetwork",t)},expression:"form.isGiveMusicNetwork"}},[a("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),a("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"memo",rules:[{required:!0,message:"请输入备注",trigger:"blur"}]}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.memo,callback:function(t){e.$set(e.form,"memo",t)},expression:"form.memo"}})],1)],1)},T=[],O={props:["form"]},I=O,E=(a("1b4b"),Object(v["a"])(I,F,T,!1,null,"5747a247",null)),A=E.exports,j=(a("73b3"),{0:"MUSIC_APPLY",1:"MUSIC_RENEW",2:"ADD_COURSE",3:"ADD_STUDENT"}),V={props:["type","musicGroupId","baseInfo","paymentType","rowDetail","organizationCourseUnitPriceSettings"],components:{userBaseinfo:g,paymentCycle:_["a"],extraClass:C["a"],classrooms:P,otherform:A},data:function(){return{options:[],form:{payUserType:"user"===this.type?"STUDENT":"SCHOOL",leixing:"1",musicGroupOrganizationCourseSettingId:null},chargeTypeName:"",other:{},cycles:[{}],cycle:{},eclass:[],collapse:[],nextVisible:!1,typeList:[],charges:[]}},computed:{isCommon:function(){return"1"===this.form.leixing},isDisabled:function(){return"1"===this.form.leixing||"0"===String(this.paymentType)},isUserType:function(){return"user"===this.type},nextTitle:function(){return this.isCommon?"乐团课程-班级选择":"临时加课-班级选择"},chargesById:function(){var e,t={},a=Object(c["a"])(this.charges);try{for(a.s();!(e=a.n()).done;){var i=e.value;t[i.id]=i}}catch(r){a.e(r)}finally{a.f()}return t},organizationCourseUnitPriceSettingsByType:function(){var e,t={},a=Object(c["a"])(this.organizationCourseUnitPriceSettings);try{for(a.s();!(e=a.n()).done;){var i=e.value;t[i.courseType]=i}}catch(r){a.e(r)}finally{a.f()}return t}},watch:{type:function(){this.$set(this.form,"payUserType","user"===this.type?"STUDENT":"SCHOOL")},baseInfo:function(e){this.getCharges()},"form.leixing":function(e){this.cycles=[{}],this.collapse=[0],this.cycle={},this.$set(this.form,"musicGroupOrganizationCourseSettingId",void 0),this.$set(this.cycle,"paymentAmount",void 0),("1"===e||"2"===e)&&(this.eclass=[])},"form.musicGroupOrganizationCourseSettingId":function(e){this.getCharges()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){this.getCharges(),this.rowDetail&&(this.form.musicGroupOrganizationCourseSettingId=this.rowDetail.musicGroupOrganizationCourseSettingId,this.$set(this.other,"isGiveMusicNetwork",this.rowDetail.isGiveMusicNetwork),this.$set(this.other,"memo",this.rowDetail.memo))},priceChange:function(e,t){var a=Object(l["a"])(this.eclass),i=this.organizationCourseUnitPriceSettingsByType[e.courseType]||{},r=Math.ceil((e.courseTotalMinuties||1)*(i.unitPrice||1));e.courseCurrentPrice=r,e.courseOriginalPrice=r,a[t]=e,this.eclass=Object(l["a"])(a)},syncAllMoney:function(){var e,t=0,a=Object(c["a"])(this.eclass);try{for(a.s();!(e=a.n()).done;){var i=e.value;t+=i.courseCurrentPrice}}catch(p){a.e(p)}finally{a.f()}if(t?this.$set(this.cycle,"paymentAmount",t):this.$set(this.cycle,"paymentAmount",void 0),this.rowDetail){var r,n,s,o,l;this.$set(this.cycle,"paymentPattern",(null===(r=this.rowDetail)||void 0===r?void 0:r.paymentPattern)+"");var u=[null===(n=this.rowDetail)||void 0===n?void 0:n.paymentValidStartDate,null===(s=this.rowDetail)||void 0===s?void 0:s.paymentValidEndDate];this.$set(this.cycle,"paymentDate",[null===(o=this.rowDetail)||void 0===o?void 0:o.startPaymentDate,null===(l=this.rowDetail)||void 0===l?void 0:l.deadlinePaymentDate]),this.$set(this.cycle,"paymentValid",u)}return t},getChargeTypeList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["g"])({row:9999});case 3:t=e.sent,this.typeList=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getCharges:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,i,r,n,o,l,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=null===(t=this.baseInfo)||void 0===t||null===(a=t.musicGroup)||void 0===a?void 0:a.chargeTypeId,this.chargeTypeName=null===(i=this.baseInfo)||void 0===i||null===(r=i.musicGroup)||void 0===r?void 0:r.chargeTypeName,e.prev=2,e.next=5,Object(u["w"])({row:9999,chargeTypeId:n});case 5:o=e.sent,this.charges=o.data.rows,l=this.chargesById[this.form.musicGroupOrganizationCourseSettingId],this.eclass=(null===l||void 0===l?void 0:l.details.filter((function(e){return console.log(Object(s["a"])({},e),c.paymentType),!e.isStudentOptional||void 0!==c.paymentType})))||[{}],this.syncAllMoney(),e.next=14;break;case 12:e.prev=12,e.t0=e["catch"](2);case 14:case"end":return e.stop()}}),e,this,[[2,12]])})));function t(){return e.apply(this,arguments)}return t}(),addExtraClass:function(){this.eclass.push({})},removeExtraClass:function(e){this.eclass[e]=null,this.eclass=this.eclass.filter((function(e){return!!e}))},addCycle:function(){this.cycles.push({}),this.collapse.push(this.collapse.length)},removeCycle:function(e){this.cycles[e]=null,this.cycles=this.cycles.filter((function(e){return!!e})),this.collapse.pop()},collapseChange:function(e){this.collapse=e},closeNext:function(){this.nextVisible=!1},getForms:function(){var e=this.$refs;return[e.base,e.eclass,e.cycle,e.other].filter((function(e){return!!e})).map((function(e){return e.$refs.form}))},submit:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,a,i,r,o,l,u,m,f,y,h,v,b,g;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this.getForms(),a=[],i=Object(c["a"])(t);try{for(o=function(){var e=r.value;e.validate((function(t){t&&a.push(e)}))},i.s();!(r=i.n()).done;)o()}catch(_){i.e(_)}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=33;break}if(u=Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])({},this.form),this.other),this.cycle),{},{musicGroupPaymentCalenderCourseSettingsList:this.eclass}),m=u.paymentDate,f=u.paymentValid,y=u.leixing,h=Object(n["a"])(u,["paymentDate","paymentValid","leixing"]),v=Object(s["a"])(Object(s["a"])(Object(s["a"])({},h),{},{paymentType:j[0==this.paymentType?this.paymentType:y],musicGroupId:this.musicGroupId},Object(d["a"])(m,["startPaymentDate","deadlinePaymentDate"])),Object(d["a"])(f,["paymentValidStartDate","paymentValidEndDate"])),null===(l=this.rowDetail)||void 0===l?void 0:l.id){e.next=22;break}return e.prev=10,e.next=13,Object(p["b"])(v);case 13:b=e.sent,this.$listeners.close(),this.$listeners.submited(b.data),e.next=20;break;case 18:e.prev=18,e.t0=e["catch"](10);case 20:e.next=33;break;case 22:return e.prev=22,v.id=this.rowDetail.id,e.next=26,Object(p["d"])(v);case 26:g=e.sent,this.$listeners.close(),this.$listeners.submited(g.data),e.next=33;break;case 31:e.prev=31,e.t1=e["catch"](22);case 33:case"end":return e.stop()}}),e,this,[[10,18],[22,31]])})));function t(){return e.apply(this,arguments)}return t}()}},G=V,L=(a("caa4"),Object(v["a"])(G,i,r,!1,null,"6e36508f",null));t["a"]=L.exports},"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",on:{click:function(t){e.activeIndex=0}}},[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.activeIndex>=1?a("span",{staticClass:"stepspan stepspan2",on:{click:function(t){e.activeIndex=1}}},[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.activeIndex>=2?a("span",{staticClass:"stepspan stepspan3",on:{click:function(t){e.activeIndex=2}}},[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",{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}})],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()])])])},r=[],n=(a("7f7f"),a("386d"),a("80b0")),s=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,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=[],l=(a("4360"),a("fa7d"),a("1cc7")),c=(a("5a0c"),a("ff14")),u={components:{soundSetCore:c["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},approval:function(){var e=this;this.$confirm("是否审核通过?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["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(l["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("9ef3"),a("2877")),m=Object(d["a"])(p,s,o,!1,null,"8af378bc",null),f=m.exports,y=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)},h=[],v=a("db72"),b=a("070d"),g=a("f610"),_=a("ec8a"),C={props:["baseInfo"],components:{resetPayList:b["a"],resetPayListSchool:g["a"]},data:function(){return{activeIndex:"1"}},created:function(){},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=C,S=(a("e896"),Object(d["a"])(w,y,h,!1,null,"564482d2",null)),k=S.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:"",Fsearch:null,Frules:null}},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,console.log(this.getTeamList)),this.$route.query.search&&(this.Fsearch=this.$route.query.search),this.$route.query.rules&&(this.Frules=this.$route.query.rules),"newTeam"==this.teamStatus?(this.pageName="建团申请",this.activeIndex=0):(this.pageName="乐团修改",this.activeIndex=0)},chiosetab:function(e){console.log(e),this.activeIndex=e},goBack:function(){this.$router.push({path:"/business/teamDetail",query:{search:this.Fsearch,rules:this.Frules}})},getBaseInfo:function(e){var t;this.baseInfo=e,this.pageName=null===(t=e.musicGroup)||void 0===t?void 0:t.name}}},D=x,P=(a("6af0"),Object(d["a"])(D,i,r,!1,null,"7f57725d",null));t["default"]=P.exports},"9d32":function(e,t,a){},"9ef3":function(e,t,a){"use strict";var i=a("73a8"),r=a.n(i);r.a},a7ba:function(e,t,a){"use strict";var i=a("e392"),r=a.n(i);r.a},a8db:function(e,t,a){"use strict";var i=a("e265"),r=a.n(i),n=a("a4bb"),s=a.n(n);function o(e,t){if(null==e)return{};var a,i,r={},n=s()(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(r[a]=e[a]);return r}function l(e,t){if(null==e)return{};var a,i,n=o(e,t);if(r.a){var s=r()(e);for(i=0;i<s.length;i++)a=s[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}a.d(t,"a",(function(){return l}))},aa87:function(e,t,a){"use strict";var i=a("0eb7"),r=a.n(i);r.a},afa8:function(e,t,a){},b38b:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return c}));var i=a("b775"),r=a("4328"),n=a.n(r),s="/api-web";function o(e){return Object(i["a"])({url:s+"/musicGroupPaymentCalender/auditList",method:"get",params:e})}function l(e){return Object(i["a"])({url:s+"/musicGroupPaymentCalender/auditPass",method:"post",data:n.a.stringify(e)})}function c(e){return Object(i["a"])({url:s+"/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:{placeholder:"学生编号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"180px"},attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.soundList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"学员声部"}})],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.resetPayVisible,"append-to-body":"",width:"500px",title:"修改缴费金额"},on:{"update:visible":function(t){e.resetPayVisible=t}}},[a("el-form",{ref:"resetPayForm",attrs:{model:e.resetPayForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"预计缴费金额",rules:[{required:!0,message:"请输入预计缴费金额",trigger:"blur"},{pattern:/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,message:"请输入正确的金额",trigger:"blur"}],prop:"momey"}},[a("el-input",{model:{value:e.resetPayForm.momey,callback:function(t){e.$set(e.resetPayForm,"momey",t)},expression:"resetPayForm.momey"}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.resetPayVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isSigan?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!0)}}},[e._v("确 定")]):e._e(),e._v(" "),e.isSigan?e._e():a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitSigan(!1)}}},[e._v("确 定")])],1)],1)],1)},r=[],n=a("db72"),s=a("333d"),o=a("1cc7"),l={components:{pagination:s["a"]},props:["clearStduent","musicGroupPaymentCalenderId"],data:function(){return{searchForm:{search:null,subjectId:null},teacherList:[],soundList:[],tableList:[{}],rules:{limit:999,page:1,total:0,page_size:[10,20,40,50]},payVisible:!1,resetPayVisible:!1,pickerOptions:{disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},payForm:{startDate:null},resetPayForm:{momey:null},activeChiose:[],isSigan:!1}},created:function(){console.log("create")},mounted:function(){this.init()},activated:function(){this.init()},methods:{init:function(){var e=this;this.teamid=this.$route.query.id,Object(o["E"])({musicGroupId:this.teamid}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getList()},getList:function(){var e=this;this.searchForm.musicGroupId=this.teamid,Object(o["Tb"])(Object(n["a"])(Object(n["a"])({},this.searchForm),{},{musicGroupPaymentCalenderId:this.musicGroupPaymentCalenderId})).then((function(t){200==t.code&&(e.tableList=t.data)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:null,subjectId:null},this.getList()},clearTable:function(){this.$refs.multipleTable.clearSelection()},startPay:function(e){},resetPay:function(e){this.activeRow=e,this.resetPayForm.momey=e.courseFee,this.isSigan=!0,this.resetPayVisible=!0},resetPays:function(){this.isSigan=!1,this.activeChiose.length<=0?this.$message.error("请至少勾选一名学生"):this.resetPayVisible=!0},resetTime:function(){this.payVisible=!0},goBack:function(){var e=this.$route.query;sessionStorage.setItem("resetCode",3),this.$router.push({path:"/business/resetTeaming",query:e})},handleSelectionChange:function(e){this.activeChiose=e,this.$emit("chioseStudent",e)},submitSigan:function(e){var t=this,a={};a.ids=e?this.activeRow.id:this.activeChiose.map((function(e){return e.id})).join(","),Object(o["Zb"])(a).then((function(e){200==e.code&&(t.$message.success("修改成功"),t.resetPayVisible=!1,t.getList(),t.$listeners.submited&&t.$listeners.submited())}))}},watch:{resetPayVisible:function(e){e||(this.resetPayForm={momey:null},this.$refs["resetPayForm"].resetFields())}}},c=l,u=(a("aa87"),a("2877")),p=Object(u["a"])(c,i,r,!1,null,"0072b5f8",null);t["default"]=p.exports},b3de:function(e,t,a){"use strict";var i=a("38a8"),r=a.n(i);r.a},bb63:function(e,t,a){"use strict";var i=a("65f3"),r=a.n(i);r.a},caa4:function(e,t,a){"use strict";var i=a("4b29"),r=a.n(i);r.a},cc35:function(e,t,a){"use strict";var i=a("4233"),r=a.n(i);r.a},cd32:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.detail?a("div",[e.detail&&e.detail.id?a("reviewDetail",{attrs:{detail:e.detail}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-alert",{staticClass:"alert",staticStyle:{margin:"20px 0"},attrs:{title:"审核意见",closable:!1,type:"info"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入审核意见"},model:{value:e.remark,callback:function(t){e.remark=t},expression:"remark"}}):e._e(),e._v(" "),"AUDITING"==e.detail.status?a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.permission("musicGroupPaymentCalender/auditPass")?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submit(1)}}},[e._v("审核通过")]):e._e(),e._v(" "),e.permission("musicGroupPaymentCalender/auditRefuse")?a("el-button",{attrs:{type:"danger"},on:{click:function(t){return e.submit(0)}}},[e._v("驳回")]):e._e()],1):e._e()],1):e._e()},r=[],n=(a("96cf"),a("3b8d")),s=a("ec8a"),o=a("3762"),l=a("b38b"),c={props:["detail"],components:{reviewDetail:o["a"]},data:function(){return{remark:""}},methods:{submit:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.remark){e.next=2;break}return e.abrupt("return",this.$message.error("请输入审核意见"));case 2:t?Object(l["a"])({calenderId:this.detail.id,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("审核通过"),a.$emit("close"))})):Object(l["b"])({calenderId:this.detail.id,auditMemo:this.remark}).then((function(e){200==e.code&&(a.$message.success("驳回成功"),a.$emit("close"))}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),permission:function(e){return Object(s["a"])(e)}}},u=c,p=(a("b3de"),a("2877")),d=Object(p["a"])(u,i,r,!1,null,"26c598c1",null);t["a"]=d.exports},cfc6:function(e,t,a){},d349:function(e,t,a){"use strict";a.d(t,"d",(function(){return c})),a.d(t,"c",(function(){return u})),a.d(t,"e",(function(){return p})),a.d(t,"b",(function(){return d})),a.d(t,"p",(function(){return m})),a.d(t,"z",(function(){return f})),a.d(t,"A",(function(){return y})),a.d(t,"g",(function(){return h})),a.d(t,"k",(function(){return v})),a.d(t,"f",(function(){return b})),a.d(t,"l",(function(){return g})),a.d(t,"s",(function(){return _})),a.d(t,"q",(function(){return C})),a.d(t,"r",(function(){return w})),a.d(t,"h",(function(){return S})),a.d(t,"i",(function(){return k})),a.d(t,"n",(function(){return x})),a.d(t,"j",(function(){return D})),a.d(t,"t",(function(){return P})),a.d(t,"B",(function(){return F})),a.d(t,"m",(function(){return T})),a.d(t,"u",(function(){return O})),a.d(t,"x",(function(){return I})),a.d(t,"v",(function(){return E})),a.d(t,"w",(function(){return A})),a.d(t,"o",(function(){return j})),a.d(t,"a",(function(){return V})),a.d(t,"y",(function(){return G}));var i=a("a8db"),r=a("b775"),n=a("829b"),s=a("4328"),o=a.n(s),l="/api-web";function c(e){return Object(r["a"])({url:l+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(r["a"])({url:l+"/organization/add",method:"post",data:o.a.stringify(e)})}function p(e){return Object(r["a"])({url:l+"/organization/update",method:"post",data:o.a.stringify(e)})}function d(e){return Object(r["a"])({url:l+"/area/queryChild",method:"get",params:e})}function m(e){return Object(r["a"])({url:l+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(r["a"])({url:l+"/subject/queryPageTree",method:"get",params:e})}function y(e){return Object(r["a"])({url:l+"/subject/upset",method:"post",data:e})}function h(e){return Object(r["a"])({url:l+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(r["a"])({url:l+"/chargeType/upSet",method:"post",data:e})}function b(e){return Object(r["a"])({url:l+"/chargeType/del/".concat(e),method:"post"})}function g(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function _(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function C(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(r["a"])({url:l+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function S(e){return Object(r["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function k(e){return Object(r["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function x(e){return Object(r["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:e})}function D(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function P(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function F(e){return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function T(e){var t=e.id,a=Object(i["a"])(e,["id"]);return Object(n["a"])({url:l+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:a})}function O(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function I(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function E(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function A(e){return Object(n["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function j(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function V(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function G(e){return Object(n["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}},dac8:function(e,t,a){"use strict";var i=a("9d32"),r=a.n(i);r.a},e392:function(e,t,a){},e63a:function(e,t,a){},e896:function(e,t,a){"use strict";var i=a("38ac"),r=a.n(i);r.a},ec6b:function(e,t,a){"use strict";var i=a("afa8"),r=a.n(i);r.a},ec8a:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));a("6762"),a("2fdb"),a("28a5");function i(e,t){var a=window.localStorage.getItem("permission");return a=a.split(","),t=t||null,!(!a.includes(e)||t)||!(!a.includes(e)||!a.includes(t))}},ed08:function(e,t,a){"use strict";a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return o}));var i=a("bd86"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),n=a.n(r);var s=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var i=e[a],r=a.toLocaleUpperCase();t.push({label:i,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&e.length?(t={},Object(i["a"])(t,a[0]||"start",n()(e[0]).format("YYYY-MM-DD")),Object(i["a"])(t,a[1]||"start",n()(e[1]).format("YYYY-MM-DD")),t):{}}},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"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/add",expression:"'musicGroupPaymentCalender/add'"}],staticClass:"newBand",on:{click:e.newSchoolPay}},[e._v("新建学校缴费")]),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/studentPayBase",expression:"'/studentPayBase'"}],staticClass:"newBand",on:{click:e.setStudentPay}},[e._v("学员缴费设置")])]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"expectNum",width:"120",label:"预计缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentPattern",label:"缴费方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("teamPayStatus")(t.row.paymentPattern))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidStartDate",width:"150",label:"缴费有效期开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidStartDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"paymentValidEndDate",width:"150",label:"缴费有效期结束日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("formatTimer")(t.row.paymentValidEndDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"actualNum",width:"120",label:"实际缴费人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("payTypeStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"isGiveMusicNetwork",width:"120",label:"是否赠送网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.isGiveMusicNetwork?"是":"否")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memo",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"260px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/auditListDetail",expression:"'musicGroupPaymentCalender/auditListDetail'"}],attrs:{type:"text"},on:{click:function(a){return e.lookDetail(t.row)}}},[e._v("查看")]),e._v(" "),"REJECT"!=t.row.status&&"AUDITING"!=t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchAdd",expression:"'musicGroupPaymentCalenderDetail/batchAdd'"}],attrs:{type:"text"},on:{click:function(a){return e.openChioseStudent(t.row)}}},[e._v("添加学员")]):e._e(),e._v(" "),"REJECT"==t.row.status?a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalender/update",expression:"'musicGroupPaymentCalender/update'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPay(t.row)}}},[e._v("修改")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1),e._v(" "),a("el-dialog",{attrs:{visible:e.payVisible,"close-on-click-modal":!1,width:"500px",title:e.diTitle},on:{"update:visible":function(t){e.payVisible=t}}},[a("el-form",{ref:"payForm",attrs:{model:e.payForm,inline:!0,"label-width":"120px","label-position":"right"}},[a("el-form-item",{attrs:{label:"缴费开始日期",rules:[{required:!0,message:"请设置缴费开始日期",trigger:"blur"}],prop:"startPaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"开始日期"},on:{change:e.changeStartTime},model:{value:e.payForm.startPaymentDate,callback:function(t){e.$set(e.payForm,"startPaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.startPaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费结束日期",rules:[{required:!0,message:"请设置缴费结束日期",trigger:"blur"}],prop:"deadlinePaymentDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.beginDate(e.payForm.startPaymentDate),"value-format":"yyyy-MM-dd",placeholder:"结束日期"},model:{value:e.payForm.deadlinePaymentDate,callback:function(t){e.$set(e.payForm,"deadlinePaymentDate","string"===typeof t?t.trim():t)},expression:"payForm.deadlinePaymentDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费方式",prop:"paymentPattern",rules:[{required:!0,message:"请选择缴费方式"}]}},[a("el-select",{staticStyle:{width:"220px"},attrs:{placeholder:"缴费方式",clearable:"",filterable:""},on:{change:e.paymentPatternChange},model:{value:e.payForm.paymentPattern,callback:function(t){e.$set(e.payForm,"paymentPattern","string"===typeof t?t.trim():t)},expression:"payForm.paymentPattern"}},[a("el-option",{attrs:{value:0,label:"按月"}}),e._v(" "),a("el-option",{attrs:{value:1,label:"按季"}}),e._v(" "),a("el-option",{attrs:{value:2,label:"一次性"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期开始",rules:[{required:!0,message:"请设置缴费有效期开始日期",trigger:"blur"}],prop:"paymentValidStartDate"}},[a("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",placeholder:"有效期开始日期"},on:{change:e.changePaymentStartTime},model:{value:e.payForm.paymentValidStartDate,callback:function(t){e.$set(e.payForm,"paymentValidStartDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidStartDate"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"缴费有效期结束",rules:[{required:2!==e.payForm.paymentPattern,message:"请设置缴费有效期结束日期",trigger:"blur"}],prop:"paymentValidEndDate"}},[a("el-date-picker",{attrs:{type:"date",disabled:2===e.payForm.paymentPattern,"picker-options":e.beginDate(e.payForm.paymentValidStartDate),"value-format":"yyyy-MM-dd",placeholder:"有效期结束日期"},model:{value:e.payForm.paymentValidEndDate,callback:function(t){e.$set(e.payForm,"paymentValidEndDate","string"===typeof t?t.trim():t)},expression:"payForm.paymentValidEndDate"}})],1),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"收费类型",rules:[{required:!0,message:"请选择收费类型",trigger:"blur"}],prop:"type"}},[a("el-select",{staticStyle:{width:"220px !important"},attrs:{placeholder:"课程类型"},model:{value:e.payForm.type,callback:function(t){e.$set(e.payForm,"type","string"===typeof t?t.trim():t)},expression:"payForm.type"}},[a("el-option",{attrs:{label:"线上",value:"ONLINE"}}),e._v(" "),a("el-option",{attrs:{label:"线下",value:"OFFLINE"}})],1)],1):e._e(),e._v(" "),e.isNew?a("el-form-item",{attrs:{label:"备注",rules:[{required:!0,message:"请填写备注",trigger:"blur"}],prop:"memo"}},[a("el-input",{staticStyle:{width:"220px !important"},attrs:{type:"textarea",rows:4,placeholder:"请填写备注"},model:{value:e.payForm.memo,callback:function(t){e.$set(e.payForm,"memo",t)},expression:"payForm.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.payVisible=!1}}},[e._v("取 消")]),e._v(" "),e.isNew?a("el-button",{attrs:{type:"primary"},on:{click:e.newPayInfo}},[e._v("确 定")]):a("el-button",{attrs:{type:"primary"},on:{click:e.resetPayDate}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"查看",visible:e.reviewVisible,width:"900px","destroy-on-close":""},on:{"update:visible":function(t){e.reviewVisible=t}}},[a("reviewDetail",{attrs:{detail:e.viewDetail,musicGroupId:e.$route.query.id,"destroy-on-close":""},on:{close:function(t){e.reviewVisible=!1},submited:e.getList}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.reviewVisible=!1}}},[e._v("关闭")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.payFormTitle,visible:e.userVisible,width:"830px"},on:{"update:visible":function(t){e.userVisible=t}}},[e.userVisible?a("userPayForm",{attrs:{organizationCourseUnitPriceSettings:e.organizationCourseUnitPriceSettings,rowDetail:e.activeRow,type:e.payFormType,baseInfo:e.baseInfo,paymentType:e.isNewGropu?0:void 0,musicGroupId:e.$route.query.id},on:{close:function(t){e.userVisible=!1},submited:e.payedSubmited,changeActive:e.$listeners.changeActive}}):e._e()],1),e._v(" "),a("el-dialog",{attrs:{title:"学员选择",visible:e.chioseStudentVisible,"destroy-on-close":"","append-to-body":"",width:"800px"},on:{"update:visible":function(t){e.chioseStudentVisible=t}}},[a("setStudentFee",{ref:"setStudentFee",attrs:{musicGroupPaymentCalenderId:e.musicGroupPaymentCalenderId,clearTale:e.clearStduent},on:{chioseStudent:e.chioseStudent,submited:e.chioseStudentSubmited}}),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.chioseStudentVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitNewPay}},[e._v("确 定")])],1)],1),e._v(" "),a("qr-code",{attrs:{title:"续费二维码",codeUrl:e.codeUrl},model:{value:e.qrcodeStatus,callback:function(t){e.qrcodeStatus=t},expression:"qrcodeStatus"}})],1)},r=[],n=(a("a481"),a("96cf"),a("3b8d")),s=(a("bc3a"),a("5f87"),a("333d")),o=(a("3908"),a("4328"),a("5a0c")),l=a.n(o),c=a("641c"),u=a("61f7"),p=a("1cc7"),d=a("d349"),m=a("1672"),f=a("b3d0"),y=a("940a"),h=a("86e8"),v=a("cd32"),b=a("3762"),g=a("267e"),_=a("ed08"),C=a("92e3"),w={props:["baseInfo","isNewGropu"],components:{pagination:s["a"],setStudentFee:f["default"],userPayForm:y["a"],schoolPayForm:h["a"],QrCode:c["a"],review:v["a"],reviewDetail:b["a"]},data:function(){return{musicGroupStu:[],payFormType:"user",userVisible:!1,schoolVisible:!1,reviewVisible:!1,organizationCourseUnitPriceSettings:[],searchForm:{paymentType:null},viewDetail:null,tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},isInit:!1,diTitle:"新增缴费",payVisible:!1,payForm:{startPaymentDate:null,deadlinePaymentDate:null,paymentPattern:null,paymentValidStartDate:null,paymentValidEndDate:null,type:null,memo:null},isNew:!1,activeRow:null,pickerOptions:{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<=(new Date).getTime()}},qrcodeStatus:!1,codeUrl:null,chioseStudentVisible:!1,chioseStudentList:[],clearStduent:!0,musicGroupPaymentCalenderId:"",payOrderTypeLists:C["q"]}},created:function(){},mounted:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["o"])({rows:9999});case 3:t=e.sent,this.organizationCourseUnitPriceSettings=t.data.rows,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:this.init();case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),computed:{payOrderTypeList:function(){return Object(_["b"])(g["m"])},payFormTitle:function(){return this.isNew?"user"===this.payFormType?"新增学员缴费":"新增学校缴费":"user"===this.payFormType?"修改学员缴费":"修改学校缴费"}},activated:function(){this.init()},methods:{init:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["a"])({musicGroupId:this.$route.query.id});case 3:e.sent,e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:this.getList();case 9:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(){return e.apply(this,arguments)}return t}(),newUserPay:function(){this.payFormType="user",this.isNew=!0,this.activeRow=null,this.userVisible=!0},newSchoolPay:function(){this.payFormType="school",this.isNew=!0,this.activeRow=null,this.userVisible=!0},getList:function(){var e=this,t=this.$route.query.id;return Object(m["e"])({page:this.rules.page,rows:this.rules.limit,musicGroupId:t,payUserType:"SCHOOL",paymentType:this.searchForm.paymentType}).then((function(t){200==t.code&&(e.rules.total=t.data.total,e.tableList=t.data.rows)}))},paymentPatternChange:function(e){2===e&&(this.payForm.paymentValidEndDate=null)},onCreateQRCode:function(e){this.qrcodeStatus=!0,this.codeUrl=Object(u["d"])()+"/#/musicGroupRenew?calenderId="+e.id},chioseStudent:function(e){this.chioseStudentList=e},newPay:function(){this.diTitle="新增缴费",this.isNew=!0,this.payVisible=!0},resetPay:function(e){this.diTitle="修改缴费",this.isNew=!1,this.activeRow=e,this.payFormType="SCHOOL"===e.payUserType?"school":"user",this.userVisible=!0},chioseStudentSubmited:function(){var e=Object(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["t"])({id:a}).then((function(e){200==e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch((function(){}))},lookDetail:function(e){var t=this.$route.query;this.$route.query.paymentId=e.id,this.viewDetail=e,"SCHOOL"===e.payUserType?this.reviewVisible=!0:this.$router.push({path:"/business/strudentPayInfo",query:t})},setStudentPay:function(){var e=this.$route.query;this.$router.push({path:"/business/studentPayBase",query:e})},newPayInfo:function(){var e=this;this.$refs["payForm"].validate((function(t){t&&(e.chioseStudentVisible=!0)}))},submitNewPay:function(){var e=this;if(this.chioseStudentList.length<1)this.$message.error("请至少选择一名学员");else{var t={};t.userIdList=this.chioseStudentList.map((function(e){return e.userId})),t.musicGroupPaymentCalenderId=this.musicGroupPaymentCalenderId,Object(m["c"])(t).then((function(t){200==t.code&&(e.$message.success("添加成功"),e.$refs.setStudentFee.clearTable(),e.payVisible=!1,e.chioseStudentVisible=!1,e.getList())}))}},resetPayDate:function(){var e=this;Object(p["Xb"])({id:this.activeRow.id,startPaymentDate:this.payForm.startPaymentDate,deadlinePaymentDate:this.payForm.deadlinePaymentDate,paymentValidStartDate:this.payForm.paymentValidStartDate?l()(this.payForm.paymentValidStartDate).format("YYYY-MM-DD"):this.payForm.paymentValidStartDate,paymentValidEndDate:this.payForm.paymentValidEndDate?l()(this.payForm.paymentValidEndDate).format("YYYY-MM-DD"):this.payForm.paymentValidEndDate,paymentPattern:this.payForm.paymentPattern}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.payVisible=!1,e.getList())}))},changeStartTime:function(e){this.payForm.deadlinePaymentDate=this.dateAddDays(e,3)},changePaymentStartTime:function(e){this.payForm.paymentValidEndDate=null},dateAddDays:function(e,t){var a=e,i=new Date(a.replace(/-/g,"/"));i=new Date(1e3*(i/1e3+86400*t));var r=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate();return r},beginDate:function(e){return{firstDayOfWeek:1,disabledDate:function(t){return e?new Date(e).getTime()-864e5>=t.getTime():t.getTime()+864e5<Date.now()}}},search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={payUserType:null}},openChioseStudent:function(e){this.chioseStudentVisible=!0,this.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}()},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())}}},S=w,k=(a("4959"),a("2877")),x=Object(k["a"])(S,i,r,!1,null,"31dcd568",null);t["a"]=x.exports},f8e4:function(e,t){e.exports="data:image/png;base64,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"},f904:function(e,t,a){"use strict";var i=a("13d9"),r={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function s(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var a,o,l,c,u,p,d=!1;t||(t={}),a=t.debug||!1;try{l=i(),c=document.createRange(),u=document.getSelection(),p=document.createElement("span"),p.textContent=e,p.style.all="unset",p.style.position="fixed",p.style.top=0,p.style.clip="rect(0, 0, 0, 0)",p.style.whiteSpace="pre",p.style.webkitUserSelect="text",p.style.MozUserSelect="text",p.style.msUserSelect="text",p.style.userSelect="text",p.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),"undefined"===typeof i.clipboardData){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var n=r[t.format]||r["default"];window.clipboardData.setData(n,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(p),c.selectNodeContents(p),u.addRange(c);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");d=!0}catch(f){a&&console.error("unable to copy using execCommand: ",f),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),d=!0}catch(f){a&&console.error("unable to copy using clipboardData: ",f),a&&console.error("falling back to prompt"),o=s("message"in t?t.message:n),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),p&&document.body.removeChild(p),l()}return d}e.exports=o},f93b:function(e,t,a){}}]);