PurchasePay.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. Ext.define('saas.view.purchase.report.PurchasePay', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'purchase-report-purchasepay',
  4. controller: 'purchase-report-purchasepay',
  5. viewModel: 'purchase-report-purchasepay',
  6. viewName: 'purchase-report-purchasepay',
  7. //按供应商分组 付款金额合计
  8. groupField: 'pu_vendname',
  9. listUrl: '/api/purchase/report/purchasePay',
  10. defaultCondition: null,
  11. reportTitle: '采购付款一览表',
  12. QueryWidth:0.25,
  13. searchItems: [
  14. {
  15. xtype: 'dbfindtrigger',
  16. name: 'pu_vendname',
  17. fieldLabel: '供应商名称',
  18. columnWidth: 0.25
  19. }, {
  20. xtype: 'condatefield',
  21. name: 'pb_recorddate',
  22. fieldLabel: '单据日期',
  23. columnWidth: 0.5
  24. }],
  25. reportColumns: [
  26. {
  27. text: 'id',
  28. dataIndex: 'pb_id',
  29. hidden: true
  30. }, {
  31. text: '付款单号',
  32. dataIndex: 'pb_code',
  33. width: 200
  34. }, {
  35. text: '供应商编号',
  36. dataIndex: 'pu_vendcode',
  37. width: 200
  38. }, {
  39. text: '供应商名称',
  40. dataIndex: 'pu_vendname',
  41. width: 200
  42. }, {
  43. text: '录入人',
  44. dataIndex: 'pb_recorder',
  45. width: 200
  46. }, {
  47. text : "日期",
  48. dataIndex : "pb_recorddate",
  49. xtype:'datecolumn'
  50. }, {
  51. text: '来源单号',
  52. dataIndex: 'pbd_slcode',
  53. width: 200
  54. }, {
  55. text: '类型',
  56. dataIndex: 'pbd_slkind',
  57. width: 200
  58. }, {//∑求和
  59. text: '采购金额',
  60. dataIndex: 'pbd_amount',
  61. width: 200,
  62. renderer : function(v) {
  63. var arr = (v + '.').split('.');
  64. var xr = (new Array(arr[1].length)).fill('0');
  65. var format = '0,000.' + xr.join();
  66. return Ext.util.Format.number(v, format);
  67. },
  68. summaryType: 'sum',
  69. summaryRenderer: function(v) {
  70. var arr = (v + '.').split('.');
  71. var xr = (new Array(arr[1].length)).fill('0');
  72. var format = '0,000.' + xr.join();
  73. return Ext.util.Format.number(v, format);
  74. }
  75. }, {//∑求和
  76. text: '本次付款',
  77. dataIndex: 'pbd_nowbalance',
  78. width: 200,
  79. renderer : function(v) {
  80. var arr = (v + '.').split('.');
  81. var xr = (new Array(arr[1].length)).fill('0');
  82. var format = '0,000.' + xr.join();
  83. return Ext.util.Format.number(v, format);
  84. },
  85. summaryType: 'sum',
  86. summaryRenderer: function(v) {
  87. var arr = (v + '.').split('.');
  88. var xr = (new Array(arr[1].length)).fill('0');
  89. var format = '0,000.' + xr.join();
  90. return Ext.util.Format.number(v, format);
  91. }
  92. }, {
  93. text: '应付余额',
  94. dataIndex: 'pb_pbdamount',
  95. width: 200,
  96. renderer : function(v) {
  97. var arr = (v + '.').split('.');
  98. var xr = (new Array(arr[1].length)).fill('0');
  99. var format = '0,000.' + xr.join();
  100. return Ext.util.Format.number(v, format);
  101. },
  102. }, {
  103. text: '付款比例',
  104. //本次付款/采购金额*100%
  105. dataIndex: 'pb_payrate',
  106. width: 200
  107. }, {
  108. text: '备注',
  109. dataIndex: 'pd_remark',
  110. width: 200
  111. }]
  112. });