Эх сурвалжийг харах

处理分段单价获取字段不正确的问题。

yujia 7 жил өмнө
parent
commit
d2cfc8fc01

+ 1 - 1
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_materialCtrl.js

@@ -1903,7 +1903,7 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
 			product.selected = true;
 			product.selected = true;
 			product.averMonthSalePrice = (product && product.price) ? product.price : 0;
 			product.averMonthSalePrice = (product && product.price) ? product.price : 0;
 			var goodQtyPrice = {start: $scope.goods.editMinBuyQty, end: $scope.maxReserve};
 			var goodQtyPrice = {start: $scope.goods.editMinBuyQty, end: $scope.maxReserve};
-			var price = (((data && data.price) ? data.price : 0) *
+			var price = (((product && product.price) ? product.price : 0) *
 			($scope.uasBatchPutOnProperty.fluctuateRate ? $scope.uasBatchPutOnProperty.fluctuateRate : 1));
 			($scope.uasBatchPutOnProperty.fluctuateRate ? $scope.uasBatchPutOnProperty.fluctuateRate : 1));
 			if ('MAINLAND' == $scope.store.enType) {
 			if ('MAINLAND' == $scope.store.enType) {
 				goodQtyPrice.rMBPrice = $filter('formateNumber')(price, 6);
 				goodQtyPrice.rMBPrice = $filter('formateNumber')(price, 6);