index.vue 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824
  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(30), '{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. for (var j in dates) {
  1583. var sum=0
  1584. for (var i in cardTypes) {
  1585. var item = cardTypes[i]
  1586. var num = salesData[dates[j]][item].buyNum
  1587. sum+=num
  1588. }
  1589. obj.data.push(sum)
  1590. }
  1591. series.push(obj)
  1592. var data1 = []
  1593. var axisLabel={}
  1594. if(this.current2==1){
  1595. axisLabel.rotate=30
  1596. }
  1597. this.myChart3.clear();
  1598. var option = {
  1599. tooltip: {
  1600. trigger: 'axis',
  1601. axisPointer: {
  1602. type: 'shadow'
  1603. },
  1604. position: (e) => {
  1605. var x = e[0]
  1606. var y = e[1]
  1607. if (this.windowWidth) {
  1608. if (x < this.windowWidth / 2) {
  1609. return ['30%', '-20%']
  1610. } else {
  1611. return ['10%', '-20%']
  1612. }
  1613. }
  1614. },
  1615. formatter: (params) => {
  1616. var time=params[0].name
  1617. var sumrechargeAmount=0
  1618. var style = "float: right;margin-left: 20px;"
  1619. let result = `<div class="font-semibold">${params[0].name}</div>`;
  1620. var showlistColor = ['#2196F3', '#f3c96b','red','#5872c0', '#69be8d', '#c661b4', '#009688', '#4CAF50',
  1621. '#00BCD4'
  1622. ];
  1623. for (var i in cardTypes) {
  1624. var item = cardTypes[i]
  1625. var num = salesData[time][item].buyNum
  1626. var rechargeAmount = salesData[time][item].rechargeAmount
  1627. result += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:"+showlistColor[i]+";'></span>" +
  1628. item+ '<span style="' +
  1629. style +
  1630. '">' + num + '张;'+rechargeAmount+'元</span></p>';
  1631. sumrechargeAmount+=rechargeAmount;
  1632. }
  1633. result+=`<div style="color:#009688;">合计:<span style="${style}">${params[0].value}张;${sumrechargeAmount}元</span></div>`
  1634. return result;
  1635. }
  1636. },
  1637. axisPointer: {
  1638. type: 'shadow'
  1639. },
  1640. grid: {
  1641. top: 20,
  1642. left: 2,
  1643. right: 5,
  1644. bottom: 20,
  1645. containLabel: true
  1646. },
  1647. xAxis: {
  1648. type: 'category',
  1649. axisLabel:axisLabel,
  1650. data: dates
  1651. },
  1652. yAxis: {
  1653. type: 'value'
  1654. },
  1655. series: series
  1656. }
  1657. this.myChart3.setOption(option);
  1658. },
  1659. getPie2(obj, str) {
  1660. var data = []
  1661. //var dataAll=[]
  1662. var data1 = []
  1663. var data2 = []
  1664. var usageFastMap = obj.usageFastMap;
  1665. for (var i in usageFastMap) {
  1666. // var str1=parseInt( i.split('-')[0])
  1667. // var str2=parseInt(i.split('-')[1])
  1668. // //dataAll.push(i)
  1669. // if(this.sliderNum1.ck==1||this.sliderNum2.ck==1){
  1670. // // str+=this.sliderNum1.minValue+"-"+this.sliderNum1.maxValue
  1671. // // if(this.sliderNum2.ck==1){
  1672. // // str+=","
  1673. // // }
  1674. // if(this.sliderNum2.ck==1){
  1675. // //str+=this.sliderNum2.minValue+"-"+this.sliderNum2.maxValue
  1676. // if(this.sliderNum2.minValue<=str1&&this.sliderNum2.maxValue>str1){
  1677. // data.push(i)
  1678. // continue
  1679. // }
  1680. // }
  1681. // if(this.sliderNum1.ck==1){
  1682. // //str+=this.sliderNum2.minValue+"-"+this.sliderNum2.maxValue
  1683. // if(this.sliderNum1.minValue<=str1&&this.sliderNum1.maxValue>str1){
  1684. // data.push(i)
  1685. // continue
  1686. // }
  1687. // }
  1688. // }else{
  1689. // }
  1690. data.push(i)
  1691. }
  1692. // height = 1680/4;
  1693. var height = 1680 * data.length / 24 + 200
  1694. if (!this.myChart2) {
  1695. this.myChart2 = echarts.init(document.getElementById('pieEcharts2'), null, {
  1696. width: uni.upx2px(700),
  1697. height: uni.upx2px(height)
  1698. });
  1699. } else {
  1700. if (data.length != 24) {
  1701. if (data.length <= 10) {
  1702. //top='12%'
  1703. }
  1704. //top=(30-data.length*2)+'%'
  1705. }
  1706. // this.myChart2.resize({
  1707. // height: uni.upx2px(height),
  1708. // width: uni.upx2px(700)
  1709. // })
  1710. }
  1711. this.myChart2.clear();
  1712. var usageSlowMap = obj.usageSlowMap;
  1713. data.reverse()
  1714. var num1 = 0;
  1715. var num2 = 0;
  1716. for (var i in data) {
  1717. num1 += usageFastMap[data[i]]
  1718. num2 += usageSlowMap[data[i]]
  1719. }
  1720. for (var i in data) {
  1721. if (this.selectShowNumType == 1) {
  1722. if (num1 == 0) {
  1723. data1.push(0)
  1724. } else {
  1725. data1.push((usageFastMap[data[i]] / num1 * 100).toFixed(2))
  1726. }
  1727. if (num2 == 0) {
  1728. data2.push(0)
  1729. } else {
  1730. data2.push((usageSlowMap[data[i]] / num2 * 100).toFixed(2))
  1731. }
  1732. } else {
  1733. data1.push((usageFastMap[data[i]]))
  1734. data2.push((usageSlowMap[data[i]]))
  1735. }
  1736. }
  1737. var series = []
  1738. if (this.selectShowNumType1 == 1) {
  1739. series.push({
  1740. name: '快充桩',
  1741. type: 'bar',
  1742. data: data1,
  1743. barWidth: 10,
  1744. label: {
  1745. show: true, // 开启数据标签显示
  1746. position: 'right', // 数据标签位置,这里设置为顶部
  1747. color: 'black', // 数据标签颜色
  1748. fontSize: uni.upx2px(24), // 数据标签字体大小
  1749. formatter: '{c}' + (this.selectShowNumType == 1 ? '%' : '次')
  1750. }
  1751. })
  1752. }
  1753. if (this.selectShowNumType2 == 1) {
  1754. series.push({
  1755. name: '慢充桩',
  1756. type: 'bar',
  1757. data: data2,
  1758. barWidth: 10,
  1759. label: {
  1760. show: true, // 开启数据标签显示
  1761. position: 'right', // 数据标签位置,这里设置为顶部
  1762. color: 'black', // 数据标签颜色
  1763. fontSize: uni.upx2px(24), // 数据标签字体大小
  1764. formatter: '{c}' + (this.selectShowNumType == 1 ? '%' : '次')
  1765. }
  1766. })
  1767. }
  1768. var option = {
  1769. tooltip: {
  1770. // formatter: '{b}点<br />{a0}: {c0}%<br />{a1}: {c1}%',
  1771. formatter: (value) => {
  1772. var name = value[0].axisValueLabel;
  1773. var text1 = ""
  1774. var style = "float: right;margin-left: 3px;"
  1775. for (var i in value) {
  1776. text1 += "<p>" + value[i].marker + value[i].seriesName +
  1777. '<span style="' + style +
  1778. '">' + value[i].data + (this.selectShowNumType == 1 ? '%' : '次') +
  1779. '</span></p>';
  1780. }
  1781. return `<p>${name}时</p>` + text1
  1782. },
  1783. trigger: 'axis',
  1784. axisPointer: {
  1785. type: 'shadow'
  1786. }
  1787. },
  1788. legend: {},
  1789. grid: {
  1790. top: 30,
  1791. left: 2,
  1792. right: 30,
  1793. bottom: 20,
  1794. containLabel: true
  1795. },
  1796. xAxis: {
  1797. name: this.selectShowNumType == 1 ? '%' : '次',
  1798. type: 'value',
  1799. boundaryGap: [0, 0.01]
  1800. },
  1801. yAxis: {
  1802. type: 'category',
  1803. data: data,
  1804. axisLabel: {
  1805. interval: 0,
  1806. },
  1807. },
  1808. series: series
  1809. }
  1810. this.myChart2.setOption(option);
  1811. },
  1812. getBar(type) {
  1813. var getData = this.indexData3.graphMap;
  1814. getData.nowYearRechargeFee=getData.rechargeFee
  1815. getData.nowYearRechargeNum=getData.rechargeNum
  1816. this.myChartbar = echarts.init(document.getElementById('pieEcharts-bar'));
  1817. // if (!this.myChartbar) {
  1818. // // this.myChartbar.on("dataZoom", (res) => {
  1819. // // showkey = "";
  1820. // // this.headitemby = "";
  1821. // // });
  1822. // }
  1823. // this.myChartbar.clear();
  1824. var key = ["AmountCard", "ProfitCard", "EQAmount", "RechargeNum", "RechargeFee"]
  1825. var keyStr = ['收入\n(含卡)', '利润\n(含卡)', '充电量', '充值\n人次', '充值\n金额']
  1826. var keyStrN = ['收入(含卡)', '利润(含卡)', '充电量', '充值人次', '充值金额']
  1827. var keyStrT = ['收入', '利润', '充电量', '充值人次', '充值金额']
  1828. var key1 = new Date().getFullYear() + "-01-01" == this.byYearStart ? "今年" : "去年"
  1829. var key2 = new Date().getFullYear() + "-01-01" == this.byYearStart ? "去年" : "前年"
  1830. var key3 = ['去年同期数据', '今年同期完成']
  1831. if (new Date().getFullYear() + "-01-01" != this.byYearStart) {
  1832. key3 = ['前年数据', '去年数据']
  1833. }
  1834. var sz1 = []
  1835. var sz2 = []
  1836. key.forEach(item => {
  1837. var i1 = getData['nowYear' + item]
  1838. var i2 = getData['lastSamePeriod' + item]
  1839. if (i1 + i2 == 0) {
  1840. sz1.push(0)
  1841. sz2.push(0)
  1842. } else if (i1 && i2 == 0) {
  1843. sz1.push(100)
  1844. sz2.push(0)
  1845. } else {
  1846. if (new Date().getFullYear() + "-01-01" == this.byYearStart) {
  1847. //完成情况
  1848. sz1.push((i1 / (i2) * 100.00).toFixed(2))
  1849. if (i1 < i2) {
  1850. sz2.push(((i2 - i1) / (i2) * 100.00).toFixed(2))
  1851. } else {
  1852. sz2.push(0)
  1853. }
  1854. } else {
  1855. sz1.push((i1 / (i1 + i2) * 100.00).toFixed(2))
  1856. sz2.push((i2 / (i1 + i2) * 100.00).toFixed(2))
  1857. }
  1858. }
  1859. })
  1860. var option = {
  1861. tooltip: {
  1862. trigger: 'axis',
  1863. axisPointer: {
  1864. type: 'shadow'
  1865. },
  1866. position: (e) => {
  1867. var x = e[0]
  1868. var y = e[1]
  1869. if (this.windowWidth) {
  1870. if (x < this.windowWidth / 2) {
  1871. return ['30%', '-20%']
  1872. } else {
  1873. return ['10%', '-20%']
  1874. }
  1875. }
  1876. },
  1877. formatter: (value) => {
  1878. var dataIndex = value[0].dataIndex;
  1879. var name = keyStrN[dataIndex];
  1880. var style = "float: right;margin-left: 20px;"
  1881. var prefix = ["lastYear", "lastSamePeriod", "nowYear"]
  1882. var prefixStr = [key2 + "", key2 + "同期", key1 + "同期"]
  1883. if (new Date().getFullYear() + "-01-01" != this.byYearStart) {
  1884. prefix = ["lastYear", "nowYear"]
  1885. prefixStr = [key2 + "", key1 + ""]
  1886. }
  1887. var u = ['元', '元', '度', '次', '元']
  1888. var keytool = ["AmountCard", "ProfitCard", "EQAmount", "RechargeNum",
  1889. "RechargeFee"
  1890. ]
  1891. var text1 = ""
  1892. //去年全年数据、去年同期数据、今年当前数据和同期完成比。
  1893. var k = null;
  1894. var sz = [];
  1895. for (var j in prefix) {
  1896. var pre = prefix[j]
  1897. var item = keytool[dataIndex]
  1898. var num = getData[pre + item]
  1899. if (item == 'EQAmount') {
  1900. num = num / 10000
  1901. }
  1902. var uu = this.getNum(num, j)
  1903. //去年今年 用一个单位
  1904. if (j == 1) {
  1905. k = uu
  1906. } else if (j == 2) {
  1907. uu = k
  1908. }
  1909. sz.push(num)
  1910. var showNum = (num / uu.num).toFixed(uu.num > 100 ? 2 : 0)
  1911. text1 += "<p>" + prefixStr[j] + keyStrT[dataIndex] +
  1912. '<span style="' + style +
  1913. '">' + (u[dataIndex] == '张' ? num : showNum) + uu.u + u[dataIndex] +
  1914. '</span></p>';
  1915. }
  1916. if (new Date().getFullYear() + "-01-01" == this.byYearStart) {
  1917. text1 += "<p>" + key1 + "同期完成" +
  1918. '<span style="' + style +
  1919. '">' + value[0].data + '%</span></p>';
  1920. } else {
  1921. var zzl = ((sz[1] - sz[0]) / sz[0] * 100).toFixed(2)
  1922. text1 += "<p>" + key1 + "增长率" +
  1923. '<span style="' + style +
  1924. '">' + zzl + '%</span></p>';
  1925. }
  1926. return `<p>` + value[0].marker + `${name}</p>` + text1
  1927. }
  1928. },
  1929. legend: {
  1930. data: key3
  1931. },
  1932. grid: {
  1933. top: 30,
  1934. left: 2,
  1935. right: 5,
  1936. bottom: 20,
  1937. containLabel: true
  1938. },
  1939. xAxis: {
  1940. type: 'category',
  1941. data: keyStr
  1942. },
  1943. yAxis: {
  1944. type: 'value'
  1945. },
  1946. series: [{
  1947. name: key3[1],
  1948. type: 'bar',
  1949. stack: '总量', // 指定堆叠的组名
  1950. label: {
  1951. show: true,
  1952. formatter: (params) => {
  1953. if (params.value == 0) {
  1954. return ""
  1955. } else {
  1956. return params.value + '%'
  1957. }
  1958. }
  1959. },
  1960. data: sz1
  1961. },
  1962. {
  1963. name: key3[0],
  1964. type: 'bar',
  1965. label: {
  1966. show: true,
  1967. formatter: (params) => {
  1968. if (params.value == 0) {
  1969. return ""
  1970. } else {
  1971. return params.value + '%'
  1972. }
  1973. }
  1974. },
  1975. stack: '总量', // 与产品A堆叠
  1976. data: sz2
  1977. },
  1978. ]
  1979. };
  1980. this.myChartbar.setOption(option);
  1981. },
  1982. getNum(num, j) {
  1983. var str = {
  1984. num: 1,
  1985. u: ""
  1986. }
  1987. if (num > 10000) {
  1988. str = {
  1989. num: 10000,
  1990. u: "万"
  1991. }
  1992. }
  1993. if (num > 10000 * 10000) {
  1994. str = {
  1995. num: 10000 * 10000,
  1996. u: "亿"
  1997. }
  1998. }
  1999. if (j == 0) {
  2000. if (num > 10000 * 10000 * 10000) {
  2001. str = {
  2002. num: 10000 * 10000 * 10000,
  2003. u: "万亿"
  2004. }
  2005. }
  2006. }
  2007. return str
  2008. },
  2009. getPie(type) {
  2010. //true 正常版本 false 个人版本
  2011. var typebl = !(this.info.accountType == 3);
  2012. var dataInterval = null;
  2013. if (typebl) {
  2014. if (this.type_head == 1) {
  2015. dataInterval = [0, 75, 100,
  2016. 125, 150, 200, 400, 500,
  2017. 600, 1200, 1400, 1600, 1800,
  2018. 2600, 2800,
  2019. 3000, 4200,
  2020. 4800, 5200, 6500, 7000, 7500, 8000, 12000, 14000, 16000, 18000, 20000, 23000,
  2021. 25000, 30000, 35000, 40000, 999999
  2022. ];
  2023. } else {
  2024. dataInterval = [0, 500, 1000, 2000, 5000, 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000,
  2025. 90000, 100000, 120000, 140000, 160000, 180000, 200000, 220000, 240000, 280000, 3200000,
  2026. 3500000, 400000, 500000,
  2027. 999999
  2028. ];
  2029. }
  2030. }
  2031. this.headitemby = "";
  2032. var showkey = "";
  2033. var getData = this.indexData3.graphMap;
  2034. for (var i in getData) {
  2035. var item = getData[i]
  2036. item.todayEQAmount2 = (parseInt(item.todayEQAmount) / 10000)
  2037. if (this.type_head == 1) {
  2038. this.showTopobj = item;
  2039. }
  2040. }
  2041. this.indexData3.graphMap = getData
  2042. //var unit = this.current ? '笔' : '元'
  2043. var colorName = "#333"
  2044. // this.showlist1 = ['收入', '利润', '次数','新电途'];
  2045. var showlistColor = ['#2196F3', '#f3c96b','red','#5872c0', '#69be8d', '#c661b4', '#009688', '#4CAF50',
  2046. '#00BCD4'
  2047. ];
  2048. // this.showlist1 = ['收入', '利润', '电量', '新电途'];
  2049. // var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2', 'todayXDTAmount'];
  2050. this.showlist1 = ['收入', '利润', '电量'];
  2051. var sz2 = ['todayAmount', 'todayProfit', 'todayEQAmount2'
  2052. ];
  2053. //, 'todayXDTAmount', 'todayKDAmount','todayXXAmount' , '新电途', '快电', '星星'
  2054. if (this.showMonthlyCard && this.type_head == 2) {
  2055. var sz2 = ['todayAmountC', 'todayProfitC', 'todayEQAmount2'
  2056. ];
  2057. }
  2058. if (this.info.accountType == 1) {
  2059. this.showlist1.push('充值人次')
  2060. this.showlist1.push('充值金额')
  2061. sz2.push('rechargeNum')
  2062. sz2.push('rechargeFee')
  2063. }
  2064. var zLevel = [20, 40, 10, 30, 9];
  2065. //var sz2 = ['todayAmount', 'todayProfit', 'todayEQNum','todayXDTAmount'];
  2066. if (!this.myChart) {
  2067. this.myChart = echarts.init(document.getElementById('pieEcharts'));
  2068. this.myChart.on("dataZoom", (res) => {
  2069. showkey = "";
  2070. this.headitemby = "";
  2071. });
  2072. }
  2073. this.myChart.clear();
  2074. //
  2075. var timelist = []
  2076. for (var i in getData) {
  2077. if (this.type_head == 1) {
  2078. timelist.push(i.substring(5))
  2079. } else {
  2080. timelist.push(i)
  2081. }
  2082. }
  2083. var list = [];
  2084. for (var j in this.showlist1) {
  2085. var ap = {
  2086. name: this.showlist1[j],
  2087. type: 'line',
  2088. lineStyle: {
  2089. color: showlistColor[j]
  2090. },
  2091. itemStyle: {
  2092. color: showlistColor[j]
  2093. },
  2094. z: zLevel[j],
  2095. // label: {
  2096. // show: true,
  2097. // position: 'top'
  2098. // },
  2099. data: []
  2100. }
  2101. if (this.type_head == 1) {
  2102. ap.symbolSize = 2;
  2103. }
  2104. var bl = true;
  2105. for (var i in getData) {
  2106. //var time=this.queryDate.replace("-","/").replace("-","/")
  2107. //time+' '+i
  2108. var obj = getData[i][sz2[j]];
  2109. //**********
  2110. if (typebl) {
  2111. const min_v = Math.max(...dataInterval.filter((v) => v <= obj));
  2112. // 2.寻找在数据间隔里大于amount的最小值
  2113. const max_v = Math.min(...dataInterval.filter((v) => v > obj));
  2114. // 3.寻找 min_v 所在的下标
  2115. const index = dataInterval.findIndex((v) => v === min_v);
  2116. // 4.计算该amount在y轴上应该展示的位置
  2117. const y_value = ((obj - min_v) / (max_v - min_v)) * 10 + index * 10;
  2118. obj = y_value;
  2119. }
  2120. //**********
  2121. //'todayAmount', 'todayProfit', 'todayEQNum'
  2122. // if (bl&&getData[i].todayAmount == 0 && getData[i].todayProfit == 0 &&getData[i].todayEQNum == 0) {
  2123. // //&& &&getData[i].todayEQNum == 0
  2124. // continue;
  2125. // }
  2126. bl = false;
  2127. var time = i
  2128. if (this.type_head == 1) {
  2129. //time = i.substring(5)
  2130. } else {
  2131. }
  2132. ap.data.push([time, obj]);
  2133. }
  2134. if (bl) {
  2135. ap.data = [];
  2136. for (var i in getData) {
  2137. //var time=this.queryDate.replace("-","/").replace("-","/")
  2138. //time+' '+i
  2139. var obj = getData[i][sz2[j]];
  2140. var time = i
  2141. if (this.type_head == 1) {
  2142. time = i.substring(5)
  2143. } else {
  2144. }
  2145. // if(j!=2){
  2146. // obj=obj.toFixed(2)
  2147. // }
  2148. ap.data.push([time, obj]);
  2149. }
  2150. }
  2151. list.push(ap)
  2152. }
  2153. var yshow = 0;
  2154. // 指定图表的配置项和数据
  2155. var option = {
  2156. tooltip: {
  2157. position: (e) => {
  2158. var x = e[0]
  2159. var y = e[1]
  2160. if (this.windowWidth) {
  2161. if (y < 100) {
  2162. if (x < this.windowWidth / 2) {
  2163. return ['30%', '60%']
  2164. } else {
  2165. return ['10%', '60%']
  2166. }
  2167. } else {
  2168. if (x < this.windowWidth / 2) {
  2169. return ['30%', '-45%']
  2170. } else {
  2171. return ['10%', '-45%']
  2172. }
  2173. }
  2174. }
  2175. },
  2176. formatter: (value) => {
  2177. //getPie
  2178. var name = value[0].data[0];
  2179. var info = getData[name];
  2180. var style = "float: right;margin-left: 8px;"
  2181. var text1 = ""
  2182. for (var i in value) {
  2183. var u = "元"
  2184. var num = info[sz2[value[i].seriesIndex]];
  2185. if (!num) {
  2186. num = 0;
  2187. }
  2188. if (value[i].seriesName == '充值人次') {
  2189. u = '次'
  2190. num = num
  2191. } else
  2192. if (value[i].seriesName == '电量') {
  2193. u = '度'
  2194. num = num.toFixed(2)
  2195. } else if (value[i].seriesName == '次数') {
  2196. u = '次'
  2197. } else {
  2198. num = num.toFixed(2)
  2199. }
  2200. var markerU = "";
  2201. if (this.type_head == 2) {
  2202. if (!num) {
  2203. num = 0;
  2204. }
  2205. if (value[i].seriesName == "电量") {
  2206. u = "万度"
  2207. num = (num / 10000).toFixed(2)
  2208. }
  2209. if (value[i].seriesName == "利润") {
  2210. //u = "万元"
  2211. if (this.showMonthlyCard) {
  2212. markerU = "(含卡)"
  2213. //num = info.todayProfitC
  2214. }
  2215. }
  2216. if (value[i].seriesName == "收入") {
  2217. u = "万元"
  2218. num = info.todayAmountW
  2219. if (this.showMonthlyCard) {
  2220. markerU = "(含卡)"
  2221. num = info.todayAmountCW
  2222. }
  2223. }
  2224. if (!num) {
  2225. num = 0;
  2226. }
  2227. if (value[i].seriesName == "充值金额") {
  2228. u = "万元"
  2229. num = (num / 10000).toFixed(2)
  2230. }
  2231. if (value[i].seriesName == '充值人次') {
  2232. u = '次'
  2233. num = num
  2234. } else {
  2235. num = parseFloat(num)
  2236. num = num.toFixed(2)
  2237. }
  2238. }
  2239. text1 += "<p>" + value[i].marker + value[i].seriesName + markerU +
  2240. '<span style="' + style +
  2241. '">' + num + u + '</span></p>';
  2242. if (this.type_head == 2) {
  2243. if (value[i].seriesName == "收入") {
  2244. if (this.showMonthlyCard) {
  2245. markerU = "(含卡)"
  2246. info.yoyNum = info.yoyNumC
  2247. info.qoqNum = info.qoqNumC
  2248. }
  2249. if (name != this.queryTime2) {
  2250. if (info.yoyNum != null) {
  2251. text1 += "<p>" + value[i].marker + "收入同比" + (info.yoyNum < 0 ?
  2252. '减少' : '增长') + '<span style="' + style +
  2253. '">' + (info.yoyNum < 0 ? info.yoyNum * -1 : info.yoyNum) +
  2254. '%' + '</span></p>';
  2255. } else {
  2256. text1 += "<p>" + value[i].marker + "收入同比" + '<span style="' +
  2257. style +
  2258. '">' + '无数据' + '</span></p>';
  2259. }
  2260. if (info.qoqNum != null) {
  2261. text1 += "<p>" + value[i].marker + "收入环比" + (info.qoqNum < 0 ?
  2262. '减少' : '增长') + '<span style="' + style +
  2263. '">' + (info.qoqNum < 0 ? info.qoqNum * -1 : info.qoqNum) +
  2264. '%' + '</span></p>';
  2265. } else {
  2266. text1 += "<p>" + value[i].marker + "收入环比" + '<span style="' +
  2267. style +
  2268. '">' + '无数据' + '</span></p>';
  2269. }
  2270. }
  2271. }
  2272. if (value[i].seriesName == "利润") {
  2273. if (this.showMonthlyCard) {
  2274. markerU = "(含卡)"
  2275. info.todayProfitYOY = info.todayProfitCYOY
  2276. info.todayProfitQOQ = info.todayProfitCQOQ
  2277. }
  2278. if (name != this.queryTime2) {
  2279. if (info.todayProfitYOY != null) {
  2280. text1 += "<p>" + value[i].marker + "利润同比" + (info.todayProfitYOY <
  2281. 0 ?
  2282. '减少' : '增长') + '<span style="' + style +
  2283. '">' + (info.todayProfitYOY < 0 ? info.todayProfitYOY * -1 :
  2284. info.todayProfitYOY) +
  2285. '%' + '</span></p>';
  2286. } else {
  2287. text1 += "<p>" + value[i].marker + "利润同比" + '<span style="' +
  2288. style +
  2289. '">' + '无数据' + '</span></p>';
  2290. }
  2291. if (info.todayProfitQOQ != null) {
  2292. text1 += "<p>" + value[i].marker + "利润环比" + (info.todayProfitQOQ <
  2293. 0 ?
  2294. '减少' : '增长') + '<span style="' + style +
  2295. '">' + (info.todayProfitQOQ < 0 ? info.todayProfitQOQ * -1 :
  2296. info.todayProfitQOQ) +
  2297. '%' + '</span></p>';
  2298. } else {
  2299. text1 += "<p>" + value[i].marker + "利润环比" + '<span style="' +
  2300. style +
  2301. '">' + '无数据' + '</span></p>';
  2302. }
  2303. }
  2304. }
  2305. }
  2306. if (i == value.length - 1 && this.showMonthlyCard) {
  2307. text1 +=
  2308. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>6折卡数量" +
  2309. '<span style="' + style +
  2310. '">' + (info.discountCardBuyNum ? info.discountCardBuyNum : 0) +
  2311. '张</span></p>';
  2312. text1 +=
  2313. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>月卡数量" +
  2314. '<span style="' + style +
  2315. '">' + (info.monthCardBuyNum ? info.monthCardBuyNum : 0) + '张</span></p>';
  2316. text1 +=
  2317. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>折扣卡金额" +
  2318. '<span style="' + style +
  2319. '">' + (info.cardBuyFee ? info.cardBuyFee : 0).toFixed(2) + '元</span></p>';
  2320. }
  2321. }
  2322. var sz001=[ 'todayXDTAmount', 'todayKDAmount','todayXXAmount' ]
  2323. var sz002=['新电途', '快电', '星星']
  2324. for(var i in sz001){
  2325. var k1=sz001[i]
  2326. var k2=sz002[i]
  2327. text1 += "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#FF3D00;'></span>" + k2+ '<span style="' +
  2328. style +
  2329. '">' + info[k1].toFixed(2) + '元</span></p>';
  2330. }
  2331. if (this.type_head == 2&&info.inspectionScore) {
  2332. text1 +=
  2333. "<p><span style='display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:#19be6b;'></span>巡检绩效" +
  2334. '<span style="' + style +
  2335. '">' + (info.inspectionScore ? info.inspectionScore : '-') + '分</span></p>';
  2336. }
  2337. if (this.type_head == 1) {
  2338. //time = i.substring(5)
  2339. var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
  2340. var now = newDate(name);
  2341. var day = now.getDay();
  2342. var week = weeks[day];
  2343. return `<p>${name} ${week}</p>` + text1
  2344. } else {
  2345. return `<p>${name}</p>` + text1
  2346. }
  2347. },
  2348. trigger: 'axis',
  2349. borderColor: "#F0F0F0",
  2350. borderWidth: 1,
  2351. backgroundColor: "#ffffff",
  2352. textStyle: {
  2353. color: "#333"
  2354. }
  2355. },
  2356. legend: {
  2357. itemGap: 1,
  2358. data: this.showlist1,
  2359. textStyle: {
  2360. color: "#333"
  2361. }
  2362. },
  2363. grid: {
  2364. top: 45,
  2365. left: 0,
  2366. right: 20,
  2367. bottom: 20,
  2368. containLabel: true
  2369. },
  2370. xAxis: {
  2371. //type: 'value',
  2372. type: 'category',
  2373. splitNumber: 4,
  2374. boundaryGap: false,
  2375. axisLabel: {
  2376. formatter: (value) => {
  2377. if (this.headitemby == "") {
  2378. this.headitemby = value
  2379. }
  2380. var i = 0
  2381. if (this.type_head == 1) {
  2382. i = 0;
  2383. } else {
  2384. i = 3;
  2385. }
  2386. var showvalue = "";
  2387. var key = value.substring(0, 8 - i);
  2388. if (showkey == "" || value == this.headitemby) {
  2389. showkey = key
  2390. showvalue = value
  2391. showvalue = value.substring(5 - i)
  2392. } else {
  2393. if (key != showkey) {
  2394. showkey = key
  2395. showvalue = value
  2396. showvalue = value.substring(5 - i)
  2397. } else {
  2398. showvalue = value.substring(8 - i)
  2399. }
  2400. }
  2401. return showvalue.replace("-", ".");
  2402. },
  2403. textStyle: {
  2404. color: "#333"
  2405. }
  2406. },
  2407. axisLine: {
  2408. show: true,
  2409. lineStyle: {
  2410. color: "#333"
  2411. }
  2412. },
  2413. },
  2414. yAxis: {
  2415. type: 'value',
  2416. // name: '单位('+this.typeN+')',
  2417. axisLabel: {
  2418. formatter: (v, i) => {
  2419. if (dataInterval == null) {
  2420. return v
  2421. }
  2422. if (i == 0) {
  2423. yshow = 0
  2424. return 0
  2425. }
  2426. if (yshow != parseInt(v / 10)) {
  2427. yshow = parseInt(v / 10);
  2428. return dataInterval[parseInt(v / 10)]
  2429. } else {
  2430. return ''
  2431. }
  2432. },
  2433. textStyle: {
  2434. color: "#333"
  2435. }
  2436. },
  2437. axisLine: {
  2438. show: true,
  2439. lineStyle: {
  2440. color: "#333"
  2441. }
  2442. },
  2443. },
  2444. series: list
  2445. };
  2446. // option.dataZoom = [{
  2447. // type: 'inside',
  2448. // start: 0,
  2449. // end: 100
  2450. // },
  2451. // {
  2452. // start: 0,
  2453. // end: 100
  2454. // }
  2455. // ]
  2456. if (this.type_head == 1) {
  2457. } else {
  2458. //timelist.push(i)
  2459. }
  2460. // 使用刚指定的配置项和数据显示图表。
  2461. this.myChart.setOption(option);
  2462. console.log(option)
  2463. }
  2464. }
  2465. }
  2466. </script>
  2467. <style>
  2468. page {
  2469. /* background: url(@/assets/img/index_header_bg.png) no-repeat top center #f7f7f7;
  2470. background-size: 100%; */
  2471. }
  2472. </style>
  2473. <style lang="scss" scoped>
  2474. ::v-deep.u-drawer {
  2475. z-index: 99999999 !important;
  2476. }
  2477. .contentBodyName {
  2478. padding: 0 36rpx 12rpx 36rpx;
  2479. }
  2480. .contentBody {
  2481. color: #777777;
  2482. font-size: 28rpx;
  2483. display: flex;
  2484. justify-content: space-between;
  2485. flex-direction: row;
  2486. padding: 0 16rpx;
  2487. margin-bottom: 16rpx;
  2488. .body1 {
  2489. color: #333333;
  2490. margin-left: 20rpx;
  2491. }
  2492. .body2 {
  2493. display: flex;
  2494. .body2-0 {
  2495. width: 110rpx;
  2496. }
  2497. .body2-1 {
  2498. padding: 0 8rpx;
  2499. color: #00B962;
  2500. }
  2501. .body2-2 {
  2502. width: 120rpx;
  2503. }
  2504. }
  2505. .body3 {
  2506. padding: 0 8rpx;
  2507. color: #FF3D00;
  2508. }
  2509. }
  2510. .indexData5content {
  2511. padding: 40rpx 20rpx;
  2512. .contentTitle {
  2513. color: #333333;
  2514. font-size: 40rpx;
  2515. text-align: center;
  2516. font-weight: bold;
  2517. margin-bottom: 8px;
  2518. }
  2519. .contentItem {
  2520. border-bottom: 1px solid #ededed;
  2521. // margin: 16rpx;
  2522. // padding:12rpx;
  2523. img,
  2524. svg {
  2525. vertical-align: bottom;
  2526. height: 44rpx;
  2527. //margin-right: 8rpx;
  2528. }
  2529. .span1 {
  2530. text-align: left;
  2531. font-weight: bold;
  2532. font-size: 36rpx;
  2533. width: 310rpx;
  2534. overflow: hidden;
  2535. text-overflow: ellipsis;
  2536. white-space: nowrap;
  2537. }
  2538. .color777 {
  2539. color: #777777;
  2540. }
  2541. .color333 {
  2542. color: #333333;
  2543. }
  2544. .span2 {
  2545. border-right: 1px solid #ededed;
  2546. width: 120rpx;
  2547. padding: 0 8rpx;
  2548. span {
  2549. padding: 0 8rpx;
  2550. }
  2551. }
  2552. .span3 {
  2553. padding: 0 0 0 12rpx;
  2554. span {
  2555. padding: 0 8rpx;
  2556. }
  2557. width: 154rpx;
  2558. .bot1span {
  2559. color: #00B962;
  2560. }
  2561. .bot2span {
  2562. color: #AAAAAA;
  2563. }
  2564. .bot3span {
  2565. color: #FF3D00;
  2566. }
  2567. }
  2568. }
  2569. }
  2570. .indexData4content {
  2571. padding: 40rpx 20rpx;
  2572. .contentTitle {
  2573. color: #333333;
  2574. font-size: 40rpx;
  2575. text-align: center;
  2576. font-weight: bold;
  2577. margin-bottom: 8px;
  2578. }
  2579. .contentItem {
  2580. border-bottom: 1px solid #ededed;
  2581. justify-content: space-between;
  2582. flex-direction: row;
  2583. margin: 16rpx;
  2584. padding: 12rpx;
  2585. .span1 {
  2586. img {
  2587. vertical-align: bottom;
  2588. height: 44rpx;
  2589. margin-right: 8rpx;
  2590. }
  2591. font-weight: bold;
  2592. font-size: 36rpx;
  2593. width: 400rpx;
  2594. overflow: hidden;
  2595. text-overflow: ellipsis;
  2596. white-space: nowrap;
  2597. }
  2598. .color777 {
  2599. color: #777777;
  2600. }
  2601. .color333 {
  2602. color: #333333;
  2603. }
  2604. .span2 {
  2605. border-right: 1px solid #ededed;
  2606. width: 120rpx;
  2607. padding: 0 16rpx;
  2608. span {
  2609. padding: 0 8rpx;
  2610. }
  2611. }
  2612. .span3 {
  2613. padding: 0 0 0 16rpx;
  2614. span {
  2615. padding: 0 8rpx;
  2616. }
  2617. width: 154rpx;
  2618. color: #333;
  2619. .bot1span {
  2620. color: #00B962;
  2621. }
  2622. .bot2span {
  2623. color: #AAAAAA;
  2624. }
  2625. .bot3span {
  2626. color: #FF3D00;
  2627. }
  2628. }
  2629. }
  2630. .u-collapse-bot0span {
  2631. .contentItem {
  2632. display: flex;
  2633. }
  2634. }
  2635. .u-collapse-bot3span {
  2636. .contentItem {
  2637. margin: 0;
  2638. padding: 0;
  2639. .span1 {
  2640. width: 310rpx;
  2641. }
  2642. }
  2643. }
  2644. }
  2645. .chargingpile {
  2646. img {
  2647. vertical-align: bottom;
  2648. height: 44rpx;
  2649. margin-right: 8rpx;
  2650. }
  2651. p {
  2652. color: #185AC6;
  2653. font-size: 36rpx;
  2654. font-weight: bold;
  2655. span {
  2656. color: #777777;
  2657. margin-left: 8rpx;
  2658. font-size: 32rpx;
  2659. font-weight: normal;
  2660. }
  2661. }
  2662. .detailstablepile {
  2663. .details-row-main {
  2664. border-bottom: 1px solid #ededed;
  2665. padding: 10px 0;
  2666. }
  2667. span {
  2668. margin: 0 8rpx;
  2669. }
  2670. .bot {
  2671. display: inline-block;
  2672. width: 24rpx;
  2673. height: 24rpx;
  2674. margin-left: 4rpx;
  2675. border-radius: 999px;
  2676. }
  2677. .bot1 {
  2678. background-color: #00B962;
  2679. }
  2680. .bot2 {
  2681. //margin-left: 16rpx;
  2682. background-color: #AAAAAA;
  2683. }
  2684. .bot3 {
  2685. //margin-left: 16rpx;
  2686. background-color: #FF3D00;
  2687. }
  2688. .bot1span {
  2689. color: #00B962;
  2690. }
  2691. .bot2span {
  2692. color: #AAAAAA;
  2693. }
  2694. .bot3span {
  2695. color: #FF3D00;
  2696. }
  2697. .detailsline {
  2698. border-bottom: 1px solid #ededed;
  2699. }
  2700. .detailsline,
  2701. .detailsline—bottom {
  2702. display: flex;
  2703. .details-row {
  2704. width: 33%;
  2705. // display: flex;
  2706. // justify-content: space-between;
  2707. // flex-direction: column;
  2708. padding-left: 16rpx;
  2709. margin-bottom: 16rpx;
  2710. margin-top: 16rpx;
  2711. .span1 {
  2712. color: rgba(136, 136, 136, 100);
  2713. font-size: 28rpx;
  2714. width: 100%;
  2715. color: #333333;
  2716. }
  2717. }
  2718. }
  2719. .details-row-1 {
  2720. width: 47%;
  2721. padding-left: 0px !important;
  2722. //border-right: 1px solid #ededed;
  2723. }
  2724. }
  2725. }
  2726. .viewgun {
  2727. position: relative;
  2728. top: 200px;
  2729. text-align: center;
  2730. .viewspan {
  2731. width: 30%;
  2732. margin-left: 16rpx;
  2733. display: inline;
  2734. }
  2735. }
  2736. .headbottonMain {
  2737. ::v-deep.u-btn--info {
  2738. color: #19be6b;
  2739. }
  2740. }
  2741. .headbotton {
  2742. border: 1px solid #19be6b;
  2743. }
  2744. .headbotton1:after {
  2745. border-radius: 15px 0 0 15px;
  2746. }
  2747. .headbotton2{
  2748. border-left:0px ;
  2749. border-right: 0px;
  2750. }
  2751. .headbotton2:after {
  2752. border-radius: 0;
  2753. }
  2754. .headbotton3:after {
  2755. border-radius: 0 15px 15px 0;
  2756. }
  2757. .detailstable {
  2758. padding: 30rpx 30rpx !important;
  2759. }
  2760. .detailstableHead {
  2761. .span1 {
  2762. font-size: 32rpx !important;
  2763. }
  2764. .details-row-head-1 {}
  2765. .details-row-head-2 {}
  2766. .details-row-head-3 {
  2767. width: 30% !important;
  2768. max-width: 150rpx;
  2769. .span {}
  2770. }
  2771. .span2 {
  2772. font-size: 44rpx !important;
  2773. font-weight: bold;
  2774. width: 100%;
  2775. color: #101010;
  2776. span {
  2777. font-size: 24rpx !important;
  2778. }
  2779. }
  2780. }
  2781. .detailslineHead {
  2782. border-top: 1px solid #ededed;
  2783. ;
  2784. .details-row {
  2785. padding-left: 8rpx !important;
  2786. }
  2787. font-size: 30rpx !important;
  2788. .span1 span {
  2789. font-size: 28rpx;
  2790. }
  2791. }
  2792. .detailstable,
  2793. .detailstableHead {
  2794. font-size: 16px;
  2795. p {
  2796. font-size: 14px;
  2797. }
  2798. .details-row-main {
  2799. border-bottom: 1px solid #ededed;
  2800. padding: 10px 0;
  2801. }
  2802. .detailsline {
  2803. border-bottom: 1px solid #ededed;
  2804. }
  2805. .detailsline,
  2806. .detailsline—bottom {
  2807. display: flex;
  2808. .details-row {
  2809. width: 50%;
  2810. display: flex;
  2811. justify-content: space-between;
  2812. flex-direction: column;
  2813. padding-left: 16rpx;
  2814. margin-bottom: 20rpx;
  2815. .span1 {
  2816. color: rgba(136, 136, 136, 100);
  2817. font-size: 28rpx;
  2818. width: 100%;
  2819. }
  2820. .span2 {
  2821. font-size: 36rpx;
  2822. width: 100%;
  2823. color: #101010;
  2824. span {
  2825. font-size: 24rpx;
  2826. }
  2827. }
  2828. }
  2829. }
  2830. .details-row-1 {
  2831. width: 47%;
  2832. padding-left: 0px !important;
  2833. border-right: 1px solid #ededed;
  2834. }
  2835. }
  2836. .details {
  2837. padding: 32rpx;
  2838. background-color: #fff;
  2839. border-radius: 8px;
  2840. }
  2841. .details-title {
  2842. margin-bottom: 16px;
  2843. h4 {
  2844. font-weight: normal;
  2845. font-size: 16px;
  2846. position: relative;
  2847. padding-left: 10px;
  2848. &::after {
  2849. content: '';
  2850. position: absolute;
  2851. height: 12px;
  2852. width: 4px;
  2853. background-color: #27B148;
  2854. left: 0;
  2855. top: 5px;
  2856. }
  2857. }
  2858. }
  2859. .details-row {
  2860. display: flex;
  2861. justify-content: space-between;
  2862. align-items: center;
  2863. margin-top: 30rpx;
  2864. p {
  2865. color: #37393c;
  2866. font-weight: bold;
  2867. }
  2868. }
  2869. .details-row3 {
  2870. margin: 16rpx 0;
  2871. .item {
  2872. margin: 16rpx 0;
  2873. }
  2874. }
  2875. .details-row2 {
  2876. display: flex;
  2877. justify-content: space-between;
  2878. align-items: center;
  2879. // margin-top: 15px;
  2880. p {
  2881. // color: #37393c;
  2882. // font-weight: bold;
  2883. }
  2884. }
  2885. .popup-screen {
  2886. padding: 40rpx;
  2887. position: relative;
  2888. .screen {
  2889. padding-bottom: 30px;
  2890. }
  2891. .screen-item {
  2892. margin-bottom: 40rpx;
  2893. .screen-head {
  2894. margin-bottom: 8px;
  2895. font-size: 16px;
  2896. }
  2897. .screen-main {
  2898. display: flex;
  2899. // display: -webkit-box;
  2900. flex-wrap: wrap;
  2901. }
  2902. .screen-entry {
  2903. width: 29%;
  2904. padding: 6px 0;
  2905. display: flex;
  2906. align-items: center;
  2907. justify-content: center;
  2908. background-color: #F2F5FA;
  2909. text-align: center;
  2910. margin-bottom: 10px;
  2911. border-radius: 3px;
  2912. margin-right: 6px;
  2913. }
  2914. .screen-entry.active {
  2915. background-color: #185AC6;
  2916. color: #fff;
  2917. }
  2918. }
  2919. .screen-foot {
  2920. position: fixed;
  2921. left: 0;
  2922. right: 0;
  2923. bottom: 0;
  2924. display: flex;
  2925. height: 50px;
  2926. border-top: 1px solid #ededed;
  2927. .screen-btn-l {
  2928. background-color: #fff;
  2929. flex: 0.2;
  2930. text-align: center;
  2931. line-height: 50px;
  2932. }
  2933. .screen-btn-r {
  2934. flex: 0.8;
  2935. text-align: center;
  2936. line-height: 50px;
  2937. background-color: #185AC6;
  2938. color: #fff;
  2939. }
  2940. }
  2941. }
  2942. .navbar-tit {
  2943. display: flex;
  2944. align-items: center;
  2945. justify-content: space-between;
  2946. color: #fff;
  2947. line-height: 40rpx;
  2948. padding: 24rpx;
  2949. position: fixed;
  2950. // border-bottom: 1px solid #fff;
  2951. left: 0;
  2952. right: 0;
  2953. top: 0;
  2954. z-index: 99999991;
  2955. background-color: #00b962;
  2956. .navbar-tit1 {
  2957. font-weight: bold;
  2958. font-size: 40rpx;
  2959. display: flex;
  2960. }
  2961. .navbar-tit2 {
  2962. font-size: 36rpx;
  2963. }
  2964. }
  2965. .navbar-tit-box {
  2966. box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  2967. }
  2968. .statisticsData {
  2969. background-color: #fff;
  2970. margin: 0px 24rpx 24rpx;
  2971. //padding:0px 24rpx 24rpx;
  2972. border-radius: 8px;
  2973. }
  2974. .statisticsDataMain {
  2975. flex-wrap: wrap;
  2976. display: flex;
  2977. }
  2978. .statisticsData-item {
  2979. flex: 1;
  2980. width: 40%;
  2981. .statisticsData-head {
  2982. display: flex;
  2983. align-items: center;
  2984. p {
  2985. color: #637AA2;
  2986. font-size: 12px;
  2987. }
  2988. }
  2989. .statisticsData-main {
  2990. margin-top: 4px;
  2991. font-size: 18px;
  2992. }
  2993. .statisticsData-foot {
  2994. display: flex;
  2995. align-items: center;
  2996. margin-top: 16px;
  2997. p {
  2998. color: #637AA2;
  2999. }
  3000. h4 {
  3001. margin-left: 8px;
  3002. }
  3003. }
  3004. }
  3005. .statisticsChart {
  3006. margin: 32rpx;
  3007. .statisticsChart-head {
  3008. margin-bottom: 10rpx;
  3009. display: flex;
  3010. justify-content: space-between;
  3011. align-items: center;
  3012. h4 {
  3013. font-weight: normal;
  3014. font-size: 16px;
  3015. position: relative;
  3016. padding-left: 10px;
  3017. &::after {
  3018. content: '';
  3019. position: absolute;
  3020. height: 12px;
  3021. width: 4px;
  3022. background-color: #4E8DF6;
  3023. left: 0;
  3024. top: 5px;
  3025. }
  3026. }
  3027. .h4-1 {
  3028. display: flex;
  3029. align-items: center;
  3030. padding-left: 0;
  3031. color: rgba(16, 16, 16, 1);
  3032. img {
  3033. margin-right: 8rpx;
  3034. }
  3035. &::after {
  3036. content: none;
  3037. }
  3038. }
  3039. .statisticsChart-time {
  3040. display: flex;
  3041. align-items: center;
  3042. p {
  3043. color: #666;
  3044. }
  3045. }
  3046. }
  3047. .statisticsChart-main {
  3048. background-color: #fff;
  3049. padding: 10px 16px 16px 16px;
  3050. border-radius: 8px;
  3051. }
  3052. }
  3053. .top-cover {
  3054. // height: 470px;
  3055. // margin-bottom: 70px;
  3056. background: linear-gradient(179.94deg, rgba(0, 185, 98, 1) 71.55%, rgba(0, 196, 104, 0) 99.35%);
  3057. .income {
  3058. padding: 44rpx 32rpx 24rpx 32rpx;
  3059. color: rgba(255, 255, 255, 1);
  3060. .today-queryHeadTime {
  3061. text-align: center;
  3062. //font-size: 12px;
  3063. }
  3064. .today-income {
  3065. margin-top: 4rpx;
  3066. text-align: center;
  3067. .number {
  3068. font-weight: bold;
  3069. font-size: 36px;
  3070. text {
  3071. margin-left: 8rpx;
  3072. }
  3073. }
  3074. .text {
  3075. font-size: 16px;
  3076. }
  3077. }
  3078. .else {
  3079. margin-top: 32rpx;
  3080. display: flex;
  3081. justify-content: space-between;
  3082. .item {
  3083. text-align: center;
  3084. .item-number {
  3085. font-weight: bold;
  3086. font-size: 48rpx;
  3087. margin-bottom: 8rpx;
  3088. }
  3089. }
  3090. }
  3091. }
  3092. }
  3093. </style>