SaleRec.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Ext.define('saas.view.sale.report.SaleRec', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'sale-report-salerec',
  4. controller: 'sale-report-salerec',
  5. viewModel: 'sale-report-salerec',
  6. viewName: 'sale-report-salerec',
  7. groupField: 'rb_custname',
  8. listUrl: '/api/sale/report/saleRec',
  9. defaultCondition: null,
  10. reportTitle: '销售收款报表',
  11. QueryWidth:0.25,
  12. searchItems: [{//筛选:客户、日期
  13. xtype: 'dbfindtrigger',
  14. name: 'sa_custname',
  15. fieldLabel: '客户',
  16. columnWidth: 0.25
  17. }, {
  18. xtype: 'condatefield',
  19. name: 'rb_date',
  20. fieldLabel: '日期',
  21. columnWidth: 0.5
  22. }],
  23. reportColumns: [{
  24. text: 'id',
  25. dataIndex: 'id',
  26. hidden: true
  27. }, {
  28. text: '收款单号',
  29. dataIndex: 'rb_code',
  30. summaryType: 'count',
  31. width: 200
  32. }, {
  33. text: '客户编号',
  34. dataIndex: 'rb_custcode',
  35. width: 200
  36. }, {
  37. text: '客户名称',
  38. dataIndex: 'rb_custname',
  39. width: 200
  40. }, {
  41. text: '业务员',
  42. dataIndex: 'rb_manname'
  43. }, {
  44. text: '日期',
  45. dataIndex: 'rb_date',
  46. xtype: 'datecolumn'
  47. }, {
  48. text: '来源单号',
  49. dataIndex: 'rbd_slcode'
  50. }, {
  51. text: '类型',
  52. dataIndex: 'rbd_slkind'
  53. }, {
  54. text: '销售金额',
  55. xtype: 'numbercolumn',
  56. dataIndex: 'rbd_amount'
  57. }, {
  58. text: '本次收款',
  59. xtype: 'numbercolumn',
  60. dataIndex: 'rbd_nowbalance'
  61. }, {
  62. text: '应收余额',
  63. xtype: 'numbercolumn',
  64. dataIndex: 'rb_rbdamount'
  65. }, {
  66. text: '回款比例',
  67. xtype: 'numbercolumn',
  68. dataIndex: 'rb_backrate'
  69. }, {
  70. text: '备注',
  71. dataIndex: 'rb_remark'
  72. }]
  73. });