Ext.define('saas.view.sys.config.FormPanel', { extend: 'Ext.form.Panel', xtype: 'sys-config-formpanel', controller: 'sys-config-formpanel', viewModel: 'sys-config-formpanel', //字段属性 _idField: 'id', _readUrl:'/api/document/vendor/read/', _saveUrl:'/api/document/vendor/save', //基础属性 frame:true, initId: 0, layout: 'column', autoScroll: true, border: 1, bodyPadding: 5, fieldDefaults: { margin: '0 5 5 0', labelAlign: 'right', labelWidth: 90, columnWidth: 0.25, blankText: '该字段不能为空' }, tbar:{ style: { 'border-bottom': '1px solid #35baf6 !important' }, frame:true, items:['->',{ text:'保存', handler:function(){ } }] }, items: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id', allowBlank: true, columnWidth: 0.25 },{ xtype: 'textfield', name: 'en_name', fieldLabel: '公司名称', allowBlank: false, columnWidth: 0.5 },{ xtype: 'textfield', name: 'en_address', fieldLabel: '公司地址', allowBlank: true, columnWidth: 0.5 },{ xtype: 'textfield', name: 'en_tel', fieldLabel: '电话', allowBlank: true, columnWidth: 0.25 },{ xtype: 'textfield', name: 'en_fax', fieldLabel: '传真', allowBlank: true, columnWidth: 0.5 },{ xtype : "datefield", name : "en_begindate", fieldLabel : "开账日期", allowBlank : true, editable:false, columnWidth : 0.25 },{ displayField : "display", editable:false, hideTrigger : false, maxLength : 100.0, minValue : null, queryMode : "local", valueField : "value", xtype : "combo", store:{ fields: ['display', 'value'], data : [ {"display":"加权平均法", "value":'1'}, {"display":"先进先出法", "value":'0'} ] }, name : "en_pricemethod", fieldLabel : "库存计算方式", allowBlank : false, columnWidth : 0.25 },{ xtype : "textfield", name : "en_signet", fieldLabel : "打印章上传", allowBlank : true, editable:false, columnWidth : 0.25 },{ xtype : "datefield", name : "updateTime", fieldLabel : "更新时间", allowBlank : true, editable:false, columnWidth : 0.25 }] });