MonthAppeal.6a7904e3.js 6.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["MonthAppeal"],{"0920":function(t,a,e){"use strict";e("b2ad")},"530a":function(t,a,e){"use strict";e.d(a,"e",(function(){return s})),e.d(a,"d",(function(){return c})),e.d(a,"b",(function(){return u})),e.d(a,"i",(function(){return l})),e.d(a,"j",(function(){return d})),e.d(a,"c",(function(){return h})),e.d(a,"h",(function(){return f})),e.d(a,"f",(function(){return m})),e.d(a,"k",(function(){return p})),e.d(a,"g",(function(){return v})),e.d(a,"a",(function(){return g}));var n=e("4328"),r=e.n(n),o=e("981f").default,i="/api-teacher",s=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},c=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},u=function(t){return o({url:i+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:r.a.stringify(t)})},l=function(t){return o({url:i+"/teacherSalaryComplaints/add",method:"post",data:r.a.stringify(t)})},d=function(t){return o({url:i+"/teacherSalaryComplaints/get",method:"get",params:t})},h=function(t){return o({url:i+"/teacherSalaryComplaints/findByMonth",method:"post",data:r.a.stringify(t)})},f=function(t){return o({url:i+"/teacherSalaryComplaints/repealComplaints",method:"post",data:r.a.stringify(t)})},m=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},p=function(t){return o({url:i+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},v=function(t){return o({url:i+"/courseReview/getOnlineCourse",method:"get",params:t})},g=function(t){return o({url:i+"/courseReview/addHomeWork",method:"post",data:t})}},"622a":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"},[t.headerStatus?e("m-header",{attrs:{backUrl:t.backUrl}},[e("template",{slot:"right"},[e("div",{on:{click:t.onAppealRecord}},[t._v("申诉记录")])])],2):t._e(),e("van-dropdown-menu",{attrs:{"active-color":"#01C1B5"}},[e("van-dropdown-item",{attrs:{options:t.option1},on:{change:t.getList},model:{value:t.value1,callback:function(a){t.value1=a},expression:"value1"}})],1),t.dataShow?e("div",[e("van-cell-group",t._l(t.dataList,(function(a,n){return e("van-cell",{key:n,attrs:{"is-link":""},on:{click:function(e){return t.onSure(a)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v("\n "+t._s(a.monthStr)+"\n "),2!=a.confirmStatus?e("van-tag",{attrs:{color:"#FF8282"}},[t._v("未确认")]):t._e(),2==a.confirmStatus?e("van-tag",[t._v("已确认")]):t._e()]},proxy:!0},{key:"default",fn:function(){return[t._v("\n 总计:"),e("span",{staticClass:"countMoney"},[t._v(t._s(a.totalActualSalary)+"元")])]},proxy:!0}],null,!0)})})),1),e("div",{staticClass:"allCount"},[t._v("\n 合计:"),e("span",{staticClass:"allMoney"},[t._v(t._s(t.totalSalary)),e("i",[t._v("元")])])])],1):e("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无数据"}})],1)},r=[],o=e("6e6e"),i=e("d678"),s=e("ff51"),c=e("530a"),u={name:"teacherList",components:{MHeader:o["a"],MEmpty:i["a"]},data:function(){return{headerStatus:!0,value1:(new Date).getFullYear(),option1:[{text:"2020年",value:2020},{text:"2021年",value:2021},{text:"2022年",value:2022}],dataShow:!0,dataList:[],totalSalary:0,backUrl:{callBack:function(){Object(s["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(s["b"])().iPhone&&window.webkit.messageHandlers.DAYA.postMessage(JSON.stringify({api:"back"}))}}}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="月度课酬列表",this.getList()},methods:{getList:function(){var t=this;this.$toast.loading({duration:0,forbidClick:!0,message:"加载中..."}),Object(c["f"])({year:this.value1}).then((function(a){var e=a.data;if(t.$toast.clear(),200==e.code){t.totalSalary=e.data.totalSalary;var n=new Date;n.setMonth(n.getMonth()-1);var r=n.getFullYear()+"-"+Object(s["h"])(n.getMonth()+1);e.data.monthSalarys.forEach((function(t){t.month==r?t.isNow=!0:t.isNow=!1;var a=new Date(t.month+"-01");t.monthStr=a.getMonth()+1+"月"})),t.dataList=e.data.monthSalarys.reverse(),t.dataList.length<=0?t.dataShow=!1:t.dataShow=!0}else t.$toast(e.msg)}))},onSure:function(t){this.$router.push({path:"/remuneration",query:{month:t.month,isHide:1}})},onAppealRecord:function(){this.$router.push({path:"appealRecord"})}}},l=u,d=(e("0920"),e("2877")),h=Object(d["a"])(l,n,r,!1,null,"7cfec28a",null);a["default"]=h.exports},"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)])])},r=[],o={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)}}},i=o,s=(e("70bb"),e("2877")),c=Object(s["a"])(i,n,r,!1,null,"10a70108",null);a["a"]=c.exports},"70bb":function(t,a,e){"use strict";e("c905")},"852e":function(t,a,e){},b2ad:function(t,a,e){},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:"暂无内容"))])])},r=[],o={name:"mempty",props:{icon:String,msg:String,full:Boolean}},i=o,s=(e("bad8"),e("2877")),c=Object(s["a"])(i,n,r,!1,null,"31cc2a9d",null);a["a"]=c.exports}}]);