Remuneration.3d898897.js 21 KB

1
  1. (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;O<S.length;++O){var j=S[O];o&&null===b[j]||(s(b)?l(C,e(b[j],"function"===typeof n?n(r,j):r,n,i,o,c,u,f,h,m,y,g,v)):l(C,e(b[j],r+(h?"."+j:"["+j+"]"),n,i,o,c,u,f,h,m,y,g,v)))}return C},m=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=n["default"];if("undefined"!==typeof e.format){if(!i.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var a=n.formatters[r],o=d.filter;return("function"===typeof e.filter||s(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:"undefined"===typeof e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:"undefined"===typeof e.delimiter?d.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:d.encode,encoder:"function"===typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:o,formatter:a,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,a,n=e,i=m(t);"function"===typeof i.filter?(a=i.filter,n=a("",n)):s(i.filter)&&(a=i.filter,r=a);var c,u=[];if("object"!==typeof n||null===n)return"";c=t&&t.arrayFormat in o?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=o[c];r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);for(var d=0;d<r.length;++d){var p=r[d];i.skipNulls&&null===n[p]||l(u,h(n[p],p,f,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var y=u.join(i.delimiter),g=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),y.length>0?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<d.length;++r)0===d[r].indexOf("utf8=")&&(d[r]===c?h="utf-8":d[r]===s&&(h="iso-8859-1"),p=r,r=d.length);for(r=0;r<d.length;++r)if(r!==p){var m,y,g=d[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(m=t.decoder(g,i.decoder,h),y=t.strictNullHandling?null:""):(m=t.decoder(g.slice(0,b),i.decoder,h),y=t.decoder(g.slice(b+1),i.decoder,h)),y&&t.interpretNumericEntities&&"iso-8859-1"===h&&(y=o(y)),y&&t.comma&&y.indexOf(",")>-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))&&f<r.depth){if(f+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+a.slice(s.index)+"]"),u(l,t,r)}},d=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?i.charset:e.charset;return{allowDots:"undefined"===typeof e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:i.comma,decoder:"function"===typeof e.decoder?e.decoder:i.decoder,delimiter:"string"===typeof e.delimiter||a.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}};e.exports=function(e,t){var r=d(t);if(""===e||null===e||"undefined"===typeof e)return r.plainObjects?Object.create(null):{};for(var n="string"===typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),s=0;s<o.length;++s){var c=o[s],u=f(c,n[c],r);i=a.merge(i,u,r)}return a.compact(i)}},b313:function(e,t,r){"use strict";var a=String.prototype.replace,n=/%20/g,i=r("d2334"),o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:o.RFC3986,formatters:{RFC1738:function(e){return a.call(e,n,"+")},RFC3986:function(e){return String(e)}}},o)},bb2c:function(e,t,r){},c063:function(e,t,r){"use strict";var a=r("51c7"),n=r.n(a);n.a},d133:function(e,t,r){"use strict";var a=r("bb2c"),n=r.n(a);n.a},d2334:function(e,t,r){"use strict";var a=Object.prototype.hasOwnProperty,n=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){while(e.length>1){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var a=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&a.push(r[i]);t.obj[t.prop]=a}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)"undefined"!==typeof e[a]&&(r[a]=e[a]);return r},c=function e(t,r,i){if(!r)return t;if("object"!==typeof r){if(n(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var o=t;return n(t)&&!n(r)&&(o=s(t,i)),n(t)&&n(r)?(r.forEach(function(r,n){if(a.call(t,n)){var o=t[n];o&&"object"===typeof o&&r&&"object"===typeof r?t[n]=e(o,r,i):t.push(r)}else t[n]=r}),t):Object.keys(r).reduce(function(t,n){var o=r[n];return a.call(t,n)?t[n]=e(t[n],o,i):t[n]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},u=function(e,t,r){var a=e.replace(/\+/g," ");if("iso-8859-1"===r)return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch(n){return a}},f=function(e,t,r){if(0===e.length)return e;var a=e;if("symbol"===typeof e?a=Symbol.prototype.toString.call(e):"string"!==typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var n="",o=0;o<a.length;++o){var s=a.charCodeAt(o);45===s||46===s||95===s||126===s||s>=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;a<t.length;++a)for(var n=t[a],i=n.obj[n.prop],s=Object.keys(i),c=0;c<s.length;++c){var l=s[c],u=i[l];"object"===typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:l}),r.push(u))}return o(t),e},p=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},h=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},m=function(e,t){return[].concat(e,t)};e.exports={arrayToObject:s,assign:l,combine:m,compact:d,decode:u,encode:f,isBuffer:h,isRegExp:p,merge:c}},d678:function(e,t,r){"use strict";var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"mempty",class:e.full?"full":null},[r("div",{class:[e.icon?e.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[e._v(e._s(e.msg?e.msg:"暂无内容"))])])},n=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=i,s=(r("c063"),r("2877")),c=Object(s["a"])(o,a,n,!1,null,"45d1a48f",null);t["a"]=c.exports},d85e:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"wrap",attrs:{id:"remuneration"}},[e.headerStatus?r("m-header"):e._e(),r("div",{staticClass:"monthMoney"},[e._v(e._s(e.appealDate)+"课酬 "),r("br"),r("span",[e._v("总计:"+e._s(e.allMoney)+"元")])]),e.statistics.length>0?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}}]);