TotalRecDetail.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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: 'conmonthfield',
  26. fieldLabel: '期间',
  27. name: 'cm_yearmonth',
  28. columnWidth: 0.4
  29. }],
  30. reportColumns: [{
  31. text: '客户编号',
  32. dataIndex: 'cm_custcode',
  33. width: 200
  34. }, {
  35. text: '客户名称',
  36. dataIndex: 'cm_custname',
  37. width: 200,
  38. }, {
  39. text: '期初应收',
  40. dataIndex: 'cm_beginamount',
  41. width: 150
  42. }, {
  43. text: '增加应收',
  44. xtype: 'numbercolumn',
  45. dataIndex: 'cm_nowamount',
  46. width: 150
  47. }, {
  48. text: '增加预收',
  49. xtype: 'numbercolumn',
  50. dataIndex: 'cm_nowpreamount',
  51. width: 150
  52. }, {
  53. text: '应收余额',
  54. dataIndex: 'cm_endamount',
  55. xtype: 'numbercolumn',
  56. width: 150,
  57. }]
  58. });