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

2 years ago
(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;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){c(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function c(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var u=function(){a.e("salesRanking/components/datePopup").then(function(){return resolve(a("37472"))}.bind(null,a)).catch(a.oe)},d=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("3330"))}.bind(null,a)).catch(a.oe)},l={components:{datePopup:u,qiunDataCharts:d},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)))},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 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(