|
|
@@ -0,0 +1,62 @@
|
|
|
+/**
|
|
|
+ * 应收总账
|
|
|
+ */
|
|
|
+Ext.define('saas.view.money.report.TotalRecDetail', {
|
|
|
+ extend: 'saas.view.core.report.ReportPanel',
|
|
|
+ xtype: 'monry-report-totalrecdetail',
|
|
|
+
|
|
|
+ controller: 'money-report-totalrecdetail',
|
|
|
+ viewModel: 'money-report-totalrecdetail',
|
|
|
+
|
|
|
+ viewName: 'money-report-totalrecdetail',
|
|
|
+
|
|
|
+ groupField: null,
|
|
|
+ // listUrl: '/api/money/report/recDetail',
|
|
|
+ listUrl: 'http://192.168.253.139:8560/api/money/report/custormonthdetails',
|
|
|
+ defaultCondition: null,
|
|
|
+ reportTitle: '应收总账明细表',
|
|
|
+ QueryWidth: 0.5,
|
|
|
+ searchItems: [{
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'cm_custcode',
|
|
|
+ emptyText: '客户编号/名称',
|
|
|
+ columnWidth: 0.25,
|
|
|
+ getCondition: function (v) {
|
|
|
+ return "(upper(cm_custcode) like '%" + v.toUpperCase() + "%' or upper(cm_custname) like '%" + v.toUpperCase() + "%')";
|
|
|
+ },
|
|
|
+ }, {
|
|
|
+ xtype: 'monthdatefield',
|
|
|
+ name: 'cm_yearmonth',
|
|
|
+ fieldLabel: '期间',
|
|
|
+ columnWidth: 0.25
|
|
|
+ }],
|
|
|
+
|
|
|
+ reportColumns: [{
|
|
|
+ text: '客户编号',
|
|
|
+ dataIndex: 'cm_custcode',
|
|
|
+ width: 200
|
|
|
+ }, {
|
|
|
+ text: '客户名称',
|
|
|
+ dataIndex: 'cm_custname',
|
|
|
+ width: 200,
|
|
|
+ }, {
|
|
|
+ text: '期初应收',
|
|
|
+ dataIndex: 'cm_beginamount',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '增加应收',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ dataIndex: 'cm_nowamount',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '增加预收',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ dataIndex: 'cm_nowpreamount',
|
|
|
+ width: 150
|
|
|
+ }, {
|
|
|
+ text: '应收余额',
|
|
|
+ dataIndex: 'cm_endamount',
|
|
|
+ xtype: 'numbercolumn',
|
|
|
+ width: 150,
|
|
|
+ }]
|
|
|
+});
|