| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- Ext.define('erp.view.b2c.DeviceInApply',{
- extend: 'Ext.Viewport',
- layout: 'fit',
- hideBorders: true,
- initComponent : function(){
- var me = this;
- Ext.apply(me, {
- items: [{
- id:'BrandInApplyViewport',
- layout: 'anchor',
- autoScroll: true,
- items: [{
- xtype: 'form',
- autoScroll:true,
- bodyStyle: 'background: #E8E8E8;',
- items:[{
- allowBlank: false,
- allowDecimals: true,
- border: false,
- group: 0,
- html: "<div onclick='javascript:collapse(0);' class='x-form-group-label' id='group0' style='background-color: #E8E8E8;height:22px;width:80%;!important;' title='收拢'><h6>商品基本信息</h6></div>",
- xtype: "container",
- },{
- defaults:{
- xtype:'textfield',
- beforeLabelTextTpl:'<span style="color:red;font-weight:bold" data-qtip="Required">*</span>',
- //labelAlign : "center"
- },
- bodyStyle: 'background: #E8E8E8;',
- layout:'column',
- border: false,
- margin:'10 0 0 0',
- items:[{
- name:'de_oldspec',
- id:'de_oldspec',
- fieldLabel:'原厂型号',
- columnWidth:.3,
- },{
- name:'de_packingspec',
- id:'de_packingspec',
- fieldLabel:'封装规格',
- columnWidth:.3,
- },{
- xtype:'textfield',
- name:'de_weight',
- id:'de_weight',
- minValue:0,
- fieldLabel:'净重量',
- columnWidth:.3,
- },{
- xtype : 'displayfield',
- value : '(g/个)'
- },{
- xtype:'triggerfield',
- triggerCls:'x-form-search-trigger',
- name:'de_brand',
- id:'de_brand',
- fieldLabel:'品牌',
- columnWidth:.3,
- },{
- xtype:'triggerfield',
- triggerCls:'x-form-search-trigger',
- name:'de_kind',
- id:'de_kind',
- fieldLabel:'所属类目',
- columnWidth:.3,
- }],
- },{
- allowBlank: false,
- allowDecimals: true,
- group: 1,
- border: false,
- html: "<div onclick='javascript:collapse(1);' class='x-form-group-label' id='group1' style='background-color: #bfbfbe;height:22px;width:80%;!important;' title='收拢'><h6>图片和详细说明</h6></div>",
- xtype: "container",
- },{
- bodyStyle: 'background: #E8E8E8;',
- margin:'10 0 0 0',
- border: false,
- defaults:{
- xtype:'textfield',
- beforeLabelTextTpl:'<span style="color:red;font-weight:bold" data-qtip="Required">*</span>',
- //labelAlign : "center"
- },items:[{
- xtype: 'filefield',
- columnWidth:.4,
- id:'de_image',
- name: 'file',
- fieldLabel:'器件图片',
- allowBlank: false,
- buttonOnly:true,
- buttonConfig:{
- text:'选择图片',
- iconCls:'x-button-icon-pic'
- },
- listeners: {
- change: function(field){
- // field.ownerCt.upload(field);
- }
- }
- },{
- xtype: 'image',
- width: 155,
- height: 96,
- id:'logo',
- hidden:true
- },{
- xtype:'htmleditor',
- fieldLabel:'详细描述',
- width:1220,
- height:200,
- id:'de_description',
- name:'de_description',
- }]
- },{
- allowBlank: false,
- allowDecimals: true,
- group: 2,
- html: "<div onclick='javascript:collapse(2);' class='x-form-group-label' id='group2' style='background-color: #bfbfbe;height:22px;width:80%;!important;' title='收拢'><h6>器件属性</h6></div>",
- xtype: "container",
- },{
- margin:'10 0 0 0',
- layout:'column',
- border: false,
- bodyStyle: 'background: #E8E8E8;',
- defaults:{
- xtype:'textfield'
- // labelAlign : "right",
- },
- items:[{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'商标',
- },{
- name:'43',
- columnWidth:.4,
- fieldLabel:'RoHS',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'端接类型',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'VSWR',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'功率额定值',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'产品',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'频率范围',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'频率',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'增益',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'长度',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'零件号别名',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'IP 等级',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'极性',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'应用',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'阻抗',
- },{
- name:'de_brand',
- columnWidth:.4,
- labelWidth:120,
- fieldLabel:'天线连接器类型',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'包装方式',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'带宽',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'安装风格',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'工厂包装数量',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'产品种类',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'技术',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'商标名',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'最小工作温度',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'用于',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'系列',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'高度',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'宽度',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'直径',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'电缆长度',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'单位重量',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'类型',
- },{
- name:'de_brand',
- columnWidth:.4,
- fieldLabel:'最大工作温度',
- }]
- }]
- }],
- buttonAlign:'center',
- buttons:[{
- xtype:'erpSaveButton'
- },{
- xtype:'erpSubmitButton'
- },{
- xtype:'erpAuditButton'
- }]
- }]
- });
- me.callParent(arguments);
- }
- });
|