VendorCheck.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. format:'Y-m-d'
  42. }, {
  43. text: '序号',
  44. dataIndex: 'pd_pdno'
  45. },{
  46. text:'供应商编号',
  47. dataIndex:'pi_vendcode',
  48. width: 180
  49. },{
  50. text:'供应商名称',
  51. dataIndex:'pi_vendname',
  52. width: 180
  53. },{
  54. text: '物料编号',
  55. dataIndex: 'pr_code',
  56. width: 180
  57. }, {
  58. text: '物料名称',
  59. dataIndex: 'pr_detail',
  60. width: 180
  61. }, {
  62. text: '物料规格',
  63. dataIndex: 'pr_spec'
  64. }, {
  65. text: '单位',
  66. dataIndex: 'pd_unit'
  67. }, {
  68. text: '采购数量',
  69. xtype: 'numbercolumn',
  70. dataIndex: 'qty',
  71. xtype: 'numbercolumn',
  72. summaryType: 'sum',
  73. summaryRenderer: function(v) {
  74. var arr = (v + '.').split('.');
  75. var xr = (new Array(arr[1].length)).fill('0');
  76. var format = '0.' + xr.join();
  77. }
  78. }, {
  79. text: '单价',
  80. dataIndex: 'pd_orderprice',
  81. xtype: 'numbercolumn'
  82. }, {
  83. text: '税率',
  84. dataIndex: 'pd_taxrate',
  85. xtype: 'numbercolumn'
  86. }, {
  87. text: '金额',
  88. xtype: 'numbercolumn',
  89. dataIndex: 'pd_total',
  90. xtype: 'numbercolumn',
  91. summaryType: 'sum',
  92. summaryRenderer: function(v) {
  93. var arr = (v + '.').split('.');
  94. var xr = (new Array(arr[1].length)).fill('0');
  95. var format = '0,000.' + xr.join();
  96. }
  97. }, {
  98. text: '不含税单价',
  99. dataIndex: 'pd_netprice',
  100. xtype: 'numbercolumn'
  101. }, {
  102. text: '不含税金额',
  103. dataIndex: 'pd_nettotal',
  104. xtype: 'numbercolumn'
  105. }, {
  106. text: '备注',
  107. dataIndex: 'pd_remark'
  108. }]
  109. });