index.vue 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330
  1. <template>
  2. <view>
  3. <view class="top-cover">
  4. <view class="navbar-tit">
  5. <text><img src="../../assets/img/titleIcon.svg" alt=""></text>
  6. {{title}}{{info.accountType==3?'':'运管中心'}}
  7. </view>
  8. <view class="income">
  9. <!-- 今日收入 -->
  10. <view class="today-income">
  11. <view class="number" @click="changesub(1)">
  12. {{showTopobj.todayAmount}}<text><img src="../../assets/img/riLine-refresh-line.svg"
  13. alt=""></text>
  14. </view>
  15. <view class="text">
  16. 今日收入 (元)
  17. </view>
  18. </view>
  19. <!-- 其他 -->
  20. <view class="else">
  21. <view class="item">
  22. <view class="item-number">
  23. {{showTopobj.todayProfit}}
  24. </view>
  25. <view class="item-text">
  26. 利润(元)
  27. </view>
  28. </view>
  29. <view class="item">
  30. <view class="item-number">
  31. {{showTopobj.todayEQAmount2?showTopobj.todayEQAmount2.toFixed(2):0}}
  32. </view>
  33. <view class="item-text">
  34. 今日电量 (度)
  35. </view>
  36. </view>
  37. <view class="item" v-if="showMonthlyCard">
  38. <view class="item-number">
  39. {{showTopobj.discountCardBuyNum}} / {{showTopobj.monthCardBuyNum}}
  40. </view>
  41. <view class="item-text">
  42. 6折卡/月卡 (张)
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="statisticsData">
  48. <view class="statisticsChart" style="padding-top:20rpx;margin-bottom: 0px">
  49. <view class="statisticsChart-head ">
  50. <h4 class="h4-1"><img src="../../assets/img/riFill-numbers-fill.svg" alt="">充电统计</h4>
  51. <view class="navbar-screen ">
  52. <u-button text="月落" size="mini" class="headbotton1" style="border-radius: 10px 0 0 10px;"
  53. :type="current==1?'success':'info'" @click="changesub(1)">按天</u-button>
  54. <u-button text="月落" size="mini" class="headbotton2" style="border-radius: 0 10px 10px 0;"
  55. :type="current==2?'success':'info'" @click="changesub(2)">按月</u-button>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="detailstableHead" style="
  60. padding-top: 1px;
  61. ">
  62. <view id="pieEcharts" style="min-height:240px;margin-top: 20px">
  63. </view>
  64. </view>
  65. <view class="detailstableHead" v-if="indexData&&false">
  66. <view class="detailsline">
  67. <view class="details-row details-row-head-1 ">
  68. <view class="span1">今日收入</view>
  69. <view class="span2">
  70. {{indexData.todayAmount?indexData.todayAmount.toFixed(2):0}}<span>元</span>
  71. </view>
  72. </view>
  73. <view class="details-row details-row-head-2">
  74. <view class="span1">今日利润</view>
  75. <view class="span2">
  76. {{indexData.todayProfit?indexData.todayProfit.toFixed(2):0}}<span>元</span>
  77. </view>
  78. </view>
  79. <view class="details-row details-row-head-3">
  80. <view class="span1">今日笔数</view>
  81. <view class="span2">{{indexData.todayEQNum?indexData.todayEQNum:0}}<span>笔</span></view>
  82. </view>
  83. </view>
  84. <view class="detailsline">
  85. <view class="details-row details-row-head-1 ">
  86. <view class="span1">昨日收入</view>
  87. <view class="span2">
  88. {{indexData.yesterdayAmount?indexData.yesterdayAmount.toFixed(2):0}}<span>元</span>
  89. </view>
  90. </view>
  91. <view class="details-row details-row-head-2">
  92. <view class="span1">昨日利润</view>
  93. <view class="span2">
  94. {{indexData.yesterdayProfit?indexData.yesterdayProfit.toFixed(2):0}}<span>元</span>
  95. </view>
  96. </view>
  97. <view class="details-row details-row-head-3">
  98. <view class="span1">昨日笔数</view>
  99. <view class="span2">{{indexData.yesterdayEQNum?indexData.yesterdayEQNum:0}}<span>笔</span>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="detailsline—bottom">
  104. <view class="details-row details-row-head-1">
  105. <view class="span1">本月收入</view>
  106. <view class="span2">
  107. {{indexData.thisMonthAmount?indexData.thisMonthAmount.toFixed(2):0}}<span>元</span>
  108. </view>
  109. </view>
  110. <view class="details-row details-row-head-2">
  111. <view class="span1">本月利润</view>
  112. <view class="span2">
  113. {{indexData.thisMonthProfit?indexData.thisMonthProfit.toFixed(2):0}}<span>元</span>
  114. </view>
  115. </view>
  116. <view class="details-row details-row-head-3">
  117. <view class="span1">本月笔数</view>
  118. <view class="span2">{{indexData.thisMonthEQNum?indexData.thisMonthEQNum:0}}<span>笔</span>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <u-picker mode="time" v-model="popupShow" @confirm="changedate" :default-time="queryTime" :params="params">
  126. </u-picker>
  127. <u-picker mode="time" v-model="popupShow2" @confirm="changedate2" :default-time="queryTime2+'-01'"
  128. :params="params"></u-picker>
  129. <u-picker mode="selector" v-model="popupShow3" @confirm="changedate3" :range="stationList" range-key="name"
  130. :default-selector="[selectstationIndex]"></u-picker>
  131. <view class="statisticsChart chargingpile" v-if="indexData4">
  132. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  133. <h4>充电枪运行情况</h4>
  134. </view>
  135. <view class="details detailstablepile" style="padding: 12px 0 12px 12px ;">
  136. <p>
  137. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20"
  138. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  139. filter="none">
  140. <g>
  141. <path fill="rgba(23.97,90.015,197.88,1)"
  142. d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z">
  143. </path>
  144. </g>
  145. </svg>
  146. <!-- <img style=" vertical-align: bottom;" src="@/assets/img/riFill-charging-pile-fill.svg"></img>
  147. --> 快(超)充枪<span>共</span>
  148. <span
  149. style="color:#000">{{indexData4.fastGunFaultNum+indexData4.fastGunFreeNum+indexData4.fastGunWorkNum}}</span>
  150. <span>支</span>
  151. </p>
  152. <view class="detailsline">
  153. <view class="details-row details-row-1" @click="indexDate4Ck(1,1)">
  154. <view class="span1"><span class="bot bot1"></span>在用<span
  155. class="bot1span">{{indexData4.fastGunWorkNum}}</span>支
  156. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  157. </view>
  158. </view>
  159. <view class="details-row details-row-1" @click="indexDate4Ck(1,0)">
  160. <view class="span1"><span class="bot bot2"></span>空闲<span
  161. class="bot2span">{{indexData4.fastGunFreeNum}}</span>支
  162. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  163. </view>
  164. </view>
  165. <view class="details-row details-row-1" @click="indexDate4Ck(1,99)">
  166. <view class="span1"><span class="bot bot3"></span>故障<span
  167. class="bot3span">{{indexData4.fastGunFaultNum}}</span>支
  168. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  169. </view>
  170. </view>
  171. </view>
  172. <p style="margin-top: 16rpx;color:#00B962">
  173. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20"
  174. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  175. filter="none">
  176. <g>
  177. <path fill="#00B962"
  178. d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z">
  179. </path>
  180. </g>
  181. </svg>
  182. 慢充枪<span>共</span>
  183. <span
  184. style="color:#000">{{indexData4.slowGunFaultNum+indexData4.slowGunFreeNum+indexData4.slowGunWorkNum}}</span>
  185. <span>支</span>
  186. </p>
  187. <view class="detailsline—bottom">
  188. <view class="details-row details-row-1" @click="indexDate4Ck(2,1)">
  189. <view class="span1"><span class="bot bot1"></span>在用<span
  190. class="bot1span">{{indexData4.slowGunWorkNum}}</span>支
  191. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  192. </view>
  193. </view>
  194. <view class="details-row details-row-1" @click="indexDate4Ck(2,0)">
  195. <view class="span1"><span class="bot bot2"></span>空闲<span
  196. class="bot2span">{{indexData4.slowGunFreeNum}}</span>支
  197. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  198. </view>
  199. </view>
  200. <view class="details-row details-row-1" @click="indexDate4Ck(2,99)">
  201. <view class="span1"><span class="bot bot3"></span>故障<span
  202. class="bot3span">{{indexData4.slowGunFaultNum}}</span>支
  203. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. <view class="statisticsChart chargingpile" v-if="indexData4">
  210. <view class="statisticsChart-head" style="margin-top: 20rpx;">
  211. <h4>电单车充电桩运行情况</h4>
  212. </view>
  213. <view class="details detailstablepile" style="padding: 12px 0 12px 12px ;">
  214. <p style="color:#1677FF">
  215. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20"
  216. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  217. filter="none">
  218. <g>
  219. <path fill="#1677FF"
  220. d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z">
  221. </path>
  222. </g>
  223. </svg>
  224. 电单车充电桩<span>共</span>
  225. <span style="color:#000">{{indexData4.singleCarOnlineNum+indexData4.singleCarNotOnlineNum}}</span>
  226. <span>台</span>
  227. </p>
  228. <view class="detailsline">
  229. <view class="details-row details-row-1" @click="indexDate5Ck(1,1)">
  230. <view class="span1"><span class="bot bot1"></span>正常<span
  231. class="bot1span">{{indexData4.singleCarOnlineNum}}</span>台
  232. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  233. </view>
  234. </view>
  235. <view class="details-row details-row-1" @click="indexDate5Ck(0,99)">
  236. <view class="span1"><span class="bot bot3"></span>故障<span
  237. class="bot3span">{{indexData4.singleCarNotOnlineNum}}</span>台
  238. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  239. </view>
  240. </view>
  241. </view>
  242. </view>
  243. </view>
  244. <u-popup v-model="popupShow6" mode="bottom" border-radius="30">
  245. <view class="indexData5content">
  246. <view class="contentTitle">
  247. 电单车充电桩{{indexData5Obj.type?'正常':'故障'}}明细
  248. </view>
  249. <scroll-view scroll-y="true" style="height: 520rpx;">
  250. <u-collapse style="padding-bottom: 30rpx;">
  251. <u-collapse-item v-for="(item,index) in indexData5List" class="contentItem"
  252. v-show="item.deviceNum" :key="index">
  253. <svg slot="title" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20"
  254. height="20"
  255. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  256. filter="none">
  257. <g>
  258. <path fill="#1677FF"
  259. d="M4 25.333v-20c0-0.736 0.597-1.333 1.333-1.333v0h12c0.736 0 1.333 0.597 1.333 1.333v0 10.667h2.667c1.473 0 2.667 1.194 2.667 2.667v0 5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v0-9.333h-2.667c-0.736 0-1.333-0.597-1.333-1.333v0-4.781l-2.209-2.209 1.885-1.885 6.6 6.6c0.241 0.241 0.391 0.574 0.391 0.941 0 0 0 0.001 0 0.001v-0 12c0 2.209-1.791 4-4 4s-4-1.791-4-4v0-5.333h-2.667v6.667h1.333v2.667h-17.333v-2.667h1.333zM12 14.667v-5.333l-5.333 8h4v5.333l5.333-8h-4z">
  260. </path>
  261. </g>
  262. </svg>
  263. <view slot="title" class="span1">
  264. {{item.stationName}}
  265. </view>
  266. <view slot="title">
  267. <span class="span2 color777">
  268. 共<span class="color333">{{item.deviceNum}}</span>台
  269. </span>
  270. <span class="span3 color777">
  271. 通道数<span class="color333">{{item.channelNum}}</span>
  272. </span>
  273. </view>
  274. <view style="padding-bottom: 30rpx;">
  275. <view class="contentBodyName">
  276. {{item.stationName}}
  277. </view>
  278. <view class="contentBody" v-for="(gun,i) in item.device" :key="i">
  279. <view class="body1">{{gun.deviceName}}</view>
  280. <view class="body2" v-if="indexData5Obj.type">
  281. <view class="body2-0">在用<span class="body2-1">{{gun.useNum}}</span> </view>
  282. <view class="body2-2">| 空闲 {{gun.freeNum}}</view>
  283. </view>
  284. <view class="body3" v-else>故障</view>
  285. </view>
  286. </view>
  287. </u-collapse-item>
  288. </u-collapse>
  289. </scroll-view>
  290. <view class="confrim-btn">
  291. <u-button shape="square" type="primary" @click="popupShow6 = false;">关闭</u-button>
  292. </view>
  293. </view>
  294. </u-popup>
  295. <u-popup v-model="popupShow5" mode="bottom" border-radius="30">
  296. <view class="indexData4content">
  297. <view class="contentTitle">
  298. {{indexData4Obj.typeName}}枪{{indexData4Obj.text}}明细
  299. <!-- <view v-show='indexData4Obj.value=="bot3span"' style="color:#777777;font-size: 12px;font-weight: normal;">
  300. 点击站点查看故障枪
  301. </view> -->
  302. </view>
  303. <scroll-view scroll-y="true" style="height: 520rpx;">
  304. <u-collapse class="u-collapse-bot3span"
  305. v-if='indexData4Obj.value=="bot3span"||indexData4Obj.value=="bot1span"'
  306. style="padding-bottom: 30rpx;">
  307. <u-collapse-item class="contentItem" v-for="(item,index) in indexData4List"
  308. v-show="item.queryNum" :key="index">
  309. <span class="span1" slot="title">
  310. <img v-show="indexData4Obj.type==1&&item.category!='超充'"
  311. src="@/assets/img/riFill-charging-pile-fill.svg">
  312. <img v-show="indexData4Obj.type==1&&item.category=='超充'"
  313. src="@/assets/img/riFill-charging-pile-fill3.svg">
  314. <img v-show="indexData4Obj.type==2" src="@/assets/img/riFill-charging-pile-fill2.svg">
  315. </img>
  316. {{item.stationName}}</span>
  317. <span class="span2 color777" slot="title">
  318. 共<span class="color333">{{item.gunNum}}</span>支
  319. </span>
  320. <span class="span3 color333" slot="title">
  321. {{indexData4Obj.text}}<span class="color777"
  322. :class="indexData4Obj.value">{{item.queryNum}}</span>支
  323. </span>
  324. <view style="padding-bottom: 30rpx;">
  325. <view class="contentBodyName">
  326. {{item.stationName}}
  327. </view>
  328. <view class="contentBody" v-for="(gun,i) in item.gunList" :key="i">
  329. <view class="body1">
  330. <span
  331. v-if="gun.sortNo">{{gun.sortNo}}号<text>/</text></span>{{gun.deviceName}}{{'枪'+gun.channelNo}}
  332. </view>
  333. <view class="body3" v-if='indexData4Obj.value=="bot1span"'>
  334. {{gun.soc?gun.soc+'%':'充电中'}}</view>
  335. <view class="body3" v-if='indexData4Obj.value=="bot3span"'>{{gun.workStatusText}}
  336. </view>
  337. </view>
  338. </view>
  339. </u-collapse-item>
  340. </u-collapse>
  341. <view class="u-collapse-bot0span" style="padding-bottom: 30rpx;" v-else>
  342. <view class="contentItem" v-for="(item,index) in indexData4List" v-show="item.queryNum"
  343. :key="index">
  344. <span class="span1">
  345. <img v-show="indexData4Obj.type==1&&item.category!='超充'"
  346. src="@/assets/img/riFill-charging-pile-fill.svg">
  347. <img v-show="indexData4Obj.type==1&&item.category=='超充'"
  348. src="@/assets/img/riFill-charging-pile-fill3.svg">
  349. <img v-show="indexData4Obj.type==2" src="@/assets/img/riFill-charging-pile-fill2.svg">
  350. </img>
  351. {{item.stationName}}</span>
  352. <span class="span2 color777">
  353. 共<span class="color333">{{item.gunNum}}</span>支
  354. </span>
  355. <span class="span3 color333">
  356. {{indexData4Obj.text}}<span class="color777"
  357. :class="indexData4Obj.value">{{item.queryNum}}</span>支
  358. </span>
  359. </view>
  360. </view>
  361. </scroll-view>
  362. <view class="confrim-btn">
  363. <u-button shape="square" type="primary" @click="popupShow5 = false;">关闭</u-button>
  364. </view>
  365. </view>
  366. </u-popup>
  367. <view class="statisticsChart">
  368. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  369. <h4>流水统计</h4>
  370. <!-- <view class="navbar-screen" >
  371. {{startTime}}至{{endTime}}
  372. </view> -->
  373. <view class="navbar-screen" @click="popupShow = true" v-if="false">
  374. <span>{{showTime(queryTime)}}</span>
  375. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow"></u-icon>
  376. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow"></u-icon>
  377. </view>
  378. </view>
  379. <u-calendar v-model="popupShow4" mode="range" @change="changedate4"></u-calendar>
  380. <view class="details detailstable">
  381. <p style="text-align: center; margin-bottom: 5px;" @click="popupShow4 = true">
  382. <img src="@/assets/img/riLine-calendar-todo-line.svg" align="absmiddle"
  383. style="height:40rpx;width: 40rpx ;">
  384. {{startTime}}至{{endTime}}
  385. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow4"></u-icon>
  386. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow4"></u-icon>
  387. </p>
  388. <view class="detailsline detailslineHead" v-if="stationFlowList.length>1">
  389. <view class="details-row ">
  390. <view class="span1">总收入</view>
  391. <view class="span2">{{(allMoneySum).toFixed(2)}}<span>元</span></view>
  392. </view>
  393. <view class="details-row">
  394. <view class="span1">总利润<span>(服务费+折扣卡)</span></view>
  395. <view class="span2">{{(serviceMoneySum).toFixed(2)}}<span>元</span></view>
  396. </view>
  397. </view>
  398. <view v-if="stationFlowList.length==0"
  399. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  400. 站点列表为空
  401. </view>
  402. <view v-if="stationFlowList.length" @click="gotoUrl('pagesFinance/statistics/list')"
  403. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  404. 查看站点流水统计 <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28">
  405. </u-icon>
  406. </view>
  407. </view>
  408. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  409. <h4>站主/桩主收益统计</h4>
  410. <!-- <view class="navbar-screen" >
  411. {{startTime}}至{{endTime}}
  412. </view> -->
  413. <!-- <view class="navbar-screen" @click="popupShow2 = true"><span>筛选</span>
  414. <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
  415. </view> -->
  416. </view>
  417. <view class="details" v-if="indexData2&&indexData2.incomeMap">
  418. <view class="details-row2">
  419. <p @click="popupShow3 = true">{{selectstationName}}
  420. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow3"></u-icon>
  421. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow3"></u-icon>
  422. </p>
  423. <p @click="popupShow2 = true">
  424. {{showTime(queryTime2)}}
  425. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow2"></u-icon>
  426. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow2"></u-icon>
  427. </p>
  428. </view>
  429. <view class="details-row">
  430. <p>充电总收入</p>
  431. <span>{{(indexData2.incomeMap.chargingAmount).toFixed(2)}}元</span>
  432. </view>
  433. <view class="details-row">
  434. <p>站主/桩主收入</p>
  435. <span>{{indexData2.incomeMap.incomeAmount.toFixed(2)}}元</span>
  436. </view>
  437. <view class="details-row">
  438. <p>预估用电度数</p>
  439. <span>{{(indexData2.incomeMap.electricQuantity/10000).toFixed(1)}}度</span>
  440. </view>
  441. <view class="details-row">
  442. <p>预估电费</p>
  443. <span>{{indexData2.incomeMap.costAmount.toFixed(2)}}元</span>
  444. </view>
  445. <view class="details-row">
  446. <p>服务费预估收益</p>
  447. <span>{{indexData2.incomeMap.serviceAmount.toFixed(2)}}元</span>
  448. </view>
  449. <view class="details-row">
  450. <p>折扣卡收益</p>
  451. <span>{{indexData2.incomeMap.cardIncomeAmount.toFixed(2)}}元</span>
  452. </view>
  453. <view class="details-row">
  454. <p>预估总利润</p>
  455. <span>{{(indexData2.incomeMap.serviceAmount+indexData2.incomeMap.cardIncomeAmount).toFixed(2)}}元</span>
  456. </view>
  457. </view>
  458. </view>
  459. <Tabbar :current="0" ref="tabbarMain"></Tabbar>
  460. <!-- <u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
  461. -->
  462. </view>
  463. </template>
  464. <script>
  465. import Tabbar from '@/components/TabbarFinance.vue'
  466. import * as API from '@/apis/finance.js'
  467. import * as echarts from "echarts";
  468. //require("@/apis/echarts-5-3.min.js")
  469. //import * as echarts from "@/apis/echarts-5-3.min.js";
  470. import {
  471. daysDistance,
  472. beforeTimeStamp,
  473. currentTimeStamp,
  474. parseUnixTime,
  475. newDate
  476. } from '@/utils'
  477. export default {
  478. data() {
  479. return {
  480. popupShow3: false,
  481. params: {
  482. year: true,
  483. month: true,
  484. day: false,
  485. hour: false,
  486. minute: false,
  487. second: false
  488. },
  489. indexData4List: [],
  490. indexData4Obj: {},
  491. indexData5List: [],
  492. indexData5Obj: {},
  493. headitemby: "",
  494. isinit: true,
  495. form: {},
  496. form2: {},
  497. selecttype: "",
  498. selectstationId: "",
  499. selectdeviceNo: "",
  500. popupShow2: false,
  501. popupShow: false,
  502. popupShow4: false,
  503. popupShow5: false,
  504. popupShow6: false,
  505. popupShow7: false,
  506. nowTime: 0,
  507. selectstationId2: "",
  508. selectstationIndex: 0,
  509. selectstationName: "",
  510. info: {},
  511. title: "",
  512. showdate: false,
  513. showdate2: false,
  514. queryTime: "",
  515. queryTime2: "",
  516. indexData: {},
  517. indexData3: null,
  518. indexData2: null,
  519. indexData4: null,
  520. type_head: '1',
  521. startDate_head: '',
  522. changeitemBl: false,
  523. myChart: null,
  524. myChartReady: false,
  525. myChartTime: false,
  526. subsection: [{
  527. name: '金额'
  528. },
  529. {
  530. name: '笔数'
  531. }
  532. ],
  533. stationFlowList: [],
  534. serviceMoneySum: 0,
  535. allMoneySum: 0,
  536. stationList: [],
  537. stationListSon: [],
  538. tabbarList: [{
  539. iconPath: "bar-chart-box-fill",
  540. selectedIconPath: "bar-chart-box-fill",
  541. text: '统计',
  542. count: 0,
  543. isDot: true,
  544. customIcon: true,
  545. },
  546. {
  547. iconPath: "article-fill",
  548. selectedIconPath: "article-fill",
  549. text: '明细',
  550. midButton: true,
  551. customIcon: true,
  552. },
  553. {
  554. iconPath: "account-pin-box-fill",
  555. selectedIconPath: "account-pin-box-fill",
  556. text: '我的',
  557. count: 0,
  558. isDot: false,
  559. customIcon: true,
  560. },
  561. ],
  562. endTime: '',
  563. endTime2: '',
  564. current: 1,
  565. background: {
  566. background: 'none'
  567. },
  568. value: '',
  569. type: 'select',
  570. show: false,
  571. border: true,
  572. step: 0,
  573. stepname: '',
  574. startTime: '',
  575. stepid: 0,
  576. windowWidth: 0,
  577. showTopobj: {},
  578. showMonthlyCard: false,
  579. }
  580. },
  581. onShow() {
  582. if (this.$refs.tabbarMain) {
  583. this.$refs.tabbarMain.setcount(0);
  584. }
  585. API.homeChargingGunStatus().then((res) => {
  586. this.indexData4 = res.data;
  587. }).catch(error => {
  588. uni.showToast({
  589. title: error
  590. })
  591. })
  592. },
  593. onLoad() {
  594. this.info = this.carhelp.getPersonInfo()
  595. this.info = this.carhelp.getPersonInfo()
  596. if (this.info && this.info.showMonthlyCard) {
  597. this.showMonthlyCard = this.info.showMonthlyCard;
  598. }
  599. this.title = this.info.merchantAccountName
  600. uni.getSystemInfo().then(e => {
  601. this.windowWidth = e[1].windowWidth
  602. })
  603. },
  604. components: {
  605. Tabbar
  606. },
  607. onReady() {
  608. var date = new Date();
  609. this.nowTime = 7
  610. this.queryTime = parseUnixTime(currentTimeStamp(), '{y}-{m}');
  611. this.queryTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}'),
  612. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  613. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  614. this.endTime = parseUnixTime(beforeTimeStamp(0), '{y}-{m}-{d}')
  615. //this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  616. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  617. this.getStation()
  618. },
  619. computed: {
  620. // startTime(){
  621. // return this.queryTime+'-1'
  622. // },
  623. startTime2() {
  624. return this.queryTime2 + '-01'
  625. },
  626. },
  627. methods: {
  628. indexDate5Ck(t, status) {
  629. //单车充电
  630. API.homeChargingGunStatus().then((res) => {
  631. this.indexData4 = res.data;
  632. }).catch(error => {
  633. uni.showToast({
  634. title: error
  635. })
  636. })
  637. this.indexData5Obj.type = t
  638. API.homeChargingSingleCarStatusDetail({
  639. status: status
  640. }).then((res) => {
  641. this.popupShow6 = true;
  642. this.indexData5List = res.data.stationList;
  643. for (var i in this.indexData5List) {
  644. var item = this.indexData5List[i];
  645. if (item.deviceNum) {
  646. this.popupShow6 = true
  647. break
  648. }
  649. this.popupShow6 = false;
  650. }
  651. if (!this.popupShow6) {
  652. uni.showToast({
  653. title: "电单车充电桩" + (t ? "正常" : "故障") + "0支"
  654. })
  655. }
  656. }).catch(error => {
  657. uni.showToast({
  658. title: error
  659. })
  660. })
  661. },
  662. indexDate4Ck(c, t) {
  663. //汽车充电
  664. API.homeChargingGunStatus().then((res) => {
  665. this.indexData4 = res.data;
  666. }).catch(error => {
  667. uni.showToast({
  668. title: error
  669. })
  670. })
  671. this.indexData4Obj.type = c
  672. if (c == 1) {
  673. this.indexData4Obj.typeName = "快(超)充"
  674. }
  675. if (c == 2) {
  676. this.indexData4Obj.typeName = "慢充"
  677. }
  678. if (t == 1) {
  679. this.indexData4Obj.text = "在用"
  680. this.indexData4Obj.value = "bot1span"
  681. }
  682. if (t == 0) {
  683. this.indexData4Obj.text = "空闲"
  684. this.indexData4Obj.value = "bot2span"
  685. }
  686. if (t == 99) {
  687. this.indexData4Obj.text = "故障"
  688. this.indexData4Obj.value = "bot3span"
  689. }
  690. API.homeChargingGunStatusDetail({
  691. type: c,
  692. status: t
  693. }).then((res) => {
  694. this.indexData4List = res.data.stationList;
  695. for (var i in this.indexData4List) {
  696. var item = this.indexData4List[i];
  697. if (item.queryNum) {
  698. this.popupShow5 = true
  699. break
  700. }
  701. this.popupShow5 = false;
  702. }
  703. if (!this.popupShow5) {
  704. uni.showToast({
  705. title: this.indexData4Obj.typeName + "枪" + this.indexData4Obj.text + "0支"
  706. })
  707. }
  708. }).catch(error => {
  709. uni.showToast({
  710. title: error
  711. })
  712. })
  713. },
  714. changeitem(e) {
  715. if (this.stationFlowList.length > 1 && e.index == this.stationFlowList.length - 1 && e.show) {
  716. this.changeitemBl = true;
  717. } else {
  718. this.changeitemBl = false;
  719. }
  720. },
  721. showTime(name) {
  722. if (!name) {
  723. return ''
  724. }
  725. return name.replace('-', '年') + '月';
  726. },
  727. getStation(bl) {
  728. API.stationList().then((res) => {
  729. this.stationList = res.data.stationList
  730. this.stationList.unshift({
  731. id: '',
  732. name: "全部站点"
  733. })
  734. this.selectstationName = "全部站点"
  735. this.stationListSon = res.data.deviceList
  736. this.getDataHome2()
  737. this.getData()
  738. this.getData2()
  739. }).catch(error => {
  740. uni.showToast({
  741. title: error
  742. })
  743. })
  744. },
  745. resetBtn() {
  746. this.nowTime = 7
  747. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  748. this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  749. this.selecttype = ""
  750. this.selectstationId = ""
  751. this.selectdeviceNo = ""
  752. this.form = {
  753. type: this.selecttype,
  754. stationId: this.selectstationId,
  755. deviceNo: this.selectdeviceNo,
  756. };
  757. this.popupShow = false;
  758. this.list = [];
  759. this.getData()
  760. },
  761. okbtn() {
  762. this.popupShow = false;
  763. this.form = {
  764. type: this.selecttype,
  765. stationId: this.selectstationId,
  766. deviceNo: this.selectdeviceNo,
  767. };
  768. this.list = [];
  769. this.getData()
  770. },
  771. resetBtn2() {
  772. this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  773. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  774. this.selectstationId2 = ""
  775. this.form2 = {
  776. stationId: this.selectstationId2,
  777. };
  778. this.popupShow2 = false;
  779. this.getData2()
  780. },
  781. okbtn2() {
  782. this.popupShow2 = false;
  783. this.form2 = {
  784. stationId: this.selectstationId2,
  785. };
  786. this.getData2()
  787. },
  788. getDataHome2() {
  789. var endtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  790. API.homeHeadChargingStatistics({
  791. type: this.type_head,
  792. startDate: this.startDate_head,
  793. endDate: endtime
  794. }).then((res) => {
  795. this.indexData3 = res.data;
  796. uni.hideLoading()
  797. // if( this.info.accountType==3){
  798. // //getPie2
  799. // this.getPie2()
  800. // }else{
  801. // //getPie
  802. // this.getPie()
  803. // }
  804. this.getPie(this.info.accountType)
  805. }).catch(error => {
  806. uni.showToast({
  807. title: error
  808. })
  809. })
  810. },
  811. // getDataHome() {
  812. // API.homeHeadStatistics().then((res) => {
  813. // this.indexData = res.data;
  814. // }).catch(error => {
  815. // uni.showToast({
  816. // title: error
  817. // })
  818. // })
  819. // },
  820. getData() {
  821. this.form.startDate = this.startTime,
  822. this.form.endDate = this.endTime
  823. API.homeFlowStatistics(this.form).then((res) => {
  824. this.stationFlowList = res.data.stationFlowList;
  825. this.nowTime = daysDistance(this.startTime, this.endTime) + 1;
  826. this.serviceMoneySum = 0;
  827. this.allMoneySum = 0;
  828. this.serviceMoneySum = res.data.allProfit;
  829. this.allMoneySum = res.data.allAmount;
  830. for (var i in this.stationFlowList) {
  831. var item = this.stationFlowList[i];
  832. // this.allMoneySum += item.actualMoney
  833. // this.serviceMoneySum += item.serviceMoney
  834. // this.serviceMoneySum += item.cardMoney
  835. }
  836. }).catch(error => {
  837. uni.showToast({
  838. title: error
  839. })
  840. })
  841. },
  842. getData2() {
  843. uni.showLoading({
  844. title: "加载中",
  845. mask: true,
  846. })
  847. this.form2.startDate = this.startTime2,
  848. this.form2.endDate = this.endTime2
  849. API.homeIncomeStatistics(this.form2).then((res) => {
  850. this.indexData2 = res.data
  851. uni.hideLoading()
  852. }).catch(error => {
  853. uni.showToast({
  854. title: error
  855. })
  856. })
  857. },
  858. changesub(e) {
  859. this.current = e
  860. this.type_head = e;
  861. uni.showLoading({
  862. title: "加载中",
  863. mask: true,
  864. })
  865. if (e == 1) {
  866. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  867. } else {
  868. this.startDate_head = parseUnixTime(beforeTimeStamp(365), '{y}-{m}-01')
  869. }
  870. // this.getPie()
  871. this.getDataHome2()
  872. },
  873. changedate4(e) {
  874. this.startTime = e.startDate
  875. this.endTime = e.endDate
  876. this.okbtn()
  877. },
  878. changedate3(e) {
  879. var index = e[0];
  880. var obj = this.stationList[index];
  881. this.selectstationId2 = obj.id;
  882. this.selectstationIndex = index;
  883. this.selectstationName = obj.name;
  884. this.okbtn2()
  885. },
  886. changedate(e) {
  887. this.queryTime = e.year + '-' + e.month;
  888. this.startTime = e.year + '-' + e.month + '-01';
  889. if (e.month == '12') {
  890. this.endTime = (e.year) + "-12-31"
  891. } else {
  892. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  893. var a = beforeTimeStamp(1, b);
  894. this.endTime = parseUnixTime(a, '{y}-{m}-{d}')
  895. }
  896. this.okbtn()
  897. },
  898. changedate2(e) {
  899. this.queryTime2 = e.year + '-' + e.month;
  900. if (e.month == '12') {
  901. this.endTime2 = (e.year) + "-12-31"
  902. } else {
  903. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  904. var a = beforeTimeStamp(1, b);
  905. this.endTime2 = parseUnixTime(a, '{y}-{m}-{d}')
  906. }
  907. this.okbtn2()
  908. },
  909. getPie(type) {
  910. //true 正常版本 false 个人版本
  911. var typebl = !(this.info.accountType == 3);
  912. var dataInterval = null;
  913. if (typebl) {
  914. if (this.type_head == 1) {
  915. dataInterval = [0, 75, 100,
  916. 125, 150, 200, 400, 500,
  917. 600, 1200, 1400, 1600, 1800,
  918. 2600, 2800,
  919. 3000, 4200,
  920. 4800, 5200, 6500, 7000, 7500, 8000, 12000, 14000, 16000, 18000, 20000, 23000,
  921. 25000, 30000, 35000, 40000, 999999
  922. ];
  923. } else {
  924. dataInterval = [0, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000,
  925. 90000, 100000, 120000, 140000, 160000, 180000, 200000, 220000, 240000, 280000, 3200000,
  926. 3500000, 400000, 500000,
  927. 999999
  928. ];
  929. }
  930. }
  931. this.headitemby = "";
  932. var showkey = "";
  933. var getData = this.indexData3.graphMap;
  934. for (var i in getData) {
  935. var item = getData[i]
  936. item.todayEQAmount2 = (item.todayEQAmount / 10000)
  937. console.log(i)
  938. if (this.type_head == 1) {
  939. this.showTopobj = item;
  940. }
  941. }
  942. console.log(this.showTopobj)
  943. this.indexData3.graphMap = getData
  944. //var unit = this.current ? '笔' : '元'
  945. var colorName = "#333"
  946. // this.showlist1 = ['收入', '利润', '次数','新电途'];
  947. var showlistColor = ['#5872c0', '#de6e6a', '#f3c96b', '#69be8d', '#c661b4'];
  948. // this.showlist1 = ['收入', '利润', '电量', '新电途'];
  949. // var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount'];
  950. this.showlist1 = ['收入', '利润', '电量', '新电途', '快电'];
  951. var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount', 'todayKDAmount'];
  952. if(this.showMonthlyCard&&this.type_head == 2){
  953. var sz2 = ['todayAmountC', 'todayProfitC', 'todayEQAmount2', 'todayXDTAmount', 'todayKDAmount'];
  954. }
  955. var zLevel = [20, 40, 10, 30, 9];
  956. //var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  957. if (!this.myChart) {
  958. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  959. this.myChart.on("dataZoom", (res) => {
  960. showkey = "";
  961. this.headitemby = "";
  962. });
  963. }
  964. this.myChart.clear();
  965. //
  966. var timelist = []
  967. for (var i in getData) {
  968. if (this.type_head == 1) {
  969. timelist.push(i.substring(5))
  970. } else {
  971. timelist.push(i)
  972. }
  973. }
  974. var list = [];
  975. for (var j in this.showlist1) {
  976. var ap = {
  977. name: this.showlist1[j],
  978. type: 'line',
  979. lineStyle: {
  980. color: showlistColor[j]
  981. },
  982. itemStyle: {
  983. color: showlistColor[j]
  984. },
  985. z: zLevel[j],
  986. // label: {
  987. // show: true,
  988. // position: 'top'
  989. // },
  990. data: []
  991. }
  992. if (this.type_head == 1) {
  993. ap.symbolSize = 3;
  994. }
  995. var bl = true;
  996. for (var i in getData) {
  997. //var time=this.queryDate.replace("-","/").replace("-","/")
  998. //time+' '+i
  999. var obj = getData[i][sz2[j]];
  1000. //**********
  1001. if (typebl) {
  1002. const min_v = Math.max(...dataInterval.filter((v) => v <= obj));
  1003. // 2.寻找在数据间隔里大于amount的最小值
  1004. const max_v = Math.min(...dataInterval.filter((v) => v > obj));
  1005. // 3.寻找 min_v 所在的下标
  1006. const index = dataInterval.findIndex((v) => v === min_v);
  1007. // 4.计算该amount在y轴上应该展示的位置
  1008. const y_value = ((obj - min_v) / (max_v - min_v)) * 10 + index * 10;
  1009. obj = y_value;
  1010. }
  1011. //**********
  1012. //'todayAmount', 'todayProfit', 'todayEQNum'
  1013. // if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 &&getData[i].todayEQNum == 0) {
  1014. // //&& &&getData[i].todayEQNum == 0
  1015. // continue;
  1016. // }
  1017. bl = false;
  1018. var time = i
  1019. if (this.type_head == 1) {
  1020. //time = i.substring(5)
  1021. } else {
  1022. }
  1023. ap.data.push([time, obj]);
  1024. }
  1025. if (bl) {
  1026. ap.data = [];
  1027. for (var i in getData) {
  1028. //var time=this.queryDate.replace("-","/").replace("-","/")
  1029. //time+' '+i
  1030. var obj = getData[i][sz2[j]];
  1031. var time = i
  1032. if (this.type_head == 1) {
  1033. time = i.substring(5)
  1034. } else {
  1035. }
  1036. // if(j!=2){
  1037. // obj=obj.toFixed(2)
  1038. // }
  1039. ap.data.push([time, obj]);
  1040. }
  1041. }
  1042. list.push(ap)
  1043. }
  1044. var yshow = 0;
  1045. // 指定图表的配置项和数据
  1046. var option = {
  1047. tooltip: {
  1048. position: (e) => {
  1049. var x = e[0]
  1050. var y = e[1]
  1051. // if(y<50){
  1052. // y+=20
  1053. // }
  1054. // console.log(e)
  1055. // return [x,y]
  1056. if (this.windowWidth) {
  1057. if (y < 100) {
  1058. if (x < this.windowWidth / 2) {
  1059. return ['30%', '60%']
  1060. } else {
  1061. return ['10%', '60%']
  1062. }
  1063. } else {
  1064. if (x < this.windowWidth / 2) {
  1065. return ['30%', '-45%']
  1066. } else {
  1067. return ['10%', '-45%']
  1068. }
  1069. }
  1070. }
  1071. },
  1072. formatter: (value) => {
  1073. //getPie
  1074. var name = value[0].data[0];
  1075. var info = getData[name];
  1076. var style = "float: right;margin-left: 3px;"
  1077. var text1 = ""
  1078. for (var i in value) {
  1079. var u = "元"
  1080. var num = info[sz2[value[i].seriesIndex]];
  1081. if (!num) {
  1082. num = 0;
  1083. }
  1084. if (value[i].seriesName == '电量') {
  1085. u = '度'
  1086. num = num.toFixed(2)
  1087. } else if (value[i].seriesName == '次数') {
  1088. u = '次'
  1089. } else {
  1090. num = num.toFixed(2)
  1091. }
  1092. var markerU = "";
  1093. if(this.type_head == 2 ){
  1094. if (!num) {
  1095. num = 0;
  1096. }
  1097. if(value[i].seriesName == "电量"){
  1098. u = "万度"
  1099. num = (num / 10000).toFixed(2)
  1100. }
  1101. if(value[i].seriesName == "利润"){
  1102. //u = "万元"
  1103. if(this.showMonthlyCard){
  1104. markerU = "(含卡)"
  1105. //num = info.todayProfitC
  1106. }
  1107. }
  1108. if(value[i].seriesName == "收入"){
  1109. u = "万元"
  1110. num = info.todayAmountW
  1111. if(this.showMonthlyCard){
  1112. markerU = "(含卡)"
  1113. num = info.todayAmountCW
  1114. }
  1115. }
  1116. if (!num) {
  1117. num = 0;
  1118. }
  1119. num=parseFloat(num)
  1120. num = num.toFixed(2)
  1121. }
  1122. text1 += "<p>" + value[i].marker + value[i].seriesName + markerU +
  1123. '<span style="' + style +
  1124. '">' + num + u + '</span></p>';
  1125. if (this.type_head == 2) {
  1126. console.log(i, this.queryTime2)
  1127. if (value[i].seriesName == "收入") {
  1128. if (name != this.queryTime2) {
  1129. if (info.yoyNum != null) {
  1130. text1 += "<p>" + value[i].marker + "收入同比" + (info.yoyNum < 0 ?
  1131. '减少' : '增长') + '<span style="' + style +
  1132. '">' + (info.yoyNum < 0 ? info.yoyNum * -1 : info.yoyNum) +
  1133. '%' + '</span></p>';
  1134. } else {
  1135. text1 += "<p>" + value[i].marker + "收入同比" + '<span style="' +
  1136. style +
  1137. '">' + '无数据' + '</span></p>';
  1138. }
  1139. if (info.qoqNum != null) {
  1140. text1 += "<p>" + value[i].marker + "收入环比" + (info.qoqNum < 0 ?
  1141. '减少' : '增长') + '<span style="' + style +
  1142. '">' + (info.qoqNum < 0 ? info.qoqNum * -1 : info.qoqNum) +
  1143. '%' + '</span></p>';
  1144. } else {
  1145. text1 += "<p>" + value[i].marker + "收入环比" + '<span style="' +
  1146. style +
  1147. '">' + '无数据' + '</span></p>';
  1148. }
  1149. }
  1150. }
  1151. }
  1152. if (i == value.length - 1 && this.showMonthlyCard) {
  1153. text1 +=
  1154. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>6折卡数量" +
  1155. '<span style="' + style +
  1156. '">' + (info.discountCardBuyNum ? info.discountCardBuyNum : 0) +
  1157. '张</span></p>';
  1158. text1 +=
  1159. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>月卡数量" +
  1160. '<span style="' + style +
  1161. '">' + (info.monthCardBuyNum ? info.monthCardBuyNum : 0) + '张</span></p>';
  1162. text1 +=
  1163. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>折扣卡金额" +
  1164. '<span style="' + style +
  1165. '">' + (info.cardBuyFee ? info.cardBuyFee : 0).toFixed(2) + '元</span></p>';
  1166. }
  1167. }
  1168. if (this.type_head == 1) {
  1169. //time = i.substring(5)
  1170. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  1171. var now = newDate(name);
  1172. var day = now.getDay();
  1173. var week = weeks[day];
  1174. return `<p>${name} ${week}</p>` + text1
  1175. } else {
  1176. return `<p>${name}</p>` + text1
  1177. }
  1178. },
  1179. trigger: 'axis',
  1180. borderColor: "#F0F0F0",
  1181. borderWidth: 1,
  1182. backgroundColor: "#ffffff",
  1183. textStyle: {
  1184. color: "#333"
  1185. }
  1186. },
  1187. legend: {
  1188. itemGap: 1,
  1189. data: this.showlist1,
  1190. textStyle: {
  1191. color: "#333"
  1192. }
  1193. },
  1194. grid: {
  1195. top: '16%',
  1196. left: '3%',
  1197. right: '8%',
  1198. bottom: '8%',
  1199. containLabel: true
  1200. },
  1201. xAxis: {
  1202. //type: 'value',
  1203. type: 'category',
  1204. splitNumber: 4,
  1205. boundaryGap: false,
  1206. axisLabel: {
  1207. formatter: (value) => {
  1208. if (this.headitemby == "") {
  1209. this.headitemby = value
  1210. }
  1211. var i = 0
  1212. if (this.type_head == 1) {
  1213. i = 0;
  1214. } else {
  1215. i = 3;
  1216. }
  1217. var showvalue = "";
  1218. var key = value.substring(0, 8 - i);
  1219. if (showkey == "" || value == this.headitemby) {
  1220. showkey = key
  1221. showvalue = value
  1222. showvalue = value.substring(5 - i)
  1223. } else {
  1224. if (key != showkey) {
  1225. showkey = key
  1226. showvalue = value
  1227. showvalue = value.substring(5 - i)
  1228. } else {
  1229. showvalue = value.substring(8 - i)
  1230. }
  1231. }
  1232. return showvalue.replace("-", ".");
  1233. },
  1234. textStyle: {
  1235. color: "#333"
  1236. }
  1237. },
  1238. axisLine: {
  1239. show: true,
  1240. lineStyle: {
  1241. color: "#333"
  1242. }
  1243. },
  1244. },
  1245. yAxis: {
  1246. type: 'value',
  1247. // name: '单位('+this.typeN+')',
  1248. axisLabel: {
  1249. formatter: (v, i) => {
  1250. //console.log(v,i)
  1251. if (dataInterval == null) {
  1252. return v
  1253. }
  1254. if (i == 0) {
  1255. yshow = 0
  1256. return 0
  1257. }
  1258. if (yshow != parseInt(v / 10)) {
  1259. yshow = parseInt(v / 10);
  1260. return dataInterval[parseInt(v / 10)]
  1261. } else {
  1262. return ''
  1263. }
  1264. },
  1265. textStyle: {
  1266. color: "#333"
  1267. }
  1268. },
  1269. axisLine: {
  1270. show: true,
  1271. lineStyle: {
  1272. color: "#333"
  1273. }
  1274. },
  1275. },
  1276. series: list
  1277. };
  1278. // option.dataZoom = [{
  1279. // type: 'inside',
  1280. // start: 0,
  1281. // end: 100
  1282. // },
  1283. // {
  1284. // start: 0,
  1285. // end: 100
  1286. // }
  1287. // ]
  1288. if (this.type_head == 1) {
  1289. } else {
  1290. //timelist.push(i)
  1291. }
  1292. //console.log(option)
  1293. // 使用刚指定的配置项和数据显示图表。
  1294. this.myChart.setOption(option);
  1295. }
  1296. }
  1297. }
  1298. </script>
  1299. <style>
  1300. page {
  1301. /* background: url(../../assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  1302. background-size: 100%; */
  1303. }
  1304. </style>
  1305. <style lang="scss" scoped>
  1306. .contentBodyName {
  1307. padding: 0 36rpx 12rpx 36rpx;
  1308. }
  1309. .contentBody {
  1310. color: #777777;
  1311. font-size: 28rpx;
  1312. display: flex;
  1313. justify-content: space-between;
  1314. flex-direction: row;
  1315. padding: 0 16rpx;
  1316. margin-bottom: 16rpx;
  1317. .body1 {
  1318. color: #333333;
  1319. margin-left: 20rpx;
  1320. }
  1321. .body2 {
  1322. display: flex;
  1323. .body2-0 {
  1324. width: 110rpx;
  1325. }
  1326. .body2-1 {
  1327. padding: 0 8rpx;
  1328. color: #00B962;
  1329. }
  1330. .body2-2 {
  1331. width: 120rpx;
  1332. }
  1333. }
  1334. .body3 {
  1335. padding: 0 8rpx;
  1336. color: #FF3D00;
  1337. }
  1338. }
  1339. .indexData5content {
  1340. padding: 40rpx 20rpx;
  1341. .contentTitle {
  1342. color: #333333;
  1343. font-size: 40rpx;
  1344. text-align: center;
  1345. font-weight: bold;
  1346. margin-bottom: 8px;
  1347. }
  1348. .contentItem {
  1349. border-bottom: 1px solid #ededed;
  1350. // margin: 16rpx;
  1351. // padding:12rpx;
  1352. img,
  1353. svg {
  1354. vertical-align: bottom;
  1355. height: 44rpx;
  1356. //margin-right: 8rpx;
  1357. }
  1358. .span1 {
  1359. text-align: left;
  1360. font-weight: bold;
  1361. font-size: 36rpx;
  1362. width: 310rpx;
  1363. overflow: hidden;
  1364. text-overflow: ellipsis;
  1365. white-space: nowrap;
  1366. }
  1367. .color777 {
  1368. color: #777777;
  1369. }
  1370. .color333 {
  1371. color: #333333;
  1372. }
  1373. .span2 {
  1374. border-right: 1px solid #ededed;
  1375. width: 120rpx;
  1376. padding: 0 8rpx;
  1377. span {
  1378. padding: 0 8rpx;
  1379. }
  1380. }
  1381. .span3 {
  1382. padding: 0 0 0 12rpx;
  1383. span {
  1384. padding: 0 8rpx;
  1385. }
  1386. width: 154rpx;
  1387. .bot1span {
  1388. color: #00B962;
  1389. }
  1390. .bot2span {
  1391. color: #AAAAAA;
  1392. }
  1393. .bot3span {
  1394. color: #FF3D00;
  1395. }
  1396. }
  1397. }
  1398. }
  1399. .indexData4content {
  1400. padding: 40rpx 20rpx;
  1401. .contentTitle {
  1402. color: #333333;
  1403. font-size: 40rpx;
  1404. text-align: center;
  1405. font-weight: bold;
  1406. margin-bottom: 8px;
  1407. }
  1408. .contentItem {
  1409. border-bottom: 1px solid #ededed;
  1410. justify-content: space-between;
  1411. flex-direction: row;
  1412. margin: 16rpx;
  1413. padding: 12rpx;
  1414. .span1 {
  1415. img {
  1416. vertical-align: bottom;
  1417. height: 44rpx;
  1418. margin-right: 8rpx;
  1419. }
  1420. font-weight: bold;
  1421. font-size: 36rpx;
  1422. width: 400rpx;
  1423. overflow: hidden;
  1424. text-overflow: ellipsis;
  1425. white-space: nowrap;
  1426. }
  1427. .color777 {
  1428. color: #777777;
  1429. }
  1430. .color333 {
  1431. color: #333333;
  1432. }
  1433. .span2 {
  1434. border-right: 1px solid #ededed;
  1435. width: 120rpx;
  1436. padding: 0 16rpx;
  1437. span {
  1438. padding: 0 8rpx;
  1439. }
  1440. }
  1441. .span3 {
  1442. padding: 0 0 0 16rpx;
  1443. span {
  1444. padding: 0 8rpx;
  1445. }
  1446. width: 154rpx;
  1447. color: #333;
  1448. .bot1span {
  1449. color: #00B962;
  1450. }
  1451. .bot2span {
  1452. color: #AAAAAA;
  1453. }
  1454. .bot3span {
  1455. color: #FF3D00;
  1456. }
  1457. }
  1458. }
  1459. .u-collapse-bot0span {
  1460. .contentItem {
  1461. display: flex;
  1462. }
  1463. }
  1464. .u-collapse-bot3span {
  1465. .contentItem {
  1466. margin: 0;
  1467. padding: 0;
  1468. .span1 {
  1469. width: 310rpx;
  1470. }
  1471. }
  1472. }
  1473. }
  1474. .chargingpile {
  1475. img {
  1476. vertical-align: bottom;
  1477. height: 44rpx;
  1478. margin-right: 8rpx;
  1479. }
  1480. p {
  1481. color: #185AC6;
  1482. font-size: 36rpx;
  1483. font-weight: bold;
  1484. span {
  1485. color: #777777;
  1486. margin-left: 8rpx;
  1487. font-size: 32rpx;
  1488. font-weight: normal;
  1489. }
  1490. }
  1491. .detailstablepile {
  1492. .details-row-main {
  1493. border-bottom: 1px solid #ededed;
  1494. padding: 10px 0;
  1495. }
  1496. span {
  1497. margin: 0 8rpx;
  1498. }
  1499. .bot {
  1500. display: inline-block;
  1501. width: 24rpx;
  1502. height: 24rpx;
  1503. margin-left: 4rpx;
  1504. border-radius: 999px;
  1505. }
  1506. .bot1 {
  1507. background-color: #00B962;
  1508. }
  1509. .bot2 {
  1510. //margin-left: 16rpx;
  1511. background-color: #AAAAAA;
  1512. }
  1513. .bot3 {
  1514. //margin-left: 16rpx;
  1515. background-color: #FF3D00;
  1516. }
  1517. .bot1span {
  1518. color: #00B962;
  1519. }
  1520. .bot2span {
  1521. color: #AAAAAA;
  1522. }
  1523. .bot3span {
  1524. color: #FF3D00;
  1525. }
  1526. .detailsline {
  1527. border-bottom: 1px solid #ededed;
  1528. }
  1529. .detailsline,
  1530. .detailsline—bottom {
  1531. display: flex;
  1532. .details-row {
  1533. width: 33%;
  1534. // display: flex;
  1535. // justify-content: space-between;
  1536. // flex-direction: column;
  1537. padding-left: 16rpx;
  1538. margin-bottom: 16rpx;
  1539. margin-top: 16rpx;
  1540. .span1 {
  1541. color: rgba(136, 136, 136, 100);
  1542. font-size: 28rpx;
  1543. width: 100%;
  1544. color: #333333;
  1545. }
  1546. }
  1547. }
  1548. .details-row-1 {
  1549. width: 47%;
  1550. padding-left: 0px !important;
  1551. //border-right: 1px solid #ededed;
  1552. }
  1553. }
  1554. }
  1555. .viewgun {
  1556. position: relative;
  1557. top: 200px;
  1558. text-align: center;
  1559. .viewspan {
  1560. width: 30%;
  1561. margin-left: 16rpx;
  1562. display: inline;
  1563. }
  1564. }
  1565. .headbotton1:after {
  1566. border-radius: 15px 0 0 15px;
  1567. }
  1568. .headbotton2:after {
  1569. border-radius: 0 15px 15px 0;
  1570. }
  1571. .detailstable {
  1572. padding: 30rpx 30rpx !important;
  1573. }
  1574. .detailstableHead {
  1575. .span1 {
  1576. font-size: 32rpx !important;
  1577. }
  1578. .details-row-head-1 {}
  1579. .details-row-head-2 {}
  1580. .details-row-head-3 {
  1581. width: 30% !important;
  1582. max-width: 150rpx;
  1583. .span {}
  1584. }
  1585. .span2 {
  1586. font-size: 44rpx !important;
  1587. font-weight: bold;
  1588. width: 100%;
  1589. color: #101010;
  1590. span {
  1591. font-size: 24rpx !important;
  1592. }
  1593. }
  1594. }
  1595. .detailslineHead {
  1596. border-top: 1px solid #ededed;
  1597. ;
  1598. .details-row {
  1599. padding-left: 8rpx !important;
  1600. }
  1601. font-size: 30rpx !important;
  1602. .span1 span {
  1603. font-size: 28rpx;
  1604. }
  1605. }
  1606. .detailstable,
  1607. .detailstableHead {
  1608. font-size: 16px;
  1609. p {
  1610. font-size: 14px;
  1611. }
  1612. .details-row-main {
  1613. border-bottom: 1px solid #ededed;
  1614. padding: 10px 0;
  1615. }
  1616. .detailsline {
  1617. border-bottom: 1px solid #ededed;
  1618. }
  1619. .detailsline,
  1620. .detailsline—bottom {
  1621. display: flex;
  1622. .details-row {
  1623. width: 50%;
  1624. display: flex;
  1625. justify-content: space-between;
  1626. flex-direction: column;
  1627. padding-left: 16rpx;
  1628. margin-bottom: 20rpx;
  1629. .span1 {
  1630. color: rgba(136, 136, 136, 100);
  1631. font-size: 28rpx;
  1632. width: 100%;
  1633. }
  1634. .span2 {
  1635. font-size: 36rpx;
  1636. width: 100%;
  1637. color: #101010;
  1638. span {
  1639. font-size: 24rpx;
  1640. }
  1641. }
  1642. }
  1643. }
  1644. .details-row-1 {
  1645. width: 47%;
  1646. padding-left: 0px !important;
  1647. border-right: 1px solid #ededed;
  1648. }
  1649. }
  1650. .details {
  1651. padding: 32rpx;
  1652. background-color: #fff;
  1653. border-radius: 8px;
  1654. }
  1655. .details-title {
  1656. margin-bottom: 16px;
  1657. h4 {
  1658. font-weight: normal;
  1659. font-size: 16px;
  1660. position: relative;
  1661. padding-left: 10px;
  1662. &::after {
  1663. content: '';
  1664. position: absolute;
  1665. height: 12px;
  1666. width: 4px;
  1667. background-color: #27B148;
  1668. left: 0;
  1669. top: 5px;
  1670. }
  1671. }
  1672. }
  1673. .details-row {
  1674. display: flex;
  1675. justify-content: space-between;
  1676. align-items: center;
  1677. margin-top: 30rpx;
  1678. p {
  1679. color: #37393c;
  1680. font-weight: bold;
  1681. }
  1682. }
  1683. .details-row2 {
  1684. display: flex;
  1685. justify-content: space-between;
  1686. align-items: center;
  1687. // margin-top: 15px;
  1688. p {
  1689. // color: #37393c;
  1690. // font-weight: bold;
  1691. }
  1692. }
  1693. .popup-screen {
  1694. padding: 20px;
  1695. position: relative;
  1696. .screen {
  1697. padding-bottom: 30px;
  1698. }
  1699. .screen-item {
  1700. margin-bottom: 20px;
  1701. .screen-head {
  1702. margin-bottom: 8px;
  1703. font-size: 16px;
  1704. }
  1705. .screen-main {
  1706. display: flex;
  1707. // display: -webkit-box;
  1708. flex-wrap: wrap;
  1709. }
  1710. .screen-entry {
  1711. width: 29%;
  1712. padding: 6px 0;
  1713. display: flex;
  1714. align-items: center;
  1715. justify-content: center;
  1716. background-color: #F2F5FA;
  1717. text-align: center;
  1718. margin-bottom: 10px;
  1719. border-radius: 3px;
  1720. margin-right: 6px;
  1721. }
  1722. .screen-entry.active {
  1723. background-color: #185AC6;
  1724. color: #fff;
  1725. }
  1726. }
  1727. .screen-foot {
  1728. position: fixed;
  1729. left: 0;
  1730. right: 0;
  1731. bottom: 0;
  1732. display: flex;
  1733. height: 50px;
  1734. border-top: 1px solid #ededed;
  1735. .screen-btn-l {
  1736. background-color: #fff;
  1737. flex: 0.2;
  1738. text-align: center;
  1739. line-height: 50px;
  1740. }
  1741. .screen-btn-r {
  1742. flex: 0.8;
  1743. text-align: center;
  1744. line-height: 50px;
  1745. background-color: #185AC6;
  1746. color: #fff;
  1747. }
  1748. }
  1749. }
  1750. .navbar-tit {
  1751. color: #fff;
  1752. font-size: 20px;
  1753. line-height: 20px;
  1754. padding-left: 15px;
  1755. padding-top: 10px;
  1756. font-weight: bold;
  1757. text {
  1758. margin-right: 8rpx;
  1759. }
  1760. }
  1761. .statisticsData {
  1762. background-color: #fff;
  1763. margin: 0px 24rpx 24rpx;
  1764. //padding:0px 24rpx 24rpx;
  1765. border-radius: 8px;
  1766. }
  1767. .statisticsDataMain {
  1768. flex-wrap: wrap;
  1769. display: flex;
  1770. }
  1771. .statisticsData-item {
  1772. flex: 1;
  1773. width: 40%;
  1774. .statisticsData-head {
  1775. display: flex;
  1776. align-items: center;
  1777. p {
  1778. color: #637AA2;
  1779. font-size: 12px;
  1780. }
  1781. }
  1782. .statisticsData-main {
  1783. margin-top: 4px;
  1784. font-size: 18px;
  1785. }
  1786. .statisticsData-foot {
  1787. display: flex;
  1788. align-items: center;
  1789. margin-top: 16px;
  1790. p {
  1791. color: #637AA2;
  1792. }
  1793. h4 {
  1794. margin-left: 8px;
  1795. }
  1796. }
  1797. }
  1798. .statisticsChart {
  1799. margin: 32rpx;
  1800. .statisticsChart-head {
  1801. margin-bottom: 10rpx;
  1802. display: flex;
  1803. justify-content: space-between;
  1804. align-items: center;
  1805. h4 {
  1806. font-weight: normal;
  1807. font-size: 16px;
  1808. position: relative;
  1809. padding-left: 10px;
  1810. &::after {
  1811. content: '';
  1812. position: absolute;
  1813. height: 12px;
  1814. width: 4px;
  1815. background-color: #4E8DF6;
  1816. left: 0;
  1817. top: 5px;
  1818. }
  1819. }
  1820. .h4-1 {
  1821. display: flex;
  1822. align-items: center;
  1823. padding-left: 0;
  1824. color: rgba(16, 16, 16, 1);
  1825. img {
  1826. margin-right: 8rpx;
  1827. }
  1828. &::after {
  1829. content: none;
  1830. }
  1831. }
  1832. .statisticsChart-time {
  1833. display: flex;
  1834. align-items: center;
  1835. p {
  1836. color: #666;
  1837. }
  1838. }
  1839. }
  1840. .statisticsChart-main {
  1841. background-color: #fff;
  1842. padding: 10px 16px 16px 16px;
  1843. border-radius: 8px;
  1844. }
  1845. }
  1846. .top-cover {
  1847. // height: 470px;
  1848. // margin-bottom: 70px;
  1849. background: linear-gradient(179.94deg, rgba(0, 185, 98, 1) 71.55%, rgba(0, 196, 104, 0) 99.35%);
  1850. .income {
  1851. padding: 64rpx 32rpx 24rpx 32rpx;
  1852. color: rgba(255, 255, 255, 1);
  1853. .today-income {
  1854. text-align: center;
  1855. .number {
  1856. font-weight: bold;
  1857. font-size: 36px;
  1858. text {
  1859. margin-left: 8rpx;
  1860. }
  1861. }
  1862. .text {
  1863. font-size: 16px;
  1864. }
  1865. }
  1866. .else {
  1867. margin-top: 32rpx;
  1868. display: flex;
  1869. justify-content: space-between;
  1870. .item {
  1871. text-align: center;
  1872. .item-number {
  1873. font-weight: bold;
  1874. font-size: 48rpx;
  1875. margin-bottom: 8rpx;
  1876. }
  1877. }
  1878. }
  1879. }
  1880. }
  1881. </style>