Ext.define('saas.view.money.othspendings.FormPanel', { extend: 'saas.view.core.form.FormPanel', xtype: 'money-othspendings-formpanel', controller: 'money-othspendings-formpanel', viewModel: 'money-othspendings-formpanel', viewName: 'money-othspendings-formpanel', caller:'OthSpendings', //字段属性 _title:'其它支出单', _idField: 'id', _codeField: 'os_code', _statusField: 'os_status', _statusCodeField: 'os_statuscode', _relationColumn: 'osd_orid', _readUrl:basePath+'money/othspendings/read/', _saveUrl:basePath+'money/othspendings/save', _deleteUrl:basePath+'money/othspendings/delete/', initId:0, defaultItems: [{ xtype: 'hidden', name: 'id', fieldLabel: 'id' }, { xtype : 'hidden', name : 'os_vendid', fieldLabel : '供应商ID' }, { xtype : 'hidden', name : 'os_vendcode', fieldLabel : '供应商编号' }, { xtype : "dbfindtrigger", name : "os_vendname", fieldLabel : "供应商名称" }, { xtype : 'hidden', name : 'os_bankid', fieldLabel : '结算账户ID' }, { xtype : 'hidden', name : 'os_bankcode', fieldLabel : '结算账户编号' }, { xtype : "dbfindtrigger", name : "os_bankname", fieldLabel : "结算账户名称" }, { name : "detailGridField", xtype : "detailGridField", storeModel:'saas.model.money.Othspendings', detnoColumn: 'osd_detno', _deleteDetailUrl:basePath+'money/othreceipts/deleteItem/', columnWidth : 1, columns : [ { text : "id", dataIndex : "id", xtype : "hidden" }, { text : "期间", dataIndex : "osd_ym", editor : { xtype : "numberfield" }, width : 120.0, xtype : "numbercolumn", items : null }, { text : "支出类别", width : 200.0, dataIndex : "osd_type", xtype : "", items : null, editor : { xtype : "remotecombo", storeUrl:basePath+'ducument/fundinoutType/getAll', name : "osd_type", fieldLabel : "支出类别", allowBlank : true, queryMode: 'local', displayField: 'display', valueField: 'value', columnWidth : 0.25, etc:{ inoutkind:{ keyField:'id', dataField:'ft_name', reqUrl:basePath+'ducument/fundinoutType/save', delUrl:basePath+'ducument/fundinoutType/delete' } }, addHandler:function(b){ var form = this.ownerCmp.ownerCt; this.dialog = form.getController().getView().add({ xtype: 'document-inoutkind-childwin', bind: { title: '新增收入类型' }, dataKind:'vendorkind', belong:this.ownerCmp.etc['inoutkind'], _parent:form, record:null, session: true }); this.dialog.show(); } } }, { text : "金额", dataIndex : "osd_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 : "osd_remark", width : 120.0, items : null, ignore:true, flex : 1.0, } ] }, { xtype : "textfield", name : "os_amount", fieldLabel : "收款金额", readOnly:true },{ xtype : "textfield", name : "os_remark", fieldLabel : "备注", allowBlank : true, columnWidth : 0.75 }, { xtype : "textfield", name : "os_recorder", fieldLabel : "录入人", readOnly:true }, { format : "Y-m-d", xtype : "datefield", name : "os_date", fieldLabel : "录入日期", readOnly:true } ] });