1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- Ext.define('erp.view.sys.sale.SaleTabPanel',{
- extend: 'Ext.tab.Panel',
- alias: 'widget.saletabpanel',
- id:'saletabpanel',
- animCollapse: false,
- bodyBorder: false,
- border: false,
- autoShow: true,
- tabPosition:'bottom',
- frame:true,
- dockedItems: [Ext.create('erp.view.sys.base.Toolbar')],
- defaults:{
- plugins: [{
- ptype: 'cellediting',
- clicksToEdit: 2,
- pluginId: 'cellplugin'
- }]
- },
- items: [{
- title: '客户类型',
- xtype:'simpleactiongrid',
- caller:'CustomerKind',
- saveUrl: 'common/saveCommon.action?caller=CustomerKind',
- deleteUrl: 'common/deleteCommon.action?caller=CustomerKind',
- updateUrl: 'common/updateCommon.action?caller=CustomerKind',
- getIdUrl: 'common/getCommonId.action?caller=CustomerKind',
- keyField:'ck_id',
- params:{
- caller:'CustomerKind!Grid',
- condition:'1=1'
- }
- },{
- title: '销售类型',
- xtype:'simpleactiongrid',
- caller:'SaleKind',
- keyField:'sk_id',
- saveUrl: 'scm/sale/saveSaleKind.action?caller=SaleKind',
- deleteUrl: 'scm/sale/deleteSaleKind.action?caller=SaleKind',
- updateUrl: 'scm/sale/updateSaleKind.action?caller=SaleKind',
- getIdUrl: 'common/getId.action?seq=SALEKIND_SEQ',
- keyField: 'sk_id',
- params:{
- caller:'SaleKind!Grid',
- condition:'1=1'
- }
- },{
- title:'收款方式',
- xtype:'simpleactiongrid',
- caller:'Payments!Sale',
- saveUrl : 'scm/sale/savePayments.action',
- deleteUrl : 'scm/sale/deletePayments.action',
- updateUrl : 'scm/sale/updatePayments.action',
- getIdUrl: 'common/getId.action?seq=Payments_SEQ',
- keyField : 'pa_id',
- codeField : 'pa_code',
- params:{
- caller:'Payments!Sale!Grid',
- condition:"pa_class='收款方式'"
- }
- },{
- title:'销售预测类型',
- xtype:'simpleactiongrid',
- caller:'SaleForecastKind',
- saveUrl: 'scm/sale/saveSaleForecastKind.action',
- deleteUrl: 'scm/sale/deleteSaleForecastKind.action',
- updateUrl: 'scm/sale/updateSaleForecastKind.action',
- getIdUrl: 'common/getId.action?seq=SALEFORECASTKIND_SEQ',
- keyField:'sf_id',
- codeField:'sf_code',
- params:{
- caller:'SaleForecastKind!Grid',
- condition:'1=1'
- }
- },{
- title:'借货类型',
- xtype:'simpleactiongrid',
- caller:'BorrowCargoType',
- saveUrl: 'common/saveCommon.action?caller=BorrowCargoType',
- deleteUrl: 'common/deleteCommon.action?caller=BorrowCargoType',
- updateUrl: 'common/updateCommon.action?caller=BorrowCargoType',
- getIdUrl: 'common/getCommonId.action?caller=BorrowCargoType',
- keyField:'bt_id',
- codeField:'bt_code',
- defaultValues:[{
- bt_piclass:'借货出货单'
- }],
- params:{
- caller:'BorrowCargoType!Grid',
- condition:"bt_piclass='借货出货单'"
- }
- }],
- initComponent : function(){
- this.callParent(arguments);
- }
- });
|