| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /**
- * 学校信息
- */
- Ext.define('school.view.basic.SchoolInfo', {
- extend: 'school.view.core.form.FormPanel',
- xtype: 'basic-schoolinfo',
- // controller: 'purchase-purchase-formpanel',
- // viewModel: 'purchase-purchase-formpanel',
- viewName: 'basic-schoolinfo',
- //字段属性
- _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'
- }]
- });
|