(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-402666c2"],{"231f":function(t,s,a){"use strict";var e=a("d056"),n=a.n(e);n.a},d056:function(t,s,a){},dbf5:function(t,s,a){"use strict";a.r(s);var e=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"order"},[a("header",[t._v("支付列表\n "),a("van-dropdown-menu",[a("van-dropdown-item",{attrs:{options:t.voicyPartList},on:{change:t.onChange},model:{value:t.voicyPart,callback:function(s){t.voicyPart=s},expression:"voicyPart"}})],1)],1),a("h2",[t._v(t._s(t.schoolName))]),a("van-tabs",[a("van-tab",{attrs:{title:"缴费信息"}},[a("div",{staticClass:"orderList"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title"},[a("span"),a("span",[t._v("姓名")]),a("span",[t._v("声部")]),a("span",[t._v("支付金额")]),a("span",[t._v("到账时间")])]),a("div",{staticClass:"content"},t._l(t.dataList,function(s,e){return a("div",{key:s.id},[a("span",[t._v(" "+t._s(++e)+" ")]),a("span",[t._v(" "+t._s(s.userName)+" ")]),a("span",[t._v(" "+t._s(s.voicyPart)+" ")]),a("span",[t._v(" "+t._s(s.amount)+" ")]),a("span",[t._v(" "+t._s(s.payTime)+" ")])])}),0)])])]),a("van-tab",{attrs:{title:"报名信息"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title"},[a("span"),a("span",[t._v("姓名")]),a("span",[t._v("班级")]),a("span",[t._v("声部")]),a("span",[t._v("备注")]),a("span",[t._v("调剂")])]),a("div",{staticClass:"content"},t._l(t.studentList,function(s,e){return a("div",{key:s.id},[a("span",[t._v(" "+t._s(++e)+" ")]),a("span",[t._v(" "+t._s(s.name)+" ")]),a("span",[t._v(" "+t._s(s.grade+s.gClass)+" ")]),a("span",[t._v(" "+t._s(s.subName?s.subName.split(".").reverse()[0]:s.subName)+" ")]),a("span",[t._v(" "+t._s(s.remark)+" ")]),a("span",[a("van-button",{attrs:{disabled:!(s.pushStatus<=1&&0==s.status),round:"",type:"danger",size:"small"},on:{click:function(a){return t.adjust(s)}}},[t._v("调剂")])],1)])}),0)]),a("van-action-sheet",{attrs:{actions:t.couresList,"cancel-text":"取消"},on:{cancel:function(s){t.adjustStatus=!1},select:t.adjustSelect},model:{value:t.adjustStatus,callback:function(s){t.adjustStatus=s},expression:"adjustStatus"}})],1)],1)],1)},n=[],i=(a("7f7f"),a("28a5"),a("ac6a"),a("4328")),u=a.n(i),d={name:"order",data:function(){return{classId:this.$route.query.classId,schoolName:this.$route.query.schoolName,dataList:{},studentList:{},couresList:[],voicyPart:0,voicyPartList:[{text:"全部声部",value:0}],adjustStatus:!1,changeStudent:null}},mounted:function(){var t=this;this.$axios.post("/user/getCourses ",u.a.stringify({clazzId:this.classId})).then(function(s){var a=s.data.data;a.forEach(function(s){t.couresList.push({name:s.subName.split(".").reverse()[0],subId:s.subId,id:s.id}),t.voicyPartList.push({text:s.subName.split(".").reverse()[0],value:s.subId})})}),this.getOrderList(),this.getStudents()},methods:{getOrderList:function(t){var s=this;this.$axios.post("/order/checkOrderList",u.a.stringify({classId:this.classId,voicyPart:t||"",type:1})).then(function(t){s.dataList=t.data.data})},getStudents:function(t){var s=this;t||(t={}),this.$axios.post("/user/getMusicTeamStu",u.a.stringify({musicTeamId:this.classId,name:"",status:"",subId:t.subId?t.subId:"",page:t.page?t.page:1,rows:t.rows?t.rows:9999})).then(function(t){s.studentList=t.data.data.rows})},adjustSelect:function(t){var s=this;this.$axios.post("/user/updateUserSub",u.a.stringify({courseId:t.id,subId:t.subId,userId:this.changeStudent.id})).then(function(a){200==a.data.code&&(s.$toast(a.data.msg),s.changeStudent.subName=t.name,s.adjustStatus=!1)})},adjust:function(t){t.pushStatus<=1&&0==t.status&&(this.adjustStatus=!0,this.changeStudent=t)},onChange:function(t){var s=this,a=t||"";this.getStudents({subId:a}),this.voicyPartList.forEach(function(a){if(a.value==t){var e=t?a.text:"";s.getOrderList(e)}})}}},r=d,o=(a("231f"),a("2877")),c=Object(o["a"])(r,e,n,!1,null,"74e82e8e",null);s["default"]=c.exports}}]); //# sourceMappingURL=chunk-402666c2.83d5625c.js.map