TotalRecDetail.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /**
  2. * 应收总账
  3. */
  4. Ext.define('saas.view.money.report.TotalRecDetail', {
  5. extend: 'saas.view.core.report.ReportPanel',
  6. xtype: 'monry-report-totalrecdetail',
  7. controller: 'money-report-totalrecdetail',
  8. viewModel: 'money-report-totalrecdetail',
  9. viewName: 'money-report-totalrecdetail',
  10. groupField: null,
  11. listUrl: '/api/money/report/custormonthdetails',
  12. defaultCondition: null,
  13. reportTitle: '应收总账',
  14. QueryWidth: 0.35,
  15. allowPaging: false,
  16. searchItems: [{
  17. xtype: 'customerDbfindTrigger',
  18. name: 'cm_custname',
  19. emptyText: '请输入客户名称',
  20. columnWidth: 0.25
  21. }, {
  22. xtype: 'conmonthfield',
  23. fieldLabel: '期间',
  24. name: 'cm_yearmonth',
  25. columnWidth: 0.4
  26. }],
  27. reportModel: 'saas.model.report.TotalRecDetail',
  28. reportColumns: [{
  29. text: '期间',
  30. dataIndex: 'cm_yearmonth',
  31. width: 80,
  32. }, {
  33. text: '客户名称',
  34. dataIndex: 'cm_custname',
  35. width: 200,
  36. }, {
  37. text: '币别',
  38. dataIndex: 'cm_currency',
  39. align:'center',
  40. width: 65,
  41. }, {
  42. text: '期初',
  43. columns: [{
  44. text: '预收(元)',
  45. xtype: 'numbercolumn',
  46. exportFormat: 'Amount',
  47. dataIndex: 'cm_beginpreamount',
  48. width: 120,
  49. renderer: function(v, m, r) {
  50. return saas.util.BaseUtil.numberFormat(v, 2, true);
  51. }
  52. }, {
  53. text: '应收(元)',
  54. xtype: 'numbercolumn',
  55. exportFormat: 'Amount',
  56. dataIndex: 'cm_beginamount',
  57. width: 120,
  58. renderer: function(v, m, r) {
  59. return saas.util.BaseUtil.numberFormat(v, 2, true);
  60. }
  61. }]
  62. }, {
  63. text: '本期',
  64. columns: [{
  65. text: '预收(元)',
  66. xtype: 'numbercolumn',
  67. exportFormat: 'Amount',
  68. dataIndex: 'cm_nowpreamount',
  69. width: 120,
  70. renderer: function(v, m, r) {
  71. return saas.util.BaseUtil.numberFormat(v, 2, true);
  72. }
  73. }, {
  74. text: '应收(元)',
  75. xtype: 'numbercolumn',
  76. exportFormat: 'Amount',
  77. dataIndex: 'cm_nowamount',
  78. width: 120,
  79. renderer: function(v, m, r) {
  80. return saas.util.BaseUtil.numberFormat(v, 2, true);
  81. }
  82. }, {
  83. text: '核销(元)',
  84. xtype: 'numbercolumn',
  85. exportFormat: 'Amount',
  86. dataIndex: 'cm_nowpayamount',
  87. width: 120,
  88. renderer: function(v, m, r) {
  89. return saas.util.BaseUtil.numberFormat(v, 2, true);
  90. }
  91. }]
  92. }, {
  93. text: '期末',
  94. columns: [{
  95. text: '预收(元)',
  96. dataIndex: 'cm_endpreamount',
  97. exportFormat: 'Amount',
  98. xtype: 'numbercolumn',
  99. width: 120,
  100. renderer: function(v, m, r) {
  101. return saas.util.BaseUtil.numberFormat(v, 2, true);
  102. },
  103. summaryType: 'sum',
  104. summaryRenderer: function(v, d, f, m) {
  105. return saas.util.BaseUtil.numberFormat(v, 2, true);
  106. }
  107. }, {
  108. text: '应收(元)',
  109. dataIndex: 'cm_endamount',
  110. exportFormat: 'Amount',
  111. xtype: 'numbercolumn',
  112. width: 120,
  113. renderer: function(v, m, r) {
  114. return saas.util.BaseUtil.numberFormat(v, 2, true);
  115. },
  116. summaryType: 'sum',
  117. summaryRenderer: function(v, d, f, m) {
  118. return saas.util.BaseUtil.numberFormat(v, 2, true);
  119. }
  120. }]
  121. }, {
  122. text: '应收余额(元)',
  123. dataIndex: 'cm_endamount-cm_endpreamount',
  124. exportFormat: 'Amount',
  125. xtype: 'numbercolumn',
  126. width: 120,
  127. renderer: function(v, m, r) {
  128. return saas.util.BaseUtil.numberFormat(v, 2, true);
  129. },
  130. summaryType: 'sum',
  131. summaryLabel: '应收余额',
  132. summaryRenderer: function(v, d, f, m) {
  133. return saas.util.BaseUtil.numberFormat(v, 2, true);
  134. }
  135. }, {
  136. dataIndex: '',
  137. flex: 1
  138. }]
  139. });