Browse Source

【bug】其他出库单数量保留三位小数

zhuth 7 years ago
parent
commit
40ce32c942
1 changed files with 3 additions and 3 deletions
  1. 3 3
      frontend/saas-web/app/view/stock/otherOut/FormPanel.js

+ 3 - 3
frontend/saas-web/app/view/stock/otherOut/FormPanel.js

@@ -164,19 +164,19 @@ Ext.define('saas.view.stock.otherOut.FormPanel', {
                 width: 110.0,
                 editor : {
                     xtype : "numberfield",
-                    decimalPrecision: 8,
+                    decimalPrecision: 3,
                     minValue:0
                 },
                 renderer : function(v) {
                     var arr = (v + '.').split('.');
-                    var xr = (new Array(arr[1].length)).fill('0');
+                    var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
                     var format = '0.' + xr.join('');
                     return Ext.util.Format.number(v, format);
                 },
                 summaryType: 'sum',
                 summaryRenderer: function(v) {
                     var arr = (v + '.').split('.');
-                    var xr = (new Array(arr[1].length)).fill('0');
+                    var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
                     var format = '0.' + xr.join('');
                     return Ext.util.Format.number(v, format);
                 }