Prodiodetail.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. }, {
  66. text: '序号',
  67. dataIndex: 'pd_pdno',
  68. exportFormat: 'Integer',
  69. align: 'center',
  70. xtype: 'numbercolumn',
  71. width: 65
  72. }, {
  73. text: '物料编号',
  74. dataIndex: 'pd_prodcode',
  75. width: 150
  76. }, {
  77. text: '品牌',
  78. dataIndex: 'pr_brand',
  79. width: 100
  80. }, {
  81. text: '物料名称',
  82. dataIndex: 'pr_detail',
  83. width: 150
  84. }, {
  85. text: '型号',
  86. dataIndex: 'pr_orispeccode',
  87. width: 200
  88. }, {
  89. text: '规格',
  90. dataIndex: 'pr_spec',
  91. width: 200
  92. }, {
  93. text: '入库数量',
  94. xtype: 'numbercolumn',
  95. exportFormat: 'Quantity',
  96. dataIndex: 'inqty',
  97. width: 110,
  98. summaryType: 'sum',
  99. summaryRenderer: function(v) {
  100. return saas.util.BaseUtil.numberFormat(v, 3, false);
  101. }
  102. }, {
  103. text: '出库数量',
  104. xtype: 'numbercolumn',
  105. exportFormat: 'Quantity',
  106. dataIndex: 'outqty',
  107. width: 110,
  108. summaryType: 'sum',
  109. summaryRenderer: function(v) {
  110. return saas.util.BaseUtil.numberFormat(v, 3, false);
  111. }
  112. }, {
  113. text: '单位',
  114. dataIndex: 'pr_unit',
  115. width: 65
  116. }, {
  117. text: '成本单价(元)',
  118. xtype: 'numbercolumn',
  119. exportFormat: 'Price',
  120. dataIndex: 'pd_price',
  121. width: 120,
  122. renderer: function(v) {
  123. return saas.util.BaseUtil.numberFormat(v, 4, true);
  124. }
  125. }, {
  126. text: '仓库',
  127. dataIndex: 'pd_whname',
  128. width: 110
  129. }, {
  130. text: '往来单位',
  131. dataIndex: 'bizname',
  132. width: 200
  133. }, {
  134. text: '关联单号',
  135. dataIndex: 'pd_ordercode',
  136. width: 150
  137. }, {
  138. text: '物料类型',
  139. dataIndex: 'pr_kind',
  140. width: 100
  141. }, {
  142. text: '备注',
  143. dataIndex: 'pd_remark',
  144. width: 250
  145. }]
  146. });