1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Remuneration"],{"124a":function(t,e,a){"use strict";var n=a("1d3e"),i=a.n(n);i.a},"1d3e":function(t,e,a){},"38f0":function(t,e,a){"use strict";var n=a("5b7e"),i=a.n(n);i.a},"51c7":function(t,e,a){},"530a":function(t,e,a){"use strict";a.d(e,"e",function(){return o}),a.d(e,"d",function(){return c}),a.d(e,"b",function(){return u}),a.d(e,"i",function(){return l}),a.d(e,"j",function(){return d}),a.d(e,"c",function(){return f}),a.d(e,"h",function(){return p}),a.d(e,"f",function(){return h}),a.d(e,"k",function(){return m}),a.d(e,"g",function(){return v}),a.d(e,"a",function(){return g});var n=a("4328"),i=a.n(n),r=a("981f").default,s="/api-teacher",o=function(t){return r({url:s+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},c=function(t){return r({url:s+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},u=function(t){return r({url:s+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:i.a.stringify(t)})},l=function(t){return r({url:s+"/teacherSalaryComplaints/add",method:"post",data:i.a.stringify(t)})},d=function(t){return r({url:s+"/teacherSalaryComplaints/get",method:"get",params:t})},f=function(t){return r({url:s+"/teacherSalaryComplaints/findByMonth",method:"post",data:i.a.stringify(t)})},p=function(t){return r({url:s+"/teacherSalaryComplaints/repealComplaints",method:"post",data:i.a.stringify(t)})},h=function(t){return r({url:s+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},m=function(t){return r({url:s+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},v=function(t){return r({url:s+"/courseReview/getOnlineCourse",method:"get",params:t})},g=function(t){return r({url:s+"/courseReview/addHomeWork",method:"post",data:t})}},"5b7e":function(t,e,a){},"6e6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader",style:{height:"calc("+t.titleHeight+"px + "+t.navBarHeight+"px)"}},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""],style:[t.headStyle]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},i=[],r=a("a34a"),s=a.n(r),o=a("ddf4");function c(t,e,a,n,i,r,s){try{var o=t[r](s),c=o.value}catch(u){return void a(u)}o.done?e(c):Promise.resolve(c).then(n,i)}function u(t){return function(){var e=this,a=arguments;return new Promise(function(n,i){var r=t.apply(e,a);function s(t){c(r,n,i,s,o,"next",t)}function o(t){c(r,n,i,s,o,"throw",t)}s(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(o["b"])({api:"setBarStatus",content:{status:0}}),this.getNav(),this.isBack=!1)},methods:{getNav:function(){var t=u(s.a.mark(function t(){var e,a,n=this;return s.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(e=sessionStorage.getItem("navHeight"),a=sessionStorage.getItem("titleHeight"),!e||!a){t.next=7;break}this.navBarHeight=e,this.headStyle={paddingTop:e+"px",height:a+"px",lineHeight:a+"px"},t.next=9;break;case 7:return t.next=9,Object(o["b"])({api:"getNavHeight"},function(t){var e=t.content,a={},i=e.dpi||2;if(e.navHeight){var r=e.navHeight/i;sessionStorage.setItem("navHeight",r),n.navBarHeight=r,a={paddingTop:r+"px"}}if(e.titleHeight){var s=e.titleHeight/i;sessionStorage.setItem("titleHeight",s),n.titleHeight=s,a.height=s+"px",a.lineHeight=s+"px"}n.headStyle=a});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(o["b"])({api:"setBarStatus",content:{status:1}}),this.isBack=!0)}},d=l,f=(a("38f0"),a("2877")),p=Object(f["a"])(d,n,i,!1,null,"6a74717c",null);e["a"]=p.exports},c063:function(t,e,a){"use strict";var n=a("51c7"),i=a.n(n);i.a},d678:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mempty",class:t.full?"full":null},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},i=[],r={name:"mempty",props:{icon:String,msg:String,full:Boolean}},s=r,o=(a("c063"),a("2877")),c=Object(o["a"])(s,n,i,!1,null,"45d1a48f",null);e["a"]=c.exports},d85e:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrap",attrs:{id:"remuneration"}},[t.headerStatus?a("m-header"):t._e(),a("div",{staticClass:"monthMoney"},[t._v(t._s(t.appealDate)+"课酬 "),a("br"),a("span",[t._v("总计:"+t._s(t.allMoney)+"元")])]),t.statistics.length>0?a("div",{staticClass:"monthCount"},t._l(t.statistics,function(e,n){return a("div",{key:n,staticClass:"item"},["MUSIC"==e.statType?a("span",{staticClass:"title"},[t._v("乐团课合计")]):t._e(),"VIP"==e.statType?a("span",{staticClass:"title"},[t._v("VIP课合计")]):t._e(),"PRACTICE"==e.statType?a("span",{staticClass:"title"},[t._v("网管课合计")]):t._e(),"REWARD"==e.statType?a("span",{staticClass:"title"},[t._v("转结奖励合计")]):t._e(),a("span",[t._v(t._s(e.courseTimes)+t._s("REWARD"==e.statType?"组":"节"))]),a("span",{staticClass:"money"},[t._v(t._s(e.totalActualSalary)+"元")])])}),0):t._e(),a("div",{class:0==t.confirmStatus?"paddingB80":"paddingB16"},[a("van-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[a("van-tab",{attrs:{title:"课酬明细"}},[t.dataShow?a("div",{key:"data"},[a("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,n){return a("van-cell-group",{key:n},[a("van-cell",{scopedSlots:t._u([{key:"icon",fn:function(){return["PRACTICE"==e.groupType?a("i",{staticClass:"icon icon_audition"}):t._e(),"VIP"==e.groupType?a("i",{staticClass:"icon icon_vip"}):t._e(),"MUSIC"==e.groupType?a("i",{staticClass:"icon icon_music"}):t._e()]},proxy:!0},{key:"title",fn:function(){return[a("div",{staticClass:"title"},[t._v(t._s(e.courseName))]),a("div",{staticClass:"baseInfo"},[a("p",[t._v("排课:"+t._s(t._f("getMonthDay")(e.startClassTime))+" "+t._s(t._f("getHourMin")(e.startClassTime))+"-"+t._s(t._f("getHourMin")(e.endClassTime)))]),a("p",[t._v("签到:"+t._s(t._f("getHourMin")(e.signInTime))+" 签退:"+t._s(t._f("getHourMin")(e.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[a("p",{staticClass:"money",class:[e.reduceSalary>0?"error":""]},[t._v("\n ¥"),a("span",[t._v(t._s(e.finalSalary))])]),e.reduceSalary>0?a("div",{staticClass:"moneyInfo"},[t._v("\n 课酬:¥"+t._s(e.actualSalary)+"\n "),a("br"),t._v("扣款:¥"+t._s(e.reduceSalary)+"\n ")]):t._e()]},proxy:!0}],null,!0)})],1)}),1)],1):a("m-empty",{key:"data",staticClass:"empty"})],1),a("van-tab",{attrs:{title:"转结奖励明细"}},[t.dataShow2?a("div",{key:"data2"},[a("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,n){return a("van-cell-group",{key:n},[a("van-cell",{scopedSlots:t._u([{key:"icon",fn:function(){return[a("i",{staticClass:"icon icon_reword"})]},proxy:!0},{key:"title",fn:function(){return[a("div",{staticClass:"title"},[t._v(t._s(e.courseName))]),a("div",{staticClass:"baseInfo"},[a("p",[t._v("排课:"+t._s(t._f("getMonthDay")(e.startClassTime))+" "+t._s(t._f("getHourMin")(e.startClassTime))+"-"+t._s(t._f("getHourMin")(e.endClassTime)))]),a("p",[t._v("签到:"+t._s(t._f("getHourMin")(e.signInTime))+" 签退:"+t._s(t._f("getHourMin")(e.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[a("p",{staticClass:"money",class:[e.reduceSalary>0?"error":""]},[t._v("\n ¥"),a("span",[t._v(t._s(e.finalSalary))])]),e.reduceSalary>0?a("div",{staticClass:"moneyInfo"},[t._v("\n 课酬:¥"+t._s(e.actualSalary)+"\n "),a("br"),t._v("扣款:¥"+t._s(e.reduceSalary)+"\n ")]):t._e()]},proxy:!0}],null,!0)})],1)}),1)],1):a("m-empty",{key:"data2",staticClass:"empty"})],1)],1)],1),0==t.confirmStatus?a("div",{staticClass:"button-group"},[a("span",{staticClass:"btn",on:{click:function(e){return t.onAppeal(t.haveComplaints)}}},[t._v(t._s(1==t.haveComplaints?"申诉详情":"问题申诉"))]),a("span",{staticClass:"btn primary",on:{click:t.onConfirmAppeal}},[t._v("确认课酬")])]):t._e()],1)},i=[],r=a("6e6e"),s=a("ff51"),o=a("d678"),c=a("530a"),u={name:"remuneration",components:{MHeader:r["a"],MEmpty:o["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 a=e.getFullYear()+"年"+Object(s["h"])(e.getMonth()+1)+"月",n=e.getFullYear()+"-"+Object(s["h"])(e.getMonth()+1);return{active:0,headerStatus:!0,appealDate:a,appealDateStr:n,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(s["b"])().android||Object(s["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(a){var n=a.data;if(t.loading=!1,200==n.code){if(n.data.stat&&n.data.stat.length>0){t.statistics=n.data.stat;var i={courseTimes:0,totalActualSalary:0};n.data.stat.forEach(function(t){i.courseTimes+=t.courseTimes,i.totalActualSalary+=t.totalActualSalary}),t.allMoney=i.totalActualSalary}var r=n.data.pageInfo;e.page=r.pageNo,t.confirmStatus=n.data.confirmStatus,t.haveComplaints=n.data.haveComplaints,t.dataList=t.dataList.concat(r.rows),e.page>=r.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(a){var n=a.data;if(t.loading2=!1,200==n.code){var i=n.data;e.page=i.pageNo,t.dataList2=t.dataList2.concat(i.rows),e.page>=i.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 a=e.data;200==a.code?(t.$toast("课酬确认成功"),t.confirmStatus=1,document.querySelector("#remuneration").scrollTop=0):t.$toast(a.msg)})}).catch(function(){})}},filters:{getHourMin:function(t){var e=t;if(!t)return"";"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var a=e.getHours(),n=e.getMinutes();return Object(s["h"])(a)+":"+Object(s["h"])(n)},getMonthDay:function(t){var e=t||new Date;"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var a=e.getMonth()+1,n=e.getDate();return a+"月"+n+"日"}}},l=u,d=(a("124a"),a("2877")),f=Object(d["a"])(l,n,i,!1,null,"d77ff908",null);e["default"]=f.exports},ddf4:function(t,e,a){"use strict";a.d(e,"b",function(){return f}),a.d(e,"a",function(){return p});var n=a("ff51");function i(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)}return a}function r(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?i(Object(a),!0).forEach(function(e){s(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}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)}var c=function(){},u={},l=Object(n["b"])();l.isApp&&window.addEventListener("message",function(t){try{var e=t.data?"object"===o(t.data)?t.data:JSON.parse(t.data):{},a=e.content.uuid||e.uuid;try{e.content&&(e.content=JSON.parse(e.content))}catch(m){}if(!a){var n=Object.keys(u).filter(function(t){return 0===t.indexOf(e.api)}),i=!0,r=!1,s=void 0;try{for(var l,d=n[Symbol.iterator]();!(i=(l=d.next()).done);i=!0){var f=l.value,p=u[f]||c;p(e)}}catch(v){r=!0,s=v}finally{try{i||null==d.return||d.return()}finally{if(r)throw s}}return}var h=u[e.content.uuid||e.uuid||e.api+e.uuid]||c;h(e)}catch(m){console.error("通信消息解析错误",m)}});var d=window.DAYA||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DAYA,f=function(t,e){if(l.isApp){var a=Object(n["g"])();u[a]=e||c,t.content=t.content?r({},t.content,{uuid:a}):{uuid:a},d.postMessage(JSON.stringify(t))}},p=function(t,e){if(l.isApp){var a=t+Object(n["g"])();u[a]=e||c}}}}]);
|