ProdinoutCount.js 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Ext.define('saas.view.stock.report.ProdinoutCount', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'stock-report-prodinoutCount',
  4. controller: 'stock-report-prodinoutCount',
  5. viewModel: 'stock-report-prodinoutCount',
  6. viewName: 'stock-report-prodinoutCount',
  7. //按物料分组
  8. groupField: null,
  9. listUrl: '/api/storage/report/prodinoutCount',
  10. defaultCondition: null,
  11. reportTitle: '物料收发汇总表',
  12. QueryWidth:0.4,
  13. //筛选:仓库、物料、物料类型、时间
  14. searchItems: [{
  15. xtype: 'warehouseDbfindTrigger',
  16. name: 'wh_description',
  17. fieldLabel: '仓库',
  18. columnWidth: 0.2
  19. }, {
  20. xtype: 'productDbfindTrigger',
  21. name: 'pd_prodcode',
  22. fieldLabel: '物料编号',
  23. columnWidth: 0.2
  24. }, {
  25. xtype: 'monthdatefield',
  26. name: 'pwm_yearmonth',
  27. fieldLabel: '单据日期',
  28. columnWidth: 0.2
  29. }],
  30. reportColumns: [{
  31. text: '物料类型',
  32. dataIndex: 'pr_kind'
  33. }, {
  34. text: '物料编号',
  35. dataIndex: 'pr_code',
  36. width: 150
  37. }, {
  38. text: '物料名称',
  39. dataIndex: 'pr_detail',
  40. width: 200
  41. }, {
  42. text: '物料规格',
  43. dataIndex: 'pr_spec',
  44. width: 150
  45. }, {
  46. text: '单位',
  47. dataIndex: 'pr_unit',
  48. width: 80
  49. }, {
  50. text: '仓库',
  51. dataIndex:'wh_description',
  52. width: 150
  53. }, {
  54. text: '期初',
  55. columns: [{
  56. text: '数量',
  57. dataIndex:'pwm_beginqty',
  58. xtype: 'numbercolumn',
  59. width:110
  60. },{
  61. text: '成本',
  62. dataIndex:'pwm_beginamount',
  63. xtype: 'numbercolumn',
  64. width:110
  65. }]
  66. }, {
  67. text: '入库合计',
  68. columns: [{
  69. text: '数量',
  70. dataIndex:'pwm_nowinqty',
  71. xtype: 'numbercolumn',
  72. width:110
  73. },{
  74. text: '成本',
  75. dataIndex:'pwm_nowinamount',
  76. xtype: 'numbercolumn',
  77. width:110
  78. }]
  79. }, {
  80. text: '出库合计',
  81. columns: [{
  82. text: '数量',
  83. dataIndex:'pwm_nowoutqty',
  84. xtype: 'numbercolumn',
  85. width: 110
  86. },{
  87. text: '成本',
  88. dataIndex:'pwm_nowoutamount',
  89. xtype: 'numbercolumn',
  90. width: 110
  91. }]
  92. }, {
  93. text: '结存',
  94. columns: [{
  95. text: '数量',
  96. dataIndex:'pwm_endqty',
  97. xtype: 'numbercolumn',
  98. width: 110
  99. },{
  100. text: '成本',
  101. dataIndex:'pwm_endamount',
  102. xtype: 'numbercolumn',
  103. width: 110
  104. }]
  105. }]
  106. });