AccountDetails.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Ext.define('saas.view.money.report.AccountDetails', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'monry-report-accountdetails',
  4. controller: 'money-report-accountdetails',
  5. viewModel: 'money-report-accountdetails',
  6. viewName: 'money-report-accountdetails',
  7. // groupField: null,
  8. listUrl: '/api/money/report/accountdetails',
  9. defaultCondition: null,
  10. reportTitle: '核销明细表',
  11. QueryWidth: 0.2,
  12. //筛选:客户/供应商、日期、单据类型(必填)
  13. searchItems: [{
  14. name: 'sl_code',
  15. xtype: 'textfield',
  16. emptyText: '单号',
  17. columnWidth: 0.1
  18. }, {
  19. xtype: 'multicombo',
  20. name: 'sl_kind',
  21. emptyText: '单据类型',
  22. columnWidth: 0.1,
  23. datas: [
  24. ["采购验收单", "采购验收单"],
  25. ["采购验退单", "采购验退单"],
  26. ["出货单", "销售出货单"],
  27. ["销售退货单", "销售退货单"]
  28. ]
  29. }, {
  30. name: 'pb_date',
  31. xtype: 'condatefield',
  32. emptyText: '日期',
  33. columnWidth: 0.3
  34. }, {
  35. // name: 'pb_code',
  36. // xtype: 'textfield',
  37. // emptyText: '核销单号',
  38. // columnWidth: 0.1
  39. // }, {
  40. xtype: "customerDbfindTrigger",
  41. name: "cu_name",
  42. emptyText: '客户编号/名称',
  43. columnWidth: 0.15
  44. }, {
  45. xtype: 'vendorDbfindTrigger',
  46. name: 've_name',
  47. emptyText: '供应商编号/名称',
  48. columnWidth: 0.15
  49. }],
  50. reportColumns: [{
  51. text: 'id',
  52. dataIndex: 'pi_id',
  53. hidden: true
  54. }, {
  55. text: '单据编号',
  56. dataIndex: 'sl_code',
  57. width: 150
  58. }, {
  59. text: '单据类型',
  60. dataIndex: 'sl_kind',
  61. width: 110
  62. }, {
  63. text: '供应商名称',
  64. dataIndex: 've_name',
  65. width: 200
  66. }, {
  67. text: '客户名称',
  68. dataIndex: 'cu_name',
  69. width: 200
  70. }, {
  71. text: '核销单号',
  72. dataIndex: 'pb_code',
  73. width: 200
  74. }, {
  75. text: '单据日期',
  76. dataIndex: 'pb_date',
  77. xtype: 'datecolumn',
  78. width: 110
  79. }, {
  80. text: '本期核销金额(元)',
  81. dataIndex: 'pbd_nowbalance',
  82. exportFormat: 'Amount',
  83. xtype: 'numbercolumn',
  84. width: 130,
  85. renderer: function(v) {
  86. var arr = (v + '.').split('.');
  87. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  88. var format = '0,000.' + xr.join('');
  89. return Ext.util.Format.number(v, format);
  90. }
  91. }, {
  92. text: '总金额(元)',
  93. dataIndex: 'sl_orderamount',
  94. xtype: 'numbercolumn',
  95. exportFormat: 'Amount',
  96. width: 110,
  97. renderer: function(v) {
  98. var arr = (v + '.').split('.');
  99. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  100. var format = '0,000.' + xr.join('');
  101. return Ext.util.Format.number(v, format);
  102. }
  103. }],
  104. });