|
|
|
@ -6,10 +6,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
|
|
|
|
|
url: '/partner/apply',
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/partners_apply.html',
|
|
|
|
|
controller: 'partnerApplyCtrl'
|
|
|
|
|
}).state('partner_compliance_auth', {
|
|
|
|
|
url: '/partners/complianceForClient',
|
|
|
|
|
templateUrl: 'static/sys/templates/partner_compliance_for_client.html',
|
|
|
|
|
controller: 'compliancePartnerForClientCtrl'
|
|
|
|
|
}).state('partner_apply.partner_application', {
|
|
|
|
|
url: '/application',
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/partner_application.html',
|
|
|
|
@ -23,37 +19,8 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
|
|
|
|
|
return $http.get('/partners/application/' + $stateParams.client_apply_id);
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
}).state('partner_apply.compliance_detail', {
|
|
|
|
|
url: '/{client_id}/compliance_detail',
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/client_compliance_to_auth.html',
|
|
|
|
|
controller: 'partnerComplianceCompanyDetail',
|
|
|
|
|
resolve: {
|
|
|
|
|
file: ['$http','$stateParams',function ($http, $stateParams) {
|
|
|
|
|
return $http.get('/compliance/audit/compliance/clientViewFiles/'+ $stateParams.client_id);
|
|
|
|
|
}]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('compliancePartnerForClientCtrl', ['$scope', '$sce', '$http', '$filter', '$uibModal', 'businessStructuresMap', 'industryMap', 'stateMap', 'sectorMap', 'countryMap',
|
|
|
|
|
function ($scope, $sce, $http, $filter, $uibModal, businessStructuresMap, industryMap, stateMap, sectorMap, countryMap) {
|
|
|
|
|
$scope.pagination = {};
|
|
|
|
|
$scope.industries = industryMap.configs()
|
|
|
|
|
$scope.states = stateMap.configs();
|
|
|
|
|
$scope.countries = countryMap.configs();
|
|
|
|
|
$scope.params = {};
|
|
|
|
|
debugger;
|
|
|
|
|
$scope.loadClientCompliance = function (page) {
|
|
|
|
|
var params = angular.copy($scope.params);
|
|
|
|
|
params.page = page || $scope.pagination.page || 1;
|
|
|
|
|
$http.get('/compliance/audit/listClientCompliances', {params: params}).then(function (resp) {
|
|
|
|
|
debugger;
|
|
|
|
|
$scope.compliances = resp.data.data;
|
|
|
|
|
$scope.pagination = resp.data.pagination;
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
$scope.loadClientCompliance(1);
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('partnerApplyCtrl', ['$rootScope','$state', function ($rootScope,$state) {
|
|
|
|
|
if ($state.is('partner_apply')){
|
|
|
|
|
$state.go('.partner_application');
|
|
|
|
@ -126,7 +93,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('partnerApplicationDetailCtrl', ['$rootScope', '$scope', '$http', '$state', '$uibModal', 'commonDialog', 'partner', function ($rootScope, $scope, $http, $state, $uibModal, commonDialog, partner) {
|
|
|
|
|
$scope.partner = partner.data;
|
|
|
|
|
|
|
|
|
@ -196,26 +162,6 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
app.controller('partnerComplianceCompanyDetail', ['$rootScope', '$scope', '$http', '$state', '$uibModal', 'commonDialog', 'file', function ($rootScope, $scope, $http, $state, $uibModal, commonDialog, file) {
|
|
|
|
|
debugger;
|
|
|
|
|
$scope.file = file.data || {};
|
|
|
|
|
|
|
|
|
|
/*未完成*/
|
|
|
|
|
$scope.passPartnerComplianceFiles = function () {
|
|
|
|
|
$http.put('/compliance/audit/'+ $scope.file.client.client_id +'/pass/complianceFile',{}).then(function (resp) {
|
|
|
|
|
$scope.reload();
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/upload_payment_logo', {logo_url: $scope.partner.logo_url})
|
|
|
|
|
*/
|
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.controller('passApplicationCtrl', ['$scope', '$http', '$state', 'partner', function ($scope, $http, $state, partner) {
|
|
|
|
|
$scope.partner = angular.copy(partner);
|
|
|
|
|
$scope.submit = function (form) {
|
|
|
|
|