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', _auditmanField: 'ft_auditman', _auditdateField: 'ft_auditdate', _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, initComponent: function () { Ext.apply(this, { defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id' }, { xtype: "datefield", name: "ft_date", fieldLabel: "单据日期", defaultValue: new Date(), allowBlank: false }, { name: "detailGridField", xtype: "detailGridField", storeModel: 'saas.model.money.FundTransfer', detnoColumn: 'ftd_detno', deleteDetailUrl: '/api/money/fundtransfer/deleteDetail', columnWidth: 1, columns: [{ text: "id", dataIndex: "id", xtype: "numbercolumn", hidden: true }, { text: "期间", dataIndex: "ftd_ym", editor: { xtype: "numberfield" }, width: 110.0, items: null, hidden: true }, { text: "转出账户ID", dataIndex: "ftd_bankid", hidden: true }, { text: "转出账户编号", dataIndex: "ftd_bankcode", hidden: true }, { text: "转出账户", width: 200.0, dataIndex: "ftd_bankname", xtype: "", items: null, allowBlank: false, editor: { xtype: "bandinfoDbfindTrigger", displayField: "display", editable: true, format: "", hideTrigger: false, maxLength: 100.0, minValue: null, positiveNum: false, queryMode: "local", store: null, valueField: "value" } }, { text: "转出账户余额(元)", dataIndex: "bk_outthisamount", ignore: true }, { text: "转入账户ID", dataIndex: "ftd_inbankid", hidden: true }, { text: "转入账户编号", dataIndex: "ftd_inbankcode", hidden: true }, { text: "转入账户", width: 200.0, dataIndex: "ftd_inbankname", xtype: "", items: null, allowBlank: false, editor: { displayField: "display", editable: true, format: "", hideTrigger: false, maxLength: 100.0, minValue: null, positiveNum: false, queryMode: "local", store: null, valueField: "value", xtype: "bandinfoDbfindTrigger" } }, { text: "转入账户余额(元)", dataIndex: "bk_inthisamount", ignore: true, width: 150.0 }, { text: "本次转出金额(元)", xtype: 'numbercolumn', dataIndex: "ftd_nowbalance", width: 150.0, allowBlank: false, editor: { xtype: "numberfield", decimalPrecision: 2 }, renderer: function(v, m, r) { return saas.util.BaseUtil.numberFormat(v, 2, true); }, summaryType: 'sum', summaryRenderer: function(v, d, f, m) { return saas.util.BaseUtil.numberFormat(v, 2, true); } }, { text: "结算方式", width: 110.0, dataIndex: "ftd_paymethod", editor: { xtype: 'combo', queryMode: 'local', displayField: 'display', valueField: 'value', store: Ext.create('Ext.data.Store', { fields: ['value', 'display'], data: [{ value: "信用卡", display: "信用卡" }, { value: "支票", display: "支票" }, { value: "汇票", display: "汇票" }, { value: "现金", display: "现金" }, { value: "银行转账", display: "银行转账" }, { value: "支付宝转账", display: "支付宝转账" }, { value: "微信转账", display: "微信转账" }] }) } }, { text: "结算号", dataIndex: "ftd_paycode", width: 150, editor: { xtype: '' } }, { text: "备注", dataIndex: "ftd_remark", width: 250.0, items: null, editor: { xtype: "" } }, { dataIndex: "ftd_text1", text: "自定义字段1", width: 100, hidden: true, initHidden: false, editor: { xtype: "textfield" }, }, { dataIndex: "ftd_text2", text: "自定义字段2", width: 100, hidden: true, initHidden: false, editor: { xtype: "textfield" }, }, { dataIndex: "ftd_text3", text: "自定义字段3", width: 100, hidden: true, initHidden: false, editor: { xtype: "textfield" }, }, { dataIndex: "ftd_text4", text: "自定义字段4", width: 100, hidden: true, initHidden: false, editor: { xtype: "textfield" }, }, { dataIndex: "ftd_text5", text: "自定义字段5", width: 100, hidden: true, initHidden: false, editor: { xtype: "textfield" }, }] }, { xtype: "textfield", name: "ft_remark", fieldLabel: "备注", allowBlank: true, columnWidth: 1 }, { xtype: "hidden", name: "creatorId", fieldLabel: "录入人ID", readOnly: true }, { xtype: "textfield", name: "creatorName", fieldLabel: "录入人", readOnly: true }, { xtype: "datefield", name: "createTime", fieldLabel: "录入日期", readOnly: true, defaultValue: new Date() }, { xtype: "hidden", name: "updaterId", fieldLabel: "更新人ID", readOnly: true }, { xtype: "hidden", name: "updaterName", fieldLabel: "更新人", readOnly: true }, { xtype: "hidden", name: "updateTime", fieldLabel: "更新日期", readOnly: true, defaultValue: new Date() }, { xtype: 'textfield', name: 'ft_auditman', fieldLabel: '审核人', readOnly: true }, { xtype: "datefield", name: "ft_auditdate", fieldLabel: "审核日期", readOnly: true }, { xtype: "textfield", name: "ft_text1", fieldLabel: "自定义字段1", hidden: true, initHidden: false }, { xtype: "textfield", name: "ft_text2", fieldLabel: "自定义字段2", hidden: true, initHidden: false }, { xtype: "textfield", name: "ft_text3", fieldLabel: "自定义字段3", hidden: true, initHidden: false }, { xtype: "textfield", name: "ft_text4", fieldLabel: "自定义字段4", hidden: true, initHidden: false }, { xtype: "textfield", name: "ft_text5", fieldLabel: "自定义字段5", hidden: true, initHidden: false }] }); this.callParent(arguments); }, });