function getTempDeposit() {
var asyncErr=null;
var tempDeposits = angular.copy($scope.depositPayments);
tempDeposits.push($scope.deposit);
tempDeposit.patientuid = !!$scope.patientSelectedByWidget.patient && !!$scope.patientSelectedByWidget.patient._id && $scope.patientSelectedByWidget.patient._id || null;
tempDeposit.patientvisituid = !!$scope.patientSelectedByWidget.patient && !!$scope.patientSelectedByWidget.patient.patientvisituid && $scope.patientSelectedByWidget.patient.patientvisituid || null;
tempDeposit.denominations = $scope.pmRelation === 'CASH' && $scope.paidAmountDenomination.value || [];
tempDeposit.userdepartmentuid = $rootScope.UserContext.DepartmentUID;
tempDeposit.entypeuid = !!tempDeposit.entypeuid && tempDeposit.entypeuid || ($scope.patientSelectedByWidget.patient.patientvisitentype && $scope.patientSelectedByWidget.patient.patientvisitentype._id);
tempDeposit.isipddeposit = $scope.isipd;
tempDeposit.comments = $scope.commentSearcher;
dpCallback();
};
如何使用async.parallel发送tempDeposits数组中的每个对象?
saveHttpCaller('/billing/deposit/create', getTempDeposit(), 'MENU.BILLING.DEPOSITS');
如何在tempDeposits数组中获取每个对象?并且还想为数组中的每个对象调用API