You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.6 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="content">
  3. <view class="status_bar"></view>
  4. <view class="" style="height: 30rpx;"></view>
  5. <view class="userInfo">
  6. <view class="tit">Hi,{{ vuex_userInfo.name }}教练</view>
  7. <view class="flex userRow">
  8. <view class="schoolIcon">
  9. <image src="@/static/images/index/ic_jiaxiao.png" mode=""></image>
  10. </view>
  11. <view class="schoolName oneRowText">{{ vuex_userInfo.schoolName }}</view>
  12. <!-- <view class="tag">合作教练</view> -->
  13. </view>
  14. </view>
  15. <view class="card priceBox">
  16. <view class="blueLab">今日已结算金额</view>
  17. <view class="price">{{statistics.amount}}</view>
  18. <view class="flex-b">
  19. <view class="data">截止{{statistics.refreshDate}}</view>
  20. <view class="refresh" @click="getSettlementStatisticsFn">
  21. <view class="text">刷新</view>
  22. <view class="icon">
  23. <image src="@/static/images/index/ic_shuaxin.png" mode=""></image>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="h1"> 结算统计</view>
  29. <view class="tab_box">
  30. <tabDate />
  31. </view>
  32. <view class="card">
  33. <view class="chart">
  34. <columnChart />
  35. </view>
  36. </view>
  37. <view class="flex-b">
  38. <view class="h1">结算明细</view>
  39. <moreRight text="更多" @click.native="$goPage('/pages/indexEntry/settlement/settlement')"/>
  40. </view>
  41. <view class="record">
  42. <view class="card" v-for="(item,index) in list" :key="index">
  43. <stage :item="item"/>
  44. </view>
  45. </view>
  46. <view class="moreBtn" @click="$goPage('/pages/indexEntry/settlement/settlement')">查看更多</view>
  47. <UserTab name='统计'></UserTab>
  48. </view>
  49. </template>
  50. <script>
  51. import stage from './stage'
  52. import columnChart from './columnChart'
  53. import tabDate from './tabDate'
  54. import {
  55. getSettlementStatistics,
  56. settle_list
  57. } from '@/config/api.js'
  58. export default {
  59. components: {
  60. stage,
  61. columnChart,
  62. tabDate
  63. },
  64. data() {
  65. return {
  66. value1: '',
  67. currentTab: 1,
  68. statistics: {},
  69. list: []
  70. }
  71. },
  72. mounted() {
  73. this.getSettlementStatisticsFn()
  74. this.settle_listFn()
  75. },
  76. methods: {
  77. tabClick(num) {
  78. this.currentTab = num
  79. },
  80. async getSettlementStatisticsFn() {
  81. let obj = {
  82. searchDateType: uni.$u.timeFormat(Date.now(), 'yyyy/mm'),
  83. // coachId: this.vuex_coachId || ''
  84. }
  85. const {
  86. data: res
  87. } = await getSettlementStatistics(obj)
  88. this.statistics = res
  89. console.log(res)
  90. },
  91. async settle_listFn() {
  92. let obj = {
  93. "pageNo": 1,
  94. "pageSize": 10,
  95. }
  96. const {
  97. data: res
  98. } = await settle_list(obj)
  99. this.list = res.list || []
  100. }
  101. }
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. @import './comp.scss'
  106. </style>