TestPost.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Ext.define('erp.view.plm.test.TestPost',{
  2. extend: 'Ext.Viewport',
  3. layout: 'border',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'panel',
  10. bodyStyle: 'background: #f1f1f1;padding-top: 60px',
  11. height: '100%',
  12. region: 'west',
  13. width: '33%',
  14. flex: 1,
  15. layout: {
  16. type: 'vbox',
  17. align: 'center'
  18. },
  19. items: [{
  20. xtype: 'button',
  21. cls: 'x-btn-blue btn-test-post',
  22. text: '采购验收单',
  23. style: {
  24. marginTop: 20
  25. },
  26. caller: 'ProdInOut!PurcCheckin'
  27. },{
  28. xtype: 'displayfield',
  29. value: '<img src=' + basePath + 'resource/images/32/down.png>',
  30. labelSeparator: '',
  31. style: {
  32. marginTop: 20
  33. }
  34. },{
  35. xtype: 'button',
  36. cls: 'x-btn-blue btn-test-post',
  37. text: '采购验退单',
  38. style: {
  39. marginTop: 35
  40. },
  41. caller: 'ProdInOut!PurcCheckout'
  42. }]
  43. },{
  44. xtype: 'panel',
  45. bodyStyle: 'background: #f1f1f1;padding-top: 60px',
  46. region: 'center',
  47. width: '34%',
  48. height: '100%',
  49. layout: {
  50. type: 'vbox',
  51. align: 'center'
  52. },
  53. items: [{
  54. xtype: 'button',
  55. cls: 'x-btn-blue btn-test-post',
  56. text: '发货单',
  57. style: {
  58. marginTop: 20
  59. },
  60. caller: 'ProdInOut!Sale'
  61. },{
  62. xtype: 'displayfield',
  63. value: '<img src=' + basePath + 'resource/images/32/down.png>',
  64. labelSeparator: '',
  65. style: {
  66. marginTop: 20
  67. }
  68. },{
  69. xtype: 'button',
  70. cls: 'x-btn-blue btn-test-post',
  71. text: '退货单',
  72. style: {
  73. marginTop: 35
  74. },
  75. caller: 'ProdInOut!SaleReturn'
  76. }]
  77. },{
  78. xtype: 'panel',
  79. bodyStyle: 'background: #f1f1f1;padding-top: 60px',
  80. region: 'east',
  81. width: '33%',
  82. height: '100%',
  83. layout: {
  84. type: 'vbox',
  85. align: 'center'
  86. },
  87. items: [{
  88. xtype: 'button',
  89. cls: 'x-btn-blue btn-test-post',
  90. text: '生产领料单',
  91. style: {
  92. marginTop: 20
  93. },
  94. caller: 'ProdInOut!Picking'
  95. },{
  96. xtype: 'displayfield',
  97. value: '<img src=' + basePath + 'resource/images/32/down.png>',
  98. labelSeparator: '',
  99. style: {
  100. marginTop: 20
  101. }
  102. },{
  103. xtype: 'button',
  104. cls: 'x-btn-blue btn-test-post',
  105. text: '生产退料单',
  106. style: {
  107. marginTop: 35
  108. },
  109. caller: 'ProdInOut!Make!Return'
  110. }]
  111. }]
  112. });
  113. me.callParent(arguments);
  114. }
  115. });