/** * Created by zhouy on 2018/10/18. */ Ext.define('saas.view.document.custaramount.AddWindow', { extend: 'saas.view.document.kind.ChildForm', xtype: 'document-custaramount-addwindow', dataKind:'custaramountadd',//类型标识 belong:{ columns: [{ dataIndex: 'ca_custid' },{ dataIndex: 'ca_custcode' },{ dataIndex: 'ca_custname' },{ dataIndex: 'ca_currency' },{ dataIndex: 'ca_beginaramount' },{ dataIndex: 'ca_beginprerecamount' },{ dataIndex: 'ca_begindate' },{ dataIndex: 'ca_recamount' },{ dataIndex: 'ca_preamount' },{ dataIndex: 'ca_leftamount' }], keyField:'id', reqUrl:'/api/document/custaramount/save' }, etc:{ custaramountadd:{ items:[{ xtype:'hidden', name:'id' },{ xtype:'hidden', name:'ca_custid' },{ xtype:'hidden', name:'ca_begindate' },{ defaultValue:0, xtype:'hidden', name:'ca_recamount' },{ defaultValue:0, xtype:'hidden', name:'ca_preamount' },{ defaultValue:0, xtype:'hidden', name:'ca_leftamount' },{ xtype:'customerDbfindTrigger', name:'ca_custcode', allowBlank:false, fieldLabel:'客户编号', maxLength: 20, dbfinds:[{ from:'id',to:'ca_custid',ignore:true },{ from:'cu_name',to:'ca_custname' },{ from:'cu_code',to:'ca_custcode' }] },{ xtype:'textfield', readOnly:true, editable:false, name:'ca_custname', allowBlank:false, fieldLabel:'客户名称', maxLength: 20 },{ xtype:'currencyDbfindTrigger', name:'ca_currency', allowBlank:false, fieldLabel:'币别', maxLength: 20, dbfinds:[{ from:'cr_name',to:'ca_currency' }] },{ xtype:'numberfield', hideTrigger:true, name:'ca_beginaramount', allowBlank:true, fieldLabel:'期初应收(元)', maxLength: 20, minValue:0, maxValue:999999999999999999999, defaultValue: 0, decimalPrecision: 2, beforeLabelTextTpl:"" },{ beforeLabelTextTpl:"", xtype:'numberfield', hideTrigger:true, name:'ca_beginprerecamount', allowBlank:true, fieldLabel:'期初预收(元)', maxLength: 20, minValue:0, maxValue:999999999999999999999, defaultValue: 0, decimalPrecision: 2, }] } } });