1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["AppealRecord"],{"031e":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wrap"},[t.headerStatus?a("m-header"):t._e(),t.dataShow?a("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.dataList,function(e,n){return a("van-cell",{key:n,class:"WITHDRAWN"==e.statusEnum?"hideArrow":"",attrs:{"is-link":""},on:{click:function(a){return t.onGOTO(e)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(t._s(t._f("getMonthDay")(e.createTime))+" "+t._s(t._f("getHourMin")(e.createTime))+" ")]},proxy:!0},{key:"default",fn:function(){return[t._v(t._s(new Date(e.salarySettlementMonth+"-01").getMonth()+1)+"月课酬申诉\n "),a("span",{class:e.statusEnum},[t._v(t._s(t._f("statusFilter")(e.statusEnum)))])]},proxy:!0}],null,!0)})}),1):a("m-empty",{key:"data",staticClass:"empty",attrs:{msg:"暂无数据"}})],1)},s=[],i=a("6e6e"),o=a("d678"),r=a("ff51"),u=a("530a"),c={name:"appealReocrd",components:{MHeader:i["a"],MEmpty:o["a"]},data:function(){return{headerStatus:!0,loading:!1,finished:!1,dataShow:!0,dataList:[],params:{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="课酬申诉记录"},methods:{onGOTO:function(t){"PENDING"==t.statusEnum?this.$router.push({path:"appealDetail",query:{record:1,haveComplaints:1,appealDateStr:t.salarySettlementMonth,history:!0}}):"DONE"!=t.statusEnum&&"AGREED"!=t.statusEnum&&"DENIED"!=t.statusEnum||this.$router.push({path:"appealResult",query:{id:t.id,history:!0}})},getList:function(){var t=this,e=this.params;Object(u["k"])().then(function(a){var n=a.data;t.loading=!1,200==n.code?(e.page=n.data.pageNo,t.dataList=t.dataList.concat(n.data.rows),e.page>=n.data.totalPage&&(t.finished=!0),t.params.page++):t.finished=!0,t.dataList.length<=0&&(t.dataShow=!1)})}},filters:{getHourMin:function(t){var e=t;if(!t)return"";"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var a=e.getHours(),n=e.getMinutes();return Object(r["e"])(a)+":"+Object(r["e"])(n)},getMonthDay:function(t){var e=t||new Date;"string"==typeof e&&(e=new Date(t.replace(/-/gi,"/")));var a=e.getMonth()+1,n=e.getDate();return a+"月"+n+"日"},statusFilter:function(t){var e={PENDING:"处理中",DONE:"已完成",AGREED:"已同意",DENIED:"已拒绝",WITHDRAWN:"已撤销"};return e[t]}}},l=c,d=(a("bbcf"),a("2877")),f=Object(d["a"])(l,n,s,!1,null,"7e54797c",null);e["default"]=f.exports},3767:function(t,e,a){"use strict";var n=a("a146"),s=a.n(n);s.a},"3a6b":function(t,e,a){},a146:function(t,e,a){},bbcf:function(t,e,a){"use strict";var n=a("3a6b"),s=a.n(n);s.a},d678:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mempty",class:t.full?"full":null},[a("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),a("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},s=[],i={name:"mempty",props:{icon:String,msg:String,full:Boolean}},o=i,r=(a("3767"),a("2877")),u=Object(r["a"])(o,n,s,!1,null,"b8a90dfc",null);e["a"]=u.exports}}]);
|