CustomerCheck.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. summaryType: 'sum',
  85. summaryRenderer: function(v) {
  86. var arr = (v + '.').split('.');
  87. var xr = (new Array(arr[1].length)).fill('0');
  88. var format = '0.' + xr.join();
  89. return Ext.util.Format.number(v, format);
  90. }
  91. }, {
  92. text: '不含税单价',
  93. dataIndex: 'pd_netprice',
  94. xtype: 'numbercolumn'
  95. }, {
  96. text: '不含税金额',
  97. xtype: 'numbercolumn',
  98. dataIndex: 'pd_nettotal',
  99. xtype: 'numbercolumn',
  100. summaryType: 'sum',
  101. summaryRenderer: function(v) {
  102. var arr = (v + '.').split('.');
  103. var xr = (new Array(arr[1].length)).fill('0');
  104. var format = '0,000.' + xr.join();
  105. return Ext.util.Format.number(v, format);
  106. }
  107. }, {
  108. text: '备注',
  109. dataIndex: 'pd_text1'
  110. }]
  111. });