SaleProfit.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. Ext.define('saas.view.sale.report.SaleProfit', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'sale-report-saleprofit',
  4. controller: 'sale-report-saleprofit',
  5. viewModel: 'sale-report-saleprofit',
  6. viewName: 'sale-report-saleprofit',
  7. groupField: null,
  8. listUrl: '/api/sale/report/saleProfit',
  9. defaultCondition: null,
  10. reportTitle: '销售毛利润表',
  11. //筛选:客户、物料、时间
  12. QueryWidth:0.2,
  13. searchItems: [{
  14. xtype: 'dbfindtrigger',
  15. name: 'sa_custname',
  16. fieldLabel: '客户',
  17. columnWidth: 0.2
  18. }, {
  19. xtype: 'dbfindtrigger',
  20. name: 'sd_prodcode',
  21. fieldLabel: '物料',
  22. columnWidth: 0.2
  23. }, {
  24. xtype: 'condatefield',
  25. name: 'sa_date',
  26. fieldLabel: '时间',
  27. columnWidth: 0.4
  28. }],
  29. reportColumns: [
  30. {
  31. text: 'id',
  32. dataIndex: 'sa_id',
  33. hidden: true
  34. }, {
  35. text: '客户编号',
  36. dataIndex: 'sa_custcode',
  37. width: 200
  38. }, {
  39. text: '客户名称',
  40. dataIndex: 'sa_custname',
  41. width: 200
  42. }, {
  43. text: '业务员编号',
  44. dataIndex: 'sa_sellercode',
  45. hidden:true
  46. }, {
  47. text: '业务员',
  48. dataIndex: 'sa_seller'
  49. }, {
  50. text: '单据日期',
  51. xtype: 'datecolumn',
  52. dataIndex: 'sa_date'
  53. }, {
  54. text: '单据编号',
  55. dataIndex: 'pd_inoutno',
  56. width: 200
  57. }, {
  58. text: '单据类型',
  59. dataIndex: 'pd_piclass'
  60. }, {
  61. text: '物料类别',
  62. dataIndex: 'pr_kind'
  63. }, {
  64. text: '物料编号',
  65. dataIndex: 'pr_code',
  66. width: 200
  67. }, {
  68. text: '物料名称',
  69. dataIndex: 'pr_detail',
  70. width: 200
  71. }, {
  72. text: '物料规格',
  73. dataIndex: 'pr_spec'
  74. }, {
  75. text: '单位',
  76. xtype: 'numbercolumn',
  77. dataIndex: 'pr_unit'
  78. }, {
  79. text: '数量',
  80. dataIndex: 'pd_outqty',
  81. xtype: 'numbercolumn'
  82. }, {
  83. text: '单价',
  84. dataIndex: 'pd_sendprice',
  85. xtype: 'numbercolumn'
  86. }, {
  87. text: '税率%',
  88. dataIndex: 'pd_taxrate',
  89. xtype: 'numbercolumn'
  90. }, {
  91. text: '含税金额',
  92. dataIndex: 'pd_ordertotal',
  93. xtype: 'numbercolumn'
  94. }, {
  95. text: '成本金额',
  96. dataIndex: 'pd_total',
  97. xtype: 'numbercolumn'
  98. }, {
  99. text: '毛利润',
  100. dataIndex: 'pd_profit',
  101. xtype: 'numbercolumn'
  102. }, {
  103. text: '毛利率%',
  104. dataIndex: 'pd_profitpresent',
  105. xtype: 'numbercolumn'
  106. }, {
  107. text : "备注",
  108. dataIndex : "pd_remark",
  109. width : 250
  110. }]
  111. });