index.vue 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151
  1. <template>
  2. <view>
  3. <view class="top-cover">
  4. <view>
  5. <view class="navbar-tit" :class="{
  6. 'navbar-tit-box':flag
  7. }">
  8. <!--<span class="navbar-tit1">
  9. <img style="height: 40rpx ;width: 40rpx; margin-right: 4rpx;" src="@/assets/img/titleIcon.svg" alt="">
  10. 51充电联盟
  11. </span> -->
  12. <img src="@/assets/img/logo5Ud.png" style="height: 40rpx ;width: 192rpx;" alt="">
  13. <span class="navbar-tit2">运管中心</span>
  14. </view>
  15. <uni-view class="u-navbar-placeholder" style="width: 100%; height: 88rpx;"></uni-view>
  16. </view>
  17. <view class="income">
  18. <!-- 今日收入 -->
  19. <view class="today-queryHeadTime">{{queryHeadTime}}</view>
  20. <view class="today-income">
  21. <view class="number" @click="changesub(1)">
  22. {{showTopobj.todayAmount}}<text><img src="@/assets/img/riLine-refresh-line.svg"
  23. alt=""></text>
  24. </view>
  25. <view class="text">
  26. 今日收入 (元)
  27. </view>
  28. </view>
  29. <!-- 其他 -->
  30. <view class="else">
  31. <view class="item">
  32. <view class="item-number">
  33. {{showTopobj.todayProfit}}
  34. </view>
  35. <view class="item-text">
  36. 利润(元)
  37. </view>
  38. </view>
  39. <view class="item">
  40. <view class="item-number">
  41. {{showTopobj.todayEQAmount2?showTopobj.todayEQAmount2.toFixed(2):0}}
  42. </view>
  43. <view class="item-text">
  44. 今日电量 (度)
  45. </view>
  46. </view>
  47. <view class="item" v-if="showMonthlyCard">
  48. <view class="item-number">
  49. {{showTopobj.discountCardBuyNum}} / {{showTopobj.monthCardBuyNum}}
  50. </view>
  51. <view class="item-text">
  52. 6折卡/月卡 (张)
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="statisticsData">
  58. <view class="statisticsChart" style="padding-top:20rpx;margin-bottom: 0px">
  59. <view class="statisticsChart-head ">
  60. <h4 class="h4-1"><img src="@/assets/img/riFill-numbers-fill.svg" alt="">充电统计</h4>
  61. <view class="navbar-screen ">
  62. <u-button text="月落" size="mini" class="headbotton1" style="border-radius: 10px 0 0 10px;"
  63. :type="current==1?'success':'info'" @click="changesub(1)">按天</u-button>
  64. <u-button text="月落" size="mini" class="headbotton2" style="border-radius: 0 10px 10px 0;"
  65. :type="current==2?'success':'info'" @click="changesub(2)">按月</u-button>
  66. </view>
  67. </view>
  68. </view>
  69. <view class="detailstableHead" style="
  70. padding-top: 1px;
  71. ">
  72. <view id="pieEcharts" style="min-height:240px;margin-top: 40rpx">
  73. </view>
  74. </view>
  75. <view class="detailstableHead" v-if="indexData&&false">
  76. <view class="detailsline">
  77. <view class="details-row details-row-head-1 ">
  78. <view class="span1">今日收入</view>
  79. <view class="span2">
  80. {{indexData.todayAmount?indexData.todayAmount.toFixed(2):0}}<span>元</span>
  81. </view>
  82. </view>
  83. <view class="details-row details-row-head-2">
  84. <view class="span1">今日利润</view>
  85. <view class="span2">
  86. {{indexData.todayProfit?indexData.todayProfit.toFixed(2):0}}<span>元</span>
  87. </view>
  88. </view>
  89. <view class="details-row details-row-head-3">
  90. <view class="span1">今日笔数</view>
  91. <view class="span2">{{indexData.todayEQNum?indexData.todayEQNum:0}}<span>笔</span></view>
  92. </view>
  93. </view>
  94. <view class="detailsline">
  95. <view class="details-row details-row-head-1 ">
  96. <view class="span1">昨日收入</view>
  97. <view class="span2">
  98. {{indexData.yesterdayAmount?indexData.yesterdayAmount.toFixed(2):0}}<span>元</span>
  99. </view>
  100. </view>
  101. <view class="details-row details-row-head-2">
  102. <view class="span1">昨日利润</view>
  103. <view class="span2">
  104. {{indexData.yesterdayProfit?indexData.yesterdayProfit.toFixed(2):0}}<span>元</span>
  105. </view>
  106. </view>
  107. <view class="details-row details-row-head-3">
  108. <view class="span1">昨日笔数</view>
  109. <view class="span2">{{indexData.yesterdayEQNum?indexData.yesterdayEQNum:0}}<span>笔</span>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="detailsline—bottom">
  114. <view class="details-row details-row-head-1">
  115. <view class="span1">本月收入</view>
  116. <view class="span2">
  117. {{indexData.thisMonthAmount?indexData.thisMonthAmount.toFixed(2):0}}<span>元</span>
  118. </view>
  119. </view>
  120. <view class="details-row details-row-head-2">
  121. <view class="span1">本月利润</view>
  122. <view class="span2">
  123. {{indexData.thisMonthProfit?indexData.thisMonthProfit.toFixed(2):0}}<span>元</span>
  124. </view>
  125. </view>
  126. <view class="details-row details-row-head-3">
  127. <view class="span1">本月笔数</view>
  128. <view class="span2">{{indexData.thisMonthEQNum?indexData.thisMonthEQNum:0}}<span>笔</span>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. <u-picker mode="time" v-model="popupShow" @confirm="changedate" :default-time="queryTime" :params="params">
  136. </u-picker>
  137. <u-picker mode="time" v-model="popupShow2" @confirm="changedate2" :default-time="queryTime2+'-01'"
  138. :params="params"></u-picker>
  139. <u-popup border-radius="30" v-model="popupShow3" mode="bottom" height="80%">
  140. <view class="popup-screen">
  141. <view class="screen">
  142. <view class="screen-item">
  143. <view class="screen-head">站点</view>
  144. <view class="screen-main">
  145. <view class="screen-entry "
  146. :class="{
  147. active:selectstationId==''&&selectstationNo==''
  148. }"
  149. @click="selectstationId='',selectdeviceNo='',selectstationNo='',selectstationNameTemp='全部站点'"
  150. >全部</view>
  151. <template v-for="(item,i) in stationList" >
  152. <view class="screen-entry"
  153. :class="{
  154. active:selectstationNo==item.stationNo.substring(0,1)
  155. }"
  156. @click="selectstationId='',selectdeviceNo='',selectstationNo=item.stationNo.substring(0,1)"
  157. v-if="getStationNo(i)" :key="i" >
  158. {{item.stationNo.substring(0,1)}}类</view>
  159. </template>
  160. <template v-for="(item,i) in stationList" >
  161. <view class="screen-head"
  162. style="width: 100%;"
  163. v-if="getStationNo(i)&&selectstationNo==item.stationNo.substring(0,1)" :key="i" >
  164. <span style="color: red;">*</span>{{item.stationNo.substring(0,1)}}类</view>
  165. <view
  166. :key="i"
  167. v-show="selectstationNo==item.stationNo.substring(0,1)"
  168. :class="{
  169. active:selectstationId==item.id
  170. }"
  171. @click="selectstationId=item.id,selectdeviceNo='',selectstationNameTemp=item.name"
  172. class="screen-entry" >{{item.name}}</view>
  173. </template>
  174. </view>
  175. </view>
  176. </view>
  177. <view class="screen-foot">
  178. <view class="screen-btn-l" @click="resetBtn3">重置</view>
  179. <view class="screen-btn-r" @click="okbtn3">确定</view>
  180. </view>
  181. </view>
  182. </u-popup>
  183. <u-popup border-radius="30" v-model="popupShow7" mode="bottom" height="80%">
  184. <h2 style="padding: 40rpx 40rpx 0 40rpx;">充电枪使用情况统计</h2>
  185. <view class="popup-screen">
  186. <view class="screen">
  187. <view class="screen-item" v-if="false">
  188. <view class="screen-head">显示图表类型</view>
  189. <view class="screen-main">
  190. <view class="screen-entry"
  191. :class="{
  192. active:selectShowNumTypeTemp==1
  193. }"
  194. @click="selectShowNumTypeTemp=1"
  195. >
  196. 百分比
  197. </view>
  198. <view class="screen-entry"
  199. :class="{
  200. active:selectShowNumTypeTemp==2
  201. }"
  202. @click="selectShowNumTypeTemp=2"
  203. >
  204. 次数
  205. </view>
  206. </view>
  207. </view>
  208. <view class="screen-item" v-if="false">
  209. <view class="screen-head">充电桩类型<span style="color: red;">*</span><span style="color:rgb(136, 136, 136)">(可多选)</span></view>
  210. <view class="screen-main">
  211. <view class="screen-entry"
  212. :class="{
  213. active:selectShowNumTypeTemp1==1
  214. }"
  215. @click="selectShowNumTypeTemp1Btn"
  216. >
  217. 快充桩
  218. </view>
  219. <view class="screen-entry"
  220. :class="{
  221. active:selectShowNumTypeTemp2==1
  222. }"
  223. @click="selectShowNumTypeTemp2Btn"
  224. >
  225. 慢充桩
  226. </view>
  227. </view>
  228. </view>
  229. <view class="screen-item">
  230. <view class="screen-head">查询日期</view>
  231. <view class="screen-main2">
  232. <u-calendar v-model="showdate" mode="range" @change="changedate7"></u-calendar>
  233. <view @click="showdate = true" style="
  234. border: 1px solid;
  235. padding: 5px;
  236. " >{{startTime3Temp+'至'+endTime3Temp}}</view>
  237. <!--
  238. <u-action-sheet :list="actionSheetList" v-model="show" @click="actionSheetCallback"></u-action-sheet>
  239. --></view>
  240. </view>
  241. <view class="screen-item">
  242. <view class="screen-head">站点类型<span style="color: red;">*</span></view>
  243. <view class="screen-main">
  244. <view class="screen-entry "
  245. :class="{
  246. active:selectstationNo7==''&&selectstationId7==''
  247. }"
  248. @click="selectstationId7='',selectstationNo7='',selectOneTemp={name:'全部站点'}"
  249. >全部</view>
  250. <template v-for="(item,i) in stationList" >
  251. <view class="screen-entry"
  252. :class="{
  253. active:selectstationNo7==item.stationNo.substring(0,1)
  254. }"
  255. @click="selectstationId7='',selectstationNo7=item.stationNo.substring(0,1)"
  256. v-if="getStationNo(i)&&item.stationNo.substring(0,1)!='D'&&item.stationNo.substring(0,1)!='E'" :key="i" >
  257. {{item.stationNo.substring(0,1)}}类</view>
  258. </template>
  259. <template v-for="(item,i) in stationList" >
  260. <view class="screen-head"
  261. style="width: 100%;"
  262. v-if="getStationNo(i)&&selectstationNo7==item.stationNo.substring(0,1)" :key="i" >
  263. {{item.stationNo.substring(0,1)}}类<span style="color: red;">*</span></view>
  264. <view
  265. :key="i"
  266. v-show="selectstationNo7==item.stationNo.substring(0,1)"
  267. :class="{
  268. active:selectstationId7==item.id
  269. }"
  270. @click="selectstationId7=item.id,selectOneTemp=item"
  271. class="screen-entry" >{{item.name}}</view>
  272. </template>
  273. </view>
  274. </view>
  275. <view class="screen-item" style="margin-bottom: 40rpx; " >
  276. <view class="screen-head">时间段查询<span style="color:rgb(136, 136, 136);margin-left: 20rpx;"> (勾选启用)</span></view>
  277. <view class="screen-main" style=" align-items: center;">
  278. <view>
  279. <checkbox-group @change="checkboxChange1">
  280. <checkbox value="cb" :checked="sliderNumTemp1.ck" ></checkbox>{{sliderNumTemp1.ck?'开启':'关闭'}}
  281. </checkbox-group>
  282. </view>
  283. <view style="
  284. width: 50%;margin-bottom: 8rpx;margin-left: 20rpx;
  285. ">
  286. <u-select v-model="sliderNum1Show" :default-value="sliderDefaultValue1" mode="mutil-column-auto" @confirm="handlerDoubleSlider1" :list="sliderNumList" ></u-select>
  287. <view @click="sliderNum1Show = true" style="
  288. border: 1px solid;
  289. padding: 5px;
  290. " >{{sliderNumTemp1.minValue+'点至'+(sliderNumTemp1.minValue>sliderNumTemp1.maxValue?'次日':'')+sliderNumTemp1.maxValue+'点'}}</view>
  291. </view>
  292. </view>
  293. <view class="screen-main" style=" align-items: center;" >
  294. <view>
  295. <checkbox-group @change="checkboxChange2">
  296. <checkbox value="cb" :checked="sliderNumTemp2.ck" ></checkbox>{{sliderNumTemp2.ck?'开启':'关闭'}}
  297. </checkbox-group>
  298. </view>
  299. <view style="
  300. width: 50%;margin-bottom: 8rpx;margin-left: 20rpx;
  301. ">
  302. <u-select v-model="sliderNum2Show" :default-value="sliderDefaultValue2 " mode="mutil-column-auto" @confirm="handlerDoubleSlider2" :list="sliderNumList" ></u-select>
  303. <view @click="sliderNum2Show = true" style="
  304. border: 1px solid;
  305. padding: 5px;
  306. " >{{sliderNumTemp2.minValue+'点至'+(sliderNumTemp2.minValue>sliderNumTemp2.maxValue?'次日':'')+sliderNumTemp2.maxValue+'点'}}</view>
  307. </view>
  308. </view>
  309. </view>
  310. </view>
  311. <view class="screen-foot">
  312. <view class="screen-btn-l" @click="popupShow7=false">关闭</view>
  313. <view class="screen-btn-r" @click="okbtn7">确定</view>
  314. </view>
  315. </view>
  316. </u-popup>
  317. <view class="statisticsChart chargingpile" v-if="indexData4">
  318. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  319. <h4>充电枪运行情况</h4>
  320. </view>
  321. <view class="details detailstablepile" style="padding: 12px 0 12px 12px ;">
  322. <p>
  323. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20"
  324. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  325. filter="none">
  326. <g>
  327. <path fill="rgba(23.97,90.015,197.88,1)"
  328. 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">
  329. </path>
  330. </g>
  331. </svg>
  332. <!-- <img style=" vertical-align: bottom;" src="@/assets/img/riFill-charging-pile-fill.svg"></img>
  333. --> 快(超)充枪<span>共</span>
  334. <span
  335. style="color:#000">{{indexData4.fastGunFaultNum+indexData4.fastGunFreeNum+indexData4.fastGunWorkNum}}</span>
  336. <span>支</span>
  337. </p>
  338. <view class="detailsline">
  339. <view class="details-row details-row-1" @click="indexDate4Ck(1,1)">
  340. <view class="span1"><span class="bot bot1"></span>在用<span
  341. class="bot1span">{{indexData4.fastGunWorkNum}}</span>支
  342. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  343. </view>
  344. </view>
  345. <view class="details-row details-row-1" @click="indexDate4Ck(1,0)">
  346. <view class="span1"><span class="bot bot2"></span>空闲<span
  347. class="bot2span">{{indexData4.fastGunFreeNum}}</span>支
  348. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  349. </view>
  350. </view>
  351. <view class="details-row details-row-1" @click="indexDate4Ck(1,99)">
  352. <view class="span1"><span class="bot bot3"></span>故障<span
  353. class="bot3span">{{indexData4.fastGunFaultNum}}</span>支
  354. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  355. </view>
  356. </view>
  357. </view>
  358. <p style="margin-top: 16rpx;color:#00B962">
  359. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20"
  360. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  361. filter="none">
  362. <g>
  363. <path fill="#00B962"
  364. 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">
  365. </path>
  366. </g>
  367. </svg>
  368. 慢充枪<span>共</span>
  369. <span
  370. style="color:#000">{{indexData4.slowGunFaultNum+indexData4.slowGunFreeNum+indexData4.slowGunWorkNum}}</span>
  371. <span>支</span>
  372. </p>
  373. <view class="detailsline—bottom">
  374. <view class="details-row details-row-1" @click="indexDate4Ck(2,1)">
  375. <view class="span1"><span class="bot bot1"></span>在用<span
  376. class="bot1span">{{indexData4.slowGunWorkNum}}</span>支
  377. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  378. </view>
  379. </view>
  380. <view class="details-row details-row-1" @click="indexDate4Ck(2,0)">
  381. <view class="span1"><span class="bot bot2"></span>空闲<span
  382. class="bot2span">{{indexData4.slowGunFreeNum}}</span>支
  383. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  384. </view>
  385. </view>
  386. <view class="details-row details-row-1" @click="indexDate4Ck(2,99)">
  387. <view class="span1"><span class="bot bot3"></span>故障<span
  388. class="bot3span">{{indexData4.slowGunFaultNum}}</span>支
  389. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  390. </view>
  391. </view>
  392. </view>
  393. </view>
  394. </view>
  395. <view class="statisticsChart chargingpile" v-if="indexData4">
  396. <view class="statisticsChart-head" style="margin-top: 20rpx;">
  397. <h4>电单车充电桩运行情况</h4>
  398. </view>
  399. <view class="details detailstablepile" style="padding: 12px 0 12px 12px ;">
  400. <p style="color:#1677FF">
  401. <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20" height="20"
  402. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  403. filter="none">
  404. <g>
  405. <path fill="#1677FF"
  406. 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">
  407. </path>
  408. </g>
  409. </svg>
  410. 电单车充电桩<span>共</span>
  411. <span style="color:#000">{{indexData4.singleCarOnlineNum+indexData4.singleCarNotOnlineNum}}</span>
  412. <span>台</span>
  413. </p>
  414. <view class="detailsline">
  415. <view class="details-row details-row-1" @click="indexDate5Ck(1,1)">
  416. <view class="span1"><span class="bot bot1"></span>正常<span
  417. class="bot1span">{{indexData4.singleCarOnlineNum}}</span>台
  418. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  419. </view>
  420. </view>
  421. <view class="details-row details-row-1" @click="indexDate5Ck(0,99)">
  422. <view class="span1"><span class="bot bot3"></span>故障<span
  423. class="bot3span">{{indexData4.singleCarNotOnlineNum}}</span>台
  424. <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28" />
  425. </view>
  426. </view>
  427. </view>
  428. </view>
  429. </view>
  430. <u-popup v-model="popupShow6" mode="bottom" border-radius="30">
  431. <view class="indexData5content">
  432. <view class="contentTitle">
  433. 电单车充电桩{{indexData5Obj.type?'正常':'故障'}}明细
  434. </view>
  435. <scroll-view scroll-y="true" style="height: 520rpx;">
  436. <u-collapse style="padding-bottom: 30rpx;">
  437. <u-collapse-item v-for="(item,index) in indexData5List" class="contentItem"
  438. v-show="item.deviceNum" :key="index">
  439. <svg slot="title" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="20"
  440. height="20"
  441. style=" vertical-align: bottom;border-color: rgba(0,0,0,0);border-width: bpx;border-style: undefined"
  442. filter="none">
  443. <g>
  444. <path fill="#1677FF"
  445. 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">
  446. </path>
  447. </g>
  448. </svg>
  449. <view slot="title" class="span1">
  450. {{item.stationName}}
  451. </view>
  452. <view slot="title">
  453. <span class="span2 color777">
  454. 共<span class="color333">{{item.deviceNum}}</span>台
  455. </span>
  456. <span class="span3 color777">
  457. 通道数<span class="color333">{{item.channelNum}}</span>
  458. </span>
  459. </view>
  460. <view style="padding-bottom: 30rpx;">
  461. <view class="contentBodyName">
  462. {{item.stationName}}
  463. </view>
  464. <view class="contentBody" v-for="(gun,i) in item.device" :key="i">
  465. <view class="body1">{{gun.deviceName}}</view>
  466. <view class="body2" v-if="indexData5Obj.type">
  467. <view class="body2-0">在用<span class="body2-1">{{gun.useNum}}</span> </view>
  468. <view class="body2-2">| 空闲 {{gun.freeNum}}</view>
  469. </view>
  470. <view class="body3" v-else>故障</view>
  471. </view>
  472. </view>
  473. </u-collapse-item>
  474. </u-collapse>
  475. </scroll-view>
  476. <view class="confrim-btn">
  477. <u-button shape="square" type="primary" @click="popupShow6 = false;">关闭</u-button>
  478. </view>
  479. </view>
  480. </u-popup>
  481. <u-popup v-model="popupShow5" mode="bottom" border-radius="30">
  482. <view class="indexData4content">
  483. <view class="contentTitle">
  484. {{indexData4Obj.typeName}}枪{{indexData4Obj.text}}明细
  485. <!-- <view v-show='indexData4Obj.value=="bot3span"' style="color:#777777;font-size: 12px;font-weight: normal;">
  486. 点击站点查看故障枪
  487. </view> -->
  488. </view>
  489. <scroll-view scroll-y="true" style="height: 520rpx;">
  490. <u-collapse class="u-collapse-bot3span"
  491. v-if='indexData4Obj.value=="bot3span"||indexData4Obj.value=="bot1span"'
  492. style="padding-bottom: 30rpx;">
  493. <u-collapse-item class="contentItem" v-for="(item,index) in indexData4List"
  494. v-show="item.queryNum" :key="index">
  495. <span class="span1" slot="title">
  496. <img v-show="indexData4Obj.type==1&&item.category!='超充'"
  497. src="@/assets/img/riFill-charging-pile-fill.svg">
  498. <img v-show="indexData4Obj.type==1&&item.category=='超充'"
  499. src="@/assets/img/riFill-charging-pile-fill3.svg">
  500. <img v-show="indexData4Obj.type==2" src="@/assets/img/riFill-charging-pile-fill2.svg">
  501. </img>
  502. {{item.stationName}}</span>
  503. <span class="span2 color777" slot="title">
  504. 共<span class="color333">{{item.gunNum}}</span>支
  505. </span>
  506. <span class="span3 color333" slot="title">
  507. {{indexData4Obj.text}}<span class="color777"
  508. :class="indexData4Obj.value">{{item.queryNum}}</span>支
  509. </span>
  510. <view style="padding-bottom: 30rpx;">
  511. <view class="contentBodyName">
  512. {{item.stationName}}
  513. </view>
  514. <view class="contentBody" v-for="(gun,i) in item.gunList" :key="i">
  515. <view class="body1">
  516. <span
  517. v-if="gun.sortNo">{{gun.sortNo}}号<text>/</text></span>{{gun.deviceName}}{{'枪'+gun.channelNo}}
  518. </view>
  519. <view class="body3" v-if='indexData4Obj.value=="bot1span"'>
  520. {{gun.soc?gun.soc+'%':'充电中'}}
  521. </view>
  522. <view class="body3" v-if='indexData4Obj.value=="bot3span"'>{{gun.workStatusText}}
  523. </view>
  524. </view>
  525. </view>
  526. </u-collapse-item>
  527. </u-collapse>
  528. <view class="u-collapse-bot0span" style="padding-bottom: 30rpx;" v-else>
  529. <view class="contentItem" v-for="(item,index) in indexData4List" v-show="item.queryNum"
  530. :key="index">
  531. <span class="span1">
  532. <img v-show="indexData4Obj.type==1&&item.category!='超充'"
  533. src="@/assets/img/riFill-charging-pile-fill.svg">
  534. <img v-show="indexData4Obj.type==1&&item.category=='超充'"
  535. src="@/assets/img/riFill-charging-pile-fill3.svg">
  536. <img v-show="indexData4Obj.type==2" src="@/assets/img/riFill-charging-pile-fill2.svg">
  537. </img>
  538. {{item.stationName}}</span>
  539. <span class="span2 color777">
  540. 共<span class="color333">{{item.gunNum}}</span>支
  541. </span>
  542. <span class="span3 color333">
  543. {{indexData4Obj.text}}<span class="color777"
  544. :class="indexData4Obj.value">{{item.queryNum}}</span>支
  545. </span>
  546. </view>
  547. </view>
  548. </scroll-view>
  549. <view class="confrim-btn">
  550. <u-button shape="square" type="primary" @click="popupShow5 = false;">关闭</u-button>
  551. </view>
  552. </view>
  553. </u-popup>
  554. <view class="statisticsChart">
  555. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  556. <h4>流水统计</h4>
  557. <!-- <view class="navbar-screen" >
  558. {{startTime}}至{{endTime}}
  559. </view> -->
  560. <view class="navbar-screen" @click="popupShow = true" v-if="false">
  561. <span>{{showTime(queryTime)}}</span>
  562. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow"></u-icon>
  563. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow"></u-icon>
  564. </view>
  565. </view>
  566. <u-calendar v-model="popupShow4" mode="range" @change="changedate4"></u-calendar>
  567. <view class="details detailstable">
  568. <p style="text-align: center; margin-bottom: 5px;" @click="popupShow4 = true">
  569. <img src="@/assets/img/riLine-calendar-todo-line.svg" align="absmiddle"
  570. style="height:40rpx;width: 40rpx ;">
  571. {{startTime}}至{{endTime}}
  572. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow4"></u-icon>
  573. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow4"></u-icon>
  574. </p>
  575. <view class="detailsline detailslineHead" v-if="stationFlowList.length>1">
  576. <view class="details-row ">
  577. <view class="span1">总收入</view>
  578. <view class="span2">{{(allMoneySum).toFixed(2)}}<span>元</span></view>
  579. </view>
  580. <view class="details-row">
  581. <view class="span1">总利润<span>(服务费+折扣卡)</span></view>
  582. <view class="span2">{{(serviceMoneySum).toFixed(2)}}<span>元</span></view>
  583. </view>
  584. </view>
  585. <view v-if="stationFlowList.length==0"
  586. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  587. 站点列表为空
  588. </view>
  589. <view v-if="stationFlowList.length" @click="gotoUrl('pagesFinance/statistics/list')"
  590. style="color: rgba(153, 153, 153, 1);font-size: 28rpx;text-align: center;margin-top: 16rpx;">
  591. 查看站点流水统计 <u-icon name="arrow-right-s-line" custom-prefix="custom-icon" color="#b0b8c8" size="28">
  592. </u-icon>
  593. </view>
  594. </view>
  595. <view class="statisticsChart-head" style="margin-top: 40rpx;">
  596. <h4>站主/桩主收益统计</h4>
  597. <!-- <view class="navbar-screen" >
  598. {{startTime}}至{{endTime}}
  599. </view> -->
  600. <!-- <view class="navbar-screen" @click="popupShow2 = true"><span>筛选</span>
  601. <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
  602. </view> -->
  603. </view>
  604. <view class="details" v-if="indexData2&&indexData2.incomeMap">
  605. <view class="details-row2">
  606. <p @click="popupShow3 = true">{{selectstationName}}
  607. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow3"></u-icon>
  608. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow3"></u-icon>
  609. </p>
  610. <p @click="popupShow2 = true">
  611. {{showTime(queryTime2)}}
  612. <u-icon name="arrow-down" color="#b0b8c8" size="32" v-show="!popupShow2"></u-icon>
  613. <u-icon name="arrow-up" color="#b0b8c8" size="32" v-show="popupShow2"></u-icon>
  614. </p>
  615. </view>
  616. <view class="details-row">
  617. <p>充电总收入</p>
  618. <span>{{(indexData2.incomeMap.chargingAmount).toFixed(2)}}元</span>
  619. </view>
  620. <view class="details-row">
  621. <p>站主/桩主收入</p>
  622. <span>{{indexData2.incomeMap.incomeAmount.toFixed(2)}}元</span>
  623. </view>
  624. <view class="details-row">
  625. <p>预估用电度数</p>
  626. <span>{{(indexData2.incomeMap.electricQuantity/10000).toFixed(1)}}度</span>
  627. </view>
  628. <view class="details-row">
  629. <p>预估电费</p>
  630. <span>{{indexData2.incomeMap.costAmount.toFixed(2)}}元</span>
  631. </view>
  632. <view class="details-row">
  633. <p>服务费预估收益</p>
  634. <span>{{indexData2.incomeMap.serviceAmount.toFixed(2)}}元</span>
  635. </view>
  636. <view class="details-row">
  637. <p>折扣卡收益</p>
  638. <span>{{indexData2.incomeMap.cardIncomeAmount.toFixed(2)}}元</span>
  639. </view>
  640. <view class="details-row">
  641. <p>预估总利润</p>
  642. <span>{{(indexData2.incomeMap.serviceAmount+indexData2.incomeMap.cardIncomeAmount).toFixed(2)}}元</span>
  643. </view>
  644. </view>
  645. <view class="statisticsChart-head" style="margin-top: 40rpx;" >
  646. <h4>充电枪使用情况统计</h4>
  647. <!-- <view class="navbar-screen" >
  648. {{startTime}}至{{endTime}}
  649. </view> -->
  650. <view class="navbar-screen" @click="resetBtn7()"><span>筛选</span>
  651. <u-icon name="filter-2-fill" custom-prefix="custom-icon" color="#b0b8c8" size="32"></u-icon>
  652. </view>
  653. </view>
  654. <view style="
  655. color: #888888;
  656. " >
  657. <view v-if="selectOne"><!-- [ {{selectShowNumType==1?'百分比':'次数'}} ] --> {{selectOne.name}}</view>
  658. <view>{{startTime3}}至{{endTime3}};</view>
  659. <view>
  660. <span v-if="sliderNum1.ck" >{{sliderNum1.minValue}}点-{{(sliderNumTemp1.minValue>sliderNumTemp1.maxValue?'次日':'')}}{{sliderNum1.maxValue}}点;</span>
  661. <span v-if="sliderNum2.ck">{{sliderNum2.minValue}}点-{{(sliderNumTemp2.minValue>sliderNumTemp2.maxValue?'次日':'')}}{{sliderNum2.maxValue}}点;</span>
  662. </view>
  663. </view>
  664. <view class="detailstableHead" style="
  665. padding-top: 1px;
  666. ">
  667. <view id="pieEcharts2" style="margin-top: 40rpx">
  668. </view>
  669. </view>
  670. </view>
  671. <u-divider nonetext="没有找到相关内容" style="margin-top: 20rpx;"
  672. border-color="#CFD2D5">已经到底了</u-divider>
  673. <Tabbar :current="0" ref="tabbarMain"></Tabbar>
  674. <!-- <u-tabbar v-model="current" :list="tabbarList" active-color="#185ac6"></u-tabbar>
  675. -->
  676. </view>
  677. </template>
  678. <script>
  679. import Tabbar from '@/components/TabbarFinance.vue'
  680. import * as API from '@/apis/finance.js'
  681. import * as echarts from "echarts";
  682. import DoubleSlider from '@/components/double-slider/DoubleSlider.vue';
  683. //require("@/apis/echarts-5-3.min.js")
  684. //import * as echarts from "@/apis/echarts-5-3.min.js";
  685. import {
  686. daysDistance,
  687. beforeTimeStamp,
  688. currentTimeStamp,
  689. parseUnixTime,
  690. newDate
  691. } from '@/utils'
  692. export default {
  693. data() {
  694. return {
  695. popupShow3: false,
  696. params: {
  697. year: true,
  698. month: true,
  699. day: false,
  700. hour: false,
  701. minute: false,
  702. second: false
  703. },
  704. indexData4List: [],
  705. indexData4Obj: {},
  706. indexData5List: [],
  707. indexData5Obj: {},
  708. headitemby: "",
  709. isinit: true,
  710. form: {},
  711. form2: {},
  712. form3: {},
  713. selecttype: "",
  714. selectstationId: "",
  715. selectdeviceNo: "",
  716. selectstationNo:"",
  717. selectstationId7: "",
  718. selectstationNo7:"",
  719. popupShow2: false,
  720. popupShow: false,
  721. popupShow4: false,
  722. popupShow5: false,
  723. popupShow6: false,
  724. popupShow7: false,
  725. nowTime: 0,
  726. queryHeadTime: "",
  727. selectstationId2: "",
  728. selectstationIndex: 0,
  729. selectstationName: "",
  730. selectstationNameTemp: "",
  731. info: {},
  732. title: "",
  733. showdate: false,
  734. showdate2: false,
  735. queryTime: "",
  736. queryTime2: "",
  737. indexData: {},
  738. indexData3: null,
  739. indexData2: null,
  740. indexData4: null,
  741. indexData5: null,
  742. indexData6: null,
  743. type_head: '1',
  744. startDate_head: '',
  745. changeitemBl: false,
  746. myChart2: null,
  747. myChart: null,
  748. myChartReady: true,
  749. myChartTime: false,
  750. subsection: [{
  751. name: '金额'
  752. },
  753. {
  754. name: '笔数'
  755. }
  756. ],
  757. stationFlowList: [],
  758. serviceMoneySum: 0,
  759. allMoneySum: 0,
  760. stationList: [],
  761. stationListSon: [],
  762. tabbarList: [{
  763. iconPath: "bar-chart-box-fill",
  764. selectedIconPath: "bar-chart-box-fill",
  765. text: '统计',
  766. count: 0,
  767. isDot: true,
  768. customIcon: true,
  769. },
  770. {
  771. iconPath: "article-fill",
  772. selectedIconPath: "article-fill",
  773. text: '明细',
  774. midButton: true,
  775. customIcon: true,
  776. },
  777. {
  778. iconPath: "account-pin-box-fill",
  779. selectedIconPath: "account-pin-box-fill",
  780. text: '我的',
  781. count: 0,
  782. isDot: false,
  783. customIcon: true,
  784. },
  785. ],
  786. endTime: '',
  787. endTime2: '',
  788. endTime3: '',
  789. endTime3Temp: '',
  790. stationId3:"",
  791. current: 1,
  792. background: {
  793. background: 'none'
  794. },
  795. value: '',
  796. type: 'select',
  797. show: false,
  798. border: true,
  799. step: 0,
  800. stepname: '',
  801. startTime: '',
  802. startTime3: '',
  803. startTime3Temp: '',
  804. stepid: 0,
  805. windowWidth: 0,
  806. windowHeight: 300,
  807. showTopobj: {},
  808. showMonthlyCard: false,
  809. flag: false,
  810. //selectstationId: "",
  811. selectOne:{name:'全部站点'},
  812. selectOneTemp:{},
  813. selectShowNumType:1,
  814. selectShowNumTypeTemp:1,
  815. selectShowNumType1:1,
  816. selectShowNumTypeTemp1:1,
  817. selectShowNumType2:1,
  818. selectShowNumTypeTemp2:1,
  819. sliderNum1: { ck:0,minValue: 0, maxValue: 8 },
  820. sliderNum2: { ck:0,minValue: 18, maxValue: 24 },
  821. sliderNumTemp1: { ck:0,minValue: 0, maxValue: 5 },
  822. sliderNumTemp2: { ck:0,minValue: 0, maxValue: 5 },
  823. sliderNum1Show:false,
  824. sliderNum2Show:false,
  825. sliderNumList:[
  826. ],
  827. }
  828. },
  829. onShow() {
  830. if (this.$refs.tabbarMain) {
  831. this.$refs.tabbarMain.setcount(0);
  832. }
  833. API.homeChargingGunStatus().then((res) => {
  834. this.indexData4 = res.data;
  835. }).catch(error => {
  836. uni.showToast({
  837. title: error
  838. })
  839. })
  840. },
  841. onLoad() {
  842. this.info = this.carhelp.getPersonInfo()
  843. this.info = this.carhelp.getPersonInfo()
  844. if (this.info && this.info.showMonthlyCard) {
  845. this.showMonthlyCard = this.info.showMonthlyCard;
  846. }
  847. this.title = this.info.merchantAccountName
  848. uni.getSystemInfo().then(e => {
  849. this.windowWidth = e[1].windowWidth
  850. this.windowHeight = e[1].windowHeight
  851. })
  852. this.sliderNumList=[]
  853. var sz=[]
  854. for(var i =0;i<24;i++){
  855. var sz2=[]
  856. // for(var j =i+1;j<=24;j++){
  857. // sz2.push({
  858. // value: j,
  859. // label: j+'点'
  860. // })
  861. // }
  862. for(var j =i+1;j<i+24;j++){
  863. if(j<=24){
  864. sz2.push({
  865. value: j,
  866. label: j+'点'
  867. })
  868. }else{
  869. sz2.push({
  870. value: j-24,
  871. label:'次日'+ (j-24)+'点'
  872. })
  873. }
  874. }
  875. sz.push({
  876. value: i,
  877. label: i+'点',
  878. children:sz2
  879. })
  880. }
  881. this.sliderNumList=sz
  882. },
  883. components: {
  884. Tabbar,DoubleSlider
  885. },
  886. onReady() {
  887. var date = new Date();
  888. this.nowTime = 7
  889. this.queryTime = parseUnixTime(currentTimeStamp(), '{y}-{m}');
  890. this.queryTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}'),
  891. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  892. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  893. this.endTime = parseUnixTime(beforeTimeStamp(0), '{y}-{m}-{d}')
  894. //this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  895. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  896. this.startTime3 = parseUnixTime(beforeTimeStamp(31), '{y}-{m}-{d}')
  897. this.endTime3 = parseUnixTime(beforeTimeStamp(1), '{y}-{m}-{d}')
  898. this.getStation()
  899. },
  900. computed: {
  901. // startTime(){
  902. // return this.queryTime+'-1'
  903. // },
  904. sliderDefaultValue1(){
  905. var min=this.sliderNumTemp1.minValue
  906. var max=this.sliderNumTemp1.maxValue
  907. var a=min
  908. var b=0
  909. if(max>min){
  910. b=max-min-1
  911. }else{
  912. b=23-min+max
  913. }
  914. return [a,b]
  915. },
  916. sliderDefaultValue2(){
  917. var min=this.sliderNumTemp2.minValue
  918. var max=this.sliderNumTemp2.maxValue
  919. var a=min
  920. var b=0
  921. if(max>min){
  922. b=max-min-1
  923. }else{
  924. b=23-min+max
  925. }
  926. return [a,b]
  927. },
  928. startTime2() {
  929. return this.queryTime2 + '-01'
  930. },
  931. },
  932. onPageScroll(e) {
  933. this.onPageScrollMethod()
  934. },
  935. updated() {
  936. this.onPageScrollMethod()
  937. },
  938. methods: {
  939. checkboxChange1(e){
  940. this.sliderNumTemp1.ck=e.detail.value.length
  941. },
  942. checkboxChange2(e){
  943. this.sliderNumTemp2.ck=e.detail.value.length
  944. },
  945. handlerDoubleSlider1(e) {
  946. // var a=e.minValue.toFixed(0)
  947. // var b=e.maxValue.toFixed(0)
  948. this.sliderNumTemp1.minValue=e[0].value
  949. this.sliderNumTemp1.maxValue=e[1].value
  950. },
  951. handlerDoubleSlider2(e) {
  952. // var a=e.minValue.toFixed(0)
  953. // var b=e.maxValue.toFixed(0)
  954. // this.sliderNumTemp2.minValue=a
  955. // this.sliderNumTemp2.maxValue=b
  956. this.sliderNumTemp2.minValue=e[0].value
  957. this.sliderNumTemp2.maxValue=e[1].value
  958. //this.preference.obc_power = e;
  959. //this.preference.obc_power.minValue = e.minValue;
  960. //this.preference.obc_power.maxValue = e.maxValue;
  961. },
  962. selectShowNumTypeTemp1Btn(){
  963. if(this.selectShowNumTypeTemp1==1){
  964. this.selectShowNumTypeTemp1=0
  965. }else{
  966. this.selectShowNumTypeTemp1=1
  967. }
  968. },
  969. selectShowNumTypeTemp2Btn(){
  970. if(this.selectShowNumTypeTemp2==1){
  971. this.selectShowNumTypeTemp2=0
  972. }else{
  973. this.selectShowNumTypeTemp2=1
  974. }
  975. },
  976. getStationNo(i){
  977. var no=this.stationList[i].stationNo
  978. if(no){
  979. if(i==0){
  980. return true
  981. }else{
  982. var no2=this.stationList[i-1].stationNo
  983. if(no2){
  984. return no2.substring(0,1)!=no.substring(0,1)
  985. }else{
  986. return false
  987. }
  988. }
  989. }else{
  990. return false
  991. }
  992. },
  993. onPageScrollMethod() {
  994. const query = uni.createSelectorQuery().in(this);
  995. query.select('.income').boundingClientRect(data => {
  996. if (data) {
  997. var c = uni.upx2px(32);
  998. if (data.top > c) {
  999. this.flag = false;
  1000. } else {
  1001. this.flag = true;
  1002. }
  1003. }
  1004. }).exec();
  1005. },
  1006. indexDate5Ck(t, status) {
  1007. //单车充电
  1008. API.homeChargingGunStatus().then((res) => {
  1009. this.indexData4 = res.data;
  1010. }).catch(error => {
  1011. uni.showToast({
  1012. title: error
  1013. })
  1014. })
  1015. this.indexData5Obj.type = t
  1016. API.homeChargingSingleCarStatusDetail({
  1017. status: status
  1018. }).then((res) => {
  1019. this.popupShow6 = true;
  1020. this.indexData5List = res.data.stationList;
  1021. for (var i in this.indexData5List) {
  1022. var item = this.indexData5List[i];
  1023. if (item.deviceNum) {
  1024. this.popupShow6 = true
  1025. break
  1026. }
  1027. this.popupShow6 = false;
  1028. }
  1029. if (!this.popupShow6) {
  1030. uni.showToast({
  1031. title: "电单车充电桩" + (t ? "正常" : "故障") + "0支"
  1032. })
  1033. }
  1034. }).catch(error => {
  1035. uni.showToast({
  1036. title: error
  1037. })
  1038. })
  1039. },
  1040. indexDate4Ck(c, t) {
  1041. //汽车充电
  1042. API.homeChargingGunStatus().then((res) => {
  1043. this.indexData4 = res.data;
  1044. }).catch(error => {
  1045. uni.showToast({
  1046. title: error
  1047. })
  1048. })
  1049. this.indexData4Obj.type = c
  1050. if (c == 1) {
  1051. this.indexData4Obj.typeName = "快(超)充"
  1052. }
  1053. if (c == 2) {
  1054. this.indexData4Obj.typeName = "慢充"
  1055. }
  1056. if (t == 1) {
  1057. this.indexData4Obj.text = "在用"
  1058. this.indexData4Obj.value = "bot1span"
  1059. }
  1060. if (t == 0) {
  1061. this.indexData4Obj.text = "空闲"
  1062. this.indexData4Obj.value = "bot2span"
  1063. }
  1064. if (t == 99) {
  1065. this.indexData4Obj.text = "故障"
  1066. this.indexData4Obj.value = "bot3span"
  1067. }
  1068. API.homeChargingGunStatusDetail({
  1069. type: c,
  1070. status: t
  1071. }).then((res) => {
  1072. this.indexData4List = res.data.stationList;
  1073. for (var i in this.indexData4List) {
  1074. var item = this.indexData4List[i];
  1075. if (item.queryNum) {
  1076. this.popupShow5 = true
  1077. break
  1078. }
  1079. this.popupShow5 = false;
  1080. }
  1081. if (!this.popupShow5) {
  1082. uni.showToast({
  1083. title: this.indexData4Obj.typeName + "枪" + this.indexData4Obj.text + "0支"
  1084. })
  1085. }
  1086. }).catch(error => {
  1087. uni.showToast({
  1088. title: error
  1089. })
  1090. })
  1091. },
  1092. changeitem(e) {
  1093. if (this.stationFlowList.length > 1 && e.index == this.stationFlowList.length - 1 && e.show) {
  1094. this.changeitemBl = true;
  1095. } else {
  1096. this.changeitemBl = false;
  1097. }
  1098. },
  1099. showTime(name) {
  1100. if (!name) {
  1101. return ''
  1102. }
  1103. return name.replace('-', '年') + '月';
  1104. },
  1105. getStation(bl) {
  1106. API.stationList().then((res) => {
  1107. var list= res.data.stationList
  1108. var list2=list.sort(function(item1,item2){
  1109. return (item1.stationNo>item2.stationNo)?1:-1
  1110. })
  1111. this.stationList =list2
  1112. if(list2.length){
  1113. this.getData()
  1114. }
  1115. //
  1116. this.getData3()
  1117. // this.stationList.unshift({
  1118. // id: '',
  1119. // name: "全部站点"
  1120. // })
  1121. this.selectstationName = "全部站点"
  1122. //this.stationListSon = res.data.deviceList
  1123. this.getDataHome2()
  1124. this.getData2()
  1125. }).catch(error => {
  1126. uni.showToast({
  1127. title: error
  1128. })
  1129. })
  1130. },
  1131. resetBtn() {
  1132. this.nowTime = 7
  1133. this.startTime = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  1134. this.endTime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1135. this.selecttype = ""
  1136. this.selectstationId = ""
  1137. this.selectdeviceNo = ""
  1138. this.form = {
  1139. type: this.selecttype,
  1140. stationId: this.selectstationId,
  1141. deviceNo: this.selectdeviceNo,
  1142. };
  1143. this.popupShow = false;
  1144. this.list = [];
  1145. this.getData()
  1146. },
  1147. okbtn() {
  1148. this.popupShow = false;
  1149. this.form = {
  1150. type: this.selecttype,
  1151. stationId: this.selectstationId,
  1152. deviceNo: this.selectdeviceNo,
  1153. };
  1154. this.list = [];
  1155. this.getData()
  1156. },
  1157. resetBtn2() {
  1158. this.startTime2 = parseUnixTime(beforeTimeStamp(6), '{y}-{m}-{d}')
  1159. this.endTime2 = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1160. this.selectstationId2 = ""
  1161. this.form2 = {
  1162. stationId: this.selectstationId2,
  1163. };
  1164. this.popupShow2 = false;
  1165. this.getData2()
  1166. },
  1167. okbtn2() {
  1168. this.popupShow2 = false;
  1169. this.form2 = {
  1170. stationId: this.selectstationId2,
  1171. };
  1172. this.getData2()
  1173. },
  1174. getDataHome2() {
  1175. var endtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
  1176. API.homeHeadChargingStatistics({
  1177. type: this.type_head,
  1178. startDate: this.startDate_head,
  1179. endDate: endtime
  1180. }).then((res) => {
  1181. this.indexData3 = res.data;
  1182. uni.hideLoading()
  1183. if (this.type_head == 1) {
  1184. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  1185. var day = new Date().getDay();
  1186. var week = weeks[day];
  1187. var sz = new Date().toLocaleString().split(" ");
  1188. this.queryHeadTime = sz[0] + " " + week + " " + sz[1]
  1189. }
  1190. this.getPie(this.info.accountType)
  1191. }).catch(error => {
  1192. uni.showToast({
  1193. title: error
  1194. })
  1195. })
  1196. },
  1197. // getDataHome() {
  1198. // API.homeHeadStatistics().then((res) => {
  1199. // this.indexData = res.data;
  1200. // }).catch(error => {
  1201. // uni.showToast({
  1202. // title: error
  1203. // })
  1204. // })
  1205. // },
  1206. getData() {
  1207. this.form.startDate = this.startTime,
  1208. this.form.endDate = this.endTime
  1209. API.homeFlowStatistics(this.form).then((res) => {
  1210. this.stationFlowList = res.data.stationFlowList;
  1211. this.nowTime = daysDistance(this.startTime, this.endTime) + 1;
  1212. this.serviceMoneySum = 0;
  1213. this.allMoneySum = 0;
  1214. this.serviceMoneySum = res.data.allProfit;
  1215. this.allMoneySum = res.data.allAmount;
  1216. for (var i in this.stationFlowList) {
  1217. var item = this.stationFlowList[i];
  1218. // this.allMoneySum += item.actualMoney
  1219. // this.serviceMoneySum += item.serviceMoney
  1220. // this.serviceMoneySum += item.cardMoney
  1221. }
  1222. }).catch(error => {
  1223. uni.showToast({
  1224. title: error
  1225. })
  1226. })
  1227. },
  1228. getData2() {
  1229. uni.showLoading({
  1230. title: "加载中",
  1231. mask: true,
  1232. })
  1233. this.form2.startDate = this.startTime2,
  1234. this.form2.endDate = this.endTime2
  1235. API.homeIncomeStatistics(this.form2).then((res) => {
  1236. this.indexData2 = res.data
  1237. uni.hideLoading()
  1238. }).catch(error => {
  1239. uni.showToast({
  1240. title: error
  1241. })
  1242. })
  1243. },
  1244. changedate7(e) {
  1245. // this.queryDate = e.result
  1246. this.startTime3Temp = e.startDate
  1247. this.endTime3Temp = e.endDate
  1248. },
  1249. getData3(bl) {
  1250. this.indexData6=null
  1251. if(bl){
  1252. uni.showLoading({
  1253. title: "加载中",
  1254. mask: true,
  1255. })
  1256. this.myChartReady=false
  1257. }
  1258. this.form3.startDate = this.startTime3
  1259. this.form3.endDate = this.endTime3
  1260. this.form3.stationId=this.stationId3;
  1261. //var str="";
  1262. if(this.sliderNum1.ck==1||this.sliderNum2.ck==1){
  1263. var str="";
  1264. if(this.sliderNum1.ck==1){
  1265. str+=this.sliderNum1.minValue+"-"+this.sliderNum1.maxValue
  1266. if(this.sliderNum2.ck==1){
  1267. str+=","
  1268. }
  1269. }
  1270. if(this.sliderNum2.ck==1){
  1271. str+=this.sliderNum2.minValue+"-"+this.sliderNum2.maxValue
  1272. }
  1273. this.form3.timeArray=str
  1274. }else{
  1275. delete this.form3.timeArray
  1276. }
  1277. API.usageStatistics(this.form3).then((res) => {
  1278. this.indexData6 = res.data
  1279. if(bl){
  1280. this.myChartReady=true
  1281. uni.hideLoading()
  1282. }
  1283. this.getPie2(this.indexData6)
  1284. }).catch(error => {
  1285. uni.showToast({
  1286. title: error
  1287. })
  1288. })
  1289. },
  1290. changesub(e) {
  1291. this.current = e
  1292. this.type_head = e;
  1293. uni.showLoading({
  1294. title: "加载中",
  1295. mask: true,
  1296. })
  1297. if (e == 1) {
  1298. this.startDate_head = parseUnixTime(beforeTimeStamp(30), '{y}-{m}-{d}')
  1299. } else {
  1300. this.startDate_head = parseUnixTime(beforeTimeStamp(365), '{y}-{m}-01')
  1301. }
  1302. // this.getPie()
  1303. this.getDataHome2()
  1304. },
  1305. changedate4(e) {
  1306. this.startTime = e.startDate
  1307. this.endTime = e.endDate
  1308. this.okbtn()
  1309. },
  1310. resetBtn7(){
  1311. //this.myChart2.dispatchAction({ type: 'hideTip' });
  1312. this.popupShow7 = true;
  1313. this.startTime3Temp=this.startTime3;
  1314. this.endTime3Temp=this.endTime3;
  1315. this.selectShowNumTypeTemp=this.selectShowNumType;
  1316. this.sliderNumTemp1=this.sliderNum1
  1317. this.sliderNumTemp2=this.sliderNum2
  1318. this.selectShowNumTypeTemp2=this.selectShowNumType2
  1319. this.selectShowNumTypeTemp1=this.selectShowNumType1
  1320. this.selectOneTemp=this.selectOne;
  1321. },
  1322. okbtn7(){
  1323. // if(this.selectstationId7==''){
  1324. // uni.showToast({
  1325. // icon:"none",
  1326. // title:"请选择站点"
  1327. // })
  1328. // return
  1329. // }
  1330. if(this.selectShowNumTypeTemp2==0&&this.selectShowNumTypeTemp1==0){
  1331. uni.showToast({
  1332. icon:"none",
  1333. title:"充电桩类型至少选择一个"
  1334. })
  1335. return
  1336. }
  1337. this.selectShowNumType2=this.selectShowNumTypeTemp2
  1338. this.selectShowNumType1=this.selectShowNumTypeTemp1
  1339. this.sliderNum1=this.sliderNumTemp1
  1340. this.sliderNum2=this.sliderNumTemp2
  1341. this.selectShowNumType=this.selectShowNumTypeTemp
  1342. this.selectOne=this.selectOneTemp;
  1343. this.stationId3=this.selectstationId7
  1344. this.startTime3=this.startTime3Temp
  1345. this.endTime3=this.endTime3Temp
  1346. this.popupShow7=false
  1347. this.getData3(true);
  1348. },
  1349. resetBtn3(){
  1350. this.selectstationId=""
  1351. this.selectstationId2 = "";
  1352. this.selectstationNo=""
  1353. //this.selectstationIndex = index;
  1354. this.selectstationNameTemp="全部站点"
  1355. this.selectstationName ="全部站点";
  1356. //this.okbtn2()
  1357. this.popupShow3=false
  1358. this.okbtn2()
  1359. },
  1360. okbtn3(){
  1361. if(this.selectstationNo&&this.selectstationId==''){
  1362. uni.showToast({
  1363. icon:"none",
  1364. title:"请选择站点"
  1365. })
  1366. return
  1367. }
  1368. this.popupShow3=false
  1369. this.selectstationId2 = this.selectstationId;
  1370. //this.selectstationIndex = index;
  1371. this.selectstationName = this.selectstationNameTemp;
  1372. //this.okbtn2()
  1373. this.okbtn2()
  1374. },
  1375. changedate3(e) {
  1376. this.selectstationId2 = this.selectstationId;
  1377. //this.selectstationIndex = index;
  1378. this.selectstationName = this.selectstationNameTemp;
  1379. this.okbtn2()
  1380. },
  1381. changedate(e) {
  1382. this.queryTime = e.year + '-' + e.month;
  1383. this.startTime = e.year + '-' + e.month + '-01';
  1384. if (e.month == '12') {
  1385. this.endTime = (e.year) + "-12-31"
  1386. } else {
  1387. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  1388. var a = beforeTimeStamp(1, b);
  1389. this.endTime = parseUnixTime(a, '{y}-{m}-{d}')
  1390. }
  1391. this.okbtn()
  1392. },
  1393. changedate2(e) {
  1394. this.queryTime2 = e.year + '-' + e.month;
  1395. if (e.month == '12') {
  1396. this.endTime2 = (e.year) + "-12-31"
  1397. } else {
  1398. var b = e.year + '/' + (parseInt(e.month) + 1) + '/1';
  1399. var a = beforeTimeStamp(1, b);
  1400. this.endTime2 = parseUnixTime(a, '{y}-{m}-{d}')
  1401. }
  1402. this.okbtn2()
  1403. },
  1404. getPie2(obj,str) {
  1405. var data=[]
  1406. //var dataAll=[]
  1407. var data1=[]
  1408. var data2=[]
  1409. var usageFastMap=obj.usageFastMap;
  1410. for(var i in usageFastMap){
  1411. // var str1=parseInt( i.split('-')[0])
  1412. // var str2=parseInt(i.split('-')[1])
  1413. // //dataAll.push(i)
  1414. // if(this.sliderNum1.ck==1||this.sliderNum2.ck==1){
  1415. // // str+=this.sliderNum1.minValue+"-"+this.sliderNum1.maxValue
  1416. // // if(this.sliderNum2.ck==1){
  1417. // // str+=","
  1418. // // }
  1419. // if(this.sliderNum2.ck==1){
  1420. // //str+=this.sliderNum2.minValue+"-"+this.sliderNum2.maxValue
  1421. // if(this.sliderNum2.minValue<=str1&&this.sliderNum2.maxValue>str1){
  1422. // data.push(i)
  1423. // continue
  1424. // }
  1425. // }
  1426. // if(this.sliderNum1.ck==1){
  1427. // //str+=this.sliderNum2.minValue+"-"+this.sliderNum2.maxValue
  1428. // if(this.sliderNum1.minValue<=str1&&this.sliderNum1.maxValue>str1){
  1429. // data.push(i)
  1430. // continue
  1431. // }
  1432. // }
  1433. // }else{
  1434. // }
  1435. data.push(i)
  1436. }
  1437. var height=1680;
  1438. if (!this.myChart2) {
  1439. this.myChart2 = echarts.init(document.getElementById('pieEcharts2'),null,{
  1440. width:uni.upx2px(700),height:uni.upx2px(height)
  1441. });
  1442. }else{
  1443. if(data.length!=24){
  1444. height=1680*data.length/24+200
  1445. if(data.length<=10){
  1446. //top='12%'
  1447. }
  1448. //top=(30-data.length*2)+'%'
  1449. }
  1450. this.myChart2.resize({
  1451. height:uni.upx2px(height),width:uni.upx2px(700)
  1452. })
  1453. }
  1454. this.myChart2.clear();
  1455. var usageSlowMap=obj.usageSlowMap;
  1456. data.reverse()
  1457. var num1=0;
  1458. var num2=0;
  1459. for(var i in data){
  1460. num1+=usageFastMap[data[i]]
  1461. num2+=usageSlowMap[data[i]]
  1462. }
  1463. for(var i in data){
  1464. if(this.selectShowNumType==1){
  1465. if(num1==0){
  1466. data1.push(0)
  1467. }else{
  1468. data1.push((usageFastMap[data[i]]/num1*100).toFixed(2))
  1469. }
  1470. if(num2==0){
  1471. data2.push(0)
  1472. }else{
  1473. data2.push((usageSlowMap[data[i]]/num2*100).toFixed(2))
  1474. }
  1475. }else{
  1476. data1.push((usageFastMap[data[i]]))
  1477. data2.push((usageSlowMap[data[i]]))
  1478. }
  1479. }
  1480. var series=[ ]
  1481. if(this.selectShowNumType1==1){
  1482. series.push({
  1483. name: '快充桩',
  1484. type: 'bar',
  1485. data: data1,
  1486. barWidth:10,
  1487. label: {
  1488. show: true, // 开启数据标签显示
  1489. position: 'right', // 数据标签位置,这里设置为顶部
  1490. color: 'black', // 数据标签颜色
  1491. fontSize: uni.upx2px(24) ,// 数据标签字体大小
  1492. formatter:'{c}'+(this.selectShowNumType==1?'%':'次')
  1493. }
  1494. })
  1495. }
  1496. if(this.selectShowNumType2==1){
  1497. series.push( {
  1498. name: '慢充桩',
  1499. type: 'bar',
  1500. data: data2,
  1501. barWidth:10,
  1502. label: {
  1503. show: true, // 开启数据标签显示
  1504. position: 'right', // 数据标签位置,这里设置为顶部
  1505. color: 'black', // 数据标签颜色
  1506. fontSize: uni.upx2px(24) ,// 数据标签字体大小
  1507. formatter:'{c}'+(this.selectShowNumType==1?'%':'次')
  1508. }
  1509. })
  1510. }
  1511. var option = {
  1512. tooltip: {
  1513. // formatter: '{b}点<br />{a0}: {c0}%<br />{a1}: {c1}%',
  1514. formatter: (value) => {
  1515. var name = value[0].axisValueLabel;
  1516. var text1=""
  1517. var style = "float: right;margin-left: 3px;"
  1518. for (var i in value) {
  1519. text1 += "<p>" + value[i].marker + value[i].seriesName +
  1520. '<span style="' + style +
  1521. '">' + value[i].data + (this.selectShowNumType==1?'%':'次')+'</span></p>';
  1522. }
  1523. return `<p>${name}时</p>` + text1
  1524. },
  1525. trigger: 'axis',
  1526. axisPointer: {
  1527. type: 'shadow'
  1528. }
  1529. },
  1530. legend: {},
  1531. grid: {
  1532. top: 30,
  1533. left: 2,
  1534. right: 30,
  1535. bottom: 20,
  1536. containLabel: true
  1537. },
  1538. xAxis: {
  1539. name: this.selectShowNumType==1?'%':'次',
  1540. type: 'value',
  1541. boundaryGap: [0, 0.01]
  1542. },
  1543. yAxis: {
  1544. type: 'category',
  1545. data: data,
  1546. axisLabel: {
  1547. interval:0,
  1548. },
  1549. },
  1550. series: series
  1551. }
  1552. this.myChart2.setOption(option);
  1553. console.log(option)
  1554. },
  1555. getPie(type) {
  1556. //true 正常版本 false 个人版本
  1557. var typebl = !(this.info.accountType == 3);
  1558. var dataInterval = null;
  1559. if (typebl) {
  1560. if (this.type_head == 1) {
  1561. dataInterval = [0, 75, 100,
  1562. 125, 150, 200, 400, 500,
  1563. 600, 1200, 1400, 1600, 1800,
  1564. 2600, 2800,
  1565. 3000, 4200,
  1566. 4800, 5200, 6500, 7000, 7500, 8000, 12000, 14000, 16000, 18000, 20000, 23000,
  1567. 25000, 30000, 35000, 40000, 999999
  1568. ];
  1569. } else {
  1570. dataInterval = [0, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000,
  1571. 90000, 100000, 120000, 140000, 160000, 180000, 200000, 220000, 240000, 280000, 3200000,
  1572. 3500000, 400000, 500000,
  1573. 999999
  1574. ];
  1575. }
  1576. }
  1577. this.headitemby = "";
  1578. var showkey = "";
  1579. var getData = this.indexData3.graphMap;
  1580. for (var i in getData) {
  1581. var item = getData[i]
  1582. item.todayEQAmount2 = (item.todayEQAmount / 10000)
  1583. if (this.type_head == 1) {
  1584. this.showTopobj = item;
  1585. }
  1586. }
  1587. this.indexData3.graphMap = getData
  1588. //var unit = this.current ? '笔' : '元'
  1589. var colorName = "#333"
  1590. // this.showlist1 = ['收入', '利润', '次数','新电途'];
  1591. var showlistColor = ['#5872c0', '#de6e6a', '#f3c96b', '#69be8d', '#c661b4'];
  1592. // this.showlist1 = ['收入', '利润', '电量', '新电途'];
  1593. // var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount'];
  1594. this.showlist1 = ['收入', '利润', '电量', '新电途', '快电'];
  1595. var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount', 'todayKDAmount'];
  1596. if (this.showMonthlyCard && this.type_head == 2) {
  1597. var sz2 = ['todayAmountC', 'todayProfitC', 'todayEQAmount2', 'todayXDTAmount', 'todayKDAmount'];
  1598. }
  1599. var zLevel = [20, 40, 10, 30, 9];
  1600. //var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  1601. if (!this.myChart) {
  1602. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  1603. this.myChart.on("dataZoom", (res) => {
  1604. showkey = "";
  1605. this.headitemby = "";
  1606. });
  1607. }
  1608. this.myChart.clear();
  1609. //
  1610. var timelist = []
  1611. for (var i in getData) {
  1612. if (this.type_head == 1) {
  1613. timelist.push(i.substring(5))
  1614. } else {
  1615. timelist.push(i)
  1616. }
  1617. }
  1618. var list = [];
  1619. for (var j in this.showlist1) {
  1620. var ap = {
  1621. name: this.showlist1[j],
  1622. type: 'line',
  1623. lineStyle: {
  1624. color: showlistColor[j]
  1625. },
  1626. itemStyle: {
  1627. color: showlistColor[j]
  1628. },
  1629. z: zLevel[j],
  1630. // label: {
  1631. // show: true,
  1632. // position: 'top'
  1633. // },
  1634. data: []
  1635. }
  1636. if (this.type_head == 1) {
  1637. ap.symbolSize = 3;
  1638. }
  1639. var bl = true;
  1640. for (var i in getData) {
  1641. //var time=this.queryDate.replace("-","/").replace("-","/")
  1642. //time+' '+i
  1643. var obj = getData[i][sz2[j]];
  1644. //**********
  1645. if (typebl) {
  1646. const min_v = Math.max(...dataInterval.filter((v) => v <= obj));
  1647. // 2.寻找在数据间隔里大于amount的最小值
  1648. const max_v = Math.min(...dataInterval.filter((v) => v > obj));
  1649. // 3.寻找 min_v 所在的下标
  1650. const index = dataInterval.findIndex((v) => v === min_v);
  1651. // 4.计算该amount在y轴上应该展示的位置
  1652. const y_value = ((obj - min_v) / (max_v - min_v)) * 10 + index * 10;
  1653. obj = y_value;
  1654. }
  1655. //**********
  1656. //'todayAmount', 'todayProfit', 'todayEQNum'
  1657. // if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 &&getData[i].todayEQNum == 0) {
  1658. // //&& &&getData[i].todayEQNum == 0
  1659. // continue;
  1660. // }
  1661. bl = false;
  1662. var time = i
  1663. if (this.type_head == 1) {
  1664. //time = i.substring(5)
  1665. } else {
  1666. }
  1667. ap.data.push([time, obj]);
  1668. }
  1669. if (bl) {
  1670. ap.data = [];
  1671. for (var i in getData) {
  1672. //var time=this.queryDate.replace("-","/").replace("-","/")
  1673. //time+' '+i
  1674. var obj = getData[i][sz2[j]];
  1675. var time = i
  1676. if (this.type_head == 1) {
  1677. time = i.substring(5)
  1678. } else {
  1679. }
  1680. // if(j!=2){
  1681. // obj=obj.toFixed(2)
  1682. // }
  1683. ap.data.push([time, obj]);
  1684. }
  1685. }
  1686. list.push(ap)
  1687. }
  1688. var yshow = 0;
  1689. // 指定图表的配置项和数据
  1690. var option = {
  1691. tooltip: {
  1692. position: (e) => {
  1693. var x = e[0]
  1694. var y = e[1]
  1695. if (this.windowWidth) {
  1696. if (y < 100) {
  1697. if (x < this.windowWidth / 2) {
  1698. return ['30%', '60%']
  1699. } else {
  1700. return ['10%', '60%']
  1701. }
  1702. } else {
  1703. if (x < this.windowWidth / 2) {
  1704. return ['30%', '-45%']
  1705. } else {
  1706. return ['10%', '-45%']
  1707. }
  1708. }
  1709. }
  1710. },
  1711. formatter: (value) => {
  1712. //getPie
  1713. var name = value[0].data[0];
  1714. var info = getData[name];
  1715. var style = "float: right;margin-left: 3px;"
  1716. var text1 = ""
  1717. for (var i in value) {
  1718. var u = "元"
  1719. var num = info[sz2[value[i].seriesIndex]];
  1720. if (!num) {
  1721. num = 0;
  1722. }
  1723. if (value[i].seriesName == '电量') {
  1724. u = '度'
  1725. num = num.toFixed(2)
  1726. } else if (value[i].seriesName == '次数') {
  1727. u = '次'
  1728. } else {
  1729. num = num.toFixed(2)
  1730. }
  1731. var markerU = "";
  1732. if (this.type_head == 2) {
  1733. if (!num) {
  1734. num = 0;
  1735. }
  1736. if (value[i].seriesName == "电量") {
  1737. u = "万度"
  1738. num = (num / 10000).toFixed(2)
  1739. }
  1740. if (value[i].seriesName == "利润") {
  1741. //u = "万元"
  1742. if (this.showMonthlyCard) {
  1743. markerU = "(含卡)"
  1744. //num = info.todayProfitC
  1745. }
  1746. }
  1747. if (value[i].seriesName == "收入") {
  1748. u = "万元"
  1749. num = info.todayAmountW
  1750. if (this.showMonthlyCard) {
  1751. markerU = "(含卡)"
  1752. num = info.todayAmountCW
  1753. }
  1754. }
  1755. if (!num) {
  1756. num = 0;
  1757. }
  1758. num = parseFloat(num)
  1759. num = num.toFixed(2)
  1760. }
  1761. text1 += "<p>" + value[i].marker + value[i].seriesName + markerU +
  1762. '<span style="' + style +
  1763. '">' + num + u + '</span></p>';
  1764. if (this.type_head == 2) {
  1765. if (value[i].seriesName == "收入") {
  1766. if (this.showMonthlyCard) {
  1767. markerU = "(含卡)"
  1768. info.yoyNum = info.yoyNumC
  1769. info.qoqNum = info.qoqNumC
  1770. }
  1771. if (name != this.queryTime2) {
  1772. if (info.yoyNum != null) {
  1773. text1 += "<p>" + value[i].marker + "收入同比" + (info.yoyNum < 0 ?
  1774. '减少' : '增长') + '<span style="' + style +
  1775. '">' + (info.yoyNum < 0 ? info.yoyNum * -1 : info.yoyNum) +
  1776. '%' + '</span></p>';
  1777. } else {
  1778. text1 += "<p>" + value[i].marker + "收入同比" + '<span style="' +
  1779. style +
  1780. '">' + '无数据' + '</span></p>';
  1781. }
  1782. if (info.qoqNum != null) {
  1783. text1 += "<p>" + value[i].marker + "收入环比" + (info.qoqNum < 0 ?
  1784. '减少' : '增长') + '<span style="' + style +
  1785. '">' + (info.qoqNum < 0 ? info.qoqNum * -1 : info.qoqNum) +
  1786. '%' + '</span></p>';
  1787. } else {
  1788. text1 += "<p>" + value[i].marker + "收入环比" + '<span style="' +
  1789. style +
  1790. '">' + '无数据' + '</span></p>';
  1791. }
  1792. }
  1793. }
  1794. }
  1795. if (i == value.length - 1 && this.showMonthlyCard) {
  1796. text1 +=
  1797. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>6折卡数量" +
  1798. '<span style="' + style +
  1799. '">' + (info.discountCardBuyNum ? info.discountCardBuyNum : 0) +
  1800. '张</span></p>';
  1801. text1 +=
  1802. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>月卡数量" +
  1803. '<span style="' + style +
  1804. '">' + (info.monthCardBuyNum ? info.monthCardBuyNum : 0) + '张</span></p>';
  1805. text1 +=
  1806. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>折扣卡金额" +
  1807. '<span style="' + style +
  1808. '">' + (info.cardBuyFee ? info.cardBuyFee : 0).toFixed(2) + '元</span></p>';
  1809. }
  1810. }
  1811. if (this.type_head == 2) {
  1812. text1 +=
  1813. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#19be6b;'></span>设备完好率" +
  1814. '<span style="' + style +
  1815. '">' + (info.operatingRate ? info.operatingRate : 100) + '%</span></p>';
  1816. }
  1817. if (this.type_head == 1) {
  1818. //time = i.substring(5)
  1819. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  1820. var now = newDate(name);
  1821. var day = now.getDay();
  1822. var week = weeks[day];
  1823. return `<p>${name} ${week}</p>` + text1
  1824. } else {
  1825. return `<p>${name}</p>` + text1
  1826. }
  1827. },
  1828. trigger: 'axis',
  1829. borderColor: "#F0F0F0",
  1830. borderWidth: 1,
  1831. backgroundColor: "#ffffff",
  1832. textStyle: {
  1833. color: "#333"
  1834. }
  1835. },
  1836. legend: {
  1837. itemGap: 1,
  1838. data: this.showlist1,
  1839. textStyle: {
  1840. color: "#333"
  1841. }
  1842. },
  1843. grid: {
  1844. top: 45,
  1845. left: 0,
  1846. right: 20,
  1847. bottom: 20,
  1848. containLabel: true
  1849. },
  1850. xAxis: {
  1851. //type: 'value',
  1852. type: 'category',
  1853. splitNumber: 4,
  1854. boundaryGap: false,
  1855. axisLabel: {
  1856. formatter: (value) => {
  1857. if (this.headitemby == "") {
  1858. this.headitemby = value
  1859. }
  1860. var i = 0
  1861. if (this.type_head == 1) {
  1862. i = 0;
  1863. } else {
  1864. i = 3;
  1865. }
  1866. var showvalue = "";
  1867. var key = value.substring(0, 8 - i);
  1868. if (showkey == "" || value == this.headitemby) {
  1869. showkey = key
  1870. showvalue = value
  1871. showvalue = value.substring(5 - i)
  1872. } else {
  1873. if (key != showkey) {
  1874. showkey = key
  1875. showvalue = value
  1876. showvalue = value.substring(5 - i)
  1877. } else {
  1878. showvalue = value.substring(8 - i)
  1879. }
  1880. }
  1881. return showvalue.replace("-", ".");
  1882. },
  1883. textStyle: {
  1884. color: "#333"
  1885. }
  1886. },
  1887. axisLine: {
  1888. show: true,
  1889. lineStyle: {
  1890. color: "#333"
  1891. }
  1892. },
  1893. },
  1894. yAxis: {
  1895. type: 'value',
  1896. // name: '单位('+this.typeN+')',
  1897. axisLabel: {
  1898. formatter: (v, i) => {
  1899. if (dataInterval == null) {
  1900. return v
  1901. }
  1902. if (i == 0) {
  1903. yshow = 0
  1904. return 0
  1905. }
  1906. if (yshow != parseInt(v / 10)) {
  1907. yshow = parseInt(v / 10);
  1908. return dataInterval[parseInt(v / 10)]
  1909. } else {
  1910. return ''
  1911. }
  1912. },
  1913. textStyle: {
  1914. color: "#333"
  1915. }
  1916. },
  1917. axisLine: {
  1918. show: true,
  1919. lineStyle: {
  1920. color: "#333"
  1921. }
  1922. },
  1923. },
  1924. series: list
  1925. };
  1926. // option.dataZoom = [{
  1927. // type: 'inside',
  1928. // start: 0,
  1929. // end: 100
  1930. // },
  1931. // {
  1932. // start: 0,
  1933. // end: 100
  1934. // }
  1935. // ]
  1936. if (this.type_head == 1) {
  1937. } else {
  1938. //timelist.push(i)
  1939. }
  1940. // 使用刚指定的配置项和数据显示图表。
  1941. this.myChart.setOption(option);
  1942. }
  1943. }
  1944. }
  1945. </script>
  1946. <style>
  1947. page {
  1948. /* background: url(@/assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  1949. background-size: 100%; */
  1950. }
  1951. </style>
  1952. <style lang="scss" scoped>
  1953. /deep/.u-drawer{
  1954. z-index: 99999999 !important;
  1955. }
  1956. .contentBodyName {
  1957. padding: 0 36rpx 12rpx 36rpx;
  1958. }
  1959. .contentBody {
  1960. color: #777777;
  1961. font-size: 28rpx;
  1962. display: flex;
  1963. justify-content: space-between;
  1964. flex-direction: row;
  1965. padding: 0 16rpx;
  1966. margin-bottom: 16rpx;
  1967. .body1 {
  1968. color: #333333;
  1969. margin-left: 20rpx;
  1970. }
  1971. .body2 {
  1972. display: flex;
  1973. .body2-0 {
  1974. width: 110rpx;
  1975. }
  1976. .body2-1 {
  1977. padding: 0 8rpx;
  1978. color: #00B962;
  1979. }
  1980. .body2-2 {
  1981. width: 120rpx;
  1982. }
  1983. }
  1984. .body3 {
  1985. padding: 0 8rpx;
  1986. color: #FF3D00;
  1987. }
  1988. }
  1989. .indexData5content {
  1990. padding: 40rpx 20rpx;
  1991. .contentTitle {
  1992. color: #333333;
  1993. font-size: 40rpx;
  1994. text-align: center;
  1995. font-weight: bold;
  1996. margin-bottom: 8px;
  1997. }
  1998. .contentItem {
  1999. border-bottom: 1px solid #ededed;
  2000. // margin: 16rpx;
  2001. // padding:12rpx;
  2002. img,
  2003. svg {
  2004. vertical-align: bottom;
  2005. height: 44rpx;
  2006. //margin-right: 8rpx;
  2007. }
  2008. .span1 {
  2009. text-align: left;
  2010. font-weight: bold;
  2011. font-size: 36rpx;
  2012. width: 310rpx;
  2013. overflow: hidden;
  2014. text-overflow: ellipsis;
  2015. white-space: nowrap;
  2016. }
  2017. .color777 {
  2018. color: #777777;
  2019. }
  2020. .color333 {
  2021. color: #333333;
  2022. }
  2023. .span2 {
  2024. border-right: 1px solid #ededed;
  2025. width: 120rpx;
  2026. padding: 0 8rpx;
  2027. span {
  2028. padding: 0 8rpx;
  2029. }
  2030. }
  2031. .span3 {
  2032. padding: 0 0 0 12rpx;
  2033. span {
  2034. padding: 0 8rpx;
  2035. }
  2036. width: 154rpx;
  2037. .bot1span {
  2038. color: #00B962;
  2039. }
  2040. .bot2span {
  2041. color: #AAAAAA;
  2042. }
  2043. .bot3span {
  2044. color: #FF3D00;
  2045. }
  2046. }
  2047. }
  2048. }
  2049. .indexData4content {
  2050. padding: 40rpx 20rpx;
  2051. .contentTitle {
  2052. color: #333333;
  2053. font-size: 40rpx;
  2054. text-align: center;
  2055. font-weight: bold;
  2056. margin-bottom: 8px;
  2057. }
  2058. .contentItem {
  2059. border-bottom: 1px solid #ededed;
  2060. justify-content: space-between;
  2061. flex-direction: row;
  2062. margin: 16rpx;
  2063. padding: 12rpx;
  2064. .span1 {
  2065. img {
  2066. vertical-align: bottom;
  2067. height: 44rpx;
  2068. margin-right: 8rpx;
  2069. }
  2070. font-weight: bold;
  2071. font-size: 36rpx;
  2072. width: 400rpx;
  2073. overflow: hidden;
  2074. text-overflow: ellipsis;
  2075. white-space: nowrap;
  2076. }
  2077. .color777 {
  2078. color: #777777;
  2079. }
  2080. .color333 {
  2081. color: #333333;
  2082. }
  2083. .span2 {
  2084. border-right: 1px solid #ededed;
  2085. width: 120rpx;
  2086. padding: 0 16rpx;
  2087. span {
  2088. padding: 0 8rpx;
  2089. }
  2090. }
  2091. .span3 {
  2092. padding: 0 0 0 16rpx;
  2093. span {
  2094. padding: 0 8rpx;
  2095. }
  2096. width: 154rpx;
  2097. color: #333;
  2098. .bot1span {
  2099. color: #00B962;
  2100. }
  2101. .bot2span {
  2102. color: #AAAAAA;
  2103. }
  2104. .bot3span {
  2105. color: #FF3D00;
  2106. }
  2107. }
  2108. }
  2109. .u-collapse-bot0span {
  2110. .contentItem {
  2111. display: flex;
  2112. }
  2113. }
  2114. .u-collapse-bot3span {
  2115. .contentItem {
  2116. margin: 0;
  2117. padding: 0;
  2118. .span1 {
  2119. width: 310rpx;
  2120. }
  2121. }
  2122. }
  2123. }
  2124. .chargingpile {
  2125. img {
  2126. vertical-align: bottom;
  2127. height: 44rpx;
  2128. margin-right: 8rpx;
  2129. }
  2130. p {
  2131. color: #185AC6;
  2132. font-size: 36rpx;
  2133. font-weight: bold;
  2134. span {
  2135. color: #777777;
  2136. margin-left: 8rpx;
  2137. font-size: 32rpx;
  2138. font-weight: normal;
  2139. }
  2140. }
  2141. .detailstablepile {
  2142. .details-row-main {
  2143. border-bottom: 1px solid #ededed;
  2144. padding: 10px 0;
  2145. }
  2146. span {
  2147. margin: 0 8rpx;
  2148. }
  2149. .bot {
  2150. display: inline-block;
  2151. width: 24rpx;
  2152. height: 24rpx;
  2153. margin-left: 4rpx;
  2154. border-radius: 999px;
  2155. }
  2156. .bot1 {
  2157. background-color: #00B962;
  2158. }
  2159. .bot2 {
  2160. //margin-left: 16rpx;
  2161. background-color: #AAAAAA;
  2162. }
  2163. .bot3 {
  2164. //margin-left: 16rpx;
  2165. background-color: #FF3D00;
  2166. }
  2167. .bot1span {
  2168. color: #00B962;
  2169. }
  2170. .bot2span {
  2171. color: #AAAAAA;
  2172. }
  2173. .bot3span {
  2174. color: #FF3D00;
  2175. }
  2176. .detailsline {
  2177. border-bottom: 1px solid #ededed;
  2178. }
  2179. .detailsline,
  2180. .detailsline—bottom {
  2181. display: flex;
  2182. .details-row {
  2183. width: 33%;
  2184. // display: flex;
  2185. // justify-content: space-between;
  2186. // flex-direction: column;
  2187. padding-left: 16rpx;
  2188. margin-bottom: 16rpx;
  2189. margin-top: 16rpx;
  2190. .span1 {
  2191. color: rgba(136, 136, 136, 100);
  2192. font-size: 28rpx;
  2193. width: 100%;
  2194. color: #333333;
  2195. }
  2196. }
  2197. }
  2198. .details-row-1 {
  2199. width: 47%;
  2200. padding-left: 0px !important;
  2201. //border-right: 1px solid #ededed;
  2202. }
  2203. }
  2204. }
  2205. .viewgun {
  2206. position: relative;
  2207. top: 200px;
  2208. text-align: center;
  2209. .viewspan {
  2210. width: 30%;
  2211. margin-left: 16rpx;
  2212. display: inline;
  2213. }
  2214. }
  2215. .headbotton1:after {
  2216. border-radius: 15px 0 0 15px;
  2217. }
  2218. .headbotton2:after {
  2219. border-radius: 0 15px 15px 0;
  2220. }
  2221. .detailstable {
  2222. padding: 30rpx 30rpx !important;
  2223. }
  2224. .detailstableHead {
  2225. .span1 {
  2226. font-size: 32rpx !important;
  2227. }
  2228. .details-row-head-1 {}
  2229. .details-row-head-2 {}
  2230. .details-row-head-3 {
  2231. width: 30% !important;
  2232. max-width: 150rpx;
  2233. .span {}
  2234. }
  2235. .span2 {
  2236. font-size: 44rpx !important;
  2237. font-weight: bold;
  2238. width: 100%;
  2239. color: #101010;
  2240. span {
  2241. font-size: 24rpx !important;
  2242. }
  2243. }
  2244. }
  2245. .detailslineHead {
  2246. border-top: 1px solid #ededed;
  2247. ;
  2248. .details-row {
  2249. padding-left: 8rpx !important;
  2250. }
  2251. font-size: 30rpx !important;
  2252. .span1 span {
  2253. font-size: 28rpx;
  2254. }
  2255. }
  2256. .detailstable,
  2257. .detailstableHead {
  2258. font-size: 16px;
  2259. p {
  2260. font-size: 14px;
  2261. }
  2262. .details-row-main {
  2263. border-bottom: 1px solid #ededed;
  2264. padding: 10px 0;
  2265. }
  2266. .detailsline {
  2267. border-bottom: 1px solid #ededed;
  2268. }
  2269. .detailsline,
  2270. .detailsline—bottom {
  2271. display: flex;
  2272. .details-row {
  2273. width: 50%;
  2274. display: flex;
  2275. justify-content: space-between;
  2276. flex-direction: column;
  2277. padding-left: 16rpx;
  2278. margin-bottom: 20rpx;
  2279. .span1 {
  2280. color: rgba(136, 136, 136, 100);
  2281. font-size: 28rpx;
  2282. width: 100%;
  2283. }
  2284. .span2 {
  2285. font-size: 36rpx;
  2286. width: 100%;
  2287. color: #101010;
  2288. span {
  2289. font-size: 24rpx;
  2290. }
  2291. }
  2292. }
  2293. }
  2294. .details-row-1 {
  2295. width: 47%;
  2296. padding-left: 0px !important;
  2297. border-right: 1px solid #ededed;
  2298. }
  2299. }
  2300. .details {
  2301. padding: 32rpx;
  2302. background-color: #fff;
  2303. border-radius: 8px;
  2304. }
  2305. .details-title {
  2306. margin-bottom: 16px;
  2307. h4 {
  2308. font-weight: normal;
  2309. font-size: 16px;
  2310. position: relative;
  2311. padding-left: 10px;
  2312. &::after {
  2313. content: '';
  2314. position: absolute;
  2315. height: 12px;
  2316. width: 4px;
  2317. background-color: #27B148;
  2318. left: 0;
  2319. top: 5px;
  2320. }
  2321. }
  2322. }
  2323. .details-row {
  2324. display: flex;
  2325. justify-content: space-between;
  2326. align-items: center;
  2327. margin-top: 30rpx;
  2328. p {
  2329. color: #37393c;
  2330. font-weight: bold;
  2331. }
  2332. }
  2333. .details-row2 {
  2334. display: flex;
  2335. justify-content: space-between;
  2336. align-items: center;
  2337. // margin-top: 15px;
  2338. p {
  2339. // color: #37393c;
  2340. // font-weight: bold;
  2341. }
  2342. }
  2343. .popup-screen {
  2344. padding: 40rpx;
  2345. position: relative;
  2346. .screen {
  2347. padding-bottom: 30px;
  2348. }
  2349. .screen-item {
  2350. margin-bottom: 40rpx;
  2351. .screen-head {
  2352. margin-bottom: 8px;
  2353. font-size: 16px;
  2354. }
  2355. .screen-main {
  2356. display: flex;
  2357. // display: -webkit-box;
  2358. flex-wrap: wrap;
  2359. }
  2360. .screen-entry {
  2361. width: 29%;
  2362. padding: 6px 0;
  2363. display: flex;
  2364. align-items: center;
  2365. justify-content: center;
  2366. background-color: #F2F5FA;
  2367. text-align: center;
  2368. margin-bottom: 10px;
  2369. border-radius: 3px;
  2370. margin-right: 6px;
  2371. }
  2372. .screen-entry.active {
  2373. background-color: #185AC6;
  2374. color: #fff;
  2375. }
  2376. }
  2377. .screen-foot {
  2378. position: fixed;
  2379. left: 0;
  2380. right: 0;
  2381. bottom: 0;
  2382. display: flex;
  2383. height: 50px;
  2384. border-top: 1px solid #ededed;
  2385. .screen-btn-l {
  2386. background-color: #fff;
  2387. flex: 0.2;
  2388. text-align: center;
  2389. line-height: 50px;
  2390. }
  2391. .screen-btn-r {
  2392. flex: 0.8;
  2393. text-align: center;
  2394. line-height: 50px;
  2395. background-color: #185AC6;
  2396. color: #fff;
  2397. }
  2398. }
  2399. }
  2400. .navbar-tit {
  2401. display: flex;
  2402. align-items: center;
  2403. justify-content: space-between;
  2404. color: #fff;
  2405. line-height: 40rpx;
  2406. padding: 24rpx ;
  2407. position: fixed;
  2408. // border-bottom: 1px solid #fff;
  2409. left: 0;
  2410. right: 0;
  2411. top: 0;
  2412. z-index: 99999991;
  2413. background-color: #00b962;
  2414. .navbar-tit1{
  2415. font-weight: bold;
  2416. font-size: 40rpx;
  2417. display: flex;
  2418. }
  2419. .navbar-tit2{
  2420. font-size: 36rpx;
  2421. }
  2422. }
  2423. .navbar-tit-box {
  2424. box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  2425. }
  2426. .statisticsData {
  2427. background-color: #fff;
  2428. margin: 0px 24rpx 24rpx;
  2429. //padding:0px 24rpx 24rpx;
  2430. border-radius: 8px;
  2431. }
  2432. .statisticsDataMain {
  2433. flex-wrap: wrap;
  2434. display: flex;
  2435. }
  2436. .statisticsData-item {
  2437. flex: 1;
  2438. width: 40%;
  2439. .statisticsData-head {
  2440. display: flex;
  2441. align-items: center;
  2442. p {
  2443. color: #637AA2;
  2444. font-size: 12px;
  2445. }
  2446. }
  2447. .statisticsData-main {
  2448. margin-top: 4px;
  2449. font-size: 18px;
  2450. }
  2451. .statisticsData-foot {
  2452. display: flex;
  2453. align-items: center;
  2454. margin-top: 16px;
  2455. p {
  2456. color: #637AA2;
  2457. }
  2458. h4 {
  2459. margin-left: 8px;
  2460. }
  2461. }
  2462. }
  2463. .statisticsChart {
  2464. margin: 32rpx;
  2465. .statisticsChart-head {
  2466. margin-bottom: 10rpx;
  2467. display: flex;
  2468. justify-content: space-between;
  2469. align-items: center;
  2470. h4 {
  2471. font-weight: normal;
  2472. font-size: 16px;
  2473. position: relative;
  2474. padding-left: 10px;
  2475. &::after {
  2476. content: '';
  2477. position: absolute;
  2478. height: 12px;
  2479. width: 4px;
  2480. background-color: #4E8DF6;
  2481. left: 0;
  2482. top: 5px;
  2483. }
  2484. }
  2485. .h4-1 {
  2486. display: flex;
  2487. align-items: center;
  2488. padding-left: 0;
  2489. color: rgba(16, 16, 16, 1);
  2490. img {
  2491. margin-right: 8rpx;
  2492. }
  2493. &::after {
  2494. content: none;
  2495. }
  2496. }
  2497. .statisticsChart-time {
  2498. display: flex;
  2499. align-items: center;
  2500. p {
  2501. color: #666;
  2502. }
  2503. }
  2504. }
  2505. .statisticsChart-main {
  2506. background-color: #fff;
  2507. padding: 10px 16px 16px 16px;
  2508. border-radius: 8px;
  2509. }
  2510. }
  2511. .top-cover {
  2512. // height: 470px;
  2513. // margin-bottom: 70px;
  2514. background: linear-gradient(179.94deg, rgba(0, 185, 98, 1) 71.55%, rgba(0, 196, 104, 0) 99.35%);
  2515. .income {
  2516. padding: 44rpx 32rpx 24rpx 32rpx;
  2517. color: rgba(255, 255, 255, 1);
  2518. .today-queryHeadTime {
  2519. text-align: center;
  2520. //font-size: 12px;
  2521. }
  2522. .today-income {
  2523. margin-top: 4rpx;
  2524. text-align: center;
  2525. .number {
  2526. font-weight: bold;
  2527. font-size: 36px;
  2528. text {
  2529. margin-left: 8rpx;
  2530. }
  2531. }
  2532. .text {
  2533. font-size: 16px;
  2534. }
  2535. }
  2536. .else {
  2537. margin-top: 32rpx;
  2538. display: flex;
  2539. justify-content: space-between;
  2540. .item {
  2541. text-align: center;
  2542. .item-number {
  2543. font-weight: bold;
  2544. font-size: 48rpx;
  2545. margin-bottom: 8rpx;
  2546. }
  2547. }
  2548. }
  2549. }
  2550. }
  2551. </style>