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