1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Remuneration"],{"530a":function(t,a,e){"use strict";e.d(a,"e",(function(){return o})),e.d(a,"d",(function(){return l})),e.d(a,"b",(function(){return c})),e.d(a,"i",(function(){return u})),e.d(a,"j",(function(){return d})),e.d(a,"c",(function(){return f})),e.d(a,"h",(function(){return p})),e.d(a,"f",(function(){return m})),e.d(a,"k",(function(){return h})),e.d(a,"g",(function(){return v})),e.d(a,"a",(function(){return g}));var n=e("4328"),s=e.n(n),i=e("981f").default,r="/api-teacher",o=function(t){return i({url:r+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},l=function(t){return i({url:r+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},c=function(t){return i({url:r+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:s.a.stringify(t)})},u=function(t){return i({url:r+"/teacherSalaryComplaints/add",method:"post",data:s.a.stringify(t)})},d=function(t){return i({url:r+"/teacherSalaryComplaints/get",method:"get",params:t})},f=function(t){return i({url:r+"/teacherSalaryComplaints/findByMonth",method:"post",data:s.a.stringify(t)})},p=function(t){return i({url:r+"/teacherSalaryComplaints/repealComplaints",method:"post",data:s.a.stringify(t)})},m=function(t){return i({url:r+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},h=function(t){return i({url:r+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},v=function(t){return i({url:r+"/courseReview/getOnlineCourse",method:"get",params:t})},g=function(t){return i({url:r+"/courseReview/addHomeWork",method:"post",data:t})}},"6e6e":function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mheader"},[e("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[e("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),e("div",{staticClass:"m-nav-bar__title"},[t._t("default",(function(){return[t._v(t._s(t.name?t.name:t.$route.meta.descrition))]}))],2),e("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},s=[],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 t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},r=i,o=(e("70bb"),e("2877")),l=Object(o["a"])(r,n,s,!1,null,"10a70108",null);a["a"]=l.exports},"70bb":function(t,a,e){"use strict";e("c905")},"852e":function(t,a,e){},"89f4":function(t,a,e){},a315:function(t,a,e){"use strict";e("89f4")},bad8:function(t,a,e){"use strict";e("852e")},c905:function(t,a,e){},d678:function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mempty",class:t.full?"full":null},[e("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),e("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},s=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},r=i,o=(e("bad8"),e("2877")),l=Object(o["a"])(r,n,s,!1,null,"31cc2a9d",null);a["a"]=l.exports},d85e:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"wrap",attrs:{id:"remuneration"}},[t.headerStatus?e("m-header"):t._e(),e("div",{staticClass:"monthMoney"},[t._v(t._s(t.appealDate)+"课酬 "),e("br"),e("span",[t._v("总计:"+t._s(t.allMoney)+"元")])]),t.statistics.length>0?e("div",{staticClass:"monthCount"},t._l(t.statistics,(function(a,n){return e("div",{key:n,staticClass:"item"},["MUSIC"==a.statType?e("span",{staticClass:"title"},[t._v("乐团课合计")]):t._e(),"VIP"==a.statType?e("span",{staticClass:"title"},[t._v("VIP课合计")]):t._e(),"PRACTICE"==a.statType?e("span",{staticClass:"title"},[t._v("网管课合计")]):t._e(),"REWARD"==a.statType?e("span",{staticClass:"title"},[t._v("转结奖励合计")]):t._e(),e("span",[t._v(t._s(a.courseTimes)+t._s("REWARD"==a.statType?"组":"节"))]),e("span",{staticClass:"money"},[t._v(t._s(a.totalActualSalary)+"元")])])})),0):t._e(),e("div",{class:0==t.confirmStatus?"paddingB80":"paddingB16"},[e("van-tabs",{model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},[e("van-tab",{attrs:{title:"课酬明细"}},[t.dataShow?e("div",{key:"data"},[e("van-list",{attrs:{finished:t.finished,"finished-text":" "},on:{load:t.getList},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},t._l(t.dataList,(function(a,n){return e("van-cell-group",{key:n},[e("van-cell",{scopedSlots:t._u([{key:"icon",fn:function(){return["PRACTICE"==a.groupType?e("i",{staticClass:"icon icon_audition"}):t._e(),"VIP"==a.groupType?e("i",{staticClass:"icon icon_vip"}):t._e(),"MUSIC"==a.groupType?e("i",{staticClass:"icon icon_music"}):t._e()]},proxy:!0},{key:"title",fn:function(){return[e("div",{staticClass:"title"},[t._v(t._s(a.courseName))]),e("div",{staticClass:"baseInfo"},[e("p",[t._v("排课:"+t._s(t._f("getMonthDay")(a.startClassTime))+" "+t._s(t._f("getHourMin")(a.startClassTime))+"-"+t._s(t._f("getHourMin")(a.endClassTime)))]),e("p",[t._v("签到:"+t._s(t._f("getHourMin")(a.signInTime))+" 签退:"+t._s(t._f("getHourMin")(a.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[e("p",{staticClass:"money",class:[a.reduceSalary>0?"error":""]},[t._v("\n ¥"),e("span",[t._v(t._s(a.finalSalary))])]),a.reduceSalary>0?e("div",{staticClass:"moneyInfo"},[t._v("\n 课酬:¥"+t._s(a.actualSalary)+"\n "),e("br"),t._v("扣款:¥"+t._s(a.reduceSalary)+"\n ")]):t._e()]},proxy:!0}],null,!0)})],1)})),1)],1):e("m-empty",{key:"data",staticClass:"empty"})],1),e("van-tab",{attrs:{title:"转结奖励明细"}},[t.dataShow2?e("div",{key:"data2"},[e("van-list",{attrs:{finished:t.finished2,"finished-text":" "},on:{load:t.getList2},model:{value:t.loading2,callback:function(a){t.loading2=a},expression:"loading2"}},t._l(t.dataList2,(function(a,n){return e("van-cell-group",{key:n},[e("van-cell",{scopedSlots:t._u([{key:"icon",fn:function(){return[e("i",{staticClass:"icon icon_reword"})]},proxy:!0},{key:"title",fn:function(){return[e("div",{staticClass:"title"},[t._v(t._s(a.courseName))]),e("div",{staticClass:"baseInfo"},[e("p",[t._v("排课:"+t._s(t._f("getMonthDay")(a.startClassTime))+" "+t._s(t._f("getHourMin")(a.startClassTime))+"-"+t._s(t._f("getHourMin")(a.endClassTime)))]),e("p",[t._v("签到:"+t._s(t._f("getHourMin")(a.signInTime))+" 签退:"+t._s(t._f("getHourMin")(a.signOutTime)))])])]},proxy:!0},{key:"default",fn:function(){return[e("p",{staticClass:"money",class:[a.reduceSalary>0?"error":""]},[t._v("\n ¥"),e("span",[t._v(t._s(a.finalSalary))])]),a.reduceSalary>0?e("div",{staticClass:"moneyInfo"},[t._v("\n 课酬:¥"+t._s(a.actualSalary)+"\n "),e("br"),t._v("扣款:¥"+t._s(a.reduceSalary)+"\n ")]):t._e()]},proxy:!0}],null,!0)})],1)})),1)],1):e("m-empty",{key:"data2",staticClass:"empty"})],1)],1)],1),0==t.confirmStatus?e("div",{staticClass:"button-group"},[e("span",{staticClass:"btn",on:{click:function(a){return t.onAppeal(t.haveComplaints)}}},[t._v(t._s(1==t.haveComplaints?"申诉详情":"问题申诉"))]),e("span",{staticClass:"btn primary",on:{click:t.onConfirmAppeal}},[t._v("确认课酬")])]):t._e()],1)},s=[],i=e("6e6e"),r=e("ff51"),o=e("d678"),l=e("530a"),c={name:"remuneration",components:{MHeader:i["a"],MEmpty:o["a"]},data:function(){var t=this.$route.query,a=new Date(t.month+"-01");t.month||(a=new Date,a.setMonth(a.getMonth()-1));var e=a.getFullYear()+"年"+Object(r["h"])(a.getMonth()+1)+"月",n=a.getFullYear()+"-"+Object(r["h"])(a.getMonth()+1);return{active:0,headerStatus:!0,appealDate:e,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(r["b"])().android||Object(r["b"])().iPhone)&&(1==t.isHide?this.headerStatus=!0:this.headerStatus=!1)},methods:{getList:function(){var t=this,a=this.params;Object(l["e"])(a).then((function(e){var n=e.data;if(t.loading=!1,200==n.code){if(n.data.stat&&n.data.stat.length>0){t.statistics=n.data.stat;var s={courseTimes:0,totalActualSalary:0};n.data.stat.forEach((function(t){s.courseTimes+=t.courseTimes,s.totalActualSalary+=t.totalActualSalary})),t.allMoney=s.totalActualSalary}var i=n.data.pageInfo;a.page=i.pageNo,t.confirmStatus=n.data.confirmStatus,t.haveComplaints=n.data.haveComplaints,t.dataList=t.dataList.concat(i.rows),a.page>=i.totalPage&&(t.finished=!0),t.params.page++}else t.finished=!0;t.dataList.length<=0&&(t.dataShow=!1)}))},getList2:function(){var t=this,a=this.params2;Object(l["d"])(a).then((function(e){var n=e.data;if(t.loading2=!1,200==n.code){var s=n.data;a.page=s.pageNo,t.dataList2=t.dataList2.concat(s.rows),a.page>=s.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(l["b"])({month:t.appealDateStr}).then((function(a){var e=a.data;200==e.code?(t.$toast("课酬确认成功"),t.confirmStatus=1,document.querySelector("#remuneration").scrollTop=0):t.$toast(e.msg)}))})).catch((function(){}))}},filters:{getHourMin:function(t){var a=t;if(!t)return"";"string"==typeof a&&(a=new Date(t.replace(/-/gi,"/")));var e=a.getHours(),n=a.getMinutes();return Object(r["h"])(e)+":"+Object(r["h"])(n)},getMonthDay:function(t){var a=t||new Date;"string"==typeof a&&(a=new Date(t.replace(/-/gi,"/")));var e=a.getMonth()+1,n=a.getDate();return e+"月"+n+"日"}}},u=c,d=(e("a315"),e("2877")),f=Object(d["a"])(u,n,s,!1,null,"c8d5c7a4",null);a["default"]=f.exports}}]);
|