You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
5.7 KiB
1 line
5.7 KiB
3 years ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["salesRanking/page/index/enterpriseIndex"],{"201f":function(t,e,a){},5160:function(t,e,a){"use strict";a.r(e);var n=a("a70c"),i=a.n(n);for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);e["default"]=i.a},"867b":function(t,e,a){"use strict";(function(t){a("6e43");n(a("66fd"));var e=n(a("9b16"));function n(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=a,t(e.default)}).call(this,a("543d")["createPage"])},"86bc":function(t,e,a){"use strict";var n=a("201f"),i=a.n(n);i.a},"9b16":function(t,e,a){"use strict";a.r(e);var n=a("b469"),i=a("5160");for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);a("86bc");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},a70c:function(t,e,a){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(a("b922")),i=r(a("b523"));function r(t){return t&&t.__esModule?t:{default:t}}var s=function(){a.e("components/seleBar").then(function(){return resolve(a("b1f3"))}.bind(null,a)).catch(a.oe)},o=function(){a.e("salesRanking/components/more").then(function(){return resolve(a("28e9"))}.bind(null,a)).catch(a.oe)},c=function(){a.e("salesRanking/components/datePopup").then(function(){return resolve(a("2f01"))}.bind(null,a)).catch(a.oe)},u=function(){a.e("salesRanking/components/filters").then(function(){return resolve(a("74c5"))}.bind(null,a)).catch(a.oe)},l=function(){a.e("salesRanking/components/charge").then(function(){return resolve(a("1d85"))}.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.currentPag
|