1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["order"],{1061:function(t,e,r){},3908:function(t,e,r){"use strict";r.d(e,"a",function(){return a});r("433b");var n=r("d399");function a(t){t?n["a"].loading({duration:0,forbidClick:!0,message:"加载中..."}):n["a"].clear()}},"55bc":function(t,e,r){"use strict";var n=r("1061"),a=r.n(n);a.a},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(t,e,r,n){var a=e&&e.prototype instanceof f?e:f,i=Object.create(a.prototype),o=new E(n||[]);return i._invoke=P(t,r,o),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",d="executing",v="completed",p={};function f(){}function y(){}function m(){}var g={};g[i]=function(){return this};var w=Object.getPrototypeOf,_=w&&w(w(O([])));_&&_!==r&&n.call(_,i)&&(g=_);var b=m.prototype=f.prototype=Object.create(g);function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function S(t){function e(r,a,i,o){var s=u(t[r],t,a);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,i,o)},function(t){e("throw",t,i,o)}):Promise.resolve(l).then(function(t){c.value=t,i(c)},function(t){return e("throw",t,i,o)})}o(s.arg)}var r;function a(t,n){function a(){return new Promise(function(r,a){e(t,n,r,a)})}return r=r?r.then(a,a):a()}this._invoke=a}function P(t,e,r){var n=l;return function(a,i){if(n===d)throw new Error("Generator is already running");if(n===v){if("throw"===a)throw i;return I()}r.method=a,r.arg=i;while(1){var o=r.delegate;if(o){var s=L(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=d;var c=u(t,e,r);if("normal"===c.type){if(n=r.done?v:h,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=v,r.method="throw",r.arg=c.arg)}}}function L(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=u(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,p;var i=a.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function O(t){if(t){var r=t[i];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function r(){while(++a<t.length)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}return{next:I}}function I(){return{value:e,done:!0}}return y.prototype=b.constructor=m,m.constructor=y,m[s]=y.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(S.prototype),S.prototype[o]=function(){return this},t.AsyncIterator=S,t.async=function(e,r,n,a){var i=new S(c(e,r,n,a));return t.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},x(b),b[s]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return s.type="throw",s.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;j(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:O(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=n}catch(a){Function("r","regeneratorRuntime = r")(n)}},"9af4":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"order"},[r("header",[t._v("缴费详情\n "),r("van-dropdown-menu",[r("van-dropdown-item",{attrs:{options:t.voicyPartList},on:{change:t.onChange},model:{value:t.voicyPart,callback:function(e){t.voicyPart=e},expression:"voicyPart"}})],1)],1),r("h2",[t._v(t._s(t.musicGroupName))]),r("van-tabs",{attrs:{color:"#01C1B5"}},[r("van-tab",{attrs:{title:"缴费信息"}},[r("div",{staticClass:"table"},[r("div",{staticClass:"title"},[r("span"),r("span",[t._v("姓名")]),r("span",[t._v("声部")]),r("span",[t._v("支付金额")]),r("span",[t._v("到账时间")])]),r("div",{staticClass:"content"},[t._l(t.dataList,function(e,n){return r("div",{key:e.id},[r("span",[t._v(" "+t._s(++n)+" ")]),r("span",[t._v(" "+t._s(e.userName)+" ")]),r("span",[t._v(" "+t._s(e.subjectName)+" ")]),r("span",[t._v(" "+t._s(e.paymentAmount)+" ")]),r("span",[t._v(" "+t._s(e.payTime)+" ")])])}),r("p",{staticStyle:{padding:"8px 8px 20px"}},[t._v("缴费总额:"+t._s(t.amountCount.toFixed(2))+"元")])],2)])]),r("van-tab",{attrs:{title:"报名信息"}},[r("div",{staticClass:"table"},[r("div",{staticClass:"title"},[r("span"),r("span",[t._v("姓名")]),r("span",[t._v("班级")]),r("span",[t._v("声部")]),r("span",[t._v("备注")]),r("span",[t._v("调剂")])]),r("div",{staticClass:"content"},t._l(t.studentList,function(e,n){return r("div",{key:e.id},[r("span",[t._v(" "+t._s(++n)+" ")]),r("span",[t._v(" "+t._s(e.userName)+" ")]),r("span",[t._v(" "+t._s(e.currentClass)+" ")]),r("span",[t._v(" "+t._s(e.subjectName)+" ")]),r("span",[t._v(" "+t._s(e.remark)+" ")]),r("span",[r("van-button",{attrs:{disabled:2==e.paymentStatus,round:"",type:"danger",size:"small"},on:{click:function(r){return t.adjust(e)}}},[t._v("调剂")])],1)])}),0)]),r("van-action-sheet",{attrs:{actions:t.couresList,"cancel-text":"取消"},on:{cancel:function(e){t.adjustStatus=!1},select:t.adjustSelect},model:{value:t.adjustStatus,callback:function(e){t.adjustStatus=e},expression:"adjustStatus"}})],1),r("van-tab",{attrs:{title:"数据统计"}},[r("van-cell",{staticClass:"countInfo",attrs:{title:"报名总人数",value:t.config.regNum+"人"}}),r("van-cell",{staticClass:"countInfo",attrs:{title:"缴费总人数",value:t.config.payNum+"人"}}),r("van-cell",{staticClass:"countInfo",attrs:{title:"家长会当日缴费人数",value:t.config.firstDayPayNum+"人"}}),r("van-cell",{staticClass:"countInfo",attrs:{value:t.config.payScale+"%"},scopedSlots:t._u([{key:"title",fn:function(){return[r("div",{staticStyle:{display:"flex","align-items":"center"}},[t._v("家长会当日缴费人数占比\n "),r("van-icon",{staticStyle:{"padding-left":".05rem"},attrs:{name:"question-o"},on:{click:t.onTip}})],1)]},proxy:!0}])}),r("div",{staticStyle:{width:"100%","overflow-x":"auto"}},[r("div",{staticClass:"table",staticStyle:{width:"145%"}},[r("van-row",{staticStyle:{border:"1px solid #eaeaea"}},[r("van-col",{attrs:{span:"1"}},[t._v(" ")]),r("van-col",{attrs:{span:"3"}},[t._v("学员编号")]),r("van-col",{attrs:{span:"2"}},[t._v("姓名")]),r("van-col",{attrs:{span:"2"}},[t._v("声部")]),r("van-col",{attrs:{span:"4"}},[r("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"},on:{click:function(e){return t.onChangeSort("1")}}},[t._v("\n 预报名时间\n "),r("div",[r("i",{staticClass:"box box-up",class:["ASC"==t.orderByPerRegister?"active":null],staticStyle:{"margin-bottom":".02rem"}}),r("i",{staticClass:"box box-down",class:["DESC"==t.orderByPerRegister?"active":null]})])])]),r("van-col",{attrs:{span:"4"}},[t._v("预报名时间差")]),r("van-col",{attrs:{span:"4"}},[r("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center"},on:{click:function(e){return t.onChangeSort("2")}}},[t._v("\n 缴费时间\n "),r("div",[r("i",{staticClass:"box box-up",class:["ASC"==t.orderByPayTime?"active":null],staticStyle:{"margin-bottom":".02rem"}}),r("i",{staticClass:"box box-down",class:["DESC"==t.orderByPayTime?"active":null]})])])]),r("van-col",{attrs:{span:"4"}},[t._v("缴费时间差")])],1),t._l(t.countList,function(e,n){return r("van-row",{key:e.id,staticStyle:{border:"1px solid #ebedf0"}},[r("van-col",{attrs:{span:"1"}},[t._v(t._s(++n))]),r("van-col",{attrs:{span:"3"}},[t._v(t._s(e.userId))]),r("van-col",{attrs:{span:"2"}},[t._v(t._s(e.studentName))]),r("van-col",{attrs:{span:"2"}},[t._v(t._s(e.actualSubjectName))]),r("van-col",{attrs:{span:"4"}},[t._v(t._s(e.perRegisterTime))]),r("van-col",{attrs:{span:"4"}},[t._v(t._s(e.perRegIntervalStr))]),r("van-col",{attrs:{span:"4"}},[t._v(t._s(e.payTime))]),r("van-col",{attrs:{span:"4"}},[t._v(t._s(e.payIntervalStr))])],1)})],2)])],1)],1)],1)},a=[],i=r("a34a"),o=r.n(i),s=r("9afb"),c=r("3908"),u=r("e3eb"),l=r.n(u);function h(t,e,r,n,a,i,o){try{var s=t[i](o),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,a)}function d(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(t){h(i,n,a,o,s,"next",t)}function s(t){h(i,n,a,o,s,"throw",t)}o(void 0)})}}var v={name:"order",data:function(){return{musicGroupId:this.$route.query.musicGroupId,musicGroupName:this.$route.query.musicGroupName,dataList:{},amountCount:0,studentList:{},couresList:[],countList:[],voicyPart:0,voicyPartList:[{text:"全部声部",value:0}],adjustStatus:!1,changeStudent:null,orderByPerRegister:null,orderByPayTime:null,config:{regNum:0,firstDayPayNum:0,payScale:0,payNum:0}}},mounted:function(){var t=d(o.a.mark(function t(){var e=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return window.localStorage.removeItem("userInfo"),window.localStorage.removeItem("Authorization"),Object(c["a"])(!0),t.next=5,Object(s["G"])({musicGroupId:this.musicGroupId}).then(function(t){var r=t.data;200==r.code&&r.data.forEach(function(t){e.voicyPartList.push({text:t.name,value:t.id}),e.couresList.push({name:t.name,id:t.id})})});case 5:Object(c["a"])(!1),this.getOrderList(),this.getOrderStudentList(),this.getRegisterOrPreList();case 9:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),methods:{adjust:function(t){2!=t.paymentStatus&&(this.adjustStatus=!0,this.changeStudent=t)},adjustSelect:function(t){var e=this;Object(s["R"])({musicGroupId:this.musicGroupId,subId:t.id,userId:this.changeStudent.userId}).then(function(t){var r=t.data;200==r.code?(e.$toast("修改成功"),e.adjustStatus=!1,e.getOrderStudentList()):e.$toast(r.msg)})},getOrderList:function(){var t=this;Object(s["E"])({musicGroupId:this.musicGroupId,rows:9999,subjectId:this.voicyPart?this.voicyPart:"",paymentStatus:2,page:1}).then(function(e){var r=e.data;t.amountCount=0,200==r.code&&(t.dataList=r.data.rows,r.data.rows.forEach(function(e){t.amountCount+=e.paymentAmount}))})},getOrderStudentList:function(){var t=this;Object(s["E"])({musicGroupId:this.musicGroupId,rows:9999,subjectId:this.voicyPart?this.voicyPart:"",page:1}).then(function(e){var r=e.data;200==r.code&&(t.studentList=r.data.rows)})},getRegisterOrPreList:function(){var t=d(o.a.mark(function t(){var e=this;return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return Object(c["a"])(!0),t.next=3,Object(s["t"])(l()({musicGroupId:this.musicGroupId,rows:9999,subjectId:this.voicyPart?this.voicyPart:"",orderByPerRegister:this.orderByPerRegister,orderByPayTime:this.orderByPayTime,page:1})).then(function(t){var r=t.data;if(200==r.code){var n=r.data,a=(n.firstDayPayNum/n.payNum*100).toFixed(2);e.config={regNum:n.regNum,firstDayPayNum:n.firstDayPayNum,payScale:a,payNum:n.payNum},e.countList=n.rows}});case 3:Object(c["a"])(!1);case 4:case"end":return t.stop()}},t,this)}));function e(){return t.apply(this,arguments)}return e}(),onChange:function(){this.getOrderList(this.voicyPart),this.getOrderStudentList(this.voicyPart),this.getRegisterOrPreList(this.voicyPart)},onTip:function(){this.$dialog.alert({message:"家长会当日缴费人数 / 缴费总人数"}).then(function(){})},onChangeSort:function(){var t=d(o.a.mark(function t(e){return o.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return 1==e?(this.orderByPayTime=null,"ASC"==this.orderByPerRegister?this.orderByPerRegister="DESC":"DESC"==this.orderByPerRegister?this.orderByPerRegister=null:this.orderByPerRegister="ASC"):2==e&&(this.orderByPerRegister=null,"ASC"==this.orderByPayTime?this.orderByPayTime="DESC":"DESC"==this.orderByPayTime?this.orderByPayTime=null:this.orderByPayTime="ASC"),t.next=3,this.getRegisterOrPreList();case 3:case"end":return t.stop()}},t,this)}));function e(e){return t.apply(this,arguments)}return e}()}},p=v,f=(r("55bc"),r("2877")),y=Object(f["a"])(p,n,a,!1,null,"4ea87350",null);e["default"]=y.exports},a34a:function(t,e,r){t.exports=r("96cf")}}]);
|