1 |
- (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;C<S.length;++C){var j=S[C];o&&null===b[j]||(s(b)?l(w,e(b[j],"function"===typeof a?a(r,j):r,a,i,o,c,u,f,h,m,y,g,v)):l(w,e(b[j],r+(h?"."+j:"["+j+"]"),a,i,o,c,u,f,h,m,y,g,v)))}return w},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=a["default"];if("undefined"!==typeof e.format){if(!i.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=a.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:n,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,n,a=e,i=m(t);"function"===typeof i.filter?(n=i.filter,a=n("",a)):s(i.filter)&&(n=i.filter,r=n);var c,u=[];if("object"!==typeof a||null===a)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(a)),i.sort&&r.sort(i.sort);for(var d=0;d<r.length;++d){var p=r[d];i.skipNulls&&null===a[p]||l(u,h(a[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 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<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(",")),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))&&f<r.depth){if(f+=1,!r.plainObjects&&a.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+n.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||n.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 a="string"===typeof e?l(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],u=f(c,a[c],r);i=n.merge(i,u,r)}return n.compact(i)}},b313:function(e,t,r){"use strict";var n=String.prototype.replace,a=/%20/g,i=r("d2334"),o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:o.RFC3986,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}}},o)},bb2c:function(e,t,r){},c063:function(e,t,r){"use strict";var n=r("51c7"),a=r.n(n);a.a},d133:function(e,t,r){"use strict";var n=r("bb2c"),a=r.n(n);a.a},d2334:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,a=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(a(r)){for(var n=[],i=0;i<r.length;++i)"undefined"!==typeof r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},s=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)"undefined"!==typeof e[n]&&(r[n]=e[n]);return r},c=function e(t,r,i){if(!r)return t;if("object"!==typeof r){if(a(t))t.push(r);else{if(!t||"object"!==typeof t)return[t,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(r);var o=t;return a(t)&&!a(r)&&(o=s(t,i)),a(t)&&a(r)?(r.forEach(function(r,a){if(n.call(t,a)){var o=t[a];o&&"object"===typeof o&&r&&"object"===typeof r?t[a]=e(o,r,i):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var o=r[a];return n.call(t,a)?t[a]=e(t[a],o,i):t[a]=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 n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(a){return n}},f=function(e,t,r){if(0===e.length)return e;var n=e;if("symbol"===typeof e?n=Symbol.prototype.toString.call(e):"string"!==typeof e&&(n=String(e)),"iso-8859-1"===r)return escape(n).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var a="",o=0;o<n.length;++o){var s=n.charCodeAt(o);45===s||46===s||95===s||126===s||s>=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;n<t.length;++n)for(var a=t[n],i=a.obj[a.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 n=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:"暂无内容"))])])},a=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=i,s=(r("c063"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"45d1a48f",null);t["a"]=c.exports},d85e:function(e,t,r){"use strict";r.r(t);var n=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,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}}}]);
|