PayDetail.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Ext.define('saas.view.money.report.PayDetail', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'monry-report-paydetail',
  4. controller: 'money-report-paydetail',
  5. viewModel: 'money-report-paydetail',
  6. viewName: 'money-report-paydetail',
  7. groupField: null,
  8. listUrl: '/api/money/report/payDetail',
  9. defaultCondition: null,
  10. reportTitle: '应付账款明细表',
  11. QueryWidth:0.25,
  12. //筛选:供应商、日期(必填)
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'pi_vendname',
  16. fieldLabel: '供应商名称',
  17. columnWidth: 0.25
  18. }, {
  19. xtype: 'condatefield',
  20. name: 'pb_date',
  21. fieldLabel: '单据日期',
  22. columnWidth: 0.5
  23. }],
  24. reportColumns: [
  25. {
  26. text: 'id',
  27. dataIndex: 'pi_id',
  28. hidden: true
  29. }, {
  30. text: '单号',
  31. dataIndex: 'pi_inoutno',
  32. width: 200
  33. },{
  34. text:'供应商编号',
  35. dataIndex:'pi_vendcode'
  36. },{
  37. text:'供应商名称',
  38. width: 200,
  39. dataIndex:'pi_vendname'
  40. }, {
  41. text: '单据类型',
  42. dataIndex: 'pi_class',
  43. width: 200
  44. }, {
  45. text: '单据日期',
  46. xtype: 'datecolumn',
  47. dataIndex: 'pb_date',
  48. }, {
  49. text: '采购员',
  50. dataIndex: 'pu_buyercode'
  51. },{
  52. text: '期初应付余额',
  53. xtype: 'numbercolumn',
  54. dataIndex: 've_beginapamount',
  55. xtype: 'numbercolumn',
  56. width: 140,
  57. summaryType: 'sum',
  58. summaryRenderer: function(v) {
  59. var arr = (v + '.').split('.');
  60. var xr = (new Array(arr[1].length)).fill('0');
  61. var format = '0.' + xr.join();
  62. }
  63. }, {
  64. text: '本期付款金额',
  65. xtype: 'numbercolumn',
  66. dataIndex: 'pb_pdamount',
  67. xtype: 'numbercolumn',
  68. summaryType: 'sum',
  69. width: 140,
  70. summaryRenderer: function(v) {
  71. var arr = (v + '.').split('.');
  72. var xr = (new Array(arr[1].length)).fill('0');
  73. var format = '0.' + xr.join();
  74. }
  75. }, {
  76. text: '应付余额',
  77. xtype: 'numbercolumn',
  78. dataIndex: 'mustpay',
  79. xtype: 'numbercolumn',
  80. summaryType: 'sum',
  81. summaryRenderer: function(v) {
  82. var arr = (v + '.').split('.');
  83. var xr = (new Array(arr[1].length)).fill('0');
  84. var format = '0.' + xr.join();
  85. }
  86. }, {
  87. text: '应付日期',
  88. xtype: 'datecolumn',
  89. dataIndex: 'mustdate',
  90. }, {
  91. text: '单据总金额',
  92. xtype: 'numbercolumn',
  93. dataIndex: 'pi_total',
  94. xtype: 'numbercolumn',
  95. summaryType: 'sum',
  96. summaryRenderer: function(v) {
  97. var arr = (v + '.').split('.');
  98. var xr = (new Array(arr[1].length)).fill('0');
  99. var format = '0.' + xr.join();
  100. }
  101. }, {
  102. text: '备注',
  103. dataIndex: 'pi_remark'
  104. }]
  105. });