|
|
@@ -5,11 +5,11 @@
|
|
|
<!-- <StatLoanChart :genre="1" :leftText="'放款汇总占比'"></StatLoanChart>-->
|
|
|
<!-- <StatLoanChart :genre="2" :leftText="'回款汇总占比'"></StatLoanChart>-->
|
|
|
<stat-finance :date-type-obj="dateTypeObj"></stat-finance>
|
|
|
- <StatRanking is_group :leftText="'汇总明细'"></StatRanking>
|
|
|
+<!-- <StatRanking is_group :leftText="'汇总明细'"></StatRanking>-->
|
|
|
<view class="sys-background-fff r-30">
|
|
|
- <StatCapital :leftColor="0" :rightColor="1" :leftText="'任务资金汇总'"></StatCapital>
|
|
|
+ <StatCapital :leftColor="0" :rightColor="1" :leftText="'任务资金汇总'" :tabulate-data="sysPassageData"></StatCapital>
|
|
|
<view class="view_line"></view>
|
|
|
- <StatCapital :leftColor="0" :rightColor="1" :leftText="'在途资金汇总'"></StatCapital>
|
|
|
+ <StatCapital :leftColor="1" :rightColor="2" :leftText="'在途资金汇总'" :tabulate-data="sysCapitalMoney"></StatCapital>
|
|
|
<!-- <StatRanking :is_margin_top="false" :is_type="2" :leftText="'个人业绩排行'"></StatRanking>-->
|
|
|
</view>
|
|
|
<!-- <StatSituation :type="1"></StatSituation>-->
|
|
|
@@ -22,7 +22,7 @@
|
|
|
import StatCapital from "../module/stat_capital.vue"
|
|
|
import StatSituation from "../module/stat_situation.vue"
|
|
|
import HeadData from "@/pages/statistics/module/head_data.vue";
|
|
|
- import {getSysCashier,getSysPassage} from "@/api/statistics";
|
|
|
+ import {getSysCashier,getSysPassage,getCapitalMoney} from "@/api/statistics";
|
|
|
import Stat_finance_chart from "@/pages/statistics/module/stat_finance_chart.vue";
|
|
|
import StatFinance from "@/pages/statistics/module/stat_finance.vue";
|
|
|
import md5 from 'js-md5'
|
|
|
@@ -66,7 +66,24 @@
|
|
|
put_money: 0,
|
|
|
put_num: 0,
|
|
|
},
|
|
|
- sysPassageObj:{},
|
|
|
+ sysPassageData:{
|
|
|
+ consume_money: 0,
|
|
|
+ consume_num: "0",
|
|
|
+ consume_ratio: 0,
|
|
|
+ pledge_money: 0,
|
|
|
+ pledge_num: "0",
|
|
|
+ pledge_ratio: 0,
|
|
|
+ list:[{name: "", ratio: 0, value: 0, labelText: ""},{name: "", ratio: 0, value: 0, labelText: ""}]
|
|
|
+ },
|
|
|
+ sysCapitalMoney:{
|
|
|
+ consume_money: 0,
|
|
|
+ consume_num: "0",
|
|
|
+ consume_ratio: 0,
|
|
|
+ pledge_money: 0,
|
|
|
+ pledge_num: "0",
|
|
|
+ pledge_ratio: 0,
|
|
|
+ list:[{name: "", ratio: 0, value: 0, labelText: ""},{name: "", ratio: 0, value: 0, labelText: ""}]
|
|
|
+ },
|
|
|
sendMd5:''
|
|
|
};
|
|
|
},
|
|
|
@@ -82,6 +99,7 @@
|
|
|
this.sendMd5=sendMd5
|
|
|
this.getSysCashier()
|
|
|
this.getSysPassage()
|
|
|
+ this.getCapitalMoney()
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -92,19 +110,33 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //管理员-在途资金汇总
|
|
|
+ //管理员-任务资金汇总
|
|
|
getSysPassage(){
|
|
|
getSysPassage(this.dateTypeObj).then((res)=>{
|
|
|
if(res.code === 1){
|
|
|
- // let ret = {series:[{data:res.data.list}]}
|
|
|
- // this.$refs.chartsPieView.show = true
|
|
|
- // this.$refs.chartsPieView.chartData2 = JSON.parse(JSON.stringify(ret));
|
|
|
- this.sysPassageObj = res.data
|
|
|
+ this.sysPassageData = res.data
|
|
|
}else{
|
|
|
// this.$refs.chartsPieView.setNoList()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ //管理员-在途资金汇总
|
|
|
+ getCapitalMoney(){
|
|
|
+ getCapitalMoney(this.selectData).then((res)=>{
|
|
|
+ if(res.code===1 && res.data.items.length>0){
|
|
|
+ let totalMoney=res.data.items[0].value+res.data.items[1].value
|
|
|
+ this.sysCapitalMoney.consume_money=res.data.items[0].value
|
|
|
+ this.sysCapitalMoney.consume_num=res.data.items[0].total_num
|
|
|
+ this.sysCapitalMoney.consume_ratio=(res.data.items[0].value/totalMoney*100).toFixed(2)
|
|
|
+ this.sysCapitalMoney.pledge_money=res.data.items[1].value
|
|
|
+ this.sysCapitalMoney.pledge_num=res.data.items[1].total_num
|
|
|
+ this.sysCapitalMoney.pledge_ratio=(res.data.items[1].value/totalMoney*100).toFixed(2)
|
|
|
+ this.sysCapitalMoney.list[0]={name: res.data.items[0].name, ratio: this.sysCapitalMoney.consume_ratio, value: this.sysCapitalMoney.consume_money, labelText: ""}
|
|
|
+ this.sysCapitalMoney.list[1]={name: res.data.items[1].name, ratio: this.sysCapitalMoney.pledge_ratio, value: this.sysCapitalMoney.pledge_money, labelText: ""}
|
|
|
+ console.log(this.sysCapitalMoney)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
// //管理员-行业统计
|
|
|
getSysIndustry(){
|