shenjj 7 years ago
parent
commit
2ab7a39cd0

+ 2 - 0
src/main/webapp/resources/js/vendor/controllers/forstore/single_entry.js

@@ -257,6 +257,8 @@ define(['app/app', 'jquery-uploadify'], function(app) {
       $scope.objError.minPackQty = false
     }
 
+
+
     $scope.setReserve = function(num) {
       $rootScope.singleEntryInfo = true
       if (num && num.indexOf('.') > -1) {

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

@@ -260,6 +260,7 @@
                    oninput="if(value.length>6)value=value.slice(0,6)"
                    placeholder="请输入最小包装数"
                    ng-model="Regul.minPackQty"
+                   onkeyup="this.value=this.value.replace(/\D|^0/g,'')" onafterpaste="this.value=this.value.replace(/\D|^0/g,'')"
                    ng-blur="setPriceMinPackAmount(Regul.minPackQty)"
                    class="form-control inputText" maxlength="50"
                    ng-class="objError.minPackQty ? 'danger' : '' "