Purchase.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. Ext.define('saas.view.purchase.report.Purchase', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'purchase-report-purchase',
  4. controller: 'purchase-report-purchase',
  5. viewModel: 'purchase-report-purchase',
  6. viewName: 'purchase-report-purchase',
  7. groupField: null,
  8. listUrl: '/api/purchase/purchase/list',
  9. defaultCondition: null,
  10. reportTitle: '采购明细报表',
  11. searchItems: [{
  12. xtype: 'condatefield',
  13. name: 'pu_date',
  14. fieldLabel: '单据日期',
  15. columnWidth: 0.5
  16. }],
  17. reportColumns: [
  18. {
  19. text: 'id',
  20. dataIndex: 'pu_id',
  21. hidden: true
  22. }, {
  23. text: '采购单号',
  24. dataIndex: 'pu_code',
  25. width: 200
  26. }, {
  27. text: '供应商编号',
  28. dataIndex: 'pu_vendcode',
  29. width: 200
  30. }, {
  31. text: '供应商名称',
  32. dataIndex: 'pu_vendname',
  33. width: 200
  34. }, {
  35. text: '业务状态',
  36. dataIndex: 'pu_status'
  37. }, {
  38. text: '采购员',
  39. dataIndex: 'pu_buyername'
  40. }, {
  41. text: '单据日期',
  42. xtype: 'datecolumn',
  43. dataIndex: 'pu_date'
  44. }, {
  45. text: '序号',
  46. dataIndex: 'pd_detno'
  47. }, {
  48. text: '物料编号',
  49. dataIndex: 'pd_prodcode'
  50. }, {
  51. text: '物料名称',
  52. dataIndex: 'pr_detail'
  53. }, {
  54. text: '物料规格',
  55. dataIndex: 'pr_spec'
  56. }, {
  57. text: '品牌',
  58. dataIndex: 'pr_brand'
  59. }, {
  60. text: '单位',
  61. dataIndex: 'pr_unit'
  62. }, {
  63. text: '采购数量',
  64. dataIndex: 'pd_qty',
  65. summaryType: 'count'
  66. }, {
  67. text: '单价',
  68. dataIndex: 'pd_price'
  69. }, {
  70. text: '税率',
  71. dataIndex: 'pd_taxrate'
  72. }, {
  73. text: '金额',
  74. dataIndex: 'pd_total',
  75. summaryType: 'count'
  76. }, {
  77. text: '不含税单价',
  78. dataIndex: 'pd_taxprice'
  79. }, {
  80. text: '不含税金额',
  81. dataIndex: 'pd_taxtotal'
  82. }, {
  83. text: '收货数量',
  84. dataIndex: 'pd_acceptqty'
  85. }, {
  86. text: '收货金额',
  87. dataIndex: 'pd_accepttotal'
  88. }, {
  89. text: '备注'
  90. }]
  91. });