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
6.0 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["salesRanking/page/enterpriseDetails/enterpriseDetails"],{3308:function(e,t,a){},4079:function(e,t,a){"use strict";var n=a("3308"),i=a.n(n);i.a},"6cdc":function(e,t,a){"use strict";(function(e){a("6e43");n(a("66fd"));var t=n(a("9bcd"));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"])},"7de1":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return r})),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,"3b32"))}},i=function(){var e=this,t=e.$createElement,a=(e._self._c,e._f("price")(e.detailsData.gasStationBalance)),n={extra:{area:{type:"curve",addLine:!0,gradient:!0}}},i=e.detailsData.todaySalesRose.toFixed(2),r=e._f("price")(e.detailsData.siteDayBalance),o={extra:{area:{type:"curve",addLine:!0,gradient:!0}}},s=e._f("price")(e.chartsData.rechargeAmountOnTheDay),u=e._f("timeProcessing")(e.dedata.startTime),c=e._f("timeProcessing")(e.dedata.endTime),d=e._f("price")(e.income);e.$mp.data=Object.assign({},{$root:{f0:a,a0:n,g0:i,f1:r,a1:o,f2:s,f3:u,f4:c,f5:d}})},r=[]},8333:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(a("b922")),i=r(a("b523"));function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var s=function(){a.e("salesRanking/components/datePopup").then(function(){return resolve(a("2f01"))}.bind(null,a)).catch(a.oe)},u=function(){Promise.all([a.e("common/vendor"),a.e("salesRanking/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts")]).then(function(){return resolve(a("a045"))}.bind(null,a)).catch(a.oe)},c={components:{datePopup:s,qiunDataCharts:u},data:function(){return{routerIndex:!0,enterpriseData:null,isShow:{date:!1},dedata:null,chartsData:null,income:0,quantity:0,detailsData:null,chartSeleBarData:[{lable:"近五日动销",value:0},{lable:"近五次充值",value:1}],chartSeleIndex:0,Line:{},LineTwo:{}}},onLoad:function(e){console.log(e);var t=getCurrentPages(),a=-1!=t[t.length-2].$page.fullPath.indexOf("?")?t[t.length-2].$page.fullPath.split("?")[0].split("/")[t[t.length-2].$page.fullPath.split("?")[0].split("/").length-1]:t[t.length-2].$page.fullPath.split("/")[t[t.length-2].$page.fullPath.split("/").length-1];this.routerIndex="enterpriseIndex"!=a,console.log(a),console.log(this.routerIndex),e.jsData&&(this.dedata=JSON.parse(e.jsData),this.getdata(JSON.parse(e.jsData)),console.log(this.dedata,"*******"))},filters:{timeProcessing:function(e){return e?e.split(" ")[0]:e},price:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i.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={},o(t,this.routerIndex?"siteId":"companyId",this.dedata.id),o(t,"endTime",e[1]),o(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;console.log(this.routerIndex,"**************"),n.default[this.routerIndex?"findSiteMovingPinVo":"findEnterpriSemovingPinVo"](o({},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"](o({},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={},o(t,this.routerIndex?"siteId":"companyId",e.id),o(t,"endTime",e.endTime),o(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,{liters:this.enterpriseData.liters,enterpriseContributionAmount:this.enterpriseData.enterpriseContributionAmount}))});break;case 2:e.navigateTo({url:"../rechargeRecord/rechargeRecord?jsData="+JSON.stringify(Object.assign(this.dedata,{routerIndex:this.routerIndex,gasStationBalance:this.detailsData.gasStationBalance,amountYesterday:this.detailsData.amountYesterday}))});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=c}).call(this,a("543d")["default"])},"9bcd":function(e,t,a){"use strict";a.r(t);var n=a("7de1"),i=a("ffd4");for(var r in i)"default"!==r&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("4079");var o,s=a("f0c5"),u=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"23c09a56",null,!1,n["a"],o);t["default"]=u.exports},ffd4:function(e,t,a){"use strict";a.r(t);var n=a("8333"),i=a.n(n);for(var r in n)"default"!==r&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a}},[["6cdc","common/runtime","common/vendor"]]]);