Master.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Ext.define('erp.view.common.init.Master',{
  2. extend: 'Ext.Viewport',
  3. layout: {
  4. type: 'hbox',
  5. align: 'middle',
  6. pack: 'center'
  7. },
  8. style: 'background: #f1f2f5;',
  9. initComponent : function(){
  10. var me = this;
  11. Ext.apply(me, {
  12. items: [{
  13. xtype: 'form',
  14. height: 200,
  15. width: 400,
  16. layout: {
  17. type: 'vbox',
  18. align: 'center',
  19. pack: 'center'
  20. },
  21. title: '登录到需要初始化的账套',
  22. bodyStyle: 'background: #f1f1f1;',
  23. defaults: {
  24. margin: '5 10 5 10',
  25. labelWidth: 40
  26. },
  27. items: [{
  28. xtype: 'combobox',
  29. allowBlank: false,
  30. editable: false,
  31. fieldLabel: '账套',
  32. name: 'ma_name',
  33. id: 'ma_name',
  34. store: Ext.create('Ext.data.Store', {
  35. fields: ['display', 'value']
  36. }),
  37. displayField: 'display',
  38. valueField: 'value',
  39. queryMode: 'local'
  40. },{
  41. xtype: 'textfield',
  42. fieldLabel: '账号',
  43. name: 'em_code',
  44. allowBlank: false,
  45. id: 'em_code'
  46. },{
  47. xtype: 'textfield',
  48. fieldLabel: '密码',
  49. allowBlank: false,
  50. inputType: 'password',
  51. name: 'em_password',
  52. allowBlank: false,
  53. id: 'em_password'
  54. }],
  55. buttonAlign: 'center',
  56. buttons: [{
  57. text: '上一步',
  58. cls: 'custom-button',
  59. id: 'prev'
  60. },{
  61. text: '新建账套',
  62. cls: 'custom-button',
  63. id: 'newmaster'
  64. },{
  65. text: '确定',
  66. cls: 'custom-button',
  67. formBind: true,
  68. id: 'confirm'
  69. },{
  70. text: '下一步',
  71. cls: 'custom-button',
  72. id: 'next',
  73. disabled: true
  74. }]
  75. }]
  76. });
  77. me.callParent(arguments);
  78. }
  79. });