CustomerCheck.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. dataIndex: 'qty',
  68. xtype: 'numbercolumn'
  69. }, {
  70. text: '单价',
  71. dataIndex: 'pd_orderprice',
  72. xtype: 'numbercolumn'
  73. }, {
  74. text: '税率',
  75. dataIndex: 'pd_taxrate',
  76. xtype: 'numbercolumn'
  77. }, {
  78. text: '金额',
  79. dataIndex: 'pd_total',
  80. xtype: 'numbercolumn',
  81. summaryType: 'sum',
  82. summaryRenderer: function(v) {
  83. var arr = (v + '.').split('.');
  84. var xr = (new Array(arr[1].length)).fill('0');
  85. var format = '0.' + xr.join();
  86. return Ext.util.Format.number(v, format);
  87. }
  88. }, {
  89. text: '不含税单价',
  90. dataIndex: 'pd_netprice',
  91. xtype: 'numbercolumn'
  92. }, {
  93. text: '不含税金额',
  94. dataIndex: 'pd_nettotal',
  95. xtype: 'numbercolumn',
  96. summaryType: 'sum',
  97. summaryRenderer: function(v) {
  98. var arr = (v + '.').split('.');
  99. var xr = (new Array(arr[1].length)).fill('0');
  100. var format = '0.' + xr.join();
  101. return Ext.util.Format.number(v, format);
  102. }
  103. }, {
  104. text: '备注',
  105. dataIndex: 'pd_remark'
  106. }]
  107. });