Ext.define('saas.view.money.othreceipts.FormPanel', { extend: 'saas.view.core.form.FormPanel', xtype: 'money-othreceipts-formpanel', controller: 'money-othreceipts-formpanel', viewModel: 'money-othreceipts-formpanel', viewName: 'money-othreceipts-formpanel', caller:'OthReceipts', //字段属性 _title:'其它收入单', _idField: 'id', _codeField: 'or_code', _statusField: 'or_status', _statusCodeField: 'or_statuscode', _relationColumn: 'ord_orid', _readUrl:'/api/money/othreceipts/read/', _saveUrl:'/api/money/othreceipts/save', _deleteUrl:'/api/money/othreceipts/delete/', initId:0, defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id' }, { xtype : 'hidden', name : 'or_custid', fieldLabel : '客户ID' }, { xtype : 'hidden', name : 'or_custcode', fieldLabel : '客户编号' }, { xtype : "dbfindtrigger", name : "or_custname", fieldLabel : "客户名称" }, { xtype : 'hidden', name : 'or_bankid', fieldLabel : '账户ID' }, { xtype : 'hidden', name : 'or_bankcode', fieldLabel : '账户编号' }, { xtype : "dbfindtrigger", name : "or_bankname", fieldLabel : "账户名称" }, { name : "detailGridField", xtype : "detailGridField", storeModel:'saas.model.money.Othreceipts', detnoColumn: 'ord_detno', deleteDetailUrl:'/api/money/othreceipts/deleteDetail/', columnWidth : 1, columns : [ { text : "id", dataIndex : "id", xtype : "numbercolumn", width:0 }, { text : "期间", dataIndex : "ord_ym", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", items : null }, { text : "收入类别", width : 200.0, dataIndex : "ord_type", xtype : "", items : null, editor : { xtype : "remotecombo", storeUrl:'/api/document/fundinoutType/list', name : "ord_type", fieldLabel : "收入类别", allowBlank : true, queryMode: 'local', displayField: 'display', valueField: 'value', columnWidth : 0.25, etc:{ inoutkind:{ keyField:'id', dataField:'ft_name', reqUrl:'/api/document/fundinoutType/save', delUrl:'/api/document/fundinoutType/delete' } }, addHandler:function(b){ var form = this.ownerCmp.ownerCt.ownerCmp.ownerCt; this.dialog = form.getController().getView().add({ xtype: 'document-kind-childwin', bind: { title: '新增收入类型' }, dataKind:'inoutkind', belong:this.ownerCmp.etc['inoutkind'], _parent:form, record:null, session: true }); this.dialog.show(); } } }, { text : "金额", dataIndex : "ord_nowbalance", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", format:'0', items : null, summaryType: 'sum' }, { text : "单价", editor : { xtype : "numberfield" }, format:'0,000.00', dataIndex : "sd_price", width : 120.0, xtype : "numbercolumn", items : null, summaryType: 'sum' }, { text : "备注", dataIndex : "ord_remark", width : 120.0, items : null, flex : 1.0, editor : { xtype : "" } } ] }, { xtype : "textfield", name : "or_amount", fieldLabel : "收款金额", readOnly:true },{ xtype : "textfield", name : "or_remark", fieldLabel : "备注", allowBlank : true, columnWidth : 0.75 }, { xtype : "textfield", name : "or_recorder", fieldLabel : "录入人", readOnly:true }, { format : "Y-m-d", xtype : "datefield", name : "or_date", fieldLabel : "录入日期", readOnly:true } ] });