Browse Source

库存数量金额字段顺序调整

zhouy 7 years ago
parent
commit
899b841131
1 changed files with 13 additions and 13 deletions
  1. 13 13
      frontend/saas-web/app/view/document/product/BasePanel.js

+ 13 - 13
frontend/saas-web/app/view/document/product/BasePanel.js

@@ -94,6 +94,17 @@ Ext.define('saas.view.document.product.BasePanel', {
             text : "类型", 
             dataIndex : "pr_kind", 
             width : 110.0
+        },{
+            text : "库存", 
+            dataIndex : "po_onhand",
+            xtype: 'numbercolumn',
+            width : 120.0,
+            renderer : function(v) {
+                var arr = (v + '.').split('.');
+                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);
+            }
         },{
             text : "单位", 
             dataIndex : "pr_unit", 
@@ -102,7 +113,7 @@ Ext.define('saas.view.document.product.BasePanel', {
             text : "标准定价(元)", 
             dataIndex : "pr_standardprice",
             xtype: 'numbercolumn',
-            width : 130.0,
+            width : 120.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
@@ -110,21 +121,10 @@ Ext.define('saas.view.document.product.BasePanel', {
                 return Ext.util.Format.number(v, format);
             }
         },  {
-            text : "库存", 
-            dataIndex : "po_onhand",
-            xtype: 'numbercolumn',
-            width : 120.0,
-            renderer : function(v) {
-                var arr = (v + '.').split('.');
-                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);
-            }
-        }, {
             text : "最新采购价(元)", 
             dataIndex : "pr_purcprice",
             xtype: 'numbercolumn',
-            width : 140.0,
+            width : 120.0,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
                 var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');