Browse Source

处理批量修改价格小数位溢出问题

yangc 8 years ago
parent
commit
e38ff889f2

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

@@ -212,9 +212,9 @@ define([ 'app/app', 'jquery-uploadify' ], function(app) {
         UASBatchPutOnPropertyServices.get(null, function (data) {
             if (data) {
                 $scope.uasBatchPutOnProperty = data;
-                $scope.uasBatchPutOnProperty.editFluctuateRate = $scope.uasBatchPutOnProperty.fluctuateRate * 100;
-                $scope.uasBatchPutOnProperty.editMaxDelivery = $scope.uasBatchPutOnProperty.maxDelivery;
-                $scope.uasBatchPutOnProperty.editMinDelivery = $scope.uasBatchPutOnProperty.minDelivery;
+                $scope.uasBatchPutOnProperty.editFluctuateRate = NumberService.mul($scope.uasBatchPutOnProperty.fluctuateRate, 100) || 100;
+                $scope.uasBatchPutOnProperty.editMaxDelivery = $scope.uasBatchPutOnProperty.maxDelivery || 1;
+                $scope.uasBatchPutOnProperty.editMinDelivery = $scope.uasBatchPutOnProperty.minDelivery || 1;
             } else {
 				$scope.uasBatchPutOnProperty = {};
                 $scope.uasBatchPutOnProperty.editFluctuateRate = 100;

+ 1 - 0
src/main/webapp/resources/view/vendor/forstore/erp/vendor_material_erp.html

@@ -295,6 +295,7 @@
 	.search-check .batch-operate .operate-content .batch-sale input {
 		width: 42px;
 		margin-right: 10px;
+		padding-right: 10px;
 	}
 	.search-check .batch-operate .operate-content .batch-sale div .com-btn-submit {
 		margin-right: 10px;

+ 1 - 0
src/main/webapp/resources/view/vendor/forstore/erp/vendor_material_unstandard_erp.html

@@ -295,6 +295,7 @@
 	.search-check .batch-operate .operate-content .batch-sale input {
 		width: 42px;
 		margin-right: 10px;
+		padding-right: 10px;
 	}
 	.search-check .batch-operate .operate-content .batch-sale div .com-btn-submit {
 		margin-right: 10px;