Browse Source

销售明细实际出货数实际出货金额

rainco 7 years ago
parent
commit
792d05e39f
1 changed files with 14 additions and 1 deletions
  1. 14 1
      frontend/saas-web/app/view/sale/report/Sale.js

+ 14 - 1
frontend/saas-web/app/view/sale/report/Sale.js

@@ -192,7 +192,7 @@ Ext.define('saas.view.sale.report.Sale', {
         }
     }, {
         text: '出货数量',
-        dataIndex: 'sd_sendqty',
+        dataIndex: 'sd_pdsendqty',
         exportFormat: 'Quantity',
         xtype: 'numbercolumn',
         renderer : function(v) {
@@ -201,6 +201,19 @@ Ext.define('saas.view.sale.report.Sale', {
             var format = '0.' + xr.join('');
             return Ext.util.Format.number(v, format);
         }
+    }, {
+        text: '出货金额',
+        dataIndex: 'sd_pdsendqtytotal',
+        exportFormat: 'Amount',
+        width: 110,
+        xtype: 'numbercolumn',
+        renderer: function(v) {
+            var arr = (v + '.').split('.');
+            var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
+            var format = '0,000.' + xr.join('');
+            return Ext.util.Format.number(v, format);
+        }
+
     }, {
         text : "备注", 
         dataIndex : "sd_remark",