Ext.define('saas.view.money.fundtransfer.FormPanel', { extend: 'saas.view.core.form.FormPanel', xtype: 'money-fundtransfer-formpanel', controller: 'money-fundtransfer-formpanel', viewModel: 'money-fundtransfer-formpanel', viewName: 'money-fundtransfer-formpanel', caller:'FundTransfer', //字段属性 _title:'其它收入单', _idField: 'id', _codeField: 'ft_code', _statusField: 'ft_status', _statusCodeField: 'ft_statuscode', _relationColumn: 'ftd_ftid', _readUrl:'/api/money/fundtransfer/read/', _saveUrl:'/api/money/fundtransfer/save', _auditUrl:'/api/money/fundtransfer/audit/', _unAuditUrl: '/api/money/fundtransfer/unAudit/', _deleteUrl:'/api/money/fundtransfer/delete/', initId:0, defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id' }, { xtype : "datefield", name : "ft_date", fieldLabel : "单据日期" }, { name : "detailGridField", xtype : "detailGridField", storeModel:'saas.model.money.FundTransfer', detnoColumn: 'ftd_detno', deleteDetailUrl:'/api/money/fundtransfer/deleteItem/', columnWidth : 1, columns : [ { text : "id", dataIndex : "id", xtype : "numbercolumn", width:0 }, { text : "期间", dataIndex : "ftd_ym", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", items : null }, { text : "转出账户ID", dataIndex : "ftd_bankid", width : 0 }, { text : "转出账户编号", dataIndex : "ftd_bankcode", width :0 }, { text : "转出账户", width : 200.0, dataIndex : "ftd_bankname", xtype : "", items : null, editor : { displayField : "display", editable : true, format : "", hideTrigger : false, maxLength : 100.0, minValue : null, positiveNum : false, queryMode : "local", store : null, valueField : "value", xtype : "dbfindtrigger" } }, { text : "转入账户ID", dataIndex : "ftd_inbankid", width : 0 }, { text : "转入账户编号", dataIndex : "ftd_inbankcode", width :0 }, { text : "转入账户", width : 200.0, dataIndex : "ftd_inbankname", xtype : "", items : null, editor : { displayField : "display", editable : true, format : "", hideTrigger : false, maxLength : 100.0, minValue : null, positiveNum : false, queryMode : "local", store : null, valueField : "value", xtype : "dbfindtrigger" } }, { text : "金额", dataIndex : "ftd_nowbalance", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", format:'0', items : null, summaryType: 'sum' }, { text : "结算方式号", dataIndex : "ftd_paycode", width : 100, editor:{ xtype: '' } }, { text : "结算方式", width : 150.0, dataIndex : "ftd_paymethod", xtype : "", items : null, editor:{ xtype: 'combobox', name: 'ftd_paymethod', queryMode: 'local', displayField: 'ftd_paymethod_d', valueField: 'ftd_paymethod', editable:false, store: Ext.create('Ext.data.ArrayStore', { fields: ['ftd_paymethod', 'ftd_paymethod_d'], data: [ ["无", "无"], ["支付宝转账", "支付宝转账"], ["微信转账", "微信转账"], ["现金", "现金"], ["银行转账", "银行转账"] ] }) } }, { text : "备注", dataIndex : "ftd_remark", width : 120.0, items : null, flex : 1.0, editor : { xtype : "" } } ] },{ xtype : "textfield", name : "ft_remark", fieldLabel : "备注", allowBlank : true, columnWidth : 0.75 }, { xtype : "textfield", name : "ft_recorder", fieldLabel : "录入人", readOnly:true }, { xtype : "datefield", name : "ft_recorddate", fieldLabel : "录入日期", readOnly:true } ] });