VendorCheck.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. Ext.define('saas.view.money.report.VendorCheck', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'monry-report-vendorcheck',
  4. controller: 'money-report-vendorcheck',
  5. viewModel: 'money-report-vendorcheck',
  6. viewName: 'money-report-vendorcheck',
  7. // groupField: null,
  8. listUrl: '/api/money/report/vendorCheck',
  9. defaultCondition: null,
  10. reportTitle: '供应商对账单',
  11. QueryWidth:0.25,
  12. autoLoad:false,
  13. //筛选:供应商、日期(必填)
  14. searchItems: [ {
  15. xtype: 'vendorDbfindTrigger',
  16. name: 'pi_vendname',
  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. width: 80
  48. },{
  49. text:'供应商编号',
  50. dataIndex:'pi_vendcode',
  51. width: 150
  52. },{
  53. text:'供应商名称',
  54. dataIndex:'pi_vendname',
  55. width: 200
  56. },{
  57. text: '物料编号',
  58. dataIndex: 'pr_code',
  59. width: 150
  60. }, {
  61. text: '物料名称',
  62. dataIndex: 'pr_detail',
  63. width: 200
  64. }, {
  65. text: '物料规格',
  66. dataIndex: 'pr_spec',
  67. width: 150
  68. }, {
  69. text: '单位',
  70. dataIndex: 'pd_unit',
  71. width: 80
  72. }, {
  73. text: '采购数量',
  74. xtype: 'numbercolumn',
  75. dataIndex: 'qty',
  76. xtype: 'numbercolumn',
  77. width: 110,
  78. // renderer : function(v) {
  79. // var arr = (v + '.').split('.');
  80. // var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
  81. // var format = '0.' + xr.join();
  82. // return Ext.util.Format.number(v, format);
  83. // },
  84. // summaryType: 'sum',
  85. // summaryRenderer: function(v) {
  86. // var arr = (v + '.').split('.');
  87. // var xr = (new Array(arr[1].length > 3 ? 3 : 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_orderprice',
  94. xtype: 'numbercolumn',
  95. width: 110
  96. }, {
  97. text: '税率',
  98. dataIndex: 'pd_taxrate',
  99. xtype: 'numbercolumn',
  100. width: 80
  101. }, {
  102. text: '金额',
  103. xtype: 'numbercolumn',
  104. dataIndex: 'pd_total',
  105. xtype: 'numbercolumn',
  106. width: 110,
  107. // renderer : function(v) {
  108. // var arr = (v + '.').split('.');
  109. // var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  110. // var format = '0,000.' + xr.join();
  111. // return Ext.util.Format.number(v, format);
  112. // },
  113. // summaryType: 'sum',
  114. // summaryRenderer: function(v) {
  115. // var arr = (v + '.').split('.');
  116. // var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  117. // var format = '0,000.' + xr.join();
  118. // return Ext.util.Format.number(v, format);
  119. // }
  120. }, {
  121. text: '不含税单价',
  122. dataIndex: 'pd_netprice',
  123. xtype: 'numbercolumn',
  124. width: 110
  125. }, {
  126. text: '不含税金额',
  127. dataIndex: 'pd_nettotal',
  128. xtype: 'numbercolumn',
  129. width: 110
  130. }, {
  131. text: '备注',
  132. dataIndex: 'pd_remark',
  133. width: 250
  134. }]
  135. });