index.vue 78 KB

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