Purchase.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. QueryWidth:0.25,
  12. //筛选:供应商、日期(必填)、业务状态
  13. searchItems: [ {
  14. xtype: 'dbfindtrigger',
  15. name: 'pu_vendname',
  16. fieldLabel: '供应商名称',
  17. columnWidth: 0.25
  18. }, {
  19. xtype: 'condatefield',
  20. name: 'pu_date',
  21. fieldLabel: '单据日期',
  22. columnWidth: 0.25
  23. }, {
  24. xtype: 'multicombo',
  25. name: 'pu_acceptstatuscode',
  26. fieldLabel: '业务状态',
  27. columnWidth: 0.25,
  28. datas: [
  29. ["TURNIN", "已入库"],
  30. ["UNTURNIN", "未入库"],
  31. ["PART2IN", "部分入库"],
  32. ["CLOSE", "已关闭"]
  33. ]
  34. }],
  35. reportColumns: [
  36. {
  37. text: 'id',
  38. dataIndex: 'pu_id',
  39. hidden: true
  40. }, {
  41. text: '采购单号',
  42. dataIndex: 'pu_code',
  43. width: 200
  44. }, {
  45. text: '供应商编号',
  46. dataIndex: 'pu_vendcode',
  47. width: 200
  48. }, {
  49. text: '供应商名称',
  50. dataIndex: 'pu_vendname',
  51. width: 200
  52. }, {
  53. text: '业务状态',
  54. dataIndex: 'pu_status'
  55. }, {
  56. text: '采购员',
  57. dataIndex: 'pu_buyername'
  58. }, {
  59. text: '单据日期',
  60. xtype: 'datecolumn',
  61. dataIndex: 'pu_date'
  62. }, {
  63. text: '序号',
  64. dataIndex: 'pd_detno'
  65. }, {
  66. text: '物料编号',
  67. dataIndex: 'pd_prodcode'
  68. }, {
  69. text: '物料名称',
  70. dataIndex: 'pr_detail'
  71. }, {
  72. text: '物料规格',
  73. dataIndex: 'pr_spec'
  74. }, {
  75. text: '品牌',
  76. dataIndex: 'pr_brand'
  77. }, {
  78. text: '单位',
  79. dataIndex: 'pr_unit'
  80. }, {
  81. text: '采购数量',
  82. dataIndex: 'pd_qty',
  83. summaryType: 'count'
  84. }, {
  85. text: '单价',
  86. dataIndex: 'pd_price'
  87. }, {
  88. text: '税率',
  89. dataIndex: 'pd_taxrate'
  90. }, {
  91. text: '金额',
  92. dataIndex: 'pd_total',
  93. summaryType: 'count'
  94. }, {
  95. text: '不含税单价',
  96. dataIndex: 'pd_taxprice'
  97. }, {
  98. text: '不含税金额',
  99. dataIndex: 'pd_taxtotal'
  100. }, {
  101. text: '收货数量',
  102. dataIndex: 'pd_acceptqty'
  103. }, {
  104. text: '收货金额',
  105. dataIndex: 'pd_accepttotal'
  106. }, {
  107. text: '备注'
  108. }]
  109. });