AutoGetNum.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. Ext.define('erp.view.scm.product.AutoGetNum',{
  2. extend: 'Ext.Viewport',
  3. layout: 'border',
  4. initComponent : function(){
  5. var me = this;
  6. Ext.apply(me, {
  7. items: [{
  8. region: 'north',
  9. items: [{
  10. xtype: 'panel',
  11. id: 'choose',
  12. height: 30,
  13. hidden: true,
  14. tpl: Ext.create('Ext.XTemplate',
  15. '<ul class="breadcrumb">',
  16. '<li><a href="#"><img src="' + basePath + 'resource/images/screens/home.png" alt="Home" class="home" /></a></li>',
  17. '<tpl for="nodes">',
  18. '<li><a href="#" title="{.}">{.}</a></li>',
  19. '</tpl>',
  20. '</ul>'
  21. )
  22. },{
  23. xtype: 'form',
  24. layout : 'column',
  25. height: 30,
  26. bodyStyle: {background: '#f0f0f1'},
  27. items: [{
  28. fieldLabel: '编号',
  29. xtype: 'textfield',
  30. fieldStyle : "background:#FFFAFA;color:#515151;",
  31. readOnly: true,
  32. labelWidth : 40,
  33. columnWidth: .5,
  34. id: 'auto_code',
  35. name: 'auto_code'
  36. },{
  37. xtype: 'button',
  38. columnWidth: .15,
  39. iconCls: 'x-button-icon-code',
  40. cls: 'x-btn-gray-1',
  41. name: 'code',
  42. text: '生成编号'
  43. },{
  44. xtype: 'button',
  45. id: 'confirm',
  46. name: 'confirm',
  47. columnWidth: .1,
  48. text : $I18N.common.button.erpConfirmButton,
  49. iconCls: 'x-button-icon-submit',
  50. cls: 'x-btn-gray-1'
  51. },{
  52. xtype: 'button',
  53. name: 'close',
  54. columnWidth: .1,
  55. text : $I18N.common.button.erpCloseButton,
  56. iconCls: 'x-button-icon-close',
  57. cls: 'x-btn-gray-1'
  58. }]
  59. }]
  60. }, {
  61. xtype: 'prodkindtree',
  62. region: 'center',
  63. autoScroll: true
  64. }]
  65. });
  66. me.callParent(arguments);
  67. }
  68. });