VendorCheck.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. //筛选:供应商、日期(必填)
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'pi_vendname',
  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: 180
  33. }, {
  34. text: '单据类型',
  35. dataIndex: 'pi_class',
  36. width: 180
  37. }, {
  38. text: '单据日期',
  39. dataIndex: 'pi_date',
  40. xtype:'datecolumn',
  41. }, {
  42. text: '序号',
  43. dataIndex: 'pd_pdno'
  44. },{
  45. text:'供应商编号',
  46. dataIndex:'pi_vendcode',
  47. width: 180
  48. },{
  49. text:'供应商名称',
  50. dataIndex:'pi_vendname',
  51. width: 180
  52. },{
  53. text: '物料编号',
  54. dataIndex: 'pr_code',
  55. width: 200
  56. }, {
  57. text: '物料名称',
  58. dataIndex: 'pr_detail',
  59. width: 180
  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. renderer : function(v) {
  72. var arr = (v + '.').split('.');
  73. var xr = (new Array(arr[1].length > 3 ? 3 : arr[1].length)).fill('0');
  74. var format = '0.' + xr.join();
  75. return Ext.util.Format.number(v, format);
  76. },
  77. summaryType: 'sum',
  78. summaryRenderer: 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. }, {
  85. text: '单价',
  86. dataIndex: 'pd_orderprice',
  87. xtype: 'numbercolumn'
  88. }, {
  89. text: '税率',
  90. dataIndex: 'pd_taxrate',
  91. xtype: 'numbercolumn'
  92. }, {
  93. text: '金额',
  94. xtype: 'numbercolumn',
  95. dataIndex: 'pd_total',
  96. xtype: 'numbercolumn',
  97. renderer : function(v) {
  98. var arr = (v + '.').split('.');
  99. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  100. var format = '0,000.' + xr.join();
  101. return Ext.util.Format.number(v, format);
  102. },
  103. summaryType: 'sum',
  104. summaryRenderer: function(v) {
  105. var arr = (v + '.').split('.');
  106. var xr = (new Array(arr[1].length > 2 ? 2 : arr[1].length)).fill('0');
  107. var format = '0,000.' + xr.join();
  108. return Ext.util.Format.number(v, format);
  109. }
  110. }, {
  111. text: '不含税单价',
  112. dataIndex: 'pd_netprice',
  113. xtype: 'numbercolumn'
  114. }, {
  115. text: '不含税金额',
  116. dataIndex: 'pd_nettotal',
  117. xtype: 'numbercolumn'
  118. }, {
  119. text: '备注',
  120. dataIndex: 'pd_remark'
  121. }]
  122. });