/** * 学校信息 */ Ext.define('school.view.basic.school.SchoolInfo', { extend: 'school.view.core.form.FormPanel', xtype: 'basic-school-schoolinfo', // controller: 'purchase-purchase-formpanel', // viewModel: 'purchase-purchase-formpanel', //字段属性 _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: 'id', fieldLabel: 'id' }, { xtype: "textfield", name: "name", fieldLabel: "学校名称", columnWidth: 0.5 }, { xtype: 'textfield', name: 'code', fieldLabel: '学校代码', }, { xtype: 'textfield', name: 'type', fieldLabel: '学校类型' }, { xtype: "textfield", name: "address", fieldLabel: "学校地址", columnWidth: 1 }, { xtype: "textfield", name: 'man', fieldLabel: "联系人" }, { xtype: "textfield", name: 'phone', fieldLabel: '联系电话', }] }); this.callParent(); }, toolBtns: [{ xtype: 'button', text: '转采购验收单', hidden: true, bind: { hidden: '{turnHidden}' }, handler: 'turnIn' }] });