ProdinoutCount.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. groupField: null,
  8. listUrl: '/api/storage/report/prodinoutCount',
  9. defaultCondition: null,
  10. reportTitle: '物料收发汇总表',
  11. QueryWidth:0.4,
  12. searchItems: [{
  13. xtype: 'textfield',
  14. name: 'wh_description',
  15. emptyText:'输入仓库名称',
  16. columnWidth: 0.2,
  17. getCondition: function(value) {
  18. return ' (wh_description like\'%' + value + '%\' or wh_code like \'%'+value+'%\') ';
  19. }
  20. }, {
  21. xtype: 'productDbfindTrigger',
  22. name: 'pr_code',
  23. emptyText:'输入物料编号、名称或型号',
  24. columnWidth: 0.2,
  25. margin:'0 0 0 20',
  26. }, {
  27. xtype: 'monthdatefield',
  28. name: 'pwm_yearmonth',
  29. fieldLabel: '期间',
  30. columnWidth: 0.2
  31. }],
  32. reportColumns: [{
  33. text: '物料编号',
  34. width: 150,
  35. dataIndex: 'pr_code'
  36. }, {
  37. text: '品牌',
  38. dataIndex: 'pr_brand',
  39. width: 100
  40. }, {
  41. text: '物料名称',
  42. dataIndex: 'pr_detail',
  43. width: 150
  44. }, {
  45. text: '型号',
  46. dataIndex: 'pr_orispeccode',
  47. width: 200
  48. }, {
  49. text: '规格',
  50. dataIndex: 'pr_spec',
  51. width: 200
  52. }, {
  53. text: '物料类型',
  54. dataIndex: 'pr_kind',
  55. width: 100
  56. }, {
  57. text: '单位',
  58. dataIndex: 'pr_unit',
  59. width: 65
  60. },{
  61. text: '仓库',
  62. dataIndex:'wh_description',
  63. width: 120
  64. }, {
  65. text: '期初',
  66. columns: [{
  67. text: '数量',
  68. dataIndex:'pwm_beginqty',
  69. exportFormat: 'Quantity',
  70. xtype: 'numbercolumn',
  71. width:110,
  72. renderer: function(v) {
  73. return saas.util.BaseUtil.numberFormat(v, 3, false);
  74. },
  75. },{
  76. text: '成本(元)',
  77. dataIndex:'pwm_beginamount',
  78. exportFormat: 'Amount',
  79. xtype: 'numbercolumn',
  80. width:110,
  81. renderer: function(v) {
  82. return saas.util.BaseUtil.numberFormat(v, 2, true);
  83. },
  84. summaryType: 'sum',
  85. summaryLabel: '期初成本',
  86. summaryRenderer: function(v) {
  87. return saas.util.BaseUtil.numberFormat(v, 2, true);
  88. }
  89. }]
  90. }, {
  91. text: '入库',
  92. columns: [{
  93. text: '数量',
  94. dataIndex:'pwm_nowinqty',
  95. exportFormat: 'Quantity',
  96. xtype: 'numbercolumn',
  97. width:110,
  98. renderer: function(v) {
  99. return saas.util.BaseUtil.numberFormat(v, 3, false);
  100. }
  101. },{
  102. text: '成本(元)',
  103. dataIndex:'pwm_nowinamount',
  104. exportFormat: 'Amount',
  105. xtype: 'numbercolumn',
  106. width:110,
  107. renderer: function(v) {
  108. return saas.util.BaseUtil.numberFormat(v, 2, true);
  109. },
  110. summaryType: 'sum',
  111. summaryLabel: '入库成本',
  112. summaryRenderer: function(v) {
  113. return saas.util.BaseUtil.numberFormat(v, 2, true);
  114. }
  115. }]
  116. }, {
  117. text: '出库',
  118. columns: [{
  119. text: '数量',
  120. dataIndex:'pwm_nowoutqty',
  121. exportFormat: 'Quantity',
  122. xtype: 'numbercolumn',
  123. width: 110,
  124. renderer: function(v) {
  125. return saas.util.BaseUtil.numberFormat(v, 3, false);
  126. }
  127. },{
  128. text: '成本(元)',
  129. dataIndex:'pwm_nowoutamount',
  130. exportFormat: 'Amount',
  131. xtype: 'numbercolumn',
  132. width: 110,
  133. renderer: function(v) {
  134. return saas.util.BaseUtil.numberFormat(v, 2, true);
  135. },
  136. summaryType: 'sum',
  137. summaryLabel: '出库成本',
  138. summaryRenderer: function(v) {
  139. return saas.util.BaseUtil.numberFormat(v, 2, true);
  140. }
  141. }]
  142. }, {
  143. text: '结存',
  144. columns: [{
  145. text: '数量',
  146. dataIndex:'pwm_endqty',
  147. exportFormat: 'Quantity',
  148. xtype: 'numbercolumn',
  149. width: 110,
  150. renderer: function(v) {
  151. return saas.util.BaseUtil.numberFormat(v, 3, false);
  152. }
  153. },{
  154. text: '成本(元)',
  155. dataIndex:'pwm_endamount',
  156. exportFormat: 'Amount',
  157. xtype: 'numbercolumn',
  158. width: 110,
  159. renderer: function(v) {
  160. return saas.util.BaseUtil.numberFormat(v, 2, true);
  161. },
  162. summaryType: 'sum',
  163. summaryLabel: '结存成本',
  164. summaryRenderer: function(v) {
  165. return saas.util.BaseUtil.numberFormat(v, 2, true);
  166. }
  167. }]
  168. }]
  169. });