(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Remuneration"],{"124a":function(e,t,r){"use strict";var a=r("1d3e"),n=r.n(a);n.a},"1d3e":function(e,t,r){},4127:function(e,t,r){"use strict";var a=r("d2334"),n=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=n["default"],d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:f,formatter:n.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,n,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"===n&&s(b)&&(b=b.join(",")),null===b){if(i)return c&&!g?c(r,d.encoder,v):r;b=""}if(p(b)||a.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,C=[];if("undefined"===typeof b)return C;if(s(u))S=u;else{var w=Object.keys(b);S=f?w.sort(f):w}for(var O=0;O0?g+y:""}},4328:function(e,t,r){"use strict";var a=r("4127"),n=r("9e6a"),i=r("b313");e.exports={formats:i,parse:n,stringify:a}},"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 a=r("4328"),n=r.n(a),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:n.a.stringify(e)})},u=function(e){return i({url:o+"/teacherSalaryComplaints/add",method:"post",data:n.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:n.a.stringify(e)})},p=function(e){return i({url:o+"/teacherSalaryComplaints/repealComplaints",method:"post",data:n.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 a=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)])])},n=[],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,a,n,!1,null,"0e835508",null);t["a"]=c.exports},"981f":function(e,t,r){"use strict";r.r(t);var a=r("bc3a"),n=r.n(a),i=r("ff51"),o={},s=n.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 a=r("d2334"),n=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:a.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(",")),n.call(l,m)?l[m]=a.combine(l[m],y):l[m]=y}return l},u=function(e,t,r){for(var a=t,n=e.length-1;n>=0;--n){var i,o=e[n];if("[]"===o&&r.parseArrays)i=[].concat(a);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]=a):i[s]=a:i={0:a}}a=i}return a},f=function(e,t,r){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=r.depth>0&&i.exec(a),c=s?a.slice(0,s.index):a,l=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}var f=0;while(r.depth>0&&null!==(s=o.exec(a))&&f1){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var a=[],i=0;i=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?n+=a.charAt(o):s<128?n+=i[s]:s<2048?n+=i[192|s>>6]+i[128|63&s]:s<55296||s>=57344?n+=i[224|s>>12]+i[128|s>>6&63]+i[128|63&s]:(o+=1,s=65536+((1023&s)<<10|1023&a.charCodeAt(o)),n+=i[240|s>>18]+i[128|s>>12&63]+i[128|s>>6&63]+i[128|63&s])}return n},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],a=0;a0?r("div",{staticClass:"monthCount"},e._l(e.statistics,function(t,a){return r("div",{key:a,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,a){return r("van-cell-group",{key:a},[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,a){return r("van-cell-group",{key:a},[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)},n=[],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)+"月",a=t.getFullYear()+"-"+Object(o["h"])(t.getMonth()+1);return{active:0,headerStatus:!0,appealDate:r,appealDateStr:a,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 a=r.data;if(e.loading=!1,200==a.code){if(a.data.stat&&a.data.stat.length>0){e.statistics=a.data.stat;var n={courseTimes:0,totalActualSalary:0};a.data.stat.forEach(function(e){n.courseTimes+=e.courseTimes,n.totalActualSalary+=e.totalActualSalary}),e.allMoney=n.totalActualSalary}var i=a.data.pageInfo;t.page=i.pageNo,e.confirmStatus=a.data.confirmStatus,e.haveComplaints=a.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 a=r.data;if(e.loading2=!1,200==a.code){var n=a.data;t.page=n.pageNo,e.dataList2=e.dataList2.concat(n.rows),t.page>=n.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(),a=t.getMinutes();return Object(o["h"])(r)+":"+Object(o["h"])(a)},getMonthDay:function(e){var t=e||new Date;"string"==typeof t&&(t=new Date(e.replace(/-/gi,"/")));var r=t.getMonth()+1,a=t.getDate();return r+"月"+a+"日"}}},u=l,f=(r("124a"),r("2877")),d=Object(f["a"])(u,a,n,!1,null,"d77ff908",null);t["default"]=d.exports}}]);