Inprocess.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Ext.define('make.view.osmake.report.inprocess.Inprocess', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'osmake-report-inprocess',
  4. controller: 'osmake-report-inprocess',
  5. viewModel: 'osmake-report-inprocess',
  6. viewName: 'osmake-report-inprocess',
  7. groupField: null,
  8. listUrl: '/api/make/report/osMakeInProcess',
  9. defaultCondition: null,
  10. reportTitle: '外协在制汇总表',
  11. QueryWidth:0.4,
  12. caller:'OsMakeInProcessReport',
  13. searchItems: [{
  14. xtype: 'textfield',
  15. name: 'mm_prodcode',
  16. emptyText:'输入物料编号、名称或型号',
  17. columnWidth: 0.4,
  18. margin:'0 5 5 15',
  19. getCondition: function(v) {
  20. return "(upper(pr_orispeccode) like '%" + v.toUpperCase()+"%' or upper(pr_code) like '%"+v.toUpperCase()+"%' or upper(pr_detail) like '%"+v.toUpperCase()+"%')";
  21. }
  22. }],
  23. reportColumns: [{
  24. text: '物料编号',
  25. width: 150,
  26. dataIndex: 'mm_prodcode'
  27. }, {
  28. text: '物料名称',
  29. dataIndex: 'pr_detail',
  30. width: 150
  31. }, {
  32. text: '物料规格',
  33. dataIndex: 'pr_spec',
  34. width: 200
  35. }, {
  36. text: '单位',
  37. dataIndex: 'pr_unit',
  38. width: 65
  39. }, {
  40. text: '在制数量',
  41. dataIndex: 'qty',
  42. xtype: 'numbercolumn',
  43. width:110,
  44. renderer: function(v) {
  45. return saas.util.BaseUtil.numberFormat(v, 6, true);
  46. }
  47. }, {
  48. text: '成本单价(元)',
  49. dataIndex: 'price',
  50. exportFormat: 'Price',
  51. xtype: 'numbercolumn',
  52. width: 120,
  53. renderer: function(v) {
  54. return saas.util.BaseUtil.numberFormat(v, 8, true);
  55. }
  56. },{
  57. text: '成本金额(元)',
  58. dataIndex: 'amount',
  59. exportFormat: 'Amount',
  60. xtype: 'numbercolumn',
  61. width: 120,
  62. renderer: function(v) {
  63. return saas.util.BaseUtil.numberFormat(v, 8, true);
  64. }
  65. }, {
  66. text: '型号',
  67. dataIndex: 'pr_orispeccode',
  68. width: 200
  69. }, {
  70. text: '厂家/品牌',
  71. dataIndex: 'pr_brand',
  72. width: 100
  73. }, {
  74. text: '外协厂商',
  75. dataIndex: 'ma_vendname',
  76. width: 150
  77. }
  78. ]
  79. });