TotalRecDetail.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. // listUrl: 'http://192.168.253.139:8560/api/money/report/custormonthdetails',
  13. defaultCondition: null,
  14. reportTitle: '应收总账明细表',
  15. QueryWidth: 0.35,
  16. searchItems: [{
  17. xtype: 'textfield',
  18. name: 'cm_custcode',
  19. emptyText: '客户编号/名称',
  20. columnWidth: 0.25,
  21. getCondition: function (v) {
  22. return "(upper(cm_custcode) like '%" + v.toUpperCase() + "%' or upper(cm_custname) like '%" + v.toUpperCase() + "%')";
  23. },
  24. }, {
  25. xtype: 'monthdatefield',
  26. name: 'cm_yearmonth',
  27. fieldLabel: '起始期间',
  28. columnWidth: 0.2
  29. }, {
  30. xtype: 'monthdatefield',
  31. name: 'cm_yearmonthTo',
  32. fieldLabel: '结束期间',
  33. columnWidth: 0.2
  34. }],
  35. reportColumns: [{
  36. text: '客户编号',
  37. dataIndex: 'cm_custcode',
  38. width: 200
  39. }, {
  40. text: '客户名称',
  41. dataIndex: 'cm_custname',
  42. width: 200,
  43. }, {
  44. text: '期初应收',
  45. dataIndex: 'cm_beginamount',
  46. width: 150
  47. }, {
  48. text: '增加应收',
  49. xtype: 'numbercolumn',
  50. dataIndex: 'cm_nowamount',
  51. width: 150
  52. }, {
  53. text: '增加预收',
  54. xtype: 'numbercolumn',
  55. dataIndex: 'cm_nowpreamount',
  56. width: 150
  57. }, {
  58. text: '应收余额',
  59. dataIndex: 'cm_endamount',
  60. xtype: 'numbercolumn',
  61. width: 150,
  62. }]
  63. });