CustomerCheck.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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.1,
  12. //筛选:客户、日期(必填)
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'pi_custname',
  16. fieldLabel: '客户名称',
  17. columnWidth: 0.2
  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. width: 200
  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. dataIndex: 'pr_code'
  56. }, {
  57. text: '物料名称',
  58. dataIndex: 'pr_detail'
  59. }, {
  60. text: '物料规格',
  61. dataIndex: 'pr_spec'
  62. }, {
  63. text: '单位',
  64. dataIndex: 'pd_unit'
  65. }, {
  66. text: '数量',
  67. xtype: 'numbercolumn',
  68. dataIndex: 'qty',
  69. xtype: 'numbercolumn'
  70. }, {
  71. text: '单价',
  72. dataIndex: 'pd_orderprice',
  73. xtype: 'numbercolumn'
  74. }, {
  75. text: '税率',
  76. dataIndex: 'pd_taxrate',
  77. xtype: 'numbercolumn'
  78. }, {
  79. text: '金额',
  80. xtype: 'numbercolumn',
  81. dataIndex: 'pd_total',
  82. xtype: 'numbercolumn',
  83. summaryType: 'sum',
  84. summaryRenderer: function(v) {
  85. var arr = (v + '.').split('.');
  86. var xr = (new Array(arr[1].length)).fill('0');
  87. var format = '0.' + xr.join();
  88. return Ext.util.Format.number(v, format);
  89. }
  90. }, {
  91. text: '不含税单价',
  92. dataIndex: 'pd_netprice',
  93. xtype: 'numbercolumn'
  94. }, {
  95. text: '不含税金额',
  96. xtype: 'numbercolumn',
  97. dataIndex: 'pd_nettotal',
  98. xtype: 'numbercolumn',
  99. summaryType: 'sum',
  100. summaryRenderer: function(v) {
  101. var arr = (v + '.').split('.');
  102. var xr = (new Array(arr[1].length)).fill('0');
  103. var format = '0,000.' + xr.join();
  104. return Ext.util.Format.number(v, format);
  105. }
  106. }, {
  107. text: '备注',
  108. dataIndex: 'pd_remark'
  109. }]
  110. });