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 lines
5.7 KiB
1 lines
5.7 KiB
(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=t.userName,console.log(t)},chargeOpen:function(){this.permission&&(this.isShow.charge=!0)},moreFilledFn:function(){this.getData.currentPage=1,this.seleBarData[this.index].open=!1,this.getlist()},forList:function(t){for(var e=[],a=0;a<t;a++)e.push(a);return e},seleBarFn:function(t,e){console.log("%c 当前选择项↓","color:red;font-size:50px"),console.log(t,e),this.dataList=[],this.getData.currentPage=1,this.index=e,this.getData.params.productType=t.value,this.isShow.moreFilled=this.seleBarData[this.index].open,this.getlist()}}};e.default=g}).call(this,a("543d")["default"])},"5fa0":function(t,e,a){"use strict";var n=a("f00c"),i=a.n(n);i.a},"70e9":function(t,e,a){"use strict";a.r(e);var n=a("1b60"),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},9271:function(t,e,a){"use strict";(function(t){a("84da");n(a("66fd"));var e=n(a("111f"));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"])},d192:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=(t._self._c,t.getData.params.startTime.split(" ")),n=t.getData.params.endTime.split(" "),i=0!==t.dataList.length?t.__map(t.dataList,(function(e,a){var n=t.__get_orig(e),i=e.volume.toFixed(2),r=t._f("price")(e.realPrice),s=t.moreif(a);return{$orig:n,g2:i,f0:r,m0:s}})):null;t._isMounted||(t.e0=function(e){t.isShow.date=!0},t.e1=function(e){t.isShow.filters=!0}),t.$mp.data=Object.assign({},{$root:{g0:a,g1:n,l0:i}})},r=[]},f00c:function(t,e,a){}},[["9271","common/runtime","common/vendor"]]]); |