chunk-6c931bc9.61347870.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c931bc9"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(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,r){var s=o(),i=e-s,l=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=l;var o=Math.easeInOutQuad(u,s,i,t);a(o),u<t?n(e):r&&"function"===typeof r&&r()};c()}},"15fd":function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function a(e,t){if(null==e)return{};var r,a,o=n(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,"a",(function(){return a}))},f8e9:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("div",{staticClass:"squrt"}),e._v("欠费学员列表 "),r("filter-search",{attrs:{keys:["visitFlag"],moreKeys:["organId"]},on:{reload:e.FetchList}})],1),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.submit,reset:e.onReSet,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",[r("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(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择所属分部"},model:{value:e.searchForm.organIds,callback:function(t){e.$set(e.searchForm,"organIds","string"===typeof t?t.trim():t)},expression:"searchForm.organIds"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("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 r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("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 r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("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(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{prop:"userId",label:"学员编号"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.userId))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"studentName",label:"学员姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.studentName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"organName",label:"所属分部"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.organName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"cooperationName",label:"合作单位"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.cooperationName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"musicGroupName",label:"所在乐团"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.musicGroupName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"eduTeacherName",label:"乐团主管"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.eduTeacherName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"subjectName",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.subjectName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"gender",label:"性别"},scopedSlots:e._u([{key:"default",fn:function(t){return r("span",{},[e._v(e._s(e._f("sex")(t.row.gender)))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"parentName",label:"家长姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.parentName))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"phone",label:"家长联系电话"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v(e._s(t.row.phone))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"noPaymentAmount",label:"欠费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return r("span",{staticStyle:{color:"red"}},[e._v(e._s(e._f("moneyFormat")(t.row.noPaymentAmount)))])}}])}),e._v(" "),e.permission("musicGroupPaymentCalenderDetail/queryPage?page=ArrearageStudents")?r("el-table-column",{attrs:{prop:"ctrls",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.view(t.row)}}},[e._v("查看")])}}],null,!1,1965188308)}):e._e()],1),e._v(" "),r("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(" "),r("el-dialog",{attrs:{width:"1000px",title:"缴费记录",visible:e.visible},on:{"update:visible":function(t){e.visible=t}}},[e.visible&&e.detail?r("list-dialog",{attrs:{musicGroupId:e.detail.musicGroupId,userId:e.detail.userId},on:{close:function(t){e.visible=!1}}}):e._e()],1)],1)},a=[],o=r("15fd"),s=(r("96cf"),r("1da1")),i=(r("c5f6"),r("5530")),l=r("333d"),u=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("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(" "),r("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(" "),r("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}},[r("el-table-column",{attrs:{type:"selection",selectable:e.checkSelect,width:"55"}}),e._v(" "),r("el-table-column",{attrs:{prop:"id",label:"缴费编号"},scopedSlots:e._u([{key:"default",fn:function(t){return r("copy-text",{},[e._v("\n "+e._s(t.row.id)+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"startPaymentDateMgpc",label:"缴费开始日期"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v("\n "+e._s(e._f("formatTimer")(t.row.startPaymentDateMgpc))+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"deadlinePaymentDateMgpc",label:"缴费截止日期"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v("\n "+e._s(e._f("formatTimer")(t.row.deadlinePaymentDateMgpc))+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"expectAmount",label:"预计缴费金额"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v("\n "+e._s(e._f("moneyFormat")(t.row.expectAmount))+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"open",label:"是否开启缴费"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v("\n "+e._s(t.row.open?"是":"否")+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"paymentStatus",label:"缴费状态"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v("\n "+e._s(e._f("paymentStatusDetall")(t.row.paymentStatus))+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"payTime",label:"支付时间"},scopedSlots:e._u([{key:"default",fn:function(t){return r("div",{},[e._v("\n "+e._s(e._f("dateForMinFormat")(t.row.payTime))+"\n ")])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"ctrls",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return["NON_PAYMENT"==t.row.paymentStatus?r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.openCode(t.row)}}},[e._v("查看二维码")]):e._e()]}}])})],1),e._v(" "),r("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(" "),r("qr-code",{attrs:{codeUrl:e.codeUrl},model:{value:e.codeStatus,callback:function(t){e.codeStatus=t},expression:"codeStatus"}}),e._v(" "),r("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){return e.$emit("close")}}},[e._v("关闭")])],1)],1)},c=[],p=r("61f7"),d=r("641c"),m=r("1cc7"),f={props:["userId","musicGroupId"],components:{pagination:l["a"],qrCode:d["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(p["d"])()+"/#/musicGroupRenew?calenderId="+e.id+"&id="+this.musicGroupId},removeUser:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除学员?","提示",{type:"warning"});case 3:return e.next=5,Object(m["x"])({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(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认开启缴费?","提示",{type:"warning"});case 3:return e.next=5,Object(m["Xb"])({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(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["Sb"])({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}()}},h=f,v=r("2877"),b=Object(v["a"])(h,u,c,!1,null,null,null),_=b.exports,y=r("ec8a"),g=r("829b"),w=function(e){return Object(g["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/queryArrearageStudents",params:e})},k=function(e){return Object(g["a"])({url:"/api-web/musicGroupPaymentCalenderDetail/getNoPaymentStudentMusicGroups",params:e})},x={search:"",eduTeacherId:null,organIds:[],branchs:null,musicGroupId:null,cooperationOrganId:null},S={components:{pagination:l["a"],"list-dialog":_},data:function(){return{list:[],visible:!1,detail:null,musicList:[],searchForm:Object(i["a"])({},x),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&&(console.log(t.organId),this.searchForm.organIds=[Number(t.organId)]),Object(m["U"])({rows:1e3}).then((function(t){e.cooperations=t.data.rows})),this.$store.dispatch("setBranchs"),this.$store.dispatch("setSchools"),this.FetchList(),this.FetchMusicList()},methods:{permission:y["a"],FetchList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,r=t.organIds,n=Object(o["a"])(t,["organIds"]),e.next=4,w(Object(i["a"])({page:this.rules.page,rows:this.rules.limit,organIds:r.join(",")},n));case 4:a=e.sent,this.rules.total=a.data.total,this.list=a.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(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,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(i["a"])({},x),this.submit()},view:function(e){this.detail=e,this.visible=!0}}},F=S,I=Object(v["a"])(F,n,a,!1,null,null,null);t["default"]=I.exports}}]);