home.vue 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126
  1. <template>
  2. <div class="mod-home">
  3. <!-- <p class="strong">严正声明:</p>
  4. <p class="content">亚米商城专业版并非一个开源软件,作者保留全部的权利。 擅自窃用,即属严重侵权行为,与盗窃无异。产生的一切任何后果责任由侵权者自负。
  5. 擅自窃用,必将追究法律责任!!!</p> -->
  6. <div v-if="shopStatusInfo.shopStatus !== null && shopStatusInfo.shopStatus !== 1" class="shop-inf-imperfect-tips">
  7. <div v-if="shopStatusInfo.shopStatus === 2">
  8. <div>
  9. <i class="el-icon-warning" />
  10. {{$t("shopProcess.yourStoreIsOfflineBecauseOf")}}
  11. <span>{{ shopStatusInfo.offlineReason }}</span>
  12. ,{{$t("shopProcess.onlineShopTips")}}
  13. </div>
  14. </div>
  15. <div v-if="shopStatusInfo.shopStatus === 0">
  16. <div>
  17. <i class="el-icon-error" />
  18. {{$t("shopProcess.shopStopReason")}}
  19. <span>{{ shopStatusInfo.closedReason }}</span>
  20. ,{{$t("shopProcess.shopStopTips")}}
  21. </div>
  22. </div>
  23. <div v-if="shopStatusInfo.shopStatus === 5 || shopStatusInfo.shopStatus === 3">
  24. <div>
  25. <i class="el-icon-warning" />
  26. {{$t("shopProcess.applyingOnline")}},
  27. <span>{{$t("shopProcess.shopIsUnderReview")}}</span>
  28. </div>
  29. </div>
  30. </div>
  31. <!-- 数据 -->
  32. <div v-if="employeeType === 0">
  33. <!-- 订单商品栏 -->
  34. <div class="order-all-num">
  35. <el-row type="flex" class="row-bg">
  36. <el-col :span="15" class="col-box">
  37. <div class="num-item-box">
  38. <div class="wait-payment-num order-num-item" @click="toOrderPage(1)">
  39. <div class="item-box">
  40. <div class="words">{{ $t("home.pendingOrders") }}</div>
  41. <div class="number">{{isTrueData(orderStateCount.unPay)}}</div>
  42. <!-- <div :class="['seq',nowDate?'up':'down']">
  43. <span class="value">1.3%</span>
  44. <span :class="nowDate?'up-icon':'down-icon'"></span>
  45. <span class="compare grap">同比昨日上升{{$t("home.payCustomers")}}</span>
  46. </div> -->
  47. </div>
  48. <div class="item-img">
  49. <img src="~@/assets/img/home/pendingPayment.png" >
  50. </div>
  51. </div>
  52. </div>
  53. <div class="num-item-box">
  54. <div class="wait-delivery-num order-num-item" @click="toOrderPage(2)">
  55. <div class="item-box">
  56. <div class="words">{{ $t("chat.pendingDelivery") }}</div>
  57. <div class="number">{{isTrueData(orderStateCount.payed)}}</div>
  58. <!-- <div :class="['seq',nowDate?'up':'down']">
  59. <span class="value">1.3%</span>
  60. <span :class="nowDate?'up-icon':'down-icon'"></span>
  61. <span class="compare grap">同比昨日上升{{$t("home.payCustomers")}}</span>
  62. </div> -->
  63. </div>
  64. <div class="item-img">
  65. <img src="~@/assets/img/home/pendingDelivery.png" >
  66. </div>
  67. </div>
  68. </div>
  69. <div class="num-item-box">
  70. <div class="wait-receiving-goods-num order-num-item" @click="toOrderPage(3)">
  71. <div class="item-box">
  72. <div class="words">{{$t("chat.pendingReceipt")}}</div>
  73. <div class="number">{{isTrueData(orderStateCount.consignment)}}</div>
  74. <!-- <div :class="['seq',nowDate?'up':'down']">
  75. <span class="value">1.3%</span>
  76. <span :class="nowDate?'up-icon':'down-icon'"></span>
  77. <span class="compare grap">同比昨日上升{{$t("home.payCustomers")}}</span>
  78. </div> -->
  79. </div>
  80. <div class="item-img">
  81. <img src="~@/assets/img/home/afterSale.png" >
  82. </div>
  83. </div>
  84. </div>
  85. </el-col>
  86. <el-col :span="9" class="col-box">
  87. <div class="num-item-box">
  88. <div class="wait-evaluate-num order-num-item" @click="toOrderPage(5)">
  89. <div class="item-box">
  90. <div class="words">{{$t("chat.completed")}}</div>
  91. <div class="number">{{isTrueData(orderStateCount.success)}}</div>
  92. <!-- <div :class="['seq',nowDate?'up':'down']">
  93. <span class="value">1.3%</span>
  94. <span :class="nowDate?'up-icon':'down-icon'"></span>
  95. <span class="compare grap">同比昨日上升{{$t("home.payCustomers")}}</span>
  96. </div> -->
  97. </div>
  98. <div class="item-img">
  99. <img src="~@/assets/img/home/pendingReview.png" >
  100. </div>
  101. </div>
  102. </div>
  103. <div class="num-item-box">
  104. <div class="wait-after-sales-num order-num-item" @click="toRefundOrderPage(1)">
  105. <div class="item-box">
  106. <div class="words">{{$t("order.reimburse")}}/{{$t("order.afterSale")}}</div>
  107. <div class="number">{{isTrueData(orderStateCount.refund)}}</div>
  108. <!-- <div :class="['seq',nowDate?'up':'down']">
  109. <span class="value">1.3%</span>
  110. <span :class="nowDate?'up-icon':'down-icon'"></span>
  111. <span class="compare grap">同比昨日上升{{$t("home.payCustomers")}}</span>
  112. </div> -->
  113. </div>
  114. <div class="item-img">
  115. <img src="~@/assets/img/home/totalOrderAmount.png" >
  116. </div>
  117. </div>
  118. </div>
  119. </el-col>
  120. </el-row>
  121. </div>
  122. <!-- 实时概况板块 -->
  123. <div class="realtime-situation">
  124. <!-- 实时概况 -->
  125. <div class="realtime">
  126. <el-row type="flex" class="row-bg">
  127. <el-col :span="15" class="col-item">
  128. <div class="realtime-left">
  129. <div class="title">
  130. <div class="t-title">{{$t("home.realTimeData")}}</div>
  131. <span class="title-time"
  132. >{{ $t("home.updateTime") }}:{{ this.nowDate }} <span style="marginLeft:5px">{{this.nowTime}}</span></span>
  133. <div class="t-explain-item t-explain-first-item t-small-text t-today-data">{{$t("home.dataTodayActualTotal")}}</div>
  134. <div class="t-explain-item t-explain-second-item t-small-text t-yesterday-data">{{$t("home.dataYesterdayActualTotal")}}</div>
  135. </div>
  136. <!-- 图表 -->
  137. <div class="realtime-chart-box">
  138. <div
  139. id="real-time-data-chart"
  140. style="width: 100%; height: 250px"
  141. ></div>
  142. </div>
  143. <!-- /图表 -->
  144. </div>
  145. </el-col>
  146. <el-col :span="9">
  147. <!-- 数据统计 -->
  148. <div class="realtime-right">
  149. <div class="realtime-right-title">
  150. {{$t("home.statistics")}}
  151. </div>
  152. <!-- 内容 -->
  153. <div class="realtime-right-box">
  154. <div class="realtime-right-box-left">
  155. <div class="payCustomers order-num-item">
  156. <div class="item-img">
  157. <img src="~@/assets/img/home/payCustomers.png" >
  158. </div>
  159. <div class="item-box">
  160. <div class="words">{{$t("home.payCustomers")}}</div>
  161. <div class="number">{{ isTrueData(this.dataInfo.payUserCount) }}</div>
  162. <div class="seq">
  163. <span class="value">{{this.dataInfo.yesterdayPayOrderRate>=0?'+':''}}{{ isTrueData(this.dataInfo.yesterdayPayOrderRate) | dataFormat }}%</span>
  164. <span class="compare grap">{{$t("home.sameAsYesterday")}}</span>
  165. </div>
  166. </div>
  167. </div>
  168. <div class="payCount order-num-item">
  169. <div class="item-img">
  170. <img src="~@/assets/img/home/payCount.png" >
  171. </div>
  172. <div class="item-box">
  173. <div class="words">{{$t("home.payCount")}}</div>
  174. <div class="number">{{ isTrueData(this.dataInfo.payOrderCount) }}</div>
  175. <div class="seq">
  176. <span class="value">{{this.dataInfo.yesterdayPayUserRate>=0?'+':''}}{{ isTrueData(this.dataInfo.yesterdayPayUserRate) | dataFormat }}%</span>
  177. <span class="compare grap">{{$t("home.sameAsYesterday")}}</span>
  178. </div>
  179. </div>
  180. </div>
  181. </div>
  182. <div class="realtime-right-box-right">
  183. <div class="refundAmount order-num-item">
  184. <div class="item-img">
  185. <img src="~@/assets/img/home/refundAmount.png" >
  186. </div>
  187. <div class="item-box">
  188. <div class="words">{{$t("order.refundAmount")}}{{$t("live.yuan")}}</div>
  189. <div class="number">{{ isTrueData(this.dataInfo.refund) }}</div>
  190. <div class="seq">
  191. <span class="value">{{this.dataInfo.yesterdayRefundRate>=0?'+':''}}{{ isTrueData(this.dataInfo.yesterdayRefundRate) | dataFormat }}%</span>
  192. <span class="compare grap">{{$t("home.sameAsYesterday")}}</span>
  193. </div>
  194. </div>
  195. </div>
  196. <div class="pendingReview order-num-item">
  197. <div class="item-img">
  198. <img src="~@/assets/img/home/customerPrice.png" >
  199. </div>
  200. <div class="item-box">
  201. <div class="words">{{$t("home.customerPrice")}}{{$t("live.yuan")}}</div>
  202. <div class="number">{{ isTrueData(this.dataInfo.onePrice) }}</div>
  203. <div class="seq">
  204. <span class="value">{{this.dataInfo.yesterdayOnePriceRate>=0?'+':''}}{{ isTrueData(this.dataInfo.yesterdayOnePriceRate) | dataFormat }}%</span>
  205. <span class="compare grap">{{$t("home.sameAsYesterday")}}</span>
  206. </div>
  207. </div>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <!-- /数据统计 -->
  213. </el-col>
  214. </el-row>
  215. </div>
  216. </div>
  217. <!-- /实时概况板块 End -->
  218. <!-- 整体看板 -->
  219. <div class="whole-plate">
  220. <div class="related-income">
  221. <div class="title">
  222. <div class="t-title">{{ $t("home.displays") }}</div>
  223. <span class="title-time"
  224. >{{ $t("home.updateTime") }}:{{ this.nowDate }} <span style="marginLeft:5px">{{this.nowTime}}</span></span>
  225. <div class="t-explain-item t-explain-first-item t-small-text t-today-data">{{$t("home.businessPay")}}</div>
  226. </div>
  227. <div class="money">
  228. <!-- 当天支付金额 -->
  229. <div class="related-income-item">
  230. <p class="item-tit">{{ $t("home.dayAmount") }}</p>
  231. <p class="item-num">
  232. <span class="item-num-price">{{
  233. this.dataInfo.payActualTotal
  234. }}</span>
  235. </p>
  236. </div>
  237. <!-- 本月完成金额 -->
  238. <div class="related-income-item">
  239. <p class="item-tit">{{ $t("home.monthAmount") }}</p>
  240. <p class="item-num">
  241. <span class="item-num-price">{{ this.sumPayActualTotal }}</span>
  242. </p>
  243. </div>
  244. </div>
  245. </div>
  246. <!-- 图表 -->
  247. <div
  248. class="integral-plate"
  249. ref="entirety"
  250. id="entirety-data-chart"
  251. style="width: 100%; height: 300px;"
  252. ></div>
  253. <!-- /图表 -->
  254. </div>
  255. <!-- /整体看板 End -->
  256. <!-- 退款看板 -->
  257. <div class="refund-plate">
  258. <div class="ranking-box">
  259. <div class="ranking-left">
  260. <div class="ranking-title">{{ $t("home.refundReasonRank") }}</div>
  261. <div v-if="refundRankForCause.length">
  262. <table class="table" cellpadding="0" cellspacing="0">
  263. <tr class="table-tit gray">
  264. <td class="table-tit-item ranks padLeft">{{ $t("home.rank") }}</td>
  265. <td class="table-tit-item prods">{{ $t("home.reason") }}</td>
  266. <td class="table-tit-item refs">{{ $t("home.refundAmount") }}</td>
  267. <td class="table-tit-item prop">{{ $t("home.moneyRatio") }}</td>
  268. </tr>
  269. <tr
  270. v-for="(item, index) in refundRankForCause"
  271. :key="index"
  272. class="table-tit"
  273. >
  274. <td class="padLeft">{{ item[0] }}</td>
  275. <td>{{ item[1] }}</td>
  276. <td>{{ item[3] }}</td>
  277. <td>{{ item[4] }}%</td>
  278. </tr>
  279. </table>
  280. </div>
  281. <div v-else style="height:90%">
  282. <table class="table" cellpadding="0" cellspacing="0">
  283. <tr class="table-tit gray">
  284. <td class="table-tit-item ranks padLeft">{{ $t("home.rank") }}</td>
  285. <td class="table-tit-item prods">{{ $t("home.reason") }}</td>
  286. <td class="table-tit-item refs">{{ $t("home.refundAmount") }}</td>
  287. <td class="table-tit-item prop">{{ $t("home.moneyRatio") }}</td>
  288. </tr>
  289. </table>
  290. <div class="sign-noData">暂无数据</div>
  291. </div>
  292. </div>
  293. <!-- 退款率 -->
  294. <div class="refund-rate-box">
  295. <div class="refund-chart-msg">
  296. <div class="msg-tit-txt">
  297. <p class="msg-tit">{{ $t("home.refundRateToday") }}</p>
  298. </div>
  299. <!--
  300. <div class="msg-txt-p">
  301. <p class="compare">
  302. <span class="compare-left">较前一日</span>
  303. <span class="compare-right">0.00%-</span>
  304. </p>
  305. <p class="compare">
  306. <span class="compare-left">较上周同期
  307. </span>
  308. <span class="compare-right">0.00%-</span>
  309. </p>
  310. </div>
  311. -->
  312. </div>
  313. <!-- 图表 -->
  314. <div
  315. class="refund-chart"
  316. id="refPer-chart"
  317. style="width: 100%; height: 450px"
  318. ></div>
  319. <!--/ 图表 -->
  320. </div>
  321. </div>
  322. <!-- 下 -->
  323. <div class="refund-chart-box">
  324. <div class="ranking-right">
  325. <div class="ranking-title">{{ $t("home.refundProRank") }}</div>
  326. <div v-if="refundRankForActualTotal.length">
  327. <table class="table table-con">
  328. <tr class="table-tit gray">
  329. <td class="table-tit-item rank padLeft">{{ $t("home.rank") }}</td>
  330. <td class="table-tit-item prod">{{ $t("home.product") }}</td>
  331. <td class="table-tit-item ref" style="textAlign:right">{{ $t("home.refundAmount") }}</td>
  332. </tr>
  333. <tr v-for="(item, index) in refundRankForActualTotal" :key="index">
  334. <td class="padLeft">{{ item[0] }}</td>
  335. <td class="line-clamp-one">{{ item[1] }}</td>
  336. <td style="textAlign:right">{{ item[2] }}</td>
  337. </tr>
  338. </table>
  339. </div>
  340. <div v-else style="height:90%">
  341. <table class="table table-con">
  342. <tr class="table-tit gray">
  343. <td class="table-tit-item rank padLeft">{{ $t("home.rank") }}</td>
  344. <td class="table-tit-item prod">{{ $t("home.product") }}</td>
  345. <td class="table-tit-item ref" style="textAlign:right">{{ $t("home.refundAmount") }}</td>
  346. </tr>
  347. </table>
  348. <div class="sign-noData">暂无数据</div>
  349. </div>
  350. </div>
  351. <!-- 成功退款金额(元) -->
  352. <div class="successed-refund">
  353. <div class="refund-chart-msg">
  354. <div class="msg-tit-txt">
  355. <p class="msg-tit">{{ $t("home.successfulRefundAmountToday") }}</p>
  356. </div>
  357. <!--
  358. <div class="msg-txt-p">
  359. <p class="compare">
  360. <span class="compare-left">较前一日</span>
  361. <span class="compare-right">0.00%-</span>
  362. </p>
  363. <p class="compare">
  364. <span class="compare-left">较上周同期
  365. </span>
  366. <span class="compare-right">0.00%-</span>
  367. </p>
  368. </div>
  369. -->
  370. </div>
  371. <!-- 图表 -->
  372. <div
  373. class="refund-chart"
  374. id="ref-chart"
  375. style="width: 100%; height: 450px"
  376. ></div>
  377. <!--/ 图表 -->
  378. </div>
  379. </div>
  380. </div>
  381. </div>
  382. <div v-else>
  383. <h1 style="text-align: center; font-size: 100px">{{$store.state.user.shopName}}</h1>
  384. </div>
  385. <!-- /退款看板 -->
  386. </div>
  387. </template>
  388. <script>
  389. import Big from 'big.js'
  390. let elementResizeDetectorMaker = require('element-resize-detector')
  391. export default {
  392. filters: {
  393. dataFormat (value) {
  394. return (value * 100).toFixed(2).valueOf()
  395. },
  396. conversionActual (val) {
  397. // 精度运算-除法
  398. if (val == null) {
  399. return ''
  400. }
  401. return new Big(val).div(100).toFixed(2).valueOf()
  402. }
  403. },
  404. data () {
  405. return {
  406. employeeType: this.$store.state.user.employeeType,
  407. value: [0, 1],
  408. sumPayActualTotal: 0.00,
  409. dataForm: {},
  410. realTimeDataXAxis: ['0:00', '1:00', '2:00', '3:00', '4:00', '5:00', '6:00', '7:00', '8:00', '9:00', '10:00', '11:00', '12:00', '13:00', '14:00', '15:00', '16:00', '17:00', '18:00', '19:00', '20:00', '21:00', '22:00', '23:00'], // 实时数据的x轴数据
  411. payYesterdayActualTotal: [],
  412. dataArray: [],
  413. timeArray: [],
  414. dataInfo: {},
  415. rate: [],
  416. nowDate: null,
  417. nowTime: null,
  418. refundRateInfo: [],
  419. refundRankForActualTotal: [],
  420. refundRankForCause: [],
  421. dataList: [],
  422. noticeData: {},
  423. orderStateCount: {},
  424. viewDialog: false,
  425. // echartsWidth: null,
  426. observer: null,
  427. firedNum: 0,
  428. recordOldValue: { // 记录下旧的宽高数据,避免重复触发回调函数
  429. width: '0',
  430. height: '0'
  431. },
  432. entiretyChat: null, // 整体看版
  433. refChart: null, // 成功退款金额
  434. refPerChart: null, // 退款率
  435. // 店铺状态信息
  436. shopStatusInfo: {
  437. accountStatus: 0, // 账号状态, 1:启用 0:禁用 -1:删除
  438. shopStatus: null, // 店铺状态 -1:已删除 0: 停业中 1:营业中 2:平台下线 3:待审核 4:店铺申请中 5:申请失败 6:上线申请中
  439. offlineStatus: 0, // 下线状态 1平台进行下线 2 重新申请,等待审核 3.审核通过 4 审核未通过
  440. offlineReason: '', // 下线原因
  441. contractStartTime: '', // 签约起始时间
  442. contractEndTime: '', // 签约终止时间
  443. closedReason: '' // 停业原因
  444. },
  445. employeeId:this.$store.state.user.employeeId
  446. }
  447. },
  448. created() {
  449. this.getAuditingInfo()
  450. },
  451. mounted () {
  452. let user = this.$store.state.user
  453. this.employeeType = user.employeeType
  454. if(this.employeeType === 0){
  455. this.getpayActualTotalByDay()
  456. this.getpayActualTotalByHour()
  457. this.getOrderRefundDayByTime()
  458. this.getOrderCount()
  459. this.getRefundInfo()
  460. this.getRefundRankingByProd()
  461. this.getRefundRankingByReason()
  462. this.getpayInfo()
  463. this.getRefSumEchartData()
  464. this.getRefPerEchartData()
  465. this.getAuditingInfo()
  466. this.getEntiretyDataChart()
  467. }
  468. let erd = elementResizeDetectorMaker()
  469. erd.listenTo(document.getElementById('entirety-data-chart'), this.resizeFunc)
  470. },
  471. updated () {
  472. // this.getpayInfo()
  473. },
  474. methods: {
  475. resizeFunc () {
  476. this.$nextTick(() => {
  477. // 使echarts尺寸重置
  478. this.entiretyChat.resize()
  479. this.refChart.resize()
  480. this.refPerChart.resize()
  481. })
  482. },
  483. /**
  484. * 获取店铺状态信息
  485. */
  486. getAuditingInfo () {
  487. this.$http({
  488. url: this.$http.adornUrl(`/shop/shopDetail/getStatusInfo`),
  489. method: 'get',
  490. params: this.$http.adornParams()
  491. }).then(({ data }) => {
  492. // 店铺状态shopStatus:-1:已删除 0: 停业中 1:营业中 2:平台下线 3:上线待审核 4:店铺申请中 5:开店待审核
  493. this.shopStatusInfo = data
  494. if (data.shopStatus === 0) {
  495. const now = new Date()
  496. const contractStartTime = new Date(Date.parse(data.contractStartTime))
  497. this.shopStatusInfo.closedReason = now < contractStartTime ? this.$i18n.t('shopProcess.theContractIsNotValid') : this.$i18n.t('shopProcess.validityPeriodOfTheContractHasExpired')
  498. }
  499. })
  500. },
  501. // 查看单个平台公告
  502. viewNoticeDetail (id) {
  503. this.noticeData.id = id || 0
  504. this.viewDialog = true
  505. this.$nextTick(() => {
  506. if (this.noticeData.id) {
  507. this.$http({
  508. url: this.$http.adornUrl('/shop/notice/info/' + this.noticeData.id),
  509. method: 'get',
  510. params: this.$http.adornParams()
  511. }).then(({ data }) => {
  512. this.noticeData = data
  513. })
  514. }
  515. })
  516. },
  517. // 同比昨日
  518. isTrueData (data) {
  519. if (data) {
  520. return data
  521. }
  522. return 0
  523. },
  524. // 查询店铺订单各状态数量
  525. getOrderCount () {
  526. this.$http({
  527. url: this.$http.adornUrl('/shop/statisticsOrder/orderCount'),
  528. method: 'get'
  529. }).then(({ data }) => {
  530. this.orderStateCount = data
  531. })
  532. },
  533. // 获取平台公告列表
  534. // getDataList () {
  535. // this.$http({
  536. // url: this.$http.adornUrl('/shop/notice/listPage'),
  537. // method: 'get',
  538. // params: this.$http.adornParams(Object.assign({
  539. // current: 1,
  540. // size: 6
  541. // }, this.searchForm))
  542. // }).then(({ data }) => {
  543. // this.dataList = data.records
  544. // if (data.records.length === 0) {
  545. // document.getElementById('notice').style.display = 'none'
  546. // }
  547. // })
  548. // },
  549. // 获取实时数据报表图
  550. getRealTimeDataChart () {
  551. var date = new Date()
  552. var seperator1 = '-'
  553. var year = date.getFullYear()
  554. var month = date.getMonth() + 1
  555. var strDate = date.getDate()
  556. var hours = date.getHours() // 获取当前小时数(0-23)
  557. var minutes = date.getMinutes() // 获取当前分钟数(0-59)
  558. var seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() // 获取当前秒数(0-59)
  559. if (month >= 1 && month <= 9) {
  560. month = '0' + month
  561. }
  562. if (strDate >= 0 && strDate <= 9) {
  563. strDate = '0' + strDate
  564. }
  565. this.nowDate = year + seperator1 + month + seperator1 + strDate
  566. this.nowTime = hours + ':' + minutes + ':' + seconds
  567. const myChart = this.$echarts.init(document.getElementById('real-time-data-chart'))
  568. const option = {
  569. tooltip: {
  570. trigger: 'axis',
  571. backgroundColor: '#fff',
  572. padding: 8,
  573. textStyle: { // 提示框浮层的文本样式。
  574. fontSize: '12px',
  575. fontWeight: 400,
  576. color: '#33333',
  577. opacity: 1
  578. },
  579. extraCssText: 'box-shadow:0px 1px 11px rgba(213, 220, 226, 0.73);',
  580. formatter: function (params) {
  581. // return arg.name +
  582. // // return '反弹率:' + arg[0].data + '%'
  583. // params数组可以了解一下,一条线和多条线都是数组
  584. var html = ''
  585. for (var i in params) {
  586. var param = params[i]
  587. // echarts日期格式化api
  588. var date = param.name
  589. html += `<span style="color: #999999">${param.seriesIndex === 0 ? date : ''}</span><br /><div style="margin-top:${param.seriesIndex === 0 ? '12px' : '0'};display: flex;align-items: center;"><i style="display: inline-block;width: 6px;height: 6px;background-color: ${param.seriesIndex === 0 ? '#0058FF' : '#21D59B'};margin-right: 9px;border-radius: 50%;"></i><span style=" display:inline-block;">${param.seriesName}:${param.value}</span></div>`
  590. }
  591. return html
  592. }
  593. },
  594. grid: {
  595. left: 20,
  596. right: 20,
  597. top: 55,
  598. bottom: '3%',
  599. containLabel: true
  600. },
  601. toolbox: {
  602. feature: {
  603. saveAsImage: {
  604. show: false
  605. }
  606. }
  607. },
  608. xAxis: {
  609. type: 'category',
  610. boundaryGap: false,
  611. symbol: 'none',
  612. data: this.realTimeDataXAxis,
  613. axisLine: {
  614. show: false
  615. },
  616. axisTick: {
  617. show: false
  618. }
  619. },
  620. yAxis: {
  621. type: 'value',
  622. axisLine: {
  623. show: false
  624. },
  625. splitLine: {
  626. show: true,
  627. lineStyle: {
  628. color: ['#E0E6F1'],
  629. width: 1,
  630. type: 'solid'
  631. }
  632. },
  633. axisTick: {
  634. show: false
  635. }
  636. },
  637. series: [
  638. {
  639. name: this.$i18n.t('home.dataTodayActualTotal'),
  640. symbol: 'none',
  641. type: 'line',
  642. smooth: true,
  643. itemStyle: {
  644. normal: {
  645. lineStyle: {
  646. color: '#1890FF'
  647. }
  648. }
  649. },
  650. areaStyle: {
  651. normal: {
  652. color: new this.$echarts.graphic.LinearGradient(
  653. 0, 0, 0, 1,
  654. [
  655. {offset: 0, color: 'rgba(0, 88, 255, 0.2)'},
  656. {offset: 1, color: 'rgba(255, 255, 255, 0)'}
  657. ]
  658. )
  659. }
  660. },
  661. data: this.dataForm.nowActualTotal
  662. },
  663. {
  664. name: this.$i18n.t('home.dataYesterdayActualTotal'),
  665. type: 'line',
  666. smooth: true,
  667. itemStyle: {
  668. normal: {
  669. lineStyle: {
  670. color: '#21D59B'
  671. }
  672. }
  673. },
  674. areaStyle: {
  675. color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  676. offset: 0,
  677. color: 'rgba(41, 203, 151, 0.2)'
  678. }, {
  679. offset: 1,
  680. color: 'rgba(255, 255, 255, 0)'
  681. }])
  682. },
  683. data: this.dataForm.payYesterdayActualTotal
  684. }
  685. ]
  686. }
  687. option && myChart.setOption(option)
  688. window.addEventListener('resize', () => {
  689. myChart.resize()
  690. })
  691. },
  692. // 获取整体看板柱状图
  693. getEntiretyDataChart () {
  694. this.entiretyChat = this.$echarts.init(document.getElementById('entirety-data-chart'))
  695. const option = {
  696. color: ['red'],
  697. tooltip: {
  698. trigger: 'axis',
  699. backgroundColor: '#fff',
  700. padding: 8,
  701. textStyle: { // 提示框浮层的文本样式。
  702. fontSize: '12px',
  703. fontWeight: 400,
  704. color: '#33333',
  705. opacity: 1
  706. },
  707. extraCssText: 'box-shadow:0px 1px 11px rgba(213, 220, 226, 0.73);width:180px;height:62px',
  708. formatter: function (params) {
  709. // return arg.name +
  710. // // return '反弹率:' + arg[0].data + '%'
  711. // params数组可以了解一下,一条线和多条线都是数组
  712. var html = ''
  713. for (var i in params) {
  714. var param = params[i]
  715. // echarts日期格式化api
  716. var date = param.name
  717. html += `<span style="color: #999999">${date}</span><br /><div style="margin-top: 12px;display: flex;align-items: center;"><i style="display: inline-block;width: 6px;height: 6px;background-color: #0058FF;margin-right: 9px;border-radius: 50%;"></i><span style=" display:inline-block;">${param.seriesName}:${param.data}</span></div>`
  718. }
  719. return html
  720. },
  721. axisPointer: {
  722. type: 'shadow'
  723. }
  724. },
  725. grid: {
  726. left: 20,
  727. right: 20,
  728. width: '95%',
  729. bottom: '3%',
  730. containLabel: true
  731. },
  732. xAxis: {
  733. type: 'category',
  734. axisLabel: {
  735. showMaxLabel: true
  736. },
  737. axisLine: {
  738. show: false
  739. },
  740. axisTick: {
  741. show: false
  742. },
  743. data: this.timeArray
  744. },
  745. yAxis: {
  746. type: 'value',
  747. splitLine: {
  748. show: true,
  749. lineStyle: {
  750. color: ['#E0E6F1'],
  751. width: 1,
  752. type: 'solid'
  753. }
  754. },
  755. axisLine: {
  756. show: false
  757. },
  758. axisTick: {
  759. show: false
  760. }
  761. },
  762. series: [
  763. {
  764. name: this.$i18n.t('home.transactionAmount'),
  765. type: 'bar',
  766. itemStyle: {
  767. normal: {
  768. color: '#e8f0ff',
  769. barBorderRadius: [15, 15, 0, 0]
  770. },
  771. emphasis: {
  772. color: '#1890FF'
  773. }
  774. },
  775. barWidth: 20,
  776. data: this.dataArray
  777. }
  778. ]
  779. }
  780. option && this.entiretyChat.setOption(option)
  781. window.addEventListener('resize', () => {
  782. this.entiretyChat.resize()
  783. })
  784. },
  785. getpayActualTotalByHour () {
  786. this.dataListLoading = true
  787. this.$http({
  788. url: this.$http.adornUrl('/shop/statisticsOrder/getActualTotalByHour'),
  789. method: 'get'
  790. }).then(({ data }) => {
  791. if (data) {
  792. this.dataForm = data
  793. this.getRealTimeDataChart()
  794. this.dataListLoading = false
  795. }
  796. })
  797. },
  798. getpayActualTotalByDay () {
  799. this.dataListLoading = true
  800. this.$http({
  801. url: this.$http.adornUrl('/shop/statisticsOrder/getActualTotalByDay'),
  802. method: 'get'
  803. }).then(({ data }) => {
  804. if (data) {
  805. this.dataArray = data
  806. this.dataListLoading = false
  807. this.dataForm = data
  808. this.timeArray = []
  809. this.dataArray = []
  810. for (var j = 0, len = this.dataForm.length; j < len; j++) {
  811. this.timeArray.push(this.dataForm[j].dates)
  812. this.dataArray.push(this.dataForm[j].payActualTotal)
  813. if (j === len - 1) {
  814. this.sumPayActualTotal = this.dataForm[j].onePrice
  815. }
  816. }
  817. this.getEntiretyDataChart()
  818. this.dataListLoading = false
  819. }
  820. })
  821. },
  822. getOrderRefundDayByTime () {
  823. this.dataListLoading = true
  824. this.$http({
  825. url: this.$http.adornUrl('/shop/statisticsOrder/getOrderRefundDayByTime'),
  826. method: 'get'
  827. }).then(({ data }) => {
  828. if (data) {
  829. this.dataForm = data
  830. this.timeArray = []
  831. this.dataArray = []
  832. for (var j = 0, len = this.dataForm.length; j < len; j++) {
  833. this.timeArray.push(this.dataForm[j].refundDateToString)
  834. this.dataArray.push(this.dataForm[j].payActualTotal)
  835. this.rate.push(this.dataForm[j].refundRate)
  836. }
  837. this.getRefSumEchartData()
  838. this.getRefPerEchartData()
  839. this.dataListLoading = false
  840. }
  841. })
  842. },
  843. getpayInfo () {
  844. this.$http({
  845. url: this.$http.adornUrl('/shop/statisticsOrder/orderPayByShopId'),
  846. method: 'get'
  847. }).then(({ data }) => {
  848. if (data) {
  849. this.dataInfo = data
  850. this.dataListLoading = false
  851. }
  852. })
  853. },
  854. getRefundInfo () {
  855. this.$http({
  856. url: this.$http.adornUrl('/shop/statisticsOrder/getOrderRefundByTime'),
  857. method: 'get'
  858. }).then(({ data }) => {
  859. if (data) {
  860. this.refundRateInfo = data
  861. this.dataListLoading = false
  862. }
  863. })
  864. },
  865. getRefundRankingByProd () {
  866. this.$http({
  867. url: this.$http.adornUrl('/shop/statisticsOrder/getRefundRankingByProd'),
  868. method: 'get',
  869. params: this.$http.adornParams(
  870. Object.assign({
  871. size: 5
  872. })
  873. )
  874. }).then(({ data }) => {
  875. if (data) {
  876. this.dataForm = data
  877. for (var j = 0, len = this.dataForm.length; j < len; j++) {
  878. var refund = []
  879. refund.push(j + 1)
  880. refund.push(this.dataForm[j].refundPordName)
  881. refund.push(this.dataForm[j].refundCount)
  882. this.refundRankForActualTotal.push(refund)
  883. }
  884. this.dataListLoading = false
  885. }
  886. })
  887. },
  888. getRefundRankingByReason () {
  889. this.$http({
  890. url: this.$http.adornUrl('/shop/statisticsOrder/getRefundRankingByReason'),
  891. method: 'get'
  892. }).then(({ data }) => {
  893. if (data) {
  894. this.dataForm = data
  895. for (var j = 0, len = this.dataForm.length; j < len; j++) {
  896. var refund = []
  897. refund.push(j + 1)
  898. refund.push(this.dataForm[j].buyerReason)
  899. refund.push(this.dataForm[j].refundCount)
  900. refund.push(this.dataForm[j].payActualTotal)
  901. refund.push(this.dataForm[j].refundRate)
  902. this.refundRankForCause.push(refund)
  903. }
  904. this.dataListLoading = false
  905. }
  906. })
  907. },
  908. getRefSumEchartData () {
  909. this.refChart = this.$echarts.init(document.getElementById('ref-chart'))
  910. // const option = {
  911. // tooltip: {
  912. // trigger: 'axis'
  913. // },
  914. // // legend: {
  915. // // data: ['成功退款金额(元)']
  916. // // },
  917. // xAxis: {
  918. // type: 'category',
  919. // boundaryGap: false,
  920. // data: this.timeArray
  921. // },
  922. // yAxis: {
  923. // type: 'value'
  924. // },
  925. // series: [
  926. // {
  927. // name: this.$i18n.t('home.refundAmount'),
  928. // type: 'line',
  929. // // stack: this.$i18n.t('home.amount'),
  930. // data: this.dataArray
  931. // }
  932. // ]
  933. // }
  934. const option = {
  935. tooltip: {
  936. trigger: 'axis',
  937. backgroundColor: '#fff',
  938. padding: 8,
  939. textStyle: { // 提示框浮层的文本样式。
  940. fontSize: '12px',
  941. fontWeight: 400,
  942. color: '#33333',
  943. opacity: 1
  944. },
  945. extraCssText: 'box-shadow:0px 1px 11px rgba(213, 220, 226, 0.73);width:180px;height:62px',
  946. formatter: function (params) {
  947. // return arg.name +
  948. // // return '反弹率:' + arg[0].data + '%'
  949. // params数组可以了解一下,一条线和多条线都是数组
  950. var html = ''
  951. for (var i in params) {
  952. var param = params[i]
  953. // echarts日期格式化api
  954. var date = param.name
  955. html += `<span style="color: #999999">${date}</span><br /><div style="margin-top: 12px;display: flex;align-items: center;"><i style="display: inline-block;width: 6px;height: 6px;background-color: #0058FF;margin-right: 9px;border-radius: 50%;"></i><span style=" display:inline-block;">${param.seriesName}:${param.data}</span></div>`
  956. }
  957. return html
  958. }
  959. },
  960. grid: {
  961. left: 20,
  962. right: 20,
  963. top: 55,
  964. width: '93%',
  965. bottom: '3%',
  966. containLabel: true
  967. },
  968. toolbox: {
  969. feature: {
  970. saveAsImage: {
  971. show: false
  972. }
  973. }
  974. },
  975. xAxis: {
  976. type: 'category',
  977. boundaryGap: false,
  978. data: this.timeArray,
  979. nameTextStyle: {
  980. color: 'red'
  981. },
  982. axisLine: {
  983. show: false
  984. },
  985. axisTick: {
  986. show: false
  987. }
  988. },
  989. yAxis: {
  990. type: 'value',
  991. splitLine: {
  992. show: true,
  993. lineStyle: {
  994. color: ['#E0E6F1'],
  995. width: 1,
  996. type: 'solid'
  997. }
  998. },
  999. axisLine: {
  1000. show: false
  1001. },
  1002. axisTick: {
  1003. show: false
  1004. }
  1005. },
  1006. series: [
  1007. {
  1008. name: this.$i18n.t('order.refundAmount'),
  1009. type: 'line',
  1010. smooth: true,
  1011. itemStyle: {
  1012. normal: {
  1013. lineStyle: {
  1014. color: '#29CB97'
  1015. }
  1016. }
  1017. },
  1018. areaStyle: {
  1019. color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1020. offset: 0,
  1021. color: 'rgba(41, 203, 151, 0.2)'
  1022. }, {
  1023. offset: 1,
  1024. color: 'rgba(255, 255, 255, 0.11)'
  1025. }])
  1026. },
  1027. data: this.dataArray
  1028. }
  1029. ]
  1030. }
  1031. option && this.refChart.setOption(option)
  1032. window.addEventListener('resize', () => {
  1033. this.refChart.resize()
  1034. })
  1035. },
  1036. getRefPerEchartData () {
  1037. this.refPerChart = this.$echarts.init(document.getElementById('refPer-chart'))
  1038. const option = {
  1039. tooltip: {
  1040. trigger: 'axis',
  1041. backgroundColor: '#fff',
  1042. padding: 8,
  1043. textStyle: { // 提示框浮层的文本样式。
  1044. fontSize: '12px',
  1045. fontWeight: 400,
  1046. color: '#33333',
  1047. opacity: 1
  1048. },
  1049. extraCssText: 'box-shadow:0px 1px 11px rgba(213, 220, 226, 0.73);width:180px;height:62px',
  1050. formatter: function (params) {
  1051. // return arg.name +
  1052. // // return '反弹率:' + arg[0].data + '%'
  1053. // params数组可以了解一下,一条线和多条线都是数组
  1054. var html = ''
  1055. for (var i in params) {
  1056. var param = params[i]
  1057. // echarts日期格式化api
  1058. var date = param.name
  1059. html += `<span style="color: #999999">${date}</span><br /><div style="margin-top: 12px;display: flex;align-items: center;"><i style="display: inline-block;width: 6px;height: 6px;background-color: #0058FF;margin-right: 9px;border-radius: 50%;"></i><span style=" display:inline-block;">${param.seriesName}:${param.data}%</span></div>`
  1060. }
  1061. return html
  1062. }
  1063. },
  1064. grid: {
  1065. left: 20,
  1066. right: 20,
  1067. top: 55,
  1068. width: '93%',
  1069. bottom: '3%',
  1070. containLabel: true
  1071. },
  1072. toolbox: {
  1073. feature: {
  1074. saveAsImage: {
  1075. show: false
  1076. }
  1077. }
  1078. },
  1079. xAxis: {
  1080. type: 'category',
  1081. boundaryGap: false,
  1082. data: this.timeArray,
  1083. lineStyle: {
  1084. color: 'red'
  1085. },
  1086. nameTextStyle: {
  1087. color: 'red'
  1088. },
  1089. axisLine: {
  1090. show: false
  1091. },
  1092. axisTick: {
  1093. show: false
  1094. }
  1095. },
  1096. yAxis: {
  1097. type: 'value',
  1098. splitLine: {
  1099. show: true,
  1100. lineStyle: {
  1101. color: ['#E0E6F1'],
  1102. width: 1,
  1103. type: 'solid'
  1104. }
  1105. },
  1106. axisLine: {
  1107. show: false
  1108. },
  1109. axisTick: {
  1110. show: false
  1111. }
  1112. },
  1113. series: [
  1114. {
  1115. name: this.$i18n.t('home.refundRate'),
  1116. type: 'line',
  1117. smooth: true,
  1118. itemStyle: {
  1119. normal: {
  1120. lineStyle: {
  1121. color: '#1890FF'
  1122. }
  1123. }
  1124. },
  1125. areaStyle: {
  1126. color: new this.$echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  1127. offset: 0,
  1128. color: 'rgba(0, 88, 255, 0.1)'
  1129. }, {
  1130. offset: 1,
  1131. color: '#ffffff'
  1132. }])
  1133. },
  1134. data: this.rate
  1135. }
  1136. ]
  1137. }
  1138. option && this.refPerChart.setOption(option)
  1139. window.addEventListener('resize', () => {
  1140. this.refPerChart.resize()
  1141. })
  1142. },
  1143. /**
  1144. * 跳转订单页
  1145. */
  1146. toOrderPage (sts) {
  1147. if (!this.isAuth('order:get:info')) {
  1148. this.$message.info(this.$i18n.t('homes.noPermissionAccessPage'))
  1149. return
  1150. }
  1151. this.$router.push({
  1152. path: '/order-order',
  1153. query: { status: sts }
  1154. })
  1155. },
  1156. /**
  1157. * 跳转退款订单页
  1158. */
  1159. toRefundOrderPage (sts) {
  1160. if (!this.isAuth('admin:orderRefund:update')) {
  1161. this.$message.info(this.$i18n.t('homes.noPermissionAccessPage'))
  1162. return
  1163. }
  1164. this.$router.push({
  1165. path: '/order-orderRefund',
  1166. query: { returnMoneySts: sts }
  1167. })
  1168. }
  1169. },
  1170. beforeDestroy () {
  1171. let erd = elementResizeDetectorMaker()
  1172. erd.uninstall(this.$refs.entirety) // 这里用ref是因为vue离开页面后获取不到dom
  1173. }
  1174. }
  1175. </script>
  1176. <style lang="scss">
  1177. // e-chart
  1178. #real-time-data-chart canvas {
  1179. width: 100%;
  1180. height: 100%;
  1181. padding: 0 20px !important
  1182. }
  1183. .mod-home {
  1184. // 店铺状态异常提示
  1185. .shop-inf-imperfect-tips {
  1186. width: 100%;
  1187. line-height: 32px;
  1188. font-size: 14px;
  1189. color: #333;
  1190. background: #FFF7DD;
  1191. border: 1px solid #FFD888;
  1192. border-radius: 2px;
  1193. padding: 5px 10px;
  1194. margin-bottom: 10px;
  1195. .el-icon-warning {
  1196. font-size: 16px;
  1197. color: #FFA900;
  1198. margin-left: 5px;
  1199. margin-right: 5px;
  1200. }
  1201. }
  1202. // font-size: 1em;
  1203. // line-height: 2em;
  1204. // .strong {
  1205. // margin: 0;
  1206. // font-size: 17px;
  1207. // font-weight: bold;
  1208. // text-align: center;
  1209. // margin-bottom: 0.5em;
  1210. // }
  1211. // .content {
  1212. // font-size: 16px;
  1213. // padding: 0 30px;
  1214. // }
  1215. // background-color: #F5F6F9;
  1216. .grap {
  1217. color: #999999;
  1218. }
  1219. // 订单栏项
  1220. .order-all-num {
  1221. // display: flex;
  1222. // justify-content: space-between;
  1223. .row-bg {
  1224. .col-box {
  1225. display: flex;
  1226. justify-content: space-between;
  1227. .num-item-box {
  1228. position: relative;
  1229. flex: 1;
  1230. box-sizing: border-box;
  1231. }
  1232. }
  1233. .col-box:first-child {
  1234. .num-item-box {
  1235. padding-right: 20px;
  1236. box-sizing: border-box;
  1237. }
  1238. }
  1239. .col-box:last-child {
  1240. .num-item-box:not(:last-child) {
  1241. padding-right: 20px;
  1242. box-sizing: border-box;
  1243. }
  1244. }
  1245. }
  1246. .order-num-item {
  1247. // width: calc((100% - 73px) * 0.2);
  1248. display: flex;
  1249. padding: 25px;
  1250. justify-content: space-between;
  1251. align-items: center;
  1252. background-color: #fff;
  1253. box-sizing: border-box;
  1254. border-radius: 4px;
  1255. cursor: pointer;
  1256. .item-box {
  1257. .words {
  1258. font-size: 16px;
  1259. font-weight: 400;
  1260. color: #666;
  1261. }
  1262. .number {
  1263. font-size: 26px;
  1264. font-family: Microsoft YaHei;
  1265. font-weight: bold;
  1266. color: #333;
  1267. margin-top: 10px;
  1268. }
  1269. .seq {
  1270. display: flex
  1271. }
  1272. .up { color: #3DD598; }
  1273. .up-icon {
  1274. display: inline-block;
  1275. width: 16px;
  1276. height: 16px;
  1277. margin: 0 12px 0 4px;
  1278. background:url('~@/assets/img/home/ic-arrow-narrow-up.png')
  1279. }
  1280. .down {color: #F0142F;}
  1281. .down-icon {
  1282. display: inline-block;
  1283. width: 16px;
  1284. height: 16px;
  1285. margin: 0 12px 0 4px;
  1286. background:url('~@/assets/img/home/ic-arrow-narrow-down.png')
  1287. }
  1288. .compare {
  1289. font-size: 14px;
  1290. }
  1291. }
  1292. }
  1293. // 图标过渡效果
  1294. .order-num-item {
  1295. position: relative;
  1296. transition: 0.35s ease;
  1297. &:hover {
  1298. .item-img {
  1299. top: 15%;
  1300. }
  1301. }
  1302. .item-img {
  1303. position: absolute;
  1304. right: 25px;
  1305. top: 25%;
  1306. display: block;
  1307. width: 60px;
  1308. height: 60px;
  1309. transition: 0.35s ease;
  1310. img {
  1311. display: block;
  1312. width: 100%;
  1313. height: 100%;
  1314. }
  1315. }
  1316. }
  1317. }
  1318. // 添加公告
  1319. .introduce {
  1320. margin-bottom: 10px;
  1321. }
  1322. .router-link-active {
  1323. //点击时去掉下划线
  1324. text-decoration: none;
  1325. }
  1326. a {
  1327. text-decoration: none;
  1328. }
  1329. .title {
  1330. font-size: 22px;
  1331. color: #111111;
  1332. font-weight: bold;
  1333. padding: 20px;
  1334. }
  1335. .btn-more {
  1336. float: right;
  1337. margin: 10px;
  1338. margin-top: 0px;
  1339. }
  1340. .introduce-container {
  1341. padding: 10px;
  1342. display: flex;
  1343. background-color: #b4dff8;
  1344. margin: 20px 0 10px 0;
  1345. }
  1346. .introduce-container .text {
  1347. width: 50%;
  1348. line-height: 30px;
  1349. font-size: 22px;
  1350. }
  1351. // 栏目标题行
  1352. .title-line {
  1353. background: #f8f8f8;
  1354. padding: 12px;
  1355. font-size: 14px;
  1356. line-height: 1em;
  1357. }
  1358. .blue-vertical {
  1359. display: inline-block;
  1360. width: 3px;
  1361. height: 1em;
  1362. background: #155bd4;
  1363. margin-right: 0.5em;
  1364. vertical-align: middle;
  1365. }
  1366. .title-txt {
  1367. color: #000;
  1368. font-weight: bold;
  1369. margin-right: 1em;
  1370. vertical-align: middle;
  1371. }
  1372. .title-time {
  1373. color: #999999;
  1374. font-size: 12px;
  1375. margin-left: 12px;
  1376. vertical-align: middle;
  1377. }
  1378. .realtime {
  1379. // display: flex;
  1380. margin-top: 20px;
  1381. padding: 0;
  1382. }
  1383. /**
  1384. 实时概况
  1385. */
  1386. .realtime-situation {
  1387. //左边
  1388. .realtime-left {
  1389. height: 100%;
  1390. // padding-right: 5px;
  1391. // width: calc((100% - 20px) * 0.8);
  1392. // margin-right: 20px;
  1393. // .chart-content {
  1394. // width: 100%;
  1395. // height: 360px;
  1396. // }
  1397. background: #fff;
  1398. border-radius: 4px;
  1399. }
  1400. .col-item {
  1401. padding-right: 20px;
  1402. box-sizing: border-box;
  1403. }
  1404. // 标题
  1405. .title {
  1406. position: relative;
  1407. display: flex;
  1408. align-items: center;
  1409. box-sizing: border-box;
  1410. .t-title {
  1411. font-size: 18px;
  1412. font-weight: bold;
  1413. color: #333;
  1414. }
  1415. .update-time {
  1416. font-size: 12px;
  1417. color: #999999;
  1418. margin-left: 10px;
  1419. }
  1420. .t-small-text {
  1421. font-size: 12px;
  1422. color: #999;
  1423. }
  1424. .t-update-time {
  1425. margin-left: 12px;
  1426. }
  1427. .t-explain-item::before {
  1428. display: inline-block;
  1429. content: '';
  1430. width: 18px;
  1431. height: 8px;
  1432. background: #FF4141;
  1433. border-radius: 8px;
  1434. margin-right: 10px;
  1435. }
  1436. .t-explain-first-item {
  1437. margin-left: 50px;
  1438. }
  1439. .t-explain-second-item {
  1440. margin-left: 40px;
  1441. }
  1442. .t-red::before {
  1443. background: #FF4141;
  1444. }
  1445. .t-dark-green::before {
  1446. background: #42B983;
  1447. }
  1448. .t-today-data::before {
  1449. background: #1890FF;
  1450. }
  1451. .t-yesterday-data::before {
  1452. background: #21D59B;
  1453. }
  1454. .t-pay-amount {
  1455. position: absolute;
  1456. right: 0;
  1457. top: 0;
  1458. display: flex;
  1459. .t-pay-item {
  1460. color: #333;
  1461. text-align: left;
  1462. margin-right: 30px;
  1463. .tt-title {
  1464. font-size: 14px;
  1465. }
  1466. .tt-num {
  1467. font-size: 20px;
  1468. font-weight: bold;
  1469. margin-top: 13px;
  1470. }
  1471. }
  1472. .t-today {
  1473. margin-right: 150px;
  1474. }
  1475. }
  1476. }
  1477. .pay-amount-text {
  1478. font-weight: bold;
  1479. }
  1480. .pay-amount-num {
  1481. font-size: 24px;
  1482. min-height: 24px;
  1483. font-weight: 700;
  1484. margin: 10px 0;
  1485. line-height: 24px;
  1486. }
  1487. .pay-amount-tips {
  1488. color: #9b9b9b;
  1489. }
  1490. // 图表
  1491. .realtime-chart-box {
  1492. left: -10px !important;
  1493. // margin-top: 10px;
  1494. }
  1495. .wrapper__summary:nth-child(2) {
  1496. margin-top: 120px;
  1497. }
  1498. // 右边
  1499. .realtime-right {
  1500. min-width: calc((100% - 20px) * 0.2);
  1501. min-height: 426px;
  1502. height: 100%;
  1503. padding: 20px 0px 0 20px;
  1504. background-color: #fff;
  1505. box-sizing: border-box;
  1506. border-radius: 4px;
  1507. .realtime-right-title {
  1508. font-size: 18px;
  1509. font-weight: bold;
  1510. color: #333;
  1511. margin-bottom: 45px;
  1512. }
  1513. .realtime-right-box {
  1514. display: flex;
  1515. flex-wrap: wrap;
  1516. width: 100%;
  1517. height: 100%;
  1518. .realtime-right-box-left, .realtime-right-box-right{width: 100%;display: flex;justify-content: space-between;}
  1519. .realtime-right-box-right { margin-top: -30px;}
  1520. .order-num-item{
  1521. width: 100%;
  1522. display: flex;
  1523. .item-img {
  1524. margin-right: 30px;
  1525. .words {
  1526. font-size: 16px;
  1527. font-weight: 400;
  1528. color: #666;
  1529. }
  1530. .number {
  1531. font-size: 24px;
  1532. font-family: Microsoft YaHei;
  1533. font-weight: bold;
  1534. color: #333;
  1535. margin: 14px 0;
  1536. }
  1537. .compare {
  1538. font-size: 14px;
  1539. }
  1540. }
  1541. .item-box {
  1542. .words {
  1543. font-size: 16px;
  1544. font-weight: 400;
  1545. color: #666;
  1546. }
  1547. .number {
  1548. font-size: 26px;
  1549. font-family: Microsoft YaHei;
  1550. font-weight: bold;
  1551. color: #333;
  1552. margin: 14px 0;
  1553. }
  1554. .seq {
  1555. display: flex;
  1556. .value {
  1557. color: #333333;
  1558. font-weight: bold;
  1559. margin-right: 8px;
  1560. }
  1561. }
  1562. }
  1563. }
  1564. // .order-num-item:nth-child(even){
  1565. // margin-left: 86px;
  1566. // }
  1567. }
  1568. }
  1569. .realtime .wrapper__summary {
  1570. display: flex;
  1571. }
  1572. .realtime .wrapper__summary .summary__box {
  1573. display: inline-flex;
  1574. flex: 1;
  1575. margin-left: 20px;
  1576. }
  1577. .realtime .wrapper__summary .summary__item {
  1578. position: relative;
  1579. width: 100%;
  1580. }
  1581. //客户数信息
  1582. .customer-number-info {
  1583. margin-left: 60px;
  1584. }
  1585. .text-tit {
  1586. font-weight: 600;
  1587. }
  1588. .text-num {
  1589. font-size: 24px;
  1590. min-height: 24px;
  1591. font-weight: 700;
  1592. margin: 15px 0;
  1593. line-height: 24px;
  1594. }
  1595. .text-tips {
  1596. color: #9b9b9b;
  1597. }
  1598. // 客户数icon
  1599. svg {
  1600. fill: currentColor;
  1601. vertical-align: middle;
  1602. }
  1603. .realtime .wrapper__summary .summary__svg {
  1604. position: absolute;
  1605. left: 0;
  1606. top: 50%;
  1607. transform: translateY(-50%);
  1608. }
  1609. }
  1610. /**
  1611. 整体看板
  1612. */
  1613. .whole-plate {
  1614. margin: 20px 0 20px;
  1615. min-height: 460px;
  1616. background-color: #fff;
  1617. border-radius: 4px;
  1618. // 标题
  1619. .title {
  1620. width: 80%;
  1621. position: relative;
  1622. display: flex;
  1623. align-items: center;
  1624. .t-title {
  1625. font-size: 18px;
  1626. font-weight: bold;
  1627. color: #333;
  1628. }
  1629. .update-time {
  1630. font-size: 12px;
  1631. color: #999999;
  1632. margin-left: 10px;
  1633. }
  1634. .t-small-text {
  1635. font-size: 12px;
  1636. color: #999;
  1637. }
  1638. .t-update-time {
  1639. margin-left: 12px;
  1640. }
  1641. .t-explain-item::before {
  1642. display: inline-block;
  1643. content: '';
  1644. width: 18px;
  1645. height: 8px;
  1646. background: #FF4141;
  1647. border-radius: 8px;
  1648. margin-right: 10px;
  1649. }
  1650. .t-explain-first-item {
  1651. margin-left: 50px;
  1652. }
  1653. .t-explain-second-item {
  1654. margin-left: 40px;
  1655. }
  1656. .t-red::before {
  1657. background: #FF4141;
  1658. }
  1659. .t-dark-green::before {
  1660. background: #42B983;
  1661. }
  1662. .t-today-data::before {
  1663. background: #1890FF;
  1664. }
  1665. .t-yesterday-data::before {
  1666. background: #21D59B;
  1667. }
  1668. .t-pay-amount {
  1669. position: absolute;
  1670. right: 0;
  1671. top: 0;
  1672. display: flex;
  1673. .t-pay-item {
  1674. color: #333;
  1675. text-align: left;
  1676. margin-right: 30px;
  1677. .tt-title {
  1678. font-size: 14px;
  1679. }
  1680. .tt-num {
  1681. font-size: 20px;
  1682. font-weight: bold;
  1683. margin-top: 13px;
  1684. }
  1685. }
  1686. .t-today {
  1687. margin-right: 150px;
  1688. }
  1689. }
  1690. }
  1691. .money {
  1692. width: 20%;
  1693. display: flex;
  1694. justify-content: space-between;
  1695. .related-income-item {text-align: center;}
  1696. }
  1697. .related-income {
  1698. margin: 20px 0 0 0px;
  1699. padding-right: 50px;
  1700. display: flex;
  1701. flex-wrap: wrap;
  1702. justify-content: space-between;
  1703. }
  1704. .item-tit {
  1705. margin-top: 23px;
  1706. margin-bottom: 15px;
  1707. }
  1708. .item-num {
  1709. height: 24px;
  1710. line-height: 24px;
  1711. }
  1712. .item-num-price {
  1713. font-size: 18px;
  1714. font-weight: 700;
  1715. }
  1716. .item-num a {
  1717. color: #155bd4;
  1718. text-decoration: none;
  1719. }
  1720. .integral-plate {
  1721. margin-top: 15px;
  1722. }
  1723. }
  1724. /**
  1725. 退款看板
  1726. */
  1727. .refund-plate {
  1728. display: flex;
  1729. flex-wrap: wrap;
  1730. justify-content: space-between;
  1731. .sign-noData {
  1732. display:flex;
  1733. align-items: center;
  1734. justify-content: center;
  1735. color:#999999;
  1736. width: 100%;
  1737. height: 100%;
  1738. }
  1739. // 上
  1740. .ranking-box {
  1741. display: flex;
  1742. flex-wrap: wrap;
  1743. width: 50%;
  1744. padding-right: 20px;
  1745. .ranking-left,
  1746. .refund-rate-box {
  1747. display: flex;
  1748. flex-direction: column;
  1749. width: 100%;
  1750. background: #fbfbfb;
  1751. padding: 20px;
  1752. box-sizing: border-box;
  1753. height: calc((100% - 20px) * 0.5);
  1754. border-radius: 4px;
  1755. }
  1756. .ranking-title {
  1757. font-weight: bold;
  1758. color: #333;
  1759. font-size: 18px;
  1760. margin-bottom: 10px;
  1761. }
  1762. .table {
  1763. width: 100%;
  1764. border: none;
  1765. background: #fbfbfb;
  1766. // border-spacing: 10px 20px;
  1767. text-align: left;
  1768. tr {
  1769. border: none;
  1770. height: 3em;
  1771. line-height: 1.5em;
  1772. }
  1773. td {
  1774. border: none;
  1775. word-break: break-wrod;
  1776. }
  1777. .gray {
  1778. background: #F7F8FA;
  1779. }
  1780. .table-tit-item {
  1781. color: #999;
  1782. text-align: left;
  1783. }
  1784. .rank {
  1785. width: 20%;
  1786. }
  1787. .prod {
  1788. width: 50%;
  1789. }
  1790. .ref {
  1791. width: 20%;
  1792. }
  1793. .ranks {
  1794. width: 20%;
  1795. }
  1796. .prods {
  1797. width: 40%;
  1798. }
  1799. .refs {
  1800. width: 30%;
  1801. }
  1802. .prop {
  1803. width: 10%;
  1804. // text-align: center;
  1805. }
  1806. }
  1807. .refund-rate-box {
  1808. margin-top: 20px;
  1809. }
  1810. .no-data {
  1811. height: 60px;
  1812. line-height: 60px;
  1813. text-align: center;
  1814. font-size: 14px;
  1815. color: #999;
  1816. }
  1817. .line-clamp-one {
  1818. display: -webkit-box;
  1819. -webkit-box-orient: vertical;
  1820. -webkit-line-clamp: 1;
  1821. text-overflow: ellipsis;
  1822. overflow: hidden;
  1823. /* autoprefixepxr: off */
  1824. -webkit-box-orient: vertical;
  1825. word-wrap:break-word;
  1826. word-break:break-all;
  1827. }
  1828. .padLeft {
  1829. padding-left: 20px;
  1830. }
  1831. .msg-tit {
  1832. font-weight: bold;
  1833. color: #333;
  1834. font-size: 18px;
  1835. margin-bottom: 15px;
  1836. }
  1837. }
  1838. // 下
  1839. .refund-chart-box {
  1840. display: flex;
  1841. flex-wrap: wrap;
  1842. width: 50%;
  1843. .successed-refund,
  1844. .ranking-right {
  1845. display: flex;
  1846. width:100%;
  1847. flex-direction: column;
  1848. background: #fbfbfb;
  1849. padding: 20px;
  1850. box-sizing: border-box;
  1851. height: calc((100% - 20px) * 0.5);
  1852. border-radius: 4px;
  1853. }
  1854. .successed-refund {
  1855. margin-top: 20px;
  1856. display: flex;
  1857. flex-direction: column;
  1858. width: 100%;
  1859. background: #fbfbfb;
  1860. padding: 20px;
  1861. box-sizing: border-box;
  1862. height: calc((100% - 20px) * 0.5);
  1863. }
  1864. .ranking-title {
  1865. font-weight: bold;
  1866. color: #333;
  1867. font-size: 18px;
  1868. margin-bottom: 10px;
  1869. }
  1870. .table {
  1871. width: 100%;
  1872. border: none;
  1873. background: #fbfbfb;
  1874. // border-spacing: 10px 20px;
  1875. text-align: left;
  1876. tr {
  1877. border: none;
  1878. height: 3em;
  1879. line-height: 1.5em;
  1880. }
  1881. td {
  1882. border: none;
  1883. word-break: break-wrod;
  1884. }
  1885. .gray {
  1886. background: #F7F8FA;
  1887. }
  1888. .table-tit-item {
  1889. color: #999;
  1890. text-align: left;
  1891. }
  1892. .rank {
  1893. width: 20%;
  1894. }
  1895. .prod {
  1896. width: 50%;
  1897. }
  1898. .ref {
  1899. width: 20%;
  1900. }
  1901. .ranks {
  1902. width: 20%;
  1903. }
  1904. .prods {
  1905. width: 40%;
  1906. }
  1907. .refs {
  1908. width: 30%;
  1909. }
  1910. .prop {
  1911. width: 10%;
  1912. // text-align: center;
  1913. }
  1914. }
  1915. .msg-tit {
  1916. font-weight: bold;
  1917. color: #333;
  1918. font-size: 18px;
  1919. margin-bottom: 15px;
  1920. }
  1921. .padLeft {
  1922. padding-left: 20px;
  1923. }
  1924. .msg-price {
  1925. margin: 6px 0;
  1926. line-height: 26px;
  1927. padding: 0;
  1928. font-size: 24px;
  1929. font-weight: bold;
  1930. line-height: 1em;
  1931. }
  1932. .msg-txt-p {
  1933. width: 146px;
  1934. }
  1935. .compare {
  1936. color: #9b9b9b;
  1937. display: flex;
  1938. justify-content: space-between;
  1939. font-size: 12px;
  1940. padding: 5px;
  1941. }
  1942. .compare-left {
  1943. margin-right: 10px;
  1944. white-space: nowrap;
  1945. }
  1946. }
  1947. .integral-plate canvas {
  1948. left:-5px !important;
  1949. }
  1950. }
  1951. }
  1952. @media screen and ( max-width: 1680px ){
  1953. .mod-home {
  1954. // 订单栏项
  1955. .order-all-num {
  1956. .order-num-item {
  1957. // width: calc((100% - 73px) * 0.2);
  1958. display: flex;
  1959. padding: 25px 10px;
  1960. justify-content: space-between;
  1961. align-items: center;
  1962. background-color: #fff;
  1963. box-sizing: border-box;
  1964. border-radius: 4px;
  1965. cursor: pointer;
  1966. .item-box {
  1967. .words {
  1968. font-size: 16px;
  1969. font-weight: 400;
  1970. color: #666;
  1971. }
  1972. .number {
  1973. font-size: 26px;
  1974. font-family: Microsoft YaHei;
  1975. font-weight: bold;
  1976. color: #333;
  1977. margin-top: 10px;
  1978. }
  1979. .seq {
  1980. display: flex
  1981. }
  1982. .up { color: #3DD598; }
  1983. .up-icon {
  1984. display: inline-block;
  1985. width: 16px;
  1986. height: 16px;
  1987. margin: 0 12px 0 4px;
  1988. background:url('~@/assets/img/home/ic-arrow-narrow-up.png')
  1989. }
  1990. .down {color: #F0142F;}
  1991. .down-icon {
  1992. display: inline-block;
  1993. width: 16px;
  1994. height: 16px;
  1995. margin: 0 12px 0 4px;
  1996. background:url('~@/assets/img/home/ic-arrow-narrow-down.png')
  1997. }
  1998. .compare {
  1999. font-size: 14px;
  2000. }
  2001. }
  2002. }
  2003. // 图标过渡效果
  2004. .order-num-item {
  2005. position: relative;
  2006. transition: 0.35s ease;
  2007. &:hover {
  2008. .item-img {
  2009. top: 15%;
  2010. }
  2011. }
  2012. .item-img {
  2013. position: absolute;
  2014. right: 8px;
  2015. top: 25%;
  2016. display: block;
  2017. width: 60px;
  2018. height: 60px;
  2019. transition: 0.35s ease;
  2020. img {
  2021. display: block;
  2022. width: 100%;
  2023. height: 100%;
  2024. }
  2025. }
  2026. }
  2027. }
  2028. }
  2029. }
  2030. </style>