Purchase.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. searchItems: [{
  11. xtype: 'condatefield',
  12. name: 'pu_date',
  13. fieldLabel: '单据日期',
  14. columnWidth: 0.5
  15. }],
  16. reportColumns: [{
  17. text: 'id',
  18. dataIndex: 'id',
  19. hidden: true
  20. }, {
  21. text: '采购单号',
  22. dataIndex: 'pu_code',
  23. summaryType: 'count',
  24. width: 200
  25. }, {
  26. text: '供应商编号',
  27. dataIndex: 'PU_VENDCODE',
  28. width: 200
  29. }, {
  30. text: '供应商名称',
  31. dataIndex: 'PU_VENDNAME',
  32. width: 200
  33. }, {
  34. text: '业务状态',
  35. dataIndex: 'PU_STATUS'
  36. }, {
  37. text: '采购员',
  38. dataIndex: 'PU_BUYERNAME'
  39. }, {
  40. text: '单据日期',
  41. xtype: 'datecolumn',
  42. dataIndex: 'pu_date'
  43. }, {
  44. text: '序号',
  45. dataIndex: 'PD_DETNO'
  46. }, {
  47. text: '物料编号',
  48. dataIndex: 'pr_code'
  49. }, {
  50. text: '物料名称',
  51. dataIndex: 'pr_detail'
  52. }, {
  53. text: '物料规格',
  54. dataIndex: 'pr_spec'
  55. }, {
  56. text: '品牌',
  57. dataIndex: 'pr_brand'
  58. }, {
  59. text: '单位',
  60. dataIndex: 'pr_unit'
  61. }, {
  62. text: '采购数量',
  63. dataIndex: 'PD_QTY'
  64. }, {
  65. text: '单价',
  66. dataIndex: 'PD_PRICE'
  67. }, {
  68. text: '税率',
  69. dataIndex: 'PD_TAXRATE'
  70. }, {
  71. text: '金额',
  72. dataIndex: 'PD_TOTAL'
  73. }, {
  74. text: '不含税单价',
  75. dataIndex: 'rbd_remark'
  76. }, {
  77. text: '不含税金额',
  78. dataIndex: 'PD_TAXPRICE'
  79. }, {
  80. text: '收货数量',
  81. dataIndex: 'PD_YQTY'
  82. }, {
  83. text: '收货金额',
  84. dataIndex: 'PD_TOTAL'
  85. }, {
  86. text: '备注'
  87. }]
  88. });