1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9cc174e6"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var s=o(),i=e-s,c=20,l=0;t="undefined"===typeof t?500:t;var u=function e(){l+=c;var o=Math.easeInOutQuad(l,s,i,t);n(o),l<t?r(e):a&&"function"===typeof a&&a()};u()}},"9d64":function(e,t,a){e.exports=a.p+"static/img/logo.ae7b11a3.png"},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var r=a("bc3a"),n=a.n(r),o=(a("4328"),a("5f87")),s=a("3908"),i=a("e3eb"),c=a.n(i),l=function(e,t,a,r){var i=t.url,l={method:t.method?t.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:i,responseType:"blob"};"post"==l.method?l.data=t.params:l.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){s["a"].startLoading(),n()(c()(l)).then((function(a){var n=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(n).text();o.then((function(a){if(-1!=a.indexOf("code")){var o=JSON.parse(a);if(403==o.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?e.$message.success(o.msg):e.$message.error(o.msg),r&&r()}else{var s=URL.createObjectURL(n),i=document.createElement("a"),c=t.fileName||"导出文件.xls";i.href=s,i.setAttribute("download",c),document.body.appendChild(i),i.click(),r&&r()}})),s["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),s["a"].endLoading()}))})).catch((function(){}))}},f8e9:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("div",{staticClass:"squrt"}),e._v("欠费学员\n "),a("filter-search",{attrs:{keys:["hasCourse"],moreKeys:["organId"]},on:{reload:e.reloadSearch}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.submit,reset:e.onReSet,"update:model":function(t){e.searchForm=t}}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"学员编号/姓名"},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("select-all",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择所属分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(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-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择乐团"},model:{value:e.searchForm.musicGroupId,callback:function(t){e.$set(e.searchForm,"musicGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.musicGroupId"}},e._l(e.musicList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择合作单位"},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperations,(function(e,t){return a("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",[a("remote-search",{attrs:{commit:"setEducations"},model:{value:e.searchForm.eduTeacherId,callback:function(t){e.$set(e.searchForm,"eduTeacherId",t)},expression:"searchForm.eduTeacherId"}})],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{placeholder:"未缴费类型"},model:{value:e.searchForm.noPaymentType,callback:function(t){e.$set(e.searchForm,"noPaymentType","string"===typeof t?t.trim():t)},expression:"searchForm.noPaymentType"}},[a("el-option",{attrs:{label:"已结束",value:0}}),e._v(" "),a("el-option",{attrs:{label:"进行中",value:1}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/arrearageStudents",expression:"'export/arrearageStudents'"}],attrs:{type:"primary"},on:{click:e.onExport}},[e._v("导出")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.userId))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"studentName",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.studentName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.organName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"cooperationName",label:"合作单位"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.cooperationName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"musicGroupName",label:"所在乐团"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.musicGroupName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"eduTeacherName",label:"乐团主管"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.eduTeacherName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"subjectName",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.subjectName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return a("span",{},[e._v(e._s(e._f("sex")(t.row.gender)))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"parentName",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.parentName))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"家长联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v(e._s(t.row.phone))])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"noPaymentAmount",label:"欠费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return a("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(t.row.noPaymentAmount)))])}}])}),e._v(" "),e.permission("musicGroupPaymentCalenderDetail/queryPage/list")?a("el-table-column",{attrs:{prop:"ctrls",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.view(t.row)}}},[e._v("查看")])}}],null,!1,1965188308)}):e._e()],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}})],1),e._v(" "),a("el-dialog",{attrs:{width:"1100px",title:"缴费记录",visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[e.visible&&e.detail?a("list-dialog",{attrs:{musicGroupId:e.detail.musicGroupId,userId:e.detail.userId},on:{close:function(t){e.visible=!1}}}):e._e()],1)],1)},n=[],o=a("c7eb"),s=a("15fd"),i=(a("96cf"),a("1da1")),c=(a("c5f6"),a("5530")),l=a("333d"),u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/openPayment?page=ArrearageStudents",expression:"'musicGroupPaymentCalenderDetail/openPayment?page=ArrearageStudents'"}],attrs:{type:"primary",disabled:e.disabled},on:{click:e.openPay}},[e._v("开启缴费")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"musicGroupPaymentCalenderDetail/batchDel?page=ArrearageStudents",expression:"'musicGroupPaymentCalenderDetail/batchDel?page=ArrearageStudents'"}],attrs:{type:"primary",disabled:e.disabled},on:{click:e.removeUser}},[e._v("删除学员")]),e._v(" "),a("el-table",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{data:e.list,"max-height":"400px","header-cell-style":{background:"#EDEEF0",color:"#444"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:e.checkSelect,width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"musicGroupPaymentCalenderId",label:"缴费编号"},scopedSlots:e._u([{key:"default",fn:function(t){return a("copy-text",{},[e._v("\n "+e._s(t.row.musicGroupPaymentCalenderId)+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"startPaymentDateMgpc",label:"缴费开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDateMgpc))+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"deadlinePaymentDateMgpc",label:"缴费截止日期"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDateMgpc))+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"expectAmount",label:"预计缴费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"open",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"paymentStatus",label:"缴费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(e._f("userPaymentTypeFormat")(t.row.paymentType))+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"paymentStatus",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"payTime",label:"支付时间"},scopedSlots:e._u([{key:"default",fn:function(t){return a("div",{},[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.payTime))+"\n ")])}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"ctrls",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["NON_PAYMENT"==t.row.paymentStatus&&e.$helpers.permission("musicGroupPaymentCalenderDetail/qrCodeLook")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openCode(t.row)}}},[e._v("查看二维码")]):e._e()]}}])})],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:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.FetchList}}),e._v(" "),a("qr-code",{attrs:{codeUrl:e.codeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")])],1)],1)},p=[],d=a("61f7"),m=a("641c"),f=a("1cc7"),h={props:["userId","musicGroupId"],components:{pagination:l["a"],qrCode:m["a"]},data:function(){return{list:[],activeChiose:[],codeStatus:!1,codeUrl:"",rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},computed:{disabled:function(){return!this.activeChiose.length}},mounted:function(){this.FetchList()},methods:{handleSelectionChange:function(e){this.activeChiose=e},checkSelect:function(e){return"NON_PAYMENT"==e.paymentStatus},openCode:function(e){this.codeStatus=!0,this.codeUrl=Object(d["e"])()+"/#/musicGroupRenew?calenderId="+e.musicGroupPaymentCalenderId+"&id="+this.musicGroupId},removeUser:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除学员?","提示",{type:"warning"});case 3:return e.next=5,Object(f["C"])({musicGroupPaymentCalenderDetailIds:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("删除成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),openPay:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认开启缴费?","提示",{type:"warning"});case 3:return e.next=5,Object(f["gc"])({ids:this.activeChiose.map((function(e){return e.id})).join(",")});case 5:this.$message.success("开启成功"),this.FetchList(),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchList:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(f["Zb"])({musicGroupId:this.musicGroupId,userId:this.userId,page:this.rules.page,rows:this.rules.limit});case 3:t=e.sent,this.rules.total=t.data.total,this.list=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}()}},b=h,v=a("2877"),y=Object(v["a"])(b,u,p,!1,null,null,null),_=y.exports,g=a("ec8a"),w=a("829b"),x=function(e){return Object(w["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/queryArrearageStudents",params:e})},k=function(e){return Object(w["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/getNoPaymentStudentMusicGroups",params:e})},S=a("adb21"),F=a("4328"),I=a.n(F),O=["organId"],j=["organId"],C={search:"",eduTeacherId:null,organId:[],branchs:null,musicGroupId:null,cooperationOrganId:null,noPaymentType:null},N={components:{pagination:l["a"],"list-dialog":_},data:function(){return{list:[],visible:!1,detail:null,musicList:[],searchForm:Object(c["a"])({},C),cooperations:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=this,t=this.$route.query;t.organId&&(this.searchForm.organId=[Number(t.organId)]),t.result&&(this.searchForm.eduTeacherId=Number(t.result)),Object(f["Z"])({rows:1e3}).then((function(t){e.cooperations=t.data.rows})),this.$store.dispatch("setBranchs"),this.$store.dispatch("setSchools"),this.FetchList(),this.FetchMusicList()},methods:{permission:g["a"],reloadSearch:function(){this.rules.page=1,this.FetchList()},FetchList:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){var t,a,r,n;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.organId,r=Object(s["a"])(t,O),e.next=4,x(Object(c["a"])({page:this.rules.page,rows:this.rules.limit,organId:a.join(","),hasCourse:this.$route.query.hasCourse},r));case 4:n=e.sent,this.rules.total=n.data.total,this.list=n.data.rows,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),FetchMusicList:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,k();case 3:t=e.sent,this.musicList=t.data,e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),submit:function(){this.rules.page=1,this.FetchList()},onReSet:function(){this.searchForm=Object(c["a"])({},C),this.submit()},view:function(e){this.detail=e,this.visible=!0},onExport:function(){var e=this.searchForm,t=e.organId,a=Object(s["a"])(e,j);Object(S["a"])(this,{url:"/api-web/export/arrearageStudents",fileName:"欠费学员.xls",method:"post",params:I.a.stringify(Object(c["a"])(Object(c["a"])({organId:t.join(",")},a),{},{hasCourse:this.$route.query.hasCourse}))},"您确定导出欠费学员列表?")}}},P=N,T=Object(v["a"])(P,r,n,!1,null,null,null);t["default"]=T.exports}}]);
|