ProdinoutCount.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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.1,
  13. //筛选:仓库、物料、物料类型、时间
  14. searchItems: [{
  15. xtype: 'dbfindtrigger',
  16. name: 'wh_description',
  17. fieldLabel: '仓库',
  18. columnWidth: 0.2
  19. }, {
  20. xtype: 'dbfindtrigger',
  21. name: 'pd_prodcode',
  22. fieldLabel: '物料编号',
  23. columnWidth: 0.2
  24. }, {
  25. xtype: 'remotecombo',
  26. editable:false,
  27. name: 'pd_prodcode',
  28. fieldLabel: '物料类型',
  29. columnWidth: 0.2,
  30. storeUrl:'/api/document/producttype/getCombo',
  31. addHandler:function(b){
  32. var document = Ext.create('saas.view.document.kind.Kind',{});
  33. var form = this.ownerCmp.ownerCt;
  34. this.dialog = form.getController().getView().add({
  35. xtype: 'document-kind-childwin',
  36. bind: {
  37. title: '新增物料类型'
  38. },
  39. dataKind:'productkind',
  40. belong:document.etc['productkind'],
  41. _parent:form,
  42. _combo:this.ownerCmp,
  43. record:null,
  44. session: true
  45. });
  46. this.dialog.show();
  47. }
  48. }, {
  49. xtype: 'condatefield',
  50. name: 'pi_date',
  51. fieldLabel: '单据日期',
  52. columnWidth: 0.5
  53. }],
  54. reportColumns: [{
  55. text: '物料类型',
  56. dataIndex: 'pr_kind'
  57. }, {
  58. text: '物料编号',
  59. dataIndex: 'pr_code',
  60. width: 200
  61. }, {
  62. text: '物料名称',
  63. dataIndex: 'pr_detail',
  64. width: 200
  65. }, {
  66. text: '物料规格',
  67. dataIndex: 'pr_spec'
  68. }, {
  69. text: '单位',
  70. dataIndex: 'pr_unit'
  71. }, {
  72. text: '仓库',
  73. dataIndex:'pd_whcode'
  74. }, {
  75. text: '期初',
  76. columns: [{
  77. text: '数量',
  78. dataIndex:'pwm_beginqty',
  79. xtype: 'numbercolumn'
  80. },{
  81. text: '成本',
  82. dataIndex:'pwm_beginamount',
  83. xtype: 'numbercolumn'
  84. }]
  85. }, {
  86. text: '入库合计',
  87. columns: [{
  88. text: '数量',
  89. dataIndex:'pwm_nowinqty',
  90. xtype: 'numbercolumn'
  91. },{
  92. text: '成本',
  93. dataIndex:'pwm_nowinamount',
  94. xtype: 'numbercolumn'
  95. }]
  96. }, {
  97. text: '出库合计',
  98. columns: [{
  99. text: '数量',
  100. dataIndex:'pwm_nowoutqty',
  101. xtype: 'numbercolumn'
  102. },{
  103. text: '成本',
  104. dataIndex:'pwm_nowoutamount',
  105. xtype: 'numbercolumn'
  106. }]
  107. }, {
  108. text: '结存',
  109. columns: [{
  110. text: '数量',
  111. dataIndex:'pwm_endqty',
  112. xtype: 'numbercolumn'
  113. },{
  114. text: '成本',
  115. dataIndex:'pwm_endamount',
  116. xtype: 'numbercolumn'
  117. }]
  118. }]
  119. });