TotalPayDetail.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * 应付总账
  3. */
  4. Ext.define('saas.view.money.report.TotalPayDetail', {
  5. extend: 'saas.view.core.report.ReportPanel',
  6. xtype: 'monry-report-totalpaydetail',
  7. controller: 'money-report-totalpaydetail',
  8. viewModel: 'money-report-totalpaydetail',
  9. viewName: 'money-report-totalpaydetail',
  10. groupField: null,
  11. listUrl: '/api/money/report/vendormonthdetails',
  12. // listUrl: 'http://192.168.253.139:8560/api/money/report/vendormonthdetails',
  13. defaultCondition: null,
  14. reportTitle: '应收总账',
  15. QueryWidth: 0.35,
  16. allowPaging: false,
  17. searchItems: [{
  18. xtype: 'textfield',
  19. name: 'vm_vendcode',
  20. emptyText: '供应商编号/名称',
  21. columnWidth: 0.25,
  22. getCondition: function(v) {
  23. return "(upper(vm_vendcode) like '%"+v.toUpperCase()+"%' or upper(vm_vendname) like '%"+v.toUpperCase()+"%')";
  24. },
  25. }, {
  26. xtype: 'conmonthfield',
  27. fieldLabel: '期间',
  28. name: 'vm_yearmonth',
  29. columnWidth: 0.4
  30. }],
  31. reportColumns: [{
  32. text: '供应商编号',
  33. dataIndex: 'vm_vendcode',
  34. width: 200
  35. }, {
  36. text: '供应商名称',
  37. dataIndex: 'vm_vendname',
  38. width: 200,
  39. }, {
  40. text: '期初应付',
  41. xtype: 'numbercolumn',
  42. dataIndex: 'vm_beginamount',
  43. width: 150
  44. }, {
  45. text: '增加应付',
  46. xtype: 'numbercolumn',
  47. dataIndex: 'vm_nowamount',
  48. width: 150
  49. }, {
  50. text: '增加预付',
  51. xtype: 'numbercolumn',
  52. dataIndex: 'vm_nowpreamount',
  53. width: 150
  54. }, {
  55. text: '应付余额',
  56. dataIndex: 'vm_endamount',
  57. xtype: 'numbercolumn',
  58. width: 150,
  59. }]
  60. });