index.vue 77 KB

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