TotalPayDetail.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /**
  2. * 应付总账
  3. */
  4. Ext.define('saas.view.money.report.TotalPayDetail', {
  5. extend: 'saas.view.core.report.ReportPanel',
  6. xtype: 'monry-report-totalpaydetail',
  7. controller: 'money-report-totalpaydetail',
  8. viewModel: 'money-report-totalpaydetail',
  9. viewName: 'money-report-totalpaydetail',
  10. groupField: null,
  11. listUrl: '/api/money/report/vendormonthdetails',
  12. // listUrl: 'http://192.168.253.139:8560/api/money/report/vendormonthdetails',
  13. defaultCondition: null,
  14. reportTitle: '应付总账',
  15. QueryWidth: 0.35,
  16. allowPaging: false,
  17. searchItems: [{
  18. xtype: 'textfield',
  19. name: 'vm_vendcode',
  20. emptyText: '供应商编号/名称',
  21. columnWidth: 0.25,
  22. getCondition: function (v) {
  23. return "(upper(vm_vendcode) like '%" + v.toUpperCase() + "%' or upper(vm_vendname) like '%" + v.toUpperCase() + "%')";
  24. },
  25. }, {
  26. xtype: 'conmonthfield',
  27. fieldLabel: '期间',
  28. name: 'vm_yearmonth',
  29. columnWidth: 0.4
  30. }],
  31. reportModel: 'saas.model.report.TotalPayDetail',
  32. reportColumns: [{
  33. text: '期间',
  34. dataIndex: 'vm_yearmonth',
  35. width: 80,
  36. }, {
  37. text: '供应商名称',
  38. dataIndex: 'vm_vendname',
  39. width: 200,
  40. }, {
  41. text: '期初',
  42. columns: [{
  43. text: '预付',
  44. xtype: 'numbercolumn',
  45. exportFormat: 'Amount',
  46. dataIndex: 'vm_beginpreamount',
  47. width: 120,
  48. renderer: function (v) {
  49. return saas.util.BaseUtil.numberFormat(v, 2, true);
  50. }
  51. }, {
  52. text: '应付',
  53. xtype: 'numbercolumn',
  54. exportFormat: 'Amount',
  55. dataIndex: 'vm_beginamount',
  56. width: 120,
  57. renderer: function (v) {
  58. return saas.util.BaseUtil.numberFormat(v, 2, true);
  59. }
  60. }]
  61. }, {
  62. text: '本期',
  63. columns: [{
  64. text: '预付',
  65. xtype: 'numbercolumn',
  66. exportFormat: 'Amount',
  67. dataIndex: 'vm_nowpreamount',
  68. width: 120,
  69. renderer: function (v) {
  70. return saas.util.BaseUtil.numberFormat(v, 2, true);
  71. }
  72. }, {
  73. text: '应付',
  74. xtype: 'numbercolumn',
  75. exportFormat: 'Amount',
  76. dataIndex: 'vm_nowamount',
  77. width: 120,
  78. renderer: function (v) {
  79. return saas.util.BaseUtil.numberFormat(v, 2, true);
  80. }
  81. }, {
  82. text: '核销',
  83. xtype: 'numbercolumn',
  84. exportFormat: 'Amount',
  85. dataIndex: 'vm_nowpayamount',
  86. width: 120,
  87. renderer: function (v) {
  88. return saas.util.BaseUtil.numberFormat(v, 2, true);
  89. }
  90. }]
  91. }, {
  92. text: '期末',
  93. columns: [{
  94. text: '预付',
  95. dataIndex: 'vm_endpreamount',
  96. exportFormat: 'Amount',
  97. xtype: 'numbercolumn',
  98. width: 120,
  99. renderer: function (v) {
  100. return saas.util.BaseUtil.numberFormat(v, 2, true);
  101. },
  102. summaryType: 'sum',
  103. summaryRenderer: function (v) {
  104. return saas.util.BaseUtil.numberFormat(v, 2, true);
  105. }
  106. }, {
  107. text: '应付',
  108. dataIndex: 'vm_endamount',
  109. exportFormat: 'Amount',
  110. xtype: 'numbercolumn',
  111. width: 120,
  112. renderer: function (v) {
  113. return saas.util.BaseUtil.numberFormat(v, 2, true);
  114. },
  115. summaryType: 'sum',
  116. summaryRenderer: function (v) {
  117. return saas.util.BaseUtil.numberFormat(v, 2, true);
  118. }
  119. }]
  120. }, {
  121. text: '应付余额(元)',
  122. dataIndex: 'vm_endamount-vm_endpreamount',
  123. exportFormat: 'Amount',
  124. xtype: 'numbercolumn',
  125. width: 120,
  126. renderer: function (v) {
  127. return saas.util.BaseUtil.numberFormat(v, 2, true);
  128. },
  129. summaryType: 'sum',
  130. summaryRenderer: function (v) {
  131. return saas.util.BaseUtil.numberFormat(v, 2, true);
  132. }
  133. }, {
  134. dataIndex: '',
  135. flex: 1
  136. }]
  137. });