AccountDetails.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. triggerCls:'x-form-trigger',
  24. datas: [
  25. ["采购验收单", "采购验收单"],
  26. ["采购验退单", "采购验退单"],
  27. ["出货单", "销售出货单"],
  28. ["销售退货单", "销售退货单"]
  29. ]
  30. }, {
  31. name: 'pb_date',
  32. xtype: 'condatefield',
  33. emptyText: '日期',
  34. columnWidth: 0.3
  35. }, {
  36. // name: 'pb_code',
  37. // xtype: 'textfield',
  38. // emptyText: '核销单号',
  39. // columnWidth: 0.1
  40. // }, {
  41. xtype: "customerDbfindTrigger",
  42. name: "cu_name",
  43. emptyText: '请输入客户名称',
  44. columnWidth: 0.15
  45. }, {
  46. xtype: 'vendorDbfindTrigger',
  47. name: 've_name',
  48. emptyText: '请输入供应商名称',
  49. columnWidth: 0.15
  50. }],
  51. reportColumns: [{
  52. text: '核销单号',
  53. dataIndex: 'pb_code',
  54. width: 150
  55. }, {
  56. text: '单据日期',
  57. dataIndex: 'pb_date',
  58. xtype: 'datecolumn',
  59. width: 110
  60. }, {
  61. text: '业务类型',
  62. dataIndex: 'sl_kind',
  63. width: 100
  64. }, {
  65. text: '供应商名称',
  66. dataIndex: 've_name',
  67. width: 200
  68. }, {
  69. text: '客户名称',
  70. dataIndex: 'cu_name',
  71. width: 200
  72. }, {
  73. text: '来源单号',
  74. dataIndex: 'sl_code',
  75. width: 150
  76. }, {
  77. text: '本期核销金额(元)',
  78. dataIndex: 'pbd_nowbalance',
  79. exportFormat: 'Amount',
  80. xtype: 'numbercolumn',
  81. width: 150,
  82. renderer: function(v) {
  83. return saas.util.BaseUtil.numberFormat(v, 2, true);
  84. }
  85. }, {
  86. text: '总金额(元)',
  87. dataIndex: 'sl_orderamount',
  88. xtype: 'numbercolumn',
  89. exportFormat: 'Amount',
  90. width: 120,
  91. renderer: function(v) {
  92. return saas.util.BaseUtil.numberFormat(v, 2, true);
  93. }
  94. }, {
  95. text: '币别',
  96. dataIndex: 'currency',
  97. align:'center',
  98. width: 65
  99. }, {
  100. text: '汇率',
  101. dataIndex: 'rate',
  102. xtype: 'numbercolumn',
  103. width: 80,
  104. renderer: function(v, m, r) {
  105. return saas.util.BaseUtil.numberFormat(v, 6, true);
  106. }
  107. }, {
  108. dataIndex: '',
  109. flex: 1
  110. }],
  111. });