ClassDetail.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. Ext.define('school.view.basic.ClassDetail', {
  2. extend: 'school.view.core.form.FormPanel',
  3. xtype: 'classdetail',
  4. //字段属性
  5. _title: '班级信息',
  6. _idField: 'id',
  7. _codeField: 'pu_code',
  8. _statusField: 'pu_status',
  9. _statusCodeField: 'pu_statuscode',
  10. _auditmanField: 'pu_auditman',
  11. _auditdateField: 'pu_auditdate',
  12. _relationColumn: 'pd_puid',
  13. _readUrl: '/api/purchase/purchase/read',
  14. _saveUrl: '/api/purchase/purchase/save',
  15. _auditUrl: '/api/purchase/purchase/audit',
  16. _unAuditUrl: '/api/purchase/purchase/unAudit',
  17. _deleteUrl: '/api/purchase/purchase/delete',
  18. _turnInUrl: '/api/purchase/purchase/turnProdin',
  19. initId: 0,
  20. initComponent: function () {
  21. Ext.apply(this, {
  22. defaultItems: [{
  23. xtype: 'hidden',
  24. name: 'currentDetail.id',
  25. fieldLabel: 'id'
  26. }, {
  27. xtype: "textfield",
  28. name: "currentDetail.name",
  29. fieldLabel: "班级名称",
  30. columnWidth: 0.5
  31. }, {
  32. // xtype: 'textfield',
  33. // name: 'code',
  34. // fieldLabel: '班级代码',
  35. // }, {
  36. xtype: 'textfield',
  37. name: 'currentDetail.grade',
  38. fieldLabel: '所属年级',
  39. columnWidth: 0.5
  40. }, {
  41. xtype: "textfield",
  42. name: "address",
  43. fieldLabel: "班级地址",
  44. columnWidth: 1
  45. }, {
  46. xtype: "textfield",
  47. name: 'status',
  48. fieldLabel: "状态",
  49. columnWidth: 0.5
  50. }, {
  51. xtype: "textfield",
  52. name: 'remark',
  53. fieldLabel: '备注',
  54. columnWidth: 0.5
  55. }]
  56. });
  57. this.callParent();
  58. },
  59. });