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: 'pd_code', _statusField: 'pd_status', _statusCodeField: 'pd_statuscode', _readUrl: 'http://192.168.253.129:8920/api/money/recbalance/read', _saveUrl: 'http://192.168.253.129:8920/money/recbalance/save', _auditUrl: 'http://192.168.0.181:8560/api/purchase/purchase/audit', _deleteUrl: 'http://192.168.0.181:8560/api/purchase/purchase/delete/', _deleteDetailUrl: 'http://192.168.0.181:8560/api/purchase/purchase/deleteItem/', _turnInUrl: 'http://192.168.253.228:8800/purchase/turnProdin/', initId: 0, defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id' }, { xtype: 'hidden', name: 'rb_custid', fieldLabel: '客户ID' }, { xtype: 'hidden', name: 'rb_custcode', fieldLabel: '客户编号' }, { xtype: "dbfindtrigger", name: "rb_custname", fieldLabel: "客户名称", dataUrl: '', }, { xtype: "numberfield", name: "rb_rbdamount", readOnly: true, editable: false, fieldLabel: "总欠款" }, { xtype: "datefield", name: "rb_date", fieldLabel: "日期" }, { xtype: "textfield", name: "rb_manname", fieldLabel: "收款人" }, { xtype: 'textareafield', name: 'rb_remark', fieldLabel: '备注', columnWidth: 1 }, { xtype: "numberfield", name: "rb_discounts", fieldLabel: "整单折扣" }, { xtype: 'numberfield', name: 'rb_preamount', fieldLabel : '本次预收款' }, { xtype: "detailGridField", storeModel: 'saas.model.money.RecBalance1', _detnoColumn: 'rd_detno', columns: [{ text: "序号", dataIndex: "rd_detno", width: 100, xtype: "numbercolumn", align: 'center', format: '0', summaryType: 'count', summaryRenderer: function (value, summaryData, dataIndex) { return Ext.String.format('合计: {0}条', value); }, }, { text: '资金账户', dataIndex: 'rd_bankname', width : 200.0, 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: "rd_amount", }, { text: "结算方式", dataIndex: "rd_paymethod" }, { text: "结算号", dataIndex: "rd_paycode" }, { text: "备注", dataIndex: "rd_remark" }] }, { xtype: "detailGridField", storeModel: 'saas.model.money.RecBalance1', _detnoColumn: 'rbd_detno', columns: [{ text: "序号", dataIndex: "rbd_detno", width: 100, xtype: "numbercolumn", align: 'center', format: '0', summaryType: 'count', summaryRenderer: function (value, summaryData, dataIndex) { return Ext.String.format('合计: {0}条', value); }, }, { text: '来源单号', dataIndex: 'rbd_slcode' }, { text: "业务类型", dataIndex: "rbd_slkind", }, { text: "单据日期", dataIndex: "rbd_sldate" }, { text: "单据金额", dataIndex: "rbd_amount" }, { text: "已核销金额", dataIndex: "rbd_nowbalance" }, { text: "未核销金额", dataIndex: "pbd_nowbalance" }, { text: "本次核销金额", dataIndex: "pbd_nowbalance" }] }, { xtype: 'textfield', name: 'companyid', fieldLabel: '公司id' }, { format: "Y-m-d h:i:s", xtype: "datefield", name: "pb_recorddate", fieldLabel: "创建时间" }, { format: "Y-m-d h:i:s", xtype: "datefield", name: "updatedate", fieldLabel: "更新时间" }, { xtype: "textfield", readOnly: true, editable: false, name: "pd_status", fieldLabel: "单据状态" }, { xtype: "hidden", readOnly: true, editable: false, name: "pd_statuscode", fieldLabel: "单据状态码" }] });