CustomerCheck.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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: 'pi_custname',
  8. listUrl: '/api/money/report/customercheck',
  9. defaultCondition: null,
  10. reportTitle: '客户对账单',
  11. QueryWidth:0.25,
  12. autoLoad:false,
  13. //筛选:客户、日期(必填)
  14. searchItems: [ {
  15. xtype: 'customerDbfindTrigger',
  16. name: 'pi_custname',
  17. fieldLabel: '客户名称',
  18. columnWidth: 0.25,
  19. allowBlank:false,
  20. }, {
  21. xtype: 'condatefield',
  22. name: 'pi_date',
  23. fieldLabel: '单据日期',
  24. columnWidth: 0.5
  25. }],
  26. reportColumns: [
  27. {
  28. text: 'id',
  29. dataIndex: 'pi_id',
  30. hidden: true
  31. }, {
  32. text: '单号',
  33. dataIndex: 'pi_inoutno',
  34. width: 150
  35. }, {
  36. text: '单据类型',
  37. dataIndex: 'pi_class',
  38. width: 110
  39. }, {
  40. text: '单据日期',
  41. dataIndex: 'pi_date',
  42. xtype: 'datecolumn',
  43. width: 110
  44. }, {
  45. text: '序号',
  46. dataIndex: 'pd_pdno',
  47. xtype: 'numbercolumn',
  48. width: 80
  49. },{
  50. text: '物料编号',
  51. width: 150,
  52. dataIndex: 'pr_code'
  53. }, {
  54. text: '物料名称',
  55. dataIndex: 'pr_detail',
  56. width: 200
  57. }, {
  58. text: '物料规格',
  59. dataIndex: 'pr_spec',
  60. width: 150
  61. }, {
  62. text: '单位',
  63. dataIndex: 'pd_unit',
  64. width: 80
  65. }, {
  66. text: '数量',
  67. xtype: 'numbercolumn',
  68. dataIndex: 'qty',
  69. xtype: 'numbercolumn',
  70. width: 110
  71. }, {
  72. text: '单价',
  73. dataIndex: 'pd_orderprice',
  74. xtype: 'numbercolumn',
  75. width: 110
  76. }, {
  77. text: '税率',
  78. dataIndex: 'pd_taxrate',
  79. xtype: 'numbercolumn',
  80. width: 80
  81. }, {
  82. text: '金额',
  83. xtype: 'numbercolumn',
  84. width: 110,
  85. dataIndex: 'pd_total',
  86. xtype: 'numbercolumn',
  87. // renderer : function(v) {
  88. // var arr = (v + '.').split('.');
  89. // var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  90. // var format = '0,000.' + xr.join();
  91. // return Ext.util.Format.number(v, format);
  92. // },
  93. // summaryType: 'sum',
  94. // summaryRenderer: function(v) {
  95. // var arr = (v + '.').split('.');
  96. // var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  97. // var format = '0,000.' + xr.join();
  98. // return Ext.util.Format.number(v, format);
  99. // }
  100. }, {
  101. text: '不含税单价',
  102. width: 110,
  103. dataIndex: 'pd_netprice',
  104. xtype: 'numbercolumn'
  105. }, {
  106. text: '不含税金额',
  107. width: 110,
  108. xtype: 'numbercolumn',
  109. dataIndex: 'pd_nettotal',
  110. xtype: 'numbercolumn',
  111. // renderer : function(v) {
  112. // var arr = (v + '.').split('.');
  113. // var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  114. // var format = '0,000.' + xr.join();
  115. // return Ext.util.Format.number(v, format);
  116. // },
  117. // summaryType: 'sum',
  118. // summaryRenderer: function(v) {
  119. // var arr = (v + '.').split('.');
  120. // var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  121. // var format = '0,000.' + xr.join();
  122. // return Ext.util.Format.number(v, format);
  123. // }
  124. }, {
  125. text: '备注',
  126. dataIndex: 'pd_remark',
  127. width: 250
  128. }]
  129. });