Ext.define('school.view.basic.class.ClassDetail', { extend: 'school.view.core.form.FormPanel', xtype: 'classdetail', //字段属性 _title: '班级信息', _idField: 'id', _codeField: 'pu_code', _statusField: 'pu_status', _statusCodeField: 'pu_statuscode', _auditmanField: 'pu_auditman', _auditdateField: 'pu_auditdate', _relationColumn: 'pd_puid', _readUrl: '/api/purchase/purchase/read', _saveUrl: '/api/purchase/purchase/save', _auditUrl: '/api/purchase/purchase/audit', _unAuditUrl: '/api/purchase/purchase/unAudit', _deleteUrl: '/api/purchase/purchase/delete', _turnInUrl: '/api/purchase/purchase/turnProdin', initId: 0, initComponent: function () { Ext.apply(this, { defaultItems: [{ xtype: 'hidden', name: 'currentDetail.id', fieldLabel: 'id', group: '班级信息', }, { xtype: "textfield", name: "currentDetail.name", fieldLabel: "班级名称", columnWidth: 0.5, group: '班级信息', }, { // xtype: 'textfield', // name: 'code', // fieldLabel: '班级代码', // }, { xtype: 'textfield', name: 'currentDetail.grade', fieldLabel: '所属年级', columnWidth: 0.5, group: '班级信息', }, { xtype: "textfield", name: "address", fieldLabel: "班级地址", columnWidth: 1, group: '班级信息', }, { xtype: "textfield", name: 'status', fieldLabel: "状态", columnWidth: 0.5, group: '班级信息', }, { xtype: "textfield", name: 'remark', fieldLabel: '备注', columnWidth: 0.5, group: '班级信息', }, { name: "detailGridField", xtype: "detailGridField", detnoColumn: 'sd_detno', storeModel: 'school.model.basic.Student', deleteDetailUrl: '/api/sale/sale/deleteDetail', allowEmpty: true, showCount: false, group: '学生信息', columns: [{ text: 'id', dataIndex: 'student_id', hidden: true }, { text: '学号', dataIndex: 'student_number' }, { text: '姓名', dataIndex: 'student_name' }, { text: '性别', dataIndex: 'student_gender' }, { text: '出生日期', dataIndex: 'student_birth', xtype: 'datecolumn', format: 'Y-m-d' }, { text: '年龄', dataIndex: 'student_age' }, { text: '家庭住址', dataIndex: 'student_address' }] }] }); this.callParent(); }, });