|
|
@ -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'});
|
|
|
|