TotalPayDetail.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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: 'conmonthfield',
  26. fieldLabel: '期间',
  27. name: 'vm_yearmonth',
  28. columnWidth: 0.4
  29. }],
  30. reportColumns: [{
  31. text: '供应商编号',
  32. dataIndex: 'vm_vendcode',
  33. width: 200
  34. }, {
  35. text: '供应商名称',
  36. dataIndex: 'vm_vendname',
  37. width: 200,
  38. }, {
  39. text: '期初应付',
  40. xtype: 'numbercolumn',
  41. dataIndex: 'vm_beginamount',
  42. width: 150
  43. }, {
  44. text: '增加应付',
  45. xtype: 'numbercolumn',
  46. dataIndex: 'vm_nowamount',
  47. width: 150
  48. }, {
  49. text: '增加预付',
  50. xtype: 'numbercolumn',
  51. dataIndex: 'vm_nowpreamount',
  52. width: 150
  53. }, {
  54. text: '应付余额',
  55. dataIndex: 'vm_endamount',
  56. xtype: 'numbercolumn',
  57. width: 150,
  58. }]
  59. });