|
|
@@ -0,0 +1,143 @@
|
|
|
+Ext.define('school.view.basic.staff.StaffDetail', {
|
|
|
+ extend: 'school.view.core.form.FormPanel',
|
|
|
+ xtype: 'basic-staff-staffdetail',
|
|
|
+
|
|
|
+ // controller: 'sale-b2b-purchasedetail',
|
|
|
+ // viewModel: 'sale-b2b-purchasedetail',
|
|
|
+
|
|
|
+ //字段属性
|
|
|
+ _title: '教职工信息',
|
|
|
+ _idField: 'teacher_id',
|
|
|
+ _codeField: 'teacher_number',
|
|
|
+ _statusField: null,
|
|
|
+ _statusCodeField: null,
|
|
|
+ _auditmanField: null,
|
|
|
+ _auditdateField: null,
|
|
|
+ // _readUrl: 'http://10.1.80.35:8560/api/sale/saledown/read',
|
|
|
+ _readUrl: '/api/sale/saledown/read',
|
|
|
+ // _saveUrl: 'http://10.1.80.35:8560/api/sale/saledown/update',
|
|
|
+ _saveUrl: '/api/sale/saledown/update',
|
|
|
+ // _toSaleUrl: 'http://10.1.80.35:8560/api/sale/saledown/toSale',
|
|
|
+ _toSaleUrl: '/api/sale/saledown/toSale',
|
|
|
+ initId: 0,
|
|
|
+
|
|
|
+ codeInHeader: true,
|
|
|
+
|
|
|
+ initComponent: function () {
|
|
|
+ Ext.apply(this, {
|
|
|
+ defaultItems: [{
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_number',
|
|
|
+ fieldLabel: '工号'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_name',
|
|
|
+ fieldLabel: '姓名'
|
|
|
+ }, {
|
|
|
+ xtype: "textfield",
|
|
|
+ name: "teacher_phone",
|
|
|
+ fieldLabel: "性别"
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_phone',
|
|
|
+ fieldLabel: '手机号'
|
|
|
+ }, {
|
|
|
+ xtype: "textfield",
|
|
|
+ name: "teacher_jg",
|
|
|
+ fieldLabel: "籍贯"
|
|
|
+ }, {
|
|
|
+ xtype: 'datefield',
|
|
|
+ name: 'teacher_birth',
|
|
|
+ fieldLabel: '出生年月日',
|
|
|
+ format: 'Y-m-d'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_mz',
|
|
|
+ fieldLabel: '民族'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_hf',
|
|
|
+ fieldLabel: '婚姻状态'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_zz',
|
|
|
+ fieldLabel: '政治面貌'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_address',
|
|
|
+ fieldLabel: '现居住址'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_jjname',
|
|
|
+ fieldLabel: '紧急联系人'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_jjphone',
|
|
|
+ fieldLabel: '紧急联系人电话'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_jjgx',
|
|
|
+ fieldLabel: '紧急联系人关系'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_xl',
|
|
|
+ fieldLabel: '学历'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_by',
|
|
|
+ fieldLabel: '毕业学校'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_zy',
|
|
|
+ fieldLabel: '专业'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_phone',
|
|
|
+ fieldLabel: '手机号码'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_email',
|
|
|
+ fieldLabel: '邮箱'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_app',
|
|
|
+ fieldLabel: '是否开通APP'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_wechat',
|
|
|
+ fieldLabel: '绑定微信号'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_type',
|
|
|
+ fieldLabel: '账号类型'
|
|
|
+ }, {
|
|
|
+ xtype: 'textfield',
|
|
|
+ name: 'teacher_gwlx',
|
|
|
+ fieldLabel: '岗位类型'
|
|
|
+ }, {
|
|
|
+ name: "detailGridField",
|
|
|
+ xtype: "detailGridField",
|
|
|
+ detnoColumn: 'sd_detno',
|
|
|
+ storeModel: 'school.model.basic.staff.StaffDetail',
|
|
|
+ deleteDetailUrl: '/api/sale/sale/deleteDetail',
|
|
|
+ allowEmpty: true,
|
|
|
+ showCount: false,
|
|
|
+ columns: [{
|
|
|
+ text: '任课班级',
|
|
|
+ dataIndex: 'clazz_id',
|
|
|
+ hidden: true
|
|
|
+ }, {
|
|
|
+ text: '任课班级',
|
|
|
+ dataIndex: 'clazz_name',
|
|
|
+ editor: {
|
|
|
+ xtype: 'textfield'
|
|
|
+ }
|
|
|
+ }, {
|
|
|
+ text: '科目',
|
|
|
+ dataIndex: 'kemu'
|
|
|
+ }]
|
|
|
+ }],
|
|
|
+ });
|
|
|
+ this.callParent();
|
|
|
+ },
|
|
|
+});
|