(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["salesRanking/page/index/index"],{"0246":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(a("3747")),i=s(a("cc49"));function s(e){return e&&e.__esModule?e:{default:e}}var r=function(){a.e("components/seleBar").then(function(){return resolve(a("8d22"))}.bind(null,a)).catch(a.oe)},o=function(){a.e("salesRanking/components/more").then(function(){return resolve(a("f35a"))}.bind(null,a)).catch(a.oe)},c=function(){a.e("salesRanking/components/charge").then(function(){return resolve(a("86ff"))}.bind(null,a)).catch(a.oe)},u=function(){a.e("salesRanking/components/datePopup").then(function(){return resolve(a("37472"))}.bind(null,a)).catch(a.oe)},l=function(){a.e("salesRanking/components/filters").then(function(){return resolve(a("56c7"))}.bind(null,a)).catch(a.oe)},g={components:{seleBar:r,moreFillend:o,charge:c,datePopup:u,filters:l},data:function(){return{seachValue:"",index:0,single:"",isShow:{moreFilled:!0,charge:!1,date:!1,filters:!1,refresherTriggered:!1},seleBarData:[{lable:"柴油",value:"DIESEL",open:!0},{lable:"汽油",value:"PETROL",open:!0},{lable:"LNG",value:"GAS",open:!0}],permission:!1,getData:{pageSize:5,currentPage:1,params:{endTime:"",startTime:"",productType:"DIESEL",dataArrangement:"desc",customerId:"",customerName:"全部"}},dataList:[],endDate:null}},watch:{"isShow.charge":{handler:function(e,t){e||(this.getData.currentPage=1,this.getlist())},deep:!0}},created:function(){var e=new Date,t=new Date(e.getTime()-864e5);this.getData.params.endTime="".concat(t.getFullYear(),"-").concat(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,"-").concat(t.getDate()<10?"0"+t.getDate():t.getDate()),this.getData.params.startTime="".concat(t.getFullYear(),"-").concat(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,"-").concat(t.getDate()<10?"0"+t.getDate():t.getDate())},onShow:function(){},onLoad:function(){},mounted:function(){this.getlist()},filters:{price:function(e){return i.default.convertW(e)}},methods:{refresherrefresh:function(){this.getData.currentPage=1,this.isShow.refresherTriggered=!0,this.getlist()},moreif:function(e){return!!this.seleBarData[this.index].open&&(-1!=String(this.dataList.length/2).indexOf(".")?e+1==(this.dataList.length+1)/2:e+1==this.dataList.length/2)},jump:function(t){e.navigateTo({url:"../enterpriseDetails/enterpriseDetails?jsData="+JSON.stringify(Object.assign(t,{endTime:this.getData.params.endTime,startTime:this.getData.params.startTime}))})},getlist:function(){var t=this;this.getData.pageSize=this.seleBarData[this.index].open?5:10,n.default.findOilSiteDesc(this.getData).then((function(a){if(t.isShow.refresherTriggered=!1,2e4===a.code){if(t.permission=0!=Number(a.data.params.permission),0==a.data.list.length)return e.showToast({title:"没有数据了哦",icon:"none"}),void(1==t.getData.currentPage&&(t.dataList=[]));t.seleBarData[t.index].open&&a.data.list.length<10&&(t.seleBarData[t.index].open=!1),1===t.getData.currentPage?t.dataList=a.data.list:t.dataList=t.dataList.concat(a.data.list)}}))},scrolltolower:function(){e.showToast({title:"到底了",icon:"none"}),this.seleBarData[this.index].open||(this.getData.currentPage+=1,this.getlist())},filtersChange:function(e){this.getData.currentPage=1,this.getData.params.dataArrangement=e.value,this.getlist()},datePopupChange:function(e){this.getData.currentPage=1,this.getData.params.startTime=e[0],this.getData.params.endTime=e[1],console.log(e,this.getData,this.seleBarData[this.index].open,"datePopupChange"),this.getlist()},chargeChange:function(e){this.getData.params.customerId=e.id,this.getData.params.customerName=e.userName,console.log(e,"****************")},chargeOpen:function(){console.log(this.permission,"****************"),this.permission&&(this.isShow.charge=!0)},moreFilledFn:function(){this.getData.currentPage=1,this.seleBarData[this.index].open=!1,this.getlist()},forList:function(e){for(var t=[],a=0;a