1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- Ext.define('erp.view.scm.product.AutoGetNum',{
- extend: 'Ext.Viewport',
- layout: 'border',
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- region: 'north',
- items: [{
- xtype: 'panel',
- id: 'choose',
- height: 30,
- hidden: true,
- tpl: Ext.create('Ext.XTemplate',
- '<ul class="breadcrumb">',
- '<li><a href="#"><img src="' + basePath + 'resource/images/screens/home.png" alt="Home" class="home" /></a></li>',
- '<tpl for="nodes">',
- '<li><a href="#" title="{.}">{.}</a></li>',
- '</tpl>',
- '</ul>'
- )
- },{
- xtype: 'form',
- layout : 'column',
- height: 30,
- bodyStyle: {background: '#f0f0f1'},
- items: [{
- fieldLabel: '编号',
- xtype: 'textfield',
- fieldStyle : "background:#FFFAFA;color:#515151;",
- readOnly: true,
- labelWidth : 40,
- columnWidth: .5,
- id: 'auto_code',
- name: 'auto_code'
- },{
- xtype: 'button',
- columnWidth: .15,
- iconCls: 'x-button-icon-code',
- cls: 'x-btn-gray-1',
- name: 'code',
- text: '生成编号'
- },{
- xtype: 'button',
- id: 'confirm',
- name: 'confirm',
- columnWidth: .1,
- text : $I18N.common.button.erpConfirmButton,
- iconCls: 'x-button-icon-submit',
- cls: 'x-btn-gray-1'
- },{
- xtype: 'button',
- name: 'close',
- columnWidth: .1,
- text : $I18N.common.button.erpCloseButton,
- iconCls: 'x-button-icon-close',
- cls: 'x-btn-gray-1'
- }]
- }]
- }, {
- xtype: 'prodkindtree',
- region: 'center',
- autoScroll: true
- }]
- });
- me.callParent(arguments);
- }
- });
|