balance.blade.php 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <script src="{{static_url('js/echarts.js')}}" type="text/javascript"></script>
  2. @extends('layouts.base')
  3. @section('title', '余额数据统计')
  4. <script src="{{resource_get('plugins/shop-statistics/assets/js/echarts.min.js')}}"></script>
  5. @section('content')
  6. <link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/vue-goods1.css')}}" />
  7. <link rel="stylesheet" href="{{resource_get('plugins/shop-statistics/assets/css/common.css')}}">
  8. <link rel="stylesheet" href="{{resource_get('plugins/shop-statistics/assets/css/statistics.css')}}">
  9. <div class="all">
  10. <div id="app">
  11. <panel>
  12. <statistics-card-title>数据情况</statistics-card-title>
  13. <ul class="statistics-overall" type="flex" :gutter="10" style="flex-wrap:wrap;row-gap:10px;">
  14. <li>
  15. <statistics-card colorful count-color="#fba04b" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_7.png') !!}" :border="false" title="累计可使用余额" tip="累计剩余余额总数" :count="overall.balanceUseCount">
  16. </statistics-card>
  17. </li>
  18. <li>
  19. <statistics-card colorful count-color="#4652a9" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_2.png') !!}" :border="false" title="累计已使用余额" tip="累计已使用余额总数" :count="overall.balanceUsedCount">
  20. </statistics-card>
  21. </li>
  22. <li>
  23. <statistics-card colorful count-color="#36c3a7" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_5.png') !!}" :border="false" title="累计已提现余额" tip="累计已提现余额总数" :count="overall.balanceWithdrawCount">
  24. </statistics-card>
  25. </li>
  26. <li>
  27. <statistics-card colorful count-color="#da9a01" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_6.png') !!}" :border="false" title="累计收入余额" tip="累计收入提现到余额总数" :count="overall.balanceIncomeCount">
  28. </statistics-card>
  29. </li>
  30. <li>
  31. <statistics-card colorful count-color="#43bae0" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_3.png') !!}" :border="false" title="累计后台充值" tip="累计后台充值余额总数" :count="overall.balanceRechargeCount">
  32. </statistics-card>
  33. </li>
  34. <li>
  35. <statistics-card colorful count-color="#28b183" background="{!! resource_get('plugins/shop-statistics/assets/images/statistics_card_4.png') !!}" :border="false" title="累计会员充值" tip="累计会员充值余额总数" :count="overall.balanceMemberRechargeCount">
  36. </statistics-card>
  37. </li>
  38. </ul>
  39. </panel>
  40. <panel>
  41. <el-row type="flex" :gutter="20" style="flex-wrap:wrap;row-gap: 10;">
  42. <el-col :span="4">
  43. <statistics-card :title="dataItem.title" :tip="dataItem.tip" :count="dataItem.count" v-for="dataItem in balanceStatisticsData" :key="dataItem.key" style="margin-bottom:15px;" :decimals="dataItem.decimals">
  44. </statistics-card>
  45. </el-col>
  46. <el-col :span="20">
  47. <panel-form inline style="text-align: right;">
  48. <el-form-item>
  49. <el-date-picker v-model="balanceStatisticsTime" type="date" placeholder="选择日期" @change="getBalanceStatisticsData">
  50. </el-date-picker>
  51. </el-form-item>
  52. </panel-form>
  53. <div ref="balanceChart" style="margin-top:20px;width:100%;height:700px;"></div>
  54. </el-col>
  55. </el-row>
  56. </panel>
  57. <panel>
  58. <statistics-card-title>
  59. 会员余额使用情况排名
  60. <panel-form slot="right" inline>
  61. <el-form-item>
  62. <el-input placeholder="会员id/昵称/手机号" v-model="balanceUseDataSearchMember"></el-input>
  63. </el-form-item>
  64. <el-form-item>
  65. <el-button type="primary" plain @click="searchMemberBalanceUseData" :loading="balanceUseDataSearchMemberLoading">搜索</el-button>
  66. </el-form-item>
  67. </panel-form>
  68. </statistics-card-title>
  69. <el-table :data="balanceUseData">
  70. <el-table-column label="排名" width="100">
  71. <template slot-scope="scope">
  72. <div class="member-rank" :data-rank="scope.row.rank" plain mini>
  73. [[ scope.row.rank ]]
  74. </div>
  75. </template>
  76. </el-table-column>
  77. <el-table-column label="会员id" prop="uid" width="100"></el-table-column>
  78. <el-table-column label="会员昵称/手机号" width="300">
  79. <template slot-scope="scope">
  80. <div class="member-info">
  81. <el-avatar class="member-avatar" :src="scope.row.avatar"></el-avatar>
  82. [[ scope.row.nickname ]] / [[ scope.row.mobile ]]
  83. </div>
  84. </template>
  85. </el-table-column>
  86. <el-table-column label="可使用余额" prop="useBalance"></el-table-column>
  87. <el-table-column label="已使用余额" prop="usedBalance"></el-table-column>
  88. <el-table-column label="已提现余额" prop="withdrawBalance"></el-table-column>
  89. <el-table-column label="收入余额" prop="incomeBalance"></el-table-column>
  90. <el-table-column label="后台充值余额" prop="recharge"></el-table-column>
  91. <el-table-column label="会员充值余额" prop="memberRecharge"></el-table-column>
  92. </el-table>
  93. <el-row style="margin-top:20px;">
  94. <el-col align="right">
  95. <el-pagination :current-page="balanceUsePagination.pages" :page-size="balanceUsePagination.limit" :total="balanceUsePagination.total" @current-change="getMemberBalanceUseData"></el-pagination>
  96. </el-col>
  97. </el-row>
  98. </panel>
  99. </div>
  100. </div>
  101. <script>
  102. const GetBalanceOverallDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.balance.get-balance-statistic') !!}"; //* 获取整体数据
  103. const GetBalanceStaitsticsUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.balance.search-balance-statistic') !!}"; //* 获取统计数据
  104. const GetMemberBalanceUseDataUrl = "{!! yzWebFullUrl('plugin.shop-statistics.backend.balance.search-balance-ranking') !!}"; //* 获取会员余额使用情况
  105. </script>
  106. <script src="{{resource_get('plugins/shop-statistics/assets/js/components.js')}}"></script>
  107. <script src="{{resource_get('plugins/shop-statistics/assets/js/balance.js')}}?timestamp={{ time() }}"></script>
  108. <script src="{{resource_get('plugins/shop-statistics/assets/js/common.js')}}"></script>
  109. @endsection