|
|
|
@ -23,6 +23,7 @@ define(['angular', 'uiBootstrap', 'uiRouter', 'angularEcharts','./transaction/an
|
|
|
|
if (!$scope.params.onlyGroup){
|
|
|
|
if (!$scope.params.onlyGroup){
|
|
|
|
$scope.loadPartnersInTypes();
|
|
|
|
$scope.loadPartnersInTypes();
|
|
|
|
$scope.doAnalysis();
|
|
|
|
$scope.doAnalysis();
|
|
|
|
|
|
|
|
$scope.loadTradePartnersBySettlementCycle();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (groupBD == 'all') {
|
|
|
|
if (groupBD == 'all') {
|
|
|
|
@ -36,6 +37,7 @@ define(['angular', 'uiBootstrap', 'uiRouter', 'angularEcharts','./transaction/an
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$scope.loadPartnersInTypes();
|
|
|
|
$scope.loadPartnersInTypes();
|
|
|
|
$scope.doAnalysis();
|
|
|
|
$scope.doAnalysis();
|
|
|
|
|
|
|
|
$scope.loadTradePartnersBySettlementCycle();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.loadRoyalpayindustry = function () {
|
|
|
|
$scope.loadRoyalpayindustry = function () {
|
|
|
|
$http.get('/static/data/royalpayindustry.json').then(function (resp) {
|
|
|
|
$http.get('/static/data/royalpayindustry.json').then(function (resp) {
|
|
|
|
@ -177,42 +179,47 @@ define(['angular', 'uiBootstrap', 'uiRouter', 'angularEcharts','./transaction/an
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.loadTradePartnersBySettlementCycle = function () {
|
|
|
|
$scope.loadTradePartnersBySettlementCycle = function () {
|
|
|
|
var partnersBySettlementCycle = {
|
|
|
|
var params = angular.copy($scope.params);
|
|
|
|
chart: {
|
|
|
|
$http.get('/analysis/partners/settlement', {params:params}).then(function (resp) {
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
trigger: 'item',
|
|
|
|
|
|
|
|
formatter :"{a} {b} : {c} ({d}%)"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
color: colors
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [{
|
|
|
|
|
|
|
|
basic: {
|
|
|
|
|
|
|
|
name: '周期', type: 'pie',
|
|
|
|
|
|
|
|
radius: '60%',
|
|
|
|
|
|
|
|
center: ['50%', '40%'],
|
|
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
emphasis: {
|
|
|
|
|
|
|
|
shadowBlur: 10,
|
|
|
|
|
|
|
|
shadowOffsetX: 0,
|
|
|
|
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
normal : {
|
|
|
|
|
|
|
|
label : {
|
|
|
|
|
|
|
|
position : 'outer',
|
|
|
|
|
|
|
|
formatter :"{a} {b} : {c} ({d}%)"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
column: {key: 'client_count', name: 'settlement_cycle'}
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$http.get('/analysis/partners/settlement', {params:{}}).then(function (resp) {
|
|
|
|
|
|
|
|
$scope.settlementCycle = resp.data;
|
|
|
|
$scope.settlementCycle = resp.data;
|
|
|
|
$scope.partners_settlement_chart = chartParser.parse(partnersBySettlementCycle, resp.data);
|
|
|
|
$scope.partners_settlement_chart = chartParser.parse(partnersBySettlementCycle, resp.data);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
$scope.loadTradePartnersBySettlementCycle();
|
|
|
|
$scope.loadTradePartnersBySettlementCycle();
|
|
|
|
|
|
|
|
$scope.chooseThirtyDays = function () {
|
|
|
|
|
|
|
|
$scope.params.recent_client = true;
|
|
|
|
|
|
|
|
$scope.loadTradePartnersBySettlementCycle();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
var partnersBySettlementCycle = {
|
|
|
|
|
|
|
|
chart: {
|
|
|
|
|
|
|
|
tooltip: {
|
|
|
|
|
|
|
|
trigger: 'item',
|
|
|
|
|
|
|
|
formatter :"{a} {b} : {c} ({d}%)"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
color: colors
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
series: [{
|
|
|
|
|
|
|
|
basic: {
|
|
|
|
|
|
|
|
name: '周期', type: 'pie',
|
|
|
|
|
|
|
|
radius: '60%',
|
|
|
|
|
|
|
|
center: ['50%', '40%'],
|
|
|
|
|
|
|
|
itemStyle: {
|
|
|
|
|
|
|
|
emphasis: {
|
|
|
|
|
|
|
|
shadowBlur: 10,
|
|
|
|
|
|
|
|
shadowOffsetX: 0,
|
|
|
|
|
|
|
|
shadowColor: 'rgba(0, 0, 0, 0.5)'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
normal : {
|
|
|
|
|
|
|
|
label : {
|
|
|
|
|
|
|
|
position : 'outer',
|
|
|
|
|
|
|
|
formatter :"{a} {b} : {c} ({d}%)"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
column: {key: 'client_count', name: 'clean_days'}
|
|
|
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
};
|
|
|
|
/*var partnerTypesConfig = function (legend) {
|
|
|
|
/*var partnerTypesConfig = function (legend) {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
chart: {
|
|
|
|
chart: {
|
|
|
|
|