| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["MonthAppeal"],{"19a3":function(t,a,e){"use strict";var n=e("55b2"),r=e.n(n);r.a},"31b8":function(t,a,e){"use strict";var n=e("3e2c"),r=e.n(n);r.a},3354:function(t,a,e){},"3e2c":function(t,a,e){},5115:function(t,a,e){"use strict";var n=e("3354"),r=e.n(n);r.a},"530a":function(t,a,e){"use strict";e.d(a,"d",function(){return i}),e.d(a,"c",function(){return c}),e.d(a,"a",function(){return l}),e.d(a,"g",function(){return u}),e.d(a,"h",function(){return d}),e.d(a,"b",function(){return h}),e.d(a,"f",function(){return f}),e.d(a,"e",function(){return m}),e.d(a,"i",function(){return p});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})},l=function(t){return o({url:s+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:r.a.stringify(t)})},u=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})}},"55b2":function(t,a,e){},"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",[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,class:a.isNow?"":"disabled",attrs:{title:a.monthStr},scopedSlots:t._u([{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"),l={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["a"])().android?DAYA.postMessage(JSON.stringify({api:"back"})):Object(i["a"])().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["e"])({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["c"])(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)})},onAppealRecord:function(){this.$router.push({path:"appealRecord"})}}},u=l,d=(e("31b8"),e("2877")),h=Object(d["a"])(u,n,r,!1,null,"469ee728",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("5115"),e("2877")),c=Object(i["a"])(s,n,r,!1,null,"61d0e2e4",null);a["a"]=c.exports},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"},[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}},s=o,i=(e("19a3"),e("2877")),c=Object(i["a"])(s,n,r,!1,null,"67669af7",null);a["a"]=c.exports}}]);
|