index.vue 57 KB

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