Inprocess.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Ext.define('make.view.make.report.inprocess.Inprocess', {
  2. extend: 'saas.view.core.report.ReportPanel',
  3. xtype: 'make-report-inprocess',
  4. controller: 'make-report-inprocess',
  5. viewModel: 'make-report-inprocess',
  6. viewName: 'make-report-inprocess',
  7. groupField: null,
  8. listUrl: '/api/make/report/makeInProcess',
  9. defaultCondition: null,
  10. reportTitle: '工单在制汇总表',
  11. QueryWidth:0.4,
  12. caller:'MakeInProcessReport',
  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. ]
  75. });