|
|
@@ -1626,6 +1626,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
|
|
|
//确认送样
|
|
|
$scope.ok = function (form) {
|
|
|
+ $scope.loading = true;
|
|
|
var files = form.attachFile.$viewValue, file = files && files.length > 0 ? files[0] : null;
|
|
|
$upload.upload({
|
|
|
url: 'sale/sample/' + $scope.sampleItem.id + '/send',
|
|
|
@@ -1635,8 +1636,10 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
json: $scope.sampleItem.sampleSend
|
|
|
}
|
|
|
}).success(function(data){
|
|
|
+ $scope.loading = false;
|
|
|
$modalInstance.close('success');
|
|
|
}).error(function(data){
|
|
|
+ $scope.loading = false;
|
|
|
toaster.pop('danger', '错误', data);
|
|
|
});
|
|
|
};
|