CustomerCheck.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. Ext.define('saas.view.money.report.CustomerCheckCheck', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'monry-report-customercheck',
  4. controller: 'money-report-customercheck',
  5. viewModel: 'money-report-customercheck',
  6. viewName: 'money-report-customercheck',
  7. groupField: null,
  8. listUrl: '/api/money/report/customercheck',
  9. defaultCondition: null,
  10. reportTitle: '客户对账单',
  11. QueryWidth:0.25,
  12. //筛选:客户、日期(必填)
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'pi_custname',
  16. fieldLabel: '客户名称',
  17. columnWidth: 0.25
  18. }, {
  19. xtype: 'condatefield',
  20. name: 'pi_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_class',
  36. width: 200
  37. }, {
  38. text: '单据日期',
  39. dataIndex: 'pi_date',
  40. xtype: 'datecolumn'
  41. }, {
  42. text: '序号',
  43. dataIndex: 'pd_pdno',
  44. xtype: 'numbercolumn'
  45. },{
  46. text:'客户编号',
  47. dataIndex:'pi_vendcode',
  48. hidden: true
  49. },{
  50. text:'客户名称',
  51. dataIndex:'pi_vendname',
  52. hidden: true
  53. },{
  54. text: '物料编号',
  55. width: 200,
  56. dataIndex: 'pr_code'
  57. }, {
  58. text: '物料名称',
  59. dataIndex: 'pr_detail'
  60. }, {
  61. text: '物料规格',
  62. dataIndex: 'pr_spec'
  63. }, {
  64. text: '单位',
  65. dataIndex: 'pd_unit'
  66. }, {
  67. text: '数量',
  68. xtype: 'numbercolumn',
  69. dataIndex: 'qty',
  70. xtype: 'numbercolumn'
  71. }, {
  72. text: '单价',
  73. dataIndex: 'pd_orderprice',
  74. xtype: 'numbercolumn'
  75. }, {
  76. text: '税率',
  77. dataIndex: 'pd_taxrate',
  78. xtype: 'numbercolumn'
  79. }, {
  80. text: '金额',
  81. xtype: 'numbercolumn',
  82. dataIndex: 'pd_total',
  83. xtype: 'numbercolumn',
  84. renderer : function(v) {
  85. var arr = (v + '.').split('.');
  86. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  87. var format = '0,000.' + xr.join();
  88. return Ext.util.Format.number(v, format);
  89. },
  90. summaryType: 'sum',
  91. summaryRenderer: function(v) {
  92. var arr = (v + '.').split('.');
  93. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  94. var format = '0,000.' + xr.join();
  95. return Ext.util.Format.number(v, format);
  96. }
  97. }, {
  98. text: '不含税单价',
  99. dataIndex: 'pd_netprice',
  100. xtype: 'numbercolumn'
  101. }, {
  102. text: '不含税金额',
  103. xtype: 'numbercolumn',
  104. dataIndex: 'pd_nettotal',
  105. xtype: 'numbercolumn',
  106. renderer : function(v) {
  107. var arr = (v + '.').split('.');
  108. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  109. var format = '0,000.' + xr.join();
  110. return Ext.util.Format.number(v, format);
  111. },
  112. summaryType: 'sum',
  113. summaryRenderer: function(v) {
  114. var arr = (v + '.').split('.');
  115. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  116. var format = '0,000.' + xr.join();
  117. return Ext.util.Format.number(v, format);
  118. }
  119. }, {
  120. text: '备注',
  121. dataIndex: 'pd_remark'
  122. }]
  123. });