ProfitDetail.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /**
  2. * 毛利润分析表
  3. */
  4. Ext.define('saas.view.money.report.ProfitDetail', {
  5. extend: 'saas.view.core.report.ReportPanel',
  6. xtype: 'monry-report-profitdetail',
  7. controller: 'money-report-profitdetail',
  8. viewModel: 'money-report-profitdetail',
  9. viewName: 'money-report-profitdetail',
  10. groupField: null,
  11. listUrl: '/api/money/report/profitdetails',
  12. defaultCondition: null,
  13. reportTitle: '毛利润分析表',
  14. QueryWidth: 0.2,
  15. searchItems: [{
  16. xtype: 'textfield',
  17. name: 'pi_custname',
  18. emptyText: '请输入客户名称',
  19. columnWidth: 0.15
  20. }, {
  21. xtype : "remotecombo",
  22. storeUrl:'/api/document/customerkind/getCombo',
  23. name : "cu_type",
  24. emptyText : "客户类型",
  25. columnWidth: 0.15,
  26. hiddenBtn:true
  27. }, {
  28. xtype: 'condatefield',
  29. name: 'pi_date',
  30. fieldLabel: '日期',
  31. columnWidth: 0.5
  32. }],
  33. reportModel: 'saas.model.report.ProfitDetail',
  34. reportColumns: [{
  35. text: '客户类型',
  36. dataIndex: 'cu_type',
  37. width: 100,
  38. }, {
  39. text: '客户名称',
  40. dataIndex: 'pi_custname',
  41. width: 200,
  42. }, {
  43. text: '金额(元)',
  44. dataIndex: 'netamount',
  45. exportFormat: 'Amount',
  46. xtype: 'numbercolumn',
  47. width: 120,
  48. renderer : function(v) {
  49. return saas.util.BaseUtil.numberFormat(v, 2, true);
  50. },
  51. }, {
  52. text: '税额(元)',
  53. dataIndex: 'saamount-netamount',
  54. exportFormat: 'Amount',
  55. xtype: 'numbercolumn',
  56. width: 120,
  57. renderer : function(v) {
  58. return saas.util.BaseUtil.numberFormat(v, 2, true);
  59. },
  60. }, {
  61. text: '价税合计(元)',
  62. dataIndex: 'saamount',
  63. exportFormat: 'Amount',
  64. xtype: 'numbercolumn',
  65. width: 120,
  66. renderer : function(v) {
  67. return saas.util.BaseUtil.numberFormat(v, 2, true);
  68. },
  69. summaryType: 'sum',
  70. summaryLabel: '价税合计',
  71. summaryRenderer: function(v) {
  72. return saas.util.BaseUtil.numberFormat(v, 2, true);
  73. }
  74. }, {
  75. text: '成本金额(元)',
  76. dataIndex: 'costamount',
  77. exportFormat: 'Amount',
  78. xtype: 'numbercolumn',
  79. width: 120,
  80. summaryLabel: '成本金额',
  81. renderer : function(v) {
  82. return saas.util.BaseUtil.numberFormat(v, 2, true);
  83. },
  84. }, {
  85. text: '毛利润(元)',
  86. dataIndex: 'profit',
  87. exportFormat: 'Amount',
  88. xtype: 'numbercolumn',
  89. width: 120,
  90. renderer : function(v) {
  91. return saas.util.BaseUtil.numberFormat(v, 2, true);
  92. },
  93. summaryType: 'sum',
  94. summaryLabel: '毛利润',
  95. summaryRenderer: function(v) {
  96. return saas.util.BaseUtil.numberFormat(v, 2, true);
  97. }
  98. }, {
  99. text: '毛利率(%)',
  100. dataIndex: 'profitpresent',
  101. width: 100,
  102. xtype: 'numbercolumn',
  103. renderer : function(v) {
  104. return saas.util.BaseUtil.numberFormat(v, 2, true);
  105. },
  106. },{
  107. dataIndex: '',
  108. flex: 1
  109. }]
  110. });