SMTMonitor.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. Ext.define('erp.view.pm.mes.SMTMonitor', {
  2. extend : 'Ext.Viewport',
  3. id : 'SMTMonitorViewport',
  4. layout : 'anchor',
  5. hideBorders : true,
  6. initComponent : function() {
  7. var me = this;
  8. Ext.apply(me, {
  9. items: [{
  10. id:'form',
  11. title:'SMT用量监控',
  12. xtype: 'form',
  13. anchor: '100% 30%',
  14. bodyStyle: 'background: #f1f1f1;',
  15. bodyPadding:5,
  16. autoScroll: true,
  17. scrollable: true,
  18. items:[{
  19. xtype: 'fieldcontainer',
  20. defaults: {
  21. width: 250
  22. },
  23. layout: {
  24. type: 'table',
  25. columns: 4
  26. },
  27. items: [{
  28. xtype: 'textfield',
  29. fieldLabel: '机台编号',
  30. colspan: 1,
  31. readOnly:true,
  32. id:'msl_devcode',
  33. name:'msl_devcode'
  34. },{
  35. xtype: 'textfield',
  36. fieldLabel: '制造单号',
  37. readOnly:true,
  38. colspan: 1,
  39. id:'mc_makecode',
  40. name:'mc_makecode'
  41. },{
  42. xtype: 'textfield',
  43. fieldLabel: '数量',
  44. readOnly:true,
  45. colspan: 1,
  46. id:'mc_qty',
  47. name:'mc_qty'
  48. },{
  49. xtype: 'textfield',
  50. fieldLabel: '完成数',
  51. colspan: 1,
  52. readOnly:true,
  53. id:'mc_madeqty',
  54. name:'mc_madeqty'
  55. }]
  56. }],
  57. tbar: [{
  58. xtype: 'button',
  59. id: 'settingBtn',
  60. width:80,
  61. text:'设置',
  62. iconCls: 'x-button-icon-submit',
  63. cls: 'x-btn-gray',
  64. style: {
  65. marginLeft: '20px'
  66. }
  67. }]
  68. },{
  69. anchor: '100% 70%',
  70. xtype: 'erpQueryGridPanel',
  71. dockedItems: [{xtype: 'erpToolbar', dock: 'bottom', enableAdd: false, enableDelete: true, enableCopy: true, enablePaste: true, enableUp: false, enableDown: false}],
  72. }]
  73. });
  74. me.callParent(arguments);
  75. }
  76. });