index.vue 40 KB

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