Remuneration.4587b2b2.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Remuneration"],{"04a4":function(t,e,n){"use strict";n("3761")},3761:function(t,e,n){},"530a":function(t,e,n){"use strict";n.d(e,"e",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return u})),n.d(e,"i",(function(){return l})),n.d(e,"j",(function(){return h})),n.d(e,"c",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"f",(function(){return p})),n.d(e,"k",(function(){return v})),n.d(e,"g",(function(){return m})),n.d(e,"a",(function(){return y}));var a=n("4328"),r=n.n(a),i=n("981f").default,o="/api-teacher",s=function(t){return i({url:o+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},c=function(t){return i({url:o+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},u=function(t){return i({url:o+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:r.a.stringify(t)})},l=function(t){return i({url:o+"/teacherSalaryComplaints/add",method:"post",data:r.a.stringify(t)})},h=function(t){return i({url:o+"/teacherSalaryComplaints/get",method:"get",params:t})},f=function(t){return i({url:o+"/teacherSalaryComplaints/findByMonth",method:"post",data:r.a.stringify(t)})},d=function(t){return i({url:o+"/teacherSalaryComplaints/repealComplaints",method:"post",data:r.a.stringify(t)})},p=function(t){return i({url:o+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},v=function(t){return i({url:o+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},m=function(t){return i({url:o+"/courseReview/getOnlineCourse",method:"get",params:t})},y=function(t){return i({url:o+"/courseReview/addHomeWork",method:"post",data:t})}},"6e6e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[n("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[n("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),n("div",{staticClass:"m-nav-bar__title"},[t._t("default",(function(){return[t._v(t._s(t.name?t.name:this.$route.meta.descrition))]}))],2),n("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],i=n("ddf4");function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(E){u=function(t,e,n){return t[e]=n}}function l(t,e,n,a){var r=e&&e.prototype instanceof d?e:d,i=Object.create(r.prototype),o=new k(a||[]);return i._invoke=function(t,e,n){var a="suspendedStart";return function(r,i){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===r)throw i;return T()}for(n.method=r,n.arg=i;;){var o=n.delegate;if(o){var s=b(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===a)throw a="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a="executing";var c=h(t,e,n);if("normal"===c.type){if(a=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a="completed",n.method="throw",n.arg=c.arg)}}}(t,n,o),i}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=l;var f={};function d(){}function p(){}function v(){}var m={};u(m,r,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(L([])));g&&g!==e&&n.call(g,r)&&(m=g);var _=v.prototype=d.prototype=Object.create(m);function S(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function a(r,i,s,c){var u=h(t[r],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==o(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}))}c(u.arg)}var r;this._invoke=function(t,n){function i(){return new e((function(e,r){a(t,n,e,r)}))}return r=r?r.then(i,i):i()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var a=h(n,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,f;var r=a.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function L(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){for(;++a<t.length;)if(n.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=v,u(_,"constructor",v),u(v,"constructor",p),p.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},S(w.prototype),u(w.prototype,i,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,a,r,i){void 0===i&&(i=Promise);var o=new w(l(e,n,a,r),i);return t.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},S(_),u(_,c,"Generator"),u(_,r,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(n,a){return o.type="throw",o.arg=t,e.next=n,a&&(e.method="next",e.arg=void 0),!!a}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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,f):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),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var a=n.completion;if("throw"===a.type){var r=a.arg;x(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function c(t,e,n,a,r,i,o){try{var s=t[i](o),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(a,r)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(a,r){var i=t.apply(e,n);function o(t){c(i,a,r,o,s,"next",t)}function s(t){c(i,a,r,o,s,"throw",t)}o(void 0)}))}}var l={name:"mheader",props:{name:String,isNative:{type:Boolean,default:!0},isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},data:function(){return{navBarHeight:0,headStyle:{},titleHeight:44}},mounted:function(){this.isNative||(Object(i["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(s().mark((function t(){var e,n,a=this;return s().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),n=sessionStorage.getItem("titleHeight"),!e||!n){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:n+"px",lineHeight:n+"px"},t.next=9;break;case 7:return t.next=9,Object(i["b"])({api:"getNavHeight"},(function(t){var e=t.content,n={},r=e.dpi||2;if(e.navHeight){var i=e.navHeight/r;sessionStorage.setItem("navHeight",i),a.navBarHeight=i,n={paddingTop:i+"px"}}if(e.titleHeight){var o=e.titleHeight/r;sessionStorage.setItem("titleHeight",o),a.titleHeight=o,n.height=o+"px",n.lineHeight=o+"px"}a.headStyle=n}));case 9:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}},beforeDestroy:function(){this.isNative||(Object(i["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},h=l,f=(n("04a4"),n("2877")),d=Object(f["a"])(h,a,r,!1,null,"641fc55e",null);e["a"]=d.exports},"852e":function(t,e,n){},"89f4":function(t,e,n){},a315:function(t,e,n){"use strict";n("89f4")},bad8:function(t,e,n){"use strict";n("852e")},d678:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mempty",class:t.full?"full":null},[n("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),n("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},r=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=i,s=(n("bad8"),n("2877")),c=Object(s["a"])(o,a,r,!1,null,"31cc2a9d",null);e["a"]=c.exports},d85e:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrap",attrs:{id:"remuneration"}},[t.headerStatus?n("m-header"):t._e(),n("div",{staticClass:"monthMoney"},[t._v(t._s(t.appealDate)+"课酬 "),n("br"),n("span",[t._v("总计:"+t._s(t.allMoney)+"元")])]),t.statistics.length>0?n("div",{staticClass:"monthCount"},t._l(t.statistics,(function(e,a){return n("div",{key:a,staticClass:"item"},["MUSIC"==e.statType?n("span",{staticClass:"title"},[t._v("乐团课合计")]):t._e(),"VIP"==e.statType?n("span",{staticClass:"title"},[t._v("VIP课合计")]):t._e(),"PRACTICE"==e.statType?n("span",{staticClass:"title"},[t._v("网管课合计")]):t._e(),"REWARD"==e.statType?n("span",{staticClass:"title"},[t._v("转结奖励合计")]):t._e(),n("span",[t._v(t._s(e.courseTimes)+t._s("REWARD"==e.statType?"组":"节"))]),n("span",{staticClass:"money"},[t._v(t._s(e.totalActualSalary)+"元")])])})),0):t._e(),n("div",{class:0==t.confirmStatus?"paddingB80":"paddingB16"},[n("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[n("van-tab",{attrs:{title:"课酬明细"}},[t.dataShow?n("div",{key:"data"},[n("van-list",{attrs:{finished:t.finished,"finished-text":" "},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.dataList,(function(e,a){return n("van-cell-group",{key:a},[n("van-cell",{scopedSlots:t._u([{key:"icon",fn:function(){return["PRACTICE"==e.groupType?n("i",{staticClass:"icon icon_audition"}):t._e(),"VIP"==e.groupType?n("i",{staticClass:"icon icon_vip"}):t._e(),"MUSIC"==e.groupType?n("i",{staticClass:"icon icon_music"}):t._e()]},proxy:!0},{key:"title",fn:function(){return[n("div",{staticClass:"title"},[t._v(t._s(e.courseName))]),n("div",{staticClass:"baseInfo"},[n("p",[t._v("排课:"+t._s(t._f("getMonthDay")(e.startClassTime))+" "+t._s(t._f("getHourMin")(e.startClassTime))+"-"+t._s(t._f("getHourMin")(e.endClassTime)))]),n("p",[t._v("签到:"+t._s(t._f("getHourMin")(e.signInTime))+"    签退:"+t._s(t._f("getHourMin")(e.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[n("p",{staticClass:"money",class:[e.reduceSalary>0?"error":""]},[t._v("\n ¥"),n("span",[t._v(t._s(e.finalSalary))])]),e.reduceSalary>0?n("div",{staticClass:"moneyInfo"},[t._v("\n 课酬:¥"+t._s(e.actualSalary)+"\n "),n("br"),t._v("扣款:¥"+t._s(e.reduceSalary)+"\n ")]):t._e()]},proxy:!0}],null,!0)})],1)})),1)],1):n("m-empty",{key:"data",staticClass:"empty"})],1),n("van-tab",{attrs:{title:"转结奖励明细"}},[t.dataShow2?n("div",{key:"data2"},[n("van-list",{attrs:{finished:t.finished2,"finished-text":" "},on:{load:t.getList2},model:{value:t.loading2,callback:function(e){t.loading2=e},expression:"loading2"}},t._l(t.dataList2,(function(e,a){return n("van-cell-group",{key:a},[n("van-cell",{scopedSlots:t._u([{key:"icon",fn:function(){return[n("i",{staticClass:"icon icon_reword"})]},proxy:!0},{key:"title",fn:function(){return[n("div",{staticClass:"title"},[t._v(t._s(e.courseName))]),n("div",{staticClass:"baseInfo"},[n("p",[t._v("排课:"+t._s(t._f("getMonthDay")(e.startClassTime))+" "+t._s(t._f("getHourMin")(e.startClassTime))+"-"+t._s(t._f("getHourMin")(e.endClassTime)))]),n("p",[t._v("签到:"+t._s(t._f("getHourMin")(e.signInTime))+"    签退:"+t._s(t._f("getHourMin")(e.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[n("p",{staticClass:"money",class:[e.reduceSalary>0?"error":""]},[t._v("\n ¥"),n("span",[t._v(t._s(e.finalSalary))])]),e.reduceSalary>0?n("div",{staticClass:"moneyInfo"},[t._v("\n 课酬:¥"+t._s(e.actualSalary)+"\n "),n("br"),t._v("扣款:¥"+t._s(e.reduceSalary)+"\n ")]):t._e()]},proxy:!0}],null,!0)})],1)})),1)],1):n("m-empty",{key:"data2",staticClass:"empty"})],1)],1)],1),0==t.confirmStatus?n("div",{staticClass:"button-group"},[n("span",{staticClass:"btn",on:{click:function(e){return t.onAppeal(t.haveComplaints)}}},[t._v(t._s(1==t.haveComplaints?"申诉详情":"问题申诉"))]),n("span",{staticClass:"btn primary",on:{click:t.onConfirmAppeal}},[t._v("确认课酬")])]):t._e()],1)},r=[],i=n("6e6e"),o=n("ff51"),s=n("d678"),c=n("530a"),u={name:"remuneration",components:{MHeader:i["a"],MEmpty:s["a"]},data:function(){var t=this.$route.query,e=new Date(t.month+"-01");t.month||(e=new Date,e.setMonth(e.getMonth()-1));var n=e.getFullYear()+"年"+Object(o["h"])(e.getMonth()+1)+"月",a=e.getFullYear()+"-"+Object(o["h"])(e.getMonth()+1);return{active:0,headerStatus:!0,appealDate:n,appealDateStr:a,loading:!1,finished:!1,statistics:[],allMoney:0,dataList:[],dataShow:!0,confirmStatus:1,haveComplaints:0,params:{month:t.month?t.month:null,page:1,rows:20},loading2:!1,finished2:!1,dataList2:[],dataShow2:!0,params2:{month:t.month?t.month:null,page:1,rows:20}}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="确认课酬",(Object(o["b"])().android||Object(o["b"])().iPhone)&&(1==t.isHide?this.headerStatus=!0:this.headerStatus=!1)},methods:{getList:function(){var t=this,e=this.params;Object(c["e"])(e).then((function(n){var a=n.data;if(t.loading=!1,200==a.code){if(a.data.stat&&a.data.stat.length>0){t.statistics=a.data.stat;var r={courseTimes:0,totalActualSalary:0};a.data.stat.forEach((function(t){r.courseTimes+=t.courseTimes,r.totalActualSalary+=t.totalActualSalary})),t.allMoney=r.totalActualSalary}var i=a.data.pageInfo;e.page=i.pageNo,t.confirmStatus=a.data.confirmStatus,t.haveComplaints=a.data.haveComplaints,t.dataList=t.dataList.concat(i.rows),e.page>=i.totalPage&&(t.finished=!0),t.params.page++}else t.finished=!0;t.dataList.length<=0&&(t.dataShow=!1)}))},getList2:function(){var t=this,e=this.params2;Object(c["d"])(e).then((function(n){var a=n.data;if(t.loading2=!1,200==a.code){var r=a.data;e.page=r.pageNo,t.dataList2=t.dataList2.concat(r.rows),e.page>=r.totalPage&&(t.finished2=!0),t.params2.page++}else t.finished2=!0;t.dataList2.length<=0&&(t.dataShow2=!1)}))},onAppeal:function(t){this.$router.push({path:"appealDetail",query:{haveComplaints:t,appealDateStr:this.appealDateStr}})},onConfirmAppeal:function(){var t=this;this.$dialog.confirm({title:"确认课酬",message:"您是否确认本月课酬?"}).then((function(){Object(c["b"])({month:t.appealDateStr}).then((function(e){var n=e.data;200==n.code?(t.$toast("课酬确认成功"),t.confirmStatus=1,document.querySelector("#remuneration").scrollTop=0):t.$toast(n.msg)}))})).catch((function(){}))}},filters:{getHourMin:function(t){var e=t;if(!t)return"";"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var n=e.getHours(),a=e.getMinutes();return Object(o["h"])(n)+":"+Object(o["h"])(a)},getMonthDay:function(t){var e=t||new Date;"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var n=e.getMonth()+1,a=e.getDate();return n+"月"+a+"日"}}},l=u,h=(n("a315"),n("2877")),f=Object(h["a"])(l,a,r,!1,null,"c8d5c7a4",null);e["default"]=f.exports}}]);