index.vue 96 KB

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