index.vue 56 KB

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