1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["MonthAppeal"],{"2d236":function(t,a,e){},"51c7":function(t,a,e){},"530a":function(t,a,e){"use strict";e.d(a,"e",function(){return i}),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,s="/api-teacher",i=function(t){return o({url:s+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},c=function(t){return o({url:s+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},u=function(t){return o({url:s+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:r.a.stringify(t)})},l=function(t){return o({url:s+"/teacherSalaryComplaints/add",method:"post",data:r.a.stringify(t)})},d=function(t){return o({url:s+"/teacherSalaryComplaints/get",method:"get",params:t})},h=function(t){return o({url:s+"/teacherSalaryComplaints/findByMonth",method:"post",data:r.a.stringify(t)})},f=function(t){return o({url:s+"/teacherSalaryComplaints/repealComplaints",method:"post",data:r.a.stringify(t)})},m=function(t){return o({url:s+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},p=function(t){return o({url:s+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},v=function(t){return o({url:s+"/courseReview/getOnlineCourse",method:"get",params:t})},g=function(t){return o({url:s+"/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"),s=e("d678"),i=e("ff51"),c=e("530a"),u={name:"teacherList",components:{MHeader:o["a"],MEmpty:s["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(i["b"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(i["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(i["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("b994"),e("2877")),h=Object(d["a"])(l,n,r,!1,null,"0a8273e7",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",[t._v(t._s(t.name?t.name:this.$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)}}},s=o,i=(e("d133"),e("2877")),c=Object(i["a"])(s,n,r,!1,null,"0e835508",null);a["a"]=c.exports},b994:function(t,a,e){"use strict";var n=e("2d236"),r=e.n(n);r.a},bb2c:function(t,a,e){},c063:function(t,a,e){"use strict";var n=e("51c7"),r=e.n(n);r.a},d133:function(t,a,e){"use strict";var n=e("bb2c"),r=e.n(n);r.a},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}},s=o,i=(e("c063"),e("2877")),c=Object(i["a"])(s,n,r,!1,null,"45d1a48f",null);a["a"]=c.exports}}]);
|