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.8 KiB
1 lines
5.8 KiB
(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<e;a++)t.push(a);return t},seleBarFn:function(e,t){console.log("%c 当前选择项↓","color:red;font-size:50px"),console.log(e,t),this.dataList=[],this.getData.currentPage=1,this.index=t,this.getData.params.productType=e.value,this.isShow.moreFilled=this.seleBarData[this.index].open,this.getlist()}}};t.default=g}).call(this,a("543d")["default"])},"2a96":function(e,t,a){"use strict";(function(e){a("84da");n(a("66fd"));var t=n(a("d809"));function n(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=a,e(t.default)}).call(this,a("543d")["createPage"])},6560:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return n}));var n={uniIcons:function(){return Promise.all([a.e("common/vendor"),a.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(a.bind(null,"65b9"))}},i=function(){var e=this,t=e.$createElement,a=(e._self._c,e.getData.params.startTime.split(" ")),n=e.getData.params.endTime.split(" "),i=0!==e.dataList.length?e.__map(e.dataList,(function(t,a){var n=e.__get_orig(t),i=t.volume.toFixed(2),s=e._f("price")(t.realPrice),r=e.moreif(a);return{$orig:n,g2:i,f0:s,m0:r}})):null;e._isMounted||(e.e0=function(t){e.isShow.date=!0},e.e1=function(t){e.isShow.filters=!0}),e.$mp.data=Object.assign({},{$root:{g0:a,g1:n,l0:i}})},s=[]},"6aea":function(e,t,a){"use strict";a.r(t);var n=a("0246"),i=a.n(n);for(var s in n)"default"!==s&&function(e){a.d(t,e,(function(){return n[e]}))}(s);t["default"]=i.a},"9ffa":function(e,t,a){},af03:function(e,t,a){"use strict";var n=a("9ffa"),i=a.n(n);i.a},d809:function(e,t,a){"use strict";a.r(t);var n=a("6560"),i=a("6aea");for(var s in i)"default"!==s&&function(e){a.d(t,e,(function(){return i[e]}))}(s);a("af03");var r,o=a("f0c5"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"5cf8f820",null,!1,n["a"],r);t["default"]=c.exports}},[["2a96","common/runtime","common/vendor"]]]); |