Ext.define('saas.view.document.employee.FormPanel', { extend: 'saas.view.core.form.FormPanel', xtype: 'document-employee-formpanel', controller: 'document-employee-formpanel', viewModel: 'document-employee-formpanel', caller:'Employee', //字段属性 _title:'物料资料', _idField: 'id', _codeField: 'em_code', _readUrl:'/api/document/employee/read/', _saveUrl:'/api/document/employee/save', _deleteUrl:'/api/document/employee/delete/', _deleteMsg:'删除的人员资料将不能恢复,请确认是否删除?', initId:0, codeInHeader: false, defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id', allowBlank: true, columnWidth: 0.25 },{ xtype: 'textfield', name: 'em_code', fieldLabel: '账号', allowBlank: false, columnWidth: 0.25 },{ xtype: 'textfield', name: 'em_name', fieldLabel: '姓名', allowBlank: false, columnWidth: 0.25 },{ xtype: 'textfield', name: 'em_password', fieldLabel: '密码', allowBlank: false, columnWidth: 0.25 },{ xtype: 'combobox', name: 'em_class', columnWidth: 0.25, fieldLabel: '类型', queryMode: 'local', displayField: 'name', valueField: 'value', editable:false, store: Ext.create('Ext.data.ArrayStore', { fields: ['name', 'value'], data: [ ["正式", "正式"], ["离职", "离职"], ] }) },{ xtype: 'textfield', name: 'em_mobile', fieldLabel: '电话', allowBlank: false, columnWidth: 0.25 },{ xtype: 'textfield', name: 'em_email', fieldLabel: '邮箱', // allowBlank: false, columnWidth: 0.25 }], auditTexts: { } });