(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["salesRanking/page/enterpriseDetails/enterpriseDetails"],{"1ff1":function(e,t,a){},"277e":function(e,t,a){"use strict";a.r(t);var n=a("d805"),r=a("ae4e");for(var i in r)"default"!==i&&function(e){a.d(t,e,(function(){return r[e]}))}(i);a("a249");var o,s=a("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"5406eb2f",null,!1,n["a"],o);t["default"]=c.exports},"561c":function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(a("3747")),r=i(a("cc49"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function s(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return r.default.convertW(e)},distinguish:function(e){return this.routerIndex?e.siteName:e.companyName}},methods:{datePopupChange:function(e){var t,a=this;n.default[this.routerIndex?"queryBusinessIncome":"queryEnterpriseIncome"]((t={},c(t,this.routerIndex?"siteId":"companyId",this.dedata.id),c(t,"endTime",e[1]),c(t,"startTime",e[0]),t)).then((function(t){a.enterpriseData=t.data,a.income=t.data.enterpriseContributionAmount,a.quantity=t.data.orderNumber,a.dedata.startTime=e[0],a.dedata.endTime=e[1]})),console.log(e)},ishowFn:function(){this.isShow.date=!0},chartsDataFn:function(){},getdata:function(e){var t,a=this;n.default[this.routerIndex?"findSiteMovingPinVo":"findEnterpriSemovingPinVo"](c({},this.routerIndex?"siteId":"companyId",e.id)).then((function(e){if(2e4===e.code){a.detailsData=e.data;var t=[];a.detailsData.createTime.forEach((function(e,n){t.push("".concat(e.split("-")[1],"/").concat(e.split("-")[2])),a.detailsData.money[n]=a.detailsData.money[n].toFixed(2)})),a.Line={categories:t,series:[{name:"金额",data:a.detailsData.money}]}}})),n.default[this.routerIndex?"checkTheFiveDayRechargeAmount":"queryRechargeCompanyFiveDays"](c({},this.routerIndex?"siteId":"companyId",e.id)).then((function(e){a.chartsData=e.data;var t=[];e.data.createTime.forEach((function(a,n){t.push("".concat(a.split("-")[1],"/").concat(a.split("-")[2])),e.data.money[n]=e.data.money[n].toFixed(2)})),a.LineTwo={categories:t,series:[{name:"金额",data:e.data.money}]}})).catch((function(e){console.log(e,"///")})),n.default[this.routerIndex?"queryBusinessIncome":"queryEnterpriseIncome"]((t={},c(t,this.routerIndex?"siteId":"companyId",e.id),c(t,"endTime",e.endTime),c(t,"startTime",e.startTime),t)).then((function(e){a.enterpriseData=e.data,a.income=e.data.enterpriseContributionAmount,a.quantity=e.data.orderNumber,console.log(e,"收入")}))},jump:function(t){switch(this.dedata.routerIndex=this.routerIndex,t){case 1:e.navigateTo({url:"../contribution/contribution?jsData="+JSON.stringify(Object.assign(this.dedata,s({liters:this.enterpriseData.liters,enterpriseContributionAmount:this.enterpriseData.enterpriseContributionAmount},this.detailsData)))});break;case 2:console.log(this.dedata,"rechargeRecordrechargeRecordrechargeRecordrechargeRecord"),e.navigateTo({url:"../rechargeRecord/rechargeRecord?jsData="+JSON.stringify(Object.assign(this.dedata,s({routerIndex:this.routerIndex,gasStationBalance:this.detailsData.gasStationBalance,amountYesterday:this.detailsData.amountYesterday},this.detailsData)))});break;case 3:e.navigateTo({url:"../orderQuantity/orderQuantity?jsData="+JSON.stringify(Object.assign(this.dedata,this.enterpriseData))});break}},swiperChange:function(e){this.chartSeleIndex=e.detail.current},chartSeleBarFn:function(e,t){this.chartSeleIndex=t}}};t.default=l}).call(this,a("543d")["default"])},"67ec":function(e,t,a){"use strict";(function(e){a("84da");n(a("66fd"));var t=n(a("277e"));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"])},a249:function(e,t,a){"use strict";var n=a("1ff1"),r=a.n(n);r.a},ae4e:function(e,t,a){"use strict";a.r(t);var n=a("561c"),r=a.n(n);for(var i in n)"default"!==i&&function(e){a.d(t,e,(function(){return n[e]}))}(i);t["default"]=r.a},d805:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return i})),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"))}},r=function(){var e=this,t=e.$createElement,a=(e._self._c,e._f("price")(e.detailsData.gasStationBalance)),n=e.routerIndex?null:e._f("price")(e.detailsData.totalBalance),r={extra:{area:{type:"curve",addLine:!0,gradient:!0}}},i=e.detailsData.todaySalesRose.toFixed(2),o=e._f("price")(e.detailsData.siteDayBalance),s={extra:{area:{type:"curve",addLine:!0,gradient:!0}}},c=e._f("price")(e.chartsData.rechargeAmountOnTheDay),u=e._f("timeProcessing")(e.dedata.startTime),d=e._f("timeProcessing")(e.dedata.endTime),l=e._f("price")(e.income);e.$mp.data=Object.assign({},{$root:{f0:a,f1:n,a0:r,g0:i,f2:o,a1:s,f3:c,f4:u,f5:d,f6:l}})},i=[]}},[["67ec","common/runtime","common/vendor"]]]);