|
|
@@ -486,6 +486,10 @@ define(['app/app'], function(app) {
|
|
|
|
|
|
$scope.purchase.invoiceInfo = angular.fromJson($scope.purchase.invoiceAddress)
|
|
|
|
|
|
+ for (var i = 0; i < $scope.purchase.purchaseDetails.length; i++) {
|
|
|
+ $scope.purchase.purchaseDetails[i].currentTaxUnitPrice = $scope.purchase.purchaseDetails[i].taxUnitPrice;
|
|
|
+ $scope.purchase.purchaseDetails[i].detailTotal = $scope.purchase.purchaseDetails[i].taxUnitPrice * $scope.purchase.purchaseDetails[i].number;
|
|
|
+ }
|
|
|
}, function () {
|
|
|
$scope.error('获取订单信息请求失败');
|
|
|
});
|
|
|
@@ -561,10 +565,15 @@ define(['app/app'], function(app) {
|
|
|
} else {
|
|
|
$scope.cancelSwitch();
|
|
|
}
|
|
|
- angular.forEach($scope.purchase.purchaseDetails, function (detail) {
|
|
|
- detail.currentTaxUnitPrice = detail.taxUnitPrice;
|
|
|
- detail.detailTotal = detail.taxUnitPrice * detail.number;
|
|
|
- });
|
|
|
+ for (var i = 0; i < $scope.purchase.purchaseDetails.length; i++) {
|
|
|
+ $scope.purchase.purchaseDetails[i].currentTaxUnitPrice = $scope.purchase.purchaseDetails[i].taxUnitPrice;
|
|
|
+ $scope.purchase.purchaseDetails[i].detailTotal = $scope.purchase.purchaseDetails[i].taxUnitPrice * $scope.purchase.purchaseDetails[i].number;
|
|
|
+ }
|
|
|
+ // console.log($scope.purchase.purchaseDetails)
|
|
|
+ // angular.forEach($scope.purchase.purchaseDetails, function (detail) {
|
|
|
+ // detail.currentTaxUnitPrice = detail.taxUnitPrice;
|
|
|
+ // detail.detailTotal = detail.taxUnitPrice * detail.number;
|
|
|
+ // });
|
|
|
$scope.purchase.currentTotal = $scope.purchase.ensurePrice;
|
|
|
};
|
|
|
|