|
|
|
@ -47,6 +47,8 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$uibModal.open({
|
|
|
|
|
templateUrl: '/static/analysis/templates/settle_tasks_customized_task_dialog.html',
|
|
|
|
|
controller: 'newCustomizedSettleDialogCtrl'
|
|
|
|
|
}).result.then(function () {
|
|
|
|
|
commonDialog.alert({type: 'success', title: 'Success', content: 'Settle Submitted'})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
$scope.checkProgressStatus = function () {
|
|
|
|
@ -248,7 +250,7 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$scope.errorMsg = 'Already Submitting'
|
|
|
|
|
}
|
|
|
|
|
$scope.submitting = true
|
|
|
|
|
if(!$scope.task.amount || $scope.task.amount<0){
|
|
|
|
|
if (!$scope.task.amount || $scope.task.amount < 0) {
|
|
|
|
|
$scope.errorMsg = 'Invalid amount'
|
|
|
|
|
}
|
|
|
|
|
$scope.errorMsg = null
|
|
|
|
@ -256,10 +258,10 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
client_moniker: $scope.task.client_moniker,
|
|
|
|
|
amount: $scope.task.amount
|
|
|
|
|
}
|
|
|
|
|
$http.post('/sys/settle_tasks/customized_settle', data).then(function (){
|
|
|
|
|
$http.post('/sys/settle_tasks/customized_settle', data).then(function () {
|
|
|
|
|
$scope.task = {}
|
|
|
|
|
$scope.$dismiss()
|
|
|
|
|
},function (resp){
|
|
|
|
|
$scope.$close('OK')
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
$scope.errorMsg = resp.data.message
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|