wangning 7 years ago
commit beefaeccc0

@ -554,13 +554,13 @@ define(['angular','decimal', 'uiRouter', 'uiBootstrap', 'angularEcharts'], funct
}); });
$scope.manualSettle = function () { $scope.manualSettle = function () {
if($scope.currentSettle.locked){ if($scope.currentSettle.locked){
alert("正在清算,暂不能提现,请稍后再试!"); alert("系统执行清算任务,暂不能提现,请稍后再试!");
return; return;
} }
$scope.settle_to = $scope.params.to_date || $scope.params.maxData; $scope.settle_to = $scope.params.to_date || $scope.params.maxData;
$scope.settle_to = $filter('date')($scope.settle_to, 'yyyy-MM-dd'); $scope.settle_to = $filter('date')($scope.settle_to, 'yyyy-MM-dd');
$http.put('/client/manual_settle/today', {settle_to: $scope.settle_to}).then(function () { $http.put('/client/manual_settle/today', {settle_to: $scope.settle_to}).then(function () {
commonDialog.alert({title: 'Success', content: '提现成功', type: 'success'}); commonDialog.alert({title: 'Success', content: 'Withdraw application has been submitted', type: 'success'});
$scope.$close(); $scope.$close();
}, function (resp) { }, function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});

@ -80,7 +80,7 @@
<!--<a role="button" ui-sref="settlementlogs"><label style="font-size: smaller;color: green">--> <!--<a role="button" ui-sref="settlementlogs"><label style="font-size: smaller;color: green">-->
<!--<i class="fa fa-info" aria-hidden="true" tooltip-placement="left-bottom" uib-tooltip="Click it,show settlement logs"></i></label></a>--> <!--<i class="fa fa-info" aria-hidden="true" tooltip-placement="left-bottom" uib-tooltip="Click it,show settlement logs"></i></label></a>-->
<a role="button" ng-click="toShowUnSettledDialog()" ng-if="manual_settle&&([1]|withRole)"> <a role="button" ng-click="toShowUnSettledDialog()" ng-if="manual_settle&&([1]|withRole)">
<i class="fa fa-info-circle" uib-tooltip="我要提现" aria-hidden="true"></i></a> <i class="fa fa-info-circle" uib-tooltip="withdraw deposit" aria-hidden="true"></i></a>
<label ng-if="analysis.pre_amount != 0" style="font-size: smaller;color: grey">(preauthorised {{analysis.pre_amount}})</label> <label ng-if="analysis.pre_amount != 0" style="font-size: smaller;color: grey">(preauthorised {{analysis.pre_amount}})</label>
</span> </span>
</div> </div>

@ -8,6 +8,7 @@
</style> </style>
<section class="content"> <section class="content">
<div class="box box-primary"> <div class="box box-primary">
<div class="box-header">Select the range of withdrawals </div>
<div class="box-body"> <div class="box-body">
<div class="box-header"> <div class="box-header">
<div class="form-inline"> <div class="form-inline">
@ -35,7 +36,6 @@
</div> </div>
</div> </div>
<div class="box box-default"> <div class="box box-default">
<div class="box-header">Manual Settle</div>
<div class="box-body table-responsive"> <div class="box-body table-responsive">
<table class="table table-hover"> <table class="table table-hover">
<thead> <thead>
@ -60,7 +60,7 @@
</table> </table>
<div class="col-xs-12"> <div class="col-xs-12">
<div style="text-align: center"> <div style="text-align: center">
<a ng-class="{'disabled':settleParams.locked}"; role="button" style="margin-bottom: 25px;" class="btn btn-success btn-sm ng-scope" ng-click="manualSettle()">提现</a> <a ng-class="{'disabled':settleParams.locked}"; role="button" style="margin-bottom: 25px;" class="btn btn-success btn-sm ng-scope" ng-click="manualSettle()">Submit</a>
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save