Prodiodetail.js 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. Ext.define('saas.view.stock.report.Prodiodetail', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'stock-report-prodiodetail',
  4. controller: 'stock-report-prodiodetail',
  5. viewModel: 'stock-report-prodiodetail',
  6. viewName: 'stock-report-prodiodetail',
  7. groupField: 'pd_prodcode',
  8. groupHeaderTpl: '物料: {[values.rows[0].data.pr_detail]}({[values.rows[0].data.pd_prodcode]})',
  9. listUrl: '/api/storage/report/prodioDetail',
  10. defaultCondition: null,
  11. reportTitle: '物料出入库明细表',
  12. QueryWidth:0.2,
  13. showMySummary: false,
  14. searchItems: [ {
  15. xtype: 'textfield',
  16. name: 'pd_prodcode',
  17. emptyText:'输入单号、关联订单号或物料编号',
  18. columnWidth: 0.2,
  19. getCondition:function(v){
  20. return "(upper(pd_prodcode) like '%" + v.toUpperCase() + "%' or upper(pi_inoutno) like '%" + v.toUpperCase() + "%' or upper(pd_ordercode) like '%" + v.toUpperCase() + "%')";
  21. }
  22. },{
  23. xtype: 'multicombo',
  24. name: 'pi_class',
  25. fieldLabel: '业务类型',
  26. allowBlank: true,
  27. columnWidth: 0.2,
  28. datas: [
  29. ["采购验收单", "采购验收单"],
  30. ["采购验退单", "采购验退单"],
  31. ["出货单", "出货单"],
  32. ["销售退货单", "销售退货单"],
  33. ["完工入库单", "完工入库单"],
  34. ["生产领料单", "生产领料单"],
  35. ["拆件领料单", "拆件领料单"],
  36. ["其它入库单", "其它入库单"],
  37. ["其它出库单", "其它出库单"],
  38. ["调拨单", "调拨单"],
  39. ["拨入单", "拨入单"],
  40. ["库存初始化","库存初始化"]
  41. ]
  42. }, {
  43. xtype: 'condatefield',
  44. name: 'pi_date',
  45. fieldLabel: '日期',
  46. columnWidth: 0.4
  47. }],
  48. reportColumns: [{
  49. text: 'id',
  50. dataIndex: 'id',
  51. hidden: true
  52. }, {
  53. text: '单号',
  54. dataIndex: 'pi_inoutno',
  55. width: 150
  56. }, {
  57. text: '业务类型',
  58. dataIndex: 'pi_class',
  59. width: 100
  60. }, {
  61. text: '日期',
  62. dataIndex: 'pi_date',
  63. xtype: 'datecolumn',
  64. width: 110,
  65. locked: true
  66. }, {
  67. text: '序号',
  68. dataIndex: 'pd_pdno',
  69. exportFormat: 'Integer',
  70. align: 'center',
  71. xtype: 'numbercolumn',
  72. width: 65,
  73. locked: true,
  74. renderer: function(v) {
  75. return saas.util.BaseUtil.numberFormat(v, 0, false);
  76. }
  77. }, {
  78. text: '物料编号',
  79. dataIndex: 'pd_prodcode',
  80. width: 150
  81. }, {
  82. text: '品牌',
  83. dataIndex: 'pr_brand',
  84. width: 100
  85. }, {
  86. text: '物料名称',
  87. dataIndex: 'pr_detail',
  88. width: 150
  89. }, {
  90. text: '型号',
  91. dataIndex: 'pr_orispeccode',
  92. width: 200
  93. }, {
  94. text: '规格',
  95. dataIndex: 'pr_spec',
  96. width: 200
  97. }, {
  98. text: '入库数量',
  99. xtype: 'numbercolumn',
  100. exportFormat: 'Quantity',
  101. dataIndex: 'inqty',
  102. width: 110,
  103. summaryType: 'sum',
  104. summaryRenderer: function(v) {
  105. return saas.util.BaseUtil.numberFormat(v, 3, false);
  106. }
  107. }, {
  108. text: '出库数量',
  109. xtype: 'numbercolumn',
  110. exportFormat: 'Quantity',
  111. dataIndex: 'outqty',
  112. width: 110,
  113. summaryType: 'sum',
  114. summaryRenderer: function(v) {
  115. return saas.util.BaseUtil.numberFormat(v, 3, false);
  116. }
  117. }, {
  118. text: '单位',
  119. dataIndex: 'pr_unit',
  120. width: 65
  121. }, {
  122. text: '成本单价(元)',
  123. xtype: 'numbercolumn',
  124. exportFormat: 'Price',
  125. dataIndex: 'pd_price',
  126. width: 120,
  127. renderer: function(v) {
  128. return saas.util.BaseUtil.numberFormat(v, 4, true);
  129. }
  130. }, {
  131. text: '仓库',
  132. dataIndex: 'pd_whname',
  133. width: 120
  134. }, {
  135. text: '往来单位',
  136. dataIndex: 'bizname',
  137. width: 200
  138. }, {
  139. text: '关联单号',
  140. dataIndex: 'pd_ordercode',
  141. width: 150
  142. }, {
  143. text: '物料类型',
  144. dataIndex: 'pr_kind',
  145. width: 100
  146. }, {
  147. text: '备注',
  148. dataIndex: 'pd_remark',
  149. width: 250
  150. }]
  151. });