AccountDetails.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: '核销单号',
  52. dataIndex: 'pb_code',
  53. width: 150
  54. }, {
  55. text: '单据日期',
  56. dataIndex: 'pb_date',
  57. xtype: 'datecolumn',
  58. width: 110
  59. }, {
  60. text: '业务类型',
  61. dataIndex: 'sl_kind',
  62. width: 100
  63. }, {
  64. text: '供应商名称',
  65. dataIndex: 've_name',
  66. width: 200
  67. }, {
  68. text: '客户名称',
  69. dataIndex: 'cu_name',
  70. width: 200
  71. }, {
  72. text: '来源单号',
  73. dataIndex: 'sl_code',
  74. width: 150
  75. }, {
  76. text: '本期核销金额(元)',
  77. dataIndex: 'pbd_nowbalance',
  78. exportFormat: 'Amount',
  79. xtype: 'numbercolumn',
  80. width: 150,
  81. renderer: function(v) {
  82. return saas.util.BaseUtil.numberFormat(v, 2, true);
  83. }
  84. }, {
  85. text: '总金额(元)',
  86. dataIndex: 'sl_orderamount',
  87. xtype: 'numbercolumn',
  88. exportFormat: 'Amount',
  89. width: 120,
  90. renderer: function(v) {
  91. return saas.util.BaseUtil.numberFormat(v, 2, true);
  92. }
  93. }],
  94. });