Ext.define('saas.view.money.recBalance.FormPanel', { extend: 'saas.view.core.form.FormPanel', xtype: 'money-recbalance-formpanel', controller: 'money-recbalance-formpanel', viewModel: 'money-recbalance-formpanel', viewName: 'money-recbalance-formpanel', caller: 'RecBalance', //字段属性 _title: '收款单', _idField: 'id', _codeField: 'rb_code', _statusField: 'rb_status', _statusCodeField: 'rb_statuscode', _readUrl: '/api/money/recbalance/read/', _saveUrl: '/api/money/recbalance/save/', _auditUrl: '/api/money/recbalance/audit/', _unAuditUrl: '/api/money/recbalance/unAudit/', _deleteUrl: '/api/money/recbalance/delete/', initId: 0, defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id' }, { xtype: 'hidden', name: 'rb_custid', fieldLabel: '客户ID' }, { xtype: 'hidden', name: 'rb_kind', fieldLabel: '单据类型', defaultValue: '收款单' }, { xtype: 'hidden', name: 'rb_custcode', fieldLabel: '客户编号' }, { xtype: "dbfindtrigger", name: "rb_custname", fieldLabel: "客户名称", }, { xtype: "numberfield", name: "rb_rdamount", fieldLabel: "总欠款" }, { xtype: 'hidden', name: 'rb_rbdamount', fieldLabel: '本次核销金额' }, { xtype: "datefield", name: "rb_date", fieldLabel: "日期" }, { xtype: "hidden", name: "rb_manname", fieldLabel: "收款人" }, { xtype: 'hidden', name: 'rb_remark', fieldLabel: '备注', columnWidth: 1 }, { xtype: "hidden", name: "rb_discounts", fieldLabel: "整单折扣" }, { xtype: 'hidden', name: 'rb_preamount', fieldLabel : '本次预收款' }, { xtype: 'hidden', name: 'rb_havebalance', fieldLabel: '已核销金额' }, { xtype: "detailGridField", storeModel: 'saas.model.money.RecBalance1', detnoColumn: 'rd_detno', deleteDetailUrl: '/api/money/recbalance/deleteDetail1/', columns: [{ text: 'ID', dataIndex: 'id', hidden: true }, { text: '期间', dataIndex: 'rd_ym', editor: { xtype: 'numberfield' }, hidden: true }, { text: '资金账户ID', dataIndex: 'rd_bankid', width : 100.0, editor: { xtype: 'numberfield' }, hidden: true }, { text: '资金账户编号', dataIndex: 'rd_bankcode', width : 100.0, editor: { xtype: 'textfield' }, hidden: true }, { text: '资金账户', dataIndex: 'rd_bankname', width : 200.0, editor: { xtype: 'textfield' } }, { text: "收款金额", dataIndex: "rd_amount", editor: { xtype: 'numberfield' } }, { text: "结算方式", dataIndex: "rd_paymethod", editor: { xtype: 'textfield' } }, { text: "结算号", dataIndex: "rd_paycode", editor: { xtype: 'textfield' } }, { text: "备注", dataIndex: "rd_remark", editor: { xtype: 'textfield' } }] }, { xtype: "detailGridField", storeModel: 'saas.model.money.RecBalance2', detnoColumn: 'rbd_detno', deleteDetailUrl: '/api/money/recbalance/deleteDetail2/', columns: [{ text: 'ID', dataIndex: 'id', hidden: true }, { text: '期间', dataIndex: 'rbd_ym', editor: { xtype: 'numberfield' }, hidden: true }, { text: '来源ID', dataIndex: 'rbd_slid', editor: { xtype: 'numberfield' }, hidden: true }, { text: '来源单号', dataIndex: 'rbd_slcode', editor: { xtype: 'textfield' } }, { text: "业务类型", dataIndex: "rbd_slkind", editor: { xtype: 'textfield' } }, { text: "单据日期", dataIndex: "rbd_sldate", editor: { xtype: 'datefield' } }, { text: "单据金额", dataIndex: "rbd_amount", editor: { xtype: 'numberfield' } }, { text: "已核销金额", dataIndex: "rbd_nowbalance", editor: { xtype: 'numberfield' } }, { text: "未核销金额", dataIndex: "pbd_nowbalance", editor: { xtype: 'numberfield' } }, { text: "本次核销金额", dataIndex: "pbd_nowbalance", editor: { xtype: 'numberfield' } // }, { // text: '备注', // dataIndex: 'rbd_remark', // editor: { // xtype: 'textfield' // } }] }, { xtype: 'numberfield', name: 'rb_recorderid', fieldLabel: '录入人ID', hidden: true }, { xtype: 'textfield', name: 'rb_recorder', fieldLabel: '录入人', hidden: true }, { xtype: 'numberfield', name: 'updaterId', fieldLabel: '更新人ID', hidden: true }, { xtype: 'datefield', name: 'updatedate', fieldLabel: '更新时间', hidden: true }, { xtype: "datefield", name: "rb_recorddate", fieldLabel: "创建时间", hidden: true }] });