CustomerCheck.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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: 'customerDbfindTrigger',
  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: 150
  33. }, {
  34. text: '单据类型',
  35. dataIndex: 'pi_class',
  36. width: 110
  37. }, {
  38. text: '单据日期',
  39. dataIndex: 'pi_date',
  40. xtype: 'datecolumn',
  41. width: 110
  42. }, {
  43. text: '序号',
  44. dataIndex: 'pd_pdno',
  45. xtype: 'numbercolumn',
  46. width: 80
  47. },{
  48. text: '物料编号',
  49. width: 150,
  50. dataIndex: 'pr_code'
  51. }, {
  52. text: '物料名称',
  53. dataIndex: 'pr_detail',
  54. width: 200
  55. }, {
  56. text: '物料规格',
  57. dataIndex: 'pr_spec',
  58. width: 150
  59. }, {
  60. text: '单位',
  61. dataIndex: 'pd_unit',
  62. width: 80
  63. }, {
  64. text: '数量',
  65. xtype: 'numbercolumn',
  66. dataIndex: 'qty',
  67. xtype: 'numbercolumn',
  68. width: 110
  69. }, {
  70. text: '单价',
  71. dataIndex: 'pd_orderprice',
  72. xtype: 'numbercolumn',
  73. width: 110
  74. }, {
  75. text: '税率',
  76. dataIndex: 'pd_taxrate',
  77. xtype: 'numbercolumn',
  78. width: 80
  79. }, {
  80. text: '金额',
  81. xtype: 'numbercolumn',
  82. width: 110,
  83. dataIndex: 'pd_total',
  84. xtype: 'numbercolumn',
  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. summaryType: 'sum',
  92. summaryRenderer: function(v) {
  93. var arr = (v + '.').split('.');
  94. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  95. var format = '0,000.' + xr.join();
  96. return Ext.util.Format.number(v, format);
  97. }
  98. }, {
  99. text: '不含税单价',
  100. width: 110,
  101. dataIndex: 'pd_netprice',
  102. xtype: 'numbercolumn'
  103. }, {
  104. text: '不含税金额',
  105. width: 110,
  106. xtype: 'numbercolumn',
  107. dataIndex: 'pd_nettotal',
  108. xtype: 'numbercolumn',
  109. renderer : function(v) {
  110. var arr = (v + '.').split('.');
  111. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  112. var format = '0,000.' + xr.join();
  113. return Ext.util.Format.number(v, format);
  114. },
  115. summaryType: 'sum',
  116. summaryRenderer: function(v) {
  117. var arr = (v + '.').split('.');
  118. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  119. var format = '0,000.' + xr.join();
  120. return Ext.util.Format.number(v, format);
  121. }
  122. }, {
  123. text: '备注',
  124. dataIndex: 'pd_remark',
  125. width: 250
  126. }]
  127. });