SchoolInfo.js 2.1 KB

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