TotalPayDetail.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. searchItems: [{
  17. xtype: 'textfield',
  18. name: 'vm_vendcode',
  19. emptyText: '供应商编号/名称',
  20. columnWidth: 0.25,
  21. getCondition: function(v) {
  22. return "(upper(vm_vendcode) like '%"+v.toUpperCase()+"%' or upper(vm_vendname) like '%"+v.toUpperCase()+"%')";
  23. },
  24. }, {
  25. xtype: 'monthdatefield',
  26. name: 'vm_yearmonth',
  27. fieldLabel: '起始期间',
  28. columnWidth: 0.2
  29. }, {
  30. xtype: 'monthdatefield',
  31. name: 'vm_yearmonthTo',
  32. fieldLabel: '结束期间',
  33. columnWidth: 0.2
  34. }],
  35. reportColumns: [{
  36. text: '供应商编号',
  37. dataIndex: 'vm_vendcode',
  38. width: 200
  39. }, {
  40. text: '供应商名称',
  41. dataIndex: 'vm_vendname',
  42. width: 200,
  43. }, {
  44. text: '期初应付',
  45. xtype: 'numbercolumn',
  46. dataIndex: 'vm_beginamount',
  47. width: 150
  48. }, {
  49. text: '增加应付',
  50. xtype: 'numbercolumn',
  51. dataIndex: 'vm_nowamount',
  52. width: 150
  53. }, {
  54. text: '增加预付',
  55. xtype: 'numbercolumn',
  56. dataIndex: 'vm_nowpreamount',
  57. width: 150
  58. }, {
  59. text: '应付余额',
  60. dataIndex: 'vm_endamount',
  61. xtype: 'numbercolumn',
  62. width: 150,
  63. }]
  64. });