SchoolInfo.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /**
  2. * 学校信息
  3. */
  4. Ext.define('school.view.basic.school.SchoolInfo', {
  5. extend: 'school.view.core.form.FormPanel',
  6. xtype: 'basic-school-schoolinfo',
  7. // controller: 'purchase-purchase-formpanel',
  8. // viewModel: 'purchase-purchase-formpanel',
  9. //字段属性
  10. _title: '学校信息',
  11. _idField: 'id',
  12. _codeField: 'pu_code',
  13. _statusField: 'pu_status',
  14. _statusCodeField: 'pu_statuscode',
  15. _auditmanField: 'pu_auditman',
  16. _auditdateField: 'pu_auditdate',
  17. _relationColumn: 'pd_puid',
  18. _readUrl: '/api/purchase/purchase/read',
  19. _saveUrl: '/api/purchase/purchase/save',
  20. _auditUrl: '/api/purchase/purchase/audit',
  21. _unAuditUrl: '/api/purchase/purchase/unAudit',
  22. _deleteUrl: '/api/purchase/purchase/delete',
  23. _turnInUrl: '/api/purchase/purchase/turnProdin',
  24. initId: 0,
  25. initComponent: function () {
  26. Ext.apply(this, {
  27. defaultItems: [{
  28. xtype: 'hidden',
  29. name: 'id',
  30. fieldLabel: 'id'
  31. }, {
  32. xtype: "textfield",
  33. name: "name",
  34. fieldLabel: "学校名称",
  35. columnWidth: 0.5
  36. }, {
  37. xtype: 'textfield',
  38. name: 'code',
  39. fieldLabel: '学校代码',
  40. }, {
  41. xtype: 'textfield',
  42. name: 'type',
  43. fieldLabel: '学校类型'
  44. }, {
  45. xtype: "textfield",
  46. name: "address",
  47. fieldLabel: "学校地址",
  48. columnWidth: 1
  49. }, {
  50. xtype: "textfield",
  51. name: 'man',
  52. fieldLabel: "联系人"
  53. }, {
  54. xtype: "textfield",
  55. name: 'phone',
  56. fieldLabel: '联系电话',
  57. }]
  58. });
  59. this.callParent();
  60. },
  61. toolBtns: [{
  62. xtype: 'button',
  63. text: '转采购验收单',
  64. hidden: true,
  65. bind: {
  66. hidden: '{turnHidden}'
  67. },
  68. handler: 'turnIn'
  69. }]
  70. });