index.vue 76 KB

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