Browse Source

客户对账单合计

zhuth 7 years ago
parent
commit
82880f77b6
1 changed files with 43 additions and 4 deletions
  1. 43 4
      frontend/saas-web/app/view/money/report/CustomerCheck.js

+ 43 - 4
frontend/saas-web/app/view/money/report/CustomerCheck.js

@@ -11,20 +11,25 @@ Ext.define('saas.view.money.report.CustomerCheckCheck', {
     listUrl: '/api/money/report/customercheck',
     listUrl: '/api/money/report/customercheck',
     defaultCondition: null,
     defaultCondition: null,
     reportTitle: '客户对账单',
     reportTitle: '客户对账单',
-    QueryWidth:0.25,
+    QueryWidth:0.2,
     autoLoad:false,
     autoLoad:false,
     //筛选:客户、日期(必填)
     //筛选:客户、日期(必填)
     searchItems: [ {
     searchItems: [ {
         xtype: 'customerDbfindTrigger',
         xtype: 'customerDbfindTrigger',
         name: 'pi_custname',
         name: 'pi_custname',
         fieldLabel: '客户名称',
         fieldLabel: '客户名称',
-        columnWidth: 0.25,
+        columnWidth: 0.2,
         allowBlank:false,
         allowBlank:false,
+    }, {
+        xtype: 'monthdatefield',
+        name: 'ym',
+        fieldLabel: '期初日期',
+        columnWidth: 0.2
     }, {
     }, {
         xtype: 'condatefield',
         xtype: 'condatefield',
         name: 'pi_date',
         name: 'pi_date',
         fieldLabel: '单据日期',
         fieldLabel: '单据日期',
-        columnWidth: 0.5
+        columnWidth: 0.4
     }],
     }],
 
 
     reportColumns: [
     reportColumns: [
@@ -129,5 +134,39 @@ Ext.define('saas.view.money.report.CustomerCheckCheck', {
             text: '备注',
             text: '备注',
             dataIndex: 'pd_remark',
             dataIndex: 'pd_remark',
             width: 250
             width: 250
-        }]
+        }, {
+            text: '期初应付',
+            dataIndex: 'beginamount',
+            hidden: true,
+            width: 0,
+            summaryType: 'cus',
+        }, {
+            text: '本期发生',
+            dataIndex: 'nowamount',
+            hidden: true,
+            width: 0,
+            summaryType: 'cus',
+        }, {
+            text: '本期付款',
+            dataIndex: 'nowpay',
+            hidden: true,
+            width: 0,
+            summaryType: 'cus',
+        }, {
+            text: '本期结余',
+            dataIndex: 'nowbalance',
+            hidden: true,
+            width: 0,
+            summaryType: 'cus',
+        }],
+        applyParams: function(p) {
+            var me = this,
+            viewModel = me.getViewModel(),
+            formData = viewModel.get('form'),
+            ym = formData.ym;
+    
+            return Ext.Object.merge(p, {
+                ym: ym
+            });
+        }
 });
 });