general_stat.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="">
  3. <HeadData :money-data="moneyData"></HeadData>
  4. <stat_finance_chart :money-data="moneyData"></stat_finance_chart>
  5. <!-- <StatLoanChart :genre="1" :leftText="'放款汇总占比'"></StatLoanChart>-->
  6. <!-- <StatLoanChart :genre="2" :leftText="'回款汇总占比'"></StatLoanChart>-->
  7. <stat-finance :date-type-obj="dateTypeObj"></stat-finance>
  8. <StatRanking is_group :leftText="'汇总明细'"></StatRanking>
  9. <view class="sys-background-fff r-30">
  10. <StatCapital :leftColor="0" :rightColor="1" :leftText="'任务资金汇总'">
  11. </StatCapital>
  12. <view class="view_line"></view>
  13. <StatRanking :is_margin_top="false" :is_type="2" :leftText="'个人业绩排行'"></StatRanking>
  14. </view>
  15. <StatSituation :type="1"></StatSituation>
  16. </view>
  17. </template>
  18. <script>
  19. import StatLoanChart from "../module/stat_loan_chart.vue"
  20. import StatRanking from "../module/stat_ranking.vue"
  21. import StatCapital from "../module/stat_capital.vue"
  22. import StatSituation from "../module/stat_situation.vue"
  23. import HeadData from "@/pages/statistics/module/head_data.vue";
  24. import {getSysCashier} from "@/api/statistics";
  25. import Stat_finance_chart from "@/pages/statistics/module/stat_finance_chart.vue";
  26. import StatFinance from "@/pages/statistics/module/stat_finance.vue";
  27. export default {
  28. props:{
  29. 'dateTypeObj':{
  30. default:()=>{
  31. return {
  32. dateType:4,
  33. selectDate:'2023-02-25',
  34. money_type:1,
  35. censusUserType:0,
  36. product_id:5,
  37. }
  38. }
  39. }
  40. },
  41. components: {
  42. StatFinance,
  43. Stat_finance_chart,
  44. HeadData,
  45. StatLoanChart,
  46. StatRanking,
  47. StatCapital,
  48. StatSituation
  49. },
  50. watch:{
  51. 'dateTypeObj':function () {
  52. this.initData()
  53. }
  54. },
  55. mounted() {
  56. this.initData()
  57. },
  58. data() {
  59. return {
  60. moneyData:{
  61. out_money: 0,
  62. out_num: 0,
  63. put_money: 0,
  64. put_num: 0,
  65. }
  66. };
  67. },
  68. methods: {
  69. initData(){
  70. if(this.dateTypeObj.censusUserType>0){
  71. this.getSysCashier()
  72. }
  73. },
  74. getSysCashier(){
  75. getSysCashier(this.dateTypeObj).then((res)=>{
  76. if(res.code===1){
  77. this.moneyData=res.data
  78. }
  79. })
  80. }
  81. },
  82. }
  83. </script>
  84. <style>
  85. </style>