|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["salesRanking/page/index/enterpriseIndex"],{"111f":function(t,e,a){"use strict";a.r(e);var n=a("d192"),i=a("70e9");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("5fa0");var s,o=a("f0c5"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"4bee1228",null,!1,n["a"],s);e["default"]=c.exports},"1b60":function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(a("3747")),i=r(a("cc49"));function r(t){return t&&t.__esModule?t:{default:t}}var s=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/datePopup").then(function(){return resolve(a("37472"))}.bind(null,a)).catch(a.oe)},u=function(){a.e("salesRanking/components/filters").then(function(){return resolve(a("56c7"))}.bind(null,a)).catch(a.oe)},l=function(){a.e("salesRanking/components/charge").then(function(){return resolve(a("86ff"))}.bind(null,a)).catch(a.oe)},g={components:{seleBar:s,moreFillend:o,charge:l,datePopup:c,filters:u},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(t,e){t||(this.getData.currentPage=1,this.getlist())},deep:!0}},created:function(){var t=new Date,e=new Date(t.getTime()-864e5);this.getData.params.endTime="".concat(e.getFullYear(),"-").concat(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,"-").concat(e.getDate()<10?"0"+e.getDate():e.getDate()),this.getData.params.startTime="".concat(e.getFullYear(),"-").concat(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1,"-").concat(e.getDate()<10?"0"+e.getDate():e.getDate())},onShow:function(){},onLoad:function(){},mounted:function(){this.getlist()},filters:{price:function(t){return i.default.convertW(t)}},methods:{refresherrefresh:function(){this.getData.currentPage=1,this.isShow.refresherTriggered=!0,this.getlist()},imgError:function(t,e,a){},moreif:function(t){return!!this.seleBarData[this.index].open&&(-1!=String(this.dataList.length/2).indexOf(".")?t+1==(this.dataList.length+1)/2:t+1==this.dataList.length/2)},jump:function(e){t.navigateTo({url:"../enterpriseDetails/enterpriseDetails?jsData="+JSON.stringify(Object.assign(e,{endTime:this.getData.params.endTime,startTime:this.getData.params.startTime,productType:this.getData.params.productType}))})},getlist:function(){var e=this;this.getData.pageSize=this.seleBarData[this.index].open?5:10,n.default.findEnterpriseDesc(this.getData).then((function(a){if(e.isShow.refresherTriggered=!1,2e4===a.code){if(e.permission=0!=Number(a.data.params.permission),0==a.data.list.length)return t.showToast({title:"没有数据了哦",icon:"none"}),void(1==e.getData.currentPage&&(e.dataList=[]));e.seleBarData[e.index].open&&a.data.list.length<10&&(e.seleBarData[e.index].open=!1),1===e.getData.currentPage?e.dataList=a.data.list:e.dataList=e.dataList.concat(a.data.list)}}))},scrolltolower:function(){t.showToast({title:"到底了",icon:"none"}),this.seleBarData[this.index].open||(this.getData.currentPage+=1,this.getlist())},filtersChange:function(t){this.getData.currentPage=1,this.getData.params.dataArrangement=t.value,this.seleBarData[this.index].open=!1,this.getlist()},datePopupChange:function(t){this.getData.currentPage=1,this.getData.params.startTime=t[0],this.getData.params.endTime=t[1],console.log(t,this.getData,this.seleBarData[this.index].open,"datePopupChange"),this.getlist()},chargeChange:function(t){this.getData.params.customerId=t.id,this.getData.params.customerName=
|