PayDetail.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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.1,
  12. //筛选:供应商、日期(必填)
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'pi_vendname',
  16. fieldLabel: '供应商名称',
  17. columnWidth: 0.2
  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. dataIndex:'pi_vendname'
  39. }, {
  40. text: '单据类型',
  41. dataIndex: 'pi_class',
  42. width: 200
  43. }, {
  44. text: '单据日期',
  45. dataIndex: 'pb_date',
  46. width: 200
  47. }, {
  48. text: '采购员',
  49. dataIndex: 'pu_buyercode'
  50. },{
  51. text: '单据日期',
  52. dataIndex: 'pb_date'
  53. }, {
  54. text: '期初应付余额',
  55. dataIndex: 've_beginapamount',
  56. xtype: 'numbercolumn',
  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. dataIndex: 'pb_pdamount',
  66. xtype: 'numbercolumn',
  67. summaryType: 'sum',
  68. summaryRenderer: function(v) {
  69. var arr = (v + '.').split('.');
  70. var xr = (new Array(arr[1].length)).fill('0');
  71. var format = '0.' + xr.join();
  72. }
  73. }, {
  74. text: '应付余额',
  75. dataIndex: 'mustpay',
  76. xtype: 'numbercolumn',
  77. summaryType: 'sum',
  78. summaryRenderer: function(v) {
  79. var arr = (v + '.').split('.');
  80. var xr = (new Array(arr[1].length)).fill('0');
  81. var format = '0.' + xr.join();
  82. }
  83. }, {
  84. text: '应付日期',
  85. dataIndex: 'mustdate',
  86. }, {
  87. text: '单据总金额',
  88. dataIndex: 'pi_total',
  89. xtype: 'numbercolumn',
  90. summaryType: 'sum',
  91. summaryRenderer: function(v) {
  92. var arr = (v + '.').split('.');
  93. var xr = (new Array(arr[1].length)).fill('0');
  94. var format = '0.' + xr.join();
  95. }
  96. }, {
  97. text: '备注',
  98. dataIndex: 'pi_remark'
  99. }]
  100. });