(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Remuneration"],{"124a":function(e,t,r){"use strict";var n=r("1d3e"),a=r.n(n);a.a},"1d3e":function(e,t,r){},4127:function(e,t,r){"use strict";var n=r("d2334"),a=r("b313"),i=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,f=a["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:a.formatters[f],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},h=function e(t,r,a,i,o,c,u,f,h,m,y,g,v){var b=t;if("function"===typeof u?b=u(r,b):b instanceof Date?b=m(b):"comma"===a&&s(b)&&(b=b.join(",")),null===b){if(i)return c&&!g?c(r,d.encoder,v):r;b=""}if(p(b)||n.isBuffer(b)){if(c){var _=g?r:c(r,d.encoder,v);return[y(_)+"="+y(c(b,d.encoder,v))]}return[y(r)+"="+y(String(b))]}var S,w=[];if("undefined"===typeof b)return w;if(s(u))S=u;else{var O=Object.keys(b);S=f?O.sort(f):O}for(var C=0;C0?g+y:""}},4328:function(e,t,r){"use strict";var n=r("4127"),a=r("9e6a"),i=r("b313");e.exports={formats:i,parse:a,stringify:n}},"51c7":function(e,t,r){},"530a":function(e,t,r){"use strict";r.d(t,"e",function(){return s}),r.d(t,"d",function(){return c}),r.d(t,"b",function(){return l}),r.d(t,"i",function(){return u}),r.d(t,"j",function(){return f}),r.d(t,"c",function(){return d}),r.d(t,"h",function(){return p}),r.d(t,"f",function(){return h}),r.d(t,"k",function(){return m}),r.d(t,"g",function(){return y}),r.d(t,"a",function(){return g});var n=r("4328"),a=r.n(n),i=r("981f").default,o="/api-teacher",s=function(e){return i({url:o+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:e})},c=function(e){return i({url:o+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:e})},l=function(e){return i({url:o+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:a.a.stringify(e)})},u=function(e){return i({url:o+"/teacherSalaryComplaints/add",method:"post",data:a.a.stringify(e)})},f=function(e){return i({url:o+"/teacherSalaryComplaints/get",method:"get",params:e})},d=function(e){return i({url:o+"/teacherSalaryComplaints/findByMonth",method:"post",data:a.a.stringify(e)})},p=function(e){return i({url:o+"/teacherSalaryComplaints/repealComplaints",method:"post",data:a.a.stringify(e)})},h=function(e){return i({url:o+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:e})},m=function(e){return i({url:o+"/teacherSalaryComplaints/queryPage",method:"get",params:e})},y=function(e){return i({url:o+"/courseReview/getOnlineCourse",method:"get",params:e})},g=function(e){return i({url:o+"/courseReview/addHomeWork",method:"post",data:e})}},"6e6e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mheader"},[r("header",{staticClass:"m-nav-header",class:[e.isFixed?"fixed":""]},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:e.goBack}},[r("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),r("div",{staticClass:"m-nav-bar__title"},[e._t("default",[e._v(e._s(e.name?e.name:this.$route.meta.descrition))])],2),r("div",{staticClass:"m-nav-bar__right"},[e._t("right")],2)])])},a=[],i={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var e=this.backUrl;"function"==typeof e.callBack?e.callBack():e.path?this.$router.push({path:e.path,query:e.params}):history.go(-1)}}},o=i,s=(r("d133"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"0e835508",null);t["a"]=c.exports},"981f":function(e,t,r){"use strict";r.r(t);var n=r("bc3a"),a=r.n(n),i=r("ff51"),o={},s=a.a.create(o);s.interceptors.request.use(function(e){if(Object(i["b"])().android||Object(i["b"])().iPhone){var t=decodeURI(localStorage.getItem("Authorization"));t&&(e.headers["Authorization"]=t)}else{var r=decodeURI(localStorage.getItem("userInfo"));r&&(e.headers["Authorization"]=r)}return e},function(e){return Promise.reject(e)}),s.interceptors.response.use(function(e){return 403==e.data.code&&(window.localStorage.removeItem("userInfo"),window.localStorage.removeItem("Authorization"),Object(i["b"])().android?DAYA.postMessage(JSON.stringify({api:"login"})):Object(i["b"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"login"}))),e},function(e){return Promise.reject(e)}),t["default"]=s},"9e6a":function(e,t,r){"use strict";var n=r("d2334"),a=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",l=function(e,t){var r,l={},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,f=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,f),p=-1,h=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(y=y.split(",")),a.call(l,m)?l[m]=n.combine(l[m],y):l[m]=y}return l},u=function(e,t,r){for(var n=t,a=e.length-1;a>=0;--a){var i,o=e[a];if("[]"===o&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var s="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(s,10);r.parseArrays||""!==s?!isNaN(c)&&o!==s&&String(c)===s&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=n):i[s]=n:i={0:n}}n=i}return n},f=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=r.depth>0&&i.exec(n),c=s?n.slice(0,s.index):n,l=[];if(c){if(!r.plainObjects&&a.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var f=0;while(r.depth>0&&null!==(s=o.exec(n))&&f1){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?a+=n.charAt(o):s<128?a+=i[s]:s<2048?a+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?a+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&n.charCodeAt(o)),a+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return a},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n0?r("div",{staticClass:"monthCount"},e._l(e.statistics,function(t,n){return r("div",{key:n,staticClass:"item"},["MUSIC"==t.statType?r("span",{staticClass:"title"},[e._v("乐团课合计")]):e._e(),"VIP"==t.statType?r("span",{staticClass:"title"},[e._v("VIP课合计")]):e._e(),"PRACTICE"==t.statType?r("span",{staticClass:"title"},[e._v("网管课合计")]):e._e(),"REWARD"==t.statType?r("span",{staticClass:"title"},[e._v("转结奖励合计")]):e._e(),r("span",[e._v(e._s(t.courseTimes)+e._s("REWARD"==t.statType?"组":"节"))]),r("span",{staticClass:"money"},[e._v(e._s(t.totalActualSalary)+"元")])])}),0):e._e(),r("div",{class:0==e.confirmStatus?"paddingB80":"paddingB16"},[r("van-tabs",{model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[r("van-tab",{attrs:{title:"课酬明细"}},[e.dataShow?r("div",{key:"data"},[r("van-list",{attrs:{finished:e.finished,"finished-text":" "},on:{load:e.getList},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},e._l(e.dataList,function(t,n){return r("van-cell-group",{key:n},[r("van-cell",{scopedSlots:e._u([{key:"icon",fn:function(){return["PRACTICE"==t.groupType?r("i",{staticClass:"icon icon_audition"}):e._e(),"VIP"==t.groupType?r("i",{staticClass:"icon icon_vip"}):e._e(),"MUSIC"==t.groupType?r("i",{staticClass:"icon icon_music"}):e._e()]},proxy:!0},{key:"title",fn:function(){return[r("div",{staticClass:"title"},[e._v(e._s(t.courseName))]),r("div",{staticClass:"baseInfo"},[r("p",[e._v("排课:"+e._s(e._f("getMonthDay")(t.startClassTime))+" "+e._s(e._f("getHourMin")(t.startClassTime))+"-"+e._s(e._f("getHourMin")(t.endClassTime)))]),r("p",[e._v("签到:"+e._s(e._f("getHourMin")(t.signInTime))+"    签退:"+e._s(e._f("getHourMin")(t.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[r("p",{staticClass:"money",class:[t.reduceSalary>0?"error":""]},[e._v("\n ¥"),r("span",[e._v(e._s(t.finalSalary))])]),t.reduceSalary>0?r("div",{staticClass:"moneyInfo"},[e._v("\n 课酬:¥"+e._s(t.actualSalary)+"\n "),r("br"),e._v("扣款:¥"+e._s(t.reduceSalary)+"\n ")]):e._e()]},proxy:!0}],null,!0)})],1)}),1)],1):r("m-empty",{key:"data",staticClass:"empty"})],1),r("van-tab",{attrs:{title:"转结奖励明细"}},[e.dataShow2?r("div",{key:"data2"},[r("van-list",{attrs:{finished:e.finished2,"finished-text":" "},on:{load:e.getList2},model:{value:e.loading2,callback:function(t){e.loading2=t},expression:"loading2"}},e._l(e.dataList2,function(t,n){return r("van-cell-group",{key:n},[r("van-cell",{scopedSlots:e._u([{key:"icon",fn:function(){return[r("i",{staticClass:"icon icon_reword"})]},proxy:!0},{key:"title",fn:function(){return[r("div",{staticClass:"title"},[e._v(e._s(t.courseName))]),r("div",{staticClass:"baseInfo"},[r("p",[e._v("排课:"+e._s(e._f("getMonthDay")(t.startClassTime))+" "+e._s(e._f("getHourMin")(t.startClassTime))+"-"+e._s(e._f("getHourMin")(t.endClassTime)))]),r("p",[e._v("签到:"+e._s(e._f("getHourMin")(t.signInTime))+"    签退:"+e._s(e._f("getHourMin")(t.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[r("p",{staticClass:"money",class:[t.reduceSalary>0?"error":""]},[e._v("\n ¥"),r("span",[e._v(e._s(t.finalSalary))])]),t.reduceSalary>0?r("div",{staticClass:"moneyInfo"},[e._v("\n 课酬:¥"+e._s(t.actualSalary)+"\n "),r("br"),e._v("扣款:¥"+e._s(t.reduceSalary)+"\n ")]):e._e()]},proxy:!0}],null,!0)})],1)}),1)],1):r("m-empty",{key:"data2",staticClass:"empty"})],1)],1)],1),0==e.confirmStatus?r("div",{staticClass:"button-group"},[r("span",{staticClass:"btn",on:{click:function(t){return e.onAppeal(e.haveComplaints)}}},[e._v(e._s(1==e.haveComplaints?"申诉详情":"问题申诉"))]),r("span",{staticClass:"btn primary",on:{click:e.onConfirmAppeal}},[e._v("确认课酬")])]):e._e()],1)},a=[],i=r("6e6e"),o=r("ff51"),s=r("d678"),c=r("530a"),l={name:"remuneration",components:{MHeader:i["a"],MEmpty:s["a"]},data:function(){var e=this.$route.query,t=new Date(e.month+"-01");e.month||(t=new Date,t.setMonth(t.getMonth()-1));var r=t.getFullYear()+"年"+Object(o["h"])(t.getMonth()+1)+"月",n=t.getFullYear()+"-"+Object(o["h"])(t.getMonth()+1);return{active:0,headerStatus:!0,appealDate:r,appealDateStr:n,loading:!1,finished:!1,statistics:[],allMoney:0,dataList:[],dataShow:!0,confirmStatus:1,haveComplaints:0,params:{month:e.month?e.month:null,page:1,rows:20},loading2:!1,finished2:!1,dataList2:[],dataShow2:!0,params2:{month:e.month?e.month:null,page:1,rows:20}}},mounted:function(){var e=this.$route.query;e.Authorization&&(localStorage.setItem("Authorization",decodeURI(e.Authorization)),localStorage.setItem("userInfo",decodeURI(e.Authorization))),document.title="确认课酬",(Object(o["b"])().android||Object(o["b"])().iPhone)&&(1==e.isHide?this.headerStatus=!0:this.headerStatus=!1)},methods:{getList:function(){var e=this,t=this.params;Object(c["e"])(t).then(function(r){var n=r.data;if(e.loading=!1,200==n.code){if(n.data.stat&&n.data.stat.length>0){e.statistics=n.data.stat;var a={courseTimes:0,totalActualSalary:0};n.data.stat.forEach(function(e){a.courseTimes+=e.courseTimes,a.totalActualSalary+=e.totalActualSalary}),e.allMoney=a.totalActualSalary}var i=n.data.pageInfo;t.page=i.pageNo,e.confirmStatus=n.data.confirmStatus,e.haveComplaints=n.data.haveComplaints,e.dataList=e.dataList.concat(i.rows),t.page>=i.totalPage&&(e.finished=!0),e.params.page++}else e.finished=!0;e.dataList.length<=0&&(e.dataShow=!1)})},getList2:function(){var e=this,t=this.params2;Object(c["d"])(t).then(function(r){var n=r.data;if(e.loading2=!1,200==n.code){var a=n.data;t.page=a.pageNo,e.dataList2=e.dataList2.concat(a.rows),t.page>=a.totalPage&&(e.finished2=!0),e.params2.page++}else e.finished2=!0;e.dataList2.length<=0&&(e.dataShow2=!1)})},onAppeal:function(e){this.$router.push({path:"appealDetail",query:{haveComplaints:e,appealDateStr:this.appealDateStr}})},onConfirmAppeal:function(){var e=this;this.$dialog.confirm({title:"确认课酬",message:"您是否确认本月课酬?"}).then(function(){Object(c["b"])({month:e.appealDateStr}).then(function(t){var r=t.data;200==r.code?(e.$toast("课酬确认成功"),e.confirmStatus=1,document.querySelector("#remuneration").scrollTop=0):e.$toast(r.msg)})}).catch(function(){})}},filters:{getHourMin:function(e){var t=e;if(!e)return"";"string"==typeof t&&(t=new Date(e.replace(/-/gi,"/")));var r=t.getHours(),n=t.getMinutes();return Object(o["h"])(r)+":"+Object(o["h"])(n)},getMonthDay:function(e){var t=e||new Date;"string"==typeof t&&(t=new Date(e.replace(/-/gi,"/")));var r=t.getMonth()+1,n=t.getDate();return r+"月"+n+"日"}}},u=l,f=(r("124a"),r("2877")),d=Object(f["a"])(u,n,a,!1,null,"d77ff908",null);t["default"]=d.exports},ff51:function(e,t,r){"use strict";r.d(t,"g",function(){return n}),r.d(t,"e",function(){return a}),r.d(t,"f",function(){return i}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"h",function(){return c}),r.d(t,"a",function(){return l}),r.d(t,"i",function(){return u}),r.d(t,"d",function(){return f});var n=function(){var e=""+(new Date).getTime()+Math.floor(1e6*Math.random());return e};function a(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e);0==r.getDay()&&(t-=6048e5);var n=t-24*(r.getDay()-1)*60*60*1e3,a=new Date(n),i=a.getFullYear(),o=a.getMonth()+1<10?"0"+(a.getMonth()+1):a.getMonth()+1,s=a.getDate()<10?"0"+a.getDate():a.getDate(),c=i+"-"+o+"-"+s;return c}function i(e){var t=new Date(e.replace(/-/g,"/")).getTime(),r=new Date(e),n=7-r.getDay();7==n&&(n=0);var a=t+24*n*60*60*1e3,i=new Date(a),o=i.getFullYear(),s=i.getMonth()+1<10?"0"+(i.getMonth()+1):i.getMonth()+1,c=i.getDate()<10?"0"+i.getDate():i.getDate(),l=o+"-"+s+"-"+c;return l}var o=function(){var e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&-1==e.indexOf("KHTML"),mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/Mac OS X/),android:e.indexOf("DAYAAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("DAYAAPPI")>-1,isApp:e.indexOf("DAYAAPPI")>-1||e.indexOf("DAYAAPPA")>-1||e.indexOf("Adr")>-1,iPad:e.indexOf("iPad")>-1,webApp:-1==e.indexOf("Safari"),weixin:e.indexOf("MicroMessenger")>-1,qq:" qq"==e.match(/\sQQ/i)}},s=function(e){if(e<=0)return"0分钟";var t=e%60,r=0;e>=60&&(r=(e-t)/60);var n="";return r&&(n=r+"小时"),t&&(n+=t+"分钟"),n},c=function(e){return Number(e)>=10?e:"0"+e},l=function(e,t){var r=!0;return function(){var n=this,a=arguments;r&&(r=!1,setTimeout(function(){e.call(n,a),r=!0},t))}},u=function(){var e=window.location.href,t="";return t=/test/.test(e)?"http://mstutest.dayaedu.com":/dev/.test(e)?"http://mstudev.dayaedu.com":/online/.test(e)?"https://mstuonline.dayaedu.com":"http://mstudev.dayaedu.com",t},f=function(e){var t=parseFloat(e);if(isNaN(t))return"0.00";t=Math.round(100*t)/100;var r=t.toString(),n=r.indexOf(".");n<0&&(n=r.length,r+=".");while(r.length<=n+2)r+="0";return r}}}]);