VendorCheck.js 3.1 KB

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