webpackJsonp([16],{lOtE:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("Gu7T"),s=i.n(a),n=(i("OGwZ"),{name:"ProfitAndLossRecord",data:function(){return{img:i("P7PG"),img1:i("uhdz"),img2:i("Hw0H"),active:0,list:[],date:"",startTime:"",endTime:"",page:1,pageSize:10,timers:!0}},created:function(){this.initialTime()},methods:{getuserData:function(){var t=this;localStorage.getItem("token")&&this.$http.post(this.$ports.login.getAgent,{token:localStorage.getItem("token")}).then(function(e){-4001==e.data.status&&(t.$store.dispatch("SET_TOKEN",""),t.$store.dispatch("GET_ISSHOW",!1),t.$dialog.toast({mes:"对不起您的登录已过期,请您重新登录",timeout:3e3}),t.$router.push("/"))})},reset:function(){this.list=[],this.page=1,this.$refs.infinitescrollDemo.$emit("ydui.infinitescroll.reInit"),this.loadList()},toRouter:function(){this.$router.go(-2)},initialTime:function(){var t=new Date,e=new Date(t);e.setMonth(t.getMonth()-3),this.startDate+=e.getFullYear()+"-"+(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"-"+(e.getDate()<10?"0"+e.getDate():e.getDate()),this.date+=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate()),this.endTime+=t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate()),this.startTime=t.getFullYear()+"-"+(t.getMonth()-2<10?"0"+(t.getMonth()-2):t.getMonth()-2)+"-"+(t.getDate()<10?"0"+t.getDate():t.getDate())},loadList:function(){var t=this;this.$http.post(this.$ports.login.ProfitAndLossRecord,{currentPage:this.page,pageSize:this.pageSize,startTime:this.startTime+" 00:00:00",endTime:this.endTime+" 23:59:59",token:localStorage.getItem("token"),money_type:1}).then(function(e){if(e.data.data){var i=e.data.data.list;t.list=[].concat(s()(t.list),s()(i))}if(e.data.data.list.length