order.9a29702e.js 3.9 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{"7f17":function(t,a,s){},"9af4":function(t,a,s){"use strict";s.r(a);var n=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"order"},[s("header",[t._v("支付列表\n "),s("van-dropdown-menu",[s("van-dropdown-item",{attrs:{options:t.voicyPartList},on:{change:t.onChange},model:{value:t.voicyPart,callback:function(a){t.voicyPart=a},expression:"voicyPart"}})],1)],1),s("h2",[t._v(t._s(t.musicGroupName))]),s("van-tabs",[s("van-tab",{attrs:{title:"缴费信息"}},[s("div",{staticClass:"table"},[s("div",{staticClass:"title"},[s("span"),s("span",[t._v("姓名")]),s("span",[t._v("声部")]),s("span",[t._v("支付金额")]),s("span",[t._v("到账时间")])]),s("div",{staticClass:"content"},[t._l(t.dataList,function(a,n){return s("div",{key:a.id},[s("span",[t._v(" "+t._s(++n)+" ")]),s("span",[t._v(" "+t._s(a.userName)+" ")]),s("span",[t._v(" "+t._s(a.subjectName)+" ")]),s("span",[t._v(" "+t._s(a.paymentAmount)+" ")]),s("span",[t._v(" "+t._s(a.payTime)+" ")])])}),s("p",{staticStyle:{padding:"8px 8px 20px"}},[t._v("缴费总额:"+t._s(t.amountCount.toFixed(2))+"元")])],2)])]),s("van-tab",{attrs:{title:"报名信息"}},[s("div",{staticClass:"table"},[s("div",{staticClass:"title"},[s("span"),s("span",[t._v("姓名")]),s("span",[t._v("班级")]),s("span",[t._v("声部")]),s("span",[t._v("备注")]),s("span",[t._v("调剂")])]),s("div",{staticClass:"content"},t._l(t.studentList,function(a,n){return s("div",{key:a.id},[s("span",[t._v(" "+t._s(++n)+" ")]),s("span",[t._v(" "+t._s(a.userName)+" ")]),s("span",[t._v(" "+t._s(a.currentClass)+" ")]),s("span",[t._v(" "+t._s(a.subjectName)+" ")]),s("span",[t._v(" "+t._s(a.remark)+" ")]),s("span",[s("van-button",{attrs:{disabled:2==a.paymentStatus,round:"",type:"danger",size:"small"},on:{click:function(s){return t.adjust(a)}}},[t._v("调剂")])],1)])}),0)]),s("van-action-sheet",{attrs:{actions:t.couresList,"cancel-text":"取消"},on:{cancel:function(a){t.adjustStatus=!1},select:t.adjustSelect},model:{value:t.adjustStatus,callback:function(a){t.adjustStatus=a},expression:"adjustStatus"}})],1)],1)],1)},e=[],i=s("9afb"),u={name:"order",data:function(){return{musicGroupId:this.$route.query.musicGroupId,musicGroupName:this.$route.query.musicGroupName,dataList:{},amountCount:0,studentList:{},couresList:[],voicyPart:0,voicyPartList:[{text:"全部声部",value:0}],adjustStatus:!1,changeStudent:null}},mounted:function(){var t=this;window.localStorage.removeItem("userInfo"),window.localStorage.removeItem("Authorization"),Object(i["D"])({musicGroupId:this.musicGroupId}).then(function(a){var s=a.data;200==s.code&&s.data.forEach(function(a){t.voicyPartList.push({text:a.name,value:a.id}),t.couresList.push({name:a.name,id:a.id})})}),this.getOrderList(),this.getOrderStudentList()},methods:{adjust:function(t){2!=t.paymentStatus&&(this.adjustStatus=!0,this.changeStudent=t)},adjustSelect:function(t){var a=this;Object(i["O"])({musicGroupId:this.musicGroupId,subId:t.id,userId:this.changeStudent.userId}).then(function(t){var s=t.data;200==s.code?(a.$toast("修改成功"),a.adjustStatus=!1,a.getOrderStudentList()):a.$toast(s.msg)})},getOrderList:function(){var t=this;Object(i["B"])({musicGroupId:this.musicGroupId,rows:9999,subjectId:this.voicyPart?this.voicyPart:"",paymentStatus:2,page:1}).then(function(a){var s=a.data;t.amountCount=0,200==s.code&&(t.dataList=s.data.rows,s.data.rows.forEach(function(a){t.amountCount+=a.paymentAmount}))})},getOrderStudentList:function(){var t=this;Object(i["B"])({musicGroupId:this.musicGroupId,rows:9999,subjectId:this.voicyPart?this.voicyPart:"",page:1}).then(function(a){var s=a.data;200==s.code&&(t.studentList=s.data.rows)})},onChange:function(){this.getOrderList(this.voicyPart),this.getOrderStudentList(this.voicyPart)}}},o=u,r=(s("f7a5"),s("2877")),c=Object(r["a"])(o,n,e,!1,null,"cb02c95e",null);a["default"]=c.exports},f7a5:function(t,a,s){"use strict";var n=s("7f17"),e=s.n(n);e.a}}]);