index.vue 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636
  1. <template>
  2. <view>
  3. <view class="navbar-tit">{{title}}</view>
  4. <view class="statisticsChart" style="margin-top: 120rpx;margin-bottom: 0px">
  5. <view class="statisticsChart-head">
  6. <h4>充电统计</h4>
  7. <view class="navbar-screen ">
  8. <u-button text="月落" size="mini" class="headbotton1" style="border-radius: 10px 0 0 10px;"
  9. :type="current==1?'primary':'info'" @click="changesub(1)">按天</u-button>
  10. <u-button text="月落" size="mini" class="headbotton2" style="border-radius: 0 10px 10px 0;"
  11. :type="current==2?'primary':'info'" @click="changesub(2)">按月</u-button>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="statisticsData">
  16. <view class="detailstableHead" style="
  17. padding-top: 1px;
  18. ">
  19. <view id="pieEcharts" style="min-height:250px;margin-top: 20px">
  20. </view>
  21. </view>
  22. <view class="detailstableHead" v-if="indexData&&false">
  23. <view class="detailsline">
  24. <view class="details-row details-row-head-1 ">
  25. <view class="span1">今日收入</view>
  26. <view class="span2">{{indexData.todayAmount?indexData.todayAmount.toFixed(2):0}}<span>元</span>
  27. </view>
  28. </view>
  29. <view class="details-row details-row-head-2">
  30. <view class="span1">今日利润</view>
  31. <view class="span2">{{indexData.todayProfit?indexData.todayProfit.toFixed(2):0}}<span>元</span>
  32. </view>
  33. </view>
  34. <view class="details-row details-row-head-3">
  35. <view class="span1">今日笔数</view>
  36. <view class="span2">{{indexData.todayEQNum?indexData.todayEQNum:0}}<span>笔</span></view>
  37. </view>
  38. </view>
  39. <view class="detailsline">
  40. <view class="details-row details-row-head-1 ">
  41. <view class="span1">昨日收入</view>
  42. <view class="span2">
  43. {{indexData.yesterdayAmount?indexData.yesterdayAmount.toFixed(2):0}}<span>元</span>
  44. </view>
  45. </view>
  46. <view class="details-row details-row-head-2">
  47. <view class="span1">昨日利润</view>
  48. <view class="span2">
  49. {{indexData.yesterdayProfit?indexData.yesterdayProfit.toFixed(2):0}}<span>元</span>
  50. </view>
  51. </view>
  52. <view class="details-row details-row-head-3">
  53. <view class="span1">昨日笔数</view>
  54. <view class="span2">{{indexData.yesterdayEQNum?indexData.yesterdayEQNum:0}}<span>笔</span></view>
  55. </view>
  56. </view>
  57. <view class="detailsline—bottom">
  58. <view class="details-row details-row-head-1">
  59. <view class="span1">本月收入</view>
  60. <view class="span2">
  61. {{indexData.thisMonthAmount?indexData.thisMonthAmount.toFixed(2):0}}<span>元</span>
  62. </view>
  63. </view>
  64. <view class="details-row details-row-head-2">
  65. <view class="span1">本月利润</view>
  66. <view class="span2">
  67. {{indexData.thisMonthProfit?indexData.thisMonthProfit.toFixed(2):0}}<span>元</span>
  68. </view>
  69. </view>
  70. <view class="details-row details-row-head-3">
  71. <view class="span1">本月笔数</view>
  72. <view class="span2">{{indexData.thisMonthEQNum?indexData.thisMonthEQNum:0}}<span>笔</span></view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <u-picker mode="time" v-model="popupShow" @confirm="changedate" :default-time="queryTime" :params="params">
  78. </u-picker>
  79. <u-picker mode="time" v-model="popupShow2" @confirm="changedate2" :default-time="queryTime2+'-01'"
  80. :params="params"></u-picker>
  81. <u-picker mode="selector" v-model="popupShow3" @confirm="changedate3" :range="stationList" range-key="name"
  82. :default-selector="[selectstationIndex]"></u-picker>
  83. <view class="statisticsChart">
  84. <view class="statisticsChart-head" style="margin-top: 20px;">
  85. <h4>流水统计</h4>
  86. <!-- <view class="navbar-screen" >
  87. {{startTime}}至{{endTime}}
  88. </view> -->
  89. <view class="navbar-screen" @click="popupShow = true" v-if="false">
  90. <span>{{showTime(queryTime)}}</span>
  91. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow"></u-icon>
  92. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow"></u-icon>
  93. </view>
  94. </view>
  95. <u-calendar v-model="popupShow4" mode="range" @change="changedate4"></u-calendar>
  96. <view class="details detailstable">
  97. <p style="text-align: center; margin-bottom: 5px;" @click="popupShow4 = true">
  98. <img src="@/assets/img/riLine-calendar-todo-line.svg" align="absmiddle"
  99. style="height:40rpx;width: 40rpx ;">
  100. {{startTime}}至{{endTime}}
  101. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow4"></u-icon>
  102. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow4"></u-icon>
  103. </p>
  104. <view class="detailsline detailslineHead" v-if="stationFlowList.length>1">
  105. <view class="details-row ">
  106. <view class="span1">总收入</view>
  107. <view class="span2">{{(allMoneySum).toFixed(2)}}<span>元</span></view>
  108. </view>
  109. <view class="details-row">
  110. <view class="span1">总利润<span>(服务费+月卡)</span></view>
  111. <view class="span2">{{(serviceMoneySum).toFixed(2)}}<span>元</span></view>
  112. </view>
  113. </view>
  114. <view v-if="stationFlowList.length==0"
  115. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  116. 站点列表为空
  117. </view>
  118. <view v-if="stationFlowList.length&&stationFlowList.length>3"
  119. @click="gotoUrl('pagesFinance/statistics/list')"
  120. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  121. 查看站点流水统计 <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28"></u-icon>
  122. </view>
  123. <u-collapse :headStyle="{
  124. color:'#101010',
  125. fontWeight: 'bold',
  126. padding:'24rpx 0',
  127. borderBottom: '1px solid #ededed'
  128. }" v-if="stationFlowList.length&&stationFlowList.length<=3">
  129. <u-collapse-item @change="changeitem" v-for="(item, index) in stationFlowList" :index="index"
  130. :key="index">
  131. <view slot="title" class="u-collapse-title u-line-1" style="width: 100%;">
  132. {{item.stationName}} <span style="float:right;"><span
  133. style="font-size: 24rpx;margin-right: 8rpx;font-weight: normal;">总收入</span>{{item.actualMoney.toFixed(2)}}元</span>
  134. </view>
  135. <!-- -->
  136. <view class="detailsline">
  137. <view class="details-row details-row-1">
  138. <view class="span1">电费</view>
  139. <view class="span2">{{item.elecMoney.toFixed(2)}}<span>元</span></view>
  140. </view>
  141. <view class="details-row">
  142. <view class="span1">服务费</view>
  143. <view class="span2">{{item.serviceMoney.toFixed(2)}}<span>元</span></view>
  144. </view>
  145. </view>
  146. <view class="detailsline">
  147. <view class="details-row details-row-1">
  148. <view class="span1">总用电量</view>
  149. <view class="span2">{{(item.eq/10000).toFixed(1)}}<span>度</span></view>
  150. </view>
  151. <view class="details-row">
  152. <view class="span1">充电枪数量</view>
  153. <view class="span2">快充{{item.fastNum}}/慢充{{item.slowNum}}</view>
  154. </view>
  155. </view>
  156. <view class="detailsline" v-if="item.fastNum&&item.slowNum">
  157. <view class="details-row details-row-1">
  158. <view class="span1">快充枪平均充电量</view>
  159. <view class="span2" v-if="item.fastNum">
  160. {{(item.averageFast/10000).toFixed(1)}}<span>度/枪/天</span>
  161. </view>
  162. <view class="span2" v-else>0<span>度/枪/天</span></view>
  163. </view>
  164. <view class="details-row">
  165. <view class="span1">慢充枪平均充电量</view>
  166. <view class="span2" v-if="item.slowNum">
  167. {{(item.averageSlow/10000).toFixed(1)}}<span>度/枪/天</span>
  168. </view>
  169. <view class="span2" v-else>0<span>度/枪/天</span></view>
  170. </view>
  171. </view>
  172. <view class="detailsline" v-if="item.fastNum&&item.slowNum">
  173. <view class="details-row details-row-1">
  174. <view class="span1">月卡收益</view>
  175. <view class="span2">{{(item.cardMoney).toFixed(2)}}<span>元</span></view>
  176. </view>
  177. <view class="details-row">
  178. </view>
  179. </view>
  180. <view v-if="item.fastNum&&item.slowNum"
  181. :style="item.slowDayNum==nowTime?'color: #ffffff;':'border-bottom: 1px solid #ededed;'">
  182. 查询范围内实际订单天数{{item.slowDayNum}}</view>
  183. </u-collapse-item>
  184. </u-collapse>
  185. </view>
  186. <view class="statisticsChart-head" style="margin-top: 20px;">
  187. <h4>站主/桩主收益统计</h4>
  188. <!-- <view class="navbar-screen" >
  189. {{startTime}}至{{endTime}}
  190. </view> -->
  191. <!-- <view class="navbar-screen" @click="popupShow2 = true"><span>筛选</span>
  192. <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
  193. </view> -->
  194. </view>
  195. <view class="details" v-if="indexData2&&indexData2.incomeMap">
  196. <view class="details-row2">
  197. <p @click="popupShow3 = true">{{selectstationName}}
  198. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow3"></u-icon>
  199. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow3"></u-icon>
  200. </p>
  201. <p @click="popupShow2 = true">
  202. {{showTime(queryTime2)}}
  203. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow2"></u-icon>
  204. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow2"></u-icon>
  205. </p>
  206. </view>
  207. <view class="details-row">
  208. <p>充电总收入</p>
  209. <span>{{(indexData2.incomeMap.chargingAmount).toFixed(2)}}元</span>
  210. </view>
  211. <view class="details-row">
  212. <p>站主/桩主收入</p>
  213. <span>{{indexData2.incomeMap.incomeAmount.toFixed(2)}}元</span>
  214. </view>
  215. <view class="details-row">
  216. <p>预估用电度数</p>
  217. <span>{{(indexData2.incomeMap.electricQuantity/10000).toFixed(1)}}度</span>
  218. </view>
  219. <view class="details-row">
  220. <p>预估电费</p>
  221. <span>{{indexData2.incomeMap.costAmount.toFixed(2)}}元</span>
  222. </view>
  223. <view class="details-row">
  224. <p>服务费预估收益</p>
  225. <span>{{indexData2.incomeMap.serviceAmount.toFixed(2)}}元</span>
  226. </view>
  227. <view class="details-row">
  228. <p>月卡收益</p>
  229. <span>{{indexData2.incomeMap.cardIncomeAmount.toFixed(2)}}元</span>
  230. </view>
  231. <view class="details-row">
  232. <p>预估总利润</p>
  233. <span>{{(indexData2.incomeMap.serviceAmount+indexData2.incomeMap.cardIncomeAmount).toFixed(2)}}元</span>
  234. </view>
  235. </view>
  236. </view>
  237. <Tabbar :current="0" ref="tabbarMain"></Tabbar>
  238. <!-- <u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
  239. -->
  240. </view>
  241. </template>
  242. <script>
  243. import Tabbar from '@/components/TabbarFinance.vue'
  244. import * as API from '@/apis/finance.js'
  245. import * as echarts from "echarts";
  246. //require("@/apis/echarts-5-3.min.js")
  247. //import * as echarts from "@/apis/echarts-5-3.min.js";
  248. import {
  249. daysDistance,
  250. beforeTimeStamp,
  251. currentTimeStamp,
  252. parseUnixTime, newDate
  253. } from '@/utils'
  254. export default {
  255. data() {
  256. return {
  257. popupShow3: false,
  258. params: {
  259. year: true,
  260. month: true,
  261. day: false,
  262. hour: false,
  263. minute: false,
  264. second: false
  265. },
  266. headitemby:"",
  267. isinit: true,
  268. form: {},
  269. form2: {},
  270. selecttype: "",
  271. selectstationId: "",
  272. selectdeviceNo: "",
  273. popupShow2: false,
  274. popupShow: false,
  275. popupShow4: false,
  276. nowTime: 0,
  277. selectstationId2: "",
  278. selectstationIndex: 0,
  279. selectstationName: "",
  280. info: {},
  281. title: "",
  282. showdate: false,
  283. showdate2: false,
  284. queryTime: "",
  285. queryTime2: "",
  286. indexData: {},
  287. indexData3: null,
  288. indexData2: null,
  289. type_head: '1',
  290. startDate_head: '',
  291. changeitemBl: false,
  292. myChart: null,
  293. myChartReady: false,
  294. myChartTime: false,
  295. subsection: [{
  296. name: '金额'
  297. },
  298. {
  299. name: '笔数'
  300. }
  301. ],
  302. stationFlowList: [],
  303. serviceMoneySum: 0,
  304. allMoneySum: 0,
  305. stationList: [],
  306. stationListSon: [],
  307. tabbarList: [{
  308. iconPath: "bar-chart-box-fill",
  309. selectedIconPath: "bar-chart-box-fill",
  310. text: '统计',
  311. count: 0,
  312. isDot: true,
  313. customIcon: true,
  314. },
  315. {
  316. iconPath: "article-fill",
  317. selectedIconPath: "article-fill",
  318. text: '明细',
  319. midButton: true,
  320. customIcon: true,
  321. },
  322. {
  323. iconPath: "account-pin-box-fill",
  324. selectedIconPath: "account-pin-box-fill",
  325. text: '我的',
  326. count: 0,
  327. isDot: false,
  328. customIcon: true,
  329. },
  330. ],
  331. endTime: '',
  332. endTime2: '',
  333. current: 1,
  334. background: {
  335. background: 'none'
  336. },
  337. value: '',
  338. type: 'select',
  339. show: false,
  340. border: true,
  341. step: 0,
  342. stepname: '',
  343. startTime: '',
  344. stepid: 0,
  345. }
  346. },
  347. onShow() {
  348. if (this.$refs.tabbarMain) {
  349. this.$refs.tabbarMain.setcount(0);
  350. }
  351. },
  352. onLoad() {
  353. this.info = this.carhelp.getPersonInfo("merchantUser")
  354. this.title = this.info.merchantAccountName
  355. },
  356. components: {
  357. Tabbar
  358. },
  359. onReady() {
  360. var date = new Date();
  361. this.nowTime = 7
  362. this.queryTime = parseUnixTime(currentTimeStamp(), '{y}-{m}');
  363. this.queryTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}'),
  364. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  365. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  366. this.endTime = parseUnixTime(beforeTimeStamp(0), '{y}-{m}-{d}')
  367. //this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  368. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  369. this.getStation()
  370. },
  371. computed: {
  372. // startTime(){
  373. // return this.queryTime+'-1'
  374. // },
  375. startTime2() {
  376. return this.queryTime2 + '-01'
  377. },
  378. },
  379. methods: {
  380. changeitem(e) {
  381. if (this.stationFlowList.length > 1 && e.index == this.stationFlowList.length - 1 && e.show) {
  382. this.changeitemBl = true;
  383. } else {
  384. this.changeitemBl = false;
  385. }
  386. },
  387. showTime(name) {
  388. if (!name) {
  389. return ''
  390. }
  391. return name.replace('-', '年') + '月';
  392. },
  393. getStation(bl) {
  394. API.stationList().then((res) => {
  395. this.stationList = res.data.stationList
  396. this.stationList.unshift({
  397. id: '',
  398. name: "全部站点"
  399. })
  400. this.selectstationName = "全部站点"
  401. this.stationListSon = res.data.deviceList
  402. this.getDataHome2()
  403. this.getData()
  404. this.getData2()
  405. }).catch(error => {
  406. uni.showToast({
  407. title: error
  408. })
  409. })
  410. },
  411. resetBtn() {
  412. this.nowTime = 7
  413. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  414. this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  415. this.selecttype = ""
  416. this.selectstationId = ""
  417. this.selectdeviceNo = ""
  418. this.form = {
  419. type: this.selecttype,
  420. stationId: this.selectstationId,
  421. deviceNo: this.selectdeviceNo,
  422. };
  423. this.popupShow = false;
  424. this.list = [];
  425. this.getData()
  426. },
  427. okbtn() {
  428. this.popupShow = false;
  429. this.form = {
  430. type: this.selecttype,
  431. stationId: this.selectstationId,
  432. deviceNo: this.selectdeviceNo,
  433. };
  434. this.list = [];
  435. this.getData()
  436. },
  437. resetBtn2() {
  438. this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  439. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  440. this.selectstationId2 = ""
  441. this.form2 = {
  442. stationId: this.selectstationId2,
  443. };
  444. this.popupShow2 = false;
  445. this.getData2()
  446. },
  447. okbtn2() {
  448. this.popupShow2 = false;
  449. this.form2 = {
  450. stationId: this.selectstationId2,
  451. };
  452. this.getData2()
  453. },
  454. getDataHome2() {
  455. var endtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  456. API.homeHeadChargingStatistics({
  457. type: this.type_head,
  458. startDate: this.startDate_head,
  459. endDate: endtime
  460. }).then((res) => {
  461. this.indexData3 = res.data;
  462. if( this.info.accountType==3){
  463. //getPie2
  464. this.getPie2()
  465. }else{
  466. //getPie
  467. this.getPie()
  468. }
  469. }).catch(error => {
  470. uni.showToast({
  471. title: error
  472. })
  473. })
  474. },
  475. getDataHome() {
  476. API.homeHeadStatistics().then((res) => {
  477. this.indexData = res.data;
  478. }).catch(error => {
  479. uni.showToast({
  480. title: error
  481. })
  482. })
  483. },
  484. getData() {
  485. this.form.startDate = this.startTime,
  486. this.form.endDate = this.endTime
  487. API.homeFlowStatistics(this.form).then((res) => {
  488. this.stationFlowList = res.data.stationFlowList;
  489. this.nowTime = daysDistance(this.startTime, this.endTime) + 1;
  490. this.serviceMoneySum = 0;
  491. this.allMoneySum = 0;
  492. for (var i in this.stationFlowList) {
  493. var item = this.stationFlowList[i];
  494. this.allMoneySum += item.actualMoney
  495. this.serviceMoneySum += item.serviceMoney
  496. this.serviceMoneySum += item.cardMoney
  497. }
  498. }).catch(error => {
  499. uni.showToast({
  500. title: error
  501. })
  502. })
  503. },
  504. getData2() {
  505. uni.showLoading({
  506. title: "加载中",
  507. mask: true,
  508. })
  509. this.form2.startDate = this.startTime2,
  510. this.form2.endDate = this.endTime2
  511. API.homeIncomeStatistics(this.form2).then((res) => {
  512. this.indexData2 = res.data
  513. uni.hideLoading()
  514. }).catch(error => {
  515. uni.showToast({
  516. title: error
  517. })
  518. })
  519. },
  520. changesub(e) {
  521. this.current = e
  522. this.type_head = e;
  523. if (e == 1) {
  524. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  525. } else {
  526. this.startDate_head = parseUnixTime(beforeTimeStamp(365), '{y}-{m}-01')
  527. }
  528. // this.getPie()
  529. this.getDataHome2()
  530. },
  531. changedate4(e) {
  532. this.startTime = e.startDate
  533. this.endTime = e.endDate
  534. this.okbtn()
  535. },
  536. changedate3(e) {
  537. var index = e[0];
  538. var obj = this.stationList[index];
  539. this.selectstationId2 = obj.id;
  540. this.selectstationIndex = index;
  541. this.selectstationName = obj.name;
  542. this.okbtn2()
  543. },
  544. changedate(e) {
  545. this.queryTime = e.year + '-' + e.month;
  546. this.startTime = e.year + '-' + e.month + '-01';
  547. if (e.month == '12') {
  548. this.endTime = (e.year) + "-12-31"
  549. } else {
  550. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  551. var a = beforeTimeStamp(1, b);
  552. this.endTime = parseUnixTime(a, '{y}-{m}-{d}')
  553. }
  554. this.okbtn()
  555. },
  556. changedate2(e) {
  557. this.queryTime2 = e.year + '-' + e.month;
  558. if (e.month == '12') {
  559. this.endTime2 = (e.year) + "-12-31"
  560. } else {
  561. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  562. var a = beforeTimeStamp(1, b);
  563. this.endTime2 = parseUnixTime(a, '{y}-{m}-{d}')
  564. }
  565. this.okbtn2()
  566. },
  567. getPie2(){
  568. this.headitemby="";
  569. var showkey = "";
  570. var getData = this.indexData3.graphMap;
  571. //var unit = this.current ? '笔' : '元'
  572. var colorName = "#333"
  573. this.showlist1 = ['收入', '利润', '次数','新电途'];
  574. var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  575. // var showlistColor = ['#5872c0', '#9ec97f', '#de6e6a','#f3c96b'];
  576. var showlistColor = ['#5872c0', '#de6e6a','#f3c96b', '#69be8d'];
  577. if (!this.myChart) {
  578. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  579. this.myChart.on("dataZoom", (res) => {
  580. showkey = "";
  581. this.headitemby ="";
  582. });
  583. }
  584. this.myChart.clear();
  585. //
  586. var timelist = []
  587. for (var i in getData) {
  588. if (this.type_head == 1) {
  589. timelist.push(i.substring(5))
  590. } else {
  591. timelist.push(i)
  592. }
  593. }
  594. var list = [];
  595. for (var j in this.showlist1) {
  596. var ap = {
  597. name: this.showlist1[j],
  598. type: 'line',
  599. lineStyle:{
  600. color:showlistColor[j]
  601. },
  602. itemStyle:{
  603. color:showlistColor[j]
  604. },
  605. // label: {
  606. // show: true,
  607. // position: 'top'
  608. // },
  609. data: []
  610. }
  611. if (this.type_head == 1) {
  612. ap.symbolSize = 3;
  613. }
  614. var bl=true;
  615. for (var i in getData) {
  616. //var time=this.queryDate.replace("-","/").replace("-","/")
  617. //time+' '+i
  618. var obj = getData[i][sz2[j]];
  619. //'todayAmount', 'todayProfit', 'todayEQNum'
  620. if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 && getData[i].todayEQNum == 0 ) {
  621. //&& &&getData[i].todayEQNum == 0
  622. continue;
  623. }
  624. bl=false;
  625. var time = i
  626. if (this.type_head == 1) {
  627. // time = i.substring(5)
  628. } else {
  629. }
  630. if(j!=2){
  631. obj=obj.toFixed(2)
  632. }
  633. ap.data.push([time, obj]);
  634. }
  635. if(bl){
  636. ap.data=[];
  637. for (var i in getData) {
  638. //var time=this.queryDate.replace("-","/").replace("-","/")
  639. //time+' '+i
  640. var obj = getData[i][sz2[j]];
  641. var time = i
  642. if (this.type_head == 1) {
  643. time = i.substring(5)
  644. } else {
  645. }
  646. if(j!=2){
  647. obj=obj.toFixed(2)
  648. }
  649. ap.data.push([time, obj]);
  650. }
  651. }
  652. list.push(ap)
  653. }
  654. // 指定图表的配置项和数据
  655. var option = {
  656. tooltip: {
  657. formatter: (value) => {
  658. //getPie2
  659. var info = value;
  660. console.log(value)
  661. var name = value[0].data[0];
  662. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  663. var now = newDate(name);
  664. var day = now.getDay();
  665. var week = weeks[day];
  666. var style = "float: right;margin-left: 3px;"
  667. var text1 = ""
  668. for (var i in value) {
  669. var u = "元"
  670. if (value[i].seriesName == '次数') {
  671. u = '次'
  672. }
  673. text1 += "<p>" + value[i].marker + value[i].seriesName + '<span style="' + style +
  674. '">' + value[i].data[1] + u + '</span></p>';
  675. }
  676. if (this.type_head == 1) {
  677. //time = i.substring(5)
  678. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  679. var now = newDate(name);
  680. var day = now.getDay();
  681. var week = weeks[day];
  682. return `<p>${name} ${week}</p>` + text1
  683. } else {
  684. return `<p>${name}</p>` + text1
  685. }
  686. },
  687. trigger: 'axis',
  688. borderColor: "#F0F0F0",
  689. borderWidth: 1,
  690. backgroundColor: "#ffffff",
  691. textStyle: {
  692. color: "#333"
  693. }
  694. },
  695. legend: {
  696. data: this.showlist1,
  697. textStyle: {
  698. color: "#333"
  699. }
  700. },
  701. grid: {
  702. top: '13%',
  703. left: '3%',
  704. right: '8%',
  705. bottom: '18%',
  706. containLabel: true
  707. },
  708. xAxis: {
  709. //type: 'value',
  710. type: 'category',
  711. splitNumber: 4,
  712. boundaryGap: false,
  713. axisLabel: {
  714. formatter: (value) => {
  715. if(this.headitemby==""){
  716. this.headitemby=value
  717. }
  718. var i = 0
  719. if (this.type_head == 1) {
  720. i = 0;
  721. } else {
  722. i = 3;
  723. }
  724. var showvalue = "";
  725. var key = value.substring(0,8-i);
  726. if (showkey == ""||value==this.headitemby) {
  727. showkey = key
  728. showvalue = value
  729. showvalue = value.substring(5-i)
  730. } else {
  731. if (key != showkey) {
  732. showkey = key
  733. showvalue = value
  734. showvalue = value.substring(5-i)
  735. } else {
  736. showvalue = value.substring(8-i)
  737. }
  738. }
  739. return showvalue.replace("-",".");
  740. },
  741. // formatter: (value) => {
  742. // if(this.headitemby==""){
  743. // this.headitemby=value
  744. // }
  745. // var i = 0
  746. // if (this.type_head == 1) {
  747. // i = 3;
  748. // } else {
  749. // i = 5;
  750. // }
  751. // var showvalue = "";
  752. // var key = value.substring(0, i);
  753. // if (showkey == ""||value==this.headitemby) {
  754. // showkey = key
  755. // showvalue = value
  756. // } else {
  757. // if (key != showkey) {
  758. // showkey = key
  759. // showvalue = value
  760. // } else {
  761. // showvalue = value.substring(i)
  762. // }
  763. // }
  764. // return showvalue.replace("-",".");
  765. // },
  766. textStyle: {
  767. color: "#333"
  768. }
  769. },
  770. axisLine: {
  771. show: true,
  772. lineStyle: {
  773. color: "#333"
  774. }
  775. },
  776. },
  777. yAxis: {
  778. //type: 'log',
  779. // name: '单位('+this.typeN+')',
  780. axisLabel: {
  781. textStyle: {
  782. color: "#333"
  783. }
  784. },
  785. axisLine: {
  786. show: true,
  787. lineStyle: {
  788. color: "#333"
  789. }
  790. },
  791. },
  792. series: list
  793. };
  794. option.dataZoom = [{
  795. type: 'inside',
  796. start: 0,
  797. end: 100
  798. },
  799. {
  800. start: 0,
  801. end: 100
  802. }
  803. ]
  804. if (this.type_head == 1) {
  805. } else {
  806. //timelist.push(i)
  807. }
  808. console.log(option)
  809. // 使用刚指定的配置项和数据显示图表。
  810. this.myChart.setOption(option);
  811. },
  812. getPie() {
  813. var dataInterval =null;
  814. if (this.type_head == 1) {
  815. dataInterval= [0,25,50,75,100,
  816. 125,150,200,250,300,400,500,
  817. 600,800,1000,1200,1400,1600,1800,
  818. 2000,2300,2600,2800,
  819. 3000,3400,3800,4200,
  820. 4800,5200,5600,6000,6500,7000,7500,8000,9000, 10000,12000,14000, 16000, 20000, 30000,999999];
  821. }else{
  822. dataInterval= [0,500,1000,2000,5000, 10000, 20000, 30000, 40000,50000, 60000,70000, 80000,90000, 100000, 120000, 140000, 160000, 180000, 200000, 250000,300000, 400000, 500000,999999];
  823. }
  824. this.headitemby="";
  825. var showkey = "";
  826. var getData = this.indexData3.graphMap;
  827. //var unit = this.current ? '笔' : '元'
  828. var colorName = "#333"
  829. this.showlist1 = ['收入', '利润', '次数','新电途'];
  830. var showlistColor = ['#5872c0', '#de6e6a','#f3c96b', '#69be8d'];
  831. var zLevel=[1,4,2,3];
  832. var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  833. if (!this.myChart) {
  834. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  835. this.myChart.on("dataZoom", (res) => {
  836. showkey = "";
  837. this.headitemby ="";
  838. });
  839. }
  840. this.myChart.clear();
  841. //
  842. var timelist = []
  843. for (var i in getData) {
  844. if (this.type_head == 1) {
  845. timelist.push(i.substring(5))
  846. } else {
  847. timelist.push(i)
  848. }
  849. }
  850. var list = [];
  851. for (var j in this.showlist1) {
  852. var ap = {
  853. name: this.showlist1[j],
  854. type: 'line',
  855. lineStyle:{
  856. color:showlistColor[j]
  857. },
  858. itemStyle:{
  859. color:showlistColor[j]
  860. },
  861. z:zLevel[j],
  862. // label: {
  863. // show: true,
  864. // position: 'top'
  865. // },
  866. data: []
  867. }
  868. if (this.type_head == 1) {
  869. ap.symbolSize = 3;
  870. }
  871. var bl=true;
  872. for (var i in getData) {
  873. //var time=this.queryDate.replace("-","/").replace("-","/")
  874. //time+' '+i
  875. var obj = getData[i][sz2[j]];
  876. //**********
  877. if(true){
  878. const min_v = Math.max(...dataInterval.filter((v) => v <= obj));
  879. // 2.寻找在数据间隔里大于amount的最小值
  880. const max_v = Math.min(...dataInterval.filter((v) => v > obj));
  881. // 3.寻找 min_v 所在的下标
  882. const index = dataInterval.findIndex((v) => v === min_v);
  883. // 4.计算该amount在y轴上应该展示的位置
  884. const y_value = ((obj - min_v) / (max_v - min_v)) * 10 + index * 10;
  885. obj = y_value;
  886. }
  887. //**********
  888. //'todayAmount', 'todayProfit', 'todayEQNum'
  889. if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 &&getData[i].todayEQNum == 0) {
  890. //&& &&getData[i].todayEQNum == 0
  891. continue;
  892. }
  893. bl=false;
  894. var time = i
  895. if (this.type_head == 1) {
  896. //time = i.substring(5)
  897. } else {
  898. }
  899. ap.data.push([time, obj]);
  900. }
  901. if(bl){
  902. ap.data=[];
  903. for (var i in getData) {
  904. //var time=this.queryDate.replace("-","/").replace("-","/")
  905. //time+' '+i
  906. var obj = getData[i][sz2[j]];
  907. var time = i
  908. if (this.type_head == 1) {
  909. time = i.substring(5)
  910. } else {
  911. }
  912. if(j!=2){
  913. obj=obj.toFixed(2)
  914. }
  915. ap.data.push([time, obj]);
  916. }
  917. }
  918. list.push(ap)
  919. }
  920. var yshow=0;
  921. // 指定图表的配置项和数据
  922. var option = {
  923. tooltip: {
  924. formatter: (value) => {
  925. //getPie
  926. var name = value[0].data[0];
  927. var info = getData[name];
  928. var style = "float: right;margin-left: 3px;"
  929. var text1 = ""
  930. for (var i in value) {
  931. var u = "元"
  932. var num=info[sz2[value[i].seriesIndex]];
  933. if (value[i].seriesName == '次数') {
  934. u = '次'
  935. }else{
  936. num=num.toFixed(2)
  937. }
  938. text1 += "<p>" + value[i].marker + value[i].seriesName + '<span style="' + style +
  939. '">' + num + u + '</span></p>';
  940. }
  941. if (this.type_head == 1) {
  942. //time = i.substring(5)
  943. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  944. var now = newDate(name);
  945. var day = now.getDay();
  946. var week = weeks[day];
  947. return `<p>${name} ${week}</p>` + text1
  948. } else {
  949. return `<p>${name}</p>` + text1
  950. }
  951. },
  952. trigger: 'axis',
  953. borderColor: "#F0F0F0",
  954. borderWidth: 1,
  955. backgroundColor: "#ffffff",
  956. textStyle: {
  957. color: "#333"
  958. }
  959. },
  960. legend: {
  961. data: this.showlist1,
  962. textStyle: {
  963. color: "#333"
  964. }
  965. },
  966. grid: {
  967. top: '13%',
  968. left: '3%',
  969. right: '8%',
  970. bottom: '18%',
  971. containLabel: true
  972. },
  973. xAxis: {
  974. //type: 'value',
  975. type: 'category',
  976. splitNumber: 4,
  977. boundaryGap: false,
  978. axisLabel: {
  979. formatter: (value) => {
  980. if(this.headitemby==""){
  981. this.headitemby=value
  982. }
  983. var i = 0
  984. if (this.type_head == 1) {
  985. i = 0;
  986. } else {
  987. i = 3;
  988. }
  989. var showvalue = "";
  990. var key = value.substring(0,8-i);
  991. if (showkey == ""||value==this.headitemby) {
  992. showkey = key
  993. showvalue = value
  994. showvalue = value.substring(5-i)
  995. } else {
  996. if (key != showkey) {
  997. showkey = key
  998. showvalue = value
  999. showvalue = value.substring(5-i)
  1000. } else {
  1001. showvalue = value.substring(8-i)
  1002. }
  1003. }
  1004. return showvalue.replace("-",".");
  1005. },
  1006. textStyle: {
  1007. color: "#333"
  1008. }
  1009. },
  1010. axisLine: {
  1011. show: true,
  1012. lineStyle: {
  1013. color: "#333"
  1014. }
  1015. },
  1016. },
  1017. yAxis: {
  1018. type: 'value',
  1019. // name: '单位('+this.typeN+')',
  1020. axisLabel: {
  1021. formatter:(v,i)=>{
  1022. //console.log(v,i)
  1023. if(i==0){
  1024. yshow=0
  1025. return 0
  1026. }
  1027. if(yshow!=parseInt(v/10)){
  1028. yshow=parseInt(v/10);
  1029. return dataInterval[parseInt(v/10)]
  1030. }else{
  1031. return ''
  1032. }
  1033. },
  1034. textStyle: {
  1035. color: "#333"
  1036. }
  1037. },
  1038. axisLine: {
  1039. show: true,
  1040. lineStyle: {
  1041. color: "#333"
  1042. }
  1043. },
  1044. },
  1045. series: list
  1046. };
  1047. option.dataZoom = [{
  1048. type: 'inside',
  1049. start: 0,
  1050. end: 100
  1051. },
  1052. {
  1053. start: 0,
  1054. end: 100
  1055. }
  1056. ]
  1057. if (this.type_head == 1) {
  1058. } else {
  1059. //timelist.push(i)
  1060. }
  1061. console.log(option)
  1062. // 使用刚指定的配置项和数据显示图表。
  1063. this.myChart.setOption(option);
  1064. }
  1065. }
  1066. }
  1067. </script>
  1068. <style>
  1069. page {
  1070. background: url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  1071. background-size: 100%;
  1072. }
  1073. </style>
  1074. <style lang="scss" scoped>
  1075. .headbotton1:after {
  1076. border-radius: 15px 0 0 15px;
  1077. }
  1078. .headbotton2:after {
  1079. border-radius: 0 15px 15px 0;
  1080. }
  1081. .detailstable {
  1082. padding: 30rpx 30rpx !important;
  1083. }
  1084. .detailstableHead {
  1085. .span1 {
  1086. font-size: 32rpx !important;
  1087. }
  1088. .details-row-head-1 {}
  1089. .details-row-head-2 {}
  1090. .details-row-head-3 {
  1091. width: 30% !important;
  1092. max-width: 150rpx;
  1093. .span {}
  1094. }
  1095. .span2 {
  1096. font-size: 44rpx !important;
  1097. font-weight: bold;
  1098. width: 100%;
  1099. color: #101010;
  1100. span {
  1101. font-size: 24rpx !important;
  1102. }
  1103. }
  1104. }
  1105. .detailslineHead {
  1106. border-top: 1px solid #ededed;
  1107. ;
  1108. .details-row {
  1109. padding-left: 8rpx !important;
  1110. }
  1111. font-size: 30rpx !important;
  1112. .span1 span {
  1113. font-size: 28rpx;
  1114. }
  1115. }
  1116. .detailstable,
  1117. .detailstableHead {
  1118. font-size: 16px;
  1119. p {
  1120. font-size: 14px;
  1121. }
  1122. .details-row-main {
  1123. border-bottom: 1px solid #ededed;
  1124. padding: 10px 0;
  1125. }
  1126. .detailsline {
  1127. border-bottom: 1px solid #ededed;
  1128. }
  1129. .detailsline,
  1130. .detailsline—bottom {
  1131. display: flex;
  1132. .details-row {
  1133. width: 50%;
  1134. display: flex;
  1135. justify-content: space-between;
  1136. flex-direction: column;
  1137. padding-left: 16rpx;
  1138. margin-bottom: 20rpx;
  1139. .span1 {
  1140. color: rgba(136, 136, 136, 100);
  1141. font-size: 28rpx;
  1142. width: 100%;
  1143. }
  1144. .span2 {
  1145. font-size: 36rpx;
  1146. width: 100%;
  1147. color: #101010;
  1148. span {
  1149. font-size: 24rpx;
  1150. }
  1151. }
  1152. }
  1153. }
  1154. .details-row-1 {
  1155. width: 47%;
  1156. padding-left: 0px !important;
  1157. border-right: 1px solid #ededed;
  1158. }
  1159. }
  1160. .details {
  1161. padding: 20px;
  1162. background-color: #fff;
  1163. border-radius: 8px;
  1164. }
  1165. .details-title {
  1166. margin-bottom: 16px;
  1167. h4 {
  1168. font-weight: normal;
  1169. font-size: 16px;
  1170. position: relative;
  1171. padding-left: 10px;
  1172. &::after {
  1173. content: '';
  1174. position: absolute;
  1175. height: 12px;
  1176. width: 4px;
  1177. background-color: #27B148;
  1178. left: 0;
  1179. top: 5px;
  1180. }
  1181. }
  1182. }
  1183. .details-row {
  1184. display: flex;
  1185. justify-content: space-between;
  1186. align-items: center;
  1187. margin-top: 15px;
  1188. p {
  1189. color: #37393c;
  1190. font-weight: bold;
  1191. }
  1192. }
  1193. .details-row2 {
  1194. display: flex;
  1195. justify-content: space-between;
  1196. align-items: center;
  1197. // margin-top: 15px;
  1198. p {
  1199. // color: #37393c;
  1200. // font-weight: bold;
  1201. }
  1202. }
  1203. .popup-screen {
  1204. padding: 20px;
  1205. position: relative;
  1206. .screen {
  1207. padding-bottom: 30px;
  1208. }
  1209. .screen-item {
  1210. margin-bottom: 20px;
  1211. .screen-head {
  1212. margin-bottom: 8px;
  1213. font-size: 16px;
  1214. }
  1215. .screen-main {
  1216. display: flex;
  1217. // display: -webkit-box;
  1218. flex-wrap: wrap;
  1219. }
  1220. .screen-entry {
  1221. width: 29%;
  1222. padding: 6px 0;
  1223. display: flex;
  1224. align-items: center;
  1225. justify-content: center;
  1226. background-color: #F2F5FA;
  1227. text-align: center;
  1228. margin-bottom: 10px;
  1229. border-radius: 3px;
  1230. margin-right: 6px;
  1231. }
  1232. .screen-entry.active {
  1233. background-color: #185AC6;
  1234. color: #fff;
  1235. }
  1236. }
  1237. .screen-foot {
  1238. position: fixed;
  1239. left: 0;
  1240. right: 0;
  1241. bottom: 0;
  1242. display: flex;
  1243. height: 50px;
  1244. border-top: 1px solid #ededed;
  1245. .screen-btn-l {
  1246. background-color: #fff;
  1247. flex: 0.2;
  1248. text-align: center;
  1249. line-height: 50px;
  1250. }
  1251. .screen-btn-r {
  1252. flex: 0.8;
  1253. text-align: center;
  1254. line-height: 50px;
  1255. background-color: #185AC6;
  1256. color: #fff;
  1257. }
  1258. }
  1259. }
  1260. .navbar-tit {
  1261. color: #fff;
  1262. font-size: 24px;
  1263. padding-left: 15px;
  1264. padding-top: 10px;
  1265. }
  1266. .statisticsData {
  1267. background-color: #fff;
  1268. margin: 0px 24rpx 24rpx;
  1269. //padding:0px 24rpx 24rpx;
  1270. border-radius: 8px;
  1271. }
  1272. .statisticsDataMain {
  1273. flex-wrap: wrap;
  1274. display: flex;
  1275. }
  1276. .statisticsData-item {
  1277. flex: 1;
  1278. width: 40%;
  1279. .statisticsData-head {
  1280. display: flex;
  1281. align-items: center;
  1282. p {
  1283. color: #637AA2;
  1284. font-size: 12px;
  1285. }
  1286. }
  1287. .statisticsData-main {
  1288. margin-top: 4px;
  1289. font-size: 18px;
  1290. }
  1291. .statisticsData-foot {
  1292. display: flex;
  1293. align-items: center;
  1294. margin-top: 16px;
  1295. p {
  1296. color: #637AA2;
  1297. }
  1298. h4 {
  1299. margin-left: 8px;
  1300. }
  1301. }
  1302. }
  1303. .statisticsChart {
  1304. margin: 16px;
  1305. .statisticsChart-head {
  1306. margin-bottom: 5px;
  1307. display: flex;
  1308. justify-content: space-between;
  1309. align-items: center;
  1310. h4 {
  1311. font-weight: normal;
  1312. font-size: 16px;
  1313. position: relative;
  1314. padding-left: 10px;
  1315. &::after {
  1316. content: '';
  1317. position: absolute;
  1318. height: 12px;
  1319. width: 4px;
  1320. background-color: #4E8DF6;
  1321. left: 0;
  1322. top: 5px;
  1323. }
  1324. }
  1325. .statisticsChart-time {
  1326. display: flex;
  1327. align-items: center;
  1328. p {
  1329. color: #666;
  1330. }
  1331. }
  1332. }
  1333. .statisticsChart-main {
  1334. background-color: #fff;
  1335. padding: 10px 16px 16px 16px;
  1336. border-radius: 8px;
  1337. }
  1338. }
  1339. </style>