Browse Source

首页实时数据

zhuth 7 years ago
parent
commit
df3a1cf0de

+ 5 - 5
frontend/saas-web/app/view/purchase/purchase/QueryPanel.js

@@ -202,7 +202,7 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
             xtype: 'numbercolumn',
             width: 120, 
             renderer : function(v) {
-            return Ext.util.Format.number(v, '0');
+                return Ext.util.Format.number(v, '0');
             }
         }, {
             text: '物料编号',
@@ -218,7 +218,7 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
             width: 180
         }, {
             text: '单位',
-            dataIndex: 'pr_spec',
+            dataIndex: 'pr_unit',
             width: 100
         },{
             text: '采购数量',
@@ -232,7 +232,8 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
                 return Ext.util.Format.number(v, format);
             },
         }, {
-            text: '交货日期',
+            // text: '交货日期',
+            text: '需求日期',
             dataIndex: 'pd_delivery',
             xtype: 'datecolumn',
             width: 200
@@ -243,7 +244,7 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
             width: 100,
             renderer : function(v) {
                 var arr = (v + '.').split('.');
-                var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
+                var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
                 var format = '0,000.' + xr.join();
                 return Ext.util.Format.number(v, format);
             }
@@ -269,7 +270,6 @@ Ext.define('saas.view.purchase.purchase.QueryPanel', {
         },{
             text: '备注',
             dataIndex: 'pd_remark',
-            xtype: 'numbercolumn',
             width: 250
         }]
     }

+ 1 - 7
frontend/saas-web/app/view/purchase/purchaseIn/QueryPanel.js

@@ -190,13 +190,7 @@ Ext.define('saas.view.purchase.purchaseIn.QueryPanel', {
         },{
             text: '单位',
             dataIndex: 'pr_unit',
-            width: 120,
-            renderer : function(v) {
-                var arr = (v + '.').split('.');
-                var xr = (new Array(arr[1].length > 8 ? 8 : arr[1].length)).fill('0');
-                var format = '0,000.' + xr.join();
-                return Ext.util.Format.number(v, format);
-            },
+            width: 120
         },{
             text: '数量',
             dataIndex: 'pd_inqty',

+ 6 - 3
frontend/saas-web/app/view/sale/sale/QueryPanel.js

@@ -162,20 +162,23 @@ Ext.define('saas.view.sale.sale.QueryPanel', {
             width: 200
         }, {
             text: '客户名称',
-            dataIndex: 'sa_cuname',
+            dataIndex: 'sa_custname',
             width: 120
         }, {
             text: '明细序号',
             dataIndex: 'sd_detno',
             xtype: 'numbercolumn',
-            width: 120
+            width: 120,
+            renderer : function(v) {
+                return Ext.util.Format.number(v, '0');
+            }
         }, {
             text: '物料编号',
             dataIndex: 'sd_prodcode',
             width: 120
         }, {
             text: '物料名称',
-            dataIndex: 'pe_detail',
+            dataIndex: 'pr_detail',
             width: 120
         }, {
             text: '物料规格',