|
|
@ -47,6 +47,18 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
"3": "已发送催促邮件"
|
|
|
|
"3": "已发送催促邮件"
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var amountSectionMap = {
|
|
|
|
|
|
|
|
"0-500": "0-500",
|
|
|
|
|
|
|
|
"500-1000": "500-1000",
|
|
|
|
|
|
|
|
"1000-1500": "1000-1500",
|
|
|
|
|
|
|
|
"1500-2000": "1500-2000",
|
|
|
|
|
|
|
|
"2000-2500": "2000-2500",
|
|
|
|
|
|
|
|
"2500-3000": "2500-3000",
|
|
|
|
|
|
|
|
"3000-3500": "3000-3500",
|
|
|
|
|
|
|
|
"3500-4000": "3500-4000",
|
|
|
|
|
|
|
|
"4000-4500": "4000-4500"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var app = angular.module('riskBusinessApp', ['ui.router']);
|
|
|
|
var app = angular.module('riskBusinessApp', ['ui.router']);
|
|
|
|
app.config(['$stateProvider', function ($stateProvider) {
|
|
|
|
app.config(['$stateProvider', function ($stateProvider) {
|
|
|
|
$stateProvider.state('analysis_monitoring.risk_business', {
|
|
|
|
$stateProvider.state('analysis_monitoring.risk_business', {
|
|
|
@ -80,6 +92,7 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
$scope.orderTypes = orderTypesMap;
|
|
|
|
$scope.orderTypes = orderTypesMap;
|
|
|
|
$scope.resultTypes = resultTypeSearchMap;
|
|
|
|
$scope.resultTypes = resultTypeSearchMap;
|
|
|
|
$scope.industries = industryMap.configs();
|
|
|
|
$scope.industries = industryMap.configs();
|
|
|
|
|
|
|
|
$scope.amountSection = amountSectionMap;
|
|
|
|
$scope.pagination = {};
|
|
|
|
$scope.pagination = {};
|
|
|
|
$scope.params = {};
|
|
|
|
$scope.params = {};
|
|
|
|
|
|
|
|
|
|
|
@ -89,6 +102,11 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
params.page = page || $scope.pagination.page || 1;
|
|
|
|
params.page = page || $scope.pagination.page || 1;
|
|
|
|
params.replyEmailDate = $filter('date')(params.replyEmailDate, 'yyyy-MM-dd');
|
|
|
|
params.replyEmailDate = $filter('date')(params.replyEmailDate, 'yyyy-MM-dd');
|
|
|
|
params.receiveEmailDate = $filter('date')(params.receiveEmailDate, 'yyyy-MM-dd');
|
|
|
|
params.receiveEmailDate = $filter('date')(params.receiveEmailDate, 'yyyy-MM-dd');
|
|
|
|
|
|
|
|
if (params.section != null) {
|
|
|
|
|
|
|
|
var sectionArray = params.section.split('-');
|
|
|
|
|
|
|
|
params.startAmount = sectionArray[0];
|
|
|
|
|
|
|
|
params.endAmount = sectionArray[1];
|
|
|
|
|
|
|
|
}
|
|
|
|
$http.get('/risk/business/events', {params: params}).then(function (resp) {
|
|
|
|
$http.get('/risk/business/events', {params: params}).then(function (resp) {
|
|
|
|
$scope.riskEvents = resp.data.data;
|
|
|
|
$scope.riskEvents = resp.data.data;
|
|
|
|
$scope.pagination = resp.data.pagination;
|
|
|
|
$scope.pagination = resp.data.pagination;
|
|
|
@ -323,6 +341,22 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
|
|
|
|
type: 'error'
|
|
|
|
type: 'error'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$scope.partnerParam = {};
|
|
|
|
|
|
|
|
$scope.loadParnters = function() {
|
|
|
|
|
|
|
|
$scope.partnerParam.sub_merchant_id = $scope.riskEvent.sub_merchant_id;
|
|
|
|
|
|
|
|
$http.get('/risk/business/partners', {params: $scope.partnerParam}).then(function (resp) {
|
|
|
|
|
|
|
|
$scope.partners = resp.data;
|
|
|
|
|
|
|
|
$scope.riskEvent.client_moniker = $scope.partners[0].client_moniker;
|
|
|
|
|
|
|
|
if ($scope.partners != null && $scope.partners.length > 1 && $scope.riskEvent.order_type != 5)
|
|
|
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
|
|
|
|
title: 'Warning',
|
|
|
|
|
|
|
|
content: '该微信子商户号下有多个商户,是否将调单类型改为通用号调单?'
|
|
|
|
|
|
|
|
}).then(function () {
|
|
|
|
|
|
|
|
$scope.riskEvent.order_type = 5 + "";
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|