商户合规材料

master
liuxinxin 5 years ago
parent 2668a3b9b8
commit 20f6082399

@ -15,6 +15,20 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
return $http.get('/compliance/audit/compliance/clientViewFiles/'+ $stateParams.client_moniker);
}]
}
}).state('partner_detail', {
url: '/{client_moniker}/partner_detail',
templateUrl: '/static/payment/partner/templates/partner_detail_for_compliance.html',
controller: 'partnerComplianceCompanyDetail',
resolve: {
file: ['$http','$stateParams',function ($http, $stateParams) {
return $http.get('/compliance/audit/compliance/clientViewFiles/'+ $stateParams.client_moniker);
}]
}
}).state('compliance_for_audit_detail', {
url: '/partner/complianceForAudit',
templateUrl: '/static/payment/partner/templates/compliance_auth.html',
controller: 'partnerComplianceAuditCtrl',
})
}]);
@ -38,6 +52,8 @@ 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) {
$scope.file = file.data || {};
$scope.partner = $scope.file.client;
$scope.partner.description = {};
$scope.passPartnerComplianceFiles = function () {
$http.put('/compliance/audit/'+$scope.file.client.client_id+'/pass/complianceFile',{}).then(function (resp) {
@ -47,16 +63,38 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
})
}
$scope.refusePartnerComplianceFiles = function (obj) {
var partner = angular.copy(obj);
$uibModal.open({
templateUrl: '/static/payment/partner/templates/refuse_reason.html',
controller: 'refusePartnerComplianceFilesCtrl',
resolve: {
partner: partner
}
})
};
}]);
app.controller('refusePartnerComplianceFilesCtrl', ['$scope', '$http', '$state', 'partner', function ($scope, $http, $state, partner) {
$scope.partner = angular.copy(partner);
$scope.partner.description = {};
$scope.refusePartnerComplianceFiles = function () {
$http.put('/compliance/audit/'+$scope.file.client.client_id+'/refuse/complianceFile',{}).then(function (resp) {
$scope.reload();
var a = $scope.partner.description;
$http.put('/compliance/audit/'+$scope.partner.client_id+'/refuse/complianceFile',{description:$scope.partner.description}).then(function (resp) {
$state.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('partnerComplianceAuditCtrl', ['$rootScope','$state','$stateParams', function ($rootScope,$state,$stateParams) {
if ($state.is('compliance_for_audit_detail')){
$state.go('partner_detail');
}
}]);

@ -13,7 +13,7 @@
<a ui-sref="partner_detail({client_moniker:partner.client_moniker})">Partner Detail</a>
</li>
<li ui-sref-active="active">
<a ui-sref="compliance_detail({client_moniker:partner.client_moniker})">Compliance_audt</a>
<a ui-sref="compliance_detail({client_moniker:partner.client_moniker})">Compliance_Audit</a>
</li>
</ul>
<div class="tab-content" ui-view>
@ -26,7 +26,7 @@
<p class="form-control-static">
<span ng-if="file.file_company.status==0">待审核</span>
<span ng-if="file.file_company.status==1">通过</span>
<span ng-if="file.file_company.status==2">打回</span>
<span ng-if="file.file_company.status==2">打回<p class="small text-danger" ng-if="file.file_company.description"> 打回原因:({{file.file_company.description}}</p></span>
</p>
</div>
</div>
@ -39,15 +39,6 @@
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" ng-if="file.file_company.description">打回原因:</label>
<div class="col-sm-10">
<p class="form-control-static">
<span>{{file.file_company.description}}</span>
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Company Name</label>
@ -80,7 +71,7 @@
<div class="panel-body">
<div class="form-horizontal">
<div class="form-group">
<label class="control-label col-sm-2">* bank statement</label>
<label class="control-label col-sm-2">* bank statement<span ng-if="file.client_bank_file[0].status == 1" class="small text-success">(已通过)</span><span ng-if="file.client_bank_file[0].status != 1" class="small text-danger">(待审核)</span></label>
<div class="col-sm-4">
<table>
<tbody>
@ -89,7 +80,6 @@
<td><a target="_blank" ng-href="{{file_src.file_value}}">
<img class="col-sm-6" style="border: 1px solid #ddd" ng-src="{{file_src.file_value}}" class="col-sm-8" onerror="this.src='https://static.easyicon.net/preview/118/1184255.gif'">
</a>
<button class="btn btn-success" type="button" ng-if="file_src.status == 1">已通过审核</button>
</td>
</tr>
</tbody>
@ -99,7 +89,7 @@
</div>
<div class="form-group">
<label class="control-label col-sm-2">* Certificate of Registration</label>
<label class="control-label col-sm-2">* Certificate of Registration<span ng-if="file.client_company_file[0].status == 1" class="small text-success">(已通过)</span><span ng-if="file.client_company_file[0].status != 1" class="small text-danger">(待审核)</span></label>
<div class="col-sm-4">
<table>
<tbody>
@ -108,7 +98,6 @@
<td><a target="_blank" ng-href="{{file_src.file_value}}">
<img class="col-sm-6" style="border: 1px solid #ddd" ng-src="{{file_src.file_value}}" class="col-sm-8" onerror="this.src='https://static.easyicon.net/preview/118/1184255.gif'">
</a>
<button class="btn btn-success" type="button" ng-if="file_src.status == 1">已通过审核</button>
</td>
</tr>
</tbody>
@ -117,7 +106,7 @@
</div>
<div class="form-group">
<label class="control-label col-sm-2">* ID </label>
<label class="control-label col-sm-2">* ID <span ng-if="file.client_id_file[0].status == 1" class="small text-success">(已通过)</span><span ng-if="file.client_id_file[0].status != 1" class="small text-danger">(待审核)</span></label>
<div class="col-sm-4">
<table>
<tbody>
@ -126,7 +115,6 @@
<td><a target="_blank" ng-href="{{file_src.file_value}}">
<img class="col-sm-6" style="border: 1px solid #ddd" ng-src="{{file_src.file_value}}" class="col-sm-8" onerror="this.src='https://static.easyicon.net/preview/118/1184255.gif'">
</a>
<button class="btn btn-success" type="button" ng-if="file_src.status == 1">已通过审核</button>
</td>
</tr>
</tbody>
@ -135,7 +123,7 @@
</div>
<div class="form-group">
<label class="control-label col-sm-2">* Agreement</label>
<label class="control-label col-sm-2">* Agreement<span ng-if="file.client_agree_file[0].status == 1" class="small text-success">(已通过)</span><span ng-if="file.client_agree_file[0].status != 1" class="small text-danger">(待审核)</span></label>
<div class="col-sm-4">
<table>
<tbody>
@ -144,7 +132,6 @@
<td><a target="_blank" ng-href="{{file_src.file_value}}">
<img class="col-sm-6" style="border: 1px solid #ddd" ng-src="{{file_src.file_value}}" class="col-sm-8" onerror="this.src='https://static.easyicon.net/preview/118/1184255.gif'">
</a>
<button class="btn btn-success" type="button" ng-if="file_src.status == 1">已通过审核</button>
</td>
</tr>
</tbody>

@ -51,7 +51,7 @@
<a ui-sref="partner_detail({client_moniker:partner.client_moniker})">Partner Detail</a>
</li>
<li ui-sref-active="active">
<a ui-sref="compliance_detail({client_moniker:partner.client_moniker})">Compliance_audt</a>
<a ui-sref="compliance_detail({client_moniker:partner.client_moniker})">Compliance_Audit</a>
</li>
</ul>
<div class="tab-content" ui-view>
@ -205,57 +205,6 @@
<p class="form-control-static" ng-bind="partner.referrer_name"></p>
</div>
</div>
<!--<div class="form-group">-->
<!--<label class="control-label col-sm-2">BD User</label>-->
<!--<div class="col-sm-10">-->
<!--<p class="form-control-static">-->
<!--<span ng-bind="partner.bd_user_name||'Not Bind'"></span>-->
<!--<a role="button" ng-click="bindBDUser()" ng-if="('00010'|withRole) && !partner.parent_client_id">Bind</a>-->
<!--</p>-->
<!--</div>-->
<!--</div>-->
<div class="form-group">
<label class="control-label col-sm-2">BD Commission Policy</label>
<div class="col-sm-8">
<!--<p class="form-control-static">-->
<!--<span ng-bind="partner.bd_user_name||'Not Bind'"></span>-->
<!--<a role="button" ng-click="bindBDUser()" ng-if="('00010'|withRole) && !partner.parent_client_id">Bind</a>-->
<!--</p>-->
<table class="table table-bordered">
<thead>
<tr>
<th>Start Date</th>
<th>End Date</th>
<th>BD Name</th>
<th>Proportion</th>
<th ng-if="('00010'|withRole) || (('1000000000000'|withRole) && partner.show_all_permission)">
Operation
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="bd in partner.client_bds">
<td ng-bind="bd.start_date|date:'yyyy-MM-dd'"></td>
<td ng-bind="bd.end_date|date:'yyyy-MM-dd'"></td>
<td ng-bind="bd.bd_name"></td>
<td ng-bind="bd.proportion"></td>
<td ng-if="('00010'|withRole) || (('1000000000000'|withRole) && partner.show_all_permission) ">
<a role="button" ng-click="editBDUser()" ng-if="bd.end_date==null">
<i class="fa fa-pencil-square-o"></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-2">
<p class="form-control-static">
<!--<span ng-bind="partner.bd_user_name||'Not Bind'"></span>-->
<a role="button" ng-click="bindBDUser()"
ng-if="('00010'|withRole)">New Policy +</a>
</p>
</div>
</div>
</div>
</div>
</div>
@ -285,16 +234,6 @@
<div class="col-sm-8">
<p class="form-control-static">
<span ng-bind="partner.contact_email"></span>
<a ng-if="(partner.approve_result==1) || (partner.approve_result == 2 && (partner.source==1 || partner.source==2))"
role="button"
ng-click="resendApproveEmail()">
<i class="fa fa-envelope"></i> Resend Email
</a>
<span ng-if="('10'|withRole)">
<i style="cursor: pointer" ng-click="addSub()" ng-if="!partner.unsubscribe"
class="fa fa-star text-yellow"></i>
<i style="cursor: pointer" ng-click="removeSub()"
ng-if="partner.unsubscribe" class="fa fa-star-o text-yellow"></i>
</span>
</p>
<p class="description-text text-red" ng-bind="partner.same_email"></p>

Loading…
Cancel
Save