@ -167,6 +167,15 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
} ;
} ;
$scope . commitToCompliance = function ( ) {
$scope . commitToCompliance = function ( ) {
commonDialog . confirm ( {
title : 'Commit to Compliance' ,
content : 'Are you sure to commit ' + $scope . partner . company _name + ' to compliance? ' ,
choises : [
{ label : 'Submit' , className : 'btn-success' , key : 1 } ,
{ label : 'Cancel' , className : 'btn-warning' , key : 0 , dismiss : true }
]
} ) . then ( function ( choice ) {
if ( choice == 1 ) {
$http . get ( '/client/partner_info/compliance/files' ) . then ( function ( resp ) {
$http . get ( '/client/partner_info/compliance/files' ) . then ( function ( resp ) {
$scope . complianceFiles = resp . data ;
$scope . complianceFiles = resp . data ;
if ( $scope . complianceFiles . client _id _file == null || $scope . complianceFiles . client _bank _file == null || $scope . complianceFiles . client _company _file == null ) {
if ( $scope . complianceFiles . client _id _file == null || $scope . complianceFiles . client _bank _file == null || $scope . complianceFiles . client _company _file == null ) {
@ -185,11 +194,15 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
commonDialog . alert ( { title : 'Message' , content : '请验证邮箱后,再进行提交!' , type : 'info' } ) ;
commonDialog . alert ( { title : 'Message' , content : '请验证邮箱后,再进行提交!' , type : 'info' } ) ;
return ;
return ;
}
}
$http . post ( '/client/partner_info/compliance_audit' ) . then (
$http . post ( '/client/partner_info/compliance_audit' ) . then ( function ( ) {
commonDialog . alert ( { title : 'Success' , content : '已提交至合规,请耐心等待审核!' , type : 'info' } )
commonDialog . alert ( { title : 'Success' , content : '已提交至合规,请耐心等待审核!' , type : 'info' } ) ;
) ;
$state . reload ( ) ;
} ) ;
} ) ;
} ) ;
}
}
} )
}
} ] ) ;
} ] ) ;
app . controller ( 'clientComplianceFilesCtrl' , [ '$scope' , '$http' , '$rootScope' , 'commonDialog' , '$state' , 'Upload' , 'file' , function ( $scope , $http , $rootScope , commonDialog , $state , Upload , file ) {
app . controller ( 'clientComplianceFilesCtrl' , [ '$scope' , '$http' , '$rootScope' , 'commonDialog' , '$state' , 'Upload' , 'file' , function ( $scope , $http , $rootScope , commonDialog , $state , Upload , file ) {