Browse Source

采购序号、销售序号去除小数点,为0时不显示

zhuth 7 years ago
parent
commit
1d38e6f45e

+ 6 - 2
frontend/saas-web/app/view/purchase/purchaseIn/FormPanel.js

@@ -278,10 +278,14 @@ Ext.define('saas.view.purchase.purchaseIn.FormPanel', {
                 dataIndex : "pd_ordercode", 
                 width : 120.0
             },{
-                text : "采购序号", 
+                text : "采购序号",
                 dataIndex : "pd_orderdetno", 
                 xtype : "numbercolumn",
-                width : 120.0
+                width : 120.0,
+                format: '0000',
+                renderer: function(v) {
+                    return v ? v : null;
+                }
             }
         ]
     }, {

+ 5 - 1
frontend/saas-web/app/view/purchase/purchaseOut/FormPanel.js

@@ -243,7 +243,11 @@ Ext.define('saas.view.purchase.purchaseOut.FormPanel', {
                 text : "采购序号", 
                 dataIndex : "pd_orderdetno", 
                 xtype : "numbercolumn",
-                flex:1
+                flex:1,
+                format: '0000',
+                renderer: function(v) {
+                    return v ? v : null;
+                }
             }
         ]
     }, {

+ 5 - 1
frontend/saas-web/app/view/sale/saleIn/FormPanel.js

@@ -186,7 +186,11 @@ Ext.define('saas.view.sale.saleIn.FormPanel', {
                 text : "销售序号", 
                 dataIndex : "pd_orderdetno", 
                 xtype : "numbercolumn",
-                flex:1
+                flex:1,
+                format: '0000',
+                renderer: function(v) {
+                    return v ? v : null;
+                }
             }
         ]
     }, {

+ 5 - 1
frontend/saas-web/app/view/sale/saleOut/FormPanel.js

@@ -196,7 +196,11 @@ Ext.define('saas.view.sale.saleout.FormPanel', {
                 text : "销售序号", 
                 dataIndex : "pd_orderdetno", 
                 xtype : "numbercolumn",
-                width : 120.0
+                width : 120.0,
+                format: '0000',
+                renderer: function(v) {
+                    return v ? v : null;
+                }
             }
         ]
     }, {